From e1fa56e9bff206550ba3e320cf469239f8a9e332 Mon Sep 17 00:00:00 2001 From: Aman Kumar Jagdev Date: Sat, 4 Apr 2026 14:06:44 +0530 Subject: [PATCH] Remove node_modules from git tracking and update package-lock.json MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit node_modules/ was committed to the repository, bloating the repo and making dependency updates show up as noisy diffs. The .gitignore added in the prior fix already excludes this directory — this commit removes the tracked files so the ignore rule takes effect. Also includes the updated package-lock.json reflecting the dependency fixes from the prior commit. --- Easebuzz_NodeJS_kit/node_modules/.bin/ejs | 1 - Easebuzz_NodeJS_kit/node_modules/.bin/is-ci | 1 - Easebuzz_NodeJS_kit/node_modules/.bin/jake | 1 - Easebuzz_NodeJS_kit/node_modules/.bin/nodemon | 1 - .../node_modules/.bin/nodetouch | 1 - Easebuzz_NodeJS_kit/node_modules/.bin/nopt | 1 - Easebuzz_NodeJS_kit/node_modules/.bin/rc | 1 - Easebuzz_NodeJS_kit/node_modules/.bin/semver | 1 - .../@sindresorhus/is/dist/index.d.ts | 132 - .../@sindresorhus/is/dist/index.js | 245 - .../@sindresorhus/is/dist/index.js.map | 1 - .../node_modules/@sindresorhus/is/license | 9 - .../@sindresorhus/is/package.json | 96 - .../node_modules/@sindresorhus/is/readme.md | 451 - .../@szmarczak/http-timer/LICENSE | 21 - .../@szmarczak/http-timer/README.md | 70 - .../@szmarczak/http-timer/package.json | 75 - .../@szmarczak/http-timer/source/index.js | 99 - .../node_modules/@types/color-name/LICENSE | 21 - .../node_modules/@types/color-name/README.md | 16 - .../node_modules/@types/color-name/index.d.ts | 161 - .../@types/color-name/package.json | 52 - .../node_modules/abbrev/LICENSE | 46 - .../node_modules/abbrev/README.md | 23 - .../node_modules/abbrev/abbrev.js | 61 - .../node_modules/abbrev/package.json | 56 - .../node_modules/ansi-align/CHANGELOG.md | 51 - .../node_modules/ansi-align/LICENSE | 13 - .../node_modules/ansi-align/README.md | 80 - .../node_modules/ansi-align/index.js | 61 - .../node_modules/string-width/index.js | 39 - .../node_modules/string-width/license | 9 - .../node_modules/string-width/package.json | 88 - .../node_modules/string-width/readme.md | 45 - .../node_modules/ansi-align/package.json | 74 - .../node_modules/ansi-regex/index.js | 14 - .../node_modules/ansi-regex/license | 9 - .../node_modules/ansi-regex/package.json | 85 - .../node_modules/ansi-regex/readme.md | 87 - .../node_modules/ansi-styles/index.d.ts | 197 - .../node_modules/ansi-styles/index.js | 163 - .../node_modules/ansi-styles/license | 9 - .../node_modules/ansi-styles/package.json | 89 - .../node_modules/ansi-styles/readme.md | 158 - .../node_modules/anymatch/LICENSE | 15 - .../node_modules/anymatch/README.md | 87 - .../node_modules/anymatch/index.d.ts | 19 - .../node_modules/anymatch/index.js | 102 - .../node_modules/anymatch/package.json | 76 - .../node_modules/async/.travis.yml | 5 - .../node_modules/async/LICENSE | 19 - .../node_modules/async/README.md | 1647 -- .../node_modules/async/bower.json | 38 - .../node_modules/async/component.json | 16 - .../node_modules/async/lib/async.js | 1123 - .../node_modules/async/package.json | 110 - .../async/support/sync-package-managers.js | 53 - .../node_modules/balanced-match/.npmignore | 5 - .../node_modules/balanced-match/LICENSE.md | 21 - .../node_modules/balanced-match/README.md | 91 - .../node_modules/balanced-match/index.js | 59 - .../node_modules/balanced-match/package.json | 104 - .../binary-extensions/binary-extensions.json | 256 - .../binary-extensions.json.d.ts | 3 - .../node_modules/binary-extensions/index.d.ts | 14 - .../node_modules/binary-extensions/index.js | 1 - .../node_modules/binary-extensions/license | 9 - .../binary-extensions/package.json | 70 - .../node_modules/binary-extensions/readme.md | 41 - .../node_modules/boxen/index.d.ts | 175 - .../node_modules/boxen/index.js | 139 - .../node_modules/boxen/license | 9 - .../node_modules/boxen/package.json | 83 - .../node_modules/boxen/readme.md | 187 - .../node_modules/brace-expansion/LICENSE | 21 - .../node_modules/brace-expansion/README.md | 129 - .../node_modules/brace-expansion/index.js | 201 - .../node_modules/brace-expansion/package.json | 109 - .../node_modules/braces/CHANGELOG.md | 184 - .../node_modules/braces/LICENSE | 21 - .../node_modules/braces/README.md | 593 - .../node_modules/braces/index.js | 170 - .../node_modules/braces/lib/compile.js | 57 - .../node_modules/braces/lib/constants.js | 57 - .../node_modules/braces/lib/expand.js | 113 - .../node_modules/braces/lib/parse.js | 333 - .../node_modules/braces/lib/stringify.js | 32 - .../node_modules/braces/lib/utils.js | 112 - .../node_modules/braces/package.json | 123 - .../node_modules/cacheable-request/LICENSE | 21 - .../node_modules/cacheable-request/README.md | 206 - .../node_modules/get-stream/buffer-stream.js | 52 - .../node_modules/get-stream/index.d.ts | 108 - .../node_modules/get-stream/index.js | 58 - .../node_modules/get-stream/license | 9 - .../node_modules/get-stream/package.json | 81 - .../node_modules/get-stream/readme.md | 123 - .../node_modules/lowercase-keys/index.d.ts | 16 - .../node_modules/lowercase-keys/index.js | 10 - .../node_modules/lowercase-keys/license | 9 - .../node_modules/lowercase-keys/package.json | 70 - .../node_modules/lowercase-keys/readme.md | 32 - .../cacheable-request/package.json | 94 - .../cacheable-request/src/index.js | 251 - .../node_modules/camelcase/index.d.ts | 63 - .../node_modules/camelcase/index.js | 76 - .../node_modules/camelcase/license | 9 - .../node_modules/camelcase/package.json | 75 - .../node_modules/camelcase/readme.md | 99 - .../node_modules/chalk/index.d.ts | 411 - .../node_modules/chalk/license | 9 - .../chalk/node_modules/has-flag/index.d.ts | 39 - .../chalk/node_modules/has-flag/index.js | 8 - .../chalk/node_modules/has-flag/license | 9 - .../chalk/node_modules/has-flag/package.json | 78 - .../chalk/node_modules/has-flag/readme.md | 89 - .../node_modules/supports-color/browser.js | 5 - .../node_modules/supports-color/index.js | 139 - .../chalk/node_modules/supports-color/license | 9 - .../node_modules/supports-color/package.json | 85 - .../node_modules/supports-color/readme.md | 76 - .../node_modules/chalk/package.json | 96 - .../node_modules/chalk/readme.md | 304 - .../node_modules/chalk/source/index.js | 233 - .../node_modules/chalk/source/templates.js | 134 - .../node_modules/chalk/source/util.js | 39 - .../node_modules/chokidar/LICENSE | 21 - .../node_modules/chokidar/README.md | 300 - .../node_modules/chokidar/index.js | 940 - .../node_modules/chokidar/lib/constants.js | 61 - .../chokidar/lib/fsevents-handler.js | 526 - .../chokidar/lib/nodefs-handler.js | 637 - .../node_modules/chokidar/package.json | 162 - .../node_modules/chokidar/types/index.d.ts | 187 - .../node_modules/ci-info/CHANGELOG.md | 78 - .../node_modules/ci-info/LICENSE | 21 - .../node_modules/ci-info/README.md | 108 - .../node_modules/ci-info/index.js | 66 - .../node_modules/ci-info/package.json | 65 - .../node_modules/ci-info/vendors.json | 153 - .../node_modules/cli-boxes/boxes.json | 58 - .../node_modules/cli-boxes/index.d.ts | 113 - .../node_modules/cli-boxes/index.js | 6 - .../node_modules/cli-boxes/license | 9 - .../node_modules/cli-boxes/package.json | 73 - .../node_modules/cli-boxes/readme.md | 102 - .../node_modules/clone-response/LICENSE | 21 - .../node_modules/clone-response/README.md | 62 - .../node_modules/clone-response/package.json | 73 - .../node_modules/clone-response/src/index.js | 17 - .../node_modules/color-convert/CHANGELOG.md | 54 - .../node_modules/color-convert/LICENSE | 21 - .../node_modules/color-convert/README.md | 68 - .../node_modules/color-convert/conversions.js | 839 - .../node_modules/color-convert/index.js | 81 - .../node_modules/color-convert/package.json | 83 - .../node_modules/color-convert/route.js | 97 - .../node_modules/color-name/LICENSE | 8 - .../node_modules/color-name/README.md | 11 - .../node_modules/color-name/index.js | 152 - .../node_modules/color-name/package.json | 56 - .../node_modules/concat-map/.travis.yml | 4 - .../node_modules/concat-map/LICENSE | 18 - .../node_modules/concat-map/README.markdown | 62 - .../node_modules/concat-map/example/map.js | 6 - .../node_modules/concat-map/index.js | 13 - .../node_modules/concat-map/package.json | 109 - .../node_modules/concat-map/test/map.js | 39 - .../node_modules/configstore/index.js | 109 - .../node_modules/configstore/license | 25 - .../node_modules/configstore/package.json | 78 - .../node_modules/configstore/readme.md | 141 - .../crypto-random-string/index.d.ts | 17 - .../crypto-random-string/index.js | 10 - .../node_modules/crypto-random-string/license | 9 - .../crypto-random-string/package.json | 72 - .../crypto-random-string/readme.md | 51 - .../node_modules/debug/CHANGELOG.md | 395 - .../node_modules/debug/LICENSE | 19 - .../node_modules/debug/README.md | 437 - .../node_modules/debug/dist/debug.js | 886 - .../node_modules/debug/node.js | 1 - .../node_modules/debug/package.json | 90 - .../node_modules/debug/src/browser.js | 180 - .../node_modules/debug/src/common.js | 249 - .../node_modules/debug/src/index.js | 12 - .../node_modules/debug/src/node.js | 174 - .../node_modules/decompress-response/index.js | 29 - .../node_modules/decompress-response/license | 21 - .../decompress-response/package.json | 85 - .../decompress-response/readme.md | 31 - .../node_modules/deep-extend/CHANGELOG.md | 46 - .../node_modules/deep-extend/LICENSE | 20 - .../node_modules/deep-extend/README.md | 91 - .../node_modules/deep-extend/index.js | 1 - .../deep-extend/lib/deep-extend.js | 150 - .../node_modules/deep-extend/package.json | 92 - .../node_modules/defer-to-connect/LICENSE | 21 - .../node_modules/defer-to-connect/README.md | 38 - .../defer-to-connect/dist/index.d.ts | 10 - .../defer-to-connect/dist/index.js | 45 - .../defer-to-connect/package.json | 101 - .../node_modules/dom-walk/LICENCE | 19 - .../node_modules/dom-walk/Makefile | 2 - .../node_modules/dom-walk/README.md | 23 - .../node_modules/dom-walk/example/index.js | 5 - .../node_modules/dom-walk/index.js | 24 - .../node_modules/dom-walk/package.json | 95 - .../node_modules/dot-prop/index.d.ts | 99 - .../node_modules/dot-prop/index.js | 142 - .../node_modules/dot-prop/license | 9 - .../node_modules/dot-prop/package.json | 77 - .../node_modules/dot-prop/readme.md | 115 - .../node_modules/dotenv/CHANGELOG.md | 155 - .../node_modules/dotenv/LICENSE | 23 - .../node_modules/dotenv/README.md | 271 - .../node_modules/dotenv/config.js | 11 - .../node_modules/dotenv/lib/cli-options.js | 13 - .../node_modules/dotenv/lib/env-options.js | 18 - .../node_modules/dotenv/lib/main.js | 113 - .../node_modules/dotenv/package.json | 80 - .../node_modules/dotenv/types/index.d.ts | 59 - .../node_modules/dotenv/types/test.ts | 19 - .../node_modules/dotenv/types/tsconfig.json | 15 - .../node_modules/dotenv/types/tslint.json | 6 - .../node_modules/duplexer3/LICENSE.md | 26 - .../node_modules/duplexer3/README.md | 115 - .../node_modules/duplexer3/index.js | 76 - .../node_modules/duplexer3/package.json | 64 - Easebuzz_NodeJS_kit/node_modules/ejs/LICENSE | 202 - .../node_modules/ejs/README.md | 341 - .../node_modules/ejs/bin/cli.js | 208 - Easebuzz_NodeJS_kit/node_modules/ejs/ejs.js | 1650 -- .../node_modules/ejs/ejs.min.js | 1 - .../node_modules/ejs/jakefile.js | 76 - .../node_modules/ejs/lib/ejs.js | 938 - .../node_modules/ejs/lib/utils.js | 167 - .../node_modules/ejs/package.json | 106 - .../node_modules/ejs/postinstall.js | 17 - .../node_modules/ejs/usage.txt | 24 - .../node_modules/emoji-regex/LICENSE-MIT.txt | 20 - .../node_modules/emoji-regex/README.md | 73 - .../node_modules/emoji-regex/es2015/index.js | 6 - .../node_modules/emoji-regex/es2015/text.js | 6 - .../node_modules/emoji-regex/index.d.ts | 5 - .../node_modules/emoji-regex/index.js | 6 - .../node_modules/emoji-regex/package.json | 78 - .../node_modules/emoji-regex/text.js | 6 - .../node_modules/end-of-stream/LICENSE | 21 - .../node_modules/end-of-stream/README.md | 54 - .../node_modules/end-of-stream/index.js | 94 - .../node_modules/end-of-stream/package.json | 65 - .../node_modules/escape-goat/index.d.ts | 62 - .../node_modules/escape-goat/index.js | 33 - .../node_modules/escape-goat/license | 9 - .../node_modules/escape-goat/package.json | 77 - .../node_modules/escape-goat/readme.md | 76 - .../escape-string-regexp/index.js | 11 - .../node_modules/escape-string-regexp/license | 21 - .../escape-string-regexp/package.json | 101 - .../escape-string-regexp/readme.md | 27 - .../node_modules/express-validator/LICENSE | 21 - .../node_modules/express-validator/README.md | 32 - .../express-validator/check/index.d.ts | 1 - .../express-validator/check/index.js | 20 - .../express-validator/docs/api-check.md | 110 - .../express-validator/docs/api-filter.md | 65 - .../docs/api-matched-data.md | 62 - .../docs/api-sanitization-chain.md | 77 - .../docs/api-validation-chain.md | 195 - .../docs/api-validation-result.md | 120 - .../feature-custom-validators-sanitizers.md | 68 - .../docs/feature-error-messages.md | 101 - .../docs/feature-running-imperatively.md | 55 - .../docs/feature-sanitization.md | 41 - .../docs/feature-schema-validation.md | 72 - .../docs/feature-whole-body-validation.md | 35 - .../docs/feature-wildcards.md | 47 - .../express-validator/docs/index.md | 83 - .../express-validator/filter/index.d.ts | 1 - .../express-validator/filter/index.js | 14 - .../node_modules/validator/CHANGELOG.md | 683 - .../node_modules/validator/LICENSE | 20 - .../node_modules/validator/README.md | 256 - .../node_modules/validator/es/index.js | 181 - .../node_modules/validator/es/lib/alpha.js | 100 - .../validator/es/lib/blacklist.js | 5 - .../node_modules/validator/es/lib/contains.js | 6 - .../node_modules/validator/es/lib/equals.js | 5 - .../node_modules/validator/es/lib/escape.js | 5 - .../node_modules/validator/es/lib/isAfter.js | 9 - .../node_modules/validator/es/lib/isAlpha.js | 13 - .../validator/es/lib/isAlphanumeric.js | 13 - .../node_modules/validator/es/lib/isAscii.js | 10 - .../node_modules/validator/es/lib/isBIC.js | 6 - .../node_modules/validator/es/lib/isBase32.js | 12 - .../node_modules/validator/es/lib/isBase64.js | 13 - .../node_modules/validator/es/lib/isBefore.js | 9 - .../validator/es/lib/isBoolean.js | 5 - .../validator/es/lib/isBtcAddress.js | 7 - .../validator/es/lib/isByteLength.js | 22 - .../validator/es/lib/isCreditCard.js | 40 - .../validator/es/lib/isCurrency.js | 75 - .../validator/es/lib/isDataURI.js | 40 - .../validator/es/lib/isDecimal.js | 26 - .../validator/es/lib/isDivisibleBy.js | 6 - .../node_modules/validator/es/lib/isEAN.js | 67 - .../node_modules/validator/es/lib/isEmail.js | 180 - .../node_modules/validator/es/lib/isEmpty.js | 10 - .../validator/es/lib/isEthereumAddress.js | 6 - .../node_modules/validator/es/lib/isFQDN.js | 60 - .../node_modules/validator/es/lib/isFloat.js | 16 - .../validator/es/lib/isFullWidth.js | 6 - .../node_modules/validator/es/lib/isHSL.js | 7 - .../validator/es/lib/isHalfWidth.js | 6 - .../node_modules/validator/es/lib/isHash.js | 21 - .../validator/es/lib/isHexColor.js | 6 - .../validator/es/lib/isHexadecimal.js | 6 - .../node_modules/validator/es/lib/isIBAN.js | 133 - .../node_modules/validator/es/lib/isIP.js | 124 - .../validator/es/lib/isIPRange.js | 22 - .../node_modules/validator/es/lib/isISBN.js | 51 - .../node_modules/validator/es/lib/isISIN.js | 38 - .../validator/es/lib/isISO31661Alpha2.js | 8 - .../validator/es/lib/isISO31661Alpha3.js | 8 - .../validator/es/lib/isISO8601.js | 45 - .../node_modules/validator/es/lib/isISRC.js | 7 - .../node_modules/validator/es/lib/isISSN.js | 23 - .../validator/es/lib/isIdentityCard.js | 113 - .../node_modules/validator/es/lib/isIn.js | 28 - .../node_modules/validator/es/lib/isInt.js | 16 - .../node_modules/validator/es/lib/isJSON.js | 15 - .../node_modules/validator/es/lib/isJWT.js | 6 - .../validator/es/lib/isLatLong.js | 10 - .../node_modules/validator/es/lib/isLength.js | 23 - .../node_modules/validator/es/lib/isLocale.js | 11 - .../validator/es/lib/isLowercase.js | 5 - .../validator/es/lib/isMACAddress.js | 15 - .../node_modules/validator/es/lib/isMD5.js | 6 - .../validator/es/lib/isMagnetURI.js | 6 - .../validator/es/lib/isMimeType.js | 39 - .../validator/es/lib/isMobilePhone.js | 140 - .../validator/es/lib/isMongoId.js | 6 - .../validator/es/lib/isMultibyte.js | 10 - .../validator/es/lib/isNumeric.js | 12 - .../node_modules/validator/es/lib/isOctal.js | 6 - .../validator/es/lib/isPassportNumber.js | 104 - .../node_modules/validator/es/lib/isPort.js | 7 - .../validator/es/lib/isPostalCode.js | 84 - .../validator/es/lib/isRFC3339.js | 20 - .../validator/es/lib/isRgbColor.js | 15 - .../node_modules/validator/es/lib/isSemVer.js | 14 - .../node_modules/validator/es/lib/isSlug.js | 6 - .../validator/es/lib/isSurrogatePair.js | 6 - .../node_modules/validator/es/lib/isURL.js | 147 - .../node_modules/validator/es/lib/isUUID.js | 13 - .../validator/es/lib/isUppercase.js | 5 - .../validator/es/lib/isVariableWidth.js | 7 - .../validator/es/lib/isWhitelisted.js | 12 - .../node_modules/validator/es/lib/ltrim.js | 7 - .../node_modules/validator/es/lib/matches.js | 10 - .../validator/es/lib/normalizeEmail.js | 138 - .../node_modules/validator/es/lib/rtrim.js | 7 - .../node_modules/validator/es/lib/stripLow.js | 7 - .../validator/es/lib/toBoolean.js | 10 - .../node_modules/validator/es/lib/toDate.js | 6 - .../node_modules/validator/es/lib/toFloat.js | 5 - .../node_modules/validator/es/lib/toInt.js | 5 - .../node_modules/validator/es/lib/trim.js | 5 - .../node_modules/validator/es/lib/unescape.js | 5 - .../validator/es/lib/util/assertString.js | 23 - .../validator/es/lib/util/includes.js | 7 - .../validator/es/lib/util/merge.js | 12 - .../validator/es/lib/util/multilineRegex.js | 13 - .../validator/es/lib/util/toString.js | 15 - .../validator/es/lib/whitelist.js | 5 - .../node_modules/validator/index.js | 284 - .../node_modules/validator/lib/alpha.js | 113 - .../node_modules/validator/lib/blacklist.js | 18 - .../node_modules/validator/lib/contains.js | 20 - .../node_modules/validator/lib/equals.js | 18 - .../node_modules/validator/lib/escape.js | 18 - .../node_modules/validator/lib/isAfter.js | 23 - .../node_modules/validator/lib/isAlpha.js | 27 - .../validator/lib/isAlphanumeric.js | 27 - .../node_modules/validator/lib/isAscii.js | 22 - .../node_modules/validator/lib/isBIC.js | 20 - .../node_modules/validator/lib/isBase32.js | 26 - .../node_modules/validator/lib/isBase64.js | 27 - .../node_modules/validator/lib/isBefore.js | 23 - .../node_modules/validator/lib/isBoolean.js | 18 - .../validator/lib/isBtcAddress.js | 21 - .../validator/lib/isByteLength.js | 34 - .../validator/lib/isCreditCard.js | 52 - .../node_modules/validator/lib/isCurrency.js | 89 - .../node_modules/validator/lib/isDataURI.js | 54 - .../node_modules/validator/lib/isDecimal.js | 42 - .../validator/lib/isDivisibleBy.js | 20 - .../node_modules/validator/lib/isEAN.js | 80 - .../node_modules/validator/lib/isEmail.js | 197 - .../node_modules/validator/lib/isEmpty.js | 25 - .../validator/lib/isEthereumAddress.js | 20 - .../node_modules/validator/lib/isFQDN.js | 75 - .../node_modules/validator/lib/isFloat.js | 29 - .../node_modules/validator/lib/isFullWidth.js | 19 - .../node_modules/validator/lib/isHSL.js | 21 - .../node_modules/validator/lib/isHalfWidth.js | 19 - .../node_modules/validator/lib/isHash.js | 35 - .../node_modules/validator/lib/isHexColor.js | 20 - .../validator/lib/isHexadecimal.js | 20 - .../node_modules/validator/lib/isIBAN.js | 145 - .../node_modules/validator/lib/isIP.js | 137 - .../node_modules/validator/lib/isIPRange.js | 37 - .../node_modules/validator/lib/isISBN.js | 65 - .../node_modules/validator/lib/isISIN.js | 52 - .../validator/lib/isISO31661Alpha2.js | 23 - .../validator/lib/isISO31661Alpha3.js | 23 - .../node_modules/validator/lib/isISO8601.js | 57 - .../node_modules/validator/lib/isISRC.js | 21 - .../node_modules/validator/lib/isISSN.js | 37 - .../validator/lib/isIdentityCard.js | 127 - .../node_modules/validator/lib/isIn.js | 42 - .../node_modules/validator/lib/isInt.js | 30 - .../node_modules/validator/lib/isJSON.js | 28 - .../node_modules/validator/lib/isJWT.js | 20 - .../node_modules/validator/lib/isLatLong.js | 24 - .../node_modules/validator/lib/isLength.js | 35 - .../node_modules/validator/lib/isLocale.js | 25 - .../node_modules/validator/lib/isLowercase.js | 18 - .../validator/lib/isMACAddress.js | 29 - .../node_modules/validator/lib/isMD5.js | 20 - .../node_modules/validator/lib/isMagnetURI.js | 20 - .../node_modules/validator/lib/isMimeType.js | 51 - .../validator/lib/isMobilePhone.js | 153 - .../node_modules/validator/lib/isMongoId.js | 20 - .../node_modules/validator/lib/isMultibyte.js | 22 - .../node_modules/validator/lib/isNumeric.js | 26 - .../node_modules/validator/lib/isOctal.js | 20 - .../validator/lib/isPassportNumber.js | 114 - .../node_modules/validator/lib/isPort.js | 20 - .../validator/lib/isPostalCode.js | 97 - .../node_modules/validator/lib/isRFC3339.js | 33 - .../node_modules/validator/lib/isRgbColor.js | 29 - .../node_modules/validator/lib/isSemVer.js | 28 - .../node_modules/validator/lib/isSlug.js | 20 - .../validator/lib/isSurrogatePair.js | 20 - .../node_modules/validator/lib/isURL.js | 162 - .../node_modules/validator/lib/isUUID.js | 27 - .../node_modules/validator/lib/isUppercase.js | 18 - .../validator/lib/isVariableWidth.js | 22 - .../validator/lib/isWhitelisted.js | 25 - .../node_modules/validator/lib/ltrim.js | 20 - .../node_modules/validator/lib/matches.js | 23 - .../validator/lib/normalizeEmail.js | 151 - .../node_modules/validator/lib/rtrim.js | 20 - .../node_modules/validator/lib/stripLow.js | 21 - .../node_modules/validator/lib/toBoolean.js | 23 - .../node_modules/validator/lib/toDate.js | 19 - .../node_modules/validator/lib/toFloat.js | 18 - .../node_modules/validator/lib/toInt.js | 18 - .../node_modules/validator/lib/trim.js | 19 - .../node_modules/validator/lib/unescape.js | 18 - .../validator/lib/util/assertString.js | 33 - .../validator/lib/util/includes.js | 17 - .../node_modules/validator/lib/util/merge.js | 22 - .../validator/lib/util/multilineRegex.js | 23 - .../validator/lib/util/toString.js | 25 - .../node_modules/validator/lib/whitelist.js | 18 - .../node_modules/validator/package.json | 128 - .../node_modules/validator/validator.js | 2597 --- .../node_modules/validator/validator.min.js | 23 - .../express-validator/package.json | 140 - .../express-validator/src/base.d.ts | 47 - .../express-validator/src/base.js | 6 - .../src/chain/context-handler-impl.d.ts | 13 - .../src/chain/context-handler-impl.js | 39 - .../src/chain/context-handler.d.ts | 8 - .../src/chain/context-handler.js | 2 - .../src/chain/context-runner-impl.d.ts | 13 - .../src/chain/context-runner-impl.js | 58 - .../src/chain/context-runner.d.ts | 7 - .../src/chain/context-runner.js | 2 - .../express-validator/src/chain/index.d.ts | 10 - .../express-validator/src/chain/index.js | 9 - .../src/chain/sanitization-chain.d.ts | 8 - .../src/chain/sanitization-chain.js | 2 - .../src/chain/sanitizers-impl.d.ts | 25 - .../src/chain/sanitizers-impl.js | 62 - .../src/chain/sanitizers.d.ts | 19 - .../express-validator/src/chain/sanitizers.js | 2 - .../src/chain/validation-chain.d.ts | 10 - .../src/chain/validation-chain.js | 2 - .../src/chain/validators-impl.d.ts | 98 - .../src/chain/validators-impl.js | 281 - .../src/chain/validators.d.ts | 90 - .../express-validator/src/chain/validators.js | 2 - .../src/context-builder.d.ts | 16 - .../express-validator/src/context-builder.js | 35 - .../src/context-items/bail.d.ts | 5 - .../src/context-items/bail.js | 12 - .../src/context-items/chain-condition.d.ts | 9 - .../src/context-items/chain-condition.js | 15 - .../src/context-items/context-item.d.ts | 5 - .../src/context-items/context-item.js | 2 - .../src/context-items/custom-condition.d.ts | 8 - .../src/context-items/custom-condition.js | 23 - .../src/context-items/custom-validation.d.ts | 10 - .../src/context-items/custom-validation.js | 28 - .../src/context-items/index.d.ts | 5 - .../src/context-items/index.js | 9 - .../src/context-items/sanitization.d.ts | 10 - .../src/context-items/sanitization.js | 18 - .../context-items/standard-validation.d.ts | 11 - .../src/context-items/standard-validation.js | 17 - .../express-validator/src/context.d.ts | 25 - .../express-validator/src/context.js | 79 - .../express-validator/src/index.d.ts | 9 - .../express-validator/src/index.js | 12 - .../express-validator/src/matched-data.d.ts | 7 - .../express-validator/src/matched-data.js | 37 - .../src/middlewares/check.d.ts | 3 - .../src/middlewares/check.js | 23 - .../src/middlewares/one-of.d.ts | 7 - .../src/middlewares/one-of.js | 41 - .../sanitization-chain-builders.d.ts | 7 - .../sanitization-chain-builders.js | 12 - .../src/middlewares/sanitize.d.ts | 3 - .../src/middlewares/sanitize.js | 29 - .../src/middlewares/schema.d.ts | 44 - .../src/middlewares/schema.js | 49 - .../validation-chain-builders.d.ts | 8 - .../middlewares/validation-chain-builders.js | 13 - .../express-validator/src/options.d.ts | 165 - .../express-validator/src/options.js | 2 - .../express-validator/src/select-fields.d.ts | 3 - .../express-validator/src/select-fields.js | 76 - .../express-validator/src/utils.d.ts | 2 - .../express-validator/src/utils.js | 28 - .../src/validation-result.d.ts | 23 - .../src/validation-result.js | 50 - .../node_modules/filelist/Jakefile | 14 - .../node_modules/filelist/README.md | 84 - .../node_modules/filelist/index.js | 484 - .../node_modules/filelist/package.json | 89 - .../node_modules/fill-range/LICENSE | 21 - .../node_modules/fill-range/README.md | 237 - .../node_modules/fill-range/index.js | 249 - .../node_modules/fill-range/package.json | 114 - .../node_modules/get-stream/buffer-stream.js | 51 - .../node_modules/get-stream/index.js | 50 - .../node_modules/get-stream/license | 9 - .../node_modules/get-stream/package.json | 78 - .../node_modules/get-stream/readme.md | 123 - .../node_modules/glob-parent/LICENSE | 15 - .../node_modules/glob-parent/README.md | 137 - .../node_modules/glob-parent/index.js | 41 - .../node_modules/glob-parent/package.json | 90 - .../node_modules/global-dirs/index.d.ts | 60 - .../node_modules/global-dirs/index.js | 118 - .../node_modules/global-dirs/license | 9 - .../node_modules/global-dirs/package.json | 87 - .../node_modules/global-dirs/readme.md | 77 - .../node_modules/global/.npmignore | 15 - .../node_modules/global/.travis.yml | 4 - .../node_modules/global/LICENSE | 19 - .../node_modules/global/README.md | 30 - .../node_modules/global/console.js | 1 - .../node_modules/global/document.js | 17 - .../node_modules/global/package.json | 129 - .../node_modules/global/process.js | 1 - .../node_modules/global/window.js | 13 - Easebuzz_NodeJS_kit/node_modules/got/license | 9 - .../node_modules/got/package.json | 106 - .../node_modules/got/readme.md | 1237 -- .../node_modules/got/source/as-promise.js | 108 - .../node_modules/got/source/as-stream.js | 93 - .../node_modules/got/source/create.js | 79 - .../node_modules/got/source/errors.js | 107 - .../node_modules/got/source/get-response.js | 31 - .../node_modules/got/source/index.js | 60 - .../got/source/known-hook-events.js | 10 - .../node_modules/got/source/merge.js | 73 - .../got/source/normalize-arguments.js | 265 - .../node_modules/got/source/progress.js | 96 - .../got/source/request-as-event-emitter.js | 312 - .../got/source/utils/deep-freeze.js | 12 - .../got/source/utils/get-body-size.js | 32 - .../got/source/utils/is-form-data.js | 4 - .../got/source/utils/timed-out.js | 160 - .../got/source/utils/url-to-options.js | 25 - .../node_modules/graceful-fs/LICENSE | 15 - .../node_modules/graceful-fs/README.md | 133 - .../node_modules/graceful-fs/clone.js | 19 - .../node_modules/graceful-fs/graceful-fs.js | 354 - .../graceful-fs/legacy-streams.js | 118 - .../node_modules/graceful-fs/package.json | 79 - .../node_modules/graceful-fs/polyfills.js | 342 - .../node_modules/has-flag/index.js | 8 - .../node_modules/has-flag/license | 9 - .../node_modules/has-flag/package.json | 108 - .../node_modules/has-flag/readme.md | 70 - .../node_modules/has-yarn/index.d.ts | 16 - .../node_modules/has-yarn/index.js | 9 - .../node_modules/has-yarn/license | 9 - .../node_modules/has-yarn/package.json | 71 - .../node_modules/has-yarn/readme.md | 60 - .../node_modules/http-cache-semantics/LICENSE | 9 - .../http-cache-semantics/README.md | 203 - .../http-cache-semantics/index.js | 673 - .../http-cache-semantics/package.json | 60 - .../node_modules/ignore-by-default/LICENSE | 14 - .../node_modules/ignore-by-default/README.md | 26 - .../node_modules/ignore-by-default/index.js | 12 - .../ignore-by-default/package.json | 62 - .../node_modules/import-lazy/index.js | 53 - .../node_modules/import-lazy/license | 21 - .../node_modules/import-lazy/package.json | 76 - .../node_modules/import-lazy/readme.md | 64 - .../node_modules/imurmurhash/README.md | 122 - .../node_modules/imurmurhash/imurmurhash.js | 138 - .../imurmurhash/imurmurhash.min.js | 12 - .../node_modules/imurmurhash/package.json | 63 - Easebuzz_NodeJS_kit/node_modules/ini/LICENSE | 15 - .../node_modules/ini/README.md | 102 - Easebuzz_NodeJS_kit/node_modules/ini/ini.js | 194 - .../node_modules/ini/package.json | 64 - .../node_modules/is-binary-path/index.d.ts | 17 - .../node_modules/is-binary-path/index.js | 7 - .../node_modules/is-binary-path/license | 9 - .../node_modules/is-binary-path/package.json | 72 - .../node_modules/is-binary-path/readme.md | 34 - .../node_modules/is-ci/CHANGELOG.md | 14 - .../node_modules/is-ci/LICENSE | 21 - .../node_modules/is-ci/README.md | 50 - Easebuzz_NodeJS_kit/node_modules/is-ci/bin.js | 4 - .../node_modules/is-ci/index.js | 3 - .../node_modules/is-ci/package.json | 69 - .../node_modules/is-extglob/LICENSE | 21 - .../node_modules/is-extglob/README.md | 107 - .../node_modules/is-extglob/index.js | 20 - .../node_modules/is-extglob/package.json | 100 - .../is-fullwidth-code-point/index.js | 46 - .../is-fullwidth-code-point/license | 21 - .../is-fullwidth-code-point/package.json | 77 - .../is-fullwidth-code-point/readme.md | 39 - .../node_modules/is-glob/LICENSE | 21 - .../node_modules/is-glob/README.md | 206 - .../node_modules/is-glob/index.js | 48 - .../node_modules/is-glob/package.json | 122 - .../is-installed-globally/index.d.ts | 19 - .../is-installed-globally/index.js | 15 - .../is-installed-globally/license | 9 - .../is-installed-globally/package.json | 86 - .../is-installed-globally/readme.md | 34 - .../node_modules/is-npm/index.d.ts | 41 - .../node_modules/is-npm/index.js | 9 - .../node_modules/is-npm/license | 9 - .../node_modules/is-npm/package.json | 69 - .../node_modules/is-npm/readme.md | 59 - .../node_modules/is-number/LICENSE | 21 - .../node_modules/is-number/README.md | 187 - .../node_modules/is-number/index.js | 18 - .../node_modules/is-number/package.json | 122 - .../node_modules/is-obj/index.d.ts | 22 - .../node_modules/is-obj/index.js | 6 - .../node_modules/is-obj/license | 9 - .../node_modules/is-obj/package.json | 66 - .../node_modules/is-obj/readme.md | 39 - .../node_modules/is-path-inside/index.d.ts | 27 - .../node_modules/is-path-inside/index.js | 21 - .../node_modules/is-path-inside/license | 9 - .../node_modules/is-path-inside/package.json | 68 - .../node_modules/is-path-inside/readme.md | 63 - .../node_modules/is-typedarray/LICENSE.md | 18 - .../node_modules/is-typedarray/README.md | 16 - .../node_modules/is-typedarray/index.js | 41 - .../node_modules/is-typedarray/package.json | 60 - .../node_modules/is-typedarray/test.js | 34 - .../node_modules/is-yarn-global/.travis.yml | 4 - .../node_modules/is-yarn-global/LICENSE | 21 - .../node_modules/is-yarn-global/README.md | 28 - .../node_modules/is-yarn-global/index.js | 12 - .../node_modules/is-yarn-global/package.json | 50 - .../node_modules/jake/Makefile | 44 - .../node_modules/jake/README.md | 17 - .../node_modules/jake/bin/bash_completion.sh | 41 - .../node_modules/jake/bin/cli.js | 31 - .../node_modules/jake/jakefile.js | 105 - .../node_modules/jake/lib/api.js | 409 - .../node_modules/jake/lib/jake.js | 319 - .../node_modules/jake/lib/loader.js | 165 - .../node_modules/jake/lib/namespace.js | 115 - .../node_modules/jake/lib/package_task.js | 406 - .../node_modules/jake/lib/parseargs.js | 134 - .../node_modules/jake/lib/program.js | 282 - .../node_modules/jake/lib/publish_task.js | 290 - .../node_modules/jake/lib/rule.js | 311 - .../jake/lib/task/directory_task.js | 30 - .../node_modules/jake/lib/task/file_task.js | 124 - .../node_modules/jake/lib/task/index.js | 9 - .../node_modules/jake/lib/task/task.js | 439 - .../node_modules/jake/lib/test_task.js | 270 - .../node_modules/jake/lib/utils/file.js | 286 - .../node_modules/jake/lib/utils/index.js | 297 - .../node_modules/jake/lib/utils/logger.js | 24 - .../jake/node_modules/ansi-styles/index.js | 165 - .../jake/node_modules/ansi-styles/license | 9 - .../node_modules/ansi-styles/package.json | 123 - .../jake/node_modules/ansi-styles/readme.md | 147 - .../jake/node_modules/chalk/index.js | 228 - .../jake/node_modules/chalk/index.js.flow | 93 - .../jake/node_modules/chalk/license | 9 - .../jake/node_modules/chalk/package.json | 133 - .../jake/node_modules/chalk/readme.md | 314 - .../jake/node_modules/chalk/templates.js | 128 - .../jake/node_modules/chalk/types/index.d.ts | 97 - .../node_modules/color-convert/CHANGELOG.md | 54 - .../jake/node_modules/color-convert/LICENSE | 21 - .../jake/node_modules/color-convert/README.md | 68 - .../node_modules/color-convert/conversions.js | 868 - .../jake/node_modules/color-convert/index.js | 78 - .../node_modules/color-convert/package.json | 117 - .../jake/node_modules/color-convert/route.js | 97 - .../node_modules/color-name/.eslintrc.json | 43 - .../jake/node_modules/color-name/.npmignore | 107 - .../jake/node_modules/color-name/LICENSE | 8 - .../jake/node_modules/color-name/README.md | 11 - .../jake/node_modules/color-name/index.js | 152 - .../jake/node_modules/color-name/package.json | 82 - .../jake/node_modules/color-name/test.js | 7 - .../node_modules/jake/package.json | 122 - .../jake/test/integration/concurrent.js | 42 - .../jake/test/integration/file.js | 228 - .../jake/test/integration/file_task.js | 125 - .../jake/test/integration/helpers.js | 80 - .../jake/test/integration/jakefile.js | 337 - .../integration/jakelib/concurrent.jake.js | 113 - .../test/integration/jakelib/publish.jake.js | 49 - .../jakelib/required_module.jake.js | 10 - .../test/integration/jakelib/rule.jake.js | 222 - .../jake/test/integration/publish_task.js | 24 - .../jake/test/integration/rule.js | 216 - .../jake/test/integration/selfdep.js | 39 - .../jake/test/integration/task_base.js | 164 - .../node_modules/jake/test/unit/jakefile.js | 36 - .../node_modules/jake/test/unit/namespace.js | 77 - .../node_modules/jake/test/unit/parseargs.js | 169 - .../node_modules/jake/usage.txt | 16 - .../node_modules/js-sha512/CHANGELOG.md | 86 - .../node_modules/js-sha512/LICENSE.txt | 20 - .../node_modules/js-sha512/README.md | 125 - .../js-sha512/build/sha512.min.js | 9 - .../node_modules/js-sha512/index.d.ts | 151 - .../node_modules/js-sha512/package.json | 76 - .../node_modules/js-sha512/src/sha512.js | 927 - .../node_modules/json-buffer/.npmignore | 3 - .../node_modules/json-buffer/.travis.yml | 3 - .../node_modules/json-buffer/LICENSE | 22 - .../node_modules/json-buffer/README.md | 24 - .../node_modules/json-buffer/index.js | 58 - .../node_modules/json-buffer/package.json | 66 - .../node_modules/json-buffer/test/index.js | 63 - Easebuzz_NodeJS_kit/node_modules/keyv/LICENSE | 21 - .../node_modules/keyv/README.md | 276 - .../node_modules/keyv/package.json | 78 - .../node_modules/keyv/src/index.js | 103 - .../node_modules/latest-version/index.d.ts | 42 - .../node_modules/latest-version/index.js | 11 - .../node_modules/latest-version/license | 9 - .../node_modules/latest-version/package.json | 74 - .../node_modules/latest-version/readme.md | 42 - .../node_modules/location-href/index.js | 15 - .../node_modules/location-href/license | 21 - .../node_modules/location-href/package.json | 88 - .../node_modules/location-href/readme.md | 41 - .../node_modules/lodash/LICENSE | 47 - .../node_modules/lodash/README.md | 39 - .../node_modules/lodash/_DataView.js | 7 - .../node_modules/lodash/_Hash.js | 32 - .../node_modules/lodash/_LazyWrapper.js | 28 - .../node_modules/lodash/_ListCache.js | 32 - .../node_modules/lodash/_LodashWrapper.js | 22 - .../node_modules/lodash/_Map.js | 7 - .../node_modules/lodash/_MapCache.js | 32 - .../node_modules/lodash/_Promise.js | 7 - .../node_modules/lodash/_Set.js | 7 - .../node_modules/lodash/_SetCache.js | 27 - .../node_modules/lodash/_Stack.js | 27 - .../node_modules/lodash/_Symbol.js | 6 - .../node_modules/lodash/_Uint8Array.js | 6 - .../node_modules/lodash/_WeakMap.js | 7 - .../node_modules/lodash/_apply.js | 21 - .../node_modules/lodash/_arrayAggregator.js | 22 - .../node_modules/lodash/_arrayEach.js | 22 - .../node_modules/lodash/_arrayEachRight.js | 21 - .../node_modules/lodash/_arrayEvery.js | 23 - .../node_modules/lodash/_arrayFilter.js | 25 - .../node_modules/lodash/_arrayIncludes.js | 17 - .../node_modules/lodash/_arrayIncludesWith.js | 22 - .../node_modules/lodash/_arrayLikeKeys.js | 49 - .../node_modules/lodash/_arrayMap.js | 21 - .../node_modules/lodash/_arrayPush.js | 20 - .../node_modules/lodash/_arrayReduce.js | 26 - .../node_modules/lodash/_arrayReduceRight.js | 24 - .../node_modules/lodash/_arraySample.js | 15 - .../node_modules/lodash/_arraySampleSize.js | 17 - .../node_modules/lodash/_arrayShuffle.js | 15 - .../node_modules/lodash/_arraySome.js | 23 - .../node_modules/lodash/_asciiSize.js | 12 - .../node_modules/lodash/_asciiToArray.js | 12 - .../node_modules/lodash/_asciiWords.js | 15 - .../node_modules/lodash/_assignMergeValue.js | 20 - .../node_modules/lodash/_assignValue.js | 28 - .../node_modules/lodash/_assocIndexOf.js | 21 - .../node_modules/lodash/_baseAggregator.js | 21 - .../node_modules/lodash/_baseAssign.js | 17 - .../node_modules/lodash/_baseAssignIn.js | 17 - .../node_modules/lodash/_baseAssignValue.js | 25 - .../node_modules/lodash/_baseAt.js | 23 - .../node_modules/lodash/_baseClamp.js | 22 - .../node_modules/lodash/_baseClone.js | 165 - .../node_modules/lodash/_baseConforms.js | 18 - .../node_modules/lodash/_baseConformsTo.js | 27 - .../node_modules/lodash/_baseCreate.js | 30 - .../node_modules/lodash/_baseDelay.js | 21 - .../node_modules/lodash/_baseDifference.js | 67 - .../node_modules/lodash/_baseEach.js | 14 - .../node_modules/lodash/_baseEachRight.js | 14 - .../node_modules/lodash/_baseEvery.js | 21 - .../node_modules/lodash/_baseExtremum.js | 32 - .../node_modules/lodash/_baseFill.js | 32 - .../node_modules/lodash/_baseFilter.js | 21 - .../node_modules/lodash/_baseFindIndex.js | 24 - .../node_modules/lodash/_baseFindKey.js | 23 - .../node_modules/lodash/_baseFlatten.js | 38 - .../node_modules/lodash/_baseFor.js | 16 - .../node_modules/lodash/_baseForOwn.js | 16 - .../node_modules/lodash/_baseForOwnRight.js | 16 - .../node_modules/lodash/_baseForRight.js | 15 - .../node_modules/lodash/_baseFunctions.js | 19 - .../node_modules/lodash/_baseGet.js | 24 - .../node_modules/lodash/_baseGetAllKeys.js | 20 - .../node_modules/lodash/_baseGetTag.js | 28 - .../node_modules/lodash/_baseGt.js | 14 - .../node_modules/lodash/_baseHas.js | 19 - .../node_modules/lodash/_baseHasIn.js | 13 - .../node_modules/lodash/_baseInRange.js | 18 - .../node_modules/lodash/_baseIndexOf.js | 20 - .../node_modules/lodash/_baseIndexOfWith.js | 23 - .../node_modules/lodash/_baseIntersection.js | 74 - .../node_modules/lodash/_baseInverter.js | 21 - .../node_modules/lodash/_baseInvoke.js | 24 - .../node_modules/lodash/_baseIsArguments.js | 18 - .../node_modules/lodash/_baseIsArrayBuffer.js | 17 - .../node_modules/lodash/_baseIsDate.js | 18 - .../node_modules/lodash/_baseIsEqual.js | 28 - .../node_modules/lodash/_baseIsEqualDeep.js | 83 - .../node_modules/lodash/_baseIsMap.js | 18 - .../node_modules/lodash/_baseIsMatch.js | 62 - .../node_modules/lodash/_baseIsNaN.js | 12 - .../node_modules/lodash/_baseIsNative.js | 47 - .../node_modules/lodash/_baseIsRegExp.js | 18 - .../node_modules/lodash/_baseIsSet.js | 18 - .../node_modules/lodash/_baseIsTypedArray.js | 60 - .../node_modules/lodash/_baseIteratee.js | 31 - .../node_modules/lodash/_baseKeys.js | 30 - .../node_modules/lodash/_baseKeysIn.js | 33 - .../node_modules/lodash/_baseLodash.js | 10 - .../node_modules/lodash/_baseLt.js | 14 - .../node_modules/lodash/_baseMap.js | 22 - .../node_modules/lodash/_baseMatches.js | 22 - .../lodash/_baseMatchesProperty.js | 33 - .../node_modules/lodash/_baseMean.js | 20 - .../node_modules/lodash/_baseMerge.js | 42 - .../node_modules/lodash/_baseMergeDeep.js | 94 - .../node_modules/lodash/_baseNth.js | 20 - .../node_modules/lodash/_baseOrderBy.js | 34 - .../node_modules/lodash/_basePick.js | 19 - .../node_modules/lodash/_basePickBy.js | 30 - .../node_modules/lodash/_baseProperty.js | 14 - .../node_modules/lodash/_basePropertyDeep.js | 16 - .../node_modules/lodash/_basePropertyOf.js | 14 - .../node_modules/lodash/_basePullAll.js | 51 - .../node_modules/lodash/_basePullAt.js | 37 - .../node_modules/lodash/_baseRandom.js | 18 - .../node_modules/lodash/_baseRange.js | 28 - .../node_modules/lodash/_baseReduce.js | 23 - .../node_modules/lodash/_baseRepeat.js | 35 - .../node_modules/lodash/_baseRest.js | 17 - .../node_modules/lodash/_baseSample.js | 15 - .../node_modules/lodash/_baseSampleSize.js | 18 - .../node_modules/lodash/_baseSet.js | 47 - .../node_modules/lodash/_baseSetData.js | 17 - .../node_modules/lodash/_baseSetToString.js | 22 - .../node_modules/lodash/_baseShuffle.js | 15 - .../node_modules/lodash/_baseSlice.js | 31 - .../node_modules/lodash/_baseSome.js | 22 - .../node_modules/lodash/_baseSortBy.js | 21 - .../node_modules/lodash/_baseSortedIndex.js | 42 - .../node_modules/lodash/_baseSortedIndexBy.js | 64 - .../node_modules/lodash/_baseSortedUniq.js | 30 - .../node_modules/lodash/_baseSum.js | 24 - .../node_modules/lodash/_baseTimes.js | 20 - .../node_modules/lodash/_baseToNumber.js | 24 - .../node_modules/lodash/_baseToPairs.js | 18 - .../node_modules/lodash/_baseToString.js | 37 - .../node_modules/lodash/_baseUnary.js | 14 - .../node_modules/lodash/_baseUniq.js | 72 - .../node_modules/lodash/_baseUnset.js | 20 - .../node_modules/lodash/_baseUpdate.js | 18 - .../node_modules/lodash/_baseValues.js | 19 - .../node_modules/lodash/_baseWhile.js | 26 - .../node_modules/lodash/_baseWrapperValue.js | 25 - .../node_modules/lodash/_baseXor.js | 36 - .../node_modules/lodash/_baseZipObject.js | 23 - .../node_modules/lodash/_cacheHas.js | 13 - .../lodash/_castArrayLikeObject.js | 14 - .../node_modules/lodash/_castFunction.js | 14 - .../node_modules/lodash/_castPath.js | 21 - .../node_modules/lodash/_castRest.js | 14 - .../node_modules/lodash/_castSlice.js | 18 - .../node_modules/lodash/_charsEndIndex.js | 19 - .../node_modules/lodash/_charsStartIndex.js | 20 - .../node_modules/lodash/_cloneArrayBuffer.js | 16 - .../node_modules/lodash/_cloneBuffer.js | 35 - .../node_modules/lodash/_cloneDataView.js | 16 - .../node_modules/lodash/_cloneRegExp.js | 17 - .../node_modules/lodash/_cloneSymbol.js | 18 - .../node_modules/lodash/_cloneTypedArray.js | 16 - .../node_modules/lodash/_compareAscending.js | 41 - .../node_modules/lodash/_compareMultiple.js | 44 - .../node_modules/lodash/_composeArgs.js | 39 - .../node_modules/lodash/_composeArgsRight.js | 41 - .../node_modules/lodash/_copyArray.js | 20 - .../node_modules/lodash/_copyObject.js | 40 - .../node_modules/lodash/_copySymbols.js | 16 - .../node_modules/lodash/_copySymbolsIn.js | 16 - .../node_modules/lodash/_coreJsData.js | 6 - .../node_modules/lodash/_countHolders.js | 21 - .../node_modules/lodash/_createAggregator.js | 23 - .../node_modules/lodash/_createAssigner.js | 37 - .../node_modules/lodash/_createBaseEach.js | 32 - .../node_modules/lodash/_createBaseFor.js | 25 - .../node_modules/lodash/_createBind.js | 28 - .../node_modules/lodash/_createCaseFirst.js | 33 - .../node_modules/lodash/_createCompounder.js | 24 - .../node_modules/lodash/_createCtor.js | 37 - .../node_modules/lodash/_createCurry.js | 46 - .../node_modules/lodash/_createFind.js | 25 - .../node_modules/lodash/_createFlow.js | 78 - .../node_modules/lodash/_createHybrid.js | 92 - .../node_modules/lodash/_createInverter.js | 17 - .../lodash/_createMathOperation.js | 38 - .../node_modules/lodash/_createOver.js | 27 - .../node_modules/lodash/_createPadding.js | 33 - .../node_modules/lodash/_createPartial.js | 43 - .../node_modules/lodash/_createRange.js | 30 - .../node_modules/lodash/_createRecurry.js | 56 - .../lodash/_createRelationalOperation.js | 20 - .../node_modules/lodash/_createRound.js | 35 - .../node_modules/lodash/_createSet.js | 19 - .../node_modules/lodash/_createToPairs.js | 30 - .../node_modules/lodash/_createWrap.js | 106 - .../lodash/_customDefaultsAssignIn.js | 29 - .../lodash/_customDefaultsMerge.js | 28 - .../node_modules/lodash/_customOmitClone.js | 16 - .../node_modules/lodash/_deburrLetter.js | 71 - .../node_modules/lodash/_defineProperty.js | 11 - .../node_modules/lodash/_equalArrays.js | 83 - .../node_modules/lodash/_equalByTag.js | 112 - .../node_modules/lodash/_equalObjects.js | 89 - .../node_modules/lodash/_escapeHtmlChar.js | 21 - .../node_modules/lodash/_escapeStringChar.js | 22 - .../node_modules/lodash/_flatRest.js | 16 - .../node_modules/lodash/_freeGlobal.js | 4 - .../node_modules/lodash/_getAllKeys.js | 16 - .../node_modules/lodash/_getAllKeysIn.js | 17 - .../node_modules/lodash/_getData.js | 15 - .../node_modules/lodash/_getFuncName.js | 31 - .../node_modules/lodash/_getHolder.js | 13 - .../node_modules/lodash/_getMapData.js | 18 - .../node_modules/lodash/_getMatchData.js | 24 - .../node_modules/lodash/_getNative.js | 17 - .../node_modules/lodash/_getPrototype.js | 6 - .../node_modules/lodash/_getRawTag.js | 46 - .../node_modules/lodash/_getSymbols.js | 30 - .../node_modules/lodash/_getSymbolsIn.js | 25 - .../node_modules/lodash/_getTag.js | 58 - .../node_modules/lodash/_getValue.js | 13 - .../node_modules/lodash/_getView.js | 33 - .../node_modules/lodash/_getWrapDetails.js | 17 - .../node_modules/lodash/_hasPath.js | 39 - .../node_modules/lodash/_hasUnicode.js | 26 - .../node_modules/lodash/_hasUnicodeWord.js | 15 - .../node_modules/lodash/_hashClear.js | 15 - .../node_modules/lodash/_hashDelete.js | 17 - .../node_modules/lodash/_hashGet.js | 30 - .../node_modules/lodash/_hashHas.js | 23 - .../node_modules/lodash/_hashSet.js | 23 - .../node_modules/lodash/_initCloneArray.js | 26 - .../node_modules/lodash/_initCloneByTag.js | 77 - .../node_modules/lodash/_initCloneObject.js | 18 - .../node_modules/lodash/_insertWrapDetails.js | 23 - .../node_modules/lodash/_isFlattenable.js | 20 - .../node_modules/lodash/_isIndex.js | 25 - .../node_modules/lodash/_isIterateeCall.js | 30 - .../node_modules/lodash/_isKey.js | 29 - .../node_modules/lodash/_isKeyable.js | 15 - .../node_modules/lodash/_isLaziable.js | 28 - .../node_modules/lodash/_isMaskable.js | 14 - .../node_modules/lodash/_isMasked.js | 20 - .../node_modules/lodash/_isPrototype.js | 18 - .../lodash/_isStrictComparable.js | 15 - .../node_modules/lodash/_iteratorToArray.js | 18 - .../node_modules/lodash/_lazyClone.js | 23 - .../node_modules/lodash/_lazyReverse.js | 23 - .../node_modules/lodash/_lazyValue.js | 69 - .../node_modules/lodash/_listCacheClear.js | 13 - .../node_modules/lodash/_listCacheDelete.js | 35 - .../node_modules/lodash/_listCacheGet.js | 19 - .../node_modules/lodash/_listCacheHas.js | 16 - .../node_modules/lodash/_listCacheSet.js | 26 - .../node_modules/lodash/_mapCacheClear.js | 21 - .../node_modules/lodash/_mapCacheDelete.js | 18 - .../node_modules/lodash/_mapCacheGet.js | 16 - .../node_modules/lodash/_mapCacheHas.js | 16 - .../node_modules/lodash/_mapCacheSet.js | 22 - .../node_modules/lodash/_mapToArray.js | 18 - .../lodash/_matchesStrictComparable.js | 20 - .../node_modules/lodash/_memoizeCapped.js | 26 - .../node_modules/lodash/_mergeData.js | 90 - .../node_modules/lodash/_metaMap.js | 6 - .../node_modules/lodash/_nativeCreate.js | 6 - .../node_modules/lodash/_nativeKeys.js | 6 - .../node_modules/lodash/_nativeKeysIn.js | 20 - .../node_modules/lodash/_nodeUtil.js | 30 - .../node_modules/lodash/_objectToString.js | 22 - .../node_modules/lodash/_overArg.js | 15 - .../node_modules/lodash/_overRest.js | 36 - .../node_modules/lodash/_parent.js | 16 - .../node_modules/lodash/_reEscape.js | 4 - .../node_modules/lodash/_reEvaluate.js | 4 - .../node_modules/lodash/_reInterpolate.js | 4 - .../node_modules/lodash/_realNames.js | 4 - .../node_modules/lodash/_reorder.js | 29 - .../node_modules/lodash/_replaceHolders.js | 29 - .../node_modules/lodash/_root.js | 9 - .../node_modules/lodash/_safeGet.js | 21 - .../node_modules/lodash/_setCacheAdd.js | 19 - .../node_modules/lodash/_setCacheHas.js | 14 - .../node_modules/lodash/_setData.js | 20 - .../node_modules/lodash/_setToArray.js | 18 - .../node_modules/lodash/_setToPairs.js | 18 - .../node_modules/lodash/_setToString.js | 14 - .../node_modules/lodash/_setWrapToString.js | 21 - .../node_modules/lodash/_shortOut.js | 37 - .../node_modules/lodash/_shuffleSelf.js | 28 - .../node_modules/lodash/_stackClear.js | 15 - .../node_modules/lodash/_stackDelete.js | 18 - .../node_modules/lodash/_stackGet.js | 14 - .../node_modules/lodash/_stackHas.js | 14 - .../node_modules/lodash/_stackSet.js | 34 - .../node_modules/lodash/_strictIndexOf.js | 23 - .../node_modules/lodash/_strictLastIndexOf.js | 21 - .../node_modules/lodash/_stringSize.js | 18 - .../node_modules/lodash/_stringToArray.js | 18 - .../node_modules/lodash/_stringToPath.js | 27 - .../node_modules/lodash/_toKey.js | 21 - .../node_modules/lodash/_toSource.js | 26 - .../node_modules/lodash/_unescapeHtmlChar.js | 21 - .../node_modules/lodash/_unicodeSize.js | 44 - .../node_modules/lodash/_unicodeToArray.js | 40 - .../node_modules/lodash/_unicodeWords.js | 69 - .../node_modules/lodash/_updateWrapDetails.js | 46 - .../node_modules/lodash/_wrapperClone.js | 23 - .../node_modules/lodash/add.js | 22 - .../node_modules/lodash/after.js | 42 - .../node_modules/lodash/array.js | 67 - .../node_modules/lodash/ary.js | 29 - .../node_modules/lodash/assign.js | 58 - .../node_modules/lodash/assignIn.js | 40 - .../node_modules/lodash/assignInWith.js | 38 - .../node_modules/lodash/assignWith.js | 37 - Easebuzz_NodeJS_kit/node_modules/lodash/at.js | 23 - .../node_modules/lodash/attempt.js | 35 - .../node_modules/lodash/before.js | 40 - .../node_modules/lodash/bind.js | 57 - .../node_modules/lodash/bindAll.js | 41 - .../node_modules/lodash/bindKey.js | 68 - .../node_modules/lodash/camelCase.js | 29 - .../node_modules/lodash/capitalize.js | 23 - .../node_modules/lodash/castArray.js | 44 - .../node_modules/lodash/ceil.js | 26 - .../node_modules/lodash/chain.js | 38 - .../node_modules/lodash/chunk.js | 50 - .../node_modules/lodash/clamp.js | 39 - .../node_modules/lodash/clone.js | 36 - .../node_modules/lodash/cloneDeep.js | 29 - .../node_modules/lodash/cloneDeepWith.js | 40 - .../node_modules/lodash/cloneWith.js | 42 - .../node_modules/lodash/collection.js | 30 - .../node_modules/lodash/commit.js | 33 - .../node_modules/lodash/compact.js | 31 - .../node_modules/lodash/concat.js | 43 - .../node_modules/lodash/cond.js | 60 - .../node_modules/lodash/conforms.js | 35 - .../node_modules/lodash/conformsTo.js | 32 - .../node_modules/lodash/constant.js | 26 - .../node_modules/lodash/core.js | 3854 ---- .../node_modules/lodash/core.min.js | 29 - .../node_modules/lodash/countBy.js | 40 - .../node_modules/lodash/create.js | 43 - .../node_modules/lodash/curry.js | 57 - .../node_modules/lodash/curryRight.js | 54 - .../node_modules/lodash/date.js | 3 - .../node_modules/lodash/debounce.js | 191 - .../node_modules/lodash/deburr.js | 45 - .../node_modules/lodash/defaultTo.js | 25 - .../node_modules/lodash/defaults.js | 64 - .../node_modules/lodash/defaultsDeep.js | 30 - .../node_modules/lodash/defer.js | 26 - .../node_modules/lodash/delay.js | 28 - .../node_modules/lodash/difference.js | 33 - .../node_modules/lodash/differenceBy.js | 44 - .../node_modules/lodash/differenceWith.js | 40 - .../node_modules/lodash/divide.js | 22 - .../node_modules/lodash/drop.js | 38 - .../node_modules/lodash/dropRight.js | 39 - .../node_modules/lodash/dropRightWhile.js | 45 - .../node_modules/lodash/dropWhile.js | 45 - .../node_modules/lodash/each.js | 1 - .../node_modules/lodash/eachRight.js | 1 - .../node_modules/lodash/endsWith.js | 43 - .../node_modules/lodash/entries.js | 1 - .../node_modules/lodash/entriesIn.js | 1 - Easebuzz_NodeJS_kit/node_modules/lodash/eq.js | 37 - .../node_modules/lodash/escape.js | 43 - .../node_modules/lodash/escapeRegExp.js | 32 - .../node_modules/lodash/every.js | 56 - .../node_modules/lodash/extend.js | 1 - .../node_modules/lodash/extendWith.js | 1 - .../node_modules/lodash/fill.js | 45 - .../node_modules/lodash/filter.js | 48 - .../node_modules/lodash/find.js | 42 - .../node_modules/lodash/findIndex.js | 55 - .../node_modules/lodash/findKey.js | 44 - .../node_modules/lodash/findLast.js | 25 - .../node_modules/lodash/findLastIndex.js | 59 - .../node_modules/lodash/findLastKey.js | 44 - .../node_modules/lodash/first.js | 1 - .../node_modules/lodash/flatMap.js | 29 - .../node_modules/lodash/flatMapDeep.js | 31 - .../node_modules/lodash/flatMapDepth.js | 31 - .../node_modules/lodash/flatten.js | 22 - .../node_modules/lodash/flattenDeep.js | 25 - .../node_modules/lodash/flattenDepth.js | 33 - .../node_modules/lodash/flip.js | 28 - .../node_modules/lodash/floor.js | 26 - .../node_modules/lodash/flow.js | 27 - .../node_modules/lodash/flowRight.js | 26 - .../node_modules/lodash/forEach.js | 41 - .../node_modules/lodash/forEachRight.js | 31 - .../node_modules/lodash/forIn.js | 39 - .../node_modules/lodash/forInRight.js | 37 - .../node_modules/lodash/forOwn.js | 36 - .../node_modules/lodash/forOwnRight.js | 34 - Easebuzz_NodeJS_kit/node_modules/lodash/fp.js | 2 - .../node_modules/lodash/fp/F.js | 1 - .../node_modules/lodash/fp/T.js | 1 - .../node_modules/lodash/fp/__.js | 1 - .../node_modules/lodash/fp/_baseConvert.js | 569 - .../node_modules/lodash/fp/_convertBrowser.js | 18 - .../node_modules/lodash/fp/_falseOptions.js | 7 - .../node_modules/lodash/fp/_mapping.js | 358 - .../node_modules/lodash/fp/_util.js | 16 - .../node_modules/lodash/fp/add.js | 5 - .../node_modules/lodash/fp/after.js | 5 - .../node_modules/lodash/fp/all.js | 1 - .../node_modules/lodash/fp/allPass.js | 1 - .../node_modules/lodash/fp/always.js | 1 - .../node_modules/lodash/fp/any.js | 1 - .../node_modules/lodash/fp/anyPass.js | 1 - .../node_modules/lodash/fp/apply.js | 1 - .../node_modules/lodash/fp/array.js | 2 - .../node_modules/lodash/fp/ary.js | 5 - .../node_modules/lodash/fp/assign.js | 5 - .../node_modules/lodash/fp/assignAll.js | 5 - .../node_modules/lodash/fp/assignAllWith.js | 5 - .../node_modules/lodash/fp/assignIn.js | 5 - .../node_modules/lodash/fp/assignInAll.js | 5 - .../node_modules/lodash/fp/assignInAllWith.js | 5 - .../node_modules/lodash/fp/assignInWith.js | 5 - .../node_modules/lodash/fp/assignWith.js | 5 - .../node_modules/lodash/fp/assoc.js | 1 - .../node_modules/lodash/fp/assocPath.js | 1 - .../node_modules/lodash/fp/at.js | 5 - .../node_modules/lodash/fp/attempt.js | 5 - .../node_modules/lodash/fp/before.js | 5 - .../node_modules/lodash/fp/bind.js | 5 - .../node_modules/lodash/fp/bindAll.js | 5 - .../node_modules/lodash/fp/bindKey.js | 5 - .../node_modules/lodash/fp/camelCase.js | 5 - .../node_modules/lodash/fp/capitalize.js | 5 - .../node_modules/lodash/fp/castArray.js | 5 - .../node_modules/lodash/fp/ceil.js | 5 - .../node_modules/lodash/fp/chain.js | 5 - .../node_modules/lodash/fp/chunk.js | 5 - .../node_modules/lodash/fp/clamp.js | 5 - .../node_modules/lodash/fp/clone.js | 5 - .../node_modules/lodash/fp/cloneDeep.js | 5 - .../node_modules/lodash/fp/cloneDeepWith.js | 5 - .../node_modules/lodash/fp/cloneWith.js | 5 - .../node_modules/lodash/fp/collection.js | 2 - .../node_modules/lodash/fp/commit.js | 5 - .../node_modules/lodash/fp/compact.js | 5 - .../node_modules/lodash/fp/complement.js | 1 - .../node_modules/lodash/fp/compose.js | 1 - .../node_modules/lodash/fp/concat.js | 5 - .../node_modules/lodash/fp/cond.js | 5 - .../node_modules/lodash/fp/conforms.js | 1 - .../node_modules/lodash/fp/conformsTo.js | 5 - .../node_modules/lodash/fp/constant.js | 5 - .../node_modules/lodash/fp/contains.js | 1 - .../node_modules/lodash/fp/convert.js | 18 - .../node_modules/lodash/fp/countBy.js | 5 - .../node_modules/lodash/fp/create.js | 5 - .../node_modules/lodash/fp/curry.js | 5 - .../node_modules/lodash/fp/curryN.js | 5 - .../node_modules/lodash/fp/curryRight.js | 5 - .../node_modules/lodash/fp/curryRightN.js | 5 - .../node_modules/lodash/fp/date.js | 2 - .../node_modules/lodash/fp/debounce.js | 5 - .../node_modules/lodash/fp/deburr.js | 5 - .../node_modules/lodash/fp/defaultTo.js | 5 - .../node_modules/lodash/fp/defaults.js | 5 - .../node_modules/lodash/fp/defaultsAll.js | 5 - .../node_modules/lodash/fp/defaultsDeep.js | 5 - .../node_modules/lodash/fp/defaultsDeepAll.js | 5 - .../node_modules/lodash/fp/defer.js | 5 - .../node_modules/lodash/fp/delay.js | 5 - .../node_modules/lodash/fp/difference.js | 5 - .../node_modules/lodash/fp/differenceBy.js | 5 - .../node_modules/lodash/fp/differenceWith.js | 5 - .../node_modules/lodash/fp/dissoc.js | 1 - .../node_modules/lodash/fp/dissocPath.js | 1 - .../node_modules/lodash/fp/divide.js | 5 - .../node_modules/lodash/fp/drop.js | 5 - .../node_modules/lodash/fp/dropLast.js | 1 - .../node_modules/lodash/fp/dropLastWhile.js | 1 - .../node_modules/lodash/fp/dropRight.js | 5 - .../node_modules/lodash/fp/dropRightWhile.js | 5 - .../node_modules/lodash/fp/dropWhile.js | 5 - .../node_modules/lodash/fp/each.js | 1 - .../node_modules/lodash/fp/eachRight.js | 1 - .../node_modules/lodash/fp/endsWith.js | 5 - .../node_modules/lodash/fp/entries.js | 1 - .../node_modules/lodash/fp/entriesIn.js | 1 - .../node_modules/lodash/fp/eq.js | 5 - .../node_modules/lodash/fp/equals.js | 1 - .../node_modules/lodash/fp/escape.js | 5 - .../node_modules/lodash/fp/escapeRegExp.js | 5 - .../node_modules/lodash/fp/every.js | 5 - .../node_modules/lodash/fp/extend.js | 1 - .../node_modules/lodash/fp/extendAll.js | 1 - .../node_modules/lodash/fp/extendAllWith.js | 1 - .../node_modules/lodash/fp/extendWith.js | 1 - .../node_modules/lodash/fp/fill.js | 5 - .../node_modules/lodash/fp/filter.js | 5 - .../node_modules/lodash/fp/find.js | 5 - .../node_modules/lodash/fp/findFrom.js | 5 - .../node_modules/lodash/fp/findIndex.js | 5 - .../node_modules/lodash/fp/findIndexFrom.js | 5 - .../node_modules/lodash/fp/findKey.js | 5 - .../node_modules/lodash/fp/findLast.js | 5 - .../node_modules/lodash/fp/findLastFrom.js | 5 - .../node_modules/lodash/fp/findLastIndex.js | 5 - .../lodash/fp/findLastIndexFrom.js | 5 - .../node_modules/lodash/fp/findLastKey.js | 5 - .../node_modules/lodash/fp/first.js | 1 - .../node_modules/lodash/fp/flatMap.js | 5 - .../node_modules/lodash/fp/flatMapDeep.js | 5 - .../node_modules/lodash/fp/flatMapDepth.js | 5 - .../node_modules/lodash/fp/flatten.js | 5 - .../node_modules/lodash/fp/flattenDeep.js | 5 - .../node_modules/lodash/fp/flattenDepth.js | 5 - .../node_modules/lodash/fp/flip.js | 5 - .../node_modules/lodash/fp/floor.js | 5 - .../node_modules/lodash/fp/flow.js | 5 - .../node_modules/lodash/fp/flowRight.js | 5 - .../node_modules/lodash/fp/forEach.js | 5 - .../node_modules/lodash/fp/forEachRight.js | 5 - .../node_modules/lodash/fp/forIn.js | 5 - .../node_modules/lodash/fp/forInRight.js | 5 - .../node_modules/lodash/fp/forOwn.js | 5 - .../node_modules/lodash/fp/forOwnRight.js | 5 - .../node_modules/lodash/fp/fromPairs.js | 5 - .../node_modules/lodash/fp/function.js | 2 - .../node_modules/lodash/fp/functions.js | 5 - .../node_modules/lodash/fp/functionsIn.js | 5 - .../node_modules/lodash/fp/get.js | 5 - .../node_modules/lodash/fp/getOr.js | 5 - .../node_modules/lodash/fp/groupBy.js | 5 - .../node_modules/lodash/fp/gt.js | 5 - .../node_modules/lodash/fp/gte.js | 5 - .../node_modules/lodash/fp/has.js | 5 - .../node_modules/lodash/fp/hasIn.js | 5 - .../node_modules/lodash/fp/head.js | 5 - .../node_modules/lodash/fp/identical.js | 1 - .../node_modules/lodash/fp/identity.js | 5 - .../node_modules/lodash/fp/inRange.js | 5 - .../node_modules/lodash/fp/includes.js | 5 - .../node_modules/lodash/fp/includesFrom.js | 5 - .../node_modules/lodash/fp/indexBy.js | 1 - .../node_modules/lodash/fp/indexOf.js | 5 - .../node_modules/lodash/fp/indexOfFrom.js | 5 - .../node_modules/lodash/fp/init.js | 1 - .../node_modules/lodash/fp/initial.js | 5 - .../node_modules/lodash/fp/intersection.js | 5 - .../node_modules/lodash/fp/intersectionBy.js | 5 - .../lodash/fp/intersectionWith.js | 5 - .../node_modules/lodash/fp/invert.js | 5 - .../node_modules/lodash/fp/invertBy.js | 5 - .../node_modules/lodash/fp/invertObj.js | 1 - .../node_modules/lodash/fp/invoke.js | 5 - .../node_modules/lodash/fp/invokeArgs.js | 5 - .../node_modules/lodash/fp/invokeArgsMap.js | 5 - .../node_modules/lodash/fp/invokeMap.js | 5 - .../node_modules/lodash/fp/isArguments.js | 5 - .../node_modules/lodash/fp/isArray.js | 5 - .../node_modules/lodash/fp/isArrayBuffer.js | 5 - .../node_modules/lodash/fp/isArrayLike.js | 5 - .../lodash/fp/isArrayLikeObject.js | 5 - .../node_modules/lodash/fp/isBoolean.js | 5 - .../node_modules/lodash/fp/isBuffer.js | 5 - .../node_modules/lodash/fp/isDate.js | 5 - .../node_modules/lodash/fp/isElement.js | 5 - .../node_modules/lodash/fp/isEmpty.js | 5 - .../node_modules/lodash/fp/isEqual.js | 5 - .../node_modules/lodash/fp/isEqualWith.js | 5 - .../node_modules/lodash/fp/isError.js | 5 - .../node_modules/lodash/fp/isFinite.js | 5 - .../node_modules/lodash/fp/isFunction.js | 5 - .../node_modules/lodash/fp/isInteger.js | 5 - .../node_modules/lodash/fp/isLength.js | 5 - .../node_modules/lodash/fp/isMap.js | 5 - .../node_modules/lodash/fp/isMatch.js | 5 - .../node_modules/lodash/fp/isMatchWith.js | 5 - .../node_modules/lodash/fp/isNaN.js | 5 - .../node_modules/lodash/fp/isNative.js | 5 - .../node_modules/lodash/fp/isNil.js | 5 - .../node_modules/lodash/fp/isNull.js | 5 - .../node_modules/lodash/fp/isNumber.js | 5 - .../node_modules/lodash/fp/isObject.js | 5 - .../node_modules/lodash/fp/isObjectLike.js | 5 - .../node_modules/lodash/fp/isPlainObject.js | 5 - .../node_modules/lodash/fp/isRegExp.js | 5 - .../node_modules/lodash/fp/isSafeInteger.js | 5 - .../node_modules/lodash/fp/isSet.js | 5 - .../node_modules/lodash/fp/isString.js | 5 - .../node_modules/lodash/fp/isSymbol.js | 5 - .../node_modules/lodash/fp/isTypedArray.js | 5 - .../node_modules/lodash/fp/isUndefined.js | 5 - .../node_modules/lodash/fp/isWeakMap.js | 5 - .../node_modules/lodash/fp/isWeakSet.js | 5 - .../node_modules/lodash/fp/iteratee.js | 5 - .../node_modules/lodash/fp/join.js | 5 - .../node_modules/lodash/fp/juxt.js | 1 - .../node_modules/lodash/fp/kebabCase.js | 5 - .../node_modules/lodash/fp/keyBy.js | 5 - .../node_modules/lodash/fp/keys.js | 5 - .../node_modules/lodash/fp/keysIn.js | 5 - .../node_modules/lodash/fp/lang.js | 2 - .../node_modules/lodash/fp/last.js | 5 - .../node_modules/lodash/fp/lastIndexOf.js | 5 - .../node_modules/lodash/fp/lastIndexOfFrom.js | 5 - .../node_modules/lodash/fp/lowerCase.js | 5 - .../node_modules/lodash/fp/lowerFirst.js | 5 - .../node_modules/lodash/fp/lt.js | 5 - .../node_modules/lodash/fp/lte.js | 5 - .../node_modules/lodash/fp/map.js | 5 - .../node_modules/lodash/fp/mapKeys.js | 5 - .../node_modules/lodash/fp/mapValues.js | 5 - .../node_modules/lodash/fp/matches.js | 1 - .../node_modules/lodash/fp/matchesProperty.js | 5 - .../node_modules/lodash/fp/math.js | 2 - .../node_modules/lodash/fp/max.js | 5 - .../node_modules/lodash/fp/maxBy.js | 5 - .../node_modules/lodash/fp/mean.js | 5 - .../node_modules/lodash/fp/meanBy.js | 5 - .../node_modules/lodash/fp/memoize.js | 5 - .../node_modules/lodash/fp/merge.js | 5 - .../node_modules/lodash/fp/mergeAll.js | 5 - .../node_modules/lodash/fp/mergeAllWith.js | 5 - .../node_modules/lodash/fp/mergeWith.js | 5 - .../node_modules/lodash/fp/method.js | 5 - .../node_modules/lodash/fp/methodOf.js | 5 - .../node_modules/lodash/fp/min.js | 5 - .../node_modules/lodash/fp/minBy.js | 5 - .../node_modules/lodash/fp/mixin.js | 5 - .../node_modules/lodash/fp/multiply.js | 5 - .../node_modules/lodash/fp/nAry.js | 1 - .../node_modules/lodash/fp/negate.js | 5 - .../node_modules/lodash/fp/next.js | 5 - .../node_modules/lodash/fp/noop.js | 5 - .../node_modules/lodash/fp/now.js | 5 - .../node_modules/lodash/fp/nth.js | 5 - .../node_modules/lodash/fp/nthArg.js | 5 - .../node_modules/lodash/fp/number.js | 2 - .../node_modules/lodash/fp/object.js | 2 - .../node_modules/lodash/fp/omit.js | 5 - .../node_modules/lodash/fp/omitAll.js | 1 - .../node_modules/lodash/fp/omitBy.js | 5 - .../node_modules/lodash/fp/once.js | 5 - .../node_modules/lodash/fp/orderBy.js | 5 - .../node_modules/lodash/fp/over.js | 5 - .../node_modules/lodash/fp/overArgs.js | 5 - .../node_modules/lodash/fp/overEvery.js | 5 - .../node_modules/lodash/fp/overSome.js | 5 - .../node_modules/lodash/fp/pad.js | 5 - .../node_modules/lodash/fp/padChars.js | 5 - .../node_modules/lodash/fp/padCharsEnd.js | 5 - .../node_modules/lodash/fp/padCharsStart.js | 5 - .../node_modules/lodash/fp/padEnd.js | 5 - .../node_modules/lodash/fp/padStart.js | 5 - .../node_modules/lodash/fp/parseInt.js | 5 - .../node_modules/lodash/fp/partial.js | 5 - .../node_modules/lodash/fp/partialRight.js | 5 - .../node_modules/lodash/fp/partition.js | 5 - .../node_modules/lodash/fp/path.js | 1 - .../node_modules/lodash/fp/pathEq.js | 1 - .../node_modules/lodash/fp/pathOr.js | 1 - .../node_modules/lodash/fp/paths.js | 1 - .../node_modules/lodash/fp/pick.js | 5 - .../node_modules/lodash/fp/pickAll.js | 1 - .../node_modules/lodash/fp/pickBy.js | 5 - .../node_modules/lodash/fp/pipe.js | 1 - .../node_modules/lodash/fp/placeholder.js | 6 - .../node_modules/lodash/fp/plant.js | 5 - .../node_modules/lodash/fp/pluck.js | 1 - .../node_modules/lodash/fp/prop.js | 1 - .../node_modules/lodash/fp/propEq.js | 1 - .../node_modules/lodash/fp/propOr.js | 1 - .../node_modules/lodash/fp/property.js | 1 - .../node_modules/lodash/fp/propertyOf.js | 5 - .../node_modules/lodash/fp/props.js | 1 - .../node_modules/lodash/fp/pull.js | 5 - .../node_modules/lodash/fp/pullAll.js | 5 - .../node_modules/lodash/fp/pullAllBy.js | 5 - .../node_modules/lodash/fp/pullAllWith.js | 5 - .../node_modules/lodash/fp/pullAt.js | 5 - .../node_modules/lodash/fp/random.js | 5 - .../node_modules/lodash/fp/range.js | 5 - .../node_modules/lodash/fp/rangeRight.js | 5 - .../node_modules/lodash/fp/rangeStep.js | 5 - .../node_modules/lodash/fp/rangeStepRight.js | 5 - .../node_modules/lodash/fp/rearg.js | 5 - .../node_modules/lodash/fp/reduce.js | 5 - .../node_modules/lodash/fp/reduceRight.js | 5 - .../node_modules/lodash/fp/reject.js | 5 - .../node_modules/lodash/fp/remove.js | 5 - .../node_modules/lodash/fp/repeat.js | 5 - .../node_modules/lodash/fp/replace.js | 5 - .../node_modules/lodash/fp/rest.js | 5 - .../node_modules/lodash/fp/restFrom.js | 5 - .../node_modules/lodash/fp/result.js | 5 - .../node_modules/lodash/fp/reverse.js | 5 - .../node_modules/lodash/fp/round.js | 5 - .../node_modules/lodash/fp/sample.js | 5 - .../node_modules/lodash/fp/sampleSize.js | 5 - .../node_modules/lodash/fp/seq.js | 2 - .../node_modules/lodash/fp/set.js | 5 - .../node_modules/lodash/fp/setWith.js | 5 - .../node_modules/lodash/fp/shuffle.js | 5 - .../node_modules/lodash/fp/size.js | 5 - .../node_modules/lodash/fp/slice.js | 5 - .../node_modules/lodash/fp/snakeCase.js | 5 - .../node_modules/lodash/fp/some.js | 5 - .../node_modules/lodash/fp/sortBy.js | 5 - .../node_modules/lodash/fp/sortedIndex.js | 5 - .../node_modules/lodash/fp/sortedIndexBy.js | 5 - .../node_modules/lodash/fp/sortedIndexOf.js | 5 - .../node_modules/lodash/fp/sortedLastIndex.js | 5 - .../lodash/fp/sortedLastIndexBy.js | 5 - .../lodash/fp/sortedLastIndexOf.js | 5 - .../node_modules/lodash/fp/sortedUniq.js | 5 - .../node_modules/lodash/fp/sortedUniqBy.js | 5 - .../node_modules/lodash/fp/split.js | 5 - .../node_modules/lodash/fp/spread.js | 5 - .../node_modules/lodash/fp/spreadFrom.js | 5 - .../node_modules/lodash/fp/startCase.js | 5 - .../node_modules/lodash/fp/startsWith.js | 5 - .../node_modules/lodash/fp/string.js | 2 - .../node_modules/lodash/fp/stubArray.js | 5 - .../node_modules/lodash/fp/stubFalse.js | 5 - .../node_modules/lodash/fp/stubObject.js | 5 - .../node_modules/lodash/fp/stubString.js | 5 - .../node_modules/lodash/fp/stubTrue.js | 5 - .../node_modules/lodash/fp/subtract.js | 5 - .../node_modules/lodash/fp/sum.js | 5 - .../node_modules/lodash/fp/sumBy.js | 5 - .../lodash/fp/symmetricDifference.js | 1 - .../lodash/fp/symmetricDifferenceBy.js | 1 - .../lodash/fp/symmetricDifferenceWith.js | 1 - .../node_modules/lodash/fp/tail.js | 5 - .../node_modules/lodash/fp/take.js | 5 - .../node_modules/lodash/fp/takeLast.js | 1 - .../node_modules/lodash/fp/takeLastWhile.js | 1 - .../node_modules/lodash/fp/takeRight.js | 5 - .../node_modules/lodash/fp/takeRightWhile.js | 5 - .../node_modules/lodash/fp/takeWhile.js | 5 - .../node_modules/lodash/fp/tap.js | 5 - .../node_modules/lodash/fp/template.js | 5 - .../lodash/fp/templateSettings.js | 5 - .../node_modules/lodash/fp/throttle.js | 5 - .../node_modules/lodash/fp/thru.js | 5 - .../node_modules/lodash/fp/times.js | 5 - .../node_modules/lodash/fp/toArray.js | 5 - .../node_modules/lodash/fp/toFinite.js | 5 - .../node_modules/lodash/fp/toInteger.js | 5 - .../node_modules/lodash/fp/toIterator.js | 5 - .../node_modules/lodash/fp/toJSON.js | 5 - .../node_modules/lodash/fp/toLength.js | 5 - .../node_modules/lodash/fp/toLower.js | 5 - .../node_modules/lodash/fp/toNumber.js | 5 - .../node_modules/lodash/fp/toPairs.js | 5 - .../node_modules/lodash/fp/toPairsIn.js | 5 - .../node_modules/lodash/fp/toPath.js | 5 - .../node_modules/lodash/fp/toPlainObject.js | 5 - .../node_modules/lodash/fp/toSafeInteger.js | 5 - .../node_modules/lodash/fp/toString.js | 5 - .../node_modules/lodash/fp/toUpper.js | 5 - .../node_modules/lodash/fp/transform.js | 5 - .../node_modules/lodash/fp/trim.js | 5 - .../node_modules/lodash/fp/trimChars.js | 5 - .../node_modules/lodash/fp/trimCharsEnd.js | 5 - .../node_modules/lodash/fp/trimCharsStart.js | 5 - .../node_modules/lodash/fp/trimEnd.js | 5 - .../node_modules/lodash/fp/trimStart.js | 5 - .../node_modules/lodash/fp/truncate.js | 5 - .../node_modules/lodash/fp/unapply.js | 1 - .../node_modules/lodash/fp/unary.js | 5 - .../node_modules/lodash/fp/unescape.js | 5 - .../node_modules/lodash/fp/union.js | 5 - .../node_modules/lodash/fp/unionBy.js | 5 - .../node_modules/lodash/fp/unionWith.js | 5 - .../node_modules/lodash/fp/uniq.js | 5 - .../node_modules/lodash/fp/uniqBy.js | 5 - .../node_modules/lodash/fp/uniqWith.js | 5 - .../node_modules/lodash/fp/uniqueId.js | 5 - .../node_modules/lodash/fp/unnest.js | 1 - .../node_modules/lodash/fp/unset.js | 5 - .../node_modules/lodash/fp/unzip.js | 5 - .../node_modules/lodash/fp/unzipWith.js | 5 - .../node_modules/lodash/fp/update.js | 5 - .../node_modules/lodash/fp/updateWith.js | 5 - .../node_modules/lodash/fp/upperCase.js | 5 - .../node_modules/lodash/fp/upperFirst.js | 5 - .../node_modules/lodash/fp/useWith.js | 1 - .../node_modules/lodash/fp/util.js | 2 - .../node_modules/lodash/fp/value.js | 5 - .../node_modules/lodash/fp/valueOf.js | 5 - .../node_modules/lodash/fp/values.js | 5 - .../node_modules/lodash/fp/valuesIn.js | 5 - .../node_modules/lodash/fp/where.js | 1 - .../node_modules/lodash/fp/whereEq.js | 1 - .../node_modules/lodash/fp/without.js | 5 - .../node_modules/lodash/fp/words.js | 5 - .../node_modules/lodash/fp/wrap.js | 5 - .../node_modules/lodash/fp/wrapperAt.js | 5 - .../node_modules/lodash/fp/wrapperChain.js | 5 - .../node_modules/lodash/fp/wrapperLodash.js | 5 - .../node_modules/lodash/fp/wrapperReverse.js | 5 - .../node_modules/lodash/fp/wrapperValue.js | 5 - .../node_modules/lodash/fp/xor.js | 5 - .../node_modules/lodash/fp/xorBy.js | 5 - .../node_modules/lodash/fp/xorWith.js | 5 - .../node_modules/lodash/fp/zip.js | 5 - .../node_modules/lodash/fp/zipAll.js | 5 - .../node_modules/lodash/fp/zipObj.js | 1 - .../node_modules/lodash/fp/zipObject.js | 5 - .../node_modules/lodash/fp/zipObjectDeep.js | 5 - .../node_modules/lodash/fp/zipWith.js | 5 - .../node_modules/lodash/fromPairs.js | 28 - .../node_modules/lodash/function.js | 25 - .../node_modules/lodash/functions.js | 31 - .../node_modules/lodash/functionsIn.js | 31 - .../node_modules/lodash/get.js | 33 - .../node_modules/lodash/groupBy.js | 41 - Easebuzz_NodeJS_kit/node_modules/lodash/gt.js | 29 - .../node_modules/lodash/gte.js | 30 - .../node_modules/lodash/has.js | 35 - .../node_modules/lodash/hasIn.js | 34 - .../node_modules/lodash/head.js | 23 - .../node_modules/lodash/identity.js | 21 - .../node_modules/lodash/inRange.js | 55 - .../node_modules/lodash/includes.js | 53 - .../node_modules/lodash/index.js | 1 - .../node_modules/lodash/indexOf.js | 42 - .../node_modules/lodash/initial.js | 22 - .../node_modules/lodash/intersection.js | 30 - .../node_modules/lodash/intersectionBy.js | 45 - .../node_modules/lodash/intersectionWith.js | 41 - .../node_modules/lodash/invert.js | 42 - .../node_modules/lodash/invertBy.js | 56 - .../node_modules/lodash/invoke.js | 24 - .../node_modules/lodash/invokeMap.js | 41 - .../node_modules/lodash/isArguments.js | 36 - .../node_modules/lodash/isArray.js | 26 - .../node_modules/lodash/isArrayBuffer.js | 27 - .../node_modules/lodash/isArrayLike.js | 33 - .../node_modules/lodash/isArrayLikeObject.js | 33 - .../node_modules/lodash/isBoolean.js | 29 - .../node_modules/lodash/isBuffer.js | 38 - .../node_modules/lodash/isDate.js | 27 - .../node_modules/lodash/isElement.js | 25 - .../node_modules/lodash/isEmpty.js | 77 - .../node_modules/lodash/isEqual.js | 35 - .../node_modules/lodash/isEqualWith.js | 41 - .../node_modules/lodash/isError.js | 36 - .../node_modules/lodash/isFinite.js | 36 - .../node_modules/lodash/isFunction.js | 37 - .../node_modules/lodash/isInteger.js | 33 - .../node_modules/lodash/isLength.js | 35 - .../node_modules/lodash/isMap.js | 27 - .../node_modules/lodash/isMatch.js | 36 - .../node_modules/lodash/isMatchWith.js | 41 - .../node_modules/lodash/isNaN.js | 38 - .../node_modules/lodash/isNative.js | 40 - .../node_modules/lodash/isNil.js | 25 - .../node_modules/lodash/isNull.js | 22 - .../node_modules/lodash/isNumber.js | 38 - .../node_modules/lodash/isObject.js | 31 - .../node_modules/lodash/isObjectLike.js | 29 - .../node_modules/lodash/isPlainObject.js | 62 - .../node_modules/lodash/isRegExp.js | 27 - .../node_modules/lodash/isSafeInteger.js | 37 - .../node_modules/lodash/isSet.js | 27 - .../node_modules/lodash/isString.js | 30 - .../node_modules/lodash/isSymbol.js | 29 - .../node_modules/lodash/isTypedArray.js | 27 - .../node_modules/lodash/isUndefined.js | 22 - .../node_modules/lodash/isWeakMap.js | 28 - .../node_modules/lodash/isWeakSet.js | 28 - .../node_modules/lodash/iteratee.js | 53 - .../node_modules/lodash/join.js | 26 - .../node_modules/lodash/kebabCase.js | 28 - .../node_modules/lodash/keyBy.js | 36 - .../node_modules/lodash/keys.js | 37 - .../node_modules/lodash/keysIn.js | 32 - .../node_modules/lodash/lang.js | 58 - .../node_modules/lodash/last.js | 20 - .../node_modules/lodash/lastIndexOf.js | 46 - .../node_modules/lodash/lodash.js | 17112 ---------------- .../node_modules/lodash/lodash.min.js | 137 - .../node_modules/lodash/lowerCase.js | 27 - .../node_modules/lodash/lowerFirst.js | 22 - Easebuzz_NodeJS_kit/node_modules/lodash/lt.js | 29 - .../node_modules/lodash/lte.js | 30 - .../node_modules/lodash/map.js | 53 - .../node_modules/lodash/mapKeys.js | 36 - .../node_modules/lodash/mapValues.js | 43 - .../node_modules/lodash/matches.js | 39 - .../node_modules/lodash/matchesProperty.js | 37 - .../node_modules/lodash/math.js | 17 - .../node_modules/lodash/max.js | 29 - .../node_modules/lodash/maxBy.js | 34 - .../node_modules/lodash/mean.js | 22 - .../node_modules/lodash/meanBy.js | 31 - .../node_modules/lodash/memoize.js | 73 - .../node_modules/lodash/merge.js | 39 - .../node_modules/lodash/mergeWith.js | 39 - .../node_modules/lodash/method.js | 34 - .../node_modules/lodash/methodOf.js | 33 - .../node_modules/lodash/min.js | 29 - .../node_modules/lodash/minBy.js | 34 - .../node_modules/lodash/mixin.js | 74 - .../node_modules/lodash/multiply.js | 22 - .../node_modules/lodash/negate.js | 40 - .../node_modules/lodash/next.js | 35 - .../node_modules/lodash/noop.js | 17 - .../node_modules/lodash/now.js | 23 - .../node_modules/lodash/nth.js | 29 - .../node_modules/lodash/nthArg.js | 32 - .../node_modules/lodash/number.js | 5 - .../node_modules/lodash/object.js | 49 - .../node_modules/lodash/omit.js | 57 - .../node_modules/lodash/omitBy.js | 29 - .../node_modules/lodash/once.js | 25 - .../node_modules/lodash/orderBy.js | 47 - .../node_modules/lodash/over.js | 24 - .../node_modules/lodash/overArgs.js | 61 - .../node_modules/lodash/overEvery.js | 30 - .../node_modules/lodash/overSome.js | 30 - .../node_modules/lodash/package.json | 100 - .../node_modules/lodash/pad.js | 49 - .../node_modules/lodash/padEnd.js | 39 - .../node_modules/lodash/padStart.js | 39 - .../node_modules/lodash/parseInt.js | 43 - .../node_modules/lodash/partial.js | 50 - .../node_modules/lodash/partialRight.js | 49 - .../node_modules/lodash/partition.js | 43 - .../node_modules/lodash/pick.js | 25 - .../node_modules/lodash/pickBy.js | 37 - .../node_modules/lodash/plant.js | 48 - .../node_modules/lodash/property.js | 32 - .../node_modules/lodash/propertyOf.js | 30 - .../node_modules/lodash/pull.js | 29 - .../node_modules/lodash/pullAll.js | 29 - .../node_modules/lodash/pullAllBy.js | 33 - .../node_modules/lodash/pullAllWith.js | 32 - .../node_modules/lodash/pullAt.js | 43 - .../node_modules/lodash/random.js | 82 - .../node_modules/lodash/range.js | 46 - .../node_modules/lodash/rangeRight.js | 41 - .../node_modules/lodash/rearg.js | 33 - .../node_modules/lodash/reduce.js | 51 - .../node_modules/lodash/reduceRight.js | 36 - .../node_modules/lodash/reject.js | 46 - .../node_modules/lodash/remove.js | 53 - .../node_modules/lodash/repeat.js | 37 - .../node_modules/lodash/replace.js | 29 - .../node_modules/lodash/rest.js | 40 - .../node_modules/lodash/result.js | 56 - .../node_modules/lodash/reverse.js | 34 - .../node_modules/lodash/round.js | 26 - .../node_modules/lodash/sample.js | 24 - .../node_modules/lodash/sampleSize.js | 37 - .../node_modules/lodash/seq.js | 16 - .../node_modules/lodash/set.js | 35 - .../node_modules/lodash/setWith.js | 32 - .../node_modules/lodash/shuffle.js | 25 - .../node_modules/lodash/size.js | 46 - .../node_modules/lodash/slice.js | 37 - .../node_modules/lodash/snakeCase.js | 28 - .../node_modules/lodash/some.js | 51 - .../node_modules/lodash/sortBy.js | 48 - .../node_modules/lodash/sortedIndex.js | 24 - .../node_modules/lodash/sortedIndexBy.js | 33 - .../node_modules/lodash/sortedIndexOf.js | 31 - .../node_modules/lodash/sortedLastIndex.js | 25 - .../node_modules/lodash/sortedLastIndexBy.js | 33 - .../node_modules/lodash/sortedLastIndexOf.js | 31 - .../node_modules/lodash/sortedUniq.js | 24 - .../node_modules/lodash/sortedUniqBy.js | 26 - .../node_modules/lodash/split.js | 52 - .../node_modules/lodash/spread.js | 63 - .../node_modules/lodash/startCase.js | 29 - .../node_modules/lodash/startsWith.js | 39 - .../node_modules/lodash/string.js | 33 - .../node_modules/lodash/stubArray.js | 23 - .../node_modules/lodash/stubFalse.js | 18 - .../node_modules/lodash/stubObject.js | 23 - .../node_modules/lodash/stubString.js | 18 - .../node_modules/lodash/stubTrue.js | 18 - .../node_modules/lodash/subtract.js | 22 - .../node_modules/lodash/sum.js | 24 - .../node_modules/lodash/sumBy.js | 33 - .../node_modules/lodash/tail.js | 22 - .../node_modules/lodash/take.js | 37 - .../node_modules/lodash/takeRight.js | 39 - .../node_modules/lodash/takeRightWhile.js | 45 - .../node_modules/lodash/takeWhile.js | 45 - .../node_modules/lodash/tap.js | 29 - .../node_modules/lodash/template.js | 253 - .../node_modules/lodash/templateSettings.js | 67 - .../node_modules/lodash/throttle.js | 69 - .../node_modules/lodash/thru.js | 28 - .../node_modules/lodash/times.js | 51 - .../node_modules/lodash/toArray.js | 58 - .../node_modules/lodash/toFinite.js | 42 - .../node_modules/lodash/toInteger.js | 36 - .../node_modules/lodash/toIterator.js | 23 - .../node_modules/lodash/toJSON.js | 1 - .../node_modules/lodash/toLength.js | 38 - .../node_modules/lodash/toLower.js | 28 - .../node_modules/lodash/toNumber.js | 66 - .../node_modules/lodash/toPairs.js | 30 - .../node_modules/lodash/toPairsIn.js | 30 - .../node_modules/lodash/toPath.js | 33 - .../node_modules/lodash/toPlainObject.js | 32 - .../node_modules/lodash/toSafeInteger.js | 37 - .../node_modules/lodash/toString.js | 28 - .../node_modules/lodash/toUpper.js | 28 - .../node_modules/lodash/transform.js | 65 - .../node_modules/lodash/trim.js | 49 - .../node_modules/lodash/trimEnd.js | 43 - .../node_modules/lodash/trimStart.js | 43 - .../node_modules/lodash/truncate.js | 111 - .../node_modules/lodash/unary.js | 22 - .../node_modules/lodash/unescape.js | 34 - .../node_modules/lodash/union.js | 26 - .../node_modules/lodash/unionBy.js | 39 - .../node_modules/lodash/unionWith.js | 34 - .../node_modules/lodash/uniq.js | 25 - .../node_modules/lodash/uniqBy.js | 31 - .../node_modules/lodash/uniqWith.js | 28 - .../node_modules/lodash/uniqueId.js | 28 - .../node_modules/lodash/unset.js | 34 - .../node_modules/lodash/unzip.js | 45 - .../node_modules/lodash/unzipWith.js | 39 - .../node_modules/lodash/update.js | 35 - .../node_modules/lodash/updateWith.js | 33 - .../node_modules/lodash/upperCase.js | 27 - .../node_modules/lodash/upperFirst.js | 22 - .../node_modules/lodash/util.js | 34 - .../node_modules/lodash/value.js | 1 - .../node_modules/lodash/valueOf.js | 1 - .../node_modules/lodash/values.js | 34 - .../node_modules/lodash/valuesIn.js | 32 - .../node_modules/lodash/without.js | 31 - .../node_modules/lodash/words.js | 35 - .../node_modules/lodash/wrap.js | 30 - .../node_modules/lodash/wrapperAt.js | 48 - .../node_modules/lodash/wrapperChain.js | 34 - .../node_modules/lodash/wrapperLodash.js | 147 - .../node_modules/lodash/wrapperReverse.js | 44 - .../node_modules/lodash/wrapperValue.js | 21 - .../node_modules/lodash/xor.js | 28 - .../node_modules/lodash/xorBy.js | 39 - .../node_modules/lodash/xorWith.js | 34 - .../node_modules/lodash/zip.js | 22 - .../node_modules/lodash/zipObject.js | 24 - .../node_modules/lodash/zipObjectDeep.js | 23 - .../node_modules/lodash/zipWith.js | 32 - .../node_modules/lowercase-keys/index.js | 11 - .../node_modules/lowercase-keys/license | 21 - .../node_modules/lowercase-keys/package.json | 68 - .../node_modules/lowercase-keys/readme.md | 33 - .../node_modules/make-dir/index.d.ts | 66 - .../node_modules/make-dir/index.js | 156 - .../node_modules/make-dir/license | 9 - .../make-dir/node_modules/.bin/semver | 1 - .../make-dir/node_modules/semver/CHANGELOG.md | 70 - .../make-dir/node_modules/semver/LICENSE | 15 - .../make-dir/node_modules/semver/README.md | 443 - .../node_modules/semver/bin/semver.js | 174 - .../make-dir/node_modules/semver/package.json | 60 - .../make-dir/node_modules/semver/range.bnf | 16 - .../make-dir/node_modules/semver/semver.js | 1596 -- .../node_modules/make-dir/package.json | 91 - .../node_modules/make-dir/readme.md | 125 - .../node_modules/mimic-response/index.js | 32 - .../node_modules/mimic-response/license | 9 - .../node_modules/mimic-response/package.json | 71 - .../node_modules/mimic-response/readme.md | 54 - .../node_modules/min-document/.jshintrc | 30 - .../node_modules/min-document/.npmignore | 15 - .../node_modules/min-document/.testem.json | 14 - .../node_modules/min-document/.travis.yml | 6 - .../node_modules/min-document/CONTRIBUTION.md | 48 - .../node_modules/min-document/LICENCE | 19 - .../node_modules/min-document/README.md | 43 - .../node_modules/min-document/docs.mli | 156 - .../node_modules/min-document/document.js | 72 - .../node_modules/min-document/dom-comment.js | 19 - .../node_modules/min-document/dom-element.js | 209 - .../node_modules/min-document/dom-fragment.js | 28 - .../node_modules/min-document/dom-text.js | 27 - .../node_modules/min-document/event.js | 13 - .../min-document/event/add-event-listener.js | 17 - .../min-document/event/dispatch-event.js | 31 - .../event/remove-event-listener.js | 19 - .../node_modules/min-document/index.js | 3 - .../node_modules/min-document/package.json | 120 - .../node_modules/min-document/serialize.js | 139 - .../node_modules/min-document/test/cleanup.js | 13 - .../node_modules/min-document/test/index.js | 14 - .../min-document/test/static/index.html | 11 - .../min-document/test/static/test-adapter.js | 49 - .../min-document/test/test-document.js | 564 - .../min-document/test/test-dom-comment.js | 20 - .../min-document/test/test-dom-element.js | 219 - .../node_modules/minimatch/LICENSE | 15 - .../node_modules/minimatch/README.md | 209 - .../node_modules/minimatch/minimatch.js | 923 - .../node_modules/minimatch/package.json | 92 - .../node_modules/minimist/.travis.yml | 8 - .../node_modules/minimist/LICENSE | 18 - .../node_modules/minimist/example/parse.js | 2 - .../node_modules/minimist/index.js | 245 - .../node_modules/minimist/package.json | 73 - .../node_modules/minimist/readme.markdown | 95 - .../node_modules/minimist/test/all_bool.js | 32 - .../node_modules/minimist/test/bool.js | 178 - .../node_modules/minimist/test/dash.js | 31 - .../minimist/test/default_bool.js | 35 - .../node_modules/minimist/test/dotted.js | 22 - .../node_modules/minimist/test/kv_short.js | 16 - .../node_modules/minimist/test/long.js | 31 - .../node_modules/minimist/test/num.js | 36 - .../node_modules/minimist/test/parse.js | 197 - .../minimist/test/parse_modified.js | 9 - .../node_modules/minimist/test/proto.js | 44 - .../node_modules/minimist/test/short.js | 67 - .../node_modules/minimist/test/stop_early.js | 15 - .../node_modules/minimist/test/unknown.js | 102 - .../node_modules/minimist/test/whitespace.js | 8 - Easebuzz_NodeJS_kit/node_modules/ms/index.js | 162 - .../node_modules/ms/license.md | 21 - .../node_modules/ms/package.json | 69 - Easebuzz_NodeJS_kit/node_modules/ms/readme.md | 60 - .../node_modules/nodemon/.jscsrc | 13 - .../node_modules/nodemon/.jshintrc | 16 - .../node_modules/nodemon/.travis.yml | 18 - .../node_modules/nodemon/LICENSE | 21 - .../node_modules/nodemon/README.md | 379 - .../node_modules/nodemon/bin/nodemon.js | 16 - .../node_modules/nodemon/bin/postinstall.js | 29 - .../node_modules/nodemon/commitlint.config.js | 7 - .../node_modules/nodemon/doc/cli/authors.txt | 8 - .../node_modules/nodemon/doc/cli/config.txt | 44 - .../node_modules/nodemon/doc/cli/help.txt | 29 - .../node_modules/nodemon/doc/cli/logo.txt | 20 - .../node_modules/nodemon/doc/cli/options.txt | 36 - .../node_modules/nodemon/doc/cli/topics.txt | 8 - .../node_modules/nodemon/doc/cli/usage.txt | 3 - .../node_modules/nodemon/doc/cli/whoami.txt | 9 - .../node_modules/nodemon/lib/cli/index.js | 49 - .../node_modules/nodemon/lib/cli/parse.js | 230 - .../nodemon/lib/config/command.js | 43 - .../nodemon/lib/config/defaults.js | 28 - .../node_modules/nodemon/lib/config/exec.js | 225 - .../node_modules/nodemon/lib/config/index.js | 93 - .../node_modules/nodemon/lib/config/load.js | 254 - .../node_modules/nodemon/lib/help/index.js | 27 - .../node_modules/nodemon/lib/index.js | 1 - .../node_modules/nodemon/lib/monitor/index.js | 4 - .../node_modules/nodemon/lib/monitor/match.js | 269 - .../node_modules/nodemon/lib/monitor/run.js | 459 - .../nodemon/lib/monitor/signals.js | 34 - .../node_modules/nodemon/lib/monitor/watch.js | 239 - .../node_modules/nodemon/lib/nodemon.js | 309 - .../node_modules/nodemon/lib/rules/add.js | 89 - .../node_modules/nodemon/lib/rules/index.js | 53 - .../node_modules/nodemon/lib/rules/parse.js | 43 - .../node_modules/nodemon/lib/spawn.js | 55 - .../node_modules/nodemon/lib/utils/bus.js | 44 - .../node_modules/nodemon/lib/utils/clone.js | 40 - .../node_modules/nodemon/lib/utils/colour.js | 26 - .../node_modules/nodemon/lib/utils/index.js | 102 - .../node_modules/nodemon/lib/utils/log.js | 82 - .../node_modules/nodemon/lib/utils/merge.js | 47 - .../node_modules/nodemon/lib/version.js | 100 - .../node_modules/nodemon/package.json | 102 - .../node_modules/nopt/.npmignore | 0 Easebuzz_NodeJS_kit/node_modules/nopt/LICENSE | 23 - .../node_modules/nopt/README.md | 208 - .../node_modules/nopt/bin/nopt.js | 44 - .../node_modules/nopt/examples/my-program.js | 30 - .../node_modules/nopt/lib/nopt.js | 552 - .../node_modules/nopt/package.json | 60 - .../node_modules/normalize-path/LICENSE | 21 - .../node_modules/normalize-path/README.md | 127 - .../node_modules/normalize-path/index.js | 35 - .../node_modules/normalize-path/package.json | 115 - .../node_modules/normalize-url/index.d.ts | 216 - .../node_modules/normalize-url/index.js | 221 - .../node_modules/normalize-url/license | 9 - .../node_modules/normalize-url/package.json | 76 - .../node_modules/normalize-url/readme.md | 232 - Easebuzz_NodeJS_kit/node_modules/once/LICENSE | 15 - .../node_modules/once/README.md | 79 - Easebuzz_NodeJS_kit/node_modules/once/once.js | 42 - .../node_modules/once/package.json | 67 - .../node_modules/p-cancelable/index.d.ts | 168 - .../node_modules/p-cancelable/index.js | 103 - .../node_modules/p-cancelable/license | 9 - .../node_modules/p-cancelable/package.json | 81 - .../node_modules/p-cancelable/readme.md | 155 - .../node_modules/package-json/index.d.ts | 199 - .../node_modules/package-json/index.js | 115 - .../node_modules/package-json/license | 9 - .../package-json/node_modules/.bin/semver | 1 - .../node_modules/semver/CHANGELOG.md | 70 - .../package-json/node_modules/semver/LICENSE | 15 - .../node_modules/semver/README.md | 443 - .../node_modules/semver/bin/semver.js | 174 - .../node_modules/semver/package.json | 60 - .../node_modules/semver/range.bnf | 16 - .../node_modules/semver/semver.js | 1596 -- .../node_modules/package-json/package.json | 78 - .../node_modules/package-json/readme.md | 118 - .../node_modules/picomatch/CHANGELOG.md | 113 - .../node_modules/picomatch/LICENSE | 21 - .../node_modules/picomatch/README.md | 691 - .../node_modules/picomatch/index.js | 3 - .../node_modules/picomatch/lib/constants.js | 179 - .../node_modules/picomatch/lib/parse.js | 1078 - .../node_modules/picomatch/lib/picomatch.js | 339 - .../node_modules/picomatch/lib/scan.js | 383 - .../node_modules/picomatch/lib/utils.js | 64 - .../node_modules/picomatch/package.json | 113 - .../node_modules/prepend-http/index.js | 15 - .../node_modules/prepend-http/license | 9 - .../node_modules/prepend-http/package.json | 67 - .../node_modules/prepend-http/readme.md | 56 - .../node_modules/process/LICENSE | 22 - .../node_modules/process/README.md | 15 - .../node_modules/process/browser.js | 53 - .../node_modules/process/index.js | 2 - .../node_modules/process/package.json | 73 - .../node_modules/pstree.remy/.travis.yml | 8 - .../node_modules/pstree.remy/LICENSE | 7 - .../node_modules/pstree.remy/README.md | 26 - .../node_modules/pstree.remy/lib/index.js | 37 - .../node_modules/pstree.remy/lib/tree.js | 37 - .../node_modules/pstree.remy/lib/utils.js | 53 - .../node_modules/pstree.remy/package.json | 64 - .../pstree.remy/tests/fixtures/index.js | 13 - .../pstree.remy/tests/fixtures/out1 | 10 - .../pstree.remy/tests/fixtures/out2 | 29 - .../pstree.remy/tests/index.test.js | 51 - .../node_modules/pump/.travis.yml | 5 - Easebuzz_NodeJS_kit/node_modules/pump/LICENSE | 21 - .../node_modules/pump/README.md | 65 - .../node_modules/pump/index.js | 82 - .../node_modules/pump/package.json | 60 - .../node_modules/pump/test-browser.js | 66 - .../node_modules/pump/test-node.js | 53 - .../node_modules/pupa/index.d.ts | 32 - .../node_modules/pupa/index.js | 38 - Easebuzz_NodeJS_kit/node_modules/pupa/license | 9 - .../node_modules/pupa/package.json | 79 - .../node_modules/pupa/readme.md | 63 - .../node_modules/rc/LICENSE.APACHE2 | 15 - .../node_modules/rc/LICENSE.BSD | 26 - .../node_modules/rc/LICENSE.MIT | 24 - Easebuzz_NodeJS_kit/node_modules/rc/README.md | 227 - .../node_modules/rc/browser.js | 7 - Easebuzz_NodeJS_kit/node_modules/rc/cli.js | 4 - Easebuzz_NodeJS_kit/node_modules/rc/index.js | 53 - .../node_modules/rc/lib/utils.js | 104 - .../node_modules/rc/package.json | 65 - .../node_modules/rc/test/ini.js | 16 - .../node_modules/rc/test/nested-env-vars.js | 50 - .../node_modules/rc/test/test.js | 59 - .../node_modules/readdirp/LICENSE | 21 - .../node_modules/readdirp/README.md | 120 - .../node_modules/readdirp/index.d.ts | 43 - .../node_modules/readdirp/index.js | 275 - .../node_modules/readdirp/package.json | 157 - .../registry-auth-token/CHANGELOG.md | 128 - .../node_modules/registry-auth-token/LICENSE | 21 - .../registry-auth-token/README.md | 65 - .../registry-auth-token/base64.js | 12 - .../node_modules/registry-auth-token/index.js | 140 - .../registry-auth-token/package.json | 76 - .../registry-auth-token/registry-url.js | 5 - .../test/auth-token.test.js | 474 - .../test/registry-url.test.js | 64 - .../node_modules/registry-url/index.d.ts | 33 - .../node_modules/registry-url/index.js | 12 - .../node_modules/registry-url/license | 9 - .../node_modules/registry-url/package.json | 76 - .../node_modules/registry-url/readme.md | 50 - .../node_modules/responselike/LICENSE | 19 - .../node_modules/responselike/README.md | 77 - .../node_modules/responselike/package.json | 69 - .../node_modules/responselike/src/index.js | 34 - .../node_modules/semver-diff/index.d.ts | 58 - .../node_modules/semver-diff/index.js | 13 - .../node_modules/semver-diff/license | 9 - .../semver-diff/node_modules/.bin/semver | 1 - .../node_modules/semver/CHANGELOG.md | 70 - .../semver-diff/node_modules/semver/LICENSE | 15 - .../semver-diff/node_modules/semver/README.md | 443 - .../node_modules/semver/bin/semver.js | 174 - .../node_modules/semver/package.json | 60 - .../semver-diff/node_modules/semver/range.bnf | 16 - .../semver-diff/node_modules/semver/semver.js | 1596 -- .../node_modules/semver-diff/package.json | 69 - .../node_modules/semver-diff/readme.md | 77 - .../node_modules/semver/CHANGELOG.md | 39 - .../node_modules/semver/LICENSE | 15 - .../node_modules/semver/README.md | 412 - .../node_modules/semver/bin/semver | 160 - .../node_modules/semver/package.json | 60 - .../node_modules/semver/range.bnf | 16 - .../node_modules/semver/semver.js | 1483 -- .../node_modules/signal-exit/CHANGELOG.md | 35 - .../node_modules/signal-exit/LICENSE.txt | 16 - .../node_modules/signal-exit/README.md | 39 - .../node_modules/signal-exit/index.js | 163 - .../node_modules/signal-exit/package.json | 66 - .../node_modules/signal-exit/signals.js | 53 - .../node_modules/string-width/index.d.ts | 29 - .../node_modules/string-width/index.js | 43 - .../node_modules/string-width/license | 9 - .../node_modules/ansi-regex/index.d.ts | 37 - .../node_modules/ansi-regex/index.js | 10 - .../node_modules/ansi-regex/license | 9 - .../node_modules/ansi-regex/package.json | 87 - .../node_modules/ansi-regex/readme.md | 78 - .../node_modules/emoji-regex/LICENSE-MIT.txt | 20 - .../node_modules/emoji-regex/README.md | 73 - .../node_modules/emoji-regex/es2015/index.js | 6 - .../node_modules/emoji-regex/es2015/text.js | 6 - .../node_modules/emoji-regex/index.d.ts | 23 - .../node_modules/emoji-regex/index.js | 6 - .../node_modules/emoji-regex/package.json | 77 - .../node_modules/emoji-regex/text.js | 6 - .../is-fullwidth-code-point/index.d.ts | 17 - .../is-fullwidth-code-point/index.js | 50 - .../is-fullwidth-code-point/license | 9 - .../is-fullwidth-code-point/package.json | 74 - .../is-fullwidth-code-point/readme.md | 39 - .../node_modules/strip-ansi/index.d.ts | 17 - .../node_modules/strip-ansi/index.js | 4 - .../node_modules/strip-ansi/license | 9 - .../node_modules/strip-ansi/package.json | 86 - .../node_modules/strip-ansi/readme.md | 46 - .../node_modules/string-width/package.json | 89 - .../node_modules/string-width/readme.md | 50 - .../node_modules/strip-ansi/index.d.ts | 15 - .../node_modules/strip-ansi/index.js | 7 - .../node_modules/strip-ansi/license | 9 - .../node_modules/strip-ansi/package.json | 86 - .../node_modules/strip-ansi/readme.md | 61 - .../node_modules/strip-json-comments/index.js | 70 - .../node_modules/strip-json-comments/license | 21 - .../strip-json-comments/package.json | 74 - .../strip-json-comments/readme.md | 64 - .../node_modules/supports-color/browser.js | 5 - .../node_modules/supports-color/index.js | 131 - .../node_modules/supports-color/license | 9 - .../node_modules/supports-color/package.json | 121 - .../node_modules/supports-color/readme.md | 66 - .../node_modules/term-size/index.d.ts | 21 - .../node_modules/term-size/index.js | 72 - .../node_modules/term-size/license | 9 - .../node_modules/term-size/package.json | 75 - .../node_modules/term-size/readme.md | 48 - .../term-size/vendor/macos/term-size | Bin 27264 -> 0 bytes .../term-size/vendor/windows/term-size.exe | Bin 17408 -> 0 bytes .../node_modules/to-readable-stream/index.js | 11 - .../node_modules/to-readable-stream/license | 9 - .../to-readable-stream/package.json | 72 - .../node_modules/to-readable-stream/readme.md | 42 - .../node_modules/to-regex-range/LICENSE | 21 - .../node_modules/to-regex-range/README.md | 305 - .../node_modules/to-regex-range/index.js | 288 - .../node_modules/to-regex-range/package.json | 125 - .../node_modules/touch/LICENSE | 15 - .../node_modules/touch/README.md | 52 - .../node_modules/touch/bin/nodetouch.js | 112 - .../node_modules/touch/index.js | 224 - .../node_modules/touch/package.json | 64 - .../node_modules/type-fest/index.d.ts | 20 - .../node_modules/type-fest/license | 9 - .../node_modules/type-fest/package.json | 83 - .../node_modules/type-fest/readme.md | 635 - .../node_modules/type-fest/source/basic.d.ts | 67 - .../node_modules/type-fest/source/except.d.ts | 22 - .../type-fest/source/literal-union.d.ts | 33 - .../type-fest/source/merge-exclusive.d.ts | 39 - .../node_modules/type-fest/source/merge.d.ts | 22 - .../type-fest/source/mutable.d.ts | 22 - .../node_modules/type-fest/source/opaque.d.ts | 40 - .../type-fest/source/package-json.d.ts | 501 - .../type-fest/source/partial-deep.d.ts | 72 - .../type-fest/source/promisable.d.ts | 23 - .../type-fest/source/readonly-deep.d.ts | 59 - .../source/require-at-least-one.d.ts | 32 - .../type-fest/source/require-exactly-one.d.ts | 36 - .../type-fest/source/set-optional.d.ts | 32 - .../type-fest/source/set-required.d.ts | 32 - .../typedarray-to-buffer/.airtap.yml | 15 - .../typedarray-to-buffer/.travis.yml | 11 - .../node_modules/typedarray-to-buffer/LICENSE | 21 - .../typedarray-to-buffer/README.md | 85 - .../typedarray-to-buffer/index.js | 25 - .../typedarray-to-buffer/package.json | 75 - .../typedarray-to-buffer/test/basic.js | 50 - .../node_modules/undefsafe/.jscsrc | 13 - .../node_modules/undefsafe/.jshintrc | 16 - .../node_modules/undefsafe/.npmignore | 2 - .../node_modules/undefsafe/.travis.yml | 18 - .../node_modules/undefsafe/LICENSE | 22 - .../node_modules/undefsafe/README.md | 63 - .../node_modules/undefsafe/example.js | 14 - .../node_modules/undefsafe/lib/undefsafe.js | 125 - .../node_modules/debug/.coveralls.yml | 1 - .../undefsafe/node_modules/debug/.eslintrc | 11 - .../undefsafe/node_modules/debug/.npmignore | 9 - .../undefsafe/node_modules/debug/.travis.yml | 14 - .../undefsafe/node_modules/debug/CHANGELOG.md | 362 - .../undefsafe/node_modules/debug/LICENSE | 19 - .../undefsafe/node_modules/debug/Makefile | 50 - .../undefsafe/node_modules/debug/README.md | 312 - .../node_modules/debug/component.json | 19 - .../node_modules/debug/karma.conf.js | 70 - .../undefsafe/node_modules/debug/node.js | 1 - .../undefsafe/node_modules/debug/package.json | 88 - .../node_modules/debug/src/browser.js | 185 - .../undefsafe/node_modules/debug/src/debug.js | 202 - .../undefsafe/node_modules/debug/src/index.js | 10 - .../node_modules/debug/src/inspector-log.js | 15 - .../undefsafe/node_modules/debug/src/node.js | 248 - .../undefsafe/node_modules/ms/index.js | 152 - .../undefsafe/node_modules/ms/license.md | 21 - .../undefsafe/node_modules/ms/package.json | 69 - .../undefsafe/node_modules/ms/readme.md | 51 - .../node_modules/undefsafe/package.json | 67 - .../node_modules/unique-string/index.d.ts | 16 - .../node_modules/unique-string/index.js | 4 - .../node_modules/unique-string/license | 9 - .../node_modules/unique-string/package.json | 72 - .../node_modules/unique-string/readme.md | 32 - .../node_modules/update-notifier/check.js | 28 - .../node_modules/update-notifier/index.js | 187 - .../node_modules/update-notifier/license | 9 - .../node_modules/update-notifier/package.json | 96 - .../node_modules/update-notifier/readme.md | 224 - .../node_modules/url-parse-lax/index.js | 12 - .../node_modules/url-parse-lax/license | 9 - .../node_modules/url-parse-lax/package.json | 74 - .../node_modules/url-parse-lax/readme.md | 127 - .../node_modules/widest-line/index.d.ts | 21 - .../node_modules/widest-line/index.js | 16 - .../node_modules/widest-line/license | 9 - .../node_modules/widest-line/package.json | 86 - .../node_modules/widest-line/readme.md | 34 - .../node_modules/wrappy/LICENSE | 15 - .../node_modules/wrappy/README.md | 36 - .../node_modules/wrappy/package.json | 58 - .../node_modules/wrappy/wrappy.js | 33 - .../write-file-atomic/CHANGELOG.md | 32 - .../node_modules/write-file-atomic/LICENSE | 6 - .../node_modules/write-file-atomic/README.md | 72 - .../node_modules/write-file-atomic/index.js | 259 - .../write-file-atomic/package.json | 77 - .../node_modules/xdg-basedir/index.d.ts | 81 - .../node_modules/xdg-basedir/index.js | 28 - .../node_modules/xdg-basedir/license | 9 - .../node_modules/xdg-basedir/package.json | 74 - .../node_modules/xdg-basedir/readme.md | 60 - Easebuzz_NodeJS_kit/package-lock.json | 2376 ++- 2237 files changed, 2026 insertions(+), 148009 deletions(-) delete mode 120000 Easebuzz_NodeJS_kit/node_modules/.bin/ejs delete mode 120000 Easebuzz_NodeJS_kit/node_modules/.bin/is-ci delete mode 120000 Easebuzz_NodeJS_kit/node_modules/.bin/jake delete mode 120000 Easebuzz_NodeJS_kit/node_modules/.bin/nodemon delete mode 120000 Easebuzz_NodeJS_kit/node_modules/.bin/nodetouch delete mode 120000 Easebuzz_NodeJS_kit/node_modules/.bin/nopt delete mode 120000 Easebuzz_NodeJS_kit/node_modules/.bin/rc delete mode 120000 Easebuzz_NodeJS_kit/node_modules/.bin/semver delete mode 100644 Easebuzz_NodeJS_kit/node_modules/@sindresorhus/is/dist/index.d.ts delete mode 100644 Easebuzz_NodeJS_kit/node_modules/@sindresorhus/is/dist/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/@sindresorhus/is/dist/index.js.map delete mode 100644 Easebuzz_NodeJS_kit/node_modules/@sindresorhus/is/license delete mode 100644 Easebuzz_NodeJS_kit/node_modules/@sindresorhus/is/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/@sindresorhus/is/readme.md delete mode 100755 Easebuzz_NodeJS_kit/node_modules/@szmarczak/http-timer/LICENSE delete mode 100755 Easebuzz_NodeJS_kit/node_modules/@szmarczak/http-timer/README.md delete mode 100755 Easebuzz_NodeJS_kit/node_modules/@szmarczak/http-timer/package.json delete mode 100755 Easebuzz_NodeJS_kit/node_modules/@szmarczak/http-timer/source/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/@types/color-name/LICENSE delete mode 100644 Easebuzz_NodeJS_kit/node_modules/@types/color-name/README.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/@types/color-name/index.d.ts delete mode 100644 Easebuzz_NodeJS_kit/node_modules/@types/color-name/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/abbrev/LICENSE delete mode 100644 Easebuzz_NodeJS_kit/node_modules/abbrev/README.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/abbrev/abbrev.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/abbrev/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/ansi-align/CHANGELOG.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/ansi-align/LICENSE delete mode 100644 Easebuzz_NodeJS_kit/node_modules/ansi-align/README.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/ansi-align/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/ansi-align/node_modules/string-width/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/ansi-align/node_modules/string-width/license delete mode 100644 Easebuzz_NodeJS_kit/node_modules/ansi-align/node_modules/string-width/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/ansi-align/node_modules/string-width/readme.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/ansi-align/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/ansi-regex/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/ansi-regex/license delete mode 100644 Easebuzz_NodeJS_kit/node_modules/ansi-regex/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/ansi-regex/readme.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/ansi-styles/index.d.ts delete mode 100644 Easebuzz_NodeJS_kit/node_modules/ansi-styles/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/ansi-styles/license delete mode 100644 Easebuzz_NodeJS_kit/node_modules/ansi-styles/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/ansi-styles/readme.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/anymatch/LICENSE delete mode 100644 Easebuzz_NodeJS_kit/node_modules/anymatch/README.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/anymatch/index.d.ts delete mode 100644 Easebuzz_NodeJS_kit/node_modules/anymatch/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/anymatch/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/async/.travis.yml delete mode 100644 Easebuzz_NodeJS_kit/node_modules/async/LICENSE delete mode 100644 Easebuzz_NodeJS_kit/node_modules/async/README.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/async/bower.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/async/component.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/async/lib/async.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/async/package.json delete mode 100755 Easebuzz_NodeJS_kit/node_modules/async/support/sync-package-managers.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/balanced-match/.npmignore delete mode 100644 Easebuzz_NodeJS_kit/node_modules/balanced-match/LICENSE.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/balanced-match/README.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/balanced-match/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/balanced-match/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/binary-extensions/binary-extensions.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/binary-extensions/binary-extensions.json.d.ts delete mode 100644 Easebuzz_NodeJS_kit/node_modules/binary-extensions/index.d.ts delete mode 100644 Easebuzz_NodeJS_kit/node_modules/binary-extensions/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/binary-extensions/license delete mode 100644 Easebuzz_NodeJS_kit/node_modules/binary-extensions/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/binary-extensions/readme.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/boxen/index.d.ts delete mode 100644 Easebuzz_NodeJS_kit/node_modules/boxen/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/boxen/license delete mode 100644 Easebuzz_NodeJS_kit/node_modules/boxen/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/boxen/readme.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/brace-expansion/LICENSE delete mode 100644 Easebuzz_NodeJS_kit/node_modules/brace-expansion/README.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/brace-expansion/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/brace-expansion/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/braces/CHANGELOG.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/braces/LICENSE delete mode 100644 Easebuzz_NodeJS_kit/node_modules/braces/README.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/braces/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/braces/lib/compile.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/braces/lib/constants.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/braces/lib/expand.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/braces/lib/parse.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/braces/lib/stringify.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/braces/lib/utils.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/braces/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/cacheable-request/LICENSE delete mode 100644 Easebuzz_NodeJS_kit/node_modules/cacheable-request/README.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/cacheable-request/node_modules/get-stream/buffer-stream.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/cacheable-request/node_modules/get-stream/index.d.ts delete mode 100644 Easebuzz_NodeJS_kit/node_modules/cacheable-request/node_modules/get-stream/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/cacheable-request/node_modules/get-stream/license delete mode 100644 Easebuzz_NodeJS_kit/node_modules/cacheable-request/node_modules/get-stream/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/cacheable-request/node_modules/get-stream/readme.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/cacheable-request/node_modules/lowercase-keys/index.d.ts delete mode 100644 Easebuzz_NodeJS_kit/node_modules/cacheable-request/node_modules/lowercase-keys/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/cacheable-request/node_modules/lowercase-keys/license delete mode 100644 Easebuzz_NodeJS_kit/node_modules/cacheable-request/node_modules/lowercase-keys/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/cacheable-request/node_modules/lowercase-keys/readme.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/cacheable-request/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/cacheable-request/src/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/camelcase/index.d.ts delete mode 100644 Easebuzz_NodeJS_kit/node_modules/camelcase/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/camelcase/license delete mode 100644 Easebuzz_NodeJS_kit/node_modules/camelcase/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/camelcase/readme.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/chalk/index.d.ts delete mode 100644 Easebuzz_NodeJS_kit/node_modules/chalk/license delete mode 100644 Easebuzz_NodeJS_kit/node_modules/chalk/node_modules/has-flag/index.d.ts delete mode 100644 Easebuzz_NodeJS_kit/node_modules/chalk/node_modules/has-flag/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/chalk/node_modules/has-flag/license delete mode 100644 Easebuzz_NodeJS_kit/node_modules/chalk/node_modules/has-flag/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/chalk/node_modules/has-flag/readme.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/chalk/node_modules/supports-color/browser.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/chalk/node_modules/supports-color/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/chalk/node_modules/supports-color/license delete mode 100644 Easebuzz_NodeJS_kit/node_modules/chalk/node_modules/supports-color/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/chalk/node_modules/supports-color/readme.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/chalk/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/chalk/readme.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/chalk/source/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/chalk/source/templates.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/chalk/source/util.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/chokidar/LICENSE delete mode 100644 Easebuzz_NodeJS_kit/node_modules/chokidar/README.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/chokidar/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/chokidar/lib/constants.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/chokidar/lib/fsevents-handler.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/chokidar/lib/nodefs-handler.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/chokidar/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/chokidar/types/index.d.ts delete mode 100644 Easebuzz_NodeJS_kit/node_modules/ci-info/CHANGELOG.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/ci-info/LICENSE delete mode 100644 Easebuzz_NodeJS_kit/node_modules/ci-info/README.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/ci-info/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/ci-info/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/ci-info/vendors.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/cli-boxes/boxes.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/cli-boxes/index.d.ts delete mode 100644 Easebuzz_NodeJS_kit/node_modules/cli-boxes/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/cli-boxes/license delete mode 100644 Easebuzz_NodeJS_kit/node_modules/cli-boxes/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/cli-boxes/readme.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/clone-response/LICENSE delete mode 100644 Easebuzz_NodeJS_kit/node_modules/clone-response/README.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/clone-response/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/clone-response/src/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/color-convert/CHANGELOG.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/color-convert/LICENSE delete mode 100644 Easebuzz_NodeJS_kit/node_modules/color-convert/README.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/color-convert/conversions.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/color-convert/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/color-convert/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/color-convert/route.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/color-name/LICENSE delete mode 100644 Easebuzz_NodeJS_kit/node_modules/color-name/README.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/color-name/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/color-name/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/concat-map/.travis.yml delete mode 100644 Easebuzz_NodeJS_kit/node_modules/concat-map/LICENSE delete mode 100644 Easebuzz_NodeJS_kit/node_modules/concat-map/README.markdown delete mode 100644 Easebuzz_NodeJS_kit/node_modules/concat-map/example/map.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/concat-map/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/concat-map/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/concat-map/test/map.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/configstore/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/configstore/license delete mode 100644 Easebuzz_NodeJS_kit/node_modules/configstore/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/configstore/readme.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/crypto-random-string/index.d.ts delete mode 100644 Easebuzz_NodeJS_kit/node_modules/crypto-random-string/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/crypto-random-string/license delete mode 100644 Easebuzz_NodeJS_kit/node_modules/crypto-random-string/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/crypto-random-string/readme.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/debug/CHANGELOG.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/debug/LICENSE delete mode 100644 Easebuzz_NodeJS_kit/node_modules/debug/README.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/debug/dist/debug.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/debug/node.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/debug/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/debug/src/browser.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/debug/src/common.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/debug/src/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/debug/src/node.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/decompress-response/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/decompress-response/license delete mode 100644 Easebuzz_NodeJS_kit/node_modules/decompress-response/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/decompress-response/readme.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/deep-extend/CHANGELOG.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/deep-extend/LICENSE delete mode 100644 Easebuzz_NodeJS_kit/node_modules/deep-extend/README.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/deep-extend/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/deep-extend/lib/deep-extend.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/deep-extend/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/defer-to-connect/LICENSE delete mode 100644 Easebuzz_NodeJS_kit/node_modules/defer-to-connect/README.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/defer-to-connect/dist/index.d.ts delete mode 100644 Easebuzz_NodeJS_kit/node_modules/defer-to-connect/dist/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/defer-to-connect/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/dom-walk/LICENCE delete mode 100644 Easebuzz_NodeJS_kit/node_modules/dom-walk/Makefile delete mode 100644 Easebuzz_NodeJS_kit/node_modules/dom-walk/README.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/dom-walk/example/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/dom-walk/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/dom-walk/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/dot-prop/index.d.ts delete mode 100644 Easebuzz_NodeJS_kit/node_modules/dot-prop/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/dot-prop/license delete mode 100644 Easebuzz_NodeJS_kit/node_modules/dot-prop/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/dot-prop/readme.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/dotenv/CHANGELOG.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/dotenv/LICENSE delete mode 100644 Easebuzz_NodeJS_kit/node_modules/dotenv/README.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/dotenv/config.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/dotenv/lib/cli-options.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/dotenv/lib/env-options.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/dotenv/lib/main.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/dotenv/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/dotenv/types/index.d.ts delete mode 100644 Easebuzz_NodeJS_kit/node_modules/dotenv/types/test.ts delete mode 100644 Easebuzz_NodeJS_kit/node_modules/dotenv/types/tsconfig.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/dotenv/types/tslint.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/duplexer3/LICENSE.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/duplexer3/README.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/duplexer3/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/duplexer3/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/ejs/LICENSE delete mode 100644 Easebuzz_NodeJS_kit/node_modules/ejs/README.md delete mode 100755 Easebuzz_NodeJS_kit/node_modules/ejs/bin/cli.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/ejs/ejs.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/ejs/ejs.min.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/ejs/jakefile.js delete mode 100755 Easebuzz_NodeJS_kit/node_modules/ejs/lib/ejs.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/ejs/lib/utils.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/ejs/package.json delete mode 100755 Easebuzz_NodeJS_kit/node_modules/ejs/postinstall.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/ejs/usage.txt delete mode 100644 Easebuzz_NodeJS_kit/node_modules/emoji-regex/LICENSE-MIT.txt delete mode 100644 Easebuzz_NodeJS_kit/node_modules/emoji-regex/README.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/emoji-regex/es2015/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/emoji-regex/es2015/text.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/emoji-regex/index.d.ts delete mode 100644 Easebuzz_NodeJS_kit/node_modules/emoji-regex/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/emoji-regex/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/emoji-regex/text.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/end-of-stream/LICENSE delete mode 100644 Easebuzz_NodeJS_kit/node_modules/end-of-stream/README.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/end-of-stream/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/end-of-stream/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/escape-goat/index.d.ts delete mode 100644 Easebuzz_NodeJS_kit/node_modules/escape-goat/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/escape-goat/license delete mode 100644 Easebuzz_NodeJS_kit/node_modules/escape-goat/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/escape-goat/readme.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/escape-string-regexp/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/escape-string-regexp/license delete mode 100644 Easebuzz_NodeJS_kit/node_modules/escape-string-regexp/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/escape-string-regexp/readme.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/LICENSE delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/README.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/check/index.d.ts delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/check/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/docs/api-check.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/docs/api-filter.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/docs/api-matched-data.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/docs/api-sanitization-chain.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/docs/api-validation-chain.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/docs/api-validation-result.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/docs/feature-custom-validators-sanitizers.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/docs/feature-error-messages.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/docs/feature-running-imperatively.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/docs/feature-sanitization.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/docs/feature-schema-validation.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/docs/feature-whole-body-validation.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/docs/feature-wildcards.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/docs/index.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/filter/index.d.ts delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/filter/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/CHANGELOG.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/LICENSE delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/README.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/alpha.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/blacklist.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/contains.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/equals.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/escape.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isAfter.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isAlpha.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isAlphanumeric.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isAscii.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isBIC.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isBase32.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isBase64.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isBefore.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isBoolean.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isBtcAddress.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isByteLength.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isCreditCard.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isCurrency.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isDataURI.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isDecimal.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isDivisibleBy.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isEAN.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isEmail.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isEmpty.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isEthereumAddress.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isFQDN.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isFloat.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isFullWidth.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isHSL.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isHalfWidth.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isHash.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isHexColor.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isHexadecimal.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isIBAN.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isIP.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isIPRange.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isISBN.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isISIN.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isISO31661Alpha2.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isISO31661Alpha3.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isISO8601.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isISRC.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isISSN.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isIdentityCard.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isIn.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isInt.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isJSON.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isJWT.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isLatLong.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isLength.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isLocale.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isLowercase.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isMACAddress.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isMD5.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isMagnetURI.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isMimeType.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isMobilePhone.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isMongoId.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isMultibyte.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isNumeric.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isOctal.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isPassportNumber.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isPort.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isPostalCode.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isRFC3339.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isRgbColor.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isSemVer.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isSlug.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isSurrogatePair.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isURL.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isUUID.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isUppercase.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isVariableWidth.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isWhitelisted.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/ltrim.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/matches.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/normalizeEmail.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/rtrim.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/stripLow.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/toBoolean.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/toDate.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/toFloat.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/toInt.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/trim.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/unescape.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/util/assertString.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/util/includes.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/util/merge.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/util/multilineRegex.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/util/toString.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/whitelist.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/alpha.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/blacklist.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/contains.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/equals.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/escape.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isAfter.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isAlpha.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isAlphanumeric.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isAscii.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isBIC.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isBase32.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isBase64.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isBefore.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isBoolean.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isBtcAddress.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isByteLength.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isCreditCard.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isCurrency.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isDataURI.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isDecimal.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isDivisibleBy.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isEAN.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isEmail.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isEmpty.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isEthereumAddress.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isFQDN.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isFloat.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isFullWidth.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isHSL.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isHalfWidth.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isHash.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isHexColor.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isHexadecimal.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isIBAN.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isIP.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isIPRange.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isISBN.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isISIN.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isISO31661Alpha2.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isISO31661Alpha3.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isISO8601.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isISRC.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isISSN.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isIdentityCard.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isIn.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isInt.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isJSON.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isJWT.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isLatLong.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isLength.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isLocale.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isLowercase.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isMACAddress.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isMD5.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isMagnetURI.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isMimeType.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isMobilePhone.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isMongoId.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isMultibyte.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isNumeric.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isOctal.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isPassportNumber.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isPort.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isPostalCode.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isRFC3339.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isRgbColor.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isSemVer.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isSlug.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isSurrogatePair.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isURL.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isUUID.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isUppercase.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isVariableWidth.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isWhitelisted.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/ltrim.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/matches.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/normalizeEmail.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/rtrim.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/stripLow.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/toBoolean.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/toDate.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/toFloat.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/toInt.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/trim.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/unescape.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/util/assertString.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/util/includes.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/util/merge.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/util/multilineRegex.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/util/toString.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/whitelist.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/validator.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/validator.min.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/src/base.d.ts delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/src/base.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/src/chain/context-handler-impl.d.ts delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/src/chain/context-handler-impl.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/src/chain/context-handler.d.ts delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/src/chain/context-handler.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/src/chain/context-runner-impl.d.ts delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/src/chain/context-runner-impl.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/src/chain/context-runner.d.ts delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/src/chain/context-runner.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/src/chain/index.d.ts delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/src/chain/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/src/chain/sanitization-chain.d.ts delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/src/chain/sanitization-chain.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/src/chain/sanitizers-impl.d.ts delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/src/chain/sanitizers-impl.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/src/chain/sanitizers.d.ts delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/src/chain/sanitizers.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/src/chain/validation-chain.d.ts delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/src/chain/validation-chain.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/src/chain/validators-impl.d.ts delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/src/chain/validators-impl.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/src/chain/validators.d.ts delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/src/chain/validators.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/src/context-builder.d.ts delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/src/context-builder.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/src/context-items/bail.d.ts delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/src/context-items/bail.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/src/context-items/chain-condition.d.ts delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/src/context-items/chain-condition.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/src/context-items/context-item.d.ts delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/src/context-items/context-item.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/src/context-items/custom-condition.d.ts delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/src/context-items/custom-condition.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/src/context-items/custom-validation.d.ts delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/src/context-items/custom-validation.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/src/context-items/index.d.ts delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/src/context-items/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/src/context-items/sanitization.d.ts delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/src/context-items/sanitization.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/src/context-items/standard-validation.d.ts delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/src/context-items/standard-validation.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/src/context.d.ts delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/src/context.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/src/index.d.ts delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/src/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/src/matched-data.d.ts delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/src/matched-data.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/src/middlewares/check.d.ts delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/src/middlewares/check.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/src/middlewares/one-of.d.ts delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/src/middlewares/one-of.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/src/middlewares/sanitization-chain-builders.d.ts delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/src/middlewares/sanitization-chain-builders.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/src/middlewares/sanitize.d.ts delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/src/middlewares/sanitize.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/src/middlewares/schema.d.ts delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/src/middlewares/schema.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/src/middlewares/validation-chain-builders.d.ts delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/src/middlewares/validation-chain-builders.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/src/options.d.ts delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/src/options.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/src/select-fields.d.ts delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/src/select-fields.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/src/utils.d.ts delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/src/utils.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/src/validation-result.d.ts delete mode 100644 Easebuzz_NodeJS_kit/node_modules/express-validator/src/validation-result.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/filelist/Jakefile delete mode 100644 Easebuzz_NodeJS_kit/node_modules/filelist/README.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/filelist/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/filelist/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/fill-range/LICENSE delete mode 100644 Easebuzz_NodeJS_kit/node_modules/fill-range/README.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/fill-range/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/fill-range/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/get-stream/buffer-stream.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/get-stream/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/get-stream/license delete mode 100644 Easebuzz_NodeJS_kit/node_modules/get-stream/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/get-stream/readme.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/glob-parent/LICENSE delete mode 100644 Easebuzz_NodeJS_kit/node_modules/glob-parent/README.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/glob-parent/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/glob-parent/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/global-dirs/index.d.ts delete mode 100644 Easebuzz_NodeJS_kit/node_modules/global-dirs/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/global-dirs/license delete mode 100644 Easebuzz_NodeJS_kit/node_modules/global-dirs/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/global-dirs/readme.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/global/.npmignore delete mode 100644 Easebuzz_NodeJS_kit/node_modules/global/.travis.yml delete mode 100644 Easebuzz_NodeJS_kit/node_modules/global/LICENSE delete mode 100644 Easebuzz_NodeJS_kit/node_modules/global/README.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/global/console.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/global/document.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/global/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/global/process.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/global/window.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/got/license delete mode 100644 Easebuzz_NodeJS_kit/node_modules/got/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/got/readme.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/got/source/as-promise.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/got/source/as-stream.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/got/source/create.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/got/source/errors.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/got/source/get-response.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/got/source/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/got/source/known-hook-events.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/got/source/merge.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/got/source/normalize-arguments.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/got/source/progress.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/got/source/request-as-event-emitter.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/got/source/utils/deep-freeze.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/got/source/utils/get-body-size.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/got/source/utils/is-form-data.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/got/source/utils/timed-out.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/got/source/utils/url-to-options.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/graceful-fs/LICENSE delete mode 100644 Easebuzz_NodeJS_kit/node_modules/graceful-fs/README.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/graceful-fs/clone.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/graceful-fs/graceful-fs.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/graceful-fs/legacy-streams.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/graceful-fs/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/graceful-fs/polyfills.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/has-flag/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/has-flag/license delete mode 100644 Easebuzz_NodeJS_kit/node_modules/has-flag/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/has-flag/readme.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/has-yarn/index.d.ts delete mode 100644 Easebuzz_NodeJS_kit/node_modules/has-yarn/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/has-yarn/license delete mode 100644 Easebuzz_NodeJS_kit/node_modules/has-yarn/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/has-yarn/readme.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/http-cache-semantics/LICENSE delete mode 100644 Easebuzz_NodeJS_kit/node_modules/http-cache-semantics/README.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/http-cache-semantics/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/http-cache-semantics/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/ignore-by-default/LICENSE delete mode 100644 Easebuzz_NodeJS_kit/node_modules/ignore-by-default/README.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/ignore-by-default/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/ignore-by-default/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/import-lazy/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/import-lazy/license delete mode 100644 Easebuzz_NodeJS_kit/node_modules/import-lazy/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/import-lazy/readme.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/imurmurhash/README.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/imurmurhash/imurmurhash.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/imurmurhash/imurmurhash.min.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/imurmurhash/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/ini/LICENSE delete mode 100644 Easebuzz_NodeJS_kit/node_modules/ini/README.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/ini/ini.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/ini/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/is-binary-path/index.d.ts delete mode 100644 Easebuzz_NodeJS_kit/node_modules/is-binary-path/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/is-binary-path/license delete mode 100644 Easebuzz_NodeJS_kit/node_modules/is-binary-path/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/is-binary-path/readme.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/is-ci/CHANGELOG.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/is-ci/LICENSE delete mode 100644 Easebuzz_NodeJS_kit/node_modules/is-ci/README.md delete mode 100755 Easebuzz_NodeJS_kit/node_modules/is-ci/bin.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/is-ci/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/is-ci/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/is-extglob/LICENSE delete mode 100644 Easebuzz_NodeJS_kit/node_modules/is-extglob/README.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/is-extglob/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/is-extglob/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/is-fullwidth-code-point/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/is-fullwidth-code-point/license delete mode 100644 Easebuzz_NodeJS_kit/node_modules/is-fullwidth-code-point/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/is-fullwidth-code-point/readme.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/is-glob/LICENSE delete mode 100644 Easebuzz_NodeJS_kit/node_modules/is-glob/README.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/is-glob/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/is-glob/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/is-installed-globally/index.d.ts delete mode 100644 Easebuzz_NodeJS_kit/node_modules/is-installed-globally/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/is-installed-globally/license delete mode 100644 Easebuzz_NodeJS_kit/node_modules/is-installed-globally/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/is-installed-globally/readme.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/is-npm/index.d.ts delete mode 100644 Easebuzz_NodeJS_kit/node_modules/is-npm/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/is-npm/license delete mode 100644 Easebuzz_NodeJS_kit/node_modules/is-npm/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/is-npm/readme.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/is-number/LICENSE delete mode 100644 Easebuzz_NodeJS_kit/node_modules/is-number/README.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/is-number/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/is-number/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/is-obj/index.d.ts delete mode 100644 Easebuzz_NodeJS_kit/node_modules/is-obj/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/is-obj/license delete mode 100644 Easebuzz_NodeJS_kit/node_modules/is-obj/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/is-obj/readme.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/is-path-inside/index.d.ts delete mode 100644 Easebuzz_NodeJS_kit/node_modules/is-path-inside/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/is-path-inside/license delete mode 100644 Easebuzz_NodeJS_kit/node_modules/is-path-inside/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/is-path-inside/readme.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/is-typedarray/LICENSE.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/is-typedarray/README.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/is-typedarray/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/is-typedarray/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/is-typedarray/test.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/is-yarn-global/.travis.yml delete mode 100644 Easebuzz_NodeJS_kit/node_modules/is-yarn-global/LICENSE delete mode 100644 Easebuzz_NodeJS_kit/node_modules/is-yarn-global/README.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/is-yarn-global/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/is-yarn-global/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/jake/Makefile delete mode 100644 Easebuzz_NodeJS_kit/node_modules/jake/README.md delete mode 100755 Easebuzz_NodeJS_kit/node_modules/jake/bin/bash_completion.sh delete mode 100755 Easebuzz_NodeJS_kit/node_modules/jake/bin/cli.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/jake/jakefile.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/jake/lib/api.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/jake/lib/jake.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/jake/lib/loader.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/jake/lib/namespace.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/jake/lib/package_task.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/jake/lib/parseargs.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/jake/lib/program.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/jake/lib/publish_task.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/jake/lib/rule.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/jake/lib/task/directory_task.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/jake/lib/task/file_task.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/jake/lib/task/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/jake/lib/task/task.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/jake/lib/test_task.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/jake/lib/utils/file.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/jake/lib/utils/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/jake/lib/utils/logger.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/jake/node_modules/ansi-styles/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/jake/node_modules/ansi-styles/license delete mode 100644 Easebuzz_NodeJS_kit/node_modules/jake/node_modules/ansi-styles/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/jake/node_modules/ansi-styles/readme.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/jake/node_modules/chalk/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/jake/node_modules/chalk/index.js.flow delete mode 100644 Easebuzz_NodeJS_kit/node_modules/jake/node_modules/chalk/license delete mode 100644 Easebuzz_NodeJS_kit/node_modules/jake/node_modules/chalk/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/jake/node_modules/chalk/readme.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/jake/node_modules/chalk/templates.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/jake/node_modules/chalk/types/index.d.ts delete mode 100644 Easebuzz_NodeJS_kit/node_modules/jake/node_modules/color-convert/CHANGELOG.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/jake/node_modules/color-convert/LICENSE delete mode 100644 Easebuzz_NodeJS_kit/node_modules/jake/node_modules/color-convert/README.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/jake/node_modules/color-convert/conversions.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/jake/node_modules/color-convert/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/jake/node_modules/color-convert/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/jake/node_modules/color-convert/route.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/jake/node_modules/color-name/.eslintrc.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/jake/node_modules/color-name/.npmignore delete mode 100644 Easebuzz_NodeJS_kit/node_modules/jake/node_modules/color-name/LICENSE delete mode 100644 Easebuzz_NodeJS_kit/node_modules/jake/node_modules/color-name/README.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/jake/node_modules/color-name/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/jake/node_modules/color-name/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/jake/node_modules/color-name/test.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/jake/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/jake/test/integration/concurrent.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/jake/test/integration/file.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/jake/test/integration/file_task.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/jake/test/integration/helpers.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/jake/test/integration/jakefile.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/jake/test/integration/jakelib/concurrent.jake.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/jake/test/integration/jakelib/publish.jake.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/jake/test/integration/jakelib/required_module.jake.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/jake/test/integration/jakelib/rule.jake.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/jake/test/integration/publish_task.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/jake/test/integration/rule.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/jake/test/integration/selfdep.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/jake/test/integration/task_base.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/jake/test/unit/jakefile.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/jake/test/unit/namespace.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/jake/test/unit/parseargs.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/jake/usage.txt delete mode 100644 Easebuzz_NodeJS_kit/node_modules/js-sha512/CHANGELOG.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/js-sha512/LICENSE.txt delete mode 100644 Easebuzz_NodeJS_kit/node_modules/js-sha512/README.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/js-sha512/build/sha512.min.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/js-sha512/index.d.ts delete mode 100644 Easebuzz_NodeJS_kit/node_modules/js-sha512/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/js-sha512/src/sha512.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/json-buffer/.npmignore delete mode 100644 Easebuzz_NodeJS_kit/node_modules/json-buffer/.travis.yml delete mode 100644 Easebuzz_NodeJS_kit/node_modules/json-buffer/LICENSE delete mode 100644 Easebuzz_NodeJS_kit/node_modules/json-buffer/README.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/json-buffer/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/json-buffer/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/json-buffer/test/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/keyv/LICENSE delete mode 100644 Easebuzz_NodeJS_kit/node_modules/keyv/README.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/keyv/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/keyv/src/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/latest-version/index.d.ts delete mode 100644 Easebuzz_NodeJS_kit/node_modules/latest-version/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/latest-version/license delete mode 100644 Easebuzz_NodeJS_kit/node_modules/latest-version/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/latest-version/readme.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/location-href/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/location-href/license delete mode 100644 Easebuzz_NodeJS_kit/node_modules/location-href/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/location-href/readme.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/LICENSE delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/README.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_DataView.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_Hash.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_LazyWrapper.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_ListCache.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_LodashWrapper.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_Map.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_MapCache.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_Promise.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_Set.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_SetCache.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_Stack.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_Symbol.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_Uint8Array.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_WeakMap.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_apply.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_arrayAggregator.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_arrayEach.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_arrayEachRight.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_arrayEvery.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_arrayFilter.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_arrayIncludes.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_arrayIncludesWith.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_arrayLikeKeys.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_arrayMap.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_arrayPush.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_arrayReduce.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_arrayReduceRight.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_arraySample.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_arraySampleSize.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_arrayShuffle.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_arraySome.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_asciiSize.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_asciiToArray.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_asciiWords.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_assignMergeValue.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_assignValue.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_assocIndexOf.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_baseAggregator.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_baseAssign.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_baseAssignIn.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_baseAssignValue.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_baseAt.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_baseClamp.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_baseClone.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_baseConforms.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_baseConformsTo.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_baseCreate.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_baseDelay.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_baseDifference.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_baseEach.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_baseEachRight.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_baseEvery.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_baseExtremum.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_baseFill.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_baseFilter.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_baseFindIndex.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_baseFindKey.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_baseFlatten.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_baseFor.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_baseForOwn.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_baseForOwnRight.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_baseForRight.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_baseFunctions.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_baseGet.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_baseGetAllKeys.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_baseGetTag.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_baseGt.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_baseHas.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_baseHasIn.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_baseInRange.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_baseIndexOf.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_baseIndexOfWith.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_baseIntersection.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_baseInverter.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_baseInvoke.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_baseIsArguments.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_baseIsArrayBuffer.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_baseIsDate.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_baseIsEqual.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_baseIsEqualDeep.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_baseIsMap.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_baseIsMatch.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_baseIsNaN.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_baseIsNative.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_baseIsRegExp.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_baseIsSet.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_baseIsTypedArray.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_baseIteratee.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_baseKeys.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_baseKeysIn.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_baseLodash.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_baseLt.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_baseMap.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_baseMatches.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_baseMatchesProperty.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_baseMean.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_baseMerge.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_baseMergeDeep.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_baseNth.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_baseOrderBy.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_basePick.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_basePickBy.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_baseProperty.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_basePropertyDeep.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_basePropertyOf.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_basePullAll.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_basePullAt.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_baseRandom.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_baseRange.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_baseReduce.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_baseRepeat.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_baseRest.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_baseSample.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_baseSampleSize.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_baseSet.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_baseSetData.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_baseSetToString.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_baseShuffle.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_baseSlice.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_baseSome.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_baseSortBy.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_baseSortedIndex.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_baseSortedIndexBy.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_baseSortedUniq.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_baseSum.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_baseTimes.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_baseToNumber.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_baseToPairs.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_baseToString.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_baseUnary.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_baseUniq.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_baseUnset.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_baseUpdate.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_baseValues.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_baseWhile.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_baseWrapperValue.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_baseXor.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_baseZipObject.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_cacheHas.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_castArrayLikeObject.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_castFunction.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_castPath.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_castRest.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_castSlice.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_charsEndIndex.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_charsStartIndex.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_cloneArrayBuffer.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_cloneBuffer.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_cloneDataView.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_cloneRegExp.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_cloneSymbol.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_cloneTypedArray.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_compareAscending.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_compareMultiple.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_composeArgs.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_composeArgsRight.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_copyArray.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_copyObject.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_copySymbols.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_copySymbolsIn.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_coreJsData.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_countHolders.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_createAggregator.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_createAssigner.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_createBaseEach.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_createBaseFor.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_createBind.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_createCaseFirst.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_createCompounder.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_createCtor.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_createCurry.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_createFind.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_createFlow.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_createHybrid.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_createInverter.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_createMathOperation.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_createOver.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_createPadding.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_createPartial.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_createRange.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_createRecurry.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_createRelationalOperation.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_createRound.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_createSet.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_createToPairs.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_createWrap.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_customDefaultsAssignIn.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_customDefaultsMerge.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_customOmitClone.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_deburrLetter.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_defineProperty.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_equalArrays.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_equalByTag.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_equalObjects.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_escapeHtmlChar.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_escapeStringChar.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_flatRest.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_freeGlobal.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_getAllKeys.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_getAllKeysIn.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_getData.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_getFuncName.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_getHolder.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_getMapData.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_getMatchData.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_getNative.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_getPrototype.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_getRawTag.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_getSymbols.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_getSymbolsIn.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_getTag.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_getValue.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_getView.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_getWrapDetails.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_hasPath.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_hasUnicode.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_hasUnicodeWord.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_hashClear.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_hashDelete.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_hashGet.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_hashHas.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_hashSet.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_initCloneArray.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_initCloneByTag.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_initCloneObject.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_insertWrapDetails.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_isFlattenable.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_isIndex.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_isIterateeCall.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_isKey.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_isKeyable.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_isLaziable.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_isMaskable.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_isMasked.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_isPrototype.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_isStrictComparable.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_iteratorToArray.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_lazyClone.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_lazyReverse.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_lazyValue.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_listCacheClear.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_listCacheDelete.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_listCacheGet.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_listCacheHas.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_listCacheSet.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_mapCacheClear.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_mapCacheDelete.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_mapCacheGet.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_mapCacheHas.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_mapCacheSet.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_mapToArray.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_matchesStrictComparable.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_memoizeCapped.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_mergeData.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_metaMap.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_nativeCreate.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_nativeKeys.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_nativeKeysIn.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_nodeUtil.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_objectToString.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_overArg.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_overRest.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_parent.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_reEscape.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_reEvaluate.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_reInterpolate.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_realNames.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_reorder.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_replaceHolders.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_root.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_safeGet.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_setCacheAdd.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_setCacheHas.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_setData.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_setToArray.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_setToPairs.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_setToString.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_setWrapToString.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_shortOut.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_shuffleSelf.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_stackClear.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_stackDelete.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_stackGet.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_stackHas.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_stackSet.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_strictIndexOf.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_strictLastIndexOf.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_stringSize.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_stringToArray.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_stringToPath.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_toKey.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_toSource.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_unescapeHtmlChar.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_unicodeSize.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_unicodeToArray.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_unicodeWords.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_updateWrapDetails.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/_wrapperClone.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/add.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/after.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/array.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/ary.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/assign.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/assignIn.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/assignInWith.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/assignWith.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/at.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/attempt.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/before.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/bind.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/bindAll.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/bindKey.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/camelCase.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/capitalize.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/castArray.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/ceil.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/chain.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/chunk.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/clamp.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/clone.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/cloneDeep.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/cloneDeepWith.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/cloneWith.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/collection.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/commit.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/compact.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/concat.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/cond.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/conforms.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/conformsTo.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/constant.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/core.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/core.min.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/countBy.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/create.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/curry.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/curryRight.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/date.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/debounce.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/deburr.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/defaultTo.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/defaults.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/defaultsDeep.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/defer.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/delay.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/difference.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/differenceBy.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/differenceWith.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/divide.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/drop.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/dropRight.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/dropRightWhile.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/dropWhile.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/each.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/eachRight.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/endsWith.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/entries.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/entriesIn.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/eq.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/escape.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/escapeRegExp.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/every.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/extend.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/extendWith.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fill.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/filter.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/find.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/findIndex.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/findKey.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/findLast.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/findLastIndex.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/findLastKey.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/first.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/flatMap.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/flatMapDeep.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/flatMapDepth.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/flatten.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/flattenDeep.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/flattenDepth.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/flip.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/floor.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/flow.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/flowRight.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/forEach.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/forEachRight.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/forIn.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/forInRight.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/forOwn.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/forOwnRight.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/F.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/T.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/__.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/_baseConvert.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/_convertBrowser.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/_falseOptions.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/_mapping.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/_util.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/add.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/after.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/all.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/allPass.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/always.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/any.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/anyPass.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/apply.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/array.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/ary.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/assign.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/assignAll.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/assignAllWith.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/assignIn.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/assignInAll.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/assignInAllWith.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/assignInWith.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/assignWith.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/assoc.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/assocPath.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/at.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/attempt.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/before.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/bind.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/bindAll.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/bindKey.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/camelCase.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/capitalize.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/castArray.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/ceil.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/chain.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/chunk.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/clamp.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/clone.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/cloneDeep.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/cloneDeepWith.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/cloneWith.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/collection.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/commit.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/compact.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/complement.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/compose.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/concat.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/cond.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/conforms.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/conformsTo.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/constant.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/contains.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/convert.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/countBy.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/create.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/curry.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/curryN.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/curryRight.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/curryRightN.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/date.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/debounce.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/deburr.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/defaultTo.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/defaults.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/defaultsAll.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/defaultsDeep.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/defaultsDeepAll.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/defer.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/delay.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/difference.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/differenceBy.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/differenceWith.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/dissoc.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/dissocPath.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/divide.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/drop.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/dropLast.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/dropLastWhile.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/dropRight.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/dropRightWhile.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/dropWhile.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/each.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/eachRight.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/endsWith.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/entries.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/entriesIn.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/eq.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/equals.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/escape.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/escapeRegExp.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/every.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/extend.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/extendAll.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/extendAllWith.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/extendWith.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/fill.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/filter.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/find.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/findFrom.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/findIndex.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/findIndexFrom.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/findKey.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/findLast.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/findLastFrom.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/findLastIndex.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/findLastIndexFrom.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/findLastKey.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/first.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/flatMap.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/flatMapDeep.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/flatMapDepth.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/flatten.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/flattenDeep.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/flattenDepth.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/flip.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/floor.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/flow.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/flowRight.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/forEach.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/forEachRight.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/forIn.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/forInRight.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/forOwn.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/forOwnRight.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/fromPairs.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/function.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/functions.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/functionsIn.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/get.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/getOr.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/groupBy.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/gt.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/gte.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/has.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/hasIn.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/head.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/identical.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/identity.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/inRange.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/includes.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/includesFrom.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/indexBy.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/indexOf.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/indexOfFrom.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/init.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/initial.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/intersection.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/intersectionBy.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/intersectionWith.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/invert.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/invertBy.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/invertObj.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/invoke.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/invokeArgs.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/invokeArgsMap.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/invokeMap.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/isArguments.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/isArray.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/isArrayBuffer.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/isArrayLike.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/isArrayLikeObject.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/isBoolean.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/isBuffer.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/isDate.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/isElement.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/isEmpty.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/isEqual.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/isEqualWith.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/isError.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/isFinite.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/isFunction.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/isInteger.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/isLength.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/isMap.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/isMatch.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/isMatchWith.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/isNaN.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/isNative.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/isNil.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/isNull.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/isNumber.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/isObject.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/isObjectLike.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/isPlainObject.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/isRegExp.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/isSafeInteger.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/isSet.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/isString.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/isSymbol.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/isTypedArray.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/isUndefined.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/isWeakMap.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/isWeakSet.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/iteratee.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/join.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/juxt.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/kebabCase.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/keyBy.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/keys.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/keysIn.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/lang.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/last.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/lastIndexOf.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/lastIndexOfFrom.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/lowerCase.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/lowerFirst.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/lt.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/lte.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/map.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/mapKeys.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/mapValues.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/matches.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/matchesProperty.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/math.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/max.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/maxBy.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/mean.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/meanBy.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/memoize.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/merge.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/mergeAll.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/mergeAllWith.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/mergeWith.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/method.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/methodOf.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/min.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/minBy.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/mixin.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/multiply.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/nAry.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/negate.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/next.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/noop.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/now.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/nth.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/nthArg.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/number.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/object.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/omit.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/omitAll.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/omitBy.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/once.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/orderBy.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/over.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/overArgs.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/overEvery.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/overSome.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/pad.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/padChars.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/padCharsEnd.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/padCharsStart.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/padEnd.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/padStart.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/parseInt.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/partial.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/partialRight.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/partition.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/path.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/pathEq.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/pathOr.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/paths.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/pick.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/pickAll.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/pickBy.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/pipe.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/placeholder.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/plant.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/pluck.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/prop.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/propEq.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/propOr.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/property.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/propertyOf.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/props.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/pull.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/pullAll.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/pullAllBy.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/pullAllWith.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/pullAt.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/random.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/range.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/rangeRight.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/rangeStep.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/rangeStepRight.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/rearg.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/reduce.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/reduceRight.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/reject.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/remove.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/repeat.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/replace.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/rest.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/restFrom.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/result.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/reverse.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/round.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/sample.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/sampleSize.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/seq.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/set.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/setWith.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/shuffle.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/size.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/slice.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/snakeCase.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/some.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/sortBy.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/sortedIndex.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/sortedIndexBy.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/sortedIndexOf.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/sortedLastIndex.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/sortedLastIndexBy.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/sortedLastIndexOf.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/sortedUniq.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/sortedUniqBy.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/split.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/spread.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/spreadFrom.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/startCase.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/startsWith.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/string.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/stubArray.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/stubFalse.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/stubObject.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/stubString.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/stubTrue.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/subtract.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/sum.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/sumBy.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/symmetricDifference.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/symmetricDifferenceBy.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/symmetricDifferenceWith.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/tail.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/take.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/takeLast.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/takeLastWhile.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/takeRight.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/takeRightWhile.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/takeWhile.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/tap.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/template.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/templateSettings.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/throttle.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/thru.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/times.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/toArray.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/toFinite.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/toInteger.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/toIterator.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/toJSON.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/toLength.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/toLower.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/toNumber.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/toPairs.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/toPairsIn.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/toPath.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/toPlainObject.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/toSafeInteger.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/toString.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/toUpper.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/transform.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/trim.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/trimChars.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/trimCharsEnd.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/trimCharsStart.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/trimEnd.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/trimStart.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/truncate.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/unapply.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/unary.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/unescape.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/union.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/unionBy.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/unionWith.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/uniq.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/uniqBy.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/uniqWith.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/uniqueId.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/unnest.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/unset.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/unzip.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/unzipWith.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/update.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/updateWith.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/upperCase.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/upperFirst.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/useWith.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/util.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/value.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/valueOf.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/values.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/valuesIn.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/where.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/whereEq.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/without.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/words.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/wrap.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/wrapperAt.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/wrapperChain.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/wrapperLodash.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/wrapperReverse.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/wrapperValue.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/xor.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/xorBy.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/xorWith.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/zip.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/zipAll.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/zipObj.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/zipObject.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/zipObjectDeep.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fp/zipWith.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/fromPairs.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/function.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/functions.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/functionsIn.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/get.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/groupBy.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/gt.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/gte.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/has.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/hasIn.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/head.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/identity.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/inRange.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/includes.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/indexOf.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/initial.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/intersection.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/intersectionBy.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/intersectionWith.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/invert.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/invertBy.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/invoke.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/invokeMap.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/isArguments.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/isArray.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/isArrayBuffer.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/isArrayLike.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/isArrayLikeObject.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/isBoolean.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/isBuffer.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/isDate.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/isElement.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/isEmpty.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/isEqual.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/isEqualWith.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/isError.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/isFinite.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/isFunction.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/isInteger.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/isLength.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/isMap.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/isMatch.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/isMatchWith.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/isNaN.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/isNative.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/isNil.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/isNull.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/isNumber.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/isObject.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/isObjectLike.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/isPlainObject.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/isRegExp.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/isSafeInteger.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/isSet.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/isString.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/isSymbol.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/isTypedArray.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/isUndefined.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/isWeakMap.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/isWeakSet.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/iteratee.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/join.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/kebabCase.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/keyBy.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/keys.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/keysIn.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/lang.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/last.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/lastIndexOf.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/lodash.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/lodash.min.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/lowerCase.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/lowerFirst.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/lt.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/lte.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/map.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/mapKeys.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/mapValues.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/matches.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/matchesProperty.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/math.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/max.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/maxBy.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/mean.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/meanBy.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/memoize.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/merge.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/mergeWith.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/method.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/methodOf.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/min.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/minBy.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/mixin.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/multiply.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/negate.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/next.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/noop.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/now.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/nth.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/nthArg.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/number.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/object.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/omit.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/omitBy.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/once.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/orderBy.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/over.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/overArgs.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/overEvery.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/overSome.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/pad.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/padEnd.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/padStart.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/parseInt.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/partial.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/partialRight.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/partition.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/pick.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/pickBy.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/plant.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/property.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/propertyOf.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/pull.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/pullAll.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/pullAllBy.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/pullAllWith.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/pullAt.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/random.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/range.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/rangeRight.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/rearg.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/reduce.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/reduceRight.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/reject.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/remove.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/repeat.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/replace.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/rest.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/result.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/reverse.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/round.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/sample.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/sampleSize.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/seq.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/set.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/setWith.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/shuffle.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/size.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/slice.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/snakeCase.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/some.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/sortBy.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/sortedIndex.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/sortedIndexBy.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/sortedIndexOf.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/sortedLastIndex.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/sortedLastIndexBy.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/sortedLastIndexOf.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/sortedUniq.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/sortedUniqBy.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/split.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/spread.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/startCase.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/startsWith.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/string.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/stubArray.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/stubFalse.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/stubObject.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/stubString.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/stubTrue.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/subtract.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/sum.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/sumBy.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/tail.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/take.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/takeRight.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/takeRightWhile.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/takeWhile.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/tap.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/template.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/templateSettings.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/throttle.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/thru.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/times.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/toArray.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/toFinite.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/toInteger.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/toIterator.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/toJSON.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/toLength.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/toLower.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/toNumber.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/toPairs.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/toPairsIn.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/toPath.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/toPlainObject.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/toSafeInteger.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/toString.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/toUpper.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/transform.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/trim.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/trimEnd.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/trimStart.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/truncate.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/unary.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/unescape.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/union.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/unionBy.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/unionWith.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/uniq.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/uniqBy.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/uniqWith.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/uniqueId.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/unset.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/unzip.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/unzipWith.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/update.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/updateWith.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/upperCase.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/upperFirst.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/util.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/value.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/valueOf.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/values.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/valuesIn.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/without.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/words.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/wrap.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/wrapperAt.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/wrapperChain.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/wrapperLodash.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/wrapperReverse.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/wrapperValue.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/xor.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/xorBy.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/xorWith.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/zip.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/zipObject.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/zipObjectDeep.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lodash/zipWith.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lowercase-keys/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lowercase-keys/license delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lowercase-keys/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/lowercase-keys/readme.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/make-dir/index.d.ts delete mode 100644 Easebuzz_NodeJS_kit/node_modules/make-dir/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/make-dir/license delete mode 120000 Easebuzz_NodeJS_kit/node_modules/make-dir/node_modules/.bin/semver delete mode 100644 Easebuzz_NodeJS_kit/node_modules/make-dir/node_modules/semver/CHANGELOG.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/make-dir/node_modules/semver/LICENSE delete mode 100644 Easebuzz_NodeJS_kit/node_modules/make-dir/node_modules/semver/README.md delete mode 100755 Easebuzz_NodeJS_kit/node_modules/make-dir/node_modules/semver/bin/semver.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/make-dir/node_modules/semver/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/make-dir/node_modules/semver/range.bnf delete mode 100644 Easebuzz_NodeJS_kit/node_modules/make-dir/node_modules/semver/semver.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/make-dir/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/make-dir/readme.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/mimic-response/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/mimic-response/license delete mode 100644 Easebuzz_NodeJS_kit/node_modules/mimic-response/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/mimic-response/readme.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/min-document/.jshintrc delete mode 100644 Easebuzz_NodeJS_kit/node_modules/min-document/.npmignore delete mode 100644 Easebuzz_NodeJS_kit/node_modules/min-document/.testem.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/min-document/.travis.yml delete mode 100644 Easebuzz_NodeJS_kit/node_modules/min-document/CONTRIBUTION.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/min-document/LICENCE delete mode 100644 Easebuzz_NodeJS_kit/node_modules/min-document/README.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/min-document/docs.mli delete mode 100644 Easebuzz_NodeJS_kit/node_modules/min-document/document.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/min-document/dom-comment.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/min-document/dom-element.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/min-document/dom-fragment.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/min-document/dom-text.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/min-document/event.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/min-document/event/add-event-listener.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/min-document/event/dispatch-event.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/min-document/event/remove-event-listener.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/min-document/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/min-document/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/min-document/serialize.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/min-document/test/cleanup.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/min-document/test/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/min-document/test/static/index.html delete mode 100644 Easebuzz_NodeJS_kit/node_modules/min-document/test/static/test-adapter.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/min-document/test/test-document.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/min-document/test/test-dom-comment.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/min-document/test/test-dom-element.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/minimatch/LICENSE delete mode 100644 Easebuzz_NodeJS_kit/node_modules/minimatch/README.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/minimatch/minimatch.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/minimatch/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/minimist/.travis.yml delete mode 100644 Easebuzz_NodeJS_kit/node_modules/minimist/LICENSE delete mode 100644 Easebuzz_NodeJS_kit/node_modules/minimist/example/parse.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/minimist/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/minimist/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/minimist/readme.markdown delete mode 100644 Easebuzz_NodeJS_kit/node_modules/minimist/test/all_bool.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/minimist/test/bool.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/minimist/test/dash.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/minimist/test/default_bool.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/minimist/test/dotted.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/minimist/test/kv_short.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/minimist/test/long.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/minimist/test/num.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/minimist/test/parse.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/minimist/test/parse_modified.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/minimist/test/proto.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/minimist/test/short.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/minimist/test/stop_early.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/minimist/test/unknown.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/minimist/test/whitespace.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/ms/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/ms/license.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/ms/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/ms/readme.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/nodemon/.jscsrc delete mode 100644 Easebuzz_NodeJS_kit/node_modules/nodemon/.jshintrc delete mode 100644 Easebuzz_NodeJS_kit/node_modules/nodemon/.travis.yml delete mode 100644 Easebuzz_NodeJS_kit/node_modules/nodemon/LICENSE delete mode 100644 Easebuzz_NodeJS_kit/node_modules/nodemon/README.md delete mode 100755 Easebuzz_NodeJS_kit/node_modules/nodemon/bin/nodemon.js delete mode 100755 Easebuzz_NodeJS_kit/node_modules/nodemon/bin/postinstall.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/nodemon/commitlint.config.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/nodemon/doc/cli/authors.txt delete mode 100644 Easebuzz_NodeJS_kit/node_modules/nodemon/doc/cli/config.txt delete mode 100644 Easebuzz_NodeJS_kit/node_modules/nodemon/doc/cli/help.txt delete mode 100644 Easebuzz_NodeJS_kit/node_modules/nodemon/doc/cli/logo.txt delete mode 100644 Easebuzz_NodeJS_kit/node_modules/nodemon/doc/cli/options.txt delete mode 100644 Easebuzz_NodeJS_kit/node_modules/nodemon/doc/cli/topics.txt delete mode 100644 Easebuzz_NodeJS_kit/node_modules/nodemon/doc/cli/usage.txt delete mode 100644 Easebuzz_NodeJS_kit/node_modules/nodemon/doc/cli/whoami.txt delete mode 100644 Easebuzz_NodeJS_kit/node_modules/nodemon/lib/cli/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/nodemon/lib/cli/parse.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/nodemon/lib/config/command.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/nodemon/lib/config/defaults.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/nodemon/lib/config/exec.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/nodemon/lib/config/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/nodemon/lib/config/load.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/nodemon/lib/help/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/nodemon/lib/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/nodemon/lib/monitor/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/nodemon/lib/monitor/match.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/nodemon/lib/monitor/run.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/nodemon/lib/monitor/signals.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/nodemon/lib/monitor/watch.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/nodemon/lib/nodemon.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/nodemon/lib/rules/add.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/nodemon/lib/rules/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/nodemon/lib/rules/parse.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/nodemon/lib/spawn.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/nodemon/lib/utils/bus.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/nodemon/lib/utils/clone.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/nodemon/lib/utils/colour.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/nodemon/lib/utils/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/nodemon/lib/utils/log.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/nodemon/lib/utils/merge.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/nodemon/lib/version.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/nodemon/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/nopt/.npmignore delete mode 100644 Easebuzz_NodeJS_kit/node_modules/nopt/LICENSE delete mode 100644 Easebuzz_NodeJS_kit/node_modules/nopt/README.md delete mode 100755 Easebuzz_NodeJS_kit/node_modules/nopt/bin/nopt.js delete mode 100755 Easebuzz_NodeJS_kit/node_modules/nopt/examples/my-program.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/nopt/lib/nopt.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/nopt/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/normalize-path/LICENSE delete mode 100644 Easebuzz_NodeJS_kit/node_modules/normalize-path/README.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/normalize-path/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/normalize-path/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/normalize-url/index.d.ts delete mode 100644 Easebuzz_NodeJS_kit/node_modules/normalize-url/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/normalize-url/license delete mode 100644 Easebuzz_NodeJS_kit/node_modules/normalize-url/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/normalize-url/readme.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/once/LICENSE delete mode 100644 Easebuzz_NodeJS_kit/node_modules/once/README.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/once/once.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/once/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/p-cancelable/index.d.ts delete mode 100644 Easebuzz_NodeJS_kit/node_modules/p-cancelable/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/p-cancelable/license delete mode 100644 Easebuzz_NodeJS_kit/node_modules/p-cancelable/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/p-cancelable/readme.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/package-json/index.d.ts delete mode 100644 Easebuzz_NodeJS_kit/node_modules/package-json/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/package-json/license delete mode 120000 Easebuzz_NodeJS_kit/node_modules/package-json/node_modules/.bin/semver delete mode 100644 Easebuzz_NodeJS_kit/node_modules/package-json/node_modules/semver/CHANGELOG.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/package-json/node_modules/semver/LICENSE delete mode 100644 Easebuzz_NodeJS_kit/node_modules/package-json/node_modules/semver/README.md delete mode 100755 Easebuzz_NodeJS_kit/node_modules/package-json/node_modules/semver/bin/semver.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/package-json/node_modules/semver/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/package-json/node_modules/semver/range.bnf delete mode 100644 Easebuzz_NodeJS_kit/node_modules/package-json/node_modules/semver/semver.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/package-json/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/package-json/readme.md delete mode 100755 Easebuzz_NodeJS_kit/node_modules/picomatch/CHANGELOG.md delete mode 100755 Easebuzz_NodeJS_kit/node_modules/picomatch/LICENSE delete mode 100755 Easebuzz_NodeJS_kit/node_modules/picomatch/README.md delete mode 100755 Easebuzz_NodeJS_kit/node_modules/picomatch/index.js delete mode 100755 Easebuzz_NodeJS_kit/node_modules/picomatch/lib/constants.js delete mode 100755 Easebuzz_NodeJS_kit/node_modules/picomatch/lib/parse.js delete mode 100755 Easebuzz_NodeJS_kit/node_modules/picomatch/lib/picomatch.js delete mode 100755 Easebuzz_NodeJS_kit/node_modules/picomatch/lib/scan.js delete mode 100755 Easebuzz_NodeJS_kit/node_modules/picomatch/lib/utils.js delete mode 100755 Easebuzz_NodeJS_kit/node_modules/picomatch/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/prepend-http/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/prepend-http/license delete mode 100644 Easebuzz_NodeJS_kit/node_modules/prepend-http/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/prepend-http/readme.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/process/LICENSE delete mode 100644 Easebuzz_NodeJS_kit/node_modules/process/README.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/process/browser.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/process/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/process/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/pstree.remy/.travis.yml delete mode 100644 Easebuzz_NodeJS_kit/node_modules/pstree.remy/LICENSE delete mode 100644 Easebuzz_NodeJS_kit/node_modules/pstree.remy/README.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/pstree.remy/lib/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/pstree.remy/lib/tree.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/pstree.remy/lib/utils.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/pstree.remy/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/pstree.remy/tests/fixtures/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/pstree.remy/tests/fixtures/out1 delete mode 100644 Easebuzz_NodeJS_kit/node_modules/pstree.remy/tests/fixtures/out2 delete mode 100644 Easebuzz_NodeJS_kit/node_modules/pstree.remy/tests/index.test.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/pump/.travis.yml delete mode 100644 Easebuzz_NodeJS_kit/node_modules/pump/LICENSE delete mode 100644 Easebuzz_NodeJS_kit/node_modules/pump/README.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/pump/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/pump/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/pump/test-browser.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/pump/test-node.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/pupa/index.d.ts delete mode 100644 Easebuzz_NodeJS_kit/node_modules/pupa/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/pupa/license delete mode 100644 Easebuzz_NodeJS_kit/node_modules/pupa/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/pupa/readme.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/rc/LICENSE.APACHE2 delete mode 100644 Easebuzz_NodeJS_kit/node_modules/rc/LICENSE.BSD delete mode 100644 Easebuzz_NodeJS_kit/node_modules/rc/LICENSE.MIT delete mode 100644 Easebuzz_NodeJS_kit/node_modules/rc/README.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/rc/browser.js delete mode 100755 Easebuzz_NodeJS_kit/node_modules/rc/cli.js delete mode 100755 Easebuzz_NodeJS_kit/node_modules/rc/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/rc/lib/utils.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/rc/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/rc/test/ini.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/rc/test/nested-env-vars.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/rc/test/test.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/readdirp/LICENSE delete mode 100644 Easebuzz_NodeJS_kit/node_modules/readdirp/README.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/readdirp/index.d.ts delete mode 100644 Easebuzz_NodeJS_kit/node_modules/readdirp/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/readdirp/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/registry-auth-token/CHANGELOG.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/registry-auth-token/LICENSE delete mode 100644 Easebuzz_NodeJS_kit/node_modules/registry-auth-token/README.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/registry-auth-token/base64.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/registry-auth-token/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/registry-auth-token/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/registry-auth-token/registry-url.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/registry-auth-token/test/auth-token.test.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/registry-auth-token/test/registry-url.test.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/registry-url/index.d.ts delete mode 100644 Easebuzz_NodeJS_kit/node_modules/registry-url/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/registry-url/license delete mode 100644 Easebuzz_NodeJS_kit/node_modules/registry-url/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/registry-url/readme.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/responselike/LICENSE delete mode 100644 Easebuzz_NodeJS_kit/node_modules/responselike/README.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/responselike/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/responselike/src/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/semver-diff/index.d.ts delete mode 100644 Easebuzz_NodeJS_kit/node_modules/semver-diff/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/semver-diff/license delete mode 120000 Easebuzz_NodeJS_kit/node_modules/semver-diff/node_modules/.bin/semver delete mode 100644 Easebuzz_NodeJS_kit/node_modules/semver-diff/node_modules/semver/CHANGELOG.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/semver-diff/node_modules/semver/LICENSE delete mode 100644 Easebuzz_NodeJS_kit/node_modules/semver-diff/node_modules/semver/README.md delete mode 100755 Easebuzz_NodeJS_kit/node_modules/semver-diff/node_modules/semver/bin/semver.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/semver-diff/node_modules/semver/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/semver-diff/node_modules/semver/range.bnf delete mode 100644 Easebuzz_NodeJS_kit/node_modules/semver-diff/node_modules/semver/semver.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/semver-diff/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/semver-diff/readme.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/semver/CHANGELOG.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/semver/LICENSE delete mode 100644 Easebuzz_NodeJS_kit/node_modules/semver/README.md delete mode 100755 Easebuzz_NodeJS_kit/node_modules/semver/bin/semver delete mode 100644 Easebuzz_NodeJS_kit/node_modules/semver/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/semver/range.bnf delete mode 100644 Easebuzz_NodeJS_kit/node_modules/semver/semver.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/signal-exit/CHANGELOG.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/signal-exit/LICENSE.txt delete mode 100644 Easebuzz_NodeJS_kit/node_modules/signal-exit/README.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/signal-exit/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/signal-exit/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/signal-exit/signals.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/string-width/index.d.ts delete mode 100644 Easebuzz_NodeJS_kit/node_modules/string-width/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/string-width/license delete mode 100644 Easebuzz_NodeJS_kit/node_modules/string-width/node_modules/ansi-regex/index.d.ts delete mode 100644 Easebuzz_NodeJS_kit/node_modules/string-width/node_modules/ansi-regex/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/string-width/node_modules/ansi-regex/license delete mode 100644 Easebuzz_NodeJS_kit/node_modules/string-width/node_modules/ansi-regex/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/string-width/node_modules/ansi-regex/readme.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/string-width/node_modules/emoji-regex/LICENSE-MIT.txt delete mode 100644 Easebuzz_NodeJS_kit/node_modules/string-width/node_modules/emoji-regex/README.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/string-width/node_modules/emoji-regex/es2015/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/string-width/node_modules/emoji-regex/es2015/text.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/string-width/node_modules/emoji-regex/index.d.ts delete mode 100644 Easebuzz_NodeJS_kit/node_modules/string-width/node_modules/emoji-regex/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/string-width/node_modules/emoji-regex/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/string-width/node_modules/emoji-regex/text.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/string-width/node_modules/is-fullwidth-code-point/index.d.ts delete mode 100644 Easebuzz_NodeJS_kit/node_modules/string-width/node_modules/is-fullwidth-code-point/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/string-width/node_modules/is-fullwidth-code-point/license delete mode 100644 Easebuzz_NodeJS_kit/node_modules/string-width/node_modules/is-fullwidth-code-point/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/string-width/node_modules/is-fullwidth-code-point/readme.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/string-width/node_modules/strip-ansi/index.d.ts delete mode 100644 Easebuzz_NodeJS_kit/node_modules/string-width/node_modules/strip-ansi/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/string-width/node_modules/strip-ansi/license delete mode 100644 Easebuzz_NodeJS_kit/node_modules/string-width/node_modules/strip-ansi/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/string-width/node_modules/strip-ansi/readme.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/string-width/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/string-width/readme.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/strip-ansi/index.d.ts delete mode 100644 Easebuzz_NodeJS_kit/node_modules/strip-ansi/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/strip-ansi/license delete mode 100644 Easebuzz_NodeJS_kit/node_modules/strip-ansi/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/strip-ansi/readme.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/strip-json-comments/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/strip-json-comments/license delete mode 100644 Easebuzz_NodeJS_kit/node_modules/strip-json-comments/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/strip-json-comments/readme.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/supports-color/browser.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/supports-color/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/supports-color/license delete mode 100644 Easebuzz_NodeJS_kit/node_modules/supports-color/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/supports-color/readme.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/term-size/index.d.ts delete mode 100644 Easebuzz_NodeJS_kit/node_modules/term-size/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/term-size/license delete mode 100644 Easebuzz_NodeJS_kit/node_modules/term-size/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/term-size/readme.md delete mode 100755 Easebuzz_NodeJS_kit/node_modules/term-size/vendor/macos/term-size delete mode 100644 Easebuzz_NodeJS_kit/node_modules/term-size/vendor/windows/term-size.exe delete mode 100644 Easebuzz_NodeJS_kit/node_modules/to-readable-stream/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/to-readable-stream/license delete mode 100644 Easebuzz_NodeJS_kit/node_modules/to-readable-stream/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/to-readable-stream/readme.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/to-regex-range/LICENSE delete mode 100644 Easebuzz_NodeJS_kit/node_modules/to-regex-range/README.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/to-regex-range/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/to-regex-range/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/touch/LICENSE delete mode 100644 Easebuzz_NodeJS_kit/node_modules/touch/README.md delete mode 100755 Easebuzz_NodeJS_kit/node_modules/touch/bin/nodetouch.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/touch/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/touch/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/type-fest/index.d.ts delete mode 100644 Easebuzz_NodeJS_kit/node_modules/type-fest/license delete mode 100644 Easebuzz_NodeJS_kit/node_modules/type-fest/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/type-fest/readme.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/type-fest/source/basic.d.ts delete mode 100644 Easebuzz_NodeJS_kit/node_modules/type-fest/source/except.d.ts delete mode 100644 Easebuzz_NodeJS_kit/node_modules/type-fest/source/literal-union.d.ts delete mode 100644 Easebuzz_NodeJS_kit/node_modules/type-fest/source/merge-exclusive.d.ts delete mode 100644 Easebuzz_NodeJS_kit/node_modules/type-fest/source/merge.d.ts delete mode 100644 Easebuzz_NodeJS_kit/node_modules/type-fest/source/mutable.d.ts delete mode 100644 Easebuzz_NodeJS_kit/node_modules/type-fest/source/opaque.d.ts delete mode 100644 Easebuzz_NodeJS_kit/node_modules/type-fest/source/package-json.d.ts delete mode 100644 Easebuzz_NodeJS_kit/node_modules/type-fest/source/partial-deep.d.ts delete mode 100644 Easebuzz_NodeJS_kit/node_modules/type-fest/source/promisable.d.ts delete mode 100644 Easebuzz_NodeJS_kit/node_modules/type-fest/source/readonly-deep.d.ts delete mode 100644 Easebuzz_NodeJS_kit/node_modules/type-fest/source/require-at-least-one.d.ts delete mode 100644 Easebuzz_NodeJS_kit/node_modules/type-fest/source/require-exactly-one.d.ts delete mode 100644 Easebuzz_NodeJS_kit/node_modules/type-fest/source/set-optional.d.ts delete mode 100644 Easebuzz_NodeJS_kit/node_modules/type-fest/source/set-required.d.ts delete mode 100644 Easebuzz_NodeJS_kit/node_modules/typedarray-to-buffer/.airtap.yml delete mode 100644 Easebuzz_NodeJS_kit/node_modules/typedarray-to-buffer/.travis.yml delete mode 100644 Easebuzz_NodeJS_kit/node_modules/typedarray-to-buffer/LICENSE delete mode 100644 Easebuzz_NodeJS_kit/node_modules/typedarray-to-buffer/README.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/typedarray-to-buffer/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/typedarray-to-buffer/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/typedarray-to-buffer/test/basic.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/undefsafe/.jscsrc delete mode 100644 Easebuzz_NodeJS_kit/node_modules/undefsafe/.jshintrc delete mode 100644 Easebuzz_NodeJS_kit/node_modules/undefsafe/.npmignore delete mode 100644 Easebuzz_NodeJS_kit/node_modules/undefsafe/.travis.yml delete mode 100644 Easebuzz_NodeJS_kit/node_modules/undefsafe/LICENSE delete mode 100644 Easebuzz_NodeJS_kit/node_modules/undefsafe/README.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/undefsafe/example.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/undefsafe/lib/undefsafe.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/undefsafe/node_modules/debug/.coveralls.yml delete mode 100644 Easebuzz_NodeJS_kit/node_modules/undefsafe/node_modules/debug/.eslintrc delete mode 100644 Easebuzz_NodeJS_kit/node_modules/undefsafe/node_modules/debug/.npmignore delete mode 100644 Easebuzz_NodeJS_kit/node_modules/undefsafe/node_modules/debug/.travis.yml delete mode 100644 Easebuzz_NodeJS_kit/node_modules/undefsafe/node_modules/debug/CHANGELOG.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/undefsafe/node_modules/debug/LICENSE delete mode 100644 Easebuzz_NodeJS_kit/node_modules/undefsafe/node_modules/debug/Makefile delete mode 100644 Easebuzz_NodeJS_kit/node_modules/undefsafe/node_modules/debug/README.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/undefsafe/node_modules/debug/component.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/undefsafe/node_modules/debug/karma.conf.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/undefsafe/node_modules/debug/node.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/undefsafe/node_modules/debug/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/undefsafe/node_modules/debug/src/browser.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/undefsafe/node_modules/debug/src/debug.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/undefsafe/node_modules/debug/src/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/undefsafe/node_modules/debug/src/inspector-log.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/undefsafe/node_modules/debug/src/node.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/undefsafe/node_modules/ms/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/undefsafe/node_modules/ms/license.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/undefsafe/node_modules/ms/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/undefsafe/node_modules/ms/readme.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/undefsafe/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/unique-string/index.d.ts delete mode 100644 Easebuzz_NodeJS_kit/node_modules/unique-string/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/unique-string/license delete mode 100644 Easebuzz_NodeJS_kit/node_modules/unique-string/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/unique-string/readme.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/update-notifier/check.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/update-notifier/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/update-notifier/license delete mode 100644 Easebuzz_NodeJS_kit/node_modules/update-notifier/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/update-notifier/readme.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/url-parse-lax/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/url-parse-lax/license delete mode 100644 Easebuzz_NodeJS_kit/node_modules/url-parse-lax/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/url-parse-lax/readme.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/widest-line/index.d.ts delete mode 100644 Easebuzz_NodeJS_kit/node_modules/widest-line/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/widest-line/license delete mode 100644 Easebuzz_NodeJS_kit/node_modules/widest-line/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/widest-line/readme.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/wrappy/LICENSE delete mode 100644 Easebuzz_NodeJS_kit/node_modules/wrappy/README.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/wrappy/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/wrappy/wrappy.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/write-file-atomic/CHANGELOG.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/write-file-atomic/LICENSE delete mode 100644 Easebuzz_NodeJS_kit/node_modules/write-file-atomic/README.md delete mode 100644 Easebuzz_NodeJS_kit/node_modules/write-file-atomic/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/write-file-atomic/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/xdg-basedir/index.d.ts delete mode 100644 Easebuzz_NodeJS_kit/node_modules/xdg-basedir/index.js delete mode 100644 Easebuzz_NodeJS_kit/node_modules/xdg-basedir/license delete mode 100644 Easebuzz_NodeJS_kit/node_modules/xdg-basedir/package.json delete mode 100644 Easebuzz_NodeJS_kit/node_modules/xdg-basedir/readme.md diff --git a/Easebuzz_NodeJS_kit/node_modules/.bin/ejs b/Easebuzz_NodeJS_kit/node_modules/.bin/ejs deleted file mode 120000 index 88e80d0..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/.bin/ejs +++ /dev/null @@ -1 +0,0 @@ -../ejs/bin/cli.js \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/.bin/is-ci b/Easebuzz_NodeJS_kit/node_modules/.bin/is-ci deleted file mode 120000 index fe6aca6..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/.bin/is-ci +++ /dev/null @@ -1 +0,0 @@ -../is-ci/bin.js \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/.bin/jake b/Easebuzz_NodeJS_kit/node_modules/.bin/jake deleted file mode 120000 index 3626745..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/.bin/jake +++ /dev/null @@ -1 +0,0 @@ -../jake/bin/cli.js \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/.bin/nodemon b/Easebuzz_NodeJS_kit/node_modules/.bin/nodemon deleted file mode 120000 index 1056ddc..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/.bin/nodemon +++ /dev/null @@ -1 +0,0 @@ -../nodemon/bin/nodemon.js \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/.bin/nodetouch b/Easebuzz_NodeJS_kit/node_modules/.bin/nodetouch deleted file mode 120000 index 3409fdb..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/.bin/nodetouch +++ /dev/null @@ -1 +0,0 @@ -../touch/bin/nodetouch.js \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/.bin/nopt b/Easebuzz_NodeJS_kit/node_modules/.bin/nopt deleted file mode 120000 index 6b6566e..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/.bin/nopt +++ /dev/null @@ -1 +0,0 @@ -../nopt/bin/nopt.js \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/.bin/rc b/Easebuzz_NodeJS_kit/node_modules/.bin/rc deleted file mode 120000 index 48b3cda..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/.bin/rc +++ /dev/null @@ -1 +0,0 @@ -../rc/cli.js \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/.bin/semver b/Easebuzz_NodeJS_kit/node_modules/.bin/semver deleted file mode 120000 index 317eb29..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/.bin/semver +++ /dev/null @@ -1 +0,0 @@ -../semver/bin/semver \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/@sindresorhus/is/dist/index.d.ts b/Easebuzz_NodeJS_kit/node_modules/@sindresorhus/is/dist/index.d.ts deleted file mode 100644 index e94d30b..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/@sindresorhus/is/dist/index.d.ts +++ /dev/null @@ -1,132 +0,0 @@ -/// -/// -/// -/// -/// -declare type TypedArray = Int8Array | Uint8Array | Uint8ClampedArray | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array; -declare type Primitive = null | undefined | string | number | boolean | Symbol; -export interface ArrayLike { - length: number; -} -export interface Class { - new (...args: any[]): T; -} -declare type DomElement = object & { - nodeType: 1; - nodeName: string; -}; -declare type NodeStream = object & { - pipe: Function; -}; -export declare const enum TypeName { - null = "null", - boolean = "boolean", - undefined = "undefined", - string = "string", - number = "number", - symbol = "symbol", - Function = "Function", - GeneratorFunction = "GeneratorFunction", - AsyncFunction = "AsyncFunction", - Observable = "Observable", - Array = "Array", - Buffer = "Buffer", - Object = "Object", - RegExp = "RegExp", - Date = "Date", - Error = "Error", - Map = "Map", - Set = "Set", - WeakMap = "WeakMap", - WeakSet = "WeakSet", - Int8Array = "Int8Array", - Uint8Array = "Uint8Array", - Uint8ClampedArray = "Uint8ClampedArray", - Int16Array = "Int16Array", - Uint16Array = "Uint16Array", - Int32Array = "Int32Array", - Uint32Array = "Uint32Array", - Float32Array = "Float32Array", - Float64Array = "Float64Array", - ArrayBuffer = "ArrayBuffer", - SharedArrayBuffer = "SharedArrayBuffer", - DataView = "DataView", - Promise = "Promise", - URL = "URL" -} -declare function is(value: unknown): TypeName; -declare namespace is { - const undefined: (value: unknown) => value is undefined; - const string: (value: unknown) => value is string; - const number: (value: unknown) => value is number; - const function_: (value: unknown) => value is Function; - const null_: (value: unknown) => value is null; - const class_: (value: unknown) => value is Class; - const boolean: (value: unknown) => value is boolean; - const symbol: (value: unknown) => value is Symbol; - const numericString: (value: unknown) => boolean; - const array: (arg: any) => arg is any[]; - const buffer: (input: unknown) => input is Buffer; - const nullOrUndefined: (value: unknown) => value is null | undefined; - const object: (value: unknown) => value is object; - const iterable: (value: unknown) => value is IterableIterator; - const asyncIterable: (value: unknown) => value is AsyncIterableIterator; - const generator: (value: unknown) => value is Generator; - const nativePromise: (value: unknown) => value is Promise; - const promise: (value: unknown) => value is Promise; - const generatorFunction: (value: unknown) => value is GeneratorFunction; - const asyncFunction: (value: unknown) => value is Function; - const boundFunction: (value: unknown) => value is Function; - const regExp: (value: unknown) => value is RegExp; - const date: (value: unknown) => value is Date; - const error: (value: unknown) => value is Error; - const map: (value: unknown) => value is Map; - const set: (value: unknown) => value is Set; - const weakMap: (value: unknown) => value is WeakMap; - const weakSet: (value: unknown) => value is WeakSet; - const int8Array: (value: unknown) => value is Int8Array; - const uint8Array: (value: unknown) => value is Uint8Array; - const uint8ClampedArray: (value: unknown) => value is Uint8ClampedArray; - const int16Array: (value: unknown) => value is Int16Array; - const uint16Array: (value: unknown) => value is Uint16Array; - const int32Array: (value: unknown) => value is Int32Array; - const uint32Array: (value: unknown) => value is Uint32Array; - const float32Array: (value: unknown) => value is Float32Array; - const float64Array: (value: unknown) => value is Float64Array; - const arrayBuffer: (value: unknown) => value is ArrayBuffer; - const sharedArrayBuffer: (value: unknown) => value is SharedArrayBuffer; - const dataView: (value: unknown) => value is DataView; - const directInstanceOf: (instance: unknown, klass: Class) => instance is T; - const urlInstance: (value: unknown) => value is URL; - const urlString: (value: unknown) => boolean; - const truthy: (value: unknown) => boolean; - const falsy: (value: unknown) => boolean; - const nan: (value: unknown) => boolean; - const primitive: (value: unknown) => value is Primitive; - const integer: (value: unknown) => value is number; - const safeInteger: (value: unknown) => value is number; - const plainObject: (value: unknown) => boolean; - const typedArray: (value: unknown) => value is TypedArray; - const arrayLike: (value: unknown) => value is ArrayLike; - const inRange: (value: number, range: number | number[]) => boolean; - const domElement: (value: unknown) => value is DomElement; - const observable: (value: unknown) => boolean; - const nodeStream: (value: unknown) => value is NodeStream; - const infinite: (value: unknown) => boolean; - const even: (value: number) => boolean; - const odd: (value: number) => boolean; - const emptyArray: (value: unknown) => boolean; - const nonEmptyArray: (value: unknown) => boolean; - const emptyString: (value: unknown) => boolean; - const nonEmptyString: (value: unknown) => boolean; - const emptyStringOrWhitespace: (value: unknown) => boolean; - const emptyObject: (value: unknown) => boolean; - const nonEmptyObject: (value: unknown) => boolean; - const emptySet: (value: unknown) => boolean; - const nonEmptySet: (value: unknown) => boolean; - const emptyMap: (value: unknown) => boolean; - const nonEmptyMap: (value: unknown) => boolean; - const any: (predicate: unknown, ...values: unknown[]) => boolean; - const all: (predicate: unknown, ...values: unknown[]) => boolean; -} -export default is; diff --git a/Easebuzz_NodeJS_kit/node_modules/@sindresorhus/is/dist/index.js b/Easebuzz_NodeJS_kit/node_modules/@sindresorhus/is/dist/index.js deleted file mode 100644 index 3cbafae..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/@sindresorhus/is/dist/index.js +++ /dev/null @@ -1,245 +0,0 @@ -"use strict"; -/// -/// -/// -/// -Object.defineProperty(exports, "__esModule", { value: true }); -// TODO: Use the `URL` global when targeting Node.js 10 -// tslint:disable-next-line -const URLGlobal = typeof URL === 'undefined' ? require('url').URL : URL; -const toString = Object.prototype.toString; -const isOfType = (type) => (value) => typeof value === type; -const isBuffer = (input) => !is.nullOrUndefined(input) && !is.nullOrUndefined(input.constructor) && is.function_(input.constructor.isBuffer) && input.constructor.isBuffer(input); -const getObjectType = (value) => { - const objectName = toString.call(value).slice(8, -1); - if (objectName) { - return objectName; - } - return null; -}; -const isObjectOfType = (type) => (value) => getObjectType(value) === type; -function is(value) { - switch (value) { - case null: - return "null" /* null */; - case true: - case false: - return "boolean" /* boolean */; - default: - } - switch (typeof value) { - case 'undefined': - return "undefined" /* undefined */; - case 'string': - return "string" /* string */; - case 'number': - return "number" /* number */; - case 'symbol': - return "symbol" /* symbol */; - default: - } - if (is.function_(value)) { - return "Function" /* Function */; - } - if (is.observable(value)) { - return "Observable" /* Observable */; - } - if (Array.isArray(value)) { - return "Array" /* Array */; - } - if (isBuffer(value)) { - return "Buffer" /* Buffer */; - } - const tagType = getObjectType(value); - if (tagType) { - return tagType; - } - if (value instanceof String || value instanceof Boolean || value instanceof Number) { - throw new TypeError('Please don\'t use object wrappers for primitive types'); - } - return "Object" /* Object */; -} -(function (is) { - // tslint:disable-next-line:strict-type-predicates - const isObject = (value) => typeof value === 'object'; - // tslint:disable:variable-name - is.undefined = isOfType('undefined'); - is.string = isOfType('string'); - is.number = isOfType('number'); - is.function_ = isOfType('function'); - // tslint:disable-next-line:strict-type-predicates - is.null_ = (value) => value === null; - is.class_ = (value) => is.function_(value) && value.toString().startsWith('class '); - is.boolean = (value) => value === true || value === false; - is.symbol = isOfType('symbol'); - // tslint:enable:variable-name - is.numericString = (value) => is.string(value) && value.length > 0 && !Number.isNaN(Number(value)); - is.array = Array.isArray; - is.buffer = isBuffer; - is.nullOrUndefined = (value) => is.null_(value) || is.undefined(value); - is.object = (value) => !is.nullOrUndefined(value) && (is.function_(value) || isObject(value)); - is.iterable = (value) => !is.nullOrUndefined(value) && is.function_(value[Symbol.iterator]); - is.asyncIterable = (value) => !is.nullOrUndefined(value) && is.function_(value[Symbol.asyncIterator]); - is.generator = (value) => is.iterable(value) && is.function_(value.next) && is.function_(value.throw); - is.nativePromise = (value) => isObjectOfType("Promise" /* Promise */)(value); - const hasPromiseAPI = (value) => !is.null_(value) && - isObject(value) && - is.function_(value.then) && - is.function_(value.catch); - is.promise = (value) => is.nativePromise(value) || hasPromiseAPI(value); - is.generatorFunction = isObjectOfType("GeneratorFunction" /* GeneratorFunction */); - is.asyncFunction = isObjectOfType("AsyncFunction" /* AsyncFunction */); - is.boundFunction = (value) => is.function_(value) && !value.hasOwnProperty('prototype'); - is.regExp = isObjectOfType("RegExp" /* RegExp */); - is.date = isObjectOfType("Date" /* Date */); - is.error = isObjectOfType("Error" /* Error */); - is.map = (value) => isObjectOfType("Map" /* Map */)(value); - is.set = (value) => isObjectOfType("Set" /* Set */)(value); - is.weakMap = (value) => isObjectOfType("WeakMap" /* WeakMap */)(value); - is.weakSet = (value) => isObjectOfType("WeakSet" /* WeakSet */)(value); - is.int8Array = isObjectOfType("Int8Array" /* Int8Array */); - is.uint8Array = isObjectOfType("Uint8Array" /* Uint8Array */); - is.uint8ClampedArray = isObjectOfType("Uint8ClampedArray" /* Uint8ClampedArray */); - is.int16Array = isObjectOfType("Int16Array" /* Int16Array */); - is.uint16Array = isObjectOfType("Uint16Array" /* Uint16Array */); - is.int32Array = isObjectOfType("Int32Array" /* Int32Array */); - is.uint32Array = isObjectOfType("Uint32Array" /* Uint32Array */); - is.float32Array = isObjectOfType("Float32Array" /* Float32Array */); - is.float64Array = isObjectOfType("Float64Array" /* Float64Array */); - is.arrayBuffer = isObjectOfType("ArrayBuffer" /* ArrayBuffer */); - is.sharedArrayBuffer = isObjectOfType("SharedArrayBuffer" /* SharedArrayBuffer */); - is.dataView = isObjectOfType("DataView" /* DataView */); - is.directInstanceOf = (instance, klass) => Object.getPrototypeOf(instance) === klass.prototype; - is.urlInstance = (value) => isObjectOfType("URL" /* URL */)(value); - is.urlString = (value) => { - if (!is.string(value)) { - return false; - } - try { - new URLGlobal(value); // tslint:disable-line no-unused-expression - return true; - } - catch (_a) { - return false; - } - }; - is.truthy = (value) => Boolean(value); - is.falsy = (value) => !value; - is.nan = (value) => Number.isNaN(value); - const primitiveTypes = new Set([ - 'undefined', - 'string', - 'number', - 'boolean', - 'symbol' - ]); - is.primitive = (value) => is.null_(value) || primitiveTypes.has(typeof value); - is.integer = (value) => Number.isInteger(value); - is.safeInteger = (value) => Number.isSafeInteger(value); - is.plainObject = (value) => { - // From: https://github.com/sindresorhus/is-plain-obj/blob/master/index.js - let prototype; - return getObjectType(value) === "Object" /* Object */ && - (prototype = Object.getPrototypeOf(value), prototype === null || // tslint:disable-line:ban-comma-operator - prototype === Object.getPrototypeOf({})); - }; - const typedArrayTypes = new Set([ - "Int8Array" /* Int8Array */, - "Uint8Array" /* Uint8Array */, - "Uint8ClampedArray" /* Uint8ClampedArray */, - "Int16Array" /* Int16Array */, - "Uint16Array" /* Uint16Array */, - "Int32Array" /* Int32Array */, - "Uint32Array" /* Uint32Array */, - "Float32Array" /* Float32Array */, - "Float64Array" /* Float64Array */ - ]); - is.typedArray = (value) => { - const objectType = getObjectType(value); - if (objectType === null) { - return false; - } - return typedArrayTypes.has(objectType); - }; - const isValidLength = (value) => is.safeInteger(value) && value > -1; - is.arrayLike = (value) => !is.nullOrUndefined(value) && !is.function_(value) && isValidLength(value.length); - is.inRange = (value, range) => { - if (is.number(range)) { - return value >= Math.min(0, range) && value <= Math.max(range, 0); - } - if (is.array(range) && range.length === 2) { - return value >= Math.min(...range) && value <= Math.max(...range); - } - throw new TypeError(`Invalid range: ${JSON.stringify(range)}`); - }; - const NODE_TYPE_ELEMENT = 1; - const DOM_PROPERTIES_TO_CHECK = [ - 'innerHTML', - 'ownerDocument', - 'style', - 'attributes', - 'nodeValue' - ]; - is.domElement = (value) => is.object(value) && value.nodeType === NODE_TYPE_ELEMENT && is.string(value.nodeName) && - !is.plainObject(value) && DOM_PROPERTIES_TO_CHECK.every(property => property in value); - is.observable = (value) => { - if (!value) { - return false; - } - if (value[Symbol.observable] && value === value[Symbol.observable]()) { - return true; - } - if (value['@@observable'] && value === value['@@observable']()) { - return true; - } - return false; - }; - is.nodeStream = (value) => !is.nullOrUndefined(value) && isObject(value) && is.function_(value.pipe) && !is.observable(value); - is.infinite = (value) => value === Infinity || value === -Infinity; - const isAbsoluteMod2 = (rem) => (value) => is.integer(value) && Math.abs(value % 2) === rem; - is.even = isAbsoluteMod2(0); - is.odd = isAbsoluteMod2(1); - const isWhiteSpaceString = (value) => is.string(value) && /\S/.test(value) === false; - is.emptyArray = (value) => is.array(value) && value.length === 0; - is.nonEmptyArray = (value) => is.array(value) && value.length > 0; - is.emptyString = (value) => is.string(value) && value.length === 0; - is.nonEmptyString = (value) => is.string(value) && value.length > 0; - is.emptyStringOrWhitespace = (value) => is.emptyString(value) || isWhiteSpaceString(value); - is.emptyObject = (value) => is.object(value) && !is.map(value) && !is.set(value) && Object.keys(value).length === 0; - is.nonEmptyObject = (value) => is.object(value) && !is.map(value) && !is.set(value) && Object.keys(value).length > 0; - is.emptySet = (value) => is.set(value) && value.size === 0; - is.nonEmptySet = (value) => is.set(value) && value.size > 0; - is.emptyMap = (value) => is.map(value) && value.size === 0; - is.nonEmptyMap = (value) => is.map(value) && value.size > 0; - const predicateOnArray = (method, predicate, values) => { - if (is.function_(predicate) === false) { - throw new TypeError(`Invalid predicate: ${JSON.stringify(predicate)}`); - } - if (values.length === 0) { - throw new TypeError('Invalid number of values'); - } - return method.call(values, predicate); - }; - // tslint:disable variable-name - is.any = (predicate, ...values) => predicateOnArray(Array.prototype.some, predicate, values); - is.all = (predicate, ...values) => predicateOnArray(Array.prototype.every, predicate, values); - // tslint:enable variable-name -})(is || (is = {})); -// Some few keywords are reserved, but we'll populate them for Node.js users -// See https://github.com/Microsoft/TypeScript/issues/2536 -Object.defineProperties(is, { - class: { - value: is.class_ - }, - function: { - value: is.function_ - }, - null: { - value: is.null_ - } -}); -exports.default = is; -// For CommonJS default export support -module.exports = is; -module.exports.default = is; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/@sindresorhus/is/dist/index.js.map b/Easebuzz_NodeJS_kit/node_modules/@sindresorhus/is/dist/index.js.map deleted file mode 100644 index cd827fc..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/@sindresorhus/is/dist/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../source/index.ts"],"names":[],"mappings":";AAAA,6BAA6B;AAC7B,0CAA0C;AAC1C,2CAA2C;AAC3C,0BAA0B;;AAE1B,uDAAuD;AACvD,2BAA2B;AAC3B,MAAM,SAAS,GAAG,OAAO,GAAG,KAAK,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC;AAqDxE,MAAM,QAAQ,GAAG,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC;AAC3C,MAAM,QAAQ,GAAG,CAAI,IAAY,EAAE,EAAE,CAAC,CAAC,KAAc,EAAc,EAAE,CAAC,OAAO,KAAK,KAAK,IAAI,CAAC;AAC5F,MAAM,QAAQ,GAAG,CAAC,KAAc,EAAmB,EAAE,CAAC,CAAC,EAAE,CAAC,eAAe,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,eAAe,CAAE,KAAgB,CAAC,WAAW,CAAC,IAAI,EAAE,CAAC,SAAS,CAAE,KAAgB,CAAC,WAAW,CAAC,QAAQ,CAAC,IAAK,KAAgB,CAAC,WAAW,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;AAEhP,MAAM,aAAa,GAAG,CAAC,KAAc,EAAmB,EAAE;IACzD,MAAM,UAAU,GAAG,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;IAErD,IAAI,UAAU,EAAE;QACf,OAAO,UAAsB,CAAC;KAC9B;IAED,OAAO,IAAI,CAAC;AACb,CAAC,CAAC;AAEF,MAAM,cAAc,GAAG,CAAI,IAAc,EAAE,EAAE,CAAC,CAAC,KAAc,EAAc,EAAE,CAAC,aAAa,CAAC,KAAK,CAAC,KAAK,IAAI,CAAC;AAE5G,SAAS,EAAE,CAAC,KAAc;IACzB,QAAQ,KAAK,EAAE;QACd,KAAK,IAAI;YACR,yBAAqB;QACtB,KAAK,IAAI,CAAC;QACV,KAAK,KAAK;YACT,+BAAwB;QACzB,QAAQ;KACR;IAED,QAAQ,OAAO,KAAK,EAAE;QACrB,KAAK,WAAW;YACf,mCAA0B;QAC3B,KAAK,QAAQ;YACZ,6BAAuB;QACxB,KAAK,QAAQ;YACZ,6BAAuB;QACxB,KAAK,QAAQ;YACZ,6BAAuB;QACxB,QAAQ;KACR;IAED,IAAI,EAAE,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE;QACxB,iCAAyB;KACzB;IAED,IAAI,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE;QACzB,qCAA2B;KAC3B;IAED,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;QACzB,2BAAsB;KACtB;IAED,IAAI,QAAQ,CAAC,KAAK,CAAC,EAAE;QACpB,6BAAuB;KACvB;IAED,MAAM,OAAO,GAAG,aAAa,CAAC,KAAK,CAAC,CAAC;IACrC,IAAI,OAAO,EAAE;QACZ,OAAO,OAAO,CAAC;KACf;IAED,IAAI,KAAK,YAAY,MAAM,IAAI,KAAK,YAAY,OAAO,IAAI,KAAK,YAAY,MAAM,EAAE;QACnF,MAAM,IAAI,SAAS,CAAC,uDAAuD,CAAC,CAAC;KAC7E;IAED,6BAAuB;AACxB,CAAC;AAED,WAAU,EAAE;IACX,kDAAkD;IAClD,MAAM,QAAQ,GAAG,CAAC,KAAc,EAAmB,EAAE,CAAC,OAAO,KAAK,KAAK,QAAQ,CAAC;IAEhF,+BAA+B;IAClB,YAAS,GAAG,QAAQ,CAAY,WAAW,CAAC,CAAC;IAC7C,SAAM,GAAG,QAAQ,CAAS,QAAQ,CAAC,CAAC;IACpC,SAAM,GAAG,QAAQ,CAAS,QAAQ,CAAC,CAAC;IACpC,YAAS,GAAG,QAAQ,CAAW,UAAU,CAAC,CAAC;IACxD,kDAAkD;IACrC,QAAK,GAAG,CAAC,KAAc,EAAiB,EAAE,CAAC,KAAK,KAAK,IAAI,CAAC;IAC1D,SAAM,GAAG,CAAC,KAAc,EAAkB,EAAE,CAAC,GAAA,SAAS,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,QAAQ,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC;IACvG,UAAO,GAAG,CAAC,KAAc,EAAoB,EAAE,CAAC,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,KAAK,CAAC;IAClF,SAAM,GAAG,QAAQ,CAAS,QAAQ,CAAC,CAAC;IACjD,8BAA8B;IAEjB,gBAAa,GAAG,CAAC,KAAc,EAAW,EAAE,CACxD,GAAA,MAAM,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;IAEtD,QAAK,GAAG,KAAK,CAAC,OAAO,CAAC;IACtB,SAAM,GAAG,QAAQ,CAAC;IAElB,kBAAe,GAAG,CAAC,KAAc,EAA6B,EAAE,CAAC,GAAA,KAAK,CAAC,KAAK,CAAC,IAAI,GAAA,SAAS,CAAC,KAAK,CAAC,CAAC;IAClG,SAAM,GAAG,CAAC,KAAc,EAAmB,EAAE,CAAC,CAAC,GAAA,eAAe,CAAC,KAAK,CAAC,IAAI,CAAC,GAAA,SAAS,CAAC,KAAK,CAAC,IAAI,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC;IAC/G,WAAQ,GAAG,CAAC,KAAc,EAAsC,EAAE,CAAC,CAAC,GAAA,eAAe,CAAC,KAAK,CAAC,IAAI,GAAA,SAAS,CAAE,KAAmC,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC/J,gBAAa,GAAG,CAAC,KAAc,EAA2C,EAAE,CAAC,CAAC,GAAA,eAAe,CAAC,KAAK,CAAC,IAAI,GAAA,SAAS,CAAE,KAAwC,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC;IACnL,YAAS,GAAG,CAAC,KAAc,EAAsB,EAAE,CAAC,GAAA,QAAQ,CAAC,KAAK,CAAC,IAAI,GAAA,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,GAAA,SAAS,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IAEvH,gBAAa,GAAG,CAAC,KAAc,EAA6B,EAAE,CAC1E,cAAc,yBAAoC,CAAC,KAAK,CAAC,CAAC;IAE3D,MAAM,aAAa,GAAG,CAAC,KAAc,EAA6B,EAAE,CACnE,CAAC,GAAA,KAAK,CAAC,KAAK,CAAC;QACb,QAAQ,CAAC,KAAK,CAAY;QAC1B,GAAA,SAAS,CAAE,KAA0B,CAAC,IAAI,CAAC;QAC3C,GAAA,SAAS,CAAE,KAA0B,CAAC,KAAK,CAAC,CAAC;IAEjC,UAAO,GAAG,CAAC,KAAc,EAA6B,EAAE,CAAC,GAAA,aAAa,CAAC,KAAK,CAAC,IAAI,aAAa,CAAC,KAAK,CAAC,CAAC;IAEtG,oBAAiB,GAAG,cAAc,6CAA+C,CAAC;IAClF,gBAAa,GAAG,cAAc,qCAAkC,CAAC;IACjE,gBAAa,GAAG,CAAC,KAAc,EAAqB,EAAE,CAAC,GAAA,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC;IAE9G,SAAM,GAAG,cAAc,uBAAyB,CAAC;IACjD,OAAI,GAAG,cAAc,mBAAqB,CAAC;IAC3C,QAAK,GAAG,cAAc,qBAAuB,CAAC;IAC9C,MAAG,GAAG,CAAC,KAAc,EAAkC,EAAE,CAAC,cAAc,iBAAqC,CAAC,KAAK,CAAC,CAAC;IACrH,MAAG,GAAG,CAAC,KAAc,EAAyB,EAAE,CAAC,cAAc,iBAA4B,CAAC,KAAK,CAAC,CAAC;IACnG,UAAO,GAAG,CAAC,KAAc,EAAqC,EAAE,CAAC,cAAc,yBAA4C,CAAC,KAAK,CAAC,CAAC;IACnI,UAAO,GAAG,CAAC,KAAc,EAA4B,EAAE,CAAC,cAAc,yBAAmC,CAAC,KAAK,CAAC,CAAC;IAEjH,YAAS,GAAG,cAAc,6BAA+B,CAAC;IAC1D,aAAU,GAAG,cAAc,+BAAiC,CAAC;IAC7D,oBAAiB,GAAG,cAAc,6CAA+C,CAAC;IAClF,aAAU,GAAG,cAAc,+BAAiC,CAAC;IAC7D,cAAW,GAAG,cAAc,iCAAmC,CAAC;IAChE,aAAU,GAAG,cAAc,+BAAiC,CAAC;IAC7D,cAAW,GAAG,cAAc,iCAAmC,CAAC;IAChE,eAAY,GAAG,cAAc,mCAAqC,CAAC;IACnE,eAAY,GAAG,cAAc,mCAAqC,CAAC;IAEnE,cAAW,GAAG,cAAc,iCAAmC,CAAC;IAChE,oBAAiB,GAAG,cAAc,6CAA+C,CAAC;IAClF,WAAQ,GAAG,cAAc,2BAA6B,CAAC;IAEvD,mBAAgB,GAAG,CAAI,QAAiB,EAAE,KAAe,EAAiB,EAAE,CAAC,MAAM,CAAC,cAAc,CAAC,QAAQ,CAAC,KAAK,KAAK,CAAC,SAAS,CAAC;IACjI,cAAW,GAAG,CAAC,KAAc,EAAgB,EAAE,CAAC,cAAc,iBAAmB,CAAC,KAAK,CAAC,CAAC;IAEzF,YAAS,GAAG,CAAC,KAAc,EAAE,EAAE;QAC3C,IAAI,CAAC,GAAA,MAAM,CAAC,KAAK,CAAC,EAAE;YACnB,OAAO,KAAK,CAAC;SACb;QAED,IAAI;YACH,IAAI,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,2CAA2C;YACjE,OAAO,IAAI,CAAC;SACZ;QAAC,WAAM;YACP,OAAO,KAAK,CAAC;SACb;IACF,CAAC,CAAC;IAEW,SAAM,GAAG,CAAC,KAAc,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IAC5C,QAAK,GAAG,CAAC,KAAc,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC;IAEnC,MAAG,GAAG,CAAC,KAAc,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,KAAe,CAAC,CAAC;IAErE,MAAM,cAAc,GAAG,IAAI,GAAG,CAAC;QAC9B,WAAW;QACX,QAAQ;QACR,QAAQ;QACR,SAAS;QACT,QAAQ;KACR,CAAC,CAAC;IAEU,YAAS,GAAG,CAAC,KAAc,EAAsB,EAAE,CAAC,GAAA,KAAK,CAAC,KAAK,CAAC,IAAI,cAAc,CAAC,GAAG,CAAC,OAAO,KAAK,CAAC,CAAC;IAErG,UAAO,GAAG,CAAC,KAAc,EAAmB,EAAE,CAAC,MAAM,CAAC,SAAS,CAAC,KAAe,CAAC,CAAC;IACjF,cAAW,GAAG,CAAC,KAAc,EAAmB,EAAE,CAAC,MAAM,CAAC,aAAa,CAAC,KAAe,CAAC,CAAC;IAEzF,cAAW,GAAG,CAAC,KAAc,EAAE,EAAE;QAC7C,0EAA0E;QAC1E,IAAI,SAAS,CAAC;QAEd,OAAO,aAAa,CAAC,KAAK,CAAC,0BAAoB;YAC9C,CAAC,SAAS,GAAG,MAAM,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,SAAS,KAAK,IAAI,IAAI,yCAAyC;gBACzG,SAAS,KAAK,MAAM,CAAC,cAAc,CAAC,EAAE,CAAC,CAAC,CAAC;IAC5C,CAAC,CAAC;IAEF,MAAM,eAAe,GAAG,IAAI,GAAG,CAAC;;;;;;;;;;KAU/B,CAAC,CAAC;IACU,aAAU,GAAG,CAAC,KAAc,EAAuB,EAAE;QACjE,MAAM,UAAU,GAAG,aAAa,CAAC,KAAK,CAAC,CAAC;QAExC,IAAI,UAAU,KAAK,IAAI,EAAE;YACxB,OAAO,KAAK,CAAC;SACb;QAED,OAAO,eAAe,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;IACxC,CAAC,CAAC;IAEF,MAAM,aAAa,GAAG,CAAC,KAAc,EAAE,EAAE,CAAC,GAAA,WAAW,CAAC,KAAK,CAAC,IAAI,KAAK,GAAG,CAAC,CAAC,CAAC;IAC9D,YAAS,GAAG,CAAC,KAAc,EAAsB,EAAE,CAAC,CAAC,GAAA,eAAe,CAAC,KAAK,CAAC,IAAI,CAAC,GAAA,SAAS,CAAC,KAAK,CAAC,IAAI,aAAa,CAAE,KAAmB,CAAC,MAAM,CAAC,CAAC;IAE/I,UAAO,GAAG,CAAC,KAAa,EAAE,KAAwB,EAAE,EAAE;QAClE,IAAI,GAAA,MAAM,CAAC,KAAK,CAAC,EAAE;YAClB,OAAO,KAAK,IAAI,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,KAAK,CAAC,IAAI,KAAK,IAAI,IAAI,CAAC,GAAG,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;SAClE;QAED,IAAI,GAAA,KAAK,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE;YACvC,OAAO,KAAK,IAAI,IAAI,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC,IAAI,KAAK,IAAI,IAAI,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC,CAAC;SAClE;QAED,MAAM,IAAI,SAAS,CAAC,kBAAkB,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IAChE,CAAC,CAAC;IAEF,MAAM,iBAAiB,GAAG,CAAC,CAAC;IAC5B,MAAM,uBAAuB,GAAG;QAC/B,WAAW;QACX,eAAe;QACf,OAAO;QACP,YAAY;QACZ,WAAW;KACX,CAAC;IAEW,aAAU,GAAG,CAAC,KAAc,EAAuB,EAAE,CAAC,GAAA,MAAM,CAAC,KAAK,CAAC,IAAK,KAAoB,CAAC,QAAQ,KAAK,iBAAiB,IAAI,GAAA,MAAM,CAAE,KAAoB,CAAC,QAAQ,CAAC;QACjL,CAAC,GAAA,WAAW,CAAC,KAAK,CAAC,IAAI,uBAAuB,CAAC,KAAK,CAAC,QAAQ,CAAC,EAAE,CAAC,QAAQ,IAAK,KAAoB,CAAC,CAAC;IAExF,aAAU,GAAG,CAAC,KAAc,EAAE,EAAE;QAC5C,IAAI,CAAC,KAAK,EAAE;YACX,OAAO,KAAK,CAAC;SACb;QAED,IAAK,KAAa,CAAC,MAAM,CAAC,UAAU,CAAC,IAAI,KAAK,KAAM,KAAa,CAAC,MAAM,CAAC,UAAU,CAAC,EAAE,EAAE;YACvF,OAAO,IAAI,CAAC;SACZ;QAED,IAAK,KAAa,CAAC,cAAc,CAAC,IAAI,KAAK,KAAM,KAAa,CAAC,cAAc,CAAC,EAAE,EAAE;YACjF,OAAO,IAAI,CAAC;SACZ;QAED,OAAO,KAAK,CAAC;IACd,CAAC,CAAC;IAEW,aAAU,GAAG,CAAC,KAAc,EAAuB,EAAE,CAAC,CAAC,GAAA,eAAe,CAAC,KAAK,CAAC,IAAI,QAAQ,CAAC,KAAK,CAAY,IAAI,GAAA,SAAS,CAAE,KAAoB,CAAC,IAAI,CAAC,IAAI,CAAC,GAAA,UAAU,CAAC,KAAK,CAAC,CAAC;IAE3K,WAAQ,GAAG,CAAC,KAAc,EAAE,EAAE,CAAC,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,CAAC,QAAQ,CAAC;IAEtF,MAAM,cAAc,GAAG,CAAC,GAAW,EAAE,EAAE,CAAC,CAAC,KAAa,EAAE,EAAE,CAAC,GAAA,OAAO,CAAC,KAAK,CAAC,IAAI,IAAI,CAAC,GAAG,CAAC,KAAK,GAAG,CAAC,CAAC,KAAK,GAAG,CAAC;IAC5F,OAAI,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC;IACzB,MAAG,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC;IAErC,MAAM,kBAAkB,GAAG,CAAC,KAAc,EAAE,EAAE,CAAC,GAAA,MAAM,CAAC,KAAK,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,KAAK,CAAC;IAE9E,aAAU,GAAG,CAAC,KAAc,EAAE,EAAE,CAAC,GAAA,KAAK,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,CAAC;IACpE,gBAAa,GAAG,CAAC,KAAc,EAAE,EAAE,CAAC,GAAA,KAAK,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC;IAErE,cAAW,GAAG,CAAC,KAAc,EAAE,EAAE,CAAC,GAAA,MAAM,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,CAAC;IACtE,iBAAc,GAAG,CAAC,KAAc,EAAE,EAAE,CAAC,GAAA,MAAM,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC;IACvE,0BAAuB,GAAG,CAAC,KAAc,EAAE,EAAE,CAAC,GAAA,WAAW,CAAC,KAAK,CAAC,IAAI,kBAAkB,CAAC,KAAK,CAAC,CAAC;IAE9F,cAAW,GAAG,CAAC,KAAc,EAAE,EAAE,CAAC,GAAA,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,GAAA,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,GAAA,GAAG,CAAC,KAAK,CAAC,IAAI,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,KAAK,CAAC,CAAC;IACjH,iBAAc,GAAG,CAAC,KAAc,EAAE,EAAE,CAAC,GAAA,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,GAAA,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,GAAA,GAAG,CAAC,KAAK,CAAC,IAAI,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC;IAElH,WAAQ,GAAG,CAAC,KAAc,EAAE,EAAE,CAAC,GAAA,GAAG,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,CAAC;IAC9D,cAAW,GAAG,CAAC,KAAc,EAAE,EAAE,CAAC,GAAA,GAAG,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,IAAI,GAAG,CAAC,CAAC;IAE/D,WAAQ,GAAG,CAAC,KAAc,EAAE,EAAE,CAAC,GAAA,GAAG,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,CAAC;IAC9D,cAAW,GAAG,CAAC,KAAc,EAAE,EAAE,CAAC,GAAA,GAAG,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,IAAI,GAAG,CAAC,CAAC;IAG5E,MAAM,gBAAgB,GAAG,CAAC,MAAmB,EAAE,SAAkB,EAAE,MAAiB,EAAE,EAAE;QACvF,IAAI,GAAA,SAAS,CAAC,SAAS,CAAC,KAAK,KAAK,EAAE;YACnC,MAAM,IAAI,SAAS,CAAC,sBAAsB,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC;SACvE;QAED,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC,EAAE;YACxB,MAAM,IAAI,SAAS,CAAC,0BAA0B,CAAC,CAAC;SAChD;QAED,OAAO,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,SAAgB,CAAC,CAAC;IAC9C,CAAC,CAAC;IAEF,+BAA+B;IAClB,MAAG,GAAG,CAAC,SAAkB,EAAE,GAAG,MAAiB,EAAE,EAAE,CAAC,gBAAgB,CAAC,KAAK,CAAC,SAAS,CAAC,IAAI,EAAE,SAAS,EAAE,MAAM,CAAC,CAAC;IAC9G,MAAG,GAAG,CAAC,SAAkB,EAAE,GAAG,MAAiB,EAAE,EAAE,CAAC,gBAAgB,CAAC,KAAK,CAAC,SAAS,CAAC,KAAK,EAAE,SAAS,EAAE,MAAM,CAAC,CAAC;IAC5H,8BAA8B;AAC/B,CAAC,EAvNS,EAAE,KAAF,EAAE,QAuNX;AAED,4EAA4E;AAC5E,0DAA0D;AAC1D,MAAM,CAAC,gBAAgB,CAAC,EAAE,EAAE;IAC3B,KAAK,EAAE;QACN,KAAK,EAAE,EAAE,CAAC,MAAM;KAChB;IACD,QAAQ,EAAE;QACT,KAAK,EAAE,EAAE,CAAC,SAAS;KACnB;IACD,IAAI,EAAE;QACL,KAAK,EAAE,EAAE,CAAC,KAAK;KACf;CACD,CAAC,CAAC;AAEH,kBAAe,EAAE,CAAC;AAElB,sCAAsC;AACtC,MAAM,CAAC,OAAO,GAAG,EAAE,CAAC;AACpB,MAAM,CAAC,OAAO,CAAC,OAAO,GAAG,EAAE,CAAC"} \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/@sindresorhus/is/license b/Easebuzz_NodeJS_kit/node_modules/@sindresorhus/is/license deleted file mode 100644 index e7af2f7..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/@sindresorhus/is/license +++ /dev/null @@ -1,9 +0,0 @@ -MIT License - -Copyright (c) Sindre Sorhus (sindresorhus.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/Easebuzz_NodeJS_kit/node_modules/@sindresorhus/is/package.json b/Easebuzz_NodeJS_kit/node_modules/@sindresorhus/is/package.json deleted file mode 100644 index bc149c9..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/@sindresorhus/is/package.json +++ /dev/null @@ -1,96 +0,0 @@ -{ - "_from": "@sindresorhus/is@^0.14.0", - "_id": "@sindresorhus/is@0.14.0", - "_inBundle": false, - "_integrity": "sha512-9NET910DNaIPngYnLLPeg+Ogzqsi9uM4mSboU5y6p8S5DzMTVEsJZrawi+BoDNUVBa2DhJqQYUFvMDfgU062LQ==", - "_location": "/@sindresorhus/is", - "_phantomChildren": {}, - "_requested": { - "type": "range", - "registry": true, - "raw": "@sindresorhus/is@^0.14.0", - "name": "@sindresorhus/is", - "escapedName": "@sindresorhus%2fis", - "scope": "@sindresorhus", - "rawSpec": "^0.14.0", - "saveSpec": null, - "fetchSpec": "^0.14.0" - }, - "_requiredBy": [ - "/got" - ], - "_resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-0.14.0.tgz", - "_shasum": "9fb3a3cf3132328151f353de4632e01e52102bea", - "_spec": "@sindresorhus/is@^0.14.0", - "_where": "/home/ankit/Downloads/NodeJS/node_modules/got", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "bugs": { - "url": "https://github.com/sindresorhus/is/issues" - }, - "bundleDependencies": false, - "deprecated": false, - "description": "Type check values: `is.string('🦄') //=> true`", - "devDependencies": { - "@sindresorhus/tsconfig": "^0.1.0", - "@types/jsdom": "^11.12.0", - "@types/node": "^10.12.10", - "@types/tempy": "^0.2.0", - "@types/zen-observable": "^0.8.0", - "ava": "^0.25.0", - "del-cli": "^1.1.0", - "jsdom": "^11.6.2", - "rxjs": "^6.3.3", - "tempy": "^0.2.1", - "tslint": "^5.9.1", - "tslint-xo": "^0.10.0", - "typescript": "^3.2.1", - "zen-observable": "^0.8.8" - }, - "engines": { - "node": ">=6" - }, - "files": [ - "dist" - ], - "homepage": "https://github.com/sindresorhus/is#readme", - "keywords": [ - "type", - "types", - "is", - "check", - "checking", - "validate", - "validation", - "utility", - "util", - "typeof", - "instanceof", - "object", - "assert", - "assertion", - "test", - "kind", - "primitive", - "verify", - "compare" - ], - "license": "MIT", - "main": "dist/index.js", - "name": "@sindresorhus/is", - "repository": { - "type": "git", - "url": "git+https://github.com/sindresorhus/is.git" - }, - "scripts": { - "build": "del dist && tsc", - "lint": "tslint --format stylish --project .", - "prepublish": "npm run build && del dist/tests", - "test": "npm run lint && npm run build && ava dist/tests" - }, - "types": "dist/index.d.ts", - "version": "0.14.0" -} diff --git a/Easebuzz_NodeJS_kit/node_modules/@sindresorhus/is/readme.md b/Easebuzz_NodeJS_kit/node_modules/@sindresorhus/is/readme.md deleted file mode 100644 index 97c023b..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/@sindresorhus/is/readme.md +++ /dev/null @@ -1,451 +0,0 @@ -# is [![Build Status](https://travis-ci.org/sindresorhus/is.svg?branch=master)](https://travis-ci.org/sindresorhus/is) - -> Type check values: `is.string('🦄') //=> true` - - - - -## Install - -``` -$ npm install @sindresorhus/is -``` - - -## Usage - -```js -const is = require('@sindresorhus/is'); - -is('🦄'); -//=> 'string' - -is(new Map()); -//=> 'Map' - -is.number(6); -//=> true -``` - -When using `is` together with TypeScript, [type guards](http://www.typescriptlang.org/docs/handbook/advanced-types.html#type-guards-and-differentiating-types) are being used to infer the correct type inside if-else statements. - -```ts -import is from '@sindresorhus/is'; - -const padLeft = (value: string, padding: string | number) => { - if (is.number(padding)) { - // `padding` is typed as `number` - return Array(padding + 1).join(' ') + value; - } - - if (is.string(padding)) { - // `padding` is typed as `string` - return padding + value; - } - - throw new TypeError(`Expected 'padding' to be of type 'string' or 'number', got '${is(padding)}'.`); -} - -padLeft('🦄', 3); -//=> ' 🦄' - -padLeft('🦄', '🌈'); -//=> '🌈🦄' -``` - - -## API - -### is(value) - -Returns the type of `value`. - -Primitives are lowercase and object types are camelcase. - -Example: - -- `'undefined'` -- `'null'` -- `'string'` -- `'symbol'` -- `'Array'` -- `'Function'` -- `'Object'` - -Note: It will throw an error if you try to feed it object-wrapped primitives, as that's a bad practice. For example `new String('foo')`. - -### is.{method} - -All the below methods accept a value and returns a boolean for whether the value is of the desired type. - -#### Primitives - -##### .undefined(value) -##### .null(value) -##### .string(value) -##### .number(value) -##### .boolean(value) -##### .symbol(value) - -#### Built-in types - -##### .array(value) -##### .function(value) -##### .buffer(value) -##### .object(value) - -Keep in mind that [functions are objects too](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions). - -##### .numericString(value) - -Returns `true` for a string that represents a number. For example, `'42'` and `'-8'`. - -Note: `'NaN'` returns `false`, but `'Infinity'` and `'-Infinity'` return `true`. - -##### .regExp(value) -##### .date(value) -##### .error(value) -##### .nativePromise(value) -##### .promise(value) - -Returns `true` for any object with a `.then()` and `.catch()` method. Prefer this one over `.nativePromise()` as you usually want to allow userland promise implementations too. - -##### .generator(value) - -Returns `true` for any object that implements its own `.next()` and `.throw()` methods and has a function definition for `Symbol.iterator`. - -##### .generatorFunction(value) - -##### .asyncFunction(value) - -Returns `true` for any `async` function that can be called with the `await` operator. - -```js -is.asyncFunction(async () => {}); -// => true - -is.asyncFunction(() => {}); -// => false -``` - -##### .boundFunction(value) - -Returns `true` for any `bound` function. - -```js -is.boundFunction(() => {}); -// => true - -is.boundFunction(function () {}.bind(null)); -// => true - -is.boundFunction(function () {}); -// => false -``` - -##### .map(value) -##### .set(value) -##### .weakMap(value) -##### .weakSet(value) - -#### Typed arrays - -##### .int8Array(value) -##### .uint8Array(value) -##### .uint8ClampedArray(value) -##### .int16Array(value) -##### .uint16Array(value) -##### .int32Array(value) -##### .uint32Array(value) -##### .float32Array(value) -##### .float64Array(value) - -#### Structured data - -##### .arrayBuffer(value) -##### .sharedArrayBuffer(value) -##### .dataView(value) - -#### Emptiness - -##### .emptyString(value) - -Returns `true` if the value is a `string` and the `.length` is 0. - -##### .nonEmptyString(value) - -Returns `true` if the value is a `string` and the `.length` is more than 0. - -##### .emptyStringOrWhitespace(value) - -Returns `true` if `is.emptyString(value)` or if it's a `string` that is all whitespace. - -##### .emptyArray(value) - -Returns `true` if the value is an `Array` and the `.length` is 0. - -##### .nonEmptyArray(value) - -Returns `true` if the value is an `Array` and the `.length` is more than 0. - -##### .emptyObject(value) - -Returns `true` if the value is an `Object` and `Object.keys(value).length` is 0. - -Please note that `Object.keys` returns only own enumerable properties. Hence something like this can happen: - -```js -const object1 = {}; - -Object.defineProperty(object1, 'property1', { - value: 42, - writable: true, - enumerable: false, - configurable: true -}); - -is.emptyObject(object1); -// => true -``` - -##### .nonEmptyObject(value) - -Returns `true` if the value is an `Object` and `Object.keys(value).length` is more than 0. - -##### .emptySet(value) - -Returns `true` if the value is a `Set` and the `.size` is 0. - -##### .nonEmptySet(Value) - -Returns `true` if the value is a `Set` and the `.size` is more than 0. - -##### .emptyMap(value) - -Returns `true` if the value is a `Map` and the `.size` is 0. - -##### .nonEmptyMap(value) - -Returns `true` if the value is a `Map` and the `.size` is more than 0. - -#### Miscellaneous - -##### .directInstanceOf(value, class) - -Returns `true` if `value` is a direct instance of `class`. - -```js -is.directInstanceOf(new Error(), Error); -//=> true - -class UnicornError extends Error {} - -is.directInstanceOf(new UnicornError(), Error); -//=> false -``` - -##### .urlInstance(value) - -Returns `true` if `value` is an instance of the [`URL` class](https://developer.mozilla.org/en-US/docs/Web/API/URL). - -```js -const url = new URL('https://example.com'); - -is.urlInstance(url); -//=> true -``` - -### .url(value) - -Returns `true` if `value` is a URL string. - -Note: this only does basic checking using the [`URL` class](https://developer.mozilla.org/en-US/docs/Web/API/URL) constructor. - -```js -const url = 'https://example.com'; - -is.url(url); -//=> true - -is.url(new URL(url)); -//=> false -``` - -##### .truthy(value) - -Returns `true` for all values that evaluate to true in a boolean context: - -```js -is.truthy('🦄'); -//=> true - -is.truthy(undefined); -//=> false -``` - -##### .falsy(value) - -Returns `true` if `value` is one of: `false`, `0`, `''`, `null`, `undefined`, `NaN`. - -##### .nan(value) -##### .nullOrUndefined(value) -##### .primitive(value) - -JavaScript primitives are as follows: `null`, `undefined`, `string`, `number`, `boolean`, `symbol`. - -##### .integer(value) - -##### .safeInteger(value) - -Returns `true` if `value` is a [safe integer](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/isSafeInteger). - -##### .plainObject(value) - -An object is plain if it's created by either `{}`, `new Object()`, or `Object.create(null)`. - -##### .iterable(value) -##### .asyncIterable(value) -##### .class(value) - -Returns `true` for instances created by a class. - -##### .typedArray(value) - -##### .arrayLike(value) - -A `value` is array-like if it is not a function and has a `value.length` that is a safe integer greater than or equal to 0. - -```js -is.arrayLike(document.forms); -//=> true - -function foo() { - is.arrayLike(arguments); - //=> true -} -foo(); -``` - -##### .inRange(value, range) - -Check if `value` (number) is in the given `range`. The range is an array of two values, lower bound and upper bound, in no specific order. - -```js -is.inRange(3, [0, 5]); -is.inRange(3, [5, 0]); -is.inRange(0, [-2, 2]); -``` - -##### .inRange(value, upperBound) - -Check if `value` (number) is in the range of `0` to `upperBound`. - -```js -is.inRange(3, 10); -``` - -##### .domElement(value) - -Returns `true` if `value` is a DOM Element. - -##### .nodeStream(value) - -Returns `true` if `value` is a Node.js [stream](https://nodejs.org/api/stream.html). - -```js -const fs = require('fs'); - -is.nodeStream(fs.createReadStream('unicorn.png')); -//=> true -``` - -##### .observable(value) - -Returns `true` if `value` is an `Observable`. - -```js -const {Observable} = require('rxjs'); - -is.observable(new Observable()); -//=> true -``` - -##### .infinite(value) - -Check if `value` is `Infinity` or `-Infinity`. - -##### .even(value) - -Returns `true` if `value` is an even integer. - -##### .odd(value) - -Returns `true` if `value` is an odd integer. - -##### .any(predicate, ...values) - -Returns `true` if **any** of the input `values` returns true in the `predicate`: - -```js -is.any(is.string, {}, true, '🦄'); -//=> true - -is.any(is.boolean, 'unicorns', [], new Map()); -//=> false -``` - -##### .all(predicate, ...values) - -Returns `true` if **all** of the input `values` returns true in the `predicate`: - -```js -is.all(is.object, {}, new Map(), new Set()); -//=> true - -is.all(is.string, '🦄', [], 'unicorns'); -//=> false -``` - - -## FAQ - -### Why yet another type checking module? - -There are hundreds of type checking modules on npm, unfortunately, I couldn't find any that fit my needs: - -- Includes both type methods and ability to get the type -- Types of primitives returned as lowercase and object types as camelcase -- Covers all built-ins -- Unsurprising behavior -- Well-maintained -- Comprehensive test suite - -For the ones I found, pick 3 of these. - -The most common mistakes I noticed in these modules was using `instanceof` for type checking, forgetting that functions are objects, and omitting `symbol` as a primitive. - - -## Related - -- [ow](https://github.com/sindresorhus/ow) - Function argument validation for humans -- [is-stream](https://github.com/sindresorhus/is-stream) - Check if something is a Node.js stream -- [is-observable](https://github.com/sindresorhus/is-observable) - Check if a value is an Observable -- [file-type](https://github.com/sindresorhus/file-type) - Detect the file type of a Buffer/Uint8Array -- [is-ip](https://github.com/sindresorhus/is-ip) - Check if a string is an IP address -- [is-array-sorted](https://github.com/sindresorhus/is-array-sorted) - Check if an Array is sorted -- [is-error-constructor](https://github.com/sindresorhus/is-error-constructor) - Check if a value is an error constructor -- [is-empty-iterable](https://github.com/sindresorhus/is-empty-iterable) - Check if an Iterable is empty -- [is-blob](https://github.com/sindresorhus/is-blob) - Check if a value is a Blob - File-like object of immutable, raw data -- [has-emoji](https://github.com/sindresorhus/has-emoji) - Check whether a string has any emoji - - -## Created by - -- [Sindre Sorhus](https://github.com/sindresorhus) -- [Giora Guttsait](https://github.com/gioragutt) -- [Brandon Smith](https://github.com/brandon93s) - - -## License - -MIT diff --git a/Easebuzz_NodeJS_kit/node_modules/@szmarczak/http-timer/LICENSE b/Easebuzz_NodeJS_kit/node_modules/@szmarczak/http-timer/LICENSE deleted file mode 100755 index 15ad2e8..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/@szmarczak/http-timer/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2018 Szymon Marczak - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/Easebuzz_NodeJS_kit/node_modules/@szmarczak/http-timer/README.md b/Easebuzz_NodeJS_kit/node_modules/@szmarczak/http-timer/README.md deleted file mode 100755 index 13279ed..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/@szmarczak/http-timer/README.md +++ /dev/null @@ -1,70 +0,0 @@ -# http-timer -> Timings for HTTP requests - -[![Build Status](https://travis-ci.org/szmarczak/http-timer.svg?branch=master)](https://travis-ci.org/szmarczak/http-timer) -[![Coverage Status](https://coveralls.io/repos/github/szmarczak/http-timer/badge.svg?branch=master)](https://coveralls.io/github/szmarczak/http-timer?branch=master) -[![install size](https://packagephobia.now.sh/badge?p=@szmarczak/http-timer)](https://packagephobia.now.sh/result?p=@szmarczak/http-timer) - -Inspired by the [`request` package](https://github.com/request/request). - -## Usage -```js -'use strict'; -const https = require('https'); -const timer = require('@szmarczak/http-timer'); - -const request = https.get('https://httpbin.org/anything'); -const timings = timer(request); - -request.on('response', response => { - response.on('data', () => {}); // Consume the data somehow - response.on('end', () => { - console.log(timings); - }); -}); - -// { start: 1535708511443, -// socket: 1535708511444, -// lookup: 1535708511444, -// connect: 1535708511582, -// upload: 1535708511887, -// response: 1535708512037, -// end: 1535708512040, -// phases: -// { wait: 1, -// dns: 0, -// tcp: 138, -// request: 305, -// firstByte: 150, -// download: 3, -// total: 597 } } -``` - -## API - -### timer(request) - -Returns: `Object` - -- `start` - Time when the request started. -- `socket` - Time when a socket was assigned to the request. -- `lookup` - Time when the DNS lookup finished. -- `connect` - Time when the socket successfully connected. -- `upload` - Time when the request finished uploading. -- `response` - Time when the request fired the `response` event. -- `end` - Time when the response fired the `end` event. -- `error` - Time when the request fired the `error` event. -- `phases` - - `wait` - `timings.socket - timings.start` - - `dns` - `timings.lookup - timings.socket` - - `tcp` - `timings.connect - timings.lookup` - - `request` - `timings.upload - timings.connect` - - `firstByte` - `timings.response - timings.upload` - - `download` - `timings.end - timings.response` - - `total` - `timings.end - timings.start` or `timings.error - timings.start` - -**Note**: The time is a `number` representing the milliseconds elapsed since the UNIX epoch. - -## License - -MIT diff --git a/Easebuzz_NodeJS_kit/node_modules/@szmarczak/http-timer/package.json b/Easebuzz_NodeJS_kit/node_modules/@szmarczak/http-timer/package.json deleted file mode 100755 index debf1e6..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/@szmarczak/http-timer/package.json +++ /dev/null @@ -1,75 +0,0 @@ -{ - "_from": "@szmarczak/http-timer@^1.1.2", - "_id": "@szmarczak/http-timer@1.1.2", - "_inBundle": false, - "_integrity": "sha512-XIB2XbzHTN6ieIjfIMV9hlVcfPU26s2vafYWQcZHWXHOxiaRZYEDKEwdl129Zyg50+foYV2jCgtrqSA6qNuNSA==", - "_location": "/@szmarczak/http-timer", - "_phantomChildren": {}, - "_requested": { - "type": "range", - "registry": true, - "raw": "@szmarczak/http-timer@^1.1.2", - "name": "@szmarczak/http-timer", - "escapedName": "@szmarczak%2fhttp-timer", - "scope": "@szmarczak", - "rawSpec": "^1.1.2", - "saveSpec": null, - "fetchSpec": "^1.1.2" - }, - "_requiredBy": [ - "/got" - ], - "_resolved": "https://registry.npmjs.org/@szmarczak/http-timer/-/http-timer-1.1.2.tgz", - "_shasum": "b1665e2c461a2cd92f4c1bbf50d5454de0d4b421", - "_spec": "@szmarczak/http-timer@^1.1.2", - "_where": "/home/ankit/Downloads/NodeJS/node_modules/got", - "author": { - "name": "Szymon Marczak" - }, - "bugs": { - "url": "https://github.com/szmarczak/http-timer/issues" - }, - "bundleDependencies": false, - "dependencies": { - "defer-to-connect": "^1.0.1" - }, - "deprecated": false, - "description": "Timings for HTTP requests", - "devDependencies": { - "ava": "^0.25.0", - "coveralls": "^3.0.2", - "nyc": "^12.0.2", - "p-event": "^2.1.0", - "xo": "^0.22.0" - }, - "engines": { - "node": ">=6" - }, - "files": [ - "source" - ], - "homepage": "https://github.com/szmarczak/http-timer#readme", - "keywords": [ - "http", - "https", - "timer", - "timings" - ], - "license": "MIT", - "main": "source", - "name": "@szmarczak/http-timer", - "repository": { - "type": "git", - "url": "git+https://github.com/szmarczak/http-timer.git" - }, - "scripts": { - "coveralls": "nyc report --reporter=text-lcov | coveralls", - "test": "xo && nyc ava" - }, - "version": "1.1.2", - "xo": { - "rules": { - "unicorn/filename-case": "camelCase" - } - } -} diff --git a/Easebuzz_NodeJS_kit/node_modules/@szmarczak/http-timer/source/index.js b/Easebuzz_NodeJS_kit/node_modules/@szmarczak/http-timer/source/index.js deleted file mode 100755 index e294580..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/@szmarczak/http-timer/source/index.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -const deferToConnect = require('defer-to-connect'); - -module.exports = request => { - const timings = { - start: Date.now(), - socket: null, - lookup: null, - connect: null, - upload: null, - response: null, - end: null, - error: null, - phases: { - wait: null, - dns: null, - tcp: null, - request: null, - firstByte: null, - download: null, - total: null - } - }; - - const handleError = origin => { - const emit = origin.emit.bind(origin); - origin.emit = (event, ...args) => { - // Catches the `error` event - if (event === 'error') { - timings.error = Date.now(); - timings.phases.total = timings.error - timings.start; - - origin.emit = emit; - } - - // Saves the original behavior - return emit(event, ...args); - }; - }; - - let uploadFinished = false; - const onUpload = () => { - timings.upload = Date.now(); - timings.phases.request = timings.upload - timings.connect; - }; - - handleError(request); - - request.once('socket', socket => { - timings.socket = Date.now(); - timings.phases.wait = timings.socket - timings.start; - - const lookupListener = () => { - timings.lookup = Date.now(); - timings.phases.dns = timings.lookup - timings.socket; - }; - - socket.once('lookup', lookupListener); - - deferToConnect(socket, () => { - timings.connect = Date.now(); - - if (timings.lookup === null) { - socket.removeListener('lookup', lookupListener); - timings.lookup = timings.connect; - timings.phases.dns = timings.lookup - timings.socket; - } - - timings.phases.tcp = timings.connect - timings.lookup; - - if (uploadFinished && !timings.upload) { - onUpload(); - } - }); - }); - - request.once('finish', () => { - uploadFinished = true; - - if (timings.connect) { - onUpload(); - } - }); - - request.once('response', response => { - timings.response = Date.now(); - timings.phases.firstByte = timings.response - timings.upload; - - handleError(response); - - response.once('end', () => { - timings.end = Date.now(); - timings.phases.download = timings.end - timings.response; - timings.phases.total = timings.end - timings.start; - }); - }); - - return timings; -}; diff --git a/Easebuzz_NodeJS_kit/node_modules/@types/color-name/LICENSE b/Easebuzz_NodeJS_kit/node_modules/@types/color-name/LICENSE deleted file mode 100644 index 4b1ad51..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/@types/color-name/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ - MIT License - - Copyright (c) Microsoft Corporation. All rights reserved. - - Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal - in the Software without restriction, including without limitation the rights - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - copies of the Software, and to permit persons to whom the Software is - furnished to do so, subject to the following conditions: - - The above copyright notice and this permission notice shall be included in all - copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - SOFTWARE diff --git a/Easebuzz_NodeJS_kit/node_modules/@types/color-name/README.md b/Easebuzz_NodeJS_kit/node_modules/@types/color-name/README.md deleted file mode 100644 index 5c77cba..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/@types/color-name/README.md +++ /dev/null @@ -1,16 +0,0 @@ -# Installation -> `npm install --save @types/color-name` - -# Summary -This package contains type definitions for color-name ( https://github.com/colorjs/color-name ). - -# Details -Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/color-name - -Additional Details - * Last updated: Wed, 13 Feb 2019 16:16:48 GMT - * Dependencies: none - * Global values: none - -# Credits -These definitions were written by Junyoung Clare Jang . diff --git a/Easebuzz_NodeJS_kit/node_modules/@types/color-name/index.d.ts b/Easebuzz_NodeJS_kit/node_modules/@types/color-name/index.d.ts deleted file mode 100644 index b5bff47..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/@types/color-name/index.d.ts +++ /dev/null @@ -1,161 +0,0 @@ -// Type definitions for color-name 1.1 -// Project: https://github.com/colorjs/color-name -// Definitions by: Junyoung Clare Jang -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -/** - * Tuple of Red, Green, and Blue - * @example - * // Red = 55, Green = 70, Blue = 0 - * const rgb: RGB = [55, 70, 0]; - */ -export type RGB = [number, number, number]; - -export const aliceblue: RGB; -export const antiquewhite: RGB; -export const aqua: RGB; -export const aquamarine: RGB; -export const azure: RGB; -export const beige: RGB; -export const bisque: RGB; -export const black: RGB; -export const blanchedalmond: RGB; -export const blue: RGB; -export const blueviolet: RGB; -export const brown: RGB; -export const burlywood: RGB; -export const cadetblue: RGB; -export const chartreuse: RGB; -export const chocolate: RGB; -export const coral: RGB; -export const cornflowerblue: RGB; -export const cornsilk: RGB; -export const crimson: RGB; -export const cyan: RGB; -export const darkblue: RGB; -export const darkcyan: RGB; -export const darkgoldenrod: RGB; -export const darkgray: RGB; -export const darkgreen: RGB; -export const darkgrey: RGB; -export const darkkhaki: RGB; -export const darkmagenta: RGB; -export const darkolivegreen: RGB; -export const darkorange: RGB; -export const darkorchid: RGB; -export const darkred: RGB; -export const darksalmon: RGB; -export const darkseagreen: RGB; -export const darkslateblue: RGB; -export const darkslategray: RGB; -export const darkslategrey: RGB; -export const darkturquoise: RGB; -export const darkviolet: RGB; -export const deeppink: RGB; -export const deepskyblue: RGB; -export const dimgray: RGB; -export const dimgrey: RGB; -export const dodgerblue: RGB; -export const firebrick: RGB; -export const floralwhite: RGB; -export const forestgreen: RGB; -export const fuchsia: RGB; -export const gainsboro: RGB; -export const ghostwhite: RGB; -export const gold: RGB; -export const goldenrod: RGB; -export const gray: RGB; -export const green: RGB; -export const greenyellow: RGB; -export const grey: RGB; -export const honeydew: RGB; -export const hotpink: RGB; -export const indianred: RGB; -export const indigo: RGB; -export const ivory: RGB; -export const khaki: RGB; -export const lavender: RGB; -export const lavenderblush: RGB; -export const lawngreen: RGB; -export const lemonchiffon: RGB; -export const lightblue: RGB; -export const lightcoral: RGB; -export const lightcyan: RGB; -export const lightgoldenrodyellow: RGB; -export const lightgray: RGB; -export const lightgreen: RGB; -export const lightgrey: RGB; -export const lightpink: RGB; -export const lightsalmon: RGB; -export const lightseagreen: RGB; -export const lightskyblue: RGB; -export const lightslategray: RGB; -export const lightslategrey: RGB; -export const lightsteelblue: RGB; -export const lightyellow: RGB; -export const lime: RGB; -export const limegreen: RGB; -export const linen: RGB; -export const magenta: RGB; -export const maroon: RGB; -export const mediumaquamarine: RGB; -export const mediumblue: RGB; -export const mediumorchid: RGB; -export const mediumpurple: RGB; -export const mediumseagreen: RGB; -export const mediumslateblue: RGB; -export const mediumspringgreen: RGB; -export const mediumturquoise: RGB; -export const mediumvioletred: RGB; -export const midnightblue: RGB; -export const mintcream: RGB; -export const mistyrose: RGB; -export const moccasin: RGB; -export const navajowhite: RGB; -export const navy: RGB; -export const oldlace: RGB; -export const olive: RGB; -export const olivedrab: RGB; -export const orange: RGB; -export const orangered: RGB; -export const orchid: RGB; -export const palegoldenrod: RGB; -export const palegreen: RGB; -export const paleturquoise: RGB; -export const palevioletred: RGB; -export const papayawhip: RGB; -export const peachpuff: RGB; -export const peru: RGB; -export const pink: RGB; -export const plum: RGB; -export const powderblue: RGB; -export const purple: RGB; -export const rebeccapurple: RGB; -export const red: RGB; -export const rosybrown: RGB; -export const royalblue: RGB; -export const saddlebrown: RGB; -export const salmon: RGB; -export const sandybrown: RGB; -export const seagreen: RGB; -export const seashell: RGB; -export const sienna: RGB; -export const silver: RGB; -export const skyblue: RGB; -export const slateblue: RGB; -export const slategray: RGB; -export const slategrey: RGB; -export const snow: RGB; -export const springgreen: RGB; -export const steelblue: RGB; -export const tan: RGB; -export const teal: RGB; -export const thistle: RGB; -export const tomato: RGB; -export const turquoise: RGB; -export const violet: RGB; -export const wheat: RGB; -export const white: RGB; -export const whitesmoke: RGB; -export const yellow: RGB; -export const yellowgreen: RGB; diff --git a/Easebuzz_NodeJS_kit/node_modules/@types/color-name/package.json b/Easebuzz_NodeJS_kit/node_modules/@types/color-name/package.json deleted file mode 100644 index 4fa49e4..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/@types/color-name/package.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "_from": "@types/color-name@^1.1.1", - "_id": "@types/color-name@1.1.1", - "_inBundle": false, - "_integrity": "sha512-rr+OQyAjxze7GgWrSaJwydHStIhHq2lvY3BOC2Mj7KnzI7XK0Uw1TOOdI9lDoajEbSWLiYgoo4f1R51erQfhPQ==", - "_location": "/@types/color-name", - "_phantomChildren": {}, - "_requested": { - "type": "range", - "registry": true, - "raw": "@types/color-name@^1.1.1", - "name": "@types/color-name", - "escapedName": "@types%2fcolor-name", - "scope": "@types", - "rawSpec": "^1.1.1", - "saveSpec": null, - "fetchSpec": "^1.1.1" - }, - "_requiredBy": [ - "/ansi-styles" - ], - "_resolved": "https://registry.npmjs.org/@types/color-name/-/color-name-1.1.1.tgz", - "_shasum": "1c1261bbeaa10a8055bbc5d8ab84b7b2afc846a0", - "_spec": "@types/color-name@^1.1.1", - "_where": "/home/ankit/Downloads/NodeJS/node_modules/ansi-styles", - "bugs": { - "url": "https://github.com/DefinitelyTyped/DefinitelyTyped/issues" - }, - "bundleDependencies": false, - "contributors": [ - { - "name": "Junyoung Clare Jang", - "url": "https://github.com/Ailrun" - } - ], - "dependencies": {}, - "deprecated": false, - "description": "TypeScript definitions for color-name", - "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped#readme", - "license": "MIT", - "main": "", - "name": "@types/color-name", - "repository": { - "type": "git", - "url": "git+https://github.com/DefinitelyTyped/DefinitelyTyped.git" - }, - "scripts": {}, - "typeScriptVersion": "2.0", - "types": "index", - "typesPublisherContentHash": "e22c6881e2dcf766e32142cbb82d9acf9c08258bdf0da8e76c8a448d1be44ac7", - "version": "1.1.1" -} diff --git a/Easebuzz_NodeJS_kit/node_modules/abbrev/LICENSE b/Easebuzz_NodeJS_kit/node_modules/abbrev/LICENSE deleted file mode 100644 index 9bcfa9d..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/abbrev/LICENSE +++ /dev/null @@ -1,46 +0,0 @@ -This software is dual-licensed under the ISC and MIT licenses. -You may use this software under EITHER of the following licenses. - ----------- - -The ISC License - -Copyright (c) Isaac Z. Schlueter and Contributors - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted, provided that the above -copyright notice and this permission notice appear in all copies. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR -IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - ----------- - -Copyright Isaac Z. Schlueter and Contributors -All rights reserved. - -Permission is hereby granted, free of charge, to any person -obtaining a copy of this software and associated documentation -files (the "Software"), to deal in the Software without -restriction, including without limitation the rights to use, -copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the -Software is furnished to do so, subject to the following -conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES -OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT -HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, -WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -OTHER DEALINGS IN THE SOFTWARE. diff --git a/Easebuzz_NodeJS_kit/node_modules/abbrev/README.md b/Easebuzz_NodeJS_kit/node_modules/abbrev/README.md deleted file mode 100644 index 99746fe..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/abbrev/README.md +++ /dev/null @@ -1,23 +0,0 @@ -# abbrev-js - -Just like [ruby's Abbrev](http://apidock.com/ruby/Abbrev). - -Usage: - - var abbrev = require("abbrev"); - abbrev("foo", "fool", "folding", "flop"); - - // returns: - { fl: 'flop' - , flo: 'flop' - , flop: 'flop' - , fol: 'folding' - , fold: 'folding' - , foldi: 'folding' - , foldin: 'folding' - , folding: 'folding' - , foo: 'foo' - , fool: 'fool' - } - -This is handy for command-line scripts, or other cases where you want to be able to accept shorthands. diff --git a/Easebuzz_NodeJS_kit/node_modules/abbrev/abbrev.js b/Easebuzz_NodeJS_kit/node_modules/abbrev/abbrev.js deleted file mode 100644 index 7b1dc5d..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/abbrev/abbrev.js +++ /dev/null @@ -1,61 +0,0 @@ -module.exports = exports = abbrev.abbrev = abbrev - -abbrev.monkeyPatch = monkeyPatch - -function monkeyPatch () { - Object.defineProperty(Array.prototype, 'abbrev', { - value: function () { return abbrev(this) }, - enumerable: false, configurable: true, writable: true - }) - - Object.defineProperty(Object.prototype, 'abbrev', { - value: function () { return abbrev(Object.keys(this)) }, - enumerable: false, configurable: true, writable: true - }) -} - -function abbrev (list) { - if (arguments.length !== 1 || !Array.isArray(list)) { - list = Array.prototype.slice.call(arguments, 0) - } - for (var i = 0, l = list.length, args = [] ; i < l ; i ++) { - args[i] = typeof list[i] === "string" ? list[i] : String(list[i]) - } - - // sort them lexicographically, so that they're next to their nearest kin - args = args.sort(lexSort) - - // walk through each, seeing how much it has in common with the next and previous - var abbrevs = {} - , prev = "" - for (var i = 0, l = args.length ; i < l ; i ++) { - var current = args[i] - , next = args[i + 1] || "" - , nextMatches = true - , prevMatches = true - if (current === next) continue - for (var j = 0, cl = current.length ; j < cl ; j ++) { - var curChar = current.charAt(j) - nextMatches = nextMatches && curChar === next.charAt(j) - prevMatches = prevMatches && curChar === prev.charAt(j) - if (!nextMatches && !prevMatches) { - j ++ - break - } - } - prev = current - if (j === cl) { - abbrevs[current] = current - continue - } - for (var a = current.substr(0, j) ; j <= cl ; j ++) { - abbrevs[a] = current - a += current.charAt(j) - } - } - return abbrevs -} - -function lexSort (a, b) { - return a === b ? 0 : a > b ? 1 : -1 -} diff --git a/Easebuzz_NodeJS_kit/node_modules/abbrev/package.json b/Easebuzz_NodeJS_kit/node_modules/abbrev/package.json deleted file mode 100644 index 7a4c115..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/abbrev/package.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "_from": "abbrev@1", - "_id": "abbrev@1.1.1", - "_inBundle": false, - "_integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==", - "_location": "/abbrev", - "_phantomChildren": {}, - "_requested": { - "type": "range", - "registry": true, - "raw": "abbrev@1", - "name": "abbrev", - "escapedName": "abbrev", - "rawSpec": "1", - "saveSpec": null, - "fetchSpec": "1" - }, - "_requiredBy": [ - "/nopt" - ], - "_resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz", - "_shasum": "f8f2c887ad10bf67f634f005b6987fed3179aac8", - "_spec": "abbrev@1", - "_where": "/home/ankit/Downloads/NodeJS/node_modules/nopt", - "author": { - "name": "Isaac Z. Schlueter", - "email": "i@izs.me" - }, - "bugs": { - "url": "https://github.com/isaacs/abbrev-js/issues" - }, - "bundleDependencies": false, - "deprecated": false, - "description": "Like ruby's abbrev module, but in js", - "devDependencies": { - "tap": "^10.1" - }, - "files": [ - "abbrev.js" - ], - "homepage": "https://github.com/isaacs/abbrev-js#readme", - "license": "ISC", - "main": "abbrev.js", - "name": "abbrev", - "repository": { - "type": "git", - "url": "git+ssh://git@github.com/isaacs/abbrev-js.git" - }, - "scripts": { - "postpublish": "git push origin --all; git push origin --tags", - "postversion": "npm publish", - "preversion": "npm test", - "test": "tap test.js --100" - }, - "version": "1.1.1" -} diff --git a/Easebuzz_NodeJS_kit/node_modules/ansi-align/CHANGELOG.md b/Easebuzz_NodeJS_kit/node_modules/ansi-align/CHANGELOG.md deleted file mode 100644 index 0db57f7..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/ansi-align/CHANGELOG.md +++ /dev/null @@ -1,51 +0,0 @@ -# Change Log - -All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. - - -# [3.0.0](https://github.com/nexdrew/ansi-align/compare/v2.0.0...v3.0.0) (2018-12-17) - - -### Bug Fixes - -* **package:** update string-width to version 3.0.0 ([#50](https://github.com/nexdrew/ansi-align/issues/50)) ([67f0d8f](https://github.com/nexdrew/ansi-align/commit/67f0d8f)) - - -### BREAKING CHANGES - -* **package:** Node 4 no longer supported, please update to Node 6+ or use ansi-align@2.0.0 - - - - -# [2.0.0](https://github.com/nexdrew/ansi-align/compare/v1.1.0...v2.0.0) (2017-05-01) - - -### Features - -* ES2015ify, dropping support for Node <4 ([#30](https://github.com/nexdrew/ansi-align/issues/30)) ([7b43f48](https://github.com/nexdrew/ansi-align/commit/7b43f48)) - - -### BREAKING CHANGES - -* Node 0.10 or 0.12 no longer supported, please update to Node 4+ or use ansi-align@1.1.0 - - - - -# [1.1.0](https://github.com/nexdrew/ansi-align/compare/v1.0.0...v1.1.0) (2016-06-06) - - -### Features - -* support left-alignment as no-op ([#3](https://github.com/nexdrew/ansi-align/issues/3)) ([e581db6](https://github.com/nexdrew/ansi-align/commit/e581db6)) - - - - -# 1.0.0 (2016-04-30) - - -### Features - -* initial commit ([1914d90](https://github.com/nexdrew/ansi-align/commit/1914d90)) diff --git a/Easebuzz_NodeJS_kit/node_modules/ansi-align/LICENSE b/Easebuzz_NodeJS_kit/node_modules/ansi-align/LICENSE deleted file mode 100644 index ab601b6..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/ansi-align/LICENSE +++ /dev/null @@ -1,13 +0,0 @@ -Copyright (c) 2016, Contributors - -Permission to use, copy, modify, and/or distribute this software for any purpose -with or without fee is hereby granted, provided that the above copyright notice -and this permission notice appear in all copies. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND -FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS -OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER -TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF -THIS SOFTWARE. diff --git a/Easebuzz_NodeJS_kit/node_modules/ansi-align/README.md b/Easebuzz_NodeJS_kit/node_modules/ansi-align/README.md deleted file mode 100644 index 5e51682..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/ansi-align/README.md +++ /dev/null @@ -1,80 +0,0 @@ -# ansi-align - -> align-text with ANSI support for CLIs - -[![Build Status](https://travis-ci.org/nexdrew/ansi-align.svg?branch=master)](https://travis-ci.org/nexdrew/ansi-align) -[![Coverage Status](https://coveralls.io/repos/github/nexdrew/ansi-align/badge.svg?branch=master)](https://coveralls.io/github/nexdrew/ansi-align?branch=master) -[![Standard Version](https://img.shields.io/badge/release-standard%20version-brightgreen.svg)](https://github.com/conventional-changelog/standard-version) -[![Greenkeeper badge](https://badges.greenkeeper.io/nexdrew/ansi-align.svg)](https://greenkeeper.io/) - -Easily center- or right- align a block of text, carefully ignoring ANSI escape codes. - -E.g. turn this: - -ansi text block no alignment :( - -Into this: - -ansi text block center aligned! - -## Install - -```sh -npm install --save ansi-align -``` - -```js -var ansiAlign = require('ansi-align') -``` - -## API - -### `ansiAlign(text, [opts])` - -Align the given text per the line with the greatest [`string-width`](https://github.com/sindresorhus/string-width), returning a new string (or array). - -#### Arguments - -- `text`: required, string or array - - The text to align. If a string is given, it will be split using either the `opts.split` value or `'\n'` by default. If an array is given, a different array of modified strings will be returned. - -- `opts`: optional, object - - Options to change behavior, see below. - -#### Options - -- `opts.align`: string, default `'center'` - - The alignment mode. Use `'center'` for center-alignment, `'right'` for right-alignment, or `'left'` for left-alignment. Note that the given `text` is assumed to be left-aligned already, so specifying `align: 'left'` just returns the `text` as is (no-op). - -- `opts.split`: string or RegExp, default `'\n'` - - The separator to use when splitting the text. Only used if text is given as a string. - -- `opts.pad`: string, default `' '` - - The value used to left-pad (prepend to) lines of lesser width. Will be repeated as necessary to adjust alignment to the line with the greatest width. - -### `ansiAlign.center(text)` - -Alias for `ansiAlign(text, { align: 'center' })`. - -### `ansiAlign.right(text)` - -Alias for `ansiAlign(text, { align: 'right' })`. - -### `ansiAlign.left(text)` - -Alias for `ansiAlign(text, { align: 'left' })`, which is a no-op. - -## Similar Packages - -- [`center-align`](https://github.com/jonschlinkert/center-align): Very close to this package, except it doesn't support ANSI codes. -- [`left-pad`](https://github.com/camwest/left-pad): Great for left-padding but does not support center alignment or ANSI codes. -- Pretty much anything by the [chalk](https://github.com/chalk) team - -## License - -ISC © Contributors diff --git a/Easebuzz_NodeJS_kit/node_modules/ansi-align/index.js b/Easebuzz_NodeJS_kit/node_modules/ansi-align/index.js deleted file mode 100644 index 67fa826..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/ansi-align/index.js +++ /dev/null @@ -1,61 +0,0 @@ -'use strict' - -const stringWidth = require('string-width') - -function ansiAlign (text, opts) { - if (!text) return text - - opts = opts || {} - const align = opts.align || 'center' - - // short-circuit `align: 'left'` as no-op - if (align === 'left') return text - - const split = opts.split || '\n' - const pad = opts.pad || ' ' - const widthDiffFn = align !== 'right' ? halfDiff : fullDiff - - let returnString = false - if (!Array.isArray(text)) { - returnString = true - text = String(text).split(split) - } - - let width - let maxWidth = 0 - text = text.map(function (str) { - str = String(str) - width = stringWidth(str) - maxWidth = Math.max(width, maxWidth) - return { - str, - width - } - }).map(function (obj) { - return new Array(widthDiffFn(maxWidth, obj.width) + 1).join(pad) + obj.str - }) - - return returnString ? text.join(split) : text -} - -ansiAlign.left = function left (text) { - return ansiAlign(text, { align: 'left' }) -} - -ansiAlign.center = function center (text) { - return ansiAlign(text, { align: 'center' }) -} - -ansiAlign.right = function right (text) { - return ansiAlign(text, { align: 'right' }) -} - -module.exports = ansiAlign - -function halfDiff (maxWidth, curWidth) { - return Math.floor((maxWidth - curWidth) / 2) -} - -function fullDiff (maxWidth, curWidth) { - return maxWidth - curWidth -} diff --git a/Easebuzz_NodeJS_kit/node_modules/ansi-align/node_modules/string-width/index.js b/Easebuzz_NodeJS_kit/node_modules/ansi-align/node_modules/string-width/index.js deleted file mode 100644 index 33c9d6c..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/ansi-align/node_modules/string-width/index.js +++ /dev/null @@ -1,39 +0,0 @@ -'use strict'; -const stripAnsi = require('strip-ansi'); -const isFullwidthCodePoint = require('is-fullwidth-code-point'); -const emojiRegex = require('emoji-regex')(); - -module.exports = input => { - input = input.replace(emojiRegex, ' '); - - if (typeof input !== 'string' || input.length === 0) { - return 0; - } - - input = stripAnsi(input); - - let width = 0; - - for (let i = 0; i < input.length; i++) { - const code = input.codePointAt(i); - - // Ignore control characters - if (code <= 0x1F || (code >= 0x7F && code <= 0x9F)) { - continue; - } - - // Ignore combining characters - if (code >= 0x300 && code <= 0x36F) { - continue; - } - - // Surrogates - if (code > 0xFFFF) { - i++; - } - - width += isFullwidthCodePoint(code) ? 2 : 1; - } - - return width; -}; diff --git a/Easebuzz_NodeJS_kit/node_modules/ansi-align/node_modules/string-width/license b/Easebuzz_NodeJS_kit/node_modules/ansi-align/node_modules/string-width/license deleted file mode 100644 index e7af2f7..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/ansi-align/node_modules/string-width/license +++ /dev/null @@ -1,9 +0,0 @@ -MIT License - -Copyright (c) Sindre Sorhus (sindresorhus.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/Easebuzz_NodeJS_kit/node_modules/ansi-align/node_modules/string-width/package.json b/Easebuzz_NodeJS_kit/node_modules/ansi-align/node_modules/string-width/package.json deleted file mode 100644 index b195af7..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/ansi-align/node_modules/string-width/package.json +++ /dev/null @@ -1,88 +0,0 @@ -{ - "_from": "string-width@^3.0.0", - "_id": "string-width@3.1.0", - "_inBundle": false, - "_integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==", - "_location": "/ansi-align/string-width", - "_phantomChildren": {}, - "_requested": { - "type": "range", - "registry": true, - "raw": "string-width@^3.0.0", - "name": "string-width", - "escapedName": "string-width", - "rawSpec": "^3.0.0", - "saveSpec": null, - "fetchSpec": "^3.0.0" - }, - "_requiredBy": [ - "/ansi-align" - ], - "_resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz", - "_shasum": "22767be21b62af1081574306f69ac51b62203961", - "_spec": "string-width@^3.0.0", - "_where": "/home/ankit/Downloads/NodeJS/node_modules/ansi-align", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "bugs": { - "url": "https://github.com/sindresorhus/string-width/issues" - }, - "bundleDependencies": false, - "dependencies": { - "emoji-regex": "^7.0.1", - "is-fullwidth-code-point": "^2.0.0", - "strip-ansi": "^5.1.0" - }, - "deprecated": false, - "description": "Get the visual width of a string - the number of columns required to display it", - "devDependencies": { - "ava": "^1.0.1", - "xo": "^0.23.0" - }, - "engines": { - "node": ">=6" - }, - "files": [ - "index.js" - ], - "homepage": "https://github.com/sindresorhus/string-width#readme", - "keywords": [ - "string", - "str", - "character", - "char", - "unicode", - "width", - "visual", - "column", - "columns", - "fullwidth", - "full-width", - "full", - "ansi", - "escape", - "codes", - "cli", - "command-line", - "terminal", - "console", - "cjk", - "chinese", - "japanese", - "korean", - "fixed-width" - ], - "license": "MIT", - "name": "string-width", - "repository": { - "type": "git", - "url": "git+https://github.com/sindresorhus/string-width.git" - }, - "scripts": { - "test": "xo && ava" - }, - "version": "3.1.0" -} diff --git a/Easebuzz_NodeJS_kit/node_modules/ansi-align/node_modules/string-width/readme.md b/Easebuzz_NodeJS_kit/node_modules/ansi-align/node_modules/string-width/readme.md deleted file mode 100644 index d39d95f..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/ansi-align/node_modules/string-width/readme.md +++ /dev/null @@ -1,45 +0,0 @@ -# string-width [![Build Status](https://travis-ci.org/sindresorhus/string-width.svg?branch=master)](https://travis-ci.org/sindresorhus/string-width) - -> Get the visual width of a string - the number of columns required to display it - -Some Unicode characters are [fullwidth](https://en.wikipedia.org/wiki/Halfwidth_and_fullwidth_forms) and use double the normal width. [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code) are stripped and doesn't affect the width. - -Useful to be able to measure the actual width of command-line output. - - -## Install - -``` -$ npm install string-width -``` - - -## Usage - -```js -const stringWidth = require('string-width'); - -stringWidth('古'); -//=> 2 - -stringWidth('\u001b[1m古\u001b[22m'); -//=> 2 - -stringWidth('a'); -//=> 1 - -stringWidth('\u001B]8;;https://github.com\u0007Click\u001B]8;;\u0007'); -// => 5 -``` - - -## Related - -- [string-width-cli](https://github.com/sindresorhus/string-width-cli) - CLI for this module -- [string-length](https://github.com/sindresorhus/string-length) - Get the real length of a string -- [widest-line](https://github.com/sindresorhus/widest-line) - Get the visual width of the widest line in a string - - -## License - -MIT © [Sindre Sorhus](https://sindresorhus.com) diff --git a/Easebuzz_NodeJS_kit/node_modules/ansi-align/package.json b/Easebuzz_NodeJS_kit/node_modules/ansi-align/package.json deleted file mode 100644 index c072ac2..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/ansi-align/package.json +++ /dev/null @@ -1,74 +0,0 @@ -{ - "_from": "ansi-align@^3.0.0", - "_id": "ansi-align@3.0.0", - "_inBundle": false, - "_integrity": "sha512-ZpClVKqXN3RGBmKibdfWzqCY4lnjEuoNzU5T0oEFpfd/z5qJHVarukridD4juLO2FXMiwUQxr9WqQtaYa8XRYw==", - "_location": "/ansi-align", - "_phantomChildren": { - "emoji-regex": "7.0.3", - "is-fullwidth-code-point": "2.0.0", - "strip-ansi": "5.2.0" - }, - "_requested": { - "type": "range", - "registry": true, - "raw": "ansi-align@^3.0.0", - "name": "ansi-align", - "escapedName": "ansi-align", - "rawSpec": "^3.0.0", - "saveSpec": null, - "fetchSpec": "^3.0.0" - }, - "_requiredBy": [ - "/boxen" - ], - "_resolved": "https://registry.npmjs.org/ansi-align/-/ansi-align-3.0.0.tgz", - "_shasum": "b536b371cf687caaef236c18d3e21fe3797467cb", - "_spec": "ansi-align@^3.0.0", - "_where": "/home/ankit/Downloads/NodeJS/node_modules/boxen", - "author": { - "name": "nexdrew" - }, - "bugs": { - "url": "https://github.com/nexdrew/ansi-align/issues" - }, - "bundleDependencies": false, - "dependencies": { - "string-width": "^3.0.0" - }, - "deprecated": false, - "description": "align-text with ANSI support for CLIs", - "devDependencies": { - "ava": "^1.0.1", - "chalk": "^2.4.1", - "coveralls": "^3.0.2", - "nyc": "^13.1.0", - "standard": "^12.0.1", - "standard-version": "^4.4.0" - }, - "files": [ - "index.js" - ], - "homepage": "https://github.com/nexdrew/ansi-align#readme", - "keywords": [ - "ansi", - "align", - "cli", - "center", - "pad" - ], - "license": "ISC", - "main": "index.js", - "name": "ansi-align", - "repository": { - "type": "git", - "url": "git+https://github.com/nexdrew/ansi-align.git" - }, - "scripts": { - "coverage": "nyc report --reporter=text-lcov | coveralls", - "pretest": "standard", - "release": "standard-version", - "test": "nyc ava" - }, - "version": "3.0.0" -} diff --git a/Easebuzz_NodeJS_kit/node_modules/ansi-regex/index.js b/Easebuzz_NodeJS_kit/node_modules/ansi-regex/index.js deleted file mode 100644 index c254480..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/ansi-regex/index.js +++ /dev/null @@ -1,14 +0,0 @@ -'use strict'; - -module.exports = options => { - options = Object.assign({ - onlyFirst: false - }, options); - - const pattern = [ - '[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)', - '(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))' - ].join('|'); - - return new RegExp(pattern, options.onlyFirst ? undefined : 'g'); -}; diff --git a/Easebuzz_NodeJS_kit/node_modules/ansi-regex/license b/Easebuzz_NodeJS_kit/node_modules/ansi-regex/license deleted file mode 100644 index e7af2f7..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/ansi-regex/license +++ /dev/null @@ -1,9 +0,0 @@ -MIT License - -Copyright (c) Sindre Sorhus (sindresorhus.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/Easebuzz_NodeJS_kit/node_modules/ansi-regex/package.json b/Easebuzz_NodeJS_kit/node_modules/ansi-regex/package.json deleted file mode 100644 index 2de70c2..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/ansi-regex/package.json +++ /dev/null @@ -1,85 +0,0 @@ -{ - "_from": "ansi-regex@^4.1.0", - "_id": "ansi-regex@4.1.0", - "_inBundle": false, - "_integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", - "_location": "/ansi-regex", - "_phantomChildren": {}, - "_requested": { - "type": "range", - "registry": true, - "raw": "ansi-regex@^4.1.0", - "name": "ansi-regex", - "escapedName": "ansi-regex", - "rawSpec": "^4.1.0", - "saveSpec": null, - "fetchSpec": "^4.1.0" - }, - "_requiredBy": [ - "/strip-ansi" - ], - "_resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz", - "_shasum": "8b9f8f08cf1acb843756a839ca8c7e3168c51997", - "_spec": "ansi-regex@^4.1.0", - "_where": "/home/ankit/Downloads/NodeJS/node_modules/strip-ansi", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "bugs": { - "url": "https://github.com/chalk/ansi-regex/issues" - }, - "bundleDependencies": false, - "deprecated": false, - "description": "Regular expression for matching ANSI escape codes", - "devDependencies": { - "ava": "^0.25.0", - "xo": "^0.23.0" - }, - "engines": { - "node": ">=6" - }, - "files": [ - "index.js" - ], - "homepage": "https://github.com/chalk/ansi-regex#readme", - "keywords": [ - "ansi", - "styles", - "color", - "colour", - "colors", - "terminal", - "console", - "cli", - "string", - "tty", - "escape", - "formatting", - "rgb", - "256", - "shell", - "xterm", - "command-line", - "text", - "regex", - "regexp", - "re", - "match", - "test", - "find", - "pattern" - ], - "license": "MIT", - "name": "ansi-regex", - "repository": { - "type": "git", - "url": "git+https://github.com/chalk/ansi-regex.git" - }, - "scripts": { - "test": "xo && ava", - "view-supported": "node fixtures/view-codes.js" - }, - "version": "4.1.0" -} diff --git a/Easebuzz_NodeJS_kit/node_modules/ansi-regex/readme.md b/Easebuzz_NodeJS_kit/node_modules/ansi-regex/readme.md deleted file mode 100644 index d19c446..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/ansi-regex/readme.md +++ /dev/null @@ -1,87 +0,0 @@ -# ansi-regex [![Build Status](https://travis-ci.org/chalk/ansi-regex.svg?branch=master)](https://travis-ci.org/chalk/ansi-regex) - -> Regular expression for matching [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code) - ---- - -
- - Get professional support for this package with a Tidelift subscription - -
- - Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies. -
-
- ---- - - -## Install - -``` -$ npm install ansi-regex -``` - - -## Usage - -```js -const ansiRegex = require('ansi-regex'); - -ansiRegex().test('\u001B[4mcake\u001B[0m'); -//=> true - -ansiRegex().test('cake'); -//=> false - -'\u001B[4mcake\u001B[0m'.match(ansiRegex()); -//=> ['\u001B[4m', '\u001B[0m'] - -'\u001B[4mcake\u001B[0m'.match(ansiRegex({onlyFirst: true})); -//=> ['\u001B[4m'] - -'\u001B]8;;https://github.com\u0007click\u001B]8;;\u0007'.match(ansiRegex()); -//=> ['\u001B]8;;https://github.com\u0007', '\u001B]8;;\u0007'] -``` - - -## API - -### ansiRegex([options]) - -Returns a regex for matching ANSI escape codes. - -#### options - -##### onlyFirst - -Type: `boolean`
-Default: `false` *(Matches any ANSI escape codes in a string)* - -Match only the first ANSI escape. - - -## FAQ - -### Why do you test for codes not in the ECMA 48 standard? - -Some of the codes we run as a test are codes that we acquired finding various lists of non-standard or manufacturer specific codes. We test for both standard and non-standard codes, as most of them follow the same or similar format and can be safely matched in strings without the risk of removing actual string content. There are a few non-standard control codes that do not follow the traditional format (i.e. they end in numbers) thus forcing us to exclude them from the test because we cannot reliably match them. - -On the historical side, those ECMA standards were established in the early 90's whereas the VT100, for example, was designed in the mid/late 70's. At that point in time, control codes were still pretty ungoverned and engineers used them for a multitude of things, namely to activate hardware ports that may have been proprietary. Somewhere else you see a similar 'anarchy' of codes is in the x86 architecture for processors; there are a ton of "interrupts" that can mean different things on certain brands of processors, most of which have been phased out. - - -## Security - -To report a security vulnerability, please use the [Tidelift security contact](https://tidelift.com/security). Tidelift will coordinate the fix and disclosure. - - -## Maintainers - -- [Sindre Sorhus](https://github.com/sindresorhus) -- [Josh Junon](https://github.com/qix-) - - -## License - -MIT diff --git a/Easebuzz_NodeJS_kit/node_modules/ansi-styles/index.d.ts b/Easebuzz_NodeJS_kit/node_modules/ansi-styles/index.d.ts deleted file mode 100644 index 7e9b2b7..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/ansi-styles/index.d.ts +++ /dev/null @@ -1,197 +0,0 @@ -import * as cssColors from 'color-name'; - -declare namespace ansiStyles { - interface ColorConvert { - /** - The RGB color space. - - @param red - (`0`-`255`) - @param green - (`0`-`255`) - @param blue - (`0`-`255`) - */ - rgb(red: number, green: number, blue: number): string; - - /** - The RGB HEX color space. - - @param hex - A hexadecimal string containing RGB data. - */ - hex(hex: string): string; - - /** - @param keyword - A CSS color name. - */ - keyword(keyword: keyof typeof cssColors): string; - - /** - The HSL color space. - - @param hue - (`0`-`360`) - @param saturation - (`0`-`100`) - @param lightness - (`0`-`100`) - */ - hsl(hue: number, saturation: number, lightness: number): string; - - /** - The HSV color space. - - @param hue - (`0`-`360`) - @param saturation - (`0`-`100`) - @param value - (`0`-`100`) - */ - hsv(hue: number, saturation: number, value: number): string; - - /** - The HSV color space. - - @param hue - (`0`-`360`) - @param whiteness - (`0`-`100`) - @param blackness - (`0`-`100`) - */ - hwb(hue: number, whiteness: number, blackness: number): string; - - /** - Use a [4-bit unsigned number](https://en.wikipedia.org/wiki/ANSI_escape_code#3/4-bit) to set text color. - */ - ansi(ansi: number): string; - - /** - Use an [8-bit unsigned number](https://en.wikipedia.org/wiki/ANSI_escape_code#8-bit) to set text color. - */ - ansi256(ansi: number): string; - } - - interface CSPair { - /** - The ANSI terminal control sequence for starting this style. - */ - readonly open: string; - - /** - The ANSI terminal control sequence for ending this style. - */ - readonly close: string; - } - - interface ColorBase { - readonly ansi: ColorConvert; - readonly ansi256: ColorConvert; - readonly ansi16m: ColorConvert; - - /** - The ANSI terminal control sequence for ending this color. - */ - readonly close: string; - } - - interface Modifier { - /** - Resets the current color chain. - */ - readonly reset: CSPair; - - /** - Make text bold. - */ - readonly bold: CSPair; - - /** - Emitting only a small amount of light. - */ - readonly dim: CSPair; - - /** - Make text italic. (Not widely supported) - */ - readonly italic: CSPair; - - /** - Make text underline. (Not widely supported) - */ - readonly underline: CSPair; - - /** - Inverse background and foreground colors. - */ - readonly inverse: CSPair; - - /** - Prints the text, but makes it invisible. - */ - readonly hidden: CSPair; - - /** - Puts a horizontal line through the center of the text. (Not widely supported) - */ - readonly strikethrough: CSPair; - } - - interface ForegroundColor { - readonly black: CSPair; - readonly red: CSPair; - readonly green: CSPair; - readonly yellow: CSPair; - readonly blue: CSPair; - readonly cyan: CSPair; - readonly magenta: CSPair; - readonly white: CSPair; - - /** - Alias for `blackBright`. - */ - readonly gray: CSPair; - - /** - Alias for `blackBright`. - */ - readonly grey: CSPair; - - readonly blackBright: CSPair; - readonly redBright: CSPair; - readonly greenBright: CSPair; - readonly yellowBright: CSPair; - readonly blueBright: CSPair; - readonly cyanBright: CSPair; - readonly magentaBright: CSPair; - readonly whiteBright: CSPair; - } - - interface BackgroundColor { - readonly bgBlack: CSPair; - readonly bgRed: CSPair; - readonly bgGreen: CSPair; - readonly bgYellow: CSPair; - readonly bgBlue: CSPair; - readonly bgCyan: CSPair; - readonly bgMagenta: CSPair; - readonly bgWhite: CSPair; - - /** - Alias for `bgBlackBright`. - */ - readonly bgGray: CSPair; - - /** - Alias for `bgBlackBright`. - */ - readonly bgGrey: CSPair; - - readonly bgBlackBright: CSPair; - readonly bgRedBright: CSPair; - readonly bgGreenBright: CSPair; - readonly bgYellowBright: CSPair; - readonly bgBlueBright: CSPair; - readonly bgCyanBright: CSPair; - readonly bgMagentaBright: CSPair; - readonly bgWhiteBright: CSPair; - } -} - -declare const ansiStyles: { - readonly modifier: ansiStyles.Modifier; - readonly color: ansiStyles.ForegroundColor & ansiStyles.ColorBase; - readonly bgColor: ansiStyles.BackgroundColor & ansiStyles.ColorBase; - readonly codes: ReadonlyMap; -} & ansiStyles.BackgroundColor & ansiStyles.ForegroundColor & ansiStyles.Modifier; - -export = ansiStyles; diff --git a/Easebuzz_NodeJS_kit/node_modules/ansi-styles/index.js b/Easebuzz_NodeJS_kit/node_modules/ansi-styles/index.js deleted file mode 100644 index 5d82581..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/ansi-styles/index.js +++ /dev/null @@ -1,163 +0,0 @@ -'use strict'; - -const wrapAnsi16 = (fn, offset) => (...args) => { - const code = fn(...args); - return `\u001B[${code + offset}m`; -}; - -const wrapAnsi256 = (fn, offset) => (...args) => { - const code = fn(...args); - return `\u001B[${38 + offset};5;${code}m`; -}; - -const wrapAnsi16m = (fn, offset) => (...args) => { - const rgb = fn(...args); - return `\u001B[${38 + offset};2;${rgb[0]};${rgb[1]};${rgb[2]}m`; -}; - -const ansi2ansi = n => n; -const rgb2rgb = (r, g, b) => [r, g, b]; - -const setLazyProperty = (object, property, get) => { - Object.defineProperty(object, property, { - get: () => { - const value = get(); - - Object.defineProperty(object, property, { - value, - enumerable: true, - configurable: true - }); - - return value; - }, - enumerable: true, - configurable: true - }); -}; - -/** @type {typeof import('color-convert')} */ -let colorConvert; -const makeDynamicStyles = (wrap, targetSpace, identity, isBackground) => { - if (colorConvert === undefined) { - colorConvert = require('color-convert'); - } - - const offset = isBackground ? 10 : 0; - const styles = {}; - - for (const [sourceSpace, suite] of Object.entries(colorConvert)) { - const name = sourceSpace === 'ansi16' ? 'ansi' : sourceSpace; - if (sourceSpace === targetSpace) { - styles[name] = wrap(identity, offset); - } else if (typeof suite === 'object') { - styles[name] = wrap(suite[targetSpace], offset); - } - } - - return styles; -}; - -function assembleStyles() { - const codes = new Map(); - const styles = { - modifier: { - reset: [0, 0], - // 21 isn't widely supported and 22 does the same thing - bold: [1, 22], - dim: [2, 22], - italic: [3, 23], - underline: [4, 24], - inverse: [7, 27], - hidden: [8, 28], - strikethrough: [9, 29] - }, - color: { - black: [30, 39], - red: [31, 39], - green: [32, 39], - yellow: [33, 39], - blue: [34, 39], - magenta: [35, 39], - cyan: [36, 39], - white: [37, 39], - - // Bright color - blackBright: [90, 39], - redBright: [91, 39], - greenBright: [92, 39], - yellowBright: [93, 39], - blueBright: [94, 39], - magentaBright: [95, 39], - cyanBright: [96, 39], - whiteBright: [97, 39] - }, - bgColor: { - bgBlack: [40, 49], - bgRed: [41, 49], - bgGreen: [42, 49], - bgYellow: [43, 49], - bgBlue: [44, 49], - bgMagenta: [45, 49], - bgCyan: [46, 49], - bgWhite: [47, 49], - - // Bright color - bgBlackBright: [100, 49], - bgRedBright: [101, 49], - bgGreenBright: [102, 49], - bgYellowBright: [103, 49], - bgBlueBright: [104, 49], - bgMagentaBright: [105, 49], - bgCyanBright: [106, 49], - bgWhiteBright: [107, 49] - } - }; - - // Alias bright black as gray (and grey) - styles.color.gray = styles.color.blackBright; - styles.bgColor.bgGray = styles.bgColor.bgBlackBright; - styles.color.grey = styles.color.blackBright; - styles.bgColor.bgGrey = styles.bgColor.bgBlackBright; - - for (const [groupName, group] of Object.entries(styles)) { - for (const [styleName, style] of Object.entries(group)) { - styles[styleName] = { - open: `\u001B[${style[0]}m`, - close: `\u001B[${style[1]}m` - }; - - group[styleName] = styles[styleName]; - - codes.set(style[0], style[1]); - } - - Object.defineProperty(styles, groupName, { - value: group, - enumerable: false - }); - } - - Object.defineProperty(styles, 'codes', { - value: codes, - enumerable: false - }); - - styles.color.close = '\u001B[39m'; - styles.bgColor.close = '\u001B[49m'; - - setLazyProperty(styles.color, 'ansi', () => makeDynamicStyles(wrapAnsi16, 'ansi16', ansi2ansi, false)); - setLazyProperty(styles.color, 'ansi256', () => makeDynamicStyles(wrapAnsi256, 'ansi256', ansi2ansi, false)); - setLazyProperty(styles.color, 'ansi16m', () => makeDynamicStyles(wrapAnsi16m, 'rgb', rgb2rgb, false)); - setLazyProperty(styles.bgColor, 'ansi', () => makeDynamicStyles(wrapAnsi16, 'ansi16', ansi2ansi, true)); - setLazyProperty(styles.bgColor, 'ansi256', () => makeDynamicStyles(wrapAnsi256, 'ansi256', ansi2ansi, true)); - setLazyProperty(styles.bgColor, 'ansi16m', () => makeDynamicStyles(wrapAnsi16m, 'rgb', rgb2rgb, true)); - - return styles; -} - -// Make the export immutable -Object.defineProperty(module, 'exports', { - enumerable: true, - get: assembleStyles -}); diff --git a/Easebuzz_NodeJS_kit/node_modules/ansi-styles/license b/Easebuzz_NodeJS_kit/node_modules/ansi-styles/license deleted file mode 100644 index e7af2f7..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/ansi-styles/license +++ /dev/null @@ -1,9 +0,0 @@ -MIT License - -Copyright (c) Sindre Sorhus (sindresorhus.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/Easebuzz_NodeJS_kit/node_modules/ansi-styles/package.json b/Easebuzz_NodeJS_kit/node_modules/ansi-styles/package.json deleted file mode 100644 index 41ab7c6..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/ansi-styles/package.json +++ /dev/null @@ -1,89 +0,0 @@ -{ - "_from": "ansi-styles@^4.1.0", - "_id": "ansi-styles@4.2.1", - "_inBundle": false, - "_integrity": "sha512-9VGjrMsG1vePxcSweQsN20KY/c4zN0h9fLjqAbwbPfahM3t+NL+M9HC8xeXG2I8pX5NoamTGNuomEUFI7fcUjA==", - "_location": "/ansi-styles", - "_phantomChildren": {}, - "_requested": { - "type": "range", - "registry": true, - "raw": "ansi-styles@^4.1.0", - "name": "ansi-styles", - "escapedName": "ansi-styles", - "rawSpec": "^4.1.0", - "saveSpec": null, - "fetchSpec": "^4.1.0" - }, - "_requiredBy": [ - "/chalk" - ], - "_resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.2.1.tgz", - "_shasum": "90ae75c424d008d2624c5bf29ead3177ebfcf359", - "_spec": "ansi-styles@^4.1.0", - "_where": "/home/ankit/Downloads/NodeJS/node_modules/chalk", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "bugs": { - "url": "https://github.com/chalk/ansi-styles/issues" - }, - "bundleDependencies": false, - "dependencies": { - "@types/color-name": "^1.1.1", - "color-convert": "^2.0.1" - }, - "deprecated": false, - "description": "ANSI escape codes for styling strings in the terminal", - "devDependencies": { - "@types/color-convert": "^1.9.0", - "ava": "^2.3.0", - "svg-term-cli": "^2.1.1", - "tsd": "^0.11.0", - "xo": "^0.25.3" - }, - "engines": { - "node": ">=8" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "funding": "https://github.com/chalk/ansi-styles?sponsor=1", - "homepage": "https://github.com/chalk/ansi-styles#readme", - "keywords": [ - "ansi", - "styles", - "color", - "colour", - "colors", - "terminal", - "console", - "cli", - "string", - "tty", - "escape", - "formatting", - "rgb", - "256", - "shell", - "xterm", - "log", - "logging", - "command-line", - "text" - ], - "license": "MIT", - "name": "ansi-styles", - "repository": { - "type": "git", - "url": "git+https://github.com/chalk/ansi-styles.git" - }, - "scripts": { - "screenshot": "svg-term --command='node screenshot' --out=screenshot.svg --padding=3 --width=55 --height=3 --at=1000 --no-cursor", - "test": "xo && ava && tsd" - }, - "version": "4.2.1" -} diff --git a/Easebuzz_NodeJS_kit/node_modules/ansi-styles/readme.md b/Easebuzz_NodeJS_kit/node_modules/ansi-styles/readme.md deleted file mode 100644 index 2a1ef65..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/ansi-styles/readme.md +++ /dev/null @@ -1,158 +0,0 @@ -# ansi-styles [![Build Status](https://travis-ci.org/chalk/ansi-styles.svg?branch=master)](https://travis-ci.org/chalk/ansi-styles) - -> [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code#Colors_and_Styles) for styling strings in the terminal - -You probably want the higher-level [chalk](https://github.com/chalk/chalk) module for styling your strings. - - - -## Install - -``` -$ npm install ansi-styles -``` - -## Usage - -```js -const style = require('ansi-styles'); - -console.log(`${style.green.open}Hello world!${style.green.close}`); - - -// Color conversion between 16/256/truecolor -// NOTE: If conversion goes to 16 colors or 256 colors, the original color -// may be degraded to fit that color palette. This means terminals -// that do not support 16 million colors will best-match the -// original color. -console.log(style.bgColor.ansi.hsl(120, 80, 72) + 'Hello world!' + style.bgColor.close); -console.log(style.color.ansi256.rgb(199, 20, 250) + 'Hello world!' + style.color.close); -console.log(style.color.ansi16m.hex('#abcdef') + 'Hello world!' + style.color.close); -``` - -## API - -Each style has an `open` and `close` property. - -## Styles - -### Modifiers - -- `reset` -- `bold` -- `dim` -- `italic` *(Not widely supported)* -- `underline` -- `inverse` -- `hidden` -- `strikethrough` *(Not widely supported)* - -### Colors - -- `black` -- `red` -- `green` -- `yellow` -- `blue` -- `magenta` -- `cyan` -- `white` -- `blackBright` (alias: `gray`, `grey`) -- `redBright` -- `greenBright` -- `yellowBright` -- `blueBright` -- `magentaBright` -- `cyanBright` -- `whiteBright` - -### Background colors - -- `bgBlack` -- `bgRed` -- `bgGreen` -- `bgYellow` -- `bgBlue` -- `bgMagenta` -- `bgCyan` -- `bgWhite` -- `bgBlackBright` (alias: `bgGray`, `bgGrey`) -- `bgRedBright` -- `bgGreenBright` -- `bgYellowBright` -- `bgBlueBright` -- `bgMagentaBright` -- `bgCyanBright` -- `bgWhiteBright` - -## Advanced usage - -By default, you get a map of styles, but the styles are also available as groups. They are non-enumerable so they don't show up unless you access them explicitly. This makes it easier to expose only a subset in a higher-level module. - -- `style.modifier` -- `style.color` -- `style.bgColor` - -###### Example - -```js -console.log(style.color.green.open); -``` - -Raw escape codes (i.e. without the CSI escape prefix `\u001B[` and render mode postfix `m`) are available under `style.codes`, which returns a `Map` with the open codes as keys and close codes as values. - -###### Example - -```js -console.log(style.codes.get(36)); -//=> 39 -``` - -## [256 / 16 million (TrueColor) support](https://gist.github.com/XVilka/8346728) - -`ansi-styles` uses the [`color-convert`](https://github.com/Qix-/color-convert) package to allow for converting between various colors and ANSI escapes, with support for 256 and 16 million colors. - -The following color spaces from `color-convert` are supported: - -- `rgb` -- `hex` -- `keyword` -- `hsl` -- `hsv` -- `hwb` -- `ansi` -- `ansi256` - -To use these, call the associated conversion function with the intended output, for example: - -```js -style.color.ansi.rgb(100, 200, 15); // RGB to 16 color ansi foreground code -style.bgColor.ansi.rgb(100, 200, 15); // RGB to 16 color ansi background code - -style.color.ansi256.hsl(120, 100, 60); // HSL to 256 color ansi foreground code -style.bgColor.ansi256.hsl(120, 100, 60); // HSL to 256 color ansi foreground code - -style.color.ansi16m.hex('#C0FFEE'); // Hex (RGB) to 16 million color foreground code -style.bgColor.ansi16m.hex('#C0FFEE'); // Hex (RGB) to 16 million color background code -``` - -## Related - -- [ansi-escapes](https://github.com/sindresorhus/ansi-escapes) - ANSI escape codes for manipulating the terminal - -## Maintainers - -- [Sindre Sorhus](https://github.com/sindresorhus) -- [Josh Junon](https://github.com/qix-) - ---- - -
- - Get professional support for this package with a Tidelift subscription - -
- - Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies. -
-
diff --git a/Easebuzz_NodeJS_kit/node_modules/anymatch/LICENSE b/Easebuzz_NodeJS_kit/node_modules/anymatch/LICENSE deleted file mode 100644 index 491766c..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/anymatch/LICENSE +++ /dev/null @@ -1,15 +0,0 @@ -The ISC License - -Copyright (c) 2019 Elan Shanker, Paul Miller (https://paulmillr.com) - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted, provided that the above -copyright notice and this permission notice appear in all copies. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR -IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. diff --git a/Easebuzz_NodeJS_kit/node_modules/anymatch/README.md b/Easebuzz_NodeJS_kit/node_modules/anymatch/README.md deleted file mode 100644 index 1dd67f5..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/anymatch/README.md +++ /dev/null @@ -1,87 +0,0 @@ -anymatch [![Build Status](https://travis-ci.org/micromatch/anymatch.svg?branch=master)](https://travis-ci.org/micromatch/anymatch) [![Coverage Status](https://img.shields.io/coveralls/micromatch/anymatch.svg?branch=master)](https://coveralls.io/r/micromatch/anymatch?branch=master) -====== -Javascript module to match a string against a regular expression, glob, string, -or function that takes the string as an argument and returns a truthy or falsy -value. The matcher can also be an array of any or all of these. Useful for -allowing a very flexible user-defined config to define things like file paths. - -__Note: This module has Bash-parity, please be aware that Windows-style backslashes are not supported as separators. See https://github.com/micromatch/micromatch#backslashes for more information.__ - - -Usage ------ -```sh -npm install anymatch -``` - -#### anymatch(matchers, testString, [returnIndex], [options]) -* __matchers__: (_Array|String|RegExp|Function_) -String to be directly matched, string with glob patterns, regular expression -test, function that takes the testString as an argument and returns a truthy -value if it should be matched, or an array of any number and mix of these types. -* __testString__: (_String|Array_) The string to test against the matchers. If -passed as an array, the first element of the array will be used as the -`testString` for non-function matchers, while the entire array will be applied -as the arguments for function matchers. -* __options__: (_Object_ [optional]_) Any of the [picomatch](https://github.com/micromatch/picomatch#options) options. - * __returnIndex__: (_Boolean [optional]_) If true, return the array index of -the first matcher that that testString matched, or -1 if no match, instead of a -boolean result. - -```js -const anymatch = require('anymatch'); - -const matchers = [ 'path/to/file.js', 'path/anyjs/**/*.js', /foo.js$/, string => string.includes('bar') && string.length > 10 ] ; - -anymatch(matchers, 'path/to/file.js'); // true -anymatch(matchers, 'path/anyjs/baz.js'); // true -anymatch(matchers, 'path/to/foo.js'); // true -anymatch(matchers, 'path/to/bar.js'); // true -anymatch(matchers, 'bar.js'); // false - -// returnIndex = true -anymatch(matchers, 'foo.js', {returnIndex: true}); // 2 -anymatch(matchers, 'path/anyjs/foo.js', {returnIndex: true}); // 1 - -// any picomatc - -// using globs to match directories and their children -anymatch('node_modules', 'node_modules'); // true -anymatch('node_modules', 'node_modules/somelib/index.js'); // false -anymatch('node_modules/**', 'node_modules/somelib/index.js'); // true -anymatch('node_modules/**', '/absolute/path/to/node_modules/somelib/index.js'); // false -anymatch('**/node_modules/**', '/absolute/path/to/node_modules/somelib/index.js'); // true - -const matcher = anymatch(matchers); -['foo.js', 'bar.js'].filter(matcher); // [ 'foo.js' ] -anymatch master* ❯ - -``` - -#### anymatch(matchers) -You can also pass in only your matcher(s) to get a curried function that has -already been bound to the provided matching criteria. This can be used as an -`Array#filter` callback. - -```js -var matcher = anymatch(matchers); - -matcher('path/to/file.js'); // true -matcher('path/anyjs/baz.js', true); // 1 - -['foo.js', 'bar.js'].filter(matcher); // ['foo.js'] -``` - -Changelog ----------- -[See release notes page on GitHub](https://github.com/micromatch/anymatch/releases) - -- **v3.0:** Removed `startIndex` and `endIndex` arguments. Node 8.x-only. -- **v2.0:** [micromatch](https://github.com/jonschlinkert/micromatch) moves away from minimatch-parity and inline with Bash. This includes handling backslashes differently (see https://github.com/micromatch/micromatch#backslashes for more information). -- **v1.2:** anymatch uses [micromatch](https://github.com/jonschlinkert/micromatch) -for glob pattern matching. Issues with glob pattern matching should be -reported directly to the [micromatch issue tracker](https://github.com/jonschlinkert/micromatch/issues). - -License -------- -[ISC](https://raw.github.com/micromatch/anymatch/master/LICENSE) diff --git a/Easebuzz_NodeJS_kit/node_modules/anymatch/index.d.ts b/Easebuzz_NodeJS_kit/node_modules/anymatch/index.d.ts deleted file mode 100644 index 196d061..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/anymatch/index.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -type AnymatchFn = (testString: string) => boolean; -type AnymatchPattern = string|RegExp|AnymatchFn; -type AnymatchMatcher = AnymatchPattern|AnymatchPattern[] -type AnymatchTester = { - (testString: string|any[], returnIndex: true): number; - (testString: string|any[]): boolean; -} - -type PicomatchOptions = {dot: boolean}; - -declare const anymatch: { - (matchers: AnymatchMatcher): AnymatchTester; - (matchers: AnymatchMatcher, testString: string|any[], returnIndex: true | PicomatchOptions): number; - (matchers: AnymatchMatcher, testString: string|any[]): boolean; -} - -export {AnymatchMatcher as Matcher} -export {AnymatchTester as Tester} -export default anymatch diff --git a/Easebuzz_NodeJS_kit/node_modules/anymatch/index.js b/Easebuzz_NodeJS_kit/node_modules/anymatch/index.js deleted file mode 100644 index 24529c8..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/anymatch/index.js +++ /dev/null @@ -1,102 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { value: true }); - -const picomatch = require('picomatch'); -const normalizePath = require('normalize-path'); - -/** - * @typedef {(testString: string) => boolean} AnymatchFn - * @typedef {string|RegExp|AnymatchFn} AnymatchPattern - * @typedef {AnymatchPattern|AnymatchPattern[]} AnymatchMatcher - */ -const BANG = '!'; -const DEFAULT_OPTIONS = {returnIndex: false}; -const arrify = (item) => Array.isArray(item) ? item : [item]; - -/** - * @param {AnymatchPattern} matcher - * @param {object} options - * @returns {AnymatchFn} - */ -const createPattern = (matcher, options) => { - if (typeof matcher === 'function') { - return matcher; - } - if (typeof matcher === 'string') { - const glob = picomatch(matcher, options); - return (string) => matcher === string || glob(string); - } - if (matcher instanceof RegExp) { - return (string) => matcher.test(string); - } - return (string) => false; -}; - -/** - * @param {Array} patterns - * @param {Array} negPatterns - * @param {String|Array} args - * @param {Boolean} returnIndex - * @returns {boolean|number} - */ -const matchPatterns = (patterns, negPatterns, args, returnIndex) => { - const isList = Array.isArray(args); - const _path = isList ? args[0] : args; - if (!isList && typeof _path !== 'string') { - throw new TypeError('anymatch: second argument must be a string: got ' + - Object.prototype.toString.call(_path)) - } - const path = normalizePath(_path); - - for (let index = 0; index < negPatterns.length; index++) { - const nglob = negPatterns[index]; - if (nglob(path)) { - return returnIndex ? -1 : false; - } - } - - const applied = isList && [path].concat(args.slice(1)); - for (let index = 0; index < patterns.length; index++) { - const pattern = patterns[index]; - if (isList ? pattern(...applied) : pattern(path)) { - return returnIndex ? index : true; - } - } - - return returnIndex ? -1 : false; -}; - -/** - * @param {AnymatchMatcher} matchers - * @param {Array|string} testString - * @param {object} options - * @returns {boolean|number|Function} - */ -const anymatch = (matchers, testString, options = DEFAULT_OPTIONS) => { - if (matchers == null) { - throw new TypeError('anymatch: specify first argument'); - } - const opts = typeof options === 'boolean' ? {returnIndex: options} : options; - const returnIndex = opts.returnIndex || false; - - // Early cache for matchers. - const mtchers = arrify(matchers); - const negatedGlobs = mtchers - .filter(item => typeof item === 'string' && item.charAt(0) === BANG) - .map(item => item.slice(1)) - .map(item => picomatch(item, opts)); - const patterns = mtchers.map(matcher => createPattern(matcher, opts)); - - if (testString == null) { - return (testString, ri = false) => { - const returnIndex = typeof ri === 'boolean' ? ri : false; - return matchPatterns(patterns, negatedGlobs, testString, returnIndex); - } - } - - return matchPatterns(patterns, negatedGlobs, testString, returnIndex); -}; - -anymatch.default = anymatch; -module.exports = anymatch; diff --git a/Easebuzz_NodeJS_kit/node_modules/anymatch/package.json b/Easebuzz_NodeJS_kit/node_modules/anymatch/package.json deleted file mode 100644 index f4c4698..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/anymatch/package.json +++ /dev/null @@ -1,76 +0,0 @@ -{ - "_from": "anymatch@~3.1.1", - "_id": "anymatch@3.1.1", - "_inBundle": false, - "_integrity": "sha512-mM8522psRCqzV+6LhomX5wgp25YVibjh8Wj23I5RPkPppSVSjyKD2A2mBJmWGa+KN7f2D6LNh9jkBCeyLktzjg==", - "_location": "/anymatch", - "_phantomChildren": {}, - "_requested": { - "type": "range", - "registry": true, - "raw": "anymatch@~3.1.1", - "name": "anymatch", - "escapedName": "anymatch", - "rawSpec": "~3.1.1", - "saveSpec": null, - "fetchSpec": "~3.1.1" - }, - "_requiredBy": [ - "/chokidar" - ], - "_resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.1.tgz", - "_shasum": "c55ecf02185e2469259399310c173ce31233b142", - "_spec": "anymatch@~3.1.1", - "_where": "/home/ankit/Downloads/NodeJS/node_modules/chokidar", - "author": { - "name": "Elan Shanker", - "url": "https://github.com/es128" - }, - "bugs": { - "url": "https://github.com/micromatch/anymatch/issues" - }, - "bundleDependencies": false, - "dependencies": { - "normalize-path": "^3.0.0", - "picomatch": "^2.0.4" - }, - "deprecated": false, - "description": "Matches strings against configurable strings, globs, regular expressions, and/or functions", - "devDependencies": { - "mocha": "^6.1.3", - "nyc": "^14.0.0" - }, - "engines": { - "node": ">= 8" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "homepage": "https://github.com/micromatch/anymatch", - "keywords": [ - "match", - "any", - "string", - "file", - "fs", - "list", - "glob", - "regex", - "regexp", - "regular", - "expression", - "function" - ], - "license": "ISC", - "name": "anymatch", - "repository": { - "type": "git", - "url": "git+https://github.com/micromatch/anymatch.git" - }, - "scripts": { - "mocha": "mocha", - "test": "nyc mocha" - }, - "version": "3.1.1" -} diff --git a/Easebuzz_NodeJS_kit/node_modules/async/.travis.yml b/Easebuzz_NodeJS_kit/node_modules/async/.travis.yml deleted file mode 100644 index 6064ca0..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/async/.travis.yml +++ /dev/null @@ -1,5 +0,0 @@ -language: node_js -node_js: - - "0.10" - - "0.12" - - "iojs" diff --git a/Easebuzz_NodeJS_kit/node_modules/async/LICENSE b/Easebuzz_NodeJS_kit/node_modules/async/LICENSE deleted file mode 100644 index 8f29698..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/async/LICENSE +++ /dev/null @@ -1,19 +0,0 @@ -Copyright (c) 2010-2014 Caolan McMahon - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/Easebuzz_NodeJS_kit/node_modules/async/README.md b/Easebuzz_NodeJS_kit/node_modules/async/README.md deleted file mode 100644 index 6cfb922..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/async/README.md +++ /dev/null @@ -1,1647 +0,0 @@ -# Async.js - -[![Build Status via Travis CI](https://travis-ci.org/caolan/async.svg?branch=master)](https://travis-ci.org/caolan/async) - - -Async is a utility module which provides straight-forward, powerful functions -for working with asynchronous JavaScript. Although originally designed for -use with [Node.js](http://nodejs.org) and installable via `npm install async`, -it can also be used directly in the browser. - -Async is also installable via: - -- [bower](http://bower.io/): `bower install async` -- [component](https://github.com/component/component): `component install - caolan/async` -- [jam](http://jamjs.org/): `jam install async` -- [spm](http://spmjs.io/): `spm install async` - -Async provides around 20 functions that include the usual 'functional' -suspects (`map`, `reduce`, `filter`, `each`…) as well as some common patterns -for asynchronous control flow (`parallel`, `series`, `waterfall`…). All these -functions assume you follow the Node.js convention of providing a single -callback as the last argument of your `async` function. - - -## Quick Examples - -```javascript -async.map(['file1','file2','file3'], fs.stat, function(err, results){ - // results is now an array of stats for each file -}); - -async.filter(['file1','file2','file3'], fs.exists, function(results){ - // results now equals an array of the existing files -}); - -async.parallel([ - function(){ ... }, - function(){ ... } -], callback); - -async.series([ - function(){ ... }, - function(){ ... } -]); -``` - -There are many more functions available so take a look at the docs below for a -full list. This module aims to be comprehensive, so if you feel anything is -missing please create a GitHub issue for it. - -## Common Pitfalls - -### Binding a context to an iterator - -This section is really about `bind`, not about `async`. If you are wondering how to -make `async` execute your iterators in a given context, or are confused as to why -a method of another library isn't working as an iterator, study this example: - -```js -// Here is a simple object with an (unnecessarily roundabout) squaring method -var AsyncSquaringLibrary = { - squareExponent: 2, - square: function(number, callback){ - var result = Math.pow(number, this.squareExponent); - setTimeout(function(){ - callback(null, result); - }, 200); - } -}; - -async.map([1, 2, 3], AsyncSquaringLibrary.square, function(err, result){ - // result is [NaN, NaN, NaN] - // This fails because the `this.squareExponent` expression in the square - // function is not evaluated in the context of AsyncSquaringLibrary, and is - // therefore undefined. -}); - -async.map([1, 2, 3], AsyncSquaringLibrary.square.bind(AsyncSquaringLibrary), function(err, result){ - // result is [1, 4, 9] - // With the help of bind we can attach a context to the iterator before - // passing it to async. Now the square function will be executed in its - // 'home' AsyncSquaringLibrary context and the value of `this.squareExponent` - // will be as expected. -}); -``` - -## Download - -The source is available for download from -[GitHub](http://github.com/caolan/async). -Alternatively, you can install using Node Package Manager (`npm`): - - npm install async - -__Development:__ [async.js](https://github.com/caolan/async/raw/master/lib/async.js) - 29.6kb Uncompressed - -## In the Browser - -So far it's been tested in IE6, IE7, IE8, FF3.6 and Chrome 5. - -Usage: - -```html - - -``` - -## Documentation - -### Collections - -* [`each`](#each) -* [`eachSeries`](#eachSeries) -* [`eachLimit`](#eachLimit) -* [`map`](#map) -* [`mapSeries`](#mapSeries) -* [`mapLimit`](#mapLimit) -* [`filter`](#filter) -* [`filterSeries`](#filterSeries) -* [`reject`](#reject) -* [`rejectSeries`](#rejectSeries) -* [`reduce`](#reduce) -* [`reduceRight`](#reduceRight) -* [`detect`](#detect) -* [`detectSeries`](#detectSeries) -* [`sortBy`](#sortBy) -* [`some`](#some) -* [`every`](#every) -* [`concat`](#concat) -* [`concatSeries`](#concatSeries) - -### Control Flow - -* [`series`](#seriestasks-callback) -* [`parallel`](#parallel) -* [`parallelLimit`](#parallellimittasks-limit-callback) -* [`whilst`](#whilst) -* [`doWhilst`](#doWhilst) -* [`until`](#until) -* [`doUntil`](#doUntil) -* [`forever`](#forever) -* [`waterfall`](#waterfall) -* [`compose`](#compose) -* [`seq`](#seq) -* [`applyEach`](#applyEach) -* [`applyEachSeries`](#applyEachSeries) -* [`queue`](#queue) -* [`priorityQueue`](#priorityQueue) -* [`cargo`](#cargo) -* [`auto`](#auto) -* [`retry`](#retry) -* [`iterator`](#iterator) -* [`apply`](#apply) -* [`nextTick`](#nextTick) -* [`times`](#times) -* [`timesSeries`](#timesSeries) - -### Utils - -* [`memoize`](#memoize) -* [`unmemoize`](#unmemoize) -* [`log`](#log) -* [`dir`](#dir) -* [`noConflict`](#noConflict) - - -## Collections - - - -### each(arr, iterator, callback) - -Applies the function `iterator` to each item in `arr`, in parallel. -The `iterator` is called with an item from the list, and a callback for when it -has finished. If the `iterator` passes an error to its `callback`, the main -`callback` (for the `each` function) is immediately called with the error. - -Note, that since this function applies `iterator` to each item in parallel, -there is no guarantee that the iterator functions will complete in order. - -__Arguments__ - -* `arr` - An array to iterate over. -* `iterator(item, callback)` - A function to apply to each item in `arr`. - The iterator is passed a `callback(err)` which must be called once it has - completed. If no error has occurred, the `callback` should be run without - arguments or with an explicit `null` argument. -* `callback(err)` - A callback which is called when all `iterator` functions - have finished, or an error occurs. - -__Examples__ - - -```js -// assuming openFiles is an array of file names and saveFile is a function -// to save the modified contents of that file: - -async.each(openFiles, saveFile, function(err){ - // if any of the saves produced an error, err would equal that error -}); -``` - -```js -// assuming openFiles is an array of file names - -async.each(openFiles, function(file, callback) { - - // Perform operation on file here. - console.log('Processing file ' + file); - - if( file.length > 32 ) { - console.log('This file name is too long'); - callback('File name too long'); - } else { - // Do work to process file here - console.log('File processed'); - callback(); - } -}, function(err){ - // if any of the file processing produced an error, err would equal that error - if( err ) { - // One of the iterations produced an error. - // All processing will now stop. - console.log('A file failed to process'); - } else { - console.log('All files have been processed successfully'); - } -}); -``` - ---------------------------------------- - - - -### eachSeries(arr, iterator, callback) - -The same as [`each`](#each), only `iterator` is applied to each item in `arr` in -series. The next `iterator` is only called once the current one has completed. -This means the `iterator` functions will complete in order. - - ---------------------------------------- - - - -### eachLimit(arr, limit, iterator, callback) - -The same as [`each`](#each), only no more than `limit` `iterator`s will be simultaneously -running at any time. - -Note that the items in `arr` are not processed in batches, so there is no guarantee that -the first `limit` `iterator` functions will complete before any others are started. - -__Arguments__ - -* `arr` - An array to iterate over. -* `limit` - The maximum number of `iterator`s to run at any time. -* `iterator(item, callback)` - A function to apply to each item in `arr`. - The iterator is passed a `callback(err)` which must be called once it has - completed. If no error has occurred, the callback should be run without - arguments or with an explicit `null` argument. -* `callback(err)` - A callback which is called when all `iterator` functions - have finished, or an error occurs. - -__Example__ - -```js -// Assume documents is an array of JSON objects and requestApi is a -// function that interacts with a rate-limited REST api. - -async.eachLimit(documents, 20, requestApi, function(err){ - // if any of the saves produced an error, err would equal that error -}); -``` - ---------------------------------------- - - -### map(arr, iterator, callback) - -Produces a new array of values by mapping each value in `arr` through -the `iterator` function. The `iterator` is called with an item from `arr` and a -callback for when it has finished processing. Each of these callback takes 2 arguments: -an `error`, and the transformed item from `arr`. If `iterator` passes an error to his -callback, the main `callback` (for the `map` function) is immediately called with the error. - -Note, that since this function applies the `iterator` to each item in parallel, -there is no guarantee that the `iterator` functions will complete in order. -However, the results array will be in the same order as the original `arr`. - -__Arguments__ - -* `arr` - An array to iterate over. -* `iterator(item, callback)` - A function to apply to each item in `arr`. - The iterator is passed a `callback(err, transformed)` which must be called once - it has completed with an error (which can be `null`) and a transformed item. -* `callback(err, results)` - A callback which is called when all `iterator` - functions have finished, or an error occurs. Results is an array of the - transformed items from the `arr`. - -__Example__ - -```js -async.map(['file1','file2','file3'], fs.stat, function(err, results){ - // results is now an array of stats for each file -}); -``` - ---------------------------------------- - - -### mapSeries(arr, iterator, callback) - -The same as [`map`](#map), only the `iterator` is applied to each item in `arr` in -series. The next `iterator` is only called once the current one has completed. -The results array will be in the same order as the original. - - ---------------------------------------- - - -### mapLimit(arr, limit, iterator, callback) - -The same as [`map`](#map), only no more than `limit` `iterator`s will be simultaneously -running at any time. - -Note that the items are not processed in batches, so there is no guarantee that -the first `limit` `iterator` functions will complete before any others are started. - -__Arguments__ - -* `arr` - An array to iterate over. -* `limit` - The maximum number of `iterator`s to run at any time. -* `iterator(item, callback)` - A function to apply to each item in `arr`. - The iterator is passed a `callback(err, transformed)` which must be called once - it has completed with an error (which can be `null`) and a transformed item. -* `callback(err, results)` - A callback which is called when all `iterator` - calls have finished, or an error occurs. The result is an array of the - transformed items from the original `arr`. - -__Example__ - -```js -async.mapLimit(['file1','file2','file3'], 1, fs.stat, function(err, results){ - // results is now an array of stats for each file -}); -``` - ---------------------------------------- - - - -### filter(arr, iterator, callback) - -__Alias:__ `select` - -Returns a new array of all the values in `arr` which pass an async truth test. -_The callback for each `iterator` call only accepts a single argument of `true` or -`false`; it does not accept an error argument first!_ This is in-line with the -way node libraries work with truth tests like `fs.exists`. This operation is -performed in parallel, but the results array will be in the same order as the -original. - -__Arguments__ - -* `arr` - An array to iterate over. -* `iterator(item, callback)` - A truth test to apply to each item in `arr`. - The `iterator` is passed a `callback(truthValue)`, which must be called with a - boolean argument once it has completed. -* `callback(results)` - A callback which is called after all the `iterator` - functions have finished. - -__Example__ - -```js -async.filter(['file1','file2','file3'], fs.exists, function(results){ - // results now equals an array of the existing files -}); -``` - ---------------------------------------- - - - -### filterSeries(arr, iterator, callback) - -__Alias:__ `selectSeries` - -The same as [`filter`](#filter) only the `iterator` is applied to each item in `arr` in -series. The next `iterator` is only called once the current one has completed. -The results array will be in the same order as the original. - ---------------------------------------- - - -### reject(arr, iterator, callback) - -The opposite of [`filter`](#filter). Removes values that pass an `async` truth test. - ---------------------------------------- - - -### rejectSeries(arr, iterator, callback) - -The same as [`reject`](#reject), only the `iterator` is applied to each item in `arr` -in series. - - ---------------------------------------- - - -### reduce(arr, memo, iterator, callback) - -__Aliases:__ `inject`, `foldl` - -Reduces `arr` into a single value using an async `iterator` to return -each successive step. `memo` is the initial state of the reduction. -This function only operates in series. - -For performance reasons, it may make sense to split a call to this function into -a parallel map, and then use the normal `Array.prototype.reduce` on the results. -This function is for situations where each step in the reduction needs to be async; -if you can get the data before reducing it, then it's probably a good idea to do so. - -__Arguments__ - -* `arr` - An array to iterate over. -* `memo` - The initial state of the reduction. -* `iterator(memo, item, callback)` - A function applied to each item in the - array to produce the next step in the reduction. The `iterator` is passed a - `callback(err, reduction)` which accepts an optional error as its first - argument, and the state of the reduction as the second. If an error is - passed to the callback, the reduction is stopped and the main `callback` is - immediately called with the error. -* `callback(err, result)` - A callback which is called after all the `iterator` - functions have finished. Result is the reduced value. - -__Example__ - -```js -async.reduce([1,2,3], 0, function(memo, item, callback){ - // pointless async: - process.nextTick(function(){ - callback(null, memo + item) - }); -}, function(err, result){ - // result is now equal to the last value of memo, which is 6 -}); -``` - ---------------------------------------- - - -### reduceRight(arr, memo, iterator, callback) - -__Alias:__ `foldr` - -Same as [`reduce`](#reduce), only operates on `arr` in reverse order. - - ---------------------------------------- - - -### detect(arr, iterator, callback) - -Returns the first value in `arr` that passes an async truth test. The -`iterator` is applied in parallel, meaning the first iterator to return `true` will -fire the detect `callback` with that result. That means the result might not be -the first item in the original `arr` (in terms of order) that passes the test. - -If order within the original `arr` is important, then look at [`detectSeries`](#detectSeries). - -__Arguments__ - -* `arr` - An array to iterate over. -* `iterator(item, callback)` - A truth test to apply to each item in `arr`. - The iterator is passed a `callback(truthValue)` which must be called with a - boolean argument once it has completed. -* `callback(result)` - A callback which is called as soon as any iterator returns - `true`, or after all the `iterator` functions have finished. Result will be - the first item in the array that passes the truth test (iterator) or the - value `undefined` if none passed. - -__Example__ - -```js -async.detect(['file1','file2','file3'], fs.exists, function(result){ - // result now equals the first file in the list that exists -}); -``` - ---------------------------------------- - - -### detectSeries(arr, iterator, callback) - -The same as [`detect`](#detect), only the `iterator` is applied to each item in `arr` -in series. This means the result is always the first in the original `arr` (in -terms of array order) that passes the truth test. - - ---------------------------------------- - - -### sortBy(arr, iterator, callback) - -Sorts a list by the results of running each `arr` value through an async `iterator`. - -__Arguments__ - -* `arr` - An array to iterate over. -* `iterator(item, callback)` - A function to apply to each item in `arr`. - The iterator is passed a `callback(err, sortValue)` which must be called once it - has completed with an error (which can be `null`) and a value to use as the sort - criteria. -* `callback(err, results)` - A callback which is called after all the `iterator` - functions have finished, or an error occurs. Results is the items from - the original `arr` sorted by the values returned by the `iterator` calls. - -__Example__ - -```js -async.sortBy(['file1','file2','file3'], function(file, callback){ - fs.stat(file, function(err, stats){ - callback(err, stats.mtime); - }); -}, function(err, results){ - // results is now the original array of files sorted by - // modified date -}); -``` - -__Sort Order__ - -By modifying the callback parameter the sorting order can be influenced: - -```js -//ascending order -async.sortBy([1,9,3,5], function(x, callback){ - callback(null, x); -}, function(err,result){ - //result callback -} ); - -//descending order -async.sortBy([1,9,3,5], function(x, callback){ - callback(null, x*-1); //<- x*-1 instead of x, turns the order around -}, function(err,result){ - //result callback -} ); -``` - ---------------------------------------- - - -### some(arr, iterator, callback) - -__Alias:__ `any` - -Returns `true` if at least one element in the `arr` satisfies an async test. -_The callback for each iterator call only accepts a single argument of `true` or -`false`; it does not accept an error argument first!_ This is in-line with the -way node libraries work with truth tests like `fs.exists`. Once any iterator -call returns `true`, the main `callback` is immediately called. - -__Arguments__ - -* `arr` - An array to iterate over. -* `iterator(item, callback)` - A truth test to apply to each item in the array - in parallel. The iterator is passed a callback(truthValue) which must be - called with a boolean argument once it has completed. -* `callback(result)` - A callback which is called as soon as any iterator returns - `true`, or after all the iterator functions have finished. Result will be - either `true` or `false` depending on the values of the async tests. - -__Example__ - -```js -async.some(['file1','file2','file3'], fs.exists, function(result){ - // if result is true then at least one of the files exists -}); -``` - ---------------------------------------- - - -### every(arr, iterator, callback) - -__Alias:__ `all` - -Returns `true` if every element in `arr` satisfies an async test. -_The callback for each `iterator` call only accepts a single argument of `true` or -`false`; it does not accept an error argument first!_ This is in-line with the -way node libraries work with truth tests like `fs.exists`. - -__Arguments__ - -* `arr` - An array to iterate over. -* `iterator(item, callback)` - A truth test to apply to each item in the array - in parallel. The iterator is passed a callback(truthValue) which must be - called with a boolean argument once it has completed. -* `callback(result)` - A callback which is called after all the `iterator` - functions have finished. Result will be either `true` or `false` depending on - the values of the async tests. - -__Example__ - -```js -async.every(['file1','file2','file3'], fs.exists, function(result){ - // if result is true then every file exists -}); -``` - ---------------------------------------- - - -### concat(arr, iterator, callback) - -Applies `iterator` to each item in `arr`, concatenating the results. Returns the -concatenated list. The `iterator`s are called in parallel, and the results are -concatenated as they return. There is no guarantee that the results array will -be returned in the original order of `arr` passed to the `iterator` function. - -__Arguments__ - -* `arr` - An array to iterate over. -* `iterator(item, callback)` - A function to apply to each item in `arr`. - The iterator is passed a `callback(err, results)` which must be called once it - has completed with an error (which can be `null`) and an array of results. -* `callback(err, results)` - A callback which is called after all the `iterator` - functions have finished, or an error occurs. Results is an array containing - the concatenated results of the `iterator` function. - -__Example__ - -```js -async.concat(['dir1','dir2','dir3'], fs.readdir, function(err, files){ - // files is now a list of filenames that exist in the 3 directories -}); -``` - ---------------------------------------- - - -### concatSeries(arr, iterator, callback) - -Same as [`concat`](#concat), but executes in series instead of parallel. - - -## Control Flow - - -### series(tasks, [callback]) - -Run the functions in the `tasks` array in series, each one running once the previous -function has completed. If any functions in the series pass an error to its -callback, no more functions are run, and `callback` is immediately called with the value of the error. -Otherwise, `callback` receives an array of results when `tasks` have completed. - -It is also possible to use an object instead of an array. Each property will be -run as a function, and the results will be passed to the final `callback` as an object -instead of an array. This can be a more readable way of handling results from -[`series`](#series). - -**Note** that while many implementations preserve the order of object properties, the -[ECMAScript Language Specifcation](http://www.ecma-international.org/ecma-262/5.1/#sec-8.6) -explicitly states that - -> The mechanics and order of enumerating the properties is not specified. - -So if you rely on the order in which your series of functions are executed, and want -this to work on all platforms, consider using an array. - -__Arguments__ - -* `tasks` - An array or object containing functions to run, each function is passed - a `callback(err, result)` it must call on completion with an error `err` (which can - be `null`) and an optional `result` value. -* `callback(err, results)` - An optional callback to run once all the functions - have completed. This function gets a results array (or object) containing all - the result arguments passed to the `task` callbacks. - -__Example__ - -```js -async.series([ - function(callback){ - // do some stuff ... - callback(null, 'one'); - }, - function(callback){ - // do some more stuff ... - callback(null, 'two'); - } -], -// optional callback -function(err, results){ - // results is now equal to ['one', 'two'] -}); - - -// an example using an object instead of an array -async.series({ - one: function(callback){ - setTimeout(function(){ - callback(null, 1); - }, 200); - }, - two: function(callback){ - setTimeout(function(){ - callback(null, 2); - }, 100); - } -}, -function(err, results) { - // results is now equal to: {one: 1, two: 2} -}); -``` - ---------------------------------------- - - -### parallel(tasks, [callback]) - -Run the `tasks` array of functions in parallel, without waiting until the previous -function has completed. If any of the functions pass an error to its -callback, the main `callback` is immediately called with the value of the error. -Once the `tasks` have completed, the results are passed to the final `callback` as an -array. - -It is also possible to use an object instead of an array. Each property will be -run as a function and the results will be passed to the final `callback` as an object -instead of an array. This can be a more readable way of handling results from -[`parallel`](#parallel). - - -__Arguments__ - -* `tasks` - An array or object containing functions to run. Each function is passed - a `callback(err, result)` which it must call on completion with an error `err` - (which can be `null`) and an optional `result` value. -* `callback(err, results)` - An optional callback to run once all the functions - have completed. This function gets a results array (or object) containing all - the result arguments passed to the task callbacks. - -__Example__ - -```js -async.parallel([ - function(callback){ - setTimeout(function(){ - callback(null, 'one'); - }, 200); - }, - function(callback){ - setTimeout(function(){ - callback(null, 'two'); - }, 100); - } -], -// optional callback -function(err, results){ - // the results array will equal ['one','two'] even though - // the second function had a shorter timeout. -}); - - -// an example using an object instead of an array -async.parallel({ - one: function(callback){ - setTimeout(function(){ - callback(null, 1); - }, 200); - }, - two: function(callback){ - setTimeout(function(){ - callback(null, 2); - }, 100); - } -}, -function(err, results) { - // results is now equals to: {one: 1, two: 2} -}); -``` - ---------------------------------------- - - -### parallelLimit(tasks, limit, [callback]) - -The same as [`parallel`](#parallel), only `tasks` are executed in parallel -with a maximum of `limit` tasks executing at any time. - -Note that the `tasks` are not executed in batches, so there is no guarantee that -the first `limit` tasks will complete before any others are started. - -__Arguments__ - -* `tasks` - An array or object containing functions to run, each function is passed - a `callback(err, result)` it must call on completion with an error `err` (which can - be `null`) and an optional `result` value. -* `limit` - The maximum number of `tasks` to run at any time. -* `callback(err, results)` - An optional callback to run once all the functions - have completed. This function gets a results array (or object) containing all - the result arguments passed to the `task` callbacks. - ---------------------------------------- - - -### whilst(test, fn, callback) - -Repeatedly call `fn`, while `test` returns `true`. Calls `callback` when stopped, -or an error occurs. - -__Arguments__ - -* `test()` - synchronous truth test to perform before each execution of `fn`. -* `fn(callback)` - A function which is called each time `test` passes. The function is - passed a `callback(err)`, which must be called once it has completed with an - optional `err` argument. -* `callback(err)` - A callback which is called after the test fails and repeated - execution of `fn` has stopped. - -__Example__ - -```js -var count = 0; - -async.whilst( - function () { return count < 5; }, - function (callback) { - count++; - setTimeout(callback, 1000); - }, - function (err) { - // 5 seconds have passed - } -); -``` - ---------------------------------------- - - -### doWhilst(fn, test, callback) - -The post-check version of [`whilst`](#whilst). To reflect the difference in -the order of operations, the arguments `test` and `fn` are switched. - -`doWhilst` is to `whilst` as `do while` is to `while` in plain JavaScript. - ---------------------------------------- - - -### until(test, fn, callback) - -Repeatedly call `fn` until `test` returns `true`. Calls `callback` when stopped, -or an error occurs. - -The inverse of [`whilst`](#whilst). - ---------------------------------------- - - -### doUntil(fn, test, callback) - -Like [`doWhilst`](#doWhilst), except the `test` is inverted. Note the argument ordering differs from `until`. - ---------------------------------------- - - -### forever(fn, errback) - -Calls the asynchronous function `fn` with a callback parameter that allows it to -call itself again, in series, indefinitely. - -If an error is passed to the callback then `errback` is called with the -error, and execution stops, otherwise it will never be called. - -```js -async.forever( - function(next) { - // next is suitable for passing to things that need a callback(err [, whatever]); - // it will result in this function being called again. - }, - function(err) { - // if next is called with a value in its first parameter, it will appear - // in here as 'err', and execution will stop. - } -); -``` - ---------------------------------------- - - -### waterfall(tasks, [callback]) - -Runs the `tasks` array of functions in series, each passing their results to the next in -the array. However, if any of the `tasks` pass an error to their own callback, the -next function is not executed, and the main `callback` is immediately called with -the error. - -__Arguments__ - -* `tasks` - An array of functions to run, each function is passed a - `callback(err, result1, result2, ...)` it must call on completion. The first - argument is an error (which can be `null`) and any further arguments will be - passed as arguments in order to the next task. -* `callback(err, [results])` - An optional callback to run once all the functions - have completed. This will be passed the results of the last task's callback. - - - -__Example__ - -```js -async.waterfall([ - function(callback) { - callback(null, 'one', 'two'); - }, - function(arg1, arg2, callback) { - // arg1 now equals 'one' and arg2 now equals 'two' - callback(null, 'three'); - }, - function(arg1, callback) { - // arg1 now equals 'three' - callback(null, 'done'); - } -], function (err, result) { - // result now equals 'done' -}); -``` - ---------------------------------------- - -### compose(fn1, fn2...) - -Creates a function which is a composition of the passed asynchronous -functions. Each function consumes the return value of the function that -follows. Composing functions `f()`, `g()`, and `h()` would produce the result of -`f(g(h()))`, only this version uses callbacks to obtain the return values. - -Each function is executed with the `this` binding of the composed function. - -__Arguments__ - -* `functions...` - the asynchronous functions to compose - - -__Example__ - -```js -function add1(n, callback) { - setTimeout(function () { - callback(null, n + 1); - }, 10); -} - -function mul3(n, callback) { - setTimeout(function () { - callback(null, n * 3); - }, 10); -} - -var add1mul3 = async.compose(mul3, add1); - -add1mul3(4, function (err, result) { - // result now equals 15 -}); -``` - ---------------------------------------- - -### seq(fn1, fn2...) - -Version of the compose function that is more natural to read. -Each function consumes the return value of the previous function. -It is the equivalent of [`compose`](#compose) with the arguments reversed. - -Each function is executed with the `this` binding of the composed function. - -__Arguments__ - -* functions... - the asynchronous functions to compose - - -__Example__ - -```js -// Requires lodash (or underscore), express3 and dresende's orm2. -// Part of an app, that fetches cats of the logged user. -// This example uses `seq` function to avoid overnesting and error -// handling clutter. -app.get('/cats', function(request, response) { - var User = request.models.User; - async.seq( - _.bind(User.get, User), // 'User.get' has signature (id, callback(err, data)) - function(user, fn) { - user.getCats(fn); // 'getCats' has signature (callback(err, data)) - } - )(req.session.user_id, function (err, cats) { - if (err) { - console.error(err); - response.json({ status: 'error', message: err.message }); - } else { - response.json({ status: 'ok', message: 'Cats found', data: cats }); - } - }); -}); -``` - ---------------------------------------- - -### applyEach(fns, args..., callback) - -Applies the provided arguments to each function in the array, calling -`callback` after all functions have completed. If you only provide the first -argument, then it will return a function which lets you pass in the -arguments as if it were a single function call. - -__Arguments__ - -* `fns` - the asynchronous functions to all call with the same arguments -* `args...` - any number of separate arguments to pass to the function -* `callback` - the final argument should be the callback, called when all - functions have completed processing - - -__Example__ - -```js -async.applyEach([enableSearch, updateSchema], 'bucket', callback); - -// partial application example: -async.each( - buckets, - async.applyEach([enableSearch, updateSchema]), - callback -); -``` - ---------------------------------------- - - -### applyEachSeries(arr, iterator, callback) - -The same as [`applyEach`](#applyEach) only the functions are applied in series. - ---------------------------------------- - - -### queue(worker, concurrency) - -Creates a `queue` object with the specified `concurrency`. Tasks added to the -`queue` are processed in parallel (up to the `concurrency` limit). If all -`worker`s are in progress, the task is queued until one becomes available. -Once a `worker` completes a `task`, that `task`'s callback is called. - -__Arguments__ - -* `worker(task, callback)` - An asynchronous function for processing a queued - task, which must call its `callback(err)` argument when finished, with an - optional `error` as an argument. -* `concurrency` - An `integer` for determining how many `worker` functions should be - run in parallel. - -__Queue objects__ - -The `queue` object returned by this function has the following properties and -methods: - -* `length()` - a function returning the number of items waiting to be processed. -* `started` - a function returning whether or not any items have been pushed and processed by the queue -* `running()` - a function returning the number of items currently being processed. -* `idle()` - a function returning false if there are items waiting or being processed, or true if not. -* `concurrency` - an integer for determining how many `worker` functions should be - run in parallel. This property can be changed after a `queue` is created to - alter the concurrency on-the-fly. -* `push(task, [callback])` - add a new task to the `queue`. Calls `callback` once - the `worker` has finished processing the task. Instead of a single task, a `tasks` array - can be submitted. The respective callback is used for every task in the list. -* `unshift(task, [callback])` - add a new task to the front of the `queue`. -* `saturated` - a callback that is called when the `queue` length hits the `concurrency` limit, - and further tasks will be queued. -* `empty` - a callback that is called when the last item from the `queue` is given to a `worker`. -* `drain` - a callback that is called when the last item from the `queue` has returned from the `worker`. -* `paused` - a boolean for determining whether the queue is in a paused state -* `pause()` - a function that pauses the processing of tasks until `resume()` is called. -* `resume()` - a function that resumes the processing of queued tasks when the queue is paused. -* `kill()` - a function that removes the `drain` callback and empties remaining tasks from the queue forcing it to go idle. - -__Example__ - -```js -// create a queue object with concurrency 2 - -var q = async.queue(function (task, callback) { - console.log('hello ' + task.name); - callback(); -}, 2); - - -// assign a callback -q.drain = function() { - console.log('all items have been processed'); -} - -// add some items to the queue - -q.push({name: 'foo'}, function (err) { - console.log('finished processing foo'); -}); -q.push({name: 'bar'}, function (err) { - console.log('finished processing bar'); -}); - -// add some items to the queue (batch-wise) - -q.push([{name: 'baz'},{name: 'bay'},{name: 'bax'}], function (err) { - console.log('finished processing item'); -}); - -// add some items to the front of the queue - -q.unshift({name: 'bar'}, function (err) { - console.log('finished processing bar'); -}); -``` - - ---------------------------------------- - - -### priorityQueue(worker, concurrency) - -The same as [`queue`](#queue) only tasks are assigned a priority and completed in ascending priority order. There are two differences between `queue` and `priorityQueue` objects: - -* `push(task, priority, [callback])` - `priority` should be a number. If an array of - `tasks` is given, all tasks will be assigned the same priority. -* The `unshift` method was removed. - ---------------------------------------- - - -### cargo(worker, [payload]) - -Creates a `cargo` object with the specified payload. Tasks added to the -cargo will be processed altogether (up to the `payload` limit). If the -`worker` is in progress, the task is queued until it becomes available. Once -the `worker` has completed some tasks, each callback of those tasks is called. -Check out [this animation](https://camo.githubusercontent.com/6bbd36f4cf5b35a0f11a96dcd2e97711ffc2fb37/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f313637363837312f36383130382f62626330636662302d356632392d313165322d393734662d3333393763363464633835382e676966) for how `cargo` and `queue` work. - -While [queue](#queue) passes only one task to one of a group of workers -at a time, cargo passes an array of tasks to a single worker, repeating -when the worker is finished. - -__Arguments__ - -* `worker(tasks, callback)` - An asynchronous function for processing an array of - queued tasks, which must call its `callback(err)` argument when finished, with - an optional `err` argument. -* `payload` - An optional `integer` for determining how many tasks should be - processed per round; if omitted, the default is unlimited. - -__Cargo objects__ - -The `cargo` object returned by this function has the following properties and -methods: - -* `length()` - A function returning the number of items waiting to be processed. -* `payload` - An `integer` for determining how many tasks should be - process per round. This property can be changed after a `cargo` is created to - alter the payload on-the-fly. -* `push(task, [callback])` - Adds `task` to the `queue`. The callback is called - once the `worker` has finished processing the task. Instead of a single task, an array of `tasks` - can be submitted. The respective callback is used for every task in the list. -* `saturated` - A callback that is called when the `queue.length()` hits the concurrency and further tasks will be queued. -* `empty` - A callback that is called when the last item from the `queue` is given to a `worker`. -* `drain` - A callback that is called when the last item from the `queue` has returned from the `worker`. - -__Example__ - -```js -// create a cargo object with payload 2 - -var cargo = async.cargo(function (tasks, callback) { - for(var i=0; i -### auto(tasks, [callback]) - -Determines the best order for running the functions in `tasks`, based on their -requirements. Each function can optionally depend on other functions being completed -first, and each function is run as soon as its requirements are satisfied. - -If any of the functions pass an error to their callback, it will not -complete (so any other functions depending on it will not run), and the main -`callback` is immediately called with the error. Functions also receive an -object containing the results of functions which have completed so far. - -Note, all functions are called with a `results` object as a second argument, -so it is unsafe to pass functions in the `tasks` object which cannot handle the -extra argument. - -For example, this snippet of code: - -```js -async.auto({ - readData: async.apply(fs.readFile, 'data.txt', 'utf-8') -}, callback); -``` - -will have the effect of calling `readFile` with the results object as the last -argument, which will fail: - -```js -fs.readFile('data.txt', 'utf-8', cb, {}); -``` - -Instead, wrap the call to `readFile` in a function which does not forward the -`results` object: - -```js -async.auto({ - readData: function(cb, results){ - fs.readFile('data.txt', 'utf-8', cb); - } -}, callback); -``` - -__Arguments__ - -* `tasks` - An object. Each of its properties is either a function or an array of - requirements, with the function itself the last item in the array. The object's key - of a property serves as the name of the task defined by that property, - i.e. can be used when specifying requirements for other tasks. - The function receives two arguments: (1) a `callback(err, result)` which must be - called when finished, passing an `error` (which can be `null`) and the result of - the function's execution, and (2) a `results` object, containing the results of - the previously executed functions. -* `callback(err, results)` - An optional callback which is called when all the - tasks have been completed. It receives the `err` argument if any `tasks` - pass an error to their callback. Results are always returned; however, if - an error occurs, no further `tasks` will be performed, and the results - object will only contain partial results. - - -__Example__ - -```js -async.auto({ - get_data: function(callback){ - console.log('in get_data'); - // async code to get some data - callback(null, 'data', 'converted to array'); - }, - make_folder: function(callback){ - console.log('in make_folder'); - // async code to create a directory to store a file in - // this is run at the same time as getting the data - callback(null, 'folder'); - }, - write_file: ['get_data', 'make_folder', function(callback, results){ - console.log('in write_file', JSON.stringify(results)); - // once there is some data and the directory exists, - // write the data to a file in the directory - callback(null, 'filename'); - }], - email_link: ['write_file', function(callback, results){ - console.log('in email_link', JSON.stringify(results)); - // once the file is written let's email a link to it... - // results.write_file contains the filename returned by write_file. - callback(null, {'file':results.write_file, 'email':'user@example.com'}); - }] -}, function(err, results) { - console.log('err = ', err); - console.log('results = ', results); -}); -``` - -This is a fairly trivial example, but to do this using the basic parallel and -series functions would look like this: - -```js -async.parallel([ - function(callback){ - console.log('in get_data'); - // async code to get some data - callback(null, 'data', 'converted to array'); - }, - function(callback){ - console.log('in make_folder'); - // async code to create a directory to store a file in - // this is run at the same time as getting the data - callback(null, 'folder'); - } -], -function(err, results){ - async.series([ - function(callback){ - console.log('in write_file', JSON.stringify(results)); - // once there is some data and the directory exists, - // write the data to a file in the directory - results.push('filename'); - callback(null); - }, - function(callback){ - console.log('in email_link', JSON.stringify(results)); - // once the file is written let's email a link to it... - callback(null, {'file':results.pop(), 'email':'user@example.com'}); - } - ]); -}); -``` - -For a complicated series of `async` tasks, using the [`auto`](#auto) function makes adding -new tasks much easier (and the code more readable). - - ---------------------------------------- - - -### retry([times = 5], task, [callback]) - -Attempts to get a successful response from `task` no more than `times` times before -returning an error. If the task is successful, the `callback` will be passed the result -of the successful task. If all attempts fail, the callback will be passed the error and -result (if any) of the final attempt. - -__Arguments__ - -* `times` - An integer indicating how many times to attempt the `task` before giving up. Defaults to 5. -* `task(callback, results)` - A function which receives two arguments: (1) a `callback(err, result)` - which must be called when finished, passing `err` (which can be `null`) and the `result` of - the function's execution, and (2) a `results` object, containing the results of - the previously executed functions (if nested inside another control flow). -* `callback(err, results)` - An optional callback which is called when the - task has succeeded, or after the final failed attempt. It receives the `err` and `result` arguments of the last attempt at completing the `task`. - -The [`retry`](#retry) function can be used as a stand-alone control flow by passing a -callback, as shown below: - -```js -async.retry(3, apiMethod, function(err, result) { - // do something with the result -}); -``` - -It can also be embeded within other control flow functions to retry individual methods -that are not as reliable, like this: - -```js -async.auto({ - users: api.getUsers.bind(api), - payments: async.retry(3, api.getPayments.bind(api)) -}, function(err, results) { - // do something with the results -}); -``` - - ---------------------------------------- - - -### iterator(tasks) - -Creates an iterator function which calls the next function in the `tasks` array, -returning a continuation to call the next one after that. It's also possible to -“peek” at the next iterator with `iterator.next()`. - -This function is used internally by the `async` module, but can be useful when -you want to manually control the flow of functions in series. - -__Arguments__ - -* `tasks` - An array of functions to run. - -__Example__ - -```js -var iterator = async.iterator([ - function(){ sys.p('one'); }, - function(){ sys.p('two'); }, - function(){ sys.p('three'); } -]); - -node> var iterator2 = iterator(); -'one' -node> var iterator3 = iterator2(); -'two' -node> iterator3(); -'three' -node> var nextfn = iterator2.next(); -node> nextfn(); -'three' -``` - ---------------------------------------- - - -### apply(function, arguments..) - -Creates a continuation function with some arguments already applied. - -Useful as a shorthand when combined with other control flow functions. Any arguments -passed to the returned function are added to the arguments originally passed -to apply. - -__Arguments__ - -* `function` - The function you want to eventually apply all arguments to. -* `arguments...` - Any number of arguments to automatically apply when the - continuation is called. - -__Example__ - -```js -// using apply - -async.parallel([ - async.apply(fs.writeFile, 'testfile1', 'test1'), - async.apply(fs.writeFile, 'testfile2', 'test2'), -]); - - -// the same process without using apply - -async.parallel([ - function(callback){ - fs.writeFile('testfile1', 'test1', callback); - }, - function(callback){ - fs.writeFile('testfile2', 'test2', callback); - } -]); -``` - -It's possible to pass any number of additional arguments when calling the -continuation: - -```js -node> var fn = async.apply(sys.puts, 'one'); -node> fn('two', 'three'); -one -two -three -``` - ---------------------------------------- - - -### nextTick(callback), setImmediate(callback) - -Calls `callback` on a later loop around the event loop. In Node.js this just -calls `process.nextTick`; in the browser it falls back to `setImmediate(callback)` -if available, otherwise `setTimeout(callback, 0)`, which means other higher priority -events may precede the execution of `callback`. - -This is used internally for browser-compatibility purposes. - -__Arguments__ - -* `callback` - The function to call on a later loop around the event loop. - -__Example__ - -```js -var call_order = []; -async.nextTick(function(){ - call_order.push('two'); - // call_order now equals ['one','two'] -}); -call_order.push('one') -``` - - -### times(n, callback) - -Calls the `callback` function `n` times, and accumulates results in the same manner -you would use with [`map`](#map). - -__Arguments__ - -* `n` - The number of times to run the function. -* `callback` - The function to call `n` times. - -__Example__ - -```js -// Pretend this is some complicated async factory -var createUser = function(id, callback) { - callback(null, { - id: 'user' + id - }) -} -// generate 5 users -async.times(5, function(n, next){ - createUser(n, function(err, user) { - next(err, user) - }) -}, function(err, users) { - // we should now have 5 users -}); -``` - - -### timesSeries(n, callback) - -The same as [`times`](#times), only the iterator is applied to each item in `arr` in -series. The next `iterator` is only called once the current one has completed. -The results array will be in the same order as the original. - - -## Utils - - -### memoize(fn, [hasher]) - -Caches the results of an `async` function. When creating a hash to store function -results against, the callback is omitted from the hash and an optional hash -function can be used. - -The cache of results is exposed as the `memo` property of the function returned -by `memoize`. - -__Arguments__ - -* `fn` - The function to proxy and cache results from. -* `hasher` - Tn optional function for generating a custom hash for storing - results. It has all the arguments applied to it apart from the callback, and - must be synchronous. - -__Example__ - -```js -var slow_fn = function (name, callback) { - // do something - callback(null, result); -}; -var fn = async.memoize(slow_fn); - -// fn can now be used as if it were slow_fn -fn('some name', function () { - // callback -}); -``` - - -### unmemoize(fn) - -Undoes a [`memoize`](#memoize)d function, reverting it to the original, unmemoized -form. Handy for testing. - -__Arguments__ - -* `fn` - the memoized function - - -### log(function, arguments) - -Logs the result of an `async` function to the `console`. Only works in Node.js or -in browsers that support `console.log` and `console.error` (such as FF and Chrome). -If multiple arguments are returned from the async function, `console.log` is -called on each argument in order. - -__Arguments__ - -* `function` - The function you want to eventually apply all arguments to. -* `arguments...` - Any number of arguments to apply to the function. - -__Example__ - -```js -var hello = function(name, callback){ - setTimeout(function(){ - callback(null, 'hello ' + name); - }, 1000); -}; -``` -```js -node> async.log(hello, 'world'); -'hello world' -``` - ---------------------------------------- - - -### dir(function, arguments) - -Logs the result of an `async` function to the `console` using `console.dir` to -display the properties of the resulting object. Only works in Node.js or -in browsers that support `console.dir` and `console.error` (such as FF and Chrome). -If multiple arguments are returned from the async function, `console.dir` is -called on each argument in order. - -__Arguments__ - -* `function` - The function you want to eventually apply all arguments to. -* `arguments...` - Any number of arguments to apply to the function. - -__Example__ - -```js -var hello = function(name, callback){ - setTimeout(function(){ - callback(null, {hello: name}); - }, 1000); -}; -``` -```js -node> async.dir(hello, 'world'); -{hello: 'world'} -``` - ---------------------------------------- - - -### noConflict() - -Changes the value of `async` back to its original value, returning a reference to the -`async` object. diff --git a/Easebuzz_NodeJS_kit/node_modules/async/bower.json b/Easebuzz_NodeJS_kit/node_modules/async/bower.json deleted file mode 100644 index 1817688..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/async/bower.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "name": "async", - "description": "Higher-order functions and common patterns for asynchronous code", - "version": "0.9.2", - "main": "lib/async.js", - "keywords": [ - "async", - "callback", - "utility", - "module" - ], - "license": "MIT", - "repository": { - "type": "git", - "url": "https://github.com/caolan/async.git" - }, - "devDependencies": { - "nodeunit": ">0.0.0", - "uglify-js": "1.2.x", - "nodelint": ">0.0.0", - "lodash": ">=2.4.1" - }, - "moduleType": [ - "amd", - "globals", - "node" - ], - "ignore": [ - "**/.*", - "node_modules", - "bower_components", - "test", - "tests" - ], - "authors": [ - "Caolan McMahon" - ] -} \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/async/component.json b/Easebuzz_NodeJS_kit/node_modules/async/component.json deleted file mode 100644 index 5003a7c..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/async/component.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "name": "async", - "description": "Higher-order functions and common patterns for asynchronous code", - "version": "0.9.2", - "keywords": [ - "async", - "callback", - "utility", - "module" - ], - "license": "MIT", - "repository": "caolan/async", - "scripts": [ - "lib/async.js" - ] -} \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/async/lib/async.js b/Easebuzz_NodeJS_kit/node_modules/async/lib/async.js deleted file mode 100644 index 394c41c..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/async/lib/async.js +++ /dev/null @@ -1,1123 +0,0 @@ -/*! - * async - * https://github.com/caolan/async - * - * Copyright 2010-2014 Caolan McMahon - * Released under the MIT license - */ -/*jshint onevar: false, indent:4 */ -/*global setImmediate: false, setTimeout: false, console: false */ -(function () { - - var async = {}; - - // global on the server, window in the browser - var root, previous_async; - - root = this; - if (root != null) { - previous_async = root.async; - } - - async.noConflict = function () { - root.async = previous_async; - return async; - }; - - function only_once(fn) { - var called = false; - return function() { - if (called) throw new Error("Callback was already called."); - called = true; - fn.apply(root, arguments); - } - } - - //// cross-browser compatiblity functions //// - - var _toString = Object.prototype.toString; - - var _isArray = Array.isArray || function (obj) { - return _toString.call(obj) === '[object Array]'; - }; - - var _each = function (arr, iterator) { - for (var i = 0; i < arr.length; i += 1) { - iterator(arr[i], i, arr); - } - }; - - var _map = function (arr, iterator) { - if (arr.map) { - return arr.map(iterator); - } - var results = []; - _each(arr, function (x, i, a) { - results.push(iterator(x, i, a)); - }); - return results; - }; - - var _reduce = function (arr, iterator, memo) { - if (arr.reduce) { - return arr.reduce(iterator, memo); - } - _each(arr, function (x, i, a) { - memo = iterator(memo, x, i, a); - }); - return memo; - }; - - var _keys = function (obj) { - if (Object.keys) { - return Object.keys(obj); - } - var keys = []; - for (var k in obj) { - if (obj.hasOwnProperty(k)) { - keys.push(k); - } - } - return keys; - }; - - //// exported async module functions //// - - //// nextTick implementation with browser-compatible fallback //// - if (typeof process === 'undefined' || !(process.nextTick)) { - if (typeof setImmediate === 'function') { - async.nextTick = function (fn) { - // not a direct alias for IE10 compatibility - setImmediate(fn); - }; - async.setImmediate = async.nextTick; - } - else { - async.nextTick = function (fn) { - setTimeout(fn, 0); - }; - async.setImmediate = async.nextTick; - } - } - else { - async.nextTick = process.nextTick; - if (typeof setImmediate !== 'undefined') { - async.setImmediate = function (fn) { - // not a direct alias for IE10 compatibility - setImmediate(fn); - }; - } - else { - async.setImmediate = async.nextTick; - } - } - - async.each = function (arr, iterator, callback) { - callback = callback || function () {}; - if (!arr.length) { - return callback(); - } - var completed = 0; - _each(arr, function (x) { - iterator(x, only_once(done) ); - }); - function done(err) { - if (err) { - callback(err); - callback = function () {}; - } - else { - completed += 1; - if (completed >= arr.length) { - callback(); - } - } - } - }; - async.forEach = async.each; - - async.eachSeries = function (arr, iterator, callback) { - callback = callback || function () {}; - if (!arr.length) { - return callback(); - } - var completed = 0; - var iterate = function () { - iterator(arr[completed], function (err) { - if (err) { - callback(err); - callback = function () {}; - } - else { - completed += 1; - if (completed >= arr.length) { - callback(); - } - else { - iterate(); - } - } - }); - }; - iterate(); - }; - async.forEachSeries = async.eachSeries; - - async.eachLimit = function (arr, limit, iterator, callback) { - var fn = _eachLimit(limit); - fn.apply(null, [arr, iterator, callback]); - }; - async.forEachLimit = async.eachLimit; - - var _eachLimit = function (limit) { - - return function (arr, iterator, callback) { - callback = callback || function () {}; - if (!arr.length || limit <= 0) { - return callback(); - } - var completed = 0; - var started = 0; - var running = 0; - - (function replenish () { - if (completed >= arr.length) { - return callback(); - } - - while (running < limit && started < arr.length) { - started += 1; - running += 1; - iterator(arr[started - 1], function (err) { - if (err) { - callback(err); - callback = function () {}; - } - else { - completed += 1; - running -= 1; - if (completed >= arr.length) { - callback(); - } - else { - replenish(); - } - } - }); - } - })(); - }; - }; - - - var doParallel = function (fn) { - return function () { - var args = Array.prototype.slice.call(arguments); - return fn.apply(null, [async.each].concat(args)); - }; - }; - var doParallelLimit = function(limit, fn) { - return function () { - var args = Array.prototype.slice.call(arguments); - return fn.apply(null, [_eachLimit(limit)].concat(args)); - }; - }; - var doSeries = function (fn) { - return function () { - var args = Array.prototype.slice.call(arguments); - return fn.apply(null, [async.eachSeries].concat(args)); - }; - }; - - - var _asyncMap = function (eachfn, arr, iterator, callback) { - arr = _map(arr, function (x, i) { - return {index: i, value: x}; - }); - if (!callback) { - eachfn(arr, function (x, callback) { - iterator(x.value, function (err) { - callback(err); - }); - }); - } else { - var results = []; - eachfn(arr, function (x, callback) { - iterator(x.value, function (err, v) { - results[x.index] = v; - callback(err); - }); - }, function (err) { - callback(err, results); - }); - } - }; - async.map = doParallel(_asyncMap); - async.mapSeries = doSeries(_asyncMap); - async.mapLimit = function (arr, limit, iterator, callback) { - return _mapLimit(limit)(arr, iterator, callback); - }; - - var _mapLimit = function(limit) { - return doParallelLimit(limit, _asyncMap); - }; - - // reduce only has a series version, as doing reduce in parallel won't - // work in many situations. - async.reduce = function (arr, memo, iterator, callback) { - async.eachSeries(arr, function (x, callback) { - iterator(memo, x, function (err, v) { - memo = v; - callback(err); - }); - }, function (err) { - callback(err, memo); - }); - }; - // inject alias - async.inject = async.reduce; - // foldl alias - async.foldl = async.reduce; - - async.reduceRight = function (arr, memo, iterator, callback) { - var reversed = _map(arr, function (x) { - return x; - }).reverse(); - async.reduce(reversed, memo, iterator, callback); - }; - // foldr alias - async.foldr = async.reduceRight; - - var _filter = function (eachfn, arr, iterator, callback) { - var results = []; - arr = _map(arr, function (x, i) { - return {index: i, value: x}; - }); - eachfn(arr, function (x, callback) { - iterator(x.value, function (v) { - if (v) { - results.push(x); - } - callback(); - }); - }, function (err) { - callback(_map(results.sort(function (a, b) { - return a.index - b.index; - }), function (x) { - return x.value; - })); - }); - }; - async.filter = doParallel(_filter); - async.filterSeries = doSeries(_filter); - // select alias - async.select = async.filter; - async.selectSeries = async.filterSeries; - - var _reject = function (eachfn, arr, iterator, callback) { - var results = []; - arr = _map(arr, function (x, i) { - return {index: i, value: x}; - }); - eachfn(arr, function (x, callback) { - iterator(x.value, function (v) { - if (!v) { - results.push(x); - } - callback(); - }); - }, function (err) { - callback(_map(results.sort(function (a, b) { - return a.index - b.index; - }), function (x) { - return x.value; - })); - }); - }; - async.reject = doParallel(_reject); - async.rejectSeries = doSeries(_reject); - - var _detect = function (eachfn, arr, iterator, main_callback) { - eachfn(arr, function (x, callback) { - iterator(x, function (result) { - if (result) { - main_callback(x); - main_callback = function () {}; - } - else { - callback(); - } - }); - }, function (err) { - main_callback(); - }); - }; - async.detect = doParallel(_detect); - async.detectSeries = doSeries(_detect); - - async.some = function (arr, iterator, main_callback) { - async.each(arr, function (x, callback) { - iterator(x, function (v) { - if (v) { - main_callback(true); - main_callback = function () {}; - } - callback(); - }); - }, function (err) { - main_callback(false); - }); - }; - // any alias - async.any = async.some; - - async.every = function (arr, iterator, main_callback) { - async.each(arr, function (x, callback) { - iterator(x, function (v) { - if (!v) { - main_callback(false); - main_callback = function () {}; - } - callback(); - }); - }, function (err) { - main_callback(true); - }); - }; - // all alias - async.all = async.every; - - async.sortBy = function (arr, iterator, callback) { - async.map(arr, function (x, callback) { - iterator(x, function (err, criteria) { - if (err) { - callback(err); - } - else { - callback(null, {value: x, criteria: criteria}); - } - }); - }, function (err, results) { - if (err) { - return callback(err); - } - else { - var fn = function (left, right) { - var a = left.criteria, b = right.criteria; - return a < b ? -1 : a > b ? 1 : 0; - }; - callback(null, _map(results.sort(fn), function (x) { - return x.value; - })); - } - }); - }; - - async.auto = function (tasks, callback) { - callback = callback || function () {}; - var keys = _keys(tasks); - var remainingTasks = keys.length - if (!remainingTasks) { - return callback(); - } - - var results = {}; - - var listeners = []; - var addListener = function (fn) { - listeners.unshift(fn); - }; - var removeListener = function (fn) { - for (var i = 0; i < listeners.length; i += 1) { - if (listeners[i] === fn) { - listeners.splice(i, 1); - return; - } - } - }; - var taskComplete = function () { - remainingTasks-- - _each(listeners.slice(0), function (fn) { - fn(); - }); - }; - - addListener(function () { - if (!remainingTasks) { - var theCallback = callback; - // prevent final callback from calling itself if it errors - callback = function () {}; - - theCallback(null, results); - } - }); - - _each(keys, function (k) { - var task = _isArray(tasks[k]) ? tasks[k]: [tasks[k]]; - var taskCallback = function (err) { - var args = Array.prototype.slice.call(arguments, 1); - if (args.length <= 1) { - args = args[0]; - } - if (err) { - var safeResults = {}; - _each(_keys(results), function(rkey) { - safeResults[rkey] = results[rkey]; - }); - safeResults[k] = args; - callback(err, safeResults); - // stop subsequent errors hitting callback multiple times - callback = function () {}; - } - else { - results[k] = args; - async.setImmediate(taskComplete); - } - }; - var requires = task.slice(0, Math.abs(task.length - 1)) || []; - var ready = function () { - return _reduce(requires, function (a, x) { - return (a && results.hasOwnProperty(x)); - }, true) && !results.hasOwnProperty(k); - }; - if (ready()) { - task[task.length - 1](taskCallback, results); - } - else { - var listener = function () { - if (ready()) { - removeListener(listener); - task[task.length - 1](taskCallback, results); - } - }; - addListener(listener); - } - }); - }; - - async.retry = function(times, task, callback) { - var DEFAULT_TIMES = 5; - var attempts = []; - // Use defaults if times not passed - if (typeof times === 'function') { - callback = task; - task = times; - times = DEFAULT_TIMES; - } - // Make sure times is a number - times = parseInt(times, 10) || DEFAULT_TIMES; - var wrappedTask = function(wrappedCallback, wrappedResults) { - var retryAttempt = function(task, finalAttempt) { - return function(seriesCallback) { - task(function(err, result){ - seriesCallback(!err || finalAttempt, {err: err, result: result}); - }, wrappedResults); - }; - }; - while (times) { - attempts.push(retryAttempt(task, !(times-=1))); - } - async.series(attempts, function(done, data){ - data = data[data.length - 1]; - (wrappedCallback || callback)(data.err, data.result); - }); - } - // If a callback is passed, run this as a controll flow - return callback ? wrappedTask() : wrappedTask - }; - - async.waterfall = function (tasks, callback) { - callback = callback || function () {}; - if (!_isArray(tasks)) { - var err = new Error('First argument to waterfall must be an array of functions'); - return callback(err); - } - if (!tasks.length) { - return callback(); - } - var wrapIterator = function (iterator) { - return function (err) { - if (err) { - callback.apply(null, arguments); - callback = function () {}; - } - else { - var args = Array.prototype.slice.call(arguments, 1); - var next = iterator.next(); - if (next) { - args.push(wrapIterator(next)); - } - else { - args.push(callback); - } - async.setImmediate(function () { - iterator.apply(null, args); - }); - } - }; - }; - wrapIterator(async.iterator(tasks))(); - }; - - var _parallel = function(eachfn, tasks, callback) { - callback = callback || function () {}; - if (_isArray(tasks)) { - eachfn.map(tasks, function (fn, callback) { - if (fn) { - fn(function (err) { - var args = Array.prototype.slice.call(arguments, 1); - if (args.length <= 1) { - args = args[0]; - } - callback.call(null, err, args); - }); - } - }, callback); - } - else { - var results = {}; - eachfn.each(_keys(tasks), function (k, callback) { - tasks[k](function (err) { - var args = Array.prototype.slice.call(arguments, 1); - if (args.length <= 1) { - args = args[0]; - } - results[k] = args; - callback(err); - }); - }, function (err) { - callback(err, results); - }); - } - }; - - async.parallel = function (tasks, callback) { - _parallel({ map: async.map, each: async.each }, tasks, callback); - }; - - async.parallelLimit = function(tasks, limit, callback) { - _parallel({ map: _mapLimit(limit), each: _eachLimit(limit) }, tasks, callback); - }; - - async.series = function (tasks, callback) { - callback = callback || function () {}; - if (_isArray(tasks)) { - async.mapSeries(tasks, function (fn, callback) { - if (fn) { - fn(function (err) { - var args = Array.prototype.slice.call(arguments, 1); - if (args.length <= 1) { - args = args[0]; - } - callback.call(null, err, args); - }); - } - }, callback); - } - else { - var results = {}; - async.eachSeries(_keys(tasks), function (k, callback) { - tasks[k](function (err) { - var args = Array.prototype.slice.call(arguments, 1); - if (args.length <= 1) { - args = args[0]; - } - results[k] = args; - callback(err); - }); - }, function (err) { - callback(err, results); - }); - } - }; - - async.iterator = function (tasks) { - var makeCallback = function (index) { - var fn = function () { - if (tasks.length) { - tasks[index].apply(null, arguments); - } - return fn.next(); - }; - fn.next = function () { - return (index < tasks.length - 1) ? makeCallback(index + 1): null; - }; - return fn; - }; - return makeCallback(0); - }; - - async.apply = function (fn) { - var args = Array.prototype.slice.call(arguments, 1); - return function () { - return fn.apply( - null, args.concat(Array.prototype.slice.call(arguments)) - ); - }; - }; - - var _concat = function (eachfn, arr, fn, callback) { - var r = []; - eachfn(arr, function (x, cb) { - fn(x, function (err, y) { - r = r.concat(y || []); - cb(err); - }); - }, function (err) { - callback(err, r); - }); - }; - async.concat = doParallel(_concat); - async.concatSeries = doSeries(_concat); - - async.whilst = function (test, iterator, callback) { - if (test()) { - iterator(function (err) { - if (err) { - return callback(err); - } - async.whilst(test, iterator, callback); - }); - } - else { - callback(); - } - }; - - async.doWhilst = function (iterator, test, callback) { - iterator(function (err) { - if (err) { - return callback(err); - } - var args = Array.prototype.slice.call(arguments, 1); - if (test.apply(null, args)) { - async.doWhilst(iterator, test, callback); - } - else { - callback(); - } - }); - }; - - async.until = function (test, iterator, callback) { - if (!test()) { - iterator(function (err) { - if (err) { - return callback(err); - } - async.until(test, iterator, callback); - }); - } - else { - callback(); - } - }; - - async.doUntil = function (iterator, test, callback) { - iterator(function (err) { - if (err) { - return callback(err); - } - var args = Array.prototype.slice.call(arguments, 1); - if (!test.apply(null, args)) { - async.doUntil(iterator, test, callback); - } - else { - callback(); - } - }); - }; - - async.queue = function (worker, concurrency) { - if (concurrency === undefined) { - concurrency = 1; - } - function _insert(q, data, pos, callback) { - if (!q.started){ - q.started = true; - } - if (!_isArray(data)) { - data = [data]; - } - if(data.length == 0) { - // call drain immediately if there are no tasks - return async.setImmediate(function() { - if (q.drain) { - q.drain(); - } - }); - } - _each(data, function(task) { - var item = { - data: task, - callback: typeof callback === 'function' ? callback : null - }; - - if (pos) { - q.tasks.unshift(item); - } else { - q.tasks.push(item); - } - - if (q.saturated && q.tasks.length === q.concurrency) { - q.saturated(); - } - async.setImmediate(q.process); - }); - } - - var workers = 0; - var q = { - tasks: [], - concurrency: concurrency, - saturated: null, - empty: null, - drain: null, - started: false, - paused: false, - push: function (data, callback) { - _insert(q, data, false, callback); - }, - kill: function () { - q.drain = null; - q.tasks = []; - }, - unshift: function (data, callback) { - _insert(q, data, true, callback); - }, - process: function () { - if (!q.paused && workers < q.concurrency && q.tasks.length) { - var task = q.tasks.shift(); - if (q.empty && q.tasks.length === 0) { - q.empty(); - } - workers += 1; - var next = function () { - workers -= 1; - if (task.callback) { - task.callback.apply(task, arguments); - } - if (q.drain && q.tasks.length + workers === 0) { - q.drain(); - } - q.process(); - }; - var cb = only_once(next); - worker(task.data, cb); - } - }, - length: function () { - return q.tasks.length; - }, - running: function () { - return workers; - }, - idle: function() { - return q.tasks.length + workers === 0; - }, - pause: function () { - if (q.paused === true) { return; } - q.paused = true; - }, - resume: function () { - if (q.paused === false) { return; } - q.paused = false; - // Need to call q.process once per concurrent - // worker to preserve full concurrency after pause - for (var w = 1; w <= q.concurrency; w++) { - async.setImmediate(q.process); - } - } - }; - return q; - }; - - async.priorityQueue = function (worker, concurrency) { - - function _compareTasks(a, b){ - return a.priority - b.priority; - }; - - function _binarySearch(sequence, item, compare) { - var beg = -1, - end = sequence.length - 1; - while (beg < end) { - var mid = beg + ((end - beg + 1) >>> 1); - if (compare(item, sequence[mid]) >= 0) { - beg = mid; - } else { - end = mid - 1; - } - } - return beg; - } - - function _insert(q, data, priority, callback) { - if (!q.started){ - q.started = true; - } - if (!_isArray(data)) { - data = [data]; - } - if(data.length == 0) { - // call drain immediately if there are no tasks - return async.setImmediate(function() { - if (q.drain) { - q.drain(); - } - }); - } - _each(data, function(task) { - var item = { - data: task, - priority: priority, - callback: typeof callback === 'function' ? callback : null - }; - - q.tasks.splice(_binarySearch(q.tasks, item, _compareTasks) + 1, 0, item); - - if (q.saturated && q.tasks.length === q.concurrency) { - q.saturated(); - } - async.setImmediate(q.process); - }); - } - - // Start with a normal queue - var q = async.queue(worker, concurrency); - - // Override push to accept second parameter representing priority - q.push = function (data, priority, callback) { - _insert(q, data, priority, callback); - }; - - // Remove unshift function - delete q.unshift; - - return q; - }; - - async.cargo = function (worker, payload) { - var working = false, - tasks = []; - - var cargo = { - tasks: tasks, - payload: payload, - saturated: null, - empty: null, - drain: null, - drained: true, - push: function (data, callback) { - if (!_isArray(data)) { - data = [data]; - } - _each(data, function(task) { - tasks.push({ - data: task, - callback: typeof callback === 'function' ? callback : null - }); - cargo.drained = false; - if (cargo.saturated && tasks.length === payload) { - cargo.saturated(); - } - }); - async.setImmediate(cargo.process); - }, - process: function process() { - if (working) return; - if (tasks.length === 0) { - if(cargo.drain && !cargo.drained) cargo.drain(); - cargo.drained = true; - return; - } - - var ts = typeof payload === 'number' - ? tasks.splice(0, payload) - : tasks.splice(0, tasks.length); - - var ds = _map(ts, function (task) { - return task.data; - }); - - if(cargo.empty) cargo.empty(); - working = true; - worker(ds, function () { - working = false; - - var args = arguments; - _each(ts, function (data) { - if (data.callback) { - data.callback.apply(null, args); - } - }); - - process(); - }); - }, - length: function () { - return tasks.length; - }, - running: function () { - return working; - } - }; - return cargo; - }; - - var _console_fn = function (name) { - return function (fn) { - var args = Array.prototype.slice.call(arguments, 1); - fn.apply(null, args.concat([function (err) { - var args = Array.prototype.slice.call(arguments, 1); - if (typeof console !== 'undefined') { - if (err) { - if (console.error) { - console.error(err); - } - } - else if (console[name]) { - _each(args, function (x) { - console[name](x); - }); - } - } - }])); - }; - }; - async.log = _console_fn('log'); - async.dir = _console_fn('dir'); - /*async.info = _console_fn('info'); - async.warn = _console_fn('warn'); - async.error = _console_fn('error');*/ - - async.memoize = function (fn, hasher) { - var memo = {}; - var queues = {}; - hasher = hasher || function (x) { - return x; - }; - var memoized = function () { - var args = Array.prototype.slice.call(arguments); - var callback = args.pop(); - var key = hasher.apply(null, args); - if (key in memo) { - async.nextTick(function () { - callback.apply(null, memo[key]); - }); - } - else if (key in queues) { - queues[key].push(callback); - } - else { - queues[key] = [callback]; - fn.apply(null, args.concat([function () { - memo[key] = arguments; - var q = queues[key]; - delete queues[key]; - for (var i = 0, l = q.length; i < l; i++) { - q[i].apply(null, arguments); - } - }])); - } - }; - memoized.memo = memo; - memoized.unmemoized = fn; - return memoized; - }; - - async.unmemoize = function (fn) { - return function () { - return (fn.unmemoized || fn).apply(null, arguments); - }; - }; - - async.times = function (count, iterator, callback) { - var counter = []; - for (var i = 0; i < count; i++) { - counter.push(i); - } - return async.map(counter, iterator, callback); - }; - - async.timesSeries = function (count, iterator, callback) { - var counter = []; - for (var i = 0; i < count; i++) { - counter.push(i); - } - return async.mapSeries(counter, iterator, callback); - }; - - async.seq = function (/* functions... */) { - var fns = arguments; - return function () { - var that = this; - var args = Array.prototype.slice.call(arguments); - var callback = args.pop(); - async.reduce(fns, args, function (newargs, fn, cb) { - fn.apply(that, newargs.concat([function () { - var err = arguments[0]; - var nextargs = Array.prototype.slice.call(arguments, 1); - cb(err, nextargs); - }])) - }, - function (err, results) { - callback.apply(that, [err].concat(results)); - }); - }; - }; - - async.compose = function (/* functions... */) { - return async.seq.apply(null, Array.prototype.reverse.call(arguments)); - }; - - var _applyEach = function (eachfn, fns /*args...*/) { - var go = function () { - var that = this; - var args = Array.prototype.slice.call(arguments); - var callback = args.pop(); - return eachfn(fns, function (fn, cb) { - fn.apply(that, args.concat([cb])); - }, - callback); - }; - if (arguments.length > 2) { - var args = Array.prototype.slice.call(arguments, 2); - return go.apply(this, args); - } - else { - return go; - } - }; - async.applyEach = doParallel(_applyEach); - async.applyEachSeries = doSeries(_applyEach); - - async.forever = function (fn, callback) { - function next(err) { - if (err) { - if (callback) { - return callback(err); - } - throw err; - } - fn(next); - } - next(); - }; - - // Node.js - if (typeof module !== 'undefined' && module.exports) { - module.exports = async; - } - // AMD / RequireJS - else if (typeof define !== 'undefined' && define.amd) { - define([], function () { - return async; - }); - } - // included directly via - -``` - -### Caveats - -Most of EJS will work as expected; however, there are a few things to note: - -1. Obviously, since you do not have access to the filesystem, `ejs.renderFile()` won't work. -2. For the same reason, `include`s do not work unless you use an `include callback`. Here is an example: - ```javascript - let str = "Hello <%= include('file', {person: 'John'}); %>", - fn = ejs.compile(str, {client: true}); - - fn(data, null, function(path, d){ // include callback - // path -> 'file' - // d -> {person: 'John'} - // Put your code here - // Return the contents of file as a string - }); // returns rendered string - ``` - -See the [examples folder](https://github.com/mde/ejs/tree/master/examples) for more details. - -## CLI - -EJS ships with a full-featured CLI. Available options are similar to those used in JavaScript code: - - - `-o / --output-file FILE` Write the rendered output to FILE rather than stdout. - - `-f / --data-file FILE` Must be JSON-formatted. Use parsed input from FILE as data for rendering. - - `-i / --data-input STRING` Must be JSON-formatted and URI-encoded. Use parsed input from STRING as data for rendering. - - `-m / --delimiter CHARACTER` Use CHARACTER with angle brackets for open/close (defaults to %). - - `-p / --open-delimiter CHARACTER` Use CHARACTER instead of left angle bracket to open. - - `-c / --close-delimiter CHARACTER` Use CHARACTER instead of right angle bracket to close. - - `-s / --strict` When set to `true`, generated function is in strict mode - - `-n / --no-with` Use 'locals' object for vars rather than using `with` (implies --strict). - - `-l / --locals-name` Name to use for the object storing local variables when not using `with`. - - `-w / --rm-whitespace` Remove all safe-to-remove whitespace, including leading and trailing whitespace. - - `-d / --debug` Outputs generated function body - - `-h / --help` Display this help message. - - `-V/v / --version` Display the EJS version. - -Here are some examples of usage: - -```shell -$ ejs -p [ -c ] ./template_file.ejs -o ./output.html -$ ejs ./test/fixtures/user.ejs name=Lerxst -$ ejs -n -l _ ./some_template.ejs -f ./data_file.json -``` - -### Data input - -There is a variety of ways to pass the CLI data for rendering. - -Stdin: - -```shell -$ ./test/fixtures/user_data.json | ./bin/cli.js ./test/fixtures/user.ejs -$ ./bin/cli.js ./test/fixtures/user.ejs < test/fixtures/user_data.json -``` - -A data file: - -```shell -$ ejs ./test/fixtures/user.ejs -f ./user_data.json -``` - -A command-line option (must be URI-encoded): - -```shell -./bin/cli.js -i %7B%22name%22%3A%20%22foo%22%7D ./test/fixtures/user.ejs -``` - -Or, passing values directly at the end of the invocation: - -```shell -./bin/cli.js -m $ ./test/fixtures/user.ejs name=foo -``` - -### Output - -The CLI by default send output to stdout, but you can use the `-o` or `--output-file` -flag to specify a target file to send the output to. - -## IDE Integration with Syntax Highlighting - -VSCode:Javascript EJS by *DigitalBrainstem* - -## Related projects - -There are a number of implementations of EJS: - - * TJ's implementation, the v1 of this library: https://github.com/tj/ejs - * EJS Embedded JavaScript Framework on Google Code: https://code.google.com/p/embeddedjavascript/ - * Sam Stephenson's Ruby implementation: https://rubygems.org/gems/ejs - * Erubis, an ERB implementation which also runs JavaScript: http://www.kuwata-lab.com/erubis/users-guide.04.html#lang-javascript - * DigitalBrainstem EJS Language support: https://github.com/Digitalbrainstem/ejs-grammar - -## License - -Licensed under the Apache License, Version 2.0 -() - -- - - -EJS Embedded JavaScript templates copyright 2112 -mde@fleegix.org. diff --git a/Easebuzz_NodeJS_kit/node_modules/ejs/bin/cli.js b/Easebuzz_NodeJS_kit/node_modules/ejs/bin/cli.js deleted file mode 100755 index 29408f1..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/ejs/bin/cli.js +++ /dev/null @@ -1,208 +0,0 @@ -#!/usr/bin/env node -/* - * EJS Embedded JavaScript templates - * Copyright 2112 Matthew Eernisse (mde@fleegix.org) - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * -*/ - - -let program = require('jake').program; -delete global.jake; // NO NOT WANT -program.setTaskNames = function (n) { this.taskNames = n; }; - -let ejs = require('../lib/ejs'); -let fs = require('fs'); -let args = process.argv.slice(2); -let usage = fs.readFileSync(`${__dirname}/../usage.txt`).toString(); - -const CLI_OPTS = [ - { full: 'output-file', - abbr: 'o', - expectValue: true, - }, - { full: 'data-file', - abbr: 'f', - expectValue: true, - }, - { full: 'data-input', - abbr: 'i', - expectValue: true, - }, - { full: 'delimiter', - abbr: 'm', - expectValue: true, - passThrough: true, - }, - { full: 'open-delimiter', - abbr: 'p', - expectValue: true, - passThrough: true, - }, - { full: 'close-delimiter', - abbr: 'c', - expectValue: true, - passThrough: true, - }, - { full: 'strict', - abbr: 's', - expectValue: false, - allowValue: false, - passThrough: true, - }, - { full: 'no-with', - abbr: 'n', - expectValue: false, - allowValue: false, - }, - { full: 'locals-name', - abbr: 'l', - expectValue: true, - passThrough: true, - }, - { full: 'rm-whitespace', - abbr: 'w', - expectValue: false, - allowValue: false, - passThrough: true, - }, - { full: 'debug', - abbr: 'd', - expectValue: false, - allowValue: false, - passThrough: true, - }, - { full: 'help', - abbr: 'h', - passThrough: true, - }, - { full: 'version', - abbr: 'V', - passThrough: true, - }, - // Alias lowercase v - { full: 'version', - abbr: 'v', - passThrough: true, - }, -]; - -let preempts = { - version: function () { - program.die(ejs.VERSION); - }, - help: function () { - program.die(usage); - } -}; - -let stdin = ''; -process.stdin.setEncoding('utf8'); -process.stdin.on('readable', () => { - let chunk; - while ((chunk = process.stdin.read()) !== null) { - stdin += chunk; - } -}); - -function run() { - - program.availableOpts = CLI_OPTS; - program.parseArgs(args); - - let templatePath = program.taskNames[0]; - let pVals = program.envVars; - let pOpts = {}; - - for (let p in program.opts) { - let name = p.replace(/-[a-z]/g, (match) => { return match[1].toUpperCase(); }); - pOpts[name] = program.opts[p]; - } - - let opts = {}; - let vals = {}; - - // Same-named 'passthrough' opts - CLI_OPTS.forEach((opt) => { - let optName = opt.full; - if (opt.passThrough && typeof pOpts[optName] != 'undefined') { - opts[optName] = pOpts[optName]; - } - }); - - // Bail out for help/version - for (let p in opts) { - if (preempts[p]) { - return preempts[p](); - } - } - - // Ensure there's a template to render - if (!templatePath) { - throw new Error('Please provide a template path. (Run ejs -h for help)'); - } - - if (opts.strict) { - pOpts.noWith = true; - } - if (pOpts.noWith) { - opts._with = false; - } - - // Grab and parse any input data, in order of precedence: - // 1. Stdin - // 2. CLI arg via -i - // 3. Data file via -f - // Any individual vals passed at the end (e.g., foo=bar) will override - // any vals previously set - let input; - let err = new Error('Please do not pass data multiple ways. Pick one of stdin, -f, or -i.'); - if (stdin) { - input = stdin; - } - else if (pOpts.dataInput) { - if (input) { - throw err; - } - input = decodeURIComponent(pOpts.dataInput); - } - else if (pOpts.dataFile) { - if (input) { - throw err; - } - input = fs.readFileSync(pOpts.dataFile).toString(); - } - - if (input) { - vals = JSON.parse(input); - } - - // Override / set any individual values passed from the command line - for (let p in pVals) { - vals[p] = pVals[p]; - } - - let template = fs.readFileSync(templatePath).toString(); - let output = ejs.render(template, vals, opts); - if (pOpts.outputFile) { - fs.writeFileSync(pOpts.outputFile, output); - } - else { - process.stdout.write(output); - } - process.exit(); -} - -// Defer execution so that stdin can be read if necessary -setImmediate(run); diff --git a/Easebuzz_NodeJS_kit/node_modules/ejs/ejs.js b/Easebuzz_NodeJS_kit/node_modules/ejs/ejs.js deleted file mode 100644 index 4b4c359..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/ejs/ejs.js +++ /dev/null @@ -1,1650 +0,0 @@ -(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.ejs = f()}})(function(){var define,module,exports;return (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i - * @author Tiancheng "Timothy" Gu - * @project EJS - * @license {@link http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0} - */ - -/** - * EJS internal functions. - * - * Technically this "module" lies in the same file as {@link module:ejs}, for - * the sake of organization all the private functions re grouped into this - * module. - * - * @module ejs-internal - * @private - */ - -/** - * Embedded JavaScript templating engine. - * - * @module ejs - * @public - */ - -var fs = require('fs'); -var path = require('path'); -var utils = require('./utils'); - -var scopeOptionWarned = false; -/** @type {string} */ -var _VERSION_STRING = require('../package.json').version; -var _DEFAULT_OPEN_DELIMITER = '<'; -var _DEFAULT_CLOSE_DELIMITER = '>'; -var _DEFAULT_DELIMITER = '%'; -var _DEFAULT_LOCALS_NAME = 'locals'; -var _NAME = 'ejs'; -var _REGEX_STRING = '(<%%|%%>|<%=|<%-|<%_|<%#|<%|%>|-%>|_%>)'; -var _OPTS_PASSABLE_WITH_DATA = ['delimiter', 'scope', 'context', 'debug', 'compileDebug', - 'client', '_with', 'rmWhitespace', 'strict', 'filename', 'async']; -// We don't allow 'cache' option to be passed in the data obj for -// the normal `render` call, but this is where Express 2 & 3 put it -// so we make an exception for `renderFile` -var _OPTS_PASSABLE_WITH_DATA_EXPRESS = _OPTS_PASSABLE_WITH_DATA.concat('cache'); -var _BOM = /^\uFEFF/; - -/** - * EJS template function cache. This can be a LRU object from lru-cache NPM - * module. By default, it is {@link module:utils.cache}, a simple in-process - * cache that grows continuously. - * - * @type {Cache} - */ - -exports.cache = utils.cache; - -/** - * Custom file loader. Useful for template preprocessing or restricting access - * to a certain part of the filesystem. - * - * @type {fileLoader} - */ - -exports.fileLoader = fs.readFileSync; - -/** - * Name of the object containing the locals. - * - * This variable is overridden by {@link Options}`.localsName` if it is not - * `undefined`. - * - * @type {String} - * @public - */ - -exports.localsName = _DEFAULT_LOCALS_NAME; - -/** - * Promise implementation -- defaults to the native implementation if available - * This is mostly just for testability - * - * @type {PromiseConstructorLike} - * @public - */ - -exports.promiseImpl = (new Function('return this;'))().Promise; - -/** - * Get the path to the included file from the parent file path and the - * specified path. - * - * @param {String} name specified path - * @param {String} filename parent file path - * @param {Boolean} [isDir=false] whether the parent file path is a directory - * @return {String} - */ -exports.resolveInclude = function(name, filename, isDir) { - var dirname = path.dirname; - var extname = path.extname; - var resolve = path.resolve; - var includePath = resolve(isDir ? filename : dirname(filename), name); - var ext = extname(name); - if (!ext) { - includePath += '.ejs'; - } - return includePath; -}; - -/** - * Try to resolve file path on multiple directories - * - * @param {String} name specified path - * @param {Array} paths list of possible parent directory paths - * @return {String} - */ -function resolvePaths(name, paths) { - var filePath; - if (paths.some(function (v) { - filePath = exports.resolveInclude(name, v, true); - return fs.existsSync(filePath); - })) { - return filePath; - } -} - -/** - * Get the path to the included file by Options - * - * @param {String} path specified path - * @param {Options} options compilation options - * @return {String} - */ -function getIncludePath(path, options) { - var includePath; - var filePath; - var views = options.views; - var match = /^[A-Za-z]+:\\|^\//.exec(path); - - // Abs path - if (match && match.length) { - path = path.replace(/^\/*/, ''); - if (Array.isArray(options.root)) { - includePath = resolvePaths(path, options.root); - } else { - includePath = exports.resolveInclude(path, options.root || '/', true); - } - } - // Relative paths - else { - // Look relative to a passed filename first - if (options.filename) { - filePath = exports.resolveInclude(path, options.filename); - if (fs.existsSync(filePath)) { - includePath = filePath; - } - } - // Then look in any views directories - if (!includePath && Array.isArray(views)) { - includePath = resolvePaths(path, views); - } - if (!includePath && typeof options.includer !== 'function') { - throw new Error('Could not find the include file "' + - options.escapeFunction(path) + '"'); - } - } - return includePath; -} - -/** - * Get the template from a string or a file, either compiled on-the-fly or - * read from cache (if enabled), and cache the template if needed. - * - * If `template` is not set, the file specified in `options.filename` will be - * read. - * - * If `options.cache` is true, this function reads the file from - * `options.filename` so it must be set prior to calling this function. - * - * @memberof module:ejs-internal - * @param {Options} options compilation options - * @param {String} [template] template source - * @return {(TemplateFunction|ClientFunction)} - * Depending on the value of `options.client`, either type might be returned. - * @static - */ - -function handleCache(options, template) { - var func; - var filename = options.filename; - var hasTemplate = arguments.length > 1; - - if (options.cache) { - if (!filename) { - throw new Error('cache option requires a filename'); - } - func = exports.cache.get(filename); - if (func) { - return func; - } - if (!hasTemplate) { - template = fileLoader(filename).toString().replace(_BOM, ''); - } - } - else if (!hasTemplate) { - // istanbul ignore if: should not happen at all - if (!filename) { - throw new Error('Internal EJS error: no file name or template ' - + 'provided'); - } - template = fileLoader(filename).toString().replace(_BOM, ''); - } - func = exports.compile(template, options); - if (options.cache) { - exports.cache.set(filename, func); - } - return func; -} - -/** - * Try calling handleCache with the given options and data and call the - * callback with the result. If an error occurs, call the callback with - * the error. Used by renderFile(). - * - * @memberof module:ejs-internal - * @param {Options} options compilation options - * @param {Object} data template data - * @param {RenderFileCallback} cb callback - * @static - */ - -function tryHandleCache(options, data, cb) { - var result; - if (!cb) { - if (typeof exports.promiseImpl == 'function') { - return new exports.promiseImpl(function (resolve, reject) { - try { - result = handleCache(options)(data); - resolve(result); - } - catch (err) { - reject(err); - } - }); - } - else { - throw new Error('Please provide a callback function'); - } - } - else { - try { - result = handleCache(options)(data); - } - catch (err) { - return cb(err); - } - - cb(null, result); - } -} - -/** - * fileLoader is independent - * - * @param {String} filePath ejs file path. - * @return {String} The contents of the specified file. - * @static - */ - -function fileLoader(filePath){ - return exports.fileLoader(filePath); -} - -/** - * Get the template function. - * - * If `options.cache` is `true`, then the template is cached. - * - * @memberof module:ejs-internal - * @param {String} path path for the specified file - * @param {Options} options compilation options - * @return {(TemplateFunction|ClientFunction)} - * Depending on the value of `options.client`, either type might be returned - * @static - */ - -function includeFile(path, options) { - var opts = utils.shallowCopy({}, options); - opts.filename = getIncludePath(path, opts); - if (typeof options.includer === 'function') { - var includerResult = options.includer(path, opts.filename); - if (includerResult) { - if (includerResult.filename) { - opts.filename = includerResult.filename; - } - if (includerResult.template) { - return handleCache(opts, includerResult.template); - } - } - } - return handleCache(opts); -} - -/** - * Re-throw the given `err` in context to the `str` of ejs, `filename`, and - * `lineno`. - * - * @implements {RethrowCallback} - * @memberof module:ejs-internal - * @param {Error} err Error object - * @param {String} str EJS source - * @param {String} flnm file name of the EJS file - * @param {Number} lineno line number of the error - * @param {EscapeCallback} esc - * @static - */ - -function rethrow(err, str, flnm, lineno, esc) { - var lines = str.split('\n'); - var start = Math.max(lineno - 3, 0); - var end = Math.min(lines.length, lineno + 3); - var filename = esc(flnm); - // Error context - var context = lines.slice(start, end).map(function (line, i){ - var curr = i + start + 1; - return (curr == lineno ? ' >> ' : ' ') - + curr - + '| ' - + line; - }).join('\n'); - - // Alter exception message - err.path = filename; - err.message = (filename || 'ejs') + ':' - + lineno + '\n' - + context + '\n\n' - + err.message; - - throw err; -} - -function stripSemi(str){ - return str.replace(/;(\s*$)/, '$1'); -} - -/** - * Compile the given `str` of ejs into a template function. - * - * @param {String} template EJS template - * - * @param {Options} [opts] compilation options - * - * @return {(TemplateFunction|ClientFunction)} - * Depending on the value of `opts.client`, either type might be returned. - * Note that the return type of the function also depends on the value of `opts.async`. - * @public - */ - -exports.compile = function compile(template, opts) { - var templ; - - // v1 compat - // 'scope' is 'context' - // FIXME: Remove this in a future version - if (opts && opts.scope) { - if (!scopeOptionWarned){ - console.warn('`scope` option is deprecated and will be removed in EJS 3'); - scopeOptionWarned = true; - } - if (!opts.context) { - opts.context = opts.scope; - } - delete opts.scope; - } - templ = new Template(template, opts); - return templ.compile(); -}; - -/** - * Render the given `template` of ejs. - * - * If you would like to include options but not data, you need to explicitly - * call this function with `data` being an empty object or `null`. - * - * @param {String} template EJS template - * @param {Object} [data={}] template data - * @param {Options} [opts={}] compilation and rendering options - * @return {(String|Promise)} - * Return value type depends on `opts.async`. - * @public - */ - -exports.render = function (template, d, o) { - var data = d || {}; - var opts = o || {}; - - // No options object -- if there are optiony names - // in the data, copy them to options - if (arguments.length == 2) { - utils.shallowCopyFromList(opts, data, _OPTS_PASSABLE_WITH_DATA); - } - - return handleCache(opts, template)(data); -}; - -/** - * Render an EJS file at the given `path` and callback `cb(err, str)`. - * - * If you would like to include options but not data, you need to explicitly - * call this function with `data` being an empty object or `null`. - * - * @param {String} path path to the EJS file - * @param {Object} [data={}] template data - * @param {Options} [opts={}] compilation and rendering options - * @param {RenderFileCallback} cb callback - * @public - */ - -exports.renderFile = function () { - var args = Array.prototype.slice.call(arguments); - var filename = args.shift(); - var cb; - var opts = {filename: filename}; - var data; - var viewOpts; - - // Do we have a callback? - if (typeof arguments[arguments.length - 1] == 'function') { - cb = args.pop(); - } - // Do we have data/opts? - if (args.length) { - // Should always have data obj - data = args.shift(); - // Normal passed opts (data obj + opts obj) - if (args.length) { - // Use shallowCopy so we don't pollute passed in opts obj with new vals - utils.shallowCopy(opts, args.pop()); - } - // Special casing for Express (settings + opts-in-data) - else { - // Express 3 and 4 - if (data.settings) { - // Pull a few things from known locations - if (data.settings.views) { - opts.views = data.settings.views; - } - if (data.settings['view cache']) { - opts.cache = true; - } - // Undocumented after Express 2, but still usable, esp. for - // items that are unsafe to be passed along with data, like `root` - viewOpts = data.settings['view options']; - if (viewOpts) { - utils.shallowCopy(opts, viewOpts); - } - } - // Express 2 and lower, values set in app.locals, or people who just - // want to pass options in their data. NOTE: These values will override - // anything previously set in settings or settings['view options'] - utils.shallowCopyFromList(opts, data, _OPTS_PASSABLE_WITH_DATA_EXPRESS); - } - opts.filename = filename; - } - else { - data = {}; - } - - return tryHandleCache(opts, data, cb); -}; - -/** - * Clear intermediate JavaScript cache. Calls {@link Cache#reset}. - * @public - */ - -/** - * EJS template class - * @public - */ -exports.Template = Template; - -exports.clearCache = function () { - exports.cache.reset(); -}; - -function Template(text, opts) { - opts = opts || {}; - var options = {}; - this.templateText = text; - /** @type {string | null} */ - this.mode = null; - this.truncate = false; - this.currentLine = 1; - this.source = ''; - options.client = opts.client || false; - options.escapeFunction = opts.escape || opts.escapeFunction || utils.escapeXML; - options.compileDebug = opts.compileDebug !== false; - options.debug = !!opts.debug; - options.filename = opts.filename; - options.openDelimiter = opts.openDelimiter || exports.openDelimiter || _DEFAULT_OPEN_DELIMITER; - options.closeDelimiter = opts.closeDelimiter || exports.closeDelimiter || _DEFAULT_CLOSE_DELIMITER; - options.delimiter = opts.delimiter || exports.delimiter || _DEFAULT_DELIMITER; - options.strict = opts.strict || false; - options.context = opts.context; - options.cache = opts.cache || false; - options.rmWhitespace = opts.rmWhitespace; - options.root = opts.root; - options.includer = opts.includer; - options.outputFunctionName = opts.outputFunctionName; - options.localsName = opts.localsName || exports.localsName || _DEFAULT_LOCALS_NAME; - options.views = opts.views; - options.async = opts.async; - options.destructuredLocals = opts.destructuredLocals; - options.legacyInclude = typeof opts.legacyInclude != 'undefined' ? !!opts.legacyInclude : true; - - if (options.strict) { - options._with = false; - } - else { - options._with = typeof opts._with != 'undefined' ? opts._with : true; - } - - this.opts = options; - - this.regex = this.createRegex(); -} - -Template.modes = { - EVAL: 'eval', - ESCAPED: 'escaped', - RAW: 'raw', - COMMENT: 'comment', - LITERAL: 'literal' -}; - -Template.prototype = { - createRegex: function () { - var str = _REGEX_STRING; - var delim = utils.escapeRegExpChars(this.opts.delimiter); - var open = utils.escapeRegExpChars(this.opts.openDelimiter); - var close = utils.escapeRegExpChars(this.opts.closeDelimiter); - str = str.replace(/%/g, delim) - .replace(//g, close); - return new RegExp(str); - }, - - compile: function () { - /** @type {string} */ - var src; - /** @type {ClientFunction} */ - var fn; - var opts = this.opts; - var prepended = ''; - var appended = ''; - /** @type {EscapeCallback} */ - var escapeFn = opts.escapeFunction; - /** @type {FunctionConstructor} */ - var ctor; - - if (!this.source) { - this.generateSource(); - prepended += - ' var __output = "";\n' + - ' function __append(s) { if (s !== undefined && s !== null) __output += s }\n'; - if (opts.outputFunctionName) { - prepended += ' var ' + opts.outputFunctionName + ' = __append;' + '\n'; - } - if (opts.destructuredLocals && opts.destructuredLocals.length) { - var destructuring = ' var __locals = (' + opts.localsName + ' || {}),\n'; - for (var i = 0; i < opts.destructuredLocals.length; i++) { - var name = opts.destructuredLocals[i]; - if (i > 0) { - destructuring += ',\n '; - } - destructuring += name + ' = __locals.' + name; - } - prepended += destructuring + ';\n'; - } - if (opts._with !== false) { - prepended += ' with (' + opts.localsName + ' || {}) {' + '\n'; - appended += ' }' + '\n'; - } - appended += ' return __output;' + '\n'; - this.source = prepended + this.source + appended; - } - - if (opts.compileDebug) { - src = 'var __line = 1' + '\n' - + ' , __lines = ' + JSON.stringify(this.templateText) + '\n' - + ' , __filename = ' + (opts.filename ? - JSON.stringify(opts.filename) : 'undefined') + ';' + '\n' - + 'try {' + '\n' - + this.source - + '} catch (e) {' + '\n' - + ' rethrow(e, __lines, __filename, __line, escapeFn);' + '\n' - + '}' + '\n'; - } - else { - src = this.source; - } - - if (opts.client) { - src = 'escapeFn = escapeFn || ' + escapeFn.toString() + ';' + '\n' + src; - if (opts.compileDebug) { - src = 'rethrow = rethrow || ' + rethrow.toString() + ';' + '\n' + src; - } - } - - if (opts.strict) { - src = '"use strict";\n' + src; - } - if (opts.debug) { - console.log(src); - } - if (opts.compileDebug && opts.filename) { - src = src + '\n' - + '//# sourceURL=' + opts.filename + '\n'; - } - - try { - if (opts.async) { - // Have to use generated function for this, since in envs without support, - // it breaks in parsing - try { - ctor = (new Function('return (async function(){}).constructor;'))(); - } - catch(e) { - if (e instanceof SyntaxError) { - throw new Error('This environment does not support async/await'); - } - else { - throw e; - } - } - } - else { - ctor = Function; - } - fn = new ctor(opts.localsName + ', escapeFn, include, rethrow', src); - } - catch(e) { - // istanbul ignore else - if (e instanceof SyntaxError) { - if (opts.filename) { - e.message += ' in ' + opts.filename; - } - e.message += ' while compiling ejs\n\n'; - e.message += 'If the above error is not helpful, you may want to try EJS-Lint:\n'; - e.message += 'https://github.com/RyanZim/EJS-Lint'; - if (!opts.async) { - e.message += '\n'; - e.message += 'Or, if you meant to create an async function, pass `async: true` as an option.'; - } - } - throw e; - } - - // Return a callable function which will execute the function - // created by the source-code, with the passed data as locals - // Adds a local `include` function which allows full recursive include - var returnedFn = opts.client ? fn : function anonymous(data) { - var include = function (path, includeData) { - var d = utils.shallowCopy({}, data); - if (includeData) { - d = utils.shallowCopy(d, includeData); - } - return includeFile(path, opts)(d); - }; - return fn.apply(opts.context, [data || {}, escapeFn, include, rethrow]); - }; - if (opts.filename && typeof Object.defineProperty === 'function') { - var filename = opts.filename; - var basename = path.basename(filename, path.extname(filename)); - try { - Object.defineProperty(returnedFn, 'name', { - value: basename, - writable: false, - enumerable: false, - configurable: true - }); - } catch (e) {/* ignore */} - } - return returnedFn; - }, - - generateSource: function () { - var opts = this.opts; - - if (opts.rmWhitespace) { - // Have to use two separate replace here as `^` and `$` operators don't - // work well with `\r` and empty lines don't work well with the `m` flag. - this.templateText = - this.templateText.replace(/[\r\n]+/g, '\n').replace(/^\s+|\s+$/gm, ''); - } - - // Slurp spaces and tabs before <%_ and after _%> - this.templateText = - this.templateText.replace(/[ \t]*<%_/gm, '<%_').replace(/_%>[ \t]*/gm, '_%>'); - - var self = this; - var matches = this.parseTemplateText(); - var d = this.opts.delimiter; - var o = this.opts.openDelimiter; - var c = this.opts.closeDelimiter; - - if (matches && matches.length) { - matches.forEach(function (line, index) { - var closing; - // If this is an opening tag, check for closing tags - // FIXME: May end up with some false positives here - // Better to store modes as k/v with openDelimiter + delimiter as key - // Then this can simply check against the map - if ( line.indexOf(o + d) === 0 // If it is a tag - && line.indexOf(o + d + d) !== 0) { // and is not escaped - closing = matches[index + 2]; - if (!(closing == d + c || closing == '-' + d + c || closing == '_' + d + c)) { - throw new Error('Could not find matching close tag for "' + line + '".'); - } - } - self.scanLine(line); - }); - } - - }, - - parseTemplateText: function () { - var str = this.templateText; - var pat = this.regex; - var result = pat.exec(str); - var arr = []; - var firstPos; - - while (result) { - firstPos = result.index; - - if (firstPos !== 0) { - arr.push(str.substring(0, firstPos)); - str = str.slice(firstPos); - } - - arr.push(result[0]); - str = str.slice(result[0].length); - result = pat.exec(str); - } - - if (str) { - arr.push(str); - } - - return arr; - }, - - _addOutput: function (line) { - if (this.truncate) { - // Only replace single leading linebreak in the line after - // -%> tag -- this is the single, trailing linebreak - // after the tag that the truncation mode replaces - // Handle Win / Unix / old Mac linebreaks -- do the \r\n - // combo first in the regex-or - line = line.replace(/^(?:\r\n|\r|\n)/, ''); - this.truncate = false; - } - if (!line) { - return line; - } - - // Preserve literal slashes - line = line.replace(/\\/g, '\\\\'); - - // Convert linebreaks - line = line.replace(/\n/g, '\\n'); - line = line.replace(/\r/g, '\\r'); - - // Escape double-quotes - // - this will be the delimiter during execution - line = line.replace(/"/g, '\\"'); - this.source += ' ; __append("' + line + '")' + '\n'; - }, - - scanLine: function (line) { - var self = this; - var d = this.opts.delimiter; - var o = this.opts.openDelimiter; - var c = this.opts.closeDelimiter; - var newLineCount = 0; - - newLineCount = (line.split('\n').length - 1); - - switch (line) { - case o + d: - case o + d + '_': - this.mode = Template.modes.EVAL; - break; - case o + d + '=': - this.mode = Template.modes.ESCAPED; - break; - case o + d + '-': - this.mode = Template.modes.RAW; - break; - case o + d + '#': - this.mode = Template.modes.COMMENT; - break; - case o + d + d: - this.mode = Template.modes.LITERAL; - this.source += ' ; __append("' + line.replace(o + d + d, o + d) + '")' + '\n'; - break; - case d + d + c: - this.mode = Template.modes.LITERAL; - this.source += ' ; __append("' + line.replace(d + d + c, d + c) + '")' + '\n'; - break; - case d + c: - case '-' + d + c: - case '_' + d + c: - if (this.mode == Template.modes.LITERAL) { - this._addOutput(line); - } - - this.mode = null; - this.truncate = line.indexOf('-') === 0 || line.indexOf('_') === 0; - break; - default: - // In script mode, depends on type of tag - if (this.mode) { - // If '//' is found without a line break, add a line break. - switch (this.mode) { - case Template.modes.EVAL: - case Template.modes.ESCAPED: - case Template.modes.RAW: - if (line.lastIndexOf('//') > line.lastIndexOf('\n')) { - line += '\n'; - } - } - switch (this.mode) { - // Just executing code - case Template.modes.EVAL: - this.source += ' ; ' + line + '\n'; - break; - // Exec, esc, and output - case Template.modes.ESCAPED: - this.source += ' ; __append(escapeFn(' + stripSemi(line) + '))' + '\n'; - break; - // Exec and output - case Template.modes.RAW: - this.source += ' ; __append(' + stripSemi(line) + ')' + '\n'; - break; - case Template.modes.COMMENT: - // Do nothing - break; - // Literal <%% mode, append as raw output - case Template.modes.LITERAL: - this._addOutput(line); - break; - } - } - // In string mode, just add the output - else { - this._addOutput(line); - } - } - - if (self.opts.compileDebug && newLineCount) { - this.currentLine += newLineCount; - this.source += ' ; __line = ' + this.currentLine + '\n'; - } - } -}; - -/** - * Escape characters reserved in XML. - * - * This is simply an export of {@link module:utils.escapeXML}. - * - * If `markup` is `undefined` or `null`, the empty string is returned. - * - * @param {String} markup Input string - * @return {String} Escaped string - * @public - * @func - * */ -exports.escapeXML = utils.escapeXML; - -/** - * Express.js support. - * - * This is an alias for {@link module:ejs.renderFile}, in order to support - * Express.js out-of-the-box. - * - * @func - */ - -exports.__express = exports.renderFile; - -/** - * Version of EJS. - * - * @readonly - * @type {String} - * @public - */ - -exports.VERSION = _VERSION_STRING; - -/** - * Name for detection of EJS. - * - * @readonly - * @type {String} - * @public - */ - -exports.name = _NAME; - -/* istanbul ignore if */ -if (typeof window != 'undefined') { - window.ejs = exports; -} - -},{"../package.json":6,"./utils":2,"fs":3,"path":4}],2:[function(require,module,exports){ -/* - * EJS Embedded JavaScript templates - * Copyright 2112 Matthew Eernisse (mde@fleegix.org) - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * -*/ - -/** - * Private utility functions - * @module utils - * @private - */ - -'use strict'; - -var regExpChars = /[|\\{}()[\]^$+*?.]/g; - -/** - * Escape characters reserved in regular expressions. - * - * If `string` is `undefined` or `null`, the empty string is returned. - * - * @param {String} string Input string - * @return {String} Escaped string - * @static - * @private - */ -exports.escapeRegExpChars = function (string) { - // istanbul ignore if - if (!string) { - return ''; - } - return String(string).replace(regExpChars, '\\$&'); -}; - -var _ENCODE_HTML_RULES = { - '&': '&', - '<': '<', - '>': '>', - '"': '"', - "'": ''' -}; -var _MATCH_HTML = /[&<>'"]/g; - -function encode_char(c) { - return _ENCODE_HTML_RULES[c] || c; -} - -/** - * Stringified version of constants used by {@link module:utils.escapeXML}. - * - * It is used in the process of generating {@link ClientFunction}s. - * - * @readonly - * @type {String} - */ - -var escapeFuncStr = - 'var _ENCODE_HTML_RULES = {\n' -+ ' "&": "&"\n' -+ ' , "<": "<"\n' -+ ' , ">": ">"\n' -+ ' , \'"\': """\n' -+ ' , "\'": "'"\n' -+ ' }\n' -+ ' , _MATCH_HTML = /[&<>\'"]/g;\n' -+ 'function encode_char(c) {\n' -+ ' return _ENCODE_HTML_RULES[c] || c;\n' -+ '};\n'; - -/** - * Escape characters reserved in XML. - * - * If `markup` is `undefined` or `null`, the empty string is returned. - * - * @implements {EscapeCallback} - * @param {String} markup Input string - * @return {String} Escaped string - * @static - * @private - */ - -exports.escapeXML = function (markup) { - return markup == undefined - ? '' - : String(markup) - .replace(_MATCH_HTML, encode_char); -}; -exports.escapeXML.toString = function () { - return Function.prototype.toString.call(this) + ';\n' + escapeFuncStr; -}; - -/** - * Naive copy of properties from one object to another. - * Does not recurse into non-scalar properties - * Does not check to see if the property has a value before copying - * - * @param {Object} to Destination object - * @param {Object} from Source object - * @return {Object} Destination object - * @static - * @private - */ -exports.shallowCopy = function (to, from) { - from = from || {}; - for (var p in from) { - to[p] = from[p]; - } - return to; -}; - -/** - * Naive copy of a list of key names, from one object to another. - * Only copies property if it is actually defined - * Does not recurse into non-scalar properties - * - * @param {Object} to Destination object - * @param {Object} from Source object - * @param {Array} list List of properties to copy - * @return {Object} Destination object - * @static - * @private - */ -exports.shallowCopyFromList = function (to, from, list) { - for (var i = 0; i < list.length; i++) { - var p = list[i]; - if (typeof from[p] != 'undefined') { - to[p] = from[p]; - } - } - return to; -}; - -/** - * Simple in-process cache implementation. Does not implement limits of any - * sort. - * - * @implements {Cache} - * @static - * @private - */ -exports.cache = { - _data: {}, - set: function (key, val) { - this._data[key] = val; - }, - get: function (key) { - return this._data[key]; - }, - remove: function (key) { - delete this._data[key]; - }, - reset: function () { - this._data = {}; - } -}; - -},{}],3:[function(require,module,exports){ - -},{}],4:[function(require,module,exports){ -(function (process){ -// .dirname, .basename, and .extname methods are extracted from Node.js v8.11.1, -// backported and transplited with Babel, with backwards-compat fixes - -// Copyright Joyent, Inc. and other Node contributors. -// -// Permission is hereby granted, free of charge, to any person obtaining a -// copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to permit -// persons to whom the Software is furnished to do so, subject to the -// following conditions: -// -// The above copyright notice and this permission notice shall be included -// in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN -// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, -// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR -// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE -// USE OR OTHER DEALINGS IN THE SOFTWARE. - -// resolves . and .. elements in a path array with directory names there -// must be no slashes, empty elements, or device names (c:\) in the array -// (so also no leading and trailing slashes - it does not distinguish -// relative and absolute paths) -function normalizeArray(parts, allowAboveRoot) { - // if the path tries to go above the root, `up` ends up > 0 - var up = 0; - for (var i = parts.length - 1; i >= 0; i--) { - var last = parts[i]; - if (last === '.') { - parts.splice(i, 1); - } else if (last === '..') { - parts.splice(i, 1); - up++; - } else if (up) { - parts.splice(i, 1); - up--; - } - } - - // if the path is allowed to go above the root, restore leading ..s - if (allowAboveRoot) { - for (; up--; up) { - parts.unshift('..'); - } - } - - return parts; -} - -// path.resolve([from ...], to) -// posix version -exports.resolve = function() { - var resolvedPath = '', - resolvedAbsolute = false; - - for (var i = arguments.length - 1; i >= -1 && !resolvedAbsolute; i--) { - var path = (i >= 0) ? arguments[i] : process.cwd(); - - // Skip empty and invalid entries - if (typeof path !== 'string') { - throw new TypeError('Arguments to path.resolve must be strings'); - } else if (!path) { - continue; - } - - resolvedPath = path + '/' + resolvedPath; - resolvedAbsolute = path.charAt(0) === '/'; - } - - // At this point the path should be resolved to a full absolute path, but - // handle relative paths to be safe (might happen when process.cwd() fails) - - // Normalize the path - resolvedPath = normalizeArray(filter(resolvedPath.split('/'), function(p) { - return !!p; - }), !resolvedAbsolute).join('/'); - - return ((resolvedAbsolute ? '/' : '') + resolvedPath) || '.'; -}; - -// path.normalize(path) -// posix version -exports.normalize = function(path) { - var isAbsolute = exports.isAbsolute(path), - trailingSlash = substr(path, -1) === '/'; - - // Normalize the path - path = normalizeArray(filter(path.split('/'), function(p) { - return !!p; - }), !isAbsolute).join('/'); - - if (!path && !isAbsolute) { - path = '.'; - } - if (path && trailingSlash) { - path += '/'; - } - - return (isAbsolute ? '/' : '') + path; -}; - -// posix version -exports.isAbsolute = function(path) { - return path.charAt(0) === '/'; -}; - -// posix version -exports.join = function() { - var paths = Array.prototype.slice.call(arguments, 0); - return exports.normalize(filter(paths, function(p, index) { - if (typeof p !== 'string') { - throw new TypeError('Arguments to path.join must be strings'); - } - return p; - }).join('/')); -}; - - -// path.relative(from, to) -// posix version -exports.relative = function(from, to) { - from = exports.resolve(from).substr(1); - to = exports.resolve(to).substr(1); - - function trim(arr) { - var start = 0; - for (; start < arr.length; start++) { - if (arr[start] !== '') break; - } - - var end = arr.length - 1; - for (; end >= 0; end--) { - if (arr[end] !== '') break; - } - - if (start > end) return []; - return arr.slice(start, end - start + 1); - } - - var fromParts = trim(from.split('/')); - var toParts = trim(to.split('/')); - - var length = Math.min(fromParts.length, toParts.length); - var samePartsLength = length; - for (var i = 0; i < length; i++) { - if (fromParts[i] !== toParts[i]) { - samePartsLength = i; - break; - } - } - - var outputParts = []; - for (var i = samePartsLength; i < fromParts.length; i++) { - outputParts.push('..'); - } - - outputParts = outputParts.concat(toParts.slice(samePartsLength)); - - return outputParts.join('/'); -}; - -exports.sep = '/'; -exports.delimiter = ':'; - -exports.dirname = function (path) { - if (typeof path !== 'string') path = path + ''; - if (path.length === 0) return '.'; - var code = path.charCodeAt(0); - var hasRoot = code === 47 /*/*/; - var end = -1; - var matchedSlash = true; - for (var i = path.length - 1; i >= 1; --i) { - code = path.charCodeAt(i); - if (code === 47 /*/*/) { - if (!matchedSlash) { - end = i; - break; - } - } else { - // We saw the first non-path separator - matchedSlash = false; - } - } - - if (end === -1) return hasRoot ? '/' : '.'; - if (hasRoot && end === 1) { - // return '//'; - // Backwards-compat fix: - return '/'; - } - return path.slice(0, end); -}; - -function basename(path) { - if (typeof path !== 'string') path = path + ''; - - var start = 0; - var end = -1; - var matchedSlash = true; - var i; - - for (i = path.length - 1; i >= 0; --i) { - if (path.charCodeAt(i) === 47 /*/*/) { - // If we reached a path separator that was not part of a set of path - // separators at the end of the string, stop now - if (!matchedSlash) { - start = i + 1; - break; - } - } else if (end === -1) { - // We saw the first non-path separator, mark this as the end of our - // path component - matchedSlash = false; - end = i + 1; - } - } - - if (end === -1) return ''; - return path.slice(start, end); -} - -// Uses a mixed approach for backwards-compatibility, as ext behavior changed -// in new Node.js versions, so only basename() above is backported here -exports.basename = function (path, ext) { - var f = basename(path); - if (ext && f.substr(-1 * ext.length) === ext) { - f = f.substr(0, f.length - ext.length); - } - return f; -}; - -exports.extname = function (path) { - if (typeof path !== 'string') path = path + ''; - var startDot = -1; - var startPart = 0; - var end = -1; - var matchedSlash = true; - // Track the state of characters (if any) we see before our first dot and - // after any path separator we find - var preDotState = 0; - for (var i = path.length - 1; i >= 0; --i) { - var code = path.charCodeAt(i); - if (code === 47 /*/*/) { - // If we reached a path separator that was not part of a set of path - // separators at the end of the string, stop now - if (!matchedSlash) { - startPart = i + 1; - break; - } - continue; - } - if (end === -1) { - // We saw the first non-path separator, mark this as the end of our - // extension - matchedSlash = false; - end = i + 1; - } - if (code === 46 /*.*/) { - // If this is our first dot, mark it as the start of our extension - if (startDot === -1) - startDot = i; - else if (preDotState !== 1) - preDotState = 1; - } else if (startDot !== -1) { - // We saw a non-dot and non-path separator before our dot, so we should - // have a good chance at having a non-empty extension - preDotState = -1; - } - } - - if (startDot === -1 || end === -1 || - // We saw a non-dot character immediately before the dot - preDotState === 0 || - // The (right-most) trimmed path component is exactly '..' - preDotState === 1 && startDot === end - 1 && startDot === startPart + 1) { - return ''; - } - return path.slice(startDot, end); -}; - -function filter (xs, f) { - if (xs.filter) return xs.filter(f); - var res = []; - for (var i = 0; i < xs.length; i++) { - if (f(xs[i], i, xs)) res.push(xs[i]); - } - return res; -} - -// String.prototype.substr - negative index don't work in IE8 -var substr = 'ab'.substr(-1) === 'b' - ? function (str, start, len) { return str.substr(start, len) } - : function (str, start, len) { - if (start < 0) start = str.length + start; - return str.substr(start, len); - } -; - -}).call(this,require('_process')) -},{"_process":5}],5:[function(require,module,exports){ -// shim for using process in browser -var process = module.exports = {}; - -// cached from whatever global is present so that test runners that stub it -// don't break things. But we need to wrap it in a try catch in case it is -// wrapped in strict mode code which doesn't define any globals. It's inside a -// function because try/catches deoptimize in certain engines. - -var cachedSetTimeout; -var cachedClearTimeout; - -function defaultSetTimout() { - throw new Error('setTimeout has not been defined'); -} -function defaultClearTimeout () { - throw new Error('clearTimeout has not been defined'); -} -(function () { - try { - if (typeof setTimeout === 'function') { - cachedSetTimeout = setTimeout; - } else { - cachedSetTimeout = defaultSetTimout; - } - } catch (e) { - cachedSetTimeout = defaultSetTimout; - } - try { - if (typeof clearTimeout === 'function') { - cachedClearTimeout = clearTimeout; - } else { - cachedClearTimeout = defaultClearTimeout; - } - } catch (e) { - cachedClearTimeout = defaultClearTimeout; - } -} ()) -function runTimeout(fun) { - if (cachedSetTimeout === setTimeout) { - //normal enviroments in sane situations - return setTimeout(fun, 0); - } - // if setTimeout wasn't available but was latter defined - if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) { - cachedSetTimeout = setTimeout; - return setTimeout(fun, 0); - } - try { - // when when somebody has screwed with setTimeout but no I.E. maddness - return cachedSetTimeout(fun, 0); - } catch(e){ - try { - // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally - return cachedSetTimeout.call(null, fun, 0); - } catch(e){ - // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error - return cachedSetTimeout.call(this, fun, 0); - } - } - - -} -function runClearTimeout(marker) { - if (cachedClearTimeout === clearTimeout) { - //normal enviroments in sane situations - return clearTimeout(marker); - } - // if clearTimeout wasn't available but was latter defined - if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) { - cachedClearTimeout = clearTimeout; - return clearTimeout(marker); - } - try { - // when when somebody has screwed with setTimeout but no I.E. maddness - return cachedClearTimeout(marker); - } catch (e){ - try { - // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally - return cachedClearTimeout.call(null, marker); - } catch (e){ - // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error. - // Some versions of I.E. have different rules for clearTimeout vs setTimeout - return cachedClearTimeout.call(this, marker); - } - } - - - -} -var queue = []; -var draining = false; -var currentQueue; -var queueIndex = -1; - -function cleanUpNextTick() { - if (!draining || !currentQueue) { - return; - } - draining = false; - if (currentQueue.length) { - queue = currentQueue.concat(queue); - } else { - queueIndex = -1; - } - if (queue.length) { - drainQueue(); - } -} - -function drainQueue() { - if (draining) { - return; - } - var timeout = runTimeout(cleanUpNextTick); - draining = true; - - var len = queue.length; - while(len) { - currentQueue = queue; - queue = []; - while (++queueIndex < len) { - if (currentQueue) { - currentQueue[queueIndex].run(); - } - } - queueIndex = -1; - len = queue.length; - } - currentQueue = null; - draining = false; - runClearTimeout(timeout); -} - -process.nextTick = function (fun) { - var args = new Array(arguments.length - 1); - if (arguments.length > 1) { - for (var i = 1; i < arguments.length; i++) { - args[i - 1] = arguments[i]; - } - } - queue.push(new Item(fun, args)); - if (queue.length === 1 && !draining) { - runTimeout(drainQueue); - } -}; - -// v8 likes predictible objects -function Item(fun, array) { - this.fun = fun; - this.array = array; -} -Item.prototype.run = function () { - this.fun.apply(null, this.array); -}; -process.title = 'browser'; -process.browser = true; -process.env = {}; -process.argv = []; -process.version = ''; // empty string to avoid regexp issues -process.versions = {}; - -function noop() {} - -process.on = noop; -process.addListener = noop; -process.once = noop; -process.off = noop; -process.removeListener = noop; -process.removeAllListeners = noop; -process.emit = noop; -process.prependListener = noop; -process.prependOnceListener = noop; - -process.listeners = function (name) { return [] } - -process.binding = function (name) { - throw new Error('process.binding is not supported'); -}; - -process.cwd = function () { return '/' }; -process.chdir = function (dir) { - throw new Error('process.chdir is not supported'); -}; -process.umask = function() { return 0; }; - -},{}],6:[function(require,module,exports){ -module.exports={ - "name": "ejs", - "description": "Embedded JavaScript templates", - "keywords": [ - "template", - "engine", - "ejs" - ], - "version": "3.1.3", - "author": "Matthew Eernisse (http://fleegix.org)", - "license": "Apache-2.0", - "bin": { - "ejs": "./bin/cli.js" - }, - "main": "./lib/ejs.js", - "jsdelivr": "ejs.min.js", - "unpkg": "ejs.min.js", - "repository": { - "type": "git", - "url": "git://github.com/mde/ejs.git" - }, - "bugs": "https://github.com/mde/ejs/issues", - "homepage": "https://github.com/mde/ejs", - "dependencies": { - "jake": "^10.6.1" - }, - "devDependencies": { - "browserify": "^16.5.1", - "eslint": "^6.8.0", - "git-directory-deploy": "^1.5.1", - "jsdoc": "^3.6.4", - "lru-cache": "^4.0.1", - "mocha": "^7.1.1", - "uglify-js": "^3.3.16" - }, - "engines": { - "node": ">=0.10.0" - }, - "scripts": { - "test": "mocha", - "postinstall": "node --harmony ./postinstall.js" - } -} - -},{}]},{},[1])(1) -}); diff --git a/Easebuzz_NodeJS_kit/node_modules/ejs/ejs.min.js b/Easebuzz_NodeJS_kit/node_modules/ejs/ejs.min.js deleted file mode 100644 index d35b161..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/ejs/ejs.min.js +++ /dev/null @@ -1 +0,0 @@ -(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.ejs=f()}})(function(){var define,module,exports;return function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i1;if(options.cache){if(!filename){throw new Error("cache option requires a filename")}func=exports.cache.get(filename);if(func){return func}if(!hasTemplate){template=fileLoader(filename).toString().replace(_BOM,"")}}else if(!hasTemplate){if(!filename){throw new Error("Internal EJS error: no file name or template "+"provided")}template=fileLoader(filename).toString().replace(_BOM,"")}func=exports.compile(template,options);if(options.cache){exports.cache.set(filename,func)}return func}function tryHandleCache(options,data,cb){var result;if(!cb){if(typeof exports.promiseImpl=="function"){return new exports.promiseImpl(function(resolve,reject){try{result=handleCache(options)(data);resolve(result)}catch(err){reject(err)}})}else{throw new Error("Please provide a callback function")}}else{try{result=handleCache(options)(data)}catch(err){return cb(err)}cb(null,result)}}function fileLoader(filePath){return exports.fileLoader(filePath)}function includeFile(path,options){var opts=utils.shallowCopy({},options);opts.filename=getIncludePath(path,opts);if(typeof options.includer==="function"){var includerResult=options.includer(path,opts.filename);if(includerResult){if(includerResult.filename){opts.filename=includerResult.filename}if(includerResult.template){return handleCache(opts,includerResult.template)}}}return handleCache(opts)}function rethrow(err,str,flnm,lineno,esc){var lines=str.split("\n");var start=Math.max(lineno-3,0);var end=Math.min(lines.length,lineno+3);var filename=esc(flnm);var context=lines.slice(start,end).map(function(line,i){var curr=i+start+1;return(curr==lineno?" >> ":" ")+curr+"| "+line}).join("\n");err.path=filename;err.message=(filename||"ejs")+":"+lineno+"\n"+context+"\n\n"+err.message;throw err}function stripSemi(str){return str.replace(/;(\s*$)/,"$1")}exports.compile=function compile(template,opts){var templ;if(opts&&opts.scope){if(!scopeOptionWarned){console.warn("`scope` option is deprecated and will be removed in EJS 3");scopeOptionWarned=true}if(!opts.context){opts.context=opts.scope}delete opts.scope}templ=new Template(template,opts);return templ.compile()};exports.render=function(template,d,o){var data=d||{};var opts=o||{};if(arguments.length==2){utils.shallowCopyFromList(opts,data,_OPTS_PASSABLE_WITH_DATA)}return handleCache(opts,template)(data)};exports.renderFile=function(){var args=Array.prototype.slice.call(arguments);var filename=args.shift();var cb;var opts={filename:filename};var data;var viewOpts;if(typeof arguments[arguments.length-1]=="function"){cb=args.pop()}if(args.length){data=args.shift();if(args.length){utils.shallowCopy(opts,args.pop())}else{if(data.settings){if(data.settings.views){opts.views=data.settings.views}if(data.settings["view cache"]){opts.cache=true}viewOpts=data.settings["view options"];if(viewOpts){utils.shallowCopy(opts,viewOpts)}}utils.shallowCopyFromList(opts,data,_OPTS_PASSABLE_WITH_DATA_EXPRESS)}opts.filename=filename}else{data={}}return tryHandleCache(opts,data,cb)};exports.Template=Template;exports.clearCache=function(){exports.cache.reset()};function Template(text,opts){opts=opts||{};var options={};this.templateText=text;this.mode=null;this.truncate=false;this.currentLine=1;this.source="";options.client=opts.client||false;options.escapeFunction=opts.escape||opts.escapeFunction||utils.escapeXML;options.compileDebug=opts.compileDebug!==false;options.debug=!!opts.debug;options.filename=opts.filename;options.openDelimiter=opts.openDelimiter||exports.openDelimiter||_DEFAULT_OPEN_DELIMITER;options.closeDelimiter=opts.closeDelimiter||exports.closeDelimiter||_DEFAULT_CLOSE_DELIMITER;options.delimiter=opts.delimiter||exports.delimiter||_DEFAULT_DELIMITER;options.strict=opts.strict||false;options.context=opts.context;options.cache=opts.cache||false;options.rmWhitespace=opts.rmWhitespace;options.root=opts.root;options.includer=opts.includer;options.outputFunctionName=opts.outputFunctionName;options.localsName=opts.localsName||exports.localsName||_DEFAULT_LOCALS_NAME;options.views=opts.views;options.async=opts.async;options.destructuredLocals=opts.destructuredLocals;options.legacyInclude=typeof opts.legacyInclude!="undefined"?!!opts.legacyInclude:true;if(options.strict){options._with=false}else{options._with=typeof opts._with!="undefined"?opts._with:true}this.opts=options;this.regex=this.createRegex()}Template.modes={EVAL:"eval",ESCAPED:"escaped",RAW:"raw",COMMENT:"comment",LITERAL:"literal"};Template.prototype={createRegex:function(){var str=_REGEX_STRING;var delim=utils.escapeRegExpChars(this.opts.delimiter);var open=utils.escapeRegExpChars(this.opts.openDelimiter);var close=utils.escapeRegExpChars(this.opts.closeDelimiter);str=str.replace(/%/g,delim).replace(//g,close);return new RegExp(str)},compile:function(){var src;var fn;var opts=this.opts;var prepended="";var appended="";var escapeFn=opts.escapeFunction;var ctor;if(!this.source){this.generateSource();prepended+=' var __output = "";\n'+" function __append(s) { if (s !== undefined && s !== null) __output += s }\n";if(opts.outputFunctionName){prepended+=" var "+opts.outputFunctionName+" = __append;"+"\n"}if(opts.destructuredLocals&&opts.destructuredLocals.length){var destructuring=" var __locals = ("+opts.localsName+" || {}),\n";for(var i=0;i0){destructuring+=",\n "}destructuring+=name+" = __locals."+name}prepended+=destructuring+";\n"}if(opts._with!==false){prepended+=" with ("+opts.localsName+" || {}) {"+"\n";appended+=" }"+"\n"}appended+=" return __output;"+"\n";this.source=prepended+this.source+appended}if(opts.compileDebug){src="var __line = 1"+"\n"+" , __lines = "+JSON.stringify(this.templateText)+"\n"+" , __filename = "+(opts.filename?JSON.stringify(opts.filename):"undefined")+";"+"\n"+"try {"+"\n"+this.source+"} catch (e) {"+"\n"+" rethrow(e, __lines, __filename, __line, escapeFn);"+"\n"+"}"+"\n"}else{src=this.source}if(opts.client){src="escapeFn = escapeFn || "+escapeFn.toString()+";"+"\n"+src;if(opts.compileDebug){src="rethrow = rethrow || "+rethrow.toString()+";"+"\n"+src}}if(opts.strict){src='"use strict";\n'+src}if(opts.debug){console.log(src)}if(opts.compileDebug&&opts.filename){src=src+"\n"+"//# sourceURL="+opts.filename+"\n"}try{if(opts.async){try{ctor=new Function("return (async function(){}).constructor;")()}catch(e){if(e instanceof SyntaxError){throw new Error("This environment does not support async/await")}else{throw e}}}else{ctor=Function}fn=new ctor(opts.localsName+", escapeFn, include, rethrow",src)}catch(e){if(e instanceof SyntaxError){if(opts.filename){e.message+=" in "+opts.filename}e.message+=" while compiling ejs\n\n";e.message+="If the above error is not helpful, you may want to try EJS-Lint:\n";e.message+="https://github.com/RyanZim/EJS-Lint";if(!opts.async){e.message+="\n";e.message+="Or, if you meant to create an async function, pass `async: true` as an option."}}throw e}var returnedFn=opts.client?fn:function anonymous(data){var include=function(path,includeData){var d=utils.shallowCopy({},data);if(includeData){d=utils.shallowCopy(d,includeData)}return includeFile(path,opts)(d)};return fn.apply(opts.context,[data||{},escapeFn,include,rethrow])};if(opts.filename&&typeof Object.defineProperty==="function"){var filename=opts.filename;var basename=path.basename(filename,path.extname(filename));try{Object.defineProperty(returnedFn,"name",{value:basename,writable:false,enumerable:false,configurable:true})}catch(e){}}return returnedFn},generateSource:function(){var opts=this.opts;if(opts.rmWhitespace){this.templateText=this.templateText.replace(/[\r\n]+/g,"\n").replace(/^\s+|\s+$/gm,"")}this.templateText=this.templateText.replace(/[ \t]*<%_/gm,"<%_").replace(/_%>[ \t]*/gm,"_%>");var self=this;var matches=this.parseTemplateText();var d=this.opts.delimiter;var o=this.opts.openDelimiter;var c=this.opts.closeDelimiter;if(matches&&matches.length){matches.forEach(function(line,index){var closing;if(line.indexOf(o+d)===0&&line.indexOf(o+d+d)!==0){closing=matches[index+2];if(!(closing==d+c||closing=="-"+d+c||closing=="_"+d+c)){throw new Error('Could not find matching close tag for "'+line+'".')}}self.scanLine(line)})}},parseTemplateText:function(){var str=this.templateText;var pat=this.regex;var result=pat.exec(str);var arr=[];var firstPos;while(result){firstPos=result.index;if(firstPos!==0){arr.push(str.substring(0,firstPos));str=str.slice(firstPos)}arr.push(result[0]);str=str.slice(result[0].length);result=pat.exec(str)}if(str){arr.push(str)}return arr},_addOutput:function(line){if(this.truncate){line=line.replace(/^(?:\r\n|\r|\n)/,"");this.truncate=false}if(!line){return line}line=line.replace(/\\/g,"\\\\");line=line.replace(/\n/g,"\\n");line=line.replace(/\r/g,"\\r");line=line.replace(/"/g,'\\"');this.source+=' ; __append("'+line+'")'+"\n"},scanLine:function(line){var self=this;var d=this.opts.delimiter;var o=this.opts.openDelimiter;var c=this.opts.closeDelimiter;var newLineCount=0;newLineCount=line.split("\n").length-1;switch(line){case o+d:case o+d+"_":this.mode=Template.modes.EVAL;break;case o+d+"=":this.mode=Template.modes.ESCAPED;break;case o+d+"-":this.mode=Template.modes.RAW;break;case o+d+"#":this.mode=Template.modes.COMMENT;break;case o+d+d:this.mode=Template.modes.LITERAL;this.source+=' ; __append("'+line.replace(o+d+d,o+d)+'")'+"\n";break;case d+d+c:this.mode=Template.modes.LITERAL;this.source+=' ; __append("'+line.replace(d+d+c,d+c)+'")'+"\n";break;case d+c:case"-"+d+c:case"_"+d+c:if(this.mode==Template.modes.LITERAL){this._addOutput(line)}this.mode=null;this.truncate=line.indexOf("-")===0||line.indexOf("_")===0;break;default:if(this.mode){switch(this.mode){case Template.modes.EVAL:case Template.modes.ESCAPED:case Template.modes.RAW:if(line.lastIndexOf("//")>line.lastIndexOf("\n")){line+="\n"}}switch(this.mode){case Template.modes.EVAL:this.source+=" ; "+line+"\n";break;case Template.modes.ESCAPED:this.source+=" ; __append(escapeFn("+stripSemi(line)+"))"+"\n";break;case Template.modes.RAW:this.source+=" ; __append("+stripSemi(line)+")"+"\n";break;case Template.modes.COMMENT:break;case Template.modes.LITERAL:this._addOutput(line);break}}else{this._addOutput(line)}}if(self.opts.compileDebug&&newLineCount){this.currentLine+=newLineCount;this.source+=" ; __line = "+this.currentLine+"\n"}}};exports.escapeXML=utils.escapeXML;exports.__express=exports.renderFile;exports.VERSION=_VERSION_STRING;exports.name=_NAME;if(typeof window!="undefined"){window.ejs=exports}},{"../package.json":6,"./utils":2,fs:3,path:4}],2:[function(require,module,exports){"use strict";var regExpChars=/[|\\{}()[\]^$+*?.]/g;exports.escapeRegExpChars=function(string){if(!string){return""}return String(string).replace(regExpChars,"\\$&")};var _ENCODE_HTML_RULES={"&":"&","<":"<",">":">",'"':""","'":"'"};var _MATCH_HTML=/[&<>'"]/g;function encode_char(c){return _ENCODE_HTML_RULES[c]||c}var escapeFuncStr="var _ENCODE_HTML_RULES = {\n"+' "&": "&"\n'+' , "<": "<"\n'+' , ">": ">"\n'+' , \'"\': """\n'+' , "\'": "'"\n'+" }\n"+" , _MATCH_HTML = /[&<>'\"]/g;\n"+"function encode_char(c) {\n"+" return _ENCODE_HTML_RULES[c] || c;\n"+"};\n";exports.escapeXML=function(markup){return markup==undefined?"":String(markup).replace(_MATCH_HTML,encode_char)};exports.escapeXML.toString=function(){return Function.prototype.toString.call(this)+";\n"+escapeFuncStr};exports.shallowCopy=function(to,from){from=from||{};for(var p in from){to[p]=from[p]}return to};exports.shallowCopyFromList=function(to,from,list){for(var i=0;i=0;i--){var last=parts[i];if(last==="."){parts.splice(i,1)}else if(last===".."){parts.splice(i,1);up++}else if(up){parts.splice(i,1);up--}}if(allowAboveRoot){for(;up--;up){parts.unshift("..")}}return parts}exports.resolve=function(){var resolvedPath="",resolvedAbsolute=false;for(var i=arguments.length-1;i>=-1&&!resolvedAbsolute;i--){var path=i>=0?arguments[i]:process.cwd();if(typeof path!=="string"){throw new TypeError("Arguments to path.resolve must be strings")}else if(!path){continue}resolvedPath=path+"/"+resolvedPath;resolvedAbsolute=path.charAt(0)==="/"}resolvedPath=normalizeArray(filter(resolvedPath.split("/"),function(p){return!!p}),!resolvedAbsolute).join("/");return(resolvedAbsolute?"/":"")+resolvedPath||"."};exports.normalize=function(path){var isAbsolute=exports.isAbsolute(path),trailingSlash=substr(path,-1)==="/";path=normalizeArray(filter(path.split("/"),function(p){return!!p}),!isAbsolute).join("/");if(!path&&!isAbsolute){path="."}if(path&&trailingSlash){path+="/"}return(isAbsolute?"/":"")+path};exports.isAbsolute=function(path){return path.charAt(0)==="/"};exports.join=function(){var paths=Array.prototype.slice.call(arguments,0);return exports.normalize(filter(paths,function(p,index){if(typeof p!=="string"){throw new TypeError("Arguments to path.join must be strings")}return p}).join("/"))};exports.relative=function(from,to){from=exports.resolve(from).substr(1);to=exports.resolve(to).substr(1);function trim(arr){var start=0;for(;start=0;end--){if(arr[end]!=="")break}if(start>end)return[];return arr.slice(start,end-start+1)}var fromParts=trim(from.split("/"));var toParts=trim(to.split("/"));var length=Math.min(fromParts.length,toParts.length);var samePartsLength=length;for(var i=0;i=1;--i){code=path.charCodeAt(i);if(code===47){if(!matchedSlash){end=i;break}}else{matchedSlash=false}}if(end===-1)return hasRoot?"/":".";if(hasRoot&&end===1){return"/"}return path.slice(0,end)};function basename(path){if(typeof path!=="string")path=path+"";var start=0;var end=-1;var matchedSlash=true;var i;for(i=path.length-1;i>=0;--i){if(path.charCodeAt(i)===47){if(!matchedSlash){start=i+1;break}}else if(end===-1){matchedSlash=false;end=i+1}}if(end===-1)return"";return path.slice(start,end)}exports.basename=function(path,ext){var f=basename(path);if(ext&&f.substr(-1*ext.length)===ext){f=f.substr(0,f.length-ext.length)}return f};exports.extname=function(path){if(typeof path!=="string")path=path+"";var startDot=-1;var startPart=0;var end=-1;var matchedSlash=true;var preDotState=0;for(var i=path.length-1;i>=0;--i){var code=path.charCodeAt(i);if(code===47){if(!matchedSlash){startPart=i+1;break}continue}if(end===-1){matchedSlash=false;end=i+1}if(code===46){if(startDot===-1)startDot=i;else if(preDotState!==1)preDotState=1}else if(startDot!==-1){preDotState=-1}}if(startDot===-1||end===-1||preDotState===0||preDotState===1&&startDot===end-1&&startDot===startPart+1){return""}return path.slice(startDot,end)};function filter(xs,f){if(xs.filter)return xs.filter(f);var res=[];for(var i=0;i1){for(var i=1;i (http://fleegix.org)",license:"Apache-2.0",bin:{ejs:"./bin/cli.js"},main:"./lib/ejs.js",jsdelivr:"ejs.min.js",unpkg:"ejs.min.js",repository:{type:"git",url:"git://github.com/mde/ejs.git"},bugs:"https://github.com/mde/ejs/issues",homepage:"https://github.com/mde/ejs",dependencies:{jake:"^10.6.1"},devDependencies:{browserify:"^16.5.1",eslint:"^6.8.0","git-directory-deploy":"^1.5.1",jsdoc:"^3.6.4","lru-cache":"^4.0.1",mocha:"^7.1.1","uglify-js":"^3.3.16"},engines:{node:">=0.10.0"},scripts:{test:"mocha",postinstall:"node --harmony ./postinstall.js"}}},{}]},{},[1])(1)}); diff --git a/Easebuzz_NodeJS_kit/node_modules/ejs/jakefile.js b/Easebuzz_NodeJS_kit/node_modules/ejs/jakefile.js deleted file mode 100644 index 0eebf2e..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/ejs/jakefile.js +++ /dev/null @@ -1,76 +0,0 @@ -var fs = require('fs'); -var execSync = require('child_process').execSync; -var exec = function (cmd) { - execSync(cmd, {stdio: 'inherit'}); -}; - -/* global jake, task, desc, publishTask */ - -task('build', ['lint', 'clean', 'browserify', 'minify'], function () { - console.log('Build completed.'); -}); - -desc('Cleans browerified/minified files and package files'); -task('clean', ['clobber'], function () { - jake.rmRf('./ejs.js'); - jake.rmRf('./ejs.min.js'); - console.log('Cleaned up compiled files.'); -}); - -desc('Lints the source code'); -task('lint', ['clean'], function () { - exec('./node_modules/.bin/eslint "**/*.js"'); - console.log('Linting completed.'); -}); - -task('browserify', function () { - exec('./node_modules/browserify/bin/cmd.js --standalone ejs lib/ejs.js > ejs.js'); - console.log('Browserification completed.'); -}); - -task('minify', function () { - exec('./node_modules/uglify-js/bin/uglifyjs ejs.js > ejs.min.js'); - console.log('Minification completed.'); -}); - -desc('Generates the EJS API docs'); -task('doc', function (dev) { - jake.rmRf('out'); - var p = dev ? '-p' : ''; - exec('./node_modules/.bin/jsdoc ' + p + ' -c jsdoc.json lib/* docs/jsdoc/*'); - console.log('Documentation generated.'); -}); - -desc('Publishes the EJS API docs'); -task('docPublish', ['doc'], function () { - fs.writeFileSync('out/CNAME', 'api.ejs.co'); - console.log('Pushing docs to gh-pages...'); - exec('./node_modules/.bin/git-directory-deploy --directory out/'); - console.log('Docs published to gh-pages.'); -}); - -desc('Runs the EJS test suite'); -task('test', ['lint'], function () { - exec('./node_modules/.bin/mocha'); -}); - -publishTask('ejs', ['build'], function () { - this.packageFiles.include([ - 'jakefile.js', - 'README.md', - 'LICENSE', - 'package.json', - 'postinstall.js', - 'ejs.js', - 'ejs.min.js', - 'lib/**', - 'bin/**', - 'usage.txt' - ]); -}); - -jake.Task.publish.on('complete', function () { - console.log('Updating hosted docs...'); - console.log('If this fails, run jake docPublish to re-try.'); - jake.Task.docPublish.invoke(); -}); diff --git a/Easebuzz_NodeJS_kit/node_modules/ejs/lib/ejs.js b/Easebuzz_NodeJS_kit/node_modules/ejs/lib/ejs.js deleted file mode 100755 index 104aada..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/ejs/lib/ejs.js +++ /dev/null @@ -1,938 +0,0 @@ -/* - * EJS Embedded JavaScript templates - * Copyright 2112 Matthew Eernisse (mde@fleegix.org) - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * -*/ - -'use strict'; - -/** - * @file Embedded JavaScript templating engine. {@link http://ejs.co} - * @author Matthew Eernisse - * @author Tiancheng "Timothy" Gu - * @project EJS - * @license {@link http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0} - */ - -/** - * EJS internal functions. - * - * Technically this "module" lies in the same file as {@link module:ejs}, for - * the sake of organization all the private functions re grouped into this - * module. - * - * @module ejs-internal - * @private - */ - -/** - * Embedded JavaScript templating engine. - * - * @module ejs - * @public - */ - -var fs = require('fs'); -var path = require('path'); -var utils = require('./utils'); - -var scopeOptionWarned = false; -/** @type {string} */ -var _VERSION_STRING = require('../package.json').version; -var _DEFAULT_OPEN_DELIMITER = '<'; -var _DEFAULT_CLOSE_DELIMITER = '>'; -var _DEFAULT_DELIMITER = '%'; -var _DEFAULT_LOCALS_NAME = 'locals'; -var _NAME = 'ejs'; -var _REGEX_STRING = '(<%%|%%>|<%=|<%-|<%_|<%#|<%|%>|-%>|_%>)'; -var _OPTS_PASSABLE_WITH_DATA = ['delimiter', 'scope', 'context', 'debug', 'compileDebug', - 'client', '_with', 'rmWhitespace', 'strict', 'filename', 'async']; -// We don't allow 'cache' option to be passed in the data obj for -// the normal `render` call, but this is where Express 2 & 3 put it -// so we make an exception for `renderFile` -var _OPTS_PASSABLE_WITH_DATA_EXPRESS = _OPTS_PASSABLE_WITH_DATA.concat('cache'); -var _BOM = /^\uFEFF/; - -/** - * EJS template function cache. This can be a LRU object from lru-cache NPM - * module. By default, it is {@link module:utils.cache}, a simple in-process - * cache that grows continuously. - * - * @type {Cache} - */ - -exports.cache = utils.cache; - -/** - * Custom file loader. Useful for template preprocessing or restricting access - * to a certain part of the filesystem. - * - * @type {fileLoader} - */ - -exports.fileLoader = fs.readFileSync; - -/** - * Name of the object containing the locals. - * - * This variable is overridden by {@link Options}`.localsName` if it is not - * `undefined`. - * - * @type {String} - * @public - */ - -exports.localsName = _DEFAULT_LOCALS_NAME; - -/** - * Promise implementation -- defaults to the native implementation if available - * This is mostly just for testability - * - * @type {PromiseConstructorLike} - * @public - */ - -exports.promiseImpl = (new Function('return this;'))().Promise; - -/** - * Get the path to the included file from the parent file path and the - * specified path. - * - * @param {String} name specified path - * @param {String} filename parent file path - * @param {Boolean} [isDir=false] whether the parent file path is a directory - * @return {String} - */ -exports.resolveInclude = function(name, filename, isDir) { - var dirname = path.dirname; - var extname = path.extname; - var resolve = path.resolve; - var includePath = resolve(isDir ? filename : dirname(filename), name); - var ext = extname(name); - if (!ext) { - includePath += '.ejs'; - } - return includePath; -}; - -/** - * Try to resolve file path on multiple directories - * - * @param {String} name specified path - * @param {Array} paths list of possible parent directory paths - * @return {String} - */ -function resolvePaths(name, paths) { - var filePath; - if (paths.some(function (v) { - filePath = exports.resolveInclude(name, v, true); - return fs.existsSync(filePath); - })) { - return filePath; - } -} - -/** - * Get the path to the included file by Options - * - * @param {String} path specified path - * @param {Options} options compilation options - * @return {String} - */ -function getIncludePath(path, options) { - var includePath; - var filePath; - var views = options.views; - var match = /^[A-Za-z]+:\\|^\//.exec(path); - - // Abs path - if (match && match.length) { - path = path.replace(/^\/*/, ''); - if (Array.isArray(options.root)) { - includePath = resolvePaths(path, options.root); - } else { - includePath = exports.resolveInclude(path, options.root || '/', true); - } - } - // Relative paths - else { - // Look relative to a passed filename first - if (options.filename) { - filePath = exports.resolveInclude(path, options.filename); - if (fs.existsSync(filePath)) { - includePath = filePath; - } - } - // Then look in any views directories - if (!includePath && Array.isArray(views)) { - includePath = resolvePaths(path, views); - } - if (!includePath && typeof options.includer !== 'function') { - throw new Error('Could not find the include file "' + - options.escapeFunction(path) + '"'); - } - } - return includePath; -} - -/** - * Get the template from a string or a file, either compiled on-the-fly or - * read from cache (if enabled), and cache the template if needed. - * - * If `template` is not set, the file specified in `options.filename` will be - * read. - * - * If `options.cache` is true, this function reads the file from - * `options.filename` so it must be set prior to calling this function. - * - * @memberof module:ejs-internal - * @param {Options} options compilation options - * @param {String} [template] template source - * @return {(TemplateFunction|ClientFunction)} - * Depending on the value of `options.client`, either type might be returned. - * @static - */ - -function handleCache(options, template) { - var func; - var filename = options.filename; - var hasTemplate = arguments.length > 1; - - if (options.cache) { - if (!filename) { - throw new Error('cache option requires a filename'); - } - func = exports.cache.get(filename); - if (func) { - return func; - } - if (!hasTemplate) { - template = fileLoader(filename).toString().replace(_BOM, ''); - } - } - else if (!hasTemplate) { - // istanbul ignore if: should not happen at all - if (!filename) { - throw new Error('Internal EJS error: no file name or template ' - + 'provided'); - } - template = fileLoader(filename).toString().replace(_BOM, ''); - } - func = exports.compile(template, options); - if (options.cache) { - exports.cache.set(filename, func); - } - return func; -} - -/** - * Try calling handleCache with the given options and data and call the - * callback with the result. If an error occurs, call the callback with - * the error. Used by renderFile(). - * - * @memberof module:ejs-internal - * @param {Options} options compilation options - * @param {Object} data template data - * @param {RenderFileCallback} cb callback - * @static - */ - -function tryHandleCache(options, data, cb) { - var result; - if (!cb) { - if (typeof exports.promiseImpl == 'function') { - return new exports.promiseImpl(function (resolve, reject) { - try { - result = handleCache(options)(data); - resolve(result); - } - catch (err) { - reject(err); - } - }); - } - else { - throw new Error('Please provide a callback function'); - } - } - else { - try { - result = handleCache(options)(data); - } - catch (err) { - return cb(err); - } - - cb(null, result); - } -} - -/** - * fileLoader is independent - * - * @param {String} filePath ejs file path. - * @return {String} The contents of the specified file. - * @static - */ - -function fileLoader(filePath){ - return exports.fileLoader(filePath); -} - -/** - * Get the template function. - * - * If `options.cache` is `true`, then the template is cached. - * - * @memberof module:ejs-internal - * @param {String} path path for the specified file - * @param {Options} options compilation options - * @return {(TemplateFunction|ClientFunction)} - * Depending on the value of `options.client`, either type might be returned - * @static - */ - -function includeFile(path, options) { - var opts = utils.shallowCopy({}, options); - opts.filename = getIncludePath(path, opts); - if (typeof options.includer === 'function') { - var includerResult = options.includer(path, opts.filename); - if (includerResult) { - if (includerResult.filename) { - opts.filename = includerResult.filename; - } - if (includerResult.template) { - return handleCache(opts, includerResult.template); - } - } - } - return handleCache(opts); -} - -/** - * Re-throw the given `err` in context to the `str` of ejs, `filename`, and - * `lineno`. - * - * @implements {RethrowCallback} - * @memberof module:ejs-internal - * @param {Error} err Error object - * @param {String} str EJS source - * @param {String} flnm file name of the EJS file - * @param {Number} lineno line number of the error - * @param {EscapeCallback} esc - * @static - */ - -function rethrow(err, str, flnm, lineno, esc) { - var lines = str.split('\n'); - var start = Math.max(lineno - 3, 0); - var end = Math.min(lines.length, lineno + 3); - var filename = esc(flnm); - // Error context - var context = lines.slice(start, end).map(function (line, i){ - var curr = i + start + 1; - return (curr == lineno ? ' >> ' : ' ') - + curr - + '| ' - + line; - }).join('\n'); - - // Alter exception message - err.path = filename; - err.message = (filename || 'ejs') + ':' - + lineno + '\n' - + context + '\n\n' - + err.message; - - throw err; -} - -function stripSemi(str){ - return str.replace(/;(\s*$)/, '$1'); -} - -/** - * Compile the given `str` of ejs into a template function. - * - * @param {String} template EJS template - * - * @param {Options} [opts] compilation options - * - * @return {(TemplateFunction|ClientFunction)} - * Depending on the value of `opts.client`, either type might be returned. - * Note that the return type of the function also depends on the value of `opts.async`. - * @public - */ - -exports.compile = function compile(template, opts) { - var templ; - - // v1 compat - // 'scope' is 'context' - // FIXME: Remove this in a future version - if (opts && opts.scope) { - if (!scopeOptionWarned){ - console.warn('`scope` option is deprecated and will be removed in EJS 3'); - scopeOptionWarned = true; - } - if (!opts.context) { - opts.context = opts.scope; - } - delete opts.scope; - } - templ = new Template(template, opts); - return templ.compile(); -}; - -/** - * Render the given `template` of ejs. - * - * If you would like to include options but not data, you need to explicitly - * call this function with `data` being an empty object or `null`. - * - * @param {String} template EJS template - * @param {Object} [data={}] template data - * @param {Options} [opts={}] compilation and rendering options - * @return {(String|Promise)} - * Return value type depends on `opts.async`. - * @public - */ - -exports.render = function (template, d, o) { - var data = d || {}; - var opts = o || {}; - - // No options object -- if there are optiony names - // in the data, copy them to options - if (arguments.length == 2) { - utils.shallowCopyFromList(opts, data, _OPTS_PASSABLE_WITH_DATA); - } - - return handleCache(opts, template)(data); -}; - -/** - * Render an EJS file at the given `path` and callback `cb(err, str)`. - * - * If you would like to include options but not data, you need to explicitly - * call this function with `data` being an empty object or `null`. - * - * @param {String} path path to the EJS file - * @param {Object} [data={}] template data - * @param {Options} [opts={}] compilation and rendering options - * @param {RenderFileCallback} cb callback - * @public - */ - -exports.renderFile = function () { - var args = Array.prototype.slice.call(arguments); - var filename = args.shift(); - var cb; - var opts = {filename: filename}; - var data; - var viewOpts; - - // Do we have a callback? - if (typeof arguments[arguments.length - 1] == 'function') { - cb = args.pop(); - } - // Do we have data/opts? - if (args.length) { - // Should always have data obj - data = args.shift(); - // Normal passed opts (data obj + opts obj) - if (args.length) { - // Use shallowCopy so we don't pollute passed in opts obj with new vals - utils.shallowCopy(opts, args.pop()); - } - // Special casing for Express (settings + opts-in-data) - else { - // Express 3 and 4 - if (data.settings) { - // Pull a few things from known locations - if (data.settings.views) { - opts.views = data.settings.views; - } - if (data.settings['view cache']) { - opts.cache = true; - } - // Undocumented after Express 2, but still usable, esp. for - // items that are unsafe to be passed along with data, like `root` - viewOpts = data.settings['view options']; - if (viewOpts) { - utils.shallowCopy(opts, viewOpts); - } - } - // Express 2 and lower, values set in app.locals, or people who just - // want to pass options in their data. NOTE: These values will override - // anything previously set in settings or settings['view options'] - utils.shallowCopyFromList(opts, data, _OPTS_PASSABLE_WITH_DATA_EXPRESS); - } - opts.filename = filename; - } - else { - data = {}; - } - - return tryHandleCache(opts, data, cb); -}; - -/** - * Clear intermediate JavaScript cache. Calls {@link Cache#reset}. - * @public - */ - -/** - * EJS template class - * @public - */ -exports.Template = Template; - -exports.clearCache = function () { - exports.cache.reset(); -}; - -function Template(text, opts) { - opts = opts || {}; - var options = {}; - this.templateText = text; - /** @type {string | null} */ - this.mode = null; - this.truncate = false; - this.currentLine = 1; - this.source = ''; - options.client = opts.client || false; - options.escapeFunction = opts.escape || opts.escapeFunction || utils.escapeXML; - options.compileDebug = opts.compileDebug !== false; - options.debug = !!opts.debug; - options.filename = opts.filename; - options.openDelimiter = opts.openDelimiter || exports.openDelimiter || _DEFAULT_OPEN_DELIMITER; - options.closeDelimiter = opts.closeDelimiter || exports.closeDelimiter || _DEFAULT_CLOSE_DELIMITER; - options.delimiter = opts.delimiter || exports.delimiter || _DEFAULT_DELIMITER; - options.strict = opts.strict || false; - options.context = opts.context; - options.cache = opts.cache || false; - options.rmWhitespace = opts.rmWhitespace; - options.root = opts.root; - options.includer = opts.includer; - options.outputFunctionName = opts.outputFunctionName; - options.localsName = opts.localsName || exports.localsName || _DEFAULT_LOCALS_NAME; - options.views = opts.views; - options.async = opts.async; - options.destructuredLocals = opts.destructuredLocals; - options.legacyInclude = typeof opts.legacyInclude != 'undefined' ? !!opts.legacyInclude : true; - - if (options.strict) { - options._with = false; - } - else { - options._with = typeof opts._with != 'undefined' ? opts._with : true; - } - - this.opts = options; - - this.regex = this.createRegex(); -} - -Template.modes = { - EVAL: 'eval', - ESCAPED: 'escaped', - RAW: 'raw', - COMMENT: 'comment', - LITERAL: 'literal' -}; - -Template.prototype = { - createRegex: function () { - var str = _REGEX_STRING; - var delim = utils.escapeRegExpChars(this.opts.delimiter); - var open = utils.escapeRegExpChars(this.opts.openDelimiter); - var close = utils.escapeRegExpChars(this.opts.closeDelimiter); - str = str.replace(/%/g, delim) - .replace(//g, close); - return new RegExp(str); - }, - - compile: function () { - /** @type {string} */ - var src; - /** @type {ClientFunction} */ - var fn; - var opts = this.opts; - var prepended = ''; - var appended = ''; - /** @type {EscapeCallback} */ - var escapeFn = opts.escapeFunction; - /** @type {FunctionConstructor} */ - var ctor; - - if (!this.source) { - this.generateSource(); - prepended += - ' var __output = "";\n' + - ' function __append(s) { if (s !== undefined && s !== null) __output += s }\n'; - if (opts.outputFunctionName) { - prepended += ' var ' + opts.outputFunctionName + ' = __append;' + '\n'; - } - if (opts.destructuredLocals && opts.destructuredLocals.length) { - var destructuring = ' var __locals = (' + opts.localsName + ' || {}),\n'; - for (var i = 0; i < opts.destructuredLocals.length; i++) { - var name = opts.destructuredLocals[i]; - if (i > 0) { - destructuring += ',\n '; - } - destructuring += name + ' = __locals.' + name; - } - prepended += destructuring + ';\n'; - } - if (opts._with !== false) { - prepended += ' with (' + opts.localsName + ' || {}) {' + '\n'; - appended += ' }' + '\n'; - } - appended += ' return __output;' + '\n'; - this.source = prepended + this.source + appended; - } - - if (opts.compileDebug) { - src = 'var __line = 1' + '\n' - + ' , __lines = ' + JSON.stringify(this.templateText) + '\n' - + ' , __filename = ' + (opts.filename ? - JSON.stringify(opts.filename) : 'undefined') + ';' + '\n' - + 'try {' + '\n' - + this.source - + '} catch (e) {' + '\n' - + ' rethrow(e, __lines, __filename, __line, escapeFn);' + '\n' - + '}' + '\n'; - } - else { - src = this.source; - } - - if (opts.client) { - src = 'escapeFn = escapeFn || ' + escapeFn.toString() + ';' + '\n' + src; - if (opts.compileDebug) { - src = 'rethrow = rethrow || ' + rethrow.toString() + ';' + '\n' + src; - } - } - - if (opts.strict) { - src = '"use strict";\n' + src; - } - if (opts.debug) { - console.log(src); - } - if (opts.compileDebug && opts.filename) { - src = src + '\n' - + '//# sourceURL=' + opts.filename + '\n'; - } - - try { - if (opts.async) { - // Have to use generated function for this, since in envs without support, - // it breaks in parsing - try { - ctor = (new Function('return (async function(){}).constructor;'))(); - } - catch(e) { - if (e instanceof SyntaxError) { - throw new Error('This environment does not support async/await'); - } - else { - throw e; - } - } - } - else { - ctor = Function; - } - fn = new ctor(opts.localsName + ', escapeFn, include, rethrow', src); - } - catch(e) { - // istanbul ignore else - if (e instanceof SyntaxError) { - if (opts.filename) { - e.message += ' in ' + opts.filename; - } - e.message += ' while compiling ejs\n\n'; - e.message += 'If the above error is not helpful, you may want to try EJS-Lint:\n'; - e.message += 'https://github.com/RyanZim/EJS-Lint'; - if (!opts.async) { - e.message += '\n'; - e.message += 'Or, if you meant to create an async function, pass `async: true` as an option.'; - } - } - throw e; - } - - // Return a callable function which will execute the function - // created by the source-code, with the passed data as locals - // Adds a local `include` function which allows full recursive include - var returnedFn = opts.client ? fn : function anonymous(data) { - var include = function (path, includeData) { - var d = utils.shallowCopy({}, data); - if (includeData) { - d = utils.shallowCopy(d, includeData); - } - return includeFile(path, opts)(d); - }; - return fn.apply(opts.context, [data || {}, escapeFn, include, rethrow]); - }; - if (opts.filename && typeof Object.defineProperty === 'function') { - var filename = opts.filename; - var basename = path.basename(filename, path.extname(filename)); - try { - Object.defineProperty(returnedFn, 'name', { - value: basename, - writable: false, - enumerable: false, - configurable: true - }); - } catch (e) {/* ignore */} - } - return returnedFn; - }, - - generateSource: function () { - var opts = this.opts; - - if (opts.rmWhitespace) { - // Have to use two separate replace here as `^` and `$` operators don't - // work well with `\r` and empty lines don't work well with the `m` flag. - this.templateText = - this.templateText.replace(/[\r\n]+/g, '\n').replace(/^\s+|\s+$/gm, ''); - } - - // Slurp spaces and tabs before <%_ and after _%> - this.templateText = - this.templateText.replace(/[ \t]*<%_/gm, '<%_').replace(/_%>[ \t]*/gm, '_%>'); - - var self = this; - var matches = this.parseTemplateText(); - var d = this.opts.delimiter; - var o = this.opts.openDelimiter; - var c = this.opts.closeDelimiter; - - if (matches && matches.length) { - matches.forEach(function (line, index) { - var closing; - // If this is an opening tag, check for closing tags - // FIXME: May end up with some false positives here - // Better to store modes as k/v with openDelimiter + delimiter as key - // Then this can simply check against the map - if ( line.indexOf(o + d) === 0 // If it is a tag - && line.indexOf(o + d + d) !== 0) { // and is not escaped - closing = matches[index + 2]; - if (!(closing == d + c || closing == '-' + d + c || closing == '_' + d + c)) { - throw new Error('Could not find matching close tag for "' + line + '".'); - } - } - self.scanLine(line); - }); - } - - }, - - parseTemplateText: function () { - var str = this.templateText; - var pat = this.regex; - var result = pat.exec(str); - var arr = []; - var firstPos; - - while (result) { - firstPos = result.index; - - if (firstPos !== 0) { - arr.push(str.substring(0, firstPos)); - str = str.slice(firstPos); - } - - arr.push(result[0]); - str = str.slice(result[0].length); - result = pat.exec(str); - } - - if (str) { - arr.push(str); - } - - return arr; - }, - - _addOutput: function (line) { - if (this.truncate) { - // Only replace single leading linebreak in the line after - // -%> tag -- this is the single, trailing linebreak - // after the tag that the truncation mode replaces - // Handle Win / Unix / old Mac linebreaks -- do the \r\n - // combo first in the regex-or - line = line.replace(/^(?:\r\n|\r|\n)/, ''); - this.truncate = false; - } - if (!line) { - return line; - } - - // Preserve literal slashes - line = line.replace(/\\/g, '\\\\'); - - // Convert linebreaks - line = line.replace(/\n/g, '\\n'); - line = line.replace(/\r/g, '\\r'); - - // Escape double-quotes - // - this will be the delimiter during execution - line = line.replace(/"/g, '\\"'); - this.source += ' ; __append("' + line + '")' + '\n'; - }, - - scanLine: function (line) { - var self = this; - var d = this.opts.delimiter; - var o = this.opts.openDelimiter; - var c = this.opts.closeDelimiter; - var newLineCount = 0; - - newLineCount = (line.split('\n').length - 1); - - switch (line) { - case o + d: - case o + d + '_': - this.mode = Template.modes.EVAL; - break; - case o + d + '=': - this.mode = Template.modes.ESCAPED; - break; - case o + d + '-': - this.mode = Template.modes.RAW; - break; - case o + d + '#': - this.mode = Template.modes.COMMENT; - break; - case o + d + d: - this.mode = Template.modes.LITERAL; - this.source += ' ; __append("' + line.replace(o + d + d, o + d) + '")' + '\n'; - break; - case d + d + c: - this.mode = Template.modes.LITERAL; - this.source += ' ; __append("' + line.replace(d + d + c, d + c) + '")' + '\n'; - break; - case d + c: - case '-' + d + c: - case '_' + d + c: - if (this.mode == Template.modes.LITERAL) { - this._addOutput(line); - } - - this.mode = null; - this.truncate = line.indexOf('-') === 0 || line.indexOf('_') === 0; - break; - default: - // In script mode, depends on type of tag - if (this.mode) { - // If '//' is found without a line break, add a line break. - switch (this.mode) { - case Template.modes.EVAL: - case Template.modes.ESCAPED: - case Template.modes.RAW: - if (line.lastIndexOf('//') > line.lastIndexOf('\n')) { - line += '\n'; - } - } - switch (this.mode) { - // Just executing code - case Template.modes.EVAL: - this.source += ' ; ' + line + '\n'; - break; - // Exec, esc, and output - case Template.modes.ESCAPED: - this.source += ' ; __append(escapeFn(' + stripSemi(line) + '))' + '\n'; - break; - // Exec and output - case Template.modes.RAW: - this.source += ' ; __append(' + stripSemi(line) + ')' + '\n'; - break; - case Template.modes.COMMENT: - // Do nothing - break; - // Literal <%% mode, append as raw output - case Template.modes.LITERAL: - this._addOutput(line); - break; - } - } - // In string mode, just add the output - else { - this._addOutput(line); - } - } - - if (self.opts.compileDebug && newLineCount) { - this.currentLine += newLineCount; - this.source += ' ; __line = ' + this.currentLine + '\n'; - } - } -}; - -/** - * Escape characters reserved in XML. - * - * This is simply an export of {@link module:utils.escapeXML}. - * - * If `markup` is `undefined` or `null`, the empty string is returned. - * - * @param {String} markup Input string - * @return {String} Escaped string - * @public - * @func - * */ -exports.escapeXML = utils.escapeXML; - -/** - * Express.js support. - * - * This is an alias for {@link module:ejs.renderFile}, in order to support - * Express.js out-of-the-box. - * - * @func - */ - -exports.__express = exports.renderFile; - -/** - * Version of EJS. - * - * @readonly - * @type {String} - * @public - */ - -exports.VERSION = _VERSION_STRING; - -/** - * Name for detection of EJS. - * - * @readonly - * @type {String} - * @public - */ - -exports.name = _NAME; - -/* istanbul ignore if */ -if (typeof window != 'undefined') { - window.ejs = exports; -} diff --git a/Easebuzz_NodeJS_kit/node_modules/ejs/lib/utils.js b/Easebuzz_NodeJS_kit/node_modules/ejs/lib/utils.js deleted file mode 100644 index 5715c17..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/ejs/lib/utils.js +++ /dev/null @@ -1,167 +0,0 @@ -/* - * EJS Embedded JavaScript templates - * Copyright 2112 Matthew Eernisse (mde@fleegix.org) - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * -*/ - -/** - * Private utility functions - * @module utils - * @private - */ - -'use strict'; - -var regExpChars = /[|\\{}()[\]^$+*?.]/g; - -/** - * Escape characters reserved in regular expressions. - * - * If `string` is `undefined` or `null`, the empty string is returned. - * - * @param {String} string Input string - * @return {String} Escaped string - * @static - * @private - */ -exports.escapeRegExpChars = function (string) { - // istanbul ignore if - if (!string) { - return ''; - } - return String(string).replace(regExpChars, '\\$&'); -}; - -var _ENCODE_HTML_RULES = { - '&': '&', - '<': '<', - '>': '>', - '"': '"', - "'": ''' -}; -var _MATCH_HTML = /[&<>'"]/g; - -function encode_char(c) { - return _ENCODE_HTML_RULES[c] || c; -} - -/** - * Stringified version of constants used by {@link module:utils.escapeXML}. - * - * It is used in the process of generating {@link ClientFunction}s. - * - * @readonly - * @type {String} - */ - -var escapeFuncStr = - 'var _ENCODE_HTML_RULES = {\n' -+ ' "&": "&"\n' -+ ' , "<": "<"\n' -+ ' , ">": ">"\n' -+ ' , \'"\': """\n' -+ ' , "\'": "'"\n' -+ ' }\n' -+ ' , _MATCH_HTML = /[&<>\'"]/g;\n' -+ 'function encode_char(c) {\n' -+ ' return _ENCODE_HTML_RULES[c] || c;\n' -+ '};\n'; - -/** - * Escape characters reserved in XML. - * - * If `markup` is `undefined` or `null`, the empty string is returned. - * - * @implements {EscapeCallback} - * @param {String} markup Input string - * @return {String} Escaped string - * @static - * @private - */ - -exports.escapeXML = function (markup) { - return markup == undefined - ? '' - : String(markup) - .replace(_MATCH_HTML, encode_char); -}; -exports.escapeXML.toString = function () { - return Function.prototype.toString.call(this) + ';\n' + escapeFuncStr; -}; - -/** - * Naive copy of properties from one object to another. - * Does not recurse into non-scalar properties - * Does not check to see if the property has a value before copying - * - * @param {Object} to Destination object - * @param {Object} from Source object - * @return {Object} Destination object - * @static - * @private - */ -exports.shallowCopy = function (to, from) { - from = from || {}; - for (var p in from) { - to[p] = from[p]; - } - return to; -}; - -/** - * Naive copy of a list of key names, from one object to another. - * Only copies property if it is actually defined - * Does not recurse into non-scalar properties - * - * @param {Object} to Destination object - * @param {Object} from Source object - * @param {Array} list List of properties to copy - * @return {Object} Destination object - * @static - * @private - */ -exports.shallowCopyFromList = function (to, from, list) { - for (var i = 0; i < list.length; i++) { - var p = list[i]; - if (typeof from[p] != 'undefined') { - to[p] = from[p]; - } - } - return to; -}; - -/** - * Simple in-process cache implementation. Does not implement limits of any - * sort. - * - * @implements {Cache} - * @static - * @private - */ -exports.cache = { - _data: {}, - set: function (key, val) { - this._data[key] = val; - }, - get: function (key) { - return this._data[key]; - }, - remove: function (key) { - delete this._data[key]; - }, - reset: function () { - this._data = {}; - } -}; diff --git a/Easebuzz_NodeJS_kit/node_modules/ejs/package.json b/Easebuzz_NodeJS_kit/node_modules/ejs/package.json deleted file mode 100644 index 52d1427..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/ejs/package.json +++ /dev/null @@ -1,106 +0,0 @@ -{ - "_args": [ - [ - "ejs", - "/home/support/NodeJS" - ] - ], - "_from": "ejs@latest", - "_hasShrinkwrap": false, - "_id": "ejs@3.1.3", - "_inCache": true, - "_installable": true, - "_integrity": "", - "_location": "/ejs", - "_nodeVersion": "12.6.0", - "_npmOperationalInternal": { - "host": "s3://npm-registry-packages", - "tmp": "tmp/ejs_3.1.3_1589698834309_0.7807898341733344" - }, - "_npmUser": { - "email": "mde@fleegix.org", - "name": "mde" - }, - "_npmVersion": "6.9.0", - "_phantomChildren": {}, - "_requested": { - "name": "ejs", - "raw": "ejs", - "rawSpec": "", - "scope": null, - "spec": "latest", - "type": "tag" - }, - "_requiredBy": [ - "/" - ], - "_resolved": "https://registry.npmjs.org/ejs/-/ejs-3.1.3.tgz", - "_shasum": "514d967a8894084d18d3d47bd169a1c0560f093d", - "_shrinkwrap": null, - "_spec": "ejs", - "_where": "/home/support/NodeJS", - "author": { - "email": "mde@fleegix.org", - "name": "Matthew Eernisse", - "url": "http://fleegix.org" - }, - "bin": { - "ejs": "./bin/cli.js" - }, - "bugs": { - "url": "https://github.com/mde/ejs/issues" - }, - "dependencies": { - "jake": "^10.6.1" - }, - "description": "Embedded JavaScript templates", - "devDependencies": { - "browserify": "^16.5.1", - "eslint": "^6.8.0", - "git-directory-deploy": "^1.5.1", - "jsdoc": "^3.6.4", - "lru-cache": "^4.0.1", - "mocha": "^7.1.1", - "uglify-js": "^3.3.16" - }, - "directories": {}, - "dist": { - "fileCount": 14, - "integrity": "sha512-wmtrUGyfSC23GC/B1SMv2ogAUgbQEtDmTIhfqielrG5ExIM9TP4UoYdi90jLF1aTcsWCJNEO0UrgKzP0y3nTSg==", - "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJewOESCRA9TVsSAnZWagAAXjUP/0qgOWZ2/XUtd7cxigJh\nzZN8foKtn6+0D3IWQHvdhIPUeFirqTt5U4ygnP/XLDXclkc4nOr2YbPKWpBP\nm3ez2C/Dw3sNq38/9yuQemHGJXGZUhSeXjmvfIBAXMqslMQWn5lwUfBOlbu2\nfOoHtLCtYIaszIs1F5gAgYADldYESjJjPHRYAJrR7GKb/MF/PSzWI46kffUP\n3epjIbaFDIlMQ4FbzbyDsMJbqUmjuSDr2LmLevDPFJQTwq68ZfpbAfA/XSHY\nzhxmQLBoI5K9C6Bk6CnzgzYFoITXKy0Q4VBZRocWl8twY6+um5aLnN2jPyt0\nyn48PVa06iP8fVyERlzLJro2JMwdp/IqLWiTHqQGo54nl6aeMJPfmv4ojs0u\nAYHDe9bWwxKJ8HNYINQt0PvjxnbzeZh3gpfNtof9k2uA0iuW5h38+bENW68f\nInt3SO4f8gKwj494jGQr7bLgW9NF+V3I8Xx40Ct5VbXLFkV6mnz6uchR1iJx\nXk9PVIyw1LIQRiYJvHy8VnReJK+929q984J37/0P9w/2qJAJowI/MWfJ3hFI\nRDyvYwfM0jooVjka+O86/LxmTjJ9vAQyZ23az253e/D8290j5RxwwB+vy/AB\nOnnjHTL40A+zcWrmFVGk70XXytwCng9XRMjrwQRY3ZNYJ4kMoJQI88BrrDOz\naWfk\r\n=2smF\r\n-----END PGP SIGNATURE-----\r\n", - "shasum": "514d967a8894084d18d3d47bd169a1c0560f093d", - "tarball": "https://registry.npmjs.org/ejs/-/ejs-3.1.3.tgz", - "unpackedSize": 133861 - }, - "engines": { - "node": ">=0.10.0" - }, - "homepage": "https://github.com/mde/ejs", - "jsdelivr": "ejs.min.js", - "keywords": [ - "ejs", - "engine", - "template" - ], - "license": "Apache-2.0", - "main": "./lib/ejs.js", - "maintainers": [ - { - "name": "mde", - "email": "mde@fleegix.org" - } - ], - "name": "ejs", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git://github.com/mde/ejs.git" - }, - "scripts": { - "postinstall": "node --harmony ./postinstall.js", - "test": "mocha" - }, - "unpkg": "ejs.min.js", - "version": "3.1.3" -} diff --git a/Easebuzz_NodeJS_kit/node_modules/ejs/postinstall.js b/Easebuzz_NodeJS_kit/node_modules/ejs/postinstall.js deleted file mode 100755 index e62f3c6..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/ejs/postinstall.js +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env node - -'use strict'; - -function isTrue(value) { - return !!value && value !== '0' && value !== 'false'; -} - -let envDisable = isTrue(process.env.DISABLE_OPENCOLLECTIVE) || isTrue(process.env.CI); -let logLevel = process.env.npm_config_loglevel; -let logLevelDisplay = ['silent', 'error', 'warn'].indexOf(logLevel) > -1; - -if (!(envDisable || logLevelDisplay)) { - console.log('Thank you for installing \u001b[35mEJS\u001b[0m: built with the \u001b[32mJake\u001b[0m JavaScript build tool (\u001b[32mhttps://jakejs.com/\u001b[0m\)\n'); -} - - diff --git a/Easebuzz_NodeJS_kit/node_modules/ejs/usage.txt b/Easebuzz_NodeJS_kit/node_modules/ejs/usage.txt deleted file mode 100644 index 7469f7f..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/ejs/usage.txt +++ /dev/null @@ -1,24 +0,0 @@ -EJS Embedded JavaScript templates -{Usage}: ejs [options ...] template-file [data variables ...] - -{Options}: - -o, --output-file FILE Write the rendered output to FILE rather than stdout. - -f, --data-file FILE Must be JSON-formatted. Use parsed input from FILE as data for rendering. - -i, --data-input STRING Must be JSON-formatted and URI-encoded. Use parsed input from STRING as data for rendering. - -m, --delimiter CHARACTER Use CHARACTER with angle brackets for open/close (defaults to %). - -p, --open-delimiter CHARACTER Use CHARACTER instead of left angle bracket to open. - -c, --close-delimiter CHARACTER Use CHARACTER instead of right angle bracket to close. - -s, --strict When set to `true`, generated function is in strict mode - -n --no-with Use 'locals' object for vars rather than using `with` (implies --strict). - -l --locals-name Name to use for the object storing local variables when not using `with`. - -w --rm-whitespace Remove all safe-to-remove whitespace, including leading and trailing whitespace. - -d --debug Outputs generated function body - -h, --help Display this help message. - -V/v, --version Display the EJS version. - -{Examples}: - ejs -m $ ./test/fixtures/user.ejs -f ./user_data.json - ejs -m $ ./test/fixtures/user.ejs name=Lerxst - ejs -p [ -c ] ./template_file.ejs -o ./output.html - ejs -n -l _ ./some_template.ejs -f ./data_file.json - ejs -w ./template_with_whitspace.ejs -o ./output_file.html diff --git a/Easebuzz_NodeJS_kit/node_modules/emoji-regex/LICENSE-MIT.txt b/Easebuzz_NodeJS_kit/node_modules/emoji-regex/LICENSE-MIT.txt deleted file mode 100644 index a41e0a7..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/emoji-regex/LICENSE-MIT.txt +++ /dev/null @@ -1,20 +0,0 @@ -Copyright Mathias Bynens - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/Easebuzz_NodeJS_kit/node_modules/emoji-regex/README.md b/Easebuzz_NodeJS_kit/node_modules/emoji-regex/README.md deleted file mode 100644 index 37cf14e..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/emoji-regex/README.md +++ /dev/null @@ -1,73 +0,0 @@ -# emoji-regex [![Build status](https://travis-ci.org/mathiasbynens/emoji-regex.svg?branch=master)](https://travis-ci.org/mathiasbynens/emoji-regex) - -_emoji-regex_ offers a regular expression to match all emoji symbols (including textual representations of emoji) as per the Unicode Standard. - -This repository contains a script that generates this regular expression based on [the data from Unicode Technical Report #51](https://github.com/mathiasbynens/unicode-tr51). Because of this, the regular expression can easily be updated whenever new emoji are added to the Unicode standard. - -## Installation - -Via [npm](https://www.npmjs.com/): - -```bash -npm install emoji-regex -``` - -In [Node.js](https://nodejs.org/): - -```js -const emojiRegex = require('emoji-regex'); -// Note: because the regular expression has the global flag set, this module -// exports a function that returns the regex rather than exporting the regular -// expression itself, to make it impossible to (accidentally) mutate the -// original regular expression. - -const text = ` -\u{231A}: ⌚ default emoji presentation character (Emoji_Presentation) -\u{2194}\u{FE0F}: ↔️ default text presentation character rendered as emoji -\u{1F469}: 👩 emoji modifier base (Emoji_Modifier_Base) -\u{1F469}\u{1F3FF}: 👩🏿 emoji modifier base followed by a modifier -`; - -const regex = emojiRegex(); -let match; -while (match = regex.exec(text)) { - const emoji = match[0]; - console.log(`Matched sequence ${ emoji } — code points: ${ [...emoji].length }`); -} -``` - -Console output: - -``` -Matched sequence ⌚ — code points: 1 -Matched sequence ⌚ — code points: 1 -Matched sequence ↔️ — code points: 2 -Matched sequence ↔️ — code points: 2 -Matched sequence 👩 — code points: 1 -Matched sequence 👩 — code points: 1 -Matched sequence 👩🏿 — code points: 2 -Matched sequence 👩🏿 — code points: 2 -``` - -To match emoji in their textual representation as well (i.e. emoji that are not `Emoji_Presentation` symbols and that aren’t forced to render as emoji by a variation selector), `require` the other regex: - -```js -const emojiRegex = require('emoji-regex/text.js'); -``` - -Additionally, in environments which support ES2015 Unicode escapes, you may `require` ES2015-style versions of the regexes: - -```js -const emojiRegex = require('emoji-regex/es2015/index.js'); -const emojiRegexText = require('emoji-regex/es2015/text.js'); -``` - -## Author - -| [![twitter/mathias](https://gravatar.com/avatar/24e08a9ea84deb17ae121074d0f17125?s=70)](https://twitter.com/mathias "Follow @mathias on Twitter") | -|---| -| [Mathias Bynens](https://mathiasbynens.be/) | - -## License - -_emoji-regex_ is available under the [MIT](https://mths.be/mit) license. diff --git a/Easebuzz_NodeJS_kit/node_modules/emoji-regex/es2015/index.js b/Easebuzz_NodeJS_kit/node_modules/emoji-regex/es2015/index.js deleted file mode 100644 index 0216db9..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/emoji-regex/es2015/index.js +++ /dev/null @@ -1,6 +0,0 @@ -"use strict"; - -module.exports = () => { - // https://mths.be/emoji - return /\u{1F3F4}(?:\u{E0067}\u{E0062}(?:\u{E0065}\u{E006E}\u{E0067}|\u{E0077}\u{E006C}\u{E0073}|\u{E0073}\u{E0063}\u{E0074})\u{E007F}|\u200D\u2620\uFE0F)|\u{1F469}\u200D\u{1F469}\u200D(?:\u{1F466}\u200D\u{1F466}|\u{1F467}\u200D[\u{1F466}\u{1F467}])|\u{1F468}(?:\u200D(?:\u2764\uFE0F\u200D(?:\u{1F48B}\u200D)?\u{1F468}|[\u{1F468}\u{1F469}]\u200D(?:\u{1F466}\u200D\u{1F466}|\u{1F467}\u200D[\u{1F466}\u{1F467}])|\u{1F466}\u200D\u{1F466}|\u{1F467}\u200D[\u{1F466}\u{1F467}]|[\u{1F33E}\u{1F373}\u{1F393}\u{1F3A4}\u{1F3A8}\u{1F3EB}\u{1F3ED}\u{1F4BB}\u{1F4BC}\u{1F527}\u{1F52C}\u{1F680}\u{1F692}\u{1F9B0}-\u{1F9B3}])|[\u{1F3FB}-\u{1F3FF}]\u200D[\u{1F33E}\u{1F373}\u{1F393}\u{1F3A4}\u{1F3A8}\u{1F3EB}\u{1F3ED}\u{1F4BB}\u{1F4BC}\u{1F527}\u{1F52C}\u{1F680}\u{1F692}\u{1F9B0}-\u{1F9B3}])|\u{1F469}\u200D(?:\u2764\uFE0F\u200D(?:\u{1F48B}\u200D[\u{1F468}\u{1F469}]|[\u{1F468}\u{1F469}])|[\u{1F33E}\u{1F373}\u{1F393}\u{1F3A4}\u{1F3A8}\u{1F3EB}\u{1F3ED}\u{1F4BB}\u{1F4BC}\u{1F527}\u{1F52C}\u{1F680}\u{1F692}\u{1F9B0}-\u{1F9B3}])|\u{1F469}\u200D\u{1F466}\u200D\u{1F466}|(?:\u{1F441}\uFE0F\u200D\u{1F5E8}|\u{1F469}[\u{1F3FB}-\u{1F3FF}]\u200D[\u2695\u2696\u2708]|\u{1F468}(?:[\u{1F3FB}-\u{1F3FF}]\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:[\u26F9\u{1F3CB}\u{1F3CC}\u{1F575}]\uFE0F|[\u{1F46F}\u{1F93C}\u{1F9DE}\u{1F9DF}])\u200D[\u2640\u2642]|[\u26F9\u{1F3CB}\u{1F3CC}\u{1F575}][\u{1F3FB}-\u{1F3FF}]\u200D[\u2640\u2642]|[\u{1F3C3}\u{1F3C4}\u{1F3CA}\u{1F46E}\u{1F471}\u{1F473}\u{1F477}\u{1F481}\u{1F482}\u{1F486}\u{1F487}\u{1F645}-\u{1F647}\u{1F64B}\u{1F64D}\u{1F64E}\u{1F6A3}\u{1F6B4}-\u{1F6B6}\u{1F926}\u{1F937}-\u{1F939}\u{1F93D}\u{1F93E}\u{1F9B8}\u{1F9B9}\u{1F9D6}-\u{1F9DD}](?:[\u{1F3FB}-\u{1F3FF}]\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\u{1F469}\u200D[\u2695\u2696\u2708])\uFE0F|\u{1F469}\u200D\u{1F467}\u200D[\u{1F466}\u{1F467}]|\u{1F469}\u200D\u{1F469}\u200D[\u{1F466}\u{1F467}]|\u{1F468}(?:\u200D(?:[\u{1F468}\u{1F469}]\u200D[\u{1F466}\u{1F467}]|[\u{1F466}\u{1F467}])|[\u{1F3FB}-\u{1F3FF}])|\u{1F3F3}\uFE0F\u200D\u{1F308}|\u{1F469}\u200D\u{1F467}|\u{1F469}[\u{1F3FB}-\u{1F3FF}]\u200D[\u{1F33E}\u{1F373}\u{1F393}\u{1F3A4}\u{1F3A8}\u{1F3EB}\u{1F3ED}\u{1F4BB}\u{1F4BC}\u{1F527}\u{1F52C}\u{1F680}\u{1F692}\u{1F9B0}-\u{1F9B3}]|\u{1F469}\u200D\u{1F466}|\u{1F1F6}\u{1F1E6}|\u{1F1FD}\u{1F1F0}|\u{1F1F4}\u{1F1F2}|\u{1F469}[\u{1F3FB}-\u{1F3FF}]|\u{1F1ED}[\u{1F1F0}\u{1F1F2}\u{1F1F3}\u{1F1F7}\u{1F1F9}\u{1F1FA}]|\u{1F1EC}[\u{1F1E6}\u{1F1E7}\u{1F1E9}-\u{1F1EE}\u{1F1F1}-\u{1F1F3}\u{1F1F5}-\u{1F1FA}\u{1F1FC}\u{1F1FE}]|\u{1F1EA}[\u{1F1E6}\u{1F1E8}\u{1F1EA}\u{1F1EC}\u{1F1ED}\u{1F1F7}-\u{1F1FA}]|\u{1F1E8}[\u{1F1E6}\u{1F1E8}\u{1F1E9}\u{1F1EB}-\u{1F1EE}\u{1F1F0}-\u{1F1F5}\u{1F1F7}\u{1F1FA}-\u{1F1FF}]|\u{1F1F2}[\u{1F1E6}\u{1F1E8}-\u{1F1ED}\u{1F1F0}-\u{1F1FF}]|\u{1F1F3}[\u{1F1E6}\u{1F1E8}\u{1F1EA}-\u{1F1EC}\u{1F1EE}\u{1F1F1}\u{1F1F4}\u{1F1F5}\u{1F1F7}\u{1F1FA}\u{1F1FF}]|\u{1F1FC}[\u{1F1EB}\u{1F1F8}]|\u{1F1FA}[\u{1F1E6}\u{1F1EC}\u{1F1F2}\u{1F1F3}\u{1F1F8}\u{1F1FE}\u{1F1FF}]|\u{1F1F0}[\u{1F1EA}\u{1F1EC}-\u{1F1EE}\u{1F1F2}\u{1F1F3}\u{1F1F5}\u{1F1F7}\u{1F1FC}\u{1F1FE}\u{1F1FF}]|\u{1F1EF}[\u{1F1EA}\u{1F1F2}\u{1F1F4}\u{1F1F5}]|\u{1F1F8}[\u{1F1E6}-\u{1F1EA}\u{1F1EC}-\u{1F1F4}\u{1F1F7}-\u{1F1F9}\u{1F1FB}\u{1F1FD}-\u{1F1FF}]|\u{1F1EE}[\u{1F1E8}-\u{1F1EA}\u{1F1F1}-\u{1F1F4}\u{1F1F6}-\u{1F1F9}]|\u{1F1FF}[\u{1F1E6}\u{1F1F2}\u{1F1FC}]|\u{1F1EB}[\u{1F1EE}-\u{1F1F0}\u{1F1F2}\u{1F1F4}\u{1F1F7}]|\u{1F1F5}[\u{1F1E6}\u{1F1EA}-\u{1F1ED}\u{1F1F0}-\u{1F1F3}\u{1F1F7}-\u{1F1F9}\u{1F1FC}\u{1F1FE}]|\u{1F1E9}[\u{1F1EA}\u{1F1EC}\u{1F1EF}\u{1F1F0}\u{1F1F2}\u{1F1F4}\u{1F1FF}]|\u{1F1F9}[\u{1F1E6}\u{1F1E8}\u{1F1E9}\u{1F1EB}-\u{1F1ED}\u{1F1EF}-\u{1F1F4}\u{1F1F7}\u{1F1F9}\u{1F1FB}\u{1F1FC}\u{1F1FF}]|\u{1F1E7}[\u{1F1E6}\u{1F1E7}\u{1F1E9}-\u{1F1EF}\u{1F1F1}-\u{1F1F4}\u{1F1F6}-\u{1F1F9}\u{1F1FB}\u{1F1FC}\u{1F1FE}\u{1F1FF}]|[#\*0-9]\uFE0F\u20E3|\u{1F1F1}[\u{1F1E6}-\u{1F1E8}\u{1F1EE}\u{1F1F0}\u{1F1F7}-\u{1F1FB}\u{1F1FE}]|\u{1F1E6}[\u{1F1E8}-\u{1F1EC}\u{1F1EE}\u{1F1F1}\u{1F1F2}\u{1F1F4}\u{1F1F6}-\u{1F1FA}\u{1F1FC}\u{1F1FD}\u{1F1FF}]|\u{1F1F7}[\u{1F1EA}\u{1F1F4}\u{1F1F8}\u{1F1FA}\u{1F1FC}]|\u{1F1FB}[\u{1F1E6}\u{1F1E8}\u{1F1EA}\u{1F1EC}\u{1F1EE}\u{1F1F3}\u{1F1FA}]|\u{1F1FE}[\u{1F1EA}\u{1F1F9}]|[\u{1F3C3}\u{1F3C4}\u{1F3CA}\u{1F46E}\u{1F471}\u{1F473}\u{1F477}\u{1F481}\u{1F482}\u{1F486}\u{1F487}\u{1F645}-\u{1F647}\u{1F64B}\u{1F64D}\u{1F64E}\u{1F6A3}\u{1F6B4}-\u{1F6B6}\u{1F926}\u{1F937}-\u{1F939}\u{1F93D}\u{1F93E}\u{1F9B8}\u{1F9B9}\u{1F9D6}-\u{1F9DD}][\u{1F3FB}-\u{1F3FF}]|[\u26F9\u{1F3CB}\u{1F3CC}\u{1F575}][\u{1F3FB}-\u{1F3FF}]|[\u261D\u270A-\u270D\u{1F385}\u{1F3C2}\u{1F3C7}\u{1F442}\u{1F443}\u{1F446}-\u{1F450}\u{1F466}\u{1F467}\u{1F470}\u{1F472}\u{1F474}-\u{1F476}\u{1F478}\u{1F47C}\u{1F483}\u{1F485}\u{1F4AA}\u{1F574}\u{1F57A}\u{1F590}\u{1F595}\u{1F596}\u{1F64C}\u{1F64F}\u{1F6C0}\u{1F6CC}\u{1F918}-\u{1F91C}\u{1F91E}\u{1F91F}\u{1F930}-\u{1F936}\u{1F9B5}\u{1F9B6}\u{1F9D1}-\u{1F9D5}][\u{1F3FB}-\u{1F3FF}]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55\u{1F004}\u{1F0CF}\u{1F18E}\u{1F191}-\u{1F19A}\u{1F1E6}-\u{1F1FF}\u{1F201}\u{1F21A}\u{1F22F}\u{1F232}-\u{1F236}\u{1F238}-\u{1F23A}\u{1F250}\u{1F251}\u{1F300}-\u{1F320}\u{1F32D}-\u{1F335}\u{1F337}-\u{1F37C}\u{1F37E}-\u{1F393}\u{1F3A0}-\u{1F3CA}\u{1F3CF}-\u{1F3D3}\u{1F3E0}-\u{1F3F0}\u{1F3F4}\u{1F3F8}-\u{1F43E}\u{1F440}\u{1F442}-\u{1F4FC}\u{1F4FF}-\u{1F53D}\u{1F54B}-\u{1F54E}\u{1F550}-\u{1F567}\u{1F57A}\u{1F595}\u{1F596}\u{1F5A4}\u{1F5FB}-\u{1F64F}\u{1F680}-\u{1F6C5}\u{1F6CC}\u{1F6D0}-\u{1F6D2}\u{1F6EB}\u{1F6EC}\u{1F6F4}-\u{1F6F9}\u{1F910}-\u{1F93A}\u{1F93C}-\u{1F93E}\u{1F940}-\u{1F945}\u{1F947}-\u{1F970}\u{1F973}-\u{1F976}\u{1F97A}\u{1F97C}-\u{1F9A2}\u{1F9B0}-\u{1F9B9}\u{1F9C0}-\u{1F9C2}\u{1F9D0}-\u{1F9FF}]|[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299\u{1F004}\u{1F0CF}\u{1F170}\u{1F171}\u{1F17E}\u{1F17F}\u{1F18E}\u{1F191}-\u{1F19A}\u{1F1E6}-\u{1F1FF}\u{1F201}\u{1F202}\u{1F21A}\u{1F22F}\u{1F232}-\u{1F23A}\u{1F250}\u{1F251}\u{1F300}-\u{1F321}\u{1F324}-\u{1F393}\u{1F396}\u{1F397}\u{1F399}-\u{1F39B}\u{1F39E}-\u{1F3F0}\u{1F3F3}-\u{1F3F5}\u{1F3F7}-\u{1F4FD}\u{1F4FF}-\u{1F53D}\u{1F549}-\u{1F54E}\u{1F550}-\u{1F567}\u{1F56F}\u{1F570}\u{1F573}-\u{1F57A}\u{1F587}\u{1F58A}-\u{1F58D}\u{1F590}\u{1F595}\u{1F596}\u{1F5A4}\u{1F5A5}\u{1F5A8}\u{1F5B1}\u{1F5B2}\u{1F5BC}\u{1F5C2}-\u{1F5C4}\u{1F5D1}-\u{1F5D3}\u{1F5DC}-\u{1F5DE}\u{1F5E1}\u{1F5E3}\u{1F5E8}\u{1F5EF}\u{1F5F3}\u{1F5FA}-\u{1F64F}\u{1F680}-\u{1F6C5}\u{1F6CB}-\u{1F6D2}\u{1F6E0}-\u{1F6E5}\u{1F6E9}\u{1F6EB}\u{1F6EC}\u{1F6F0}\u{1F6F3}-\u{1F6F9}\u{1F910}-\u{1F93A}\u{1F93C}-\u{1F93E}\u{1F940}-\u{1F945}\u{1F947}-\u{1F970}\u{1F973}-\u{1F976}\u{1F97A}\u{1F97C}-\u{1F9A2}\u{1F9B0}-\u{1F9B9}\u{1F9C0}-\u{1F9C2}\u{1F9D0}-\u{1F9FF}]\uFE0F|[\u261D\u26F9\u270A-\u270D\u{1F385}\u{1F3C2}-\u{1F3C4}\u{1F3C7}\u{1F3CA}-\u{1F3CC}\u{1F442}\u{1F443}\u{1F446}-\u{1F450}\u{1F466}-\u{1F469}\u{1F46E}\u{1F470}-\u{1F478}\u{1F47C}\u{1F481}-\u{1F483}\u{1F485}-\u{1F487}\u{1F4AA}\u{1F574}\u{1F575}\u{1F57A}\u{1F590}\u{1F595}\u{1F596}\u{1F645}-\u{1F647}\u{1F64B}-\u{1F64F}\u{1F6A3}\u{1F6B4}-\u{1F6B6}\u{1F6C0}\u{1F6CC}\u{1F918}-\u{1F91C}\u{1F91E}\u{1F91F}\u{1F926}\u{1F930}-\u{1F939}\u{1F93D}\u{1F93E}\u{1F9B5}\u{1F9B6}\u{1F9B8}\u{1F9B9}\u{1F9D1}-\u{1F9DD}]/gu; -}; diff --git a/Easebuzz_NodeJS_kit/node_modules/emoji-regex/es2015/text.js b/Easebuzz_NodeJS_kit/node_modules/emoji-regex/es2015/text.js deleted file mode 100644 index d0a771d..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/emoji-regex/es2015/text.js +++ /dev/null @@ -1,6 +0,0 @@ -"use strict"; - -module.exports = () => { - // https://mths.be/emoji - return /\u{1F3F4}(?:\u{E0067}\u{E0062}(?:\u{E0065}\u{E006E}\u{E0067}|\u{E0077}\u{E006C}\u{E0073}|\u{E0073}\u{E0063}\u{E0074})\u{E007F}|\u200D\u2620\uFE0F)|\u{1F469}\u200D\u{1F469}\u200D(?:\u{1F466}\u200D\u{1F466}|\u{1F467}\u200D[\u{1F466}\u{1F467}])|\u{1F468}(?:\u200D(?:\u2764\uFE0F\u200D(?:\u{1F48B}\u200D)?\u{1F468}|[\u{1F468}\u{1F469}]\u200D(?:\u{1F466}\u200D\u{1F466}|\u{1F467}\u200D[\u{1F466}\u{1F467}])|\u{1F466}\u200D\u{1F466}|\u{1F467}\u200D[\u{1F466}\u{1F467}]|[\u{1F33E}\u{1F373}\u{1F393}\u{1F3A4}\u{1F3A8}\u{1F3EB}\u{1F3ED}\u{1F4BB}\u{1F4BC}\u{1F527}\u{1F52C}\u{1F680}\u{1F692}\u{1F9B0}-\u{1F9B3}])|[\u{1F3FB}-\u{1F3FF}]\u200D[\u{1F33E}\u{1F373}\u{1F393}\u{1F3A4}\u{1F3A8}\u{1F3EB}\u{1F3ED}\u{1F4BB}\u{1F4BC}\u{1F527}\u{1F52C}\u{1F680}\u{1F692}\u{1F9B0}-\u{1F9B3}])|\u{1F469}\u200D(?:\u2764\uFE0F\u200D(?:\u{1F48B}\u200D[\u{1F468}\u{1F469}]|[\u{1F468}\u{1F469}])|[\u{1F33E}\u{1F373}\u{1F393}\u{1F3A4}\u{1F3A8}\u{1F3EB}\u{1F3ED}\u{1F4BB}\u{1F4BC}\u{1F527}\u{1F52C}\u{1F680}\u{1F692}\u{1F9B0}-\u{1F9B3}])|\u{1F469}\u200D\u{1F466}\u200D\u{1F466}|(?:\u{1F441}\uFE0F\u200D\u{1F5E8}|\u{1F469}[\u{1F3FB}-\u{1F3FF}]\u200D[\u2695\u2696\u2708]|\u{1F468}(?:[\u{1F3FB}-\u{1F3FF}]\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:[\u26F9\u{1F3CB}\u{1F3CC}\u{1F575}]\uFE0F|[\u{1F46F}\u{1F93C}\u{1F9DE}\u{1F9DF}])\u200D[\u2640\u2642]|[\u26F9\u{1F3CB}\u{1F3CC}\u{1F575}][\u{1F3FB}-\u{1F3FF}]\u200D[\u2640\u2642]|[\u{1F3C3}\u{1F3C4}\u{1F3CA}\u{1F46E}\u{1F471}\u{1F473}\u{1F477}\u{1F481}\u{1F482}\u{1F486}\u{1F487}\u{1F645}-\u{1F647}\u{1F64B}\u{1F64D}\u{1F64E}\u{1F6A3}\u{1F6B4}-\u{1F6B6}\u{1F926}\u{1F937}-\u{1F939}\u{1F93D}\u{1F93E}\u{1F9B8}\u{1F9B9}\u{1F9D6}-\u{1F9DD}](?:[\u{1F3FB}-\u{1F3FF}]\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\u{1F469}\u200D[\u2695\u2696\u2708])\uFE0F|\u{1F469}\u200D\u{1F467}\u200D[\u{1F466}\u{1F467}]|\u{1F469}\u200D\u{1F469}\u200D[\u{1F466}\u{1F467}]|\u{1F468}(?:\u200D(?:[\u{1F468}\u{1F469}]\u200D[\u{1F466}\u{1F467}]|[\u{1F466}\u{1F467}])|[\u{1F3FB}-\u{1F3FF}])|\u{1F3F3}\uFE0F\u200D\u{1F308}|\u{1F469}\u200D\u{1F467}|\u{1F469}[\u{1F3FB}-\u{1F3FF}]\u200D[\u{1F33E}\u{1F373}\u{1F393}\u{1F3A4}\u{1F3A8}\u{1F3EB}\u{1F3ED}\u{1F4BB}\u{1F4BC}\u{1F527}\u{1F52C}\u{1F680}\u{1F692}\u{1F9B0}-\u{1F9B3}]|\u{1F469}\u200D\u{1F466}|\u{1F1F6}\u{1F1E6}|\u{1F1FD}\u{1F1F0}|\u{1F1F4}\u{1F1F2}|\u{1F469}[\u{1F3FB}-\u{1F3FF}]|\u{1F1ED}[\u{1F1F0}\u{1F1F2}\u{1F1F3}\u{1F1F7}\u{1F1F9}\u{1F1FA}]|\u{1F1EC}[\u{1F1E6}\u{1F1E7}\u{1F1E9}-\u{1F1EE}\u{1F1F1}-\u{1F1F3}\u{1F1F5}-\u{1F1FA}\u{1F1FC}\u{1F1FE}]|\u{1F1EA}[\u{1F1E6}\u{1F1E8}\u{1F1EA}\u{1F1EC}\u{1F1ED}\u{1F1F7}-\u{1F1FA}]|\u{1F1E8}[\u{1F1E6}\u{1F1E8}\u{1F1E9}\u{1F1EB}-\u{1F1EE}\u{1F1F0}-\u{1F1F5}\u{1F1F7}\u{1F1FA}-\u{1F1FF}]|\u{1F1F2}[\u{1F1E6}\u{1F1E8}-\u{1F1ED}\u{1F1F0}-\u{1F1FF}]|\u{1F1F3}[\u{1F1E6}\u{1F1E8}\u{1F1EA}-\u{1F1EC}\u{1F1EE}\u{1F1F1}\u{1F1F4}\u{1F1F5}\u{1F1F7}\u{1F1FA}\u{1F1FF}]|\u{1F1FC}[\u{1F1EB}\u{1F1F8}]|\u{1F1FA}[\u{1F1E6}\u{1F1EC}\u{1F1F2}\u{1F1F3}\u{1F1F8}\u{1F1FE}\u{1F1FF}]|\u{1F1F0}[\u{1F1EA}\u{1F1EC}-\u{1F1EE}\u{1F1F2}\u{1F1F3}\u{1F1F5}\u{1F1F7}\u{1F1FC}\u{1F1FE}\u{1F1FF}]|\u{1F1EF}[\u{1F1EA}\u{1F1F2}\u{1F1F4}\u{1F1F5}]|\u{1F1F8}[\u{1F1E6}-\u{1F1EA}\u{1F1EC}-\u{1F1F4}\u{1F1F7}-\u{1F1F9}\u{1F1FB}\u{1F1FD}-\u{1F1FF}]|\u{1F1EE}[\u{1F1E8}-\u{1F1EA}\u{1F1F1}-\u{1F1F4}\u{1F1F6}-\u{1F1F9}]|\u{1F1FF}[\u{1F1E6}\u{1F1F2}\u{1F1FC}]|\u{1F1EB}[\u{1F1EE}-\u{1F1F0}\u{1F1F2}\u{1F1F4}\u{1F1F7}]|\u{1F1F5}[\u{1F1E6}\u{1F1EA}-\u{1F1ED}\u{1F1F0}-\u{1F1F3}\u{1F1F7}-\u{1F1F9}\u{1F1FC}\u{1F1FE}]|\u{1F1E9}[\u{1F1EA}\u{1F1EC}\u{1F1EF}\u{1F1F0}\u{1F1F2}\u{1F1F4}\u{1F1FF}]|\u{1F1F9}[\u{1F1E6}\u{1F1E8}\u{1F1E9}\u{1F1EB}-\u{1F1ED}\u{1F1EF}-\u{1F1F4}\u{1F1F7}\u{1F1F9}\u{1F1FB}\u{1F1FC}\u{1F1FF}]|\u{1F1E7}[\u{1F1E6}\u{1F1E7}\u{1F1E9}-\u{1F1EF}\u{1F1F1}-\u{1F1F4}\u{1F1F6}-\u{1F1F9}\u{1F1FB}\u{1F1FC}\u{1F1FE}\u{1F1FF}]|[#\*0-9]\uFE0F\u20E3|\u{1F1F1}[\u{1F1E6}-\u{1F1E8}\u{1F1EE}\u{1F1F0}\u{1F1F7}-\u{1F1FB}\u{1F1FE}]|\u{1F1E6}[\u{1F1E8}-\u{1F1EC}\u{1F1EE}\u{1F1F1}\u{1F1F2}\u{1F1F4}\u{1F1F6}-\u{1F1FA}\u{1F1FC}\u{1F1FD}\u{1F1FF}]|\u{1F1F7}[\u{1F1EA}\u{1F1F4}\u{1F1F8}\u{1F1FA}\u{1F1FC}]|\u{1F1FB}[\u{1F1E6}\u{1F1E8}\u{1F1EA}\u{1F1EC}\u{1F1EE}\u{1F1F3}\u{1F1FA}]|\u{1F1FE}[\u{1F1EA}\u{1F1F9}]|[\u{1F3C3}\u{1F3C4}\u{1F3CA}\u{1F46E}\u{1F471}\u{1F473}\u{1F477}\u{1F481}\u{1F482}\u{1F486}\u{1F487}\u{1F645}-\u{1F647}\u{1F64B}\u{1F64D}\u{1F64E}\u{1F6A3}\u{1F6B4}-\u{1F6B6}\u{1F926}\u{1F937}-\u{1F939}\u{1F93D}\u{1F93E}\u{1F9B8}\u{1F9B9}\u{1F9D6}-\u{1F9DD}][\u{1F3FB}-\u{1F3FF}]|[\u26F9\u{1F3CB}\u{1F3CC}\u{1F575}][\u{1F3FB}-\u{1F3FF}]|[\u261D\u270A-\u270D\u{1F385}\u{1F3C2}\u{1F3C7}\u{1F442}\u{1F443}\u{1F446}-\u{1F450}\u{1F466}\u{1F467}\u{1F470}\u{1F472}\u{1F474}-\u{1F476}\u{1F478}\u{1F47C}\u{1F483}\u{1F485}\u{1F4AA}\u{1F574}\u{1F57A}\u{1F590}\u{1F595}\u{1F596}\u{1F64C}\u{1F64F}\u{1F6C0}\u{1F6CC}\u{1F918}-\u{1F91C}\u{1F91E}\u{1F91F}\u{1F930}-\u{1F936}\u{1F9B5}\u{1F9B6}\u{1F9D1}-\u{1F9D5}][\u{1F3FB}-\u{1F3FF}]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55\u{1F004}\u{1F0CF}\u{1F18E}\u{1F191}-\u{1F19A}\u{1F1E6}-\u{1F1FF}\u{1F201}\u{1F21A}\u{1F22F}\u{1F232}-\u{1F236}\u{1F238}-\u{1F23A}\u{1F250}\u{1F251}\u{1F300}-\u{1F320}\u{1F32D}-\u{1F335}\u{1F337}-\u{1F37C}\u{1F37E}-\u{1F393}\u{1F3A0}-\u{1F3CA}\u{1F3CF}-\u{1F3D3}\u{1F3E0}-\u{1F3F0}\u{1F3F4}\u{1F3F8}-\u{1F43E}\u{1F440}\u{1F442}-\u{1F4FC}\u{1F4FF}-\u{1F53D}\u{1F54B}-\u{1F54E}\u{1F550}-\u{1F567}\u{1F57A}\u{1F595}\u{1F596}\u{1F5A4}\u{1F5FB}-\u{1F64F}\u{1F680}-\u{1F6C5}\u{1F6CC}\u{1F6D0}-\u{1F6D2}\u{1F6EB}\u{1F6EC}\u{1F6F4}-\u{1F6F9}\u{1F910}-\u{1F93A}\u{1F93C}-\u{1F93E}\u{1F940}-\u{1F945}\u{1F947}-\u{1F970}\u{1F973}-\u{1F976}\u{1F97A}\u{1F97C}-\u{1F9A2}\u{1F9B0}-\u{1F9B9}\u{1F9C0}-\u{1F9C2}\u{1F9D0}-\u{1F9FF}]|[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299\u{1F004}\u{1F0CF}\u{1F170}\u{1F171}\u{1F17E}\u{1F17F}\u{1F18E}\u{1F191}-\u{1F19A}\u{1F1E6}-\u{1F1FF}\u{1F201}\u{1F202}\u{1F21A}\u{1F22F}\u{1F232}-\u{1F23A}\u{1F250}\u{1F251}\u{1F300}-\u{1F321}\u{1F324}-\u{1F393}\u{1F396}\u{1F397}\u{1F399}-\u{1F39B}\u{1F39E}-\u{1F3F0}\u{1F3F3}-\u{1F3F5}\u{1F3F7}-\u{1F4FD}\u{1F4FF}-\u{1F53D}\u{1F549}-\u{1F54E}\u{1F550}-\u{1F567}\u{1F56F}\u{1F570}\u{1F573}-\u{1F57A}\u{1F587}\u{1F58A}-\u{1F58D}\u{1F590}\u{1F595}\u{1F596}\u{1F5A4}\u{1F5A5}\u{1F5A8}\u{1F5B1}\u{1F5B2}\u{1F5BC}\u{1F5C2}-\u{1F5C4}\u{1F5D1}-\u{1F5D3}\u{1F5DC}-\u{1F5DE}\u{1F5E1}\u{1F5E3}\u{1F5E8}\u{1F5EF}\u{1F5F3}\u{1F5FA}-\u{1F64F}\u{1F680}-\u{1F6C5}\u{1F6CB}-\u{1F6D2}\u{1F6E0}-\u{1F6E5}\u{1F6E9}\u{1F6EB}\u{1F6EC}\u{1F6F0}\u{1F6F3}-\u{1F6F9}\u{1F910}-\u{1F93A}\u{1F93C}-\u{1F93E}\u{1F940}-\u{1F945}\u{1F947}-\u{1F970}\u{1F973}-\u{1F976}\u{1F97A}\u{1F97C}-\u{1F9A2}\u{1F9B0}-\u{1F9B9}\u{1F9C0}-\u{1F9C2}\u{1F9D0}-\u{1F9FF}]\uFE0F?|[\u261D\u26F9\u270A-\u270D\u{1F385}\u{1F3C2}-\u{1F3C4}\u{1F3C7}\u{1F3CA}-\u{1F3CC}\u{1F442}\u{1F443}\u{1F446}-\u{1F450}\u{1F466}-\u{1F469}\u{1F46E}\u{1F470}-\u{1F478}\u{1F47C}\u{1F481}-\u{1F483}\u{1F485}-\u{1F487}\u{1F4AA}\u{1F574}\u{1F575}\u{1F57A}\u{1F590}\u{1F595}\u{1F596}\u{1F645}-\u{1F647}\u{1F64B}-\u{1F64F}\u{1F6A3}\u{1F6B4}-\u{1F6B6}\u{1F6C0}\u{1F6CC}\u{1F918}-\u{1F91C}\u{1F91E}\u{1F91F}\u{1F926}\u{1F930}-\u{1F939}\u{1F93D}\u{1F93E}\u{1F9B5}\u{1F9B6}\u{1F9B8}\u{1F9B9}\u{1F9D1}-\u{1F9DD}]/gu; -}; diff --git a/Easebuzz_NodeJS_kit/node_modules/emoji-regex/index.d.ts b/Easebuzz_NodeJS_kit/node_modules/emoji-regex/index.d.ts deleted file mode 100644 index 2c317cd..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/emoji-regex/index.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -declare module 'emoji-regex' { - function emojiRegex(): RegExp; - - export default emojiRegex; -} diff --git a/Easebuzz_NodeJS_kit/node_modules/emoji-regex/index.js b/Easebuzz_NodeJS_kit/node_modules/emoji-regex/index.js deleted file mode 100644 index e2237a4..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/emoji-regex/index.js +++ /dev/null @@ -1,6 +0,0 @@ -"use strict"; - -module.exports = function () { - // https://mths.be/emoji - return /\uD83C\uDFF4(?:\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74)\uDB40\uDC7F|\u200D\u2620\uFE0F)|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC68(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDB0-\uDDB3])|(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDB0-\uDDB3]))|\uD83D\uDC69\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDB0-\uDDB3])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\uD83D\uDC68(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83D\uDC69\u200D[\u2695\u2696\u2708])\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC68(?:\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDB0-\uDDB3])|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDD1-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDEEB\uDEEC\uDEF4-\uDEF9]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD70\uDD73-\uDD76\uDD7A\uDD7C-\uDDA2\uDDB0-\uDDB9\uDDC0-\uDDC2\uDDD0-\uDDFF])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEF9]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD70\uDD73-\uDD76\uDD7A\uDD7C-\uDDA2\uDDB0-\uDDB9\uDDC0-\uDDC2\uDDD0-\uDDFF])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC69\uDC6E\uDC70-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD26\uDD30-\uDD39\uDD3D\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDD1-\uDDDD])/g; -}; diff --git a/Easebuzz_NodeJS_kit/node_modules/emoji-regex/package.json b/Easebuzz_NodeJS_kit/node_modules/emoji-regex/package.json deleted file mode 100644 index 2e8168e..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/emoji-regex/package.json +++ /dev/null @@ -1,78 +0,0 @@ -{ - "_from": "emoji-regex@^7.0.1", - "_id": "emoji-regex@7.0.3", - "_inBundle": false, - "_integrity": "sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA==", - "_location": "/emoji-regex", - "_phantomChildren": {}, - "_requested": { - "type": "range", - "registry": true, - "raw": "emoji-regex@^7.0.1", - "name": "emoji-regex", - "escapedName": "emoji-regex", - "rawSpec": "^7.0.1", - "saveSpec": null, - "fetchSpec": "^7.0.1" - }, - "_requiredBy": [ - "/ansi-align/string-width" - ], - "_resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-7.0.3.tgz", - "_shasum": "933a04052860c85e83c122479c4748a8e4c72156", - "_spec": "emoji-regex@^7.0.1", - "_where": "/home/ankit/Downloads/NodeJS/node_modules/ansi-align/node_modules/string-width", - "author": { - "name": "Mathias Bynens", - "url": "https://mathiasbynens.be/" - }, - "bugs": { - "url": "https://github.com/mathiasbynens/emoji-regex/issues" - }, - "bundleDependencies": false, - "deprecated": false, - "description": "A regular expression to match all Emoji-only symbols as per the Unicode Standard.", - "devDependencies": { - "@babel/cli": "^7.0.0", - "@babel/core": "^7.0.0", - "@babel/plugin-proposal-unicode-property-regex": "^7.0.0", - "@babel/preset-env": "^7.0.0", - "mocha": "^5.2.0", - "regexgen": "^1.3.0", - "unicode-11.0.0": "^0.7.7", - "unicode-tr51": "^9.0.1" - }, - "files": [ - "LICENSE-MIT.txt", - "index.js", - "index.d.ts", - "text.js", - "es2015/index.js", - "es2015/text.js" - ], - "homepage": "https://mths.be/emoji-regex", - "keywords": [ - "unicode", - "regex", - "regexp", - "regular expressions", - "code points", - "symbols", - "characters", - "emoji" - ], - "license": "MIT", - "main": "index.js", - "name": "emoji-regex", - "repository": { - "type": "git", - "url": "git+https://github.com/mathiasbynens/emoji-regex.git" - }, - "scripts": { - "build": "rm -rf -- es2015; babel src -d .; NODE_ENV=es2015 babel src -d ./es2015; node script/inject-sequences.js", - "test": "mocha", - "test:watch": "npm run test -- --watch" - }, - "types": "index.d.ts", - "version": "7.0.3" -} diff --git a/Easebuzz_NodeJS_kit/node_modules/emoji-regex/text.js b/Easebuzz_NodeJS_kit/node_modules/emoji-regex/text.js deleted file mode 100644 index 199ae3b..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/emoji-regex/text.js +++ /dev/null @@ -1,6 +0,0 @@ -"use strict"; - -module.exports = function () { - // https://mths.be/emoji - return /\uD83C\uDFF4(?:\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74)\uDB40\uDC7F|\u200D\u2620\uFE0F)|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC68(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDB0-\uDDB3])|(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDB0-\uDDB3]))|\uD83D\uDC69\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDB0-\uDDB3])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\uD83D\uDC68(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83D\uDC69\u200D[\u2695\u2696\u2708])\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC68(?:\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDB0-\uDDB3])|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDD1-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDEEB\uDEEC\uDEF4-\uDEF9]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD70\uDD73-\uDD76\uDD7A\uDD7C-\uDDA2\uDDB0-\uDDB9\uDDC0-\uDDC2\uDDD0-\uDDFF])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEF9]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD70\uDD73-\uDD76\uDD7A\uDD7C-\uDDA2\uDDB0-\uDDB9\uDDC0-\uDDC2\uDDD0-\uDDFF])\uFE0F?|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC69\uDC6E\uDC70-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD26\uDD30-\uDD39\uDD3D\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDD1-\uDDDD])/g; -}; diff --git a/Easebuzz_NodeJS_kit/node_modules/end-of-stream/LICENSE b/Easebuzz_NodeJS_kit/node_modules/end-of-stream/LICENSE deleted file mode 100644 index 757562e..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/end-of-stream/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2014 Mathias Buus - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/end-of-stream/README.md b/Easebuzz_NodeJS_kit/node_modules/end-of-stream/README.md deleted file mode 100644 index 857b14b..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/end-of-stream/README.md +++ /dev/null @@ -1,54 +0,0 @@ -# end-of-stream - -A node module that calls a callback when a readable/writable/duplex stream has completed or failed. - - npm install end-of-stream - -[![Build status](https://travis-ci.org/mafintosh/end-of-stream.svg?branch=master)](https://travis-ci.org/mafintosh/end-of-stream) - -## Usage - -Simply pass a stream and a callback to the `eos`. -Both legacy streams, streams2 and stream3 are supported. - -``` js -var eos = require('end-of-stream'); - -eos(readableStream, function(err) { - // this will be set to the stream instance - if (err) return console.log('stream had an error or closed early'); - console.log('stream has ended', this === readableStream); -}); - -eos(writableStream, function(err) { - if (err) return console.log('stream had an error or closed early'); - console.log('stream has finished', this === writableStream); -}); - -eos(duplexStream, function(err) { - if (err) return console.log('stream had an error or closed early'); - console.log('stream has ended and finished', this === duplexStream); -}); - -eos(duplexStream, {readable:false}, function(err) { - if (err) return console.log('stream had an error or closed early'); - console.log('stream has finished but might still be readable'); -}); - -eos(duplexStream, {writable:false}, function(err) { - if (err) return console.log('stream had an error or closed early'); - console.log('stream has ended but might still be writable'); -}); - -eos(readableStream, {error:false}, function(err) { - // do not treat emit('error', err) as a end-of-stream -}); -``` - -## License - -MIT - -## Related - -`end-of-stream` is part of the [mississippi stream utility collection](https://github.com/maxogden/mississippi) which includes more useful stream modules similar to this one. diff --git a/Easebuzz_NodeJS_kit/node_modules/end-of-stream/index.js b/Easebuzz_NodeJS_kit/node_modules/end-of-stream/index.js deleted file mode 100644 index c77f0d5..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/end-of-stream/index.js +++ /dev/null @@ -1,94 +0,0 @@ -var once = require('once'); - -var noop = function() {}; - -var isRequest = function(stream) { - return stream.setHeader && typeof stream.abort === 'function'; -}; - -var isChildProcess = function(stream) { - return stream.stdio && Array.isArray(stream.stdio) && stream.stdio.length === 3 -}; - -var eos = function(stream, opts, callback) { - if (typeof opts === 'function') return eos(stream, null, opts); - if (!opts) opts = {}; - - callback = once(callback || noop); - - var ws = stream._writableState; - var rs = stream._readableState; - var readable = opts.readable || (opts.readable !== false && stream.readable); - var writable = opts.writable || (opts.writable !== false && stream.writable); - var cancelled = false; - - var onlegacyfinish = function() { - if (!stream.writable) onfinish(); - }; - - var onfinish = function() { - writable = false; - if (!readable) callback.call(stream); - }; - - var onend = function() { - readable = false; - if (!writable) callback.call(stream); - }; - - var onexit = function(exitCode) { - callback.call(stream, exitCode ? new Error('exited with error code: ' + exitCode) : null); - }; - - var onerror = function(err) { - callback.call(stream, err); - }; - - var onclose = function() { - process.nextTick(onclosenexttick); - }; - - var onclosenexttick = function() { - if (cancelled) return; - if (readable && !(rs && (rs.ended && !rs.destroyed))) return callback.call(stream, new Error('premature close')); - if (writable && !(ws && (ws.ended && !ws.destroyed))) return callback.call(stream, new Error('premature close')); - }; - - var onrequest = function() { - stream.req.on('finish', onfinish); - }; - - if (isRequest(stream)) { - stream.on('complete', onfinish); - stream.on('abort', onclose); - if (stream.req) onrequest(); - else stream.on('request', onrequest); - } else if (writable && !ws) { // legacy streams - stream.on('end', onlegacyfinish); - stream.on('close', onlegacyfinish); - } - - if (isChildProcess(stream)) stream.on('exit', onexit); - - stream.on('end', onend); - stream.on('finish', onfinish); - if (opts.error !== false) stream.on('error', onerror); - stream.on('close', onclose); - - return function() { - cancelled = true; - stream.removeListener('complete', onfinish); - stream.removeListener('abort', onclose); - stream.removeListener('request', onrequest); - if (stream.req) stream.req.removeListener('finish', onfinish); - stream.removeListener('end', onlegacyfinish); - stream.removeListener('close', onlegacyfinish); - stream.removeListener('finish', onfinish); - stream.removeListener('exit', onexit); - stream.removeListener('end', onend); - stream.removeListener('error', onerror); - stream.removeListener('close', onclose); - }; -}; - -module.exports = eos; diff --git a/Easebuzz_NodeJS_kit/node_modules/end-of-stream/package.json b/Easebuzz_NodeJS_kit/node_modules/end-of-stream/package.json deleted file mode 100644 index a55e3be..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/end-of-stream/package.json +++ /dev/null @@ -1,65 +0,0 @@ -{ - "_from": "end-of-stream@^1.1.0", - "_id": "end-of-stream@1.4.4", - "_inBundle": false, - "_integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", - "_location": "/end-of-stream", - "_phantomChildren": {}, - "_requested": { - "type": "range", - "registry": true, - "raw": "end-of-stream@^1.1.0", - "name": "end-of-stream", - "escapedName": "end-of-stream", - "rawSpec": "^1.1.0", - "saveSpec": null, - "fetchSpec": "^1.1.0" - }, - "_requiredBy": [ - "/pump" - ], - "_resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", - "_shasum": "5ae64a5f45057baf3626ec14da0ca5e4b2431eb0", - "_spec": "end-of-stream@^1.1.0", - "_where": "/home/ankit/Downloads/NodeJS/node_modules/pump", - "author": { - "name": "Mathias Buus", - "email": "mathiasbuus@gmail.com" - }, - "bugs": { - "url": "https://github.com/mafintosh/end-of-stream/issues" - }, - "bundleDependencies": false, - "dependencies": { - "once": "^1.4.0" - }, - "deprecated": false, - "description": "Call a callback when a readable/writable/duplex stream has completed or failed.", - "devDependencies": { - "tape": "^4.11.0" - }, - "files": [ - "index.js" - ], - "homepage": "https://github.com/mafintosh/end-of-stream", - "keywords": [ - "stream", - "streams", - "callback", - "finish", - "close", - "end", - "wait" - ], - "license": "MIT", - "main": "index.js", - "name": "end-of-stream", - "repository": { - "type": "git", - "url": "git://github.com/mafintosh/end-of-stream.git" - }, - "scripts": { - "test": "node test.js" - }, - "version": "1.4.4" -} diff --git a/Easebuzz_NodeJS_kit/node_modules/escape-goat/index.d.ts b/Easebuzz_NodeJS_kit/node_modules/escape-goat/index.d.ts deleted file mode 100644 index 4f46024..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/escape-goat/index.d.ts +++ /dev/null @@ -1,62 +0,0 @@ -/** -Escape a string for use in HTML. - -Escapes the following characters in the given `string` argument: `&` `<` `>` `"` `'`. - -@example -``` -import {htmlEscape} from 'escape-goat'; - -htmlEscape('🦄 & 🐐'); -//=> '🦄 & 🐐' - -htmlEscape('Hello World'); -//=> 'Hello <em>World</em>' -``` -*/ -export function htmlEscape(string: string): string; - -/** -Unescape an HTML string to use as a plain string. - -Unescapes the following HTML entities in the given `htmlString` argument: `&` `<` `>` `"` `'`. - -@example -``` -import {htmlUnescape} from 'escape-goat'; - -htmlUnescape('🦄 & 🐐'); -//=> '🦄 & 🐐' -``` -*/ -export function htmlUnescape(htmlString: string): string; - -/** -[Tagged template literal](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Template_literals#Tagged_template_literals) that escapes interpolated values. - -@example -``` -import {htmlEscapeTag} from 'escape-goat'; - -const url = 'https://sindresorhus.com?x="🦄"'; - -htmlEscapeTag`Unicorn`; -//=> 'Unicorn' -``` -*/ -export function htmlEscapeTag(template: TemplateStringsArray, ...substitutions: readonly unknown[]): string; - -/** -[Tagged template literal](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Template_literals#Tagged_template_literals) that unescapes interpolated values. - -@example -``` -import {htmlUnescapeTag} from 'escape-goat'; - -const escapedUrl = 'https://sindresorhus.com?x="🦄"'; - -htmlUnescapeTag`URL from HTML: ${url}`; -//=> 'URL from HTML: https://sindresorhus.com?x="🦄"' -``` -*/ -export function htmlUnescapeTag(template: TemplateStringsArray, ...substitutions: readonly unknown[]): string; diff --git a/Easebuzz_NodeJS_kit/node_modules/escape-goat/index.js b/Easebuzz_NodeJS_kit/node_modules/escape-goat/index.js deleted file mode 100644 index 0960d55..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/escape-goat/index.js +++ /dev/null @@ -1,33 +0,0 @@ -'use strict'; - -exports.htmlEscape = string => string - .replace(/&/g, '&') - .replace(/"/g, '"') - .replace(/'/g, ''') - .replace(//g, '>'); - -exports.htmlUnescape = htmlString => htmlString - .replace(/>/g, '>') - .replace(/</g, '<') - .replace(/�?39;/g, '\'') - .replace(/"/g, '"') - .replace(/&/g, '&'); - -exports.htmlEscapeTag = (strings, ...values) => { - let output = strings[0]; - for (let i = 0; i < values.length; i++) { - output = output + exports.htmlEscape(String(values[i])) + strings[i + 1]; - } - - return output; -}; - -exports.htmlUnescapeTag = (strings, ...values) => { - let output = strings[0]; - for (let i = 0; i < values.length; i++) { - output = output + exports.htmlUnescape(String(values[i])) + strings[i + 1]; - } - - return output; -}; diff --git a/Easebuzz_NodeJS_kit/node_modules/escape-goat/license b/Easebuzz_NodeJS_kit/node_modules/escape-goat/license deleted file mode 100644 index e7af2f7..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/escape-goat/license +++ /dev/null @@ -1,9 +0,0 @@ -MIT License - -Copyright (c) Sindre Sorhus (sindresorhus.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/Easebuzz_NodeJS_kit/node_modules/escape-goat/package.json b/Easebuzz_NodeJS_kit/node_modules/escape-goat/package.json deleted file mode 100644 index 94a21bf..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/escape-goat/package.json +++ /dev/null @@ -1,77 +0,0 @@ -{ - "_from": "escape-goat@^2.0.0", - "_id": "escape-goat@2.1.1", - "_inBundle": false, - "_integrity": "sha512-8/uIhbG12Csjy2JEW7D9pHbreaVaS/OpN3ycnyvElTdwM5n6GY6W6e2IPemfvGZeUMqZ9A/3GqIZMgKnBhAw/Q==", - "_location": "/escape-goat", - "_phantomChildren": {}, - "_requested": { - "type": "range", - "registry": true, - "raw": "escape-goat@^2.0.0", - "name": "escape-goat", - "escapedName": "escape-goat", - "rawSpec": "^2.0.0", - "saveSpec": null, - "fetchSpec": "^2.0.0" - }, - "_requiredBy": [ - "/pupa" - ], - "_resolved": "https://registry.npmjs.org/escape-goat/-/escape-goat-2.1.1.tgz", - "_shasum": "1b2dc77003676c457ec760b2dc68edb648188675", - "_spec": "escape-goat@^2.0.0", - "_where": "/home/ankit/Downloads/NodeJS/node_modules/pupa", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "bugs": { - "url": "https://github.com/sindresorhus/escape-goat/issues" - }, - "bundleDependencies": false, - "deprecated": false, - "description": "Escape a string for use in HTML or the inverse", - "devDependencies": { - "ava": "^1.4.1", - "tsd": "^0.7.2", - "xo": "^0.24.0" - }, - "engines": { - "node": ">=8" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "homepage": "https://github.com/sindresorhus/escape-goat#readme", - "keywords": [ - "escape", - "unescape", - "html", - "entity", - "entities", - "escaping", - "sanitize", - "sanitization", - "utility", - "template", - "attribute", - "value", - "interpolate", - "xss", - "goat", - "🐐" - ], - "license": "MIT", - "name": "escape-goat", - "repository": { - "type": "git", - "url": "git+https://github.com/sindresorhus/escape-goat.git" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "version": "2.1.1" -} diff --git a/Easebuzz_NodeJS_kit/node_modules/escape-goat/readme.md b/Easebuzz_NodeJS_kit/node_modules/escape-goat/readme.md deleted file mode 100644 index 56f33d3..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/escape-goat/readme.md +++ /dev/null @@ -1,76 +0,0 @@ -

- escape-goat -

- -> Escape a string for use in HTML or the inverse - -[![Build Status](https://travis-ci.org/sindresorhus/escape-goat.svg?branch=master)](https://travis-ci.org/sindresorhus/escape-goat) - - -## Install - -``` -$ npm install escape-goat -``` - - -## Usage - -```js -const {htmlEscape, htmlUnescape, htmlEscapeTag, htmlUnescapeTag} = require('escape-goat'); - -htmlEscape('🦄 & 🐐'); -//=> '🦄 & 🐐' - -htmlUnescape('🦄 & 🐐'); -//=> '🦄 & 🐐' - -htmlEscape('Hello World'); -//=> 'Hello <em>World</em>' - -const url = 'https://sindresorhus.com?x="🦄"'; - -htmlEscapeTag`Unicorn`; -//=> 'Unicorn' - -const escapedUrl = 'https://sindresorhus.com?x="🦄"'; - -htmlUnescapeTag`URL from HTML: ${url}`; -//=> 'URL from HTML: https://sindresorhus.com?x="🦄"' -``` - - -## API - -### htmlEscape(string) - -Escapes the following characters in the given `string` argument: `&` `<` `>` `"` `'` - -### htmlUnescape(htmlString) - -Unescapes the following HTML entities in the given `htmlString` argument: `&` `<` `>` `"` `'` - -### htmlEscapeTag - -[Tagged template literal](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Template_literals#Tagged_template_literals) that escapes interpolated values. - -### htmlUnescapeTag - -[Tagged template literal](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Template_literals#Tagged_template_literals) that unescapes interpolated values. - - -## Tip - -Ensure you always quote your HTML attributes to prevent possible [XSS](https://en.wikipedia.org/wiki/Cross-site_scripting). - - -## FAQ - -### Why yet another HTML escaping package? - -I couldn't find one I liked that was tiny, well-tested, and had both `.escape()` and `.unescape()`. - - -## License - -MIT © [Sindre Sorhus](https://sindresorhus.com) diff --git a/Easebuzz_NodeJS_kit/node_modules/escape-string-regexp/index.js b/Easebuzz_NodeJS_kit/node_modules/escape-string-regexp/index.js deleted file mode 100644 index 7834bf9..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/escape-string-regexp/index.js +++ /dev/null @@ -1,11 +0,0 @@ -'use strict'; - -var matchOperatorsRe = /[|\\{}()[\]^$+*?.]/g; - -module.exports = function (str) { - if (typeof str !== 'string') { - throw new TypeError('Expected a string'); - } - - return str.replace(matchOperatorsRe, '\\$&'); -}; diff --git a/Easebuzz_NodeJS_kit/node_modules/escape-string-regexp/license b/Easebuzz_NodeJS_kit/node_modules/escape-string-regexp/license deleted file mode 100644 index 654d0bf..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/escape-string-regexp/license +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) Sindre Sorhus (sindresorhus.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/Easebuzz_NodeJS_kit/node_modules/escape-string-regexp/package.json b/Easebuzz_NodeJS_kit/node_modules/escape-string-regexp/package.json deleted file mode 100644 index d0574fb..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/escape-string-regexp/package.json +++ /dev/null @@ -1,101 +0,0 @@ -{ - "_args": [ - [ - "escape-string-regexp@^1.0.5", - "/home/support/NodeJS/node_modules/jake/node_modules/chalk" - ] - ], - "_from": "escape-string-regexp@>=1.0.5 <2.0.0", - "_id": "escape-string-regexp@1.0.5", - "_inCache": true, - "_installable": true, - "_location": "/escape-string-regexp", - "_nodeVersion": "4.2.6", - "_npmOperationalInternal": { - "host": "packages-9-west.internal.npmjs.com", - "tmp": "tmp/escape-string-regexp-1.0.5.tgz_1456059312074_0.7245344955008477" - }, - "_npmUser": { - "email": "jappelman@xebia.com", - "name": "jbnicolai" - }, - "_npmVersion": "2.14.12", - "_phantomChildren": {}, - "_requested": { - "name": "escape-string-regexp", - "raw": "escape-string-regexp@^1.0.5", - "rawSpec": "^1.0.5", - "scope": null, - "spec": ">=1.0.5 <2.0.0", - "type": "range" - }, - "_requiredBy": [ - "/jake/chalk" - ], - "_resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "_shasum": "1b61c0562190a8dff6ae3bb2cf0200ca130b86d4", - "_shrinkwrap": null, - "_spec": "escape-string-regexp@^1.0.5", - "_where": "/home/support/NodeJS/node_modules/jake/node_modules/chalk", - "author": { - "email": "sindresorhus@gmail.com", - "name": "Sindre Sorhus", - "url": "sindresorhus.com" - }, - "bugs": { - "url": "https://github.com/sindresorhus/escape-string-regexp/issues" - }, - "dependencies": {}, - "description": "Escape RegExp special characters", - "devDependencies": { - "ava": "*", - "xo": "*" - }, - "directories": {}, - "dist": { - "shasum": "1b61c0562190a8dff6ae3bb2cf0200ca130b86d4", - "tarball": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz" - }, - "engines": { - "node": ">=0.8.0" - }, - "files": [ - "index.js" - ], - "gitHead": "db124a3e1aae9d692c4899e42a5c6c3e329eaa20", - "homepage": "https://github.com/sindresorhus/escape-string-regexp", - "keywords": [ - "characters", - "escape", - "expression", - "re", - "regex", - "regexp", - "regular", - "special", - "str", - "string" - ], - "license": "MIT", - "maintainers": [ - { - "name": "sindresorhus", - "email": "sindresorhus@gmail.com" - }, - { - "name": "jbnicolai", - "email": "jappelman@xebia.com" - } - ], - "name": "escape-string-regexp", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git+https://github.com/sindresorhus/escape-string-regexp.git" - }, - "scripts": { - "test": "xo && ava" - }, - "version": "1.0.5" -} diff --git a/Easebuzz_NodeJS_kit/node_modules/escape-string-regexp/readme.md b/Easebuzz_NodeJS_kit/node_modules/escape-string-regexp/readme.md deleted file mode 100644 index 87ac82d..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/escape-string-regexp/readme.md +++ /dev/null @@ -1,27 +0,0 @@ -# escape-string-regexp [![Build Status](https://travis-ci.org/sindresorhus/escape-string-regexp.svg?branch=master)](https://travis-ci.org/sindresorhus/escape-string-regexp) - -> Escape RegExp special characters - - -## Install - -``` -$ npm install --save escape-string-regexp -``` - - -## Usage - -```js -const escapeStringRegexp = require('escape-string-regexp'); - -const escapedString = escapeStringRegexp('how much $ for a unicorn?'); -//=> 'how much \$ for a unicorn\?' - -new RegExp(escapedString); -``` - - -## License - -MIT © [Sindre Sorhus](http://sindresorhus.com) diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/LICENSE b/Easebuzz_NodeJS_kit/node_modules/express-validator/LICENSE deleted file mode 100644 index 711d88b..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2010 Chris O'Hara - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/README.md b/Easebuzz_NodeJS_kit/node_modules/express-validator/README.md deleted file mode 100644 index ba3dad5..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/README.md +++ /dev/null @@ -1,32 +0,0 @@ -# express-validator - -[![npm version](https://img.shields.io/npm/v/express-validator.svg)](https://www.npmjs.com/package/express-validator) -[![Build Status](https://img.shields.io/travis/express-validator/express-validator.svg)](http://travis-ci.org/express-validator/express-validator) -[![Dependency Status](https://img.shields.io/david/express-validator/express-validator.svg)](https://david-dm.org/express-validator/express-validator) -[![Coverage Status](https://img.shields.io/coveralls/express-validator/express-validator.svg)](https://coveralls.io/github/express-validator/express-validator?branch=master) - -An [express.js]( https://github.com/visionmedia/express ) middleware for -[validator]( https://github.com/chriso/validator.js ). - -- [Installation](#installation) -- [Documentation](#documentation) -- [Changelog](#changelog) -- [License](#license) - -## Installation -``` -npm install express-validator -``` - -Also make sure that you have Node.js 8 or newer in order to use it. - -## Documentation -Please refer to the documentation website on https://express-validator.github.io. - -## Changelog - -Check the [GitHub Releases page](https://github.com/express-validator/express-validator/releases). - -## License - -MIT License diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/check/index.d.ts b/Easebuzz_NodeJS_kit/node_modules/express-validator/check/index.d.ts deleted file mode 100644 index 72fd9c8..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/check/index.d.ts +++ /dev/null @@ -1 +0,0 @@ -export { Location, Meta, CustomValidator, DynamicMessageCreator, ValidationError, ValidationChain, check, body, cookie, header, param, query, buildCheckFunction, checkSchema, Schema, ValidationSchema, ParamSchema, ValidationParamSchema, oneOf, OneOfCustomMessageBuilder, validationResult, ErrorFormatter, Result, ResultFactory, } from '../src'; diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/check/index.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/check/index.js deleted file mode 100644 index dfc23d9..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/check/index.js +++ /dev/null @@ -1,20 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -var src_1 = require("../src"); -// middleware/validation-chain-builders -exports.check = src_1.check; -exports.body = src_1.body; -exports.cookie = src_1.cookie; -exports.header = src_1.header; -exports.param = src_1.param; -exports.query = src_1.query; -exports.buildCheckFunction = src_1.buildCheckFunction; -// middleware/schema -exports.checkSchema = src_1.checkSchema; -// middleware/one-of -exports.oneOf = src_1.oneOf; -// validation-result -exports.validationResult = src_1.validationResult; -exports.Result = src_1.Result; -console.warn('express-validator: requires to express-validator/check are deprecated.' + - 'You should just use require("express-validator") instead.'); diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/docs/api-check.md b/Easebuzz_NodeJS_kit/node_modules/express-validator/docs/api-check.md deleted file mode 100644 index baee4ce..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/docs/api-check.md +++ /dev/null @@ -1,110 +0,0 @@ ---- -id: check-api -title: Validation middlewares ---- - -These methods are all available via `require('express-validator')`. - -## `check([field, message])` -- `field` *(optional)*: a string or an array of strings of field names to validate against. -- `message` *(optional)*: an error message to use when failed validators don't specify a message. Defaults to `Invalid value`; see also [Dynamic Messages](feature-error-messages.md#dynamic-messages). -> *Returns:* a [Validation Chain](api-validation-chain.md) - -Creates a validation chain for one or more fields. They may be located in any of the following request objects: -- `req.body` -- `req.cookies` -- `req.headers` -- `req.params` -- `req.query` - -If any of the fields are present in more than one location, then all instances of that field value must pass the validation. - -**Note:** If `fields` is omitted, then the whole request location will be validated. -This is only useful for `req.body`, though; see [Whole Body Validation](feature-whole-body-validation.md) for examples. - -The validators will always be executed serially for the same field. -This means that if the chain targets more than one field, those will run in parallel, but each of their validators are serial. - -## `body([fields, message])` -Same as `check([fields, message])`, but only checking `req.body`. - -## `cookie([fields, message])` -Same as `check([fields, message])`, but only checking `req.cookies`. - -## `header([fields, message])` -Same as `check([fields, message])`, but only checking `req.headers`. - -## `param([fields, message])` -Same as `check([fields, message])`, but only checking `req.params`. - -## `query([fields, message])` -Same as `check([fields, message])`, but only checking `req.query`. - -## `checkSchema(schema)` -- `schema`: the schema to validate. Must comply with the format described in [Schema Validation](feature-schema-validation.md). -> *Returns:* an array of validation chains - -## `oneOf(validationChains[, message])` -- `validationChains`: an array of [validation chains](api-validation-chain.md) created with `check()` or any of its variations, - or an array of arrays containing validation chains. -- `message` *(optional)*: an error message to use when all chains failed. Defaults to `Invalid value(s)`; see also [Dynamic Messages](feature-error-messages.md#dynamic-messages). -> *Returns:* a middleware instance - -Creates a middleware instance that will ensure at least one of the given chains passes the validation. -If none of the given chains passes, an error will be pushed to the `_error` pseudo-field, -using the given `message`, and the errors of each chain will be made available under a key `nestedErrors`. - -Example: - -```js -const { check, oneOf, validationResult } = require('express-validator'); -app.post('/start-freelancing', oneOf([ - check('programming_language').isIn(['javascript', 'java', 'php']), - check('design_tools').isIn(['canva', 'photoshop', 'gimp']) -]), (req, res, next) => { - try { - validationResult(req).throw(); - - // yay! we're good to start selling our skilled services :))) - res.json(...); - } catch (err) { - // Oh noes. This user doesn't have enough skills for this... - res.status(422).json(...); - } -}); -``` - -If an item of the array is an array containing validation chains, then all of those must pass in order for this -group be considered valid: - -```js -// This protected route must be accessed either by passing both username + password, -// or by passing an access token -app.post('/protected/route', oneOf([ - [ - check('username').exists(), - check('password').exists() - ], - check('access_token').exists() -]), someRouteHandler); -``` - -The execution of those validation chains are made in parallel, -while the execution within a chain still respects the rule defined in the [`check()` function](#check-field-message). - -## `buildCheckFunction(locations)` -- `locations`: an array of request locations to gather data from. - May include any of `body`, `cookies`, `headers`, `params` or `query`. -> *Returns:* a variant of [`check()`](#check-field-message) checking the given request locations. - -Creates a variant of [`check()`](#check-field-message) that checks the given request locations. - -```js -const { buildCheckFunction } = require('express-validator'); -const checkBodyAndQuery = buildCheckFunction(['body', 'query']); - -app.put('/update-product', [ - // id must be either in req.body or req.query, and must be an UUID - checkBodyAndQuery('id').isUUID() -], productUpdateHandler) -``` diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/docs/api-filter.md b/Easebuzz_NodeJS_kit/node_modules/express-validator/docs/api-filter.md deleted file mode 100644 index c35ac68..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/docs/api-filter.md +++ /dev/null @@ -1,65 +0,0 @@ ---- -id: filter-api -title: Sanitization middlewares ---- - -These methods are all available via `require('express-validator')`. - -> These sanitization-only middlewares have been deprecated, as **the [validation middlewares](api-check.md) -offer the same functionality**, and much more. -> They will be removed eventually. - -## `sanitize(fields)` -- `field`: a string or an array of strings of field names to validate against. -> *Returns:* a [Sanitization Chain](api-sanitization-chain.md) - -> [Prefer using `check()` instead](api-check.md#checkfields-message). This function has been deprecated. - -Creates a sanitization chain for one or more fields. They may be located in any of the following request objects: -- `req.body` -- `req.cookies` -- `req.params` -- `req.query` - -_* `req.headers` is **not** supported at the moment._ - -If any of the fields are present in more than one location, then all instances of that field value will be sanitized. - -## `sanitizeBody(fields)` -Same as `sanitize(fields)`, but only sanitizing `req.body`. - -> [Prefer using `body()` instead](api-check.md#bodyfields-message). This function has been deprecated. - -## `sanitizeCookie(fields)` -Same as `sanitize(fields)`, but only sanitizing `req.cookies`. - -> [Prefer using `cookie()` instead](api-check.md#cookiefields-message). This function has been deprecated. - -## `sanitizeParam(fields)` -Same as `sanitize(fields)`, but only sanitizing `req.params`. - -> [Prefer using `param()` instead](api-check.md#paramfields-message). This function has been deprecated. - -## `sanitizeQuery(fields)` -Same as `sanitize(fields)`, but only sanitizing `req.query`. - -> [Prefer using `query()` instead](api-check.md#queryfields-message). This function has been deprecated. - -## `buildSanitizeFunction(locations)` -- `locations`: an array of request locations to gather data from. - May include any of `body`, `cookies`, `params` or `query`. -> *Returns:* a variant of [`sanitize()`](#sanitizefields) sanitizing the given request locations. - -> [Prefer using `buildCheckFunction()` instead](api-check.md#buildcheckfunctionlocations). This function has been deprecated. - -Creates a variant of [`sanitize()`](#sanitizefields) that sanitizes the given request locations. - -```js -const { buildSanitizeFunction } = require('express-validator'); -const sanitizeBodyAndQuery = buildSanitizeFunction(['body', 'query']); - -app.put('/update-product', [ - // id being either in req.body or req.query will be converted to int - sanitizeBodyAndQuery('id').toInt() -], productUpdateHandler) -``` \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/docs/api-matched-data.md b/Easebuzz_NodeJS_kit/node_modules/express-validator/docs/api-matched-data.md deleted file mode 100644 index ee0702f..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/docs/api-matched-data.md +++ /dev/null @@ -1,62 +0,0 @@ ---- -id: matched-data-api -title: matchedData() ---- - -These methods are all available via `require('express-validator')`. - -## `matchedData(req[, options])` -- `req`: the express request object. -- `options` *(optional)*: an object which accepts the following options: - - `includeOptionals`: if set to `true`, the returned value includes optional data. Defaults to `false`. - - `onlyValidData`: if set to `false`, the returned value includes data from fields - that didn't pass their validations. Defaults to `true`. - - `locations`: an array of locations to extract the data from. The acceptable values include - `body`, `cookies`, `headers`, `params` and `query`. Defaults to `undefined`, which means all locations. -> *Returns:* an object of data that express-validator has validated or sanitized. - -Extracts data validated or sanitized by express-validator from the request and builds -an object with them. Nested paths and wildcards are properly handled as well. -See examples below. - -## Examples -### Gathering data from multiple locations -If data you validated or sanitized is spread across various request locations -(e.g. `req.body`, `req.query`, `req.params`, etc), then `matchedData` will gather it properly. -You can also customize which locations you want the data from. - -```js -// Suppose the request looks like this: -// req.query = { from: '2017-01-12' } -// req.body = { to: '2017-31-12' } - -app.post('/room-availability', check(['from', 'to']).isISO8601(), (req, res, next) => { - const queryData = matchedData(req, { locations: ['query'] }); - const bodyData = matchedData(req, { locations: ['body'] }); - const allData = matchedData(req); - console.log(queryData); // { from: '2017-01-12' } - console.log(bodyData); // { to: '2017-31-12' } - console.log(allData); // { from: '2017-01-12', to: '2017-31-12' } -}); -``` - -### Including optional data -You may want to have [optional values](api-validation-chain.md#optionaloptions) among the required ones. - -If they are not included, some databases might understand that you don't want to update those values, -so it's useful to set them to `null` or an empty string. - -```js -// Suppose the request looks like this: -// req.body = { name: 'John Doe', bio: '' } - -app.post('/update-user', [ - check('name').not().isEmpty(), - check('bio').optional({ checkFalsy: true }).escape(), -], (req, res, next) => { - const requiredData = matchedData(req, { includeOptionals: false }); - const allData = matchedData(req, { includeOptionals: true }); - console.log(requiredData); // { name: 'John Doe' } - console.log(allData); // { name: 'John Doe', bio: '' } -}); -``` diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/docs/api-sanitization-chain.md b/Easebuzz_NodeJS_kit/node_modules/express-validator/docs/api-sanitization-chain.md deleted file mode 100644 index 9088a35..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/docs/api-sanitization-chain.md +++ /dev/null @@ -1,77 +0,0 @@ ---- -id: sanitization-chain-api -title: Sanitization Chain API ---- - -The sanitization chain is a middleware, and it _should_ be passed to an Express route handler. - -You can add as many sanitizers to a chain as you need. -When the middleware runs, it will modify each field in place, applying each of the sanitizers in the order they were specified: - -```js -const { body } = require('express-validator'); -app.get('/', body('trimMe').trim(), (req, res, next) => { - // If req.body.trimMe was originally " something ", - // its sanitized value will be "something" - console.log(req.body.trimMe); -}); -``` - -## Standard sanitizers -All sanitizers listed by validator.js are made available within a Sanitization Chain, -and are called "standard sanitizers" in express-validator. - -This means you can use any of those methods, e.g. `normalizeEmail`, `trim`, `toInt`, etc. - -> **For a complete list of standard sanitizers and their options**, -> please check [validator.js' docs](https://github.com/chriso/validator.js#sanitizers). - -## Additional methods -In addition to the standard sanitizers, the following methods are also available within a Sanitization Chain: - -### `.customSanitizer(sanitizer)` -- `sanitizer(value, { req, location, path })`: the custom sanitizer function. - Receives the value of the field being sanitized, as well as the express request, the location and the field path. -> *Returns:* the current sanitization chain instance - -Adds a custom sanitizer to the current sanitization chain. It must synchronously return the new value. - -Example: - -```js -const { param } = require('express-validator'); -app.get('/object/:id', param('id').customSanitizer((value, { req }) => { - return req.query.type === 'user' ? ObjectId(value) : Number(value); -}), objectHandler) -``` - -### `.run(req)` -> *Returns:* a promise that resolves when the sanitization chain ran. - -Runs the current sanitization chain in an imperative way. - -```js -const { check } = require('express-validator'); -app.post('/create-post', async (req, res, next) => { - // BEFORE: - // req.body.content = ' hey your forum is amazing! '; - await check('content').escape().trim().run(req); - - // AFTER: - // req.body.content = 'hey your forum is amazing! <script>runEvilFunction();</script>'; -}); -``` - -### `.toArray()` -> *Returns:* the current sanitization chain instance - -Converts the value to an array. `undefined` will result in an empty array. - -```js -app.post('/', [body('checkboxes').toArray()], (req, res, next) => { - // ['foo', 'bar] => ['foo', 'bar'] - // 'foo' => ['foo'] - // undefined => [] - console.log(req.body.checkboxes); -}); -``` diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/docs/api-validation-chain.md b/Easebuzz_NodeJS_kit/node_modules/express-validator/docs/api-validation-chain.md deleted file mode 100644 index d3b09d9..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/docs/api-validation-chain.md +++ /dev/null @@ -1,195 +0,0 @@ ---- -id: validation-chain-api -title: Validation Chain API ---- - -The validation chain is a middleware, and it _should_ be passed to an Express route handler. - -You can add as many validators and sanitizers to a chain as you need. -When the middleware runs, it will run each validator or sanitizer in the order they were specified; -this means if a sanitizer is specified before a validator, the validator will run with the sanitized -value. - -> **Note:** Chains are mutable. Every time you call one of its methods, you're adding more behavior to the same chain. -> Keep this in mind and note that you probably want to use a factory function when reusing some base chain. - -## Standard validators -All validators listed by validator.js are made available within a Validation Chain, -and are called "standard validators" in express-validator. - -This means you can use any of those methods, e.g. `isInt`, `isEmail`, `contains`, etc. - -> **For a complete list of standard validators and their options**, -> please check [validator.js' docs](https://github.com/chriso/validator.js#validators). - -## Sanitization Chain API -A validation chain also is a subset of the [Sanitization Chain](api-sanitization-chain.md), meaning -all standard sanitizers and its additional methods are available: - -```js -app.post('/create-user', [ - // normalizeEmail() and toDate() are sanitizers, also available in the Sanitization Chain - check('email').normalizeEmail().isEmail(), - check('date-of-birth').isISO8601().toDate() -]); -``` - -## Additional methods -In addition to the standard validators and the [Sanitization Chain API](api-sanitization-chain.md), -the following methods are also available within a Validation Chain: - -### `.bail()` -> *Returns:* the current validation chain instance - -Stops running validations if any of the previous ones have failed. -Useful to prevent a custom validator that touches a database or external API from running when you -know it will fail. - -`.bail()` can be used multiple times in the same validation chain if needed: - -```js -app.post('/', [ - check('username') - .isEmail() - .bail() - // If username is not an email, checkBlacklistedDomain will never run - .custom(checkBlacklistedDomain) - .bail() - // If username is not an email or has a blacklisted domain, checkEmailExists will never run - .custom(checkEmailExists); -]); -``` - -### `.custom(validator)` -- `validator(value, { req, location, path })`: the custom validator function. -Receives the value of the field being validated, as well as the express request, the location and the field path. -> *Returns:* the current validation chain instance - -Adds a custom validator to the current validation chain. -The custom validator may return a promise to indicate an async validation task. -- If it's rejected, the field is considered invalid; -- If it's resolved, the field is considered valid **regardless of the returned value**. - -The custom validator may also throw JavaScript exceptions (eg `throw new Error()`) and return falsy values to indicate the field is invalid. - -Example: - -```js -app.post('/create-user', [ - check('password').exists(), - check('passwordConfirmation', 'passwordConfirmation field must have the same value as the password field') - .exists() - .custom((value, { req }) => value === req.body.password) -], loginHandler); -``` - -### `.exists(options)` -- `options` *(optional)*: an object of options to customize the behavior of exists. -> *Returns:* the current validation chain instance - -Adds a validator to check for the existence of the current fields in the request. -This means the value of the fields may not be `undefined`; all other values are acceptable. - -You can customize this behavior by passing an object with the following options: -- `checkNull`: if `true`, fields with `null` values will not exist -- `checkFalsy`: if `true`, fields with falsy values (eg `""`, `0`, `false`, `null`) will also not exist - -### `.if(condition)` -- `condition`: the condition for this Validation Chain to continue validating. -> *Returns:* the current validation chain instance - -Adds a condition for deciding if validation should continue on a field or not. - -The condition can be either: -- A custom validator-like function: `condition(value, { req, path, location })`. - Receives the value of the field being validated, as well as the express request, the location and the field path. - - If it returns truthy or a promise that resolves, the validation chain will continue -running. If it returns falsy, a promise that rejects or if it throws, the validation chain will stop. -- A validation chain [created through `check()` or similar functions](api-check.md#check-field-message). - - If running that chain would produce errors, then the validation chain will stop. - -```js -body('oldPassword') - // if the new password is provided... - .if((value, { req }) => req.body.newPassword) - // OR - .if(body('newPassword').exists()) - // ...then the old password must be too... - .not().empty() - // ...and they must not be equal. - .custom((value, { req }) => value !== req.body.newPassword) -``` - -### `.isArray(options)` -- `options` *(optional)*: an object which accepts the following options: - - `min`: minimum array length. - - `max`: maximum array length. -> *Returns:* the current validation chain instance - -Adds a validator to check if a value is an array. - -### `.isString()` -> *Returns:* the current validation chain instance - -Adds a validator to check if a value is a string. - -### `.not()` -> *Returns:* the current validation chain instance - -Negates the result of the next validator. - -```js -check('weekday').not().isIn(['sunday', 'saturday']) -``` - -### `.notEmpty()` -> *Returns:* the current validation chain instance - -Adds a validator to check if a value is not empty; that is, a string with a length of 1 or bigger. - -```js -check('username').notEmpty() -``` - -### `.optional(options)` -- `options` *(optional)*: an object of options to customize the behaviour of optional. -> *Returns:* the current validation chain instance - -Marks the current validation chain as optional. -This is useful to remove values that are not essential to your business and that would cause validation failures in case they were not provided in the request. - -By default, fields with `undefined` values will be ignored from the validation. - -You can customize this behavior by passing an object with the following options: -- `nullable`: if `true`, fields with `null` values will be considered optional -- `checkFalsy`: if `true`, fields with falsy values (eg `""`, `0`, `false`, `null`) will also be considered optional - -### `.run(req)` -> *Returns:* a promise that resolves when the validation chain ran. - -Runs the current validation chain in an imperative way. - -```js -app.post('/create-user', async (req, res, next) => { - await check('email').isEmail().run(req); - await check('password').isLength({ min: 6 }).run(req); - - const result = validationResult(req); - if (!result.isEmpty()) { - return res.status(422).json({ errors: result.array() }); - } - - // user can be created now! -}); -``` - -### `.withMessage(message)` -- `message`: the error message to use for the previous validator -> *Returns:* the current validation chain instance - -Sets the error message for the previous validator. -This will have precedence over errors thrown by a custom validator. - -To build dynamic messages, see also [Dynamic Messages](feature-error-messages.md#dynamic-messages). diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/docs/api-validation-result.md b/Easebuzz_NodeJS_kit/node_modules/express-validator/docs/api-validation-result.md deleted file mode 100644 index 91f35c7..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/docs/api-validation-result.md +++ /dev/null @@ -1,120 +0,0 @@ ---- -id: validation-result-api -title: validationResult() ---- - -These methods are all available via `require('express-validator')`. - -## `validationResult(req)` -- `req`: the express request object -> *Returns:* a [`Result`](#result) object - -Extracts the validation errors from a request and makes them available in a [`Result`](#result) object. - -Each error returned by [`.array()`](#array-options) and [`.mapped()`](#mapped) methods -has the following format _by default_: - -```js -{ - "msg": "The error message", - "param": "param.name.with.index[0]", - "value": "param value", - // Location of the param that generated this error. - // It's either body, query, params, cookies or headers. - "location": "body", - - // nestedErrors only exist when using the oneOf function - "nestedErrors": [{ ... }] -} -``` - - -### `.withDefaults(options)` -- `options` *(optional)*: an object of options. Defaults to `{ formatter: error => error }` -> *Returns:* a new [`validationResult`](#validationresultreq) function, using the provided options - -Creates a new `validationResult()`-like function with default options passed to the generated -[`Result`](#result) instance. - -Below is an example which sets a default error formatter: - -```js -const { validationResult } = require('express-validator'); - -const myValidationResult = validationResult.withDefaults({ - formatter: (error) => { - return { - myLocation: error.location, - }; - } -}); - -app.post('/create-user', yourValidationChains, (req, res) => { - // errors will be like [{ myLocation: 'body' }, { myLocation: 'query' }], etc - const errors = myValidationResult(req).array(); -}); -``` - -## `Result` -An object that holds the current state of validation errors in a request and allows access to it in -a variety of ways. - -### `.isEmpty()` -> *Returns:* a boolean indicating whether this result object contains no errors at all. - -```js -app.post('/create-user', yourValidationChains, (req, res) => { - const result = validationResult(req); - const hasErrors = !result.isEmpty(); - // do something if hasErrors is true -}); -``` - -### `.formatWith(formatter)` -- `formatter(error)`: the function to use to format when returning errors. - The `error` argument is an object in the format of `{ location, msg, param, value, nestedErrors }`, as described above. -> *Returns:* a new `Result` instance - -```js -app.post('/create-user', yourValidationChains, (req, res, next) => { - const errorFormatter = ({ location, msg, param, value, nestedErrors }) => { - // Build your resulting errors however you want! String, object, whatever - it works! - return `${location}[${param}]: ${msg}`; - }; - const result = validationResult(req).formatWith(errorFormatter); - if (!result.isEmpty()) { - // Response will contain something like - // { errors: [ "body[password]: must be at least 10 chars long" ] } - return res.json({ errors: result.array() }); - } - - // Handle your request as if no errors happened -}); -``` - -### `.array([options])` -- `options` *(optional)*: an object of options. Defaults to `{ onlyFirstError: false }` -> *Returns:* an array of validation errors. - -Gets all validation errors contained in this result object. - -If the option `onlyFirstError` is set to `true`, then only the first -error for each field will be included. - -### `.mapped()` -> *Returns:* an object where the keys are the field names, and the values are the validation errors - -Gets the first validation error of each failed field in the form of an object. - -### `.throw()` -If this result object has errors, then this method will throw an exception -decorated with the same validation result API. - -```js -try { - validationResult(req).throw(); - // Oh look at ma' success! All validations passed! -} catch (err) { - console.log(err.mapped()); // Oh noes! -} -``` diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/docs/feature-custom-validators-sanitizers.md b/Easebuzz_NodeJS_kit/node_modules/express-validator/docs/feature-custom-validators-sanitizers.md deleted file mode 100644 index a084650..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/docs/feature-custom-validators-sanitizers.md +++ /dev/null @@ -1,68 +0,0 @@ ---- -id: custom-validators-sanitizers -title: Custom validators/sanitizers ---- - -Although express-validator offers plenty of handy validators and sanitizers through its underlying -dependency [validator.js](https://github.com/chriso/validator.js), it doesn't always suffice when -building your application. - -For these cases, you may consider writing a custom validator or a custom sanitizer. - -## Custom validator -A custom validator may be implemented by using the chain method [`.custom()`](api-validation-chain.md#customvalidator). -It takes a validator function. - -Custom validators may return Promises to indicate an async validation (which will be awaited upon), -or `throw` any value/reject a promise to [use a custom error message](feature-error-messages.md#custom-validator-level). - -> **Note:** if your custom validator returns a promise, it must reject to indicate that the field is invalid. - -### Example: checking if e-mail is in use -```js -const { body } = require('express-validator'); - -app.post('/user', body('email').custom(value => { - return User.findUserByEmail(value).then(user => { - if (user) { - return Promise.reject('E-mail already in use'); - } - }); -}), (req, res) => { - // Handle the request -}); -``` - -### Example: checking if password confirmation matches password -```js -const { body } = require('express-validator'); - -app.post('/user', body('passwordConfirmation').custom((value, { req }) => { - if (value !== req.body.password) { - throw new Error('Password confirmation does not match password'); - } - - // Indicates the success of this synchronous custom validator - return true; -}), (req, res) => { - // Handle the request -}); -``` - -## Custom sanitizers -Custom sanitizers can be implemented by using the method `.customSanitizer()`, no matter if -the [validation chain one](api-validation-chain.md#customsanitizersanitizer) or -the [sanitization chain one](api-sanitization-chain.md#customsanitizersanitizer). -Just like with the validators, you specify the sanitizer function, which _must_ be synchronous at the -moment. - -### Example: converting to MongoDB's ObjectID -```js -const { param } = require('express-validator'); - -app.post('/object/:id', param('id').customSanitizer(value => { - return ObjectId(value); -}), (req, res) => { - // Handle the request -}); -``` diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/docs/feature-error-messages.md b/Easebuzz_NodeJS_kit/node_modules/express-validator/docs/feature-error-messages.md deleted file mode 100644 index b0efdd6..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/docs/feature-error-messages.md +++ /dev/null @@ -1,101 +0,0 @@ ---- -id: custom-error-messages -title: Custom Error Messages ---- - -express-validator's default error message is a simple `Invalid value`. -That's enough to cover all fields without being too opinionated. - -You can, however, specify meaningful error messages in a variety of ways. - -## Error message levels -### Validator Level -When you want fine grained control over the error message of each validator, -you may specify them using the [`.withMessage()` method](api-validation-chain.md#withmessagemessage). - -```js -const { check } = require('express-validator'); - -app.post('/user', [ - // ...some other validations... - check('password') - .isLength({ min: 5 }).withMessage('must be at least 5 chars long') - .matches(/\d/).withMessage('must contain a number') -], (req, res) => { - // Handle the request somehow -}); -``` - -In the example above, if the password is less than 5 characters long, an error with the message -`must be at least 5 chars long` will be reported. -If it also doesn't contain a number, then an error with the message `must contain a number` will be -reported. - -### Custom Validator Level -If you're using a custom validator, then it may very well throw or reject promises to indicate an invalid value. -In these cases, the error gets reported with a message that's equal to what was thrown by the validator: - -```js -const { check } = require('express-validator'); - -app.post('/user', [ - check('email').custom(value => { - return User.findByEmail(value).then(user => { - if (user) { - return Promise.reject('E-mail already in use'); - } - }); - }), - check('password').custom((value, { req }) => { - if (value !== req.body.passwordConfirmation) { - throw new Error('Password confirmation is incorrect'); - } - }) -], (req, res) => { - // Handle the request somehow -}); -``` - -### Field Level -Messages can be specified at the field level by using the second parameter of the -[validation middlewares](api-check.md#check-field-message). - -These messages are used as fallbacks when a validator doesn't specify its own message: - -```js -const { check } = require('express-validator'); - -app.post('/user', [ - // ...some other validations... - check('password', 'The password must be 5+ chars long and contain a number') - .not().isIn(['123', 'password', 'god']).withMessage('Do not use a common word as the password') - .isLength({ min: 5 }) - .matches(/\d/) -], (req, res) => { - // Handle the request somehow -}); -``` - -In the example above, when the `password` field is shorter than 5 characters, or doesn't contain a number, -it will be reported with the message `The password must be 5+ chars long and contain a number`, -as these validators didn't specify a message of their own. - -## Dynamic messages - -You can build dynamic validation messages by providing functions anywhere a validation message is supported. -This is specially useful if you use a translation library to provide tailored messages: - -```js -// check(field, withMessage) and .withMessage() work the same -check('something').isInt().withMessage((value, { req, location, path }) => { - return req.translate('validation.message.path', { value, location, path }); -}), -check('somethingElse', (value, { req, location, path }) => { - return req.translate('validation.message.path', { value, location, path }); -}), - -// oneOf is special though - it only receives the req object for now -oneOf([ someValidation, anotherValidation ], ({ req }) => { - return req.translate('validation.multiple_failures'); -}); -``` diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/docs/feature-running-imperatively.md b/Easebuzz_NodeJS_kit/node_modules/express-validator/docs/feature-running-imperatively.md deleted file mode 100644 index dbe87a4..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/docs/feature-running-imperatively.md +++ /dev/null @@ -1,55 +0,0 @@ ---- -id: running-imperatively -title: Running validations imperatively ---- - -express-validator favors the declarative way of doing things that express middlewares bring. -This means most of the APIs _look and work better_ when simply passed into an express route handler. - -You can, however, give control of running these validations to your own middleware/route handler. -This is possible with the use of the declarative method `run(req)`, available on both -[validation chain](api-validation-chain.md#runreq) and [sanitization chains](api-sanitization-chain.md#runreq). - -Check the examples below to understand how this method can help you: - -## Example: standardized validation error response -```js -// can be reused by many routes -const validate = validations => { - return async (req, res, next) => { - await Promise.all(validations.map(validation => validation.run(req))); - - const errors = validationResult(req); - if (errors.isEmpty()) { - return next(); - } - - res.status(422).json({ errors: errors.array() }); - }; -}; - -app.post('/api/create-user', validate([ - body('email').isEmail(), - body('password').isLength({ min: 6 }) -]), async (req, res, next) => { - // request is guaranteed to not have any validation errors. - const user = await User.create({ ... }); -}); -``` - -## Example: validating with a condition -```js -app.post('/update-settings', [ - body('email').isEmail(), - body('password').optional().isLength({ min: 6 }) -], async (req, res, next) => { - // if a password has been provided, then a confirmation must also be provided. - if (req.body.password) { - await body('passwordConfirmation') - .equals(req.body.password).withMessage('passwords do not match') - .run(req); - } - - // Check the validation errors, and update the user's settings. -}); -``` diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/docs/feature-sanitization.md b/Easebuzz_NodeJS_kit/node_modules/express-validator/docs/feature-sanitization.md deleted file mode 100644 index 9d64e58..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/docs/feature-sanitization.md +++ /dev/null @@ -1,41 +0,0 @@ ---- -id: sanitization -title: Sanitization ---- - -Sometimes, receiving input in a HTTP request isn't only about making sure that -the data is in the right format, but also that **it is free of noise**. - -[validator.js provides a handful of sanitizers](https://github.com/chriso/validator.js#sanitizers) -that can be used to take care of the data that comes in. - -```js -const express = require('express'); -const { body } = require('express-validator'); - -const app = express(); -app.use(express.json()); - -app.post('/comment', [ - body('email') - .isEmail() - .normalizeEmail(), - body('text') - .not().isEmpty() - .trim() - .escape(), - body('notifyOnReply').toBoolean() -], (req, res) => { - // Handle the request somehow -}); -``` - -In the example above, we are validating `email` and `text` fields, -so we may take advantage of the same chain to apply some sanitization, -like e-mail normalization (`normalizeEmail`) and trimming (`trim`)/HTML escaping (`escape`). -The `notifyOnReply` field isn't validated, but it can still make use of the same `check` function -to convert it to a JavaScript boolean. - -> **Important:** please note that sanitization mutates the request. -This means that if `req.body.text` was sent with the value ` Hello world :>)`, after the sanitization -its value will be `Hello world :>)`. \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/docs/feature-schema-validation.md b/Easebuzz_NodeJS_kit/node_modules/express-validator/docs/feature-schema-validation.md deleted file mode 100644 index cc5a37c..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/docs/feature-schema-validation.md +++ /dev/null @@ -1,72 +0,0 @@ ---- -id: schema-validation -title: Schema Validation ---- - -Schemas are a special, object-based way of defining validations or sanitizations on requests. -At the root-level, you specify field paths as keys, and objects as values -- which define -the error messages, locations and validations/sanitizations. - -Its syntax looks like this: - -```js -const { checkSchema } = require('express-validator'); -app.put('/user/:id/password', checkSchema({ - id: { - // The location of the field, can be one or more of body, cookies, headers, params or query. - // If omitted, all request locations will be checked - in: ['params', 'query'], - errorMessage: 'ID is wrong', - isInt: true, - // Sanitizers can go here as well - toInt: true - }, - myCustomField: { - // Custom validators - custom: { - options: (value, { req, location, path }) => { - return value + req.body.foo + location + path; - } - }, - // and sanitizers - customSanitizer: { - options: (value, { req, location, path }) => { - let sanitizedValue; - - if (req.body.foo && location && path) { - sanitizedValue = parseInt(value); - } else { - sanitizedValue = 0; - } - - return sanitizedValue; - } - }, - }, - password: { - isLength: { - errorMessage: 'Password should be at least 7 chars long', - // Multiple options would be expressed as an array - options: { min: 7 } - } - }, - firstName: { - isUppercase: { - // To negate a validator - negated: true, - }, - rtrim: { - // Options as an array - options: [[" ", "-"]], - }, - }, - // Wildcards/dots for nested fields work as well - 'addresses.*.postalCode': { - // Make this field optional when undefined or null - optional: { options: { nullable: true } }, - isPostalCode: true - } -}), (req, res, next) => { - // handle the request as usual -}) -``` diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/docs/feature-whole-body-validation.md b/Easebuzz_NodeJS_kit/node_modules/express-validator/docs/feature-whole-body-validation.md deleted file mode 100644 index 6e8467d..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/docs/feature-whole-body-validation.md +++ /dev/null @@ -1,35 +0,0 @@ ---- -id: whole-body-validation -title: Whole Body Validation ---- - -Sometimes you need to validate a request whose body is a string, an array, or even a number! -That's why you can omit the field to validate, and check `req.body` directly: - -```js -const bodyParser = require('body-parser'); -const express = require('express'); -const { body } = require('express-validator'); - -const app = express(); - -// Will handle text/plain requests -app.use(bodyParser.text()); - -app.post('/recover-password', body().isEmail(), (req, res) => { - // Assume the validity of the request was already checked - User.recoverPassword(req.body).then(() => { - res.send('Password recovered!'); - }); -}); -``` - -This setup should be able to handle the following request: - -```http -POST /recover-password HTTP/1.1 -Host: localhost:3000 -Content-Type: text/plain - -my@email.com -``` diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/docs/feature-wildcards.md b/Easebuzz_NodeJS_kit/node_modules/express-validator/docs/feature-wildcards.md deleted file mode 100644 index 4081711..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/docs/feature-wildcards.md +++ /dev/null @@ -1,47 +0,0 @@ ---- -id: wildcards -title: Wildcards ---- - -Sometimes you will want to apply the same rules to all items of an array or all keys of some object. -That's what the `*` character -- also known as a wildcard -- is for. - -For example, imagine you want to validate that all addresses have a valid postal code, -and that the number of each address is sanitized as an integer. - -We can do this with the following code: - -```js -const express = require('express'); -const { check, sanitize } = require('express-validator'); - -const app = express(); -app.use(express.json()); - -app.post('/addresses', [ - check('addresses.*.postalCode').isPostalCode(), - sanitize('addresses.*.number').toInt() -], (req, res) => { - // Handle the request -}); -``` - -This will handle cases where you send an array of addresses: -```json -{ - "addresses": [ - { "postalCode": "2010", "number": "500" }, - { "postalCode": "", "number": "501" }, - ] -} -``` - -...or even cases where you want a predefined set of addresses: -```json -{ - "addresses": { - "home": { "postalCode": "", "number": "501" }, - "work": { "postalCode": "2010", "number": "500" } - } -} -``` diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/docs/index.md b/Easebuzz_NodeJS_kit/node_modules/express-validator/docs/index.md deleted file mode 100644 index d68cca7..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/docs/index.md +++ /dev/null @@ -1,83 +0,0 @@ ---- -id: index -title: Getting Started ---- - -express-validator is a set of [express.js](http://expressjs.com/) middlewares that wraps -[validator.js](https://github.com/chriso/validator.js) validator and sanitizer functions. - -## Installation -Install it using npm (make sure that you have Node.js 6 or newer): - -``` -npm install --save express-validator -``` - -## Basic guide -> It's recommended that you have basic knowledge of the express.js module before you go on with -this guide. - -Let's get started by writing a basic route to create a user in the database: - -```js -const express = require('express'); -const app = express(); - -app.use(express.json()); -app.post('/user', (req, res) => { - User.create({ - username: req.body.username, - password: req.body.password - }).then(user => res.json(user)); -}); -``` - -Then, you'll want to make sure that you validate the input and report any errors before creating the user: - -```js -// ...rest of the initial code omitted for simplicity. -const { check, validationResult } = require('express-validator'); - -app.post('/user', [ - // username must be an email - check('username').isEmail(), - // password must be at least 5 chars long - check('password').isLength({ min: 5 }) -], (req, res) => { - // Finds the validation errors in this request and wraps them in an object with handy functions - const errors = validationResult(req); - if (!errors.isEmpty()) { - return res.status(422).json({ errors: errors.array() }); - } - - User.create({ - username: req.body.username, - password: req.body.password - }).then(user => res.json(user)); -}); -``` - -*Voila!* Now, whenever a request that includes invalid `username` or `password` fields -is submitted, your server will respond like this: -```json -{ - "errors": [{ - "location": "body", - "msg": "Invalid value", - "param": "username" - }] -} -``` - -For all the available validators in express-validator (just like its options), -take a look at validator.js docs [here](https://github.com/chriso/validator.js#validators). - -## What's next -This completes the basic guide on getting started with express-validator. -You might want to continue reading about some of the more advanced features available: - -- [Sanitization](feature-sanitization.md) -- [Custom validators/sanitizers](feature-custom-validators-sanitizers.md) -- [Custom error messages](feature-error-messages.md) -- [Wildcards](feature-wildcards.md) -- [Schema validation](feature-schema-validation.md) \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/filter/index.d.ts b/Easebuzz_NodeJS_kit/node_modules/express-validator/filter/index.d.ts deleted file mode 100644 index 92cccee..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/filter/index.d.ts +++ /dev/null @@ -1 +0,0 @@ -export { Location, Meta, CustomSanitizer, SanitizationChain, sanitize, sanitizeBody, sanitizeCookie, sanitizeParam, sanitizeQuery, buildSanitizeFunction, matchedData, MatchedDataOptions, } from '../src'; diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/filter/index.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/filter/index.js deleted file mode 100644 index 76349a7..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/filter/index.js +++ /dev/null @@ -1,14 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -var src_1 = require("../src"); -// middleware/sanitization-chain-builders -exports.sanitize = src_1.sanitize; -exports.sanitizeBody = src_1.sanitizeBody; -exports.sanitizeCookie = src_1.sanitizeCookie; -exports.sanitizeParam = src_1.sanitizeParam; -exports.sanitizeQuery = src_1.sanitizeQuery; -exports.buildSanitizeFunction = src_1.buildSanitizeFunction; -// matched-data -exports.matchedData = src_1.matchedData; -console.warn('express-validator: requires to express-validator/filter are deprecated.' + - 'You should just use require("express-validator") instead.'); diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/CHANGELOG.md b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/CHANGELOG.md deleted file mode 100644 index 79c907e..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/CHANGELOG.md +++ /dev/null @@ -1,683 +0,0 @@ -#### 13.0.0 - -- Added `isEthereumAddress()` validator - to validate [Ethereum addresses](https://en.wikipedia.org/wiki/Ethereum#Addresses) - ([#1117](https://github.com/chriso/validator.js/pull/1117)) -- Added `isBtcAddress()` validator - to validate [Bitcoin addresses](https://en.bitcoin.it/wiki/Address) - ([#1163](https://github.com/chriso/validator.js/pull/1163)) -- Added `isIBAN()` validator - to validate [International Bank Account Numbers](https://en.wikipedia.org/wiki/International_Bank_Account_Number) - ([#1243](https://github.com/chriso/validator.js/pull/1243)) -- Added `isEAN()` validator - to validate [International Article Numbers](https://en.wikipedia.org/wiki/International_Article_Number) - ([#1244](https://github.com/chriso/validator.js/pull/1244)) -- Added `isSemVer()` validator - to validate [Semantic Version Numbers](https://semver.org) - ([#1246](https://github.com/chriso/validator.js/pull/1246)) -- Added `isPassportNumber()` validator - ([#1250](https://github.com/chriso/validator.js/pull/1250)) -- Added `isRgbColor()` validator - ([#1141](https://github.com/chriso/validator.js/pull/1141)) -- Added `isHSL()` validator - ([#1159](https://github.com/chriso/validator.js/pull/1159)) -- Added `isLocale()` validator - ([#1072](https://github.com/chriso/validator.js/pull/1072)) -- Improved the `isIP()` validator - ([#1211](https://github.com/chriso/validator.js/pull/1211)) -- Improved the `isMACAddress()` validator - ([#1267](https://github.com/chriso/validator.js/pull/1267)) -- New and improved locales - ([#1238](https://github.com/chriso/validator.js/pull/1238), - [#1265](https://github.com/chriso/validator.js/pull/1265)) - -#### 12.2.0 - -- Support CSS Colors Level 4 spec - ([#1233](https://github.com/chriso/validator.js/pull/1233)) -- Improve the `toFloat()` sanitizer - ([#1227](https://github.com/chriso/validator.js/pull/1227)) -- New and improved locales - ([#1200](https://github.com/chriso/validator.js/pull/1200), - [#1207](https://github.com/chriso/validator.js/pull/1207), - [#1213](https://github.com/chriso/validator.js/pull/1213), - [#1217](https://github.com/chriso/validator.js/pull/1217), - [#1234](https://github.com/chriso/validator.js/pull/1234)) - -#### 12.1.0 - -- ES module for webpack tree shaking - ([#1015](https://github.com/chriso/validator.js/pull/1015)) -- Updated `isIP()` to accept scoped IPv6 addresses - ([#1160](https://github.com/chriso/validator.js/pull/1160)) -- New and improved locales - ([#1162](https://github.com/chriso/validator.js/pull/1162), - [#1183](https://github.com/chriso/validator.js/pull/1183), - [#1187](https://github.com/chriso/validator.js/pull/1187), - [#1191](https://github.com/chriso/validator.js/pull/1191)) - -#### 12.0.0 - -- Added `isOctal()` validator - ([#1153](https://github.com/chriso/validator.js/pull/1153)) -- Added `isSlug()` validator - ([#1096](https://github.com/chriso/validator.js/pull/1096)) -- Added `isBIC()` validator for bank identification codes - ([#1071](https://github.com/chriso/validator.js/pull/1071)) -- Allow uppercase chars in `isHash()` - ([#1062](https://github.com/chriso/validator.js/pull/1062)) -- Allow additional prefixes in `isHexadecimal()` - ([#1147](https://github.com/chriso/validator.js/pull/1147)) -- Allow additional separators in `isMACAddress()` - ([#1065](https://github.com/chriso/validator.js/pull/1065)) -- Better defaults for `isLength()` - ([#1070](https://github.com/chriso/validator.js/pull/1070)) -- Bug fixes - ([#1074](https://github.com/chriso/validator.js/pull/1074)) -- New and improved locales - ([#1059](https://github.com/chriso/validator.js/pull/1059), - [#1060](https://github.com/chriso/validator.js/pull/1060), - [#1069](https://github.com/chriso/validator.js/pull/1069), - [#1073](https://github.com/chriso/validator.js/pull/1073), - [#1082](https://github.com/chriso/validator.js/pull/1082), - [#1092](https://github.com/chriso/validator.js/pull/1092), - [#1121](https://github.com/chriso/validator.js/pull/1121), - [#1125](https://github.com/chriso/validator.js/pull/1125), - [#1132](https://github.com/chriso/validator.js/pull/1132), - [#1152](https://github.com/chriso/validator.js/pull/1152), - [#1165](https://github.com/chriso/validator.js/pull/1165), - [#1166](https://github.com/chriso/validator.js/pull/1166), - [#1174](https://github.com/chriso/validator.js/pull/1174)) - -#### 11.1.0 - -- Code coverage improvements - ([#1024](https://github.com/chriso/validator.js/pull/1024)) -- New and improved locales - ([#1035](https://github.com/chriso/validator.js/pull/1035), - [#1040](https://github.com/chriso/validator.js/pull/1040), - [#1041](https://github.com/chriso/validator.js/pull/1041), - [#1048](https://github.com/chriso/validator.js/pull/1048), - [#1049](https://github.com/chriso/validator.js/pull/1049), - [#1052](https://github.com/chriso/validator.js/pull/1052), - [#1054](https://github.com/chriso/validator.js/pull/1054), - [#1055](https://github.com/chriso/validator.js/pull/1055), - [#1056](https://github.com/chriso/validator.js/pull/1056), - [#1057](https://github.com/chriso/validator.js/pull/1057)) - -#### 11.0.0 - -- Added a `isBase32()` validator - ([#1023](https://github.com/chriso/validator.js/pull/1023)) -- Updated `isEmail()` to validate display names according to RFC2822 - ([#1004](https://github.com/chriso/validator.js/pull/1004)) -- Updated `isEmail()` to check total email length - ([#1007](https://github.com/chriso/validator.js/pull/1007)) -- The internal `toString()` util is no longer exported - ([0277eb](https://github.com/chriso/validator.js/commit/0277eb00d245a3479af52adf7d927d4036895650)) -- New and improved locales - ([#999](https://github.com/chriso/validator.js/pull/999), - [#1010](https://github.com/chriso/validator.js/pull/1010), - [#1017](https://github.com/chriso/validator.js/pull/1017), - [#1022](https://github.com/chriso/validator.js/pull/1022), - [#1031](https://github.com/chriso/validator.js/pull/1031), - [#1032](https://github.com/chriso/validator.js/pull/1032)) - -#### 10.11.0 - -- Fix imports like `import .. from "validator/lib/.."` - ([#961](https://github.com/chriso/validator.js/pull/961)) -- New locale - ([#958](https://github.com/chriso/validator.js/pull/958)) - -#### 10.10.0 - -- `isISO8601()` strict mode now works in the browser - ([#932](https://github.com/chriso/validator.js/pull/932)) -- New and improved locales - ([#931](https://github.com/chriso/validator.js/pull/931), - [#933](https://github.com/chriso/validator.js/pull/933), - [#947](https://github.com/chriso/validator.js/pull/947), - [#950](https://github.com/chriso/validator.js/pull/950)) - -#### 10.9.0 - -- Added an option to `isURL()` to reject email-like URLs - ([#901](https://github.com/chriso/validator.js/pull/901)) -- Added a `strict` option to `isISO8601()` - ([#910](https://github.com/chriso/validator.js/pull/910)) -- Relaxed `isJWT()` signature requirements - ([#906](https://github.com/chriso/validator.js/pull/906)) -- New and improved locales - ([#899](https://github.com/chriso/validator.js/pull/899), - [#904](https://github.com/chriso/validator.js/pull/904), - [#913](https://github.com/chriso/validator.js/pull/913), - [#916](https://github.com/chriso/validator.js/pull/916), - [#925](https://github.com/chriso/validator.js/pull/925), - [#928](https://github.com/chriso/validator.js/pull/928)) - -#### 10.8.0 - -- Added `isIdentityCard()` - ([#846](https://github.com/chriso/validator.js/pull/846)) -- Better error when validators are passed an invalid type - ([#895](https://github.com/chriso/validator.js/pull/895)) -- Locales are now exported - ([#890](https://github.com/chriso/validator.js/pull/890), - [#892](https://github.com/chriso/validator.js/pull/892)) -- New locale - ([#896](https://github.com/chriso/validator.js/pull/896)) - -#### 10.7.1 - -- Ignore case when checking URL protocol - ([#887](https://github.com/chriso/validator.js/issues/887)) -- Locale fix - ([#889](https://github.com/chriso/validator.js/pull/889)) - -#### 10.7.0 - -- Added `isMagnetURI()` to validate [magnet URIs](https://en.wikipedia.org/wiki/Magnet_URI_scheme) - ([#884](https://github.com/chriso/validator.js/pull/884)) -- Added `isJWT()` to validate [JSON web tokens](https://en.wikipedia.org/wiki/JSON_Web_Token) - ([#885](https://github.com/chriso/validator.js/pull/885)) - -#### 10.6.0 - -- Updated `isMobilePhone()` to match any locale's pattern by default - ([#874](https://github.com/chriso/validator.js/pull/874)) -- Added an option to ignore whitespace in `isEmpty()` - ([#880](https://github.com/chriso/validator.js/pull/880)) -- New and improved locales - ([#878](https://github.com/chriso/validator.js/pull/878), - [#879](https://github.com/chriso/validator.js/pull/879)) - -#### 10.5.0 - -- Disabled domain-specific email validation - ([#873](https://github.com/chriso/validator.js/pull/873)) -- Added support for IP hostnames in `isEmail()` - ([#845](https://github.com/chriso/validator.js/pull/845)) -- Added a `no_symbols` option to `isNumeric()` - ([#848](https://github.com/chriso/validator.js/pull/848)) -- Added a `no_colons` option to `isMACAddress()` - ([#849](https://github.com/chriso/validator.js/pull/849)) -- Updated `isURL()` to reject protocol relative URLs unless a flag is set - ([#860](https://github.com/chriso/validator.js/issues/860)) -- New and improved locales - ([#801](https://github.com/chriso/validator.js/pull/801), - [#856](https://github.com/chriso/validator.js/pull/856), - [#859](https://github.com/chriso/validator.js/issues/859), - [#861](https://github.com/chriso/validator.js/pull/861), - [#862](https://github.com/chriso/validator.js/pull/862), - [#863](https://github.com/chriso/validator.js/pull/863), - [#864](https://github.com/chriso/validator.js/pull/864), - [#870](https://github.com/chriso/validator.js/pull/870), - [#872](https://github.com/chriso/validator.js/pull/872)) - -#### 10.4.0 - -- Added an `isIPRange()` validator - ([#842](https://github.com/chriso/validator.js/pull/842)) -- Accept an array of locales in `isMobilePhone()` - ([#742](https://github.com/chriso/validator.js/pull/742)) -- New locale - ([#843](https://github.com/chriso/validator.js/pull/843)) - -#### 10.3.0 - -- Strict Gmail validation in `isEmail()` - ([#832](https://github.com/chriso/validator.js/pull/832)) -- New locales - ([#831](https://github.com/chriso/validator.js/pull/831), - [#835](https://github.com/chriso/validator.js/pull/835), - [#836](https://github.com/chriso/validator.js/pull/836)) - -#### 10.2.0 - -- Export the list of supported locales in `isPostalCode()` - ([#830](https://github.com/chriso/validator.js/pull/830)) - -#### 10.1.0 - -- Added an `isISO31661Alpha3()` validator - ([#809](https://github.com/chriso/validator.js/pull/809)) - -#### 10.0.0 - -- Allow floating points in `isNumeric()` - ([#810](https://github.com/chriso/validator.js/pull/810)) -- Disallow GMail addresses with multiple consecutive dots, or leading/trailing dots - ([#820](https://github.com/chriso/validator.js/pull/820)) -- Added an `isRFC3339()` validator - ([#816](https://github.com/chriso/validator.js/pull/816)) -- Reject domain parts longer than 63 octets in `isFQDN()`, `isURL()` and `isEmail()` - ([bb3e542](https://github.com/chriso/validator.js/commit/bb3e542)) -- Added a new Amex prefix to `isCreditCard()` - ([#805](https://github.com/chriso/validator.js/pull/805)) -- Fixed `isFloat()` min/max/gt/lt filters when a locale with a comma decimal is used - ([2b70821](https://github.com/chriso/validator.js/commit/2b70821)) -- Normalize Yandex emails - ([#807](https://github.com/chriso/validator.js/pull/807)) -- New locales - ([#803](https://github.com/chriso/validator.js/pull/803)) - -#### 9.4.1 - -- Patched a [REDOS](https://en.wikipedia.org/wiki/ReDoS) vulnerability in `isDataURI` -- New and improved locales - ([#788](https://github.com/chriso/validator.js/pull/788)) - -#### 9.4.0 - -- Added an option to `isMobilePhone` to require a country code - ([#769](https://github.com/chriso/validator.js/pull/769)) -- New and improved locales - ([#785](https://github.com/chriso/validator.js/pull/785)) - -#### 9.3.0 - -- New and improved locales - ([#763](https://github.com/chriso/validator.js/pull/763), - [#768](https://github.com/chriso/validator.js/pull/768), - [#774](https://github.com/chriso/validator.js/pull/774), - [#777](https://github.com/chriso/validator.js/pull/777), - [#779](https://github.com/chriso/validator.js/pull/779)) - -#### 9.2.0 - -- Added an `isMimeType()` validator - ([#760](https://github.com/chriso/validator.js/pull/760)) -- New and improved locales - ([#753](https://github.com/chriso/validator.js/pull/753), - [#755](https://github.com/chriso/validator.js/pull/755), - [#764](https://github.com/chriso/validator.js/pull/764)) - -#### 9.1.2 - -- Fixed a bug with the `isFloat` validator - ([#752](https://github.com/chriso/validator.js/pull/752)) - -#### 9.1.1 - -- Locale fixes - ([#738](https://github.com/chriso/validator.js/pull/738), - [#739](https://github.com/chriso/validator.js/pull/739)) - -#### 9.1.0 - -- Added an `isISO31661Alpha2()` validator - ([#734](https://github.com/chriso/validator.js/pull/734)) -- New locales - ([#735](https://github.com/chriso/validator.js/pull/735), - [#737](https://github.com/chriso/validator.js/pull/737)) - -#### 9.0.0 - -- `normalizeEmail()` no longer validates the email address - ([#725](https://github.com/chriso/validator.js/pull/725)) -- Added locale-aware validation to `isFloat()` and `isDecimal()` - ([#721](https://github.com/chriso/validator.js/pull/721)) -- Added an `isPort()` validator - ([#733](https://github.com/chriso/validator.js/pull/733)) -- New locales - ([#731](https://github.com/chriso/validator.js/pull/731)) - -#### 8.2.0 - -- Added an `isHash()` validator - ([#711](https://github.com/chriso/validator.js/pull/711)) -- Control decimal places in `isCurrency()` - ([#713](https://github.com/chriso/validator.js/pull/713)) -- New and improved locales - ([#700](https://github.com/chriso/validator.js/pull/700), - [#701](https://github.com/chriso/validator.js/pull/701), - [#714](https://github.com/chriso/validator.js/pull/714), - [#715](https://github.com/chriso/validator.js/pull/715), - [#718](https://github.com/chriso/validator.js/pull/718)) - -#### 8.1.0 - -- Fix `require('validator/lib/isIS8601')` calls - ([#688](https://github.com/chriso/validator.js/issues/688)) -- Added an `isLatLong()` and `isPostalCode()` validator - ([#684](https://github.com/chriso/validator.js/pull/684)) -- Allow comma in email display names - ([#692](https://github.com/chriso/validator.js/pull/692)) -- Add missing string to `unescape()` - ([#690](https://github.com/chriso/validator.js/pull/690)) -- Fix `isMobilePhone()` with Node <= 6.x - ([#681](https://github.com/chriso/validator.js/issues/681)) -- New locales - ([#695](https://github.com/chriso/validator.js/pull/695)) - -#### 8.0.0 - -- `isURL()` now requires the `require_tld: false` option to validate `localhost` - ([#675](https://github.com/chriso/validator.js/issues/675)) -- `isURL()` now rejects URLs that are protocol only - ([#642](https://github.com/chriso/validator.js/issues/642)) -- Fixed a bug where `isMobilePhone()` would silently return false if the locale was invalid or unsupported - ([#657](https://github.com/chriso/validator.js/issues/657)) - -#### 7.2.0 - -- Added an option to validate any phone locale - ([#663](https://github.com/chriso/validator.js/pull/663)) -- Fixed a bug in credit card validation - ([#672](https://github.com/chriso/validator.js/pull/672)) -- Disallow whitespace, including unicode whitespace, in TLDs - ([#677](https://github.com/chriso/validator.js/pull/677)) -- New locales - ([#673](https://github.com/chriso/validator.js/pull/673), - [#676](https://github.com/chriso/validator.js/pull/676)) - -#### 7.1.0 - -- Added an `isISRC()` validator for [ISRC](https://en.wikipedia.org/wiki/International_Standard_Recording_Code) - ([#660](https://github.com/chriso/validator.js/pull/660)) -- Fixed a bug in credit card validation - ([#670](https://github.com/chriso/validator.js/pull/670)) -- Reduced the maximum allowed address in `isEmail()` based on - [RFC3696 errata](http://www.rfc-editor.org/errata_search.php?rfc=3696&eid=1690) - ([#655](https://github.com/chriso/validator.js/issues/655)) -- New locales - ([#647](https://github.com/chriso/validator.js/pull/647), - [#667](https://github.com/chriso/validator.js/pull/667), - [#667](https://github.com/chriso/validator.js/pull/667), - [#671](https://github.com/chriso/validator.js/pull/671)) - -#### 7.0.0 - -- Remove `isDate()` - -#### 6.3.0 - -- Allow values like `-.01` in `isFloat()` - ([#618](https://github.com/chriso/validator.js/issues/618)) -- New locales - ([#616](https://github.com/chriso/validator.js/pull/616), - [#622](https://github.com/chriso/validator.js/pull/622), - [#627](https://github.com/chriso/validator.js/pull/627), - [#630](https://github.com/chriso/validator.js/pull/630)) - -#### 6.2.1 - -- Disallow `<` and `>` in URLs - ([#613](https://github.com/chriso/validator.js/issues/613)) -- New locales - ([#610](https://github.com/chriso/validator.js/pull/610)) - -#### 6.2.0 - -- Added an option to require an email display name - ([#607](https://github.com/chriso/validator.js/pull/607)) -- Added support for `lt` and `gt` to `isInt()` - ([#588](https://github.com/chriso/validator.js/pull/588)) -- New locales - ([#601](https://github.com/chriso/validator.js/pull/601)) - -#### 6.1.0 - -- Added support for greater or less than in `isFloat()` - ([#544](https://github.com/chriso/validator.js/issues/544)) -- Added support for ISSN validation via `isISSN()` - ([#593](https://github.com/chriso/validator.js/pull/593)) -- Fixed a bug in `normalizeEmail()` - ([#594](https://github.com/chriso/validator.js/issues/594)) -- New locales - ([#585](https://github.com/chriso/validator.js/pull/585)) - -#### 6.0.0 - -- Renamed `isNull()` to `isEmpty()` - ([#574](https://github.com/chriso/validator.js/issues/574)) -- Backslash is now escaped in `escape()` - ([#516](https://github.com/chriso/validator.js/issues/516)) -- Improved `normalizeEmail()` - ([#583](https://github.com/chriso/validator.js/pull/583)) -- Allow leading zeroes by default in `isInt()` - ([#532](https://github.com/chriso/validator.js/pull/532)) - -#### 5.7.0 - -- Added support for IPv6 in `isURL()` - ([#564](https://github.com/chriso/validator.js/issues/564)) -- Added support for urls without a host (e.g. `file:///foo.txt`) in `isURL()` - ([#563](https://github.com/chriso/validator.js/issues/563)) -- Added support for regular expressions in the `isURL()` host whitelist and blacklist - ([#562](https://github.com/chriso/validator.js/issues/562)) -- Added support for MasterCard 2-Series BIN - ([#576](https://github.com/chriso/validator.js/pull/576)) -- New locales - ([#575](https://github.com/chriso/validator.js/pull/575), - [#552](https://github.com/chriso/validator.js/issues/552)) - -#### 5.6.0 - -- Added an `isMD5()` validator - ([#557](https://github.com/chriso/validator.js/pull/557)) -- Fixed an exceptional case in `isDate()` - ([#566](https://github.com/chriso/validator.js/pull/566)) -- New locales - ([#559](https://github.com/chriso/validator.js/pull/559), - [#568](https://github.com/chriso/validator.js/pull/568), - [#571](https://github.com/chriso/validator.js/pull/571), - [#573](https://github.com/chriso/validator.js/pull/573)) - -#### 5.5.0 - -- Fixed a regex denial of service in `trim()` and `rtrim()` - ([#556](https://github.com/chriso/validator.js/pull/556)) -- Added an Algerian locale to `isMobilePhone()` - ([#540](https://github.com/chriso/validator.js/pull/540)) -- Fixed the Hungarian locale in `isAlpha()` and `isAlphanumeric()` - ([#541](https://github.com/chriso/validator.js/pull/541)) -- Added a Polish locale to `isMobilePhone()` - ([#545](https://github.com/chriso/validator.js/pull/545)) - -#### 5.4.0 - -- Accept Union Pay credit cards in `isCreditCard()` - ([#539](https://github.com/chriso/validator.js/pull/539)) -- Added Danish locale to `isMobilePhone()` - ([#538](https://github.com/chriso/validator.js/pull/538)) -- Added Hungarian locales to `isAlpha()`, `isAlphanumeric()` and `isMobilePhone()` - ([#537](https://github.com/chriso/validator.js/pull/537)) - -#### 5.3.0 - -- Added an `allow_leading_zeroes` option to `isInt()` - ([#532](https://github.com/chriso/validator.js/pull/532)) -- Adjust Chinese mobile phone validation - ([#523](https://github.com/chriso/validator.js/pull/523)) -- Added a Canadian locale to `isMobilePhone()` - ([#524](https://github.com/chriso/validator.js/issues/524)) - -#### 5.2.0 - -- Added a `isDataURI()` validator - ([#521](https://github.com/chriso/validator.js/pull/521)) -- Added Czech locales - ([#522](https://github.com/chriso/validator.js/pull/522)) -- Fixed a bug with `isURL()` when protocol was missing and "://" appeared in the query - ([#518](https://github.com/chriso/validator.js/issues/518)) - -#### 5.1.0 - -- Added a `unescape()` HTML function - ([#509](https://github.com/chriso/validator.js/pull/509)) -- Added a Malaysian locale to `isMobilePhone()` - ([#507](https://github.com/chriso/validator.js/pull/507)) -- Added Polish locales to `isAlpha()` and `isAlphanumeric()` - ([#506](https://github.com/chriso/validator.js/pull/506)) -- Added Turkish locales to `isAlpha()`, `isAlphanumeric()` and `isMobilePhone()` - ([#512](https://github.com/chriso/validator.js/pull/512)) -- Allow >1 underscore in hostnames when using `allow_underscores` - ([#510](https://github.com/chriso/validator.js/issues/510)) - -#### 5.0.0 - -- Migrate to ES6 - ([#496](https://github.com/chriso/validator.js/pull/496)) -- Break the library up so that individual functions can be imported - ([#496](https://github.com/chriso/validator.js/pull/496)) -- Remove auto-coercion of input to a string - ([#496](https://github.com/chriso/validator.js/pull/496)) -- Remove the `extend()` function - ([#496](https://github.com/chriso/validator.js/pull/496)) -- Added Arabic locales to `isAlpha()` and `isAlphanumeric()` - ([#496](https://github.com/chriso/validator.js/pull/496#issuecomment-184781730)) -- Fix validation of very large base64 strings - ([#503](https://github.com/chriso/validator.js/pull/503)) - -#### 4.9.0 - -- Added a Russian locale to `isAlpha()` and `isAlphanumeric()` - ([#499](https://github.com/chriso/validator.js/pull/499)) -- Remove the restriction on adjacent hyphens in hostnames - ([#500](https://github.com/chriso/validator.js/issues/500)) - -#### 4.8.0 - -- Added Spanish, French, Portuguese and Dutch support for `isAlpha()` and `isAlphanumeric()` - ([#492](https://github.com/chriso/validator.js/pull/492)) -- Added a Brazilian locale to `isMobilePhone()` - ([#489](https://github.com/chriso/validator.js/pull/489)) -- Reject IPv4 addresses with invalid zero padding - ([#490](https://github.com/chriso/validator.js/pull/490)) -- Fix the client-side version when used with RequireJS - ([#494](https://github.com/chriso/validator.js/issues/494)) - -#### 4.7.1 - -- Use [node-depd](https://github.com/dougwilson/nodejs-depd) to print deprecation notices - ([#487](https://github.com/chriso/validator.js/issues/487)) - -#### 4.7.0 - -- Print a deprecation warning if validator input is not a string - ([1f67e1e](https://github.com/chriso/validator.js/commit/1f67e1e15198c0ae735151290dc8dc2bf14da254)). - Note that this will be an error in v5. -- Added a German locale to `isMobilePhone()`, `isAlpha()` and `isAlphanumeric()` - ([#477](https://github.com/chriso/validator.js/pull/477)) -- Added a Finnish locale to `isMobilePhone()` - ([#455](https://github.com/chriso/validator.js/pull/455)) - -#### 4.6.1 - -- Fix coercion of objects: `Object.toString()` is `[object Object]` not `""` - ([a57f3c8](https://github.com/chriso/validator.js/commit/a57f3c843c715fba2664ee22ec80e9e28e88e0a6)) - -#### 4.6.0 - -- Added a Spanish locale to `isMobilePhone()` - ([#481](https://github.com/chriso/validator.js/pull/481)) -- Fix string coercion of objects created with `Object.create(null)` - ([#484](https://github.com/chriso/validator.js/issues/484)) - -#### 4.5.2 - -- Fix a timezone issue with short-form ISO 8601 dates, e.g. - `validator.isDate('2011-12-21')` - ([#480](https://github.com/chriso/validator.js/issues/480)) - -#### 4.5.1 - -- Make `isLength()` / `isByteLength()` accept `{min, max}` as options object. - ([#474](https://github.com/chriso/validator.js/issues/474)) - -#### 4.5.0 - -- Add validation for Indian mobile phone numbers - ([#471](https://github.com/chriso/validator.js/pull/471)) -- Tweak Greek and Chinese mobile phone validation - ([#467](https://github.com/chriso/validator.js/pull/467), - [#468](https://github.com/chriso/validator.js/pull/468)) -- Fixed a bug in `isDate()` when validating ISO 8601 dates without a timezone - ([#472](https://github.com/chriso/validator.js/issues/472)) - -#### 4.4.1 - -- Allow triple hyphens in IDNA hostnames - ([#466](https://github.com/chriso/validator.js/issues/466)) - -#### 4.4.0 - -- Added `isMACAddress()` validator - ([#458](https://github.com/chriso/validator.js/pull/458)) -- Added `isWhitelisted()` validator - ([#462](https://github.com/chriso/validator.js/pull/462)) -- Added a New Zealand locale to `isMobilePhone()` - ([#452](https://github.com/chriso/validator.js/pull/452)) -- Added options to control GMail address normalization - ([#460](https://github.com/chriso/validator.js/pull/460)) - -#### 4.3.0 - -- Support Ember CLI module definitions - ([#448](https://github.com/chriso/validator.js/pull/448)) -- Added a Vietnam locale to `isMobilePhone()` - ([#451](https://github.com/chriso/validator.js/pull/451)) - -#### 4.2.1 - -- Fix `isDate()` handling of RFC2822 timezones - ([#447](https://github.com/chriso/validator.js/pull/447)) - -#### 4.2.0 - -- Fix `isDate()` handling of ISO8601 timezones - ([#444](https://github.com/chriso/validator.js/pull/444)) -- Fix the incorrect `isFloat('.') === true` - ([#443](https://github.com/chriso/validator.js/pull/443)) -- Added a Norwegian locale to `isMobilePhone()` - ([#439](https://github.com/chriso/validator.js/pull/439)) - -#### 4.1.0 - -- General `isDate()` improvements - ([#431](https://github.com/chriso/validator.js/pull/431)) -- Tests now require node 4.0+ - ([#438](https://github.com/chriso/validator.js/pull/438)) - -#### 4.0.6 - -- Added a Taiwan locale to `isMobilePhone()` - ([#432](https://github.com/chriso/validator.js/pull/432)) -- Fixed a bug in `isBefore()` where it would return `null` - ([#436](https://github.com/chriso/validator.js/pull/436)) - -#### 4.0.5 - -- Fixed a denial of service vulnerability in the `isEmail()` regex - ([#152](https://github.com/chriso/validator.js/issues/152#issuecomment-131874928)) - -#### 4.0.4 - -- Reverted the leap year validation in `isDate()` as it introduced some regressions - ([#422](https://github.com/chriso/validator.js/issues/422), [#423](https://github.com/chriso/validator.js/issues/423)) - -#### 4.0.3 - -- Added leap year validation to `isDate()` - ([#418](https://github.com/chriso/validator.js/pull/418)) - -#### 4.0.2 - -- Fixed `isDecimal()` with an empty string - ([#419](https://github.com/chriso/validator.js/issues/419)) - -#### 4.0.1 - -- Fixed `isByteLength()` with certain strings - ([09f0c6d](https://github.com/chriso/validator.js/commit/09f0c6d2321f0c78af6a7de42e91b63955e4c01e)) -- Put length restrictions on email parts - ([#258](https://github.com/chriso/validator.js/issues/258#issuecomment-127173612)) - -#### 4.0.0 - -- Simplified the `isEmail()` regex and fixed some edge cases - ([#258](https://github.com/chriso/validator.js/issues/258#issuecomment-127173612)) -- Added ISO 8601 date validation via `isISO8601()` - ([#373](https://github.com/chriso/validator.js/issues/373)) diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/LICENSE b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/LICENSE deleted file mode 100644 index 4e49a38..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/LICENSE +++ /dev/null @@ -1,20 +0,0 @@ -Copyright (c) 2018 Chris O'Hara - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/README.md b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/README.md deleted file mode 100644 index 4c456ad..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/README.md +++ /dev/null @@ -1,256 +0,0 @@ -# validator.js - -[![NPM version][npm-image]][npm-url] -[![Build Status](https://travis-ci.org/validatorjs/validator.js.svg?branch=master)](https://travis-ci.org/validatorjs/validator.js) -[![Coverage Status](https://coveralls.io/repos/github/validatorjs/validator.js/badge.svg?branch=master)](https://coveralls.io/github/validatorjs/validator.js?branch=master) -[![Downloads][downloads-image]][npm-url] -[![Backers on Open Collective](https://opencollective.com/validatorjs/backers/badge.svg)](#backers) -[![Sponsors on Open Collective](https://opencollective.com/validatorjs/sponsors/badge.svg)](#sponsors) - -A library of string validators and sanitizers. - -## Strings only - -**This library validates and sanitizes strings only.** - -If you're not sure if your input is a string, coerce it using `input + ''`. -Passing anything other than a string is an error. - -## Installation and Usage - -### Server-side usage - -Install the library with `npm install validator` - -#### No ES6 - -```javascript -var validator = require('validator'); - -validator.isEmail('foo@bar.com'); //=> true -``` - -#### ES6 - -```javascript -import validator from 'validator'; -``` - -Or, import only a subset of the library: - -```javascript -import isEmail from 'validator/lib/isEmail'; -``` - -#### Tree-shakeable ES imports - -```javascript -import isEmail from 'validator/es/lib/isEmail'; -``` - -### Client-side usage - -The library can be loaded either as a standalone script, or through an [AMD][amd]-compatible loader - -```html - - -``` - -The library can also be installed through [bower][bower] - -```bash -$ bower install validator-js -``` - -## Contributors - -[Become a backer](https://opencollective.com/validatorjs#backer) - -[Become a sponsor](https://opencollective.com/validatorjs#sponsor) - -Thank you to the people who have already contributed: - - - -## Validators - -Here is a list of the validators currently available. - -Validator | Description ---------------------------------------- | -------------------------------------- -***contains(str, seed)*** | check if the string contains the seed. -**equals(str, comparison)** | check if the string matches the comparison. -**isAfter(str [, date])** | check if the string is a date that's after the specified date (defaults to now). -**isAlpha(str [, locale])** | check if the string contains only letters (a-zA-Z).

Locale is one of `['ar', 'ar-AE', 'ar-BH', 'ar-DZ', 'ar-EG', 'ar-IQ', 'ar-JO', 'ar-KW', 'ar-LB', 'ar-LY', 'ar-MA', 'ar-QA', 'ar-QM', 'ar-SA', 'ar-SD', 'ar-SY', 'ar-TN', 'ar-YE', 'bg-BG', 'cs-CZ', 'da-DK', 'de-DE', 'el-GR', 'en-AU', 'en-GB', 'en-HK', 'en-IN', 'en-NZ', 'en-US', 'en-ZA', 'en-ZM', 'es-ES', 'fr-FR', 'fa-IR', 'he', 'hu-HU', 'it-IT', 'ku-IQ', 'nb-NO', 'nl-NL', 'nn-NO', 'pl-PL', 'pt-BR', 'pt-PT', 'ru-RU', 'sl-SI', 'sk-SK', 'sr-RS', 'sr-RS@latin', 'sv-SE', 'tr-TR', 'uk-UA']`) and defaults to `en-US`. Locale list is `validator.isAlphaLocales`. -**isAlphanumeric(str [, locale])** | check if the string contains only letters and numbers.

Locale is one of `['ar', 'ar-AE', 'ar-BH', 'ar-DZ', 'ar-EG', 'ar-IQ', 'ar-JO', 'ar-KW', 'ar-LB', 'ar-LY', 'ar-MA', 'ar-QA', 'ar-QM', 'ar-SA', 'ar-SD', 'ar-SY', 'ar-TN', 'ar-YE', 'bg-BG', 'cs-CZ', 'da-DK', 'de-DE', 'el-GR', 'en-AU', 'en-GB', 'en-HK', 'en-IN', 'en-NZ', 'en-US', 'en-ZA', 'en-ZM', 'es-ES', 'fr-FR', 'fa-IR', 'he', 'hu-HU', 'it-IT', 'ku-IQ', 'nb-NO', 'nl-NL', 'nn-NO', 'pl-PL', 'pt-BR', 'pt-PT', 'ru-RU', 'sl-SI', 'sk-SK', 'sr-RS', 'sr-RS@latin', 'sv-SE', 'tr-TR', 'uk-UA']`) and defaults to `en-US`. Locale list is `validator.isAlphanumericLocales`. -**isAscii(str)** | check if the string contains ASCII chars only. -**isBase32(str)** | check if a string is base32 encoded. -**isBase64(str)** | check if a string is base64 encoded. -**isBefore(str [, date])** | check if the string is a date that's before the specified date. -**isIBAN(str)** | check if a string is a IBAN (International Bank Account Number). -**isBIC(str)** | check if a string is a BIC (Bank Identification Code) or SWIFT code. -**isBoolean(str)** | check if a string is a boolean. -**isByteLength(str [, options])** | check if the string's length (in UTF-8 bytes) falls in a range.

`options` is an object which defaults to `{min:0, max: undefined}`. -**isCreditCard(str)** | check if the string is a credit card. -**isCurrency(str [, options])** | check if the string is a valid currency amount.

`options` is an object which defaults to `{symbol: '$', require_symbol: false, allow_space_after_symbol: false, symbol_after_digits: false, allow_negatives: true, parens_for_negatives: false, negative_sign_before_digits: false, negative_sign_after_digits: false, allow_negative_sign_placeholder: false, thousands_separator: ',', decimal_separator: '.', allow_decimal: true, require_decimal: false, digits_after_decimal: [2], allow_space_after_digits: false}`.
**Note:** The array `digits_after_decimal` is filled with the exact number of digits allowed not a range, for example a range 1 to 3 will be given as [1, 2, 3]. -**isEthereumAddress(str)** | check if the string is an [Ethereum](https://ethereum.org/) address using basic regex. Does not validate address checksums. -**isBtcAddress(str)** | check if the string is a valid BTC address. -**isDataURI(str)** | check if the string is a [data uri format](https://developer.mozilla.org/en-US/docs/Web/HTTP/data_URIs). -**isDecimal(str [, options])** | check if the string represents a decimal number, such as 0.1, .3, 1.1, 1.00003, 4.0, etc.

`options` is an object which defaults to `{force_decimal: false, decimal_digits: '1,', locale: 'en-US'}`

`locale` determine the decimal separator and is one of `['ar', 'ar-AE', 'ar-BH', 'ar-DZ', 'ar-EG', 'ar-IQ', 'ar-JO', 'ar-KW', 'ar-LB', 'ar-LY', 'ar-MA', 'ar-QA', 'ar-QM', 'ar-SA', 'ar-SD', 'ar-SY', 'ar-TN', 'ar-YE', 'bg-BG', 'cs-CZ', 'da-DK', 'de-DE', 'en-AU', 'en-GB', 'en-HK', 'en-IN', 'en-NZ', 'en-US', 'en-ZA', 'en-ZM', 'es-ES', 'fr-FR', 'hu-HU', 'it-IT', 'ku-IQ', nb-NO', 'nl-NL', 'nn-NO', 'pl-PL', 'pt-BR', 'pt-PT', 'ru-RU', 'sl-SI', 'sr-RS', 'sr-RS@latin', 'sv-SE', 'tr-TR', 'uk-UA']`.
**Note:** `decimal_digits` is given as a range like '1,3', a specific value like '3' or min like '1,'. -**isDivisibleBy(str, number)** | check if the string is a number that's divisible by another. -**isEmail(str [, options])** | check if the string is an email.

`options` is an object which defaults to `{ allow_display_name: false, require_display_name: false, allow_utf8_local_part: true, require_tld: true, allow_ip_domain: false, domain_specific_validation: false }`. If `allow_display_name` is set to true, the validator will also match `Display Name `. If `require_display_name` is set to true, the validator will reject strings without the format `Display Name `. If `allow_utf8_local_part` is set to false, the validator will not allow any non-English UTF8 character in email address' local part. If `require_tld` is set to false, e-mail addresses without having TLD in their domain will also be matched. If `ignore_max_length` is set to true, the validator will not check for the standard max length of an email. If `allow_ip_domain` is set to true, the validator will allow IP addresses in the host part. If `domain_specific_validation` is true, some additional validation will be enabled, e.g. disallowing certain syntactically valid email addresses that are rejected by GMail. -**isEmpty(str [, options])** | check if the string has a length of zero.

`options` is an object which defaults to `{ ignore_whitespace:false }`. -**isFloat(str [, options])** | check if the string is a float.

`options` is an object which can contain the keys `min`, `max`, `gt`, and/or `lt` to validate the float is within boundaries (e.g. `{ min: 7.22, max: 9.55 }`) it also has `locale` as an option.

`min` and `max` are equivalent to 'greater or equal' and 'less or equal', respectively while `gt` and `lt` are their strict counterparts.

`locale` determine the decimal separator and is one of `['ar', 'ar-AE', 'ar-BH', 'ar-DZ', 'ar-EG', 'ar-IQ', 'ar-JO', 'ar-KW', 'ar-LB', 'ar-LY', 'ar-MA', 'ar-QA', 'ar-QM', 'ar-SA', 'ar-SD', 'ar-SY', 'ar-TN', 'ar-YE', 'bg-BG', 'cs-CZ', 'da-DK', 'de-DE', 'en-AU', 'en-GB', 'en-HK', 'en-IN', 'en-NZ', 'en-US', 'en-ZA', 'en-ZM', 'es-ES', 'fr-FR', 'hu-HU', 'it-IT', 'nb-NO', 'nl-NL', 'nn-NO', 'pl-PL', 'pt-BR', 'pt-PT', 'ru-RU', 'sl-SI', 'sr-RS', 'sr-RS@latin', 'sv-SE', 'tr-TR', 'uk-UA']`. Locale list is `validator.isFloatLocales`. -**isFQDN(str [, options])** | check if the string is a fully qualified domain name (e.g. domain.com).

`options` is an object which defaults to `{ require_tld: true, allow_underscores: false, allow_trailing_dot: false }`. -**isFullWidth(str)** | check if the string contains any full-width chars. -**isHalfWidth(str)** | check if the string contains any half-width chars. -**isHash(str, algorithm)** | check if the string is a hash of type algorithm.

Algorithm is one of `['md4', 'md5', 'sha1', 'sha256', 'sha384', 'sha512', 'ripemd128', 'ripemd160', 'tiger128', 'tiger160', 'tiger192', 'crc32', 'crc32b']` -**isHexadecimal(str)** | check if the string is a hexadecimal number. -**isHexColor(str)** | check if the string is a hexadecimal color. -**isHSL(str)** | check if the string is an HSL (hue, saturation, lightness, optional alpha) color based on [CSS Colors Level 4 specification](https://developer.mozilla.org/en-US/docs/Web/CSS/color_value).

Comma-separated format supported. Space-separated format supported with the exception of a few edge cases (ex: `hsl(200grad+.1%62%/1)`). -**isRgbColor(str, [, includePercentValues])** | check if the string is a rgb or rgba color.

`includePercentValues` defaults to `true`. If you don't want to allow to set `rgb` or `rgba` values with percents, like `rgb(5%,5%,5%)`, or `rgba(90%,90%,90%,.3)`, then set it to false. -**isIdentityCard(str [, locale])** | check if the string is a valid identity card code.

`locale` is one of `['ES', 'zh-TW', 'he-IL']` OR `'any'`. If 'any' is used, function will check if any of the locals match.

Defaults to 'any'. -**isIn(str, values)** | check if the string is in a array of allowed values. -**isInt(str [, options])** | check if the string is an integer.

`options` is an object which can contain the keys `min` and/or `max` to check the integer is within boundaries (e.g. `{ min: 10, max: 99 }`). `options` can also contain the key `allow_leading_zeroes`, which when set to false will disallow integer values with leading zeroes (e.g. `{ allow_leading_zeroes: false }`). Finally, `options` can contain the keys `gt` and/or `lt` which will enforce integers being greater than or less than, respectively, the value provided (e.g. `{gt: 1, lt: 4}` for a number between 1 and 4). -**isIP(str [, version])** | check if the string is an IP (version 4 or 6). -**isIPRange(str)** | check if the string is an IP Range(version 4 only). -**isISBN(str [, version])** | check if the string is an ISBN (version 10 or 13). -**isEAN(str)** | check if the string is an EAN (European Article Number). -**isISIN(str)** | check if the string is an [ISIN][ISIN] (stock/security identifier). -**isISO31661Alpha2(str)** | check if the string is a valid [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) officially assigned country code. -**isISO31661Alpha3(str)** | check if the string is a valid [ISO 3166-1 alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) officially assigned country code. -**isISO8601(str)** | check if the string is a valid [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date; for additional checks for valid dates, e.g. invalidates dates like `2009-02-29`, pass `options` object as a second parameter with `options.strict = true`. -**isISSN(str [, options])** | check if the string is an [ISSN](https://en.wikipedia.org/wiki/International_Standard_Serial_Number).

`options` is an object which defaults to `{ case_sensitive: false, require_hyphen: false }`. If `case_sensitive` is true, ISSNs with a lowercase `'x'` as the check digit are rejected. -**isISRC(str)** | check if the string is a [ISRC](https://en.wikipedia.org/wiki/International_Standard_Recording_Code). -**isRFC3339(str)** | check if the string is a valid [RFC 3339](https://tools.ietf.org/html/rfc3339) date. -**isJSON(str)** | check if the string is valid JSON (note: uses JSON.parse). -**isJWT(str)** | check if the string is valid JWT token. -**isLatLong(str)**                     | check if the string is a valid latitude-longitude coordinate in the format `lat,long` or `lat, long`. -**isLength(str [, options])** | check if the string's length falls in a range.

`options` is an object which defaults to `{min:0, max: undefined}`. Note: this function takes into account surrogate pairs. -**isLocale(str)** | check if the string is a locale -**isLowercase(str)** | check if the string is lowercase. -**isMACAddress(str)** | check if the string is a MAC address.

`options` is an object which defaults to `{no_colons: false}`. If `no_colons` is true, the validator will allow MAC addresses without the colons. Also, it allows the use of hyphens, spaces or dots e.g '01 02 03 04 05 ab', '01-02-03-04-05-ab' or '0102.0304.05ab'. -**isMagnetURI(str)** | check if the string is a [magnet uri format](https://en.wikipedia.org/wiki/Magnet_URI_scheme). -**isMD5(str)** | check if the string is a MD5 hash.

Please note that you can also use the `isHash(str, 'md5')` function. Keep in mind that MD5 has some collision weaknesses compared to other algorithms (e.g., SHA). -**isMimeType(str)** | check if the string matches to a valid [MIME type](https://en.wikipedia.org/wiki/Media_type) format -**isMobilePhone(str [, locale [, options]])** | check if the string is a mobile phone number,

(locale is either an array of locales (e.g `['sk-SK', 'sr-RS']`) OR one of `['ar-AE', 'ar-BH', 'ar-DZ', 'ar-EG', 'ar-IQ', ar-JO', 'ar-KW', 'ar-SA', 'ar-SY', 'ar-TN', 'be-BY', 'bg-BG', 'bn-BD', 'cs-CZ', 'de-DE', 'de-AT', 'da-DK', 'el-GR', 'en-AU', 'en-CA', 'en-GB', 'en-GG', 'en-GH', 'en-HK', 'en-MO', 'en-IE', 'en-IN', 'en-KE', 'en-MT', 'en-MU', 'en-NG', 'en-NZ', 'en-RW', 'en-SG', 'en-UG', 'en-US', 'en-TZ', 'en-ZA', 'en-ZM', 'en-PK', 'es-EC', 'es-ES', 'es-MX', 'es-PA', 'es-PY', 'es-UY', 'et-EE', 'fa-IR', 'fi-FI', 'fj-FJ', 'fr-FR', 'fr-GF', 'fr-GP', 'fr-MQ', 'fr-RE', 'he-IL', 'hu-HU', 'id-ID', 'it-IT', 'ja-JP', 'kk-KZ', 'ko-KR', 'lt-LT', 'ms-MY', 'nb-NO', 'ne-NP', 'nl-BE', 'nl-NL', 'nn-NO', 'pl-PL', 'pt-PT', 'pt-BR', 'ro-RO', 'ru-RU', 'sl-SI', 'sk-SK', 'sr-RS', 'sv-SE', 'th-TH', 'tr-TR', 'uk-UA', 'vi-VN', 'zh-CN', 'zh-HK', 'zh-MO', 'zh-TW']` OR defaults to 'any'. If 'any' or a falsey value is used, function will check if any of the locales match).

`options` is an optional object that can be supplied with the following keys: `strictMode`, if this is set to `true`, the mobile phone number must be supplied with the country code and therefore must start with `+`. Locale list is `validator.isMobilePhoneLocales`. -**isMongoId(str)** | check if the string is a valid hex-encoded representation of a [MongoDB ObjectId][mongoid]. -**isMultibyte(str)** | check if the string contains one or more multibyte chars. -**isNumeric(str [, options])** | check if the string contains only numbers.

`options` is an object which defaults to `{no_symbols: false}`. If `no_symbols` is true, the validator will reject numeric strings that feature a symbol (e.g. `+`, `-`, or `.`). -**isOctal(str)** | check if the string is a valid octal number. -**isPassportNumber(str, countryCode)** | check if the string is a valid passport number relative to a specific country code. -**isPort(str)** | check if the string is a valid port number. -**isPostalCode(str, locale)** | check if the string is a postal code,

(locale is one of `[ 'AD', 'AT', 'AU', 'BE', 'BG', 'BR', 'CA', 'CH', 'CZ', 'DE', 'DK', 'DZ', 'EE', 'ES', 'FI', 'FR', 'GB', 'GR', 'HR', 'HU', 'ID', 'IE' 'IL', 'IN', 'IR', 'IS', 'IT', 'JP', 'KE', 'LI', 'LT', 'LU', 'LV', 'MT', 'MX', 'NL', 'NO', 'NZ', 'PL', 'PR', 'PT', 'RO', 'RU', 'SA', 'SE', 'SI', 'TN', 'TW', 'UA', 'US', 'ZA', 'ZM' ]` OR 'any'. If 'any' is used, function will check if any of the locals match. Locale list is `validator.isPostalCodeLocales`.). -**isSemVer(str)** | check if the string is a Semantic Versioning Specification (SemVer). -**isSurrogatePair(str)** | check if the string contains any surrogate pairs chars. -**isURL(str [, options])** | check if the string is an URL.

`options` is an object which defaults to `{ protocols: ['http','https','ftp'], require_tld: true, require_protocol: false, require_host: true, require_valid_protocol: true, allow_underscores: false, host_whitelist: false, host_blacklist: false, allow_trailing_dot: false, allow_protocol_relative_urls: false, disallow_auth: false }`.

require_protocol - if set as true isURL will return false if protocol is not present in the URL.
require_valid_protocol - isURL will check if the URL's protocol is present in the protocols option.
protocols - valid protocols can be modified with this option.
require_host - if set as false isURL will not check if host is present in the URL.
allow_protocol_relative_urls - if set as true protocol relative URLs will be allowed. -**isUppercase(str)** | check if the string is uppercase. -**isUUID(str [, version])** | check if the string is a UUID (version 3, 4 or 5). -**isVariableWidth(str)** | check if the string contains a mixture of full and half-width chars. -**isWhitelisted(str, chars)** | checks characters if they appear in the whitelist. -**matches(str, pattern [, modifiers])** | check if string matches the pattern.

Either `matches('foo', /foo/i)` or `matches('foo', 'foo', 'i')`. - -## Sanitizers - -Here is a list of the sanitizers currently available. - -Sanitizer | Description --------------------------------------- | ------------------------------- -**blacklist(input, chars)** | remove characters that appear in the blacklist. The characters are used in a RegExp and so you will need to escape some chars, e.g. `blacklist(input, '\\[\\]')`. -**escape(input)** | replace `<`, `>`, `&`, `'`, `"` and `/` with HTML entities. -**unescape(input)** | replaces HTML encoded entities with `<`, `>`, `&`, `'`, `"` and `/`. -**ltrim(input [, chars])** | trim characters from the left-side of the input. -**normalizeEmail(email [, options])** | canonicalizes an email address. (This doesn't validate that the input is an email, if you want to validate the email use isEmail beforehand)

`options` is an object with the following keys and default values:
  • *all_lowercase: true* - Transforms the local part (before the @ symbol) of all email addresses to lowercase. Please note that this may violate RFC 5321, which gives providers the possibility to treat the local part of email addresses in a case sensitive way (although in practice most - yet not all - providers don't). The domain part of the email address is always lowercased, as it's case insensitive per RFC 1035.
  • *gmail_lowercase: true* - GMail addresses are known to be case-insensitive, so this switch allows lowercasing them even when *all_lowercase* is set to false. Please note that when *all_lowercase* is true, GMail addresses are lowercased regardless of the value of this setting.
  • *gmail_remove_dots: true*: Removes dots from the local part of the email address, as GMail ignores them (e.g. "john.doe" and "johndoe" are considered equal).
  • *gmail_remove_subaddress: true*: Normalizes addresses by removing "sub-addresses", which is the part following a "+" sign (e.g. "foo+bar@gmail.com" becomes "foo@gmail.com").
  • *gmail_convert_googlemaildotcom: true*: Converts addresses with domain @googlemail.com to @gmail.com, as they're equivalent.
  • *outlookdotcom_lowercase: true* - Outlook.com addresses (including Windows Live and Hotmail) are known to be case-insensitive, so this switch allows lowercasing them even when *all_lowercase* is set to false. Please note that when *all_lowercase* is true, Outlook.com addresses are lowercased regardless of the value of this setting.
  • *outlookdotcom_remove_subaddress: true*: Normalizes addresses by removing "sub-addresses", which is the part following a "+" sign (e.g. "foo+bar@outlook.com" becomes "foo@outlook.com").
  • *yahoo_lowercase: true* - Yahoo Mail addresses are known to be case-insensitive, so this switch allows lowercasing them even when *all_lowercase* is set to false. Please note that when *all_lowercase* is true, Yahoo Mail addresses are lowercased regardless of the value of this setting.
  • *yahoo_remove_subaddress: true*: Normalizes addresses by removing "sub-addresses", which is the part following a "-" sign (e.g. "foo-bar@yahoo.com" becomes "foo@yahoo.com").
  • *icloud_lowercase: true* - iCloud addresses (including MobileMe) are known to be case-insensitive, so this switch allows lowercasing them even when *all_lowercase* is set to false. Please note that when *all_lowercase* is true, iCloud addresses are lowercased regardless of the value of this setting.
  • *icloud_remove_subaddress: true*: Normalizes addresses by removing "sub-addresses", which is the part following a "+" sign (e.g. "foo+bar@icloud.com" becomes "foo@icloud.com").
-**rtrim(input [, chars])** | trim characters from the right-side of the input. -**stripLow(input [, keep_new_lines])** | remove characters with a numerical value < 32 and 127, mostly control characters. If `keep_new_lines` is `true`, newline characters are preserved (`\n` and `\r`, hex `0xA` and `0xD`). Unicode-safe in JavaScript. -**toBoolean(input [, strict])** | convert the input string to a boolean. Everything except for `'0'`, `'false'` and `''` returns `true`. In strict mode only `'1'` and `'true'` return `true`. -**toDate(input)** | convert the input string to a date, or `null` if the input is not a date. -**toFloat(input)** | convert the input string to a float, or `NaN` if the input is not a float. -**toInt(input [, radix])** | convert the input string to an integer, or `NaN` if the input is not an integer. -**trim(input [, chars])** | trim characters (whitespace by default) from both sides of the input. -**whitelist(input, chars)** | remove characters that do not appear in the whitelist. The characters are used in a RegExp and so you will need to escape some chars, e.g. `whitelist(input, '\\[\\]')`. -**isSlug** | Check if the string is of type slug. `Options` allow a single hyphen between string. e.g. [`cn-cn`, `cn-c-c`] - -### XSS Sanitization - -XSS sanitization was removed from the library in [2d5d6999](https://github.com/chriso/validator.js/commit/2d5d6999541add350fb396ef02dc42ca3215049e). - -For an alternative, have a look at Yahoo's [xss-filters library](https://github.com/yahoo/xss-filters) or at [DOMPurify](https://github.com/cure53/DOMPurify). - -## Contributing - -In general, we follow the "fork-and-pull" Git workflow. - -1. Fork the repo on GitHub -2. Clone the project to your own machine -3. Work on your fork - 1. Make your changes and additions - - Most of your changes should be focused on `src/` and `test/` folders and/or `README.md`. - - Files such as `validator.js`, `validator.min.js` and files in `lib/` folder are autogenerated when running tests (`npm test`) and need not to be changed **manually**. - 2. Change or add tests if needed - 3. Run tests and make sure they pass - 4. Add changes to README.md if needed -4. Commit changes to your own branch -5. **Make sure** you merge the latest from "upstream" and resolve conflicts if there is any -6. Repeat step 3(3) above -7. Push your work back up to your fork -8. Submit a Pull request so that we can review your changes - -## Tests - -Tests are using mocha, to run the tests use: - -```sh -$ npm test -``` - -## Maintainers - -- [chriso](https://github.com/chriso) - **Chris O'Hara** (author) -- [profnandaa](https://github.com/profnandaa) - **Anthony Nandaa** - -## Reading - -Remember, validating can be troublesome sometimes. See [A list of articles about programming assumptions commonly made that aren't true](https://github.com/jameslk/awesome-falsehoods). - -## License (MIT) - -``` -Copyright (c) 2018 Chris O'Hara - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -``` - -[downloads-image]: http://img.shields.io/npm/dm/validator.svg - -[npm-url]: https://npmjs.org/package/validator -[npm-image]: http://img.shields.io/npm/v/validator.svg - -[travis-url]: https://travis-ci.org/chriso/validator.js -[travis-image]: http://img.shields.io/travis/chriso/validator.js.svg - -[amd]: http://requirejs.org/docs/whyamd.html -[bower]: http://bower.io/ - -[mongoid]: http://docs.mongodb.org/manual/reference/object-id/ -[ISIN]: https://en.wikipedia.org/wiki/International_Securities_Identification_Number diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/index.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/index.js deleted file mode 100644 index 61b55fc..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/index.js +++ /dev/null @@ -1,181 +0,0 @@ -import toDate from './lib/toDate'; -import toFloat from './lib/toFloat'; -import toInt from './lib/toInt'; -import toBoolean from './lib/toBoolean'; -import equals from './lib/equals'; -import contains from './lib/contains'; -import matches from './lib/matches'; -import isEmail from './lib/isEmail'; -import isURL from './lib/isURL'; -import isMACAddress from './lib/isMACAddress'; -import isIP from './lib/isIP'; -import isIPRange from './lib/isIPRange'; -import isFQDN from './lib/isFQDN'; -import isBoolean from './lib/isBoolean'; -import isLocale from './lib/isLocale'; -import isAlpha, { locales as isAlphaLocales } from './lib/isAlpha'; -import isAlphanumeric, { locales as isAlphanumericLocales } from './lib/isAlphanumeric'; -import isNumeric from './lib/isNumeric'; -import isPassportNumber from './lib/isPassportNumber'; -import isPort from './lib/isPort'; -import isLowercase from './lib/isLowercase'; -import isUppercase from './lib/isUppercase'; -import isAscii from './lib/isAscii'; -import isFullWidth from './lib/isFullWidth'; -import isHalfWidth from './lib/isHalfWidth'; -import isVariableWidth from './lib/isVariableWidth'; -import isMultibyte from './lib/isMultibyte'; -import isSemVer from './lib/isSemVer'; -import isSurrogatePair from './lib/isSurrogatePair'; -import isInt from './lib/isInt'; -import isFloat, { locales as isFloatLocales } from './lib/isFloat'; -import isDecimal from './lib/isDecimal'; -import isHexadecimal from './lib/isHexadecimal'; -import isOctal from './lib/isOctal'; -import isDivisibleBy from './lib/isDivisibleBy'; -import isHexColor from './lib/isHexColor'; -import isRgbColor from './lib/isRgbColor'; -import isHSL from './lib/isHSL'; -import isISRC from './lib/isISRC'; -import isIBAN from './lib/isIBAN'; -import isBIC from './lib/isBIC'; -import isMD5 from './lib/isMD5'; -import isHash from './lib/isHash'; -import isJWT from './lib/isJWT'; -import isJSON from './lib/isJSON'; -import isEmpty from './lib/isEmpty'; -import isLength from './lib/isLength'; -import isByteLength from './lib/isByteLength'; -import isUUID from './lib/isUUID'; -import isMongoId from './lib/isMongoId'; -import isAfter from './lib/isAfter'; -import isBefore from './lib/isBefore'; -import isIn from './lib/isIn'; -import isCreditCard from './lib/isCreditCard'; -import isIdentityCard from './lib/isIdentityCard'; -import isEAN from './lib/isEAN'; -import isISIN from './lib/isISIN'; -import isISBN from './lib/isISBN'; -import isISSN from './lib/isISSN'; -import isMobilePhone, { locales as isMobilePhoneLocales } from './lib/isMobilePhone'; -import isEthereumAddress from './lib/isEthereumAddress'; -import isCurrency from './lib/isCurrency'; -import isBtcAddress from './lib/isBtcAddress'; -import isISO8601 from './lib/isISO8601'; -import isRFC3339 from './lib/isRFC3339'; -import isISO31661Alpha2 from './lib/isISO31661Alpha2'; -import isISO31661Alpha3 from './lib/isISO31661Alpha3'; -import isBase32 from './lib/isBase32'; -import isBase64 from './lib/isBase64'; -import isDataURI from './lib/isDataURI'; -import isMagnetURI from './lib/isMagnetURI'; -import isMimeType from './lib/isMimeType'; -import isLatLong from './lib/isLatLong'; -import isPostalCode, { locales as isPostalCodeLocales } from './lib/isPostalCode'; -import ltrim from './lib/ltrim'; -import rtrim from './lib/rtrim'; -import trim from './lib/trim'; -import escape from './lib/escape'; -import unescape from './lib/unescape'; -import stripLow from './lib/stripLow'; -import whitelist from './lib/whitelist'; -import blacklist from './lib/blacklist'; -import isWhitelisted from './lib/isWhitelisted'; -import normalizeEmail from './lib/normalizeEmail'; -import isSlug from './lib/isSlug'; -var version = '13.0.0'; -var validator = { - version: version, - toDate: toDate, - toFloat: toFloat, - toInt: toInt, - toBoolean: toBoolean, - equals: equals, - contains: contains, - matches: matches, - isEmail: isEmail, - isURL: isURL, - isMACAddress: isMACAddress, - isIP: isIP, - isIPRange: isIPRange, - isFQDN: isFQDN, - isBoolean: isBoolean, - isIBAN: isIBAN, - isBIC: isBIC, - isAlpha: isAlpha, - isAlphaLocales: isAlphaLocales, - isAlphanumeric: isAlphanumeric, - isAlphanumericLocales: isAlphanumericLocales, - isNumeric: isNumeric, - isPassportNumber: isPassportNumber, - isPort: isPort, - isLowercase: isLowercase, - isUppercase: isUppercase, - isAscii: isAscii, - isFullWidth: isFullWidth, - isHalfWidth: isHalfWidth, - isVariableWidth: isVariableWidth, - isMultibyte: isMultibyte, - isSemVer: isSemVer, - isSurrogatePair: isSurrogatePair, - isInt: isInt, - isFloat: isFloat, - isFloatLocales: isFloatLocales, - isDecimal: isDecimal, - isHexadecimal: isHexadecimal, - isOctal: isOctal, - isDivisibleBy: isDivisibleBy, - isHexColor: isHexColor, - isRgbColor: isRgbColor, - isHSL: isHSL, - isISRC: isISRC, - isMD5: isMD5, - isHash: isHash, - isJWT: isJWT, - isJSON: isJSON, - isEmpty: isEmpty, - isLength: isLength, - isLocale: isLocale, - isByteLength: isByteLength, - isUUID: isUUID, - isMongoId: isMongoId, - isAfter: isAfter, - isBefore: isBefore, - isIn: isIn, - isCreditCard: isCreditCard, - isIdentityCard: isIdentityCard, - isEAN: isEAN, - isISIN: isISIN, - isISBN: isISBN, - isISSN: isISSN, - isMobilePhone: isMobilePhone, - isMobilePhoneLocales: isMobilePhoneLocales, - isPostalCode: isPostalCode, - isPostalCodeLocales: isPostalCodeLocales, - isEthereumAddress: isEthereumAddress, - isCurrency: isCurrency, - isBtcAddress: isBtcAddress, - isISO8601: isISO8601, - isRFC3339: isRFC3339, - isISO31661Alpha2: isISO31661Alpha2, - isISO31661Alpha3: isISO31661Alpha3, - isBase32: isBase32, - isBase64: isBase64, - isDataURI: isDataURI, - isMagnetURI: isMagnetURI, - isMimeType: isMimeType, - isLatLong: isLatLong, - ltrim: ltrim, - rtrim: rtrim, - trim: trim, - escape: escape, - unescape: unescape, - stripLow: stripLow, - whitelist: whitelist, - blacklist: blacklist, - isWhitelisted: isWhitelisted, - normalizeEmail: normalizeEmail, - toString: toString, - isSlug: isSlug -}; -export default validator; \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/alpha.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/alpha.js deleted file mode 100644 index 38d385b..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/alpha.js +++ /dev/null @@ -1,100 +0,0 @@ -export var alpha = { - 'en-US': /^[A-Z]+$/i, - 'bg-BG': /^[А-Я]+$/i, - 'cs-CZ': /^[A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ]+$/i, - 'da-DK': /^[A-ZÆØÅ]+$/i, - 'de-DE': /^[A-ZÄÖÜß]+$/i, - 'el-GR': /^[Α-ώ]+$/i, - 'es-ES': /^[A-ZÁÉÍÑÓÚÜ]+$/i, - 'fr-FR': /^[A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ]+$/i, - 'it-IT': /^[A-ZÀÉÈÌÎÓÒÙ]+$/i, - 'nb-NO': /^[A-ZÆØÅ]+$/i, - 'nl-NL': /^[A-ZÁÉËÏÓÖÜÚ]+$/i, - 'nn-NO': /^[A-ZÆØÅ]+$/i, - 'hu-HU': /^[A-ZÁÉÍÓÖŐÚÜŰ]+$/i, - 'pl-PL': /^[A-ZĄĆĘŚŁŃÓŻŹ]+$/i, - 'pt-PT': /^[A-ZÃÁÀÂÄÇÉÊËÍÏÕÓÔÖÚÜ]+$/i, - 'ru-RU': /^[А-ЯЁ]+$/i, - 'sl-SI': /^[A-ZČĆĐŠŽ]+$/i, - 'sk-SK': /^[A-ZÁČĎÉÍŇÓŠŤÚÝŽĹŔĽÄÔ]+$/i, - 'sr-RS@latin': /^[A-ZČĆŽŠĐ]+$/i, - 'sr-RS': /^[А-ЯЂЈЉЊЋЏ]+$/i, - 'sv-SE': /^[A-ZÅÄÖ]+$/i, - 'tr-TR': /^[A-ZÇĞİıÖŞÜ]+$/i, - 'uk-UA': /^[А-ЩЬЮЯЄIЇҐі]+$/i, - 'ku-IQ': /^[ئابپتجچحخدرڕزژسشعغفڤقکگلڵمنوۆھەیێيطؤثآإأكضصةظذ]+$/i, - ar: /^[ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]+$/, - he: /^[א-ת]+$/, - 'fa-IR': /^['آابپتثجچهخدذرزژسشصضطظعغفقکگلمنوهی']+$/i -}; -export var alphanumeric = { - 'en-US': /^[0-9A-Z]+$/i, - 'bg-BG': /^[0-9А-Я]+$/i, - 'cs-CZ': /^[0-9A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ]+$/i, - 'da-DK': /^[0-9A-ZÆØÅ]+$/i, - 'de-DE': /^[0-9A-ZÄÖÜß]+$/i, - 'el-GR': /^[0-9Α-ω]+$/i, - 'es-ES': /^[0-9A-ZÁÉÍÑÓÚÜ]+$/i, - 'fr-FR': /^[0-9A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ]+$/i, - 'it-IT': /^[0-9A-ZÀÉÈÌÎÓÒÙ]+$/i, - 'hu-HU': /^[0-9A-ZÁÉÍÓÖŐÚÜŰ]+$/i, - 'nb-NO': /^[0-9A-ZÆØÅ]+$/i, - 'nl-NL': /^[0-9A-ZÁÉËÏÓÖÜÚ]+$/i, - 'nn-NO': /^[0-9A-ZÆØÅ]+$/i, - 'pl-PL': /^[0-9A-ZĄĆĘŚŁŃÓŻŹ]+$/i, - 'pt-PT': /^[0-9A-ZÃÁÀÂÄÇÉÊËÍÏÕÓÔÖÚÜ]+$/i, - 'ru-RU': /^[0-9А-ЯЁ]+$/i, - 'sl-SI': /^[0-9A-ZČĆĐŠŽ]+$/i, - 'sk-SK': /^[0-9A-ZÁČĎÉÍŇÓŠŤÚÝŽĹŔĽÄÔ]+$/i, - 'sr-RS@latin': /^[0-9A-ZČĆŽŠĐ]+$/i, - 'sr-RS': /^[0-9А-ЯЂЈЉЊЋЏ]+$/i, - 'sv-SE': /^[0-9A-ZÅÄÖ]+$/i, - 'tr-TR': /^[0-9A-ZÇĞİıÖŞÜ]+$/i, - 'uk-UA': /^[0-9А-ЩЬЮЯЄIЇҐі]+$/i, - 'ku-IQ': /^[٠١٢٣٤٥٦٧٨٩0-9ئابپتجچحخدرڕزژسشعغفڤقکگلڵمنوۆھەیێيطؤثآإأكضصةظذ]+$/i, - ar: /^[٠١٢٣٤٥٦٧٨٩0-9ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]+$/, - he: /^[0-9א-ת]+$/, - 'fa-IR': /^['0-9آابپتثجچهخدذرزژسشصضطظعغفقکگلمنوهی۱۲۳۴۵۶۷۸۹۰']+$/i -}; -export var decimal = { - 'en-US': '.', - ar: '٫' -}; -export var englishLocales = ['AU', 'GB', 'HK', 'IN', 'NZ', 'ZA', 'ZM']; - -for (var locale, i = 0; i < englishLocales.length; i++) { - locale = "en-".concat(englishLocales[i]); - alpha[locale] = alpha['en-US']; - alphanumeric[locale] = alphanumeric['en-US']; - decimal[locale] = decimal['en-US']; -} // Source: http://www.localeplanet.com/java/ - - -export var arabicLocales = ['AE', 'BH', 'DZ', 'EG', 'IQ', 'JO', 'KW', 'LB', 'LY', 'MA', 'QM', 'QA', 'SA', 'SD', 'SY', 'TN', 'YE']; - -for (var _locale, _i = 0; _i < arabicLocales.length; _i++) { - _locale = "ar-".concat(arabicLocales[_i]); - alpha[_locale] = alpha.ar; - alphanumeric[_locale] = alphanumeric.ar; - decimal[_locale] = decimal.ar; -} // Source: https://en.wikipedia.org/wiki/Decimal_mark - - -export var dotDecimal = ['ar-EG', 'ar-LB', 'ar-LY']; -export var commaDecimal = ['bg-BG', 'cs-CZ', 'da-DK', 'de-DE', 'el-GR', 'en-ZM', 'es-ES', 'fr-FR', 'it-IT', 'ku-IQ', 'hu-HU', 'nb-NO', 'nn-NO', 'nl-NL', 'pl-PL', 'pt-PT', 'ru-RU', 'sl-SI', 'sr-RS@latin', 'sr-RS', 'sv-SE', 'tr-TR', 'uk-UA']; - -for (var _i2 = 0; _i2 < dotDecimal.length; _i2++) { - decimal[dotDecimal[_i2]] = decimal['en-US']; -} - -for (var _i3 = 0; _i3 < commaDecimal.length; _i3++) { - decimal[commaDecimal[_i3]] = ','; -} - -alpha['pt-BR'] = alpha['pt-PT']; -alphanumeric['pt-BR'] = alphanumeric['pt-PT']; -decimal['pt-BR'] = decimal['pt-PT']; // see #862 - -alpha['pl-Pl'] = alpha['pl-PL']; -alphanumeric['pl-Pl'] = alphanumeric['pl-PL']; -decimal['pl-Pl'] = decimal['pl-PL']; \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/blacklist.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/blacklist.js deleted file mode 100644 index 77c0e5c..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/blacklist.js +++ /dev/null @@ -1,5 +0,0 @@ -import assertString from './util/assertString'; -export default function blacklist(str, chars) { - assertString(str); - return str.replace(new RegExp("[".concat(chars, "]+"), 'g'), ''); -} \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/contains.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/contains.js deleted file mode 100644 index 10bd668..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/contains.js +++ /dev/null @@ -1,6 +0,0 @@ -import assertString from './util/assertString'; -import toString from './util/toString'; -export default function contains(str, elem) { - assertString(str); - return str.indexOf(toString(elem)) >= 0; -} \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/equals.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/equals.js deleted file mode 100644 index 87a9ded..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/equals.js +++ /dev/null @@ -1,5 +0,0 @@ -import assertString from './util/assertString'; -export default function equals(str, comparison) { - assertString(str); - return str === comparison; -} \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/escape.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/escape.js deleted file mode 100644 index e9bb6de..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/escape.js +++ /dev/null @@ -1,5 +0,0 @@ -import assertString from './util/assertString'; -export default function escape(str) { - assertString(str); - return str.replace(/&/g, '&').replace(/"/g, '"').replace(/'/g, ''').replace(//g, '>').replace(/\//g, '/').replace(/\\/g, '\').replace(/`/g, '`'); -} \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isAfter.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isAfter.js deleted file mode 100644 index b99cfa4..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isAfter.js +++ /dev/null @@ -1,9 +0,0 @@ -import assertString from './util/assertString'; -import toDate from './toDate'; -export default function isAfter(str) { - var date = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : String(new Date()); - assertString(str); - var comparison = toDate(date); - var original = toDate(str); - return !!(original && comparison && original > comparison); -} \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isAlpha.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isAlpha.js deleted file mode 100644 index 2b30d14..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isAlpha.js +++ /dev/null @@ -1,13 +0,0 @@ -import assertString from './util/assertString'; -import { alpha } from './alpha'; -export default function isAlpha(str) { - var locale = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'en-US'; - assertString(str); - - if (locale in alpha) { - return alpha[locale].test(str); - } - - throw new Error("Invalid locale '".concat(locale, "'")); -} -export var locales = Object.keys(alpha); \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isAlphanumeric.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isAlphanumeric.js deleted file mode 100644 index 4bbca75..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isAlphanumeric.js +++ /dev/null @@ -1,13 +0,0 @@ -import assertString from './util/assertString'; -import { alphanumeric } from './alpha'; -export default function isAlphanumeric(str) { - var locale = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'en-US'; - assertString(str); - - if (locale in alphanumeric) { - return alphanumeric[locale].test(str); - } - - throw new Error("Invalid locale '".concat(locale, "'")); -} -export var locales = Object.keys(alphanumeric); \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isAscii.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isAscii.js deleted file mode 100644 index e322121..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isAscii.js +++ /dev/null @@ -1,10 +0,0 @@ -import assertString from './util/assertString'; -/* eslint-disable no-control-regex */ - -var ascii = /^[\x00-\x7F]+$/; -/* eslint-enable no-control-regex */ - -export default function isAscii(str) { - assertString(str); - return ascii.test(str); -} \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isBIC.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isBIC.js deleted file mode 100644 index a51944b..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isBIC.js +++ /dev/null @@ -1,6 +0,0 @@ -import assertString from './util/assertString'; -var isBICReg = /^[A-z]{4}[A-z]{2}\w{2}(\w{3})?$/; -export default function isBIC(str) { - assertString(str); - return isBICReg.test(str); -} \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isBase32.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isBase32.js deleted file mode 100644 index 5150b36..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isBase32.js +++ /dev/null @@ -1,12 +0,0 @@ -import assertString from './util/assertString'; -var base32 = /^[A-Z2-7]+=*$/; -export default function isBase32(str) { - assertString(str); - var len = str.length; - - if (len > 0 && len % 8 === 0 && base32.test(str)) { - return true; - } - - return false; -} \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isBase64.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isBase64.js deleted file mode 100644 index de9e4e3..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isBase64.js +++ /dev/null @@ -1,13 +0,0 @@ -import assertString from './util/assertString'; -var notBase64 = /[^A-Z0-9+\/=]/i; -export default function isBase64(str) { - assertString(str); - var len = str.length; - - if (!len || len % 4 !== 0 || notBase64.test(str)) { - return false; - } - - var firstPaddingChar = str.indexOf('='); - return firstPaddingChar === -1 || firstPaddingChar === len - 1 || firstPaddingChar === len - 2 && str[len - 1] === '='; -} \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isBefore.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isBefore.js deleted file mode 100644 index 794dbab..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isBefore.js +++ /dev/null @@ -1,9 +0,0 @@ -import assertString from './util/assertString'; -import toDate from './toDate'; -export default function isBefore(str) { - var date = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : String(new Date()); - assertString(str); - var comparison = toDate(date); - var original = toDate(str); - return !!(original && comparison && original < comparison); -} \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isBoolean.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isBoolean.js deleted file mode 100644 index d50092f..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isBoolean.js +++ /dev/null @@ -1,5 +0,0 @@ -import assertString from './util/assertString'; -export default function isBoolean(str) { - assertString(str); - return ['true', 'false', '1', '0'].indexOf(str) >= 0; -} \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isBtcAddress.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isBtcAddress.js deleted file mode 100644 index bd2141a..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isBtcAddress.js +++ /dev/null @@ -1,7 +0,0 @@ -import assertString from './util/assertString'; // supports Bech32 addresses - -var btc = /^(bc1|[13])[a-zA-HJ-NP-Z0-9]{25,39}$/; -export default function isBtcAddress(str) { - assertString(str); - return btc.test(str); -} \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isByteLength.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isByteLength.js deleted file mode 100644 index eee2543..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isByteLength.js +++ /dev/null @@ -1,22 +0,0 @@ -function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } - -import assertString from './util/assertString'; -/* eslint-disable prefer-rest-params */ - -export default function isByteLength(str, options) { - assertString(str); - var min; - var max; - - if (_typeof(options) === 'object') { - min = options.min || 0; - max = options.max; - } else { - // backwards compatibility: isByteLength(str, min [, max]) - min = arguments[1]; - max = arguments[2]; - } - - var len = encodeURI(str).split(/%..|./).length - 1; - return len >= min && (typeof max === 'undefined' || len <= max); -} \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isCreditCard.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isCreditCard.js deleted file mode 100644 index 7f14736..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isCreditCard.js +++ /dev/null @@ -1,40 +0,0 @@ -import assertString from './util/assertString'; -/* eslint-disable max-len */ - -var creditCard = /^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|(222[1-9]|22[3-9][0-9]|2[3-6][0-9]{2}|27[01][0-9]|2720)[0-9]{12}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11}|6[27][0-9]{14})$/; -/* eslint-enable max-len */ - -export default function isCreditCard(str) { - assertString(str); - var sanitized = str.replace(/[- ]+/g, ''); - - if (!creditCard.test(sanitized)) { - return false; - } - - var sum = 0; - var digit; - var tmpNum; - var shouldDouble; - - for (var i = sanitized.length - 1; i >= 0; i--) { - digit = sanitized.substring(i, i + 1); - tmpNum = parseInt(digit, 10); - - if (shouldDouble) { - tmpNum *= 2; - - if (tmpNum >= 10) { - sum += tmpNum % 10 + 1; - } else { - sum += tmpNum; - } - } else { - sum += tmpNum; - } - - shouldDouble = !shouldDouble; - } - - return !!(sum % 10 === 0 ? sanitized : false); -} \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isCurrency.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isCurrency.js deleted file mode 100644 index a95020b..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isCurrency.js +++ /dev/null @@ -1,75 +0,0 @@ -import merge from './util/merge'; -import assertString from './util/assertString'; - -function currencyRegex(options) { - var decimal_digits = "\\d{".concat(options.digits_after_decimal[0], "}"); - options.digits_after_decimal.forEach(function (digit, index) { - if (index !== 0) decimal_digits = "".concat(decimal_digits, "|\\d{").concat(digit, "}"); - }); - var symbol = "(\\".concat(options.symbol.replace(/\./g, '\\.'), ")").concat(options.require_symbol ? '' : '?'), - negative = '-?', - whole_dollar_amount_without_sep = '[1-9]\\d*', - whole_dollar_amount_with_sep = "[1-9]\\d{0,2}(\\".concat(options.thousands_separator, "\\d{3})*"), - valid_whole_dollar_amounts = ['0', whole_dollar_amount_without_sep, whole_dollar_amount_with_sep], - whole_dollar_amount = "(".concat(valid_whole_dollar_amounts.join('|'), ")?"), - decimal_amount = "(\\".concat(options.decimal_separator, "(").concat(decimal_digits, "))").concat(options.require_decimal ? '' : '?'); - var pattern = whole_dollar_amount + (options.allow_decimal || options.require_decimal ? decimal_amount : ''); // default is negative sign before symbol, but there are two other options (besides parens) - - if (options.allow_negatives && !options.parens_for_negatives) { - if (options.negative_sign_after_digits) { - pattern += negative; - } else if (options.negative_sign_before_digits) { - pattern = negative + pattern; - } - } // South African Rand, for example, uses R 123 (space) and R-123 (no space) - - - if (options.allow_negative_sign_placeholder) { - pattern = "( (?!\\-))?".concat(pattern); - } else if (options.allow_space_after_symbol) { - pattern = " ?".concat(pattern); - } else if (options.allow_space_after_digits) { - pattern += '( (?!$))?'; - } - - if (options.symbol_after_digits) { - pattern += symbol; - } else { - pattern = symbol + pattern; - } - - if (options.allow_negatives) { - if (options.parens_for_negatives) { - pattern = "(\\(".concat(pattern, "\\)|").concat(pattern, ")"); - } else if (!(options.negative_sign_before_digits || options.negative_sign_after_digits)) { - pattern = negative + pattern; - } - } // ensure there's a dollar and/or decimal amount, and that - // it doesn't start with a space or a negative sign followed by a space - - - return new RegExp("^(?!-? )(?=.*\\d)".concat(pattern, "$")); -} - -var default_currency_options = { - symbol: '$', - require_symbol: false, - allow_space_after_symbol: false, - symbol_after_digits: false, - allow_negatives: true, - parens_for_negatives: false, - negative_sign_before_digits: false, - negative_sign_after_digits: false, - allow_negative_sign_placeholder: false, - thousands_separator: ',', - decimal_separator: '.', - allow_decimal: true, - require_decimal: false, - digits_after_decimal: [2], - allow_space_after_digits: false -}; -export default function isCurrency(str, options) { - assertString(str); - options = merge(options, default_currency_options); - return currencyRegex(options).test(str); -} \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isDataURI.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isDataURI.js deleted file mode 100644 index 781be5b..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isDataURI.js +++ /dev/null @@ -1,40 +0,0 @@ -import assertString from './util/assertString'; -var validMediaType = /^[a-z]+\/[a-z0-9\-\+]+$/i; -var validAttribute = /^[a-z\-]+=[a-z0-9\-]+$/i; -var validData = /^[a-z0-9!\$&'\(\)\*\+,;=\-\._~:@\/\?%\s]*$/i; -export default function isDataURI(str) { - assertString(str); - var data = str.split(','); - - if (data.length < 2) { - return false; - } - - var attributes = data.shift().trim().split(';'); - var schemeAndMediaType = attributes.shift(); - - if (schemeAndMediaType.substr(0, 5) !== 'data:') { - return false; - } - - var mediaType = schemeAndMediaType.substr(5); - - if (mediaType !== '' && !validMediaType.test(mediaType)) { - return false; - } - - for (var i = 0; i < attributes.length; i++) { - if (i === attributes.length - 1 && attributes[i].toLowerCase() === 'base64') {// ok - } else if (!validAttribute.test(attributes[i])) { - return false; - } - } - - for (var _i = 0; _i < data.length; _i++) { - if (!validData.test(data[_i])) { - return false; - } - } - - return true; -} \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isDecimal.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isDecimal.js deleted file mode 100644 index 597f42c..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isDecimal.js +++ /dev/null @@ -1,26 +0,0 @@ -import merge from './util/merge'; -import assertString from './util/assertString'; -import includes from './util/includes'; -import { decimal } from './alpha'; - -function decimalRegExp(options) { - var regExp = new RegExp("^[-+]?([0-9]+)?(\\".concat(decimal[options.locale], "[0-9]{").concat(options.decimal_digits, "})").concat(options.force_decimal ? '' : '?', "$")); - return regExp; -} - -var default_decimal_options = { - force_decimal: false, - decimal_digits: '1,', - locale: 'en-US' -}; -var blacklist = ['', '-', '+']; -export default function isDecimal(str, options) { - assertString(str); - options = merge(options, default_decimal_options); - - if (options.locale in decimal) { - return !includes(blacklist, str.replace(/ /g, '')) && decimalRegExp(options).test(str); - } - - throw new Error("Invalid locale '".concat(options.locale, "'")); -} \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isDivisibleBy.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isDivisibleBy.js deleted file mode 100644 index f71d5f4..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isDivisibleBy.js +++ /dev/null @@ -1,6 +0,0 @@ -import assertString from './util/assertString'; -import toFloat from './toFloat'; -export default function isDivisibleBy(str, num) { - assertString(str); - return toFloat(str) % parseInt(num, 10) === 0; -} \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isEAN.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isEAN.js deleted file mode 100644 index aae665c..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isEAN.js +++ /dev/null @@ -1,67 +0,0 @@ -/** - * The most commonly used EAN standard is - * the thirteen-digit EAN-13, while the - * less commonly used 8-digit EAN-8 barcode was - * introduced for use on small packages. - * EAN consists of: - * GS1 prefix, manufacturer code, product code and check digit - * Reference: https://en.wikipedia.org/wiki/International_Article_Number - */ -import assertString from './util/assertString'; -/** - * Define EAN Lenghts; 8 for EAN-8; 13 for EAN-13 - * and Regular Expression for valid EANs (EAN-8, EAN-13), - * with exact numberic matching of 8 or 13 digits [0-9] - */ - -var LENGTH_EAN_8 = 8; -var validEanRegex = /^(\d{8}|\d{13})$/; -/** - * Get position weight given: - * EAN length and digit index/position - * - * @param {number} length - * @param {number} index - * @return {number} - */ - -function getPositionWeightThroughLengthAndIndex(length, index) { - if (length === LENGTH_EAN_8) { - return index % 2 === 0 ? 3 : 1; - } - - return index % 2 === 0 ? 1 : 3; -} -/** - * Calculate EAN Check Digit - * Reference: https://en.wikipedia.org/wiki/International_Article_Number#Calculation_of_checksum_digit - * - * @param {string} ean - * @return {number} - */ - - -function calculateCheckDigit(ean) { - var checksum = ean.slice(0, -1).split('').map(function (_char, index) { - return Number(_char) * getPositionWeightThroughLengthAndIndex(ean.length, index); - }).reduce(function (acc, partialSum) { - return acc + partialSum; - }, 0); - var remainder = 10 - checksum % 10; - return remainder < 10 ? remainder : 0; -} -/** - * Check if string is valid EAN: - * Matches EAN-8/EAN-13 regex - * Has valid check digit. - * - * @param {string} str - * @return {boolean} - */ - - -export default function isEAN(str) { - assertString(str); - var actualCheckDigit = Number(str.slice(-1)); - return validEanRegex.test(str) && actualCheckDigit === calculateCheckDigit(str); -} \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isEmail.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isEmail.js deleted file mode 100644 index 2ebdb1b..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isEmail.js +++ /dev/null @@ -1,180 +0,0 @@ -function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); } - -function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } - -function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) { return; } var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } - -function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } - -import assertString from './util/assertString'; -import merge from './util/merge'; -import isByteLength from './isByteLength'; -import isFQDN from './isFQDN'; -import isIP from './isIP'; -var default_email_options = { - allow_display_name: false, - require_display_name: false, - allow_utf8_local_part: true, - require_tld: true -}; -/* eslint-disable max-len */ - -/* eslint-disable no-control-regex */ - -var splitNameAddress = /^([^\x00-\x1F\x7F-\x9F\cX]+)<(.+)>$/i; -var emailUserPart = /^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~]+$/i; -var gmailUserPart = /^[a-z\d]+$/; -var quotedEmailUser = /^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f]))*$/i; -var emailUserUtf8Part = /^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+$/i; -var quotedEmailUserUtf8 = /^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))*$/i; -var defaultMaxEmailLength = 254; -/* eslint-enable max-len */ - -/* eslint-enable no-control-regex */ - -/** - * Validate display name according to the RFC2822: https://tools.ietf.org/html/rfc2822#appendix-A.1.2 - * @param {String} display_name - */ - -function validateDisplayName(display_name) { - var trim_quotes = display_name.match(/^"(.+)"$/i); - var display_name_without_quotes = trim_quotes ? trim_quotes[1] : display_name; // display name with only spaces is not valid - - if (!display_name_without_quotes.trim()) { - return false; - } // check whether display name contains illegal character - - - var contains_illegal = /[\.";<>]/.test(display_name_without_quotes); - - if (contains_illegal) { - // if contains illegal characters, - // must to be enclosed in double-quotes, otherwise it's not a valid display name - if (!trim_quotes) { - return false; - } // the quotes in display name must start with character symbol \ - - - var all_start_with_back_slash = display_name_without_quotes.split('"').length === display_name_without_quotes.split('\\"').length; - - if (!all_start_with_back_slash) { - return false; - } - } - - return true; -} - -export default function isEmail(str, options) { - assertString(str); - options = merge(options, default_email_options); - - if (options.require_display_name || options.allow_display_name) { - var display_email = str.match(splitNameAddress); - - if (display_email) { - var display_name; - - var _display_email = _slicedToArray(display_email, 3); - - display_name = _display_email[1]; - str = _display_email[2]; - - // sometimes need to trim the last space to get the display name - // because there may be a space between display name and email address - // eg. myname - // the display name is `myname` instead of `myname `, so need to trim the last space - if (display_name.endsWith(' ')) { - display_name = display_name.substr(0, display_name.length - 1); - } - - if (!validateDisplayName(display_name)) { - return false; - } - } else if (options.require_display_name) { - return false; - } - } - - if (!options.ignore_max_length && str.length > defaultMaxEmailLength) { - return false; - } - - var parts = str.split('@'); - var domain = parts.pop(); - var user = parts.join('@'); - var lower_domain = domain.toLowerCase(); - - if (options.domain_specific_validation && (lower_domain === 'gmail.com' || lower_domain === 'googlemail.com')) { - /* - Previously we removed dots for gmail addresses before validating. - This was removed because it allows `multiple..dots@gmail.com` - to be reported as valid, but it is not. - Gmail only normalizes single dots, removing them from here is pointless, - should be done in normalizeEmail - */ - user = user.toLowerCase(); // Removing sub-address from username before gmail validation - - var username = user.split('+')[0]; // Dots are not included in gmail length restriction - - if (!isByteLength(username.replace('.', ''), { - min: 6, - max: 30 - })) { - return false; - } - - var _user_parts = username.split('.'); - - for (var i = 0; i < _user_parts.length; i++) { - if (!gmailUserPart.test(_user_parts[i])) { - return false; - } - } - } - - if (!isByteLength(user, { - max: 64 - }) || !isByteLength(domain, { - max: 254 - })) { - return false; - } - - if (!isFQDN(domain, { - require_tld: options.require_tld - })) { - if (!options.allow_ip_domain) { - return false; - } - - if (!isIP(domain)) { - if (!domain.startsWith('[') || !domain.endsWith(']')) { - return false; - } - - var noBracketdomain = domain.substr(1, domain.length - 2); - - if (noBracketdomain.length === 0 || !isIP(noBracketdomain)) { - return false; - } - } - } - - if (user[0] === '"') { - user = user.slice(1, user.length - 1); - return options.allow_utf8_local_part ? quotedEmailUserUtf8.test(user) : quotedEmailUser.test(user); - } - - var pattern = options.allow_utf8_local_part ? emailUserUtf8Part : emailUserPart; - var user_parts = user.split('.'); - - for (var _i2 = 0; _i2 < user_parts.length; _i2++) { - if (!pattern.test(user_parts[_i2])) { - return false; - } - } - - return true; -} \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isEmpty.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isEmpty.js deleted file mode 100644 index 79e29f7..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isEmpty.js +++ /dev/null @@ -1,10 +0,0 @@ -import assertString from './util/assertString'; -import merge from './util/merge'; -var default_is_empty_options = { - ignore_whitespace: false -}; -export default function isEmpty(str, options) { - assertString(str); - options = merge(options, default_is_empty_options); - return (options.ignore_whitespace ? str.trim().length : str.length) === 0; -} \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isEthereumAddress.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isEthereumAddress.js deleted file mode 100644 index 9c70f64..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isEthereumAddress.js +++ /dev/null @@ -1,6 +0,0 @@ -import assertString from './util/assertString'; -var eth = /^(0x)[0-9a-f]{40}$/i; -export default function isEthereumAddress(str) { - assertString(str); - return eth.test(str); -} \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isFQDN.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isFQDN.js deleted file mode 100644 index 8a64bf2..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isFQDN.js +++ /dev/null @@ -1,60 +0,0 @@ -import assertString from './util/assertString'; -import merge from './util/merge'; -var default_fqdn_options = { - require_tld: true, - allow_underscores: false, - allow_trailing_dot: false -}; -export default function isFQDN(str, options) { - assertString(str); - options = merge(options, default_fqdn_options); - /* Remove the optional trailing dot before checking validity */ - - if (options.allow_trailing_dot && str[str.length - 1] === '.') { - str = str.substring(0, str.length - 1); - } - - var parts = str.split('.'); - - for (var i = 0; i < parts.length; i++) { - if (parts[i].length > 63) { - return false; - } - } - - if (options.require_tld) { - var tld = parts.pop(); - - if (!parts.length || !/^([a-z\u00a1-\uffff]{2,}|xn[a-z0-9-]{2,})$/i.test(tld)) { - return false; - } // disallow spaces - - - if (/[\s\u2002-\u200B\u202F\u205F\u3000\uFEFF\uDB40\uDC20]/.test(tld)) { - return false; - } - } - - for (var part, _i = 0; _i < parts.length; _i++) { - part = parts[_i]; - - if (options.allow_underscores) { - part = part.replace(/_/g, ''); - } - - if (!/^[a-z\u00a1-\uffff0-9-]+$/i.test(part)) { - return false; - } // disallow full-width chars - - - if (/[\uff01-\uff5e]/.test(part)) { - return false; - } - - if (part[0] === '-' || part[part.length - 1] === '-') { - return false; - } - } - - return true; -} \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isFloat.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isFloat.js deleted file mode 100644 index 069873b..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isFloat.js +++ /dev/null @@ -1,16 +0,0 @@ -import assertString from './util/assertString'; -import { decimal } from './alpha'; -export default function isFloat(str, options) { - assertString(str); - options = options || {}; - - var _float = new RegExp("^(?:[-+])?(?:[0-9]+)?(?:\\".concat(options.locale ? decimal[options.locale] : '.', "[0-9]*)?(?:[eE][\\+\\-]?(?:[0-9]+))?$")); - - if (str === '' || str === '.' || str === '-' || str === '+') { - return false; - } - - var value = parseFloat(str.replace(',', '.')); - return _float.test(str) && (!options.hasOwnProperty('min') || value >= options.min) && (!options.hasOwnProperty('max') || value <= options.max) && (!options.hasOwnProperty('lt') || value < options.lt) && (!options.hasOwnProperty('gt') || value > options.gt); -} -export var locales = Object.keys(decimal); \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isFullWidth.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isFullWidth.js deleted file mode 100644 index ae54629..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isFullWidth.js +++ /dev/null @@ -1,6 +0,0 @@ -import assertString from './util/assertString'; -export var fullWidth = /[^\u0020-\u007E\uFF61-\uFF9F\uFFA0-\uFFDC\uFFE8-\uFFEE0-9a-zA-Z]/; -export default function isFullWidth(str) { - assertString(str); - return fullWidth.test(str); -} \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isHSL.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isHSL.js deleted file mode 100644 index ce8b1ae..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isHSL.js +++ /dev/null @@ -1,7 +0,0 @@ -import assertString from './util/assertString'; -var hslcomma = /^(hsl)a?\(\s*((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?))(deg|grad|rad|turn|\s*)(\s*,\s*(\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%){2}\s*(,\s*((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%?)\s*)?\)$/i; -var hslspace = /^(hsl)a?\(\s*((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?))(deg|grad|rad|turn|\s)(\s*(\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%){2}\s*(\/\s*((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%?)\s*)?\)$/i; -export default function isHSL(str) { - assertString(str); - return hslcomma.test(str) || hslspace.test(str); -} \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isHalfWidth.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isHalfWidth.js deleted file mode 100644 index b0c8795..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isHalfWidth.js +++ /dev/null @@ -1,6 +0,0 @@ -import assertString from './util/assertString'; -export var halfWidth = /[\u0020-\u007E\uFF61-\uFF9F\uFFA0-\uFFDC\uFFE8-\uFFEE0-9a-zA-Z]/; -export default function isHalfWidth(str) { - assertString(str); - return halfWidth.test(str); -} \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isHash.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isHash.js deleted file mode 100644 index 3495486..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isHash.js +++ /dev/null @@ -1,21 +0,0 @@ -import assertString from './util/assertString'; -var lengths = { - md5: 32, - md4: 32, - sha1: 40, - sha256: 64, - sha384: 96, - sha512: 128, - ripemd128: 32, - ripemd160: 40, - tiger128: 32, - tiger160: 40, - tiger192: 48, - crc32: 8, - crc32b: 8 -}; -export default function isHash(str, algorithm) { - assertString(str); - var hash = new RegExp("^[a-fA-F0-9]{".concat(lengths[algorithm], "}$")); - return hash.test(str); -} \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isHexColor.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isHexColor.js deleted file mode 100644 index 72eab2c..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isHexColor.js +++ /dev/null @@ -1,6 +0,0 @@ -import assertString from './util/assertString'; -var hexcolor = /^#?([0-9A-F]{3}|[0-9A-F]{4}|[0-9A-F]{6}|[0-9A-F]{8})$/i; -export default function isHexColor(str) { - assertString(str); - return hexcolor.test(str); -} \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isHexadecimal.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isHexadecimal.js deleted file mode 100644 index 6654de4..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isHexadecimal.js +++ /dev/null @@ -1,6 +0,0 @@ -import assertString from './util/assertString'; -var hexadecimal = /^(0x|0h)?[0-9A-F]+$/i; -export default function isHexadecimal(str) { - assertString(str); - return hexadecimal.test(str); -} \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isIBAN.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isIBAN.js deleted file mode 100644 index 12f4d6d..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isIBAN.js +++ /dev/null @@ -1,133 +0,0 @@ -import assertString from './util/assertString'; -/** - * List of country codes with - * corresponding IBAN regular expression - * Reference: https://en.wikipedia.org/wiki/International_Bank_Account_Number - */ - -var ibanRegexThroughCountryCode = { - AD: /^(AD[0-9]{2})\d{8}[A-Z0-9]{12}$/, - AE: /^(AE[0-9]{2})\d{3}\d{16}$/, - AL: /^(AL[0-9]{2})\d{8}[A-Z0-9]{16}$/, - AT: /^(AT[0-9]{2})\d{16}$/, - AZ: /^(AZ[0-9]{2})[A-Z0-9]{4}\d{20}$/, - BA: /^(BA[0-9]{2})\d{16}$/, - BE: /^(BE[0-9]{2})\d{12}$/, - BG: /^(BG[0-9]{2})[A-Z]{4}\d{6}[A-Z0-9]{8}$/, - BH: /^(BH[0-9]{2})[A-Z]{4}[A-Z0-9]{14}$/, - BR: /^(BR[0-9]{2})\d{23}[A-Z]{1}[A-Z0-9]{1}$/, - BY: /^(BY[0-9]{2})[A-Z0-9]{4}\d{20}$/, - CH: /^(CH[0-9]{2})\d{5}[A-Z0-9]{12}$/, - CR: /^(CR[0-9]{2})\d{18}$/, - CY: /^(CY[0-9]{2})\d{8}[A-Z0-9]{16}$/, - CZ: /^(CZ[0-9]{2})\d{20}$/, - DE: /^(DE[0-9]{2})\d{18}$/, - DK: /^(DK[0-9]{2})\d{14}$/, - DO: /^(DO[0-9]{2})[A-Z]{4}\d{20}$/, - EE: /^(EE[0-9]{2})\d{16}$/, - ES: /^(ES[0-9]{2})\d{20}$/, - FI: /^(FI[0-9]{2})\d{14}$/, - FO: /^(FO[0-9]{2})\d{14}$/, - FR: /^(FR[0-9]{2})\d{10}[A-Z0-9]{11}\d{2}$/, - GB: /^(GB[0-9]{2})[A-Z]{4}\d{14}$/, - GE: /^(GE[0-9]{2})[A-Z0-9]{2}\d{16}$/, - GI: /^(GI[0-9]{2})[A-Z]{4}[A-Z0-9]{15}$/, - GL: /^(GL[0-9]{2})\d{14}$/, - GR: /^(GR[0-9]{2})\d{7}[A-Z0-9]{16}$/, - GT: /^(GT[0-9]{2})[A-Z0-9]{4}[A-Z0-9]{20}$/, - HR: /^(HR[0-9]{2})\d{17}$/, - HU: /^(HU[0-9]{2})\d{24}$/, - IE: /^(IE[0-9]{2})[A-Z0-9]{4}\d{14}$/, - IL: /^(IL[0-9]{2})\d{19}$/, - IQ: /^(IQ[0-9]{2})[A-Z]{4}\d{15}$/, - IS: /^(IS[0-9]{2})\d{22}$/, - IT: /^(IT[0-9]{2})[A-Z]{1}\d{10}[A-Z0-9]{12}$/, - JO: /^(JO[0-9]{2})[A-Z]{4}\d{22}$/, - KW: /^(KW[0-9]{2})[A-Z]{4}[A-Z0-9]{22}$/, - KZ: /^(KZ[0-9]{2})\d{3}[A-Z0-9]{13}$/, - LB: /^(LB[0-9]{2})\d{4}[A-Z0-9]{20}$/, - LC: /^(LC[0-9]{2})[A-Z]{4}[A-Z0-9]{24}$/, - LI: /^(LI[0-9]{2})\d{5}[A-Z0-9]{12}$/, - LT: /^(LT[0-9]{2})\d{16}$/, - LU: /^(LU[0-9]{2})\d{3}[A-Z0-9]{13}$/, - LV: /^(LV[0-9]{2})[A-Z]{4}[A-Z0-9]{13}$/, - MC: /^(MC[0-9]{2})\d{10}[A-Z0-9]{11}\d{2}$/, - MD: /^(MD[0-9]{2})[A-Z0-9]{20}$/, - ME: /^(ME[0-9]{2})\d{18}$/, - MK: /^(MK[0-9]{2})\d{3}[A-Z0-9]{10}\d{2}$/, - MR: /^(MR[0-9]{2})\d{23}$/, - MT: /^(MT[0-9]{2})[A-Z]{4}\d{5}[A-Z0-9]{18}$/, - MU: /^(MU[0-9]{2})[A-Z]{4}\d{19}[A-Z]{3}$/, - NL: /^(NL[0-9]{2})[A-Z]{4}\d{10}$/, - NO: /^(NO[0-9]{2})\d{11}$/, - PK: /^(PK[0-9]{2})[A-Z0-9]{4}\d{16}$/, - PL: /^(PL[0-9]{2})\d{24}$/, - PS: /^(PS[0-9]{2})[A-Z0-9]{4}\d{21}$/, - PT: /^(PT[0-9]{2})\d{21}$/, - QA: /^(QA[0-9]{2})[A-Z]{4}[A-Z0-9]{21}$/, - RO: /^(RO[0-9]{2})[A-Z]{4}[A-Z0-9]{16}$/, - RS: /^(RS[0-9]{2})\d{18}$/, - SA: /^(SA[0-9]{2})\d{2}[A-Z0-9]{18}$/, - SC: /^(SC[0-9]{2})[A-Z]{4}\d{20}[A-Z]{3}$/, - SE: /^(SE[0-9]{2})\d{20}$/, - SI: /^(SI[0-9]{2})\d{15}$/, - SK: /^(SK[0-9]{2})\d{20}$/, - SM: /^(SM[0-9]{2})[A-Z]{1}\d{10}[A-Z0-9]{12}$/, - TL: /^(TL[0-9]{2})\d{19}$/, - TN: /^(TN[0-9]{2})\d{20}$/, - TR: /^(TR[0-9]{2})\d{5}[A-Z0-9]{17}$/, - UA: /^(UA[0-9]{2})\d{6}[A-Z0-9]{19}$/, - VA: /^(VA[0-9]{2})\d{18}$/, - VG: /^(VG[0-9]{2})[A-Z0-9]{4}\d{16}$/, - XK: /^(XK[0-9]{2})\d{16}$/ -}; -/** - * Check whether string has correct universal IBAN format - * The IBAN consists of up to 34 alphanumeric characters, as follows: - * Country Code using ISO 3166-1 alpha-2, two letters - * check digits, two digits and - * Basic Bank Account Number (BBAN), up to 30 alphanumeric characters. - * NOTE: Permitted IBAN characters are: digits [0-9] and the 26 latin alphabetic [A-Z] - * - * @param {string} str - string under validation - * @return {boolean} - */ - -function hasValidIbanFormat(str) { - // Strip white spaces and hyphens - var strippedStr = str.replace(/[\s\-]+/gi, '').toUpperCase(); - var isoCountryCode = strippedStr.slice(0, 2).toUpperCase(); - return isoCountryCode in ibanRegexThroughCountryCode && ibanRegexThroughCountryCode[isoCountryCode].test(strippedStr); -} -/** - * Check whether string has valid IBAN Checksum - * by performing basic mod-97 operation and - * the remainder should equal 1 - * -- Start by rearranging the IBAN by moving the four initial characters to the end of the string - * -- Replace each letter in the string with two digits, A -> 10, B = 11, Z = 35 - * -- Interpret the string as a decimal integer and - * -- compute the remainder on division by 97 (mod 97) - * Reference: https://en.wikipedia.org/wiki/International_Bank_Account_Number - * - * @param {string} str - * @return {boolean} - */ - - -function hasValidIbanChecksum(str) { - var strippedStr = str.replace(/[^A-Z0-9]+/gi, '').toUpperCase(); // Keep only digits and A-Z latin alphabetic - - var rearranged = strippedStr.slice(4) + strippedStr.slice(0, 4); - var alphaCapsReplacedWithDigits = rearranged.replace(/[A-Z]/g, function (_char) { - return _char.charCodeAt(0) - 55; - }); - var remainder = alphaCapsReplacedWithDigits.match(/\d{1,7}/g).reduce(function (acc, value) { - return Number(acc + value) % 97; - }, ''); - return remainder === 1; -} - -export default function isIBAN(str) { - assertString(str); - return hasValidIbanFormat(str) && hasValidIbanChecksum(str); -} \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isIP.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isIP.js deleted file mode 100644 index 9280d87..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isIP.js +++ /dev/null @@ -1,124 +0,0 @@ -import assertString from './util/assertString'; -/** -11.3. Examples - - The following addresses - - fe80::1234 (on the 1st link of the node) - ff02::5678 (on the 5th link of the node) - ff08::9abc (on the 10th organization of the node) - - would be represented as follows: - - fe80::1234%1 - ff02::5678%5 - ff08::9abc%10 - - (Here we assume a natural translation from a zone index to the - part, where the Nth zone of any scope is translated into - "N".) - - If we use interface names as , those addresses could also be - represented as follows: - - fe80::1234%ne0 - ff02::5678%pvc1.3 - ff08::9abc%interface10 - - where the interface "ne0" belongs to the 1st link, "pvc1.3" belongs - to the 5th link, and "interface10" belongs to the 10th organization. - * * */ - -var ipv4Maybe = /^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$/; -var ipv6Block = /^[0-9A-F]{1,4}$/i; -export default function isIP(str) { - var version = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ''; - assertString(str); - version = String(version); - - if (!version) { - return isIP(str, 4) || isIP(str, 6); - } else if (version === '4') { - if (!ipv4Maybe.test(str)) { - return false; - } - - var parts = str.split('.').sort(function (a, b) { - return a - b; - }); - return parts[3] <= 255; - } else if (version === '6') { - var addressAndZone = [str]; // ipv6 addresses could have scoped architecture - // according to https://tools.ietf.org/html/rfc4007#section-11 - - if (str.includes('%')) { - addressAndZone = str.split('%'); - - if (addressAndZone.length !== 2) { - // it must be just two parts - return false; - } - - if (!addressAndZone[0].includes(':')) { - // the first part must be the address - return false; - } - - if (addressAndZone[1] === '') { - // the second part must not be empty - return false; - } - } - - var blocks = addressAndZone[0].split(':'); - var foundOmissionBlock = false; // marker to indicate :: - // At least some OS accept the last 32 bits of an IPv6 address - // (i.e. 2 of the blocks) in IPv4 notation, and RFC 3493 says - // that '::ffff:a.b.c.d' is valid for IPv4-mapped IPv6 addresses, - // and '::a.b.c.d' is deprecated, but also valid. - - var foundIPv4TransitionBlock = isIP(blocks[blocks.length - 1], 4); - var expectedNumberOfBlocks = foundIPv4TransitionBlock ? 7 : 8; - - if (blocks.length > expectedNumberOfBlocks) { - return false; - } // initial or final :: - - - if (str === '::') { - return true; - } else if (str.substr(0, 2) === '::') { - blocks.shift(); - blocks.shift(); - foundOmissionBlock = true; - } else if (str.substr(str.length - 2) === '::') { - blocks.pop(); - blocks.pop(); - foundOmissionBlock = true; - } - - for (var i = 0; i < blocks.length; ++i) { - // test for a :: which can not be at the string start/end - // since those cases have been handled above - if (blocks[i] === '' && i > 0 && i < blocks.length - 1) { - if (foundOmissionBlock) { - return false; // multiple :: in address - } - - foundOmissionBlock = true; - } else if (foundIPv4TransitionBlock && i === blocks.length - 1) {// it has been checked before that the last - // block is a valid IPv4 address - } else if (!ipv6Block.test(blocks[i])) { - return false; - } - } - - if (foundOmissionBlock) { - return blocks.length >= 1; - } - - return blocks.length === expectedNumberOfBlocks; - } - - return false; -} \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isIPRange.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isIPRange.js deleted file mode 100644 index feb6c55..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isIPRange.js +++ /dev/null @@ -1,22 +0,0 @@ -import assertString from './util/assertString'; -import isIP from './isIP'; -var subnetMaybe = /^\d{1,2}$/; -export default function isIPRange(str) { - assertString(str); - var parts = str.split('/'); // parts[0] -> ip, parts[1] -> subnet - - if (parts.length !== 2) { - return false; - } - - if (!subnetMaybe.test(parts[1])) { - return false; - } // Disallow preceding 0 i.e. 01, 02, ... - - - if (parts[1].length > 1 && parts[1].startsWith('0')) { - return false; - } - - return isIP(parts[0], 4) && parts[1] <= 32 && parts[1] >= 0; -} \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isISBN.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isISBN.js deleted file mode 100644 index da2c435..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isISBN.js +++ /dev/null @@ -1,51 +0,0 @@ -import assertString from './util/assertString'; -var isbn10Maybe = /^(?:[0-9]{9}X|[0-9]{10})$/; -var isbn13Maybe = /^(?:[0-9]{13})$/; -var factor = [1, 3]; -export default function isISBN(str) { - var version = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ''; - assertString(str); - version = String(version); - - if (!version) { - return isISBN(str, 10) || isISBN(str, 13); - } - - var sanitized = str.replace(/[\s-]+/g, ''); - var checksum = 0; - var i; - - if (version === '10') { - if (!isbn10Maybe.test(sanitized)) { - return false; - } - - for (i = 0; i < 9; i++) { - checksum += (i + 1) * sanitized.charAt(i); - } - - if (sanitized.charAt(9) === 'X') { - checksum += 10 * 10; - } else { - checksum += 10 * sanitized.charAt(9); - } - - if (checksum % 11 === 0) { - return !!sanitized; - } - } else if (version === '13') { - if (!isbn13Maybe.test(sanitized)) { - return false; - } - - for (i = 0; i < 12; i++) { - checksum += factor[i % 2] * sanitized.charAt(i); - } - - if (sanitized.charAt(12) - (10 - checksum % 10) % 10 === 0) { - return !!sanitized; - } - } - - return false; -} \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isISIN.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isISIN.js deleted file mode 100644 index c93c580..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isISIN.js +++ /dev/null @@ -1,38 +0,0 @@ -import assertString from './util/assertString'; -var isin = /^[A-Z]{2}[0-9A-Z]{9}[0-9]$/; -export default function isISIN(str) { - assertString(str); - - if (!isin.test(str)) { - return false; - } - - var checksumStr = str.replace(/[A-Z]/g, function (character) { - return parseInt(character, 36); - }); - var sum = 0; - var digit; - var tmpNum; - var shouldDouble = true; - - for (var i = checksumStr.length - 2; i >= 0; i--) { - digit = checksumStr.substring(i, i + 1); - tmpNum = parseInt(digit, 10); - - if (shouldDouble) { - tmpNum *= 2; - - if (tmpNum >= 10) { - sum += tmpNum + 1; - } else { - sum += tmpNum; - } - } else { - sum += tmpNum; - } - - shouldDouble = !shouldDouble; - } - - return parseInt(str.substr(str.length - 1), 10) === (10000 - sum) % 10; -} \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isISO31661Alpha2.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isISO31661Alpha2.js deleted file mode 100644 index 219a511..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isISO31661Alpha2.js +++ /dev/null @@ -1,8 +0,0 @@ -import assertString from './util/assertString'; -import includes from './util/includes'; // from https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 - -var validISO31661Alpha2CountriesCodes = ['AD', 'AE', 'AF', 'AG', 'AI', 'AL', 'AM', 'AO', 'AQ', 'AR', 'AS', 'AT', 'AU', 'AW', 'AX', 'AZ', 'BA', 'BB', 'BD', 'BE', 'BF', 'BG', 'BH', 'BI', 'BJ', 'BL', 'BM', 'BN', 'BO', 'BQ', 'BR', 'BS', 'BT', 'BV', 'BW', 'BY', 'BZ', 'CA', 'CC', 'CD', 'CF', 'CG', 'CH', 'CI', 'CK', 'CL', 'CM', 'CN', 'CO', 'CR', 'CU', 'CV', 'CW', 'CX', 'CY', 'CZ', 'DE', 'DJ', 'DK', 'DM', 'DO', 'DZ', 'EC', 'EE', 'EG', 'EH', 'ER', 'ES', 'ET', 'FI', 'FJ', 'FK', 'FM', 'FO', 'FR', 'GA', 'GB', 'GD', 'GE', 'GF', 'GG', 'GH', 'GI', 'GL', 'GM', 'GN', 'GP', 'GQ', 'GR', 'GS', 'GT', 'GU', 'GW', 'GY', 'HK', 'HM', 'HN', 'HR', 'HT', 'HU', 'ID', 'IE', 'IL', 'IM', 'IN', 'IO', 'IQ', 'IR', 'IS', 'IT', 'JE', 'JM', 'JO', 'JP', 'KE', 'KG', 'KH', 'KI', 'KM', 'KN', 'KP', 'KR', 'KW', 'KY', 'KZ', 'LA', 'LB', 'LC', 'LI', 'LK', 'LR', 'LS', 'LT', 'LU', 'LV', 'LY', 'MA', 'MC', 'MD', 'ME', 'MF', 'MG', 'MH', 'MK', 'ML', 'MM', 'MN', 'MO', 'MP', 'MQ', 'MR', 'MS', 'MT', 'MU', 'MV', 'MW', 'MX', 'MY', 'MZ', 'NA', 'NC', 'NE', 'NF', 'NG', 'NI', 'NL', 'NO', 'NP', 'NR', 'NU', 'NZ', 'OM', 'PA', 'PE', 'PF', 'PG', 'PH', 'PK', 'PL', 'PM', 'PN', 'PR', 'PS', 'PT', 'PW', 'PY', 'QA', 'RE', 'RO', 'RS', 'RU', 'RW', 'SA', 'SB', 'SC', 'SD', 'SE', 'SG', 'SH', 'SI', 'SJ', 'SK', 'SL', 'SM', 'SN', 'SO', 'SR', 'SS', 'ST', 'SV', 'SX', 'SY', 'SZ', 'TC', 'TD', 'TF', 'TG', 'TH', 'TJ', 'TK', 'TL', 'TM', 'TN', 'TO', 'TR', 'TT', 'TV', 'TW', 'TZ', 'UA', 'UG', 'UM', 'US', 'UY', 'UZ', 'VA', 'VC', 'VE', 'VG', 'VI', 'VN', 'VU', 'WF', 'WS', 'YE', 'YT', 'ZA', 'ZM', 'ZW']; -export default function isISO31661Alpha2(str) { - assertString(str); - return includes(validISO31661Alpha2CountriesCodes, str.toUpperCase()); -} \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isISO31661Alpha3.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isISO31661Alpha3.js deleted file mode 100644 index f51ab59..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isISO31661Alpha3.js +++ /dev/null @@ -1,8 +0,0 @@ -import assertString from './util/assertString'; -import includes from './util/includes'; // from https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3 - -var validISO31661Alpha3CountriesCodes = ['AFG', 'ALA', 'ALB', 'DZA', 'ASM', 'AND', 'AGO', 'AIA', 'ATA', 'ATG', 'ARG', 'ARM', 'ABW', 'AUS', 'AUT', 'AZE', 'BHS', 'BHR', 'BGD', 'BRB', 'BLR', 'BEL', 'BLZ', 'BEN', 'BMU', 'BTN', 'BOL', 'BES', 'BIH', 'BWA', 'BVT', 'BRA', 'IOT', 'BRN', 'BGR', 'BFA', 'BDI', 'KHM', 'CMR', 'CAN', 'CPV', 'CYM', 'CAF', 'TCD', 'CHL', 'CHN', 'CXR', 'CCK', 'COL', 'COM', 'COG', 'COD', 'COK', 'CRI', 'CIV', 'HRV', 'CUB', 'CUW', 'CYP', 'CZE', 'DNK', 'DJI', 'DMA', 'DOM', 'ECU', 'EGY', 'SLV', 'GNQ', 'ERI', 'EST', 'ETH', 'FLK', 'FRO', 'FJI', 'FIN', 'FRA', 'GUF', 'PYF', 'ATF', 'GAB', 'GMB', 'GEO', 'DEU', 'GHA', 'GIB', 'GRC', 'GRL', 'GRD', 'GLP', 'GUM', 'GTM', 'GGY', 'GIN', 'GNB', 'GUY', 'HTI', 'HMD', 'VAT', 'HND', 'HKG', 'HUN', 'ISL', 'IND', 'IDN', 'IRN', 'IRQ', 'IRL', 'IMN', 'ISR', 'ITA', 'JAM', 'JPN', 'JEY', 'JOR', 'KAZ', 'KEN', 'KIR', 'PRK', 'KOR', 'KWT', 'KGZ', 'LAO', 'LVA', 'LBN', 'LSO', 'LBR', 'LBY', 'LIE', 'LTU', 'LUX', 'MAC', 'MKD', 'MDG', 'MWI', 'MYS', 'MDV', 'MLI', 'MLT', 'MHL', 'MTQ', 'MRT', 'MUS', 'MYT', 'MEX', 'FSM', 'MDA', 'MCO', 'MNG', 'MNE', 'MSR', 'MAR', 'MOZ', 'MMR', 'NAM', 'NRU', 'NPL', 'NLD', 'NCL', 'NZL', 'NIC', 'NER', 'NGA', 'NIU', 'NFK', 'MNP', 'NOR', 'OMN', 'PAK', 'PLW', 'PSE', 'PAN', 'PNG', 'PRY', 'PER', 'PHL', 'PCN', 'POL', 'PRT', 'PRI', 'QAT', 'REU', 'ROU', 'RUS', 'RWA', 'BLM', 'SHN', 'KNA', 'LCA', 'MAF', 'SPM', 'VCT', 'WSM', 'SMR', 'STP', 'SAU', 'SEN', 'SRB', 'SYC', 'SLE', 'SGP', 'SXM', 'SVK', 'SVN', 'SLB', 'SOM', 'ZAF', 'SGS', 'SSD', 'ESP', 'LKA', 'SDN', 'SUR', 'SJM', 'SWZ', 'SWE', 'CHE', 'SYR', 'TWN', 'TJK', 'TZA', 'THA', 'TLS', 'TGO', 'TKL', 'TON', 'TTO', 'TUN', 'TUR', 'TKM', 'TCA', 'TUV', 'UGA', 'UKR', 'ARE', 'GBR', 'USA', 'UMI', 'URY', 'UZB', 'VUT', 'VEN', 'VNM', 'VGB', 'VIR', 'WLF', 'ESH', 'YEM', 'ZMB', 'ZWE']; -export default function isISO31661Alpha3(str) { - assertString(str); - return includes(validISO31661Alpha3CountriesCodes, str.toUpperCase()); -} \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isISO8601.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isISO8601.js deleted file mode 100644 index 42af39d..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isISO8601.js +++ /dev/null @@ -1,45 +0,0 @@ -import assertString from './util/assertString'; -/* eslint-disable max-len */ -// from http://goo.gl/0ejHHW - -var iso8601 = /^([\+-]?\d{4}(?!\d{2}\b))((-?)((0[1-9]|1[0-2])(\3([12]\d|0[1-9]|3[01]))?|W([0-4]\d|5[0-3])(-?[1-7])?|(00[1-9]|0[1-9]\d|[12]\d{2}|3([0-5]\d|6[1-6])))([T\s]((([01]\d|2[0-3])((:?)[0-5]\d)?|24:?00)([\.,]\d+(?!:))?)?(\17[0-5]\d([\.,]\d+)?)?([zZ]|([\+-])([01]\d|2[0-3]):?([0-5]\d)?)?)?)?$/; -/* eslint-enable max-len */ - -var isValidDate = function isValidDate(str) { - // str must have passed the ISO8601 check - // this check is meant to catch invalid dates - // like 2009-02-31 - // first check for ordinal dates - var ordinalMatch = str.match(/^(\d{4})-?(\d{3})([ T]{1}\.*|$)/); - - if (ordinalMatch) { - var oYear = Number(ordinalMatch[1]); - var oDay = Number(ordinalMatch[2]); // if is leap year - - if (oYear % 4 === 0 && oYear % 100 !== 0 || oYear % 400 === 0) return oDay <= 366; - return oDay <= 365; - } - - var match = str.match(/(\d{4})-?(\d{0,2})-?(\d*)/).map(Number); - var year = match[1]; - var month = match[2]; - var day = match[3]; - var monthString = month ? "0".concat(month).slice(-2) : month; - var dayString = day ? "0".concat(day).slice(-2) : day; // create a date object and compare - - var d = new Date("".concat(year, "-").concat(monthString || '01', "-").concat(dayString || '01')); - - if (month && day) { - return d.getUTCFullYear() === year && d.getUTCMonth() + 1 === month && d.getUTCDate() === day; - } - - return true; -}; - -export default function isISO8601(str, options) { - assertString(str); - var check = iso8601.test(str); - if (!options) return check; - if (check && options.strict) return isValidDate(str); - return check; -} \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isISRC.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isISRC.js deleted file mode 100644 index 275c10a..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isISRC.js +++ /dev/null @@ -1,7 +0,0 @@ -import assertString from './util/assertString'; // see http://isrc.ifpi.org/en/isrc-standard/code-syntax - -var isrc = /^[A-Z]{2}[0-9A-Z]{3}\d{2}\d{5}$/; -export default function isISRC(str) { - assertString(str); - return isrc.test(str); -} \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isISSN.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isISSN.js deleted file mode 100644 index bebfa9e..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isISSN.js +++ /dev/null @@ -1,23 +0,0 @@ -import assertString from './util/assertString'; -var issn = '^\\d{4}-?\\d{3}[\\dX]$'; -export default function isISSN(str) { - var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - assertString(str); - var testIssn = issn; - testIssn = options.require_hyphen ? testIssn.replace('?', '') : testIssn; - testIssn = options.case_sensitive ? new RegExp(testIssn) : new RegExp(testIssn, 'i'); - - if (!testIssn.test(str)) { - return false; - } - - var digits = str.replace('-', '').toUpperCase(); - var checksum = 0; - - for (var i = 0; i < digits.length; i++) { - var digit = digits[i]; - checksum += (digit === 'X' ? 10 : +digit) * (8 - i); - } - - return checksum % 11 === 0; -} \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isIdentityCard.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isIdentityCard.js deleted file mode 100644 index 44a416b..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isIdentityCard.js +++ /dev/null @@ -1,113 +0,0 @@ -import assertString from './util/assertString'; -var validators = { - ES: function ES(str) { - assertString(str); - var DNI = /^[0-9X-Z][0-9]{7}[TRWAGMYFPDXBNJZSQVHLCKE]$/; - var charsValue = { - X: 0, - Y: 1, - Z: 2 - }; - var controlDigits = ['T', 'R', 'W', 'A', 'G', 'M', 'Y', 'F', 'P', 'D', 'X', 'B', 'N', 'J', 'Z', 'S', 'Q', 'V', 'H', 'L', 'C', 'K', 'E']; // sanitize user input - - var sanitized = str.trim().toUpperCase(); // validate the data structure - - if (!DNI.test(sanitized)) { - return false; - } // validate the control digit - - - var number = sanitized.slice(0, -1).replace(/[X,Y,Z]/g, function (_char) { - return charsValue[_char]; - }); - return sanitized.endsWith(controlDigits[number % 23]); - }, - 'he-IL': function heIL(str) { - var DNI = /^\d{9}$/; // sanitize user input - - var sanitized = str.trim(); // validate the data structure - - if (!DNI.test(sanitized)) { - return false; - } - - var id = sanitized; - var sum = 0, - incNum; - - for (var i = 0; i < id.length; i++) { - incNum = Number(id[i]) * (i % 2 + 1); // Multiply number by 1 or 2 - - sum += incNum > 9 ? incNum - 9 : incNum; // Sum the digits up and add to total - } - - return sum % 10 === 0; - }, - 'zh-TW': function zhTW(str) { - var ALPHABET_CODES = { - A: 10, - B: 11, - C: 12, - D: 13, - E: 14, - F: 15, - G: 16, - H: 17, - I: 34, - J: 18, - K: 19, - L: 20, - M: 21, - N: 22, - O: 35, - P: 23, - Q: 24, - R: 25, - S: 26, - T: 27, - U: 28, - V: 29, - W: 32, - X: 30, - Y: 31, - Z: 33 - }; - var sanitized = str.trim().toUpperCase(); - if (!/^[A-Z][0-9]{9}$/.test(sanitized)) return false; - return Array.from(sanitized).reduce(function (sum, number, index) { - if (index === 0) { - var code = ALPHABET_CODES[number]; - return code % 10 * 9 + Math.floor(code / 10); - } - - if (index === 9) { - return (10 - sum % 10 - Number(number)) % 10 === 0; - } - - return sum + Number(number) * (9 - index); - }, 0); - } -}; -export default function isIdentityCard(str, locale) { - assertString(str); - - if (locale in validators) { - return validators[locale](str); - } else if (locale === 'any') { - for (var key in validators) { - // https://github.com/gotwarlost/istanbul/blob/master/ignoring-code-for-coverage.md#ignoring-code-for-coverage-purposes - // istanbul ignore else - if (validators.hasOwnProperty(key)) { - var validator = validators[key]; - - if (validator(str)) { - return true; - } - } - } - - return false; - } - - throw new Error("Invalid locale '".concat(locale, "'")); -} \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isIn.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isIn.js deleted file mode 100644 index 452429d..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isIn.js +++ /dev/null @@ -1,28 +0,0 @@ -function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } - -import assertString from './util/assertString'; -import toString from './util/toString'; -export default function isIn(str, options) { - assertString(str); - var i; - - if (Object.prototype.toString.call(options) === '[object Array]') { - var array = []; - - for (i in options) { - // https://github.com/gotwarlost/istanbul/blob/master/ignoring-code-for-coverage.md#ignoring-code-for-coverage-purposes - // istanbul ignore else - if ({}.hasOwnProperty.call(options, i)) { - array[i] = toString(options[i]); - } - } - - return array.indexOf(str) >= 0; - } else if (_typeof(options) === 'object') { - return options.hasOwnProperty(str); - } else if (options && typeof options.indexOf === 'function') { - return options.indexOf(str) >= 0; - } - - return false; -} \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isInt.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isInt.js deleted file mode 100644 index b58dab4..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isInt.js +++ /dev/null @@ -1,16 +0,0 @@ -import assertString from './util/assertString'; -var _int = /^(?:[-+]?(?:0|[1-9][0-9]*))$/; -var intLeadingZeroes = /^[-+]?[0-9]+$/; -export default function isInt(str, options) { - assertString(str); - options = options || {}; // Get the regex to use for testing, based on whether - // leading zeroes are allowed or not. - - var regex = options.hasOwnProperty('allow_leading_zeroes') && !options.allow_leading_zeroes ? _int : intLeadingZeroes; // Check min/max/lt/gt - - var minCheckPassed = !options.hasOwnProperty('min') || str >= options.min; - var maxCheckPassed = !options.hasOwnProperty('max') || str <= options.max; - var ltCheckPassed = !options.hasOwnProperty('lt') || str < options.lt; - var gtCheckPassed = !options.hasOwnProperty('gt') || str > options.gt; - return regex.test(str) && minCheckPassed && maxCheckPassed && ltCheckPassed && gtCheckPassed; -} \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isJSON.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isJSON.js deleted file mode 100644 index 1735888..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isJSON.js +++ /dev/null @@ -1,15 +0,0 @@ -function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } - -import assertString from './util/assertString'; -export default function isJSON(str) { - assertString(str); - - try { - var obj = JSON.parse(str); - return !!obj && _typeof(obj) === 'object'; - } catch (e) { - /* ignore */ - } - - return false; -} \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isJWT.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isJWT.js deleted file mode 100644 index 41a6ece..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isJWT.js +++ /dev/null @@ -1,6 +0,0 @@ -import assertString from './util/assertString'; -var jwt = /^([A-Za-z0-9\-_~+\/]+[=]{0,2})\.([A-Za-z0-9\-_~+\/]+[=]{0,2})(?:\.([A-Za-z0-9\-_~+\/]+[=]{0,2}))?$/; -export default function isJWT(str) { - assertString(str); - return jwt.test(str); -} \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isLatLong.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isLatLong.js deleted file mode 100644 index e081755..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isLatLong.js +++ /dev/null @@ -1,10 +0,0 @@ -import assertString from './util/assertString'; -var lat = /^\(?[+-]?(90(\.0+)?|[1-8]?\d(\.\d+)?)$/; -var _long = /^\s?[+-]?(180(\.0+)?|1[0-7]\d(\.\d+)?|\d{1,2}(\.\d+)?)\)?$/; -export default function (str) { - assertString(str); - if (!str.includes(',')) return false; - var pair = str.split(','); - if (pair[0].startsWith('(') && !pair[1].endsWith(')') || pair[1].endsWith(')') && !pair[0].startsWith('(')) return false; - return lat.test(pair[0]) && _long.test(pair[1]); -} \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isLength.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isLength.js deleted file mode 100644 index 3b1a5fd..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isLength.js +++ /dev/null @@ -1,23 +0,0 @@ -function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } - -import assertString from './util/assertString'; -/* eslint-disable prefer-rest-params */ - -export default function isLength(str, options) { - assertString(str); - var min; - var max; - - if (_typeof(options) === 'object') { - min = options.min || 0; - max = options.max; - } else { - // backwards compatibility: isLength(str, min [, max]) - min = arguments[1] || 0; - max = arguments[2]; - } - - var surrogatePairs = str.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g) || []; - var len = str.length - surrogatePairs.length; - return len >= min && (typeof max === 'undefined' || len <= max); -} \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isLocale.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isLocale.js deleted file mode 100644 index a7d6d2e..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isLocale.js +++ /dev/null @@ -1,11 +0,0 @@ -import assertString from './util/assertString'; -var localeReg = /^[A-z]{2,4}([_-]([A-z]{4}|[\d]{3}))?([_-]([A-z]{2}|[\d]{3}))?$/; -export default function isLocale(str) { - assertString(str); - - if (str === 'en_US_POSIX' || str === 'ca_ES_VALENCIA') { - return true; - } - - return localeReg.test(str); -} \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isLowercase.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isLowercase.js deleted file mode 100644 index 0347856..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isLowercase.js +++ /dev/null @@ -1,5 +0,0 @@ -import assertString from './util/assertString'; -export default function isLowercase(str) { - assertString(str); - return str === str.toLowerCase(); -} \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isMACAddress.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isMACAddress.js deleted file mode 100644 index 9447d7d..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isMACAddress.js +++ /dev/null @@ -1,15 +0,0 @@ -import assertString from './util/assertString'; -var macAddress = /^([0-9a-fA-F][0-9a-fA-F]:){5}([0-9a-fA-F][0-9a-fA-F])$/; -var macAddressNoColons = /^([0-9a-fA-F]){12}$/; -var macAddressWithHyphen = /^([0-9a-fA-F][0-9a-fA-F]-){5}([0-9a-fA-F][0-9a-fA-F])$/; -var macAddressWithSpaces = /^([0-9a-fA-F][0-9a-fA-F]\s){5}([0-9a-fA-F][0-9a-fA-F])$/; -var macAddressWithDots = /^([0-9a-fA-F]{4}).([0-9a-fA-F]{4}).([0-9a-fA-F]{4})$/; -export default function isMACAddress(str, options) { - assertString(str); - - if (options && options.no_colons) { - return macAddressNoColons.test(str); - } - - return macAddress.test(str) || macAddressWithHyphen.test(str) || macAddressWithSpaces.test(str) || macAddressWithDots.test(str); -} \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isMD5.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isMD5.js deleted file mode 100644 index 701ed7b..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isMD5.js +++ /dev/null @@ -1,6 +0,0 @@ -import assertString from './util/assertString'; -var md5 = /^[a-f0-9]{32}$/; -export default function isMD5(str) { - assertString(str); - return md5.test(str); -} \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isMagnetURI.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isMagnetURI.js deleted file mode 100644 index e341665..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isMagnetURI.js +++ /dev/null @@ -1,6 +0,0 @@ -import assertString from './util/assertString'; -var magnetURI = /^magnet:\?xt=urn:[a-z0-9]+:[a-z0-9]{32,40}&dn=.+&tr=.+$/i; -export default function isMagnetURI(url) { - assertString(url); - return magnetURI.test(url.trim()); -} \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isMimeType.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isMimeType.js deleted file mode 100644 index cddaf00..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isMimeType.js +++ /dev/null @@ -1,39 +0,0 @@ -import assertString from './util/assertString'; -/* - Checks if the provided string matches to a correct Media type format (MIME type) - - This function only checks is the string format follows the - etablished rules by the according RFC specifications. - This function supports 'charset' in textual media types - (https://tools.ietf.org/html/rfc6657). - - This function does not check against all the media types listed - by the IANA (https://www.iana.org/assignments/media-types/media-types.xhtml) - because of lightness purposes : it would require to include - all these MIME types in this librairy, which would weigh it - significantly. This kind of effort maybe is not worth for the use that - this function has in this entire librairy. - - More informations in the RFC specifications : - - https://tools.ietf.org/html/rfc2045 - - https://tools.ietf.org/html/rfc2046 - - https://tools.ietf.org/html/rfc7231#section-3.1.1.1 - - https://tools.ietf.org/html/rfc7231#section-3.1.1.5 -*/ -// Match simple MIME types -// NB : -// Subtype length must not exceed 100 characters. -// This rule does not comply to the RFC specs (what is the max length ?). - -var mimeTypeSimple = /^(application|audio|font|image|message|model|multipart|text|video)\/[a-zA-Z0-9\.\-\+]{1,100}$/i; // eslint-disable-line max-len -// Handle "charset" in "text/*" - -var mimeTypeText = /^text\/[a-zA-Z0-9\.\-\+]{1,100};\s?charset=("[a-zA-Z0-9\.\-\+\s]{0,70}"|[a-zA-Z0-9\.\-\+]{0,70})(\s?\([a-zA-Z0-9\.\-\+\s]{1,20}\))?$/i; // eslint-disable-line max-len -// Handle "boundary" in "multipart/*" - -var mimeTypeMultipart = /^multipart\/[a-zA-Z0-9\.\-\+]{1,100}(;\s?(boundary|charset)=("[a-zA-Z0-9\.\-\+\s]{0,70}"|[a-zA-Z0-9\.\-\+]{0,70})(\s?\([a-zA-Z0-9\.\-\+\s]{1,20}\))?){0,2}$/i; // eslint-disable-line max-len - -export default function isMimeType(str) { - assertString(str); - return mimeTypeSimple.test(str) || mimeTypeText.test(str) || mimeTypeMultipart.test(str); -} \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isMobilePhone.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isMobilePhone.js deleted file mode 100644 index 3e80a10..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isMobilePhone.js +++ /dev/null @@ -1,140 +0,0 @@ -import assertString from './util/assertString'; -/* eslint-disable max-len */ - -var phones = { - 'am-AM': /^(\+?374|0)((10|[9|7][0-9])\d{6}$|[2-4]\d{7}$)/, - 'ar-AE': /^((\+?971)|0)?5[024568]\d{7}$/, - 'ar-BH': /^(\+?973)?(3|6)\d{7}$/, - 'ar-DZ': /^(\+?213|0)(5|6|7)\d{8}$/, - 'ar-EG': /^((\+?20)|0)?1[0125]\d{8}$/, - 'ar-IQ': /^(\+?964|0)?7[0-9]\d{8}$/, - 'ar-JO': /^(\+?962|0)?7[789]\d{7}$/, - 'ar-KW': /^(\+?965)[569]\d{7}$/, - 'ar-SA': /^(!?(\+?966)|0)?5\d{8}$/, - 'ar-SY': /^(!?(\+?963)|0)?9\d{8}$/, - 'ar-TN': /^(\+?216)?[2459]\d{7}$/, - 'be-BY': /^(\+?375)?(24|25|29|33|44)\d{7}$/, - 'bg-BG': /^(\+?359|0)?8[789]\d{7}$/, - 'bn-BD': /^(\+?880|0)1[13456789][0-9]{8}$/, - 'cs-CZ': /^(\+?420)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$/, - 'da-DK': /^(\+?45)?\s?\d{2}\s?\d{2}\s?\d{2}\s?\d{2}$/, - 'de-DE': /^(\+49)?0?1(5[0-25-9]\d|6([23]|0\d?)|7([0-57-9]|6\d))\d{7}$/, - 'de-AT': /^(\+43|0)\d{1,4}\d{3,12}$/, - 'el-GR': /^(\+?30|0)?(69\d{8})$/, - 'en-AU': /^(\+?61|0)4\d{8}$/, - 'en-GB': /^(\+?44|0)7\d{9}$/, - 'en-GG': /^(\+?44|0)1481\d{6}$/, - 'en-GH': /^(\+233|0)(20|50|24|54|27|57|26|56|23|28)\d{7}$/, - 'en-HK': /^(\+?852[-\s]?)?[456789]\d{3}[-\s]?\d{4}$/, - 'en-MO': /^(\+?853[-\s]?)?[6]\d{3}[-\s]?\d{4}$/, - 'en-IE': /^(\+?353|0)8[356789]\d{7}$/, - 'en-IN': /^(\+?91|0)?[6789]\d{9}$/, - 'en-KE': /^(\+?254|0)(7|1)\d{8}$/, - 'en-MT': /^(\+?356|0)?(99|79|77|21|27|22|25)[0-9]{6}$/, - 'en-MU': /^(\+?230|0)?\d{8}$/, - 'en-NG': /^(\+?234|0)?[789]\d{9}$/, - 'en-NZ': /^(\+?64|0)[28]\d{7,9}$/, - 'en-PK': /^((\+92)|(0092))-{0,1}\d{3}-{0,1}\d{7}$|^\d{11}$|^\d{4}-\d{7}$/, - 'en-RW': /^(\+?250|0)?[7]\d{8}$/, - 'en-SG': /^(\+65)?[89]\d{7}$/, - 'en-TZ': /^(\+?255|0)?[67]\d{8}$/, - 'en-UG': /^(\+?256|0)?[7]\d{8}$/, - 'en-US': /^((\+1|1)?( |-)?)?(\([2-9][0-9]{2}\)|[2-9][0-9]{2})( |-)?([2-9][0-9]{2}( |-)?[0-9]{4})$/, - 'en-ZA': /^(\+?27|0)\d{9}$/, - 'en-ZM': /^(\+?26)?09[567]\d{7}$/, - 'es-CL': /^(\+?56|0)[2-9]\d{1}\d{7}$/, - 'es-EC': /^(\+?593|0)([2-7]|9[2-9])\d{7}$/, - 'es-ES': /^(\+?34)?(6\d{1}|7[1234])\d{7}$/, - 'es-MX': /^(\+?52)?(1|01)?\d{10,11}$/, - 'es-PA': /^(\+?507)\d{7,8}$/, - 'es-PY': /^(\+?595|0)9[9876]\d{7}$/, - 'es-UY': /^(\+598|0)9[1-9][\d]{6}$/, - 'et-EE': /^(\+?372)?\s?(5|8[1-4])\s?([0-9]\s?){6,7}$/, - 'fa-IR': /^(\+?98[\-\s]?|0)9[0-39]\d[\-\s]?\d{3}[\-\s]?\d{4}$/, - 'fi-FI': /^(\+?358|0)\s?(4(0|1|2|4|5|6)?|50)\s?(\d\s?){4,8}\d$/, - 'fj-FJ': /^(\+?679)?\s?\d{3}\s?\d{4}$/, - 'fo-FO': /^(\+?298)?\s?\d{2}\s?\d{2}\s?\d{2}$/, - 'fr-FR': /^(\+?33|0)[67]\d{8}$/, - 'fr-GF': /^(\+?594|0|00594)[67]\d{8}$/, - 'fr-GP': /^(\+?590|0|00590)[67]\d{8}$/, - 'fr-MQ': /^(\+?596|0|00596)[67]\d{8}$/, - 'fr-RE': /^(\+?262|0|00262)[67]\d{8}$/, - 'he-IL': /^(\+972|0)([23489]|5[012345689]|77)[1-9]\d{6}$/, - 'hu-HU': /^(\+?36)(20|30|70)\d{7}$/, - 'id-ID': /^(\+?62|0)8(1[123456789]|2[1238]|3[1238]|5[12356789]|7[78]|9[56789]|8[123456789])([\s?|\d]{5,11})$/, - 'it-IT': /^(\+?39)?\s?3\d{2} ?\d{6,7}$/, - 'ja-JP': /^(\+81[ \-]?(\(0\))?|0)[6789]0[ \-]?\d{4}[ \-]?\d{4}$/, - 'kk-KZ': /^(\+?7|8)?7\d{9}$/, - 'kl-GL': /^(\+?299)?\s?\d{2}\s?\d{2}\s?\d{2}$/, - 'ko-KR': /^((\+?82)[ \-]?)?0?1([0|1|6|7|8|9]{1})[ \-]?\d{3,4}[ \-]?\d{4}$/, - 'lt-LT': /^(\+370|8)\d{8}$/, - 'ms-MY': /^(\+?6?01){1}(([0145]{1}(\-|\s)?\d{7,8})|([236789]{1}(\s|\-)?\d{7}))$/, - 'nb-NO': /^(\+?47)?[49]\d{7}$/, - 'ne-NP': /^(\+?977)?9[78]\d{8}$/, - 'nl-BE': /^(\+?32|0)4?\d{8}$/, - 'nl-NL': /^(\+?31|0)6?\d{8}$/, - 'nn-NO': /^(\+?47)?[49]\d{7}$/, - 'pl-PL': /^(\+?48)? ?[5-8]\d ?\d{3} ?\d{2} ?\d{2}$/, - 'pt-BR': /(?=^(\+?5{2}\-?|0)[1-9]{2}\-?\d{4}\-?\d{4}$)(^(\+?5{2}\-?|0)[1-9]{2}\-?[6-9]{1}\d{3}\-?\d{4}$)|(^(\+?5{2}\-?|0)[1-9]{2}\-?9[6-9]{1}\d{3}\-?\d{4}$)/, - 'pt-PT': /^(\+?351)?9[1236]\d{7}$/, - 'ro-RO': /^(\+?4?0)\s?7\d{2}(\/|\s|\.|\-)?\d{3}(\s|\.|\-)?\d{3}$/, - 'ru-RU': /^(\+?7|8)?9\d{9}$/, - 'sl-SI': /^(\+386\s?|0)(\d{1}\s?\d{3}\s?\d{2}\s?\d{2}|\d{2}\s?\d{3}\s?\d{3})$/, - 'sk-SK': /^(\+?421)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$/, - 'sr-RS': /^(\+3816|06)[- \d]{5,9}$/, - 'sv-SE': /^(\+?46|0)[\s\-]?7[\s\-]?[02369]([\s\-]?\d){7}$/, - 'th-TH': /^(\+66|66|0)\d{9}$/, - 'tr-TR': /^(\+?90|0)?5\d{9}$/, - 'uk-UA': /^(\+?38|8)?0\d{9}$/, - 'vi-VN': /^(\+?84|0)((3([2-9]))|(5([2689]))|(7([0|6-9]))|(8([1-6|89]))|(9([0-9])))([0-9]{7})$/, - 'zh-CN': /^((\+|00)86)?1([358][0-9]|4[579]|6[67]|7[01235678]|9[189])[0-9]{8}$/, - 'zh-TW': /^(\+?886\-?|0)?9\d{8}$/ -}; -/* eslint-enable max-len */ -// aliases - -phones['en-CA'] = phones['en-US']; -phones['fr-BE'] = phones['nl-BE']; -phones['zh-HK'] = phones['en-HK']; -phones['zh-MO'] = phones['en-MO']; -export default function isMobilePhone(str, locale, options) { - assertString(str); - - if (options && options.strictMode && !str.startsWith('+')) { - return false; - } - - if (Array.isArray(locale)) { - return locale.some(function (key) { - // https://github.com/gotwarlost/istanbul/blob/master/ignoring-code-for-coverage.md#ignoring-code-for-coverage-purposes - // istanbul ignore else - if (phones.hasOwnProperty(key)) { - var phone = phones[key]; - - if (phone.test(str)) { - return true; - } - } - - return false; - }); - } else if (locale in phones) { - return phones[locale].test(str); // alias falsey locale as 'any' - } else if (!locale || locale === 'any') { - for (var key in phones) { - // istanbul ignore else - if (phones.hasOwnProperty(key)) { - var phone = phones[key]; - - if (phone.test(str)) { - return true; - } - } - } - - return false; - } - - throw new Error("Invalid locale '".concat(locale, "'")); -} -export var locales = Object.keys(phones); \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isMongoId.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isMongoId.js deleted file mode 100644 index fc87b89..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isMongoId.js +++ /dev/null @@ -1,6 +0,0 @@ -import assertString from './util/assertString'; -import isHexadecimal from './isHexadecimal'; -export default function isMongoId(str) { - assertString(str); - return isHexadecimal(str) && str.length === 24; -} \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isMultibyte.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isMultibyte.js deleted file mode 100644 index 7a13857..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isMultibyte.js +++ /dev/null @@ -1,10 +0,0 @@ -import assertString from './util/assertString'; -/* eslint-disable no-control-regex */ - -var multibyte = /[^\x00-\x7F]/; -/* eslint-enable no-control-regex */ - -export default function isMultibyte(str) { - assertString(str); - return multibyte.test(str); -} \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isNumeric.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isNumeric.js deleted file mode 100644 index b87bfad..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isNumeric.js +++ /dev/null @@ -1,12 +0,0 @@ -import assertString from './util/assertString'; -var numeric = /^[+-]?([0-9]*[.])?[0-9]+$/; -var numericNoSymbols = /^[0-9]+$/; -export default function isNumeric(str, options) { - assertString(str); - - if (options && options.no_symbols) { - return numericNoSymbols.test(str); - } - - return numeric.test(str); -} \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isOctal.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isOctal.js deleted file mode 100644 index 3ec51dd..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isOctal.js +++ /dev/null @@ -1,6 +0,0 @@ -import assertString from './util/assertString'; -var octal = /^(0o)?[0-7]+$/i; -export default function isOctal(str) { - assertString(str); - return octal.test(str); -} \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isPassportNumber.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isPassportNumber.js deleted file mode 100644 index 3810da0..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isPassportNumber.js +++ /dev/null @@ -1,104 +0,0 @@ -/** - * Reference: - * https://en.wikipedia.org/ -- Wikipedia - * https://docs.microsoft.com/en-us/microsoft-365/compliance/eu-passport-number -- EU Passport Number - * https://countrycode.org/ -- Country Codes - */ -var passportRegexByCountryCode = { - AM: /^[A-Z]{2}\d{7}$/, - // ARMENIA - AR: /^[A-Z]{3}\d{6}$/, - // ARGENTINA - AT: /^[A-Z]\d{7}$/, - // AUSTRIA - AU: /^[A-Z]\d{7}$/, - // AUSTRALIA - BE: /^[A-Z]{2}\d{6}$/, - // BELGIUM - BG: /^\d{9}$/, - // BULGARIA - CA: /^[A-Z]{2}\d{6}$/, - // CANADA - CH: /^[A-Z]\d{7}$/, - // SWITZERLAND - CN: /^[GE]\d{8}$/, - // CHINA [G=Ordinary, E=Electronic] followed by 8-digits - CY: /^[A-Z](\d{6}|\d{8})$/, - // CYPRUS - CZ: /^\d{8}$/, - // CZECH REPUBLIC - DE: /^[CFGHJKLMNPRTVWXYZ0-9]{9}$/, - // GERMANY - DK: /^\d{9}$/, - // DENMARK - DZ: /^\d{9}$/, - // ALGERIA - EE: /^([A-Z]\d{7}|[A-Z]{2}\d{7})$/, - // ESTONIA (K followed by 7-digits), e-passports have 2 UPPERCASE followed by 7 digits - ES: /^[A-Z0-9]{2}([A-Z0-9]?)\d{6}$/, - // SPAIN - FI: /^[A-Z]{2}\d{7}$/, - // FINLAND - FR: /^\d{2}[A-Z]{2}\d{5}$/, - // FRANCE - GB: /^\d{9}$/, - // UNITED KINGDOM - GR: /^[A-Z]{2}\d{7}$/, - // GREECE - HR: /^\d{9}$/, - // CROATIA - HU: /^[A-Z]{2}(\d{6}|\d{7})$/, - // HUNGARY - IE: /^[A-Z0-9]{2}\d{7}$/, - // IRELAND - IS: /^(A)\d{7}$/, - // ICELAND - IT: /^[A-Z0-9]{2}\d{7}$/, - // ITALY - JP: /^[A-Z]{2}\d{7}$/, - // JAPAN - KR: /^[MS]\d{8}$/, - // SOUTH KOREA, REPUBLIC OF KOREA, [S=PS Passports, M=PM Passports] - LT: /^[A-Z0-9]{8}$/, - // LITHUANIA - LU: /^[A-Z0-9]{8}$/, - // LUXEMBURG - LV: /^[A-Z0-9]{2}\d{7}$/, - // LATVIA - MT: /^\d{7}$/, - // MALTA - NL: /^[A-Z]{2}[A-Z0-9]{6}\d$/, - // NETHERLANDS - PO: /^[A-Z]{2}\d{7}$/, - // POLAND - PT: /^[A-Z]\d{6}$/, - // PORTUGAL - RO: /^\d{8,9}$/, - // ROMANIA - SE: /^\d{8}$/, - // SWEDEN - SL: /^(P)[A-Z]\d{7}$/, - // SLOVANIA - SK: /^[0-9A-Z]\d{7}$/, - // SLOVAKIA - TR: /^[A-Z]\d{8}$/, - // TURKEY - UA: /^[A-Z]{2}\d{6}$/, - // UKRAINE - US: /^\d{9}$/ // UNITED STATES - -}; -/** - * Check if str is a valid passport number - * relative to provided ISO Country Code. - * - * @param {string} str - * @param {string} countryCode - * @return {boolean} - */ - -export default function isPassportNumber(str, countryCode) { - /** Remove All Whitespaces, Convert to UPPERCASE */ - var normalizedStr = str.replace(/\s/g, '').toUpperCase(); - return countryCode.toUpperCase() in passportRegexByCountryCode && passportRegexByCountryCode[countryCode].test(normalizedStr); -} \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isPort.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isPort.js deleted file mode 100644 index 6490cad..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isPort.js +++ /dev/null @@ -1,7 +0,0 @@ -import isInt from './isInt'; -export default function isPort(str) { - return isInt(str, { - min: 0, - max: 65535 - }); -} \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isPostalCode.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isPostalCode.js deleted file mode 100644 index a333007..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isPostalCode.js +++ /dev/null @@ -1,84 +0,0 @@ -import assertString from './util/assertString'; // common patterns - -var threeDigit = /^\d{3}$/; -var fourDigit = /^\d{4}$/; -var fiveDigit = /^\d{5}$/; -var sixDigit = /^\d{6}$/; -var patterns = { - AD: /^AD\d{3}$/, - AT: fourDigit, - AU: fourDigit, - BE: fourDigit, - BG: fourDigit, - BR: /^\d{5}-\d{3}$/, - CA: /^[ABCEGHJKLMNPRSTVXY]\d[ABCEGHJ-NPRSTV-Z][\s\-]?\d[ABCEGHJ-NPRSTV-Z]\d$/i, - CH: fourDigit, - CZ: /^\d{3}\s?\d{2}$/, - DE: fiveDigit, - DK: fourDigit, - DZ: fiveDigit, - EE: fiveDigit, - ES: fiveDigit, - FI: fiveDigit, - FR: /^\d{2}\s?\d{3}$/, - GB: /^(gir\s?0aa|[a-z]{1,2}\d[\da-z]?\s?(\d[a-z]{2})?)$/i, - GR: /^\d{3}\s?\d{2}$/, - HR: /^([1-5]\d{4}$)/, - HU: fourDigit, - ID: fiveDigit, - IE: /^(?!.*(?:o))[A-z]\d[\dw]\s\w{4}$/i, - IL: fiveDigit, - IN: /^((?!10|29|35|54|55|65|66|86|87|88|89)[1-9][0-9]{5})$/, - IS: threeDigit, - IT: fiveDigit, - JP: /^\d{3}\-\d{4}$/, - KE: fiveDigit, - LI: /^(948[5-9]|949[0-7])$/, - LT: /^LT\-\d{5}$/, - LU: fourDigit, - LV: /^LV\-\d{4}$/, - MX: fiveDigit, - MT: /^[A-Za-z]{3}\s{0,1}\d{4}$/, - NL: /^\d{4}\s?[a-z]{2}$/i, - NO: fourDigit, - NZ: fourDigit, - PL: /^\d{2}\-\d{3}$/, - PR: /^00[679]\d{2}([ -]\d{4})?$/, - PT: /^\d{4}\-\d{3}?$/, - RO: sixDigit, - RU: sixDigit, - SA: fiveDigit, - SE: /^[1-9]\d{2}\s?\d{2}$/, - SI: fourDigit, - SK: /^\d{3}\s?\d{2}$/, - TN: fourDigit, - TW: /^\d{3}(\d{2})?$/, - UA: fiveDigit, - US: /^\d{5}(-\d{4})?$/, - ZA: fourDigit, - ZM: fiveDigit -}; -export var locales = Object.keys(patterns); -export default function (str, locale) { - assertString(str); - - if (locale in patterns) { - return patterns[locale].test(str); - } else if (locale === 'any') { - for (var key in patterns) { - // https://github.com/gotwarlost/istanbul/blob/master/ignoring-code-for-coverage.md#ignoring-code-for-coverage-purposes - // istanbul ignore else - if (patterns.hasOwnProperty(key)) { - var pattern = patterns[key]; - - if (pattern.test(str)) { - return true; - } - } - } - - return false; - } - - throw new Error("Invalid locale '".concat(locale, "'")); -} \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isRFC3339.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isRFC3339.js deleted file mode 100644 index 8357ecb..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isRFC3339.js +++ /dev/null @@ -1,20 +0,0 @@ -import assertString from './util/assertString'; -/* Based on https://tools.ietf.org/html/rfc3339#section-5.6 */ - -var dateFullYear = /[0-9]{4}/; -var dateMonth = /(0[1-9]|1[0-2])/; -var dateMDay = /([12]\d|0[1-9]|3[01])/; -var timeHour = /([01][0-9]|2[0-3])/; -var timeMinute = /[0-5][0-9]/; -var timeSecond = /([0-5][0-9]|60)/; -var timeSecFrac = /(\.[0-9]+)?/; -var timeNumOffset = new RegExp("[-+]".concat(timeHour.source, ":").concat(timeMinute.source)); -var timeOffset = new RegExp("([zZ]|".concat(timeNumOffset.source, ")")); -var partialTime = new RegExp("".concat(timeHour.source, ":").concat(timeMinute.source, ":").concat(timeSecond.source).concat(timeSecFrac.source)); -var fullDate = new RegExp("".concat(dateFullYear.source, "-").concat(dateMonth.source, "-").concat(dateMDay.source)); -var fullTime = new RegExp("".concat(partialTime.source).concat(timeOffset.source)); -var rfc3339 = new RegExp("".concat(fullDate.source, "[ tT]").concat(fullTime.source)); -export default function isRFC3339(str) { - assertString(str); - return rfc3339.test(str); -} \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isRgbColor.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isRgbColor.js deleted file mode 100644 index 2fe2fbb..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isRgbColor.js +++ /dev/null @@ -1,15 +0,0 @@ -import assertString from './util/assertString'; -var rgbColor = /^rgb\((([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]),){2}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\)$/; -var rgbaColor = /^rgba\((([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]),){3}(0?\.\d|1(\.0)?|0(\.0)?)\)$/; -var rgbColorPercent = /^rgb\((([0-9]%|[1-9][0-9]%|100%),){2}([0-9]%|[1-9][0-9]%|100%)\)/; -var rgbaColorPercent = /^rgba\((([0-9]%|[1-9][0-9]%|100%),){3}(0?\.\d|1(\.0)?|0(\.0)?)\)/; -export default function isRgbColor(str) { - var includePercentValues = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true; - assertString(str); - - if (!includePercentValues) { - return rgbColor.test(str) || rgbaColor.test(str); - } - - return rgbColor.test(str) || rgbaColor.test(str) || rgbColorPercent.test(str) || rgbaColorPercent.test(str); -} \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isSemVer.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isSemVer.js deleted file mode 100644 index d9b51eb..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isSemVer.js +++ /dev/null @@ -1,14 +0,0 @@ -import assertString from './util/assertString'; -import multilineRegexp from './util/multilineRegex'; -/** - * Regular Expression to match - * semantic versioning (SemVer) - * built from multi-line, multi-parts regexp - * Reference: https://semver.org/ - */ - -var semanticVersioningRegex = multilineRegexp(['^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)', '(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))', '?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$']); -export default function isSemVer(str) { - assertString(str); - return semanticVersioningRegex.test(str); -} \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isSlug.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isSlug.js deleted file mode 100644 index 64417ae..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isSlug.js +++ /dev/null @@ -1,6 +0,0 @@ -import assertString from './util/assertString'; -var charsetRegex = /^[^-_](?!.*?[-_]{2,})([a-z0-9\\-]{1,}).*[^-_]$/; -export default function isSlug(str) { - assertString(str); - return charsetRegex.test(str); -} \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isSurrogatePair.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isSurrogatePair.js deleted file mode 100644 index 1e0efb2..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isSurrogatePair.js +++ /dev/null @@ -1,6 +0,0 @@ -import assertString from './util/assertString'; -var surrogatePair = /[\uD800-\uDBFF][\uDC00-\uDFFF]/; -export default function isSurrogatePair(str) { - assertString(str); - return surrogatePair.test(str); -} \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isURL.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isURL.js deleted file mode 100644 index 72a79fa..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isURL.js +++ /dev/null @@ -1,147 +0,0 @@ -import assertString from './util/assertString'; -import isFQDN from './isFQDN'; -import isIP from './isIP'; -import merge from './util/merge'; -/* -options for isURL method - -require_protocol - if set as true isURL will return false if protocol is not present in the URL -require_valid_protocol - isURL will check if the URL's protocol is present in the protocols option -protocols - valid protocols can be modified with this option -require_host - if set as false isURL will not check if host is present in the URL -allow_protocol_relative_urls - if set as true protocol relative URLs will be allowed - -*/ - -var default_url_options = { - protocols: ['http', 'https', 'ftp'], - require_tld: true, - require_protocol: false, - require_host: true, - require_valid_protocol: true, - allow_underscores: false, - allow_trailing_dot: false, - allow_protocol_relative_urls: false -}; -var wrapped_ipv6 = /^\[([^\]]+)\](?::([0-9]+))?$/; - -function isRegExp(obj) { - return Object.prototype.toString.call(obj) === '[object RegExp]'; -} - -function checkHost(host, matches) { - for (var i = 0; i < matches.length; i++) { - var match = matches[i]; - - if (host === match || isRegExp(match) && match.test(host)) { - return true; - } - } - - return false; -} - -export default function isURL(url, options) { - assertString(url); - - if (!url || url.length >= 2083 || /[\s<>]/.test(url)) { - return false; - } - - if (url.indexOf('mailto:') === 0) { - return false; - } - - options = merge(options, default_url_options); - var protocol, auth, host, hostname, port, port_str, split, ipv6; - split = url.split('#'); - url = split.shift(); - split = url.split('?'); - url = split.shift(); - split = url.split('://'); - - if (split.length > 1) { - protocol = split.shift().toLowerCase(); - - if (options.require_valid_protocol && options.protocols.indexOf(protocol) === -1) { - return false; - } - } else if (options.require_protocol) { - return false; - } else if (url.substr(0, 2) === '//') { - if (!options.allow_protocol_relative_urls) { - return false; - } - - split[0] = url.substr(2); - } - - url = split.join('://'); - - if (url === '') { - return false; - } - - split = url.split('/'); - url = split.shift(); - - if (url === '' && !options.require_host) { - return true; - } - - split = url.split('@'); - - if (split.length > 1) { - if (options.disallow_auth) { - return false; - } - - auth = split.shift(); - - if (auth.indexOf(':') >= 0 && auth.split(':').length > 2) { - return false; - } - } - - hostname = split.join('@'); - port_str = null; - ipv6 = null; - var ipv6_match = hostname.match(wrapped_ipv6); - - if (ipv6_match) { - host = ''; - ipv6 = ipv6_match[1]; - port_str = ipv6_match[2] || null; - } else { - split = hostname.split(':'); - host = split.shift(); - - if (split.length) { - port_str = split.join(':'); - } - } - - if (port_str !== null) { - port = parseInt(port_str, 10); - - if (!/^[0-9]+$/.test(port_str) || port <= 0 || port > 65535) { - return false; - } - } - - if (!isIP(host) && !isFQDN(host, options) && (!ipv6 || !isIP(ipv6, 6))) { - return false; - } - - host = host || ipv6; - - if (options.host_whitelist && !checkHost(host, options.host_whitelist)) { - return false; - } - - if (options.host_blacklist && checkHost(host, options.host_blacklist)) { - return false; - } - - return true; -} \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isUUID.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isUUID.js deleted file mode 100644 index 04de3ee..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isUUID.js +++ /dev/null @@ -1,13 +0,0 @@ -import assertString from './util/assertString'; -var uuid = { - 3: /^[0-9A-F]{8}-[0-9A-F]{4}-3[0-9A-F]{3}-[0-9A-F]{4}-[0-9A-F]{12}$/i, - 4: /^[0-9A-F]{8}-[0-9A-F]{4}-4[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i, - 5: /^[0-9A-F]{8}-[0-9A-F]{4}-5[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i, - all: /^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i -}; -export default function isUUID(str) { - var version = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'all'; - assertString(str); - var pattern = uuid[version]; - return pattern && pattern.test(str); -} \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isUppercase.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isUppercase.js deleted file mode 100644 index fca8790..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isUppercase.js +++ /dev/null @@ -1,5 +0,0 @@ -import assertString from './util/assertString'; -export default function isUppercase(str) { - assertString(str); - return str === str.toUpperCase(); -} \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isVariableWidth.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isVariableWidth.js deleted file mode 100644 index 890119e..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isVariableWidth.js +++ /dev/null @@ -1,7 +0,0 @@ -import assertString from './util/assertString'; -import { fullWidth } from './isFullWidth'; -import { halfWidth } from './isHalfWidth'; -export default function isVariableWidth(str) { - assertString(str); - return fullWidth.test(str) && halfWidth.test(str); -} \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isWhitelisted.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isWhitelisted.js deleted file mode 100644 index 2cbb95c..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/isWhitelisted.js +++ /dev/null @@ -1,12 +0,0 @@ -import assertString from './util/assertString'; -export default function isWhitelisted(str, chars) { - assertString(str); - - for (var i = str.length - 1; i >= 0; i--) { - if (chars.indexOf(str[i]) === -1) { - return false; - } - } - - return true; -} \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/ltrim.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/ltrim.js deleted file mode 100644 index 0ca3abb..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/ltrim.js +++ /dev/null @@ -1,7 +0,0 @@ -import assertString from './util/assertString'; -export default function ltrim(str, chars) { - assertString(str); // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions#Escaping - - var pattern = chars ? new RegExp("^[".concat(chars.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'), "]+"), 'g') : /^\s+/g; - return str.replace(pattern, ''); -} \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/matches.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/matches.js deleted file mode 100644 index 7840b1c..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/matches.js +++ /dev/null @@ -1,10 +0,0 @@ -import assertString from './util/assertString'; -export default function matches(str, pattern, modifiers) { - assertString(str); - - if (Object.prototype.toString.call(pattern) !== '[object RegExp]') { - pattern = new RegExp(pattern, modifiers); - } - - return pattern.test(str); -} \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/normalizeEmail.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/normalizeEmail.js deleted file mode 100644 index 301df83..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/normalizeEmail.js +++ /dev/null @@ -1,138 +0,0 @@ -import merge from './util/merge'; -var default_normalize_email_options = { - // The following options apply to all email addresses - // Lowercases the local part of the email address. - // Please note this may violate RFC 5321 as per http://stackoverflow.com/a/9808332/192024). - // The domain is always lowercased, as per RFC 1035 - all_lowercase: true, - // The following conversions are specific to GMail - // Lowercases the local part of the GMail address (known to be case-insensitive) - gmail_lowercase: true, - // Removes dots from the local part of the email address, as that's ignored by GMail - gmail_remove_dots: true, - // Removes the subaddress (e.g. "+foo") from the email address - gmail_remove_subaddress: true, - // Conversts the googlemail.com domain to gmail.com - gmail_convert_googlemaildotcom: true, - // The following conversions are specific to Outlook.com / Windows Live / Hotmail - // Lowercases the local part of the Outlook.com address (known to be case-insensitive) - outlookdotcom_lowercase: true, - // Removes the subaddress (e.g. "+foo") from the email address - outlookdotcom_remove_subaddress: true, - // The following conversions are specific to Yahoo - // Lowercases the local part of the Yahoo address (known to be case-insensitive) - yahoo_lowercase: true, - // Removes the subaddress (e.g. "-foo") from the email address - yahoo_remove_subaddress: true, - // The following conversions are specific to Yandex - // Lowercases the local part of the Yandex address (known to be case-insensitive) - yandex_lowercase: true, - // The following conversions are specific to iCloud - // Lowercases the local part of the iCloud address (known to be case-insensitive) - icloud_lowercase: true, - // Removes the subaddress (e.g. "+foo") from the email address - icloud_remove_subaddress: true -}; // List of domains used by iCloud - -var icloud_domains = ['icloud.com', 'me.com']; // List of domains used by Outlook.com and its predecessors -// This list is likely incomplete. -// Partial reference: -// https://blogs.office.com/2013/04/17/outlook-com-gets-two-step-verification-sign-in-by-alias-and-new-international-domains/ - -var outlookdotcom_domains = ['hotmail.at', 'hotmail.be', 'hotmail.ca', 'hotmail.cl', 'hotmail.co.il', 'hotmail.co.nz', 'hotmail.co.th', 'hotmail.co.uk', 'hotmail.com', 'hotmail.com.ar', 'hotmail.com.au', 'hotmail.com.br', 'hotmail.com.gr', 'hotmail.com.mx', 'hotmail.com.pe', 'hotmail.com.tr', 'hotmail.com.vn', 'hotmail.cz', 'hotmail.de', 'hotmail.dk', 'hotmail.es', 'hotmail.fr', 'hotmail.hu', 'hotmail.id', 'hotmail.ie', 'hotmail.in', 'hotmail.it', 'hotmail.jp', 'hotmail.kr', 'hotmail.lv', 'hotmail.my', 'hotmail.ph', 'hotmail.pt', 'hotmail.sa', 'hotmail.sg', 'hotmail.sk', 'live.be', 'live.co.uk', 'live.com', 'live.com.ar', 'live.com.mx', 'live.de', 'live.es', 'live.eu', 'live.fr', 'live.it', 'live.nl', 'msn.com', 'outlook.at', 'outlook.be', 'outlook.cl', 'outlook.co.il', 'outlook.co.nz', 'outlook.co.th', 'outlook.com', 'outlook.com.ar', 'outlook.com.au', 'outlook.com.br', 'outlook.com.gr', 'outlook.com.pe', 'outlook.com.tr', 'outlook.com.vn', 'outlook.cz', 'outlook.de', 'outlook.dk', 'outlook.es', 'outlook.fr', 'outlook.hu', 'outlook.id', 'outlook.ie', 'outlook.in', 'outlook.it', 'outlook.jp', 'outlook.kr', 'outlook.lv', 'outlook.my', 'outlook.ph', 'outlook.pt', 'outlook.sa', 'outlook.sg', 'outlook.sk', 'passport.com']; // List of domains used by Yahoo Mail -// This list is likely incomplete - -var yahoo_domains = ['rocketmail.com', 'yahoo.ca', 'yahoo.co.uk', 'yahoo.com', 'yahoo.de', 'yahoo.fr', 'yahoo.in', 'yahoo.it', 'ymail.com']; // List of domains used by yandex.ru - -var yandex_domains = ['yandex.ru', 'yandex.ua', 'yandex.kz', 'yandex.com', 'yandex.by', 'ya.ru']; // replace single dots, but not multiple consecutive dots - -function dotsReplacer(match) { - if (match.length > 1) { - return match; - } - - return ''; -} - -export default function normalizeEmail(email, options) { - options = merge(options, default_normalize_email_options); - var raw_parts = email.split('@'); - var domain = raw_parts.pop(); - var user = raw_parts.join('@'); - var parts = [user, domain]; // The domain is always lowercased, as it's case-insensitive per RFC 1035 - - parts[1] = parts[1].toLowerCase(); - - if (parts[1] === 'gmail.com' || parts[1] === 'googlemail.com') { - // Address is GMail - if (options.gmail_remove_subaddress) { - parts[0] = parts[0].split('+')[0]; - } - - if (options.gmail_remove_dots) { - // this does not replace consecutive dots like example..email@gmail.com - parts[0] = parts[0].replace(/\.+/g, dotsReplacer); - } - - if (!parts[0].length) { - return false; - } - - if (options.all_lowercase || options.gmail_lowercase) { - parts[0] = parts[0].toLowerCase(); - } - - parts[1] = options.gmail_convert_googlemaildotcom ? 'gmail.com' : parts[1]; - } else if (icloud_domains.indexOf(parts[1]) >= 0) { - // Address is iCloud - if (options.icloud_remove_subaddress) { - parts[0] = parts[0].split('+')[0]; - } - - if (!parts[0].length) { - return false; - } - - if (options.all_lowercase || options.icloud_lowercase) { - parts[0] = parts[0].toLowerCase(); - } - } else if (outlookdotcom_domains.indexOf(parts[1]) >= 0) { - // Address is Outlook.com - if (options.outlookdotcom_remove_subaddress) { - parts[0] = parts[0].split('+')[0]; - } - - if (!parts[0].length) { - return false; - } - - if (options.all_lowercase || options.outlookdotcom_lowercase) { - parts[0] = parts[0].toLowerCase(); - } - } else if (yahoo_domains.indexOf(parts[1]) >= 0) { - // Address is Yahoo - if (options.yahoo_remove_subaddress) { - var components = parts[0].split('-'); - parts[0] = components.length > 1 ? components.slice(0, -1).join('-') : components[0]; - } - - if (!parts[0].length) { - return false; - } - - if (options.all_lowercase || options.yahoo_lowercase) { - parts[0] = parts[0].toLowerCase(); - } - } else if (yandex_domains.indexOf(parts[1]) >= 0) { - if (options.all_lowercase || options.yandex_lowercase) { - parts[0] = parts[0].toLowerCase(); - } - - parts[1] = 'yandex.ru'; // all yandex domains are equal, 1st preffered - } else if (options.all_lowercase) { - // Any other address - parts[0] = parts[0].toLowerCase(); - } - - return parts.join('@'); -} \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/rtrim.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/rtrim.js deleted file mode 100644 index b96cb57..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/rtrim.js +++ /dev/null @@ -1,7 +0,0 @@ -import assertString from './util/assertString'; -export default function rtrim(str, chars) { - assertString(str); // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions#Escaping - - var pattern = chars ? new RegExp("[".concat(chars.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'), "]+$"), 'g') : /\s+$/g; - return str.replace(pattern, ''); -} \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/stripLow.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/stripLow.js deleted file mode 100644 index c798425..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/stripLow.js +++ /dev/null @@ -1,7 +0,0 @@ -import assertString from './util/assertString'; -import blacklist from './blacklist'; -export default function stripLow(str, keep_new_lines) { - assertString(str); - var chars = keep_new_lines ? '\\x00-\\x09\\x0B\\x0C\\x0E-\\x1F\\x7F' : '\\x00-\\x1F\\x7F'; - return blacklist(str, chars); -} \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/toBoolean.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/toBoolean.js deleted file mode 100644 index 25e1eac..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/toBoolean.js +++ /dev/null @@ -1,10 +0,0 @@ -import assertString from './util/assertString'; -export default function toBoolean(str, strict) { - assertString(str); - - if (strict) { - return str === '1' || /^true$/i.test(str); - } - - return str !== '0' && !/^false$/i.test(str) && str !== ''; -} \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/toDate.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/toDate.js deleted file mode 100644 index 62422a3..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/toDate.js +++ /dev/null @@ -1,6 +0,0 @@ -import assertString from './util/assertString'; -export default function toDate(date) { - assertString(date); - date = Date.parse(date); - return !isNaN(date) ? new Date(date) : null; -} \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/toFloat.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/toFloat.js deleted file mode 100644 index f21163d..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/toFloat.js +++ /dev/null @@ -1,5 +0,0 @@ -import isFloat from './isFloat'; -export default function toFloat(str) { - if (!isFloat(str)) return NaN; - return parseFloat(str); -} \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/toInt.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/toInt.js deleted file mode 100644 index 22d566e..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/toInt.js +++ /dev/null @@ -1,5 +0,0 @@ -import assertString from './util/assertString'; -export default function toInt(str, radix) { - assertString(str); - return parseInt(str, radix || 10); -} \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/trim.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/trim.js deleted file mode 100644 index b9b8fa0..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/trim.js +++ /dev/null @@ -1,5 +0,0 @@ -import rtrim from './rtrim'; -import ltrim from './ltrim'; -export default function trim(str, chars) { - return rtrim(ltrim(str, chars), chars); -} \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/unescape.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/unescape.js deleted file mode 100644 index d6c8077..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/unescape.js +++ /dev/null @@ -1,5 +0,0 @@ -import assertString from './util/assertString'; -export default function unescape(str) { - assertString(str); - return str.replace(/&/g, '&').replace(/"/g, '"').replace(/'/g, "'").replace(/</g, '<').replace(/>/g, '>').replace(///g, '/').replace(/\/g, '\\').replace(/`/g, '`'); -} \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/util/assertString.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/util/assertString.js deleted file mode 100644 index 48b8245..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/util/assertString.js +++ /dev/null @@ -1,23 +0,0 @@ -function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } - -export default function assertString(input) { - var isString = typeof input === 'string' || input instanceof String; - - if (!isString) { - var invalidType; - - if (input === null) { - invalidType = 'null'; - } else { - invalidType = _typeof(input); - - if (invalidType === 'object' && input.constructor && input.constructor.hasOwnProperty('name')) { - invalidType = input.constructor.name; - } else { - invalidType = "a ".concat(invalidType); - } - } - - throw new TypeError("Expected string but received ".concat(invalidType, ".")); - } -} \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/util/includes.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/util/includes.js deleted file mode 100644 index b01c692..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/util/includes.js +++ /dev/null @@ -1,7 +0,0 @@ -var includes = function includes(arr, val) { - return arr.some(function (arrVal) { - return val === arrVal; - }); -}; - -export default includes; \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/util/merge.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/util/merge.js deleted file mode 100644 index 0d1f699..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/util/merge.js +++ /dev/null @@ -1,12 +0,0 @@ -export default function merge() { - var obj = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - var defaults = arguments.length > 1 ? arguments[1] : undefined; - - for (var key in defaults) { - if (typeof obj[key] === 'undefined') { - obj[key] = defaults[key]; - } - } - - return obj; -} \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/util/multilineRegex.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/util/multilineRegex.js deleted file mode 100644 index 2a344a7..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/util/multilineRegex.js +++ /dev/null @@ -1,13 +0,0 @@ -/** - * Build RegExp object from an array - * of multiple/multi-line regexp parts - * - * @param {string[]} parts - * @param {string} flags - * @return {object} - RegExp object - */ -export default function multilineRegexp(parts) { - var flags = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ''; - var regexpAsStringLiteral = parts.join(''); - return new RegExp(regexpAsStringLiteral, flags); -} \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/util/toString.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/util/toString.js deleted file mode 100644 index f483fa4..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/util/toString.js +++ /dev/null @@ -1,15 +0,0 @@ -function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } - -export default function toString(input) { - if (_typeof(input) === 'object' && input !== null) { - if (typeof input.toString === 'function') { - input = input.toString(); - } else { - input = '[object Object]'; - } - } else if (input === null || typeof input === 'undefined' || isNaN(input) && !input.length) { - input = ''; - } - - return String(input); -} \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/whitelist.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/whitelist.js deleted file mode 100644 index 244881b..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/es/lib/whitelist.js +++ /dev/null @@ -1,5 +0,0 @@ -import assertString from './util/assertString'; -export default function whitelist(str, chars) { - assertString(str); - return str.replace(new RegExp("[^".concat(chars, "]+"), 'g'), ''); -} \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/index.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/index.js deleted file mode 100644 index 966fd96..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/index.js +++ /dev/null @@ -1,284 +0,0 @@ -"use strict"; - -function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = void 0; - -var _toDate = _interopRequireDefault(require("./lib/toDate")); - -var _toFloat = _interopRequireDefault(require("./lib/toFloat")); - -var _toInt = _interopRequireDefault(require("./lib/toInt")); - -var _toBoolean = _interopRequireDefault(require("./lib/toBoolean")); - -var _equals = _interopRequireDefault(require("./lib/equals")); - -var _contains = _interopRequireDefault(require("./lib/contains")); - -var _matches = _interopRequireDefault(require("./lib/matches")); - -var _isEmail = _interopRequireDefault(require("./lib/isEmail")); - -var _isURL = _interopRequireDefault(require("./lib/isURL")); - -var _isMACAddress = _interopRequireDefault(require("./lib/isMACAddress")); - -var _isIP = _interopRequireDefault(require("./lib/isIP")); - -var _isIPRange = _interopRequireDefault(require("./lib/isIPRange")); - -var _isFQDN = _interopRequireDefault(require("./lib/isFQDN")); - -var _isBoolean = _interopRequireDefault(require("./lib/isBoolean")); - -var _isLocale = _interopRequireDefault(require("./lib/isLocale")); - -var _isAlpha = _interopRequireWildcard(require("./lib/isAlpha")); - -var _isAlphanumeric = _interopRequireWildcard(require("./lib/isAlphanumeric")); - -var _isNumeric = _interopRequireDefault(require("./lib/isNumeric")); - -var _isPassportNumber = _interopRequireDefault(require("./lib/isPassportNumber")); - -var _isPort = _interopRequireDefault(require("./lib/isPort")); - -var _isLowercase = _interopRequireDefault(require("./lib/isLowercase")); - -var _isUppercase = _interopRequireDefault(require("./lib/isUppercase")); - -var _isAscii = _interopRequireDefault(require("./lib/isAscii")); - -var _isFullWidth = _interopRequireDefault(require("./lib/isFullWidth")); - -var _isHalfWidth = _interopRequireDefault(require("./lib/isHalfWidth")); - -var _isVariableWidth = _interopRequireDefault(require("./lib/isVariableWidth")); - -var _isMultibyte = _interopRequireDefault(require("./lib/isMultibyte")); - -var _isSemVer = _interopRequireDefault(require("./lib/isSemVer")); - -var _isSurrogatePair = _interopRequireDefault(require("./lib/isSurrogatePair")); - -var _isInt = _interopRequireDefault(require("./lib/isInt")); - -var _isFloat = _interopRequireWildcard(require("./lib/isFloat")); - -var _isDecimal = _interopRequireDefault(require("./lib/isDecimal")); - -var _isHexadecimal = _interopRequireDefault(require("./lib/isHexadecimal")); - -var _isOctal = _interopRequireDefault(require("./lib/isOctal")); - -var _isDivisibleBy = _interopRequireDefault(require("./lib/isDivisibleBy")); - -var _isHexColor = _interopRequireDefault(require("./lib/isHexColor")); - -var _isRgbColor = _interopRequireDefault(require("./lib/isRgbColor")); - -var _isHSL = _interopRequireDefault(require("./lib/isHSL")); - -var _isISRC = _interopRequireDefault(require("./lib/isISRC")); - -var _isIBAN = _interopRequireDefault(require("./lib/isIBAN")); - -var _isBIC = _interopRequireDefault(require("./lib/isBIC")); - -var _isMD = _interopRequireDefault(require("./lib/isMD5")); - -var _isHash = _interopRequireDefault(require("./lib/isHash")); - -var _isJWT = _interopRequireDefault(require("./lib/isJWT")); - -var _isJSON = _interopRequireDefault(require("./lib/isJSON")); - -var _isEmpty = _interopRequireDefault(require("./lib/isEmpty")); - -var _isLength = _interopRequireDefault(require("./lib/isLength")); - -var _isByteLength = _interopRequireDefault(require("./lib/isByteLength")); - -var _isUUID = _interopRequireDefault(require("./lib/isUUID")); - -var _isMongoId = _interopRequireDefault(require("./lib/isMongoId")); - -var _isAfter = _interopRequireDefault(require("./lib/isAfter")); - -var _isBefore = _interopRequireDefault(require("./lib/isBefore")); - -var _isIn = _interopRequireDefault(require("./lib/isIn")); - -var _isCreditCard = _interopRequireDefault(require("./lib/isCreditCard")); - -var _isIdentityCard = _interopRequireDefault(require("./lib/isIdentityCard")); - -var _isEAN = _interopRequireDefault(require("./lib/isEAN")); - -var _isISIN = _interopRequireDefault(require("./lib/isISIN")); - -var _isISBN = _interopRequireDefault(require("./lib/isISBN")); - -var _isISSN = _interopRequireDefault(require("./lib/isISSN")); - -var _isMobilePhone = _interopRequireWildcard(require("./lib/isMobilePhone")); - -var _isEthereumAddress = _interopRequireDefault(require("./lib/isEthereumAddress")); - -var _isCurrency = _interopRequireDefault(require("./lib/isCurrency")); - -var _isBtcAddress = _interopRequireDefault(require("./lib/isBtcAddress")); - -var _isISO = _interopRequireDefault(require("./lib/isISO8601")); - -var _isRFC = _interopRequireDefault(require("./lib/isRFC3339")); - -var _isISO31661Alpha = _interopRequireDefault(require("./lib/isISO31661Alpha2")); - -var _isISO31661Alpha2 = _interopRequireDefault(require("./lib/isISO31661Alpha3")); - -var _isBase = _interopRequireDefault(require("./lib/isBase32")); - -var _isBase2 = _interopRequireDefault(require("./lib/isBase64")); - -var _isDataURI = _interopRequireDefault(require("./lib/isDataURI")); - -var _isMagnetURI = _interopRequireDefault(require("./lib/isMagnetURI")); - -var _isMimeType = _interopRequireDefault(require("./lib/isMimeType")); - -var _isLatLong = _interopRequireDefault(require("./lib/isLatLong")); - -var _isPostalCode = _interopRequireWildcard(require("./lib/isPostalCode")); - -var _ltrim = _interopRequireDefault(require("./lib/ltrim")); - -var _rtrim = _interopRequireDefault(require("./lib/rtrim")); - -var _trim = _interopRequireDefault(require("./lib/trim")); - -var _escape = _interopRequireDefault(require("./lib/escape")); - -var _unescape = _interopRequireDefault(require("./lib/unescape")); - -var _stripLow = _interopRequireDefault(require("./lib/stripLow")); - -var _whitelist = _interopRequireDefault(require("./lib/whitelist")); - -var _blacklist = _interopRequireDefault(require("./lib/blacklist")); - -var _isWhitelisted = _interopRequireDefault(require("./lib/isWhitelisted")); - -var _normalizeEmail = _interopRequireDefault(require("./lib/normalizeEmail")); - -var _isSlug = _interopRequireDefault(require("./lib/isSlug")); - -function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; } - -function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -var version = '13.0.0'; -var validator = { - version: version, - toDate: _toDate.default, - toFloat: _toFloat.default, - toInt: _toInt.default, - toBoolean: _toBoolean.default, - equals: _equals.default, - contains: _contains.default, - matches: _matches.default, - isEmail: _isEmail.default, - isURL: _isURL.default, - isMACAddress: _isMACAddress.default, - isIP: _isIP.default, - isIPRange: _isIPRange.default, - isFQDN: _isFQDN.default, - isBoolean: _isBoolean.default, - isIBAN: _isIBAN.default, - isBIC: _isBIC.default, - isAlpha: _isAlpha.default, - isAlphaLocales: _isAlpha.locales, - isAlphanumeric: _isAlphanumeric.default, - isAlphanumericLocales: _isAlphanumeric.locales, - isNumeric: _isNumeric.default, - isPassportNumber: _isPassportNumber.default, - isPort: _isPort.default, - isLowercase: _isLowercase.default, - isUppercase: _isUppercase.default, - isAscii: _isAscii.default, - isFullWidth: _isFullWidth.default, - isHalfWidth: _isHalfWidth.default, - isVariableWidth: _isVariableWidth.default, - isMultibyte: _isMultibyte.default, - isSemVer: _isSemVer.default, - isSurrogatePair: _isSurrogatePair.default, - isInt: _isInt.default, - isFloat: _isFloat.default, - isFloatLocales: _isFloat.locales, - isDecimal: _isDecimal.default, - isHexadecimal: _isHexadecimal.default, - isOctal: _isOctal.default, - isDivisibleBy: _isDivisibleBy.default, - isHexColor: _isHexColor.default, - isRgbColor: _isRgbColor.default, - isHSL: _isHSL.default, - isISRC: _isISRC.default, - isMD5: _isMD.default, - isHash: _isHash.default, - isJWT: _isJWT.default, - isJSON: _isJSON.default, - isEmpty: _isEmpty.default, - isLength: _isLength.default, - isLocale: _isLocale.default, - isByteLength: _isByteLength.default, - isUUID: _isUUID.default, - isMongoId: _isMongoId.default, - isAfter: _isAfter.default, - isBefore: _isBefore.default, - isIn: _isIn.default, - isCreditCard: _isCreditCard.default, - isIdentityCard: _isIdentityCard.default, - isEAN: _isEAN.default, - isISIN: _isISIN.default, - isISBN: _isISBN.default, - isISSN: _isISSN.default, - isMobilePhone: _isMobilePhone.default, - isMobilePhoneLocales: _isMobilePhone.locales, - isPostalCode: _isPostalCode.default, - isPostalCodeLocales: _isPostalCode.locales, - isEthereumAddress: _isEthereumAddress.default, - isCurrency: _isCurrency.default, - isBtcAddress: _isBtcAddress.default, - isISO8601: _isISO.default, - isRFC3339: _isRFC.default, - isISO31661Alpha2: _isISO31661Alpha.default, - isISO31661Alpha3: _isISO31661Alpha2.default, - isBase32: _isBase.default, - isBase64: _isBase2.default, - isDataURI: _isDataURI.default, - isMagnetURI: _isMagnetURI.default, - isMimeType: _isMimeType.default, - isLatLong: _isLatLong.default, - ltrim: _ltrim.default, - rtrim: _rtrim.default, - trim: _trim.default, - escape: _escape.default, - unescape: _unescape.default, - stripLow: _stripLow.default, - whitelist: _whitelist.default, - blacklist: _blacklist.default, - isWhitelisted: _isWhitelisted.default, - normalizeEmail: _normalizeEmail.default, - toString: toString, - isSlug: _isSlug.default -}; -var _default = validator; -exports.default = _default; -module.exports = exports.default; -module.exports.default = exports.default; \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/alpha.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/alpha.js deleted file mode 100644 index 7c43b56..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/alpha.js +++ /dev/null @@ -1,113 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.commaDecimal = exports.dotDecimal = exports.arabicLocales = exports.englishLocales = exports.decimal = exports.alphanumeric = exports.alpha = void 0; -var alpha = { - 'en-US': /^[A-Z]+$/i, - 'bg-BG': /^[А-Я]+$/i, - 'cs-CZ': /^[A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ]+$/i, - 'da-DK': /^[A-ZÆØÅ]+$/i, - 'de-DE': /^[A-ZÄÖÜß]+$/i, - 'el-GR': /^[Α-ώ]+$/i, - 'es-ES': /^[A-ZÁÉÍÑÓÚÜ]+$/i, - 'fr-FR': /^[A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ]+$/i, - 'it-IT': /^[A-ZÀÉÈÌÎÓÒÙ]+$/i, - 'nb-NO': /^[A-ZÆØÅ]+$/i, - 'nl-NL': /^[A-ZÁÉËÏÓÖÜÚ]+$/i, - 'nn-NO': /^[A-ZÆØÅ]+$/i, - 'hu-HU': /^[A-ZÁÉÍÓÖŐÚÜŰ]+$/i, - 'pl-PL': /^[A-ZĄĆĘŚŁŃÓŻŹ]+$/i, - 'pt-PT': /^[A-ZÃÁÀÂÄÇÉÊËÍÏÕÓÔÖÚÜ]+$/i, - 'ru-RU': /^[А-ЯЁ]+$/i, - 'sl-SI': /^[A-ZČĆĐŠŽ]+$/i, - 'sk-SK': /^[A-ZÁČĎÉÍŇÓŠŤÚÝŽĹŔĽÄÔ]+$/i, - 'sr-RS@latin': /^[A-ZČĆŽŠĐ]+$/i, - 'sr-RS': /^[А-ЯЂЈЉЊЋЏ]+$/i, - 'sv-SE': /^[A-ZÅÄÖ]+$/i, - 'tr-TR': /^[A-ZÇĞİıÖŞÜ]+$/i, - 'uk-UA': /^[А-ЩЬЮЯЄIЇҐі]+$/i, - 'ku-IQ': /^[ئابپتجچحخدرڕزژسشعغفڤقکگلڵمنوۆھەیێيطؤثآإأكضصةظذ]+$/i, - ar: /^[ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]+$/, - he: /^[א-ת]+$/, - 'fa-IR': /^['آابپتثجچهخدذرزژسشصضطظعغفقکگلمنوهی']+$/i -}; -exports.alpha = alpha; -var alphanumeric = { - 'en-US': /^[0-9A-Z]+$/i, - 'bg-BG': /^[0-9А-Я]+$/i, - 'cs-CZ': /^[0-9A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ]+$/i, - 'da-DK': /^[0-9A-ZÆØÅ]+$/i, - 'de-DE': /^[0-9A-ZÄÖÜß]+$/i, - 'el-GR': /^[0-9Α-ω]+$/i, - 'es-ES': /^[0-9A-ZÁÉÍÑÓÚÜ]+$/i, - 'fr-FR': /^[0-9A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ]+$/i, - 'it-IT': /^[0-9A-ZÀÉÈÌÎÓÒÙ]+$/i, - 'hu-HU': /^[0-9A-ZÁÉÍÓÖŐÚÜŰ]+$/i, - 'nb-NO': /^[0-9A-ZÆØÅ]+$/i, - 'nl-NL': /^[0-9A-ZÁÉËÏÓÖÜÚ]+$/i, - 'nn-NO': /^[0-9A-ZÆØÅ]+$/i, - 'pl-PL': /^[0-9A-ZĄĆĘŚŁŃÓŻŹ]+$/i, - 'pt-PT': /^[0-9A-ZÃÁÀÂÄÇÉÊËÍÏÕÓÔÖÚÜ]+$/i, - 'ru-RU': /^[0-9А-ЯЁ]+$/i, - 'sl-SI': /^[0-9A-ZČĆĐŠŽ]+$/i, - 'sk-SK': /^[0-9A-ZÁČĎÉÍŇÓŠŤÚÝŽĹŔĽÄÔ]+$/i, - 'sr-RS@latin': /^[0-9A-ZČĆŽŠĐ]+$/i, - 'sr-RS': /^[0-9А-ЯЂЈЉЊЋЏ]+$/i, - 'sv-SE': /^[0-9A-ZÅÄÖ]+$/i, - 'tr-TR': /^[0-9A-ZÇĞİıÖŞÜ]+$/i, - 'uk-UA': /^[0-9А-ЩЬЮЯЄIЇҐі]+$/i, - 'ku-IQ': /^[٠١٢٣٤٥٦٧٨٩0-9ئابپتجچحخدرڕزژسشعغفڤقکگلڵمنوۆھەیێيطؤثآإأكضصةظذ]+$/i, - ar: /^[٠١٢٣٤٥٦٧٨٩0-9ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]+$/, - he: /^[0-9א-ת]+$/, - 'fa-IR': /^['0-9آابپتثجچهخدذرزژسشصضطظعغفقکگلمنوهی۱۲۳۴۵۶۷۸۹۰']+$/i -}; -exports.alphanumeric = alphanumeric; -var decimal = { - 'en-US': '.', - ar: '٫' -}; -exports.decimal = decimal; -var englishLocales = ['AU', 'GB', 'HK', 'IN', 'NZ', 'ZA', 'ZM']; -exports.englishLocales = englishLocales; - -for (var locale, i = 0; i < englishLocales.length; i++) { - locale = "en-".concat(englishLocales[i]); - alpha[locale] = alpha['en-US']; - alphanumeric[locale] = alphanumeric['en-US']; - decimal[locale] = decimal['en-US']; -} // Source: http://www.localeplanet.com/java/ - - -var arabicLocales = ['AE', 'BH', 'DZ', 'EG', 'IQ', 'JO', 'KW', 'LB', 'LY', 'MA', 'QM', 'QA', 'SA', 'SD', 'SY', 'TN', 'YE']; -exports.arabicLocales = arabicLocales; - -for (var _locale, _i = 0; _i < arabicLocales.length; _i++) { - _locale = "ar-".concat(arabicLocales[_i]); - alpha[_locale] = alpha.ar; - alphanumeric[_locale] = alphanumeric.ar; - decimal[_locale] = decimal.ar; -} // Source: https://en.wikipedia.org/wiki/Decimal_mark - - -var dotDecimal = ['ar-EG', 'ar-LB', 'ar-LY']; -exports.dotDecimal = dotDecimal; -var commaDecimal = ['bg-BG', 'cs-CZ', 'da-DK', 'de-DE', 'el-GR', 'en-ZM', 'es-ES', 'fr-FR', 'it-IT', 'ku-IQ', 'hu-HU', 'nb-NO', 'nn-NO', 'nl-NL', 'pl-PL', 'pt-PT', 'ru-RU', 'sl-SI', 'sr-RS@latin', 'sr-RS', 'sv-SE', 'tr-TR', 'uk-UA']; -exports.commaDecimal = commaDecimal; - -for (var _i2 = 0; _i2 < dotDecimal.length; _i2++) { - decimal[dotDecimal[_i2]] = decimal['en-US']; -} - -for (var _i3 = 0; _i3 < commaDecimal.length; _i3++) { - decimal[commaDecimal[_i3]] = ','; -} - -alpha['pt-BR'] = alpha['pt-PT']; -alphanumeric['pt-BR'] = alphanumeric['pt-PT']; -decimal['pt-BR'] = decimal['pt-PT']; // see #862 - -alpha['pl-Pl'] = alpha['pl-PL']; -alphanumeric['pl-Pl'] = alphanumeric['pl-PL']; -decimal['pl-Pl'] = decimal['pl-PL']; \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/blacklist.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/blacklist.js deleted file mode 100644 index 5dd42ed..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/blacklist.js +++ /dev/null @@ -1,18 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = blacklist; - -var _assertString = _interopRequireDefault(require("./util/assertString")); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function blacklist(str, chars) { - (0, _assertString.default)(str); - return str.replace(new RegExp("[".concat(chars, "]+"), 'g'), ''); -} - -module.exports = exports.default; -module.exports.default = exports.default; \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/contains.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/contains.js deleted file mode 100644 index b02fda2..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/contains.js +++ /dev/null @@ -1,20 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = contains; - -var _assertString = _interopRequireDefault(require("./util/assertString")); - -var _toString = _interopRequireDefault(require("./util/toString")); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function contains(str, elem) { - (0, _assertString.default)(str); - return str.indexOf((0, _toString.default)(elem)) >= 0; -} - -module.exports = exports.default; -module.exports.default = exports.default; \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/equals.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/equals.js deleted file mode 100644 index a33c5ab..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/equals.js +++ /dev/null @@ -1,18 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = equals; - -var _assertString = _interopRequireDefault(require("./util/assertString")); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function equals(str, comparison) { - (0, _assertString.default)(str); - return str === comparison; -} - -module.exports = exports.default; -module.exports.default = exports.default; \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/escape.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/escape.js deleted file mode 100644 index 05e4220..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/escape.js +++ /dev/null @@ -1,18 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = escape; - -var _assertString = _interopRequireDefault(require("./util/assertString")); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function escape(str) { - (0, _assertString.default)(str); - return str.replace(/&/g, '&').replace(/"/g, '"').replace(/'/g, ''').replace(//g, '>').replace(/\//g, '/').replace(/\\/g, '\').replace(/`/g, '`'); -} - -module.exports = exports.default; -module.exports.default = exports.default; \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isAfter.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isAfter.js deleted file mode 100644 index 1fa18ad..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isAfter.js +++ /dev/null @@ -1,23 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = isAfter; - -var _assertString = _interopRequireDefault(require("./util/assertString")); - -var _toDate = _interopRequireDefault(require("./toDate")); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function isAfter(str) { - var date = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : String(new Date()); - (0, _assertString.default)(str); - var comparison = (0, _toDate.default)(date); - var original = (0, _toDate.default)(str); - return !!(original && comparison && original > comparison); -} - -module.exports = exports.default; -module.exports.default = exports.default; \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isAlpha.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isAlpha.js deleted file mode 100644 index 5035254..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isAlpha.js +++ /dev/null @@ -1,27 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = isAlpha; -exports.locales = void 0; - -var _assertString = _interopRequireDefault(require("./util/assertString")); - -var _alpha = require("./alpha"); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function isAlpha(str) { - var locale = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'en-US'; - (0, _assertString.default)(str); - - if (locale in _alpha.alpha) { - return _alpha.alpha[locale].test(str); - } - - throw new Error("Invalid locale '".concat(locale, "'")); -} - -var locales = Object.keys(_alpha.alpha); -exports.locales = locales; \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isAlphanumeric.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isAlphanumeric.js deleted file mode 100644 index 33fc3c1..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isAlphanumeric.js +++ /dev/null @@ -1,27 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = isAlphanumeric; -exports.locales = void 0; - -var _assertString = _interopRequireDefault(require("./util/assertString")); - -var _alpha = require("./alpha"); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function isAlphanumeric(str) { - var locale = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'en-US'; - (0, _assertString.default)(str); - - if (locale in _alpha.alphanumeric) { - return _alpha.alphanumeric[locale].test(str); - } - - throw new Error("Invalid locale '".concat(locale, "'")); -} - -var locales = Object.keys(_alpha.alphanumeric); -exports.locales = locales; \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isAscii.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isAscii.js deleted file mode 100644 index 3c62271..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isAscii.js +++ /dev/null @@ -1,22 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = isAscii; - -var _assertString = _interopRequireDefault(require("./util/assertString")); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -/* eslint-disable no-control-regex */ -var ascii = /^[\x00-\x7F]+$/; -/* eslint-enable no-control-regex */ - -function isAscii(str) { - (0, _assertString.default)(str); - return ascii.test(str); -} - -module.exports = exports.default; -module.exports.default = exports.default; \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isBIC.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isBIC.js deleted file mode 100644 index 4a4b122..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isBIC.js +++ /dev/null @@ -1,20 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = isBIC; - -var _assertString = _interopRequireDefault(require("./util/assertString")); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -var isBICReg = /^[A-z]{4}[A-z]{2}\w{2}(\w{3})?$/; - -function isBIC(str) { - (0, _assertString.default)(str); - return isBICReg.test(str); -} - -module.exports = exports.default; -module.exports.default = exports.default; \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isBase32.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isBase32.js deleted file mode 100644 index 6655b38..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isBase32.js +++ /dev/null @@ -1,26 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = isBase32; - -var _assertString = _interopRequireDefault(require("./util/assertString")); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -var base32 = /^[A-Z2-7]+=*$/; - -function isBase32(str) { - (0, _assertString.default)(str); - var len = str.length; - - if (len > 0 && len % 8 === 0 && base32.test(str)) { - return true; - } - - return false; -} - -module.exports = exports.default; -module.exports.default = exports.default; \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isBase64.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isBase64.js deleted file mode 100644 index 283daec..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isBase64.js +++ /dev/null @@ -1,27 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = isBase64; - -var _assertString = _interopRequireDefault(require("./util/assertString")); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -var notBase64 = /[^A-Z0-9+\/=]/i; - -function isBase64(str) { - (0, _assertString.default)(str); - var len = str.length; - - if (!len || len % 4 !== 0 || notBase64.test(str)) { - return false; - } - - var firstPaddingChar = str.indexOf('='); - return firstPaddingChar === -1 || firstPaddingChar === len - 1 || firstPaddingChar === len - 2 && str[len - 1] === '='; -} - -module.exports = exports.default; -module.exports.default = exports.default; \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isBefore.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isBefore.js deleted file mode 100644 index a54eda8..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isBefore.js +++ /dev/null @@ -1,23 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = isBefore; - -var _assertString = _interopRequireDefault(require("./util/assertString")); - -var _toDate = _interopRequireDefault(require("./toDate")); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function isBefore(str) { - var date = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : String(new Date()); - (0, _assertString.default)(str); - var comparison = (0, _toDate.default)(date); - var original = (0, _toDate.default)(str); - return !!(original && comparison && original < comparison); -} - -module.exports = exports.default; -module.exports.default = exports.default; \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isBoolean.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isBoolean.js deleted file mode 100644 index 79d0eb0..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isBoolean.js +++ /dev/null @@ -1,18 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = isBoolean; - -var _assertString = _interopRequireDefault(require("./util/assertString")); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function isBoolean(str) { - (0, _assertString.default)(str); - return ['true', 'false', '1', '0'].indexOf(str) >= 0; -} - -module.exports = exports.default; -module.exports.default = exports.default; \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isBtcAddress.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isBtcAddress.js deleted file mode 100644 index f61460d..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isBtcAddress.js +++ /dev/null @@ -1,21 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = isBtcAddress; - -var _assertString = _interopRequireDefault(require("./util/assertString")); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -// supports Bech32 addresses -var btc = /^(bc1|[13])[a-zA-HJ-NP-Z0-9]{25,39}$/; - -function isBtcAddress(str) { - (0, _assertString.default)(str); - return btc.test(str); -} - -module.exports = exports.default; -module.exports.default = exports.default; \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isByteLength.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isByteLength.js deleted file mode 100644 index c1370ea..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isByteLength.js +++ /dev/null @@ -1,34 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = isByteLength; - -var _assertString = _interopRequireDefault(require("./util/assertString")); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } - -/* eslint-disable prefer-rest-params */ -function isByteLength(str, options) { - (0, _assertString.default)(str); - var min; - var max; - - if (_typeof(options) === 'object') { - min = options.min || 0; - max = options.max; - } else { - // backwards compatibility: isByteLength(str, min [, max]) - min = arguments[1]; - max = arguments[2]; - } - - var len = encodeURI(str).split(/%..|./).length - 1; - return len >= min && (typeof max === 'undefined' || len <= max); -} - -module.exports = exports.default; -module.exports.default = exports.default; \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isCreditCard.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isCreditCard.js deleted file mode 100644 index 6f77f56..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isCreditCard.js +++ /dev/null @@ -1,52 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = isCreditCard; - -var _assertString = _interopRequireDefault(require("./util/assertString")); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -/* eslint-disable max-len */ -var creditCard = /^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|(222[1-9]|22[3-9][0-9]|2[3-6][0-9]{2}|27[01][0-9]|2720)[0-9]{12}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11}|6[27][0-9]{14})$/; -/* eslint-enable max-len */ - -function isCreditCard(str) { - (0, _assertString.default)(str); - var sanitized = str.replace(/[- ]+/g, ''); - - if (!creditCard.test(sanitized)) { - return false; - } - - var sum = 0; - var digit; - var tmpNum; - var shouldDouble; - - for (var i = sanitized.length - 1; i >= 0; i--) { - digit = sanitized.substring(i, i + 1); - tmpNum = parseInt(digit, 10); - - if (shouldDouble) { - tmpNum *= 2; - - if (tmpNum >= 10) { - sum += tmpNum % 10 + 1; - } else { - sum += tmpNum; - } - } else { - sum += tmpNum; - } - - shouldDouble = !shouldDouble; - } - - return !!(sum % 10 === 0 ? sanitized : false); -} - -module.exports = exports.default; -module.exports.default = exports.default; \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isCurrency.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isCurrency.js deleted file mode 100644 index 743b2e8..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isCurrency.js +++ /dev/null @@ -1,89 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = isCurrency; - -var _merge = _interopRequireDefault(require("./util/merge")); - -var _assertString = _interopRequireDefault(require("./util/assertString")); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function currencyRegex(options) { - var decimal_digits = "\\d{".concat(options.digits_after_decimal[0], "}"); - options.digits_after_decimal.forEach(function (digit, index) { - if (index !== 0) decimal_digits = "".concat(decimal_digits, "|\\d{").concat(digit, "}"); - }); - var symbol = "(\\".concat(options.symbol.replace(/\./g, '\\.'), ")").concat(options.require_symbol ? '' : '?'), - negative = '-?', - whole_dollar_amount_without_sep = '[1-9]\\d*', - whole_dollar_amount_with_sep = "[1-9]\\d{0,2}(\\".concat(options.thousands_separator, "\\d{3})*"), - valid_whole_dollar_amounts = ['0', whole_dollar_amount_without_sep, whole_dollar_amount_with_sep], - whole_dollar_amount = "(".concat(valid_whole_dollar_amounts.join('|'), ")?"), - decimal_amount = "(\\".concat(options.decimal_separator, "(").concat(decimal_digits, "))").concat(options.require_decimal ? '' : '?'); - var pattern = whole_dollar_amount + (options.allow_decimal || options.require_decimal ? decimal_amount : ''); // default is negative sign before symbol, but there are two other options (besides parens) - - if (options.allow_negatives && !options.parens_for_negatives) { - if (options.negative_sign_after_digits) { - pattern += negative; - } else if (options.negative_sign_before_digits) { - pattern = negative + pattern; - } - } // South African Rand, for example, uses R 123 (space) and R-123 (no space) - - - if (options.allow_negative_sign_placeholder) { - pattern = "( (?!\\-))?".concat(pattern); - } else if (options.allow_space_after_symbol) { - pattern = " ?".concat(pattern); - } else if (options.allow_space_after_digits) { - pattern += '( (?!$))?'; - } - - if (options.symbol_after_digits) { - pattern += symbol; - } else { - pattern = symbol + pattern; - } - - if (options.allow_negatives) { - if (options.parens_for_negatives) { - pattern = "(\\(".concat(pattern, "\\)|").concat(pattern, ")"); - } else if (!(options.negative_sign_before_digits || options.negative_sign_after_digits)) { - pattern = negative + pattern; - } - } // ensure there's a dollar and/or decimal amount, and that - // it doesn't start with a space or a negative sign followed by a space - - - return new RegExp("^(?!-? )(?=.*\\d)".concat(pattern, "$")); -} - -var default_currency_options = { - symbol: '$', - require_symbol: false, - allow_space_after_symbol: false, - symbol_after_digits: false, - allow_negatives: true, - parens_for_negatives: false, - negative_sign_before_digits: false, - negative_sign_after_digits: false, - allow_negative_sign_placeholder: false, - thousands_separator: ',', - decimal_separator: '.', - allow_decimal: true, - require_decimal: false, - digits_after_decimal: [2], - allow_space_after_digits: false -}; - -function isCurrency(str, options) { - (0, _assertString.default)(str); - options = (0, _merge.default)(options, default_currency_options); - return currencyRegex(options).test(str); -} - -module.exports = exports.default; -module.exports.default = exports.default; \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isDataURI.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isDataURI.js deleted file mode 100644 index e882966..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isDataURI.js +++ /dev/null @@ -1,54 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = isDataURI; - -var _assertString = _interopRequireDefault(require("./util/assertString")); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -var validMediaType = /^[a-z]+\/[a-z0-9\-\+]+$/i; -var validAttribute = /^[a-z\-]+=[a-z0-9\-]+$/i; -var validData = /^[a-z0-9!\$&'\(\)\*\+,;=\-\._~:@\/\?%\s]*$/i; - -function isDataURI(str) { - (0, _assertString.default)(str); - var data = str.split(','); - - if (data.length < 2) { - return false; - } - - var attributes = data.shift().trim().split(';'); - var schemeAndMediaType = attributes.shift(); - - if (schemeAndMediaType.substr(0, 5) !== 'data:') { - return false; - } - - var mediaType = schemeAndMediaType.substr(5); - - if (mediaType !== '' && !validMediaType.test(mediaType)) { - return false; - } - - for (var i = 0; i < attributes.length; i++) { - if (i === attributes.length - 1 && attributes[i].toLowerCase() === 'base64') {// ok - } else if (!validAttribute.test(attributes[i])) { - return false; - } - } - - for (var _i = 0; _i < data.length; _i++) { - if (!validData.test(data[_i])) { - return false; - } - } - - return true; -} - -module.exports = exports.default; -module.exports.default = exports.default; \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isDecimal.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isDecimal.js deleted file mode 100644 index d45b05f..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isDecimal.js +++ /dev/null @@ -1,42 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = isDecimal; - -var _merge = _interopRequireDefault(require("./util/merge")); - -var _assertString = _interopRequireDefault(require("./util/assertString")); - -var _includes = _interopRequireDefault(require("./util/includes")); - -var _alpha = require("./alpha"); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function decimalRegExp(options) { - var regExp = new RegExp("^[-+]?([0-9]+)?(\\".concat(_alpha.decimal[options.locale], "[0-9]{").concat(options.decimal_digits, "})").concat(options.force_decimal ? '' : '?', "$")); - return regExp; -} - -var default_decimal_options = { - force_decimal: false, - decimal_digits: '1,', - locale: 'en-US' -}; -var blacklist = ['', '-', '+']; - -function isDecimal(str, options) { - (0, _assertString.default)(str); - options = (0, _merge.default)(options, default_decimal_options); - - if (options.locale in _alpha.decimal) { - return !(0, _includes.default)(blacklist, str.replace(/ /g, '')) && decimalRegExp(options).test(str); - } - - throw new Error("Invalid locale '".concat(options.locale, "'")); -} - -module.exports = exports.default; -module.exports.default = exports.default; \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isDivisibleBy.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isDivisibleBy.js deleted file mode 100644 index 02408b3..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isDivisibleBy.js +++ /dev/null @@ -1,20 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = isDivisibleBy; - -var _assertString = _interopRequireDefault(require("./util/assertString")); - -var _toFloat = _interopRequireDefault(require("./toFloat")); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function isDivisibleBy(str, num) { - (0, _assertString.default)(str); - return (0, _toFloat.default)(str) % parseInt(num, 10) === 0; -} - -module.exports = exports.default; -module.exports.default = exports.default; \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isEAN.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isEAN.js deleted file mode 100644 index 098c44c..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isEAN.js +++ /dev/null @@ -1,80 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = isEAN; - -var _assertString = _interopRequireDefault(require("./util/assertString")); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -/** - * The most commonly used EAN standard is - * the thirteen-digit EAN-13, while the - * less commonly used 8-digit EAN-8 barcode was - * introduced for use on small packages. - * EAN consists of: - * GS1 prefix, manufacturer code, product code and check digit - * Reference: https://en.wikipedia.org/wiki/International_Article_Number - */ - -/** - * Define EAN Lenghts; 8 for EAN-8; 13 for EAN-13 - * and Regular Expression for valid EANs (EAN-8, EAN-13), - * with exact numberic matching of 8 or 13 digits [0-9] - */ -var LENGTH_EAN_8 = 8; -var validEanRegex = /^(\d{8}|\d{13})$/; -/** - * Get position weight given: - * EAN length and digit index/position - * - * @param {number} length - * @param {number} index - * @return {number} - */ - -function getPositionWeightThroughLengthAndIndex(length, index) { - if (length === LENGTH_EAN_8) { - return index % 2 === 0 ? 3 : 1; - } - - return index % 2 === 0 ? 1 : 3; -} -/** - * Calculate EAN Check Digit - * Reference: https://en.wikipedia.org/wiki/International_Article_Number#Calculation_of_checksum_digit - * - * @param {string} ean - * @return {number} - */ - - -function calculateCheckDigit(ean) { - var checksum = ean.slice(0, -1).split('').map(function (char, index) { - return Number(char) * getPositionWeightThroughLengthAndIndex(ean.length, index); - }).reduce(function (acc, partialSum) { - return acc + partialSum; - }, 0); - var remainder = 10 - checksum % 10; - return remainder < 10 ? remainder : 0; -} -/** - * Check if string is valid EAN: - * Matches EAN-8/EAN-13 regex - * Has valid check digit. - * - * @param {string} str - * @return {boolean} - */ - - -function isEAN(str) { - (0, _assertString.default)(str); - var actualCheckDigit = Number(str.slice(-1)); - return validEanRegex.test(str) && actualCheckDigit === calculateCheckDigit(str); -} - -module.exports = exports.default; -module.exports.default = exports.default; \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isEmail.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isEmail.js deleted file mode 100644 index ca756cc..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isEmail.js +++ /dev/null @@ -1,197 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = isEmail; - -var _assertString = _interopRequireDefault(require("./util/assertString")); - -var _merge = _interopRequireDefault(require("./util/merge")); - -var _isByteLength = _interopRequireDefault(require("./isByteLength")); - -var _isFQDN = _interopRequireDefault(require("./isFQDN")); - -var _isIP = _interopRequireDefault(require("./isIP")); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); } - -function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } - -function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) { return; } var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } - -function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } - -var default_email_options = { - allow_display_name: false, - require_display_name: false, - allow_utf8_local_part: true, - require_tld: true -}; -/* eslint-disable max-len */ - -/* eslint-disable no-control-regex */ - -var splitNameAddress = /^([^\x00-\x1F\x7F-\x9F\cX]+)<(.+)>$/i; -var emailUserPart = /^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~]+$/i; -var gmailUserPart = /^[a-z\d]+$/; -var quotedEmailUser = /^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f]))*$/i; -var emailUserUtf8Part = /^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+$/i; -var quotedEmailUserUtf8 = /^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))*$/i; -var defaultMaxEmailLength = 254; -/* eslint-enable max-len */ - -/* eslint-enable no-control-regex */ - -/** - * Validate display name according to the RFC2822: https://tools.ietf.org/html/rfc2822#appendix-A.1.2 - * @param {String} display_name - */ - -function validateDisplayName(display_name) { - var trim_quotes = display_name.match(/^"(.+)"$/i); - var display_name_without_quotes = trim_quotes ? trim_quotes[1] : display_name; // display name with only spaces is not valid - - if (!display_name_without_quotes.trim()) { - return false; - } // check whether display name contains illegal character - - - var contains_illegal = /[\.";<>]/.test(display_name_without_quotes); - - if (contains_illegal) { - // if contains illegal characters, - // must to be enclosed in double-quotes, otherwise it's not a valid display name - if (!trim_quotes) { - return false; - } // the quotes in display name must start with character symbol \ - - - var all_start_with_back_slash = display_name_without_quotes.split('"').length === display_name_without_quotes.split('\\"').length; - - if (!all_start_with_back_slash) { - return false; - } - } - - return true; -} - -function isEmail(str, options) { - (0, _assertString.default)(str); - options = (0, _merge.default)(options, default_email_options); - - if (options.require_display_name || options.allow_display_name) { - var display_email = str.match(splitNameAddress); - - if (display_email) { - var display_name; - - var _display_email = _slicedToArray(display_email, 3); - - display_name = _display_email[1]; - str = _display_email[2]; - - // sometimes need to trim the last space to get the display name - // because there may be a space between display name and email address - // eg. myname - // the display name is `myname` instead of `myname `, so need to trim the last space - if (display_name.endsWith(' ')) { - display_name = display_name.substr(0, display_name.length - 1); - } - - if (!validateDisplayName(display_name)) { - return false; - } - } else if (options.require_display_name) { - return false; - } - } - - if (!options.ignore_max_length && str.length > defaultMaxEmailLength) { - return false; - } - - var parts = str.split('@'); - var domain = parts.pop(); - var user = parts.join('@'); - var lower_domain = domain.toLowerCase(); - - if (options.domain_specific_validation && (lower_domain === 'gmail.com' || lower_domain === 'googlemail.com')) { - /* - Previously we removed dots for gmail addresses before validating. - This was removed because it allows `multiple..dots@gmail.com` - to be reported as valid, but it is not. - Gmail only normalizes single dots, removing them from here is pointless, - should be done in normalizeEmail - */ - user = user.toLowerCase(); // Removing sub-address from username before gmail validation - - var username = user.split('+')[0]; // Dots are not included in gmail length restriction - - if (!(0, _isByteLength.default)(username.replace('.', ''), { - min: 6, - max: 30 - })) { - return false; - } - - var _user_parts = username.split('.'); - - for (var i = 0; i < _user_parts.length; i++) { - if (!gmailUserPart.test(_user_parts[i])) { - return false; - } - } - } - - if (!(0, _isByteLength.default)(user, { - max: 64 - }) || !(0, _isByteLength.default)(domain, { - max: 254 - })) { - return false; - } - - if (!(0, _isFQDN.default)(domain, { - require_tld: options.require_tld - })) { - if (!options.allow_ip_domain) { - return false; - } - - if (!(0, _isIP.default)(domain)) { - if (!domain.startsWith('[') || !domain.endsWith(']')) { - return false; - } - - var noBracketdomain = domain.substr(1, domain.length - 2); - - if (noBracketdomain.length === 0 || !(0, _isIP.default)(noBracketdomain)) { - return false; - } - } - } - - if (user[0] === '"') { - user = user.slice(1, user.length - 1); - return options.allow_utf8_local_part ? quotedEmailUserUtf8.test(user) : quotedEmailUser.test(user); - } - - var pattern = options.allow_utf8_local_part ? emailUserUtf8Part : emailUserPart; - var user_parts = user.split('.'); - - for (var _i2 = 0; _i2 < user_parts.length; _i2++) { - if (!pattern.test(user_parts[_i2])) { - return false; - } - } - - return true; -} - -module.exports = exports.default; -module.exports.default = exports.default; \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isEmpty.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isEmpty.js deleted file mode 100644 index 26766d5..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isEmpty.js +++ /dev/null @@ -1,25 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = isEmpty; - -var _assertString = _interopRequireDefault(require("./util/assertString")); - -var _merge = _interopRequireDefault(require("./util/merge")); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -var default_is_empty_options = { - ignore_whitespace: false -}; - -function isEmpty(str, options) { - (0, _assertString.default)(str); - options = (0, _merge.default)(options, default_is_empty_options); - return (options.ignore_whitespace ? str.trim().length : str.length) === 0; -} - -module.exports = exports.default; -module.exports.default = exports.default; \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isEthereumAddress.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isEthereumAddress.js deleted file mode 100644 index e6999b9..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isEthereumAddress.js +++ /dev/null @@ -1,20 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = isEthereumAddress; - -var _assertString = _interopRequireDefault(require("./util/assertString")); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -var eth = /^(0x)[0-9a-f]{40}$/i; - -function isEthereumAddress(str) { - (0, _assertString.default)(str); - return eth.test(str); -} - -module.exports = exports.default; -module.exports.default = exports.default; \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isFQDN.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isFQDN.js deleted file mode 100644 index b5c769d..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isFQDN.js +++ /dev/null @@ -1,75 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = isFQDN; - -var _assertString = _interopRequireDefault(require("./util/assertString")); - -var _merge = _interopRequireDefault(require("./util/merge")); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -var default_fqdn_options = { - require_tld: true, - allow_underscores: false, - allow_trailing_dot: false -}; - -function isFQDN(str, options) { - (0, _assertString.default)(str); - options = (0, _merge.default)(options, default_fqdn_options); - /* Remove the optional trailing dot before checking validity */ - - if (options.allow_trailing_dot && str[str.length - 1] === '.') { - str = str.substring(0, str.length - 1); - } - - var parts = str.split('.'); - - for (var i = 0; i < parts.length; i++) { - if (parts[i].length > 63) { - return false; - } - } - - if (options.require_tld) { - var tld = parts.pop(); - - if (!parts.length || !/^([a-z\u00a1-\uffff]{2,}|xn[a-z0-9-]{2,})$/i.test(tld)) { - return false; - } // disallow spaces - - - if (/[\s\u2002-\u200B\u202F\u205F\u3000\uFEFF\uDB40\uDC20]/.test(tld)) { - return false; - } - } - - for (var part, _i = 0; _i < parts.length; _i++) { - part = parts[_i]; - - if (options.allow_underscores) { - part = part.replace(/_/g, ''); - } - - if (!/^[a-z\u00a1-\uffff0-9-]+$/i.test(part)) { - return false; - } // disallow full-width chars - - - if (/[\uff01-\uff5e]/.test(part)) { - return false; - } - - if (part[0] === '-' || part[part.length - 1] === '-') { - return false; - } - } - - return true; -} - -module.exports = exports.default; -module.exports.default = exports.default; \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isFloat.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isFloat.js deleted file mode 100644 index 3fdab86..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isFloat.js +++ /dev/null @@ -1,29 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = isFloat; -exports.locales = void 0; - -var _assertString = _interopRequireDefault(require("./util/assertString")); - -var _alpha = require("./alpha"); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function isFloat(str, options) { - (0, _assertString.default)(str); - options = options || {}; - var float = new RegExp("^(?:[-+])?(?:[0-9]+)?(?:\\".concat(options.locale ? _alpha.decimal[options.locale] : '.', "[0-9]*)?(?:[eE][\\+\\-]?(?:[0-9]+))?$")); - - if (str === '' || str === '.' || str === '-' || str === '+') { - return false; - } - - var value = parseFloat(str.replace(',', '.')); - return float.test(str) && (!options.hasOwnProperty('min') || value >= options.min) && (!options.hasOwnProperty('max') || value <= options.max) && (!options.hasOwnProperty('lt') || value < options.lt) && (!options.hasOwnProperty('gt') || value > options.gt); -} - -var locales = Object.keys(_alpha.decimal); -exports.locales = locales; \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isFullWidth.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isFullWidth.js deleted file mode 100644 index 1960f13..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isFullWidth.js +++ /dev/null @@ -1,19 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = isFullWidth; -exports.fullWidth = void 0; - -var _assertString = _interopRequireDefault(require("./util/assertString")); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -var fullWidth = /[^\u0020-\u007E\uFF61-\uFF9F\uFFA0-\uFFDC\uFFE8-\uFFEE0-9a-zA-Z]/; -exports.fullWidth = fullWidth; - -function isFullWidth(str) { - (0, _assertString.default)(str); - return fullWidth.test(str); -} \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isHSL.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isHSL.js deleted file mode 100644 index 5db62d7..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isHSL.js +++ /dev/null @@ -1,21 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = isHSL; - -var _assertString = _interopRequireDefault(require("./util/assertString")); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -var hslcomma = /^(hsl)a?\(\s*((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?))(deg|grad|rad|turn|\s*)(\s*,\s*(\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%){2}\s*(,\s*((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%?)\s*)?\)$/i; -var hslspace = /^(hsl)a?\(\s*((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?))(deg|grad|rad|turn|\s)(\s*(\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%){2}\s*(\/\s*((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%?)\s*)?\)$/i; - -function isHSL(str) { - (0, _assertString.default)(str); - return hslcomma.test(str) || hslspace.test(str); -} - -module.exports = exports.default; -module.exports.default = exports.default; \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isHalfWidth.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isHalfWidth.js deleted file mode 100644 index 55a9e1a..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isHalfWidth.js +++ /dev/null @@ -1,19 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = isHalfWidth; -exports.halfWidth = void 0; - -var _assertString = _interopRequireDefault(require("./util/assertString")); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -var halfWidth = /[\u0020-\u007E\uFF61-\uFF9F\uFFA0-\uFFDC\uFFE8-\uFFEE0-9a-zA-Z]/; -exports.halfWidth = halfWidth; - -function isHalfWidth(str) { - (0, _assertString.default)(str); - return halfWidth.test(str); -} \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isHash.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isHash.js deleted file mode 100644 index 1083966..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isHash.js +++ /dev/null @@ -1,35 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = isHash; - -var _assertString = _interopRequireDefault(require("./util/assertString")); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -var lengths = { - md5: 32, - md4: 32, - sha1: 40, - sha256: 64, - sha384: 96, - sha512: 128, - ripemd128: 32, - ripemd160: 40, - tiger128: 32, - tiger160: 40, - tiger192: 48, - crc32: 8, - crc32b: 8 -}; - -function isHash(str, algorithm) { - (0, _assertString.default)(str); - var hash = new RegExp("^[a-fA-F0-9]{".concat(lengths[algorithm], "}$")); - return hash.test(str); -} - -module.exports = exports.default; -module.exports.default = exports.default; \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isHexColor.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isHexColor.js deleted file mode 100644 index 7af3889..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isHexColor.js +++ /dev/null @@ -1,20 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = isHexColor; - -var _assertString = _interopRequireDefault(require("./util/assertString")); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -var hexcolor = /^#?([0-9A-F]{3}|[0-9A-F]{4}|[0-9A-F]{6}|[0-9A-F]{8})$/i; - -function isHexColor(str) { - (0, _assertString.default)(str); - return hexcolor.test(str); -} - -module.exports = exports.default; -module.exports.default = exports.default; \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isHexadecimal.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isHexadecimal.js deleted file mode 100644 index a1cf738..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isHexadecimal.js +++ /dev/null @@ -1,20 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = isHexadecimal; - -var _assertString = _interopRequireDefault(require("./util/assertString")); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -var hexadecimal = /^(0x|0h)?[0-9A-F]+$/i; - -function isHexadecimal(str) { - (0, _assertString.default)(str); - return hexadecimal.test(str); -} - -module.exports = exports.default; -module.exports.default = exports.default; \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isIBAN.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isIBAN.js deleted file mode 100644 index be5c512..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isIBAN.js +++ /dev/null @@ -1,145 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = isIBAN; - -var _assertString = _interopRequireDefault(require("./util/assertString")); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -/** - * List of country codes with - * corresponding IBAN regular expression - * Reference: https://en.wikipedia.org/wiki/International_Bank_Account_Number - */ -var ibanRegexThroughCountryCode = { - AD: /^(AD[0-9]{2})\d{8}[A-Z0-9]{12}$/, - AE: /^(AE[0-9]{2})\d{3}\d{16}$/, - AL: /^(AL[0-9]{2})\d{8}[A-Z0-9]{16}$/, - AT: /^(AT[0-9]{2})\d{16}$/, - AZ: /^(AZ[0-9]{2})[A-Z0-9]{4}\d{20}$/, - BA: /^(BA[0-9]{2})\d{16}$/, - BE: /^(BE[0-9]{2})\d{12}$/, - BG: /^(BG[0-9]{2})[A-Z]{4}\d{6}[A-Z0-9]{8}$/, - BH: /^(BH[0-9]{2})[A-Z]{4}[A-Z0-9]{14}$/, - BR: /^(BR[0-9]{2})\d{23}[A-Z]{1}[A-Z0-9]{1}$/, - BY: /^(BY[0-9]{2})[A-Z0-9]{4}\d{20}$/, - CH: /^(CH[0-9]{2})\d{5}[A-Z0-9]{12}$/, - CR: /^(CR[0-9]{2})\d{18}$/, - CY: /^(CY[0-9]{2})\d{8}[A-Z0-9]{16}$/, - CZ: /^(CZ[0-9]{2})\d{20}$/, - DE: /^(DE[0-9]{2})\d{18}$/, - DK: /^(DK[0-9]{2})\d{14}$/, - DO: /^(DO[0-9]{2})[A-Z]{4}\d{20}$/, - EE: /^(EE[0-9]{2})\d{16}$/, - ES: /^(ES[0-9]{2})\d{20}$/, - FI: /^(FI[0-9]{2})\d{14}$/, - FO: /^(FO[0-9]{2})\d{14}$/, - FR: /^(FR[0-9]{2})\d{10}[A-Z0-9]{11}\d{2}$/, - GB: /^(GB[0-9]{2})[A-Z]{4}\d{14}$/, - GE: /^(GE[0-9]{2})[A-Z0-9]{2}\d{16}$/, - GI: /^(GI[0-9]{2})[A-Z]{4}[A-Z0-9]{15}$/, - GL: /^(GL[0-9]{2})\d{14}$/, - GR: /^(GR[0-9]{2})\d{7}[A-Z0-9]{16}$/, - GT: /^(GT[0-9]{2})[A-Z0-9]{4}[A-Z0-9]{20}$/, - HR: /^(HR[0-9]{2})\d{17}$/, - HU: /^(HU[0-9]{2})\d{24}$/, - IE: /^(IE[0-9]{2})[A-Z0-9]{4}\d{14}$/, - IL: /^(IL[0-9]{2})\d{19}$/, - IQ: /^(IQ[0-9]{2})[A-Z]{4}\d{15}$/, - IS: /^(IS[0-9]{2})\d{22}$/, - IT: /^(IT[0-9]{2})[A-Z]{1}\d{10}[A-Z0-9]{12}$/, - JO: /^(JO[0-9]{2})[A-Z]{4}\d{22}$/, - KW: /^(KW[0-9]{2})[A-Z]{4}[A-Z0-9]{22}$/, - KZ: /^(KZ[0-9]{2})\d{3}[A-Z0-9]{13}$/, - LB: /^(LB[0-9]{2})\d{4}[A-Z0-9]{20}$/, - LC: /^(LC[0-9]{2})[A-Z]{4}[A-Z0-9]{24}$/, - LI: /^(LI[0-9]{2})\d{5}[A-Z0-9]{12}$/, - LT: /^(LT[0-9]{2})\d{16}$/, - LU: /^(LU[0-9]{2})\d{3}[A-Z0-9]{13}$/, - LV: /^(LV[0-9]{2})[A-Z]{4}[A-Z0-9]{13}$/, - MC: /^(MC[0-9]{2})\d{10}[A-Z0-9]{11}\d{2}$/, - MD: /^(MD[0-9]{2})[A-Z0-9]{20}$/, - ME: /^(ME[0-9]{2})\d{18}$/, - MK: /^(MK[0-9]{2})\d{3}[A-Z0-9]{10}\d{2}$/, - MR: /^(MR[0-9]{2})\d{23}$/, - MT: /^(MT[0-9]{2})[A-Z]{4}\d{5}[A-Z0-9]{18}$/, - MU: /^(MU[0-9]{2})[A-Z]{4}\d{19}[A-Z]{3}$/, - NL: /^(NL[0-9]{2})[A-Z]{4}\d{10}$/, - NO: /^(NO[0-9]{2})\d{11}$/, - PK: /^(PK[0-9]{2})[A-Z0-9]{4}\d{16}$/, - PL: /^(PL[0-9]{2})\d{24}$/, - PS: /^(PS[0-9]{2})[A-Z0-9]{4}\d{21}$/, - PT: /^(PT[0-9]{2})\d{21}$/, - QA: /^(QA[0-9]{2})[A-Z]{4}[A-Z0-9]{21}$/, - RO: /^(RO[0-9]{2})[A-Z]{4}[A-Z0-9]{16}$/, - RS: /^(RS[0-9]{2})\d{18}$/, - SA: /^(SA[0-9]{2})\d{2}[A-Z0-9]{18}$/, - SC: /^(SC[0-9]{2})[A-Z]{4}\d{20}[A-Z]{3}$/, - SE: /^(SE[0-9]{2})\d{20}$/, - SI: /^(SI[0-9]{2})\d{15}$/, - SK: /^(SK[0-9]{2})\d{20}$/, - SM: /^(SM[0-9]{2})[A-Z]{1}\d{10}[A-Z0-9]{12}$/, - TL: /^(TL[0-9]{2})\d{19}$/, - TN: /^(TN[0-9]{2})\d{20}$/, - TR: /^(TR[0-9]{2})\d{5}[A-Z0-9]{17}$/, - UA: /^(UA[0-9]{2})\d{6}[A-Z0-9]{19}$/, - VA: /^(VA[0-9]{2})\d{18}$/, - VG: /^(VG[0-9]{2})[A-Z0-9]{4}\d{16}$/, - XK: /^(XK[0-9]{2})\d{16}$/ -}; -/** - * Check whether string has correct universal IBAN format - * The IBAN consists of up to 34 alphanumeric characters, as follows: - * Country Code using ISO 3166-1 alpha-2, two letters - * check digits, two digits and - * Basic Bank Account Number (BBAN), up to 30 alphanumeric characters. - * NOTE: Permitted IBAN characters are: digits [0-9] and the 26 latin alphabetic [A-Z] - * - * @param {string} str - string under validation - * @return {boolean} - */ - -function hasValidIbanFormat(str) { - // Strip white spaces and hyphens - var strippedStr = str.replace(/[\s\-]+/gi, '').toUpperCase(); - var isoCountryCode = strippedStr.slice(0, 2).toUpperCase(); - return isoCountryCode in ibanRegexThroughCountryCode && ibanRegexThroughCountryCode[isoCountryCode].test(strippedStr); -} -/** - * Check whether string has valid IBAN Checksum - * by performing basic mod-97 operation and - * the remainder should equal 1 - * -- Start by rearranging the IBAN by moving the four initial characters to the end of the string - * -- Replace each letter in the string with two digits, A -> 10, B = 11, Z = 35 - * -- Interpret the string as a decimal integer and - * -- compute the remainder on division by 97 (mod 97) - * Reference: https://en.wikipedia.org/wiki/International_Bank_Account_Number - * - * @param {string} str - * @return {boolean} - */ - - -function hasValidIbanChecksum(str) { - var strippedStr = str.replace(/[^A-Z0-9]+/gi, '').toUpperCase(); // Keep only digits and A-Z latin alphabetic - - var rearranged = strippedStr.slice(4) + strippedStr.slice(0, 4); - var alphaCapsReplacedWithDigits = rearranged.replace(/[A-Z]/g, function (char) { - return char.charCodeAt(0) - 55; - }); - var remainder = alphaCapsReplacedWithDigits.match(/\d{1,7}/g).reduce(function (acc, value) { - return Number(acc + value) % 97; - }, ''); - return remainder === 1; -} - -function isIBAN(str) { - (0, _assertString.default)(str); - return hasValidIbanFormat(str) && hasValidIbanChecksum(str); -} - -module.exports = exports.default; -module.exports.default = exports.default; \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isIP.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isIP.js deleted file mode 100644 index b5a924c..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isIP.js +++ /dev/null @@ -1,137 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = isIP; - -var _assertString = _interopRequireDefault(require("./util/assertString")); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -/** -11.3. Examples - - The following addresses - - fe80::1234 (on the 1st link of the node) - ff02::5678 (on the 5th link of the node) - ff08::9abc (on the 10th organization of the node) - - would be represented as follows: - - fe80::1234%1 - ff02::5678%5 - ff08::9abc%10 - - (Here we assume a natural translation from a zone index to the - part, where the Nth zone of any scope is translated into - "N".) - - If we use interface names as , those addresses could also be - represented as follows: - - fe80::1234%ne0 - ff02::5678%pvc1.3 - ff08::9abc%interface10 - - where the interface "ne0" belongs to the 1st link, "pvc1.3" belongs - to the 5th link, and "interface10" belongs to the 10th organization. - * * */ -var ipv4Maybe = /^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$/; -var ipv6Block = /^[0-9A-F]{1,4}$/i; - -function isIP(str) { - var version = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ''; - (0, _assertString.default)(str); - version = String(version); - - if (!version) { - return isIP(str, 4) || isIP(str, 6); - } else if (version === '4') { - if (!ipv4Maybe.test(str)) { - return false; - } - - var parts = str.split('.').sort(function (a, b) { - return a - b; - }); - return parts[3] <= 255; - } else if (version === '6') { - var addressAndZone = [str]; // ipv6 addresses could have scoped architecture - // according to https://tools.ietf.org/html/rfc4007#section-11 - - if (str.includes('%')) { - addressAndZone = str.split('%'); - - if (addressAndZone.length !== 2) { - // it must be just two parts - return false; - } - - if (!addressAndZone[0].includes(':')) { - // the first part must be the address - return false; - } - - if (addressAndZone[1] === '') { - // the second part must not be empty - return false; - } - } - - var blocks = addressAndZone[0].split(':'); - var foundOmissionBlock = false; // marker to indicate :: - // At least some OS accept the last 32 bits of an IPv6 address - // (i.e. 2 of the blocks) in IPv4 notation, and RFC 3493 says - // that '::ffff:a.b.c.d' is valid for IPv4-mapped IPv6 addresses, - // and '::a.b.c.d' is deprecated, but also valid. - - var foundIPv4TransitionBlock = isIP(blocks[blocks.length - 1], 4); - var expectedNumberOfBlocks = foundIPv4TransitionBlock ? 7 : 8; - - if (blocks.length > expectedNumberOfBlocks) { - return false; - } // initial or final :: - - - if (str === '::') { - return true; - } else if (str.substr(0, 2) === '::') { - blocks.shift(); - blocks.shift(); - foundOmissionBlock = true; - } else if (str.substr(str.length - 2) === '::') { - blocks.pop(); - blocks.pop(); - foundOmissionBlock = true; - } - - for (var i = 0; i < blocks.length; ++i) { - // test for a :: which can not be at the string start/end - // since those cases have been handled above - if (blocks[i] === '' && i > 0 && i < blocks.length - 1) { - if (foundOmissionBlock) { - return false; // multiple :: in address - } - - foundOmissionBlock = true; - } else if (foundIPv4TransitionBlock && i === blocks.length - 1) {// it has been checked before that the last - // block is a valid IPv4 address - } else if (!ipv6Block.test(blocks[i])) { - return false; - } - } - - if (foundOmissionBlock) { - return blocks.length >= 1; - } - - return blocks.length === expectedNumberOfBlocks; - } - - return false; -} - -module.exports = exports.default; -module.exports.default = exports.default; \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isIPRange.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isIPRange.js deleted file mode 100644 index 8c6cbb5..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isIPRange.js +++ /dev/null @@ -1,37 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = isIPRange; - -var _assertString = _interopRequireDefault(require("./util/assertString")); - -var _isIP = _interopRequireDefault(require("./isIP")); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -var subnetMaybe = /^\d{1,2}$/; - -function isIPRange(str) { - (0, _assertString.default)(str); - var parts = str.split('/'); // parts[0] -> ip, parts[1] -> subnet - - if (parts.length !== 2) { - return false; - } - - if (!subnetMaybe.test(parts[1])) { - return false; - } // Disallow preceding 0 i.e. 01, 02, ... - - - if (parts[1].length > 1 && parts[1].startsWith('0')) { - return false; - } - - return (0, _isIP.default)(parts[0], 4) && parts[1] <= 32 && parts[1] >= 0; -} - -module.exports = exports.default; -module.exports.default = exports.default; \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isISBN.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isISBN.js deleted file mode 100644 index f00bb7a..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isISBN.js +++ /dev/null @@ -1,65 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = isISBN; - -var _assertString = _interopRequireDefault(require("./util/assertString")); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -var isbn10Maybe = /^(?:[0-9]{9}X|[0-9]{10})$/; -var isbn13Maybe = /^(?:[0-9]{13})$/; -var factor = [1, 3]; - -function isISBN(str) { - var version = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ''; - (0, _assertString.default)(str); - version = String(version); - - if (!version) { - return isISBN(str, 10) || isISBN(str, 13); - } - - var sanitized = str.replace(/[\s-]+/g, ''); - var checksum = 0; - var i; - - if (version === '10') { - if (!isbn10Maybe.test(sanitized)) { - return false; - } - - for (i = 0; i < 9; i++) { - checksum += (i + 1) * sanitized.charAt(i); - } - - if (sanitized.charAt(9) === 'X') { - checksum += 10 * 10; - } else { - checksum += 10 * sanitized.charAt(9); - } - - if (checksum % 11 === 0) { - return !!sanitized; - } - } else if (version === '13') { - if (!isbn13Maybe.test(sanitized)) { - return false; - } - - for (i = 0; i < 12; i++) { - checksum += factor[i % 2] * sanitized.charAt(i); - } - - if (sanitized.charAt(12) - (10 - checksum % 10) % 10 === 0) { - return !!sanitized; - } - } - - return false; -} - -module.exports = exports.default; -module.exports.default = exports.default; \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isISIN.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isISIN.js deleted file mode 100644 index cadcc92..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isISIN.js +++ /dev/null @@ -1,52 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = isISIN; - -var _assertString = _interopRequireDefault(require("./util/assertString")); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -var isin = /^[A-Z]{2}[0-9A-Z]{9}[0-9]$/; - -function isISIN(str) { - (0, _assertString.default)(str); - - if (!isin.test(str)) { - return false; - } - - var checksumStr = str.replace(/[A-Z]/g, function (character) { - return parseInt(character, 36); - }); - var sum = 0; - var digit; - var tmpNum; - var shouldDouble = true; - - for (var i = checksumStr.length - 2; i >= 0; i--) { - digit = checksumStr.substring(i, i + 1); - tmpNum = parseInt(digit, 10); - - if (shouldDouble) { - tmpNum *= 2; - - if (tmpNum >= 10) { - sum += tmpNum + 1; - } else { - sum += tmpNum; - } - } else { - sum += tmpNum; - } - - shouldDouble = !shouldDouble; - } - - return parseInt(str.substr(str.length - 1), 10) === (10000 - sum) % 10; -} - -module.exports = exports.default; -module.exports.default = exports.default; \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isISO31661Alpha2.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isISO31661Alpha2.js deleted file mode 100644 index 44748a7..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isISO31661Alpha2.js +++ /dev/null @@ -1,23 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = isISO31661Alpha2; - -var _assertString = _interopRequireDefault(require("./util/assertString")); - -var _includes = _interopRequireDefault(require("./util/includes")); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -// from https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 -var validISO31661Alpha2CountriesCodes = ['AD', 'AE', 'AF', 'AG', 'AI', 'AL', 'AM', 'AO', 'AQ', 'AR', 'AS', 'AT', 'AU', 'AW', 'AX', 'AZ', 'BA', 'BB', 'BD', 'BE', 'BF', 'BG', 'BH', 'BI', 'BJ', 'BL', 'BM', 'BN', 'BO', 'BQ', 'BR', 'BS', 'BT', 'BV', 'BW', 'BY', 'BZ', 'CA', 'CC', 'CD', 'CF', 'CG', 'CH', 'CI', 'CK', 'CL', 'CM', 'CN', 'CO', 'CR', 'CU', 'CV', 'CW', 'CX', 'CY', 'CZ', 'DE', 'DJ', 'DK', 'DM', 'DO', 'DZ', 'EC', 'EE', 'EG', 'EH', 'ER', 'ES', 'ET', 'FI', 'FJ', 'FK', 'FM', 'FO', 'FR', 'GA', 'GB', 'GD', 'GE', 'GF', 'GG', 'GH', 'GI', 'GL', 'GM', 'GN', 'GP', 'GQ', 'GR', 'GS', 'GT', 'GU', 'GW', 'GY', 'HK', 'HM', 'HN', 'HR', 'HT', 'HU', 'ID', 'IE', 'IL', 'IM', 'IN', 'IO', 'IQ', 'IR', 'IS', 'IT', 'JE', 'JM', 'JO', 'JP', 'KE', 'KG', 'KH', 'KI', 'KM', 'KN', 'KP', 'KR', 'KW', 'KY', 'KZ', 'LA', 'LB', 'LC', 'LI', 'LK', 'LR', 'LS', 'LT', 'LU', 'LV', 'LY', 'MA', 'MC', 'MD', 'ME', 'MF', 'MG', 'MH', 'MK', 'ML', 'MM', 'MN', 'MO', 'MP', 'MQ', 'MR', 'MS', 'MT', 'MU', 'MV', 'MW', 'MX', 'MY', 'MZ', 'NA', 'NC', 'NE', 'NF', 'NG', 'NI', 'NL', 'NO', 'NP', 'NR', 'NU', 'NZ', 'OM', 'PA', 'PE', 'PF', 'PG', 'PH', 'PK', 'PL', 'PM', 'PN', 'PR', 'PS', 'PT', 'PW', 'PY', 'QA', 'RE', 'RO', 'RS', 'RU', 'RW', 'SA', 'SB', 'SC', 'SD', 'SE', 'SG', 'SH', 'SI', 'SJ', 'SK', 'SL', 'SM', 'SN', 'SO', 'SR', 'SS', 'ST', 'SV', 'SX', 'SY', 'SZ', 'TC', 'TD', 'TF', 'TG', 'TH', 'TJ', 'TK', 'TL', 'TM', 'TN', 'TO', 'TR', 'TT', 'TV', 'TW', 'TZ', 'UA', 'UG', 'UM', 'US', 'UY', 'UZ', 'VA', 'VC', 'VE', 'VG', 'VI', 'VN', 'VU', 'WF', 'WS', 'YE', 'YT', 'ZA', 'ZM', 'ZW']; - -function isISO31661Alpha2(str) { - (0, _assertString.default)(str); - return (0, _includes.default)(validISO31661Alpha2CountriesCodes, str.toUpperCase()); -} - -module.exports = exports.default; -module.exports.default = exports.default; \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isISO31661Alpha3.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isISO31661Alpha3.js deleted file mode 100644 index 8dcaabd..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isISO31661Alpha3.js +++ /dev/null @@ -1,23 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = isISO31661Alpha3; - -var _assertString = _interopRequireDefault(require("./util/assertString")); - -var _includes = _interopRequireDefault(require("./util/includes")); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -// from https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3 -var validISO31661Alpha3CountriesCodes = ['AFG', 'ALA', 'ALB', 'DZA', 'ASM', 'AND', 'AGO', 'AIA', 'ATA', 'ATG', 'ARG', 'ARM', 'ABW', 'AUS', 'AUT', 'AZE', 'BHS', 'BHR', 'BGD', 'BRB', 'BLR', 'BEL', 'BLZ', 'BEN', 'BMU', 'BTN', 'BOL', 'BES', 'BIH', 'BWA', 'BVT', 'BRA', 'IOT', 'BRN', 'BGR', 'BFA', 'BDI', 'KHM', 'CMR', 'CAN', 'CPV', 'CYM', 'CAF', 'TCD', 'CHL', 'CHN', 'CXR', 'CCK', 'COL', 'COM', 'COG', 'COD', 'COK', 'CRI', 'CIV', 'HRV', 'CUB', 'CUW', 'CYP', 'CZE', 'DNK', 'DJI', 'DMA', 'DOM', 'ECU', 'EGY', 'SLV', 'GNQ', 'ERI', 'EST', 'ETH', 'FLK', 'FRO', 'FJI', 'FIN', 'FRA', 'GUF', 'PYF', 'ATF', 'GAB', 'GMB', 'GEO', 'DEU', 'GHA', 'GIB', 'GRC', 'GRL', 'GRD', 'GLP', 'GUM', 'GTM', 'GGY', 'GIN', 'GNB', 'GUY', 'HTI', 'HMD', 'VAT', 'HND', 'HKG', 'HUN', 'ISL', 'IND', 'IDN', 'IRN', 'IRQ', 'IRL', 'IMN', 'ISR', 'ITA', 'JAM', 'JPN', 'JEY', 'JOR', 'KAZ', 'KEN', 'KIR', 'PRK', 'KOR', 'KWT', 'KGZ', 'LAO', 'LVA', 'LBN', 'LSO', 'LBR', 'LBY', 'LIE', 'LTU', 'LUX', 'MAC', 'MKD', 'MDG', 'MWI', 'MYS', 'MDV', 'MLI', 'MLT', 'MHL', 'MTQ', 'MRT', 'MUS', 'MYT', 'MEX', 'FSM', 'MDA', 'MCO', 'MNG', 'MNE', 'MSR', 'MAR', 'MOZ', 'MMR', 'NAM', 'NRU', 'NPL', 'NLD', 'NCL', 'NZL', 'NIC', 'NER', 'NGA', 'NIU', 'NFK', 'MNP', 'NOR', 'OMN', 'PAK', 'PLW', 'PSE', 'PAN', 'PNG', 'PRY', 'PER', 'PHL', 'PCN', 'POL', 'PRT', 'PRI', 'QAT', 'REU', 'ROU', 'RUS', 'RWA', 'BLM', 'SHN', 'KNA', 'LCA', 'MAF', 'SPM', 'VCT', 'WSM', 'SMR', 'STP', 'SAU', 'SEN', 'SRB', 'SYC', 'SLE', 'SGP', 'SXM', 'SVK', 'SVN', 'SLB', 'SOM', 'ZAF', 'SGS', 'SSD', 'ESP', 'LKA', 'SDN', 'SUR', 'SJM', 'SWZ', 'SWE', 'CHE', 'SYR', 'TWN', 'TJK', 'TZA', 'THA', 'TLS', 'TGO', 'TKL', 'TON', 'TTO', 'TUN', 'TUR', 'TKM', 'TCA', 'TUV', 'UGA', 'UKR', 'ARE', 'GBR', 'USA', 'UMI', 'URY', 'UZB', 'VUT', 'VEN', 'VNM', 'VGB', 'VIR', 'WLF', 'ESH', 'YEM', 'ZMB', 'ZWE']; - -function isISO31661Alpha3(str) { - (0, _assertString.default)(str); - return (0, _includes.default)(validISO31661Alpha3CountriesCodes, str.toUpperCase()); -} - -module.exports = exports.default; -module.exports.default = exports.default; \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isISO8601.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isISO8601.js deleted file mode 100644 index db6d880..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isISO8601.js +++ /dev/null @@ -1,57 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = isISO8601; - -var _assertString = _interopRequireDefault(require("./util/assertString")); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -/* eslint-disable max-len */ -// from http://goo.gl/0ejHHW -var iso8601 = /^([\+-]?\d{4}(?!\d{2}\b))((-?)((0[1-9]|1[0-2])(\3([12]\d|0[1-9]|3[01]))?|W([0-4]\d|5[0-3])(-?[1-7])?|(00[1-9]|0[1-9]\d|[12]\d{2}|3([0-5]\d|6[1-6])))([T\s]((([01]\d|2[0-3])((:?)[0-5]\d)?|24:?00)([\.,]\d+(?!:))?)?(\17[0-5]\d([\.,]\d+)?)?([zZ]|([\+-])([01]\d|2[0-3]):?([0-5]\d)?)?)?)?$/; -/* eslint-enable max-len */ - -var isValidDate = function isValidDate(str) { - // str must have passed the ISO8601 check - // this check is meant to catch invalid dates - // like 2009-02-31 - // first check for ordinal dates - var ordinalMatch = str.match(/^(\d{4})-?(\d{3})([ T]{1}\.*|$)/); - - if (ordinalMatch) { - var oYear = Number(ordinalMatch[1]); - var oDay = Number(ordinalMatch[2]); // if is leap year - - if (oYear % 4 === 0 && oYear % 100 !== 0 || oYear % 400 === 0) return oDay <= 366; - return oDay <= 365; - } - - var match = str.match(/(\d{4})-?(\d{0,2})-?(\d*)/).map(Number); - var year = match[1]; - var month = match[2]; - var day = match[3]; - var monthString = month ? "0".concat(month).slice(-2) : month; - var dayString = day ? "0".concat(day).slice(-2) : day; // create a date object and compare - - var d = new Date("".concat(year, "-").concat(monthString || '01', "-").concat(dayString || '01')); - - if (month && day) { - return d.getUTCFullYear() === year && d.getUTCMonth() + 1 === month && d.getUTCDate() === day; - } - - return true; -}; - -function isISO8601(str, options) { - (0, _assertString.default)(str); - var check = iso8601.test(str); - if (!options) return check; - if (check && options.strict) return isValidDate(str); - return check; -} - -module.exports = exports.default; -module.exports.default = exports.default; \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isISRC.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isISRC.js deleted file mode 100644 index c5ce1e2..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isISRC.js +++ /dev/null @@ -1,21 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = isISRC; - -var _assertString = _interopRequireDefault(require("./util/assertString")); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -// see http://isrc.ifpi.org/en/isrc-standard/code-syntax -var isrc = /^[A-Z]{2}[0-9A-Z]{3}\d{2}\d{5}$/; - -function isISRC(str) { - (0, _assertString.default)(str); - return isrc.test(str); -} - -module.exports = exports.default; -module.exports.default = exports.default; \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isISSN.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isISSN.js deleted file mode 100644 index eee87b3..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isISSN.js +++ /dev/null @@ -1,37 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = isISSN; - -var _assertString = _interopRequireDefault(require("./util/assertString")); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -var issn = '^\\d{4}-?\\d{3}[\\dX]$'; - -function isISSN(str) { - var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - (0, _assertString.default)(str); - var testIssn = issn; - testIssn = options.require_hyphen ? testIssn.replace('?', '') : testIssn; - testIssn = options.case_sensitive ? new RegExp(testIssn) : new RegExp(testIssn, 'i'); - - if (!testIssn.test(str)) { - return false; - } - - var digits = str.replace('-', '').toUpperCase(); - var checksum = 0; - - for (var i = 0; i < digits.length; i++) { - var digit = digits[i]; - checksum += (digit === 'X' ? 10 : +digit) * (8 - i); - } - - return checksum % 11 === 0; -} - -module.exports = exports.default; -module.exports.default = exports.default; \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isIdentityCard.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isIdentityCard.js deleted file mode 100644 index 0a26d44..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isIdentityCard.js +++ /dev/null @@ -1,127 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = isIdentityCard; - -var _assertString = _interopRequireDefault(require("./util/assertString")); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -var validators = { - ES: function ES(str) { - (0, _assertString.default)(str); - var DNI = /^[0-9X-Z][0-9]{7}[TRWAGMYFPDXBNJZSQVHLCKE]$/; - var charsValue = { - X: 0, - Y: 1, - Z: 2 - }; - var controlDigits = ['T', 'R', 'W', 'A', 'G', 'M', 'Y', 'F', 'P', 'D', 'X', 'B', 'N', 'J', 'Z', 'S', 'Q', 'V', 'H', 'L', 'C', 'K', 'E']; // sanitize user input - - var sanitized = str.trim().toUpperCase(); // validate the data structure - - if (!DNI.test(sanitized)) { - return false; - } // validate the control digit - - - var number = sanitized.slice(0, -1).replace(/[X,Y,Z]/g, function (char) { - return charsValue[char]; - }); - return sanitized.endsWith(controlDigits[number % 23]); - }, - 'he-IL': function heIL(str) { - var DNI = /^\d{9}$/; // sanitize user input - - var sanitized = str.trim(); // validate the data structure - - if (!DNI.test(sanitized)) { - return false; - } - - var id = sanitized; - var sum = 0, - incNum; - - for (var i = 0; i < id.length; i++) { - incNum = Number(id[i]) * (i % 2 + 1); // Multiply number by 1 or 2 - - sum += incNum > 9 ? incNum - 9 : incNum; // Sum the digits up and add to total - } - - return sum % 10 === 0; - }, - 'zh-TW': function zhTW(str) { - var ALPHABET_CODES = { - A: 10, - B: 11, - C: 12, - D: 13, - E: 14, - F: 15, - G: 16, - H: 17, - I: 34, - J: 18, - K: 19, - L: 20, - M: 21, - N: 22, - O: 35, - P: 23, - Q: 24, - R: 25, - S: 26, - T: 27, - U: 28, - V: 29, - W: 32, - X: 30, - Y: 31, - Z: 33 - }; - var sanitized = str.trim().toUpperCase(); - if (!/^[A-Z][0-9]{9}$/.test(sanitized)) return false; - return Array.from(sanitized).reduce(function (sum, number, index) { - if (index === 0) { - var code = ALPHABET_CODES[number]; - return code % 10 * 9 + Math.floor(code / 10); - } - - if (index === 9) { - return (10 - sum % 10 - Number(number)) % 10 === 0; - } - - return sum + Number(number) * (9 - index); - }, 0); - } -}; - -function isIdentityCard(str, locale) { - (0, _assertString.default)(str); - - if (locale in validators) { - return validators[locale](str); - } else if (locale === 'any') { - for (var key in validators) { - // https://github.com/gotwarlost/istanbul/blob/master/ignoring-code-for-coverage.md#ignoring-code-for-coverage-purposes - // istanbul ignore else - if (validators.hasOwnProperty(key)) { - var validator = validators[key]; - - if (validator(str)) { - return true; - } - } - } - - return false; - } - - throw new Error("Invalid locale '".concat(locale, "'")); -} - -module.exports = exports.default; -module.exports.default = exports.default; \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isIn.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isIn.js deleted file mode 100644 index 62c5a4d..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isIn.js +++ /dev/null @@ -1,42 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = isIn; - -var _assertString = _interopRequireDefault(require("./util/assertString")); - -var _toString = _interopRequireDefault(require("./util/toString")); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } - -function isIn(str, options) { - (0, _assertString.default)(str); - var i; - - if (Object.prototype.toString.call(options) === '[object Array]') { - var array = []; - - for (i in options) { - // https://github.com/gotwarlost/istanbul/blob/master/ignoring-code-for-coverage.md#ignoring-code-for-coverage-purposes - // istanbul ignore else - if ({}.hasOwnProperty.call(options, i)) { - array[i] = (0, _toString.default)(options[i]); - } - } - - return array.indexOf(str) >= 0; - } else if (_typeof(options) === 'object') { - return options.hasOwnProperty(str); - } else if (options && typeof options.indexOf === 'function') { - return options.indexOf(str) >= 0; - } - - return false; -} - -module.exports = exports.default; -module.exports.default = exports.default; \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isInt.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isInt.js deleted file mode 100644 index 40f776c..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isInt.js +++ /dev/null @@ -1,30 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = isInt; - -var _assertString = _interopRequireDefault(require("./util/assertString")); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -var int = /^(?:[-+]?(?:0|[1-9][0-9]*))$/; -var intLeadingZeroes = /^[-+]?[0-9]+$/; - -function isInt(str, options) { - (0, _assertString.default)(str); - options = options || {}; // Get the regex to use for testing, based on whether - // leading zeroes are allowed or not. - - var regex = options.hasOwnProperty('allow_leading_zeroes') && !options.allow_leading_zeroes ? int : intLeadingZeroes; // Check min/max/lt/gt - - var minCheckPassed = !options.hasOwnProperty('min') || str >= options.min; - var maxCheckPassed = !options.hasOwnProperty('max') || str <= options.max; - var ltCheckPassed = !options.hasOwnProperty('lt') || str < options.lt; - var gtCheckPassed = !options.hasOwnProperty('gt') || str > options.gt; - return regex.test(str) && minCheckPassed && maxCheckPassed && ltCheckPassed && gtCheckPassed; -} - -module.exports = exports.default; -module.exports.default = exports.default; \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isJSON.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isJSON.js deleted file mode 100644 index df37913..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isJSON.js +++ /dev/null @@ -1,28 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = isJSON; - -var _assertString = _interopRequireDefault(require("./util/assertString")); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } - -function isJSON(str) { - (0, _assertString.default)(str); - - try { - var obj = JSON.parse(str); - return !!obj && _typeof(obj) === 'object'; - } catch (e) { - /* ignore */ - } - - return false; -} - -module.exports = exports.default; -module.exports.default = exports.default; \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isJWT.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isJWT.js deleted file mode 100644 index 9dfb7cf..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isJWT.js +++ /dev/null @@ -1,20 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = isJWT; - -var _assertString = _interopRequireDefault(require("./util/assertString")); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -var jwt = /^([A-Za-z0-9\-_~+\/]+[=]{0,2})\.([A-Za-z0-9\-_~+\/]+[=]{0,2})(?:\.([A-Za-z0-9\-_~+\/]+[=]{0,2}))?$/; - -function isJWT(str) { - (0, _assertString.default)(str); - return jwt.test(str); -} - -module.exports = exports.default; -module.exports.default = exports.default; \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isLatLong.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isLatLong.js deleted file mode 100644 index 01ac576..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isLatLong.js +++ /dev/null @@ -1,24 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = _default; - -var _assertString = _interopRequireDefault(require("./util/assertString")); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -var lat = /^\(?[+-]?(90(\.0+)?|[1-8]?\d(\.\d+)?)$/; -var long = /^\s?[+-]?(180(\.0+)?|1[0-7]\d(\.\d+)?|\d{1,2}(\.\d+)?)\)?$/; - -function _default(str) { - (0, _assertString.default)(str); - if (!str.includes(',')) return false; - var pair = str.split(','); - if (pair[0].startsWith('(') && !pair[1].endsWith(')') || pair[1].endsWith(')') && !pair[0].startsWith('(')) return false; - return lat.test(pair[0]) && long.test(pair[1]); -} - -module.exports = exports.default; -module.exports.default = exports.default; \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isLength.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isLength.js deleted file mode 100644 index 39b7597..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isLength.js +++ /dev/null @@ -1,35 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = isLength; - -var _assertString = _interopRequireDefault(require("./util/assertString")); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } - -/* eslint-disable prefer-rest-params */ -function isLength(str, options) { - (0, _assertString.default)(str); - var min; - var max; - - if (_typeof(options) === 'object') { - min = options.min || 0; - max = options.max; - } else { - // backwards compatibility: isLength(str, min [, max]) - min = arguments[1] || 0; - max = arguments[2]; - } - - var surrogatePairs = str.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g) || []; - var len = str.length - surrogatePairs.length; - return len >= min && (typeof max === 'undefined' || len <= max); -} - -module.exports = exports.default; -module.exports.default = exports.default; \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isLocale.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isLocale.js deleted file mode 100644 index 8ed8ecd..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isLocale.js +++ /dev/null @@ -1,25 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = isLocale; - -var _assertString = _interopRequireDefault(require("./util/assertString")); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -var localeReg = /^[A-z]{2,4}([_-]([A-z]{4}|[\d]{3}))?([_-]([A-z]{2}|[\d]{3}))?$/; - -function isLocale(str) { - (0, _assertString.default)(str); - - if (str === 'en_US_POSIX' || str === 'ca_ES_VALENCIA') { - return true; - } - - return localeReg.test(str); -} - -module.exports = exports.default; -module.exports.default = exports.default; \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isLowercase.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isLowercase.js deleted file mode 100644 index 7f412d9..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isLowercase.js +++ /dev/null @@ -1,18 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = isLowercase; - -var _assertString = _interopRequireDefault(require("./util/assertString")); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function isLowercase(str) { - (0, _assertString.default)(str); - return str === str.toLowerCase(); -} - -module.exports = exports.default; -module.exports.default = exports.default; \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isMACAddress.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isMACAddress.js deleted file mode 100644 index bc2c9de..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isMACAddress.js +++ /dev/null @@ -1,29 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = isMACAddress; - -var _assertString = _interopRequireDefault(require("./util/assertString")); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -var macAddress = /^([0-9a-fA-F][0-9a-fA-F]:){5}([0-9a-fA-F][0-9a-fA-F])$/; -var macAddressNoColons = /^([0-9a-fA-F]){12}$/; -var macAddressWithHyphen = /^([0-9a-fA-F][0-9a-fA-F]-){5}([0-9a-fA-F][0-9a-fA-F])$/; -var macAddressWithSpaces = /^([0-9a-fA-F][0-9a-fA-F]\s){5}([0-9a-fA-F][0-9a-fA-F])$/; -var macAddressWithDots = /^([0-9a-fA-F]{4}).([0-9a-fA-F]{4}).([0-9a-fA-F]{4})$/; - -function isMACAddress(str, options) { - (0, _assertString.default)(str); - - if (options && options.no_colons) { - return macAddressNoColons.test(str); - } - - return macAddress.test(str) || macAddressWithHyphen.test(str) || macAddressWithSpaces.test(str) || macAddressWithDots.test(str); -} - -module.exports = exports.default; -module.exports.default = exports.default; \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isMD5.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isMD5.js deleted file mode 100644 index 57f2b0e..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isMD5.js +++ /dev/null @@ -1,20 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = isMD5; - -var _assertString = _interopRequireDefault(require("./util/assertString")); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -var md5 = /^[a-f0-9]{32}$/; - -function isMD5(str) { - (0, _assertString.default)(str); - return md5.test(str); -} - -module.exports = exports.default; -module.exports.default = exports.default; \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isMagnetURI.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isMagnetURI.js deleted file mode 100644 index 79aab33..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isMagnetURI.js +++ /dev/null @@ -1,20 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = isMagnetURI; - -var _assertString = _interopRequireDefault(require("./util/assertString")); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -var magnetURI = /^magnet:\?xt=urn:[a-z0-9]+:[a-z0-9]{32,40}&dn=.+&tr=.+$/i; - -function isMagnetURI(url) { - (0, _assertString.default)(url); - return magnetURI.test(url.trim()); -} - -module.exports = exports.default; -module.exports.default = exports.default; \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isMimeType.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isMimeType.js deleted file mode 100644 index 917aef2..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isMimeType.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = isMimeType; - -var _assertString = _interopRequireDefault(require("./util/assertString")); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -/* - Checks if the provided string matches to a correct Media type format (MIME type) - - This function only checks is the string format follows the - etablished rules by the according RFC specifications. - This function supports 'charset' in textual media types - (https://tools.ietf.org/html/rfc6657). - - This function does not check against all the media types listed - by the IANA (https://www.iana.org/assignments/media-types/media-types.xhtml) - because of lightness purposes : it would require to include - all these MIME types in this librairy, which would weigh it - significantly. This kind of effort maybe is not worth for the use that - this function has in this entire librairy. - - More informations in the RFC specifications : - - https://tools.ietf.org/html/rfc2045 - - https://tools.ietf.org/html/rfc2046 - - https://tools.ietf.org/html/rfc7231#section-3.1.1.1 - - https://tools.ietf.org/html/rfc7231#section-3.1.1.5 -*/ -// Match simple MIME types -// NB : -// Subtype length must not exceed 100 characters. -// This rule does not comply to the RFC specs (what is the max length ?). -var mimeTypeSimple = /^(application|audio|font|image|message|model|multipart|text|video)\/[a-zA-Z0-9\.\-\+]{1,100}$/i; // eslint-disable-line max-len -// Handle "charset" in "text/*" - -var mimeTypeText = /^text\/[a-zA-Z0-9\.\-\+]{1,100};\s?charset=("[a-zA-Z0-9\.\-\+\s]{0,70}"|[a-zA-Z0-9\.\-\+]{0,70})(\s?\([a-zA-Z0-9\.\-\+\s]{1,20}\))?$/i; // eslint-disable-line max-len -// Handle "boundary" in "multipart/*" - -var mimeTypeMultipart = /^multipart\/[a-zA-Z0-9\.\-\+]{1,100}(;\s?(boundary|charset)=("[a-zA-Z0-9\.\-\+\s]{0,70}"|[a-zA-Z0-9\.\-\+]{0,70})(\s?\([a-zA-Z0-9\.\-\+\s]{1,20}\))?){0,2}$/i; // eslint-disable-line max-len - -function isMimeType(str) { - (0, _assertString.default)(str); - return mimeTypeSimple.test(str) || mimeTypeText.test(str) || mimeTypeMultipart.test(str); -} - -module.exports = exports.default; -module.exports.default = exports.default; \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isMobilePhone.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isMobilePhone.js deleted file mode 100644 index c65c1e2..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isMobilePhone.js +++ /dev/null @@ -1,153 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = isMobilePhone; -exports.locales = void 0; - -var _assertString = _interopRequireDefault(require("./util/assertString")); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -/* eslint-disable max-len */ -var phones = { - 'am-AM': /^(\+?374|0)((10|[9|7][0-9])\d{6}$|[2-4]\d{7}$)/, - 'ar-AE': /^((\+?971)|0)?5[024568]\d{7}$/, - 'ar-BH': /^(\+?973)?(3|6)\d{7}$/, - 'ar-DZ': /^(\+?213|0)(5|6|7)\d{8}$/, - 'ar-EG': /^((\+?20)|0)?1[0125]\d{8}$/, - 'ar-IQ': /^(\+?964|0)?7[0-9]\d{8}$/, - 'ar-JO': /^(\+?962|0)?7[789]\d{7}$/, - 'ar-KW': /^(\+?965)[569]\d{7}$/, - 'ar-SA': /^(!?(\+?966)|0)?5\d{8}$/, - 'ar-SY': /^(!?(\+?963)|0)?9\d{8}$/, - 'ar-TN': /^(\+?216)?[2459]\d{7}$/, - 'be-BY': /^(\+?375)?(24|25|29|33|44)\d{7}$/, - 'bg-BG': /^(\+?359|0)?8[789]\d{7}$/, - 'bn-BD': /^(\+?880|0)1[13456789][0-9]{8}$/, - 'cs-CZ': /^(\+?420)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$/, - 'da-DK': /^(\+?45)?\s?\d{2}\s?\d{2}\s?\d{2}\s?\d{2}$/, - 'de-DE': /^(\+49)?0?1(5[0-25-9]\d|6([23]|0\d?)|7([0-57-9]|6\d))\d{7}$/, - 'de-AT': /^(\+43|0)\d{1,4}\d{3,12}$/, - 'el-GR': /^(\+?30|0)?(69\d{8})$/, - 'en-AU': /^(\+?61|0)4\d{8}$/, - 'en-GB': /^(\+?44|0)7\d{9}$/, - 'en-GG': /^(\+?44|0)1481\d{6}$/, - 'en-GH': /^(\+233|0)(20|50|24|54|27|57|26|56|23|28)\d{7}$/, - 'en-HK': /^(\+?852[-\s]?)?[456789]\d{3}[-\s]?\d{4}$/, - 'en-MO': /^(\+?853[-\s]?)?[6]\d{3}[-\s]?\d{4}$/, - 'en-IE': /^(\+?353|0)8[356789]\d{7}$/, - 'en-IN': /^(\+?91|0)?[6789]\d{9}$/, - 'en-KE': /^(\+?254|0)(7|1)\d{8}$/, - 'en-MT': /^(\+?356|0)?(99|79|77|21|27|22|25)[0-9]{6}$/, - 'en-MU': /^(\+?230|0)?\d{8}$/, - 'en-NG': /^(\+?234|0)?[789]\d{9}$/, - 'en-NZ': /^(\+?64|0)[28]\d{7,9}$/, - 'en-PK': /^((\+92)|(0092))-{0,1}\d{3}-{0,1}\d{7}$|^\d{11}$|^\d{4}-\d{7}$/, - 'en-RW': /^(\+?250|0)?[7]\d{8}$/, - 'en-SG': /^(\+65)?[89]\d{7}$/, - 'en-TZ': /^(\+?255|0)?[67]\d{8}$/, - 'en-UG': /^(\+?256|0)?[7]\d{8}$/, - 'en-US': /^((\+1|1)?( |-)?)?(\([2-9][0-9]{2}\)|[2-9][0-9]{2})( |-)?([2-9][0-9]{2}( |-)?[0-9]{4})$/, - 'en-ZA': /^(\+?27|0)\d{9}$/, - 'en-ZM': /^(\+?26)?09[567]\d{7}$/, - 'es-CL': /^(\+?56|0)[2-9]\d{1}\d{7}$/, - 'es-EC': /^(\+?593|0)([2-7]|9[2-9])\d{7}$/, - 'es-ES': /^(\+?34)?(6\d{1}|7[1234])\d{7}$/, - 'es-MX': /^(\+?52)?(1|01)?\d{10,11}$/, - 'es-PA': /^(\+?507)\d{7,8}$/, - 'es-PY': /^(\+?595|0)9[9876]\d{7}$/, - 'es-UY': /^(\+598|0)9[1-9][\d]{6}$/, - 'et-EE': /^(\+?372)?\s?(5|8[1-4])\s?([0-9]\s?){6,7}$/, - 'fa-IR': /^(\+?98[\-\s]?|0)9[0-39]\d[\-\s]?\d{3}[\-\s]?\d{4}$/, - 'fi-FI': /^(\+?358|0)\s?(4(0|1|2|4|5|6)?|50)\s?(\d\s?){4,8}\d$/, - 'fj-FJ': /^(\+?679)?\s?\d{3}\s?\d{4}$/, - 'fo-FO': /^(\+?298)?\s?\d{2}\s?\d{2}\s?\d{2}$/, - 'fr-FR': /^(\+?33|0)[67]\d{8}$/, - 'fr-GF': /^(\+?594|0|00594)[67]\d{8}$/, - 'fr-GP': /^(\+?590|0|00590)[67]\d{8}$/, - 'fr-MQ': /^(\+?596|0|00596)[67]\d{8}$/, - 'fr-RE': /^(\+?262|0|00262)[67]\d{8}$/, - 'he-IL': /^(\+972|0)([23489]|5[012345689]|77)[1-9]\d{6}$/, - 'hu-HU': /^(\+?36)(20|30|70)\d{7}$/, - 'id-ID': /^(\+?62|0)8(1[123456789]|2[1238]|3[1238]|5[12356789]|7[78]|9[56789]|8[123456789])([\s?|\d]{5,11})$/, - 'it-IT': /^(\+?39)?\s?3\d{2} ?\d{6,7}$/, - 'ja-JP': /^(\+81[ \-]?(\(0\))?|0)[6789]0[ \-]?\d{4}[ \-]?\d{4}$/, - 'kk-KZ': /^(\+?7|8)?7\d{9}$/, - 'kl-GL': /^(\+?299)?\s?\d{2}\s?\d{2}\s?\d{2}$/, - 'ko-KR': /^((\+?82)[ \-]?)?0?1([0|1|6|7|8|9]{1})[ \-]?\d{3,4}[ \-]?\d{4}$/, - 'lt-LT': /^(\+370|8)\d{8}$/, - 'ms-MY': /^(\+?6?01){1}(([0145]{1}(\-|\s)?\d{7,8})|([236789]{1}(\s|\-)?\d{7}))$/, - 'nb-NO': /^(\+?47)?[49]\d{7}$/, - 'ne-NP': /^(\+?977)?9[78]\d{8}$/, - 'nl-BE': /^(\+?32|0)4?\d{8}$/, - 'nl-NL': /^(\+?31|0)6?\d{8}$/, - 'nn-NO': /^(\+?47)?[49]\d{7}$/, - 'pl-PL': /^(\+?48)? ?[5-8]\d ?\d{3} ?\d{2} ?\d{2}$/, - 'pt-BR': /(?=^(\+?5{2}\-?|0)[1-9]{2}\-?\d{4}\-?\d{4}$)(^(\+?5{2}\-?|0)[1-9]{2}\-?[6-9]{1}\d{3}\-?\d{4}$)|(^(\+?5{2}\-?|0)[1-9]{2}\-?9[6-9]{1}\d{3}\-?\d{4}$)/, - 'pt-PT': /^(\+?351)?9[1236]\d{7}$/, - 'ro-RO': /^(\+?4?0)\s?7\d{2}(\/|\s|\.|\-)?\d{3}(\s|\.|\-)?\d{3}$/, - 'ru-RU': /^(\+?7|8)?9\d{9}$/, - 'sl-SI': /^(\+386\s?|0)(\d{1}\s?\d{3}\s?\d{2}\s?\d{2}|\d{2}\s?\d{3}\s?\d{3})$/, - 'sk-SK': /^(\+?421)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$/, - 'sr-RS': /^(\+3816|06)[- \d]{5,9}$/, - 'sv-SE': /^(\+?46|0)[\s\-]?7[\s\-]?[02369]([\s\-]?\d){7}$/, - 'th-TH': /^(\+66|66|0)\d{9}$/, - 'tr-TR': /^(\+?90|0)?5\d{9}$/, - 'uk-UA': /^(\+?38|8)?0\d{9}$/, - 'vi-VN': /^(\+?84|0)((3([2-9]))|(5([2689]))|(7([0|6-9]))|(8([1-6|89]))|(9([0-9])))([0-9]{7})$/, - 'zh-CN': /^((\+|00)86)?1([358][0-9]|4[579]|6[67]|7[01235678]|9[189])[0-9]{8}$/, - 'zh-TW': /^(\+?886\-?|0)?9\d{8}$/ -}; -/* eslint-enable max-len */ -// aliases - -phones['en-CA'] = phones['en-US']; -phones['fr-BE'] = phones['nl-BE']; -phones['zh-HK'] = phones['en-HK']; -phones['zh-MO'] = phones['en-MO']; - -function isMobilePhone(str, locale, options) { - (0, _assertString.default)(str); - - if (options && options.strictMode && !str.startsWith('+')) { - return false; - } - - if (Array.isArray(locale)) { - return locale.some(function (key) { - // https://github.com/gotwarlost/istanbul/blob/master/ignoring-code-for-coverage.md#ignoring-code-for-coverage-purposes - // istanbul ignore else - if (phones.hasOwnProperty(key)) { - var phone = phones[key]; - - if (phone.test(str)) { - return true; - } - } - - return false; - }); - } else if (locale in phones) { - return phones[locale].test(str); // alias falsey locale as 'any' - } else if (!locale || locale === 'any') { - for (var key in phones) { - // istanbul ignore else - if (phones.hasOwnProperty(key)) { - var phone = phones[key]; - - if (phone.test(str)) { - return true; - } - } - } - - return false; - } - - throw new Error("Invalid locale '".concat(locale, "'")); -} - -var locales = Object.keys(phones); -exports.locales = locales; \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isMongoId.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isMongoId.js deleted file mode 100644 index 2e9884d..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isMongoId.js +++ /dev/null @@ -1,20 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = isMongoId; - -var _assertString = _interopRequireDefault(require("./util/assertString")); - -var _isHexadecimal = _interopRequireDefault(require("./isHexadecimal")); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function isMongoId(str) { - (0, _assertString.default)(str); - return (0, _isHexadecimal.default)(str) && str.length === 24; -} - -module.exports = exports.default; -module.exports.default = exports.default; \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isMultibyte.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isMultibyte.js deleted file mode 100644 index 3b4477e..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isMultibyte.js +++ /dev/null @@ -1,22 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = isMultibyte; - -var _assertString = _interopRequireDefault(require("./util/assertString")); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -/* eslint-disable no-control-regex */ -var multibyte = /[^\x00-\x7F]/; -/* eslint-enable no-control-regex */ - -function isMultibyte(str) { - (0, _assertString.default)(str); - return multibyte.test(str); -} - -module.exports = exports.default; -module.exports.default = exports.default; \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isNumeric.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isNumeric.js deleted file mode 100644 index 8c1bc44..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isNumeric.js +++ /dev/null @@ -1,26 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = isNumeric; - -var _assertString = _interopRequireDefault(require("./util/assertString")); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -var numeric = /^[+-]?([0-9]*[.])?[0-9]+$/; -var numericNoSymbols = /^[0-9]+$/; - -function isNumeric(str, options) { - (0, _assertString.default)(str); - - if (options && options.no_symbols) { - return numericNoSymbols.test(str); - } - - return numeric.test(str); -} - -module.exports = exports.default; -module.exports.default = exports.default; \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isOctal.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isOctal.js deleted file mode 100644 index 8d3a1c7..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isOctal.js +++ /dev/null @@ -1,20 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = isOctal; - -var _assertString = _interopRequireDefault(require("./util/assertString")); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -var octal = /^(0o)?[0-7]+$/i; - -function isOctal(str) { - (0, _assertString.default)(str); - return octal.test(str); -} - -module.exports = exports.default; -module.exports.default = exports.default; \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isPassportNumber.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isPassportNumber.js deleted file mode 100644 index dfe6030..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isPassportNumber.js +++ /dev/null @@ -1,114 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = isPassportNumber; - -/** - * Reference: - * https://en.wikipedia.org/ -- Wikipedia - * https://docs.microsoft.com/en-us/microsoft-365/compliance/eu-passport-number -- EU Passport Number - * https://countrycode.org/ -- Country Codes - */ -var passportRegexByCountryCode = { - AM: /^[A-Z]{2}\d{7}$/, - // ARMENIA - AR: /^[A-Z]{3}\d{6}$/, - // ARGENTINA - AT: /^[A-Z]\d{7}$/, - // AUSTRIA - AU: /^[A-Z]\d{7}$/, - // AUSTRALIA - BE: /^[A-Z]{2}\d{6}$/, - // BELGIUM - BG: /^\d{9}$/, - // BULGARIA - CA: /^[A-Z]{2}\d{6}$/, - // CANADA - CH: /^[A-Z]\d{7}$/, - // SWITZERLAND - CN: /^[GE]\d{8}$/, - // CHINA [G=Ordinary, E=Electronic] followed by 8-digits - CY: /^[A-Z](\d{6}|\d{8})$/, - // CYPRUS - CZ: /^\d{8}$/, - // CZECH REPUBLIC - DE: /^[CFGHJKLMNPRTVWXYZ0-9]{9}$/, - // GERMANY - DK: /^\d{9}$/, - // DENMARK - DZ: /^\d{9}$/, - // ALGERIA - EE: /^([A-Z]\d{7}|[A-Z]{2}\d{7})$/, - // ESTONIA (K followed by 7-digits), e-passports have 2 UPPERCASE followed by 7 digits - ES: /^[A-Z0-9]{2}([A-Z0-9]?)\d{6}$/, - // SPAIN - FI: /^[A-Z]{2}\d{7}$/, - // FINLAND - FR: /^\d{2}[A-Z]{2}\d{5}$/, - // FRANCE - GB: /^\d{9}$/, - // UNITED KINGDOM - GR: /^[A-Z]{2}\d{7}$/, - // GREECE - HR: /^\d{9}$/, - // CROATIA - HU: /^[A-Z]{2}(\d{6}|\d{7})$/, - // HUNGARY - IE: /^[A-Z0-9]{2}\d{7}$/, - // IRELAND - IS: /^(A)\d{7}$/, - // ICELAND - IT: /^[A-Z0-9]{2}\d{7}$/, - // ITALY - JP: /^[A-Z]{2}\d{7}$/, - // JAPAN - KR: /^[MS]\d{8}$/, - // SOUTH KOREA, REPUBLIC OF KOREA, [S=PS Passports, M=PM Passports] - LT: /^[A-Z0-9]{8}$/, - // LITHUANIA - LU: /^[A-Z0-9]{8}$/, - // LUXEMBURG - LV: /^[A-Z0-9]{2}\d{7}$/, - // LATVIA - MT: /^\d{7}$/, - // MALTA - NL: /^[A-Z]{2}[A-Z0-9]{6}\d$/, - // NETHERLANDS - PO: /^[A-Z]{2}\d{7}$/, - // POLAND - PT: /^[A-Z]\d{6}$/, - // PORTUGAL - RO: /^\d{8,9}$/, - // ROMANIA - SE: /^\d{8}$/, - // SWEDEN - SL: /^(P)[A-Z]\d{7}$/, - // SLOVANIA - SK: /^[0-9A-Z]\d{7}$/, - // SLOVAKIA - TR: /^[A-Z]\d{8}$/, - // TURKEY - UA: /^[A-Z]{2}\d{6}$/, - // UKRAINE - US: /^\d{9}$/ // UNITED STATES - -}; -/** - * Check if str is a valid passport number - * relative to provided ISO Country Code. - * - * @param {string} str - * @param {string} countryCode - * @return {boolean} - */ - -function isPassportNumber(str, countryCode) { - /** Remove All Whitespaces, Convert to UPPERCASE */ - var normalizedStr = str.replace(/\s/g, '').toUpperCase(); - return countryCode.toUpperCase() in passportRegexByCountryCode && passportRegexByCountryCode[countryCode].test(normalizedStr); -} - -module.exports = exports.default; -module.exports.default = exports.default; \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isPort.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isPort.js deleted file mode 100644 index 9274a4c..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isPort.js +++ /dev/null @@ -1,20 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = isPort; - -var _isInt = _interopRequireDefault(require("./isInt")); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function isPort(str) { - return (0, _isInt.default)(str, { - min: 0, - max: 65535 - }); -} - -module.exports = exports.default; -module.exports.default = exports.default; \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isPostalCode.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isPostalCode.js deleted file mode 100644 index 7dab73f..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isPostalCode.js +++ /dev/null @@ -1,97 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = _default; -exports.locales = void 0; - -var _assertString = _interopRequireDefault(require("./util/assertString")); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -// common patterns -var threeDigit = /^\d{3}$/; -var fourDigit = /^\d{4}$/; -var fiveDigit = /^\d{5}$/; -var sixDigit = /^\d{6}$/; -var patterns = { - AD: /^AD\d{3}$/, - AT: fourDigit, - AU: fourDigit, - BE: fourDigit, - BG: fourDigit, - BR: /^\d{5}-\d{3}$/, - CA: /^[ABCEGHJKLMNPRSTVXY]\d[ABCEGHJ-NPRSTV-Z][\s\-]?\d[ABCEGHJ-NPRSTV-Z]\d$/i, - CH: fourDigit, - CZ: /^\d{3}\s?\d{2}$/, - DE: fiveDigit, - DK: fourDigit, - DZ: fiveDigit, - EE: fiveDigit, - ES: fiveDigit, - FI: fiveDigit, - FR: /^\d{2}\s?\d{3}$/, - GB: /^(gir\s?0aa|[a-z]{1,2}\d[\da-z]?\s?(\d[a-z]{2})?)$/i, - GR: /^\d{3}\s?\d{2}$/, - HR: /^([1-5]\d{4}$)/, - HU: fourDigit, - ID: fiveDigit, - IE: /^(?!.*(?:o))[A-z]\d[\dw]\s\w{4}$/i, - IL: fiveDigit, - IN: /^((?!10|29|35|54|55|65|66|86|87|88|89)[1-9][0-9]{5})$/, - IS: threeDigit, - IT: fiveDigit, - JP: /^\d{3}\-\d{4}$/, - KE: fiveDigit, - LI: /^(948[5-9]|949[0-7])$/, - LT: /^LT\-\d{5}$/, - LU: fourDigit, - LV: /^LV\-\d{4}$/, - MX: fiveDigit, - MT: /^[A-Za-z]{3}\s{0,1}\d{4}$/, - NL: /^\d{4}\s?[a-z]{2}$/i, - NO: fourDigit, - NZ: fourDigit, - PL: /^\d{2}\-\d{3}$/, - PR: /^00[679]\d{2}([ -]\d{4})?$/, - PT: /^\d{4}\-\d{3}?$/, - RO: sixDigit, - RU: sixDigit, - SA: fiveDigit, - SE: /^[1-9]\d{2}\s?\d{2}$/, - SI: fourDigit, - SK: /^\d{3}\s?\d{2}$/, - TN: fourDigit, - TW: /^\d{3}(\d{2})?$/, - UA: fiveDigit, - US: /^\d{5}(-\d{4})?$/, - ZA: fourDigit, - ZM: fiveDigit -}; -var locales = Object.keys(patterns); -exports.locales = locales; - -function _default(str, locale) { - (0, _assertString.default)(str); - - if (locale in patterns) { - return patterns[locale].test(str); - } else if (locale === 'any') { - for (var key in patterns) { - // https://github.com/gotwarlost/istanbul/blob/master/ignoring-code-for-coverage.md#ignoring-code-for-coverage-purposes - // istanbul ignore else - if (patterns.hasOwnProperty(key)) { - var pattern = patterns[key]; - - if (pattern.test(str)) { - return true; - } - } - } - - return false; - } - - throw new Error("Invalid locale '".concat(locale, "'")); -} \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isRFC3339.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isRFC3339.js deleted file mode 100644 index 61e4582..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isRFC3339.js +++ /dev/null @@ -1,33 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = isRFC3339; - -var _assertString = _interopRequireDefault(require("./util/assertString")); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -/* Based on https://tools.ietf.org/html/rfc3339#section-5.6 */ -var dateFullYear = /[0-9]{4}/; -var dateMonth = /(0[1-9]|1[0-2])/; -var dateMDay = /([12]\d|0[1-9]|3[01])/; -var timeHour = /([01][0-9]|2[0-3])/; -var timeMinute = /[0-5][0-9]/; -var timeSecond = /([0-5][0-9]|60)/; -var timeSecFrac = /(\.[0-9]+)?/; -var timeNumOffset = new RegExp("[-+]".concat(timeHour.source, ":").concat(timeMinute.source)); -var timeOffset = new RegExp("([zZ]|".concat(timeNumOffset.source, ")")); -var partialTime = new RegExp("".concat(timeHour.source, ":").concat(timeMinute.source, ":").concat(timeSecond.source).concat(timeSecFrac.source)); -var fullDate = new RegExp("".concat(dateFullYear.source, "-").concat(dateMonth.source, "-").concat(dateMDay.source)); -var fullTime = new RegExp("".concat(partialTime.source).concat(timeOffset.source)); -var rfc3339 = new RegExp("".concat(fullDate.source, "[ tT]").concat(fullTime.source)); - -function isRFC3339(str) { - (0, _assertString.default)(str); - return rfc3339.test(str); -} - -module.exports = exports.default; -module.exports.default = exports.default; \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isRgbColor.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isRgbColor.js deleted file mode 100644 index 9622291..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isRgbColor.js +++ /dev/null @@ -1,29 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = isRgbColor; - -var _assertString = _interopRequireDefault(require("./util/assertString")); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -var rgbColor = /^rgb\((([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]),){2}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\)$/; -var rgbaColor = /^rgba\((([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]),){3}(0?\.\d|1(\.0)?|0(\.0)?)\)$/; -var rgbColorPercent = /^rgb\((([0-9]%|[1-9][0-9]%|100%),){2}([0-9]%|[1-9][0-9]%|100%)\)/; -var rgbaColorPercent = /^rgba\((([0-9]%|[1-9][0-9]%|100%),){3}(0?\.\d|1(\.0)?|0(\.0)?)\)/; - -function isRgbColor(str) { - var includePercentValues = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true; - (0, _assertString.default)(str); - - if (!includePercentValues) { - return rgbColor.test(str) || rgbaColor.test(str); - } - - return rgbColor.test(str) || rgbaColor.test(str) || rgbColorPercent.test(str) || rgbaColorPercent.test(str); -} - -module.exports = exports.default; -module.exports.default = exports.default; \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isSemVer.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isSemVer.js deleted file mode 100644 index 23cb2a7..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isSemVer.js +++ /dev/null @@ -1,28 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = isSemVer; - -var _assertString = _interopRequireDefault(require("./util/assertString")); - -var _multilineRegex = _interopRequireDefault(require("./util/multilineRegex")); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -/** - * Regular Expression to match - * semantic versioning (SemVer) - * built from multi-line, multi-parts regexp - * Reference: https://semver.org/ - */ -var semanticVersioningRegex = (0, _multilineRegex.default)(['^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)', '(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))', '?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$']); - -function isSemVer(str) { - (0, _assertString.default)(str); - return semanticVersioningRegex.test(str); -} - -module.exports = exports.default; -module.exports.default = exports.default; \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isSlug.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isSlug.js deleted file mode 100644 index cf1a33b..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isSlug.js +++ /dev/null @@ -1,20 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = isSlug; - -var _assertString = _interopRequireDefault(require("./util/assertString")); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -var charsetRegex = /^[^-_](?!.*?[-_]{2,})([a-z0-9\\-]{1,}).*[^-_]$/; - -function isSlug(str) { - (0, _assertString.default)(str); - return charsetRegex.test(str); -} - -module.exports = exports.default; -module.exports.default = exports.default; \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isSurrogatePair.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isSurrogatePair.js deleted file mode 100644 index ee5678b..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isSurrogatePair.js +++ /dev/null @@ -1,20 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = isSurrogatePair; - -var _assertString = _interopRequireDefault(require("./util/assertString")); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -var surrogatePair = /[\uD800-\uDBFF][\uDC00-\uDFFF]/; - -function isSurrogatePair(str) { - (0, _assertString.default)(str); - return surrogatePair.test(str); -} - -module.exports = exports.default; -module.exports.default = exports.default; \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isURL.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isURL.js deleted file mode 100644 index 283270c..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isURL.js +++ /dev/null @@ -1,162 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = isURL; - -var _assertString = _interopRequireDefault(require("./util/assertString")); - -var _isFQDN = _interopRequireDefault(require("./isFQDN")); - -var _isIP = _interopRequireDefault(require("./isIP")); - -var _merge = _interopRequireDefault(require("./util/merge")); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -/* -options for isURL method - -require_protocol - if set as true isURL will return false if protocol is not present in the URL -require_valid_protocol - isURL will check if the URL's protocol is present in the protocols option -protocols - valid protocols can be modified with this option -require_host - if set as false isURL will not check if host is present in the URL -allow_protocol_relative_urls - if set as true protocol relative URLs will be allowed - -*/ -var default_url_options = { - protocols: ['http', 'https', 'ftp'], - require_tld: true, - require_protocol: false, - require_host: true, - require_valid_protocol: true, - allow_underscores: false, - allow_trailing_dot: false, - allow_protocol_relative_urls: false -}; -var wrapped_ipv6 = /^\[([^\]]+)\](?::([0-9]+))?$/; - -function isRegExp(obj) { - return Object.prototype.toString.call(obj) === '[object RegExp]'; -} - -function checkHost(host, matches) { - for (var i = 0; i < matches.length; i++) { - var match = matches[i]; - - if (host === match || isRegExp(match) && match.test(host)) { - return true; - } - } - - return false; -} - -function isURL(url, options) { - (0, _assertString.default)(url); - - if (!url || url.length >= 2083 || /[\s<>]/.test(url)) { - return false; - } - - if (url.indexOf('mailto:') === 0) { - return false; - } - - options = (0, _merge.default)(options, default_url_options); - var protocol, auth, host, hostname, port, port_str, split, ipv6; - split = url.split('#'); - url = split.shift(); - split = url.split('?'); - url = split.shift(); - split = url.split('://'); - - if (split.length > 1) { - protocol = split.shift().toLowerCase(); - - if (options.require_valid_protocol && options.protocols.indexOf(protocol) === -1) { - return false; - } - } else if (options.require_protocol) { - return false; - } else if (url.substr(0, 2) === '//') { - if (!options.allow_protocol_relative_urls) { - return false; - } - - split[0] = url.substr(2); - } - - url = split.join('://'); - - if (url === '') { - return false; - } - - split = url.split('/'); - url = split.shift(); - - if (url === '' && !options.require_host) { - return true; - } - - split = url.split('@'); - - if (split.length > 1) { - if (options.disallow_auth) { - return false; - } - - auth = split.shift(); - - if (auth.indexOf(':') >= 0 && auth.split(':').length > 2) { - return false; - } - } - - hostname = split.join('@'); - port_str = null; - ipv6 = null; - var ipv6_match = hostname.match(wrapped_ipv6); - - if (ipv6_match) { - host = ''; - ipv6 = ipv6_match[1]; - port_str = ipv6_match[2] || null; - } else { - split = hostname.split(':'); - host = split.shift(); - - if (split.length) { - port_str = split.join(':'); - } - } - - if (port_str !== null) { - port = parseInt(port_str, 10); - - if (!/^[0-9]+$/.test(port_str) || port <= 0 || port > 65535) { - return false; - } - } - - if (!(0, _isIP.default)(host) && !(0, _isFQDN.default)(host, options) && (!ipv6 || !(0, _isIP.default)(ipv6, 6))) { - return false; - } - - host = host || ipv6; - - if (options.host_whitelist && !checkHost(host, options.host_whitelist)) { - return false; - } - - if (options.host_blacklist && checkHost(host, options.host_blacklist)) { - return false; - } - - return true; -} - -module.exports = exports.default; -module.exports.default = exports.default; \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isUUID.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isUUID.js deleted file mode 100644 index 08ec27e..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isUUID.js +++ /dev/null @@ -1,27 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = isUUID; - -var _assertString = _interopRequireDefault(require("./util/assertString")); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -var uuid = { - 3: /^[0-9A-F]{8}-[0-9A-F]{4}-3[0-9A-F]{3}-[0-9A-F]{4}-[0-9A-F]{12}$/i, - 4: /^[0-9A-F]{8}-[0-9A-F]{4}-4[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i, - 5: /^[0-9A-F]{8}-[0-9A-F]{4}-5[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i, - all: /^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i -}; - -function isUUID(str) { - var version = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'all'; - (0, _assertString.default)(str); - var pattern = uuid[version]; - return pattern && pattern.test(str); -} - -module.exports = exports.default; -module.exports.default = exports.default; \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isUppercase.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isUppercase.js deleted file mode 100644 index c1c02f9..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isUppercase.js +++ /dev/null @@ -1,18 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = isUppercase; - -var _assertString = _interopRequireDefault(require("./util/assertString")); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function isUppercase(str) { - (0, _assertString.default)(str); - return str === str.toUpperCase(); -} - -module.exports = exports.default; -module.exports.default = exports.default; \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isVariableWidth.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isVariableWidth.js deleted file mode 100644 index 6bf226e..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isVariableWidth.js +++ /dev/null @@ -1,22 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = isVariableWidth; - -var _assertString = _interopRequireDefault(require("./util/assertString")); - -var _isFullWidth = require("./isFullWidth"); - -var _isHalfWidth = require("./isHalfWidth"); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function isVariableWidth(str) { - (0, _assertString.default)(str); - return _isFullWidth.fullWidth.test(str) && _isHalfWidth.halfWidth.test(str); -} - -module.exports = exports.default; -module.exports.default = exports.default; \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isWhitelisted.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isWhitelisted.js deleted file mode 100644 index 5a80a1b..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/isWhitelisted.js +++ /dev/null @@ -1,25 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = isWhitelisted; - -var _assertString = _interopRequireDefault(require("./util/assertString")); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function isWhitelisted(str, chars) { - (0, _assertString.default)(str); - - for (var i = str.length - 1; i >= 0; i--) { - if (chars.indexOf(str[i]) === -1) { - return false; - } - } - - return true; -} - -module.exports = exports.default; -module.exports.default = exports.default; \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/ltrim.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/ltrim.js deleted file mode 100644 index fc39160..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/ltrim.js +++ /dev/null @@ -1,20 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = ltrim; - -var _assertString = _interopRequireDefault(require("./util/assertString")); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function ltrim(str, chars) { - (0, _assertString.default)(str); // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions#Escaping - - var pattern = chars ? new RegExp("^[".concat(chars.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'), "]+"), 'g') : /^\s+/g; - return str.replace(pattern, ''); -} - -module.exports = exports.default; -module.exports.default = exports.default; \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/matches.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/matches.js deleted file mode 100644 index ea01ac1..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/matches.js +++ /dev/null @@ -1,23 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = matches; - -var _assertString = _interopRequireDefault(require("./util/assertString")); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function matches(str, pattern, modifiers) { - (0, _assertString.default)(str); - - if (Object.prototype.toString.call(pattern) !== '[object RegExp]') { - pattern = new RegExp(pattern, modifiers); - } - - return pattern.test(str); -} - -module.exports = exports.default; -module.exports.default = exports.default; \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/normalizeEmail.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/normalizeEmail.js deleted file mode 100644 index dcab4b9..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/normalizeEmail.js +++ /dev/null @@ -1,151 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = normalizeEmail; - -var _merge = _interopRequireDefault(require("./util/merge")); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -var default_normalize_email_options = { - // The following options apply to all email addresses - // Lowercases the local part of the email address. - // Please note this may violate RFC 5321 as per http://stackoverflow.com/a/9808332/192024). - // The domain is always lowercased, as per RFC 1035 - all_lowercase: true, - // The following conversions are specific to GMail - // Lowercases the local part of the GMail address (known to be case-insensitive) - gmail_lowercase: true, - // Removes dots from the local part of the email address, as that's ignored by GMail - gmail_remove_dots: true, - // Removes the subaddress (e.g. "+foo") from the email address - gmail_remove_subaddress: true, - // Conversts the googlemail.com domain to gmail.com - gmail_convert_googlemaildotcom: true, - // The following conversions are specific to Outlook.com / Windows Live / Hotmail - // Lowercases the local part of the Outlook.com address (known to be case-insensitive) - outlookdotcom_lowercase: true, - // Removes the subaddress (e.g. "+foo") from the email address - outlookdotcom_remove_subaddress: true, - // The following conversions are specific to Yahoo - // Lowercases the local part of the Yahoo address (known to be case-insensitive) - yahoo_lowercase: true, - // Removes the subaddress (e.g. "-foo") from the email address - yahoo_remove_subaddress: true, - // The following conversions are specific to Yandex - // Lowercases the local part of the Yandex address (known to be case-insensitive) - yandex_lowercase: true, - // The following conversions are specific to iCloud - // Lowercases the local part of the iCloud address (known to be case-insensitive) - icloud_lowercase: true, - // Removes the subaddress (e.g. "+foo") from the email address - icloud_remove_subaddress: true -}; // List of domains used by iCloud - -var icloud_domains = ['icloud.com', 'me.com']; // List of domains used by Outlook.com and its predecessors -// This list is likely incomplete. -// Partial reference: -// https://blogs.office.com/2013/04/17/outlook-com-gets-two-step-verification-sign-in-by-alias-and-new-international-domains/ - -var outlookdotcom_domains = ['hotmail.at', 'hotmail.be', 'hotmail.ca', 'hotmail.cl', 'hotmail.co.il', 'hotmail.co.nz', 'hotmail.co.th', 'hotmail.co.uk', 'hotmail.com', 'hotmail.com.ar', 'hotmail.com.au', 'hotmail.com.br', 'hotmail.com.gr', 'hotmail.com.mx', 'hotmail.com.pe', 'hotmail.com.tr', 'hotmail.com.vn', 'hotmail.cz', 'hotmail.de', 'hotmail.dk', 'hotmail.es', 'hotmail.fr', 'hotmail.hu', 'hotmail.id', 'hotmail.ie', 'hotmail.in', 'hotmail.it', 'hotmail.jp', 'hotmail.kr', 'hotmail.lv', 'hotmail.my', 'hotmail.ph', 'hotmail.pt', 'hotmail.sa', 'hotmail.sg', 'hotmail.sk', 'live.be', 'live.co.uk', 'live.com', 'live.com.ar', 'live.com.mx', 'live.de', 'live.es', 'live.eu', 'live.fr', 'live.it', 'live.nl', 'msn.com', 'outlook.at', 'outlook.be', 'outlook.cl', 'outlook.co.il', 'outlook.co.nz', 'outlook.co.th', 'outlook.com', 'outlook.com.ar', 'outlook.com.au', 'outlook.com.br', 'outlook.com.gr', 'outlook.com.pe', 'outlook.com.tr', 'outlook.com.vn', 'outlook.cz', 'outlook.de', 'outlook.dk', 'outlook.es', 'outlook.fr', 'outlook.hu', 'outlook.id', 'outlook.ie', 'outlook.in', 'outlook.it', 'outlook.jp', 'outlook.kr', 'outlook.lv', 'outlook.my', 'outlook.ph', 'outlook.pt', 'outlook.sa', 'outlook.sg', 'outlook.sk', 'passport.com']; // List of domains used by Yahoo Mail -// This list is likely incomplete - -var yahoo_domains = ['rocketmail.com', 'yahoo.ca', 'yahoo.co.uk', 'yahoo.com', 'yahoo.de', 'yahoo.fr', 'yahoo.in', 'yahoo.it', 'ymail.com']; // List of domains used by yandex.ru - -var yandex_domains = ['yandex.ru', 'yandex.ua', 'yandex.kz', 'yandex.com', 'yandex.by', 'ya.ru']; // replace single dots, but not multiple consecutive dots - -function dotsReplacer(match) { - if (match.length > 1) { - return match; - } - - return ''; -} - -function normalizeEmail(email, options) { - options = (0, _merge.default)(options, default_normalize_email_options); - var raw_parts = email.split('@'); - var domain = raw_parts.pop(); - var user = raw_parts.join('@'); - var parts = [user, domain]; // The domain is always lowercased, as it's case-insensitive per RFC 1035 - - parts[1] = parts[1].toLowerCase(); - - if (parts[1] === 'gmail.com' || parts[1] === 'googlemail.com') { - // Address is GMail - if (options.gmail_remove_subaddress) { - parts[0] = parts[0].split('+')[0]; - } - - if (options.gmail_remove_dots) { - // this does not replace consecutive dots like example..email@gmail.com - parts[0] = parts[0].replace(/\.+/g, dotsReplacer); - } - - if (!parts[0].length) { - return false; - } - - if (options.all_lowercase || options.gmail_lowercase) { - parts[0] = parts[0].toLowerCase(); - } - - parts[1] = options.gmail_convert_googlemaildotcom ? 'gmail.com' : parts[1]; - } else if (icloud_domains.indexOf(parts[1]) >= 0) { - // Address is iCloud - if (options.icloud_remove_subaddress) { - parts[0] = parts[0].split('+')[0]; - } - - if (!parts[0].length) { - return false; - } - - if (options.all_lowercase || options.icloud_lowercase) { - parts[0] = parts[0].toLowerCase(); - } - } else if (outlookdotcom_domains.indexOf(parts[1]) >= 0) { - // Address is Outlook.com - if (options.outlookdotcom_remove_subaddress) { - parts[0] = parts[0].split('+')[0]; - } - - if (!parts[0].length) { - return false; - } - - if (options.all_lowercase || options.outlookdotcom_lowercase) { - parts[0] = parts[0].toLowerCase(); - } - } else if (yahoo_domains.indexOf(parts[1]) >= 0) { - // Address is Yahoo - if (options.yahoo_remove_subaddress) { - var components = parts[0].split('-'); - parts[0] = components.length > 1 ? components.slice(0, -1).join('-') : components[0]; - } - - if (!parts[0].length) { - return false; - } - - if (options.all_lowercase || options.yahoo_lowercase) { - parts[0] = parts[0].toLowerCase(); - } - } else if (yandex_domains.indexOf(parts[1]) >= 0) { - if (options.all_lowercase || options.yandex_lowercase) { - parts[0] = parts[0].toLowerCase(); - } - - parts[1] = 'yandex.ru'; // all yandex domains are equal, 1st preffered - } else if (options.all_lowercase) { - // Any other address - parts[0] = parts[0].toLowerCase(); - } - - return parts.join('@'); -} - -module.exports = exports.default; -module.exports.default = exports.default; \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/rtrim.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/rtrim.js deleted file mode 100644 index af50c69..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/rtrim.js +++ /dev/null @@ -1,20 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = rtrim; - -var _assertString = _interopRequireDefault(require("./util/assertString")); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function rtrim(str, chars) { - (0, _assertString.default)(str); // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions#Escaping - - var pattern = chars ? new RegExp("[".concat(chars.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'), "]+$"), 'g') : /\s+$/g; - return str.replace(pattern, ''); -} - -module.exports = exports.default; -module.exports.default = exports.default; \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/stripLow.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/stripLow.js deleted file mode 100644 index aec2e0b..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/stripLow.js +++ /dev/null @@ -1,21 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = stripLow; - -var _assertString = _interopRequireDefault(require("./util/assertString")); - -var _blacklist = _interopRequireDefault(require("./blacklist")); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function stripLow(str, keep_new_lines) { - (0, _assertString.default)(str); - var chars = keep_new_lines ? '\\x00-\\x09\\x0B\\x0C\\x0E-\\x1F\\x7F' : '\\x00-\\x1F\\x7F'; - return (0, _blacklist.default)(str, chars); -} - -module.exports = exports.default; -module.exports.default = exports.default; \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/toBoolean.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/toBoolean.js deleted file mode 100644 index a1b1fe4..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/toBoolean.js +++ /dev/null @@ -1,23 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = toBoolean; - -var _assertString = _interopRequireDefault(require("./util/assertString")); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function toBoolean(str, strict) { - (0, _assertString.default)(str); - - if (strict) { - return str === '1' || /^true$/i.test(str); - } - - return str !== '0' && !/^false$/i.test(str) && str !== ''; -} - -module.exports = exports.default; -module.exports.default = exports.default; \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/toDate.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/toDate.js deleted file mode 100644 index cb0756c..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/toDate.js +++ /dev/null @@ -1,19 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = toDate; - -var _assertString = _interopRequireDefault(require("./util/assertString")); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function toDate(date) { - (0, _assertString.default)(date); - date = Date.parse(date); - return !isNaN(date) ? new Date(date) : null; -} - -module.exports = exports.default; -module.exports.default = exports.default; \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/toFloat.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/toFloat.js deleted file mode 100644 index 96adafd..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/toFloat.js +++ /dev/null @@ -1,18 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = toFloat; - -var _isFloat = _interopRequireDefault(require("./isFloat")); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function toFloat(str) { - if (!(0, _isFloat.default)(str)) return NaN; - return parseFloat(str); -} - -module.exports = exports.default; -module.exports.default = exports.default; \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/toInt.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/toInt.js deleted file mode 100644 index 4c0e7ad..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/toInt.js +++ /dev/null @@ -1,18 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = toInt; - -var _assertString = _interopRequireDefault(require("./util/assertString")); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function toInt(str, radix) { - (0, _assertString.default)(str); - return parseInt(str, radix || 10); -} - -module.exports = exports.default; -module.exports.default = exports.default; \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/trim.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/trim.js deleted file mode 100644 index 497e3c3..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/trim.js +++ /dev/null @@ -1,19 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = trim; - -var _rtrim = _interopRequireDefault(require("./rtrim")); - -var _ltrim = _interopRequireDefault(require("./ltrim")); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function trim(str, chars) { - return (0, _rtrim.default)((0, _ltrim.default)(str, chars), chars); -} - -module.exports = exports.default; -module.exports.default = exports.default; \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/unescape.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/unescape.js deleted file mode 100644 index ab5dbbf..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/unescape.js +++ /dev/null @@ -1,18 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = unescape; - -var _assertString = _interopRequireDefault(require("./util/assertString")); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function unescape(str) { - (0, _assertString.default)(str); - return str.replace(/&/g, '&').replace(/"/g, '"').replace(/'/g, "'").replace(/</g, '<').replace(/>/g, '>').replace(///g, '/').replace(/\/g, '\\').replace(/`/g, '`'); -} - -module.exports = exports.default; -module.exports.default = exports.default; \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/util/assertString.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/util/assertString.js deleted file mode 100644 index ed3ec75..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/util/assertString.js +++ /dev/null @@ -1,33 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = assertString; - -function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } - -function assertString(input) { - var isString = typeof input === 'string' || input instanceof String; - - if (!isString) { - var invalidType; - - if (input === null) { - invalidType = 'null'; - } else { - invalidType = _typeof(input); - - if (invalidType === 'object' && input.constructor && input.constructor.hasOwnProperty('name')) { - invalidType = input.constructor.name; - } else { - invalidType = "a ".concat(invalidType); - } - } - - throw new TypeError("Expected string but received ".concat(invalidType, ".")); - } -} - -module.exports = exports.default; -module.exports.default = exports.default; \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/util/includes.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/util/includes.js deleted file mode 100644 index e061828..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/util/includes.js +++ /dev/null @@ -1,17 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = void 0; - -var includes = function includes(arr, val) { - return arr.some(function (arrVal) { - return val === arrVal; - }); -}; - -var _default = includes; -exports.default = _default; -module.exports = exports.default; -module.exports.default = exports.default; \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/util/merge.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/util/merge.js deleted file mode 100644 index a96c739..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/util/merge.js +++ /dev/null @@ -1,22 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = merge; - -function merge() { - var obj = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - var defaults = arguments.length > 1 ? arguments[1] : undefined; - - for (var key in defaults) { - if (typeof obj[key] === 'undefined') { - obj[key] = defaults[key]; - } - } - - return obj; -} - -module.exports = exports.default; -module.exports.default = exports.default; \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/util/multilineRegex.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/util/multilineRegex.js deleted file mode 100644 index 0879ca9..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/util/multilineRegex.js +++ /dev/null @@ -1,23 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = multilineRegexp; - -/** - * Build RegExp object from an array - * of multiple/multi-line regexp parts - * - * @param {string[]} parts - * @param {string} flags - * @return {object} - RegExp object - */ -function multilineRegexp(parts) { - var flags = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ''; - var regexpAsStringLiteral = parts.join(''); - return new RegExp(regexpAsStringLiteral, flags); -} - -module.exports = exports.default; -module.exports.default = exports.default; \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/util/toString.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/util/toString.js deleted file mode 100644 index 6295192..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/util/toString.js +++ /dev/null @@ -1,25 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = toString; - -function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } - -function toString(input) { - if (_typeof(input) === 'object' && input !== null) { - if (typeof input.toString === 'function') { - input = input.toString(); - } else { - input = '[object Object]'; - } - } else if (input === null || typeof input === 'undefined' || isNaN(input) && !input.length) { - input = ''; - } - - return String(input); -} - -module.exports = exports.default; -module.exports.default = exports.default; \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/whitelist.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/whitelist.js deleted file mode 100644 index 7ae624e..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/lib/whitelist.js +++ /dev/null @@ -1,18 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = whitelist; - -var _assertString = _interopRequireDefault(require("./util/assertString")); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function whitelist(str, chars) { - (0, _assertString.default)(str); - return str.replace(new RegExp("[^".concat(chars, "]+"), 'g'), ''); -} - -module.exports = exports.default; -module.exports.default = exports.default; \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/package.json b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/package.json deleted file mode 100644 index 7c4df0e..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/package.json +++ /dev/null @@ -1,128 +0,0 @@ -{ - "_args": [ - [ - "validator@^13.0.0", - "/home/support/NodeJS/node_modules/express-validator" - ] - ], - "_from": "validator@>=13.0.0 <14.0.0", - "_hasShrinkwrap": false, - "_id": "validator@13.0.0", - "_inCache": true, - "_installable": true, - "_location": "/express-validator/validator", - "_nodeVersion": "13.11.0", - "_npmOperationalInternal": { - "host": "s3://npm-registry-packages", - "tmp": "tmp/validator_13.0.0_1584672342529_0.6697691398764767" - }, - "_npmUser": { - "email": "cohara87@gmail.com", - "name": "cohara87" - }, - "_npmVersion": "6.13.7", - "_phantomChildren": {}, - "_requested": { - "name": "validator", - "raw": "validator@^13.0.0", - "rawSpec": "^13.0.0", - "scope": null, - "spec": ">=13.0.0 <14.0.0", - "type": "range" - }, - "_requiredBy": [ - "/express-validator" - ], - "_resolved": "https://registry.npmjs.org/validator/-/validator-13.0.0.tgz", - "_shasum": "0fb6c6bb5218ea23d368a8347e6d0f5a70e3bcab", - "_shrinkwrap": null, - "_spec": "validator@^13.0.0", - "_where": "/home/support/NodeJS/node_modules/express-validator", - "author": { - "email": "cohara87@gmail.com", - "name": "Chris O'Hara" - }, - "bugs": { - "url": "https://github.com/chriso/validator.js/issues" - }, - "contributors": [ - { - "name": "Anthony Nandaa", - "url": "https://github.com/profnandaa" - } - ], - "dependencies": {}, - "description": "String validation and sanitization", - "devDependencies": { - "@babel/cli": "^7.0.0", - "@babel/core": "^7.0.0", - "@babel/preset-env": "^7.0.0", - "@babel/register": "^7.0.0", - "babel-eslint": "^10.0.1", - "babel-plugin-add-module-exports": "^1.0.0", - "eslint": "^4.19.1", - "eslint-config-airbnb-base": "^12.1.0", - "eslint-plugin-import": "^2.11.0", - "mocha": "^5.1.1", - "nyc": "^14.1.0", - "rollup": "^0.43.0", - "rollup-plugin-babel": "^4.0.1", - "uglify-js": "^3.0.19" - }, - "directories": {}, - "dist": { - "fileCount": 190, - "integrity": "sha512-anYx5fURbgF04lQV18nEQWZ/3wHGnxiKdG4aL8J+jEDsm98n/sU/bey+tYk6tnGJzm7ioh5FoqrAiQ6m03IgaA==", - "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJedC5XCRA9TVsSAnZWagAA+ecP/3MjKhSQEQZy8pn5Kx7u\nYKAhvrHTUfHEEME54wh6ifaIlzK145wV5BYFplsLope0Ynb9wDMHb2xMFcbd\nUwPbzIq474O9jxs/7Kz6qQ5/k0FZhumhL3hvZMvJaorMhUHCZneD7pUsJ3sM\nFzKUNDu98RgQ5NLnHpTe7Td1gdfLpqHyJ4IYlAdHXeFVbJ3htiEoHM3pFHCU\n5MhmYMr1+M29jqmEzb51hV2oddRpLcOX9+jkwJuv83qy8zZYm9B7mNvt0wUk\n+VmDscfnEUSZT124lDV914avSgE+Ra9L6D9Qg8E2yo4Vo/Wha3bXeAZpyxdc\nrwm9kVjCDCQAcmSGl8i5H1Rxyzupi3UZbYydjE2seloYjalnFwwoegpTeOvq\n5wnSLXNYvevyjqlts1eaM9AfF8b/Fczf+PwSfXEIF3UGvX3zTP1EDsmvfXPx\nx1rqMwDOnVgd2vHbHgrIXVW59SgugZdxqoVnG4p00SmEe1Eru/gvdoWOhBSX\nlmedd0O+htlo79Xw0Cx4qmNuBXW670JyPxurOQv0hIhJntldOC/hwCyR1T03\ntBJVPrhnph+jbXeM7ovwscjIxMocMVsjzXTUWPs2mXbGBL4htOdTOK/qrm0W\nibZ5Tks5phzSIub4mMq8N8jLKU+PzHkS9lf47N9atoU9qVzbZLSCCrJJMoO1\nhZS2\r\n=pI/y\r\n-----END PGP SIGNATURE-----\r\n", - "shasum": "0fb6c6bb5218ea23d368a8347e6d0f5a70e3bcab", - "tarball": "https://registry.npmjs.org/validator/-/validator-13.0.0.tgz", - "unpackedSize": 399469 - }, - "engines": { - "node": ">= 0.10" - }, - "gitHead": "4db2711c416b4ddbe47439a78694fcaad82a4cbb", - "homepage": "https://github.com/chriso/validator.js", - "keywords": [ - "assert", - "sanitisation", - "sanitise", - "sanitization", - "sanitize", - "validate", - "validation", - "validator" - ], - "license": "MIT", - "main": "index.js", - "maintainers": [ - { - "name": "cohara87", - "email": "cohara87@gmail.com" - } - ], - "name": "validator", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git+https://github.com/chriso/validator.js.git" - }, - "scripts": { - "build": "npm run build:browser && npm run build:node && npm run build:es", - "build:browser": "node --require @babel/register build-browser && npm run minify", - "build:es": "babel src -d es --env-name=es", - "build:node": "babel src -d .", - "clean": "npm run clean:node && npm run clean:browser && npm run clean:es", - "clean:browser": "rm -rf validator*.js", - "clean:es": "rm -rf es", - "clean:node": "rm -rf index.js lib", - "lint": "eslint src test", - "lint:fix": "eslint --fix src test", - "minify": "uglifyjs validator.js -o validator.min.js --compress --mangle --comments /Copyright/", - "pretest": "npm run lint && npm run build", - "test": "nyc mocha --require @babel/register --reporter dot" - }, - "sideEffects": false, - "version": "13.0.0" -} diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/validator.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/validator.js deleted file mode 100644 index 0d18d9b..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/validator.js +++ /dev/null @@ -1,2597 +0,0 @@ -/*! - * Copyright (c) 2018 Chris O'Hara - * - * Permission is hereby granted, free of charge, to any person obtaining - * a copy of this software and associated documentation files (the - * "Software"), to deal in the Software without restriction, including - * without limitation the rights to use, copy, modify, merge, publish, - * distribute, sublicense, and/or sell copies of the Software, and to - * permit persons to whom the Software is furnished to do so, subject to - * the following conditions: - * - * The above copyright notice and this permission notice shall be - * included in all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, - * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF - * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND - * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE - * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION - * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION - * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - */ -(function (global, factory) { - typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : - typeof define === 'function' && define.amd ? define(factory) : - (global.validator = factory()); -}(this, (function () { 'use strict'; - -function _typeof(obj) { - "@babel/helpers - typeof"; - - if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { - _typeof = function (obj) { - return typeof obj; - }; - } else { - _typeof = function (obj) { - return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; - }; - } - - return _typeof(obj); -} - -function _slicedToArray(arr, i) { - return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); -} - -function _arrayWithHoles(arr) { - if (Array.isArray(arr)) return arr; -} - -function _iterableToArrayLimit(arr, i) { - if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) { - return; - } - - var _arr = []; - var _n = true; - var _d = false; - var _e = undefined; - - try { - for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { - _arr.push(_s.value); - - if (i && _arr.length === i) break; - } - } catch (err) { - _d = true; - _e = err; - } finally { - try { - if (!_n && _i["return"] != null) _i["return"](); - } finally { - if (_d) throw _e; - } - } - - return _arr; -} - -function _nonIterableRest() { - throw new TypeError("Invalid attempt to destructure non-iterable instance"); -} - -function assertString(input) { - var isString = typeof input === 'string' || input instanceof String; - - if (!isString) { - var invalidType; - - if (input === null) { - invalidType = 'null'; - } else { - invalidType = _typeof(input); - - if (invalidType === 'object' && input.constructor && input.constructor.hasOwnProperty('name')) { - invalidType = input.constructor.name; - } else { - invalidType = "a ".concat(invalidType); - } - } - - throw new TypeError("Expected string but received ".concat(invalidType, ".")); - } -} - -function toDate(date) { - assertString(date); - date = Date.parse(date); - return !isNaN(date) ? new Date(date) : null; -} - -var alpha = { - 'en-US': /^[A-Z]+$/i, - 'bg-BG': /^[А-Я]+$/i, - 'cs-CZ': /^[A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ]+$/i, - 'da-DK': /^[A-ZÆØÅ]+$/i, - 'de-DE': /^[A-ZÄÖÜß]+$/i, - 'el-GR': /^[Α-ώ]+$/i, - 'es-ES': /^[A-ZÁÉÍÑÓÚÜ]+$/i, - 'fr-FR': /^[A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ]+$/i, - 'it-IT': /^[A-ZÀÉÈÌÎÓÒÙ]+$/i, - 'nb-NO': /^[A-ZÆØÅ]+$/i, - 'nl-NL': /^[A-ZÁÉËÏÓÖÜÚ]+$/i, - 'nn-NO': /^[A-ZÆØÅ]+$/i, - 'hu-HU': /^[A-ZÁÉÍÓÖŐÚÜŰ]+$/i, - 'pl-PL': /^[A-ZĄĆĘŚŁŃÓŻŹ]+$/i, - 'pt-PT': /^[A-ZÃÁÀÂÄÇÉÊËÍÏÕÓÔÖÚÜ]+$/i, - 'ru-RU': /^[А-ЯЁ]+$/i, - 'sl-SI': /^[A-ZČĆĐŠŽ]+$/i, - 'sk-SK': /^[A-ZÁČĎÉÍŇÓŠŤÚÝŽĹŔĽÄÔ]+$/i, - 'sr-RS@latin': /^[A-ZČĆŽŠĐ]+$/i, - 'sr-RS': /^[А-ЯЂЈЉЊЋЏ]+$/i, - 'sv-SE': /^[A-ZÅÄÖ]+$/i, - 'tr-TR': /^[A-ZÇĞİıÖŞÜ]+$/i, - 'uk-UA': /^[А-ЩЬЮЯЄIЇҐі]+$/i, - 'ku-IQ': /^[ئابپتجچحخدرڕزژسشعغفڤقکگلڵمنوۆھەیێيطؤثآإأكضصةظذ]+$/i, - ar: /^[ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]+$/, - he: /^[א-ת]+$/, - 'fa-IR': /^['آابپتثجچهخدذرزژسشصضطظعغفقکگلمنوهی']+$/i -}; -var alphanumeric = { - 'en-US': /^[0-9A-Z]+$/i, - 'bg-BG': /^[0-9А-Я]+$/i, - 'cs-CZ': /^[0-9A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ]+$/i, - 'da-DK': /^[0-9A-ZÆØÅ]+$/i, - 'de-DE': /^[0-9A-ZÄÖÜß]+$/i, - 'el-GR': /^[0-9Α-ω]+$/i, - 'es-ES': /^[0-9A-ZÁÉÍÑÓÚÜ]+$/i, - 'fr-FR': /^[0-9A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ]+$/i, - 'it-IT': /^[0-9A-ZÀÉÈÌÎÓÒÙ]+$/i, - 'hu-HU': /^[0-9A-ZÁÉÍÓÖŐÚÜŰ]+$/i, - 'nb-NO': /^[0-9A-ZÆØÅ]+$/i, - 'nl-NL': /^[0-9A-ZÁÉËÏÓÖÜÚ]+$/i, - 'nn-NO': /^[0-9A-ZÆØÅ]+$/i, - 'pl-PL': /^[0-9A-ZĄĆĘŚŁŃÓŻŹ]+$/i, - 'pt-PT': /^[0-9A-ZÃÁÀÂÄÇÉÊËÍÏÕÓÔÖÚÜ]+$/i, - 'ru-RU': /^[0-9А-ЯЁ]+$/i, - 'sl-SI': /^[0-9A-ZČĆĐŠŽ]+$/i, - 'sk-SK': /^[0-9A-ZÁČĎÉÍŇÓŠŤÚÝŽĹŔĽÄÔ]+$/i, - 'sr-RS@latin': /^[0-9A-ZČĆŽŠĐ]+$/i, - 'sr-RS': /^[0-9А-ЯЂЈЉЊЋЏ]+$/i, - 'sv-SE': /^[0-9A-ZÅÄÖ]+$/i, - 'tr-TR': /^[0-9A-ZÇĞİıÖŞÜ]+$/i, - 'uk-UA': /^[0-9А-ЩЬЮЯЄIЇҐі]+$/i, - 'ku-IQ': /^[٠١٢٣٤٥٦٧٨٩0-9ئابپتجچحخدرڕزژسشعغفڤقکگلڵمنوۆھەیێيطؤثآإأكضصةظذ]+$/i, - ar: /^[٠١٢٣٤٥٦٧٨٩0-9ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]+$/, - he: /^[0-9א-ת]+$/, - 'fa-IR': /^['0-9آابپتثجچهخدذرزژسشصضطظعغفقکگلمنوهی۱۲۳۴۵۶۷۸۹۰']+$/i -}; -var decimal = { - 'en-US': '.', - ar: '٫' -}; -var englishLocales = ['AU', 'GB', 'HK', 'IN', 'NZ', 'ZA', 'ZM']; - -for (var locale, i = 0; i < englishLocales.length; i++) { - locale = "en-".concat(englishLocales[i]); - alpha[locale] = alpha['en-US']; - alphanumeric[locale] = alphanumeric['en-US']; - decimal[locale] = decimal['en-US']; -} // Source: http://www.localeplanet.com/java/ - - -var arabicLocales = ['AE', 'BH', 'DZ', 'EG', 'IQ', 'JO', 'KW', 'LB', 'LY', 'MA', 'QM', 'QA', 'SA', 'SD', 'SY', 'TN', 'YE']; - -for (var _locale, _i = 0; _i < arabicLocales.length; _i++) { - _locale = "ar-".concat(arabicLocales[_i]); - alpha[_locale] = alpha.ar; - alphanumeric[_locale] = alphanumeric.ar; - decimal[_locale] = decimal.ar; -} // Source: https://en.wikipedia.org/wiki/Decimal_mark - - -var dotDecimal = ['ar-EG', 'ar-LB', 'ar-LY']; -var commaDecimal = ['bg-BG', 'cs-CZ', 'da-DK', 'de-DE', 'el-GR', 'en-ZM', 'es-ES', 'fr-FR', 'it-IT', 'ku-IQ', 'hu-HU', 'nb-NO', 'nn-NO', 'nl-NL', 'pl-PL', 'pt-PT', 'ru-RU', 'sl-SI', 'sr-RS@latin', 'sr-RS', 'sv-SE', 'tr-TR', 'uk-UA']; - -for (var _i2 = 0; _i2 < dotDecimal.length; _i2++) { - decimal[dotDecimal[_i2]] = decimal['en-US']; -} - -for (var _i3 = 0; _i3 < commaDecimal.length; _i3++) { - decimal[commaDecimal[_i3]] = ','; -} - -alpha['pt-BR'] = alpha['pt-PT']; -alphanumeric['pt-BR'] = alphanumeric['pt-PT']; -decimal['pt-BR'] = decimal['pt-PT']; // see #862 - -alpha['pl-Pl'] = alpha['pl-PL']; -alphanumeric['pl-Pl'] = alphanumeric['pl-PL']; -decimal['pl-Pl'] = decimal['pl-PL']; - -function isFloat(str, options) { - assertString(str); - options = options || {}; - - var _float = new RegExp("^(?:[-+])?(?:[0-9]+)?(?:\\".concat(options.locale ? decimal[options.locale] : '.', "[0-9]*)?(?:[eE][\\+\\-]?(?:[0-9]+))?$")); - - if (str === '' || str === '.' || str === '-' || str === '+') { - return false; - } - - var value = parseFloat(str.replace(',', '.')); - return _float.test(str) && (!options.hasOwnProperty('min') || value >= options.min) && (!options.hasOwnProperty('max') || value <= options.max) && (!options.hasOwnProperty('lt') || value < options.lt) && (!options.hasOwnProperty('gt') || value > options.gt); -} -var locales = Object.keys(decimal); - -function toFloat(str) { - if (!isFloat(str)) return NaN; - return parseFloat(str); -} - -function toInt(str, radix) { - assertString(str); - return parseInt(str, radix || 10); -} - -function toBoolean(str, strict) { - assertString(str); - - if (strict) { - return str === '1' || /^true$/i.test(str); - } - - return str !== '0' && !/^false$/i.test(str) && str !== ''; -} - -function equals(str, comparison) { - assertString(str); - return str === comparison; -} - -function toString$1(input) { - if (_typeof(input) === 'object' && input !== null) { - if (typeof input.toString === 'function') { - input = input.toString(); - } else { - input = '[object Object]'; - } - } else if (input === null || typeof input === 'undefined' || isNaN(input) && !input.length) { - input = ''; - } - - return String(input); -} - -function contains(str, elem) { - assertString(str); - return str.indexOf(toString$1(elem)) >= 0; -} - -function matches(str, pattern, modifiers) { - assertString(str); - - if (Object.prototype.toString.call(pattern) !== '[object RegExp]') { - pattern = new RegExp(pattern, modifiers); - } - - return pattern.test(str); -} - -function merge() { - var obj = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - var defaults = arguments.length > 1 ? arguments[1] : undefined; - - for (var key in defaults) { - if (typeof obj[key] === 'undefined') { - obj[key] = defaults[key]; - } - } - - return obj; -} - -/* eslint-disable prefer-rest-params */ - -function isByteLength(str, options) { - assertString(str); - var min; - var max; - - if (_typeof(options) === 'object') { - min = options.min || 0; - max = options.max; - } else { - // backwards compatibility: isByteLength(str, min [, max]) - min = arguments[1]; - max = arguments[2]; - } - - var len = encodeURI(str).split(/%..|./).length - 1; - return len >= min && (typeof max === 'undefined' || len <= max); -} - -var default_fqdn_options = { - require_tld: true, - allow_underscores: false, - allow_trailing_dot: false -}; -function isFQDN(str, options) { - assertString(str); - options = merge(options, default_fqdn_options); - /* Remove the optional trailing dot before checking validity */ - - if (options.allow_trailing_dot && str[str.length - 1] === '.') { - str = str.substring(0, str.length - 1); - } - - var parts = str.split('.'); - - for (var i = 0; i < parts.length; i++) { - if (parts[i].length > 63) { - return false; - } - } - - if (options.require_tld) { - var tld = parts.pop(); - - if (!parts.length || !/^([a-z\u00a1-\uffff]{2,}|xn[a-z0-9-]{2,})$/i.test(tld)) { - return false; - } // disallow spaces - - - if (/[\s\u2002-\u200B\u202F\u205F\u3000\uFEFF\uDB40\uDC20]/.test(tld)) { - return false; - } - } - - for (var part, _i = 0; _i < parts.length; _i++) { - part = parts[_i]; - - if (options.allow_underscores) { - part = part.replace(/_/g, ''); - } - - if (!/^[a-z\u00a1-\uffff0-9-]+$/i.test(part)) { - return false; - } // disallow full-width chars - - - if (/[\uff01-\uff5e]/.test(part)) { - return false; - } - - if (part[0] === '-' || part[part.length - 1] === '-') { - return false; - } - } - - return true; -} - -/** -11.3. Examples - - The following addresses - - fe80::1234 (on the 1st link of the node) - ff02::5678 (on the 5th link of the node) - ff08::9abc (on the 10th organization of the node) - - would be represented as follows: - - fe80::1234%1 - ff02::5678%5 - ff08::9abc%10 - - (Here we assume a natural translation from a zone index to the - part, where the Nth zone of any scope is translated into - "N".) - - If we use interface names as , those addresses could also be - represented as follows: - - fe80::1234%ne0 - ff02::5678%pvc1.3 - ff08::9abc%interface10 - - where the interface "ne0" belongs to the 1st link, "pvc1.3" belongs - to the 5th link, and "interface10" belongs to the 10th organization. - * * */ - -var ipv4Maybe = /^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$/; -var ipv6Block = /^[0-9A-F]{1,4}$/i; -function isIP(str) { - var version = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ''; - assertString(str); - version = String(version); - - if (!version) { - return isIP(str, 4) || isIP(str, 6); - } else if (version === '4') { - if (!ipv4Maybe.test(str)) { - return false; - } - - var parts = str.split('.').sort(function (a, b) { - return a - b; - }); - return parts[3] <= 255; - } else if (version === '6') { - var addressAndZone = [str]; // ipv6 addresses could have scoped architecture - // according to https://tools.ietf.org/html/rfc4007#section-11 - - if (str.includes('%')) { - addressAndZone = str.split('%'); - - if (addressAndZone.length !== 2) { - // it must be just two parts - return false; - } - - if (!addressAndZone[0].includes(':')) { - // the first part must be the address - return false; - } - - if (addressAndZone[1] === '') { - // the second part must not be empty - return false; - } - } - - var blocks = addressAndZone[0].split(':'); - var foundOmissionBlock = false; // marker to indicate :: - // At least some OS accept the last 32 bits of an IPv6 address - // (i.e. 2 of the blocks) in IPv4 notation, and RFC 3493 says - // that '::ffff:a.b.c.d' is valid for IPv4-mapped IPv6 addresses, - // and '::a.b.c.d' is deprecated, but also valid. - - var foundIPv4TransitionBlock = isIP(blocks[blocks.length - 1], 4); - var expectedNumberOfBlocks = foundIPv4TransitionBlock ? 7 : 8; - - if (blocks.length > expectedNumberOfBlocks) { - return false; - } // initial or final :: - - - if (str === '::') { - return true; - } else if (str.substr(0, 2) === '::') { - blocks.shift(); - blocks.shift(); - foundOmissionBlock = true; - } else if (str.substr(str.length - 2) === '::') { - blocks.pop(); - blocks.pop(); - foundOmissionBlock = true; - } - - for (var i = 0; i < blocks.length; ++i) { - // test for a :: which can not be at the string start/end - // since those cases have been handled above - if (blocks[i] === '' && i > 0 && i < blocks.length - 1) { - if (foundOmissionBlock) { - return false; // multiple :: in address - } - - foundOmissionBlock = true; - } else if (foundIPv4TransitionBlock && i === blocks.length - 1) {// it has been checked before that the last - // block is a valid IPv4 address - } else if (!ipv6Block.test(blocks[i])) { - return false; - } - } - - if (foundOmissionBlock) { - return blocks.length >= 1; - } - - return blocks.length === expectedNumberOfBlocks; - } - - return false; -} - -var default_email_options = { - allow_display_name: false, - require_display_name: false, - allow_utf8_local_part: true, - require_tld: true -}; -/* eslint-disable max-len */ - -/* eslint-disable no-control-regex */ - -var splitNameAddress = /^([^\x00-\x1F\x7F-\x9F\cX]+)<(.+)>$/i; -var emailUserPart = /^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~]+$/i; -var gmailUserPart = /^[a-z\d]+$/; -var quotedEmailUser = /^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f]))*$/i; -var emailUserUtf8Part = /^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+$/i; -var quotedEmailUserUtf8 = /^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))*$/i; -var defaultMaxEmailLength = 254; -/* eslint-enable max-len */ - -/* eslint-enable no-control-regex */ - -/** - * Validate display name according to the RFC2822: https://tools.ietf.org/html/rfc2822#appendix-A.1.2 - * @param {String} display_name - */ - -function validateDisplayName(display_name) { - var trim_quotes = display_name.match(/^"(.+)"$/i); - var display_name_without_quotes = trim_quotes ? trim_quotes[1] : display_name; // display name with only spaces is not valid - - if (!display_name_without_quotes.trim()) { - return false; - } // check whether display name contains illegal character - - - var contains_illegal = /[\.";<>]/.test(display_name_without_quotes); - - if (contains_illegal) { - // if contains illegal characters, - // must to be enclosed in double-quotes, otherwise it's not a valid display name - if (!trim_quotes) { - return false; - } // the quotes in display name must start with character symbol \ - - - var all_start_with_back_slash = display_name_without_quotes.split('"').length === display_name_without_quotes.split('\\"').length; - - if (!all_start_with_back_slash) { - return false; - } - } - - return true; -} - -function isEmail(str, options) { - assertString(str); - options = merge(options, default_email_options); - - if (options.require_display_name || options.allow_display_name) { - var display_email = str.match(splitNameAddress); - - if (display_email) { - var display_name; - - var _display_email = _slicedToArray(display_email, 3); - - display_name = _display_email[1]; - str = _display_email[2]; - - // sometimes need to trim the last space to get the display name - // because there may be a space between display name and email address - // eg. myname - // the display name is `myname` instead of `myname `, so need to trim the last space - if (display_name.endsWith(' ')) { - display_name = display_name.substr(0, display_name.length - 1); - } - - if (!validateDisplayName(display_name)) { - return false; - } - } else if (options.require_display_name) { - return false; - } - } - - if (!options.ignore_max_length && str.length > defaultMaxEmailLength) { - return false; - } - - var parts = str.split('@'); - var domain = parts.pop(); - var user = parts.join('@'); - var lower_domain = domain.toLowerCase(); - - if (options.domain_specific_validation && (lower_domain === 'gmail.com' || lower_domain === 'googlemail.com')) { - /* - Previously we removed dots for gmail addresses before validating. - This was removed because it allows `multiple..dots@gmail.com` - to be reported as valid, but it is not. - Gmail only normalizes single dots, removing them from here is pointless, - should be done in normalizeEmail - */ - user = user.toLowerCase(); // Removing sub-address from username before gmail validation - - var username = user.split('+')[0]; // Dots are not included in gmail length restriction - - if (!isByteLength(username.replace('.', ''), { - min: 6, - max: 30 - })) { - return false; - } - - var _user_parts = username.split('.'); - - for (var i = 0; i < _user_parts.length; i++) { - if (!gmailUserPart.test(_user_parts[i])) { - return false; - } - } - } - - if (!isByteLength(user, { - max: 64 - }) || !isByteLength(domain, { - max: 254 - })) { - return false; - } - - if (!isFQDN(domain, { - require_tld: options.require_tld - })) { - if (!options.allow_ip_domain) { - return false; - } - - if (!isIP(domain)) { - if (!domain.startsWith('[') || !domain.endsWith(']')) { - return false; - } - - var noBracketdomain = domain.substr(1, domain.length - 2); - - if (noBracketdomain.length === 0 || !isIP(noBracketdomain)) { - return false; - } - } - } - - if (user[0] === '"') { - user = user.slice(1, user.length - 1); - return options.allow_utf8_local_part ? quotedEmailUserUtf8.test(user) : quotedEmailUser.test(user); - } - - var pattern = options.allow_utf8_local_part ? emailUserUtf8Part : emailUserPart; - var user_parts = user.split('.'); - - for (var _i = 0; _i < user_parts.length; _i++) { - if (!pattern.test(user_parts[_i])) { - return false; - } - } - - return true; -} - -/* -options for isURL method - -require_protocol - if set as true isURL will return false if protocol is not present in the URL -require_valid_protocol - isURL will check if the URL's protocol is present in the protocols option -protocols - valid protocols can be modified with this option -require_host - if set as false isURL will not check if host is present in the URL -allow_protocol_relative_urls - if set as true protocol relative URLs will be allowed - -*/ - -var default_url_options = { - protocols: ['http', 'https', 'ftp'], - require_tld: true, - require_protocol: false, - require_host: true, - require_valid_protocol: true, - allow_underscores: false, - allow_trailing_dot: false, - allow_protocol_relative_urls: false -}; -var wrapped_ipv6 = /^\[([^\]]+)\](?::([0-9]+))?$/; - -function isRegExp(obj) { - return Object.prototype.toString.call(obj) === '[object RegExp]'; -} - -function checkHost(host, matches) { - for (var i = 0; i < matches.length; i++) { - var match = matches[i]; - - if (host === match || isRegExp(match) && match.test(host)) { - return true; - } - } - - return false; -} - -function isURL(url, options) { - assertString(url); - - if (!url || url.length >= 2083 || /[\s<>]/.test(url)) { - return false; - } - - if (url.indexOf('mailto:') === 0) { - return false; - } - - options = merge(options, default_url_options); - var protocol, auth, host, hostname, port, port_str, split, ipv6; - split = url.split('#'); - url = split.shift(); - split = url.split('?'); - url = split.shift(); - split = url.split('://'); - - if (split.length > 1) { - protocol = split.shift().toLowerCase(); - - if (options.require_valid_protocol && options.protocols.indexOf(protocol) === -1) { - return false; - } - } else if (options.require_protocol) { - return false; - } else if (url.substr(0, 2) === '//') { - if (!options.allow_protocol_relative_urls) { - return false; - } - - split[0] = url.substr(2); - } - - url = split.join('://'); - - if (url === '') { - return false; - } - - split = url.split('/'); - url = split.shift(); - - if (url === '' && !options.require_host) { - return true; - } - - split = url.split('@'); - - if (split.length > 1) { - if (options.disallow_auth) { - return false; - } - - auth = split.shift(); - - if (auth.indexOf(':') >= 0 && auth.split(':').length > 2) { - return false; - } - } - - hostname = split.join('@'); - port_str = null; - ipv6 = null; - var ipv6_match = hostname.match(wrapped_ipv6); - - if (ipv6_match) { - host = ''; - ipv6 = ipv6_match[1]; - port_str = ipv6_match[2] || null; - } else { - split = hostname.split(':'); - host = split.shift(); - - if (split.length) { - port_str = split.join(':'); - } - } - - if (port_str !== null) { - port = parseInt(port_str, 10); - - if (!/^[0-9]+$/.test(port_str) || port <= 0 || port > 65535) { - return false; - } - } - - if (!isIP(host) && !isFQDN(host, options) && (!ipv6 || !isIP(ipv6, 6))) { - return false; - } - - host = host || ipv6; - - if (options.host_whitelist && !checkHost(host, options.host_whitelist)) { - return false; - } - - if (options.host_blacklist && checkHost(host, options.host_blacklist)) { - return false; - } - - return true; -} - -var macAddress = /^([0-9a-fA-F][0-9a-fA-F]:){5}([0-9a-fA-F][0-9a-fA-F])$/; -var macAddressNoColons = /^([0-9a-fA-F]){12}$/; -var macAddressWithHyphen = /^([0-9a-fA-F][0-9a-fA-F]-){5}([0-9a-fA-F][0-9a-fA-F])$/; -var macAddressWithSpaces = /^([0-9a-fA-F][0-9a-fA-F]\s){5}([0-9a-fA-F][0-9a-fA-F])$/; -var macAddressWithDots = /^([0-9a-fA-F]{4}).([0-9a-fA-F]{4}).([0-9a-fA-F]{4})$/; -function isMACAddress(str, options) { - assertString(str); - - if (options && options.no_colons) { - return macAddressNoColons.test(str); - } - - return macAddress.test(str) || macAddressWithHyphen.test(str) || macAddressWithSpaces.test(str) || macAddressWithDots.test(str); -} - -var subnetMaybe = /^\d{1,2}$/; -function isIPRange(str) { - assertString(str); - var parts = str.split('/'); // parts[0] -> ip, parts[1] -> subnet - - if (parts.length !== 2) { - return false; - } - - if (!subnetMaybe.test(parts[1])) { - return false; - } // Disallow preceding 0 i.e. 01, 02, ... - - - if (parts[1].length > 1 && parts[1].startsWith('0')) { - return false; - } - - return isIP(parts[0], 4) && parts[1] <= 32 && parts[1] >= 0; -} - -function isBoolean(str) { - assertString(str); - return ['true', 'false', '1', '0'].indexOf(str) >= 0; -} - -var localeReg = /^[A-z]{2,4}([_-]([A-z]{4}|[\d]{3}))?([_-]([A-z]{2}|[\d]{3}))?$/; -function isLocale(str) { - assertString(str); - - if (str === 'en_US_POSIX' || str === 'ca_ES_VALENCIA') { - return true; - } - - return localeReg.test(str); -} - -function isAlpha(str) { - var locale = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'en-US'; - assertString(str); - - if (locale in alpha) { - return alpha[locale].test(str); - } - - throw new Error("Invalid locale '".concat(locale, "'")); -} -var locales$1 = Object.keys(alpha); - -function isAlphanumeric(str) { - var locale = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'en-US'; - assertString(str); - - if (locale in alphanumeric) { - return alphanumeric[locale].test(str); - } - - throw new Error("Invalid locale '".concat(locale, "'")); -} -var locales$2 = Object.keys(alphanumeric); - -var numeric = /^[+-]?([0-9]*[.])?[0-9]+$/; -var numericNoSymbols = /^[0-9]+$/; -function isNumeric(str, options) { - assertString(str); - - if (options && options.no_symbols) { - return numericNoSymbols.test(str); - } - - return numeric.test(str); -} - -/** - * Reference: - * https://en.wikipedia.org/ -- Wikipedia - * https://docs.microsoft.com/en-us/microsoft-365/compliance/eu-passport-number -- EU Passport Number - * https://countrycode.org/ -- Country Codes - */ -var passportRegexByCountryCode = { - AM: /^[A-Z]{2}\d{7}$/, - // ARMENIA - AR: /^[A-Z]{3}\d{6}$/, - // ARGENTINA - AT: /^[A-Z]\d{7}$/, - // AUSTRIA - AU: /^[A-Z]\d{7}$/, - // AUSTRALIA - BE: /^[A-Z]{2}\d{6}$/, - // BELGIUM - BG: /^\d{9}$/, - // BULGARIA - CA: /^[A-Z]{2}\d{6}$/, - // CANADA - CH: /^[A-Z]\d{7}$/, - // SWITZERLAND - CN: /^[GE]\d{8}$/, - // CHINA [G=Ordinary, E=Electronic] followed by 8-digits - CY: /^[A-Z](\d{6}|\d{8})$/, - // CYPRUS - CZ: /^\d{8}$/, - // CZECH REPUBLIC - DE: /^[CFGHJKLMNPRTVWXYZ0-9]{9}$/, - // GERMANY - DK: /^\d{9}$/, - // DENMARK - DZ: /^\d{9}$/, - // ALGERIA - EE: /^([A-Z]\d{7}|[A-Z]{2}\d{7})$/, - // ESTONIA (K followed by 7-digits), e-passports have 2 UPPERCASE followed by 7 digits - ES: /^[A-Z0-9]{2}([A-Z0-9]?)\d{6}$/, - // SPAIN - FI: /^[A-Z]{2}\d{7}$/, - // FINLAND - FR: /^\d{2}[A-Z]{2}\d{5}$/, - // FRANCE - GB: /^\d{9}$/, - // UNITED KINGDOM - GR: /^[A-Z]{2}\d{7}$/, - // GREECE - HR: /^\d{9}$/, - // CROATIA - HU: /^[A-Z]{2}(\d{6}|\d{7})$/, - // HUNGARY - IE: /^[A-Z0-9]{2}\d{7}$/, - // IRELAND - IS: /^(A)\d{7}$/, - // ICELAND - IT: /^[A-Z0-9]{2}\d{7}$/, - // ITALY - JP: /^[A-Z]{2}\d{7}$/, - // JAPAN - KR: /^[MS]\d{8}$/, - // SOUTH KOREA, REPUBLIC OF KOREA, [S=PS Passports, M=PM Passports] - LT: /^[A-Z0-9]{8}$/, - // LITHUANIA - LU: /^[A-Z0-9]{8}$/, - // LUXEMBURG - LV: /^[A-Z0-9]{2}\d{7}$/, - // LATVIA - MT: /^\d{7}$/, - // MALTA - NL: /^[A-Z]{2}[A-Z0-9]{6}\d$/, - // NETHERLANDS - PO: /^[A-Z]{2}\d{7}$/, - // POLAND - PT: /^[A-Z]\d{6}$/, - // PORTUGAL - RO: /^\d{8,9}$/, - // ROMANIA - SE: /^\d{8}$/, - // SWEDEN - SL: /^(P)[A-Z]\d{7}$/, - // SLOVANIA - SK: /^[0-9A-Z]\d{7}$/, - // SLOVAKIA - TR: /^[A-Z]\d{8}$/, - // TURKEY - UA: /^[A-Z]{2}\d{6}$/, - // UKRAINE - US: /^\d{9}$/ // UNITED STATES - -}; -/** - * Check if str is a valid passport number - * relative to provided ISO Country Code. - * - * @param {string} str - * @param {string} countryCode - * @return {boolean} - */ - -function isPassportNumber(str, countryCode) { - /** Remove All Whitespaces, Convert to UPPERCASE */ - var normalizedStr = str.replace(/\s/g, '').toUpperCase(); - return countryCode.toUpperCase() in passportRegexByCountryCode && passportRegexByCountryCode[countryCode].test(normalizedStr); -} - -var _int = /^(?:[-+]?(?:0|[1-9][0-9]*))$/; -var intLeadingZeroes = /^[-+]?[0-9]+$/; -function isInt(str, options) { - assertString(str); - options = options || {}; // Get the regex to use for testing, based on whether - // leading zeroes are allowed or not. - - var regex = options.hasOwnProperty('allow_leading_zeroes') && !options.allow_leading_zeroes ? _int : intLeadingZeroes; // Check min/max/lt/gt - - var minCheckPassed = !options.hasOwnProperty('min') || str >= options.min; - var maxCheckPassed = !options.hasOwnProperty('max') || str <= options.max; - var ltCheckPassed = !options.hasOwnProperty('lt') || str < options.lt; - var gtCheckPassed = !options.hasOwnProperty('gt') || str > options.gt; - return regex.test(str) && minCheckPassed && maxCheckPassed && ltCheckPassed && gtCheckPassed; -} - -function isPort(str) { - return isInt(str, { - min: 0, - max: 65535 - }); -} - -function isLowercase(str) { - assertString(str); - return str === str.toLowerCase(); -} - -function isUppercase(str) { - assertString(str); - return str === str.toUpperCase(); -} - -/* eslint-disable no-control-regex */ - -var ascii = /^[\x00-\x7F]+$/; -/* eslint-enable no-control-regex */ - -function isAscii(str) { - assertString(str); - return ascii.test(str); -} - -var fullWidth = /[^\u0020-\u007E\uFF61-\uFF9F\uFFA0-\uFFDC\uFFE8-\uFFEE0-9a-zA-Z]/; -function isFullWidth(str) { - assertString(str); - return fullWidth.test(str); -} - -var halfWidth = /[\u0020-\u007E\uFF61-\uFF9F\uFFA0-\uFFDC\uFFE8-\uFFEE0-9a-zA-Z]/; -function isHalfWidth(str) { - assertString(str); - return halfWidth.test(str); -} - -function isVariableWidth(str) { - assertString(str); - return fullWidth.test(str) && halfWidth.test(str); -} - -/* eslint-disable no-control-regex */ - -var multibyte = /[^\x00-\x7F]/; -/* eslint-enable no-control-regex */ - -function isMultibyte(str) { - assertString(str); - return multibyte.test(str); -} - -/** - * Build RegExp object from an array - * of multiple/multi-line regexp parts - * - * @param {string[]} parts - * @param {string} flags - * @return {object} - RegExp object - */ -function multilineRegexp(parts) { - var flags = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ''; - var regexpAsStringLiteral = parts.join(''); - return new RegExp(regexpAsStringLiteral, flags); -} - -/** - * Regular Expression to match - * semantic versioning (SemVer) - * built from multi-line, multi-parts regexp - * Reference: https://semver.org/ - */ - -var semanticVersioningRegex = multilineRegexp(['^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)', '(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))', '?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$']); -function isSemVer(str) { - assertString(str); - return semanticVersioningRegex.test(str); -} - -var surrogatePair = /[\uD800-\uDBFF][\uDC00-\uDFFF]/; -function isSurrogatePair(str) { - assertString(str); - return surrogatePair.test(str); -} - -var includes = function includes(arr, val) { - return arr.some(function (arrVal) { - return val === arrVal; - }); -}; - -function decimalRegExp(options) { - var regExp = new RegExp("^[-+]?([0-9]+)?(\\".concat(decimal[options.locale], "[0-9]{").concat(options.decimal_digits, "})").concat(options.force_decimal ? '' : '?', "$")); - return regExp; -} - -var default_decimal_options = { - force_decimal: false, - decimal_digits: '1,', - locale: 'en-US' -}; -var blacklist = ['', '-', '+']; -function isDecimal(str, options) { - assertString(str); - options = merge(options, default_decimal_options); - - if (options.locale in decimal) { - return !includes(blacklist, str.replace(/ /g, '')) && decimalRegExp(options).test(str); - } - - throw new Error("Invalid locale '".concat(options.locale, "'")); -} - -var hexadecimal = /^(0x|0h)?[0-9A-F]+$/i; -function isHexadecimal(str) { - assertString(str); - return hexadecimal.test(str); -} - -var octal = /^(0o)?[0-7]+$/i; -function isOctal(str) { - assertString(str); - return octal.test(str); -} - -function isDivisibleBy(str, num) { - assertString(str); - return toFloat(str) % parseInt(num, 10) === 0; -} - -var hexcolor = /^#?([0-9A-F]{3}|[0-9A-F]{4}|[0-9A-F]{6}|[0-9A-F]{8})$/i; -function isHexColor(str) { - assertString(str); - return hexcolor.test(str); -} - -var rgbColor = /^rgb\((([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]),){2}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\)$/; -var rgbaColor = /^rgba\((([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]),){3}(0?\.\d|1(\.0)?|0(\.0)?)\)$/; -var rgbColorPercent = /^rgb\((([0-9]%|[1-9][0-9]%|100%),){2}([0-9]%|[1-9][0-9]%|100%)\)/; -var rgbaColorPercent = /^rgba\((([0-9]%|[1-9][0-9]%|100%),){3}(0?\.\d|1(\.0)?|0(\.0)?)\)/; -function isRgbColor(str) { - var includePercentValues = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true; - assertString(str); - - if (!includePercentValues) { - return rgbColor.test(str) || rgbaColor.test(str); - } - - return rgbColor.test(str) || rgbaColor.test(str) || rgbColorPercent.test(str) || rgbaColorPercent.test(str); -} - -var hslcomma = /^(hsl)a?\(\s*((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?))(deg|grad|rad|turn|\s*)(\s*,\s*(\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%){2}\s*(,\s*((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%?)\s*)?\)$/i; -var hslspace = /^(hsl)a?\(\s*((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?))(deg|grad|rad|turn|\s)(\s*(\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%){2}\s*(\/\s*((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%?)\s*)?\)$/i; -function isHSL(str) { - assertString(str); - return hslcomma.test(str) || hslspace.test(str); -} - -var isrc = /^[A-Z]{2}[0-9A-Z]{3}\d{2}\d{5}$/; -function isISRC(str) { - assertString(str); - return isrc.test(str); -} - -/** - * List of country codes with - * corresponding IBAN regular expression - * Reference: https://en.wikipedia.org/wiki/International_Bank_Account_Number - */ - -var ibanRegexThroughCountryCode = { - AD: /^(AD[0-9]{2})\d{8}[A-Z0-9]{12}$/, - AE: /^(AE[0-9]{2})\d{3}\d{16}$/, - AL: /^(AL[0-9]{2})\d{8}[A-Z0-9]{16}$/, - AT: /^(AT[0-9]{2})\d{16}$/, - AZ: /^(AZ[0-9]{2})[A-Z0-9]{4}\d{20}$/, - BA: /^(BA[0-9]{2})\d{16}$/, - BE: /^(BE[0-9]{2})\d{12}$/, - BG: /^(BG[0-9]{2})[A-Z]{4}\d{6}[A-Z0-9]{8}$/, - BH: /^(BH[0-9]{2})[A-Z]{4}[A-Z0-9]{14}$/, - BR: /^(BR[0-9]{2})\d{23}[A-Z]{1}[A-Z0-9]{1}$/, - BY: /^(BY[0-9]{2})[A-Z0-9]{4}\d{20}$/, - CH: /^(CH[0-9]{2})\d{5}[A-Z0-9]{12}$/, - CR: /^(CR[0-9]{2})\d{18}$/, - CY: /^(CY[0-9]{2})\d{8}[A-Z0-9]{16}$/, - CZ: /^(CZ[0-9]{2})\d{20}$/, - DE: /^(DE[0-9]{2})\d{18}$/, - DK: /^(DK[0-9]{2})\d{14}$/, - DO: /^(DO[0-9]{2})[A-Z]{4}\d{20}$/, - EE: /^(EE[0-9]{2})\d{16}$/, - ES: /^(ES[0-9]{2})\d{20}$/, - FI: /^(FI[0-9]{2})\d{14}$/, - FO: /^(FO[0-9]{2})\d{14}$/, - FR: /^(FR[0-9]{2})\d{10}[A-Z0-9]{11}\d{2}$/, - GB: /^(GB[0-9]{2})[A-Z]{4}\d{14}$/, - GE: /^(GE[0-9]{2})[A-Z0-9]{2}\d{16}$/, - GI: /^(GI[0-9]{2})[A-Z]{4}[A-Z0-9]{15}$/, - GL: /^(GL[0-9]{2})\d{14}$/, - GR: /^(GR[0-9]{2})\d{7}[A-Z0-9]{16}$/, - GT: /^(GT[0-9]{2})[A-Z0-9]{4}[A-Z0-9]{20}$/, - HR: /^(HR[0-9]{2})\d{17}$/, - HU: /^(HU[0-9]{2})\d{24}$/, - IE: /^(IE[0-9]{2})[A-Z0-9]{4}\d{14}$/, - IL: /^(IL[0-9]{2})\d{19}$/, - IQ: /^(IQ[0-9]{2})[A-Z]{4}\d{15}$/, - IS: /^(IS[0-9]{2})\d{22}$/, - IT: /^(IT[0-9]{2})[A-Z]{1}\d{10}[A-Z0-9]{12}$/, - JO: /^(JO[0-9]{2})[A-Z]{4}\d{22}$/, - KW: /^(KW[0-9]{2})[A-Z]{4}[A-Z0-9]{22}$/, - KZ: /^(KZ[0-9]{2})\d{3}[A-Z0-9]{13}$/, - LB: /^(LB[0-9]{2})\d{4}[A-Z0-9]{20}$/, - LC: /^(LC[0-9]{2})[A-Z]{4}[A-Z0-9]{24}$/, - LI: /^(LI[0-9]{2})\d{5}[A-Z0-9]{12}$/, - LT: /^(LT[0-9]{2})\d{16}$/, - LU: /^(LU[0-9]{2})\d{3}[A-Z0-9]{13}$/, - LV: /^(LV[0-9]{2})[A-Z]{4}[A-Z0-9]{13}$/, - MC: /^(MC[0-9]{2})\d{10}[A-Z0-9]{11}\d{2}$/, - MD: /^(MD[0-9]{2})[A-Z0-9]{20}$/, - ME: /^(ME[0-9]{2})\d{18}$/, - MK: /^(MK[0-9]{2})\d{3}[A-Z0-9]{10}\d{2}$/, - MR: /^(MR[0-9]{2})\d{23}$/, - MT: /^(MT[0-9]{2})[A-Z]{4}\d{5}[A-Z0-9]{18}$/, - MU: /^(MU[0-9]{2})[A-Z]{4}\d{19}[A-Z]{3}$/, - NL: /^(NL[0-9]{2})[A-Z]{4}\d{10}$/, - NO: /^(NO[0-9]{2})\d{11}$/, - PK: /^(PK[0-9]{2})[A-Z0-9]{4}\d{16}$/, - PL: /^(PL[0-9]{2})\d{24}$/, - PS: /^(PS[0-9]{2})[A-Z0-9]{4}\d{21}$/, - PT: /^(PT[0-9]{2})\d{21}$/, - QA: /^(QA[0-9]{2})[A-Z]{4}[A-Z0-9]{21}$/, - RO: /^(RO[0-9]{2})[A-Z]{4}[A-Z0-9]{16}$/, - RS: /^(RS[0-9]{2})\d{18}$/, - SA: /^(SA[0-9]{2})\d{2}[A-Z0-9]{18}$/, - SC: /^(SC[0-9]{2})[A-Z]{4}\d{20}[A-Z]{3}$/, - SE: /^(SE[0-9]{2})\d{20}$/, - SI: /^(SI[0-9]{2})\d{15}$/, - SK: /^(SK[0-9]{2})\d{20}$/, - SM: /^(SM[0-9]{2})[A-Z]{1}\d{10}[A-Z0-9]{12}$/, - TL: /^(TL[0-9]{2})\d{19}$/, - TN: /^(TN[0-9]{2})\d{20}$/, - TR: /^(TR[0-9]{2})\d{5}[A-Z0-9]{17}$/, - UA: /^(UA[0-9]{2})\d{6}[A-Z0-9]{19}$/, - VA: /^(VA[0-9]{2})\d{18}$/, - VG: /^(VG[0-9]{2})[A-Z0-9]{4}\d{16}$/, - XK: /^(XK[0-9]{2})\d{16}$/ -}; -/** - * Check whether string has correct universal IBAN format - * The IBAN consists of up to 34 alphanumeric characters, as follows: - * Country Code using ISO 3166-1 alpha-2, two letters - * check digits, two digits and - * Basic Bank Account Number (BBAN), up to 30 alphanumeric characters. - * NOTE: Permitted IBAN characters are: digits [0-9] and the 26 latin alphabetic [A-Z] - * - * @param {string} str - string under validation - * @return {boolean} - */ - -function hasValidIbanFormat(str) { - // Strip white spaces and hyphens - var strippedStr = str.replace(/[\s\-]+/gi, '').toUpperCase(); - var isoCountryCode = strippedStr.slice(0, 2).toUpperCase(); - return isoCountryCode in ibanRegexThroughCountryCode && ibanRegexThroughCountryCode[isoCountryCode].test(strippedStr); -} -/** - * Check whether string has valid IBAN Checksum - * by performing basic mod-97 operation and - * the remainder should equal 1 - * -- Start by rearranging the IBAN by moving the four initial characters to the end of the string - * -- Replace each letter in the string with two digits, A -> 10, B = 11, Z = 35 - * -- Interpret the string as a decimal integer and - * -- compute the remainder on division by 97 (mod 97) - * Reference: https://en.wikipedia.org/wiki/International_Bank_Account_Number - * - * @param {string} str - * @return {boolean} - */ - - -function hasValidIbanChecksum(str) { - var strippedStr = str.replace(/[^A-Z0-9]+/gi, '').toUpperCase(); // Keep only digits and A-Z latin alphabetic - - var rearranged = strippedStr.slice(4) + strippedStr.slice(0, 4); - var alphaCapsReplacedWithDigits = rearranged.replace(/[A-Z]/g, function (_char) { - return _char.charCodeAt(0) - 55; - }); - var remainder = alphaCapsReplacedWithDigits.match(/\d{1,7}/g).reduce(function (acc, value) { - return Number(acc + value) % 97; - }, ''); - return remainder === 1; -} - -function isIBAN(str) { - assertString(str); - return hasValidIbanFormat(str) && hasValidIbanChecksum(str); -} - -var isBICReg = /^[A-z]{4}[A-z]{2}\w{2}(\w{3})?$/; -function isBIC(str) { - assertString(str); - return isBICReg.test(str); -} - -var md5 = /^[a-f0-9]{32}$/; -function isMD5(str) { - assertString(str); - return md5.test(str); -} - -var lengths = { - md5: 32, - md4: 32, - sha1: 40, - sha256: 64, - sha384: 96, - sha512: 128, - ripemd128: 32, - ripemd160: 40, - tiger128: 32, - tiger160: 40, - tiger192: 48, - crc32: 8, - crc32b: 8 -}; -function isHash(str, algorithm) { - assertString(str); - var hash = new RegExp("^[a-fA-F0-9]{".concat(lengths[algorithm], "}$")); - return hash.test(str); -} - -var jwt = /^([A-Za-z0-9\-_~+\/]+[=]{0,2})\.([A-Za-z0-9\-_~+\/]+[=]{0,2})(?:\.([A-Za-z0-9\-_~+\/]+[=]{0,2}))?$/; -function isJWT(str) { - assertString(str); - return jwt.test(str); -} - -function isJSON(str) { - assertString(str); - - try { - var obj = JSON.parse(str); - return !!obj && _typeof(obj) === 'object'; - } catch (e) { - /* ignore */ - } - - return false; -} - -var default_is_empty_options = { - ignore_whitespace: false -}; -function isEmpty(str, options) { - assertString(str); - options = merge(options, default_is_empty_options); - return (options.ignore_whitespace ? str.trim().length : str.length) === 0; -} - -/* eslint-disable prefer-rest-params */ - -function isLength(str, options) { - assertString(str); - var min; - var max; - - if (_typeof(options) === 'object') { - min = options.min || 0; - max = options.max; - } else { - // backwards compatibility: isLength(str, min [, max]) - min = arguments[1] || 0; - max = arguments[2]; - } - - var surrogatePairs = str.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g) || []; - var len = str.length - surrogatePairs.length; - return len >= min && (typeof max === 'undefined' || len <= max); -} - -var uuid = { - 3: /^[0-9A-F]{8}-[0-9A-F]{4}-3[0-9A-F]{3}-[0-9A-F]{4}-[0-9A-F]{12}$/i, - 4: /^[0-9A-F]{8}-[0-9A-F]{4}-4[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i, - 5: /^[0-9A-F]{8}-[0-9A-F]{4}-5[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i, - all: /^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i -}; -function isUUID(str) { - var version = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'all'; - assertString(str); - var pattern = uuid[version]; - return pattern && pattern.test(str); -} - -function isMongoId(str) { - assertString(str); - return isHexadecimal(str) && str.length === 24; -} - -function isAfter(str) { - var date = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : String(new Date()); - assertString(str); - var comparison = toDate(date); - var original = toDate(str); - return !!(original && comparison && original > comparison); -} - -function isBefore(str) { - var date = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : String(new Date()); - assertString(str); - var comparison = toDate(date); - var original = toDate(str); - return !!(original && comparison && original < comparison); -} - -function isIn(str, options) { - assertString(str); - var i; - - if (Object.prototype.toString.call(options) === '[object Array]') { - var array = []; - - for (i in options) { - // https://github.com/gotwarlost/istanbul/blob/master/ignoring-code-for-coverage.md#ignoring-code-for-coverage-purposes - // istanbul ignore else - if ({}.hasOwnProperty.call(options, i)) { - array[i] = toString$1(options[i]); - } - } - - return array.indexOf(str) >= 0; - } else if (_typeof(options) === 'object') { - return options.hasOwnProperty(str); - } else if (options && typeof options.indexOf === 'function') { - return options.indexOf(str) >= 0; - } - - return false; -} - -/* eslint-disable max-len */ - -var creditCard = /^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|(222[1-9]|22[3-9][0-9]|2[3-6][0-9]{2}|27[01][0-9]|2720)[0-9]{12}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11}|6[27][0-9]{14})$/; -/* eslint-enable max-len */ - -function isCreditCard(str) { - assertString(str); - var sanitized = str.replace(/[- ]+/g, ''); - - if (!creditCard.test(sanitized)) { - return false; - } - - var sum = 0; - var digit; - var tmpNum; - var shouldDouble; - - for (var i = sanitized.length - 1; i >= 0; i--) { - digit = sanitized.substring(i, i + 1); - tmpNum = parseInt(digit, 10); - - if (shouldDouble) { - tmpNum *= 2; - - if (tmpNum >= 10) { - sum += tmpNum % 10 + 1; - } else { - sum += tmpNum; - } - } else { - sum += tmpNum; - } - - shouldDouble = !shouldDouble; - } - - return !!(sum % 10 === 0 ? sanitized : false); -} - -var validators = { - ES: function ES(str) { - assertString(str); - var DNI = /^[0-9X-Z][0-9]{7}[TRWAGMYFPDXBNJZSQVHLCKE]$/; - var charsValue = { - X: 0, - Y: 1, - Z: 2 - }; - var controlDigits = ['T', 'R', 'W', 'A', 'G', 'M', 'Y', 'F', 'P', 'D', 'X', 'B', 'N', 'J', 'Z', 'S', 'Q', 'V', 'H', 'L', 'C', 'K', 'E']; // sanitize user input - - var sanitized = str.trim().toUpperCase(); // validate the data structure - - if (!DNI.test(sanitized)) { - return false; - } // validate the control digit - - - var number = sanitized.slice(0, -1).replace(/[X,Y,Z]/g, function (_char) { - return charsValue[_char]; - }); - return sanitized.endsWith(controlDigits[number % 23]); - }, - 'he-IL': function heIL(str) { - var DNI = /^\d{9}$/; // sanitize user input - - var sanitized = str.trim(); // validate the data structure - - if (!DNI.test(sanitized)) { - return false; - } - - var id = sanitized; - var sum = 0, - incNum; - - for (var i = 0; i < id.length; i++) { - incNum = Number(id[i]) * (i % 2 + 1); // Multiply number by 1 or 2 - - sum += incNum > 9 ? incNum - 9 : incNum; // Sum the digits up and add to total - } - - return sum % 10 === 0; - }, - 'zh-TW': function zhTW(str) { - var ALPHABET_CODES = { - A: 10, - B: 11, - C: 12, - D: 13, - E: 14, - F: 15, - G: 16, - H: 17, - I: 34, - J: 18, - K: 19, - L: 20, - M: 21, - N: 22, - O: 35, - P: 23, - Q: 24, - R: 25, - S: 26, - T: 27, - U: 28, - V: 29, - W: 32, - X: 30, - Y: 31, - Z: 33 - }; - var sanitized = str.trim().toUpperCase(); - if (!/^[A-Z][0-9]{9}$/.test(sanitized)) return false; - return Array.from(sanitized).reduce(function (sum, number, index) { - if (index === 0) { - var code = ALPHABET_CODES[number]; - return code % 10 * 9 + Math.floor(code / 10); - } - - if (index === 9) { - return (10 - sum % 10 - Number(number)) % 10 === 0; - } - - return sum + Number(number) * (9 - index); - }, 0); - } -}; -function isIdentityCard(str, locale) { - assertString(str); - - if (locale in validators) { - return validators[locale](str); - } else if (locale === 'any') { - for (var key in validators) { - // https://github.com/gotwarlost/istanbul/blob/master/ignoring-code-for-coverage.md#ignoring-code-for-coverage-purposes - // istanbul ignore else - if (validators.hasOwnProperty(key)) { - var validator = validators[key]; - - if (validator(str)) { - return true; - } - } - } - - return false; - } - - throw new Error("Invalid locale '".concat(locale, "'")); -} - -/** - * The most commonly used EAN standard is - * the thirteen-digit EAN-13, while the - * less commonly used 8-digit EAN-8 barcode was - * introduced for use on small packages. - * EAN consists of: - * GS1 prefix, manufacturer code, product code and check digit - * Reference: https://en.wikipedia.org/wiki/International_Article_Number - */ -/** - * Define EAN Lenghts; 8 for EAN-8; 13 for EAN-13 - * and Regular Expression for valid EANs (EAN-8, EAN-13), - * with exact numberic matching of 8 or 13 digits [0-9] - */ - -var LENGTH_EAN_8 = 8; -var validEanRegex = /^(\d{8}|\d{13})$/; -/** - * Get position weight given: - * EAN length and digit index/position - * - * @param {number} length - * @param {number} index - * @return {number} - */ - -function getPositionWeightThroughLengthAndIndex(length, index) { - if (length === LENGTH_EAN_8) { - return index % 2 === 0 ? 3 : 1; - } - - return index % 2 === 0 ? 1 : 3; -} -/** - * Calculate EAN Check Digit - * Reference: https://en.wikipedia.org/wiki/International_Article_Number#Calculation_of_checksum_digit - * - * @param {string} ean - * @return {number} - */ - - -function calculateCheckDigit(ean) { - var checksum = ean.slice(0, -1).split('').map(function (_char, index) { - return Number(_char) * getPositionWeightThroughLengthAndIndex(ean.length, index); - }).reduce(function (acc, partialSum) { - return acc + partialSum; - }, 0); - var remainder = 10 - checksum % 10; - return remainder < 10 ? remainder : 0; -} -/** - * Check if string is valid EAN: - * Matches EAN-8/EAN-13 regex - * Has valid check digit. - * - * @param {string} str - * @return {boolean} - */ - - -function isEAN(str) { - assertString(str); - var actualCheckDigit = Number(str.slice(-1)); - return validEanRegex.test(str) && actualCheckDigit === calculateCheckDigit(str); -} - -var isin = /^[A-Z]{2}[0-9A-Z]{9}[0-9]$/; -function isISIN(str) { - assertString(str); - - if (!isin.test(str)) { - return false; - } - - var checksumStr = str.replace(/[A-Z]/g, function (character) { - return parseInt(character, 36); - }); - var sum = 0; - var digit; - var tmpNum; - var shouldDouble = true; - - for (var i = checksumStr.length - 2; i >= 0; i--) { - digit = checksumStr.substring(i, i + 1); - tmpNum = parseInt(digit, 10); - - if (shouldDouble) { - tmpNum *= 2; - - if (tmpNum >= 10) { - sum += tmpNum + 1; - } else { - sum += tmpNum; - } - } else { - sum += tmpNum; - } - - shouldDouble = !shouldDouble; - } - - return parseInt(str.substr(str.length - 1), 10) === (10000 - sum) % 10; -} - -var isbn10Maybe = /^(?:[0-9]{9}X|[0-9]{10})$/; -var isbn13Maybe = /^(?:[0-9]{13})$/; -var factor = [1, 3]; -function isISBN(str) { - var version = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ''; - assertString(str); - version = String(version); - - if (!version) { - return isISBN(str, 10) || isISBN(str, 13); - } - - var sanitized = str.replace(/[\s-]+/g, ''); - var checksum = 0; - var i; - - if (version === '10') { - if (!isbn10Maybe.test(sanitized)) { - return false; - } - - for (i = 0; i < 9; i++) { - checksum += (i + 1) * sanitized.charAt(i); - } - - if (sanitized.charAt(9) === 'X') { - checksum += 10 * 10; - } else { - checksum += 10 * sanitized.charAt(9); - } - - if (checksum % 11 === 0) { - return !!sanitized; - } - } else if (version === '13') { - if (!isbn13Maybe.test(sanitized)) { - return false; - } - - for (i = 0; i < 12; i++) { - checksum += factor[i % 2] * sanitized.charAt(i); - } - - if (sanitized.charAt(12) - (10 - checksum % 10) % 10 === 0) { - return !!sanitized; - } - } - - return false; -} - -var issn = '^\\d{4}-?\\d{3}[\\dX]$'; -function isISSN(str) { - var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - assertString(str); - var testIssn = issn; - testIssn = options.require_hyphen ? testIssn.replace('?', '') : testIssn; - testIssn = options.case_sensitive ? new RegExp(testIssn) : new RegExp(testIssn, 'i'); - - if (!testIssn.test(str)) { - return false; - } - - var digits = str.replace('-', '').toUpperCase(); - var checksum = 0; - - for (var i = 0; i < digits.length; i++) { - var digit = digits[i]; - checksum += (digit === 'X' ? 10 : +digit) * (8 - i); - } - - return checksum % 11 === 0; -} - -/* eslint-disable max-len */ - -var phones = { - 'am-AM': /^(\+?374|0)((10|[9|7][0-9])\d{6}$|[2-4]\d{7}$)/, - 'ar-AE': /^((\+?971)|0)?5[024568]\d{7}$/, - 'ar-BH': /^(\+?973)?(3|6)\d{7}$/, - 'ar-DZ': /^(\+?213|0)(5|6|7)\d{8}$/, - 'ar-EG': /^((\+?20)|0)?1[0125]\d{8}$/, - 'ar-IQ': /^(\+?964|0)?7[0-9]\d{8}$/, - 'ar-JO': /^(\+?962|0)?7[789]\d{7}$/, - 'ar-KW': /^(\+?965)[569]\d{7}$/, - 'ar-SA': /^(!?(\+?966)|0)?5\d{8}$/, - 'ar-SY': /^(!?(\+?963)|0)?9\d{8}$/, - 'ar-TN': /^(\+?216)?[2459]\d{7}$/, - 'be-BY': /^(\+?375)?(24|25|29|33|44)\d{7}$/, - 'bg-BG': /^(\+?359|0)?8[789]\d{7}$/, - 'bn-BD': /^(\+?880|0)1[13456789][0-9]{8}$/, - 'cs-CZ': /^(\+?420)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$/, - 'da-DK': /^(\+?45)?\s?\d{2}\s?\d{2}\s?\d{2}\s?\d{2}$/, - 'de-DE': /^(\+49)?0?1(5[0-25-9]\d|6([23]|0\d?)|7([0-57-9]|6\d))\d{7}$/, - 'de-AT': /^(\+43|0)\d{1,4}\d{3,12}$/, - 'el-GR': /^(\+?30|0)?(69\d{8})$/, - 'en-AU': /^(\+?61|0)4\d{8}$/, - 'en-GB': /^(\+?44|0)7\d{9}$/, - 'en-GG': /^(\+?44|0)1481\d{6}$/, - 'en-GH': /^(\+233|0)(20|50|24|54|27|57|26|56|23|28)\d{7}$/, - 'en-HK': /^(\+?852[-\s]?)?[456789]\d{3}[-\s]?\d{4}$/, - 'en-MO': /^(\+?853[-\s]?)?[6]\d{3}[-\s]?\d{4}$/, - 'en-IE': /^(\+?353|0)8[356789]\d{7}$/, - 'en-IN': /^(\+?91|0)?[6789]\d{9}$/, - 'en-KE': /^(\+?254|0)(7|1)\d{8}$/, - 'en-MT': /^(\+?356|0)?(99|79|77|21|27|22|25)[0-9]{6}$/, - 'en-MU': /^(\+?230|0)?\d{8}$/, - 'en-NG': /^(\+?234|0)?[789]\d{9}$/, - 'en-NZ': /^(\+?64|0)[28]\d{7,9}$/, - 'en-PK': /^((\+92)|(0092))-{0,1}\d{3}-{0,1}\d{7}$|^\d{11}$|^\d{4}-\d{7}$/, - 'en-RW': /^(\+?250|0)?[7]\d{8}$/, - 'en-SG': /^(\+65)?[89]\d{7}$/, - 'en-TZ': /^(\+?255|0)?[67]\d{8}$/, - 'en-UG': /^(\+?256|0)?[7]\d{8}$/, - 'en-US': /^((\+1|1)?( |-)?)?(\([2-9][0-9]{2}\)|[2-9][0-9]{2})( |-)?([2-9][0-9]{2}( |-)?[0-9]{4})$/, - 'en-ZA': /^(\+?27|0)\d{9}$/, - 'en-ZM': /^(\+?26)?09[567]\d{7}$/, - 'es-CL': /^(\+?56|0)[2-9]\d{1}\d{7}$/, - 'es-EC': /^(\+?593|0)([2-7]|9[2-9])\d{7}$/, - 'es-ES': /^(\+?34)?(6\d{1}|7[1234])\d{7}$/, - 'es-MX': /^(\+?52)?(1|01)?\d{10,11}$/, - 'es-PA': /^(\+?507)\d{7,8}$/, - 'es-PY': /^(\+?595|0)9[9876]\d{7}$/, - 'es-UY': /^(\+598|0)9[1-9][\d]{6}$/, - 'et-EE': /^(\+?372)?\s?(5|8[1-4])\s?([0-9]\s?){6,7}$/, - 'fa-IR': /^(\+?98[\-\s]?|0)9[0-39]\d[\-\s]?\d{3}[\-\s]?\d{4}$/, - 'fi-FI': /^(\+?358|0)\s?(4(0|1|2|4|5|6)?|50)\s?(\d\s?){4,8}\d$/, - 'fj-FJ': /^(\+?679)?\s?\d{3}\s?\d{4}$/, - 'fo-FO': /^(\+?298)?\s?\d{2}\s?\d{2}\s?\d{2}$/, - 'fr-FR': /^(\+?33|0)[67]\d{8}$/, - 'fr-GF': /^(\+?594|0|00594)[67]\d{8}$/, - 'fr-GP': /^(\+?590|0|00590)[67]\d{8}$/, - 'fr-MQ': /^(\+?596|0|00596)[67]\d{8}$/, - 'fr-RE': /^(\+?262|0|00262)[67]\d{8}$/, - 'he-IL': /^(\+972|0)([23489]|5[012345689]|77)[1-9]\d{6}$/, - 'hu-HU': /^(\+?36)(20|30|70)\d{7}$/, - 'id-ID': /^(\+?62|0)8(1[123456789]|2[1238]|3[1238]|5[12356789]|7[78]|9[56789]|8[123456789])([\s?|\d]{5,11})$/, - 'it-IT': /^(\+?39)?\s?3\d{2} ?\d{6,7}$/, - 'ja-JP': /^(\+81[ \-]?(\(0\))?|0)[6789]0[ \-]?\d{4}[ \-]?\d{4}$/, - 'kk-KZ': /^(\+?7|8)?7\d{9}$/, - 'kl-GL': /^(\+?299)?\s?\d{2}\s?\d{2}\s?\d{2}$/, - 'ko-KR': /^((\+?82)[ \-]?)?0?1([0|1|6|7|8|9]{1})[ \-]?\d{3,4}[ \-]?\d{4}$/, - 'lt-LT': /^(\+370|8)\d{8}$/, - 'ms-MY': /^(\+?6?01){1}(([0145]{1}(\-|\s)?\d{7,8})|([236789]{1}(\s|\-)?\d{7}))$/, - 'nb-NO': /^(\+?47)?[49]\d{7}$/, - 'ne-NP': /^(\+?977)?9[78]\d{8}$/, - 'nl-BE': /^(\+?32|0)4?\d{8}$/, - 'nl-NL': /^(\+?31|0)6?\d{8}$/, - 'nn-NO': /^(\+?47)?[49]\d{7}$/, - 'pl-PL': /^(\+?48)? ?[5-8]\d ?\d{3} ?\d{2} ?\d{2}$/, - 'pt-BR': /(?=^(\+?5{2}\-?|0)[1-9]{2}\-?\d{4}\-?\d{4}$)(^(\+?5{2}\-?|0)[1-9]{2}\-?[6-9]{1}\d{3}\-?\d{4}$)|(^(\+?5{2}\-?|0)[1-9]{2}\-?9[6-9]{1}\d{3}\-?\d{4}$)/, - 'pt-PT': /^(\+?351)?9[1236]\d{7}$/, - 'ro-RO': /^(\+?4?0)\s?7\d{2}(\/|\s|\.|\-)?\d{3}(\s|\.|\-)?\d{3}$/, - 'ru-RU': /^(\+?7|8)?9\d{9}$/, - 'sl-SI': /^(\+386\s?|0)(\d{1}\s?\d{3}\s?\d{2}\s?\d{2}|\d{2}\s?\d{3}\s?\d{3})$/, - 'sk-SK': /^(\+?421)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$/, - 'sr-RS': /^(\+3816|06)[- \d]{5,9}$/, - 'sv-SE': /^(\+?46|0)[\s\-]?7[\s\-]?[02369]([\s\-]?\d){7}$/, - 'th-TH': /^(\+66|66|0)\d{9}$/, - 'tr-TR': /^(\+?90|0)?5\d{9}$/, - 'uk-UA': /^(\+?38|8)?0\d{9}$/, - 'vi-VN': /^(\+?84|0)((3([2-9]))|(5([2689]))|(7([0|6-9]))|(8([1-6|89]))|(9([0-9])))([0-9]{7})$/, - 'zh-CN': /^((\+|00)86)?1([358][0-9]|4[579]|6[67]|7[01235678]|9[189])[0-9]{8}$/, - 'zh-TW': /^(\+?886\-?|0)?9\d{8}$/ -}; -/* eslint-enable max-len */ -// aliases - -phones['en-CA'] = phones['en-US']; -phones['fr-BE'] = phones['nl-BE']; -phones['zh-HK'] = phones['en-HK']; -phones['zh-MO'] = phones['en-MO']; -function isMobilePhone(str, locale, options) { - assertString(str); - - if (options && options.strictMode && !str.startsWith('+')) { - return false; - } - - if (Array.isArray(locale)) { - return locale.some(function (key) { - // https://github.com/gotwarlost/istanbul/blob/master/ignoring-code-for-coverage.md#ignoring-code-for-coverage-purposes - // istanbul ignore else - if (phones.hasOwnProperty(key)) { - var phone = phones[key]; - - if (phone.test(str)) { - return true; - } - } - - return false; - }); - } else if (locale in phones) { - return phones[locale].test(str); // alias falsey locale as 'any' - } else if (!locale || locale === 'any') { - for (var key in phones) { - // istanbul ignore else - if (phones.hasOwnProperty(key)) { - var phone = phones[key]; - - if (phone.test(str)) { - return true; - } - } - } - - return false; - } - - throw new Error("Invalid locale '".concat(locale, "'")); -} -var locales$3 = Object.keys(phones); - -var eth = /^(0x)[0-9a-f]{40}$/i; -function isEthereumAddress(str) { - assertString(str); - return eth.test(str); -} - -function currencyRegex(options) { - var decimal_digits = "\\d{".concat(options.digits_after_decimal[0], "}"); - options.digits_after_decimal.forEach(function (digit, index) { - if (index !== 0) decimal_digits = "".concat(decimal_digits, "|\\d{").concat(digit, "}"); - }); - var symbol = "(\\".concat(options.symbol.replace(/\./g, '\\.'), ")").concat(options.require_symbol ? '' : '?'), - negative = '-?', - whole_dollar_amount_without_sep = '[1-9]\\d*', - whole_dollar_amount_with_sep = "[1-9]\\d{0,2}(\\".concat(options.thousands_separator, "\\d{3})*"), - valid_whole_dollar_amounts = ['0', whole_dollar_amount_without_sep, whole_dollar_amount_with_sep], - whole_dollar_amount = "(".concat(valid_whole_dollar_amounts.join('|'), ")?"), - decimal_amount = "(\\".concat(options.decimal_separator, "(").concat(decimal_digits, "))").concat(options.require_decimal ? '' : '?'); - var pattern = whole_dollar_amount + (options.allow_decimal || options.require_decimal ? decimal_amount : ''); // default is negative sign before symbol, but there are two other options (besides parens) - - if (options.allow_negatives && !options.parens_for_negatives) { - if (options.negative_sign_after_digits) { - pattern += negative; - } else if (options.negative_sign_before_digits) { - pattern = negative + pattern; - } - } // South African Rand, for example, uses R 123 (space) and R-123 (no space) - - - if (options.allow_negative_sign_placeholder) { - pattern = "( (?!\\-))?".concat(pattern); - } else if (options.allow_space_after_symbol) { - pattern = " ?".concat(pattern); - } else if (options.allow_space_after_digits) { - pattern += '( (?!$))?'; - } - - if (options.symbol_after_digits) { - pattern += symbol; - } else { - pattern = symbol + pattern; - } - - if (options.allow_negatives) { - if (options.parens_for_negatives) { - pattern = "(\\(".concat(pattern, "\\)|").concat(pattern, ")"); - } else if (!(options.negative_sign_before_digits || options.negative_sign_after_digits)) { - pattern = negative + pattern; - } - } // ensure there's a dollar and/or decimal amount, and that - // it doesn't start with a space or a negative sign followed by a space - - - return new RegExp("^(?!-? )(?=.*\\d)".concat(pattern, "$")); -} - -var default_currency_options = { - symbol: '$', - require_symbol: false, - allow_space_after_symbol: false, - symbol_after_digits: false, - allow_negatives: true, - parens_for_negatives: false, - negative_sign_before_digits: false, - negative_sign_after_digits: false, - allow_negative_sign_placeholder: false, - thousands_separator: ',', - decimal_separator: '.', - allow_decimal: true, - require_decimal: false, - digits_after_decimal: [2], - allow_space_after_digits: false -}; -function isCurrency(str, options) { - assertString(str); - options = merge(options, default_currency_options); - return currencyRegex(options).test(str); -} - -var btc = /^(bc1|[13])[a-zA-HJ-NP-Z0-9]{25,39}$/; -function isBtcAddress(str) { - assertString(str); - return btc.test(str); -} - -/* eslint-disable max-len */ -// from http://goo.gl/0ejHHW - -var iso8601 = /^([\+-]?\d{4}(?!\d{2}\b))((-?)((0[1-9]|1[0-2])(\3([12]\d|0[1-9]|3[01]))?|W([0-4]\d|5[0-3])(-?[1-7])?|(00[1-9]|0[1-9]\d|[12]\d{2}|3([0-5]\d|6[1-6])))([T\s]((([01]\d|2[0-3])((:?)[0-5]\d)?|24:?00)([\.,]\d+(?!:))?)?(\17[0-5]\d([\.,]\d+)?)?([zZ]|([\+-])([01]\d|2[0-3]):?([0-5]\d)?)?)?)?$/; -/* eslint-enable max-len */ - -var isValidDate = function isValidDate(str) { - // str must have passed the ISO8601 check - // this check is meant to catch invalid dates - // like 2009-02-31 - // first check for ordinal dates - var ordinalMatch = str.match(/^(\d{4})-?(\d{3})([ T]{1}\.*|$)/); - - if (ordinalMatch) { - var oYear = Number(ordinalMatch[1]); - var oDay = Number(ordinalMatch[2]); // if is leap year - - if (oYear % 4 === 0 && oYear % 100 !== 0 || oYear % 400 === 0) return oDay <= 366; - return oDay <= 365; - } - - var match = str.match(/(\d{4})-?(\d{0,2})-?(\d*)/).map(Number); - var year = match[1]; - var month = match[2]; - var day = match[3]; - var monthString = month ? "0".concat(month).slice(-2) : month; - var dayString = day ? "0".concat(day).slice(-2) : day; // create a date object and compare - - var d = new Date("".concat(year, "-").concat(monthString || '01', "-").concat(dayString || '01')); - - if (month && day) { - return d.getUTCFullYear() === year && d.getUTCMonth() + 1 === month && d.getUTCDate() === day; - } - - return true; -}; - -function isISO8601(str, options) { - assertString(str); - var check = iso8601.test(str); - if (!options) return check; - if (check && options.strict) return isValidDate(str); - return check; -} - -/* Based on https://tools.ietf.org/html/rfc3339#section-5.6 */ - -var dateFullYear = /[0-9]{4}/; -var dateMonth = /(0[1-9]|1[0-2])/; -var dateMDay = /([12]\d|0[1-9]|3[01])/; -var timeHour = /([01][0-9]|2[0-3])/; -var timeMinute = /[0-5][0-9]/; -var timeSecond = /([0-5][0-9]|60)/; -var timeSecFrac = /(\.[0-9]+)?/; -var timeNumOffset = new RegExp("[-+]".concat(timeHour.source, ":").concat(timeMinute.source)); -var timeOffset = new RegExp("([zZ]|".concat(timeNumOffset.source, ")")); -var partialTime = new RegExp("".concat(timeHour.source, ":").concat(timeMinute.source, ":").concat(timeSecond.source).concat(timeSecFrac.source)); -var fullDate = new RegExp("".concat(dateFullYear.source, "-").concat(dateMonth.source, "-").concat(dateMDay.source)); -var fullTime = new RegExp("".concat(partialTime.source).concat(timeOffset.source)); -var rfc3339 = new RegExp("".concat(fullDate.source, "[ tT]").concat(fullTime.source)); -function isRFC3339(str) { - assertString(str); - return rfc3339.test(str); -} - -var validISO31661Alpha2CountriesCodes = ['AD', 'AE', 'AF', 'AG', 'AI', 'AL', 'AM', 'AO', 'AQ', 'AR', 'AS', 'AT', 'AU', 'AW', 'AX', 'AZ', 'BA', 'BB', 'BD', 'BE', 'BF', 'BG', 'BH', 'BI', 'BJ', 'BL', 'BM', 'BN', 'BO', 'BQ', 'BR', 'BS', 'BT', 'BV', 'BW', 'BY', 'BZ', 'CA', 'CC', 'CD', 'CF', 'CG', 'CH', 'CI', 'CK', 'CL', 'CM', 'CN', 'CO', 'CR', 'CU', 'CV', 'CW', 'CX', 'CY', 'CZ', 'DE', 'DJ', 'DK', 'DM', 'DO', 'DZ', 'EC', 'EE', 'EG', 'EH', 'ER', 'ES', 'ET', 'FI', 'FJ', 'FK', 'FM', 'FO', 'FR', 'GA', 'GB', 'GD', 'GE', 'GF', 'GG', 'GH', 'GI', 'GL', 'GM', 'GN', 'GP', 'GQ', 'GR', 'GS', 'GT', 'GU', 'GW', 'GY', 'HK', 'HM', 'HN', 'HR', 'HT', 'HU', 'ID', 'IE', 'IL', 'IM', 'IN', 'IO', 'IQ', 'IR', 'IS', 'IT', 'JE', 'JM', 'JO', 'JP', 'KE', 'KG', 'KH', 'KI', 'KM', 'KN', 'KP', 'KR', 'KW', 'KY', 'KZ', 'LA', 'LB', 'LC', 'LI', 'LK', 'LR', 'LS', 'LT', 'LU', 'LV', 'LY', 'MA', 'MC', 'MD', 'ME', 'MF', 'MG', 'MH', 'MK', 'ML', 'MM', 'MN', 'MO', 'MP', 'MQ', 'MR', 'MS', 'MT', 'MU', 'MV', 'MW', 'MX', 'MY', 'MZ', 'NA', 'NC', 'NE', 'NF', 'NG', 'NI', 'NL', 'NO', 'NP', 'NR', 'NU', 'NZ', 'OM', 'PA', 'PE', 'PF', 'PG', 'PH', 'PK', 'PL', 'PM', 'PN', 'PR', 'PS', 'PT', 'PW', 'PY', 'QA', 'RE', 'RO', 'RS', 'RU', 'RW', 'SA', 'SB', 'SC', 'SD', 'SE', 'SG', 'SH', 'SI', 'SJ', 'SK', 'SL', 'SM', 'SN', 'SO', 'SR', 'SS', 'ST', 'SV', 'SX', 'SY', 'SZ', 'TC', 'TD', 'TF', 'TG', 'TH', 'TJ', 'TK', 'TL', 'TM', 'TN', 'TO', 'TR', 'TT', 'TV', 'TW', 'TZ', 'UA', 'UG', 'UM', 'US', 'UY', 'UZ', 'VA', 'VC', 'VE', 'VG', 'VI', 'VN', 'VU', 'WF', 'WS', 'YE', 'YT', 'ZA', 'ZM', 'ZW']; -function isISO31661Alpha2(str) { - assertString(str); - return includes(validISO31661Alpha2CountriesCodes, str.toUpperCase()); -} - -var validISO31661Alpha3CountriesCodes = ['AFG', 'ALA', 'ALB', 'DZA', 'ASM', 'AND', 'AGO', 'AIA', 'ATA', 'ATG', 'ARG', 'ARM', 'ABW', 'AUS', 'AUT', 'AZE', 'BHS', 'BHR', 'BGD', 'BRB', 'BLR', 'BEL', 'BLZ', 'BEN', 'BMU', 'BTN', 'BOL', 'BES', 'BIH', 'BWA', 'BVT', 'BRA', 'IOT', 'BRN', 'BGR', 'BFA', 'BDI', 'KHM', 'CMR', 'CAN', 'CPV', 'CYM', 'CAF', 'TCD', 'CHL', 'CHN', 'CXR', 'CCK', 'COL', 'COM', 'COG', 'COD', 'COK', 'CRI', 'CIV', 'HRV', 'CUB', 'CUW', 'CYP', 'CZE', 'DNK', 'DJI', 'DMA', 'DOM', 'ECU', 'EGY', 'SLV', 'GNQ', 'ERI', 'EST', 'ETH', 'FLK', 'FRO', 'FJI', 'FIN', 'FRA', 'GUF', 'PYF', 'ATF', 'GAB', 'GMB', 'GEO', 'DEU', 'GHA', 'GIB', 'GRC', 'GRL', 'GRD', 'GLP', 'GUM', 'GTM', 'GGY', 'GIN', 'GNB', 'GUY', 'HTI', 'HMD', 'VAT', 'HND', 'HKG', 'HUN', 'ISL', 'IND', 'IDN', 'IRN', 'IRQ', 'IRL', 'IMN', 'ISR', 'ITA', 'JAM', 'JPN', 'JEY', 'JOR', 'KAZ', 'KEN', 'KIR', 'PRK', 'KOR', 'KWT', 'KGZ', 'LAO', 'LVA', 'LBN', 'LSO', 'LBR', 'LBY', 'LIE', 'LTU', 'LUX', 'MAC', 'MKD', 'MDG', 'MWI', 'MYS', 'MDV', 'MLI', 'MLT', 'MHL', 'MTQ', 'MRT', 'MUS', 'MYT', 'MEX', 'FSM', 'MDA', 'MCO', 'MNG', 'MNE', 'MSR', 'MAR', 'MOZ', 'MMR', 'NAM', 'NRU', 'NPL', 'NLD', 'NCL', 'NZL', 'NIC', 'NER', 'NGA', 'NIU', 'NFK', 'MNP', 'NOR', 'OMN', 'PAK', 'PLW', 'PSE', 'PAN', 'PNG', 'PRY', 'PER', 'PHL', 'PCN', 'POL', 'PRT', 'PRI', 'QAT', 'REU', 'ROU', 'RUS', 'RWA', 'BLM', 'SHN', 'KNA', 'LCA', 'MAF', 'SPM', 'VCT', 'WSM', 'SMR', 'STP', 'SAU', 'SEN', 'SRB', 'SYC', 'SLE', 'SGP', 'SXM', 'SVK', 'SVN', 'SLB', 'SOM', 'ZAF', 'SGS', 'SSD', 'ESP', 'LKA', 'SDN', 'SUR', 'SJM', 'SWZ', 'SWE', 'CHE', 'SYR', 'TWN', 'TJK', 'TZA', 'THA', 'TLS', 'TGO', 'TKL', 'TON', 'TTO', 'TUN', 'TUR', 'TKM', 'TCA', 'TUV', 'UGA', 'UKR', 'ARE', 'GBR', 'USA', 'UMI', 'URY', 'UZB', 'VUT', 'VEN', 'VNM', 'VGB', 'VIR', 'WLF', 'ESH', 'YEM', 'ZMB', 'ZWE']; -function isISO31661Alpha3(str) { - assertString(str); - return includes(validISO31661Alpha3CountriesCodes, str.toUpperCase()); -} - -var base32 = /^[A-Z2-7]+=*$/; -function isBase32(str) { - assertString(str); - var len = str.length; - - if (len > 0 && len % 8 === 0 && base32.test(str)) { - return true; - } - - return false; -} - -var notBase64 = /[^A-Z0-9+\/=]/i; -function isBase64(str) { - assertString(str); - var len = str.length; - - if (!len || len % 4 !== 0 || notBase64.test(str)) { - return false; - } - - var firstPaddingChar = str.indexOf('='); - return firstPaddingChar === -1 || firstPaddingChar === len - 1 || firstPaddingChar === len - 2 && str[len - 1] === '='; -} - -var validMediaType = /^[a-z]+\/[a-z0-9\-\+]+$/i; -var validAttribute = /^[a-z\-]+=[a-z0-9\-]+$/i; -var validData = /^[a-z0-9!\$&'\(\)\*\+,;=\-\._~:@\/\?%\s]*$/i; -function isDataURI(str) { - assertString(str); - var data = str.split(','); - - if (data.length < 2) { - return false; - } - - var attributes = data.shift().trim().split(';'); - var schemeAndMediaType = attributes.shift(); - - if (schemeAndMediaType.substr(0, 5) !== 'data:') { - return false; - } - - var mediaType = schemeAndMediaType.substr(5); - - if (mediaType !== '' && !validMediaType.test(mediaType)) { - return false; - } - - for (var i = 0; i < attributes.length; i++) { - if (i === attributes.length - 1 && attributes[i].toLowerCase() === 'base64') {// ok - } else if (!validAttribute.test(attributes[i])) { - return false; - } - } - - for (var _i = 0; _i < data.length; _i++) { - if (!validData.test(data[_i])) { - return false; - } - } - - return true; -} - -var magnetURI = /^magnet:\?xt=urn:[a-z0-9]+:[a-z0-9]{32,40}&dn=.+&tr=.+$/i; -function isMagnetURI(url) { - assertString(url); - return magnetURI.test(url.trim()); -} - -/* - Checks if the provided string matches to a correct Media type format (MIME type) - - This function only checks is the string format follows the - etablished rules by the according RFC specifications. - This function supports 'charset' in textual media types - (https://tools.ietf.org/html/rfc6657). - - This function does not check against all the media types listed - by the IANA (https://www.iana.org/assignments/media-types/media-types.xhtml) - because of lightness purposes : it would require to include - all these MIME types in this librairy, which would weigh it - significantly. This kind of effort maybe is not worth for the use that - this function has in this entire librairy. - - More informations in the RFC specifications : - - https://tools.ietf.org/html/rfc2045 - - https://tools.ietf.org/html/rfc2046 - - https://tools.ietf.org/html/rfc7231#section-3.1.1.1 - - https://tools.ietf.org/html/rfc7231#section-3.1.1.5 -*/ -// Match simple MIME types -// NB : -// Subtype length must not exceed 100 characters. -// This rule does not comply to the RFC specs (what is the max length ?). - -var mimeTypeSimple = /^(application|audio|font|image|message|model|multipart|text|video)\/[a-zA-Z0-9\.\-\+]{1,100}$/i; // eslint-disable-line max-len -// Handle "charset" in "text/*" - -var mimeTypeText = /^text\/[a-zA-Z0-9\.\-\+]{1,100};\s?charset=("[a-zA-Z0-9\.\-\+\s]{0,70}"|[a-zA-Z0-9\.\-\+]{0,70})(\s?\([a-zA-Z0-9\.\-\+\s]{1,20}\))?$/i; // eslint-disable-line max-len -// Handle "boundary" in "multipart/*" - -var mimeTypeMultipart = /^multipart\/[a-zA-Z0-9\.\-\+]{1,100}(;\s?(boundary|charset)=("[a-zA-Z0-9\.\-\+\s]{0,70}"|[a-zA-Z0-9\.\-\+]{0,70})(\s?\([a-zA-Z0-9\.\-\+\s]{1,20}\))?){0,2}$/i; // eslint-disable-line max-len - -function isMimeType(str) { - assertString(str); - return mimeTypeSimple.test(str) || mimeTypeText.test(str) || mimeTypeMultipart.test(str); -} - -var lat = /^\(?[+-]?(90(\.0+)?|[1-8]?\d(\.\d+)?)$/; -var _long = /^\s?[+-]?(180(\.0+)?|1[0-7]\d(\.\d+)?|\d{1,2}(\.\d+)?)\)?$/; -var isLatLong = function (str) { - assertString(str); - if (!str.includes(',')) return false; - var pair = str.split(','); - if (pair[0].startsWith('(') && !pair[1].endsWith(')') || pair[1].endsWith(')') && !pair[0].startsWith('(')) return false; - return lat.test(pair[0]) && _long.test(pair[1]); -}; - -var threeDigit = /^\d{3}$/; -var fourDigit = /^\d{4}$/; -var fiveDigit = /^\d{5}$/; -var sixDigit = /^\d{6}$/; -var patterns = { - AD: /^AD\d{3}$/, - AT: fourDigit, - AU: fourDigit, - BE: fourDigit, - BG: fourDigit, - BR: /^\d{5}-\d{3}$/, - CA: /^[ABCEGHJKLMNPRSTVXY]\d[ABCEGHJ-NPRSTV-Z][\s\-]?\d[ABCEGHJ-NPRSTV-Z]\d$/i, - CH: fourDigit, - CZ: /^\d{3}\s?\d{2}$/, - DE: fiveDigit, - DK: fourDigit, - DZ: fiveDigit, - EE: fiveDigit, - ES: fiveDigit, - FI: fiveDigit, - FR: /^\d{2}\s?\d{3}$/, - GB: /^(gir\s?0aa|[a-z]{1,2}\d[\da-z]?\s?(\d[a-z]{2})?)$/i, - GR: /^\d{3}\s?\d{2}$/, - HR: /^([1-5]\d{4}$)/, - HU: fourDigit, - ID: fiveDigit, - IE: /^(?!.*(?:o))[A-z]\d[\dw]\s\w{4}$/i, - IL: fiveDigit, - IN: /^((?!10|29|35|54|55|65|66|86|87|88|89)[1-9][0-9]{5})$/, - IS: threeDigit, - IT: fiveDigit, - JP: /^\d{3}\-\d{4}$/, - KE: fiveDigit, - LI: /^(948[5-9]|949[0-7])$/, - LT: /^LT\-\d{5}$/, - LU: fourDigit, - LV: /^LV\-\d{4}$/, - MX: fiveDigit, - MT: /^[A-Za-z]{3}\s{0,1}\d{4}$/, - NL: /^\d{4}\s?[a-z]{2}$/i, - NO: fourDigit, - NZ: fourDigit, - PL: /^\d{2}\-\d{3}$/, - PR: /^00[679]\d{2}([ -]\d{4})?$/, - PT: /^\d{4}\-\d{3}?$/, - RO: sixDigit, - RU: sixDigit, - SA: fiveDigit, - SE: /^[1-9]\d{2}\s?\d{2}$/, - SI: fourDigit, - SK: /^\d{3}\s?\d{2}$/, - TN: fourDigit, - TW: /^\d{3}(\d{2})?$/, - UA: fiveDigit, - US: /^\d{5}(-\d{4})?$/, - ZA: fourDigit, - ZM: fiveDigit -}; -var locales$4 = Object.keys(patterns); -var isPostalCode = function (str, locale) { - assertString(str); - - if (locale in patterns) { - return patterns[locale].test(str); - } else if (locale === 'any') { - for (var key in patterns) { - // https://github.com/gotwarlost/istanbul/blob/master/ignoring-code-for-coverage.md#ignoring-code-for-coverage-purposes - // istanbul ignore else - if (patterns.hasOwnProperty(key)) { - var pattern = patterns[key]; - - if (pattern.test(str)) { - return true; - } - } - } - - return false; - } - - throw new Error("Invalid locale '".concat(locale, "'")); -}; - -function ltrim(str, chars) { - assertString(str); // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions#Escaping - - var pattern = chars ? new RegExp("^[".concat(chars.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'), "]+"), 'g') : /^\s+/g; - return str.replace(pattern, ''); -} - -function rtrim(str, chars) { - assertString(str); // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions#Escaping - - var pattern = chars ? new RegExp("[".concat(chars.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'), "]+$"), 'g') : /\s+$/g; - return str.replace(pattern, ''); -} - -function trim(str, chars) { - return rtrim(ltrim(str, chars), chars); -} - -function escape(str) { - assertString(str); - return str.replace(/&/g, '&').replace(/"/g, '"').replace(/'/g, ''').replace(//g, '>').replace(/\//g, '/').replace(/\\/g, '\').replace(/`/g, '`'); -} - -function unescape(str) { - assertString(str); - return str.replace(/&/g, '&').replace(/"/g, '"').replace(/'/g, "'").replace(/</g, '<').replace(/>/g, '>').replace(///g, '/').replace(/\/g, '\\').replace(/`/g, '`'); -} - -function blacklist$1(str, chars) { - assertString(str); - return str.replace(new RegExp("[".concat(chars, "]+"), 'g'), ''); -} - -function stripLow(str, keep_new_lines) { - assertString(str); - var chars = keep_new_lines ? '\\x00-\\x09\\x0B\\x0C\\x0E-\\x1F\\x7F' : '\\x00-\\x1F\\x7F'; - return blacklist$1(str, chars); -} - -function whitelist(str, chars) { - assertString(str); - return str.replace(new RegExp("[^".concat(chars, "]+"), 'g'), ''); -} - -function isWhitelisted(str, chars) { - assertString(str); - - for (var i = str.length - 1; i >= 0; i--) { - if (chars.indexOf(str[i]) === -1) { - return false; - } - } - - return true; -} - -var default_normalize_email_options = { - // The following options apply to all email addresses - // Lowercases the local part of the email address. - // Please note this may violate RFC 5321 as per http://stackoverflow.com/a/9808332/192024). - // The domain is always lowercased, as per RFC 1035 - all_lowercase: true, - // The following conversions are specific to GMail - // Lowercases the local part of the GMail address (known to be case-insensitive) - gmail_lowercase: true, - // Removes dots from the local part of the email address, as that's ignored by GMail - gmail_remove_dots: true, - // Removes the subaddress (e.g. "+foo") from the email address - gmail_remove_subaddress: true, - // Conversts the googlemail.com domain to gmail.com - gmail_convert_googlemaildotcom: true, - // The following conversions are specific to Outlook.com / Windows Live / Hotmail - // Lowercases the local part of the Outlook.com address (known to be case-insensitive) - outlookdotcom_lowercase: true, - // Removes the subaddress (e.g. "+foo") from the email address - outlookdotcom_remove_subaddress: true, - // The following conversions are specific to Yahoo - // Lowercases the local part of the Yahoo address (known to be case-insensitive) - yahoo_lowercase: true, - // Removes the subaddress (e.g. "-foo") from the email address - yahoo_remove_subaddress: true, - // The following conversions are specific to Yandex - // Lowercases the local part of the Yandex address (known to be case-insensitive) - yandex_lowercase: true, - // The following conversions are specific to iCloud - // Lowercases the local part of the iCloud address (known to be case-insensitive) - icloud_lowercase: true, - // Removes the subaddress (e.g. "+foo") from the email address - icloud_remove_subaddress: true -}; // List of domains used by iCloud - -var icloud_domains = ['icloud.com', 'me.com']; // List of domains used by Outlook.com and its predecessors -// This list is likely incomplete. -// Partial reference: -// https://blogs.office.com/2013/04/17/outlook-com-gets-two-step-verification-sign-in-by-alias-and-new-international-domains/ - -var outlookdotcom_domains = ['hotmail.at', 'hotmail.be', 'hotmail.ca', 'hotmail.cl', 'hotmail.co.il', 'hotmail.co.nz', 'hotmail.co.th', 'hotmail.co.uk', 'hotmail.com', 'hotmail.com.ar', 'hotmail.com.au', 'hotmail.com.br', 'hotmail.com.gr', 'hotmail.com.mx', 'hotmail.com.pe', 'hotmail.com.tr', 'hotmail.com.vn', 'hotmail.cz', 'hotmail.de', 'hotmail.dk', 'hotmail.es', 'hotmail.fr', 'hotmail.hu', 'hotmail.id', 'hotmail.ie', 'hotmail.in', 'hotmail.it', 'hotmail.jp', 'hotmail.kr', 'hotmail.lv', 'hotmail.my', 'hotmail.ph', 'hotmail.pt', 'hotmail.sa', 'hotmail.sg', 'hotmail.sk', 'live.be', 'live.co.uk', 'live.com', 'live.com.ar', 'live.com.mx', 'live.de', 'live.es', 'live.eu', 'live.fr', 'live.it', 'live.nl', 'msn.com', 'outlook.at', 'outlook.be', 'outlook.cl', 'outlook.co.il', 'outlook.co.nz', 'outlook.co.th', 'outlook.com', 'outlook.com.ar', 'outlook.com.au', 'outlook.com.br', 'outlook.com.gr', 'outlook.com.pe', 'outlook.com.tr', 'outlook.com.vn', 'outlook.cz', 'outlook.de', 'outlook.dk', 'outlook.es', 'outlook.fr', 'outlook.hu', 'outlook.id', 'outlook.ie', 'outlook.in', 'outlook.it', 'outlook.jp', 'outlook.kr', 'outlook.lv', 'outlook.my', 'outlook.ph', 'outlook.pt', 'outlook.sa', 'outlook.sg', 'outlook.sk', 'passport.com']; // List of domains used by Yahoo Mail -// This list is likely incomplete - -var yahoo_domains = ['rocketmail.com', 'yahoo.ca', 'yahoo.co.uk', 'yahoo.com', 'yahoo.de', 'yahoo.fr', 'yahoo.in', 'yahoo.it', 'ymail.com']; // List of domains used by yandex.ru - -var yandex_domains = ['yandex.ru', 'yandex.ua', 'yandex.kz', 'yandex.com', 'yandex.by', 'ya.ru']; // replace single dots, but not multiple consecutive dots - -function dotsReplacer(match) { - if (match.length > 1) { - return match; - } - - return ''; -} - -function normalizeEmail(email, options) { - options = merge(options, default_normalize_email_options); - var raw_parts = email.split('@'); - var domain = raw_parts.pop(); - var user = raw_parts.join('@'); - var parts = [user, domain]; // The domain is always lowercased, as it's case-insensitive per RFC 1035 - - parts[1] = parts[1].toLowerCase(); - - if (parts[1] === 'gmail.com' || parts[1] === 'googlemail.com') { - // Address is GMail - if (options.gmail_remove_subaddress) { - parts[0] = parts[0].split('+')[0]; - } - - if (options.gmail_remove_dots) { - // this does not replace consecutive dots like example..email@gmail.com - parts[0] = parts[0].replace(/\.+/g, dotsReplacer); - } - - if (!parts[0].length) { - return false; - } - - if (options.all_lowercase || options.gmail_lowercase) { - parts[0] = parts[0].toLowerCase(); - } - - parts[1] = options.gmail_convert_googlemaildotcom ? 'gmail.com' : parts[1]; - } else if (icloud_domains.indexOf(parts[1]) >= 0) { - // Address is iCloud - if (options.icloud_remove_subaddress) { - parts[0] = parts[0].split('+')[0]; - } - - if (!parts[0].length) { - return false; - } - - if (options.all_lowercase || options.icloud_lowercase) { - parts[0] = parts[0].toLowerCase(); - } - } else if (outlookdotcom_domains.indexOf(parts[1]) >= 0) { - // Address is Outlook.com - if (options.outlookdotcom_remove_subaddress) { - parts[0] = parts[0].split('+')[0]; - } - - if (!parts[0].length) { - return false; - } - - if (options.all_lowercase || options.outlookdotcom_lowercase) { - parts[0] = parts[0].toLowerCase(); - } - } else if (yahoo_domains.indexOf(parts[1]) >= 0) { - // Address is Yahoo - if (options.yahoo_remove_subaddress) { - var components = parts[0].split('-'); - parts[0] = components.length > 1 ? components.slice(0, -1).join('-') : components[0]; - } - - if (!parts[0].length) { - return false; - } - - if (options.all_lowercase || options.yahoo_lowercase) { - parts[0] = parts[0].toLowerCase(); - } - } else if (yandex_domains.indexOf(parts[1]) >= 0) { - if (options.all_lowercase || options.yandex_lowercase) { - parts[0] = parts[0].toLowerCase(); - } - - parts[1] = 'yandex.ru'; // all yandex domains are equal, 1st preffered - } else if (options.all_lowercase) { - // Any other address - parts[0] = parts[0].toLowerCase(); - } - - return parts.join('@'); -} - -var charsetRegex = /^[^-_](?!.*?[-_]{2,})([a-z0-9\\-]{1,}).*[^-_]$/; -function isSlug(str) { - assertString(str); - return charsetRegex.test(str); -} - -var version = '13.0.0'; -var validator = { - version: version, - toDate: toDate, - toFloat: toFloat, - toInt: toInt, - toBoolean: toBoolean, - equals: equals, - contains: contains, - matches: matches, - isEmail: isEmail, - isURL: isURL, - isMACAddress: isMACAddress, - isIP: isIP, - isIPRange: isIPRange, - isFQDN: isFQDN, - isBoolean: isBoolean, - isIBAN: isIBAN, - isBIC: isBIC, - isAlpha: isAlpha, - isAlphaLocales: locales$1, - isAlphanumeric: isAlphanumeric, - isAlphanumericLocales: locales$2, - isNumeric: isNumeric, - isPassportNumber: isPassportNumber, - isPort: isPort, - isLowercase: isLowercase, - isUppercase: isUppercase, - isAscii: isAscii, - isFullWidth: isFullWidth, - isHalfWidth: isHalfWidth, - isVariableWidth: isVariableWidth, - isMultibyte: isMultibyte, - isSemVer: isSemVer, - isSurrogatePair: isSurrogatePair, - isInt: isInt, - isFloat: isFloat, - isFloatLocales: locales, - isDecimal: isDecimal, - isHexadecimal: isHexadecimal, - isOctal: isOctal, - isDivisibleBy: isDivisibleBy, - isHexColor: isHexColor, - isRgbColor: isRgbColor, - isHSL: isHSL, - isISRC: isISRC, - isMD5: isMD5, - isHash: isHash, - isJWT: isJWT, - isJSON: isJSON, - isEmpty: isEmpty, - isLength: isLength, - isLocale: isLocale, - isByteLength: isByteLength, - isUUID: isUUID, - isMongoId: isMongoId, - isAfter: isAfter, - isBefore: isBefore, - isIn: isIn, - isCreditCard: isCreditCard, - isIdentityCard: isIdentityCard, - isEAN: isEAN, - isISIN: isISIN, - isISBN: isISBN, - isISSN: isISSN, - isMobilePhone: isMobilePhone, - isMobilePhoneLocales: locales$3, - isPostalCode: isPostalCode, - isPostalCodeLocales: locales$4, - isEthereumAddress: isEthereumAddress, - isCurrency: isCurrency, - isBtcAddress: isBtcAddress, - isISO8601: isISO8601, - isRFC3339: isRFC3339, - isISO31661Alpha2: isISO31661Alpha2, - isISO31661Alpha3: isISO31661Alpha3, - isBase32: isBase32, - isBase64: isBase64, - isDataURI: isDataURI, - isMagnetURI: isMagnetURI, - isMimeType: isMimeType, - isLatLong: isLatLong, - ltrim: ltrim, - rtrim: rtrim, - trim: trim, - escape: escape, - unescape: unescape, - stripLow: stripLow, - whitelist: whitelist, - blacklist: blacklist$1, - isWhitelisted: isWhitelisted, - normalizeEmail: normalizeEmail, - toString: toString, - isSlug: isSlug -}; - -return validator; - -}))); diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/validator.min.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/validator.min.js deleted file mode 100644 index ea3eb9c..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/node_modules/validator/validator.min.js +++ /dev/null @@ -1,23 +0,0 @@ -/*! - * Copyright (c) 2018 Chris O'Hara - * - * Permission is hereby granted, free of charge, to any person obtaining - * a copy of this software and associated documentation files (the - * "Software"), to deal in the Software without restriction, including - * without limitation the rights to use, copy, modify, merge, publish, - * distribute, sublicense, and/or sell copies of the Software, and to - * permit persons to whom the Software is furnished to do so, subject to - * the following conditions: - * - * The above copyright notice and this permission notice shall be - * included in all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, - * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF - * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND - * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE - * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION - * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION - * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - */ -!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.validator=e()}(this,function(){"use strict";function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function g(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if(!(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!e||r.length!==e);n=!0);}catch(t){o=!0,i=t}finally{try{n||null==s.return||s.return()}finally{if(o)throw i}}return r}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function h(t){var e;if(!("string"==typeof t||t instanceof String))throw e=null===t?"null":"object"===(e=a(t))&&t.constructor&&t.constructor.hasOwnProperty("name")?t.constructor.name:"a ".concat(e),new TypeError("Expected string but received ".concat(e,"."))}function o(t){return h(t),t=Date.parse(t),isNaN(t)?null:new Date(t)}for(var t,r={"en-US":/^[A-Z]+$/i,"bg-BG":/^[А-Я]+$/i,"cs-CZ":/^[A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ]+$/i,"da-DK":/^[A-ZÆØÅ]+$/i,"de-DE":/^[A-ZÄÖÜß]+$/i,"el-GR":/^[Α-ώ]+$/i,"es-ES":/^[A-ZÁÉÍÑÓÚÜ]+$/i,"fr-FR":/^[A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ]+$/i,"it-IT":/^[A-ZÀÉÈÌÎÓÒÙ]+$/i,"nb-NO":/^[A-ZÆØÅ]+$/i,"nl-NL":/^[A-ZÁÉËÏÓÖÜÚ]+$/i,"nn-NO":/^[A-ZÆØÅ]+$/i,"hu-HU":/^[A-ZÁÉÍÓÖŐÚÜŰ]+$/i,"pl-PL":/^[A-ZĄĆĘŚŁŃÓŻŹ]+$/i,"pt-PT":/^[A-ZÃÁÀÂÄÇÉÊËÍÏÕÓÔÖÚÜ]+$/i,"ru-RU":/^[А-ЯЁ]+$/i,"sl-SI":/^[A-ZČĆĐŠŽ]+$/i,"sk-SK":/^[A-ZÁČĎÉÍŇÓŠŤÚÝŽĹŔĽÄÔ]+$/i,"sr-RS@latin":/^[A-ZČĆŽŠĐ]+$/i,"sr-RS":/^[А-ЯЂЈЉЊЋЏ]+$/i,"sv-SE":/^[A-ZÅÄÖ]+$/i,"tr-TR":/^[A-ZÇĞİıÖŞÜ]+$/i,"uk-UA":/^[А-ЩЬЮЯЄIЇҐі]+$/i,"ku-IQ":/^[ئابپتجچحخدرڕزژسشعغفڤقکگلڵمنوۆھەیێيطؤثآإأكضصةظذ]+$/i,ar:/^[ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]+$/,he:/^[א-ת]+$/,"fa-IR":/^['آابپتثجچهخدذرزژسشصضطظعغفقکگلمنوهی']+$/i},n={"en-US":/^[0-9A-Z]+$/i,"bg-BG":/^[0-9А-Я]+$/i,"cs-CZ":/^[0-9A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ]+$/i,"da-DK":/^[0-9A-ZÆØÅ]+$/i,"de-DE":/^[0-9A-ZÄÖÜß]+$/i,"el-GR":/^[0-9Α-ω]+$/i,"es-ES":/^[0-9A-ZÁÉÍÑÓÚÜ]+$/i,"fr-FR":/^[0-9A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ]+$/i,"it-IT":/^[0-9A-ZÀÉÈÌÎÓÒÙ]+$/i,"hu-HU":/^[0-9A-ZÁÉÍÓÖŐÚÜŰ]+$/i,"nb-NO":/^[0-9A-ZÆØÅ]+$/i,"nl-NL":/^[0-9A-ZÁÉËÏÓÖÜÚ]+$/i,"nn-NO":/^[0-9A-ZÆØÅ]+$/i,"pl-PL":/^[0-9A-ZĄĆĘŚŁŃÓŻŹ]+$/i,"pt-PT":/^[0-9A-ZÃÁÀÂÄÇÉÊËÍÏÕÓÔÖÚÜ]+$/i,"ru-RU":/^[0-9А-ЯЁ]+$/i,"sl-SI":/^[0-9A-ZČĆĐŠŽ]+$/i,"sk-SK":/^[0-9A-ZÁČĎÉÍŇÓŠŤÚÝŽĹŔĽÄÔ]+$/i,"sr-RS@latin":/^[0-9A-ZČĆŽŠĐ]+$/i,"sr-RS":/^[0-9А-ЯЂЈЉЊЋЏ]+$/i,"sv-SE":/^[0-9A-ZÅÄÖ]+$/i,"tr-TR":/^[0-9A-ZÇĞİıÖŞÜ]+$/i,"uk-UA":/^[0-9А-ЩЬЮЯЄIЇҐі]+$/i,"ku-IQ":/^[٠١٢٣٤٥٦٧٨٩0-9ئابپتجچحخدرڕزژسشعغفڤقکگلڵمنوۆھەیێيطؤثآإأكضصةظذ]+$/i,ar:/^[٠١٢٣٤٥٦٧٨٩0-9ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]+$/,he:/^[0-9א-ת]+$/,"fa-IR":/^['0-9آابپتثجچهخدذرزژسشصضطظعغفقکگلمنوهی۱۲۳۴۵۶۷۸۹۰']+$/i},i={"en-US":".",ar:"٫"},e=["AU","GB","HK","IN","NZ","ZA","ZM"],s=0;s=e.min)&&(!e.hasOwnProperty("max")||n<=e.max)&&(!e.hasOwnProperty("lt")||ne.gt)}r["pt-BR"]=r["pt-PT"],n["pt-BR"]=n["pt-PT"],i["pt-BR"]=i["pt-PT"],r["pl-Pl"]=r["pl-PL"],n["pl-Pl"]=n["pl-PL"],i["pl-Pl"]=i["pl-PL"];var m=Object.keys(i);function v(t){return p(t)?parseFloat(t):NaN}function Z(t){return"object"===a(t)&&null!==t?t="function"==typeof t.toString?t.toString():"[object Object]":(null==t||isNaN(t)&&!t.length)&&(t=""),String(t)}function S(t,e){var r=0a)return!1;if("::"===t)return!0;"::"===t.substr(0,2)?(n.shift(),n.shift(),o=!0):"::"===t.substr(t.length-2)&&(n.pop(),n.pop(),o=!0);for(var s=0;s$/i,N=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~]+$/i,T=/^[a-z\d]+$/,B=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f]))*$/i,x=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+$/i,w=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))*$/i;var G={protocols:["http","https","ftp"],require_tld:!0,require_protocol:!1,require_host:!0,require_valid_protocol:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_protocol_relative_urls:!1},U=/^\[([^\]]+)\](?::([0-9]+))?$/;function b(t,e){for(var r=0;r=e.min,o=!e.hasOwnProperty("max")||t<=e.max,i=!e.hasOwnProperty("lt")||te.gt;return r.test(t)&&n&&o&&i&&a}var q=/^[\x00-\x7F]+$/;var tt=/[^\u0020-\u007E\uFF61-\uFF9F\uFFA0-\uFFDC\uFFE8-\uFFEE0-9a-zA-Z]/;var et=/[\u0020-\u007E\uFF61-\uFF9F\uFFA0-\uFFDC\uFFE8-\uFFEE0-9a-zA-Z]/;var rt=/[^\x00-\x7F]/;var nt=function(t,e){var r=1]/.test(r)){if(!e)return;if(!(r.split('"').length===r.split('\\"').length))return}return 1}}(n))return!1}else if(e.require_display_name)return!1}if(!e.ignore_max_length&&254]/.test(t))return!1;if(0===t.indexOf("mailto:"))return!1;var r,n,o,i,a,s,l,u;if(e=S(e,G),1<(l=(t=(l=(t=(l=t.split("#")).shift()).split("?")).shift()).split("://")).length){if(r=l.shift().toLowerCase(),e.require_valid_protocol&&-1===e.protocols.indexOf(r))return!1}else{if(e.require_protocol)return!1;if("//"===t.substr(0,2)){if(!e.allow_protocol_relative_urls)return!1;l[0]=t.substr(2)}}if(""===(t=l.join("://")))return!1;if(""===(t=(l=t.split("/")).shift())&&!e.require_host)return!0;if(1<(l=t.split("@")).length){if(e.disallow_auth)return!1;if(0<=(n=l.shift()).indexOf(":")&&2/g,">").replace(/\//g,"/").replace(/\\/g,"\").replace(/`/g,"`")},unescape:function(t){return h(t),t.replace(/&/g,"&").replace(/"/g,'"').replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">").replace(///g,"/").replace(/\/g,"\\").replace(/`/g,"`")},stripLow:function(t,e){return h(t),pe(t,e?"\\x00-\\x09\\x0B\\x0C\\x0E-\\x1F\\x7F":"\\x00-\\x1F\\x7F")},whitelist:function(t,e){return h(t),t.replace(new RegExp("[^".concat(e,"]+"),"g"),"")},blacklist:pe,isWhitelisted:function(t,e){h(t);for(var r=t.length-1;0<=r;r--)if(-1===e.indexOf(t[r]))return!1;return!0},normalizeEmail:function(t,e){e=S(e,ge);var r=t.split("@"),n=r.pop(),o=[r.join("@"),n];if(o[1]=o[1].toLowerCase(),"gmail.com"===o[1]||"googlemail.com"===o[1]){if(e.gmail_remove_subaddress&&(o[0]=o[0].split("+")[0]),e.gmail_remove_dots&&(o[0]=o[0].replace(/\.+/g,Se)),!o[0].length)return!1;(e.all_lowercase||e.gmail_lowercase)&&(o[0]=o[0].toLowerCase()),o[1]=e.gmail_convert_googlemaildotcom?"gmail.com":o[1]}else if(0<=he.indexOf(o[1])){if(e.icloud_remove_subaddress&&(o[0]=o[0].split("+")[0]),!o[0].length)return!1;(e.all_lowercase||e.icloud_lowercase)&&(o[0]=o[0].toLowerCase())}else if(0<=me.indexOf(o[1])){if(e.outlookdotcom_remove_subaddress&&(o[0]=o[0].split("+")[0]),!o[0].length)return!1;(e.all_lowercase||e.outlookdotcom_lowercase)&&(o[0]=o[0].toLowerCase())}else if(0<=ve.indexOf(o[1])){if(e.yahoo_remove_subaddress){var i=o[0].split("-");o[0]=1= 8.0.0" - }, - "gitHead": "cd4136e46e4200eead792850ef8f3cef04295de5", - "homepage": "https://express-validator.github.io", - "keywords": [ - "express", - "sanitization", - "sanitize", - "validate", - "validation", - "validator", - "xss" - ], - "license": "MIT", - "main": "./src/index.js", - "maintainers": [ - { - "name": "ctavan", - "email": "dev@tavan.de" - }, - { - "name": "gustavohenke", - "email": "guhenke@gmail.com" - }, - { - "name": "rustybailey", - "email": "rustylbailey@gmail.com" - } - ], - "name": "express-validator", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git://github.com/express-validator/express-validator.git" - }, - "scripts": { - "build": "tsc", - "clean": "git clean -Xf src check filter", - "docs:build": "npm --prefix ./website run build", - "docs:publish": "USE_SSH=true CURRENT_BRANCH=master npm --prefix ./website run publish-gh-pages", - "docs:start": "npm --prefix ./website start", - "docs:version": "npm --prefix ./website run version", - "lint": "eslint --ignore-path .gitignore 'src/**/*.ts'", - "prepublishOnly": "tsc", - "report-coverage": "cat coverage/lcov.info | coveralls", - "test": "jest", - "version": "npm run docs:version -- $npm_package_version && npm run docs:build && git add -A website" - }, - "types": "./src/index.d.ts", - "version": "6.5.0" -} diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/base.d.ts b/Easebuzz_NodeJS_kit/node_modules/express-validator/src/base.d.ts deleted file mode 100644 index bf2ba74..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/base.d.ts +++ /dev/null @@ -1,47 +0,0 @@ -import { ReadonlyContext } from './context'; -export declare type Location = 'body' | 'cookies' | 'headers' | 'params' | 'query'; -export declare type Meta = { - req: Request; - location: Location; - path: string; -}; -export declare type CustomValidator = (input: any, meta: Meta) => any; -export declare type StandardValidator = (input: string, ...options: any[]) => boolean; -export declare type CustomSanitizer = (input: any, meta: Meta) => any; -export declare type StandardSanitizer = (input: string, ...options: any[]) => any; -export declare type DynamicMessageCreator = (value: any, meta: Meta) => any; -export interface FieldInstance { - path: string; - originalPath: string; - location: Location; - value: any; - originalValue: any; -} -export declare type ValidationError = { - param: '_error'; - msg: any; - nestedErrors: ValidationError[]; - location?: undefined; - value?: undefined; -} | { - location: Location; - param: string; - value: any; - msg: any; - nestedErrors?: unknown[]; -}; -export interface Request { - [k: string]: any; - body?: any; - cookies?: Record; - headers?: Record; - params?: Record; - query?: Record; -} -export declare const contextsKey = "express-validator#contexts"; -export interface InternalRequest extends Request { - [contextsKey]?: ReadonlyContext[]; -} -export declare type Middleware = (req: Request, res: any, next: (err?: any) => void) => void; -export declare class ValidationHalt extends Error { -} diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/base.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/src/base.js deleted file mode 100644 index daaf815..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/base.js +++ /dev/null @@ -1,6 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.contextsKey = 'express-validator#contexts'; -class ValidationHalt extends Error { -} -exports.ValidationHalt = ValidationHalt; diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/chain/context-handler-impl.d.ts b/Easebuzz_NodeJS_kit/node_modules/express-validator/src/chain/context-handler-impl.d.ts deleted file mode 100644 index d3a3728..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/chain/context-handler-impl.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { ContextBuilder } from '../context-builder'; -import { Optional } from '../context'; -import { CustomValidator } from '../base'; -import { ContextHandler } from './context-handler'; -import { ValidationChain } from './validation-chain'; -export declare class ContextHandlerImpl implements ContextHandler { - private readonly builder; - private readonly chain; - constructor(builder: ContextBuilder, chain: Chain); - bail(): Chain; - if(condition: CustomValidator | ValidationChain): Chain; - optional(options?: Optional | true): Chain; -} diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/chain/context-handler-impl.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/src/chain/context-handler-impl.js deleted file mode 100644 index af3ae1c..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/chain/context-handler-impl.js +++ /dev/null @@ -1,39 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const context_items_1 = require("../context-items"); -const bail_1 = require("../context-items/bail"); -class ContextHandlerImpl { - constructor(builder, chain) { - this.builder = builder; - this.chain = chain; - } - bail() { - this.builder.addItem(new bail_1.Bail()); - return this.chain; - } - if(condition) { - if ('run' in condition) { - this.builder.addItem(new context_items_1.ChainCondition(condition)); - } - else if (typeof condition === 'function') { - this.builder.addItem(new context_items_1.CustomCondition(condition)); - } - else { - throw new Error('express-validator: condition is not a validation chain nor a function'); - } - return this.chain; - } - optional(options = true) { - if (typeof options === 'boolean') { - this.builder.setOptional(options ? { checkFalsy: false, nullable: false } : false); - } - else { - this.builder.setOptional({ - checkFalsy: !!options.checkFalsy, - nullable: !!options.nullable, - }); - } - return this.chain; - } -} -exports.ContextHandlerImpl = ContextHandlerImpl; diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/chain/context-handler.d.ts b/Easebuzz_NodeJS_kit/node_modules/express-validator/src/chain/context-handler.d.ts deleted file mode 100644 index 5ecb5e6..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/chain/context-handler.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { CustomValidator } from '../base'; -import { Optional } from '../context'; -import { ValidationChain } from './validation-chain'; -export interface ContextHandler { - bail(): Chain; - if(condition: CustomValidator | ValidationChain): Chain; - optional(options?: Partial | true): Chain; -} diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/chain/context-handler.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/src/chain/context-handler.js deleted file mode 100644 index c8ad2e5..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/chain/context-handler.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/chain/context-runner-impl.d.ts b/Easebuzz_NodeJS_kit/node_modules/express-validator/src/chain/context-runner-impl.d.ts deleted file mode 100644 index 2a4403b..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/chain/context-runner-impl.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { SelectFields } from '../select-fields'; -import { Request } from '../base'; -import { ContextBuilder } from '../context-builder'; -import { Context } from '../context'; -import { ContextRunner } from './context-runner'; -export declare class ContextRunnerImpl implements ContextRunner { - private readonly builderOrContext; - private readonly selectFields; - constructor(builderOrContext: ContextBuilder | Context, selectFields?: SelectFields); - run(req: Request, options?: { - dryRun?: boolean; - }): Promise; -} diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/chain/context-runner-impl.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/src/chain/context-runner-impl.js deleted file mode 100644 index e59017d..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/chain/context-runner-impl.js +++ /dev/null @@ -1,58 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const _ = require("lodash"); -const select_fields_1 = require("../select-fields"); -const base_1 = require("../base"); -const context_1 = require("../context"); -class ContextRunnerImpl { - constructor(builderOrContext, selectFields = select_fields_1.selectFields) { - this.builderOrContext = builderOrContext; - this.selectFields = selectFields; - } - async run(req, options = {}) { - const context = this.builderOrContext instanceof context_1.Context - ? this.builderOrContext - : this.builderOrContext.build(); - const instances = this.selectFields(req, context.fields, context.locations); - context.addFieldInstances(instances); - const haltedInstances = new Set(); - for (const contextItem of context.stack) { - const promises = context.getData({ requiredOnly: true }).map(async (instance) => { - const { location, path } = instance; - const instanceKey = `${location}:${path}`; - if (haltedInstances.has(instanceKey)) { - return; - } - try { - await contextItem.run(context, instance.value, { - req, - location, - path, - }); - // An instance is mutable, so if an item changed its value, there's no need to call getData again - const newValue = instance.value; - // Checks whether the value changed. - // Avoids e.g. undefined values being set on the request if it didn't have the key initially. - const reqValue = path !== '' ? _.get(req[location], path) : req[location]; - if (!options.dryRun && reqValue !== instance.value) { - path !== '' ? _.set(req[location], path, newValue) : _.set(req, location, newValue); - } - } - catch (e) { - if (e instanceof base_1.ValidationHalt) { - haltedInstances.add(instanceKey); - return; - } - throw e; - } - }); - await Promise.all(promises); - } - if (!options.dryRun) { - const internalReq = req; - internalReq[base_1.contextsKey] = (internalReq[base_1.contextsKey] || []).concat(context); - } - return context; - } -} -exports.ContextRunnerImpl = ContextRunnerImpl; diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/chain/context-runner.d.ts b/Easebuzz_NodeJS_kit/node_modules/express-validator/src/chain/context-runner.d.ts deleted file mode 100644 index 9a4a05c..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/chain/context-runner.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { Request } from '../base'; -import { Context } from '../context'; -export interface ContextRunner { - run(req: Request, options?: { - dryRun?: boolean; - }): Promise; -} diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/chain/context-runner.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/src/chain/context-runner.js deleted file mode 100644 index c8ad2e5..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/chain/context-runner.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/chain/index.d.ts b/Easebuzz_NodeJS_kit/node_modules/express-validator/src/chain/index.d.ts deleted file mode 100644 index 6974545..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/chain/index.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -export * from './sanitizers'; -export * from './sanitizers-impl'; -export * from './context-handler'; -export * from './context-handler-impl'; -export * from './context-runner'; -export * from './context-runner-impl'; -export * from './validators'; -export * from './validators-impl'; -export * from './sanitization-chain'; -export * from './validation-chain'; diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/chain/index.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/src/chain/index.js deleted file mode 100644 index 964d283..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/chain/index.js +++ /dev/null @@ -1,9 +0,0 @@ -"use strict"; -function __export(m) { - for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; -} -Object.defineProperty(exports, "__esModule", { value: true }); -__export(require("./sanitizers-impl")); -__export(require("./context-handler-impl")); -__export(require("./context-runner-impl")); -__export(require("./validators-impl")); diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/chain/sanitization-chain.d.ts b/Easebuzz_NodeJS_kit/node_modules/express-validator/src/chain/sanitization-chain.d.ts deleted file mode 100644 index aef789d..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/chain/sanitization-chain.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { Request } from '../base'; -import { ContextBuilder } from '../context-builder'; -import { Sanitizers } from './sanitizers'; -import { ContextRunner } from './context-runner'; -export interface SanitizationChain extends Sanitizers, ContextRunner { - (req: Request, res: any, next: (errors?: any) => void): void; - builder: ContextBuilder; -} diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/chain/sanitization-chain.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/src/chain/sanitization-chain.js deleted file mode 100644 index c8ad2e5..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/chain/sanitization-chain.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/chain/sanitizers-impl.d.ts b/Easebuzz_NodeJS_kit/node_modules/express-validator/src/chain/sanitizers-impl.d.ts deleted file mode 100644 index 9b07731..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/chain/sanitizers-impl.d.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { CustomSanitizer } from '../base'; -import { ContextBuilder } from '../context-builder'; -import * as Options from '../options'; -import { Sanitizers } from './sanitizers'; -export declare class SanitizersImpl implements Sanitizers { - private readonly builder; - private readonly chain; - constructor(builder: ContextBuilder, chain: Chain); - customSanitizer(sanitizer: CustomSanitizer): Chain; - private addStandardSanitization; - blacklist(chars: string): Chain; - escape(): Chain; - unescape(): Chain; - ltrim(chars?: string): Chain; - normalizeEmail(options?: Options.NormalizeEmailOptions): Chain; - rtrim(chars?: string): Chain; - stripLow(keep_new_lines?: boolean): Chain; - toArray(): Chain; - toBoolean(strict?: boolean): Chain; - toDate(): Chain; - toFloat(): Chain; - toInt(radix?: number): Chain; - trim(chars?: string): Chain; - whitelist(chars: string): Chain; -} diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/chain/sanitizers-impl.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/src/chain/sanitizers-impl.js deleted file mode 100644 index ffb9e5e..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/chain/sanitizers-impl.js +++ /dev/null @@ -1,62 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const validator = require("validator"); -const sanitization_1 = require("../context-items/sanitization"); -class SanitizersImpl { - constructor(builder, chain) { - this.builder = builder; - this.chain = chain; - } - customSanitizer(sanitizer) { - this.builder.addItem(new sanitization_1.Sanitization(sanitizer, true)); - return this.chain; - } - // Standard sanitizers - addStandardSanitization(sanitizer, ...options) { - this.builder.addItem(new sanitization_1.Sanitization(sanitizer, false, options)); - return this.chain; - } - blacklist(chars) { - return this.addStandardSanitization(validator.blacklist, chars); - } - escape() { - return this.addStandardSanitization(validator.escape); - } - unescape() { - return this.addStandardSanitization(validator.unescape); - } - ltrim(chars) { - return this.addStandardSanitization(validator.ltrim, chars); - } - normalizeEmail(options) { - return this.addStandardSanitization(validator.normalizeEmail, options); - } - rtrim(chars) { - return this.addStandardSanitization(validator.rtrim, chars); - } - stripLow(keep_new_lines) { - return this.addStandardSanitization(validator.stripLow, keep_new_lines); - } - toArray() { - return this.customSanitizer(value => (value !== undefined && ((Array.isArray(value) && value) || [value])) || []); - } - toBoolean(strict) { - return this.addStandardSanitization(validator.toBoolean, strict); - } - toDate() { - return this.addStandardSanitization(validator.toDate); - } - toFloat() { - return this.addStandardSanitization(validator.toFloat); - } - toInt(radix) { - return this.addStandardSanitization(validator.toInt, radix); - } - trim(chars) { - return this.addStandardSanitization(validator.trim, chars); - } - whitelist(chars) { - return this.addStandardSanitization(validator.whitelist, chars); - } -} -exports.SanitizersImpl = SanitizersImpl; diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/chain/sanitizers.d.ts b/Easebuzz_NodeJS_kit/node_modules/express-validator/src/chain/sanitizers.d.ts deleted file mode 100644 index d249c21..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/chain/sanitizers.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { CustomSanitizer } from '../base'; -import * as Options from '../options'; -export interface Sanitizers { - customSanitizer(sanitizer: CustomSanitizer): Return; - blacklist(chars: string): Return; - escape(): Return; - unescape(): Return; - ltrim(chars?: string): Return; - normalizeEmail(options?: Options.NormalizeEmailOptions): Return; - rtrim(chars?: string): Return; - stripLow(keep_new_lines?: boolean): Return; - toArray(): Return; - toBoolean(strict?: boolean): Return; - toDate(): Return; - toFloat(): Return; - toInt(radix?: number): Return; - trim(chars?: string): Return; - whitelist(chars: string): Return; -} diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/chain/sanitizers.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/src/chain/sanitizers.js deleted file mode 100644 index c8ad2e5..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/chain/sanitizers.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/chain/validation-chain.d.ts b/Easebuzz_NodeJS_kit/node_modules/express-validator/src/chain/validation-chain.d.ts deleted file mode 100644 index 8e5bd98..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/chain/validation-chain.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { Request } from '../base'; -import { ContextBuilder } from '../context-builder'; -import { Sanitizers } from './sanitizers'; -import { Validators } from './validators'; -import { ContextHandler } from './context-handler'; -import { ContextRunner } from './context-runner'; -export interface ValidationChain extends Validators, Sanitizers, ContextHandler, ContextRunner { - (req: Request, res: any, next: (error?: any) => void): void; - builder: ContextBuilder; -} diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/chain/validation-chain.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/src/chain/validation-chain.js deleted file mode 100644 index c8ad2e5..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/chain/validation-chain.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/chain/validators-impl.d.ts b/Easebuzz_NodeJS_kit/node_modules/express-validator/src/chain/validators-impl.d.ts deleted file mode 100644 index e517a19..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/chain/validators-impl.d.ts +++ /dev/null @@ -1,98 +0,0 @@ -import { CustomValidator } from '../base'; -import { ContextBuilder } from '../context-builder'; -import * as Options from '../options'; -import { Validators } from './validators'; -export declare class ValidatorsImpl implements Validators { - private readonly builder; - private readonly chain; - private lastValidator; - private negateNext; - constructor(builder: ContextBuilder, chain: Chain); - private addItem; - not(): Chain; - withMessage(message: any): Chain; - custom(validator: CustomValidator): Chain; - exists(options?: { - checkFalsy?: boolean; - checkNull?: boolean; - }): Chain; - isArray(options?: { - min?: number; - max?: number; - }): Chain; - isString(): Chain; - notEmpty(options?: Options.IsEmptyOptions): Chain; - private addStandardValidation; - contains(elem: any): Chain; - equals(comparison: string): Chain; - isAfter(date?: string): Chain; - isAlpha(locale?: Options.AlphaLocale): Chain; - isAlphanumeric(locale?: Options.AlphanumericLocale): Chain; - isAscii(): Chain; - isBase32(): Chain; - isBase64(): Chain; - isBefore(date?: string): Chain; - isBIC(): Chain; - isBoolean(): Chain; - isBtcAddress(): Chain; - isByteLength(options: Options.MinMaxOptions): Chain; - isCreditCard(): Chain; - isCurrency(options?: Options.IsCurrencyOptions): Chain; - isDataURI(): Chain; - isDecimal(options?: Options.IsDecimalOptions): Chain; - isDivisibleBy(number: number): Chain; - isEAN(): Chain; - isEmail(options?: Options.IsEmailOptions): Chain; - isEmpty(options?: Options.IsEmptyOptions): Chain; - isEthereumAddress(): Chain; - isFQDN(options?: Options.IsFQDNOptions): Chain; - isFloat(options?: Options.IsFloatOptions): Chain; - isFullWidth(): Chain; - isHalfWidth(): Chain; - isHash(algorithm: Options.HashAlgorithm): Chain; - isHexColor(): Chain; - isHexadecimal(): Chain; - isHSL(): Chain; - isIBAN(): Chain; - isIdentityCard(locale: ['ES'] | 'any'): Chain; - isIP(version?: Options.IPVersion): Chain; - isIPRange(): Chain; - isISBN(version?: number): Chain; - isISSN(options?: Options.IsISSNOptions): Chain; - isISIN(): Chain; - isISO8601(options?: Options.IsISO8601Options): Chain; - isISO31661Alpha2(): Chain; - isISO31661Alpha3(): Chain; - isISRC(): Chain; - isIn(values: any[]): Chain; - isInt(options?: Options.IsIntOptions): Chain; - isJSON(): Chain; - isJWT(): Chain; - isLatLong(): Chain; - isLength(options: Options.MinMaxOptions): Chain; - isLocale(): Chain; - isLowercase(): Chain; - isMagnetURI(): Chain; - isMACAddress(options?: Options.IsMACAddressOptions): Chain; - isMD5(): Chain; - isMimeType(): Chain; - isMobilePhone(locale: Options.MobilePhoneLocale | Options.MobilePhoneLocale[], options?: Options.IsMobilePhoneOptions): Chain; - isMongoId(): Chain; - isMultibyte(): Chain; - isNumeric(options?: Options.IsNumericOptions): Chain; - isOctal(): Chain; - isPassportNumber(countryCode?: string): Chain; - isPort(): Chain; - isPostalCode(locale: Options.PostalCodeLocale): Chain; - isRFC3339(): Chain; - isRgbColor(includePercentValues?: boolean): Chain; - isSemVer(): Chain; - isSlug(): Chain; - isSurrogatePair(): Chain; - isURL(options?: Options.IsURLOptions): Chain; - isUUID(version?: Options.UUIDVersion): Chain; - isUppercase(): Chain; - isVariableWidth(): Chain; - isWhitelisted(chars: string | string[]): Chain; - matches(pattern: RegExp | string, modifiers?: string): Chain; -} diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/chain/validators-impl.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/src/chain/validators-impl.js deleted file mode 100644 index c42a21a..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/chain/validators-impl.js +++ /dev/null @@ -1,281 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const validator = require("validator"); -const context_items_1 = require("../context-items"); -class ValidatorsImpl { - constructor(builder, chain) { - this.builder = builder; - this.chain = chain; - this.negateNext = false; - } - addItem(item) { - this.builder.addItem(item); - this.lastValidator = item; - // Reset this.negateNext so that next validation isn't negated too - this.negateNext = false; - return this.chain; - } - // validation manipulation - not() { - this.negateNext = true; - return this.chain; - } - withMessage(message) { - this.lastValidator.message = message; - return this.chain; - } - // custom validators - custom(validator) { - return this.addItem(new context_items_1.CustomValidation(validator, this.negateNext)); - } - exists(options = {}) { - let validator; - if (options.checkFalsy) { - validator = value => !!value; - } - else if (options.checkNull) { - validator = value => value != null; - } - else { - validator = value => value !== undefined; - } - return this.custom(validator); - } - isArray(options = {}) { - return this.custom(value => Array.isArray(value) && - (typeof options.min === 'undefined' || value.length >= options.min) && - (typeof options.max === 'undefined' || value.length <= options.max)); - } - isString() { - return this.custom(value => typeof value === 'string'); - } - notEmpty(options) { - this.not(); - return this.isEmpty(options); - } - // Standard validators - addStandardValidation(validator, ...options) { - return this.addItem(new context_items_1.StandardValidation(validator, this.negateNext, options)); - } - contains(elem) { - return this.addStandardValidation(validator.contains, elem); - } - equals(comparison) { - return this.addStandardValidation(validator.equals, comparison); - } - isAfter(date) { - return this.addStandardValidation(validator.isAfter, date); - } - isAlpha(locale) { - return this.addStandardValidation(validator.isAlpha, locale); - } - isAlphanumeric(locale) { - return this.addStandardValidation(validator.isAlphanumeric, locale); - } - isAscii() { - return this.addStandardValidation(validator.isAscii); - } - isBase32() { - return this.addStandardValidation(validator.isBase32); - } - isBase64() { - return this.addStandardValidation(validator.isBase64); - } - isBefore(date) { - return this.addStandardValidation(validator.isBefore, date); - } - isBIC() { - return this.addStandardValidation(validator.isBIC); - } - isBoolean() { - return this.addStandardValidation(validator.isBoolean); - } - isBtcAddress() { - return this.addStandardValidation(validator.isBtcAddress); - } - isByteLength(options) { - return this.addStandardValidation(validator.isByteLength, options); - } - isCreditCard() { - return this.addStandardValidation(validator.isCreditCard); - } - isCurrency(options) { - return this.addStandardValidation(validator.isCurrency, options); - } - isDataURI() { - return this.addStandardValidation(validator.isDataURI); - } - // isDate is not available: https://github.com/validatorjs/validator.js/issues/1304 - // isDate() { - // return this.addStandardValidation(validator.isDate); - // } - isDecimal(options) { - return this.addStandardValidation(validator.isDecimal, options); - } - isDivisibleBy(number) { - return this.addStandardValidation(validator.isDivisibleBy, number); - } - isEAN() { - return this.addStandardValidation(validator.isEAN); - } - isEmail(options) { - return this.addStandardValidation(validator.isEmail, options); - } - isEmpty(options) { - return this.addStandardValidation(validator.isEmpty, options); - } - isEthereumAddress() { - return this.addStandardValidation(validator.isEthereumAddress); - } - isFQDN(options) { - return this.addStandardValidation(validator.isFQDN, options); - } - isFloat(options) { - return this.addStandardValidation(validator.isFloat, options); - } - isFullWidth() { - return this.addStandardValidation(validator.isFullWidth); - } - isHalfWidth() { - return this.addStandardValidation(validator.isHalfWidth); - } - isHash(algorithm) { - return this.addStandardValidation(validator.isHash, algorithm); - } - isHexColor() { - return this.addStandardValidation(validator.isHexColor); - } - isHexadecimal() { - return this.addStandardValidation(validator.isHexadecimal); - } - isHSL() { - return this.addStandardValidation(validator.isHSL); - } - isIBAN() { - return this.addStandardValidation(validator.isIBAN); - } - isIdentityCard(locale) { - return this.addStandardValidation(validator.isIdentityCard, locale); - } - isIP(version) { - return this.addStandardValidation(validator.isIP, version); - } - isIPRange() { - return this.addStandardValidation(validator.isIPRange); - } - isISBN(version) { - return this.addStandardValidation(validator.isISBN, version); - } - isISSN(options) { - return this.addStandardValidation(validator.isISSN, options); - } - isISIN() { - return this.addStandardValidation(validator.isISIN); - } - isISO8601(options) { - return this.addStandardValidation(validator.isISO8601, options); - } - isISO31661Alpha2() { - return this.addStandardValidation(validator.isISO31661Alpha2); - } - isISO31661Alpha3() { - return this.addStandardValidation(validator.isISO31661Alpha3); - } - isISRC() { - return this.addStandardValidation(validator.isISRC); - } - isIn(values) { - return this.addStandardValidation(validator.isIn, values); - } - isInt(options) { - return this.addStandardValidation(validator.isInt, options); - } - isJSON() { - return this.addStandardValidation(validator.isJSON); - } - isJWT() { - return this.addStandardValidation(validator.isJWT); - } - isLatLong() { - return this.addStandardValidation(validator.isLatLong); - } - isLength(options) { - return this.addStandardValidation(validator.isLength, options); - } - isLocale() { - return this.addStandardValidation(validator.isLocale); - } - isLowercase() { - return this.addStandardValidation(validator.isLowercase); - } - isMagnetURI() { - return this.addStandardValidation(validator.isMagnetURI); - } - isMACAddress(options) { - return this.addStandardValidation(validator.isMACAddress, options); - } - isMD5() { - return this.addStandardValidation(validator.isMD5); - } - isMimeType() { - return this.addStandardValidation(validator.isMimeType); - } - isMobilePhone(locale, options) { - return this.addStandardValidation(validator.isMobilePhone, locale, options); - } - isMongoId() { - return this.addStandardValidation(validator.isMongoId); - } - isMultibyte() { - return this.addStandardValidation(validator.isMultibyte); - } - isNumeric(options) { - return this.addStandardValidation(validator.isNumeric, options); - } - isOctal() { - return this.addStandardValidation(validator.isOctal); - } - isPassportNumber(countryCode) { - return this.addStandardValidation(validator.isPassportNumber, countryCode); - } - isPort() { - return this.addStandardValidation(validator.isPort); - } - isPostalCode(locale) { - return this.addStandardValidation(validator.isPostalCode, locale); - } - isRFC3339() { - return this.addStandardValidation(validator.isRFC3339); - } - isRgbColor(includePercentValues) { - return this.addStandardValidation(validator.isRgbColor, includePercentValues); - } - isSemVer() { - return this.addStandardValidation(validator.isSemVer); - } - isSlug() { - return this.addStandardValidation(validator.isSlug); - } - isSurrogatePair() { - return this.addStandardValidation(validator.isSurrogatePair); - } - isURL(options) { - return this.addStandardValidation(validator.isURL, options); - } - isUUID(version) { - return this.addStandardValidation(validator.isUUID, version); - } - isUppercase() { - return this.addStandardValidation(validator.isUppercase); - } - isVariableWidth() { - return this.addStandardValidation(validator.isVariableWidth); - } - isWhitelisted(chars) { - return this.addStandardValidation(validator.isWhitelisted, chars); - } - matches(pattern, modifiers) { - return this.addStandardValidation(validator.matches, pattern, modifiers); - } -} -exports.ValidatorsImpl = ValidatorsImpl; diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/chain/validators.d.ts b/Easebuzz_NodeJS_kit/node_modules/express-validator/src/chain/validators.d.ts deleted file mode 100644 index c61709b..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/chain/validators.d.ts +++ /dev/null @@ -1,90 +0,0 @@ -import { CustomValidator, DynamicMessageCreator } from '../base'; -import * as Options from '../options'; -export interface Validators { - not(): Return; - withMessage(message: DynamicMessageCreator): Return; - withMessage(message: any): Return; - custom(validator: CustomValidator): Return; - exists(options?: { - checkFalsy?: boolean; - checkNull?: boolean; - }): Return; - isArray(options?: { - min?: number; - max?: number; - }): Return; - isString(): Return; - notEmpty(options?: Options.IsEmptyOptions): Return; - contains(elem: any): Return; - equals(comparison: string): Return; - isAfter(date?: string): Return; - isAlpha(locale?: Options.AlphaLocale): Return; - isAlphanumeric(locale?: Options.AlphanumericLocale): Return; - isAscii(): Return; - isBase32(): Return; - isBase64(): Return; - isBefore(date?: string): Return; - isBIC(): Return; - isBoolean(): Return; - isBtcAddress(): Return; - isByteLength(options: Options.MinMaxExtendedOptions): Return; - isCreditCard(): Return; - isCurrency(options?: Options.IsCurrencyOptions): Return; - isDataURI(): Return; - isDecimal(options?: Options.IsDecimalOptions): Return; - isDivisibleBy(number: number): Return; - isEAN(): Return; - isEmail(options?: Options.IsEmailOptions): Return; - isEmpty(options?: Options.IsEmptyOptions): Return; - isEthereumAddress(): Return; - isFQDN(options?: Options.IsFQDNOptions): Return; - isFloat(options?: Options.IsFloatOptions): Return; - isFullWidth(): Return; - isHalfWidth(): Return; - isHash(algorithm: Options.HashAlgorithm): Return; - isHexColor(): Return; - isHexadecimal(): Return; - isHSL(): Return; - isIBAN(): Return; - isIdentityCard(locale?: ['ES'] | 'any'): Return; - isIP(version?: Options.IPVersion): Return; - isIPRange(): Return; - isISBN(version?: number): Return; - isISSN(options?: Options.IsISSNOptions): Return; - isISIN(): Return; - isISO8601(options?: Options.IsISO8601Options): Return; - isISO31661Alpha2(): Return; - isISO31661Alpha3(): Return; - isISRC(): Return; - isIn(values: any[]): Return; - isInt(options?: Options.IsIntOptions): Return; - isJSON(): Return; - isJWT(): Return; - isLatLong(): Return; - isLength(options: Options.MinMaxOptions): Return; - isLocale(): Return; - isLowercase(): Return; - isMagnetURI(): Return; - isMACAddress(options?: Options.IsMACAddressOptions): Return; - isMD5(): Return; - isMimeType(): Return; - isMobilePhone(locale: Options.MobilePhoneLocale | Options.MobilePhoneLocale[], options?: Options.IsMobilePhoneOptions): Return; - isMongoId(): Return; - isMultibyte(): Return; - isNumeric(options?: Options.IsNumericOptions): Return; - isOctal(): Return; - isPassportNumber(countryCode?: string): Return; - isPort(): Return; - isPostalCode(locale: Options.PostalCodeLocale): Return; - isRgbColor(includePercentValues?: boolean): Return; - isRFC3339(): Return; - isSemVer(): Return; - isSlug(): Return; - isSurrogatePair(): Return; - isURL(options?: Options.IsURLOptions): Return; - isUUID(version?: Options.UUIDVersion): Return; - isUppercase(): Return; - isVariableWidth(): Return; - isWhitelisted(chars: string | string[]): Return; - matches(pattern: RegExp | string, modifiers?: string): Return; -} diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/chain/validators.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/src/chain/validators.js deleted file mode 100644 index c8ad2e5..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/chain/validators.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/context-builder.d.ts b/Easebuzz_NodeJS_kit/node_modules/express-validator/src/context-builder.d.ts deleted file mode 100644 index 3cff4aa..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/context-builder.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { ContextItem } from './context-items'; -import { Context, Optional } from './context'; -import { Location } from './base'; -export declare class ContextBuilder { - private readonly stack; - private fields; - private locations; - private message; - private optional; - setFields(fields: string[]): this; - setLocations(locations: Location[]): this; - setMessage(message: any): this; - addItem(...items: ContextItem[]): this; - setOptional(options: Optional): this; - build(): Context; -} diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/context-builder.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/src/context-builder.js deleted file mode 100644 index a384baa..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/context-builder.js +++ /dev/null @@ -1,35 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const context_1 = require("./context"); -class ContextBuilder { - constructor() { - this.stack = []; - this.fields = []; - this.locations = []; - this.optional = false; - } - setFields(fields) { - this.fields = fields; - return this; - } - setLocations(locations) { - this.locations = locations; - return this; - } - setMessage(message) { - this.message = message; - return this; - } - addItem(...items) { - this.stack.push(...items); - return this; - } - setOptional(options) { - this.optional = options; - return this; - } - build() { - return new context_1.Context(this.fields, this.locations, this.stack, this.optional, this.message); - } -} -exports.ContextBuilder = ContextBuilder; diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/context-items/bail.d.ts b/Easebuzz_NodeJS_kit/node_modules/express-validator/src/context-items/bail.d.ts deleted file mode 100644 index a7106f7..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/context-items/bail.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { Context } from '../context'; -import { ContextItem } from './context-item'; -export declare class Bail implements ContextItem { - run(context: Context): Promise; -} diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/context-items/bail.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/src/context-items/bail.js deleted file mode 100644 index b8b9fa2..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/context-items/bail.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const base_1 = require("../base"); -class Bail { - run(context) { - if (context.errors.length > 0) { - throw new base_1.ValidationHalt(); - } - return Promise.resolve(); - } -} -exports.Bail = Bail; diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/context-items/chain-condition.d.ts b/Easebuzz_NodeJS_kit/node_modules/express-validator/src/context-items/chain-condition.d.ts deleted file mode 100644 index 595cd28..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/context-items/chain-condition.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { ValidationChain } from '../chain'; -import { Meta } from '../base'; -import { Context } from '../context'; -import { ContextItem } from './context-item'; -export declare class ChainCondition implements ContextItem { - private readonly chain; - constructor(chain: ValidationChain); - run(_context: Context, _value: any, meta: Meta): Promise; -} diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/context-items/chain-condition.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/src/context-items/chain-condition.js deleted file mode 100644 index 3245710..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/context-items/chain-condition.js +++ /dev/null @@ -1,15 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const base_1 = require("../base"); -class ChainCondition { - constructor(chain) { - this.chain = chain; - } - async run(_context, _value, meta) { - const otherContext = await this.chain.run(meta.req, { dryRun: true }); - if (otherContext.errors.length) { - throw new base_1.ValidationHalt(); - } - } -} -exports.ChainCondition = ChainCondition; diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/context-items/context-item.d.ts b/Easebuzz_NodeJS_kit/node_modules/express-validator/src/context-items/context-item.d.ts deleted file mode 100644 index 6cb197e..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/context-items/context-item.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { Meta } from '../base'; -import { Context } from '../context'; -export interface ContextItem { - run(context: Context, value: any, meta: Meta): Promise; -} diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/context-items/context-item.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/src/context-items/context-item.js deleted file mode 100644 index c8ad2e5..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/context-items/context-item.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/context-items/custom-condition.d.ts b/Easebuzz_NodeJS_kit/node_modules/express-validator/src/context-items/custom-condition.d.ts deleted file mode 100644 index 102d20a..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/context-items/custom-condition.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { CustomValidator, Meta } from '../base'; -import { Context } from '../context'; -import { ContextItem } from './context-item'; -export declare class CustomCondition implements ContextItem { - private readonly condition; - constructor(condition: CustomValidator); - run(_context: Context, value: any, meta: Meta): Promise; -} diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/context-items/custom-condition.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/src/context-items/custom-condition.js deleted file mode 100644 index d159647..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/context-items/custom-condition.js +++ /dev/null @@ -1,23 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const base_1 = require("../base"); -class CustomCondition { - constructor(condition) { - this.condition = condition; - } - async run(_context, value, meta) { - try { - const result = this.condition(value, meta); - await result; - // if the promise resolved or the result is truthy somehow, then there's no validation halt. - if (!result) { - // the error thrown here is symbolic, it will be re-thrown in the catch clause anyway. - throw new Error(); - } - } - catch (e) { - throw new base_1.ValidationHalt(); - } - } -} -exports.CustomCondition = CustomCondition; diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/context-items/custom-validation.d.ts b/Easebuzz_NodeJS_kit/node_modules/express-validator/src/context-items/custom-validation.d.ts deleted file mode 100644 index 15fa35b..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/context-items/custom-validation.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { CustomValidator, Meta } from '../base'; -import { Context } from '../context'; -import { ContextItem } from './context-item'; -export declare class CustomValidation implements ContextItem { - private readonly validator; - private readonly negated; - message: any; - constructor(validator: CustomValidator, negated: boolean); - run(context: Context, value: any, meta: Meta): Promise; -} diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/context-items/custom-validation.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/src/context-items/custom-validation.js deleted file mode 100644 index e88b8c4..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/context-items/custom-validation.js +++ /dev/null @@ -1,28 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -class CustomValidation { - constructor(validator, negated) { - this.validator = validator; - this.negated = negated; - } - async run(context, value, meta) { - try { - const result = this.validator(value, meta); - const actualResult = await result; - const isPromise = result && result.then; - const failed = this.negated ? actualResult : !actualResult; - // A promise that was resolved only adds an error if negated. - // Otherwise it always suceeds - if ((!isPromise && failed) || (isPromise && this.negated)) { - context.addError(this.message, value, meta); - } - } - catch (err) { - if (this.negated) { - return; - } - context.addError((err instanceof Error ? err.message : err) || this.message, value, meta); - } - } -} -exports.CustomValidation = CustomValidation; diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/context-items/index.d.ts b/Easebuzz_NodeJS_kit/node_modules/express-validator/src/context-items/index.d.ts deleted file mode 100644 index c04d281..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/context-items/index.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -export * from './chain-condition'; -export * from './context-item'; -export * from './custom-condition'; -export * from './custom-validation'; -export * from './standard-validation'; diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/context-items/index.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/src/context-items/index.js deleted file mode 100644 index 26f8845..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/context-items/index.js +++ /dev/null @@ -1,9 +0,0 @@ -"use strict"; -function __export(m) { - for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; -} -Object.defineProperty(exports, "__esModule", { value: true }); -__export(require("./chain-condition")); -__export(require("./custom-condition")); -__export(require("./custom-validation")); -__export(require("./standard-validation")); diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/context-items/sanitization.d.ts b/Easebuzz_NodeJS_kit/node_modules/express-validator/src/context-items/sanitization.d.ts deleted file mode 100644 index b8a35a1..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/context-items/sanitization.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { Context } from '../context'; -import { CustomSanitizer, Meta, StandardSanitizer } from '../base'; -import { ContextItem } from './context-item'; -export declare class Sanitization implements ContextItem { - private readonly sanitizer; - private readonly custom; - private readonly options; - constructor(sanitizer: StandardSanitizer | CustomSanitizer, custom: boolean, options?: any[]); - run(context: Context, value: any, meta: Meta): Promise; -} diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/context-items/sanitization.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/src/context-items/sanitization.js deleted file mode 100644 index 58fe263..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/context-items/sanitization.js +++ /dev/null @@ -1,18 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("../utils"); -class Sanitization { - constructor(sanitizer, custom, options = []) { - this.sanitizer = sanitizer; - this.custom = custom; - this.options = options; - } - async run(context, value, meta) { - const { path, location } = meta; - const newValue = this.custom - ? this.sanitizer(value, meta) - : this.sanitizer(utils_1.toString(value), ...this.options); - context.setData(path, newValue, location); - } -} -exports.Sanitization = Sanitization; diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/context-items/standard-validation.d.ts b/Easebuzz_NodeJS_kit/node_modules/express-validator/src/context-items/standard-validation.d.ts deleted file mode 100644 index 8e8a972..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/context-items/standard-validation.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { Meta, StandardValidator } from '../base'; -import { Context } from '../context'; -import { ContextItem } from './context-item'; -export declare class StandardValidation implements ContextItem { - private readonly validator; - private readonly negated; - private readonly options; - message: any; - constructor(validator: StandardValidator, negated: boolean, options?: any[]); - run(context: Context, value: any, meta: Meta): Promise; -} diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/context-items/standard-validation.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/src/context-items/standard-validation.js deleted file mode 100644 index b458b07..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/context-items/standard-validation.js +++ /dev/null @@ -1,17 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("../utils"); -class StandardValidation { - constructor(validator, negated, options = []) { - this.validator = validator; - this.negated = negated; - this.options = options; - } - async run(context, value, meta) { - const result = this.validator(utils_1.toString(value), ...this.options); - if (this.negated ? result : !result) { - context.addError(this.message, value, meta); - } - } -} -exports.StandardValidation = StandardValidation; diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/context.d.ts b/Easebuzz_NodeJS_kit/node_modules/express-validator/src/context.d.ts deleted file mode 100644 index dd1fc9d..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/context.d.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { FieldInstance, Location, Meta, ValidationError } from './base'; -import { ContextItem } from './context-items'; -export declare type Optional = { - nullable: boolean; - checkFalsy: boolean; -} | false; -export declare class Context { - readonly fields: string[]; - readonly locations: Location[]; - readonly stack: ReadonlyArray; - readonly optional: Optional; - readonly message?: any; - private readonly _errors; - get errors(): ReadonlyArray; - private readonly dataMap; - constructor(fields: string[], locations: Location[], stack: ReadonlyArray, optional: Optional, message?: any); - getData(options?: { - requiredOnly: boolean; - }): FieldInstance[]; - addFieldInstances(instances: FieldInstance[]): void; - setData(path: string, value: any, location: Location): void; - addError(message: any, value: any, meta: Meta): void; - addError(message: any, nestedErrors: ValidationError[]): void; -} -export declare type ReadonlyContext = Pick>; diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/context.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/src/context.js deleted file mode 100644 index 05c5223..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/context.js +++ /dev/null @@ -1,79 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const _ = require("lodash"); -function getDataMapKey(path, location) { - return `${location}:${path}`; -} -class Context { - constructor(fields, locations, stack, optional, message) { - this.fields = fields; - this.locations = locations; - this.stack = stack; - this.optional = optional; - this.message = message; - this._errors = []; - this.dataMap = new Map(); - } - get errors() { - return this._errors; - } - getData(options = { requiredOnly: false }) { - // Have to store this.optional in a const otherwise TS thinks the value could have changed - // when the functions below run - const { optional } = this; - const checks = options.requiredOnly && optional - ? [ - (value) => value !== undefined, - (value) => (optional.nullable ? value != null : true), - (value) => (optional.checkFalsy ? value : true), - ] - : []; - return _([...this.dataMap.values()]) - .groupBy('originalPath') - .flatMap((instances, group) => { - const locations = _.uniqBy(instances, 'location'); - // #331 - When multiple locations are involved, all of them must pass the validation. - // If none of the locations contain the field, we at least include one for error reporting. - // #458, #531 - Wildcards are an exception though: they may yield 0..* instances with different - // paths, so we may want to skip this filtering. - if (instances.length > 1 && locations.length > 1 && !group.includes('*')) { - const withValue = instances.filter(instance => instance.value !== undefined); - return withValue.length ? withValue : [instances[0]]; - } - return instances; - }) - .filter(instance => checks.every(check => check(instance.value))) - .valueOf(); - } - addFieldInstances(instances) { - instances.forEach(instance => { - this.dataMap.set(getDataMapKey(instance.path, instance.location), Object.assign({}, instance)); - }); - } - setData(path, value, location) { - const instance = this.dataMap.get(getDataMapKey(path, location)); - if (!instance) { - throw new Error('Attempt to write data that did not pre-exist in context'); - } - instance.value = value; - } - addError(message, valueOrNestedErrors, meta) { - const msg = message || this.message || 'Invalid value'; - if (meta) { - this._errors.push({ - value: valueOrNestedErrors, - msg: typeof msg === 'function' ? msg(valueOrNestedErrors, meta) : msg, - param: meta.path, - location: meta.location, - }); - } - else { - this._errors.push({ - msg, - param: '_error', - nestedErrors: valueOrNestedErrors, - }); - } - } -} -exports.Context = Context; diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/index.d.ts b/Easebuzz_NodeJS_kit/node_modules/express-validator/src/index.d.ts deleted file mode 100644 index a6f3d5d..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/index.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -export { Location, Meta, CustomValidator, CustomSanitizer, DynamicMessageCreator, ValidationError, } from './base'; -export { SanitizationChain, ValidationChain } from './chain'; -export * from './middlewares/one-of'; -export * from './middlewares/sanitization-chain-builders'; -export * from './middlewares/validation-chain-builders'; -export { checkSchema, Schema, ValidationSchema, // Deprecated -ParamSchema, ValidationParamSchema, } from './middlewares/schema'; -export * from './matched-data'; -export * from './validation-result'; diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/index.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/src/index.js deleted file mode 100644 index a66eeb2..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/index.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -function __export(m) { - for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; -} -Object.defineProperty(exports, "__esModule", { value: true }); -__export(require("./middlewares/one-of")); -__export(require("./middlewares/sanitization-chain-builders")); -__export(require("./middlewares/validation-chain-builders")); -var schema_1 = require("./middlewares/schema"); -exports.checkSchema = schema_1.checkSchema; -__export(require("./matched-data")); -__export(require("./validation-result")); diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/matched-data.d.ts b/Easebuzz_NodeJS_kit/node_modules/express-validator/src/matched-data.d.ts deleted file mode 100644 index 8320be2..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/matched-data.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { Location, Request } from './base'; -export declare type MatchedDataOptions = { - includeOptionals: boolean; - locations: Location[]; - onlyValidData: boolean; -}; -export declare function matchedData(req: Request, options?: Partial): Record; diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/matched-data.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/src/matched-data.js deleted file mode 100644 index c0c6873..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/matched-data.js +++ /dev/null @@ -1,37 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const _ = require("lodash"); -const base_1 = require("./base"); -function matchedData(req, options = {}) { - const internalReq = req; - const fieldExtractor = createFieldExtractor(options.includeOptionals !== true); - const validityFilter = createValidityFilter(options.onlyValidData); - const locationFilter = createLocationFilter(options.locations); - return _(internalReq[base_1.contextsKey]) - .flatMap(fieldExtractor) - .filter(validityFilter) - .map(field => field.instance) - .filter(locationFilter) - .reduce((state, instance) => _.set(state, instance.path, instance.value), {}) - .valueOf(); -} -exports.matchedData = matchedData; -function createFieldExtractor(removeOptionals) { - return (context) => { - const instances = context.getData({ requiredOnly: removeOptionals }); - return instances.map((instance) => ({ instance, context })); - }; -} -function createValidityFilter(onlyValidData = true) { - return !onlyValidData - ? () => true - : (field) => { - const hasError = field.context.errors.some(error => error.location === field.instance.location && error.param === field.instance.path); - return !hasError; - }; -} -function createLocationFilter(locations = []) { - // No locations mean all locations - const allLocations = locations.length === 0; - return allLocations ? () => true : (field) => locations.includes(field.location); -} diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/middlewares/check.d.ts b/Easebuzz_NodeJS_kit/node_modules/express-validator/src/middlewares/check.d.ts deleted file mode 100644 index 6afaad9..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/middlewares/check.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { ValidationChain } from '../chain'; -import { Location } from '../base'; -export declare function check(fields?: string | string[], locations?: Location[], message?: any): ValidationChain; diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/middlewares/check.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/src/middlewares/check.js deleted file mode 100644 index db1c5d9..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/middlewares/check.js +++ /dev/null @@ -1,23 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const chain_1 = require("../chain"); -const utils_1 = require("../utils"); -const context_builder_1 = require("../context-builder"); -function check(fields = '', locations = [], message) { - const builder = new context_builder_1.ContextBuilder() - .setFields(Array.isArray(fields) ? fields : [fields]) - .setLocations(locations) - .setMessage(message); - const runner = new chain_1.ContextRunnerImpl(builder); - const middleware = async (req, _res, next) => { - try { - await runner.run(req); - next(); - } - catch (e) { - next(e); - } - }; - return Object.assign(middleware, utils_1.bindAll(runner), utils_1.bindAll(new chain_1.SanitizersImpl(builder, middleware)), utils_1.bindAll(new chain_1.ValidatorsImpl(builder, middleware)), utils_1.bindAll(new chain_1.ContextHandlerImpl(builder, middleware)), { builder }); -} -exports.check = check; diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/middlewares/one-of.d.ts b/Easebuzz_NodeJS_kit/node_modules/express-validator/src/middlewares/one-of.d.ts deleted file mode 100644 index 300e55b..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/middlewares/one-of.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { ValidationChain } from '../chain'; -import { Middleware, Request } from '../base'; -export declare type OneOfCustomMessageBuilder = (options: { - req: Request; -}) => any; -export declare function oneOf(chains: (ValidationChain | ValidationChain[])[], message?: OneOfCustomMessageBuilder): Middleware; -export declare function oneOf(chains: (ValidationChain | ValidationChain[])[], message?: any): Middleware; diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/middlewares/one-of.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/src/middlewares/one-of.js deleted file mode 100644 index 5d72a16..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/middlewares/one-of.js +++ /dev/null @@ -1,41 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const _ = require("lodash"); -const chain_1 = require("../chain"); -const context_builder_1 = require("../context-builder"); -// A dummy context item that gets added to surrogate contexts just to make them run -const dummyItem = { async run() { } }; -function oneOf(chains, message) { - return async (req, _res, next) => { - const surrogateContext = new context_builder_1.ContextBuilder().addItem(dummyItem).build(); - // Run each group of chains in parallel, and within each group, run each chain in parallel too. - const promises = chains.map(async (chain) => { - const group = Array.isArray(chain) ? chain : [chain]; - const contexts = await Promise.all(group.map(chain => chain.run(req, { dryRun: true }))); - const groupErrors = _.flatMap(contexts, 'errors'); - // #536: The data from a chain within oneOf() can only be made available to e.g. matchedData() - // if its entire group is valid. - if (!groupErrors.length) { - contexts.forEach(context => { - surrogateContext.addFieldInstances(context.getData()); - }); - } - return groupErrors; - }); - try { - const allErrors = await Promise.all(promises); - const success = allErrors.some(groupErrors => groupErrors.length === 0); - if (!success) { - // Only add an error to the context if no group of chains had success. - surrogateContext.addError(typeof message === 'function' ? message({ req }) : message || 'Invalid value(s)', _.flatMap(allErrors)); - } - // Final context running pass to ensure contexts are added and values are modified properly - await new chain_1.ContextRunnerImpl(surrogateContext).run(req); - next(); - } - catch (e) { - next(e); - } - }; -} -exports.oneOf = oneOf; diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/middlewares/sanitization-chain-builders.d.ts b/Easebuzz_NodeJS_kit/node_modules/express-validator/src/middlewares/sanitization-chain-builders.d.ts deleted file mode 100644 index 7cf9561..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/middlewares/sanitization-chain-builders.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { Location } from '../base'; -export declare function buildSanitizeFunction(locations: Location[]): (fields?: string | string[] | undefined) => import("..").SanitizationChain; -export declare const sanitize: (fields?: string | string[] | undefined) => import("..").SanitizationChain; -export declare const sanitizeBody: (fields?: string | string[] | undefined) => import("..").SanitizationChain; -export declare const sanitizeCookie: (fields?: string | string[] | undefined) => import("..").SanitizationChain; -export declare const sanitizeParam: (fields?: string | string[] | undefined) => import("..").SanitizationChain; -export declare const sanitizeQuery: (fields?: string | string[] | undefined) => import("..").SanitizationChain; diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/middlewares/sanitization-chain-builders.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/src/middlewares/sanitization-chain-builders.js deleted file mode 100644 index a1988ce..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/middlewares/sanitization-chain-builders.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const sanitize_1 = require("./sanitize"); -function buildSanitizeFunction(locations) { - return (fields) => sanitize_1.sanitize(fields, locations); -} -exports.buildSanitizeFunction = buildSanitizeFunction; -exports.sanitize = buildSanitizeFunction(['body', 'cookies', 'params', 'query']); -exports.sanitizeBody = buildSanitizeFunction(['body']); -exports.sanitizeCookie = buildSanitizeFunction(['cookies']); -exports.sanitizeParam = buildSanitizeFunction(['params']); -exports.sanitizeQuery = buildSanitizeFunction(['query']); diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/middlewares/sanitize.d.ts b/Easebuzz_NodeJS_kit/node_modules/express-validator/src/middlewares/sanitize.d.ts deleted file mode 100644 index 2733ac9..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/middlewares/sanitize.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { SanitizationChain } from '../chain'; -import { Location } from '../base'; -export declare function sanitize(fields?: string | string[], locations?: Location[]): SanitizationChain; diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/middlewares/sanitize.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/src/middlewares/sanitize.js deleted file mode 100644 index 6d8e1e0..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/middlewares/sanitize.js +++ /dev/null @@ -1,29 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const chain_1 = require("../chain"); -const utils_1 = require("../utils"); -const context_builder_1 = require("../context-builder"); -let hasNotified = false; -function sanitize(fields = '', locations = []) { - if (!hasNotified) { - hasNotified = true; - console.warn('express-validator: sanitize(), sanitizeBody() and other sanitization-only middlewares ' + - 'have been deprecated.\nPlease use check(), body() and others instead, which must offer ' + - 'the same API, and more.'); - } - const builder = new context_builder_1.ContextBuilder() - .setFields(Array.isArray(fields) ? fields : [fields]) - .setLocations(locations); - const runner = new chain_1.ContextRunnerImpl(builder); - const middleware = async (req, _res, next) => { - try { - await runner.run(req); - next(); - } - catch (e) { - next(e); - } - }; - return Object.assign(middleware, utils_1.bindAll(runner), utils_1.bindAll(new chain_1.SanitizersImpl(builder, middleware)), { builder }); -} -exports.sanitize = sanitize; diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/middlewares/schema.d.ts b/Easebuzz_NodeJS_kit/node_modules/express-validator/src/middlewares/schema.d.ts deleted file mode 100644 index b36e00d..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/middlewares/schema.d.ts +++ /dev/null @@ -1,44 +0,0 @@ -import { Sanitizers } from '../chain/sanitizers'; -import { Validators } from '../chain/validators'; -import { DynamicMessageCreator, Location } from '../base'; -import { Optional } from '../context'; -declare type ValidatorSchemaOptions> = true | { - options?: Parameters[K]> | Parameters[K]>[0]; - errorMessage?: DynamicMessageCreator | any; - negated?: boolean; -}; -export declare type ValidatorsSchema = { - [K in keyof Validators]?: ValidatorSchemaOptions; -}; -declare type SanitizerSchemaOptions> = true | { - options?: Parameters[K]> | Parameters[K]>[0]; -}; -export declare type SanitizersSchema = { - [K in keyof Sanitizers]?: SanitizerSchemaOptions; -}; -declare type InternalParamSchema = ValidatorsSchema & SanitizersSchema; -/** - * Defines a schema of validations/sanitizations plus a general validation error message - * and possible field locations. - */ -export declare type ParamSchema = InternalParamSchema & { - in?: Location | Location[]; - errorMessage?: DynamicMessageCreator | any; - optional?: true | { - options?: Partial; - }; -}; -/** - * @deprecated Only here for v5 compatibility. Please use ParamSchema instead. - */ -export declare type ValidationParamSchema = ParamSchema; -/** - * Defines a mapping from field name to a validations/sanitizations schema. - */ -export declare type Schema = Record; -/** - * @deprecated Only here for v5 compatibility. Please use Schema instead. - */ -export declare type ValidationSchema = Schema; -export declare function checkSchema(schema: Schema, defaultLocations?: Location[]): import("../chain").ValidationChain[]; -export {}; diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/middlewares/schema.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/src/middlewares/schema.js deleted file mode 100644 index 8a46f31..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/middlewares/schema.js +++ /dev/null @@ -1,49 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const chain_1 = require("../chain"); -const check_1 = require("./check"); -const validLocations = ['body', 'cookies', 'headers', 'params', 'query']; -const protectedNames = ['errorMessage', 'in']; -function checkSchema(schema, defaultLocations = validLocations) { - return Object.keys(schema).map(field => { - const config = schema[field]; - const chain = check_1.check(field, ensureLocations(config, defaultLocations), config.errorMessage); - Object.keys(config) - .filter((method) => { - return config[method] && !protectedNames.includes(method); - }) - .forEach(method => { - if (typeof chain[method] !== 'function') { - console.warn(`express-validator: a validator/sanitizer with name ${method} does not exist`); - return; - } - // Using "!" because typescript doesn't know it isn't undefined. - const methodCfg = config[method]; - let options = methodCfg === true ? [] : methodCfg.options || []; - if (options != null && !Array.isArray(options)) { - options = [options]; - } - if (isValidatorOptions(method, methodCfg) && methodCfg.negated) { - chain.not(); - } - chain[method](...options); - if (isValidatorOptions(method, methodCfg) && methodCfg.errorMessage) { - chain.withMessage(methodCfg.errorMessage); - } - }); - return chain; - }); -} -exports.checkSchema = checkSchema; -function isValidatorOptions(method, methodCfg) { - return methodCfg !== true && method in chain_1.ValidatorsImpl.prototype; -} -function ensureLocations(config, defaults) { - // .filter(Boolean) is done because in can be undefined -- which is not going away from the type - // See https://github.com/Microsoft/TypeScript/pull/29955 for details - const locations = Array.isArray(config.in) - ? config.in - : [config.in].filter(Boolean); - const actualLocations = locations.length ? locations : defaults; - return actualLocations.filter(location => validLocations.includes(location)); -} diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/middlewares/validation-chain-builders.d.ts b/Easebuzz_NodeJS_kit/node_modules/express-validator/src/middlewares/validation-chain-builders.d.ts deleted file mode 100644 index 3497bc5..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/middlewares/validation-chain-builders.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { Location } from '../base'; -export declare function buildCheckFunction(locations: Location[]): (fields?: string | string[] | undefined, message?: any) => import("..").ValidationChain; -export declare const check: (fields?: string | string[] | undefined, message?: any) => import("..").ValidationChain; -export declare const body: (fields?: string | string[] | undefined, message?: any) => import("..").ValidationChain; -export declare const cookie: (fields?: string | string[] | undefined, message?: any) => import("..").ValidationChain; -export declare const header: (fields?: string | string[] | undefined, message?: any) => import("..").ValidationChain; -export declare const param: (fields?: string | string[] | undefined, message?: any) => import("..").ValidationChain; -export declare const query: (fields?: string | string[] | undefined, message?: any) => import("..").ValidationChain; diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/middlewares/validation-chain-builders.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/src/middlewares/validation-chain-builders.js deleted file mode 100644 index d7363b8..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/middlewares/validation-chain-builders.js +++ /dev/null @@ -1,13 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const check_1 = require("./check"); -function buildCheckFunction(locations) { - return (fields, message) => check_1.check(fields, locations, message); -} -exports.buildCheckFunction = buildCheckFunction; -exports.check = buildCheckFunction(['body', 'cookies', 'headers', 'params', 'query']); -exports.body = buildCheckFunction(['body']); -exports.cookie = buildCheckFunction(['cookies']); -exports.header = buildCheckFunction(['headers']); -exports.param = buildCheckFunction(['params']); -exports.query = buildCheckFunction(['query']); diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/options.d.ts b/Easebuzz_NodeJS_kit/node_modules/express-validator/src/options.d.ts deleted file mode 100644 index 68b2f48..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/options.d.ts +++ /dev/null @@ -1,165 +0,0 @@ -export declare type URLProtocol = 'http' | 'https' | 'ftp'; -export declare type UUIDVersion = 3 | 4 | 5 | '3' | '4' | '5' | 'all'; -export declare type IPVersion = 4 | 6; -export declare type AlphaLocale = 'ar' | 'ar-AE' | 'ar-BH' | 'ar-DZ' | 'ar-EG' | 'ar-IQ' | 'ar-JO' | 'ar-KW' | 'ar-LB' | 'ar-LY' | 'ar-MA' | 'ar-QA' | 'ar-QM' | 'ar-SA' | 'ar-SD' | 'ar-SY' | 'ar-TN' | 'ar-YE' | 'bg-BG' | 'cs-CZ' | 'da-DK' | 'de-DE' | 'el-GR' | 'en-AU' | 'en-GB' | 'en-HK' | 'en-IN' | 'en-NZ' | 'en-US' | 'en-ZA' | 'en-ZM' | 'es-ES' | 'fa-IR' | 'fr-FR' | 'he' | 'hu-HU' | 'it-IT' | 'ku-IQ' | 'nb-NO' | 'nl-NL' | 'nn-NO' | 'pl-PL' | 'pt-BR' | 'pt-PT' | 'ru-RU' | 'sk-SK' | 'sl-SI' | 'sr-RS' | 'sr-RS@latin' | 'sv-SE' | 'tr-TR' | 'uk-UA'; -export declare type AlphanumericLocale = 'ar' | 'ar-AE' | 'ar-BH' | 'ar-DZ' | 'ar-EG' | 'ar-IQ' | 'ar-JO' | 'ar-KW' | 'ar-LB' | 'ar-LY' | 'ar-MA' | 'ar-QA' | 'ar-QM' | 'ar-SA' | 'ar-SD' | 'ar-SY' | 'ar-TN' | 'ar-YE' | 'bg-BG' | 'cs-CZ' | 'da-DK' | 'de-DE' | 'el-GR' | 'en-AU' | 'en-GB' | 'en-HK' | 'en-IN' | 'en-NZ' | 'en-US' | 'en-ZA' | 'en-ZM' | 'es-ES' | 'fa-IR' | 'fr-FR' | 'fr-BE' | 'he' | 'hu-HU' | 'it-IT' | 'ku-IQ' | 'nb-NO' | 'nl-BE' | 'nl-NL' | 'nn-NO' | 'pl-PL' | 'pt-BR' | 'pt-PT' | 'ru-RU' | 'sk-SK' | 'sl-SI' | 'sr-RS' | 'sr-RS@latin' | 'sv-SE' | 'tr-TR' | 'uk-UA'; -export declare type MobilePhoneLocale = 'any' | 'ar-AE' | 'ar-BH' | 'ar-DZ' | 'ar-EG' | 'ar-JO' | 'ar-IQ' | 'ar-KW' | 'ar-SA' | 'ar-SY' | 'ar-TN' | 'be-BY' | 'bg-BG' | 'bn-BD' | 'cs-CZ' | 'de-AT' | 'de-DE' | 'da-DK' | 'el-GR' | 'en-AU' | 'en-CA' | 'en-GB' | 'en-GG' | 'en-GH' | 'en-HK' | 'en-IE' | 'en-IN' | 'en-KE' | 'en-MT' | 'en-MU' | 'en-NG' | 'en-NZ' | 'en-PK' | 'en-RW' | 'en-SG' | 'en-TZ' | 'en-UG' | 'en-US' | 'en-ZA' | 'en-ZM' | 'es-CL' | 'es-EC' | 'es-ES' | 'es-MX' | 'es-PA' | 'es-PY' | 'es-UY' | 'et-EE' | 'fa-IR' | 'fi-FI' | 'fj-FJ' | 'fo-FO' | 'fr-FR' | 'fr-GF' | 'fr-GP' | 'fr-MQ' | 'fr-RE' | 'he-IL' | 'hu-HU' | 'id-ID' | 'it-IT' | 'ja-JP' | 'kk-KZ' | 'kl-GL' | 'lt-LT' | 'ms-MY' | 'nb-NO' | 'nl-NL' | 'ne-NP' | 'nn-NO' | 'pl-PL' | 'pt-BR' | 'pt-PT' | 'ro-RO' | 'ru-RU' | 'sk-SK' | 'sl-SI' | 'sr-RS' | 'sv-SE' | 'th-TH' | 'tr-TR' | 'uk-UA' | 'vi-VN' | 'zh-CN' | 'zh-HK' | 'zh-TW'; -export declare type PostalCodeLocale = 'any' | 'AD' | 'AT' | 'AU' | 'BE' | 'BG' | 'BR' | 'CA' | 'CH' | 'CZ' | 'DE' | 'DK' | 'DZ' | 'EE' | 'ES' | 'FI' | 'FR' | 'GB' | 'GR' | 'HR' | 'HU' | 'ID' | 'IL' | 'IN' | 'IS' | 'IR' | 'IT' | 'JP' | 'KE' | 'LI' | 'LT' | 'LU' | 'LV' | 'MT' | 'MX' | 'NL' | 'NO' | 'NZ' | 'PL' | 'PR' | 'PT' | 'RO' | 'RU' | 'SA' | 'SE' | 'SI' | 'TN' | 'TW' | 'UA' | 'US' | 'ZA' | 'ZM'; -export declare type HashAlgorithm = 'md4' | 'md5' | 'sha1' | 'sha256' | 'sha384' | 'sha512' | 'ripemd128' | 'ripemd160' | 'tiger128' | 'tiger160' | 'tiger192' | 'crc32' | 'crc32b'; -export declare type IdentityCard = 'any' | 'ES' | 'he-IL' | 'zh-TW'; -export interface MinMaxOptions { - min?: number; - max?: number; -} -export interface MinMaxExtendedOptions extends MinMaxOptions { - lt?: number; - gt?: number; -} -/** - * defaults to - * { - * symbol: '$', - * require_symbol: false, - * allow_space_after_symbol: false, - * symbol_after_digits: false, - * allow_negatives: true, - * parens_for_negatives: false, - * negative_sign_before_digits: false, - * negative_sign_after_digits: false, - * allow_negative_sign_placeholder: false, - * thousands_separator: ',', - * decimal_separator: '.', - * allow_space_after_digits: false - * } - */ -export interface IsCurrencyOptions { - symbol?: string; - require_symbol?: boolean; - allow_space_after_symbol?: boolean; - symbol_after_digits?: boolean; - allow_negatives?: boolean; - parens_for_negatives?: boolean; - negative_sign_before_digits?: boolean; - negative_sign_after_digits?: boolean; - allow_negative_sign_placeholder?: boolean; - thousands_separator?: string; - decimal_separator?: string; - allow_decimal?: boolean; - require_decimal?: boolean; - digits_after_decimal?: number[]; - allow_space_after_digits?: boolean; -} -export interface IsDecimalOptions { - decimal_digits?: string; - force_decimal?: boolean; - locale?: AlphanumericLocale; -} -export interface IsEmailOptions { - allow_display_name?: boolean; - allow_utf8_local_part?: boolean; - require_tld?: boolean; -} -/** - * defaults to - * { - * ignore_whitespace: false - * } - */ -export interface IsEmptyOptions { - ignore_whitespace: boolean; -} -export interface IsFloatOptions extends MinMaxExtendedOptions { - locale?: AlphanumericLocale; -} -/** - * defaults to - * { - * require_tld: true, - * allow_underscores: false, - * allow_trailing_dot: false - * } - */ -export interface IsFQDNOptions { - require_tld?: boolean; - allow_underscores?: boolean; - allow_trailing_dot?: boolean; -} -export interface IsIntOptions extends MinMaxExtendedOptions { - allow_leading_zeroes?: boolean; -} -export interface IsISO8601Options { - strict: boolean; -} -/** - * defaults to - * { - * case_sensitive: false, - * require_hyphen: false - * } - */ -export interface IsISSNOptions { - case_sensitive?: boolean; - require_hyphen?: boolean; -} -/** - * defaults to - * { - * no_colons: false - * } - */ -export interface IsMACAddressOptions { - no_colons?: boolean; -} -export interface IsMobilePhoneOptions { - strictMode?: boolean; -} -/** - * defaults to - * { - * no_symbols: false - * } - */ -export interface IsNumericOptions { - no_symbols: boolean; -} -/** - * defaults to - * { - * protocols: ['http','https','ftp'], - * require_tld: true, - * require_protocol: false, - * require_host: true, - * require_valid_protocol: true, - * allow_underscores: false, - * host_whitelist: false, - * host_blacklist: false, - * allow_trailing_dot: false, - * allow_protocol_relative_urls: false - * } - */ -export interface IsURLOptions { - protocols?: URLProtocol[]; - require_tld?: boolean; - require_protocol?: boolean; - require_host?: boolean; - require_valid_protocol?: boolean; - allow_underscores?: boolean; - host_whitelist?: (string | RegExp)[]; - host_blacklist?: (string | RegExp)[]; - allow_trailing_dot?: boolean; - allow_protocol_relative_urls?: boolean; - disallow_auth?: boolean; -} -export interface NormalizeEmailOptions { - all_lowercase?: boolean; - gmail_lowercase?: boolean; - gmail_remove_dots?: boolean; - gmail_remove_subaddress?: boolean; - gmail_convert_googlemaildotcom?: boolean; - outlookdotcom_lowercase?: boolean; - outlookdotcom_remove_subaddress?: boolean; - yahoo_lowercase?: boolean; - yahoo_remove_subaddress?: boolean; - icloud_lowercase?: boolean; - icloud_remove_subaddress?: boolean; -} diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/options.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/src/options.js deleted file mode 100644 index c8ad2e5..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/options.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/select-fields.d.ts b/Easebuzz_NodeJS_kit/node_modules/express-validator/src/select-fields.d.ts deleted file mode 100644 index 9e4cc2e..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/select-fields.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { FieldInstance, Location, Request } from './base'; -export declare type SelectFields = (req: Request, fields: string[], locations: Location[]) => FieldInstance[]; -export declare const selectFields: SelectFields; diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/select-fields.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/src/select-fields.js deleted file mode 100644 index bfd9eb3..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/select-fields.js +++ /dev/null @@ -1,76 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const _ = require("lodash"); -exports.selectFields = (req, fields, locations) => _(fields) - .flatMap(field => _.flatMap(locations, location => { - return expandField(req, field, location); -})) - // Avoid duplicates if multiple field selections would return the same field twice. - // E.g. with fields = ['*.foo', 'bar.foo'] and req.body = { bar: { foo: 1 }, baz: { foo: 2 } }, - // the instance bla.foo would appear twice, and baz.foo once. - .uniqWith(isSameFieldInstance) - .value(); -function isSameFieldInstance(a, b) { - return a.path === b.path && a.location === b.location; -} -function expandField(req, field, location) { - const originalPath = field; - const pathToExpand = location === 'headers' ? field.toLowerCase() : field; - const paths = []; - expandPath(req[location], pathToExpand, paths); - return paths.map(path => { - const value = path === '' ? req[location] : _.get(req[location], path); - return { - location, - path, - originalPath, - value, - originalValue: value, - }; - }); -} -function expandPath(object, path, accumulator) { - const segments = _.toPath(path); - const wildcardPos = segments.indexOf('*'); - if (wildcardPos > -1) { - const subObject = wildcardPos === 0 ? object : _.get(object, segments.slice(0, wildcardPos)); - if (!subObject || !_.isObjectLike(subObject)) { - return; - } - Object.keys(subObject) - .map(key => segments - // Before the * - .slice(0, wildcardPos) - // The part that the * matched - .concat(key) - // After the * - .concat(segments.slice(wildcardPos + 1))) - .forEach(subPath => { - expandPath(object, subPath, accumulator); - }); - } - else { - const reconstructedPath = segments.reduce((prev, segment) => { - let part = ''; - // TODO: Handle brackets? - if (segment.includes('.')) { - // Special char key access - part = `["${segment}"]`; - } - else if (/^\d+$/.test(segment)) { - // Index access - part = `[${segment}]`; - } - else if (prev) { - // Object key access - part = `.${segment}`; - } - else { - // Top level key - part = segment; - } - return prev + part; - }, ''); - accumulator.push(reconstructedPath); - } -} diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/utils.d.ts b/Easebuzz_NodeJS_kit/node_modules/express-validator/src/utils.d.ts deleted file mode 100644 index c563f6f..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/utils.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare const bindAll: (object: T) => { [K in keyof T]: T[K]; }; -export declare function toString(value: any, deep?: boolean): string; diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/utils.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/src/utils.js deleted file mode 100644 index f3d26f2..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/utils.js +++ /dev/null @@ -1,28 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.bindAll = (object) => { - const protoKeys = Object.getOwnPropertyNames(Object.getPrototypeOf(object)); - protoKeys.forEach(key => { - const maybeFn = object[key]; - if (typeof maybeFn === 'function' && key !== 'constructor') { - object[key] = maybeFn.bind(object); - } - }); - return object; -}; -function toString(value, deep = true) { - if (Array.isArray(value) && value.length && deep) { - return toString(value[0], false); - } - else if (value instanceof Date) { - return value.toISOString(); - } - else if (value && typeof value === 'object' && value.toString) { - return value.toString(); - } - else if (value == null || (isNaN(value) && !value.length)) { - return ''; - } - return String(value); -} -exports.toString = toString; diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/validation-result.d.ts b/Easebuzz_NodeJS_kit/node_modules/express-validator/src/validation-result.d.ts deleted file mode 100644 index 649019e..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/validation-result.d.ts +++ /dev/null @@ -1,23 +0,0 @@ -import { Request, ValidationError } from './base'; -export declare type ErrorFormatter = (error: ValidationError) => T; -export declare type ResultFactory = (req: Request) => Result; -interface ResultFactoryBuilderOptions { - formatter: ErrorFormatter; -} -export declare const validationResult: ResultFactory & { - withDefaults: typeof withDefaults; -}; -export declare class Result { - private formatter; - private readonly errors; - constructor(formatter: ErrorFormatter, errors: ValidationError[]); - array(options?: { - onlyFirstError?: boolean; - }): T[]; - mapped(): Record; - formatWith(formatter: ErrorFormatter): Result; - isEmpty(): boolean; - throw(): void; -} -declare function withDefaults(options?: Partial>): ResultFactory; -export {}; diff --git a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/validation-result.js b/Easebuzz_NodeJS_kit/node_modules/express-validator/src/validation-result.js deleted file mode 100644 index 762d5a0..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/express-validator/src/validation-result.js +++ /dev/null @@ -1,50 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const _ = require("lodash"); -const base_1 = require("./base"); -const utils_1 = require("./utils"); -// Assign to a variable so that TS doesn't use its catch all overload, which returns any -const withWithDefaults = { withDefaults }; -exports.validationResult = Object.assign(withDefaults(), withWithDefaults); -class Result { - constructor(formatter, errors) { - this.formatter = formatter; - this.errors = errors; - } - array(options) { - return options && options.onlyFirstError - ? Object.values(this.mapped()) - : this.errors.map(this.formatter); - } - mapped() { - return this.errors.reduce((mapping, error) => { - if (!mapping[error.param]) { - mapping[error.param] = this.formatter(error); - } - return mapping; - }, {}); - } - formatWith(formatter) { - return new Result(formatter, this.errors); - } - isEmpty() { - return this.errors.length === 0; - } - throw() { - if (!this.isEmpty()) { - throw Object.assign(new Error(), utils_1.bindAll(this)); - } - } -} -exports.Result = Result; -function withDefaults(options = {}) { - const defaults = { - formatter: error => error, - }; - const actualOptions = _.defaults(options, defaults); - return (req) => { - const contexts = req[base_1.contextsKey] || []; - const errors = _.flatMap(contexts, 'errors'); - return new Result(actualOptions.formatter, errors); - }; -} diff --git a/Easebuzz_NodeJS_kit/node_modules/filelist/Jakefile b/Easebuzz_NodeJS_kit/node_modules/filelist/Jakefile deleted file mode 100644 index ef22ba0..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/filelist/Jakefile +++ /dev/null @@ -1,14 +0,0 @@ -testTask('FileList', function () { - this.testFiles.include('test/*.js'); -}); - -publishTask('FileList', function () { - this.packageFiles.include([ - 'Jakefile' - , 'README.md' - , 'package.json' - , 'index.js' - ]); -}); - - diff --git a/Easebuzz_NodeJS_kit/node_modules/filelist/README.md b/Easebuzz_NodeJS_kit/node_modules/filelist/README.md deleted file mode 100644 index b52ebe7..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/filelist/README.md +++ /dev/null @@ -1,84 +0,0 @@ -## FileList - -A FileList is a lazy-evaluated list of files. When given a list -of glob patterns for possible files to be included in the file -list, instead of searching the file structures to find the files, -a FileList holds the pattern for latter use. - -This allows you to define a FileList to match any number of -files, but only search out the actual files when then FileList -itself is actually used. The key is that the first time an -element of the FileList/Array is requested, the pending patterns -are resolved into a real list of file names. - -### Usage - -Add files to the list with the `include` method. You can add glob -patterns, individual files, or RegExp objects. When the Array -methods are invoked on the FileList, these items are resolved to -an actual list of files. - -```javascript -var fl = new FileList(); -fl.include('test/*.js'); -fl.exclude('test/helpers.js'); -``` - -Use the `exclude` method to override inclusions. You can use this -when your inclusions are too broad. - -### Array methods - -FileList has lazy-evaluated versions of most of the array -methods, including the following: - -* join -* pop -* push -* concat -* reverse -* shift -* unshift -* slice -* splice -* sort -* filter -* forEach -* some -* every -* map -* indexOf -* lastIndexOf -* reduce -* reduceRight - -When you call one of these methods, the items in the FileList -will be resolved to the full list of files, and the method will -be invoked on that result. - -### Special `length` method - -`length`: FileList includes a length *method* (instead of a -property) which returns the number of actual files in the list -once it's been resolved. - -### FileList-specific methods - -`include`: Add a filename/glob/regex to the list - -`exclude`: Override inclusions by excluding a filename/glob/regex - -`resolve`: Resolve the items in the FileList to the full list of -files. This method is invoked automatically when one of the array -methods is called. - -`toArray`: Immediately resolves the list of items, and returns an -actual array of filepaths. - -`clearInclusions`: Clears any pending items -- must be used -before resolving the list. - -`clearExclusions`: Clears the list of exclusions rules. - - - diff --git a/Easebuzz_NodeJS_kit/node_modules/filelist/index.js b/Easebuzz_NodeJS_kit/node_modules/filelist/index.js deleted file mode 100644 index 3362e3b..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/filelist/index.js +++ /dev/null @@ -1,484 +0,0 @@ -/* - * Jake JavaScript build tool - * Copyright 2112 Matthew Eernisse (mde@fleegix.org) - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * -*/ -var fs = require('fs') -, path = require('path') -, minimatch = require('minimatch') -, escapeRegExpChars -, merge -, basedir -, _readDir -, readdirR -, globSync; - - /** - @name escapeRegExpChars - @function - @return {String} A string of escaped characters - @description Escapes regex control-characters in strings - used to build regexes dynamically - @param {String} string The string of chars to escape - */ - escapeRegExpChars = (function () { - var specials = [ '^', '$', '/', '.', '*', '+', '?', '|', '(', ')', - '[', ']', '{', '}', '\\' ]; - var sRE = new RegExp('(\\' + specials.join('|\\') + ')', 'g'); - return function (string) { - var str = string || ''; - str = String(str); - return str.replace(sRE, '\\$1'); - }; - })(); - - /** - @name merge - @function - @return {Object} Returns the merged object - @description Merge merges `otherObject` into `object` and takes care of deep - merging of objects - @param {Object} object Object to merge into - @param {Object} otherObject Object to read from - */ - merge = function (object, otherObject) { - var obj = object || {} - , otherObj = otherObject || {} - , key, value; - - for (key in otherObj) { - value = otherObj[key]; - - // Check if a value is an Object, if so recursively add it's key/values - if (typeof value === 'object' && !(value instanceof Array)) { - // Update value of object to the one from otherObj - obj[key] = merge(obj[key], value); - } - // Value is anything other than an Object, so just add it - else { - obj[key] = value; - } - } - - return obj; - }; - /** - Given a patern, return the base directory of it (ie. the folder - that will contain all the files matching the path). - eg. file.basedir('/test/**') => '/test/' - Path ending by '/' are considerd as folder while other are considerd - as files, eg.: - file.basedir('/test/a/') => '/test/a' - file.basedir('/test/a') => '/test' - The returned path always end with a '/' so we have: - file.basedir(file.basedir(x)) == file.basedir(x) - */ - basedir = function (pathParam) { - var bd = '' - , parts - , part - , pos = 0 - , p = pathParam || ''; - - // If the path has a leading asterisk, basedir is the current dir - if (p.indexOf('*') == 0 || p.indexOf('**') == 0) { - return '.'; - } - - // always consider .. at the end as a folder and not a filename - if (/(?:^|\/|\\)\.\.$/.test(p.slice(-3))) { - p += '/'; - } - - parts = p.split(/\\|\//); - for (var i = 0, l = parts.length - 1; i < l; i++) { - part = parts[i]; - if (part.indexOf('*') > -1 || part.indexOf('**') > -1) { - break; - } - pos += part.length + 1; - bd += part + p[pos - 1]; - } - if (!bd) { - bd = '.'; - } - // Strip trailing slashes - if (!(bd == '\\' || bd == '/')) { - bd = bd.replace(/\\$|\/$/, ''); - } - return bd; - - }; - - // Return the contents of a given directory - _readDir = function (dirPath) { - var dir = path.normalize(dirPath) - , paths = [] - , ret = [dir] - , msg; - - try { - paths = fs.readdirSync(dir); - } - catch (e) { - msg = 'Could not read path ' + dir + '\n'; - if (e.stack) { - msg += e.stack; - } - throw new Error(msg); - } - - paths.forEach(function (p) { - var curr = path.join(dir, p); - var stat = fs.statSync(curr); - if (stat.isDirectory()) { - ret = ret.concat(_readDir(curr)); - } - else { - ret.push(curr); - } - }); - - return ret; - }; - - /** - @name file#readdirR - @function - @return {Array} Returns the contents as an Array, can be configured via opts.format - @description Reads the given directory returning it's contents - @param {String} dir The directory to read - @param {Object} opts Options to use - @param {String} [opts.format] Set the format to return(Default: Array) - */ - readdirR = function (dir, opts) { - var options = opts || {} - , format = options.format || 'array' - , ret; - ret = _readDir(dir); - return format == 'string' ? ret.join('\n') : ret; - }; - - -globSync = function (pat, opts) { - var dirname = basedir(pat) - , files - , matches; - - try { - files = readdirR(dirname).map(function(file){ - return file.replace(/\\/g, '/'); - }); - } - // Bail if path doesn't exist -- assume no files - catch(e) { - console.error(e.message); - } - - if (files) { - pat = path.normalize(pat); - matches = minimatch.match(files, pat, opts || {}); - } - return matches || []; -}; - -// Constants -// --------------- -// List of all the builtin Array methods we want to override -var ARRAY_METHODS = Object.getOwnPropertyNames(Array.prototype) -// Array methods that return a copy instead of affecting the original - , SPECIAL_RETURN = { - 'concat': true - , 'slice': true - , 'filter': true - , 'map': true - } -// Default file-patterns we want to ignore - , DEFAULT_IGNORE_PATTERNS = [ - /(^|[\/\\])CVS([\/\\]|$)/ - , /(^|[\/\\])\.svn([\/\\]|$)/ - , /(^|[\/\\])\.git([\/\\]|$)/ - , /\.bak$/ - , /~$/ - ] -// Ignore core files - , DEFAULT_IGNORE_FUNCS = [ - function (name) { - var isDir = false - , stats; - try { - stats = fs.statSync(name); - isDir = stats.isDirectory(); - } - catch(e) {} - return (/(^|[\/\\])core$/).test(name) && !isDir; - } - ]; - -var FileList = function () { - var self = this - , wrap; - - // List of glob-patterns or specific filenames - this.pendingAdd = []; - // Switched to false after lazy-eval of files - this.pending = true; - // Used to calculate exclusions from the list of files - this.excludes = { - pats: DEFAULT_IGNORE_PATTERNS.slice() - , funcs: DEFAULT_IGNORE_FUNCS.slice() - , regex: null - }; - this.items = []; - - // Wrap the array methods with the delegates - wrap = function (prop) { - var arr; - self[prop] = function () { - if (self.pending) { - self.resolve(); - } - if (typeof self.items[prop] == 'function') { - // Special method that return a copy - if (SPECIAL_RETURN[prop]) { - arr = self.items[prop].apply(self.items, arguments); - return FileList.clone(self, arr); - } - else { - return self.items[prop].apply(self.items, arguments); - } - } - else { - return self.items[prop]; - } - }; - }; - for (var i = 0, ii = ARRAY_METHODS.length; i < ii; i++) { - wrap(ARRAY_METHODS[i]); - } - - // Include whatever files got passed to the constructor - this.include.apply(this, arguments); - - // Fix constructor linkage - this.constructor = FileList; -}; - -FileList.prototype = new (function () { - var globPattern = /[*?\[\{]/; - - var _addMatching = function (item) { - var matches = globSync(item.path, item.options); - this.items = this.items.concat(matches); - } - - , _resolveAdd = function (item) { - if (globPattern.test(item.path)) { - _addMatching.call(this, item); - } - else { - this.push(item.path); - } - } - - , _calculateExcludeRe = function () { - var pats = this.excludes.pats - , pat - , excl = [] - , matches = []; - - for (var i = 0, ii = pats.length; i < ii; i++) { - pat = pats[i]; - if (typeof pat == 'string') { - // Glob, look up files - if (/[*?]/.test(pat)) { - matches = globSync(pat); - matches = matches.map(function (m) { - return escapeRegExpChars(m); - }); - excl = excl.concat(matches); - } - // String for regex - else { - excl.push(escapeRegExpChars(pat)); - } - } - // Regex, grab the string-representation - else if (pat instanceof RegExp) { - excl.push(pat.toString().replace(/^\/|\/$/g, '')); - } - } - if (excl.length) { - this.excludes.regex = new RegExp('(' + excl.join(')|(') + ')'); - } - else { - this.excludes.regex = /^$/; - } - } - - , _resolveExclude = function () { - var self = this; - _calculateExcludeRe.call(this); - // No `reject` method, so use reverse-filter - this.items = this.items.filter(function (name) { - return !self.shouldExclude(name); - }); - }; - - /** - * Includes file-patterns in the FileList. Should be called with one or more - * pattern for finding file to include in the list. Arguments should be strings - * for either a glob-pattern or a specific file-name, or an array of them - */ - this.include = function () { - var args = Array.prototype.slice.call(arguments) - , arg - , includes = { items: [], options: {} }; - - for (var i = 0, ilen = args.length; i < ilen; i++) { - arg = args[i]; - - if (typeof arg === 'object' && !Array.isArray(arg)) { - merge(includes.options, arg); - } else { - includes.items = includes.items.concat(arg).filter(function (item) { - return !!item; - }); - } - } - - var items = includes.items.map(function(item) { - return { path: item, options: includes.options }; - }); - - this.pendingAdd = this.pendingAdd.concat(items); - - return this; - }; - - /** - * Indicates whether a particular file would be filtered out by the current - * exclusion rules for this FileList. - * @param {String} name The filename to check - * @return {Boolean} Whether or not the file should be excluded - */ - this.shouldExclude = function (name) { - if (!this.excludes.regex) { - _calculateExcludeRe.call(this); - } - var excl = this.excludes; - return excl.regex.test(name) || excl.funcs.some(function (f) { - return !!f(name); - }); - }; - - /** - * Excludes file-patterns from the FileList. Should be called with one or more - * pattern for finding file to include in the list. Arguments can be: - * 1. Strings for either a glob-pattern or a specific file-name - * 2. Regular expression literals - * 3. Functions to be run on the filename that return a true/false - */ - this.exclude = function () { - var args = Array.isArray(arguments[0]) ? arguments[0] : arguments - , arg; - for (var i = 0, ii = args.length; i < ii; i++) { - arg = args[i]; - if (typeof arg == 'function' && !(arg instanceof RegExp)) { - this.excludes.funcs.push(arg); - } - else { - this.excludes.pats.push(arg); - } - } - if (!this.pending) { - _resolveExclude.call(this); - } - return this; - }; - - /** - * Populates the FileList from the include/exclude rules with a list of - * actual files - */ - this.resolve = function () { - var item - , uniqueFunc = function (p, c) { - if (p.indexOf(c) < 0) { - p.push(c); - } - return p; - }; - if (this.pending) { - this.pending = false; - while ((item = this.pendingAdd.shift())) { - _resolveAdd.call(this, item); - } - // Reduce to a unique list - this.items = this.items.reduce(uniqueFunc, []); - // Remove exclusions - _resolveExclude.call(this); - } - return this; - }; - - /** - * Convert to a plain-jane array - */ - this.toArray = function () { - // Call slice to ensure lazy-resolution before slicing items - var ret = this.slice().items.slice(); - return ret; - }; - - /** - * Clear any pending items -- only useful before - * calling `resolve` - */ - this.clearInclusions = function () { - this.pendingAdd = []; - return this; - }; - - /** - * Clear any current exclusion rules - */ - this.clearExclusions = function () { - this.excludes = { - pats: [] - , funcs: [] - , regex: null - }; - return this; - }; - -})(); - -// Static method, used to create copy returned by special -// array methods -FileList.clone = function (list, items) { - var clone = new FileList(); - if (items) { - clone.items = items; - } - clone.pendingAdd = list.pendingAdd; - clone.pending = list.pending; - for (var p in list.excludes) { - clone.excludes[p] = list.excludes[p]; - } - return clone; -}; - -exports.FileList = FileList; diff --git a/Easebuzz_NodeJS_kit/node_modules/filelist/package.json b/Easebuzz_NodeJS_kit/node_modules/filelist/package.json deleted file mode 100644 index c04213b..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/filelist/package.json +++ /dev/null @@ -1,89 +0,0 @@ -{ - "_args": [ - [ - "filelist@^1.0.1", - "/home/support/NodeJS/node_modules/jake" - ] - ], - "_from": "filelist@>=1.0.1 <2.0.0", - "_hasShrinkwrap": false, - "_id": "filelist@1.0.1", - "_inCache": true, - "_installable": true, - "_integrity": "", - "_location": "/filelist", - "_nodeVersion": "10.13.0", - "_npmOperationalInternal": { - "host": "s3://npm-registry-packages", - "tmp": "tmp/filelist_1.0.1_1587692282405_0.6587787544409176" - }, - "_npmUser": { - "email": "mde@fleegix.org", - "name": "mde" - }, - "_npmVersion": "6.4.1", - "_phantomChildren": {}, - "_requested": { - "name": "filelist", - "raw": "filelist@^1.0.1", - "rawSpec": "^1.0.1", - "scope": null, - "spec": ">=1.0.1 <2.0.0", - "type": "range" - }, - "_requiredBy": [ - "/jake" - ], - "_resolved": "https://registry.npmjs.org/filelist/-/filelist-1.0.1.tgz", - "_shasum": "f10d1a3ae86c1694808e8f20906f43d4c9132dbb", - "_shrinkwrap": null, - "_spec": "filelist@^1.0.1", - "_where": "/home/support/NodeJS/node_modules/jake", - "author": { - "email": "mde@fleegix.org", - "name": "Matthew Eernisse", - "url": "http://fleegix.org" - }, - "bugs": { - "url": "https://github.com/mde/filelist/issues" - }, - "dependencies": { - "minimatch": "^3.0.4" - }, - "description": "Lazy-evaluating list of files, based on globs or regex patterns", - "devDependencies": {}, - "directories": {}, - "dist": { - "fileCount": 5, - "integrity": "sha512-8zSK6Nu0DQIC08mUC46sWGXi+q3GGpKydAG36k+JDba6VRpkevvOWUW5a/PhShij4+vHT9M+ghgG7eM+a9JDUQ==", - "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeokL6CRA9TVsSAnZWagAAMIMQAIxMo2ub1alM1grn4Erj\nZ4jq2+SuDfDNZQkbMsntB0T+zhWPfAWydAiGP50SEb/hiy5imuRmdsur+OsW\nLS3T0wcD1Nzn61EYofC2kal8G4GBbQkeZbex72t1kJMrIqg3U0ry3Hbj34n6\nU8U7+7EVh/BH0e4fnHTFDWsZajI0lv3hjuqGN23o4ojU9U42FQIons9PS+Lg\nUBuQ1ZTw8v5O1AVE7aBG9KdHGrhIuQBg7MESK62waQNs23klnTF7KpHIeX2m\naWKd1UPYn8VbiOqqvcr5vTu1vSZLtxxaM3ZpOoywI9VTgDlfCSdKP3YdVP+S\n8rg+iO3EfNH8owfMp+0fSXL+87RoGgsw3uDm1o7mAcXUqd6vVBfhcBjgOZy0\nsqyhNeSeNrU2JrMq3mW5B/WndBMz7/K3C7zAyR3xrDeC80hhw7D7wZx5UDfl\nMxm/SuHGzXm0oCKM89vlFh6h4ST9yUeIUkP62fga0MvFe+Ak1iwhiNH6naQL\nzoHtYyTdsvQx8VY4AdC8Z2/s4PxoakgJ+AciwrSYa6+F2ejfIxA7KIwS1n1F\n30OVhS31XOj5iiup6SdJ0py9Jr4cK8KVJQBoajfOkoOCZrFuoqiC63Y0U3yG\nLCijuVUOACC7bj2Y18y74Di9f7pHjSn21Z64ktKp3KTglo91rCgY/chSJies\njUo5\r\n=9f9H\r\n-----END PGP SIGNATURE-----\r\n", - "shasum": "f10d1a3ae86c1694808e8f20906f43d4c9132dbb", - "tarball": "https://registry.npmjs.org/filelist/-/filelist-1.0.1.tgz", - "unpackedSize": 15875 - }, - "homepage": "https://github.com/mde/filelist", - "keywords": [ - "file", - "glob", - "utility" - ], - "license": "Apache-2.0", - "main": "index.js", - "maintainers": [ - { - "name": "mde", - "email": "mde@fleegix.org" - } - ], - "name": "filelist", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git://github.com/mde/filelist.git" - }, - "scripts": { - "test": "jake test" - }, - "version": "1.0.1" -} diff --git a/Easebuzz_NodeJS_kit/node_modules/fill-range/LICENSE b/Easebuzz_NodeJS_kit/node_modules/fill-range/LICENSE deleted file mode 100644 index 9af4a67..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/fill-range/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2014-present, Jon Schlinkert. - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/Easebuzz_NodeJS_kit/node_modules/fill-range/README.md b/Easebuzz_NodeJS_kit/node_modules/fill-range/README.md deleted file mode 100644 index 8d756fe..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/fill-range/README.md +++ /dev/null @@ -1,237 +0,0 @@ -# fill-range [![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=W8YFZ425KND68) [![NPM version](https://img.shields.io/npm/v/fill-range.svg?style=flat)](https://www.npmjs.com/package/fill-range) [![NPM monthly downloads](https://img.shields.io/npm/dm/fill-range.svg?style=flat)](https://npmjs.org/package/fill-range) [![NPM total downloads](https://img.shields.io/npm/dt/fill-range.svg?style=flat)](https://npmjs.org/package/fill-range) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/fill-range.svg?style=flat&label=Travis)](https://travis-ci.org/jonschlinkert/fill-range) - -> Fill in a range of numbers or letters, optionally passing an increment or `step` to use, or create a regex-compatible range with `options.toRegex` - -Please consider following this project's author, [Jon Schlinkert](https://github.com/jonschlinkert), and consider starring the project to show your :heart: and support. - -## Install - -Install with [npm](https://www.npmjs.com/): - -```sh -$ npm install --save fill-range -``` - -## Usage - -Expands numbers and letters, optionally using a `step` as the last argument. _(Numbers may be defined as JavaScript numbers or strings)_. - -```js -const fill = require('fill-range'); -// fill(from, to[, step, options]); - -console.log(fill('1', '10')); //=> ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10'] -console.log(fill('1', '10', { toRegex: true })); //=> [1-9]|10 -``` - -**Params** - -* `from`: **{String|Number}** the number or letter to start with -* `to`: **{String|Number}** the number or letter to end with -* `step`: **{String|Number|Object|Function}** Optionally pass a [step](#optionsstep) to use. -* `options`: **{Object|Function}**: See all available [options](#options) - -## Examples - -By default, an array of values is returned. - -**Alphabetical ranges** - -```js -console.log(fill('a', 'e')); //=> ['a', 'b', 'c', 'd', 'e'] -console.log(fill('A', 'E')); //=> [ 'A', 'B', 'C', 'D', 'E' ] -``` - -**Numerical ranges** - -Numbers can be defined as actual numbers or strings. - -```js -console.log(fill(1, 5)); //=> [ 1, 2, 3, 4, 5 ] -console.log(fill('1', '5')); //=> [ 1, 2, 3, 4, 5 ] -``` - -**Negative ranges** - -Numbers can be defined as actual numbers or strings. - -```js -console.log(fill('-5', '-1')); //=> [ '-5', '-4', '-3', '-2', '-1' ] -console.log(fill('-5', '5')); //=> [ '-5', '-4', '-3', '-2', '-1', '0', '1', '2', '3', '4', '5' ] -``` - -**Steps (increments)** - -```js -// numerical ranges with increments -console.log(fill('0', '25', 4)); //=> [ '0', '4', '8', '12', '16', '20', '24' ] -console.log(fill('0', '25', 5)); //=> [ '0', '5', '10', '15', '20', '25' ] -console.log(fill('0', '25', 6)); //=> [ '0', '6', '12', '18', '24' ] - -// alphabetical ranges with increments -console.log(fill('a', 'z', 4)); //=> [ 'a', 'e', 'i', 'm', 'q', 'u', 'y' ] -console.log(fill('a', 'z', 5)); //=> [ 'a', 'f', 'k', 'p', 'u', 'z' ] -console.log(fill('a', 'z', 6)); //=> [ 'a', 'g', 'm', 's', 'y' ] -``` - -## Options - -### options.step - -**Type**: `number` (formatted as a string or number) - -**Default**: `undefined` - -**Description**: The increment to use for the range. Can be used with letters or numbers. - -**Example(s)** - -```js -// numbers -console.log(fill('1', '10', 2)); //=> [ '1', '3', '5', '7', '9' ] -console.log(fill('1', '10', 3)); //=> [ '1', '4', '7', '10' ] -console.log(fill('1', '10', 4)); //=> [ '1', '5', '9' ] - -// letters -console.log(fill('a', 'z', 5)); //=> [ 'a', 'f', 'k', 'p', 'u', 'z' ] -console.log(fill('a', 'z', 7)); //=> [ 'a', 'h', 'o', 'v' ] -console.log(fill('a', 'z', 9)); //=> [ 'a', 'j', 's' ] -``` - -### options.strictRanges - -**Type**: `boolean` - -**Default**: `false` - -**Description**: By default, `null` is returned when an invalid range is passed. Enable this option to throw a `RangeError` on invalid ranges. - -**Example(s)** - -The following are all invalid: - -```js -fill('1.1', '2'); // decimals not supported in ranges -fill('a', '2'); // incompatible range values -fill(1, 10, 'foo'); // invalid "step" argument -``` - -### options.stringify - -**Type**: `boolean` - -**Default**: `undefined` - -**Description**: Cast all returned values to strings. By default, integers are returned as numbers. - -**Example(s)** - -```js -console.log(fill(1, 5)); //=> [ 1, 2, 3, 4, 5 ] -console.log(fill(1, 5, { stringify: true })); //=> [ '1', '2', '3', '4', '5' ] -``` - -### options.toRegex - -**Type**: `boolean` - -**Default**: `undefined` - -**Description**: Create a regex-compatible source string, instead of expanding values to an array. - -**Example(s)** - -```js -// alphabetical range -console.log(fill('a', 'e', { toRegex: true })); //=> '[a-e]' -// alphabetical with step -console.log(fill('a', 'z', 3, { toRegex: true })); //=> 'a|d|g|j|m|p|s|v|y' -// numerical range -console.log(fill('1', '100', { toRegex: true })); //=> '[1-9]|[1-9][0-9]|100' -// numerical range with zero padding -console.log(fill('000001', '100000', { toRegex: true })); -//=> '0{5}[1-9]|0{4}[1-9][0-9]|0{3}[1-9][0-9]{2}|0{2}[1-9][0-9]{3}|0[1-9][0-9]{4}|100000' -``` - -### options.transform - -**Type**: `function` - -**Default**: `undefined` - -**Description**: Customize each value in the returned array (or [string](#optionstoRegex)). _(you can also pass this function as the last argument to `fill()`)_. - -**Example(s)** - -```js -// add zero padding -console.log(fill(1, 5, value => String(value).padStart(4, '0'))); -//=> ['0001', '0002', '0003', '0004', '0005'] -``` - -## About - -
-Contributing - -Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new). - -
- -
-Running Tests - -Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command: - -```sh -$ npm install && npm test -``` - -
- -
-Building docs - -_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_ - -To generate the readme, run the following command: - -```sh -$ npm install -g verbose/verb#dev verb-generate-readme && verb -``` - -
- -### Contributors - -| **Commits** | **Contributor** | -| --- | --- | -| 116 | [jonschlinkert](https://github.com/jonschlinkert) | -| 4 | [paulmillr](https://github.com/paulmillr) | -| 2 | [realityking](https://github.com/realityking) | -| 2 | [bluelovers](https://github.com/bluelovers) | -| 1 | [edorivai](https://github.com/edorivai) | -| 1 | [wtgtybhertgeghgtwtg](https://github.com/wtgtybhertgeghgtwtg) | - -### Author - -**Jon Schlinkert** - -* [GitHub Profile](https://github.com/jonschlinkert) -* [Twitter Profile](https://twitter.com/jonschlinkert) -* [LinkedIn Profile](https://linkedin.com/in/jonschlinkert) - -Please consider supporting me on Patreon, or [start your own Patreon page](https://patreon.com/invite/bxpbvm)! - - - - - -### License - -Copyright © 2019, [Jon Schlinkert](https://github.com/jonschlinkert). -Released under the [MIT License](LICENSE). - -*** - -_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.8.0, on April 08, 2019._ \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/fill-range/index.js b/Easebuzz_NodeJS_kit/node_modules/fill-range/index.js deleted file mode 100644 index 97ce35a..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/fill-range/index.js +++ /dev/null @@ -1,249 +0,0 @@ -/*! - * fill-range - * - * Copyright (c) 2014-present, Jon Schlinkert. - * Licensed under the MIT License. - */ - -'use strict'; - -const util = require('util'); -const toRegexRange = require('to-regex-range'); - -const isObject = val => val !== null && typeof val === 'object' && !Array.isArray(val); - -const transform = toNumber => { - return value => toNumber === true ? Number(value) : String(value); -}; - -const isValidValue = value => { - return typeof value === 'number' || (typeof value === 'string' && value !== ''); -}; - -const isNumber = num => Number.isInteger(+num); - -const zeros = input => { - let value = `${input}`; - let index = -1; - if (value[0] === '-') value = value.slice(1); - if (value === '0') return false; - while (value[++index] === '0'); - return index > 0; -}; - -const stringify = (start, end, options) => { - if (typeof start === 'string' || typeof end === 'string') { - return true; - } - return options.stringify === true; -}; - -const pad = (input, maxLength, toNumber) => { - if (maxLength > 0) { - let dash = input[0] === '-' ? '-' : ''; - if (dash) input = input.slice(1); - input = (dash + input.padStart(dash ? maxLength - 1 : maxLength, '0')); - } - if (toNumber === false) { - return String(input); - } - return input; -}; - -const toMaxLen = (input, maxLength) => { - let negative = input[0] === '-' ? '-' : ''; - if (negative) { - input = input.slice(1); - maxLength--; - } - while (input.length < maxLength) input = '0' + input; - return negative ? ('-' + input) : input; -}; - -const toSequence = (parts, options) => { - parts.negatives.sort((a, b) => a < b ? -1 : a > b ? 1 : 0); - parts.positives.sort((a, b) => a < b ? -1 : a > b ? 1 : 0); - - let prefix = options.capture ? '' : '?:'; - let positives = ''; - let negatives = ''; - let result; - - if (parts.positives.length) { - positives = parts.positives.join('|'); - } - - if (parts.negatives.length) { - negatives = `-(${prefix}${parts.negatives.join('|')})`; - } - - if (positives && negatives) { - result = `${positives}|${negatives}`; - } else { - result = positives || negatives; - } - - if (options.wrap) { - return `(${prefix}${result})`; - } - - return result; -}; - -const toRange = (a, b, isNumbers, options) => { - if (isNumbers) { - return toRegexRange(a, b, { wrap: false, ...options }); - } - - let start = String.fromCharCode(a); - if (a === b) return start; - - let stop = String.fromCharCode(b); - return `[${start}-${stop}]`; -}; - -const toRegex = (start, end, options) => { - if (Array.isArray(start)) { - let wrap = options.wrap === true; - let prefix = options.capture ? '' : '?:'; - return wrap ? `(${prefix}${start.join('|')})` : start.join('|'); - } - return toRegexRange(start, end, options); -}; - -const rangeError = (...args) => { - return new RangeError('Invalid range arguments: ' + util.inspect(...args)); -}; - -const invalidRange = (start, end, options) => { - if (options.strictRanges === true) throw rangeError([start, end]); - return []; -}; - -const invalidStep = (step, options) => { - if (options.strictRanges === true) { - throw new TypeError(`Expected step "${step}" to be a number`); - } - return []; -}; - -const fillNumbers = (start, end, step = 1, options = {}) => { - let a = Number(start); - let b = Number(end); - - if (!Number.isInteger(a) || !Number.isInteger(b)) { - if (options.strictRanges === true) throw rangeError([start, end]); - return []; - } - - // fix negative zero - if (a === 0) a = 0; - if (b === 0) b = 0; - - let descending = a > b; - let startString = String(start); - let endString = String(end); - let stepString = String(step); - step = Math.max(Math.abs(step), 1); - - let padded = zeros(startString) || zeros(endString) || zeros(stepString); - let maxLen = padded ? Math.max(startString.length, endString.length, stepString.length) : 0; - let toNumber = padded === false && stringify(start, end, options) === false; - let format = options.transform || transform(toNumber); - - if (options.toRegex && step === 1) { - return toRange(toMaxLen(start, maxLen), toMaxLen(end, maxLen), true, options); - } - - let parts = { negatives: [], positives: [] }; - let push = num => parts[num < 0 ? 'negatives' : 'positives'].push(Math.abs(num)); - let range = []; - let index = 0; - - while (descending ? a >= b : a <= b) { - if (options.toRegex === true && step > 1) { - push(a); - } else { - range.push(pad(format(a, index), maxLen, toNumber)); - } - a = descending ? a - step : a + step; - index++; - } - - if (options.toRegex === true) { - return step > 1 - ? toSequence(parts, options) - : toRegex(range, null, { wrap: false, ...options }); - } - - return range; -}; - -const fillLetters = (start, end, step = 1, options = {}) => { - if ((!isNumber(start) && start.length > 1) || (!isNumber(end) && end.length > 1)) { - return invalidRange(start, end, options); - } - - - let format = options.transform || (val => String.fromCharCode(val)); - let a = `${start}`.charCodeAt(0); - let b = `${end}`.charCodeAt(0); - - let descending = a > b; - let min = Math.min(a, b); - let max = Math.max(a, b); - - if (options.toRegex && step === 1) { - return toRange(min, max, false, options); - } - - let range = []; - let index = 0; - - while (descending ? a >= b : a <= b) { - range.push(format(a, index)); - a = descending ? a - step : a + step; - index++; - } - - if (options.toRegex === true) { - return toRegex(range, null, { wrap: false, options }); - } - - return range; -}; - -const fill = (start, end, step, options = {}) => { - if (end == null && isValidValue(start)) { - return [start]; - } - - if (!isValidValue(start) || !isValidValue(end)) { - return invalidRange(start, end, options); - } - - if (typeof step === 'function') { - return fill(start, end, 1, { transform: step }); - } - - if (isObject(step)) { - return fill(start, end, 0, step); - } - - let opts = { ...options }; - if (opts.capture === true) opts.wrap = true; - step = step || opts.step || 1; - - if (!isNumber(step)) { - if (step != null && !isObject(step)) return invalidStep(step, opts); - return fill(start, end, 1, step); - } - - if (isNumber(start) && isNumber(end)) { - return fillNumbers(start, end, step, opts); - } - - return fillLetters(start, end, Math.max(Math.abs(step), 1), opts); -}; - -module.exports = fill; diff --git a/Easebuzz_NodeJS_kit/node_modules/fill-range/package.json b/Easebuzz_NodeJS_kit/node_modules/fill-range/package.json deleted file mode 100644 index 89dfae4..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/fill-range/package.json +++ /dev/null @@ -1,114 +0,0 @@ -{ - "_from": "fill-range@^7.0.1", - "_id": "fill-range@7.0.1", - "_inBundle": false, - "_integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", - "_location": "/fill-range", - "_phantomChildren": {}, - "_requested": { - "type": "range", - "registry": true, - "raw": "fill-range@^7.0.1", - "name": "fill-range", - "escapedName": "fill-range", - "rawSpec": "^7.0.1", - "saveSpec": null, - "fetchSpec": "^7.0.1" - }, - "_requiredBy": [ - "/braces" - ], - "_resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", - "_shasum": "1919a6a7c75fe38b2c7c77e5198535da9acdda40", - "_spec": "fill-range@^7.0.1", - "_where": "/home/ankit/Downloads/NodeJS/node_modules/braces", - "author": { - "name": "Jon Schlinkert", - "url": "https://github.com/jonschlinkert" - }, - "bugs": { - "url": "https://github.com/jonschlinkert/fill-range/issues" - }, - "bundleDependencies": false, - "contributors": [ - { - "name": "Edo Rivai", - "url": "edo.rivai.nl" - }, - { - "name": "Jon Schlinkert", - "url": "http://twitter.com/jonschlinkert" - }, - { - "name": "Paul Miller", - "url": "paulmillr.com" - }, - { - "name": "Rouven Weßling", - "url": "www.rouvenwessling.de" - }, - { - "url": "https://github.com/wtgtybhertgeghgtwtg" - } - ], - "dependencies": { - "to-regex-range": "^5.0.1" - }, - "deprecated": false, - "description": "Fill in a range of numbers or letters, optionally passing an increment or `step` to use, or create a regex-compatible range with `options.toRegex`", - "devDependencies": { - "gulp-format-md": "^2.0.0", - "mocha": "^6.1.1" - }, - "engines": { - "node": ">=8" - }, - "files": [ - "index.js" - ], - "homepage": "https://github.com/jonschlinkert/fill-range", - "keywords": [ - "alpha", - "alphabetical", - "array", - "bash", - "brace", - "expand", - "expansion", - "fill", - "glob", - "match", - "matches", - "matching", - "number", - "numerical", - "range", - "ranges", - "regex", - "sh" - ], - "license": "MIT", - "main": "index.js", - "name": "fill-range", - "repository": { - "type": "git", - "url": "git+https://github.com/jonschlinkert/fill-range.git" - }, - "scripts": { - "test": "mocha" - }, - "verb": { - "toc": false, - "layout": "default", - "tasks": [ - "readme" - ], - "plugins": [ - "gulp-format-md" - ], - "lint": { - "reflinks": true - } - }, - "version": "7.0.1" -} diff --git a/Easebuzz_NodeJS_kit/node_modules/get-stream/buffer-stream.js b/Easebuzz_NodeJS_kit/node_modules/get-stream/buffer-stream.js deleted file mode 100644 index 4121c8e..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/get-stream/buffer-stream.js +++ /dev/null @@ -1,51 +0,0 @@ -'use strict'; -const {PassThrough} = require('stream'); - -module.exports = options => { - options = Object.assign({}, options); - - const {array} = options; - let {encoding} = options; - const buffer = encoding === 'buffer'; - let objectMode = false; - - if (array) { - objectMode = !(encoding || buffer); - } else { - encoding = encoding || 'utf8'; - } - - if (buffer) { - encoding = null; - } - - let len = 0; - const ret = []; - const stream = new PassThrough({objectMode}); - - if (encoding) { - stream.setEncoding(encoding); - } - - stream.on('data', chunk => { - ret.push(chunk); - - if (objectMode) { - len = ret.length; - } else { - len += chunk.length; - } - }); - - stream.getBufferedValue = () => { - if (array) { - return ret; - } - - return buffer ? Buffer.concat(ret, len) : ret.join(''); - }; - - stream.getBufferedLength = () => len; - - return stream; -}; diff --git a/Easebuzz_NodeJS_kit/node_modules/get-stream/index.js b/Easebuzz_NodeJS_kit/node_modules/get-stream/index.js deleted file mode 100644 index 7e5584a..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/get-stream/index.js +++ /dev/null @@ -1,50 +0,0 @@ -'use strict'; -const pump = require('pump'); -const bufferStream = require('./buffer-stream'); - -class MaxBufferError extends Error { - constructor() { - super('maxBuffer exceeded'); - this.name = 'MaxBufferError'; - } -} - -function getStream(inputStream, options) { - if (!inputStream) { - return Promise.reject(new Error('Expected a stream')); - } - - options = Object.assign({maxBuffer: Infinity}, options); - - const {maxBuffer} = options; - - let stream; - return new Promise((resolve, reject) => { - const rejectPromise = error => { - if (error) { // A null check - error.bufferedData = stream.getBufferedValue(); - } - reject(error); - }; - - stream = pump(inputStream, bufferStream(options), error => { - if (error) { - rejectPromise(error); - return; - } - - resolve(); - }); - - stream.on('data', () => { - if (stream.getBufferedLength() > maxBuffer) { - rejectPromise(new MaxBufferError()); - } - }); - }).then(() => stream.getBufferedValue()); -} - -module.exports = getStream; -module.exports.buffer = (stream, options) => getStream(stream, Object.assign({}, options, {encoding: 'buffer'})); -module.exports.array = (stream, options) => getStream(stream, Object.assign({}, options, {array: true})); -module.exports.MaxBufferError = MaxBufferError; diff --git a/Easebuzz_NodeJS_kit/node_modules/get-stream/license b/Easebuzz_NodeJS_kit/node_modules/get-stream/license deleted file mode 100644 index e7af2f7..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/get-stream/license +++ /dev/null @@ -1,9 +0,0 @@ -MIT License - -Copyright (c) Sindre Sorhus (sindresorhus.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/Easebuzz_NodeJS_kit/node_modules/get-stream/package.json b/Easebuzz_NodeJS_kit/node_modules/get-stream/package.json deleted file mode 100644 index a663298..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/get-stream/package.json +++ /dev/null @@ -1,78 +0,0 @@ -{ - "_from": "get-stream@^4.1.0", - "_id": "get-stream@4.1.0", - "_inBundle": false, - "_integrity": "sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w==", - "_location": "/get-stream", - "_phantomChildren": {}, - "_requested": { - "type": "range", - "registry": true, - "raw": "get-stream@^4.1.0", - "name": "get-stream", - "escapedName": "get-stream", - "rawSpec": "^4.1.0", - "saveSpec": null, - "fetchSpec": "^4.1.0" - }, - "_requiredBy": [ - "/got" - ], - "_resolved": "https://registry.npmjs.org/get-stream/-/get-stream-4.1.0.tgz", - "_shasum": "c1b255575f3dc21d59bfc79cd3d2b46b1c3a54b5", - "_spec": "get-stream@^4.1.0", - "_where": "/home/ankit/Downloads/NodeJS/node_modules/got", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "bugs": { - "url": "https://github.com/sindresorhus/get-stream/issues" - }, - "bundleDependencies": false, - "dependencies": { - "pump": "^3.0.0" - }, - "deprecated": false, - "description": "Get a stream as a string, buffer, or array", - "devDependencies": { - "ava": "*", - "into-stream": "^3.0.0", - "xo": "*" - }, - "engines": { - "node": ">=6" - }, - "files": [ - "index.js", - "buffer-stream.js" - ], - "homepage": "https://github.com/sindresorhus/get-stream#readme", - "keywords": [ - "get", - "stream", - "promise", - "concat", - "string", - "text", - "buffer", - "read", - "data", - "consume", - "readable", - "readablestream", - "array", - "object" - ], - "license": "MIT", - "name": "get-stream", - "repository": { - "type": "git", - "url": "git+https://github.com/sindresorhus/get-stream.git" - }, - "scripts": { - "test": "xo && ava" - }, - "version": "4.1.0" -} diff --git a/Easebuzz_NodeJS_kit/node_modules/get-stream/readme.md b/Easebuzz_NodeJS_kit/node_modules/get-stream/readme.md deleted file mode 100644 index b87a4d3..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/get-stream/readme.md +++ /dev/null @@ -1,123 +0,0 @@ -# get-stream [![Build Status](https://travis-ci.org/sindresorhus/get-stream.svg?branch=master)](https://travis-ci.org/sindresorhus/get-stream) - -> Get a stream as a string, buffer, or array - - -## Install - -``` -$ npm install get-stream -``` - - -## Usage - -```js -const fs = require('fs'); -const getStream = require('get-stream'); - -(async () => { - const stream = fs.createReadStream('unicorn.txt'); - - console.log(await getStream(stream)); - /* - ,,))))))));, - __)))))))))))))), - \|/ -\(((((''''((((((((. - -*-==//////(('' . `)))))), - /|\ ))| o ;-. '((((( ,(, - ( `| / ) ;))))' ,_))^;(~ - | | | ,))((((_ _____------~~~-. %,;(;(>';'~ - o_); ; )))(((` ~---~ `:: \ %%~~)(v;(`('~ - ; ''''```` `: `:::|\,__,%% );`'; ~ - | _ ) / `:|`----' `-' - ______/\/~ | / / - /~;;.____/;;' / ___--,-( `;;;/ - / // _;______;'------~~~~~ /;;/\ / - // | | / ; \;;,\ - (<_ | ; /',/-----' _> - \_| ||_ //~;~~~~~~~~~ - `\_| (,~~ - \~\ - ~~ - */ -})(); -``` - - -## API - -The methods returns a promise that resolves when the `end` event fires on the stream, indicating that there is no more data to be read. The stream is switched to flowing mode. - -### getStream(stream, [options]) - -Get the `stream` as a string. - -#### options - -Type: `Object` - -##### encoding - -Type: `string`
-Default: `utf8` - -[Encoding](https://nodejs.org/api/buffer.html#buffer_buffer) of the incoming stream. - -##### maxBuffer - -Type: `number`
-Default: `Infinity` - -Maximum length of the returned string. If it exceeds this value before the stream ends, the promise will be rejected with a `getStream.MaxBufferError` error. - -### getStream.buffer(stream, [options]) - -Get the `stream` as a buffer. - -It honors the `maxBuffer` option as above, but it refers to byte length rather than string length. - -### getStream.array(stream, [options]) - -Get the `stream` as an array of values. - -It honors both the `maxBuffer` and `encoding` options. The behavior changes slightly based on the encoding chosen: - -- When `encoding` is unset, it assumes an [object mode stream](https://nodesource.com/blog/understanding-object-streams/) and collects values emitted from `stream` unmodified. In this case `maxBuffer` refers to the number of items in the array (not the sum of their sizes). - -- When `encoding` is set to `buffer`, it collects an array of buffers. `maxBuffer` refers to the summed byte lengths of every buffer in the array. - -- When `encoding` is set to anything else, it collects an array of strings. `maxBuffer` refers to the summed character lengths of every string in the array. - - -## Errors - -If the input stream emits an `error` event, the promise will be rejected with the error. The buffered data will be attached to the `bufferedData` property of the error. - -```js -(async () => { - try { - await getStream(streamThatErrorsAtTheEnd('unicorn')); - } catch (error) { - console.log(error.bufferedData); - //=> 'unicorn' - } -})() -``` - - -## FAQ - -### How is this different from [`concat-stream`](https://github.com/maxogden/concat-stream)? - -This module accepts a stream instead of being one and returns a promise instead of using a callback. The API is simpler and it only supports returning a string, buffer, or array. It doesn't have a fragile type inference. You explicitly choose what you want. And it doesn't depend on the huge `readable-stream` package. - - -## Related - -- [get-stdin](https://github.com/sindresorhus/get-stdin) - Get stdin as a string or buffer - - -## License - -MIT © [Sindre Sorhus](https://sindresorhus.com) diff --git a/Easebuzz_NodeJS_kit/node_modules/glob-parent/LICENSE b/Easebuzz_NodeJS_kit/node_modules/glob-parent/LICENSE deleted file mode 100644 index 63222d7..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/glob-parent/LICENSE +++ /dev/null @@ -1,15 +0,0 @@ -The ISC License - -Copyright (c) 2015, 2019 Elan Shanker - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted, provided that the above -copyright notice and this permission notice appear in all copies. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR -IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. diff --git a/Easebuzz_NodeJS_kit/node_modules/glob-parent/README.md b/Easebuzz_NodeJS_kit/node_modules/glob-parent/README.md deleted file mode 100644 index 36a2793..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/glob-parent/README.md +++ /dev/null @@ -1,137 +0,0 @@ -

- - - -

- -# glob-parent - -[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Azure Pipelines Build Status][azure-pipelines-image]][azure-pipelines-url] [![Travis Build Status][travis-image]][travis-url] [![AppVeyor Build Status][appveyor-image]][appveyor-url] [![Coveralls Status][coveralls-image]][coveralls-url] [![Gitter chat][gitter-image]][gitter-url] - -Extract the non-magic parent path from a glob string. - -## Usage - -```js -var globParent = require('glob-parent'); - -globParent('path/to/*.js'); // 'path/to' -globParent('/root/path/to/*.js'); // '/root/path/to' -globParent('/*.js'); // '/' -globParent('*.js'); // '.' -globParent('**/*.js'); // '.' -globParent('path/{to,from}'); // 'path' -globParent('path/!(to|from)'); // 'path' -globParent('path/?(to|from)'); // 'path' -globParent('path/+(to|from)'); // 'path' -globParent('path/*(to|from)'); // 'path' -globParent('path/@(to|from)'); // 'path' -globParent('path/**/*'); // 'path' - -// if provided a non-glob path, returns the nearest dir -globParent('path/foo/bar.js'); // 'path/foo' -globParent('path/foo/'); // 'path/foo' -globParent('path/foo'); // 'path' (see issue #3 for details) -``` - -## API - -### `globParent(maybeGlobString, [options])` - -Takes a string and returns the part of the path before the glob begins. Be aware of Escaping rules and Limitations below. - -#### options - -```js -{ - // Disables the automatic conversion of slashes for Windows - flipBackslashes: true -} -``` - -## Escaping - -The following characters have special significance in glob patterns and must be escaped if you want them to be treated as regular path characters: - -- `?` (question mark) unless used as a path segment alone -- `*` (asterisk) -- `|` (pipe) -- `(` (opening parenthesis) -- `)` (closing parenthesis) -- `{` (opening curly brace) -- `}` (closing curly brace) -- `[` (opening bracket) -- `]` (closing bracket) - -**Example** - -```js -globParent('foo/[bar]/') // 'foo' -globParent('foo/\\[bar]/') // 'foo/[bar]' -``` - -## Limitations - -### Braces & Brackets -This library attempts a quick and imperfect method of determining which path -parts have glob magic without fully parsing/lexing the pattern. There are some -advanced use cases that can trip it up, such as nested braces where the outer -pair is escaped and the inner one contains a path separator. If you find -yourself in the unlikely circumstance of being affected by this or need to -ensure higher-fidelity glob handling in your library, it is recommended that you -pre-process your input with [expand-braces] and/or [expand-brackets]. - -### Windows -Backslashes are not valid path separators for globs. If a path with backslashes -is provided anyway, for simple cases, glob-parent will replace the path -separator for you and return the non-glob parent path (now with -forward-slashes, which are still valid as Windows path separators). - -This cannot be used in conjunction with escape characters. - -```js -// BAD -globParent('C:\\Program Files \\(x86\\)\\*.ext') // 'C:/Program Files /(x86/)' - -// GOOD -globParent('C:/Program Files\\(x86\\)/*.ext') // 'C:/Program Files (x86)' -``` - -If you are using escape characters for a pattern without path parts (i.e. -relative to `cwd`), prefix with `./` to avoid confusing glob-parent. - -```js -// BAD -globParent('foo \\[bar]') // 'foo ' -globParent('foo \\[bar]*') // 'foo ' - -// GOOD -globParent('./foo \\[bar]') // 'foo [bar]' -globParent('./foo \\[bar]*') // '.' -``` - -## License - -ISC - -[expand-braces]: https://github.com/jonschlinkert/expand-braces -[expand-brackets]: https://github.com/jonschlinkert/expand-brackets - -[downloads-image]: https://img.shields.io/npm/dm/glob-parent.svg -[npm-url]: https://www.npmjs.com/package/glob-parent -[npm-image]: https://img.shields.io/npm/v/glob-parent.svg - -[azure-pipelines-url]: https://dev.azure.com/gulpjs/gulp/_build/latest?definitionId=2&branchName=master -[azure-pipelines-image]: https://dev.azure.com/gulpjs/gulp/_apis/build/status/glob-parent?branchName=master - -[travis-url]: https://travis-ci.org/gulpjs/glob-parent -[travis-image]: https://img.shields.io/travis/gulpjs/glob-parent.svg?label=travis-ci - -[appveyor-url]: https://ci.appveyor.com/project/gulpjs/glob-parent -[appveyor-image]: https://img.shields.io/appveyor/ci/gulpjs/glob-parent.svg?label=appveyor - -[coveralls-url]: https://coveralls.io/r/gulpjs/glob-parent -[coveralls-image]: https://img.shields.io/coveralls/gulpjs/glob-parent/master.svg - -[gitter-url]: https://gitter.im/gulpjs/gulp -[gitter-image]: https://badges.gitter.im/gulpjs/gulp.svg diff --git a/Easebuzz_NodeJS_kit/node_modules/glob-parent/index.js b/Easebuzz_NodeJS_kit/node_modules/glob-parent/index.js deleted file mode 100644 index 789dbbf..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/glob-parent/index.js +++ /dev/null @@ -1,41 +0,0 @@ -'use strict'; - -var isGlob = require('is-glob'); -var pathPosixDirname = require('path').posix.dirname; -var isWin32 = require('os').platform() === 'win32'; - -var slash = '/'; -var backslash = /\\/g; -var enclosure = /[\{\[].*[\/]*.*[\}\]]$/; -var globby = /(^|[^\\])([\{\[]|\([^\)]+$)/; -var escaped = /\\([\!\*\?\|\[\]\(\)\{\}])/g; - -/** - * @param {string} str - * @param {Object} opts - * @param {boolean} [opts.flipBackslashes=true] - */ -module.exports = function globParent(str, opts) { - var options = Object.assign({ flipBackslashes: true }, opts); - - // flip windows path separators - if (options.flipBackslashes && isWin32 && str.indexOf(slash) < 0) { - str = str.replace(backslash, slash); - } - - // special case for strings ending in enclosure containing path separator - if (enclosure.test(str)) { - str += slash; - } - - // preserves full path in case of trailing path separator - str += 'a'; - - // remove path parts that are globby - do { - str = pathPosixDirname(str); - } while (isGlob(str) || globby.test(str)); - - // remove escape chars and return result - return str.replace(escaped, '$1'); -}; diff --git a/Easebuzz_NodeJS_kit/node_modules/glob-parent/package.json b/Easebuzz_NodeJS_kit/node_modules/glob-parent/package.json deleted file mode 100644 index 358a2b2..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/glob-parent/package.json +++ /dev/null @@ -1,90 +0,0 @@ -{ - "_from": "glob-parent@~5.1.0", - "_id": "glob-parent@5.1.1", - "_inBundle": false, - "_integrity": "sha512-FnI+VGOpnlGHWZxthPGR+QhR78fuiK0sNLkHQv+bL9fQi57lNNdquIbna/WrfROrolq8GK5Ek6BiMwqL/voRYQ==", - "_location": "/glob-parent", - "_phantomChildren": {}, - "_requested": { - "type": "range", - "registry": true, - "raw": "glob-parent@~5.1.0", - "name": "glob-parent", - "escapedName": "glob-parent", - "rawSpec": "~5.1.0", - "saveSpec": null, - "fetchSpec": "~5.1.0" - }, - "_requiredBy": [ - "/chokidar" - ], - "_resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.1.tgz", - "_shasum": "b6c1ef417c4e5663ea498f1c45afac6916bbc229", - "_spec": "glob-parent@~5.1.0", - "_where": "/home/ankit/Downloads/NodeJS/node_modules/chokidar", - "author": { - "name": "Gulp Team", - "email": "team@gulpjs.com", - "url": "https://gulpjs.com/" - }, - "bugs": { - "url": "https://github.com/gulpjs/glob-parent/issues" - }, - "bundleDependencies": false, - "contributors": [ - { - "name": "Elan Shanker", - "url": "https://github.com/es128" - }, - { - "name": "Blaine Bublitz", - "email": "blaine.bublitz@gmail.com" - } - ], - "dependencies": { - "is-glob": "^4.0.1" - }, - "deprecated": false, - "description": "Extract the non-magic parent path from a glob string.", - "devDependencies": { - "coveralls": "^3.0.11", - "eslint": "^2.13.1", - "eslint-config-gulp": "^3.0.1", - "expect": "^1.20.2", - "mocha": "^6.0.2", - "nyc": "^13.3.0" - }, - "engines": { - "node": ">= 6" - }, - "files": [ - "LICENSE", - "index.js" - ], - "homepage": "https://github.com/gulpjs/glob-parent#readme", - "keywords": [ - "glob", - "parent", - "strip", - "path", - "dirname", - "directory", - "base", - "wildcard" - ], - "license": "ISC", - "main": "index.js", - "name": "glob-parent", - "repository": { - "type": "git", - "url": "git+https://github.com/gulpjs/glob-parent.git" - }, - "scripts": { - "azure-pipelines": "nyc mocha --async-only --reporter xunit -O output=test.xunit", - "coveralls": "nyc report --reporter=text-lcov | coveralls", - "lint": "eslint .", - "pretest": "npm run lint", - "test": "nyc mocha --async-only" - }, - "version": "5.1.1" -} diff --git a/Easebuzz_NodeJS_kit/node_modules/global-dirs/index.d.ts b/Easebuzz_NodeJS_kit/node_modules/global-dirs/index.d.ts deleted file mode 100644 index 1425d60..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/global-dirs/index.d.ts +++ /dev/null @@ -1,60 +0,0 @@ -declare namespace globalDirectories { - interface GlobalDirectories { - /** - Directory with globally installed packages. - - Equivalent to `npm root --global`. - */ - readonly packages: string; - - /** - Directory with globally installed binaries. - - Equivalent to `npm bin --global`. - */ - readonly binaries: string; - - /** - Directory with directories for packages and binaries. You probably want either of the above. - - Equivalent to `npm prefix --global`. - */ - readonly prefix: string; - } -} - -declare const globalDirectories: { - /** - Get the directory of globally installed packages and binaries. - - @example - ``` - import globalDirectories = require('global-dirs'); - - console.log(globalDirectories.npm.prefix); - //=> '/usr/local' - - console.log(globalDirectories.npm.packages); - //=> '/usr/local/lib/node_modules' - ``` - */ - readonly npm: globalDirectories.GlobalDirectories; - - /** - Get the directory of globally installed packages and binaries. - - @example - ``` - import globalDirectories = require('global-dirs'); - - console.log(globalDirectories.npm.binaries); - //=> '/usr/local/bin' - - console.log(globalDirectories.yarn.packages); - //=> '/Users/sindresorhus/.config/yarn/global/node_modules' - ``` - */ - readonly yarn: globalDirectories.GlobalDirectories; -} - -export = globalDirectories; diff --git a/Easebuzz_NodeJS_kit/node_modules/global-dirs/index.js b/Easebuzz_NodeJS_kit/node_modules/global-dirs/index.js deleted file mode 100644 index aedfae8..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/global-dirs/index.js +++ /dev/null @@ -1,118 +0,0 @@ -'use strict'; -const path = require('path'); -const os = require('os'); -const fs = require('fs'); -const ini = require('ini'); - -const isWindows = process.platform === 'win32'; - -const readRc = filePath => { - try { - return ini.parse(fs.readFileSync(filePath, 'utf8')).prefix; - } catch (_) {} -}; - -const getEnvNpmPrefix = () => { - return Object.keys(process.env).reduce((prefix, name) => { - return (/^npm_config_prefix$/i).test(name) ? process.env[name] : prefix; - }, undefined); -}; - -const getGlobalNpmrc = () => { - if (isWindows && process.env.APPDATA) { - // Hardcoded contents of `c:\Program Files\nodejs\node_modules\npm\npmrc` - return path.join(process.env.APPDATA, '/npm/etc/npmrc'); - } - - // Homebrew special case: `$(brew --prefix)/lib/node_modules/npm/npmrc` - if (process.execPath.includes('/Cellar/node')) { - const homebrewPrefix = process.execPath.slice(0, process.execPath.indexOf('/Cellar/node')); - return path.join(homebrewPrefix, '/lib/node_modules/npm/npmrc'); - } - - if (process.execPath.endsWith('/bin/node')) { - const installDir = path.dirname(path.dirname(process.execPath)); - return path.join(installDir, '/etc/npmrc'); - } -}; - -const getDefaultNpmPrefix = () => { - if (isWindows) { - // `c:\node\node.exe` → `prefix=c:\node\` - return path.dirname(process.execPath); - } - - // `/usr/local/bin/node` → `prefix=/usr/local` - return path.dirname(path.dirname(process.execPath)); -}; - -const getNpmPrefix = () => { - const envPrefix = getEnvNpmPrefix(); - if (envPrefix) { - return envPrefix; - } - - const homePrefix = readRc(path.join(os.homedir(), '.npmrc')); - if (homePrefix) { - return homePrefix; - } - - if (process.env.PREFIX) { - return process.env.PREFIX; - } - - const globalPrefix = readRc(getGlobalNpmrc()); - if (globalPrefix) { - return globalPrefix; - } - - return getDefaultNpmPrefix(); -}; - -const npmPrefix = path.resolve(getNpmPrefix()); - -const getYarnWindowsDirectory = () => { - if (isWindows && process.env.LOCALAPPDATA) { - const dir = path.join(process.env.LOCALAPPDATA, 'Yarn'); - if (fs.existsSync(dir)) { - return dir; - } - } - - return false; -}; - -const getYarnPrefix = () => { - if (process.env.PREFIX) { - return process.env.PREFIX; - } - - const windowsPrefix = getYarnWindowsDirectory(); - if (windowsPrefix) { - return windowsPrefix; - } - - const configPrefix = path.join(os.homedir(), '.config/yarn'); - if (fs.existsSync(configPrefix)) { - return configPrefix; - } - - const homePrefix = path.join(os.homedir(), '.yarn-config'); - if (fs.existsSync(homePrefix)) { - return homePrefix; - } - - // Yarn supports the npm conventions but the inverse is not true - return npmPrefix; -}; - -exports.npm = {}; -exports.npm.prefix = npmPrefix; -exports.npm.packages = path.join(npmPrefix, isWindows ? 'node_modules' : 'lib/node_modules'); -exports.npm.binaries = isWindows ? npmPrefix : path.join(npmPrefix, 'bin'); - -const yarnPrefix = path.resolve(getYarnPrefix()); -exports.yarn = {}; -exports.yarn.prefix = yarnPrefix; -exports.yarn.packages = path.join(yarnPrefix, getYarnWindowsDirectory() ? 'Data/global/node_modules' : 'global/node_modules'); -exports.yarn.binaries = path.join(exports.yarn.packages, '.bin'); diff --git a/Easebuzz_NodeJS_kit/node_modules/global-dirs/license b/Easebuzz_NodeJS_kit/node_modules/global-dirs/license deleted file mode 100644 index e7af2f7..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/global-dirs/license +++ /dev/null @@ -1,9 +0,0 @@ -MIT License - -Copyright (c) Sindre Sorhus (sindresorhus.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/Easebuzz_NodeJS_kit/node_modules/global-dirs/package.json b/Easebuzz_NodeJS_kit/node_modules/global-dirs/package.json deleted file mode 100644 index 4186e0f..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/global-dirs/package.json +++ /dev/null @@ -1,87 +0,0 @@ -{ - "_from": "global-dirs@^2.0.1", - "_id": "global-dirs@2.0.1", - "_inBundle": false, - "_integrity": "sha512-5HqUqdhkEovj2Of/ms3IeS/EekcO54ytHRLV4PEY2rhRwrHXLQjeVEES0Lhka0xwNDtGYn58wyC4s5+MHsOO6A==", - "_location": "/global-dirs", - "_phantomChildren": {}, - "_requested": { - "type": "range", - "registry": true, - "raw": "global-dirs@^2.0.1", - "name": "global-dirs", - "escapedName": "global-dirs", - "rawSpec": "^2.0.1", - "saveSpec": null, - "fetchSpec": "^2.0.1" - }, - "_requiredBy": [ - "/is-installed-globally" - ], - "_resolved": "https://registry.npmjs.org/global-dirs/-/global-dirs-2.0.1.tgz", - "_shasum": "acdf3bb6685bcd55cb35e8a052266569e9469201", - "_spec": "global-dirs@^2.0.1", - "_where": "/home/ankit/Downloads/NodeJS/node_modules/is-installed-globally", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "bugs": { - "url": "https://github.com/sindresorhus/global-dirs/issues" - }, - "bundleDependencies": false, - "dependencies": { - "ini": "^1.3.5" - }, - "deprecated": false, - "description": "Get the directory of globally installed packages and binaries", - "devDependencies": { - "ava": "^2.4.0", - "execa": "^3.2.0", - "import-fresh": "^3.1.0", - "tsd": "^0.10.0", - "xo": "^0.25.3" - }, - "engines": { - "node": ">=8" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "homepage": "https://github.com/sindresorhus/global-dirs#readme", - "keywords": [ - "global", - "prefix", - "path", - "paths", - "npm", - "yarn", - "node", - "modules", - "node-modules", - "package", - "packages", - "binary", - "binaries", - "bin", - "directory", - "directories", - "npmrc", - "rc", - "config", - "root", - "resolve" - ], - "license": "MIT", - "name": "global-dirs", - "repository": { - "type": "git", - "url": "git+https://github.com/sindresorhus/global-dirs.git" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "version": "2.0.1" -} diff --git a/Easebuzz_NodeJS_kit/node_modules/global-dirs/readme.md b/Easebuzz_NodeJS_kit/node_modules/global-dirs/readme.md deleted file mode 100644 index 8794936..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/global-dirs/readme.md +++ /dev/null @@ -1,77 +0,0 @@ -# global-dirs [![Build Status](https://travis-ci.org/sindresorhus/global-dirs.svg?branch=master)](https://travis-ci.org/sindresorhus/global-dirs) - -> Get the directory of globally installed packages and binaries - -Uses the same resolution logic as `npm` and `yarn`. - - -## Install - -``` -$ npm install global-dirs -``` - - -## Usage - -```js -const globalDirectories = require('global-dirs'); - -console.log(globalDirectories.npm.prefix); -//=> '/usr/local' - -console.log(globalDirectories.npm.packages); -//=> '/usr/local/lib/node_modules' - -console.log(globalDirectories.npm.binaries); -//=> '/usr/local/bin' - -console.log(globalDirectories.yarn.packages); -//=> '/Users/sindresorhus/.config/yarn/global/node_modules' -``` - - -## API - -### globalDirectories - -#### npm -#### yarn - -##### packages - -Directory with globally installed packages. - -Equivalent to `npm root --global`. - -##### binaries - -Directory with globally installed binaries. - -Equivalent to `npm bin --global`. - -##### prefix - -Directory with directories for packages and binaries. You probably want either of the above. - -Equivalent to `npm prefix --global`. - - -## Related - -- [import-global](https://github.com/sindresorhus/import-global) - Import a globally installed module -- [resolve-global](https://github.com/sindresorhus/resolve-global) - Resolve the path of a globally installed module -- [is-installed-globally](https://github.com/sindresorhus/is-installed-globally) - Check if your package was installed globally - - ---- - -
- - Get professional support for this package with a Tidelift subscription - -
- - Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies. -
-
diff --git a/Easebuzz_NodeJS_kit/node_modules/global/.npmignore b/Easebuzz_NodeJS_kit/node_modules/global/.npmignore deleted file mode 100644 index fd31f5e..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/global/.npmignore +++ /dev/null @@ -1,15 +0,0 @@ -.DS_Store -.monitor -.*.swp -.nodemonignore -releases -*.log -*.err -fleet.json -public/browserify -bin/*.json -.bin -build -compile -.lock-wscript -node_modules diff --git a/Easebuzz_NodeJS_kit/node_modules/global/.travis.yml b/Easebuzz_NodeJS_kit/node_modules/global/.travis.yml deleted file mode 100644 index ed178f6..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/global/.travis.yml +++ /dev/null @@ -1,4 +0,0 @@ -language: node_js -node_js: - - 0.8 - - 0.9 diff --git a/Easebuzz_NodeJS_kit/node_modules/global/LICENSE b/Easebuzz_NodeJS_kit/node_modules/global/LICENSE deleted file mode 100644 index 822d880..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/global/LICENSE +++ /dev/null @@ -1,19 +0,0 @@ -Copyright (c) 2012 Colingo. - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/Easebuzz_NodeJS_kit/node_modules/global/README.md b/Easebuzz_NodeJS_kit/node_modules/global/README.md deleted file mode 100644 index 289d305..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/global/README.md +++ /dev/null @@ -1,30 +0,0 @@ -# global - - - -Require global variables - -## Example - -```js -var global = require("global") -var document = require("global/document") -var window = require("global/window") -``` - -## Installation - -`npm install global` - -## Contributors - - - Raynos - -## MIT Licenced - - [1]: https://secure.travis-ci.org/Colingo/global.png - [2]: http://travis-ci.org/Colingo/global - [3]: http://ci.testling.com/Colingo/global.png - [4]: http://ci.testling.com/Colingo/global diff --git a/Easebuzz_NodeJS_kit/node_modules/global/console.js b/Easebuzz_NodeJS_kit/node_modules/global/console.js deleted file mode 100644 index 5cb1dfa..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/global/console.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = console; diff --git a/Easebuzz_NodeJS_kit/node_modules/global/document.js b/Easebuzz_NodeJS_kit/node_modules/global/document.js deleted file mode 100644 index 7c0f50d..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/global/document.js +++ /dev/null @@ -1,17 +0,0 @@ -var topLevel = typeof global !== 'undefined' ? global : - typeof window !== 'undefined' ? window : {} -var minDoc = require('min-document'); - -var doccy; - -if (typeof document !== 'undefined') { - doccy = document; -} else { - doccy = topLevel['__GLOBAL_DOCUMENT_CACHE@4']; - - if (!doccy) { - doccy = topLevel['__GLOBAL_DOCUMENT_CACHE@4'] = minDoc; - } -} - -module.exports = doccy; diff --git a/Easebuzz_NodeJS_kit/node_modules/global/package.json b/Easebuzz_NodeJS_kit/node_modules/global/package.json deleted file mode 100644 index 0db4e64..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/global/package.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "_args": [ - [ - "global@~4.3.0", - "/home/support/NodeJS/node_modules/location-href" - ] - ], - "_from": "global@>=4.3.0 <4.4.0", - "_id": "global@4.3.2", - "_inCache": true, - "_installable": true, - "_location": "/global", - "_nodeVersion": "0.10.32", - "_npmOperationalInternal": { - "host": "packages-18-east.internal.npmjs.com", - "tmp": "tmp/global-4.3.2.tgz_1492580146760_0.3673510455992073" - }, - "_npmUser": { - "email": "raynos2@gmail.com", - "name": "raynos" - }, - "_npmVersion": "2.15.11", - "_phantomChildren": {}, - "_requested": { - "name": "global", - "raw": "global@~4.3.0", - "rawSpec": "~4.3.0", - "scope": null, - "spec": ">=4.3.0 <4.4.0", - "type": "range" - }, - "_requiredBy": [ - "/location-href" - ], - "_resolved": "https://registry.npmjs.org/global/-/global-4.3.2.tgz", - "_shasum": "e76989268a6c74c38908b1305b10fc0e394e9d0f", - "_shrinkwrap": null, - "_spec": "global@~4.3.0", - "_where": "/home/support/NodeJS/node_modules/location-href", - "author": { - "email": "raynos2@gmail.com", - "name": "Raynos" - }, - "browser": { - "individual": false, - "min-document": false - }, - "bugs": { - "email": "raynos2@gmail.com", - "url": "https://github.com/Raynos/global/issues" - }, - "contributors": [ - { - "name": "Raynos" - } - ], - "dependencies": { - "min-document": "^2.19.0", - "process": "~0.5.1" - }, - "description": "Require global variables", - "devDependencies": { - "tape": "^2.12.0" - }, - "directories": {}, - "dist": { - "shasum": "e76989268a6c74c38908b1305b10fc0e394e9d0f", - "tarball": "https://registry.npmjs.org/global/-/global-4.3.2.tgz" - }, - "gitHead": "dca6193fee92549cb0a1944705f8b054beb338a2", - "homepage": "https://github.com/Raynos/global", - "keywords": [], - "license": "MIT", - "main": "window.js", - "maintainers": [ - { - "name": "raynos", - "email": "raynos2@gmail.com" - }, - { - "name": "mattesch", - "email": "matt@mattesch.info" - }, - { - "name": "jerrysievert", - "email": "code@legitimatesounding.com" - } - ], - "name": "global", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git://github.com/Raynos/global.git" - }, - "scripts": { - "build": "browserify test/index.js -o test/static/bundle.js", - "test": "node ./test", - "testem": "testem" - }, - "testling": { - "browsers": { - "chrome": [ - "22", - "23", - "canary" - ], - "firefox": [ - "16", - "17", - "nightly" - ], - "ie": [ - "10", - "8", - "9" - ], - "opera": [ - "12", - "next" - ], - "safari": [ - "5.1" - ] - }, - "files": "test/index.js" - }, - "version": "4.3.2" -} diff --git a/Easebuzz_NodeJS_kit/node_modules/global/process.js b/Easebuzz_NodeJS_kit/node_modules/global/process.js deleted file mode 100644 index 00a8e37..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/global/process.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('process'); diff --git a/Easebuzz_NodeJS_kit/node_modules/global/window.js b/Easebuzz_NodeJS_kit/node_modules/global/window.js deleted file mode 100644 index ae6c11c..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/global/window.js +++ /dev/null @@ -1,13 +0,0 @@ -var win; - -if (typeof window !== "undefined") { - win = window; -} else if (typeof global !== "undefined") { - win = global; -} else if (typeof self !== "undefined"){ - win = self; -} else { - win = {}; -} - -module.exports = win; diff --git a/Easebuzz_NodeJS_kit/node_modules/got/license b/Easebuzz_NodeJS_kit/node_modules/got/license deleted file mode 100644 index e7af2f7..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/got/license +++ /dev/null @@ -1,9 +0,0 @@ -MIT License - -Copyright (c) Sindre Sorhus (sindresorhus.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/Easebuzz_NodeJS_kit/node_modules/got/package.json b/Easebuzz_NodeJS_kit/node_modules/got/package.json deleted file mode 100644 index 5320394..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/got/package.json +++ /dev/null @@ -1,106 +0,0 @@ -{ - "_from": "got@^9.6.0", - "_id": "got@9.6.0", - "_inBundle": false, - "_integrity": "sha512-R7eWptXuGYxwijs0eV+v3o6+XH1IqVK8dJOEecQfTmkncw9AV4dcw/Dhxi8MdlqPthxxpZyizMzyg8RTmEsG+Q==", - "_location": "/got", - "_phantomChildren": {}, - "_requested": { - "type": "range", - "registry": true, - "raw": "got@^9.6.0", - "name": "got", - "escapedName": "got", - "rawSpec": "^9.6.0", - "saveSpec": null, - "fetchSpec": "^9.6.0" - }, - "_requiredBy": [ - "/package-json" - ], - "_resolved": "https://registry.npmjs.org/got/-/got-9.6.0.tgz", - "_shasum": "edf45e7d67f99545705de1f7bbeeeb121765ed85", - "_spec": "got@^9.6.0", - "_where": "/home/ankit/Downloads/NodeJS/node_modules/package-json", - "ava": { - "concurrency": 4 - }, - "browser": { - "decompress-response": false, - "electron": false - }, - "bugs": { - "url": "https://github.com/sindresorhus/got/issues" - }, - "bundleDependencies": false, - "dependencies": { - "@sindresorhus/is": "^0.14.0", - "@szmarczak/http-timer": "^1.1.2", - "cacheable-request": "^6.0.0", - "decompress-response": "^3.3.0", - "duplexer3": "^0.1.4", - "get-stream": "^4.1.0", - "lowercase-keys": "^1.0.1", - "mimic-response": "^1.0.1", - "p-cancelable": "^1.0.0", - "to-readable-stream": "^1.0.0", - "url-parse-lax": "^3.0.0" - }, - "deprecated": false, - "description": "Simplified HTTP requests", - "devDependencies": { - "ava": "^1.1.0", - "coveralls": "^3.0.0", - "delay": "^4.1.0", - "form-data": "^2.3.3", - "get-port": "^4.0.0", - "np": "^3.1.0", - "nyc": "^13.1.0", - "p-event": "^2.1.0", - "pem": "^1.13.2", - "proxyquire": "^2.0.1", - "sinon": "^7.2.2", - "slow-stream": "0.0.4", - "tempfile": "^2.0.0", - "tempy": "^0.2.1", - "tough-cookie": "^3.0.0", - "xo": "^0.24.0" - }, - "engines": { - "node": ">=8.6" - }, - "files": [ - "source" - ], - "homepage": "https://github.com/sindresorhus/got#readme", - "keywords": [ - "http", - "https", - "get", - "got", - "url", - "uri", - "request", - "util", - "utility", - "simple", - "curl", - "wget", - "fetch", - "net", - "network", - "electron" - ], - "license": "MIT", - "main": "source", - "name": "got", - "repository": { - "type": "git", - "url": "git+https://github.com/sindresorhus/got.git" - }, - "scripts": { - "release": "np", - "test": "xo && nyc ava" - }, - "version": "9.6.0" -} diff --git a/Easebuzz_NodeJS_kit/node_modules/got/readme.md b/Easebuzz_NodeJS_kit/node_modules/got/readme.md deleted file mode 100644 index 37132ab..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/got/readme.md +++ /dev/null @@ -1,1237 +0,0 @@ -
-
-
- Got -
-
-
-

Huge thanks to for sponsoring me! -

-
-
-
- -> Simplified HTTP requests - -[![Build Status: Linux](https://travis-ci.org/sindresorhus/got.svg?branch=master)](https://travis-ci.org/sindresorhus/got) [![Coverage Status](https://coveralls.io/repos/github/sindresorhus/got/badge.svg?branch=master)](https://coveralls.io/github/sindresorhus/got?branch=master) [![Downloads](https://img.shields.io/npm/dm/got.svg)](https://npmjs.com/got) [![Install size](https://packagephobia.now.sh/badge?p=got)](https://packagephobia.now.sh/result?p=got) - -Got is a human-friendly and powerful HTTP request library. - -It was created because the popular [`request`](https://github.com/request/request) package is bloated: [![Install size](https://packagephobia.now.sh/badge?p=request)](https://packagephobia.now.sh/result?p=request) - -Got is for Node.js. For browsers, we recommend [Ky](https://github.com/sindresorhus/ky). - - -## Highlights - -- [Promise & stream API](#api) -- [Request cancelation](#aborting-the-request) -- [RFC compliant caching](#cache-adapters) -- [Follows redirects](#followredirect) -- [Retries on failure](#retry) -- [Progress events](#onuploadprogress-progress) -- [Handles gzip/deflate](#decompress) -- [Timeout handling](#timeout) -- [Errors with metadata](#errors) -- [JSON mode](#json) -- [WHATWG URL support](#url) -- [Hooks](#hooks) -- [Instances with custom defaults](#instances) -- [Composable](advanced-creation.md#merging-instances) -- [Electron support](#useelectronnet) -- [Used by ~2000 packages and ~500K repos](https://github.com/sindresorhus/got/network/dependents) -- Actively maintained - -[Moving from Request?](migration-guides.md) - -[See how Got compares to other HTTP libraries](#comparison) - -## Install - -``` -$ npm install got -``` - - - - - - -## Usage - -```js -const got = require('got'); - -(async () => { - try { - const response = await got('sindresorhus.com'); - console.log(response.body); - //=> ' ...' - } catch (error) { - console.log(error.response.body); - //=> 'Internal server error ...' - } -})(); -``` - -###### Streams - -```js -const fs = require('fs'); -const got = require('got'); - -got.stream('sindresorhus.com').pipe(fs.createWriteStream('index.html')); - -// For POST, PUT, and PATCH methods `got.stream` returns a `stream.Writable` -fs.createReadStream('index.html').pipe(got.stream.post('sindresorhus.com')); -``` - - -### API - -It's a `GET` request by default, but can be changed by using different methods or in the `options`. - -#### got(url, [options]) - -Returns a Promise for a [`response` object](#response) or a [stream](#streams-1) if `options.stream` is set to true. - -##### url - -Type: `string` `Object` - -The URL to request, as a string, a [`https.request` options object](https://nodejs.org/api/https.html#https_https_request_options_callback), or a [WHATWG `URL`](https://nodejs.org/api/url.html#url_class_url). - -Properties from `options` will override properties in the parsed `url`. - -If no protocol is specified, it will default to `https`. - -##### options - -Type: `Object` - -Any of the [`https.request`](https://nodejs.org/api/https.html#https_https_request_options_callback) options. - -###### baseUrl - -Type: `string` `Object` - -When specified, `url` will be prepended by `baseUrl`.
-If you specify an absolute URL, it will skip the `baseUrl`. - -Very useful when used with `got.extend()` to create niche-specific Got instances. - -Can be a string or a [WHATWG `URL`](https://nodejs.org/api/url.html#url_class_url). - -Slash at the end of `baseUrl` and at the beginning of the `url` argument is optional: - -```js -await got('hello', {baseUrl: 'https://example.com/v1'}); -//=> 'https://example.com/v1/hello' - -await got('/hello', {baseUrl: 'https://example.com/v1/'}); -//=> 'https://example.com/v1/hello' - -await got('/hello', {baseUrl: 'https://example.com/v1'}); -//=> 'https://example.com/v1/hello' -``` - -###### headers - -Type: `Object`
-Default: `{}` - -Request headers. - -Existing headers will be overwritten. Headers set to `null` will be omitted. - -###### stream - -Type: `boolean`
-Default: `false` - -Returns a `Stream` instead of a `Promise`. This is equivalent to calling `got.stream(url, [options])`. - -###### body - -Type: `string` `Buffer` `stream.Readable` [`form-data` instance](https://github.com/form-data/form-data) - -**Note:** If you provide this option, `got.stream()` will be read-only. - -The body that will be sent with a `POST` request. - -If present in `options` and `options.method` is not set, `options.method` will be set to `POST`. - -The `content-length` header will be automatically set if `body` is a `string` / `Buffer` / `fs.createReadStream` instance / [`form-data` instance](https://github.com/form-data/form-data), and `content-length` and `transfer-encoding` are not manually set in `options.headers`. - -###### cookieJar - -Type: [`tough.CookieJar` instance](https://github.com/salesforce/tough-cookie#cookiejar) - -**Note:** If you provide this option, `options.headers.cookie` will be overridden. - -Cookie support. You don't have to care about parsing or how to store them. [Example.](#cookies) - -###### encoding - -Type: `string` `null`
-Default: `'utf8'` - -[Encoding](https://nodejs.org/api/buffer.html#buffer_buffers_and_character_encodings) to be used on `setEncoding` of the response data. If `null`, the body is returned as a [`Buffer`](https://nodejs.org/api/buffer.html) (binary data). - -###### form - -Type: `boolean`
-Default: `false` - -**Note:** If you provide this option, `got.stream()` will be read-only. -**Note:** `body` must be a plain object. It will be converted to a query string using [`(new URLSearchParams(object)).toString()`](https://nodejs.org/api/url.html#url_constructor_new_urlsearchparams_obj). - -If set to `true` and `Content-Type` header is not set, it will be set to `application/x-www-form-urlencoded`. - -###### json - -Type: `boolean`
-Default: `false` - -**Note:** If you use `got.stream()`, this option will be ignored. -**Note:** `body` must be a plain object or array and will be stringified. - -If set to `true` and `Content-Type` header is not set, it will be set to `application/json`. - -Parse response body with `JSON.parse` and set `accept` header to `application/json`. If used in conjunction with the `form` option, the `body` will the stringified as querystring and the response parsed as JSON. - -###### query - -Type: `string` `Object` [`URLSearchParams`](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams) - -Query string that will be added to the request URL. This will override the query string in `url`. - -If you need to pass in an array, you can do it using a `URLSearchParams` instance: - -```js -const got = require('got'); - -const query = new URLSearchParams([['key', 'a'], ['key', 'b']]); - -got('https://example.com', {query}); - -console.log(query.toString()); -//=> 'key=a&key=b' -``` - -And if you need a different array format, you could use the [`query-string`](https://github.com/sindresorhus/query-string) package: - -```js -const got = require('got'); -const queryString = require('query-string'); - -const query = queryString.stringify({key: ['a', 'b']}, {arrayFormat: 'bracket'}); - -got('https://example.com', {query}); - -console.log(query); -//=> 'key[]=a&key[]=b' -``` - -###### timeout - -Type: `number` `Object` - -Milliseconds to wait for the server to end the response before aborting the request with [`got.TimeoutError`](#gottimeouterror) error (a.k.a. `request` property). By default, there's no timeout. - -This also accepts an `object` with the following fields to constrain the duration of each phase of the request lifecycle: - -- `lookup` starts when a socket is assigned and ends when the hostname has been resolved. Does not apply when using a Unix domain socket. -- `connect` starts when `lookup` completes (or when the socket is assigned if lookup does not apply to the request) and ends when the socket is connected. -- `secureConnect` starts when `connect` completes and ends when the handshaking process completes (HTTPS only). -- `socket` starts when the socket is connected. See [request.setTimeout](https://nodejs.org/api/http.html#http_request_settimeout_timeout_callback). -- `response` starts when the request has been written to the socket and ends when the response headers are received. -- `send` starts when the socket is connected and ends with the request has been written to the socket. -- `request` starts when the request is initiated and ends when the response's end event fires. - -###### retry - -Type: `number` `Object`
-Default: -- retries: `2` -- methods: `GET` `PUT` `HEAD` `DELETE` `OPTIONS` `TRACE` -- statusCodes: [`408`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) [`413`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/413) [`429`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) [`500`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/500) [`502`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/502) [`503`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/503) [`504`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/504) -- maxRetryAfter: `undefined` -- errorCodes: `ETIMEDOUT` `ECONNRESET` `EADDRINUSE` `ECONNREFUSED` `EPIPE` `ENOTFOUND` `ENETUNREACH` `EAI_AGAIN` - -An object representing `retries`, `methods`, `statusCodes`, `maxRetryAfter` and `errorCodes` fields for the time until retry, allowed methods, allowed status codes, maximum [`Retry-After`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Retry-After) time and allowed error codes. - -If `maxRetryAfter` is set to `undefined`, it will use `options.timeout`.
-If [`Retry-After`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Retry-After) header is greater than `maxRetryAfter`, it will cancel the request. - -Delays between retries counts with function `1000 * Math.pow(2, retry) + Math.random() * 100`, where `retry` is attempt number (starts from 1). - -The `retries` property can be a `number` or a `function` with `retry` and `error` arguments. The function must return a delay in milliseconds (`0` return value cancels retry). - -By default, it retries *only* on the specified methods, status codes, and on these network errors: -- `ETIMEDOUT`: One of the [timeout](#timeout) limits were reached. -- `ECONNRESET`: Connection was forcibly closed by a peer. -- `EADDRINUSE`: Could not bind to any free port. -- `ECONNREFUSED`: Connection was refused by the server. -- `EPIPE`: The remote side of the stream being written has been closed. -- `ENOTFOUND`: Couldn't resolve the hostname to an IP address. -- `ENETUNREACH`: No internet connection. -- `EAI_AGAIN`: DNS lookup timed out. - -###### followRedirect - -Type: `boolean`
-Default: `true` - -Defines if redirect responses should be followed automatically. - -Note that if a `303` is sent by the server in response to any request type (`POST`, `DELETE`, etc.), Got will automatically request the resource pointed to in the location header via `GET`. This is in accordance with [the spec](https://tools.ietf.org/html/rfc7231#section-6.4.4). - -###### decompress - -Type: `boolean`
-Default: `true` - -Decompress the response automatically. This will set the `accept-encoding` header to `gzip, deflate` unless you set it yourself. - -If this is disabled, a compressed response is returned as a `Buffer`. This may be useful if you want to handle decompression yourself or stream the raw compressed data. - -###### cache - -Type: `Object`
-Default: `false` - -[Cache adapter instance](#cache-adapters) for storing cached data. - -###### request - -Type: `Function`
-Default: `http.request` `https.request` *(depending on the protocol)* - -Custom request function. The main purpose of this is to [support HTTP2 using a wrapper](#experimental-http2-support). - -###### useElectronNet - -Type: `boolean`
-Default: `false` - -When used in Electron, Got will use [`electron.net`](https://electronjs.org/docs/api/net/) instead of the Node.js `http` module. According to the Electron docs, it should be fully compatible, but it's not entirely. See [#443](https://github.com/sindresorhus/got/issues/443) and [#461](https://github.com/sindresorhus/got/issues/461). - -###### throwHttpErrors - -Type: `boolean`
-Default: `true` - -Determines if a `got.HTTPError` is thrown for error responses (non-2xx status codes). - -If this is disabled, requests that encounter an error status code will be resolved with the `response` instead of throwing. This may be useful if you are checking for resource availability and are expecting error responses. - -###### agent - -Same as the [`agent` option](https://nodejs.org/api/http.html#http_http_request_url_options_callback) for `http.request`, but with an extra feature: - -If you require different agents for different protocols, you can pass a map of agents to the `agent` option. This is necessary because a request to one protocol might redirect to another. In such a scenario, Got will switch over to the right protocol agent for you. - -```js -const got = require('got'); -const HttpAgent = require('agentkeepalive'); -const {HttpsAgent} = HttpAgent; - -got('sindresorhus.com', { - agent: { - http: new HttpAgent(), - https: new HttpsAgent() - } -}); -``` - -###### hooks - -Type: `Object` - -Hooks allow modifications during the request lifecycle. Hook functions may be async and are run serially. - -###### hooks.init - -Type: `Function[]`
-Default: `[]` - -Called with plain [request options](#options), right before their normalization. This is especially useful in conjunction with [`got.extend()`](#instances) and [`got.create()`](advanced-creation.md) when the input needs custom handling. - -See the [Request migration guide](migration-guides.md#breaking-changes) for an example. - -**Note**: This hook must be synchronous! - -###### hooks.beforeRequest - -Type: `Function[]`
-Default: `[]` - -Called with [normalized](source/normalize-arguments.js) [request options](#options). Got will make no further changes to the request before it is sent. This is especially useful in conjunction with [`got.extend()`](#instances) and [`got.create()`](advanced-creation.md) when you want to create an API client that, for example, uses HMAC-signing. - -See the [AWS section](#aws) for an example. - -**Note:** If you modify the `body` you will need to modify the `content-length` header too, because it has already been computed and assigned. - -###### hooks.beforeRedirect - -Type: `Function[]`
-Default: `[]` - -Called with [normalized](source/normalize-arguments.js) [request options](#options). Got will make no further changes to the request. This is especially useful when you want to avoid dead sites. Example: - -```js -const got = require('got'); - -got('example.com', { - hooks: { - beforeRedirect: [ - options => { - if (options.hostname === 'deadSite') { - options.hostname = 'fallbackSite'; - } - } - ] - } -}); -``` - -###### hooks.beforeRetry - -Type: `Function[]`
-Default: `[]` - -Called with [normalized](source/normalize-arguments.js) [request options](#options), the error and the retry count. Got will make no further changes to the request. This is especially useful when some extra work is required before the next try. Example: - -```js -const got = require('got'); - -got('example.com', { - hooks: { - beforeRetry: [ - (options, error, retryCount) => { - if (error.statusCode === 413) { // Payload too large - options.body = getNewBody(); - } - } - ] - } -}); -``` - -###### hooks.afterResponse - -Type: `Function[]`
-Default: `[]` - -Called with [response object](#response) and a retry function. - -Each function should return the response. This is especially useful when you want to refresh an access token. Example: - -```js -const got = require('got'); - -const instance = got.extend({ - hooks: { - afterResponse: [ - (response, retryWithMergedOptions) => { - if (response.statusCode === 401) { // Unauthorized - const updatedOptions = { - headers: { - token: getNewToken() // Refresh the access token - } - }; - - // Save for further requests - instance.defaults.options = got.mergeOptions(instance.defaults.options, updatedOptions); - - // Make a new retry - return retryWithMergedOptions(updatedOptions); - } - - // No changes otherwise - return response; - } - ] - }, - mutableDefaults: true -}); -``` - -###### hooks.beforeError - -Type: `Function[]`
-Default: `[]` - -Called with an `Error` instance. The error is passed to the hook right before it's thrown. This is especially useful when you want to have more detailed errors. - -**Note**: Errors thrown while normalizing input options are thrown directly and not part of this hook. - -```js -const got = require('got'); - -got('api.github.com/some-endpoint', { - hooks: { - onError: [ - error => { - const {response} = error; - if (response && response.body) { - error.name = 'GitHubError'; - error.message = `${response.body.message} (${error.statusCode})`; - } - - return error; - } - ] - } -}); -``` - -#### Response - -The response object will typically be a [Node.js HTTP response stream](https://nodejs.org/api/http.html#http_class_http_incomingmessage), however, if returned from the cache it will be a [response-like object](https://github.com/lukechilds/responselike) which behaves in the same way. - -##### request - -Type: `Object` - -**Note:** This is not a [http.ClientRequest](https://nodejs.org/api/http.html#http_class_http_clientrequest). - -- `gotOptions` - The options that were set on this request. - -##### body - -Type: `string` `Object` *(depending on `options.json`)* - -The result of the request. - -##### url - -Type: `string` - -The request URL or the final URL after redirects. - -##### requestUrl - -Type: `string` - -The original request URL. - -##### timings - -Type: `Object` - -The object contains the following properties: - -- `start` - Time when the request started. -- `socket` - Time when a socket was assigned to the request. -- `lookup` - Time when the DNS lookup finished. -- `connect` - Time when the socket successfully connected. -- `upload` - Time when the request finished uploading. -- `response` - Time when the request fired the `response` event. -- `end` - Time when the response fired the `end` event. -- `error` - Time when the request fired the `error` event. -- `phases` - - `wait` - `timings.socket - timings.start` - - `dns` - `timings.lookup - timings.socket` - - `tcp` - `timings.connect - timings.lookup` - - `request` - `timings.upload - timings.connect` - - `firstByte` - `timings.response - timings.upload` - - `download` - `timings.end - timings.response` - - `total` - `timings.end - timings.start` or `timings.error - timings.start` - -**Note:** The time is a `number` representing the milliseconds elapsed since the UNIX epoch. - -##### fromCache - -Type: `boolean` - -Whether the response was retrieved from the cache. - -##### redirectUrls - -Type: `Array` - -The redirect URLs. - -##### retryCount - -Type: `number` - -The number of times the request was retried. - -#### Streams - -**Note:** Progress events, redirect events and request/response events can also be used with promises. - -#### got.stream(url, [options]) - -Sets `options.stream` to `true`. - -Returns a [duplex stream](https://nodejs.org/api/stream.html#stream_class_stream_duplex) with additional events: - -##### .on('request', request) - -`request` event to get the request object of the request. - -**Tip:** You can use `request` event to abort request: - -```js -got.stream('github.com') - .on('request', request => setTimeout(() => request.abort(), 50)); -``` - -##### .on('response', response) - -The `response` event to get the response object of the final request. - -##### .on('redirect', response, nextOptions) - -The `redirect` event to get the response object of a redirect. The second argument is options for the next request to the redirect location. - -##### .on('uploadProgress', progress) -##### .on('downloadProgress', progress) - -Progress events for uploading (sending a request) and downloading (receiving a response). The `progress` argument is an object like: - -```js -{ - percent: 0.1, - transferred: 1024, - total: 10240 -} -``` - -If it's not possible to retrieve the body size (can happen when streaming), `total` will be `null`. - -```js -(async () => { - const response = await got('sindresorhus.com') - .on('downloadProgress', progress => { - // Report download progress - }) - .on('uploadProgress', progress => { - // Report upload progress - }); - - console.log(response); -})(); -``` - -##### .on('error', error, body, response) - -The `error` event emitted in case of a protocol error (like `ENOTFOUND` etc.) or status error (4xx or 5xx). The second argument is the body of the server response in case of status error. The third argument is a response object. - -#### got.get(url, [options]) -#### got.post(url, [options]) -#### got.put(url, [options]) -#### got.patch(url, [options]) -#### got.head(url, [options]) -#### got.delete(url, [options]) - -Sets `options.method` to the method name and makes a request. - -### Instances - -#### got.extend([options]) - -Configure a new `got` instance with default `options`. The `options` are merged with the parent instance's `defaults.options` using [`got.mergeOptions`](#gotmergeoptionsparentoptions-newoptions). You can access the resolved options with the `.defaults` property on the instance. - -```js -const client = got.extend({ - baseUrl: 'https://example.com', - headers: { - 'x-unicorn': 'rainbow' - } -}); - -client.get('/demo'); - -/* HTTP Request => - * GET /demo HTTP/1.1 - * Host: example.com - * x-unicorn: rainbow - */ -``` - -```js -(async () => { - const client = got.extend({ - baseUrl: 'httpbin.org', - headers: { - 'x-foo': 'bar' - } - }); - const {headers} = (await client.get('/headers', {json: true})).body; - //=> headers['x-foo'] === 'bar' - - const jsonClient = client.extend({ - json: true, - headers: { - 'x-baz': 'qux' - } - }); - const {headers: headers2} = (await jsonClient.get('/headers')).body; - //=> headers2['x-foo'] === 'bar' - //=> headers2['x-baz'] === 'qux' -})(); -``` - -**Tip:** Need more control over the behavior of Got? Check out the [`got.create()`](advanced-creation.md). - -#### got.mergeOptions(parentOptions, newOptions) - -Extends parent options. Avoid using [object spread](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Spread_syntax#Spread_in_object_literals) as it doesn't work recursively: - -```js -const a = {headers: {cat: 'meow', wolf: ['bark', 'wrrr']}}; -const b = {headers: {cow: 'moo', wolf: ['auuu']}}; - -{...a, ...b} // => {headers: {cow: 'moo', wolf: ['auuu']}} -got.mergeOptions(a, b) // => {headers: {cat: 'meow', cow: 'moo', wolf: ['auuu']}} -``` - -Options are deeply merged to a new object. The value of each key is determined as follows: - -- If the new property is set to `undefined`, it keeps the old one. -- If the parent property is an instance of `URL` and the new value is a `string` or `URL`, a new URL instance is created: [`new URL(new, parent)`](https://developer.mozilla.org/en-US/docs/Web/API/URL/URL#Syntax). -- If the new property is a plain `Object`: - - If the parent property is a plain `Object` too, both values are merged recursively into a new `Object`. - - Otherwise, only the new value is deeply cloned. -- If the new property is an `Array`, it overwrites the old one with a deep clone of the new property. -- Otherwise, the new value is assigned to the key. - -#### got.defaults - -Type: `Object` - -The default Got options. - -## Errors - -Each error contains `host`, `hostname`, `method`, `path`, `protocol`, `url` and `gotOptions` properties to make debugging easier. - -In Promise mode, the `response` is attached to the error. - -#### got.CacheError - -When a cache method fails, for example, if the database goes down or there's a filesystem error. - -#### got.RequestError - -When a request fails. Contains a `code` property with error class code, like `ECONNREFUSED`. - -#### got.ReadError - -When reading from response stream fails. - -#### got.ParseError - -When `json` option is enabled, server response code is 2xx, and `JSON.parse` fails. Includes `statusCode` and `statusMessage` properties. - -#### got.HTTPError - -When the server response code is not 2xx. Includes `body`, `statusCode`, `statusMessage`, and `redirectUrls` properties. - -#### got.MaxRedirectsError - -When the server redirects you more than ten times. Includes a `statusCode`, `statusMessage`, and `redirectUrls` property which is an array of the URLs Got was redirected to before giving up. - -#### got.UnsupportedProtocolError - -When given an unsupported protocol. - -#### got.CancelError - -When the request is aborted with `.cancel()`. - -#### got.TimeoutError - -When the request is aborted due to a [timeout](#timeout). Includes an `event` property. - -## Aborting the request - -The promise returned by Got has a [`.cancel()`](https://github.com/sindresorhus/p-cancelable) method which when called, aborts the request. - -```js -(async () => { - const request = got(url, options); - - // … - - // In another part of the code - if (something) { - request.cancel(); - } - - // … - - try { - await request; - } catch (error) { - if (request.isCanceled) { // Or `error instanceof got.CancelError` - // Handle cancelation - } - - // Handle other errors - } -})(); -``` - - -## Cache - -Got implements [RFC 7234](http://httpwg.org/specs/rfc7234.html) compliant HTTP caching which works out of the box in-memory and is easily pluggable with a wide range of storage adapters. Fresh cache entries are served directly from the cache, and stale cache entries are revalidated with `If-None-Match`/`If-Modified-Since` headers. You can read more about the underlying cache behavior in the [`cacheable-request` documentation](https://github.com/lukechilds/cacheable-request). - -You can use the JavaScript `Map` type as an in-memory cache: - -```js -const got = require('got'); -const map = new Map(); - -(async () => { - let response = await got('sindresorhus.com', {cache: map}); - console.log(response.fromCache); - //=> false - - response = await got('sindresorhus.com', {cache: map}); - console.log(response.fromCache); - //=> true -})(); -``` - -Got uses [Keyv](https://github.com/lukechilds/keyv) internally to support a wide range of storage adapters. For something more scalable you could use an [official Keyv storage adapter](https://github.com/lukechilds/keyv#official-storage-adapters): - -``` -$ npm install @keyv/redis -``` - -```js -const got = require('got'); -const KeyvRedis = require('@keyv/redis'); - -const redis = new KeyvRedis('redis://user:pass@localhost:6379'); - -got('sindresorhus.com', {cache: redis}); -``` - -Got supports anything that follows the Map API, so it's easy to write your own storage adapter or use a third-party solution. - -For example, the following are all valid storage adapters: - -```js -const storageAdapter = new Map(); -// Or -const storageAdapter = require('./my-storage-adapter'); -// Or -const QuickLRU = require('quick-lru'); -const storageAdapter = new QuickLRU({maxSize: 1000}); - -got('sindresorhus.com', {cache: storageAdapter}); -``` - -View the [Keyv docs](https://github.com/lukechilds/keyv) for more information on how to use storage adapters. - - -## Proxies - -You can use the [`tunnel`](https://github.com/koichik/node-tunnel) package with the `agent` option to work with proxies: - -```js -const got = require('got'); -const tunnel = require('tunnel'); - -got('sindresorhus.com', { - agent: tunnel.httpOverHttp({ - proxy: { - host: 'localhost' - } - }) -}); -``` - -Check out [`global-tunnel`](https://github.com/np-maintain/global-tunnel) if you want to configure proxy support for all HTTP/HTTPS traffic in your app. - - -## Cookies - -You can use the [`tough-cookie`](https://github.com/salesforce/tough-cookie) package: - -```js -const got = require('got'); -const {CookieJar} = require('tough-cookie'); - -const cookieJar = new CookieJar(); -cookieJar.setCookie('foo=bar', 'https://www.google.com'); - -got('google.com', {cookieJar}); -``` - - -## Form data - -You can use the [`form-data`](https://github.com/form-data/form-data) package to create POST request with form data: - -```js -const fs = require('fs'); -const got = require('got'); -const FormData = require('form-data'); -const form = new FormData(); - -form.append('my_file', fs.createReadStream('/foo/bar.jpg')); - -got.post('google.com', { - body: form -}); -``` - - -## OAuth - -You can use the [`oauth-1.0a`](https://github.com/ddo/oauth-1.0a) package to create a signed OAuth request: - -```js -const got = require('got'); -const crypto = require('crypto'); -const OAuth = require('oauth-1.0a'); - -const oauth = OAuth({ - consumer: { - key: process.env.CONSUMER_KEY, - secret: process.env.CONSUMER_SECRET - }, - signature_method: 'HMAC-SHA1', - hash_function: (baseString, key) => crypto.createHmac('sha1', key).update(baseString).digest('base64') -}); - -const token = { - key: process.env.ACCESS_TOKEN, - secret: process.env.ACCESS_TOKEN_SECRET -}; - -const url = 'https://api.twitter.com/1.1/statuses/home_timeline.json'; - -got(url, { - headers: oauth.toHeader(oauth.authorize({url, method: 'GET'}, token)), - json: true -}); -``` - - -## Unix Domain Sockets - -Requests can also be sent via [unix domain sockets](http://serverfault.com/questions/124517/whats-the-difference-between-unix-socket-and-tcp-ip-socket). Use the following URL scheme: `PROTOCOL://unix:SOCKET:PATH`. - -- `PROTOCOL` - `http` or `https` *(optional)* -- `SOCKET` - Absolute path to a unix domain socket, for example: `/var/run/docker.sock` -- `PATH` - Request path, for example: `/v2/keys` - -```js -got('http://unix:/var/run/docker.sock:/containers/json'); - -// Or without protocol (HTTP by default) -got('unix:/var/run/docker.sock:/containers/json'); -``` - - -## AWS - -Requests to AWS services need to have their headers signed. This can be accomplished by using the [`aws4`](https://www.npmjs.com/package/aws4) package. This is an example for querying an ["API Gateway"](https://docs.aws.amazon.com/apigateway/api-reference/signing-requests/) with a signed request. - -```js -const AWS = require('aws-sdk'); -const aws4 = require('aws4'); -const got = require('got'); - -const chain = new AWS.CredentialProviderChain(); - -// Create a Got instance to use relative paths and signed requests -const awsClient = got.extend({ - baseUrl: 'https://.execute-api..amazonaws.com//', - hooks: { - beforeRequest: [ - async options => { - const credentials = await chain.resolvePromise(); - aws4.sign(options, credentials); - } - ] - } -}); - -const response = await awsClient('endpoint/path', { - // Request-specific options -}); -``` - - -## Testing - -You can test your requests by using the [`nock`](https://github.com/node-nock/nock) package to mock an endpoint: - -```js -const got = require('got'); -const nock = require('nock'); - -nock('https://sindresorhus.com') - .get('/') - .reply(200, 'Hello world!'); - -(async () => { - const response = await got('sindresorhus.com'); - console.log(response.body); - //=> 'Hello world!' -})(); -``` - -If you need real integration tests you can use [`create-test-server`](https://github.com/lukechilds/create-test-server): - -```js -const got = require('got'); -const createTestServer = require('create-test-server'); - -(async () => { - const server = await createTestServer(); - server.get('/', 'Hello world!'); - - const response = await got(server.url); - console.log(response.body); - //=> 'Hello world!' - - await server.close(); -})(); -``` - - -## Tips - -### User Agent - -It's a good idea to set the `'user-agent'` header so the provider can more easily see how their resource is used. By default, it's the URL to this repo. You can omit this header by setting it to `null`. - -```js -const got = require('got'); -const pkg = require('./package.json'); - -got('sindresorhus.com', { - headers: { - 'user-agent': `my-package/${pkg.version} (https://github.com/username/my-package)` - } -}); - -got('sindresorhus.com', { - headers: { - 'user-agent': null - } -}); -``` - -### 304 Responses - -Bear in mind; if you send an `if-modified-since` header and receive a `304 Not Modified` response, the body will be empty. It's your responsibility to cache and retrieve the body contents. - -### Custom endpoints - -Use `got.extend()` to make it nicer to work with REST APIs. Especially if you use the `baseUrl` option. - -**Note:** Not to be confused with [`got.create()`](advanced-creation.md), which has no defaults. - -```js -const got = require('got'); -const pkg = require('./package.json'); - -const custom = got.extend({ - baseUrl: 'example.com', - json: true, - headers: { - 'user-agent': `my-package/${pkg.version} (https://github.com/username/my-package)` - } -}); - -// Use `custom` exactly how you use `got` -(async () => { - const list = await custom('/v1/users/list'); -})(); -``` - -**Tip:** Need to merge some instances into a single one? Check out [`got.mergeInstances()`](advanced-creation.md#merging-instances). - -### Experimental HTTP2 support - -Got provides an experimental support for HTTP2 using the [`http2-wrapper`](https://github.com/szmarczak/http2-wrapper) package: - -```js -const got = require('got'); -const {request} = require('http2-wrapper'); - -const h2got = got.extend({request}); - -(async () => { - const {body} = await h2got('https://nghttp2.org/httpbin/headers'); - console.log(body); -})(); -``` - -## Comparison - -| | `got` | [`request`][r0] | [`node-fetch`][n0] | [`axios`][a0] | [`superagent`][s0] | -|-----------------------|:--------------:|:---------------:|:------------------:|:---------------:|:--------------------:| -| HTTP/2 support | ❔ | ✖ | ✖ | ✖ | ✔\*\* | -| Browser support | ✖ | ✖ | ✔\* | ✔ | ✔ | -| Electron support | ✔ | ✖ | ✖ | ✖ | ✖ | -| Promise API | ✔ | ✔ | ✔ | ✔ | ✔ | -| Stream API | ✔ | ✔ | Node.js only | ✖ | ✔ | -| Request cancelation | ✔ | ✖ | ✔ | ✔ | ✔ | -| RFC compliant caching | ✔ | ✖ | ✖ | ✖ | ✖ | -| Cookies (out-of-box) | ✔ | ✔ | ✖ | ✖ | ✖ | -| Follows redirects | ✔ | ✔ | ✔ | ✔ | ✔ | -| Retries on failure | ✔ | ✖ | ✖ | ✖ | ✔ | -| Progress events | ✔ | ✖ | ✖ | Browser only | ✔ | -| Handles gzip/deflate | ✔ | ✔ | ✔ | ✔ | ✔ | -| Advanced timeouts | ✔ | ✖ | ✖ | ✖ | ✖ | -| Timings | ✔ | ✔ | ✖ | ✖ | ✖ | -| Errors with metadata | ✔ | ✖ | ✖ | ✔ | ✖ | -| JSON mode | ✔ | ✔ | ✖ | ✔ | ✔ | -| Custom defaults | ✔ | ✔ | ✖ | ✔ | ✖ | -| Composable | ✔ | ✖ | ✖ | ✖ | ✔ | -| Hooks | ✔ | ✖ | ✖ | ✔ | ✖ | -| Issues open | [![][gio]][g1] | [![][rio]][r1] | [![][nio]][n1] | [![][aio]][a1] | [![][sio]][s1] | -| Issues closed | [![][gic]][g2] | [![][ric]][r2] | [![][nic]][n2] | [![][aic]][a2] | [![][sic]][s2] | -| Downloads | [![][gd]][g3] | [![][rd]][r3] | [![][nd]][n3] | [![][ad]][a3] | [![][sd]][s3] | -| Coverage | [![][gc]][g4] | [![][rc]][r4] | [![][nc]][n4] | [![][ac]][a4] | unknown | -| Build | [![][gb]][g5] | [![][rb]][r5] | [![][nb]][n5] | [![][ab]][a5] | [![][sb]][s5] | -| Bugs | [![][gbg]][g6] | [![][rbg]][r6] | [![][nbg]][n6] | [![][abg]][a6] | [![][sbg]][s6] | -| Dependents | [![][gdp]][g7] | [![][rdp]][r7] | [![][ndp]][n7] | [![][adp]][a7] | [![][sdp]][s7] | -| Install size | [![][gis]][g8] | [![][ris]][r8] | [![][nis]][n8] | [![][ais]][a8] | [![][sis]][s8] | - -\* It's almost API compatible with the browser `fetch` API.
-\*\* Need to switch the protocol manually.
-❔ Experimental support. - - -[r0]: https://github.com/request/request -[n0]: https://github.com/bitinn/node-fetch -[a0]: https://github.com/axios/axios -[s0]: https://github.com/visionmedia/superagent - - -[gio]: https://badgen.net/github/open-issues/sindresorhus/got?label -[rio]: https://badgen.net/github/open-issues/request/request?label -[nio]: https://badgen.net/github/open-issues/bitinn/node-fetch?label -[aio]: https://badgen.net/github/open-issues/axios/axios?label -[sio]: https://badgen.net/github/open-issues/visionmedia/superagent?label - -[g1]: https://github.com/sindresorhus/got/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc -[r1]: https://github.com/request/request/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc -[n1]: https://github.com/bitinn/node-fetch/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc -[a1]: https://github.com/axios/axios/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc -[s1]: https://github.com/visionmedia/superagent/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc - - -[gic]: https://badgen.net/github/closed-issues/sindresorhus/got?label -[ric]: https://badgen.net/github/closed-issues/request/request?label -[nic]: https://badgen.net/github/closed-issues/bitinn/node-fetch?label -[aic]: https://badgen.net/github/closed-issues/axios/axios?label -[sic]: https://badgen.net/github/closed-issues/visionmedia/superagent?label - -[g2]: https://github.com/sindresorhus/got/issues?q=is%3Aissue+is%3Aclosed+sort%3Aupdated-desc -[r2]: https://github.com/request/request/issues?q=is%3Aissue+is%3Aclosed+sort%3Aupdated-desc -[n2]: https://github.com/bitinn/node-fetch/issues?q=is%3Aissue+is%3Aclosed+sort%3Aupdated-desc -[a2]: https://github.com/axios/axios/issues?q=is%3Aissue+is%3Aclosed+sort%3Aupdated-desc -[s2]: https://github.com/visionmedia/superagent/issues?q=is%3Aissue+is%3Aclosed+sort%3Aupdated-desc - - -[gd]: https://badgen.net/npm/dm/got?label -[rd]: https://badgen.net/npm/dm/request?label -[nd]: https://badgen.net/npm/dm/node-fetch?label -[ad]: https://badgen.net/npm/dm/axios?label -[sd]: https://badgen.net/npm/dm/superagent?label - -[g3]: https://www.npmjs.com/package/got -[r3]: https://www.npmjs.com/package/request -[n3]: https://www.npmjs.com/package/node-fetch -[a3]: https://www.npmjs.com/package/axios -[s3]: https://www.npmjs.com/package/superagent - - -[gc]: https://badgen.net/coveralls/c/github/sindresorhus/got?label -[rc]: https://badgen.net/coveralls/c/github/request/request?label -[nc]: https://badgen.net/coveralls/c/github/bitinn/node-fetch?label -[ac]: https://badgen.net/coveralls/c/github/mzabriskie/axios?label - -[g4]: https://coveralls.io/github/sindresorhus/got -[r4]: https://coveralls.io/github/request/request -[n4]: https://coveralls.io/github/bitinn/node-fetch -[a4]: https://coveralls.io/github/mzabriskie/axios - - -[gb]: https://badgen.net/travis/sindresorhus/got?label -[rb]: https://badgen.net/travis/request/request?label -[nb]: https://badgen.net/travis/bitinn/node-fetch?label -[ab]: https://badgen.net/travis/axios/axios?label -[sb]: https://badgen.net/travis/visionmedia/superagent?label - -[g5]: https://travis-ci.org/sindresorhus/got -[r5]: https://travis-ci.org/request/request -[n5]: https://travis-ci.org/bitinn/node-fetch -[a5]: https://travis-ci.org/axios/axios -[s5]: https://travis-ci.org/visionmedia/superagent - - -[gbg]: https://badgen.net/github/label-issues/sindresorhus/got/bug/open?label -[rbg]: https://badgen.net/github/label-issues/request/request/Needs%20investigation/open?label -[nbg]: https://badgen.net/github/label-issues/bitinn/node-fetch/bug/open?label -[abg]: https://badgen.net/github/label-issues/axios/axios/bug/open?label -[sbg]: https://badgen.net/github/label-issues/visionmedia/superagent/Bug/open?label - -[g6]: https://github.com/sindresorhus/got/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc+label%3Abug -[r6]: https://github.com/request/request/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc+label%3A"Needs+investigation" -[n6]: https://github.com/bitinn/node-fetch/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc+label%3Abug -[a6]: https://github.com/axios/axios/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc+label%3Abug -[s6]: https://github.com/visionmedia/superagent/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc+label%3ABug - - -[gdp]: https://badgen.net/npm/dependents/got?label -[rdp]: https://badgen.net/npm/dependents/request?label -[ndp]: https://badgen.net/npm/dependents/node-fetch?label -[adp]: https://badgen.net/npm/dependents/axios?label -[sdp]: https://badgen.net/npm/dependents/superagent?label - -[g7]: https://www.npmjs.com/package/got?activeTab=dependents -[r7]: https://www.npmjs.com/package/request?activeTab=dependents -[n7]: https://www.npmjs.com/package/node-fetch?activeTab=dependents -[a7]: https://www.npmjs.com/package/axios?activeTab=dependents -[s7]: https://www.npmjs.com/package/visionmedia?activeTab=dependents - - -[gis]: https://badgen.net/packagephobia/install/got?label -[ris]: https://badgen.net/packagephobia/install/request?label -[nis]: https://badgen.net/packagephobia/install/node-fetch?label -[ais]: https://badgen.net/packagephobia/install/axios?label -[sis]: https://badgen.net/packagephobia/install/superagent?label - -[g8]: https://packagephobia.now.sh/result?p=got -[r8]: https://packagephobia.now.sh/result?p=request -[n8]: https://packagephobia.now.sh/result?p=node-fetch -[a8]: https://packagephobia.now.sh/result?p=axios -[s8]: https://packagephobia.now.sh/result?p=superagent - - -## Related - -- [gh-got](https://github.com/sindresorhus/gh-got) - Got convenience wrapper to interact with the GitHub API -- [gl-got](https://github.com/singapore/gl-got) - Got convenience wrapper to interact with the GitLab API -- [travis-got](https://github.com/samverschueren/travis-got) - Got convenience wrapper to interact with the Travis API -- [graphql-got](https://github.com/kevva/graphql-got) - Got convenience wrapper to interact with GraphQL -- [GotQL](https://github.com/khaosdoctor/gotql) - Got convenience wrapper to interact with GraphQL using JSON-parsed queries instead of strings - - -## Maintainers - -[![Sindre Sorhus](https://github.com/sindresorhus.png?size=100)](https://sindresorhus.com) | [![Vsevolod Strukchinsky](https://github.com/floatdrop.png?size=100)](https://github.com/floatdrop) | [![Alexander Tesfamichael](https://github.com/AlexTes.png?size=100)](https://github.com/AlexTes) | [![Luke Childs](https://github.com/lukechilds.png?size=100)](https://github.com/lukechilds) | [![Szymon Marczak](https://github.com/szmarczak.png?size=100)](https://github.com/szmarczak) | [![Brandon Smith](https://github.com/brandon93s.png?size=100)](https://github.com/brandon93s) ----|---|---|---|---|--- -[Sindre Sorhus](https://sindresorhus.com) | [Vsevolod Strukchinsky](https://github.com/floatdrop) | [Alexander Tesfamichael](https://alextes.me) | [Luke Childs](https://github.com/lukechilds) | [Szymon Marczak](https://github.com/szmarczak) | [Brandon Smith](https://github.com/brandon93s) - - -## License - -MIT diff --git a/Easebuzz_NodeJS_kit/node_modules/got/source/as-promise.js b/Easebuzz_NodeJS_kit/node_modules/got/source/as-promise.js deleted file mode 100644 index c502325..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/got/source/as-promise.js +++ /dev/null @@ -1,108 +0,0 @@ -'use strict'; -const EventEmitter = require('events'); -const getStream = require('get-stream'); -const is = require('@sindresorhus/is'); -const PCancelable = require('p-cancelable'); -const requestAsEventEmitter = require('./request-as-event-emitter'); -const {HTTPError, ParseError, ReadError} = require('./errors'); -const {options: mergeOptions} = require('./merge'); -const {reNormalize} = require('./normalize-arguments'); - -const asPromise = options => { - const proxy = new EventEmitter(); - - const promise = new PCancelable((resolve, reject, onCancel) => { - const emitter = requestAsEventEmitter(options); - - onCancel(emitter.abort); - - emitter.on('response', async response => { - proxy.emit('response', response); - - const stream = is.null(options.encoding) ? getStream.buffer(response) : getStream(response, options); - - let data; - try { - data = await stream; - } catch (error) { - reject(new ReadError(error, options)); - return; - } - - const limitStatusCode = options.followRedirect ? 299 : 399; - - response.body = data; - - try { - for (const [index, hook] of Object.entries(options.hooks.afterResponse)) { - // eslint-disable-next-line no-await-in-loop - response = await hook(response, updatedOptions => { - updatedOptions = reNormalize(mergeOptions(options, { - ...updatedOptions, - retry: 0, - throwHttpErrors: false - })); - - // Remove any further hooks for that request, because we we'll call them anyway. - // The loop continues. We don't want duplicates (asPromise recursion). - updatedOptions.hooks.afterResponse = options.hooks.afterResponse.slice(0, index); - - return asPromise(updatedOptions); - }); - } - } catch (error) { - reject(error); - return; - } - - const {statusCode} = response; - - if (options.json && response.body) { - try { - response.body = JSON.parse(response.body); - } catch (error) { - if (statusCode >= 200 && statusCode < 300) { - const parseError = new ParseError(error, statusCode, options, data); - Object.defineProperty(parseError, 'response', {value: response}); - reject(parseError); - return; - } - } - } - - if (statusCode !== 304 && (statusCode < 200 || statusCode > limitStatusCode)) { - const error = new HTTPError(response, options); - Object.defineProperty(error, 'response', {value: response}); - if (emitter.retry(error) === false) { - if (options.throwHttpErrors) { - reject(error); - return; - } - - resolve(response); - } - - return; - } - - resolve(response); - }); - - emitter.once('error', reject); - [ - 'request', - 'redirect', - 'uploadProgress', - 'downloadProgress' - ].forEach(event => emitter.on(event, (...args) => proxy.emit(event, ...args))); - }); - - promise.on = (name, fn) => { - proxy.on(name, fn); - return promise; - }; - - return promise; -}; - -module.exports = asPromise; diff --git a/Easebuzz_NodeJS_kit/node_modules/got/source/as-stream.js b/Easebuzz_NodeJS_kit/node_modules/got/source/as-stream.js deleted file mode 100644 index 98c5342..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/got/source/as-stream.js +++ /dev/null @@ -1,93 +0,0 @@ -'use strict'; -const {PassThrough} = require('stream'); -const duplexer3 = require('duplexer3'); -const requestAsEventEmitter = require('./request-as-event-emitter'); -const {HTTPError, ReadError} = require('./errors'); - -module.exports = options => { - const input = new PassThrough(); - const output = new PassThrough(); - const proxy = duplexer3(input, output); - const piped = new Set(); - let isFinished = false; - - options.retry.retries = () => 0; - - if (options.body) { - proxy.write = () => { - throw new Error('Got\'s stream is not writable when the `body` option is used'); - }; - } - - const emitter = requestAsEventEmitter(options, input); - - // Cancels the request - proxy._destroy = emitter.abort; - - emitter.on('response', response => { - const {statusCode} = response; - - response.on('error', error => { - proxy.emit('error', new ReadError(error, options)); - }); - - if (options.throwHttpErrors && statusCode !== 304 && (statusCode < 200 || statusCode > 299)) { - proxy.emit('error', new HTTPError(response, options), null, response); - return; - } - - isFinished = true; - - response.pipe(output); - - for (const destination of piped) { - if (destination.headersSent) { - continue; - } - - for (const [key, value] of Object.entries(response.headers)) { - // Got gives *decompressed* data. Overriding `content-encoding` header would result in an error. - // It's not possible to decompress already decompressed data, is it? - const allowed = options.decompress ? key !== 'content-encoding' : true; - if (allowed) { - destination.setHeader(key, value); - } - } - - destination.statusCode = response.statusCode; - } - - proxy.emit('response', response); - }); - - [ - 'error', - 'request', - 'redirect', - 'uploadProgress', - 'downloadProgress' - ].forEach(event => emitter.on(event, (...args) => proxy.emit(event, ...args))); - - const pipe = proxy.pipe.bind(proxy); - const unpipe = proxy.unpipe.bind(proxy); - proxy.pipe = (destination, options) => { - if (isFinished) { - throw new Error('Failed to pipe. The response has been emitted already.'); - } - - const result = pipe(destination, options); - - if (Reflect.has(destination, 'setHeader')) { - piped.add(destination); - } - - return result; - }; - - proxy.unpipe = stream => { - piped.delete(stream); - return unpipe(stream); - }; - - return proxy; -}; diff --git a/Easebuzz_NodeJS_kit/node_modules/got/source/create.js b/Easebuzz_NodeJS_kit/node_modules/got/source/create.js deleted file mode 100644 index b78c51f..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/got/source/create.js +++ /dev/null @@ -1,79 +0,0 @@ -'use strict'; -const errors = require('./errors'); -const asStream = require('./as-stream'); -const asPromise = require('./as-promise'); -const normalizeArguments = require('./normalize-arguments'); -const merge = require('./merge'); -const deepFreeze = require('./utils/deep-freeze'); - -const getPromiseOrStream = options => options.stream ? asStream(options) : asPromise(options); - -const aliases = [ - 'get', - 'post', - 'put', - 'patch', - 'head', - 'delete' -]; - -const create = defaults => { - defaults = merge({}, defaults); - normalizeArguments.preNormalize(defaults.options); - - if (!defaults.handler) { - // This can't be getPromiseOrStream, because when merging - // the chain would stop at this point and no further handlers would be called. - defaults.handler = (options, next) => next(options); - } - - function got(url, options) { - try { - return defaults.handler(normalizeArguments(url, options, defaults), getPromiseOrStream); - } catch (error) { - if (options && options.stream) { - throw error; - } else { - return Promise.reject(error); - } - } - } - - got.create = create; - got.extend = options => { - let mutableDefaults; - if (options && Reflect.has(options, 'mutableDefaults')) { - mutableDefaults = options.mutableDefaults; - delete options.mutableDefaults; - } else { - mutableDefaults = defaults.mutableDefaults; - } - - return create({ - options: merge.options(defaults.options, options), - handler: defaults.handler, - mutableDefaults - }); - }; - - got.mergeInstances = (...args) => create(merge.instances(args)); - - got.stream = (url, options) => got(url, {...options, stream: true}); - - for (const method of aliases) { - got[method] = (url, options) => got(url, {...options, method}); - got.stream[method] = (url, options) => got.stream(url, {...options, method}); - } - - Object.assign(got, {...errors, mergeOptions: merge.options}); - Object.defineProperty(got, 'defaults', { - value: defaults.mutableDefaults ? defaults : deepFreeze(defaults), - writable: defaults.mutableDefaults, - configurable: defaults.mutableDefaults, - enumerable: true - }); - - return got; -}; - -module.exports = create; diff --git a/Easebuzz_NodeJS_kit/node_modules/got/source/errors.js b/Easebuzz_NodeJS_kit/node_modules/got/source/errors.js deleted file mode 100644 index b6cbadc..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/got/source/errors.js +++ /dev/null @@ -1,107 +0,0 @@ -'use strict'; -const urlLib = require('url'); -const http = require('http'); -const PCancelable = require('p-cancelable'); -const is = require('@sindresorhus/is'); - -class GotError extends Error { - constructor(message, error, options) { - super(message); - Error.captureStackTrace(this, this.constructor); - this.name = 'GotError'; - - if (!is.undefined(error.code)) { - this.code = error.code; - } - - Object.assign(this, { - host: options.host, - hostname: options.hostname, - method: options.method, - path: options.path, - socketPath: options.socketPath, - protocol: options.protocol, - url: options.href, - gotOptions: options - }); - } -} - -module.exports.GotError = GotError; - -module.exports.CacheError = class extends GotError { - constructor(error, options) { - super(error.message, error, options); - this.name = 'CacheError'; - } -}; - -module.exports.RequestError = class extends GotError { - constructor(error, options) { - super(error.message, error, options); - this.name = 'RequestError'; - } -}; - -module.exports.ReadError = class extends GotError { - constructor(error, options) { - super(error.message, error, options); - this.name = 'ReadError'; - } -}; - -module.exports.ParseError = class extends GotError { - constructor(error, statusCode, options, data) { - super(`${error.message} in "${urlLib.format(options)}": \n${data.slice(0, 77)}...`, error, options); - this.name = 'ParseError'; - this.statusCode = statusCode; - this.statusMessage = http.STATUS_CODES[this.statusCode]; - } -}; - -module.exports.HTTPError = class extends GotError { - constructor(response, options) { - const {statusCode} = response; - let {statusMessage} = response; - - if (statusMessage) { - statusMessage = statusMessage.replace(/\r?\n/g, ' ').trim(); - } else { - statusMessage = http.STATUS_CODES[statusCode]; - } - - super(`Response code ${statusCode} (${statusMessage})`, {}, options); - this.name = 'HTTPError'; - this.statusCode = statusCode; - this.statusMessage = statusMessage; - this.headers = response.headers; - this.body = response.body; - } -}; - -module.exports.MaxRedirectsError = class extends GotError { - constructor(statusCode, redirectUrls, options) { - super('Redirected 10 times. Aborting.', {}, options); - this.name = 'MaxRedirectsError'; - this.statusCode = statusCode; - this.statusMessage = http.STATUS_CODES[this.statusCode]; - this.redirectUrls = redirectUrls; - } -}; - -module.exports.UnsupportedProtocolError = class extends GotError { - constructor(options) { - super(`Unsupported protocol "${options.protocol}"`, {}, options); - this.name = 'UnsupportedProtocolError'; - } -}; - -module.exports.TimeoutError = class extends GotError { - constructor(error, options) { - super(error.message, {code: 'ETIMEDOUT'}, options); - this.name = 'TimeoutError'; - this.event = error.event; - } -}; - -module.exports.CancelError = PCancelable.CancelError; diff --git a/Easebuzz_NodeJS_kit/node_modules/got/source/get-response.js b/Easebuzz_NodeJS_kit/node_modules/got/source/get-response.js deleted file mode 100644 index 18453c2..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/got/source/get-response.js +++ /dev/null @@ -1,31 +0,0 @@ -'use strict'; -const decompressResponse = require('decompress-response'); -const is = require('@sindresorhus/is'); -const mimicResponse = require('mimic-response'); -const progress = require('./progress'); - -module.exports = (response, options, emitter) => { - const downloadBodySize = Number(response.headers['content-length']) || null; - - const progressStream = progress.download(response, emitter, downloadBodySize); - - mimicResponse(response, progressStream); - - const newResponse = options.decompress === true && - is.function(decompressResponse) && - options.method !== 'HEAD' ? decompressResponse(progressStream) : progressStream; - - if (!options.decompress && ['gzip', 'deflate'].includes(response.headers['content-encoding'])) { - options.encoding = null; - } - - emitter.emit('response', newResponse); - - emitter.emit('downloadProgress', { - percent: 0, - transferred: 0, - total: downloadBodySize - }); - - response.pipe(progressStream); -}; diff --git a/Easebuzz_NodeJS_kit/node_modules/got/source/index.js b/Easebuzz_NodeJS_kit/node_modules/got/source/index.js deleted file mode 100644 index cbf7c37..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/got/source/index.js +++ /dev/null @@ -1,60 +0,0 @@ -'use strict'; -const pkg = require('../package.json'); -const create = require('./create'); - -const defaults = { - options: { - retry: { - retries: 2, - methods: [ - 'GET', - 'PUT', - 'HEAD', - 'DELETE', - 'OPTIONS', - 'TRACE' - ], - statusCodes: [ - 408, - 413, - 429, - 500, - 502, - 503, - 504 - ], - errorCodes: [ - 'ETIMEDOUT', - 'ECONNRESET', - 'EADDRINUSE', - 'ECONNREFUSED', - 'EPIPE', - 'ENOTFOUND', - 'ENETUNREACH', - 'EAI_AGAIN' - ] - }, - headers: { - 'user-agent': `${pkg.name}/${pkg.version} (https://github.com/sindresorhus/got)` - }, - hooks: { - beforeRequest: [], - beforeRedirect: [], - beforeRetry: [], - afterResponse: [] - }, - decompress: true, - throwHttpErrors: true, - followRedirect: true, - stream: false, - form: false, - json: false, - cache: false, - useElectronNet: false - }, - mutableDefaults: false -}; - -const got = create(defaults); - -module.exports = got; diff --git a/Easebuzz_NodeJS_kit/node_modules/got/source/known-hook-events.js b/Easebuzz_NodeJS_kit/node_modules/got/source/known-hook-events.js deleted file mode 100644 index cd245e1..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/got/source/known-hook-events.js +++ /dev/null @@ -1,10 +0,0 @@ -'use strict'; - -module.exports = [ - 'beforeError', - 'init', - 'beforeRequest', - 'beforeRedirect', - 'beforeRetry', - 'afterResponse' -]; diff --git a/Easebuzz_NodeJS_kit/node_modules/got/source/merge.js b/Easebuzz_NodeJS_kit/node_modules/got/source/merge.js deleted file mode 100644 index 900f09a..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/got/source/merge.js +++ /dev/null @@ -1,73 +0,0 @@ -'use strict'; -const {URL} = require('url'); -const is = require('@sindresorhus/is'); -const knownHookEvents = require('./known-hook-events'); - -const merge = (target, ...sources) => { - for (const source of sources) { - for (const [key, sourceValue] of Object.entries(source)) { - if (is.undefined(sourceValue)) { - continue; - } - - const targetValue = target[key]; - if (is.urlInstance(targetValue) && (is.urlInstance(sourceValue) || is.string(sourceValue))) { - target[key] = new URL(sourceValue, targetValue); - } else if (is.plainObject(sourceValue)) { - if (is.plainObject(targetValue)) { - target[key] = merge({}, targetValue, sourceValue); - } else { - target[key] = merge({}, sourceValue); - } - } else if (is.array(sourceValue)) { - target[key] = merge([], sourceValue); - } else { - target[key] = sourceValue; - } - } - } - - return target; -}; - -const mergeOptions = (...sources) => { - sources = sources.map(source => source || {}); - const merged = merge({}, ...sources); - - const hooks = {}; - for (const hook of knownHookEvents) { - hooks[hook] = []; - } - - for (const source of sources) { - if (source.hooks) { - for (const hook of knownHookEvents) { - hooks[hook] = hooks[hook].concat(source.hooks[hook]); - } - } - } - - merged.hooks = hooks; - - return merged; -}; - -const mergeInstances = (instances, methods) => { - const handlers = instances.map(instance => instance.defaults.handler); - const size = instances.length - 1; - - return { - methods, - options: mergeOptions(...instances.map(instance => instance.defaults.options)), - handler: (options, next) => { - let iteration = -1; - const iterate = options => handlers[++iteration](options, iteration === size ? next : iterate); - - return iterate(options); - } - }; -}; - -module.exports = merge; -module.exports.options = mergeOptions; -module.exports.instances = mergeInstances; diff --git a/Easebuzz_NodeJS_kit/node_modules/got/source/normalize-arguments.js b/Easebuzz_NodeJS_kit/node_modules/got/source/normalize-arguments.js deleted file mode 100644 index 665cbce..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/got/source/normalize-arguments.js +++ /dev/null @@ -1,265 +0,0 @@ -'use strict'; -const {URL, URLSearchParams} = require('url'); // TODO: Use the `URL` global when targeting Node.js 10 -const urlLib = require('url'); -const is = require('@sindresorhus/is'); -const urlParseLax = require('url-parse-lax'); -const lowercaseKeys = require('lowercase-keys'); -const urlToOptions = require('./utils/url-to-options'); -const isFormData = require('./utils/is-form-data'); -const merge = require('./merge'); -const knownHookEvents = require('./known-hook-events'); - -const retryAfterStatusCodes = new Set([413, 429, 503]); - -// `preNormalize` handles static options (e.g. headers). -// For example, when you create a custom instance and make a request -// with no static changes, they won't be normalized again. -// -// `normalize` operates on dynamic options - they cannot be saved. -// For example, `body` is everytime different per request. -// When it's done normalizing the new options, it performs merge() -// on the prenormalized options and the normalized ones. - -const preNormalize = (options, defaults) => { - if (is.nullOrUndefined(options.headers)) { - options.headers = {}; - } else { - options.headers = lowercaseKeys(options.headers); - } - - if (options.baseUrl && !options.baseUrl.toString().endsWith('/')) { - options.baseUrl += '/'; - } - - if (options.stream) { - options.json = false; - } - - if (is.nullOrUndefined(options.hooks)) { - options.hooks = {}; - } else if (!is.object(options.hooks)) { - throw new TypeError(`Parameter \`hooks\` must be an object, not ${is(options.hooks)}`); - } - - for (const event of knownHookEvents) { - if (is.nullOrUndefined(options.hooks[event])) { - if (defaults) { - options.hooks[event] = [...defaults.hooks[event]]; - } else { - options.hooks[event] = []; - } - } - } - - if (is.number(options.timeout)) { - options.gotTimeout = {request: options.timeout}; - } else if (is.object(options.timeout)) { - options.gotTimeout = options.timeout; - } - - delete options.timeout; - - const {retry} = options; - options.retry = { - retries: 0, - methods: [], - statusCodes: [], - errorCodes: [] - }; - - if (is.nonEmptyObject(defaults) && retry !== false) { - options.retry = {...defaults.retry}; - } - - if (retry !== false) { - if (is.number(retry)) { - options.retry.retries = retry; - } else { - options.retry = {...options.retry, ...retry}; - } - } - - if (options.gotTimeout) { - options.retry.maxRetryAfter = Math.min(...[options.gotTimeout.request, options.gotTimeout.connection].filter(n => !is.nullOrUndefined(n))); - } - - if (is.array(options.retry.methods)) { - options.retry.methods = new Set(options.retry.methods.map(method => method.toUpperCase())); - } - - if (is.array(options.retry.statusCodes)) { - options.retry.statusCodes = new Set(options.retry.statusCodes); - } - - if (is.array(options.retry.errorCodes)) { - options.retry.errorCodes = new Set(options.retry.errorCodes); - } - - return options; -}; - -const normalize = (url, options, defaults) => { - if (is.plainObject(url)) { - options = {...url, ...options}; - url = options.url || {}; - delete options.url; - } - - if (defaults) { - options = merge({}, defaults.options, options ? preNormalize(options, defaults.options) : {}); - } else { - options = merge({}, preNormalize(options)); - } - - if (!is.string(url) && !is.object(url)) { - throw new TypeError(`Parameter \`url\` must be a string or object, not ${is(url)}`); - } - - if (is.string(url)) { - if (options.baseUrl) { - if (url.toString().startsWith('/')) { - url = url.toString().slice(1); - } - - url = urlToOptions(new URL(url, options.baseUrl)); - } else { - url = url.replace(/^unix:/, 'http://$&'); - url = urlParseLax(url); - } - } else if (is(url) === 'URL') { - url = urlToOptions(url); - } - - // Override both null/undefined with default protocol - options = merge({path: ''}, url, {protocol: url.protocol || 'https:'}, options); - - for (const hook of options.hooks.init) { - const called = hook(options); - - if (is.promise(called)) { - throw new TypeError('The `init` hook must be a synchronous function'); - } - } - - const {baseUrl} = options; - Object.defineProperty(options, 'baseUrl', { - set: () => { - throw new Error('Failed to set baseUrl. Options are normalized already.'); - }, - get: () => baseUrl - }); - - const {query} = options; - if (is.nonEmptyString(query) || is.nonEmptyObject(query) || query instanceof URLSearchParams) { - if (!is.string(query)) { - options.query = (new URLSearchParams(query)).toString(); - } - - options.path = `${options.path.split('?')[0]}?${options.query}`; - delete options.query; - } - - if (options.hostname === 'unix') { - const matches = /(.+?):(.+)/.exec(options.path); - - if (matches) { - const [, socketPath, path] = matches; - options = { - ...options, - socketPath, - path, - host: null - }; - } - } - - const {headers} = options; - for (const [key, value] of Object.entries(headers)) { - if (is.nullOrUndefined(value)) { - delete headers[key]; - } - } - - if (options.json && is.undefined(headers.accept)) { - headers.accept = 'application/json'; - } - - if (options.decompress && is.undefined(headers['accept-encoding'])) { - headers['accept-encoding'] = 'gzip, deflate'; - } - - const {body} = options; - if (is.nullOrUndefined(body)) { - options.method = options.method ? options.method.toUpperCase() : 'GET'; - } else { - const isObject = is.object(body) && !is.buffer(body) && !is.nodeStream(body); - if (!is.nodeStream(body) && !is.string(body) && !is.buffer(body) && !(options.form || options.json)) { - throw new TypeError('The `body` option must be a stream.Readable, string or Buffer'); - } - - if (options.json && !(isObject || is.array(body))) { - throw new TypeError('The `body` option must be an Object or Array when the `json` option is used'); - } - - if (options.form && !isObject) { - throw new TypeError('The `body` option must be an Object when the `form` option is used'); - } - - if (isFormData(body)) { - // Special case for https://github.com/form-data/form-data - headers['content-type'] = headers['content-type'] || `multipart/form-data; boundary=${body.getBoundary()}`; - } else if (options.form) { - headers['content-type'] = headers['content-type'] || 'application/x-www-form-urlencoded'; - options.body = (new URLSearchParams(body)).toString(); - } else if (options.json) { - headers['content-type'] = headers['content-type'] || 'application/json'; - options.body = JSON.stringify(body); - } - - options.method = options.method ? options.method.toUpperCase() : 'POST'; - } - - if (!is.function(options.retry.retries)) { - const {retries} = options.retry; - - options.retry.retries = (iteration, error) => { - if (iteration > retries) { - return 0; - } - - if ((!error || !options.retry.errorCodes.has(error.code)) && (!options.retry.methods.has(error.method) || !options.retry.statusCodes.has(error.statusCode))) { - return 0; - } - - if (Reflect.has(error, 'headers') && Reflect.has(error.headers, 'retry-after') && retryAfterStatusCodes.has(error.statusCode)) { - let after = Number(error.headers['retry-after']); - if (is.nan(after)) { - after = Date.parse(error.headers['retry-after']) - Date.now(); - } else { - after *= 1000; - } - - if (after > options.retry.maxRetryAfter) { - return 0; - } - - return after; - } - - if (error.statusCode === 413) { - return 0; - } - - const noise = Math.random() * 100; - return ((2 ** (iteration - 1)) * 1000) + noise; - }; - } - - return options; -}; - -const reNormalize = options => normalize(urlLib.format(options), options); - -module.exports = normalize; -module.exports.preNormalize = preNormalize; -module.exports.reNormalize = reNormalize; diff --git a/Easebuzz_NodeJS_kit/node_modules/got/source/progress.js b/Easebuzz_NodeJS_kit/node_modules/got/source/progress.js deleted file mode 100644 index 666abcf..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/got/source/progress.js +++ /dev/null @@ -1,96 +0,0 @@ -'use strict'; -const {Transform} = require('stream'); - -module.exports = { - download(response, emitter, downloadBodySize) { - let downloaded = 0; - - return new Transform({ - transform(chunk, encoding, callback) { - downloaded += chunk.length; - - const percent = downloadBodySize ? downloaded / downloadBodySize : 0; - - // Let `flush()` be responsible for emitting the last event - if (percent < 1) { - emitter.emit('downloadProgress', { - percent, - transferred: downloaded, - total: downloadBodySize - }); - } - - callback(null, chunk); - }, - - flush(callback) { - emitter.emit('downloadProgress', { - percent: 1, - transferred: downloaded, - total: downloadBodySize - }); - - callback(); - } - }); - }, - - upload(request, emitter, uploadBodySize) { - const uploadEventFrequency = 150; - let uploaded = 0; - let progressInterval; - - emitter.emit('uploadProgress', { - percent: 0, - transferred: 0, - total: uploadBodySize - }); - - request.once('error', () => { - clearInterval(progressInterval); - }); - - request.once('response', () => { - clearInterval(progressInterval); - - emitter.emit('uploadProgress', { - percent: 1, - transferred: uploaded, - total: uploadBodySize - }); - }); - - request.once('socket', socket => { - const onSocketConnect = () => { - progressInterval = setInterval(() => { - const lastUploaded = uploaded; - /* istanbul ignore next: see #490 (occurs randomly!) */ - const headersSize = request._header ? Buffer.byteLength(request._header) : 0; - uploaded = socket.bytesWritten - headersSize; - - // Don't emit events with unchanged progress and - // prevent last event from being emitted, because - // it's emitted when `response` is emitted - if (uploaded === lastUploaded || uploaded === uploadBodySize) { - return; - } - - emitter.emit('uploadProgress', { - percent: uploadBodySize ? uploaded / uploadBodySize : 0, - transferred: uploaded, - total: uploadBodySize - }); - }, uploadEventFrequency); - }; - - /* istanbul ignore next: hard to test */ - if (socket.connecting) { - socket.once('connect', onSocketConnect); - } else if (socket.writable) { - // The socket is being reused from pool, - // so the connect event will not be emitted - onSocketConnect(); - } - }); - } -}; diff --git a/Easebuzz_NodeJS_kit/node_modules/got/source/request-as-event-emitter.js b/Easebuzz_NodeJS_kit/node_modules/got/source/request-as-event-emitter.js deleted file mode 100644 index 79586af..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/got/source/request-as-event-emitter.js +++ /dev/null @@ -1,312 +0,0 @@ -'use strict'; -const {URL} = require('url'); // TODO: Use the `URL` global when targeting Node.js 10 -const util = require('util'); -const EventEmitter = require('events'); -const http = require('http'); -const https = require('https'); -const urlLib = require('url'); -const CacheableRequest = require('cacheable-request'); -const toReadableStream = require('to-readable-stream'); -const is = require('@sindresorhus/is'); -const timer = require('@szmarczak/http-timer'); -const timedOut = require('./utils/timed-out'); -const getBodySize = require('./utils/get-body-size'); -const getResponse = require('./get-response'); -const progress = require('./progress'); -const {CacheError, UnsupportedProtocolError, MaxRedirectsError, RequestError, TimeoutError} = require('./errors'); -const urlToOptions = require('./utils/url-to-options'); - -const getMethodRedirectCodes = new Set([300, 301, 302, 303, 304, 305, 307, 308]); -const allMethodRedirectCodes = new Set([300, 303, 307, 308]); - -module.exports = (options, input) => { - const emitter = new EventEmitter(); - const redirects = []; - let currentRequest; - let requestUrl; - let redirectString; - let uploadBodySize; - let retryCount = 0; - let shouldAbort = false; - - const setCookie = options.cookieJar ? util.promisify(options.cookieJar.setCookie.bind(options.cookieJar)) : null; - const getCookieString = options.cookieJar ? util.promisify(options.cookieJar.getCookieString.bind(options.cookieJar)) : null; - const agents = is.object(options.agent) ? options.agent : null; - - const emitError = async error => { - try { - for (const hook of options.hooks.beforeError) { - // eslint-disable-next-line no-await-in-loop - error = await hook(error); - } - - emitter.emit('error', error); - } catch (error2) { - emitter.emit('error', error2); - } - }; - - const get = async options => { - const currentUrl = redirectString || requestUrl; - - if (options.protocol !== 'http:' && options.protocol !== 'https:') { - throw new UnsupportedProtocolError(options); - } - - decodeURI(currentUrl); - - let fn; - if (is.function(options.request)) { - fn = {request: options.request}; - } else { - fn = options.protocol === 'https:' ? https : http; - } - - if (agents) { - const protocolName = options.protocol === 'https:' ? 'https' : 'http'; - options.agent = agents[protocolName] || options.agent; - } - - /* istanbul ignore next: electron.net is broken */ - if (options.useElectronNet && process.versions.electron) { - const r = ({x: require})['yx'.slice(1)]; // Trick webpack - const electron = r('electron'); - fn = electron.net || electron.remote.net; - } - - if (options.cookieJar) { - const cookieString = await getCookieString(currentUrl, {}); - - if (is.nonEmptyString(cookieString)) { - options.headers.cookie = cookieString; - } - } - - let timings; - const handleResponse = async response => { - try { - /* istanbul ignore next: fixes https://github.com/electron/electron/blob/cbb460d47628a7a146adf4419ed48550a98b2923/lib/browser/api/net.js#L59-L65 */ - if (options.useElectronNet) { - response = new Proxy(response, { - get: (target, name) => { - if (name === 'trailers' || name === 'rawTrailers') { - return []; - } - - const value = target[name]; - return is.function(value) ? value.bind(target) : value; - } - }); - } - - const {statusCode} = response; - response.url = currentUrl; - response.requestUrl = requestUrl; - response.retryCount = retryCount; - response.timings = timings; - response.redirectUrls = redirects; - response.request = { - gotOptions: options - }; - - const rawCookies = response.headers['set-cookie']; - if (options.cookieJar && rawCookies) { - await Promise.all(rawCookies.map(rawCookie => setCookie(rawCookie, response.url))); - } - - if (options.followRedirect && 'location' in response.headers) { - if (allMethodRedirectCodes.has(statusCode) || (getMethodRedirectCodes.has(statusCode) && (options.method === 'GET' || options.method === 'HEAD'))) { - response.resume(); // We're being redirected, we don't care about the response. - - if (statusCode === 303) { - // Server responded with "see other", indicating that the resource exists at another location, - // and the client should request it from that location via GET or HEAD. - options.method = 'GET'; - } - - if (redirects.length >= 10) { - throw new MaxRedirectsError(statusCode, redirects, options); - } - - // Handles invalid URLs. See https://github.com/sindresorhus/got/issues/604 - const redirectBuffer = Buffer.from(response.headers.location, 'binary').toString(); - const redirectURL = new URL(redirectBuffer, currentUrl); - redirectString = redirectURL.toString(); - - redirects.push(redirectString); - - const redirectOptions = { - ...options, - ...urlToOptions(redirectURL) - }; - - for (const hook of options.hooks.beforeRedirect) { - // eslint-disable-next-line no-await-in-loop - await hook(redirectOptions); - } - - emitter.emit('redirect', response, redirectOptions); - - await get(redirectOptions); - return; - } - } - - getResponse(response, options, emitter); - } catch (error) { - emitError(error); - } - }; - - const handleRequest = request => { - if (shouldAbort) { - request.once('error', () => {}); - request.abort(); - return; - } - - currentRequest = request; - - request.once('error', error => { - if (request.aborted) { - return; - } - - if (error instanceof timedOut.TimeoutError) { - error = new TimeoutError(error, options); - } else { - error = new RequestError(error, options); - } - - if (emitter.retry(error) === false) { - emitError(error); - } - }); - - timings = timer(request); - - progress.upload(request, emitter, uploadBodySize); - - if (options.gotTimeout) { - timedOut(request, options.gotTimeout, options); - } - - emitter.emit('request', request); - - const uploadComplete = () => { - request.emit('upload-complete'); - }; - - try { - if (is.nodeStream(options.body)) { - options.body.once('end', uploadComplete); - options.body.pipe(request); - options.body = undefined; - } else if (options.body) { - request.end(options.body, uploadComplete); - } else if (input && (options.method === 'POST' || options.method === 'PUT' || options.method === 'PATCH')) { - input.once('end', uploadComplete); - input.pipe(request); - } else { - request.end(uploadComplete); - } - } catch (error) { - emitError(new RequestError(error, options)); - } - }; - - if (options.cache) { - const cacheableRequest = new CacheableRequest(fn.request, options.cache); - const cacheRequest = cacheableRequest(options, handleResponse); - - cacheRequest.once('error', error => { - if (error instanceof CacheableRequest.RequestError) { - emitError(new RequestError(error, options)); - } else { - emitError(new CacheError(error, options)); - } - }); - - cacheRequest.once('request', handleRequest); - } else { - // Catches errors thrown by calling fn.request(...) - try { - handleRequest(fn.request(options, handleResponse)); - } catch (error) { - emitError(new RequestError(error, options)); - } - } - }; - - emitter.retry = error => { - let backoff; - - try { - backoff = options.retry.retries(++retryCount, error); - } catch (error2) { - emitError(error2); - return; - } - - if (backoff) { - const retry = async options => { - try { - for (const hook of options.hooks.beforeRetry) { - // eslint-disable-next-line no-await-in-loop - await hook(options, error, retryCount); - } - - await get(options); - } catch (error) { - emitError(error); - } - }; - - setTimeout(retry, backoff, {...options, forceRefresh: true}); - return true; - } - - return false; - }; - - emitter.abort = () => { - if (currentRequest) { - currentRequest.once('error', () => {}); - currentRequest.abort(); - } else { - shouldAbort = true; - } - }; - - setImmediate(async () => { - try { - // Convert buffer to stream to receive upload progress events (#322) - const {body} = options; - if (is.buffer(body)) { - options.body = toReadableStream(body); - uploadBodySize = body.length; - } else { - uploadBodySize = await getBodySize(options); - } - - if (is.undefined(options.headers['content-length']) && is.undefined(options.headers['transfer-encoding'])) { - if ((uploadBodySize > 0 || options.method === 'PUT') && !is.null(uploadBodySize)) { - options.headers['content-length'] = uploadBodySize; - } - } - - for (const hook of options.hooks.beforeRequest) { - // eslint-disable-next-line no-await-in-loop - await hook(options); - } - - requestUrl = options.href || (new URL(options.path, urlLib.format(options))).toString(); - - await get(options); - } catch (error) { - emitError(error); - } - }); - - return emitter; -}; diff --git a/Easebuzz_NodeJS_kit/node_modules/got/source/utils/deep-freeze.js b/Easebuzz_NodeJS_kit/node_modules/got/source/utils/deep-freeze.js deleted file mode 100644 index 5052b71..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/got/source/utils/deep-freeze.js +++ /dev/null @@ -1,12 +0,0 @@ -'use strict'; -const is = require('@sindresorhus/is'); - -module.exports = function deepFreeze(object) { - for (const [key, value] of Object.entries(object)) { - if (is.plainObject(value) || is.array(value)) { - deepFreeze(object[key]); - } - } - - return Object.freeze(object); -}; diff --git a/Easebuzz_NodeJS_kit/node_modules/got/source/utils/get-body-size.js b/Easebuzz_NodeJS_kit/node_modules/got/source/utils/get-body-size.js deleted file mode 100644 index 0df5af2..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/got/source/utils/get-body-size.js +++ /dev/null @@ -1,32 +0,0 @@ -'use strict'; -const fs = require('fs'); -const util = require('util'); -const is = require('@sindresorhus/is'); -const isFormData = require('./is-form-data'); - -module.exports = async options => { - const {body} = options; - - if (options.headers['content-length']) { - return Number(options.headers['content-length']); - } - - if (!body && !options.stream) { - return 0; - } - - if (is.string(body)) { - return Buffer.byteLength(body); - } - - if (isFormData(body)) { - return util.promisify(body.getLength.bind(body))(); - } - - if (body instanceof fs.ReadStream) { - const {size} = await util.promisify(fs.stat)(body.path); - return size; - } - - return null; -}; diff --git a/Easebuzz_NodeJS_kit/node_modules/got/source/utils/is-form-data.js b/Easebuzz_NodeJS_kit/node_modules/got/source/utils/is-form-data.js deleted file mode 100644 index 0033618..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/got/source/utils/is-form-data.js +++ /dev/null @@ -1,4 +0,0 @@ -'use strict'; -const is = require('@sindresorhus/is'); - -module.exports = body => is.nodeStream(body) && is.function(body.getBoundary); diff --git a/Easebuzz_NodeJS_kit/node_modules/got/source/utils/timed-out.js b/Easebuzz_NodeJS_kit/node_modules/got/source/utils/timed-out.js deleted file mode 100644 index 33611a7..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/got/source/utils/timed-out.js +++ /dev/null @@ -1,160 +0,0 @@ -'use strict'; -const net = require('net'); - -class TimeoutError extends Error { - constructor(threshold, event) { - super(`Timeout awaiting '${event}' for ${threshold}ms`); - this.name = 'TimeoutError'; - this.code = 'ETIMEDOUT'; - this.event = event; - } -} - -const reentry = Symbol('reentry'); - -const noop = () => {}; - -module.exports = (request, delays, options) => { - /* istanbul ignore next: this makes sure timed-out isn't called twice */ - if (request[reentry]) { - return; - } - - request[reentry] = true; - - let stopNewTimeouts = false; - - const addTimeout = (delay, callback, ...args) => { - // An error had been thrown before. Going further would result in uncaught errors. - // See https://github.com/sindresorhus/got/issues/631#issuecomment-435675051 - if (stopNewTimeouts) { - return noop; - } - - // Event loop order is timers, poll, immediates. - // The timed event may emit during the current tick poll phase, so - // defer calling the handler until the poll phase completes. - let immediate; - const timeout = setTimeout(() => { - immediate = setImmediate(callback, delay, ...args); - /* istanbul ignore next: added in node v9.7.0 */ - if (immediate.unref) { - immediate.unref(); - } - }, delay); - - /* istanbul ignore next: in order to support electron renderer */ - if (timeout.unref) { - timeout.unref(); - } - - const cancel = () => { - clearTimeout(timeout); - clearImmediate(immediate); - }; - - cancelers.push(cancel); - - return cancel; - }; - - const {host, hostname} = options; - const timeoutHandler = (delay, event) => { - request.emit('error', new TimeoutError(delay, event)); - request.once('error', () => {}); // Ignore the `socket hung up` error made by request.abort() - - request.abort(); - }; - - const cancelers = []; - const cancelTimeouts = () => { - stopNewTimeouts = true; - cancelers.forEach(cancelTimeout => cancelTimeout()); - }; - - request.once('error', cancelTimeouts); - request.once('response', response => { - response.once('end', cancelTimeouts); - }); - - if (delays.request !== undefined) { - addTimeout(delays.request, timeoutHandler, 'request'); - } - - if (delays.socket !== undefined) { - const socketTimeoutHandler = () => { - timeoutHandler(delays.socket, 'socket'); - }; - - request.setTimeout(delays.socket, socketTimeoutHandler); - - // `request.setTimeout(0)` causes a memory leak. - // We can just remove the listener and forget about the timer - it's unreffed. - // See https://github.com/sindresorhus/got/issues/690 - cancelers.push(() => request.removeListener('timeout', socketTimeoutHandler)); - } - - if (delays.lookup !== undefined && !request.socketPath && !net.isIP(hostname || host)) { - request.once('socket', socket => { - /* istanbul ignore next: hard to test */ - if (socket.connecting) { - const cancelTimeout = addTimeout(delays.lookup, timeoutHandler, 'lookup'); - socket.once('lookup', cancelTimeout); - } - }); - } - - if (delays.connect !== undefined) { - request.once('socket', socket => { - /* istanbul ignore next: hard to test */ - if (socket.connecting) { - const timeConnect = () => addTimeout(delays.connect, timeoutHandler, 'connect'); - - if (request.socketPath || net.isIP(hostname || host)) { - socket.once('connect', timeConnect()); - } else { - socket.once('lookup', error => { - if (error === null) { - socket.once('connect', timeConnect()); - } - }); - } - } - }); - } - - if (delays.secureConnect !== undefined && options.protocol === 'https:') { - request.once('socket', socket => { - /* istanbul ignore next: hard to test */ - if (socket.connecting) { - socket.once('connect', () => { - const cancelTimeout = addTimeout(delays.secureConnect, timeoutHandler, 'secureConnect'); - socket.once('secureConnect', cancelTimeout); - }); - } - }); - } - - if (delays.send !== undefined) { - request.once('socket', socket => { - const timeRequest = () => addTimeout(delays.send, timeoutHandler, 'send'); - /* istanbul ignore next: hard to test */ - if (socket.connecting) { - socket.once('connect', () => { - request.once('upload-complete', timeRequest()); - }); - } else { - request.once('upload-complete', timeRequest()); - } - }); - } - - if (delays.response !== undefined) { - request.once('upload-complete', () => { - const cancelTimeout = addTimeout(delays.response, timeoutHandler, 'response'); - request.once('response', cancelTimeout); - }); - } -}; - -module.exports.TimeoutError = TimeoutError; diff --git a/Easebuzz_NodeJS_kit/node_modules/got/source/utils/url-to-options.js b/Easebuzz_NodeJS_kit/node_modules/got/source/utils/url-to-options.js deleted file mode 100644 index 848ef30..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/got/source/utils/url-to-options.js +++ /dev/null @@ -1,25 +0,0 @@ -'use strict'; -const is = require('@sindresorhus/is'); - -module.exports = url => { - const options = { - protocol: url.protocol, - hostname: url.hostname.startsWith('[') ? url.hostname.slice(1, -1) : url.hostname, - hash: url.hash, - search: url.search, - pathname: url.pathname, - href: url.href - }; - - if (is.string(url.port) && url.port.length > 0) { - options.port = Number(url.port); - } - - if (url.username || url.password) { - options.auth = `${url.username}:${url.password}`; - } - - options.path = is.null(url.search) ? url.pathname : `${url.pathname}${url.search}`; - - return options; -}; diff --git a/Easebuzz_NodeJS_kit/node_modules/graceful-fs/LICENSE b/Easebuzz_NodeJS_kit/node_modules/graceful-fs/LICENSE deleted file mode 100644 index 9d2c803..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/graceful-fs/LICENSE +++ /dev/null @@ -1,15 +0,0 @@ -The ISC License - -Copyright (c) Isaac Z. Schlueter, Ben Noordhuis, and Contributors - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted, provided that the above -copyright notice and this permission notice appear in all copies. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR -IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. diff --git a/Easebuzz_NodeJS_kit/node_modules/graceful-fs/README.md b/Easebuzz_NodeJS_kit/node_modules/graceful-fs/README.md deleted file mode 100644 index 5273a50..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/graceful-fs/README.md +++ /dev/null @@ -1,133 +0,0 @@ -# graceful-fs - -graceful-fs functions as a drop-in replacement for the fs module, -making various improvements. - -The improvements are meant to normalize behavior across different -platforms and environments, and to make filesystem access more -resilient to errors. - -## Improvements over [fs module](https://nodejs.org/api/fs.html) - -* Queues up `open` and `readdir` calls, and retries them once - something closes if there is an EMFILE error from too many file - descriptors. -* fixes `lchmod` for Node versions prior to 0.6.2. -* implements `fs.lutimes` if possible. Otherwise it becomes a noop. -* ignores `EINVAL` and `EPERM` errors in `chown`, `fchown` or - `lchown` if the user isn't root. -* makes `lchmod` and `lchown` become noops, if not available. -* retries reading a file if `read` results in EAGAIN error. - -On Windows, it retries renaming a file for up to one second if `EACCESS` -or `EPERM` error occurs, likely because antivirus software has locked -the directory. - -## USAGE - -```javascript -// use just like fs -var fs = require('graceful-fs') - -// now go and do stuff with it... -fs.readFileSync('some-file-or-whatever') -``` - -## Global Patching - -If you want to patch the global fs module (or any other fs-like -module) you can do this: - -```javascript -// Make sure to read the caveat below. -var realFs = require('fs') -var gracefulFs = require('graceful-fs') -gracefulFs.gracefulify(realFs) -``` - -This should only ever be done at the top-level application layer, in -order to delay on EMFILE errors from any fs-using dependencies. You -should **not** do this in a library, because it can cause unexpected -delays in other parts of the program. - -## Changes - -This module is fairly stable at this point, and used by a lot of -things. That being said, because it implements a subtle behavior -change in a core part of the node API, even modest changes can be -extremely breaking, and the versioning is thus biased towards -bumping the major when in doubt. - -The main change between major versions has been switching between -providing a fully-patched `fs` module vs monkey-patching the node core -builtin, and the approach by which a non-monkey-patched `fs` was -created. - -The goal is to trade `EMFILE` errors for slower fs operations. So, if -you try to open a zillion files, rather than crashing, `open` -operations will be queued up and wait for something else to `close`. - -There are advantages to each approach. Monkey-patching the fs means -that no `EMFILE` errors can possibly occur anywhere in your -application, because everything is using the same core `fs` module, -which is patched. However, it can also obviously cause undesirable -side-effects, especially if the module is loaded multiple times. - -Implementing a separate-but-identical patched `fs` module is more -surgical (and doesn't run the risk of patching multiple times), but -also imposes the challenge of keeping in sync with the core module. - -The current approach loads the `fs` module, and then creates a -lookalike object that has all the same methods, except a few that are -patched. It is safe to use in all versions of Node from 0.8 through -7.0. - -### v4 - -* Do not monkey-patch the fs module. This module may now be used as a - drop-in dep, and users can opt into monkey-patching the fs builtin - if their app requires it. - -### v3 - -* Monkey-patch fs, because the eval approach no longer works on recent - node. -* fixed possible type-error throw if rename fails on windows -* verify that we *never* get EMFILE errors -* Ignore ENOSYS from chmod/chown -* clarify that graceful-fs must be used as a drop-in - -### v2.1.0 - -* Use eval rather than monkey-patching fs. -* readdir: Always sort the results -* win32: requeue a file if error has an OK status - -### v2.0 - -* A return to monkey patching -* wrap process.cwd - -### v1.1 - -* wrap readFile -* Wrap fs.writeFile. -* readdir protection -* Don't clobber the fs builtin -* Handle fs.read EAGAIN errors by trying again -* Expose the curOpen counter -* No-op lchown/lchmod if not implemented -* fs.rename patch only for win32 -* Patch fs.rename to handle AV software on Windows -* Close #4 Chown should not fail on einval or eperm if non-root -* Fix isaacs/fstream#1 Only wrap fs one time -* Fix #3 Start at 1024 max files, then back off on EMFILE -* lutimes that doens't blow up on Linux -* A full on-rewrite using a queue instead of just swallowing the EMFILE error -* Wrap Read/Write streams as well - -### 1.0 - -* Update engines for node 0.6 -* Be lstat-graceful on Windows -* first diff --git a/Easebuzz_NodeJS_kit/node_modules/graceful-fs/clone.js b/Easebuzz_NodeJS_kit/node_modules/graceful-fs/clone.js deleted file mode 100644 index 028356c..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/graceful-fs/clone.js +++ /dev/null @@ -1,19 +0,0 @@ -'use strict' - -module.exports = clone - -function clone (obj) { - if (obj === null || typeof obj !== 'object') - return obj - - if (obj instanceof Object) - var copy = { __proto__: obj.__proto__ } - else - var copy = Object.create(null) - - Object.getOwnPropertyNames(obj).forEach(function (key) { - Object.defineProperty(copy, key, Object.getOwnPropertyDescriptor(obj, key)) - }) - - return copy -} diff --git a/Easebuzz_NodeJS_kit/node_modules/graceful-fs/graceful-fs.js b/Easebuzz_NodeJS_kit/node_modules/graceful-fs/graceful-fs.js deleted file mode 100644 index de3df47..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/graceful-fs/graceful-fs.js +++ /dev/null @@ -1,354 +0,0 @@ -var fs = require('fs') -var polyfills = require('./polyfills.js') -var legacy = require('./legacy-streams.js') -var clone = require('./clone.js') - -var util = require('util') - -/* istanbul ignore next - node 0.x polyfill */ -var gracefulQueue -var previousSymbol - -/* istanbul ignore else - node 0.x polyfill */ -if (typeof Symbol === 'function' && typeof Symbol.for === 'function') { - gracefulQueue = Symbol.for('graceful-fs.queue') - // This is used in testing by future versions - previousSymbol = Symbol.for('graceful-fs.previous') -} else { - gracefulQueue = '___graceful-fs.queue' - previousSymbol = '___graceful-fs.previous' -} - -function noop () {} - -function publishQueue(context, queue) { - Object.defineProperty(context, gracefulQueue, { - get: function() { - return queue - } - }) -} - -var debug = noop -if (util.debuglog) - debug = util.debuglog('gfs4') -else if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || '')) - debug = function() { - var m = util.format.apply(util, arguments) - m = 'GFS4: ' + m.split(/\n/).join('\nGFS4: ') - console.error(m) - } - -// Once time initialization -if (!fs[gracefulQueue]) { - // This queue can be shared by multiple loaded instances - var queue = global[gracefulQueue] || [] - publishQueue(fs, queue) - - // Patch fs.close/closeSync to shared queue version, because we need - // to retry() whenever a close happens *anywhere* in the program. - // This is essential when multiple graceful-fs instances are - // in play at the same time. - fs.close = (function (fs$close) { - function close (fd, cb) { - return fs$close.call(fs, fd, function (err) { - // This function uses the graceful-fs shared queue - if (!err) { - retry() - } - - if (typeof cb === 'function') - cb.apply(this, arguments) - }) - } - - Object.defineProperty(close, previousSymbol, { - value: fs$close - }) - return close - })(fs.close) - - fs.closeSync = (function (fs$closeSync) { - function closeSync (fd) { - // This function uses the graceful-fs shared queue - fs$closeSync.apply(fs, arguments) - retry() - } - - Object.defineProperty(closeSync, previousSymbol, { - value: fs$closeSync - }) - return closeSync - })(fs.closeSync) - - if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || '')) { - process.on('exit', function() { - debug(fs[gracefulQueue]) - require('assert').equal(fs[gracefulQueue].length, 0) - }) - } -} - -if (!global[gracefulQueue]) { - publishQueue(global, fs[gracefulQueue]); -} - -module.exports = patch(clone(fs)) -if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs.__patched) { - module.exports = patch(fs) - fs.__patched = true; -} - -function patch (fs) { - // Everything that references the open() function needs to be in here - polyfills(fs) - fs.gracefulify = patch - - fs.createReadStream = createReadStream - fs.createWriteStream = createWriteStream - var fs$readFile = fs.readFile - fs.readFile = readFile - function readFile (path, options, cb) { - if (typeof options === 'function') - cb = options, options = null - - return go$readFile(path, options, cb) - - function go$readFile (path, options, cb) { - return fs$readFile(path, options, function (err) { - if (err && (err.code === 'EMFILE' || err.code === 'ENFILE')) - enqueue([go$readFile, [path, options, cb]]) - else { - if (typeof cb === 'function') - cb.apply(this, arguments) - retry() - } - }) - } - } - - var fs$writeFile = fs.writeFile - fs.writeFile = writeFile - function writeFile (path, data, options, cb) { - if (typeof options === 'function') - cb = options, options = null - - return go$writeFile(path, data, options, cb) - - function go$writeFile (path, data, options, cb) { - return fs$writeFile(path, data, options, function (err) { - if (err && (err.code === 'EMFILE' || err.code === 'ENFILE')) - enqueue([go$writeFile, [path, data, options, cb]]) - else { - if (typeof cb === 'function') - cb.apply(this, arguments) - retry() - } - }) - } - } - - var fs$appendFile = fs.appendFile - if (fs$appendFile) - fs.appendFile = appendFile - function appendFile (path, data, options, cb) { - if (typeof options === 'function') - cb = options, options = null - - return go$appendFile(path, data, options, cb) - - function go$appendFile (path, data, options, cb) { - return fs$appendFile(path, data, options, function (err) { - if (err && (err.code === 'EMFILE' || err.code === 'ENFILE')) - enqueue([go$appendFile, [path, data, options, cb]]) - else { - if (typeof cb === 'function') - cb.apply(this, arguments) - retry() - } - }) - } - } - - var fs$readdir = fs.readdir - fs.readdir = readdir - function readdir (path, options, cb) { - var args = [path] - if (typeof options !== 'function') { - args.push(options) - } else { - cb = options - } - args.push(go$readdir$cb) - - return go$readdir(args) - - function go$readdir$cb (err, files) { - if (files && files.sort) - files.sort() - - if (err && (err.code === 'EMFILE' || err.code === 'ENFILE')) - enqueue([go$readdir, [args]]) - - else { - if (typeof cb === 'function') - cb.apply(this, arguments) - retry() - } - } - } - - function go$readdir (args) { - return fs$readdir.apply(fs, args) - } - - if (process.version.substr(0, 4) === 'v0.8') { - var legStreams = legacy(fs) - ReadStream = legStreams.ReadStream - WriteStream = legStreams.WriteStream - } - - var fs$ReadStream = fs.ReadStream - if (fs$ReadStream) { - ReadStream.prototype = Object.create(fs$ReadStream.prototype) - ReadStream.prototype.open = ReadStream$open - } - - var fs$WriteStream = fs.WriteStream - if (fs$WriteStream) { - WriteStream.prototype = Object.create(fs$WriteStream.prototype) - WriteStream.prototype.open = WriteStream$open - } - - Object.defineProperty(fs, 'ReadStream', { - get: function () { - return ReadStream - }, - set: function (val) { - ReadStream = val - }, - enumerable: true, - configurable: true - }) - Object.defineProperty(fs, 'WriteStream', { - get: function () { - return WriteStream - }, - set: function (val) { - WriteStream = val - }, - enumerable: true, - configurable: true - }) - - // legacy names - var FileReadStream = ReadStream - Object.defineProperty(fs, 'FileReadStream', { - get: function () { - return FileReadStream - }, - set: function (val) { - FileReadStream = val - }, - enumerable: true, - configurable: true - }) - var FileWriteStream = WriteStream - Object.defineProperty(fs, 'FileWriteStream', { - get: function () { - return FileWriteStream - }, - set: function (val) { - FileWriteStream = val - }, - enumerable: true, - configurable: true - }) - - function ReadStream (path, options) { - if (this instanceof ReadStream) - return fs$ReadStream.apply(this, arguments), this - else - return ReadStream.apply(Object.create(ReadStream.prototype), arguments) - } - - function ReadStream$open () { - var that = this - open(that.path, that.flags, that.mode, function (err, fd) { - if (err) { - if (that.autoClose) - that.destroy() - - that.emit('error', err) - } else { - that.fd = fd - that.emit('open', fd) - that.read() - } - }) - } - - function WriteStream (path, options) { - if (this instanceof WriteStream) - return fs$WriteStream.apply(this, arguments), this - else - return WriteStream.apply(Object.create(WriteStream.prototype), arguments) - } - - function WriteStream$open () { - var that = this - open(that.path, that.flags, that.mode, function (err, fd) { - if (err) { - that.destroy() - that.emit('error', err) - } else { - that.fd = fd - that.emit('open', fd) - } - }) - } - - function createReadStream (path, options) { - return new fs.ReadStream(path, options) - } - - function createWriteStream (path, options) { - return new fs.WriteStream(path, options) - } - - var fs$open = fs.open - fs.open = open - function open (path, flags, mode, cb) { - if (typeof mode === 'function') - cb = mode, mode = null - - return go$open(path, flags, mode, cb) - - function go$open (path, flags, mode, cb) { - return fs$open(path, flags, mode, function (err, fd) { - if (err && (err.code === 'EMFILE' || err.code === 'ENFILE')) - enqueue([go$open, [path, flags, mode, cb]]) - else { - if (typeof cb === 'function') - cb.apply(this, arguments) - retry() - } - }) - } - } - - return fs -} - -function enqueue (elem) { - debug('ENQUEUE', elem[0].name, elem[1]) - fs[gracefulQueue].push(elem) -} - -function retry () { - var elem = fs[gracefulQueue].shift() - if (elem) { - debug('RETRY', elem[0].name, elem[1]) - elem[0].apply(null, elem[1]) - } -} diff --git a/Easebuzz_NodeJS_kit/node_modules/graceful-fs/legacy-streams.js b/Easebuzz_NodeJS_kit/node_modules/graceful-fs/legacy-streams.js deleted file mode 100644 index d617b50..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/graceful-fs/legacy-streams.js +++ /dev/null @@ -1,118 +0,0 @@ -var Stream = require('stream').Stream - -module.exports = legacy - -function legacy (fs) { - return { - ReadStream: ReadStream, - WriteStream: WriteStream - } - - function ReadStream (path, options) { - if (!(this instanceof ReadStream)) return new ReadStream(path, options); - - Stream.call(this); - - var self = this; - - this.path = path; - this.fd = null; - this.readable = true; - this.paused = false; - - this.flags = 'r'; - this.mode = 438; /*=0666*/ - this.bufferSize = 64 * 1024; - - options = options || {}; - - // Mixin options into this - var keys = Object.keys(options); - for (var index = 0, length = keys.length; index < length; index++) { - var key = keys[index]; - this[key] = options[key]; - } - - if (this.encoding) this.setEncoding(this.encoding); - - if (this.start !== undefined) { - if ('number' !== typeof this.start) { - throw TypeError('start must be a Number'); - } - if (this.end === undefined) { - this.end = Infinity; - } else if ('number' !== typeof this.end) { - throw TypeError('end must be a Number'); - } - - if (this.start > this.end) { - throw new Error('start must be <= end'); - } - - this.pos = this.start; - } - - if (this.fd !== null) { - process.nextTick(function() { - self._read(); - }); - return; - } - - fs.open(this.path, this.flags, this.mode, function (err, fd) { - if (err) { - self.emit('error', err); - self.readable = false; - return; - } - - self.fd = fd; - self.emit('open', fd); - self._read(); - }) - } - - function WriteStream (path, options) { - if (!(this instanceof WriteStream)) return new WriteStream(path, options); - - Stream.call(this); - - this.path = path; - this.fd = null; - this.writable = true; - - this.flags = 'w'; - this.encoding = 'binary'; - this.mode = 438; /*=0666*/ - this.bytesWritten = 0; - - options = options || {}; - - // Mixin options into this - var keys = Object.keys(options); - for (var index = 0, length = keys.length; index < length; index++) { - var key = keys[index]; - this[key] = options[key]; - } - - if (this.start !== undefined) { - if ('number' !== typeof this.start) { - throw TypeError('start must be a Number'); - } - if (this.start < 0) { - throw new Error('start must be >= zero'); - } - - this.pos = this.start; - } - - this.busy = false; - this._queue = []; - - if (this.fd === null) { - this._open = fs.open; - this._queue.push([this._open, this.path, this.flags, this.mode, undefined]); - this.flush(); - } - } -} diff --git a/Easebuzz_NodeJS_kit/node_modules/graceful-fs/package.json b/Easebuzz_NodeJS_kit/node_modules/graceful-fs/package.json deleted file mode 100644 index 8ee4d9b..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/graceful-fs/package.json +++ /dev/null @@ -1,79 +0,0 @@ -{ - "_from": "graceful-fs@^4.1.2", - "_id": "graceful-fs@4.2.4", - "_inBundle": false, - "_integrity": "sha512-WjKPNJF79dtJAVniUlGGWHYGz2jWxT6VhN/4m1NdkbZ2nOsEF+cI1Edgql5zCRhs/VsQYRvrXctxktVXZUkixw==", - "_location": "/graceful-fs", - "_phantomChildren": {}, - "_requested": { - "type": "range", - "registry": true, - "raw": "graceful-fs@^4.1.2", - "name": "graceful-fs", - "escapedName": "graceful-fs", - "rawSpec": "^4.1.2", - "saveSpec": null, - "fetchSpec": "^4.1.2" - }, - "_requiredBy": [ - "/configstore" - ], - "_resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.4.tgz", - "_shasum": "2256bde14d3632958c465ebc96dc467ca07a29fb", - "_spec": "graceful-fs@^4.1.2", - "_where": "/home/ankit/Downloads/NodeJS/node_modules/configstore", - "bugs": { - "url": "https://github.com/isaacs/node-graceful-fs/issues" - }, - "bundleDependencies": false, - "dependencies": {}, - "deprecated": false, - "description": "A drop-in replacement for fs, making various improvements.", - "devDependencies": { - "import-fresh": "^2.0.0", - "mkdirp": "^0.5.0", - "rimraf": "^2.2.8", - "tap": "^12.7.0" - }, - "directories": { - "test": "test" - }, - "files": [ - "fs.js", - "graceful-fs.js", - "legacy-streams.js", - "polyfills.js", - "clone.js" - ], - "homepage": "https://github.com/isaacs/node-graceful-fs#readme", - "keywords": [ - "fs", - "module", - "reading", - "retry", - "retries", - "queue", - "error", - "errors", - "handling", - "EMFILE", - "EAGAIN", - "EINVAL", - "EPERM", - "EACCESS" - ], - "license": "ISC", - "main": "graceful-fs.js", - "name": "graceful-fs", - "repository": { - "type": "git", - "url": "git+https://github.com/isaacs/node-graceful-fs.git" - }, - "scripts": { - "postpublish": "git push origin --follow-tags", - "postversion": "npm publish", - "preversion": "npm test", - "test": "node test.js | tap -" - }, - "version": "4.2.4" -} diff --git a/Easebuzz_NodeJS_kit/node_modules/graceful-fs/polyfills.js b/Easebuzz_NodeJS_kit/node_modules/graceful-fs/polyfills.js deleted file mode 100644 index a5808d2..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/graceful-fs/polyfills.js +++ /dev/null @@ -1,342 +0,0 @@ -var constants = require('constants') - -var origCwd = process.cwd -var cwd = null - -var platform = process.env.GRACEFUL_FS_PLATFORM || process.platform - -process.cwd = function() { - if (!cwd) - cwd = origCwd.call(process) - return cwd -} -try { - process.cwd() -} catch (er) {} - -var chdir = process.chdir -process.chdir = function(d) { - cwd = null - chdir.call(process, d) -} - -module.exports = patch - -function patch (fs) { - // (re-)implement some things that are known busted or missing. - - // lchmod, broken prior to 0.6.2 - // back-port the fix here. - if (constants.hasOwnProperty('O_SYMLINK') && - process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)) { - patchLchmod(fs) - } - - // lutimes implementation, or no-op - if (!fs.lutimes) { - patchLutimes(fs) - } - - // https://github.com/isaacs/node-graceful-fs/issues/4 - // Chown should not fail on einval or eperm if non-root. - // It should not fail on enosys ever, as this just indicates - // that a fs doesn't support the intended operation. - - fs.chown = chownFix(fs.chown) - fs.fchown = chownFix(fs.fchown) - fs.lchown = chownFix(fs.lchown) - - fs.chmod = chmodFix(fs.chmod) - fs.fchmod = chmodFix(fs.fchmod) - fs.lchmod = chmodFix(fs.lchmod) - - fs.chownSync = chownFixSync(fs.chownSync) - fs.fchownSync = chownFixSync(fs.fchownSync) - fs.lchownSync = chownFixSync(fs.lchownSync) - - fs.chmodSync = chmodFixSync(fs.chmodSync) - fs.fchmodSync = chmodFixSync(fs.fchmodSync) - fs.lchmodSync = chmodFixSync(fs.lchmodSync) - - fs.stat = statFix(fs.stat) - fs.fstat = statFix(fs.fstat) - fs.lstat = statFix(fs.lstat) - - fs.statSync = statFixSync(fs.statSync) - fs.fstatSync = statFixSync(fs.fstatSync) - fs.lstatSync = statFixSync(fs.lstatSync) - - // if lchmod/lchown do not exist, then make them no-ops - if (!fs.lchmod) { - fs.lchmod = function (path, mode, cb) { - if (cb) process.nextTick(cb) - } - fs.lchmodSync = function () {} - } - if (!fs.lchown) { - fs.lchown = function (path, uid, gid, cb) { - if (cb) process.nextTick(cb) - } - fs.lchownSync = function () {} - } - - // on Windows, A/V software can lock the directory, causing this - // to fail with an EACCES or EPERM if the directory contains newly - // created files. Try again on failure, for up to 60 seconds. - - // Set the timeout this long because some Windows Anti-Virus, such as Parity - // bit9, may lock files for up to a minute, causing npm package install - // failures. Also, take care to yield the scheduler. Windows scheduling gives - // CPU to a busy looping process, which can cause the program causing the lock - // contention to be starved of CPU by node, so the contention doesn't resolve. - if (platform === "win32") { - fs.rename = (function (fs$rename) { return function (from, to, cb) { - var start = Date.now() - var backoff = 0; - fs$rename(from, to, function CB (er) { - if (er - && (er.code === "EACCES" || er.code === "EPERM") - && Date.now() - start < 60000) { - setTimeout(function() { - fs.stat(to, function (stater, st) { - if (stater && stater.code === "ENOENT") - fs$rename(from, to, CB); - else - cb(er) - }) - }, backoff) - if (backoff < 100) - backoff += 10; - return; - } - if (cb) cb(er) - }) - }})(fs.rename) - } - - // if read() returns EAGAIN, then just try it again. - fs.read = (function (fs$read) { - function read (fd, buffer, offset, length, position, callback_) { - var callback - if (callback_ && typeof callback_ === 'function') { - var eagCounter = 0 - callback = function (er, _, __) { - if (er && er.code === 'EAGAIN' && eagCounter < 10) { - eagCounter ++ - return fs$read.call(fs, fd, buffer, offset, length, position, callback) - } - callback_.apply(this, arguments) - } - } - return fs$read.call(fs, fd, buffer, offset, length, position, callback) - } - - // This ensures `util.promisify` works as it does for native `fs.read`. - read.__proto__ = fs$read - return read - })(fs.read) - - fs.readSync = (function (fs$readSync) { return function (fd, buffer, offset, length, position) { - var eagCounter = 0 - while (true) { - try { - return fs$readSync.call(fs, fd, buffer, offset, length, position) - } catch (er) { - if (er.code === 'EAGAIN' && eagCounter < 10) { - eagCounter ++ - continue - } - throw er - } - } - }})(fs.readSync) - - function patchLchmod (fs) { - fs.lchmod = function (path, mode, callback) { - fs.open( path - , constants.O_WRONLY | constants.O_SYMLINK - , mode - , function (err, fd) { - if (err) { - if (callback) callback(err) - return - } - // prefer to return the chmod error, if one occurs, - // but still try to close, and report closing errors if they occur. - fs.fchmod(fd, mode, function (err) { - fs.close(fd, function(err2) { - if (callback) callback(err || err2) - }) - }) - }) - } - - fs.lchmodSync = function (path, mode) { - var fd = fs.openSync(path, constants.O_WRONLY | constants.O_SYMLINK, mode) - - // prefer to return the chmod error, if one occurs, - // but still try to close, and report closing errors if they occur. - var threw = true - var ret - try { - ret = fs.fchmodSync(fd, mode) - threw = false - } finally { - if (threw) { - try { - fs.closeSync(fd) - } catch (er) {} - } else { - fs.closeSync(fd) - } - } - return ret - } - } - - function patchLutimes (fs) { - if (constants.hasOwnProperty("O_SYMLINK")) { - fs.lutimes = function (path, at, mt, cb) { - fs.open(path, constants.O_SYMLINK, function (er, fd) { - if (er) { - if (cb) cb(er) - return - } - fs.futimes(fd, at, mt, function (er) { - fs.close(fd, function (er2) { - if (cb) cb(er || er2) - }) - }) - }) - } - - fs.lutimesSync = function (path, at, mt) { - var fd = fs.openSync(path, constants.O_SYMLINK) - var ret - var threw = true - try { - ret = fs.futimesSync(fd, at, mt) - threw = false - } finally { - if (threw) { - try { - fs.closeSync(fd) - } catch (er) {} - } else { - fs.closeSync(fd) - } - } - return ret - } - - } else { - fs.lutimes = function (_a, _b, _c, cb) { if (cb) process.nextTick(cb) } - fs.lutimesSync = function () {} - } - } - - function chmodFix (orig) { - if (!orig) return orig - return function (target, mode, cb) { - return orig.call(fs, target, mode, function (er) { - if (chownErOk(er)) er = null - if (cb) cb.apply(this, arguments) - }) - } - } - - function chmodFixSync (orig) { - if (!orig) return orig - return function (target, mode) { - try { - return orig.call(fs, target, mode) - } catch (er) { - if (!chownErOk(er)) throw er - } - } - } - - - function chownFix (orig) { - if (!orig) return orig - return function (target, uid, gid, cb) { - return orig.call(fs, target, uid, gid, function (er) { - if (chownErOk(er)) er = null - if (cb) cb.apply(this, arguments) - }) - } - } - - function chownFixSync (orig) { - if (!orig) return orig - return function (target, uid, gid) { - try { - return orig.call(fs, target, uid, gid) - } catch (er) { - if (!chownErOk(er)) throw er - } - } - } - - function statFix (orig) { - if (!orig) return orig - // Older versions of Node erroneously returned signed integers for - // uid + gid. - return function (target, options, cb) { - if (typeof options === 'function') { - cb = options - options = null - } - function callback (er, stats) { - if (stats) { - if (stats.uid < 0) stats.uid += 0x100000000 - if (stats.gid < 0) stats.gid += 0x100000000 - } - if (cb) cb.apply(this, arguments) - } - return options ? orig.call(fs, target, options, callback) - : orig.call(fs, target, callback) - } - } - - function statFixSync (orig) { - if (!orig) return orig - // Older versions of Node erroneously returned signed integers for - // uid + gid. - return function (target, options) { - var stats = options ? orig.call(fs, target, options) - : orig.call(fs, target) - if (stats.uid < 0) stats.uid += 0x100000000 - if (stats.gid < 0) stats.gid += 0x100000000 - return stats; - } - } - - // ENOSYS means that the fs doesn't support the op. Just ignore - // that, because it doesn't matter. - // - // if there's no getuid, or if getuid() is something other - // than 0, and the error is EINVAL or EPERM, then just ignore - // it. - // - // This specific case is a silent failure in cp, install, tar, - // and most other unix tools that manage permissions. - // - // When running as root, or if other types of errors are - // encountered, then it's strict. - function chownErOk (er) { - if (!er) - return true - - if (er.code === "ENOSYS") - return true - - var nonroot = !process.getuid || process.getuid() !== 0 - if (nonroot) { - if (er.code === "EINVAL" || er.code === "EPERM") - return true - } - - return false - } -} diff --git a/Easebuzz_NodeJS_kit/node_modules/has-flag/index.js b/Easebuzz_NodeJS_kit/node_modules/has-flag/index.js deleted file mode 100644 index 5139728..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/has-flag/index.js +++ /dev/null @@ -1,8 +0,0 @@ -'use strict'; -module.exports = (flag, argv) => { - argv = argv || process.argv; - const prefix = flag.startsWith('-') ? '' : (flag.length === 1 ? '-' : '--'); - const pos = argv.indexOf(prefix + flag); - const terminatorPos = argv.indexOf('--'); - return pos !== -1 && (terminatorPos === -1 ? true : pos < terminatorPos); -}; diff --git a/Easebuzz_NodeJS_kit/node_modules/has-flag/license b/Easebuzz_NodeJS_kit/node_modules/has-flag/license deleted file mode 100644 index e7af2f7..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/has-flag/license +++ /dev/null @@ -1,9 +0,0 @@ -MIT License - -Copyright (c) Sindre Sorhus (sindresorhus.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/Easebuzz_NodeJS_kit/node_modules/has-flag/package.json b/Easebuzz_NodeJS_kit/node_modules/has-flag/package.json deleted file mode 100644 index 1e091d8..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/has-flag/package.json +++ /dev/null @@ -1,108 +0,0 @@ -{ - "_args": [ - [ - "has-flag@^3.0.0", - "/home/support/NodeJS/node_modules/supports-color" - ] - ], - "_from": "has-flag@>=3.0.0 <4.0.0", - "_id": "has-flag@3.0.0", - "_inCache": true, - "_installable": true, - "_location": "/has-flag", - "_nodeVersion": "4.8.4", - "_npmOperationalInternal": { - "host": "s3://npm-registry-packages", - "tmp": "tmp/has-flag-3.0.0.tgz_1514920915118_0.33958922349847853" - }, - "_npmUser": { - "email": "sindresorhus@gmail.com", - "name": "sindresorhus" - }, - "_npmVersion": "2.15.11", - "_phantomChildren": {}, - "_requested": { - "name": "has-flag", - "raw": "has-flag@^3.0.0", - "rawSpec": "^3.0.0", - "scope": null, - "spec": ">=3.0.0 <4.0.0", - "type": "range" - }, - "_requiredBy": [ - "/supports-color" - ], - "_resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "_shasum": "b5d454dc2199ae225699f3467e5a07f3b955bafd", - "_shrinkwrap": null, - "_spec": "has-flag@^3.0.0", - "_where": "/home/support/NodeJS/node_modules/supports-color", - "author": { - "email": "sindresorhus@gmail.com", - "name": "Sindre Sorhus", - "url": "sindresorhus.com" - }, - "bugs": { - "url": "https://github.com/sindresorhus/has-flag/issues" - }, - "dependencies": {}, - "description": "Check if argv has a specific flag", - "devDependencies": { - "ava": "*", - "xo": "*" - }, - "directories": {}, - "dist": { - "shasum": "b5d454dc2199ae225699f3467e5a07f3b955bafd", - "tarball": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz" - }, - "engines": { - "node": ">=4" - }, - "files": [ - "index.js" - ], - "gitHead": "8b2ca7e693b2c742b29f2399194077b64b9ff781", - "homepage": "https://github.com/sindresorhus/has-flag#readme", - "keywords": [ - "arg", - "args", - "argument", - "arguments", - "argv", - "check", - "cli", - "command-line", - "contains", - "detect", - "find", - "flag", - "getopt", - "has", - "minimist", - "optimist", - "process" - ], - "license": "MIT", - "maintainers": [ - { - "name": "sindresorhus", - "email": "sindresorhus@gmail.com" - }, - { - "name": "jbnicolai", - "email": "jappelman@xebia.com" - } - ], - "name": "has-flag", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git+https://github.com/sindresorhus/has-flag.git" - }, - "scripts": { - "test": "xo && ava" - }, - "version": "3.0.0" -} diff --git a/Easebuzz_NodeJS_kit/node_modules/has-flag/readme.md b/Easebuzz_NodeJS_kit/node_modules/has-flag/readme.md deleted file mode 100644 index 677893c..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/has-flag/readme.md +++ /dev/null @@ -1,70 +0,0 @@ -# has-flag [![Build Status](https://travis-ci.org/sindresorhus/has-flag.svg?branch=master)](https://travis-ci.org/sindresorhus/has-flag) - -> Check if [`argv`](https://nodejs.org/docs/latest/api/process.html#process_process_argv) has a specific flag - -Correctly stops looking after an `--` argument terminator. - - -## Install - -``` -$ npm install has-flag -``` - - -## Usage - -```js -// foo.js -const hasFlag = require('has-flag'); - -hasFlag('unicorn'); -//=> true - -hasFlag('--unicorn'); -//=> true - -hasFlag('f'); -//=> true - -hasFlag('-f'); -//=> true - -hasFlag('foo=bar'); -//=> true - -hasFlag('foo'); -//=> false - -hasFlag('rainbow'); -//=> false -``` - -``` -$ node foo.js -f --unicorn --foo=bar -- --rainbow -``` - - -## API - -### hasFlag(flag, [argv]) - -Returns a boolean for whether the flag exists. - -#### flag - -Type: `string` - -CLI flag to look for. The `--` prefix is optional. - -#### argv - -Type: `string[]`
-Default: `process.argv` - -CLI arguments. - - -## License - -MIT © [Sindre Sorhus](https://sindresorhus.com) diff --git a/Easebuzz_NodeJS_kit/node_modules/has-yarn/index.d.ts b/Easebuzz_NodeJS_kit/node_modules/has-yarn/index.d.ts deleted file mode 100644 index 5e2af4c..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/has-yarn/index.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -declare const hasYarn: { - /** - * Check if a project is using [Yarn](https://yarnpkg.com). - * - * @param cwd - Current working directory. Default: `process.cwd()`. - * @returns Whether the project uses Yarn. - */ - (cwd?: string): boolean; - - // TODO: Remove this for the next major release, refactor the whole definition to: - // declare function hasYarn(cwd?: string): boolean; - // export = hasYarn; - default: typeof hasYarn; -}; - -export = hasYarn; diff --git a/Easebuzz_NodeJS_kit/node_modules/has-yarn/index.js b/Easebuzz_NodeJS_kit/node_modules/has-yarn/index.js deleted file mode 100644 index a1f4eed..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/has-yarn/index.js +++ /dev/null @@ -1,9 +0,0 @@ -'use strict'; -const path = require('path'); -const fs = require('fs'); - -const hasYarn = (cwd = process.cwd()) => fs.existsSync(path.resolve(cwd, 'yarn.lock')); - -module.exports = hasYarn; -// TODO: Remove this for the next major release -module.exports.default = hasYarn; diff --git a/Easebuzz_NodeJS_kit/node_modules/has-yarn/license b/Easebuzz_NodeJS_kit/node_modules/has-yarn/license deleted file mode 100644 index e7af2f7..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/has-yarn/license +++ /dev/null @@ -1,9 +0,0 @@ -MIT License - -Copyright (c) Sindre Sorhus (sindresorhus.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/Easebuzz_NodeJS_kit/node_modules/has-yarn/package.json b/Easebuzz_NodeJS_kit/node_modules/has-yarn/package.json deleted file mode 100644 index 2a4278a..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/has-yarn/package.json +++ /dev/null @@ -1,71 +0,0 @@ -{ - "_from": "has-yarn@^2.1.0", - "_id": "has-yarn@2.1.0", - "_inBundle": false, - "_integrity": "sha512-UqBRqi4ju7T+TqGNdqAO0PaSVGsDGJUBQvk9eUWNGRY1CFGDzYhLWoM7JQEemnlvVcv/YEmc2wNW8BC24EnUsw==", - "_location": "/has-yarn", - "_phantomChildren": {}, - "_requested": { - "type": "range", - "registry": true, - "raw": "has-yarn@^2.1.0", - "name": "has-yarn", - "escapedName": "has-yarn", - "rawSpec": "^2.1.0", - "saveSpec": null, - "fetchSpec": "^2.1.0" - }, - "_requiredBy": [ - "/update-notifier" - ], - "_resolved": "https://registry.npmjs.org/has-yarn/-/has-yarn-2.1.0.tgz", - "_shasum": "137e11354a7b5bf11aa5cb649cf0c6f3ff2b2e77", - "_spec": "has-yarn@^2.1.0", - "_where": "/home/ankit/Downloads/NodeJS/node_modules/update-notifier", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "bugs": { - "url": "https://github.com/sindresorhus/has-yarn/issues" - }, - "bundleDependencies": false, - "deprecated": false, - "description": "Check if a project is using Yarn", - "devDependencies": { - "ava": "^1.4.1", - "tsd": "^0.7.1", - "xo": "^0.24.0" - }, - "engines": { - "node": ">=8" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "homepage": "https://github.com/sindresorhus/has-yarn#readme", - "keywords": [ - "yarn", - "has", - "detect", - "is", - "project", - "app", - "module", - "package", - "manager", - "npm" - ], - "license": "MIT", - "name": "has-yarn", - "repository": { - "type": "git", - "url": "git+https://github.com/sindresorhus/has-yarn.git" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "version": "2.1.0" -} diff --git a/Easebuzz_NodeJS_kit/node_modules/has-yarn/readme.md b/Easebuzz_NodeJS_kit/node_modules/has-yarn/readme.md deleted file mode 100644 index 0315c20..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/has-yarn/readme.md +++ /dev/null @@ -1,60 +0,0 @@ -# has-yarn [![Build Status](https://travis-ci.org/sindresorhus/has-yarn.svg?branch=master)](https://travis-ci.org/sindresorhus/has-yarn) - -> Check if a project is using [Yarn](https://yarnpkg.com) - -Useful for tools that needs to know whether to use `yarn` or `npm` to install dependencies. - -It checks if a `yarn.lock` file is present in the working directory. - - -## Install - -``` -$ npm install has-yarn -``` - - -## Usage - -``` -. -├── foo -│   └── package.json -└── bar - ├── package.json - └── yarn.lock -``` - -```js -const hasYarn = require('has-yarn'); - -hasYarn('foo'); -//=> false - -hasYarn('bar'); -//=> true -``` - - -## API - -### hasYarn([cwd]) - -Returns a `boolean` of whether the project uses Yarn. - -#### cwd - -Type: `string`
-Default: `process.cwd()` - -Current working directory. - - -## Related - -- [has-yarn-cli](https://github.com/sindresorhus/has-yarn-cli) - CLI for this module - - -## License - -MIT © [Sindre Sorhus](https://sindresorhus.com) diff --git a/Easebuzz_NodeJS_kit/node_modules/http-cache-semantics/LICENSE b/Easebuzz_NodeJS_kit/node_modules/http-cache-semantics/LICENSE deleted file mode 100644 index 493d2ea..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/http-cache-semantics/LICENSE +++ /dev/null @@ -1,9 +0,0 @@ -Copyright 2016-2018 Kornel Lesiński - -Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - -1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. - -2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/Easebuzz_NodeJS_kit/node_modules/http-cache-semantics/README.md b/Easebuzz_NodeJS_kit/node_modules/http-cache-semantics/README.md deleted file mode 100644 index 685aa55..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/http-cache-semantics/README.md +++ /dev/null @@ -1,203 +0,0 @@ -# Can I cache this? [![Build Status](https://travis-ci.org/kornelski/http-cache-semantics.svg?branch=master)](https://travis-ci.org/kornelski/http-cache-semantics) - -`CachePolicy` tells when responses can be reused from a cache, taking into account [HTTP RFC 7234](http://httpwg.org/specs/rfc7234.html) rules for user agents and shared caches. -It also implements [RFC 5861](https://tools.ietf.org/html/rfc5861), implementing `stale-if-error` and `stale-while-revalidate`. -It's aware of many tricky details such as the `Vary` header, proxy revalidation, and authenticated responses. - -## Usage - -Cacheability of an HTTP response depends on how it was requested, so both `request` and `response` are required to create the policy. - -```js -const policy = new CachePolicy(request, response, options); - -if (!policy.storable()) { - // throw the response away, it's not usable at all - return; -} - -// Cache the data AND the policy object in your cache -// (this is pseudocode, roll your own cache (lru-cache package works)) -letsPretendThisIsSomeCache.set( - request.url, - { policy, response }, - policy.timeToLive() -); -``` - -```js -// And later, when you receive a new request: -const { policy, response } = letsPretendThisIsSomeCache.get(newRequest.url); - -// It's not enough that it exists in the cache, it has to match the new request, too: -if (policy && policy.satisfiesWithoutRevalidation(newRequest)) { - // OK, the previous response can be used to respond to the `newRequest`. - // Response headers have to be updated, e.g. to add Age and remove uncacheable headers. - response.headers = policy.responseHeaders(); - return response; -} -``` - -It may be surprising, but it's not enough for an HTTP response to be [fresh](#yo-fresh) to satisfy a request. It may need to match request headers specified in `Vary`. Even a matching fresh response may still not be usable if the new request restricted cacheability, etc. - -The key method is `satisfiesWithoutRevalidation(newRequest)`, which checks whether the `newRequest` is compatible with the original request and whether all caching conditions are met. - -### Constructor options - -Request and response must have a `headers` property with all header names in lower case. `url`, `status` and `method` are optional (defaults are any URL, status `200`, and `GET` method). - -```js -const request = { - url: '/', - method: 'GET', - headers: { - accept: '*/*', - }, -}; - -const response = { - status: 200, - headers: { - 'cache-control': 'public, max-age=7234', - }, -}; - -const options = { - shared: true, - cacheHeuristic: 0.1, - immutableMinTimeToLive: 24 * 3600 * 1000, // 24h - ignoreCargoCult: false, -}; -``` - -If `options.shared` is `true` (default), then the response is evaluated from a perspective of a shared cache (i.e. `private` is not cacheable and `s-maxage` is respected). If `options.shared` is `false`, then the response is evaluated from a perspective of a single-user cache (i.e. `private` is cacheable and `s-maxage` is ignored). `shared: true` is recommended for HTTP clients. - -`options.cacheHeuristic` is a fraction of response's age that is used as a fallback cache duration. The default is 0.1 (10%), e.g. if a file hasn't been modified for 100 days, it'll be cached for 100\*0.1 = 10 days. - -`options.immutableMinTimeToLive` is a number of milliseconds to assume as the default time to cache responses with `Cache-Control: immutable`. Note that [per RFC](http://httpwg.org/http-extensions/immutable.html) these can become stale, so `max-age` still overrides the default. - -If `options.ignoreCargoCult` is true, common anti-cache directives will be completely ignored if the non-standard `pre-check` and `post-check` directives are present. These two useless directives are most commonly found in bad StackOverflow answers and PHP's "session limiter" defaults. - -### `storable()` - -Returns `true` if the response can be stored in a cache. If it's `false` then you MUST NOT store either the request or the response. - -### `satisfiesWithoutRevalidation(newRequest)` - -This is the most important method. Use this method to check whether the cached response is still fresh in the context of the new request. - -If it returns `true`, then the given `request` matches the original response this cache policy has been created with, and the response can be reused without contacting the server. Note that the old response can't be returned without being updated, see `responseHeaders()`. - -If it returns `false`, then the response may not be matching at all (e.g. it's for a different URL or method), or may require to be refreshed first (see `revalidationHeaders()`). - -### `responseHeaders()` - -Returns updated, filtered set of response headers to return to clients receiving the cached response. This function is necessary, because proxies MUST always remove hop-by-hop headers (such as `TE` and `Connection`) and update response's `Age` to avoid doubling cache time. - -```js -cachedResponse.headers = cachePolicy.responseHeaders(cachedResponse); -``` - -### `timeToLive()` - -Returns approximate time in _milliseconds_ until the response becomes stale (i.e. not fresh). - -After that time (when `timeToLive() <= 0`) the response might not be usable without revalidation. However, there are exceptions, e.g. a client can explicitly allow stale responses, so always check with `satisfiesWithoutRevalidation()`. -`stale-if-error` and `stale-while-revalidate` extend the time to live of the cache, that can still be used if stale. - -### `toObject()`/`fromObject(json)` - -Chances are you'll want to store the `CachePolicy` object along with the cached response. `obj = policy.toObject()` gives a plain JSON-serializable object. `policy = CachePolicy.fromObject(obj)` creates an instance from it. - -### Refreshing stale cache (revalidation) - -When a cached response has expired, it can be made fresh again by making a request to the origin server. The server may respond with status 304 (Not Modified) without sending the response body again, saving bandwidth. - -The following methods help perform the update efficiently and correctly. - -#### `revalidationHeaders(newRequest)` - -Returns updated, filtered set of request headers to send to the origin server to check if the cached response can be reused. These headers allow the origin server to return status 304 indicating the response is still fresh. All headers unrelated to caching are passed through as-is. - -Use this method when updating cache from the origin server. - -```js -updateRequest.headers = cachePolicy.revalidationHeaders(updateRequest); -``` - -#### `revalidatedPolicy(revalidationRequest, revalidationResponse)` - -Use this method to update the cache after receiving a new response from the origin server. It returns an object with two keys: - -- `policy` — A new `CachePolicy` with HTTP headers updated from `revalidationResponse`. You can always replace the old cached `CachePolicy` with the new one. -- `modified` — Boolean indicating whether the response body has changed. - - If `false`, then a valid 304 Not Modified response has been received, and you can reuse the old cached response body. This is also affected by `stale-if-error`. - - If `true`, you should use new response's body (if present), or make another request to the origin server without any conditional headers (i.e. don't use `revalidationHeaders()` this time) to get the new resource. - -```js -// When serving requests from cache: -const { oldPolicy, oldResponse } = letsPretendThisIsSomeCache.get( - newRequest.url -); - -if (!oldPolicy.satisfiesWithoutRevalidation(newRequest)) { - // Change the request to ask the origin server if the cached response can be used - newRequest.headers = oldPolicy.revalidationHeaders(newRequest); - - // Send request to the origin server. The server may respond with status 304 - const newResponse = await makeRequest(newRequest); - - // Create updated policy and combined response from the old and new data - const { policy, modified } = oldPolicy.revalidatedPolicy( - newRequest, - newResponse - ); - const response = modified ? newResponse : oldResponse; - - // Update the cache with the newer/fresher response - letsPretendThisIsSomeCache.set( - newRequest.url, - { policy, response }, - policy.timeToLive() - ); - - // And proceed returning cached response as usual - response.headers = policy.responseHeaders(); - return response; -} -``` - -# Yo, FRESH - -![satisfiesWithoutRevalidation](fresh.jpg) - -## Used by - -- [ImageOptim API](https://imageoptim.com/api), [make-fetch-happen](https://github.com/zkat/make-fetch-happen), [cacheable-request](https://www.npmjs.com/package/cacheable-request) ([got](https://www.npmjs.com/package/got)), [npm/registry-fetch](https://github.com/npm/registry-fetch), [etc.](https://github.com/kornelski/http-cache-semantics/network/dependents) - -## Implemented - -- `Cache-Control` response header with all the quirks. -- `Expires` with check for bad clocks. -- `Pragma` response header. -- `Age` response header. -- `Vary` response header. -- Default cacheability of statuses and methods. -- Requests for stale data. -- Filtering of hop-by-hop headers. -- Basic revalidation request -- `stale-if-error` - -## Unimplemented - -- Merging of range requests, `If-Range` (but correctly supports them as non-cacheable) -- Revalidation of multiple representations - -### Trusting server `Date` - -Per the RFC, the cache should take into account the time between server-supplied `Date` and the time it received the response. The RFC-mandated behavior creates two problems: - - * Servers with incorrectly set timezone may add several hours to cache age (or more, if the clock is completely wrong). - * Even reasonably correct clocks may be off by a couple of seconds, breaking `max-age=1` trick (which is useful for reverse proxies on high-traffic servers). - -Previous versions of this library had an option to ignore the server date if it was "too inaccurate". To support the `max-age=1` trick the library also has to ignore dates that pretty accurate. There's no point of having an option to trust dates that are only a bit inaccurate, so this library won't trust any server dates. `max-age` will be interpreted from the time the response has been received, not from when it has been sent. This will affect only [RFC 1149 networks](https://tools.ietf.org/html/rfc1149). diff --git a/Easebuzz_NodeJS_kit/node_modules/http-cache-semantics/index.js b/Easebuzz_NodeJS_kit/node_modules/http-cache-semantics/index.js deleted file mode 100644 index 4f6c2f3..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/http-cache-semantics/index.js +++ /dev/null @@ -1,673 +0,0 @@ -'use strict'; -// rfc7231 6.1 -const statusCodeCacheableByDefault = new Set([ - 200, - 203, - 204, - 206, - 300, - 301, - 404, - 405, - 410, - 414, - 501, -]); - -// This implementation does not understand partial responses (206) -const understoodStatuses = new Set([ - 200, - 203, - 204, - 300, - 301, - 302, - 303, - 307, - 308, - 404, - 405, - 410, - 414, - 501, -]); - -const errorStatusCodes = new Set([ - 500, - 502, - 503, - 504, -]); - -const hopByHopHeaders = { - date: true, // included, because we add Age update Date - connection: true, - 'keep-alive': true, - 'proxy-authenticate': true, - 'proxy-authorization': true, - te: true, - trailer: true, - 'transfer-encoding': true, - upgrade: true, -}; - -const excludedFromRevalidationUpdate = { - // Since the old body is reused, it doesn't make sense to change properties of the body - 'content-length': true, - 'content-encoding': true, - 'transfer-encoding': true, - 'content-range': true, -}; - -function toNumberOrZero(s) { - const n = parseInt(s, 10); - return isFinite(n) ? n : 0; -} - -// RFC 5861 -function isErrorResponse(response) { - // consider undefined response as faulty - if(!response) { - return true - } - return errorStatusCodes.has(response.status); -} - -function parseCacheControl(header) { - const cc = {}; - if (!header) return cc; - - // TODO: When there is more than one value present for a given directive (e.g., two Expires header fields, multiple Cache-Control: max-age directives), - // the directive's value is considered invalid. Caches are encouraged to consider responses that have invalid freshness information to be stale - const parts = header.trim().split(/\s*,\s*/); // TODO: lame parsing - for (const part of parts) { - const [k, v] = part.split(/\s*=\s*/, 2); - cc[k] = v === undefined ? true : v.replace(/^"|"$/g, ''); // TODO: lame unquoting - } - - return cc; -} - -function formatCacheControl(cc) { - let parts = []; - for (const k in cc) { - const v = cc[k]; - parts.push(v === true ? k : k + '=' + v); - } - if (!parts.length) { - return undefined; - } - return parts.join(', '); -} - -module.exports = class CachePolicy { - constructor( - req, - res, - { - shared, - cacheHeuristic, - immutableMinTimeToLive, - ignoreCargoCult, - _fromObject, - } = {} - ) { - if (_fromObject) { - this._fromObject(_fromObject); - return; - } - - if (!res || !res.headers) { - throw Error('Response headers missing'); - } - this._assertRequestHasHeaders(req); - - this._responseTime = this.now(); - this._isShared = shared !== false; - this._cacheHeuristic = - undefined !== cacheHeuristic ? cacheHeuristic : 0.1; // 10% matches IE - this._immutableMinTtl = - undefined !== immutableMinTimeToLive - ? immutableMinTimeToLive - : 24 * 3600 * 1000; - - this._status = 'status' in res ? res.status : 200; - this._resHeaders = res.headers; - this._rescc = parseCacheControl(res.headers['cache-control']); - this._method = 'method' in req ? req.method : 'GET'; - this._url = req.url; - this._host = req.headers.host; - this._noAuthorization = !req.headers.authorization; - this._reqHeaders = res.headers.vary ? req.headers : null; // Don't keep all request headers if they won't be used - this._reqcc = parseCacheControl(req.headers['cache-control']); - - // Assume that if someone uses legacy, non-standard uncecessary options they don't understand caching, - // so there's no point stricly adhering to the blindly copy&pasted directives. - if ( - ignoreCargoCult && - 'pre-check' in this._rescc && - 'post-check' in this._rescc - ) { - delete this._rescc['pre-check']; - delete this._rescc['post-check']; - delete this._rescc['no-cache']; - delete this._rescc['no-store']; - delete this._rescc['must-revalidate']; - this._resHeaders = Object.assign({}, this._resHeaders, { - 'cache-control': formatCacheControl(this._rescc), - }); - delete this._resHeaders.expires; - delete this._resHeaders.pragma; - } - - // When the Cache-Control header field is not present in a request, caches MUST consider the no-cache request pragma-directive - // as having the same effect as if "Cache-Control: no-cache" were present (see Section 5.2.1). - if ( - res.headers['cache-control'] == null && - /no-cache/.test(res.headers.pragma) - ) { - this._rescc['no-cache'] = true; - } - } - - now() { - return Date.now(); - } - - storable() { - // The "no-store" request directive indicates that a cache MUST NOT store any part of either this request or any response to it. - return !!( - !this._reqcc['no-store'] && - // A cache MUST NOT store a response to any request, unless: - // The request method is understood by the cache and defined as being cacheable, and - ('GET' === this._method || - 'HEAD' === this._method || - ('POST' === this._method && this._hasExplicitExpiration())) && - // the response status code is understood by the cache, and - understoodStatuses.has(this._status) && - // the "no-store" cache directive does not appear in request or response header fields, and - !this._rescc['no-store'] && - // the "private" response directive does not appear in the response, if the cache is shared, and - (!this._isShared || !this._rescc.private) && - // the Authorization header field does not appear in the request, if the cache is shared, - (!this._isShared || - this._noAuthorization || - this._allowsStoringAuthenticated()) && - // the response either: - // contains an Expires header field, or - (this._resHeaders.expires || - // contains a max-age response directive, or - // contains a s-maxage response directive and the cache is shared, or - // contains a public response directive. - this._rescc['max-age'] || - (this._isShared && this._rescc['s-maxage']) || - this._rescc.public || - // has a status code that is defined as cacheable by default - statusCodeCacheableByDefault.has(this._status)) - ); - } - - _hasExplicitExpiration() { - // 4.2.1 Calculating Freshness Lifetime - return ( - (this._isShared && this._rescc['s-maxage']) || - this._rescc['max-age'] || - this._resHeaders.expires - ); - } - - _assertRequestHasHeaders(req) { - if (!req || !req.headers) { - throw Error('Request headers missing'); - } - } - - satisfiesWithoutRevalidation(req) { - this._assertRequestHasHeaders(req); - - // When presented with a request, a cache MUST NOT reuse a stored response, unless: - // the presented request does not contain the no-cache pragma (Section 5.4), nor the no-cache cache directive, - // unless the stored response is successfully validated (Section 4.3), and - const requestCC = parseCacheControl(req.headers['cache-control']); - if (requestCC['no-cache'] || /no-cache/.test(req.headers.pragma)) { - return false; - } - - if (requestCC['max-age'] && this.age() > requestCC['max-age']) { - return false; - } - - if ( - requestCC['min-fresh'] && - this.timeToLive() < 1000 * requestCC['min-fresh'] - ) { - return false; - } - - // the stored response is either: - // fresh, or allowed to be served stale - if (this.stale()) { - const allowsStale = - requestCC['max-stale'] && - !this._rescc['must-revalidate'] && - (true === requestCC['max-stale'] || - requestCC['max-stale'] > this.age() - this.maxAge()); - if (!allowsStale) { - return false; - } - } - - return this._requestMatches(req, false); - } - - _requestMatches(req, allowHeadMethod) { - // The presented effective request URI and that of the stored response match, and - return ( - (!this._url || this._url === req.url) && - this._host === req.headers.host && - // the request method associated with the stored response allows it to be used for the presented request, and - (!req.method || - this._method === req.method || - (allowHeadMethod && 'HEAD' === req.method)) && - // selecting header fields nominated by the stored response (if any) match those presented, and - this._varyMatches(req) - ); - } - - _allowsStoringAuthenticated() { - // following Cache-Control response directives (Section 5.2.2) have such an effect: must-revalidate, public, and s-maxage. - return ( - this._rescc['must-revalidate'] || - this._rescc.public || - this._rescc['s-maxage'] - ); - } - - _varyMatches(req) { - if (!this._resHeaders.vary) { - return true; - } - - // A Vary header field-value of "*" always fails to match - if (this._resHeaders.vary === '*') { - return false; - } - - const fields = this._resHeaders.vary - .trim() - .toLowerCase() - .split(/\s*,\s*/); - for (const name of fields) { - if (req.headers[name] !== this._reqHeaders[name]) return false; - } - return true; - } - - _copyWithoutHopByHopHeaders(inHeaders) { - const headers = {}; - for (const name in inHeaders) { - if (hopByHopHeaders[name]) continue; - headers[name] = inHeaders[name]; - } - // 9.1. Connection - if (inHeaders.connection) { - const tokens = inHeaders.connection.trim().split(/\s*,\s*/); - for (const name of tokens) { - delete headers[name]; - } - } - if (headers.warning) { - const warnings = headers.warning.split(/,/).filter(warning => { - return !/^\s*1[0-9][0-9]/.test(warning); - }); - if (!warnings.length) { - delete headers.warning; - } else { - headers.warning = warnings.join(',').trim(); - } - } - return headers; - } - - responseHeaders() { - const headers = this._copyWithoutHopByHopHeaders(this._resHeaders); - const age = this.age(); - - // A cache SHOULD generate 113 warning if it heuristically chose a freshness - // lifetime greater than 24 hours and the response's age is greater than 24 hours. - if ( - age > 3600 * 24 && - !this._hasExplicitExpiration() && - this.maxAge() > 3600 * 24 - ) { - headers.warning = - (headers.warning ? `${headers.warning}, ` : '') + - '113 - "rfc7234 5.5.4"'; - } - headers.age = `${Math.round(age)}`; - headers.date = new Date(this.now()).toUTCString(); - return headers; - } - - /** - * Value of the Date response header or current time if Date was invalid - * @return timestamp - */ - date() { - const serverDate = Date.parse(this._resHeaders.date); - if (isFinite(serverDate)) { - return serverDate; - } - return this._responseTime; - } - - /** - * Value of the Age header, in seconds, updated for the current time. - * May be fractional. - * - * @return Number - */ - age() { - let age = this._ageValue(); - - const residentTime = (this.now() - this._responseTime) / 1000; - return age + residentTime; - } - - _ageValue() { - return toNumberOrZero(this._resHeaders.age); - } - - /** - * Value of applicable max-age (or heuristic equivalent) in seconds. This counts since response's `Date`. - * - * For an up-to-date value, see `timeToLive()`. - * - * @return Number - */ - maxAge() { - if (!this.storable() || this._rescc['no-cache']) { - return 0; - } - - // Shared responses with cookies are cacheable according to the RFC, but IMHO it'd be unwise to do so by default - // so this implementation requires explicit opt-in via public header - if ( - this._isShared && - (this._resHeaders['set-cookie'] && - !this._rescc.public && - !this._rescc.immutable) - ) { - return 0; - } - - if (this._resHeaders.vary === '*') { - return 0; - } - - if (this._isShared) { - if (this._rescc['proxy-revalidate']) { - return 0; - } - // if a response includes the s-maxage directive, a shared cache recipient MUST ignore the Expires field. - if (this._rescc['s-maxage']) { - return toNumberOrZero(this._rescc['s-maxage']); - } - } - - // If a response includes a Cache-Control field with the max-age directive, a recipient MUST ignore the Expires field. - if (this._rescc['max-age']) { - return toNumberOrZero(this._rescc['max-age']); - } - - const defaultMinTtl = this._rescc.immutable ? this._immutableMinTtl : 0; - - const serverDate = this.date(); - if (this._resHeaders.expires) { - const expires = Date.parse(this._resHeaders.expires); - // A cache recipient MUST interpret invalid date formats, especially the value "0", as representing a time in the past (i.e., "already expired"). - if (Number.isNaN(expires) || expires < serverDate) { - return 0; - } - return Math.max(defaultMinTtl, (expires - serverDate) / 1000); - } - - if (this._resHeaders['last-modified']) { - const lastModified = Date.parse(this._resHeaders['last-modified']); - if (isFinite(lastModified) && serverDate > lastModified) { - return Math.max( - defaultMinTtl, - ((serverDate - lastModified) / 1000) * this._cacheHeuristic - ); - } - } - - return defaultMinTtl; - } - - timeToLive() { - const age = this.maxAge() - this.age(); - const staleIfErrorAge = age + toNumberOrZero(this._rescc['stale-if-error']); - const staleWhileRevalidateAge = age + toNumberOrZero(this._rescc['stale-while-revalidate']); - return Math.max(0, age, staleIfErrorAge, staleWhileRevalidateAge) * 1000; - } - - stale() { - return this.maxAge() <= this.age(); - } - - _useStaleIfError() { - return this.maxAge() + toNumberOrZero(this._rescc['stale-if-error']) > this.age(); - } - - useStaleWhileRevalidate() { - return this.maxAge() + toNumberOrZero(this._rescc['stale-while-revalidate']) > this.age(); - } - - static fromObject(obj) { - return new this(undefined, undefined, { _fromObject: obj }); - } - - _fromObject(obj) { - if (this._responseTime) throw Error('Reinitialized'); - if (!obj || obj.v !== 1) throw Error('Invalid serialization'); - - this._responseTime = obj.t; - this._isShared = obj.sh; - this._cacheHeuristic = obj.ch; - this._immutableMinTtl = - obj.imm !== undefined ? obj.imm : 24 * 3600 * 1000; - this._status = obj.st; - this._resHeaders = obj.resh; - this._rescc = obj.rescc; - this._method = obj.m; - this._url = obj.u; - this._host = obj.h; - this._noAuthorization = obj.a; - this._reqHeaders = obj.reqh; - this._reqcc = obj.reqcc; - } - - toObject() { - return { - v: 1, - t: this._responseTime, - sh: this._isShared, - ch: this._cacheHeuristic, - imm: this._immutableMinTtl, - st: this._status, - resh: this._resHeaders, - rescc: this._rescc, - m: this._method, - u: this._url, - h: this._host, - a: this._noAuthorization, - reqh: this._reqHeaders, - reqcc: this._reqcc, - }; - } - - /** - * Headers for sending to the origin server to revalidate stale response. - * Allows server to return 304 to allow reuse of the previous response. - * - * Hop by hop headers are always stripped. - * Revalidation headers may be added or removed, depending on request. - */ - revalidationHeaders(incomingReq) { - this._assertRequestHasHeaders(incomingReq); - const headers = this._copyWithoutHopByHopHeaders(incomingReq.headers); - - // This implementation does not understand range requests - delete headers['if-range']; - - if (!this._requestMatches(incomingReq, true) || !this.storable()) { - // revalidation allowed via HEAD - // not for the same resource, or wasn't allowed to be cached anyway - delete headers['if-none-match']; - delete headers['if-modified-since']; - return headers; - } - - /* MUST send that entity-tag in any cache validation request (using If-Match or If-None-Match) if an entity-tag has been provided by the origin server. */ - if (this._resHeaders.etag) { - headers['if-none-match'] = headers['if-none-match'] - ? `${headers['if-none-match']}, ${this._resHeaders.etag}` - : this._resHeaders.etag; - } - - // Clients MAY issue simple (non-subrange) GET requests with either weak validators or strong validators. Clients MUST NOT use weak validators in other forms of request. - const forbidsWeakValidators = - headers['accept-ranges'] || - headers['if-match'] || - headers['if-unmodified-since'] || - (this._method && this._method != 'GET'); - - /* SHOULD send the Last-Modified value in non-subrange cache validation requests (using If-Modified-Since) if only a Last-Modified value has been provided by the origin server. - Note: This implementation does not understand partial responses (206) */ - if (forbidsWeakValidators) { - delete headers['if-modified-since']; - - if (headers['if-none-match']) { - const etags = headers['if-none-match'] - .split(/,/) - .filter(etag => { - return !/^\s*W\//.test(etag); - }); - if (!etags.length) { - delete headers['if-none-match']; - } else { - headers['if-none-match'] = etags.join(',').trim(); - } - } - } else if ( - this._resHeaders['last-modified'] && - !headers['if-modified-since'] - ) { - headers['if-modified-since'] = this._resHeaders['last-modified']; - } - - return headers; - } - - /** - * Creates new CachePolicy with information combined from the previews response, - * and the new revalidation response. - * - * Returns {policy, modified} where modified is a boolean indicating - * whether the response body has been modified, and old cached body can't be used. - * - * @return {Object} {policy: CachePolicy, modified: Boolean} - */ - revalidatedPolicy(request, response) { - this._assertRequestHasHeaders(request); - if(this._useStaleIfError() && isErrorResponse(response)) { // I consider the revalidation request unsuccessful - return { - modified: false, - matches: false, - policy: this, - }; - } - if (!response || !response.headers) { - throw Error('Response headers missing'); - } - - // These aren't going to be supported exactly, since one CachePolicy object - // doesn't know about all the other cached objects. - let matches = false; - if (response.status !== undefined && response.status != 304) { - matches = false; - } else if ( - response.headers.etag && - !/^\s*W\//.test(response.headers.etag) - ) { - // "All of the stored responses with the same strong validator are selected. - // If none of the stored responses contain the same strong validator, - // then the cache MUST NOT use the new response to update any stored responses." - matches = - this._resHeaders.etag && - this._resHeaders.etag.replace(/^\s*W\//, '') === - response.headers.etag; - } else if (this._resHeaders.etag && response.headers.etag) { - // "If the new response contains a weak validator and that validator corresponds - // to one of the cache's stored responses, - // then the most recent of those matching stored responses is selected for update." - matches = - this._resHeaders.etag.replace(/^\s*W\//, '') === - response.headers.etag.replace(/^\s*W\//, ''); - } else if (this._resHeaders['last-modified']) { - matches = - this._resHeaders['last-modified'] === - response.headers['last-modified']; - } else { - // If the new response does not include any form of validator (such as in the case where - // a client generates an If-Modified-Since request from a source other than the Last-Modified - // response header field), and there is only one stored response, and that stored response also - // lacks a validator, then that stored response is selected for update. - if ( - !this._resHeaders.etag && - !this._resHeaders['last-modified'] && - !response.headers.etag && - !response.headers['last-modified'] - ) { - matches = true; - } - } - - if (!matches) { - return { - policy: new this.constructor(request, response), - // Client receiving 304 without body, even if it's invalid/mismatched has no option - // but to reuse a cached body. We don't have a good way to tell clients to do - // error recovery in such case. - modified: response.status != 304, - matches: false, - }; - } - - // use other header fields provided in the 304 (Not Modified) response to replace all instances - // of the corresponding header fields in the stored response. - const headers = {}; - for (const k in this._resHeaders) { - headers[k] = - k in response.headers && !excludedFromRevalidationUpdate[k] - ? response.headers[k] - : this._resHeaders[k]; - } - - const newResponse = Object.assign({}, response, { - status: this._status, - method: this._method, - headers, - }); - return { - policy: new this.constructor(request, newResponse, { - shared: this._isShared, - cacheHeuristic: this._cacheHeuristic, - immutableMinTimeToLive: this._immutableMinTtl, - }), - modified: false, - matches: true, - }; - } -}; diff --git a/Easebuzz_NodeJS_kit/node_modules/http-cache-semantics/package.json b/Easebuzz_NodeJS_kit/node_modules/http-cache-semantics/package.json deleted file mode 100644 index f5254e7..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/http-cache-semantics/package.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "_from": "http-cache-semantics@^4.0.0", - "_id": "http-cache-semantics@4.1.0", - "_inBundle": false, - "_integrity": "sha512-carPklcUh7ROWRK7Cv27RPtdhYhUsela/ue5/jKzjegVvXDqM2ILE9Q2BGn9JZJh1g87cp56su/FgQSzcWS8cQ==", - "_location": "/http-cache-semantics", - "_phantomChildren": {}, - "_requested": { - "type": "range", - "registry": true, - "raw": "http-cache-semantics@^4.0.0", - "name": "http-cache-semantics", - "escapedName": "http-cache-semantics", - "rawSpec": "^4.0.0", - "saveSpec": null, - "fetchSpec": "^4.0.0" - }, - "_requiredBy": [ - "/cacheable-request" - ], - "_resolved": "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-4.1.0.tgz", - "_shasum": "49e91c5cbf36c9b94bcfcd71c23d5249ec74e390", - "_spec": "http-cache-semantics@^4.0.0", - "_where": "/home/ankit/Downloads/NodeJS/node_modules/cacheable-request", - "author": { - "name": "Kornel Lesiński", - "email": "kornel@geekhood.net", - "url": "https://kornel.ski/" - }, - "bugs": { - "url": "https://github.com/kornelski/http-cache-semantics/issues" - }, - "bundleDependencies": false, - "deprecated": false, - "description": "Parses Cache-Control and other headers. Helps building correct HTTP caches and proxies", - "devDependencies": { - "eslint": "^5.13.0", - "eslint-plugin-prettier": "^3.0.1", - "husky": "^0.14.3", - "lint-staged": "^8.1.3", - "mocha": "^5.1.0", - "prettier": "^1.14.3", - "prettier-eslint-cli": "^4.7.1" - }, - "files": [ - "index.js" - ], - "homepage": "https://github.com/kornelski/http-cache-semantics#readme", - "license": "BSD-2-Clause", - "main": "index.js", - "name": "http-cache-semantics", - "repository": { - "type": "git", - "url": "git+https://github.com/kornelski/http-cache-semantics.git" - }, - "scripts": { - "test": "mocha" - }, - "version": "4.1.0" -} diff --git a/Easebuzz_NodeJS_kit/node_modules/ignore-by-default/LICENSE b/Easebuzz_NodeJS_kit/node_modules/ignore-by-default/LICENSE deleted file mode 100644 index ee1e367..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/ignore-by-default/LICENSE +++ /dev/null @@ -1,14 +0,0 @@ -ISC License (ISC) -Copyright (c) 2016, Mark Wubben - -Permission to use, copy, modify, and/or distribute this software for any purpose -with or without fee is hereby granted, provided that the above copyright notice -and this permission notice appear in all copies. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND -FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS -OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER -TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF -THIS SOFTWARE. diff --git a/Easebuzz_NodeJS_kit/node_modules/ignore-by-default/README.md b/Easebuzz_NodeJS_kit/node_modules/ignore-by-default/README.md deleted file mode 100644 index ee77191..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/ignore-by-default/README.md +++ /dev/null @@ -1,26 +0,0 @@ -# ignore-by-default - -This is a package aimed at Node.js development tools. It provides a list of -directories that should probably be ignored by such tools, e.g. when watching -for file changes. - -It's used by [AVA](https://www.npmjs.com/package/ava) and -[nodemon](https://www.npmjs.com/package/nodemon). - -[Please contribute!](./CONTRIBUTING.md) - -## Installation - -``` -npm install --save ignore-by-default -``` - -## Usage - -The `ignore-by-default` module exports a `directories()` function, which will -return an array of directory names. These are the ones you should ignore. - -```js -// ['.git', '.sass_cache', …] -var ignoredDirectories = require('ignore-by-default').directories() -``` diff --git a/Easebuzz_NodeJS_kit/node_modules/ignore-by-default/index.js b/Easebuzz_NodeJS_kit/node_modules/ignore-by-default/index.js deleted file mode 100644 index c65857d..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/ignore-by-default/index.js +++ /dev/null @@ -1,12 +0,0 @@ -'use strict' - -exports.directories = function () { - return [ - '.git', // Git repository files, see - '.nyc_output', // Temporary directory where nyc stores coverage data, see - '.sass-cache', // Cache folder for node-sass, see - 'bower_components', // Where Bower packages are installed, see - 'coverage', // Standard output directory for code coverage reports, see - 'node_modules' // Where Node modules are installed, see - ] -} diff --git a/Easebuzz_NodeJS_kit/node_modules/ignore-by-default/package.json b/Easebuzz_NodeJS_kit/node_modules/ignore-by-default/package.json deleted file mode 100644 index b7a7067..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/ignore-by-default/package.json +++ /dev/null @@ -1,62 +0,0 @@ -{ - "_from": "ignore-by-default@^1.0.1", - "_id": "ignore-by-default@1.0.1", - "_inBundle": false, - "_integrity": "sha1-SMptcvbGo68Aqa1K5odr44ieKwk=", - "_location": "/ignore-by-default", - "_phantomChildren": {}, - "_requested": { - "type": "range", - "registry": true, - "raw": "ignore-by-default@^1.0.1", - "name": "ignore-by-default", - "escapedName": "ignore-by-default", - "rawSpec": "^1.0.1", - "saveSpec": null, - "fetchSpec": "^1.0.1" - }, - "_requiredBy": [ - "/nodemon" - ], - "_resolved": "https://registry.npmjs.org/ignore-by-default/-/ignore-by-default-1.0.1.tgz", - "_shasum": "48ca6d72f6c6a3af00a9ad4ae6876be3889e2b09", - "_spec": "ignore-by-default@^1.0.1", - "_where": "/home/ankit/Downloads/NodeJS/node_modules/nodemon", - "author": { - "name": "Mark Wubben", - "url": "https://novemberborn.net/" - }, - "bugs": { - "url": "https://github.com/novemberborn/ignore-by-default/issues" - }, - "bundleDependencies": false, - "deprecated": false, - "description": "A list of directories you should ignore by default", - "devDependencies": { - "figures": "^1.4.0", - "standard": "^6.0.4" - }, - "files": [ - "index.js" - ], - "homepage": "https://github.com/novemberborn/ignore-by-default#readme", - "keywords": [ - "ignore", - "chokidar", - "watcher", - "exclude", - "glob", - "pattern" - ], - "license": "ISC", - "main": "index.js", - "name": "ignore-by-default", - "repository": { - "type": "git", - "url": "git+https://github.com/novemberborn/ignore-by-default.git" - }, - "scripts": { - "test": "standard && node test.js" - }, - "version": "1.0.1" -} diff --git a/Easebuzz_NodeJS_kit/node_modules/import-lazy/index.js b/Easebuzz_NodeJS_kit/node_modules/import-lazy/index.js deleted file mode 100644 index 307f08f..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/import-lazy/index.js +++ /dev/null @@ -1,53 +0,0 @@ -'use strict'; -const lazy = (mod, fn, id) => mod === undefined ? fn(id) : mod; - -module.exports = fn => { - return id => { - let mod; - - return function () { - if (arguments.length === 0) { - mod = lazy(mod, fn, id); - return mod; - } - - const ret = {}; - - [].forEach.call(arguments, prop => { - Object.defineProperty(ret, prop, { - get: () => { - mod = lazy(mod, fn, id); - if (typeof mod[prop] === 'function') { - return function () { - return mod[prop].apply(mod, arguments); - }; - } - - return mod[prop]; - } - }); - }); - - return ret; - }; - }; -}; - -module.exports.proxy = fn => { - return id => { - let mod; - - const handler = { - get: (target, property) => { - mod = lazy(mod, fn, id); - return Reflect.get(mod, property); - }, - apply: (target, thisArg, argumentsList) => { - mod = lazy(mod, fn, id); - return Reflect.apply(mod, thisArg, argumentsList); - } - }; - - return new Proxy(() => {}, handler); - }; -}; diff --git a/Easebuzz_NodeJS_kit/node_modules/import-lazy/license b/Easebuzz_NodeJS_kit/node_modules/import-lazy/license deleted file mode 100644 index 654d0bf..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/import-lazy/license +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) Sindre Sorhus (sindresorhus.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/Easebuzz_NodeJS_kit/node_modules/import-lazy/package.json b/Easebuzz_NodeJS_kit/node_modules/import-lazy/package.json deleted file mode 100644 index 444ded4..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/import-lazy/package.json +++ /dev/null @@ -1,76 +0,0 @@ -{ - "_from": "import-lazy@^2.1.0", - "_id": "import-lazy@2.1.0", - "_inBundle": false, - "_integrity": "sha1-BWmOPUXIjo1+nZLLBYTnfwlvPkM=", - "_location": "/import-lazy", - "_phantomChildren": {}, - "_requested": { - "type": "range", - "registry": true, - "raw": "import-lazy@^2.1.0", - "name": "import-lazy", - "escapedName": "import-lazy", - "rawSpec": "^2.1.0", - "saveSpec": null, - "fetchSpec": "^2.1.0" - }, - "_requiredBy": [ - "/update-notifier" - ], - "_resolved": "https://registry.npmjs.org/import-lazy/-/import-lazy-2.1.0.tgz", - "_shasum": "05698e3d45c88e8d7e9d92cb0584e77f096f3e43", - "_spec": "import-lazy@^2.1.0", - "_where": "/home/ankit/Downloads/NodeJS/node_modules/update-notifier", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "bugs": { - "url": "https://github.com/sindresorhus/import-lazy/issues" - }, - "bundleDependencies": false, - "contributors": [ - { - "name": "Jorge Bucaran", - "email": "jbucaran@me.com" - } - ], - "deprecated": false, - "description": "Import modules lazily", - "devDependencies": { - "ava": "*", - "xo": "*" - }, - "engines": { - "node": ">=4" - }, - "files": [ - "index.js" - ], - "homepage": "https://github.com/sindresorhus/import-lazy#readme", - "keywords": [ - "import", - "require", - "load", - "module", - "modules", - "lazy", - "lazily", - "defer", - "deferred", - "proxy", - "proxies" - ], - "license": "MIT", - "name": "import-lazy", - "repository": { - "type": "git", - "url": "git+https://github.com/sindresorhus/import-lazy.git" - }, - "scripts": { - "test": "xo && ava" - }, - "version": "2.1.0" -} diff --git a/Easebuzz_NodeJS_kit/node_modules/import-lazy/readme.md b/Easebuzz_NodeJS_kit/node_modules/import-lazy/readme.md deleted file mode 100644 index 233e42e..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/import-lazy/readme.md +++ /dev/null @@ -1,64 +0,0 @@ -# import-lazy [![Build Status](https://travis-ci.org/sindresorhus/import-lazy.svg?branch=master)](https://travis-ci.org/sindresorhus/import-lazy) - -> Import modules lazily - - -## Install - -``` -$ npm install --save import-lazy -``` - - -## Usage - -```js -// Pass in `require` or a custom import function -const importLazy = require('import-lazy')(require); -const _ = importLazy('lodash'); - -// Where you would normally do -_.isNumber(2); - -// You now instead call it as a function -_().isNumber(2); - -// It's cached on consecutive calls -_().isString('unicorn'); - -// Extract lazy variations of the props you need -const members = importLazy('lodash')('isNumber', 'isString'); - -// Useful when using destructuring assignment in ES2015 -const {isNumber, isString} = importLazy('lodash')('isNumber', 'isString'); - -// Works out of the box for functions and regular properties -const stuff = importLazy('./math-lib')('sum', 'PHI'); -console.log(stuff.sum(1, 2)); // => 3 -console.log(stuff.PHI); // => 1.618033 -``` - -### Proxy support in Node.js 6 or later - -If you use Node.js 6 or later, you can take advantage of ES2015 proxies and don't need to call it as a function. - -```js -const importLazy = require('import-lazy').proxy(require); -const _ = importLazy('lodash'); - -// No need to call it as a function but still lazily imported -_.isNumber(2); -``` - -## Related - -- [resolve-from](https://github.com/sindresorhus/resolve-from) - Resolve the path of a module from a given path -- [import-from](https://github.com/sindresorhus/import-from) - Import a module from a given path -- [resolve-pkg](https://github.com/sindresorhus/resolve-pkg) - Resolve the path of a package regardless of it having an entry point -- [lazy-value](https://github.com/sindresorhus/lazy-value) - Create a lazily evaluated value -- [define-lazy-prop](https://github.com/sindresorhus/define-lazy-prop) - Define a lazily evaluated property on an object - - -## License - -MIT © [Sindre Sorhus](https://sindresorhus.com) diff --git a/Easebuzz_NodeJS_kit/node_modules/imurmurhash/README.md b/Easebuzz_NodeJS_kit/node_modules/imurmurhash/README.md deleted file mode 100644 index f35b20a..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/imurmurhash/README.md +++ /dev/null @@ -1,122 +0,0 @@ -iMurmurHash.js -============== - -An incremental implementation of the MurmurHash3 (32-bit) hashing algorithm for JavaScript based on [Gary Court's implementation](https://github.com/garycourt/murmurhash-js) with [kazuyukitanimura's modifications](https://github.com/kazuyukitanimura/murmurhash-js). - -This version works significantly faster than the non-incremental version if you need to hash many small strings into a single hash, since string concatenation (to build the single string to pass the non-incremental version) is fairly costly. In one case tested, using the incremental version was about 50% faster than concatenating 5-10 strings and then hashing. - -Installation ------------- - -To use iMurmurHash in the browser, [download the latest version](https://raw.github.com/jensyt/imurmurhash-js/master/imurmurhash.min.js) and include it as a script on your site. - -```html - - -``` - ---- - -To use iMurmurHash in Node.js, install the module using NPM: - -```bash -npm install imurmurhash -``` - -Then simply include it in your scripts: - -```javascript -MurmurHash3 = require('imurmurhash'); -``` - -Quick Example -------------- - -```javascript -// Create the initial hash -var hashState = MurmurHash3('string'); - -// Incrementally add text -hashState.hash('more strings'); -hashState.hash('even more strings'); - -// All calls can be chained if desired -hashState.hash('and').hash('some').hash('more'); - -// Get a result -hashState.result(); -// returns 0xe4ccfe6b -``` - -Functions ---------- - -### MurmurHash3 ([string], [seed]) -Get a hash state object, optionally initialized with the given _string_ and _seed_. _Seed_ must be a positive integer if provided. Calling this function without the `new` keyword will return a cached state object that has been reset. This is safe to use as long as the object is only used from a single thread and no other hashes are created while operating on this one. If this constraint cannot be met, you can use `new` to create a new state object. For example: - -```javascript -// Use the cached object, calling the function again will return the same -// object (but reset, so the current state would be lost) -hashState = MurmurHash3(); -... - -// Create a new object that can be safely used however you wish. Calling the -// function again will simply return a new state object, and no state loss -// will occur, at the cost of creating more objects. -hashState = new MurmurHash3(); -``` - -Both methods can be mixed however you like if you have different use cases. - ---- - -### MurmurHash3.prototype.hash (string) -Incrementally add _string_ to the hash. This can be called as many times as you want for the hash state object, including after a call to `result()`. Returns `this` so calls can be chained. - ---- - -### MurmurHash3.prototype.result () -Get the result of the hash as a 32-bit positive integer. This performs the tail and finalizer portions of the algorithm, but does not store the result in the state object. This means that it is perfectly safe to get results and then continue adding strings via `hash`. - -```javascript -// Do the whole string at once -MurmurHash3('this is a test string').result(); -// 0x70529328 - -// Do part of the string, get a result, then the other part -var m = MurmurHash3('this is a'); -m.result(); -// 0xbfc4f834 -m.hash(' test string').result(); -// 0x70529328 (same as above) -``` - ---- - -### MurmurHash3.prototype.reset ([seed]) -Reset the state object for reuse, optionally using the given _seed_ (defaults to 0 like the constructor). Returns `this` so calls can be chained. - ---- - -License (MIT) -------------- -Copyright (c) 2013 Gary Court, Jens Taylor - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of -the Software, and to permit persons to whom the Software is furnished to do so, -subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/Easebuzz_NodeJS_kit/node_modules/imurmurhash/imurmurhash.js b/Easebuzz_NodeJS_kit/node_modules/imurmurhash/imurmurhash.js deleted file mode 100644 index e63146a..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/imurmurhash/imurmurhash.js +++ /dev/null @@ -1,138 +0,0 @@ -/** - * @preserve - * JS Implementation of incremental MurmurHash3 (r150) (as of May 10, 2013) - * - * @author Jens Taylor - * @see http://github.com/homebrewing/brauhaus-diff - * @author Gary Court - * @see http://github.com/garycourt/murmurhash-js - * @author Austin Appleby - * @see http://sites.google.com/site/murmurhash/ - */ -(function(){ - var cache; - - // Call this function without `new` to use the cached object (good for - // single-threaded environments), or with `new` to create a new object. - // - // @param {string} key A UTF-16 or ASCII string - // @param {number} seed An optional positive integer - // @return {object} A MurmurHash3 object for incremental hashing - function MurmurHash3(key, seed) { - var m = this instanceof MurmurHash3 ? this : cache; - m.reset(seed) - if (typeof key === 'string' && key.length > 0) { - m.hash(key); - } - - if (m !== this) { - return m; - } - }; - - // Incrementally add a string to this hash - // - // @param {string} key A UTF-16 or ASCII string - // @return {object} this - MurmurHash3.prototype.hash = function(key) { - var h1, k1, i, top, len; - - len = key.length; - this.len += len; - - k1 = this.k1; - i = 0; - switch (this.rem) { - case 0: k1 ^= len > i ? (key.charCodeAt(i++) & 0xffff) : 0; - case 1: k1 ^= len > i ? (key.charCodeAt(i++) & 0xffff) << 8 : 0; - case 2: k1 ^= len > i ? (key.charCodeAt(i++) & 0xffff) << 16 : 0; - case 3: - k1 ^= len > i ? (key.charCodeAt(i) & 0xff) << 24 : 0; - k1 ^= len > i ? (key.charCodeAt(i++) & 0xff00) >> 8 : 0; - } - - this.rem = (len + this.rem) & 3; // & 3 is same as % 4 - len -= this.rem; - if (len > 0) { - h1 = this.h1; - while (1) { - k1 = (k1 * 0x2d51 + (k1 & 0xffff) * 0xcc9e0000) & 0xffffffff; - k1 = (k1 << 15) | (k1 >>> 17); - k1 = (k1 * 0x3593 + (k1 & 0xffff) * 0x1b870000) & 0xffffffff; - - h1 ^= k1; - h1 = (h1 << 13) | (h1 >>> 19); - h1 = (h1 * 5 + 0xe6546b64) & 0xffffffff; - - if (i >= len) { - break; - } - - k1 = ((key.charCodeAt(i++) & 0xffff)) ^ - ((key.charCodeAt(i++) & 0xffff) << 8) ^ - ((key.charCodeAt(i++) & 0xffff) << 16); - top = key.charCodeAt(i++); - k1 ^= ((top & 0xff) << 24) ^ - ((top & 0xff00) >> 8); - } - - k1 = 0; - switch (this.rem) { - case 3: k1 ^= (key.charCodeAt(i + 2) & 0xffff) << 16; - case 2: k1 ^= (key.charCodeAt(i + 1) & 0xffff) << 8; - case 1: k1 ^= (key.charCodeAt(i) & 0xffff); - } - - this.h1 = h1; - } - - this.k1 = k1; - return this; - }; - - // Get the result of this hash - // - // @return {number} The 32-bit hash - MurmurHash3.prototype.result = function() { - var k1, h1; - - k1 = this.k1; - h1 = this.h1; - - if (k1 > 0) { - k1 = (k1 * 0x2d51 + (k1 & 0xffff) * 0xcc9e0000) & 0xffffffff; - k1 = (k1 << 15) | (k1 >>> 17); - k1 = (k1 * 0x3593 + (k1 & 0xffff) * 0x1b870000) & 0xffffffff; - h1 ^= k1; - } - - h1 ^= this.len; - - h1 ^= h1 >>> 16; - h1 = (h1 * 0xca6b + (h1 & 0xffff) * 0x85eb0000) & 0xffffffff; - h1 ^= h1 >>> 13; - h1 = (h1 * 0xae35 + (h1 & 0xffff) * 0xc2b20000) & 0xffffffff; - h1 ^= h1 >>> 16; - - return h1 >>> 0; - }; - - // Reset the hash object for reuse - // - // @param {number} seed An optional positive integer - MurmurHash3.prototype.reset = function(seed) { - this.h1 = typeof seed === 'number' ? seed : 0; - this.rem = this.k1 = this.len = 0; - return this; - }; - - // A cached object to use. This can be safely used if you're in a single- - // threaded environment, otherwise you need to create new hashes to use. - cache = new MurmurHash3(); - - if (typeof(module) != 'undefined') { - module.exports = MurmurHash3; - } else { - this.MurmurHash3 = MurmurHash3; - } -}()); diff --git a/Easebuzz_NodeJS_kit/node_modules/imurmurhash/imurmurhash.min.js b/Easebuzz_NodeJS_kit/node_modules/imurmurhash/imurmurhash.min.js deleted file mode 100644 index dc0ee88..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/imurmurhash/imurmurhash.min.js +++ /dev/null @@ -1,12 +0,0 @@ -/** - * @preserve - * JS Implementation of incremental MurmurHash3 (r150) (as of May 10, 2013) - * - * @author Jens Taylor - * @see http://github.com/homebrewing/brauhaus-diff - * @author Gary Court - * @see http://github.com/garycourt/murmurhash-js - * @author Austin Appleby - * @see http://sites.google.com/site/murmurhash/ - */ -!function(){function t(h,r){var s=this instanceof t?this:e;return s.reset(r),"string"==typeof h&&h.length>0&&s.hash(h),s!==this?s:void 0}var e;t.prototype.hash=function(t){var e,h,r,s,i;switch(i=t.length,this.len+=i,h=this.k1,r=0,this.rem){case 0:h^=i>r?65535&t.charCodeAt(r++):0;case 1:h^=i>r?(65535&t.charCodeAt(r++))<<8:0;case 2:h^=i>r?(65535&t.charCodeAt(r++))<<16:0;case 3:h^=i>r?(255&t.charCodeAt(r))<<24:0,h^=i>r?(65280&t.charCodeAt(r++))>>8:0}if(this.rem=3&i+this.rem,i-=this.rem,i>0){for(e=this.h1;;){if(h=4294967295&11601*h+3432906752*(65535&h),h=h<<15|h>>>17,h=4294967295&13715*h+461832192*(65535&h),e^=h,e=e<<13|e>>>19,e=4294967295&5*e+3864292196,r>=i)break;h=65535&t.charCodeAt(r++)^(65535&t.charCodeAt(r++))<<8^(65535&t.charCodeAt(r++))<<16,s=t.charCodeAt(r++),h^=(255&s)<<24^(65280&s)>>8}switch(h=0,this.rem){case 3:h^=(65535&t.charCodeAt(r+2))<<16;case 2:h^=(65535&t.charCodeAt(r+1))<<8;case 1:h^=65535&t.charCodeAt(r)}this.h1=e}return this.k1=h,this},t.prototype.result=function(){var t,e;return t=this.k1,e=this.h1,t>0&&(t=4294967295&11601*t+3432906752*(65535&t),t=t<<15|t>>>17,t=4294967295&13715*t+461832192*(65535&t),e^=t),e^=this.len,e^=e>>>16,e=4294967295&51819*e+2246770688*(65535&e),e^=e>>>13,e=4294967295&44597*e+3266445312*(65535&e),e^=e>>>16,e>>>0},t.prototype.reset=function(t){return this.h1="number"==typeof t?t:0,this.rem=this.k1=this.len=0,this},e=new t,"undefined"!=typeof module?module.exports=t:this.MurmurHash3=t}(); \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/imurmurhash/package.json b/Easebuzz_NodeJS_kit/node_modules/imurmurhash/package.json deleted file mode 100644 index 26605b4..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/imurmurhash/package.json +++ /dev/null @@ -1,63 +0,0 @@ -{ - "_from": "imurmurhash@^0.1.4", - "_id": "imurmurhash@0.1.4", - "_inBundle": false, - "_integrity": "sha1-khi5srkoojixPcT7a21XbyMUU+o=", - "_location": "/imurmurhash", - "_phantomChildren": {}, - "_requested": { - "type": "range", - "registry": true, - "raw": "imurmurhash@^0.1.4", - "name": "imurmurhash", - "escapedName": "imurmurhash", - "rawSpec": "^0.1.4", - "saveSpec": null, - "fetchSpec": "^0.1.4" - }, - "_requiredBy": [ - "/write-file-atomic" - ], - "_resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", - "_shasum": "9218b9b2b928a238b13dc4fb6b6d576f231453ea", - "_spec": "imurmurhash@^0.1.4", - "_where": "/home/ankit/Downloads/NodeJS/node_modules/write-file-atomic", - "author": { - "name": "Jens Taylor", - "email": "jensyt@gmail.com", - "url": "https://github.com/homebrewing" - }, - "bugs": { - "url": "https://github.com/jensyt/imurmurhash-js/issues" - }, - "bundleDependencies": false, - "dependencies": {}, - "deprecated": false, - "description": "An incremental implementation of MurmurHash3", - "devDependencies": {}, - "engines": { - "node": ">=0.8.19" - }, - "files": [ - "imurmurhash.js", - "imurmurhash.min.js", - "package.json", - "README.md" - ], - "homepage": "https://github.com/jensyt/imurmurhash-js", - "keywords": [ - "murmur", - "murmurhash", - "murmurhash3", - "hash", - "incremental" - ], - "license": "MIT", - "main": "imurmurhash.js", - "name": "imurmurhash", - "repository": { - "type": "git", - "url": "git+https://github.com/jensyt/imurmurhash-js.git" - }, - "version": "0.1.4" -} diff --git a/Easebuzz_NodeJS_kit/node_modules/ini/LICENSE b/Easebuzz_NodeJS_kit/node_modules/ini/LICENSE deleted file mode 100644 index 19129e3..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/ini/LICENSE +++ /dev/null @@ -1,15 +0,0 @@ -The ISC License - -Copyright (c) Isaac Z. Schlueter and Contributors - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted, provided that the above -copyright notice and this permission notice appear in all copies. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR -IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. diff --git a/Easebuzz_NodeJS_kit/node_modules/ini/README.md b/Easebuzz_NodeJS_kit/node_modules/ini/README.md deleted file mode 100644 index 33df258..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/ini/README.md +++ /dev/null @@ -1,102 +0,0 @@ -An ini format parser and serializer for node. - -Sections are treated as nested objects. Items before the first -heading are saved on the object directly. - -## Usage - -Consider an ini-file `config.ini` that looks like this: - - ; this comment is being ignored - scope = global - - [database] - user = dbuser - password = dbpassword - database = use_this_database - - [paths.default] - datadir = /var/lib/data - array[] = first value - array[] = second value - array[] = third value - -You can read, manipulate and write the ini-file like so: - - var fs = require('fs') - , ini = require('ini') - - var config = ini.parse(fs.readFileSync('./config.ini', 'utf-8')) - - config.scope = 'local' - config.database.database = 'use_another_database' - config.paths.default.tmpdir = '/tmp' - delete config.paths.default.datadir - config.paths.default.array.push('fourth value') - - fs.writeFileSync('./config_modified.ini', ini.stringify(config, { section: 'section' })) - -This will result in a file called `config_modified.ini` being written -to the filesystem with the following content: - - [section] - scope=local - [section.database] - user=dbuser - password=dbpassword - database=use_another_database - [section.paths.default] - tmpdir=/tmp - array[]=first value - array[]=second value - array[]=third value - array[]=fourth value - - -## API - -### decode(inistring) - -Decode the ini-style formatted `inistring` into a nested object. - -### parse(inistring) - -Alias for `decode(inistring)` - -### encode(object, [options]) - -Encode the object `object` into an ini-style formatted string. If the -optional parameter `section` is given, then all top-level properties -of the object are put into this section and the `section`-string is -prepended to all sub-sections, see the usage example above. - -The `options` object may contain the following: - -* `section` A string which will be the first `section` in the encoded - ini data. Defaults to none. -* `whitespace` Boolean to specify whether to put whitespace around the - `=` character. By default, whitespace is omitted, to be friendly to - some persnickety old parsers that don't tolerate it well. But some - find that it's more human-readable and pretty with the whitespace. - -For backwards compatibility reasons, if a `string` options is passed -in, then it is assumed to be the `section` value. - -### stringify(object, [options]) - -Alias for `encode(object, [options])` - -### safe(val) - -Escapes the string `val` such that it is safe to be used as a key or -value in an ini-file. Basically escapes quotes. For example - - ini.safe('"unsafe string"') - -would result in - - "\"unsafe string\"" - -### unsafe(val) - -Unescapes the string `val` diff --git a/Easebuzz_NodeJS_kit/node_modules/ini/ini.js b/Easebuzz_NodeJS_kit/node_modules/ini/ini.js deleted file mode 100644 index 590195d..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/ini/ini.js +++ /dev/null @@ -1,194 +0,0 @@ -exports.parse = exports.decode = decode - -exports.stringify = exports.encode = encode - -exports.safe = safe -exports.unsafe = unsafe - -var eol = typeof process !== 'undefined' && - process.platform === 'win32' ? '\r\n' : '\n' - -function encode (obj, opt) { - var children = [] - var out = '' - - if (typeof opt === 'string') { - opt = { - section: opt, - whitespace: false - } - } else { - opt = opt || {} - opt.whitespace = opt.whitespace === true - } - - var separator = opt.whitespace ? ' = ' : '=' - - Object.keys(obj).forEach(function (k, _, __) { - var val = obj[k] - if (val && Array.isArray(val)) { - val.forEach(function (item) { - out += safe(k + '[]') + separator + safe(item) + '\n' - }) - } else if (val && typeof val === 'object') { - children.push(k) - } else { - out += safe(k) + separator + safe(val) + eol - } - }) - - if (opt.section && out.length) { - out = '[' + safe(opt.section) + ']' + eol + out - } - - children.forEach(function (k, _, __) { - var nk = dotSplit(k).join('\\.') - var section = (opt.section ? opt.section + '.' : '') + nk - var child = encode(obj[k], { - section: section, - whitespace: opt.whitespace - }) - if (out.length && child.length) { - out += eol - } - out += child - }) - - return out -} - -function dotSplit (str) { - return str.replace(/\1/g, '\u0002LITERAL\\1LITERAL\u0002') - .replace(/\\\./g, '\u0001') - .split(/\./).map(function (part) { - return part.replace(/\1/g, '\\.') - .replace(/\2LITERAL\\1LITERAL\2/g, '\u0001') - }) -} - -function decode (str) { - var out = {} - var p = out - var section = null - // section |key = value - var re = /^\[([^\]]*)\]$|^([^=]+)(=(.*))?$/i - var lines = str.split(/[\r\n]+/g) - - lines.forEach(function (line, _, __) { - if (!line || line.match(/^\s*[;#]/)) return - var match = line.match(re) - if (!match) return - if (match[1] !== undefined) { - section = unsafe(match[1]) - p = out[section] = out[section] || {} - return - } - var key = unsafe(match[2]) - var value = match[3] ? unsafe(match[4]) : true - switch (value) { - case 'true': - case 'false': - case 'null': value = JSON.parse(value) - } - - // Convert keys with '[]' suffix to an array - if (key.length > 2 && key.slice(-2) === '[]') { - key = key.substring(0, key.length - 2) - if (!p[key]) { - p[key] = [] - } else if (!Array.isArray(p[key])) { - p[key] = [p[key]] - } - } - - // safeguard against resetting a previously defined - // array by accidentally forgetting the brackets - if (Array.isArray(p[key])) { - p[key].push(value) - } else { - p[key] = value - } - }) - - // {a:{y:1},"a.b":{x:2}} --> {a:{y:1,b:{x:2}}} - // use a filter to return the keys that have to be deleted. - Object.keys(out).filter(function (k, _, __) { - if (!out[k] || - typeof out[k] !== 'object' || - Array.isArray(out[k])) { - return false - } - // see if the parent section is also an object. - // if so, add it to that, and mark this one for deletion - var parts = dotSplit(k) - var p = out - var l = parts.pop() - var nl = l.replace(/\\\./g, '.') - parts.forEach(function (part, _, __) { - if (!p[part] || typeof p[part] !== 'object') p[part] = {} - p = p[part] - }) - if (p === out && nl === l) { - return false - } - p[nl] = out[k] - return true - }).forEach(function (del, _, __) { - delete out[del] - }) - - return out -} - -function isQuoted (val) { - return (val.charAt(0) === '"' && val.slice(-1) === '"') || - (val.charAt(0) === "'" && val.slice(-1) === "'") -} - -function safe (val) { - return (typeof val !== 'string' || - val.match(/[=\r\n]/) || - val.match(/^\[/) || - (val.length > 1 && - isQuoted(val)) || - val !== val.trim()) - ? JSON.stringify(val) - : val.replace(/;/g, '\\;').replace(/#/g, '\\#') -} - -function unsafe (val, doUnesc) { - val = (val || '').trim() - if (isQuoted(val)) { - // remove the single quotes before calling JSON.parse - if (val.charAt(0) === "'") { - val = val.substr(1, val.length - 2) - } - try { val = JSON.parse(val) } catch (_) {} - } else { - // walk the val to find the first not-escaped ; character - var esc = false - var unesc = '' - for (var i = 0, l = val.length; i < l; i++) { - var c = val.charAt(i) - if (esc) { - if ('\\;#'.indexOf(c) !== -1) { - unesc += c - } else { - unesc += '\\' + c - } - esc = false - } else if (';#'.indexOf(c) !== -1) { - break - } else if (c === '\\') { - esc = true - } else { - unesc += c - } - } - if (esc) { - unesc += '\\' - } - return unesc.trim() - } - return val -} diff --git a/Easebuzz_NodeJS_kit/node_modules/ini/package.json b/Easebuzz_NodeJS_kit/node_modules/ini/package.json deleted file mode 100644 index c899926..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/ini/package.json +++ /dev/null @@ -1,64 +0,0 @@ -{ - "_from": "ini@^1.3.5", - "_id": "ini@1.3.5", - "_inBundle": false, - "_integrity": "sha512-RZY5huIKCMRWDUqZlEi72f/lmXKMvuszcMBduliQ3nnWbx9X/ZBQO7DijMEYS9EhHBb2qacRUMtC7svLwe0lcw==", - "_location": "/ini", - "_phantomChildren": {}, - "_requested": { - "type": "range", - "registry": true, - "raw": "ini@^1.3.5", - "name": "ini", - "escapedName": "ini", - "rawSpec": "^1.3.5", - "saveSpec": null, - "fetchSpec": "^1.3.5" - }, - "_requiredBy": [ - "/global-dirs", - "/rc" - ], - "_resolved": "https://registry.npmjs.org/ini/-/ini-1.3.5.tgz", - "_shasum": "eee25f56db1c9ec6085e0c22778083f596abf927", - "_spec": "ini@^1.3.5", - "_where": "/home/ankit/Downloads/NodeJS/node_modules/global-dirs", - "author": { - "name": "Isaac Z. Schlueter", - "email": "i@izs.me", - "url": "http://blog.izs.me/" - }, - "bugs": { - "url": "https://github.com/isaacs/ini/issues" - }, - "bundleDependencies": false, - "dependencies": {}, - "deprecated": false, - "description": "An ini encoder/decoder for node", - "devDependencies": { - "standard": "^10.0.3", - "tap": "^10.7.3 || 11" - }, - "engines": { - "node": "*" - }, - "files": [ - "ini.js" - ], - "homepage": "https://github.com/isaacs/ini#readme", - "license": "ISC", - "main": "ini.js", - "name": "ini", - "repository": { - "type": "git", - "url": "git://github.com/isaacs/ini.git" - }, - "scripts": { - "postpublish": "git push origin --all; git push origin --tags", - "postversion": "npm publish", - "pretest": "standard ini.js", - "preversion": "npm test", - "test": "tap test/*.js --100 -J" - }, - "version": "1.3.5" -} diff --git a/Easebuzz_NodeJS_kit/node_modules/is-binary-path/index.d.ts b/Easebuzz_NodeJS_kit/node_modules/is-binary-path/index.d.ts deleted file mode 100644 index 19dcd43..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/is-binary-path/index.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** -Check if a file path is a binary file. - -@example -``` -import isBinaryPath = require('is-binary-path'); - -isBinaryPath('source/unicorn.png'); -//=> true - -isBinaryPath('source/unicorn.txt'); -//=> false -``` -*/ -declare function isBinaryPath(filePath: string): boolean; - -export = isBinaryPath; diff --git a/Easebuzz_NodeJS_kit/node_modules/is-binary-path/index.js b/Easebuzz_NodeJS_kit/node_modules/is-binary-path/index.js deleted file mode 100644 index ef7548c..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/is-binary-path/index.js +++ /dev/null @@ -1,7 +0,0 @@ -'use strict'; -const path = require('path'); -const binaryExtensions = require('binary-extensions'); - -const extensions = new Set(binaryExtensions); - -module.exports = filePath => extensions.has(path.extname(filePath).slice(1).toLowerCase()); diff --git a/Easebuzz_NodeJS_kit/node_modules/is-binary-path/license b/Easebuzz_NodeJS_kit/node_modules/is-binary-path/license deleted file mode 100644 index 401b1c7..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/is-binary-path/license +++ /dev/null @@ -1,9 +0,0 @@ -MIT License - -Copyright (c) 2019 Sindre Sorhus (https://sindresorhus.com), Paul Miller (https://paulmillr.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/Easebuzz_NodeJS_kit/node_modules/is-binary-path/package.json b/Easebuzz_NodeJS_kit/node_modules/is-binary-path/package.json deleted file mode 100644 index f87af0a..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/is-binary-path/package.json +++ /dev/null @@ -1,72 +0,0 @@ -{ - "_from": "is-binary-path@~2.1.0", - "_id": "is-binary-path@2.1.0", - "_inBundle": false, - "_integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", - "_location": "/is-binary-path", - "_phantomChildren": {}, - "_requested": { - "type": "range", - "registry": true, - "raw": "is-binary-path@~2.1.0", - "name": "is-binary-path", - "escapedName": "is-binary-path", - "rawSpec": "~2.1.0", - "saveSpec": null, - "fetchSpec": "~2.1.0" - }, - "_requiredBy": [ - "/chokidar" - ], - "_resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", - "_shasum": "ea1f7f3b80f064236e83470f86c09c254fb45b09", - "_spec": "is-binary-path@~2.1.0", - "_where": "/home/ankit/Downloads/NodeJS/node_modules/chokidar", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "bugs": { - "url": "https://github.com/sindresorhus/is-binary-path/issues" - }, - "bundleDependencies": false, - "dependencies": { - "binary-extensions": "^2.0.0" - }, - "deprecated": false, - "description": "Check if a file path is a binary file", - "devDependencies": { - "ava": "^1.4.1", - "tsd": "^0.7.2", - "xo": "^0.24.0" - }, - "engines": { - "node": ">=8" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "homepage": "https://github.com/sindresorhus/is-binary-path#readme", - "keywords": [ - "binary", - "extensions", - "extension", - "file", - "path", - "check", - "detect", - "is" - ], - "license": "MIT", - "name": "is-binary-path", - "repository": { - "type": "git", - "url": "git+https://github.com/sindresorhus/is-binary-path.git" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "version": "2.1.0" -} diff --git a/Easebuzz_NodeJS_kit/node_modules/is-binary-path/readme.md b/Easebuzz_NodeJS_kit/node_modules/is-binary-path/readme.md deleted file mode 100644 index b4ab025..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/is-binary-path/readme.md +++ /dev/null @@ -1,34 +0,0 @@ -# is-binary-path [![Build Status](https://travis-ci.org/sindresorhus/is-binary-path.svg?branch=master)](https://travis-ci.org/sindresorhus/is-binary-path) - -> Check if a file path is a binary file - - -## Install - -``` -$ npm install is-binary-path -``` - - -## Usage - -```js -const isBinaryPath = require('is-binary-path'); - -isBinaryPath('source/unicorn.png'); -//=> true - -isBinaryPath('source/unicorn.txt'); -//=> false -``` - - -## Related - -- [binary-extensions](https://github.com/sindresorhus/binary-extensions) - List of binary file extensions -- [is-text-path](https://github.com/sindresorhus/is-text-path) - Check if a filepath is a text file - - -## License - -MIT © [Sindre Sorhus](https://sindresorhus.com), [Paul Miller](https://paulmillr.com) diff --git a/Easebuzz_NodeJS_kit/node_modules/is-ci/CHANGELOG.md b/Easebuzz_NodeJS_kit/node_modules/is-ci/CHANGELOG.md deleted file mode 100644 index c519277..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/is-ci/CHANGELOG.md +++ /dev/null @@ -1,14 +0,0 @@ -# Changelog - -## v2.0.0 - -Breaking changes: - -* Drop support for Node.js end-of-life versions: 0.10, 0.12, 4, 5, 7, - and 9 - -Other changes: - -See [ci-info -changelog](https://github.com/watson/ci-info/blob/master/CHANGELOG.md#v200) -for a list of newly supported CI servers. diff --git a/Easebuzz_NodeJS_kit/node_modules/is-ci/LICENSE b/Easebuzz_NodeJS_kit/node_modules/is-ci/LICENSE deleted file mode 100644 index 6784683..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/is-ci/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2016-2018 Thomas Watson Steen - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/Easebuzz_NodeJS_kit/node_modules/is-ci/README.md b/Easebuzz_NodeJS_kit/node_modules/is-ci/README.md deleted file mode 100644 index bc3840a..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/is-ci/README.md +++ /dev/null @@ -1,50 +0,0 @@ -# is-ci - -Returns `true` if the current environment is a Continuous Integration -server. - -Please [open an issue](https://github.com/watson/is-ci/issues) if your -CI server isn't properly detected :) - -[![npm](https://img.shields.io/npm/v/is-ci.svg)](https://www.npmjs.com/package/is-ci) -[![Build status](https://travis-ci.org/watson/is-ci.svg?branch=master)](https://travis-ci.org/watson/is-ci) -[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://github.com/feross/standard) - -## Installation - -```bash -npm install is-ci --save -``` - -## Programmatic Usage - -```js -const isCI = require('is-ci') - -if (isCI) { - console.log('The code is running on a CI server') -} -``` - -## CLI Usage - -For CLI usage you need to have the `is-ci` executable in your `PATH`. -There's a few ways to do that: - -- Either install the module globally using `npm install is-ci -g` -- Or add the module as a dependency to your app in which case it can be - used inside your package.json scripts as is -- Or provide the full path to the executable, e.g. - `./node_modules/.bin/is-ci` - -```bash -is-ci && echo "This is a CI server" -``` - -## Supported CI tools - -Refer to [ci-info](https://github.com/watson/ci-info#supported-ci-tools) docs for all supported CI's - -## License - -[MIT](LICENSE) diff --git a/Easebuzz_NodeJS_kit/node_modules/is-ci/bin.js b/Easebuzz_NodeJS_kit/node_modules/is-ci/bin.js deleted file mode 100755 index 0c56c01..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/is-ci/bin.js +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/env node -'use strict' - -process.exit(require('./') ? 0 : 1) diff --git a/Easebuzz_NodeJS_kit/node_modules/is-ci/index.js b/Easebuzz_NodeJS_kit/node_modules/is-ci/index.js deleted file mode 100644 index d4cb67a..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/is-ci/index.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict' - -module.exports = require('ci-info').isCI diff --git a/Easebuzz_NodeJS_kit/node_modules/is-ci/package.json b/Easebuzz_NodeJS_kit/node_modules/is-ci/package.json deleted file mode 100644 index 4449f67..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/is-ci/package.json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "_from": "is-ci@^2.0.0", - "_id": "is-ci@2.0.0", - "_inBundle": false, - "_integrity": "sha512-YfJT7rkpQB0updsdHLGWrvhBJfcfzNNawYDNIyQXJz0IViGf75O8EBPKSdvw2rF+LGCsX4FZ8tcr3b19LcZq4w==", - "_location": "/is-ci", - "_phantomChildren": {}, - "_requested": { - "type": "range", - "registry": true, - "raw": "is-ci@^2.0.0", - "name": "is-ci", - "escapedName": "is-ci", - "rawSpec": "^2.0.0", - "saveSpec": null, - "fetchSpec": "^2.0.0" - }, - "_requiredBy": [ - "/update-notifier" - ], - "_resolved": "https://registry.npmjs.org/is-ci/-/is-ci-2.0.0.tgz", - "_shasum": "6bc6334181810e04b5c22b3d589fdca55026404c", - "_spec": "is-ci@^2.0.0", - "_where": "/home/ankit/Downloads/NodeJS/node_modules/update-notifier", - "author": { - "name": "Thomas Watson Steen", - "email": "w@tson.dk", - "url": "https://twitter.com/wa7son" - }, - "bin": { - "is-ci": "bin.js" - }, - "bugs": { - "url": "https://github.com/watson/is-ci/issues" - }, - "bundleDependencies": false, - "coordinates": [ - 55.778272, - 12.593116 - ], - "dependencies": { - "ci-info": "^2.0.0" - }, - "deprecated": false, - "description": "Detect if the current environment is a CI server", - "devDependencies": { - "clear-module": "^3.0.0", - "standard": "^12.0.1" - }, - "homepage": "https://github.com/watson/is-ci", - "keywords": [ - "ci", - "continuous", - "integration", - "test", - "detect" - ], - "license": "MIT", - "main": "index.js", - "name": "is-ci", - "repository": { - "type": "git", - "url": "git+https://github.com/watson/is-ci.git" - }, - "scripts": { - "test": "standard && node test.js" - }, - "version": "2.0.0" -} diff --git a/Easebuzz_NodeJS_kit/node_modules/is-extglob/LICENSE b/Easebuzz_NodeJS_kit/node_modules/is-extglob/LICENSE deleted file mode 100644 index 842218c..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/is-extglob/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2014-2016, Jon Schlinkert - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/Easebuzz_NodeJS_kit/node_modules/is-extglob/README.md b/Easebuzz_NodeJS_kit/node_modules/is-extglob/README.md deleted file mode 100644 index 0416af5..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/is-extglob/README.md +++ /dev/null @@ -1,107 +0,0 @@ -# is-extglob [![NPM version](https://img.shields.io/npm/v/is-extglob.svg?style=flat)](https://www.npmjs.com/package/is-extglob) [![NPM downloads](https://img.shields.io/npm/dm/is-extglob.svg?style=flat)](https://npmjs.org/package/is-extglob) [![Build Status](https://img.shields.io/travis/jonschlinkert/is-extglob.svg?style=flat)](https://travis-ci.org/jonschlinkert/is-extglob) - -> Returns true if a string has an extglob. - -## Install - -Install with [npm](https://www.npmjs.com/): - -```sh -$ npm install --save is-extglob -``` - -## Usage - -```js -var isExtglob = require('is-extglob'); -``` - -**True** - -```js -isExtglob('?(abc)'); -isExtglob('@(abc)'); -isExtglob('!(abc)'); -isExtglob('*(abc)'); -isExtglob('+(abc)'); -``` - -**False** - -Escaped extglobs: - -```js -isExtglob('\\?(abc)'); -isExtglob('\\@(abc)'); -isExtglob('\\!(abc)'); -isExtglob('\\*(abc)'); -isExtglob('\\+(abc)'); -``` - -Everything else... - -```js -isExtglob('foo.js'); -isExtglob('!foo.js'); -isExtglob('*.js'); -isExtglob('**/abc.js'); -isExtglob('abc/*.js'); -isExtglob('abc/(aaa|bbb).js'); -isExtglob('abc/[a-z].js'); -isExtglob('abc/{a,b}.js'); -isExtglob('abc/?.js'); -isExtglob('abc.js'); -isExtglob('abc/def/ghi.js'); -``` - -## History - -**v2.0** - -Adds support for escaping. Escaped exglobs no longer return true. - -## About - -### Related projects - -* [has-glob](https://www.npmjs.com/package/has-glob): Returns `true` if an array has a glob pattern. | [homepage](https://github.com/jonschlinkert/has-glob "Returns `true` if an array has a glob pattern.") -* [is-glob](https://www.npmjs.com/package/is-glob): Returns `true` if the given string looks like a glob pattern or an extglob pattern… [more](https://github.com/jonschlinkert/is-glob) | [homepage](https://github.com/jonschlinkert/is-glob "Returns `true` if the given string looks like a glob pattern or an extglob pattern. This makes it easy to create code that only uses external modules like node-glob when necessary, resulting in much faster code execution and initialization time, and a bet") -* [micromatch](https://www.npmjs.com/package/micromatch): Glob matching for javascript/node.js. A drop-in replacement and faster alternative to minimatch and multimatch. | [homepage](https://github.com/jonschlinkert/micromatch "Glob matching for javascript/node.js. A drop-in replacement and faster alternative to minimatch and multimatch.") - -### Contributing - -Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new). - -### Building docs - -_(This document was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme) (a [verb](https://github.com/verbose/verb) generator), please don't edit the readme directly. Any changes to the readme must be made in [.verb.md](.verb.md).)_ - -To generate the readme and API documentation with [verb](https://github.com/verbose/verb): - -```sh -$ npm install -g verb verb-generate-readme && verb -``` - -### Running tests - -Install dev dependencies: - -```sh -$ npm install -d && npm test -``` - -### Author - -**Jon Schlinkert** - -* [github/jonschlinkert](https://github.com/jonschlinkert) -* [twitter/jonschlinkert](http://twitter.com/jonschlinkert) - -### License - -Copyright © 2016, [Jon Schlinkert](https://github.com/jonschlinkert). -Released under the [MIT license](https://github.com/jonschlinkert/is-extglob/blob/master/LICENSE). - -*** - -_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.1.31, on October 12, 2016._ \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/is-extglob/index.js b/Easebuzz_NodeJS_kit/node_modules/is-extglob/index.js deleted file mode 100644 index c1d986f..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/is-extglob/index.js +++ /dev/null @@ -1,20 +0,0 @@ -/*! - * is-extglob - * - * Copyright (c) 2014-2016, Jon Schlinkert. - * Licensed under the MIT License. - */ - -module.exports = function isExtglob(str) { - if (typeof str !== 'string' || str === '') { - return false; - } - - var match; - while ((match = /(\\).|([@?!+*]\(.*\))/g.exec(str))) { - if (match[2]) return true; - str = str.slice(match.index + match[0].length); - } - - return false; -}; diff --git a/Easebuzz_NodeJS_kit/node_modules/is-extglob/package.json b/Easebuzz_NodeJS_kit/node_modules/is-extglob/package.json deleted file mode 100644 index 5712d1a..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/is-extglob/package.json +++ /dev/null @@ -1,100 +0,0 @@ -{ - "_from": "is-extglob@^2.1.1", - "_id": "is-extglob@2.1.1", - "_inBundle": false, - "_integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=", - "_location": "/is-extglob", - "_phantomChildren": {}, - "_requested": { - "type": "range", - "registry": true, - "raw": "is-extglob@^2.1.1", - "name": "is-extglob", - "escapedName": "is-extglob", - "rawSpec": "^2.1.1", - "saveSpec": null, - "fetchSpec": "^2.1.1" - }, - "_requiredBy": [ - "/is-glob" - ], - "_resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", - "_shasum": "a88c02535791f02ed37c76a1b9ea9773c833f8c2", - "_spec": "is-extglob@^2.1.1", - "_where": "/home/ankit/Downloads/NodeJS/node_modules/is-glob", - "author": { - "name": "Jon Schlinkert", - "url": "https://github.com/jonschlinkert" - }, - "bugs": { - "url": "https://github.com/jonschlinkert/is-extglob/issues" - }, - "bundleDependencies": false, - "deprecated": false, - "description": "Returns true if a string has an extglob.", - "devDependencies": { - "gulp-format-md": "^0.1.10", - "mocha": "^3.0.2" - }, - "engines": { - "node": ">=0.10.0" - }, - "files": [ - "index.js" - ], - "homepage": "https://github.com/jonschlinkert/is-extglob", - "keywords": [ - "bash", - "braces", - "check", - "exec", - "expression", - "extglob", - "glob", - "globbing", - "globstar", - "is", - "match", - "matches", - "pattern", - "regex", - "regular", - "string", - "test" - ], - "license": "MIT", - "main": "index.js", - "name": "is-extglob", - "repository": { - "type": "git", - "url": "git+https://github.com/jonschlinkert/is-extglob.git" - }, - "scripts": { - "test": "mocha" - }, - "verb": { - "toc": false, - "layout": "default", - "tasks": [ - "readme" - ], - "plugins": [ - "gulp-format-md" - ], - "related": { - "list": [ - "has-glob", - "is-glob", - "micromatch" - ] - }, - "reflinks": [ - "verb", - "verb-generate-readme" - ], - "lint": { - "reflinks": true - } - }, - "version": "2.1.1" -} diff --git a/Easebuzz_NodeJS_kit/node_modules/is-fullwidth-code-point/index.js b/Easebuzz_NodeJS_kit/node_modules/is-fullwidth-code-point/index.js deleted file mode 100644 index d506327..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/is-fullwidth-code-point/index.js +++ /dev/null @@ -1,46 +0,0 @@ -'use strict'; -/* eslint-disable yoda */ -module.exports = x => { - if (Number.isNaN(x)) { - return false; - } - - // code points are derived from: - // http://www.unix.org/Public/UNIDATA/EastAsianWidth.txt - if ( - x >= 0x1100 && ( - x <= 0x115f || // Hangul Jamo - x === 0x2329 || // LEFT-POINTING ANGLE BRACKET - x === 0x232a || // RIGHT-POINTING ANGLE BRACKET - // CJK Radicals Supplement .. Enclosed CJK Letters and Months - (0x2e80 <= x && x <= 0x3247 && x !== 0x303f) || - // Enclosed CJK Letters and Months .. CJK Unified Ideographs Extension A - (0x3250 <= x && x <= 0x4dbf) || - // CJK Unified Ideographs .. Yi Radicals - (0x4e00 <= x && x <= 0xa4c6) || - // Hangul Jamo Extended-A - (0xa960 <= x && x <= 0xa97c) || - // Hangul Syllables - (0xac00 <= x && x <= 0xd7a3) || - // CJK Compatibility Ideographs - (0xf900 <= x && x <= 0xfaff) || - // Vertical Forms - (0xfe10 <= x && x <= 0xfe19) || - // CJK Compatibility Forms .. Small Form Variants - (0xfe30 <= x && x <= 0xfe6b) || - // Halfwidth and Fullwidth Forms - (0xff01 <= x && x <= 0xff60) || - (0xffe0 <= x && x <= 0xffe6) || - // Kana Supplement - (0x1b000 <= x && x <= 0x1b001) || - // Enclosed Ideographic Supplement - (0x1f200 <= x && x <= 0x1f251) || - // CJK Unified Ideographs Extension B .. Tertiary Ideographic Plane - (0x20000 <= x && x <= 0x3fffd) - ) - ) { - return true; - } - - return false; -}; diff --git a/Easebuzz_NodeJS_kit/node_modules/is-fullwidth-code-point/license b/Easebuzz_NodeJS_kit/node_modules/is-fullwidth-code-point/license deleted file mode 100644 index 654d0bf..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/is-fullwidth-code-point/license +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) Sindre Sorhus (sindresorhus.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/Easebuzz_NodeJS_kit/node_modules/is-fullwidth-code-point/package.json b/Easebuzz_NodeJS_kit/node_modules/is-fullwidth-code-point/package.json deleted file mode 100644 index 6a434a9..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/is-fullwidth-code-point/package.json +++ /dev/null @@ -1,77 +0,0 @@ -{ - "_from": "is-fullwidth-code-point@^2.0.0", - "_id": "is-fullwidth-code-point@2.0.0", - "_inBundle": false, - "_integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", - "_location": "/is-fullwidth-code-point", - "_phantomChildren": {}, - "_requested": { - "type": "range", - "registry": true, - "raw": "is-fullwidth-code-point@^2.0.0", - "name": "is-fullwidth-code-point", - "escapedName": "is-fullwidth-code-point", - "rawSpec": "^2.0.0", - "saveSpec": null, - "fetchSpec": "^2.0.0" - }, - "_requiredBy": [ - "/ansi-align/string-width" - ], - "_resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", - "_shasum": "a3b30a5c4f199183167aaab93beefae3ddfb654f", - "_spec": "is-fullwidth-code-point@^2.0.0", - "_where": "/home/ankit/Downloads/NodeJS/node_modules/ansi-align/node_modules/string-width", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "bugs": { - "url": "https://github.com/sindresorhus/is-fullwidth-code-point/issues" - }, - "bundleDependencies": false, - "deprecated": false, - "description": "Check if the character represented by a given Unicode code point is fullwidth", - "devDependencies": { - "ava": "*", - "xo": "*" - }, - "engines": { - "node": ">=4" - }, - "files": [ - "index.js" - ], - "homepage": "https://github.com/sindresorhus/is-fullwidth-code-point#readme", - "keywords": [ - "fullwidth", - "full-width", - "full", - "width", - "unicode", - "character", - "char", - "string", - "str", - "codepoint", - "code", - "point", - "is", - "detect", - "check" - ], - "license": "MIT", - "name": "is-fullwidth-code-point", - "repository": { - "type": "git", - "url": "git+https://github.com/sindresorhus/is-fullwidth-code-point.git" - }, - "scripts": { - "test": "xo && ava" - }, - "version": "2.0.0", - "xo": { - "esnext": true - } -} diff --git a/Easebuzz_NodeJS_kit/node_modules/is-fullwidth-code-point/readme.md b/Easebuzz_NodeJS_kit/node_modules/is-fullwidth-code-point/readme.md deleted file mode 100644 index 093b028..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/is-fullwidth-code-point/readme.md +++ /dev/null @@ -1,39 +0,0 @@ -# is-fullwidth-code-point [![Build Status](https://travis-ci.org/sindresorhus/is-fullwidth-code-point.svg?branch=master)](https://travis-ci.org/sindresorhus/is-fullwidth-code-point) - -> Check if the character represented by a given [Unicode code point](https://en.wikipedia.org/wiki/Code_point) is [fullwidth](https://en.wikipedia.org/wiki/Halfwidth_and_fullwidth_forms) - - -## Install - -``` -$ npm install --save is-fullwidth-code-point -``` - - -## Usage - -```js -const isFullwidthCodePoint = require('is-fullwidth-code-point'); - -isFullwidthCodePoint('谢'.codePointAt()); -//=> true - -isFullwidthCodePoint('a'.codePointAt()); -//=> false -``` - - -## API - -### isFullwidthCodePoint(input) - -#### input - -Type: `number` - -[Code point](https://en.wikipedia.org/wiki/Code_point) of a character. - - -## License - -MIT © [Sindre Sorhus](https://sindresorhus.com) diff --git a/Easebuzz_NodeJS_kit/node_modules/is-glob/LICENSE b/Easebuzz_NodeJS_kit/node_modules/is-glob/LICENSE deleted file mode 100644 index 3f2eca1..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/is-glob/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2014-2017, Jon Schlinkert. - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/Easebuzz_NodeJS_kit/node_modules/is-glob/README.md b/Easebuzz_NodeJS_kit/node_modules/is-glob/README.md deleted file mode 100644 index 59444eb..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/is-glob/README.md +++ /dev/null @@ -1,206 +0,0 @@ -# is-glob [![NPM version](https://img.shields.io/npm/v/is-glob.svg?style=flat)](https://www.npmjs.com/package/is-glob) [![NPM monthly downloads](https://img.shields.io/npm/dm/is-glob.svg?style=flat)](https://npmjs.org/package/is-glob) [![NPM total downloads](https://img.shields.io/npm/dt/is-glob.svg?style=flat)](https://npmjs.org/package/is-glob) [![Linux Build Status](https://img.shields.io/travis/micromatch/is-glob.svg?style=flat&label=Travis)](https://travis-ci.org/micromatch/is-glob) [![Windows Build Status](https://img.shields.io/appveyor/ci/micromatch/is-glob.svg?style=flat&label=AppVeyor)](https://ci.appveyor.com/project/micromatch/is-glob) - -> Returns `true` if the given string looks like a glob pattern or an extglob pattern. This makes it easy to create code that only uses external modules like node-glob when necessary, resulting in much faster code execution and initialization time, and a better user experience. - -Please consider following this project's author, [Jon Schlinkert](https://github.com/jonschlinkert), and consider starring the project to show your :heart: and support. - -## Install - -Install with [npm](https://www.npmjs.com/): - -```sh -$ npm install --save is-glob -``` - -You might also be interested in [is-valid-glob](https://github.com/jonschlinkert/is-valid-glob) and [has-glob](https://github.com/jonschlinkert/has-glob). - -## Usage - -```js -var isGlob = require('is-glob'); -``` - -### Default behavior - -**True** - -Patterns that have glob characters or regex patterns will return `true`: - -```js -isGlob('!foo.js'); -isGlob('*.js'); -isGlob('**/abc.js'); -isGlob('abc/*.js'); -isGlob('abc/(aaa|bbb).js'); -isGlob('abc/[a-z].js'); -isGlob('abc/{a,b}.js'); -//=> true -``` - -Extglobs - -```js -isGlob('abc/@(a).js'); -isGlob('abc/!(a).js'); -isGlob('abc/+(a).js'); -isGlob('abc/*(a).js'); -isGlob('abc/?(a).js'); -//=> true -``` - -**False** - -Escaped globs or extglobs return `false`: - -```js -isGlob('abc/\\@(a).js'); -isGlob('abc/\\!(a).js'); -isGlob('abc/\\+(a).js'); -isGlob('abc/\\*(a).js'); -isGlob('abc/\\?(a).js'); -isGlob('\\!foo.js'); -isGlob('\\*.js'); -isGlob('\\*\\*/abc.js'); -isGlob('abc/\\*.js'); -isGlob('abc/\\(aaa|bbb).js'); -isGlob('abc/\\[a-z].js'); -isGlob('abc/\\{a,b}.js'); -//=> false -``` - -Patterns that do not have glob patterns return `false`: - -```js -isGlob('abc.js'); -isGlob('abc/def/ghi.js'); -isGlob('foo.js'); -isGlob('abc/@.js'); -isGlob('abc/+.js'); -isGlob('abc/?.js'); -isGlob(); -isGlob(null); -//=> false -``` - -Arrays are also `false` (If you want to check if an array has a glob pattern, use [has-glob](https://github.com/jonschlinkert/has-glob)): - -```js -isGlob(['**/*.js']); -isGlob(['foo.js']); -//=> false -``` - -### Option strict - -When `options.strict === false` the behavior is less strict in determining if a pattern is a glob. Meaning that -some patterns that would return `false` may return `true`. This is done so that matching libraries like [micromatch](https://github.com/micromatch/micromatch) have a chance at determining if the pattern is a glob or not. - -**True** - -Patterns that have glob characters or regex patterns will return `true`: - -```js -isGlob('!foo.js', {strict: false}); -isGlob('*.js', {strict: false}); -isGlob('**/abc.js', {strict: false}); -isGlob('abc/*.js', {strict: false}); -isGlob('abc/(aaa|bbb).js', {strict: false}); -isGlob('abc/[a-z].js', {strict: false}); -isGlob('abc/{a,b}.js', {strict: false}); -//=> true -``` - -Extglobs - -```js -isGlob('abc/@(a).js', {strict: false}); -isGlob('abc/!(a).js', {strict: false}); -isGlob('abc/+(a).js', {strict: false}); -isGlob('abc/*(a).js', {strict: false}); -isGlob('abc/?(a).js', {strict: false}); -//=> true -``` - -**False** - -Escaped globs or extglobs return `false`: - -```js -isGlob('\\!foo.js', {strict: false}); -isGlob('\\*.js', {strict: false}); -isGlob('\\*\\*/abc.js', {strict: false}); -isGlob('abc/\\*.js', {strict: false}); -isGlob('abc/\\(aaa|bbb).js', {strict: false}); -isGlob('abc/\\[a-z].js', {strict: false}); -isGlob('abc/\\{a,b}.js', {strict: false}); -//=> false -``` - -## About - -
-Contributing - -Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new). - -
- -
-Running Tests - -Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command: - -```sh -$ npm install && npm test -``` - -
- -
-Building docs - -_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_ - -To generate the readme, run the following command: - -```sh -$ npm install -g verbose/verb#dev verb-generate-readme && verb -``` - -
- -### Related projects - -You might also be interested in these projects: - -* [assemble](https://www.npmjs.com/package/assemble): Get the rocks out of your socks! Assemble makes you fast at creating web projects… [more](https://github.com/assemble/assemble) | [homepage](https://github.com/assemble/assemble "Get the rocks out of your socks! Assemble makes you fast at creating web projects. Assemble is used by thousands of projects for rapid prototyping, creating themes, scaffolds, boilerplates, e-books, UI components, API documentation, blogs, building websit") -* [base](https://www.npmjs.com/package/base): Framework for rapidly creating high quality, server-side node.js applications, using plugins like building blocks | [homepage](https://github.com/node-base/base "Framework for rapidly creating high quality, server-side node.js applications, using plugins like building blocks") -* [update](https://www.npmjs.com/package/update): Be scalable! Update is a new, open source developer framework and CLI for automating updates… [more](https://github.com/update/update) | [homepage](https://github.com/update/update "Be scalable! Update is a new, open source developer framework and CLI for automating updates of any kind in code projects.") -* [verb](https://www.npmjs.com/package/verb): Documentation generator for GitHub projects. Verb is extremely powerful, easy to use, and is used… [more](https://github.com/verbose/verb) | [homepage](https://github.com/verbose/verb "Documentation generator for GitHub projects. Verb is extremely powerful, easy to use, and is used on hundreds of projects of all sizes to generate everything from API docs to readmes.") - -### Contributors - -| **Commits** | **Contributor** | -| --- | --- | -| 47 | [jonschlinkert](https://github.com/jonschlinkert) | -| 5 | [doowb](https://github.com/doowb) | -| 1 | [phated](https://github.com/phated) | -| 1 | [danhper](https://github.com/danhper) | -| 1 | [paulmillr](https://github.com/paulmillr) | - -### Author - -**Jon Schlinkert** - -* [GitHub Profile](https://github.com/jonschlinkert) -* [Twitter Profile](https://twitter.com/jonschlinkert) -* [LinkedIn Profile](https://linkedin.com/in/jonschlinkert) - -### License - -Copyright © 2019, [Jon Schlinkert](https://github.com/jonschlinkert). -Released under the [MIT License](LICENSE). - -*** - -_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.8.0, on March 27, 2019._ \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/is-glob/index.js b/Easebuzz_NodeJS_kit/node_modules/is-glob/index.js deleted file mode 100644 index 5582651..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/is-glob/index.js +++ /dev/null @@ -1,48 +0,0 @@ -/*! - * is-glob - * - * Copyright (c) 2014-2017, Jon Schlinkert. - * Released under the MIT License. - */ - -var isExtglob = require('is-extglob'); -var chars = { '{': '}', '(': ')', '[': ']'}; -var strictRegex = /\\(.)|(^!|\*|[\].+)]\?|\[[^\\\]]+\]|\{[^\\}]+\}|\(\?[:!=][^\\)]+\)|\([^|]+\|[^\\)]+\))/; -var relaxedRegex = /\\(.)|(^!|[*?{}()[\]]|\(\?)/; - -module.exports = function isGlob(str, options) { - if (typeof str !== 'string' || str === '') { - return false; - } - - if (isExtglob(str)) { - return true; - } - - var regex = strictRegex; - var match; - - // optionally relax regex - if (options && options.strict === false) { - regex = relaxedRegex; - } - - while ((match = regex.exec(str))) { - if (match[2]) return true; - var idx = match.index + match[0].length; - - // if an open bracket/brace/paren is escaped, - // set the index to the next closing character - var open = match[1]; - var close = open ? chars[open] : null; - if (open && close) { - var n = str.indexOf(close, idx); - if (n !== -1) { - idx = n + 1; - } - } - - str = str.slice(idx); - } - return false; -}; diff --git a/Easebuzz_NodeJS_kit/node_modules/is-glob/package.json b/Easebuzz_NodeJS_kit/node_modules/is-glob/package.json deleted file mode 100644 index 10413c4..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/is-glob/package.json +++ /dev/null @@ -1,122 +0,0 @@ -{ - "_from": "is-glob@~4.0.1", - "_id": "is-glob@4.0.1", - "_inBundle": false, - "_integrity": "sha512-5G0tKtBTFImOqDnLB2hG6Bp2qcKEFduo4tZu9MT/H6NQv/ghhy30o55ufafxJ/LdH79LLs2Kfrn85TLKyA7BUg==", - "_location": "/is-glob", - "_phantomChildren": {}, - "_requested": { - "type": "range", - "registry": true, - "raw": "is-glob@~4.0.1", - "name": "is-glob", - "escapedName": "is-glob", - "rawSpec": "~4.0.1", - "saveSpec": null, - "fetchSpec": "~4.0.1" - }, - "_requiredBy": [ - "/chokidar", - "/glob-parent" - ], - "_resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.1.tgz", - "_shasum": "7567dbe9f2f5e2467bc77ab83c4a29482407a5dc", - "_spec": "is-glob@~4.0.1", - "_where": "/home/ankit/Downloads/NodeJS/node_modules/chokidar", - "author": { - "name": "Jon Schlinkert", - "url": "https://github.com/jonschlinkert" - }, - "bugs": { - "url": "https://github.com/micromatch/is-glob/issues" - }, - "bundleDependencies": false, - "contributors": [ - { - "name": "Brian Woodward", - "url": "https://twitter.com/doowb" - }, - { - "name": "Daniel Perez", - "url": "https://tuvistavie.com" - }, - { - "name": "Jon Schlinkert", - "url": "http://twitter.com/jonschlinkert" - } - ], - "dependencies": { - "is-extglob": "^2.1.1" - }, - "deprecated": false, - "description": "Returns `true` if the given string looks like a glob pattern or an extglob pattern. This makes it easy to create code that only uses external modules like node-glob when necessary, resulting in much faster code execution and initialization time, and a better user experience.", - "devDependencies": { - "gulp-format-md": "^0.1.10", - "mocha": "^3.0.2" - }, - "engines": { - "node": ">=0.10.0" - }, - "files": [ - "index.js" - ], - "homepage": "https://github.com/micromatch/is-glob", - "keywords": [ - "bash", - "braces", - "check", - "exec", - "expression", - "extglob", - "glob", - "globbing", - "globstar", - "is", - "match", - "matches", - "pattern", - "regex", - "regular", - "string", - "test" - ], - "license": "MIT", - "main": "index.js", - "name": "is-glob", - "repository": { - "type": "git", - "url": "git+https://github.com/micromatch/is-glob.git" - }, - "scripts": { - "test": "mocha" - }, - "verb": { - "layout": "default", - "plugins": [ - "gulp-format-md" - ], - "related": { - "list": [ - "assemble", - "base", - "update", - "verb" - ] - }, - "reflinks": [ - "assemble", - "bach", - "base", - "composer", - "gulp", - "has-glob", - "is-valid-glob", - "micromatch", - "npm", - "scaffold", - "verb", - "vinyl" - ] - }, - "version": "4.0.1" -} diff --git a/Easebuzz_NodeJS_kit/node_modules/is-installed-globally/index.d.ts b/Easebuzz_NodeJS_kit/node_modules/is-installed-globally/index.d.ts deleted file mode 100644 index 4c2cbba..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/is-installed-globally/index.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -/** -Check if your package was installed globally. - -@example -``` -import isInstalledGlobally = require('is-installed-globally'); - -// With `npm install your-package` -console.log(isInstalledGlobally); -//=> false - -// With `npm install --global your-package` -console.log(isInstalledGlobally); -//=> true -``` -*/ -declare const isInstalledGlobally: boolean; - -export = isInstalledGlobally; diff --git a/Easebuzz_NodeJS_kit/node_modules/is-installed-globally/index.js b/Easebuzz_NodeJS_kit/node_modules/is-installed-globally/index.js deleted file mode 100644 index 0fb4285..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/is-installed-globally/index.js +++ /dev/null @@ -1,15 +0,0 @@ -'use strict'; -const fs = require('fs'); -const globalDirs = require('global-dirs'); -const isPathInside = require('is-path-inside'); - -module.exports = (() => { - try { - return ( - isPathInside(__dirname, globalDirs.yarn.packages) || - isPathInside(__dirname, fs.realpathSync(globalDirs.npm.packages)) - ); - } catch (_) { - return false; - } -})(); diff --git a/Easebuzz_NodeJS_kit/node_modules/is-installed-globally/license b/Easebuzz_NodeJS_kit/node_modules/is-installed-globally/license deleted file mode 100644 index e7af2f7..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/is-installed-globally/license +++ /dev/null @@ -1,9 +0,0 @@ -MIT License - -Copyright (c) Sindre Sorhus (sindresorhus.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/Easebuzz_NodeJS_kit/node_modules/is-installed-globally/package.json b/Easebuzz_NodeJS_kit/node_modules/is-installed-globally/package.json deleted file mode 100644 index 223f893..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/is-installed-globally/package.json +++ /dev/null @@ -1,86 +0,0 @@ -{ - "_from": "is-installed-globally@^0.3.1", - "_id": "is-installed-globally@0.3.2", - "_inBundle": false, - "_integrity": "sha512-wZ8x1js7Ia0kecP/CHM/3ABkAmujX7WPvQk6uu3Fly/Mk44pySulQpnHG46OMjHGXApINnV4QhY3SWnECO2z5g==", - "_location": "/is-installed-globally", - "_phantomChildren": {}, - "_requested": { - "type": "range", - "registry": true, - "raw": "is-installed-globally@^0.3.1", - "name": "is-installed-globally", - "escapedName": "is-installed-globally", - "rawSpec": "^0.3.1", - "saveSpec": null, - "fetchSpec": "^0.3.1" - }, - "_requiredBy": [ - "/update-notifier" - ], - "_resolved": "https://registry.npmjs.org/is-installed-globally/-/is-installed-globally-0.3.2.tgz", - "_shasum": "fd3efa79ee670d1187233182d5b0a1dd00313141", - "_spec": "is-installed-globally@^0.3.1", - "_where": "/home/ankit/Downloads/NodeJS/node_modules/update-notifier", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "bugs": { - "url": "https://github.com/sindresorhus/is-installed-globally/issues" - }, - "bundleDependencies": false, - "dependencies": { - "global-dirs": "^2.0.1", - "is-path-inside": "^3.0.1" - }, - "deprecated": false, - "description": "Check if your package was installed globally", - "devDependencies": { - "ava": "^2.4.0", - "cpy": "^7.3.0", - "del": "^5.1.0", - "execa": "^2.0.4", - "make-dir": "^3.0.0", - "tsd": "^0.10.0", - "xo": "^0.25.3" - }, - "engines": { - "node": ">=8" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "funding": "https://github.com/sponsors/sindresorhus", - "homepage": "https://github.com/sindresorhus/is-installed-globally#readme", - "keywords": [ - "global", - "package", - "globally", - "module", - "install", - "installed", - "npm", - "yarn", - "is", - "check", - "detect", - "local", - "locally", - "cli", - "bin", - "binary" - ], - "license": "MIT", - "name": "is-installed-globally", - "repository": { - "type": "git", - "url": "git+https://github.com/sindresorhus/is-installed-globally.git" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "version": "0.3.2" -} diff --git a/Easebuzz_NodeJS_kit/node_modules/is-installed-globally/readme.md b/Easebuzz_NodeJS_kit/node_modules/is-installed-globally/readme.md deleted file mode 100644 index 545439e..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/is-installed-globally/readme.md +++ /dev/null @@ -1,34 +0,0 @@ -# is-installed-globally [![Build Status](https://travis-ci.org/sindresorhus/is-installed-globally.svg?branch=master)](https://travis-ci.org/sindresorhus/is-installed-globally) - -> Check if your package was installed globally - -Can be useful if your CLI needs different behavior when installed globally and locally. - - -## Install - -``` -$ npm install is-installed-globally -``` - - -## Usage - -```js -const isInstalledGlobally = require('is-installed-globally'); - -// With `npm install your-package` -console.log(isInstalledGlobally); -//=> false - -// With `npm install --global your-package` -console.log(isInstalledGlobally); -//=> true -``` - - -## Related - -- [import-global](https://github.com/sindresorhus/import-global) - Import a globally installed module -- [resolve-global](https://github.com/sindresorhus/resolve-global) - Resolve the path of a globally installed module -- [global-dirs](https://github.com/sindresorhus/global-dirs) - Get the directory of globally installed packages and binaries diff --git a/Easebuzz_NodeJS_kit/node_modules/is-npm/index.d.ts b/Easebuzz_NodeJS_kit/node_modules/is-npm/index.d.ts deleted file mode 100644 index 5338775..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/is-npm/index.d.ts +++ /dev/null @@ -1,41 +0,0 @@ -/** -Check if your code is running as an [npm](https://docs.npmjs.com/misc/scripts) or [yarn](https://yarnpkg.com/lang/en/docs/cli/run/) script. - -@example -``` -import {isNpmOrYarn} from 'is-npm'; - -if (isNpmOrYarn) { - console.log('Running as an npm or yarn script!'); -} -``` -*/ -export const isNpmOrYarn: boolean; - -/** -Check if your code is running as an [npm](https://docs.npmjs.com/misc/scripts) script. - -@example -``` -import {isNpm} from 'is-npm'; - -if (isNpm) { - console.log('Running as an npm script!'); -} -``` -*/ -export const isNpm: boolean; - -/** -Check if your code is running as a [yarn](https://yarnpkg.com/lang/en/docs/cli/run/) script. - -@example -``` -import {isYarn} from 'is-npm'; - -if (isYarn) { - console.log('Running as a yarn script!'); -} -``` -*/ -export const isYarn: boolean; diff --git a/Easebuzz_NodeJS_kit/node_modules/is-npm/index.js b/Easebuzz_NodeJS_kit/node_modules/is-npm/index.js deleted file mode 100644 index 270f1b1..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/is-npm/index.js +++ /dev/null @@ -1,9 +0,0 @@ -'use strict'; - -const userAgent = process.env.npm_config_user_agent; -const isYarn = Boolean(userAgent && userAgent.startsWith('yarn')); -const isNpm = Boolean(userAgent && userAgent.startsWith('npm')); - -module.exports.isNpmOrYarn = isNpm || isYarn; -module.exports.isNpm = isNpm; -module.exports.isYarn = isYarn; diff --git a/Easebuzz_NodeJS_kit/node_modules/is-npm/license b/Easebuzz_NodeJS_kit/node_modules/is-npm/license deleted file mode 100644 index e7af2f7..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/is-npm/license +++ /dev/null @@ -1,9 +0,0 @@ -MIT License - -Copyright (c) Sindre Sorhus (sindresorhus.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/Easebuzz_NodeJS_kit/node_modules/is-npm/package.json b/Easebuzz_NodeJS_kit/node_modules/is-npm/package.json deleted file mode 100644 index 242c1b0..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/is-npm/package.json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "_from": "is-npm@^4.0.0", - "_id": "is-npm@4.0.0", - "_inBundle": false, - "_integrity": "sha512-96ECIfh9xtDDlPylNPXhzjsykHsMJZ18ASpaWzQyBr4YRTcVjUvzaHayDAES2oU/3KpljhHUjtSRNiDwi0F0ig==", - "_location": "/is-npm", - "_phantomChildren": {}, - "_requested": { - "type": "range", - "registry": true, - "raw": "is-npm@^4.0.0", - "name": "is-npm", - "escapedName": "is-npm", - "rawSpec": "^4.0.0", - "saveSpec": null, - "fetchSpec": "^4.0.0" - }, - "_requiredBy": [ - "/update-notifier" - ], - "_resolved": "https://registry.npmjs.org/is-npm/-/is-npm-4.0.0.tgz", - "_shasum": "c90dd8380696df87a7a6d823c20d0b12bbe3c84d", - "_spec": "is-npm@^4.0.0", - "_where": "/home/ankit/Downloads/NodeJS/node_modules/update-notifier", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "bugs": { - "url": "https://github.com/sindresorhus/is-npm/issues" - }, - "bundleDependencies": false, - "deprecated": false, - "description": "Check if your code is running as an npm script", - "devDependencies": { - "ava": "^2.4.0", - "tsd-check": "^0.6.0", - "xo": "^0.25.3" - }, - "engines": { - "node": ">=8" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "homepage": "https://github.com/sindresorhus/is-npm#readme", - "keywords": [ - "npm", - "is", - "check", - "detect", - "env", - "environment", - "run", - "script" - ], - "license": "MIT", - "name": "is-npm", - "repository": { - "type": "git", - "url": "git+https://github.com/sindresorhus/is-npm.git" - }, - "scripts": { - "test": "xo && ava && tsd-check" - }, - "version": "4.0.0" -} diff --git a/Easebuzz_NodeJS_kit/node_modules/is-npm/readme.md b/Easebuzz_NodeJS_kit/node_modules/is-npm/readme.md deleted file mode 100644 index 1f730bf..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/is-npm/readme.md +++ /dev/null @@ -1,59 +0,0 @@ -# is-npm [![Build Status](https://travis-ci.org/sindresorhus/is-npm.svg?branch=master)](https://travis-ci.org/sindresorhus/is-npm) - -> Check if your code is running as an [npm](https://docs.npmjs.com/misc/scripts) or [yarn](https://yarnpkg.com/lang/en/docs/cli/run/) script - - -## Install - -``` -$ npm install is-npm -``` - - -## Usage - -```js -const {isNpmOrYarn, isNpm, isYarn} = require('is-npm'); - -console.table({isNpmOrYarn, isNpm, isYarn}); -``` - -```sh -$ node foo.js -# ┌─────────────┬────────┐ -# │ (index) │ Values │ -# ├─────────────┼────────┤ -# │ isNpmOrYarn │ false │ -# │ isNpm │ false │ -# │ isYarn │ false │ -# └─────────────┴────────┘ -$ npm run foo -# ┌─────────────┬────────┐ -# │ (index) │ Values │ -# ├─────────────┼────────┤ -# │ isNpmOrYarn │ true │ -# │ isNpm │ true │ -# │ isYarn │ false │ -# └─────────────┴────────┘ -$ yarn run foo -# ┌─────────────┬────────┐ -# │ (index) │ Values │ -# ├─────────────┼────────┤ -# │ isNpmOrYarn │ true │ -# │ isNpm │ false │ -# │ isYarn │ true │ -# └─────────────┴────────┘ -``` - - ---- - -
- - Get professional support for this package with a Tidelift subscription - -
- - Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies. -
-
diff --git a/Easebuzz_NodeJS_kit/node_modules/is-number/LICENSE b/Easebuzz_NodeJS_kit/node_modules/is-number/LICENSE deleted file mode 100644 index 9af4a67..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/is-number/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2014-present, Jon Schlinkert. - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/Easebuzz_NodeJS_kit/node_modules/is-number/README.md b/Easebuzz_NodeJS_kit/node_modules/is-number/README.md deleted file mode 100644 index eb8149e..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/is-number/README.md +++ /dev/null @@ -1,187 +0,0 @@ -# is-number [![NPM version](https://img.shields.io/npm/v/is-number.svg?style=flat)](https://www.npmjs.com/package/is-number) [![NPM monthly downloads](https://img.shields.io/npm/dm/is-number.svg?style=flat)](https://npmjs.org/package/is-number) [![NPM total downloads](https://img.shields.io/npm/dt/is-number.svg?style=flat)](https://npmjs.org/package/is-number) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/is-number.svg?style=flat&label=Travis)](https://travis-ci.org/jonschlinkert/is-number) - -> Returns true if the value is a finite number. - -Please consider following this project's author, [Jon Schlinkert](https://github.com/jonschlinkert), and consider starring the project to show your :heart: and support. - -## Install - -Install with [npm](https://www.npmjs.com/): - -```sh -$ npm install --save is-number -``` - -## Why is this needed? - -In JavaScript, it's not always as straightforward as it should be to reliably check if a value is a number. It's common for devs to use `+`, `-`, or `Number()` to cast a string value to a number (for example, when values are returned from user input, regex matches, parsers, etc). But there are many non-intuitive edge cases that yield unexpected results: - -```js -console.log(+[]); //=> 0 -console.log(+''); //=> 0 -console.log(+' '); //=> 0 -console.log(typeof NaN); //=> 'number' -``` - -This library offers a performant way to smooth out edge cases like these. - -## Usage - -```js -const isNumber = require('is-number'); -``` - -See the [tests](./test.js) for more examples. - -### true - -```js -isNumber(5e3); // true -isNumber(0xff); // true -isNumber(-1.1); // true -isNumber(0); // true -isNumber(1); // true -isNumber(1.1); // true -isNumber(10); // true -isNumber(10.10); // true -isNumber(100); // true -isNumber('-1.1'); // true -isNumber('0'); // true -isNumber('012'); // true -isNumber('0xff'); // true -isNumber('1'); // true -isNumber('1.1'); // true -isNumber('10'); // true -isNumber('10.10'); // true -isNumber('100'); // true -isNumber('5e3'); // true -isNumber(parseInt('012')); // true -isNumber(parseFloat('012')); // true -``` - -### False - -Everything else is false, as you would expect: - -```js -isNumber(Infinity); // false -isNumber(NaN); // false -isNumber(null); // false -isNumber(undefined); // false -isNumber(''); // false -isNumber(' '); // false -isNumber('foo'); // false -isNumber([1]); // false -isNumber([]); // false -isNumber(function () {}); // false -isNumber({}); // false -``` - -## Release history - -### 7.0.0 - -* Refactor. Now uses `.isFinite` if it exists. -* Performance is about the same as v6.0 when the value is a string or number. But it's now 3x-4x faster when the value is not a string or number. - -### 6.0.0 - -* Optimizations, thanks to @benaadams. - -### 5.0.0 - -**Breaking changes** - -* removed support for `instanceof Number` and `instanceof String` - -## Benchmarks - -As with all benchmarks, take these with a grain of salt. See the [benchmarks](./benchmark/index.js) for more detail. - -``` -# all -v7.0 x 413,222 ops/sec ±2.02% (86 runs sampled) -v6.0 x 111,061 ops/sec ±1.29% (85 runs sampled) -parseFloat x 317,596 ops/sec ±1.36% (86 runs sampled) -fastest is 'v7.0' - -# string -v7.0 x 3,054,496 ops/sec ±1.05% (89 runs sampled) -v6.0 x 2,957,781 ops/sec ±0.98% (88 runs sampled) -parseFloat x 3,071,060 ops/sec ±1.13% (88 runs sampled) -fastest is 'parseFloat,v7.0' - -# number -v7.0 x 3,146,895 ops/sec ±0.89% (89 runs sampled) -v6.0 x 3,214,038 ops/sec ±1.07% (89 runs sampled) -parseFloat x 3,077,588 ops/sec ±1.07% (87 runs sampled) -fastest is 'v6.0' -``` - -## About - -
-Contributing - -Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new). - -
- -
-Running Tests - -Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command: - -```sh -$ npm install && npm test -``` - -
- -
-Building docs - -_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_ - -To generate the readme, run the following command: - -```sh -$ npm install -g verbose/verb#dev verb-generate-readme && verb -``` - -
- -### Related projects - -You might also be interested in these projects: - -* [is-plain-object](https://www.npmjs.com/package/is-plain-object): Returns true if an object was created by the `Object` constructor. | [homepage](https://github.com/jonschlinkert/is-plain-object "Returns true if an object was created by the `Object` constructor.") -* [is-primitive](https://www.npmjs.com/package/is-primitive): Returns `true` if the value is a primitive. | [homepage](https://github.com/jonschlinkert/is-primitive "Returns `true` if the value is a primitive. ") -* [isobject](https://www.npmjs.com/package/isobject): Returns true if the value is an object and not an array or null. | [homepage](https://github.com/jonschlinkert/isobject "Returns true if the value is an object and not an array or null.") -* [kind-of](https://www.npmjs.com/package/kind-of): Get the native type of a value. | [homepage](https://github.com/jonschlinkert/kind-of "Get the native type of a value.") - -### Contributors - -| **Commits** | **Contributor** | -| --- | --- | -| 49 | [jonschlinkert](https://github.com/jonschlinkert) | -| 5 | [charlike-old](https://github.com/charlike-old) | -| 1 | [benaadams](https://github.com/benaadams) | -| 1 | [realityking](https://github.com/realityking) | - -### Author - -**Jon Schlinkert** - -* [LinkedIn Profile](https://linkedin.com/in/jonschlinkert) -* [GitHub Profile](https://github.com/jonschlinkert) -* [Twitter Profile](https://twitter.com/jonschlinkert) - -### License - -Copyright © 2018, [Jon Schlinkert](https://github.com/jonschlinkert). -Released under the [MIT License](LICENSE). - -*** - -_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.6.0, on June 15, 2018._ \ No newline at end of file diff --git a/Easebuzz_NodeJS_kit/node_modules/is-number/index.js b/Easebuzz_NodeJS_kit/node_modules/is-number/index.js deleted file mode 100644 index 27f19b7..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/is-number/index.js +++ /dev/null @@ -1,18 +0,0 @@ -/*! - * is-number - * - * Copyright (c) 2014-present, Jon Schlinkert. - * Released under the MIT License. - */ - -'use strict'; - -module.exports = function(num) { - if (typeof num === 'number') { - return num - num === 0; - } - if (typeof num === 'string' && num.trim() !== '') { - return Number.isFinite ? Number.isFinite(+num) : isFinite(+num); - } - return false; -}; diff --git a/Easebuzz_NodeJS_kit/node_modules/is-number/package.json b/Easebuzz_NodeJS_kit/node_modules/is-number/package.json deleted file mode 100644 index 6642bb0..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/is-number/package.json +++ /dev/null @@ -1,122 +0,0 @@ -{ - "_from": "is-number@^7.0.0", - "_id": "is-number@7.0.0", - "_inBundle": false, - "_integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", - "_location": "/is-number", - "_phantomChildren": {}, - "_requested": { - "type": "range", - "registry": true, - "raw": "is-number@^7.0.0", - "name": "is-number", - "escapedName": "is-number", - "rawSpec": "^7.0.0", - "saveSpec": null, - "fetchSpec": "^7.0.0" - }, - "_requiredBy": [ - "/to-regex-range" - ], - "_resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", - "_shasum": "7535345b896734d5f80c4d06c50955527a14f12b", - "_spec": "is-number@^7.0.0", - "_where": "/home/ankit/Downloads/NodeJS/node_modules/to-regex-range", - "author": { - "name": "Jon Schlinkert", - "url": "https://github.com/jonschlinkert" - }, - "bugs": { - "url": "https://github.com/jonschlinkert/is-number/issues" - }, - "bundleDependencies": false, - "contributors": [ - { - "name": "Jon Schlinkert", - "url": "http://twitter.com/jonschlinkert" - }, - { - "name": "Olsten Larck", - "url": "https://i.am.charlike.online" - }, - { - "name": "Rouven Weßling", - "url": "www.rouvenwessling.de" - } - ], - "deprecated": false, - "description": "Returns true if a number or string value is a finite number. Useful for regex matches, parsing, user input, etc.", - "devDependencies": { - "ansi": "^0.3.1", - "benchmark": "^2.1.4", - "gulp-format-md": "^1.0.0", - "mocha": "^3.5.3" - }, - "engines": { - "node": ">=0.12.0" - }, - "files": [ - "index.js" - ], - "homepage": "https://github.com/jonschlinkert/is-number", - "keywords": [ - "cast", - "check", - "coerce", - "coercion", - "finite", - "integer", - "is", - "isnan", - "is-nan", - "is-num", - "is-number", - "isnumber", - "isfinite", - "istype", - "kind", - "math", - "nan", - "num", - "number", - "numeric", - "parseFloat", - "parseInt", - "test", - "type", - "typeof", - "value" - ], - "license": "MIT", - "main": "index.js", - "name": "is-number", - "repository": { - "type": "git", - "url": "git+https://github.com/jonschlinkert/is-number.git" - }, - "scripts": { - "test": "mocha" - }, - "verb": { - "toc": false, - "layout": "default", - "tasks": [ - "readme" - ], - "related": { - "list": [ - "is-plain-object", - "is-primitive", - "isobject", - "kind-of" - ] - }, - "plugins": [ - "gulp-format-md" - ], - "lint": { - "reflinks": true - } - }, - "version": "7.0.0" -} diff --git a/Easebuzz_NodeJS_kit/node_modules/is-obj/index.d.ts b/Easebuzz_NodeJS_kit/node_modules/is-obj/index.d.ts deleted file mode 100644 index e8a985a..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/is-obj/index.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** -Check if a value is an object. - -Keep in mind that array, function, regexp, etc, are objects in JavaScript. - -@example -``` -import isObject = require('is-obj'); - -isObject({foo: 'bar'}); -//=> true - -isObject([1, 2, 3]); -//=> true - -isObject('foo'); -//=> false -``` -*/ -declare function isObject(value: unknown): value is object; - -export = isObject; diff --git a/Easebuzz_NodeJS_kit/node_modules/is-obj/index.js b/Easebuzz_NodeJS_kit/node_modules/is-obj/index.js deleted file mode 100644 index c175590..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/is-obj/index.js +++ /dev/null @@ -1,6 +0,0 @@ -'use strict'; - -module.exports = value => { - const type = typeof value; - return value !== null && (type === 'object' || type === 'function'); -}; diff --git a/Easebuzz_NodeJS_kit/node_modules/is-obj/license b/Easebuzz_NodeJS_kit/node_modules/is-obj/license deleted file mode 100644 index e7af2f7..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/is-obj/license +++ /dev/null @@ -1,9 +0,0 @@ -MIT License - -Copyright (c) Sindre Sorhus (sindresorhus.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/Easebuzz_NodeJS_kit/node_modules/is-obj/package.json b/Easebuzz_NodeJS_kit/node_modules/is-obj/package.json deleted file mode 100644 index c8441c6..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/is-obj/package.json +++ /dev/null @@ -1,66 +0,0 @@ -{ - "_from": "is-obj@^2.0.0", - "_id": "is-obj@2.0.0", - "_inBundle": false, - "_integrity": "sha512-drqDG3cbczxxEJRoOXcOjtdp1J/lyp1mNn0xaznRs8+muBhgQcrnbspox5X5fOw0HnMnbfDzvnEMEtqDEJEo8w==", - "_location": "/is-obj", - "_phantomChildren": {}, - "_requested": { - "type": "range", - "registry": true, - "raw": "is-obj@^2.0.0", - "name": "is-obj", - "escapedName": "is-obj", - "rawSpec": "^2.0.0", - "saveSpec": null, - "fetchSpec": "^2.0.0" - }, - "_requiredBy": [ - "/dot-prop" - ], - "_resolved": "https://registry.npmjs.org/is-obj/-/is-obj-2.0.0.tgz", - "_shasum": "473fb05d973705e3fd9620545018ca8e22ef4982", - "_spec": "is-obj@^2.0.0", - "_where": "/home/ankit/Downloads/NodeJS/node_modules/dot-prop", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "bugs": { - "url": "https://github.com/sindresorhus/is-obj/issues" - }, - "bundleDependencies": false, - "deprecated": false, - "description": "Check if a value is an object", - "devDependencies": { - "ava": "^1.4.1", - "tsd": "^0.7.2", - "xo": "^0.24.0" - }, - "engines": { - "node": ">=8" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "homepage": "https://github.com/sindresorhus/is-obj#readme", - "keywords": [ - "object", - "is", - "check", - "test", - "type" - ], - "license": "MIT", - "name": "is-obj", - "repository": { - "type": "git", - "url": "git+https://github.com/sindresorhus/is-obj.git" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "version": "2.0.0" -} diff --git a/Easebuzz_NodeJS_kit/node_modules/is-obj/readme.md b/Easebuzz_NodeJS_kit/node_modules/is-obj/readme.md deleted file mode 100644 index 127ee26..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/is-obj/readme.md +++ /dev/null @@ -1,39 +0,0 @@ -# is-obj [![Build Status](https://travis-ci.org/sindresorhus/is-obj.svg?branch=master)](https://travis-ci.org/sindresorhus/is-obj) - -> Check if a value is an object - -Keep in mind that array, function, regexp, etc, are objects in JavaScript.
-See [`is-plain-obj`](https://github.com/sindresorhus/is-plain-obj) if you want to check for plain objects. - - -## Install - -``` -$ npm install is-obj -``` - - -## Usage - -```js -const isObject = require('is-obj'); - -isObject({foo: 'bar'}); -//=> true - -isObject([1, 2, 3]); -//=> true - -isObject('foo'); -//=> false -``` - - -## Related - -- [is](https://github.com/sindresorhus/is) - Type check values - - -## License - -MIT © [Sindre Sorhus](https://sindresorhus.com) diff --git a/Easebuzz_NodeJS_kit/node_modules/is-path-inside/index.d.ts b/Easebuzz_NodeJS_kit/node_modules/is-path-inside/index.d.ts deleted file mode 100644 index 5cc3d80..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/is-path-inside/index.d.ts +++ /dev/null @@ -1,27 +0,0 @@ -/** -Check if a path is inside another path. - -Note that relative paths are resolved against `process.cwd()` to make them absolute. - -_Important:_ This package is meant for use with path manipulation. It does not check if the paths exist nor does it resolve symlinks. You should not use this as a security mechanism to guard against access to certain places on the file system. - -@example -``` -import isPathInside = require('is-path-inside'); - -isPathInside('a/b/c', 'a/b'); -//=> true - -isPathInside('a/b/c', 'x/y'); -//=> false - -isPathInside('a/b/c', 'a/b/c'); -//=> false - -isPathInside('/Users/sindresorhus/dev/unicorn', '/Users/sindresorhus'); -//=> true -``` -*/ -declare function isPathInside(childPath: string, parentPath: string): boolean; - -export = isPathInside; diff --git a/Easebuzz_NodeJS_kit/node_modules/is-path-inside/index.js b/Easebuzz_NodeJS_kit/node_modules/is-path-inside/index.js deleted file mode 100644 index ea08e8a..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/is-path-inside/index.js +++ /dev/null @@ -1,21 +0,0 @@ -'use strict'; -const path = require('path'); - -module.exports = (childPath, parentPath) => { - childPath = path.resolve(childPath); - parentPath = path.resolve(parentPath); - - if (process.platform === 'win32') { - childPath = childPath.toLowerCase(); - parentPath = parentPath.toLowerCase(); - } - - if (childPath === parentPath) { - return false; - } - - childPath += path.sep; - parentPath += path.sep; - - return childPath.startsWith(parentPath); -}; diff --git a/Easebuzz_NodeJS_kit/node_modules/is-path-inside/license b/Easebuzz_NodeJS_kit/node_modules/is-path-inside/license deleted file mode 100644 index e7af2f7..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/is-path-inside/license +++ /dev/null @@ -1,9 +0,0 @@ -MIT License - -Copyright (c) Sindre Sorhus (sindresorhus.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/Easebuzz_NodeJS_kit/node_modules/is-path-inside/package.json b/Easebuzz_NodeJS_kit/node_modules/is-path-inside/package.json deleted file mode 100644 index 565b9a0..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/is-path-inside/package.json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "_from": "is-path-inside@^3.0.1", - "_id": "is-path-inside@3.0.2", - "_inBundle": false, - "_integrity": "sha512-/2UGPSgmtqwo1ktx8NDHjuPwZWmHhO+gj0f93EkhLB5RgW9RZevWYYlIkS6zePc6U2WpOdQYIwHe9YC4DWEBVg==", - "_location": "/is-path-inside", - "_phantomChildren": {}, - "_requested": { - "type": "range", - "registry": true, - "raw": "is-path-inside@^3.0.1", - "name": "is-path-inside", - "escapedName": "is-path-inside", - "rawSpec": "^3.0.1", - "saveSpec": null, - "fetchSpec": "^3.0.1" - }, - "_requiredBy": [ - "/is-installed-globally" - ], - "_resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.2.tgz", - "_shasum": "f5220fc82a3e233757291dddc9c5877f2a1f3017", - "_spec": "is-path-inside@^3.0.1", - "_where": "/home/ankit/Downloads/NodeJS/node_modules/is-installed-globally", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "bugs": { - "url": "https://github.com/sindresorhus/is-path-inside/issues" - }, - "bundleDependencies": false, - "deprecated": false, - "description": "Check if a path is inside another path", - "devDependencies": { - "ava": "^2.1.0", - "tsd": "^0.7.2", - "xo": "^0.24.0" - }, - "engines": { - "node": ">=8" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "homepage": "https://github.com/sindresorhus/is-path-inside#readme", - "keywords": [ - "path", - "inside", - "folder", - "directory", - "dir", - "file", - "resolve" - ], - "license": "MIT", - "name": "is-path-inside", - "repository": { - "type": "git", - "url": "git+https://github.com/sindresorhus/is-path-inside.git" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "version": "3.0.2" -} diff --git a/Easebuzz_NodeJS_kit/node_modules/is-path-inside/readme.md b/Easebuzz_NodeJS_kit/node_modules/is-path-inside/readme.md deleted file mode 100644 index 38cb42d..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/is-path-inside/readme.md +++ /dev/null @@ -1,63 +0,0 @@ -# is-path-inside [![Build Status](https://travis-ci.org/sindresorhus/is-path-inside.svg?branch=master)](https://travis-ci.org/sindresorhus/is-path-inside) - -> Check if a path is inside another path - - -## Install - -``` -$ npm install is-path-inside -``` - - -## Usage - -```js -const isPathInside = require('is-path-inside'); - -isPathInside('a/b/c', 'a/b'); -//=> true - -isPathInside('a/b/c', 'x/y'); -//=> false - -isPathInside('a/b/c', 'a/b/c'); -//=> false - -isPathInside('/Users/sindresorhus/dev/unicorn', '/Users/sindresorhus'); -//=> true -``` - - -## API - -### isPathInside(childPath, parentPath) - -Note that relative paths are resolved against `process.cwd()` to make them absolute. - -**Important:** This package is meant for use with path manipulation. It does not check if the paths exist nor does it resolve symlinks. You should not use this as a security mechanism to guard against access to certain places on the file system. - -#### childPath - -Type: `string` - -The path that should be inside `parentPath`. - -#### parentPath - -Type: `string` - -The path that should contain `childPath`. - - ---- - -
- - Get professional support for this package with a Tidelift subscription - -
- - Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies. -
-
diff --git a/Easebuzz_NodeJS_kit/node_modules/is-typedarray/LICENSE.md b/Easebuzz_NodeJS_kit/node_modules/is-typedarray/LICENSE.md deleted file mode 100644 index ee27ba4..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/is-typedarray/LICENSE.md +++ /dev/null @@ -1,18 +0,0 @@ -This software is released under the MIT license: - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of -the Software, and to permit persons to whom the Software is furnished to do so, -subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/Easebuzz_NodeJS_kit/node_modules/is-typedarray/README.md b/Easebuzz_NodeJS_kit/node_modules/is-typedarray/README.md deleted file mode 100644 index 2752863..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/is-typedarray/README.md +++ /dev/null @@ -1,16 +0,0 @@ -# is-typedarray [![locked](http://badges.github.io/stability-badges/dist/locked.svg)](http://github.com/badges/stability-badges) - -Detect whether or not an object is a -[Typed Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Typed_arrays). - -## Usage - -[![NPM](https://nodei.co/npm/is-typedarray.png)](https://nodei.co/npm/is-typedarray/) - -### isTypedArray(array) - -Returns `true` when array is a Typed Array, and `false` when it is not. - -## License - -MIT. See [LICENSE.md](http://github.com/hughsk/is-typedarray/blob/master/LICENSE.md) for details. diff --git a/Easebuzz_NodeJS_kit/node_modules/is-typedarray/index.js b/Easebuzz_NodeJS_kit/node_modules/is-typedarray/index.js deleted file mode 100644 index 5859603..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/is-typedarray/index.js +++ /dev/null @@ -1,41 +0,0 @@ -module.exports = isTypedArray -isTypedArray.strict = isStrictTypedArray -isTypedArray.loose = isLooseTypedArray - -var toString = Object.prototype.toString -var names = { - '[object Int8Array]': true - , '[object Int16Array]': true - , '[object Int32Array]': true - , '[object Uint8Array]': true - , '[object Uint8ClampedArray]': true - , '[object Uint16Array]': true - , '[object Uint32Array]': true - , '[object Float32Array]': true - , '[object Float64Array]': true -} - -function isTypedArray(arr) { - return ( - isStrictTypedArray(arr) - || isLooseTypedArray(arr) - ) -} - -function isStrictTypedArray(arr) { - return ( - arr instanceof Int8Array - || arr instanceof Int16Array - || arr instanceof Int32Array - || arr instanceof Uint8Array - || arr instanceof Uint8ClampedArray - || arr instanceof Uint16Array - || arr instanceof Uint32Array - || arr instanceof Float32Array - || arr instanceof Float64Array - ) -} - -function isLooseTypedArray(arr) { - return names[toString.call(arr)] -} diff --git a/Easebuzz_NodeJS_kit/node_modules/is-typedarray/package.json b/Easebuzz_NodeJS_kit/node_modules/is-typedarray/package.json deleted file mode 100644 index 948a5f9..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/is-typedarray/package.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "_from": "is-typedarray@^1.0.0", - "_id": "is-typedarray@1.0.0", - "_inBundle": false, - "_integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=", - "_location": "/is-typedarray", - "_phantomChildren": {}, - "_requested": { - "type": "range", - "registry": true, - "raw": "is-typedarray@^1.0.0", - "name": "is-typedarray", - "escapedName": "is-typedarray", - "rawSpec": "^1.0.0", - "saveSpec": null, - "fetchSpec": "^1.0.0" - }, - "_requiredBy": [ - "/typedarray-to-buffer", - "/write-file-atomic" - ], - "_resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", - "_shasum": "e479c80858df0c1b11ddda6940f96011fcda4a9a", - "_spec": "is-typedarray@^1.0.0", - "_where": "/home/ankit/Downloads/NodeJS/node_modules/write-file-atomic", - "author": { - "name": "Hugh Kennedy", - "email": "hughskennedy@gmail.com", - "url": "http://hughsk.io/" - }, - "bugs": { - "url": "https://github.com/hughsk/is-typedarray/issues" - }, - "bundleDependencies": false, - "dependencies": {}, - "deprecated": false, - "description": "Detect whether or not an object is a Typed Array", - "devDependencies": { - "tape": "^2.13.1" - }, - "homepage": "https://github.com/hughsk/is-typedarray", - "keywords": [ - "typed", - "array", - "detect", - "is", - "util" - ], - "license": "MIT", - "main": "index.js", - "name": "is-typedarray", - "repository": { - "type": "git", - "url": "git://github.com/hughsk/is-typedarray.git" - }, - "scripts": { - "test": "node test" - }, - "version": "1.0.0" -} diff --git a/Easebuzz_NodeJS_kit/node_modules/is-typedarray/test.js b/Easebuzz_NodeJS_kit/node_modules/is-typedarray/test.js deleted file mode 100644 index b0c176f..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/is-typedarray/test.js +++ /dev/null @@ -1,34 +0,0 @@ -var test = require('tape') -var ista = require('./') - -test('strict', function(t) { - t.ok(ista.strict(new Int8Array), 'Int8Array') - t.ok(ista.strict(new Int16Array), 'Int16Array') - t.ok(ista.strict(new Int32Array), 'Int32Array') - t.ok(ista.strict(new Uint8Array), 'Uint8Array') - t.ok(ista.strict(new Uint16Array), 'Uint16Array') - t.ok(ista.strict(new Uint32Array), 'Uint32Array') - t.ok(ista.strict(new Float32Array), 'Float32Array') - t.ok(ista.strict(new Float64Array), 'Float64Array') - - t.ok(!ista.strict(new Array), 'Array') - t.ok(!ista.strict([]), '[]') - - t.end() -}) - -test('loose', function(t) { - t.ok(ista.loose(new Int8Array), 'Int8Array') - t.ok(ista.loose(new Int16Array), 'Int16Array') - t.ok(ista.loose(new Int32Array), 'Int32Array') - t.ok(ista.loose(new Uint8Array), 'Uint8Array') - t.ok(ista.loose(new Uint16Array), 'Uint16Array') - t.ok(ista.loose(new Uint32Array), 'Uint32Array') - t.ok(ista.loose(new Float32Array), 'Float32Array') - t.ok(ista.loose(new Float64Array), 'Float64Array') - - t.ok(!ista.loose(new Array), 'Array') - t.ok(!ista.loose([]), '[]') - - t.end() -}) diff --git a/Easebuzz_NodeJS_kit/node_modules/is-yarn-global/.travis.yml b/Easebuzz_NodeJS_kit/node_modules/is-yarn-global/.travis.yml deleted file mode 100644 index c576a02..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/is-yarn-global/.travis.yml +++ /dev/null @@ -1,4 +0,0 @@ -language: node_js -node_js: - - "8" - - "6" diff --git a/Easebuzz_NodeJS_kit/node_modules/is-yarn-global/LICENSE b/Easebuzz_NodeJS_kit/node_modules/is-yarn-global/LICENSE deleted file mode 100644 index 04d3e31..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/is-yarn-global/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2018 LitoMore - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/Easebuzz_NodeJS_kit/node_modules/is-yarn-global/README.md b/Easebuzz_NodeJS_kit/node_modules/is-yarn-global/README.md deleted file mode 100644 index d070e2a..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/is-yarn-global/README.md +++ /dev/null @@ -1,28 +0,0 @@ -# is-yarn-global - -[![](https://img.shields.io/travis/LitoMore/is-yarn-global/master.svg)](https://travis-ci.org/LitoMore/is-yarn-global) -[![](https://img.shields.io/npm/v/is-yarn-global.svg)](https://www.npmjs.com/package/is-yarn-global) -[![](https://img.shields.io/npm/l/is-yarn-global.svg)](https://github.com/LitoMore/is-yarn-global/blob/master/LICENSE) -[![](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/sindresorhus/xo) - -Check if installed by yarn globally without any `fs` calls - -## Install - -```bash -$ npm install is-yarn-global -``` - -## Usage - -Just require it in your package. - -```javascript -const isYarnGlobal = require('is-yarn-global'); - -console.log(isYarnGlobal()); -``` - -## License - -MIT © [LitoMore](https://github.com/LitoMore) diff --git a/Easebuzz_NodeJS_kit/node_modules/is-yarn-global/index.js b/Easebuzz_NodeJS_kit/node_modules/is-yarn-global/index.js deleted file mode 100644 index 4d0c642..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/is-yarn-global/index.js +++ /dev/null @@ -1,12 +0,0 @@ -'use strict'; - -const path = require('path'); - -module.exports = function () { - const isWindows = process.platform === 'win32'; - const yarnPath = isWindows ? path.join('Yarn', 'config', 'global') : path.join('.config', 'yarn', 'global'); - if (__dirname.includes(yarnPath)) { - return true; - } - return false; -}; diff --git a/Easebuzz_NodeJS_kit/node_modules/is-yarn-global/package.json b/Easebuzz_NodeJS_kit/node_modules/is-yarn-global/package.json deleted file mode 100644 index f80187a..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/is-yarn-global/package.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "_from": "is-yarn-global@^0.3.0", - "_id": "is-yarn-global@0.3.0", - "_inBundle": false, - "_integrity": "sha512-VjSeb/lHmkoyd8ryPVIKvOCn4D1koMqY+vqyjjUfc3xyKtP4dYOxM44sZrnqQSzSds3xyOrUTLTC9LVCVgLngw==", - "_location": "/is-yarn-global", - "_phantomChildren": {}, - "_requested": { - "type": "range", - "registry": true, - "raw": "is-yarn-global@^0.3.0", - "name": "is-yarn-global", - "escapedName": "is-yarn-global", - "rawSpec": "^0.3.0", - "saveSpec": null, - "fetchSpec": "^0.3.0" - }, - "_requiredBy": [ - "/update-notifier" - ], - "_resolved": "https://registry.npmjs.org/is-yarn-global/-/is-yarn-global-0.3.0.tgz", - "_shasum": "d502d3382590ea3004893746754c89139973e232", - "_spec": "is-yarn-global@^0.3.0", - "_where": "/home/ankit/Downloads/NodeJS/node_modules/update-notifier", - "author": { - "name": "LitoMore", - "url": "litomore@gmail.com" - }, - "bugs": { - "url": "https://github.com/LitoMore/is-yarn-global/issues" - }, - "bundleDependencies": false, - "deprecated": false, - "description": "Check if installed by yarn globally without any `fs` calls", - "devDependencies": { - "ava": "^0.24.0", - "xo": "^0.18.2" - }, - "homepage": "https://github.com/LitoMore/is-yarn-global#readme", - "license": "MIT", - "name": "is-yarn-global", - "repository": { - "type": "git", - "url": "git+ssh://git@github.com/LitoMore/is-yarn-global.git" - }, - "scripts": { - "test": "xo" - }, - "version": "0.3.0" -} diff --git a/Easebuzz_NodeJS_kit/node_modules/jake/Makefile b/Easebuzz_NodeJS_kit/node_modules/jake/Makefile deleted file mode 100644 index 3d0574e..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/jake/Makefile +++ /dev/null @@ -1,44 +0,0 @@ -# -# Jake JavaScript build tool -# Copyright 2112 Matthew Eernisse (mde@fleegix.org) -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -.PHONY: all build install clean uninstall - -PREFIX=/usr/local -DESTDIR= - -all: build - -build: - @echo 'Jake built.' - -install: - @mkdir -p $(DESTDIR)$(PREFIX)/bin && \ - mkdir -p $(DESTDIR)$(PREFIX)/lib/node_modules/jake && \ - mkdir -p ./node_modules && \ - npm install utilities minimatch && \ - cp -R ./* $(DESTDIR)$(PREFIX)/lib/node_modules/jake/ && \ - ln -snf ../lib/node_modules/jake/bin/cli.js $(DESTDIR)$(PREFIX)/bin/jake && \ - chmod 755 $(DESTDIR)$(PREFIX)/lib/node_modules/jake/bin/cli.js && \ - echo 'Jake installed.' - -clean: - @true - -uninstall: - @rm -f $(DESTDIR)$(PREFIX)/bin/jake && \ - rm -fr $(DESTDIR)$(PREFIX)/lib/node_modules/jake/ && \ - echo 'Jake uninstalled.' diff --git a/Easebuzz_NodeJS_kit/node_modules/jake/README.md b/Easebuzz_NodeJS_kit/node_modules/jake/README.md deleted file mode 100644 index e938850..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/jake/README.md +++ /dev/null @@ -1,17 +0,0 @@ -### Jake -- the JavaScript build tool for Node.js - -[![Build Status](https://travis-ci.org/jakejs/jake.svg?branch=master)](https://travis-ci.org/jakejs/jake) - -Documentation site at [http://jakejs.com](http://jakejs.com/) - -### Contributing -1. [Install node](http://nodejs.org/#download). -2. Clone this repository `$ git clone git@github.com:jakejs/jake.git`. -3. Install dependencies `$ npm install`. -4. Run tests with `$ npm test`. -5. Start Hacking! - -### License - -Licensed under the Apache License, Version 2.0 -() diff --git a/Easebuzz_NodeJS_kit/node_modules/jake/bin/bash_completion.sh b/Easebuzz_NodeJS_kit/node_modules/jake/bin/bash_completion.sh deleted file mode 100755 index bb25995..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/jake/bin/bash_completion.sh +++ /dev/null @@ -1,41 +0,0 @@ -#!/bin/bash - -# http://stackoverflow.com/a/246128 -SOURCE="${BASH_SOURCE[0]}" -while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink - DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )" - SOURCE="$(readlink "$SOURCE")" - [[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE" # if $SOURCE was a relative symlink, we need to resolve it relative to the path where the symlink file was located -done -JAKE_BIN_DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )" - -# http://stackoverflow.com/a/12495480 -# http://stackoverflow.com/a/28647824 -_auto_jake() -{ - local cur - local -a COMPGEN=() - _get_comp_words_by_ref -n : -c cur - - # run auto-completions in jake via our auto_complete.js wrapper - local -a auto_complete_info=( $(export COMP_LINE="${COMP_LINE}" && ${JAKE_BIN_DIR}/auto_complete.js "$cur" "${3}") ) - # check reply flag - local reply_flag="${auto_complete_info[0]}" - if [[ "${reply_flag}" == "no-complete" ]]; then - return 1 - fi - local auto_completions=("${auto_complete_info[@]:1}") - COMPGEN=( $(compgen -W "${auto_completions[*]}" -- "$cur") ) - COMPREPLY=( "${COMPGEN[@]}" ) - - __ltrim_colon_completions "$cur" - - # do we need another space?? - if [[ "${reply_flag}" == "yes-space" ]]; then - COMPREPLY=( "${COMPGEN[@]}" " " ) - fi - - return 0 -} - -complete -o default -F _auto_jake jake diff --git a/Easebuzz_NodeJS_kit/node_modules/jake/bin/cli.js b/Easebuzz_NodeJS_kit/node_modules/jake/bin/cli.js deleted file mode 100755 index 9f68abb..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/jake/bin/cli.js +++ /dev/null @@ -1,31 +0,0 @@ -#!/usr/bin/env node -/* - * Jake JavaScript build tool - * Copyright 2112 Matthew Eernisse (mde@fleegix.org) - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * -*/ - -// Try to load a local jake -try { - require(`${ process.cwd() }/node_modules/jake`); -} -// If that fails, likely running globally -catch(e) { - require('../lib/jake'); -} - -var args = process.argv.slice(2); - -jake.run.apply(jake, args); diff --git a/Easebuzz_NodeJS_kit/node_modules/jake/jakefile.js b/Easebuzz_NodeJS_kit/node_modules/jake/jakefile.js deleted file mode 100644 index b0ae79b..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/jake/jakefile.js +++ /dev/null @@ -1,105 +0,0 @@ -let fs = require('fs') -let path = require('path'); -let proc = require('child_process'); - -const PROJECT_DIR = process.cwd(); -process.env.PROJECT_DIR = PROJECT_DIR; - -namespace('doc', function () { - task('generate', ['doc:clobber'], function () { - var cmd = '../node-jsdoc-toolkit/app/run.js -n -r=100 ' + - '-t=../node-jsdoc-toolkit/templates/codeview -d=./doc/ ./lib'; - jake.logger.log('Generating docs ...'); - jake.exec([cmd], function () { - jake.logger.log('Done.'); - complete(); - }); - }, {async: true}); - - task('clobber', function () { - var cmd = 'rm -fr ./doc/*'; - jake.exec([cmd], function () { - jake.logger.log('Clobbered old docs.'); - complete(); - }); - }, {async: true}); - -}); - -desc('Generate docs for Jake'); -task('doc', ['doc:generate']); - -npmPublishTask('jake', function () { - this.packageFiles.include([ - 'Makefile', - 'jakefile.js', - 'README.md', - 'package.json', - 'usage.txt', - 'lib/**', - 'bin/**', - 'test/**' - ]); - this.packageFiles.exclude([ - 'test/tmp' - ]); -}); - -jake.Task['publish:package'].directory = PROJECT_DIR; - -namespace('test', function () { - - let integrationTest = task('integration', ['publish:package'], async function () { - let pkg = JSON.parse(fs.readFileSync(`${PROJECT_DIR}/package.json`).toString()); - let version = pkg.version; - - proc.execSync('rm -rf ./node_modules'); - // Install from the actual package, run tests from the packaged binary - proc.execSync(`mkdir -p node_modules/.bin && mv ${PROJECT_DIR}/pkg/jake-v` + - `${version} node_modules/jake && ln -s ${process.cwd()}` + - '/node_modules/jake/bin/cli.js ./node_modules/.bin/jake'); - - let testArgs = []; - if (process.env.filter) { - testArgs.push(process.env.filter); - } - else { - testArgs.push('*.js'); - } - let spawned = proc.spawn(`${PROJECT_DIR}/node_modules/.bin/mocha`, testArgs, { - stdio: 'inherit' - }); - return new Promise((resolve, reject) => { - spawned.on('exit', () => { - if (!(process.env.noclobber || process.env.noClobber)) { - proc.execSync('rm -rf tmp_publish && rm -rf package.json' + - ' && rm -rf package-lock.json && rm -rf node_modules'); - // Rather than invoking 'clobber' task - jake.rmRf(`${PROJECT_DIR}/pkg`); - } - resolve(); - }); - }); - - }); - - integrationTest.directory = `${PROJECT_DIR}/test/integration`; - - let unitTest = task('unit', async function () { - let testArgs = []; - if (process.env.filter) { - testArgs.push(process.env.filter); - } - else { - testArgs.push('*.js'); - } - let spawned = proc.spawn(`${PROJECT_DIR}/node_modules/.bin/mocha`, testArgs, { - stdio: 'inherit' - }); - }); - - unitTest.directory = `${PROJECT_DIR}/test/unit`; -}); - -desc('Runs all tests'); -task('test', ['test:unit', 'test:integration']); diff --git a/Easebuzz_NodeJS_kit/node_modules/jake/lib/api.js b/Easebuzz_NodeJS_kit/node_modules/jake/lib/api.js deleted file mode 100644 index 9f09140..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/jake/lib/api.js +++ /dev/null @@ -1,409 +0,0 @@ -/* - * Jake JavaScript build tool - * Copyright 2112 Matthew Eernisse (mde@fleegix.org) - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * -*/ -let { uuid } = require('./utils'); - -let api = new (function () { - /** - @name task - @static - @function - @description Creates a Jake Task - ` - @param {String} name The name of the Task - @param {Array} [prereqs] Prerequisites to be run before this task - @param {Function} [action] The action to perform for this task - @param {Object} [opts] - @param {Boolean} [opts.asyc=false] Perform this task asynchronously. - If you flag a task with this option, you must call the global - `complete` method inside the task's action, for execution to proceed - to the next task. - - @example - desc('This is the default task.'); - task('default', function (params) { - console.log('This is the default task.'); - }); - - desc('This task has prerequisites.'); - task('hasPrereqs', ['foo', 'bar', 'baz'], function (params) { - console.log('Ran some prereqs first.'); - }); - - desc('This is an asynchronous task.'); - task('asyncTask', function () { - setTimeout(complete, 1000); - }, {async: true}); - */ - this.task = function (name, prereqs, action, opts) { - let args = Array.prototype.slice.call(arguments); - let createdTask; - args.unshift('task'); - createdTask = jake.createTask.apply(global, args); - jake.currentTaskDescription = null; - return createdTask; - }; - - /** - @name rule - @static - @function - @description Creates a Jake Suffix Rule - ` - @param {String} pattern The suffix name of the objective - @param {String} source The suffix name of the objective - @param {Array} [prereqs] Prerequisites to be run before this task - @param {Function} [action] The action to perform for this task - @param {Object} [opts] - @param {Boolean} [opts.asyc=false] Perform this task asynchronously. - If you flag a task with this option, you must call the global - `complete` method inside the task's action, for execution to proceed - to the next task. - @example - desc('This is a rule, which does not support namespace or pattern.'); - rule('.o', '.c', {async: true}, function () { - let cmd = util.format('gcc -o %s %s', this.name, this.source); - jake.exec([cmd], function () { - complete(); - }, {printStdout: true}); - }); - - desc('This rule has prerequisites.'); - rule('.o', '.c', ['util.h'], {async: true}, function () { - let cmd = util.format('gcc -o %s %s', this.name, this.source); - jake.exec([cmd], function () { - complete(); - }, {printStdout: true}); - }); - - desc('This is a rule with patterns.'); - rule('%.o', '%.c', {async: true}, function () { - let cmd = util.format('gcc -o %s %s', this.name, this.source); - jake.exec([cmd], function () { - complete(); - }, {printStdout: true}); - }); - - desc('This is another rule with patterns.'); - rule('obj/%.o', 'src/%.c', {async: true}, function () { - let cmd = util.format('gcc -o %s %s', this.name, this.source); - jake.exec([cmd], function () { - complete(); - }, {printStdout: true}); - }); - - desc('This is an example with chain rules.'); - rule('%.pdf', '%.dvi', {async: true}, function () { - let cmd = util.format('dvipdfm %s',this.source); - jake.exec([cmd], function () { - complete(); - }, {printStdout: true}); - }); - - rule('%.dvi', '%.tex', {async: true}, function () { - let cmd = util.format('latex %s',this.source); - jake.exec([cmd], function () { - complete(); - }, {printStdout: true}); - }); - - desc('This rule has a namespace.'); - task('default', ['debug:obj/main.o]); - - namespace('debug', {async: true}, function() { - rule('obj/%.o', 'src/%.c', function () { - // ... - }); - } - */ - this.rule = function () { - let args = Array.prototype.slice.call(arguments); - let arg; - let pattern = args.shift(); - let source = args.shift(); - let prereqs = []; - let action = function () {}; - let opts = {}; - let key = pattern.toString(); // May be a RegExp - - while ((arg = args.shift())) { - if (typeof arg == 'function') { - action = arg; - } - else if (Array.isArray(arg)) { - prereqs = arg; - } - else { - opts = arg; - } - } - - jake.currentNamespace.rules[key] = new jake.Rule({ - pattern: pattern, - source: source, - prereqs: prereqs, - action: action, - opts: opts, - desc: jake.currentTaskDescription, - ns: jake.currentNamespace - }); - jake.currentTaskDescription = null; - }; - - /** - @name directory - @static - @function - @description Creates a Jake DirectoryTask. Can be used as a prerequisite - for FileTasks, or for simply ensuring a directory exists for use with a - Task's action. - ` - @param {String} name The name of the DiretoryTask - - @example - - // Creates the package directory for distribution - directory('pkg'); - */ - this.directory = function (name) { - let args = Array.prototype.slice.call(arguments); - let createdTask; - args.unshift('directory'); - createdTask = jake.createTask.apply(global, args); - jake.currentTaskDescription = null; - return createdTask; - }; - - /** - @name file - @static - @function - @description Creates a Jake FileTask. - ` - @param {String} name The name of the FileTask - @param {Array} [prereqs] Prerequisites to be run before this task - @param {Function} [action] The action to create this file, if it doesn't - exist already. - @param {Object} [opts] - @param {Array} [opts.asyc=false] Perform this task asynchronously. - If you flag a task with this option, you must call the global - `complete` method inside the task's action, for execution to proceed - to the next task. - - */ - this.file = function (name, prereqs, action, opts) { - let args = Array.prototype.slice.call(arguments); - let createdTask; - args.unshift('file'); - createdTask = jake.createTask.apply(global, args); - jake.currentTaskDescription = null; - return createdTask; - }; - - /** - @name desc - @static - @function - @description Creates a description for a Jake Task (or FileTask, - DirectoryTask). When invoked, the description that iscreated will - be associated with whatever Task is created next. - ` - @param {String} description The description for the Task - */ - this.desc = function (description) { - jake.currentTaskDescription = description; - }; - - /** - @name namespace - @static - @function - @description Creates a namespace which allows logical grouping - of tasks, and prevents name-collisions with task-names. Namespaces - can be nested inside of other namespaces. - ` - @param {String} name The name of the namespace - @param {Function} scope The enclosing scope for the namespaced tasks - - @example - namespace('doc', function () { - task('generate', ['doc:clobber'], function () { - // Generate some docs - }); - - task('clobber', function () { - // Clobber the doc directory first - }); - }); - */ - this.namespace = function (name, closure) { - let curr = jake.currentNamespace; - let ns = curr.childNamespaces[name] || new jake.Namespace(name, curr); - let fn = closure || function () {}; - curr.childNamespaces[name] = ns; - jake.currentNamespace = ns; - fn(); - jake.currentNamespace = curr; - jake.currentTaskDescription = null; - return ns; - }; - - /** - @name complete - @static - @function - @description Completes an asynchronous task, allowing Jake's - execution to proceed to the next task. Calling complete globally or without - arguments completes the last task on the invocationChain. If you use parallel - execution of prereqs this will probably complete a wrong task. You should call this - function with this task as the first argument, before the optional return value. - Alternatively you can call task.complete() - ` - @example - task('generate', ['doc:clobber'], function () { - exec('./generate_docs.sh', function (err, stdout, stderr) { - if (err || stderr) { - fail(err || stderr); - } - else { - console.log(stdout); - complete(); - } - }); - }, {async: true}); - */ - this.complete = function (task, val) { - //this should detect if the first arg is a task, but I guess it should be more thorough - if(task && task. _currentPrereqIndex >=0 ) { - task.complete(val); - } - else { - val = task; - if(jake._invocationChain.length > 0) { - jake._invocationChain[jake._invocationChain.length-1].complete(val); - } - } - }; - - /** - @name fail - @static - @function - @description Causes Jake execution to abort with an error. - Allows passing an optional error code, which will be used to - set the exit-code of exiting process. - ` - @param {Error|String} err The error to thow when aborting execution. - If this argument is an Error object, it will simply be thrown. If - a String, it will be used as the error-message. (If it is a multi-line - String, the first line will be used as the Error message, and the - remaining lines will be used as the error-stack.) - - @example - task('createTests, function () { - if (!fs.existsSync('./tests')) { - fail('Test directory does not exist.'); - } - else { - // Do some testing stuff ... - } - }); - */ - this.fail = function (err, code) { - let msg; - let errObj; - if (code) { - jake.errorCode = code; - } - if (err) { - if (typeof err == 'string') { - // Use the initial or only line of the error as the error-message - // If there was a multi-line error, use the rest as the stack - msg = err.split('\n'); - errObj = new Error(msg.shift()); - if (msg.length) { - errObj.stack = msg.join('\n'); - } - throw errObj; - } - else if (err instanceof Error) { - throw err; - } - else { - throw new Error(err.toString()); - } - } - else { - throw new Error(); - } - }; - - this.packageTask = function (name, version, prereqs, definition) { - return new jake.PackageTask(name, version, prereqs, definition); - }; - - this.publishTask = function (name, prereqs, opts, definition) { - return new jake.PublishTask(name, prereqs, opts, definition); - }; - - // Backward-compat - this.npmPublishTask = function (name, prereqs, opts, definition) { - return new jake.PublishTask(name, prereqs, opts, definition); - }; - - this.testTask = function () { - let ctor = function () {}; - let t; - ctor.prototype = jake.TestTask.prototype; - t = new ctor(); - jake.TestTask.apply(t, arguments); - return t; - }; - - this.setTaskTimeout = function (t) { - this._taskTimeout = t; - }; - - this.setSeriesAutoPrefix = function (prefix) { - this._seriesAutoPrefix = prefix; - }; - - this.series = function (...args) { - let prereqs = args.map((arg) => { - let name = (this._seriesAutoPrefix || '') + arg.name; - jake.task(name, arg); - return name; - }); - let seriesName = uuid(); - let seriesTask = jake.task(seriesName, prereqs); - seriesTask._internal = true; - let res = function () { - return new Promise((resolve) => { - seriesTask.invoke(); - seriesTask.on('complete', (val) => { - resolve(val); - }); - }); - }; - Object.defineProperty(res, 'name', {value: uuid(), - writable: false}); - return res; - }; - -})(); - -module.exports = api; diff --git a/Easebuzz_NodeJS_kit/node_modules/jake/lib/jake.js b/Easebuzz_NodeJS_kit/node_modules/jake/lib/jake.js deleted file mode 100644 index a463163..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/jake/lib/jake.js +++ /dev/null @@ -1,319 +0,0 @@ -/* - * Jake JavaScript build tool - * Copyright 2112 Matthew Eernisse (mde@fleegix.org) - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * -*/ - -if (!global.jake) { - - let EventEmitter = require('events').EventEmitter; - // And so it begins - global.jake = new EventEmitter(); - - let fs = require('fs'); - let chalk = require('chalk'); - let taskNs = require('./task'); - let Task = taskNs.Task; - let FileTask = taskNs.FileTask; - let DirectoryTask = taskNs.DirectoryTask; - let Rule = require('./rule').Rule; - let Namespace = require('./namespace').Namespace; - let RootNamespace = require('./namespace').RootNamespace; - let api = require('./api'); - let utils = require('./utils'); - let Program = require('./program').Program; - let loader = require('./loader')(); - let pkg = JSON.parse(fs.readFileSync(__dirname + '/../package.json').toString()); - - const MAX_RULE_RECURSION_LEVEL = 16; - - // Globalize jake and top-level API methods (e.g., `task`, `desc`) - Object.assign(global, api); - - // Copy utils onto base jake - jake.logger = utils.logger; - jake.exec = utils.exec; - - // File utils should be aliased directly on base jake as well - Object.assign(jake, utils.file); - - // Also add top-level API methods to exported object for those who don't want to - // use the globals (`file` here will overwrite the 'file' utils namespace) - Object.assign(jake, api); - - Object.assign(jake, new (function () { - - this._invocationChain = []; - this._taskTimeout = 30000; - - // Public properties - // ================= - this.version = pkg.version; - // Used when Jake exits with a specific error-code - this.errorCode = null; - // Loads Jakefiles/jakelibdirs - this.loader = loader; - // The root of all ... namespaces - this.rootNamespace = new RootNamespace(); - // Non-namespaced tasks are placed into the default - this.defaultNamespace = this.rootNamespace; - // Start in the default - this.currentNamespace = this.defaultNamespace; - // Saves the description created by a 'desc' call that prefaces a - // 'task' call that defines a task. - this.currentTaskDescription = null; - this.program = new Program(); - this.FileList = require('filelist').FileList; - this.PackageTask = require('./package_task').PackageTask; - this.PublishTask = require('./publish_task').PublishTask; - this.TestTask = require('./test_task').TestTask; - this.Task = Task; - this.FileTask = FileTask; - this.DirectoryTask = DirectoryTask; - this.Namespace = Namespace; - this.Rule = Rule; - - this.parseAllTasks = function () { - let _parseNs = function (ns) { - let nsTasks = ns.tasks; - let nsNamespaces = ns.childNamespaces; - for (let q in nsTasks) { - let nsTask = nsTasks[q]; - jake.Task[nsTask.fullName] = nsTask; - } - for (let p in nsNamespaces) { - let nsNamespace = nsNamespaces[p]; - _parseNs(nsNamespace); - } - }; - _parseNs(jake.defaultNamespace); - }; - - /** - * Displays the list of descriptions avaliable for tasks defined in - * a Jakefile - */ - this.showAllTaskDescriptions = function (f) { - let p; - let maxTaskNameLength = 0; - let task; - let padding; - let name; - let descr; - let filter = typeof f == 'string' ? f : null; - - for (p in jake.Task) { - if (!Object.prototype.hasOwnProperty.call(jake.Task, p)) { - continue; - } - if (filter && p.indexOf(filter) == -1) { - continue; - } - task = jake.Task[p]; - // Record the length of the longest task name -- used for - // pretty alignment of the task descriptions - if (task.description) { - maxTaskNameLength = p.length > maxTaskNameLength ? - p.length : maxTaskNameLength; - } - } - // Print out each entry with descriptions neatly aligned - for (p in jake.Task) { - if (!Object.prototype.hasOwnProperty.call(jake.Task, p)) { - continue; - } - if (filter && p.indexOf(filter) == -1) { - continue; - } - task = jake.Task[p]; - - //name = '\033[32m' + p + '\033[39m '; - name = chalk.green(p); - - descr = task.description; - if (descr) { - descr = chalk.gray('# ' + descr); - - // Create padding-string with calculated length - padding = (new Array(maxTaskNameLength - p.length + 2)).join(' '); - - console.log('jake ' + name + padding + descr); - } - } - }; - - this.createTask = function () { - let args = Array.prototype.slice.call(arguments); - let arg; - let obj; - let task; - let type; - let name; - let action; - let opts = {}; - let prereqs = []; - - type = args.shift(); - - // name, [deps], [action] - // Name (string) + deps (array) format - if (typeof args[0] == 'string') { - name = args.shift(); - if (Array.isArray(args[0])) { - prereqs = args.shift(); - } - } - // name:deps, [action] - // Legacy object-literal syntax, e.g.: {'name': ['depA', 'depB']} - else { - obj = args.shift(); - for (let p in obj) { - prereqs = prereqs.concat(obj[p]); - name = p; - } - } - - // Optional opts/callback or callback/opts - while ((arg = args.shift())) { - if (typeof arg == 'function') { - action = arg; - } - else { - opts = Object.assign(Object.create(null), arg); - } - } - - task = jake.currentNamespace.resolveTask(name); - if (task && !action) { - // Task already exists and no action, just update prereqs, and return it. - task.prereqs = task.prereqs.concat(prereqs); - return task; - } - - switch (type) { - case 'directory': - action = function () { - jake.mkdirP(name); - }; - task = new DirectoryTask(name, prereqs, action, opts); - break; - case 'file': - task = new FileTask(name, prereqs, action, opts); - break; - default: - task = new Task(name, prereqs, action, opts); - } - - jake.currentNamespace.addTask(task); - - if (jake.currentTaskDescription) { - task.description = jake.currentTaskDescription; - jake.currentTaskDescription = null; - } - - // FIXME: Should only need to add a new entry for the current - // task-definition, not reparse the entire structure - jake.parseAllTasks(); - - return task; - }; - - this.attemptRule = function (name, ns, level) { - let prereqRule; - let prereq; - if (level > MAX_RULE_RECURSION_LEVEL) { - return null; - } - // Check Rule - prereqRule = ns.matchRule(name); - if (prereqRule) { - prereq = prereqRule.createTask(name, level); - } - return prereq || null; - }; - - this.createPlaceholderFileTask = function (name, namespace) { - let parsed = name.split(':'); - let filePath = parsed.pop(); // Strip any namespace - let task; - - task = namespace.resolveTask(name); - - // If there's not already an existing dummy FileTask for it, - // create one - if (!task) { - // Create a dummy FileTask only if file actually exists - if (fs.existsSync(filePath)) { - task = new jake.FileTask(filePath); - task.dummy = true; - let ns; - if (parsed.length) { - ns = namespace.resolveNamespace(parsed.join(':')); - } - else { - ns = namespace; - } - if (!namespace) { - throw new Error('Invalid namespace, cannot add FileTask'); - } - ns.addTask(task); - // Put this dummy Task in the global Tasks list so - // modTime will be eval'd correctly - jake.Task[`${ns.path}:${filePath}`] = task; - } - } - - return task || null; - }; - - - this.run = function () { - let args = Array.prototype.slice.call(arguments); - let program = this.program; - let loader = this.loader; - let preempt; - let opts; - - program.parseArgs(args); - program.init(); - - preempt = program.firstPreemptiveOption(); - if (preempt) { - preempt(); - } - else { - opts = program.opts; - // jakefile flag set but no jakefile yet - if (opts.autocomplete && opts.jakefile === true) { - process.stdout.write('no-complete'); - return; - } - // Load Jakefile and jakelibdir files - let jakefileLoaded = loader.loadFile(opts.jakefile); - let jakelibdirLoaded = loader.loadDirectory(opts.jakelibdir); - - if(!jakefileLoaded && !jakelibdirLoaded && !opts.autocomplete) { - fail('No Jakefile. Specify a valid path with -f/--jakefile, ' + - 'or place one in the current directory.'); - } - - program.run(); - } - }; - - })()); -} - -module.exports = jake; diff --git a/Easebuzz_NodeJS_kit/node_modules/jake/lib/loader.js b/Easebuzz_NodeJS_kit/node_modules/jake/lib/loader.js deleted file mode 100644 index 02ad262..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/jake/lib/loader.js +++ /dev/null @@ -1,165 +0,0 @@ -/* - * Jake JavaScript build tool - * Copyright 2112 Matthew Eernisse (mde@fleegix.org) - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * -*/ - -let path = require('path'); -let fs = require('fs'); -let existsSync = fs.existsSync; -let utils = require('./utils'); - -// Files like jakelib/foobar.jake.js -const JAKELIB_FILE_PAT = /\.jake$|\.js$/; -const SUPPORTED_EXTENSIONS = { - 'js': null, - 'coffee': function () { - try { - let cs = require('coffeescript'); - if (typeof cs.register == 'function') { - cs.register(); - } - } - catch(e) { - throw new Error('You have a CoffeeScript Jakefile, but have not installed CoffeeScript'); - } - }, - 'ls': function () { - try { - require('livescript'); - } - catch (e) { - throw new Error('You have a LiveScript Jakefile, but have not installed LiveScript'); - } - } -}; -const IMPLICIT_JAKEFILE_NAMES = [ - 'Jakefile', - 'Gulpfile' -]; - -let Loader = function () { - // Load a Jakefile, running the code inside -- this may result in - // tasks getting defined using the original Jake API, e.g., - // `task('foo' ['bar', 'baz']);`, or can also auto-create tasks - // from any functions exported from the file - function loadFile(filePath) { - let exported = require(filePath); - for (let [key, value] of Object.entries(exported)) { - let t; - if (typeof value == 'function') { - t = jake.task(key, value); - t.description = '(Exported function)'; - } - } - } - - function fileExists(name) { - let nameWithExt = null; - // Support no file extension as well - let exts = Object.keys(SUPPORTED_EXTENSIONS).concat(['']); - exts.some((ext) => { - let fname = ext ? `${name}.${ext}` : name; - if (existsSync(fname)) { - nameWithExt = fname; - return true; - } - }); - return nameWithExt; - } - - // Recursive - function findImplicitJakefile() { - let cwd = process.cwd(); - let names = IMPLICIT_JAKEFILE_NAMES; - let found = null; - names.some((name) => { - let n; - // Prefer all-lowercase - n = name.toLowerCase(); - if ((found = fileExists(n))) { - return found; - } - // Check mixed-case as well - n = name; - if ((found = fileExists(n))) { - return found; - } - }); - if (found) { - return found; - } - else { - process.chdir(".."); - // If we've walked all the way up the directory tree, - // bail out with no result - if (cwd === process.cwd()) { - return null; - } - return findImplicitJakefile(); - } - } - - this.loadFile = function (fileSpecified) { - let jakefile; - let origCwd = process.cwd(); - - if (fileSpecified) { - if (existsSync(fileSpecified)) { - jakefile = fileSpecified; - } - } - else { - jakefile = findImplicitJakefile(); - } - - if (jakefile) { - let ext = jakefile.split('.')[1]; - let loaderFunc = SUPPORTED_EXTENSIONS[ext]; - loaderFunc && loaderFunc(); - - loadFile(utils.file.absolutize(jakefile)); - return true; - } - else { - if (!fileSpecified) { - // Restore the working directory on failure - process.chdir(origCwd); - } - return false; - } - }; - - this.loadDirectory = function (d) { - let dirname = d || 'jakelib'; - let dirlist; - dirname = utils.file.absolutize(dirname); - if (existsSync(dirname)) { - dirlist = fs.readdirSync(dirname); - dirlist.forEach(function (filePath) { - if (JAKELIB_FILE_PAT.test(filePath)) { - loadFile(path.join(dirname, filePath)); - } - }); - return true; - } - return false; - }; - -}; - -module.exports = function () { - return new Loader(); -}; diff --git a/Easebuzz_NodeJS_kit/node_modules/jake/lib/namespace.js b/Easebuzz_NodeJS_kit/node_modules/jake/lib/namespace.js deleted file mode 100644 index a3c2787..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/jake/lib/namespace.js +++ /dev/null @@ -1,115 +0,0 @@ -const ROOT_NAMESPACE_NAME = '__rootNamespace__'; - -class Namespace { - constructor(name, parentNamespace) { - this.name = name; - this.parentNamespace = parentNamespace; - this.childNamespaces = {}; - this.tasks = {}; - this.rules = {}; - this.path = this.getPath(); - } - - get fullName() { - return this._getFullName(); - } - - addTask(task) { - this.tasks[task.name] = task; - task.namespace = this; - } - - resolveTask(name) { - if (!name) { - return; - } - - let taskPath = name.split(':'); - let taskName = taskPath.pop(); - let task; - let ns; - - // Namespaced, return either relative to current, or from root - if (taskPath.length) { - taskPath = taskPath.join(':'); - ns = this.resolveNamespace(taskPath) || - Namespace.ROOT_NAMESPACE.resolveNamespace(taskPath); - task = (ns && ns.resolveTask(taskName)); - } - // Bare task, return either local, or top-level - else { - task = this.tasks[name] || Namespace.ROOT_NAMESPACE.tasks[name]; - } - - return task || null; - } - - - resolveNamespace(relativeName) { - if (!relativeName) { - return this; - } - - let parts = relativeName.split(':'); - let ns = this; - - for (let i = 0, ii = parts.length; (ns && i < ii); i++) { - ns = ns.childNamespaces[parts[i]]; - } - - return ns || null; - } - - matchRule(relativeName) { - let parts = relativeName.split(':'); - parts.pop(); - let ns = this.resolveNamespace(parts.join(':')); - let rules = ns ? ns.rules : []; - let r; - let match; - - for (let p in rules) { - r = rules[p]; - if (r.match(relativeName)) { - match = r; - } - } - - return (ns && match) || - (this.parentNamespace && - this.parentNamespace.matchRule(relativeName)); - } - - getPath() { - let parts = []; - let next = this.parentNamespace; - while (next) { - parts.push(next.name); - next = next.parentNamespace; - } - parts.pop(); // Remove '__rootNamespace__' - return parts.reverse().join(':'); - } - - _getFullName() { - let path = this.path; - path = (path && path.split(':')) || []; - path.push(this.name); - return path.join(':'); - } - - isRootNamespace() { - return !this.parentNamespace; - } -} - -class RootNamespace extends Namespace { - constructor() { - super(ROOT_NAMESPACE_NAME, null); - Namespace.ROOT_NAMESPACE = this; - } -} - -module.exports.Namespace = Namespace; -module.exports.RootNamespace = RootNamespace; - diff --git a/Easebuzz_NodeJS_kit/node_modules/jake/lib/package_task.js b/Easebuzz_NodeJS_kit/node_modules/jake/lib/package_task.js deleted file mode 100644 index 527aca7..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/jake/lib/package_task.js +++ /dev/null @@ -1,406 +0,0 @@ -/* - * Jake JavaScript build tool - * Copyright 2112 Matthew Eernisse (mde@fleegix.org) - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * -*/ - -let path = require('path'); -let fs = require('fs'); -let exec = require('child_process').exec; -let FileList = require('filelist').FileList; - -/** - @name jake - @namespace jake -*/ -/** - @name jake.PackageTask - @constructor - @description Instantiating a PackageTask creates a number of Jake - Tasks that make packaging and distributing your software easy. - - @param {String} name The name of the project - @param {String} version The current project version (will be - appended to the project-name in the package-archive - @param {Function} definition Defines the contents of the package, - and format of the package-archive. Will be executed on the instantiated - PackageTask (i.e., 'this', will be the PackageTask instance), - to set the various instance-propertiess. - - @example - let t = new jake.PackageTask('rous', 'v' + version, function () { - let files = [ - 'Capfile' - , 'Jakefile' - , 'README.md' - , 'package.json' - , 'app/*' - , 'bin/*' - , 'config/*' - , 'lib/*' - , 'node_modules/*' - ]; - this.packageFiles.include(files); - this.packageFiles.exclude('node_modules/foobar'); - this.needTarGz = true; - }); - - */ -let PackageTask = function () { - let args = Array.prototype.slice.call(arguments); - let name = args.shift(); - let version = args.shift(); - let definition = args.pop(); - let prereqs = args.pop() || []; // Optional - - prereqs = [].concat(prereqs); // Accept string or list - - /** - @name jake.PackageTask#name - @public - @type {String} - @description The name of the project - */ - this.name = name; - /** - @name jake.PackageTask#version - @public - @type {String} - @description The project version-string - */ - this.version = version; - /** - @name jake.PackageTask#prereqs - @public - @type {Array} - @description Tasks to run before packaging - */ - this.prereqs = prereqs; - /** - @name jake.PackageTask#packageDir - @public - @type {String='pkg'} - @description The directory-name to use for packaging the software - */ - this.packageDir = 'pkg'; - /** - @name jake.PackageTask#packageFiles - @public - @type {jake.FileList} - @description The list of files and directories to include in the - package-archive - */ - this.packageFiles = new FileList(); - /** - @name jake.PackageTask#needTar - @public - @type {Boolean=false} - @description If set to true, uses the `tar` utility to create - a gzip .tgz archive of the package - */ - this.needTar = false; - /** - @name jake.PackageTask#needTarGz - @public - @type {Boolean=false} - @description If set to true, uses the `tar` utility to create - a gzip .tar.gz archive of the package - */ - this.needTarGz = false; - /** - @name jake.PackageTask#needTarBz2 - @public - @type {Boolean=false} - @description If set to true, uses the `tar` utility to create - a bzip2 .bz2 archive of the package - */ - this.needTarBz2 = false; - /** - @name jake.PackageTask#needJar - @public - @type {Boolean=false} - @description If set to true, uses the `jar` utility to create - a .jar archive of the package - */ - this.needJar = false; - /** - @name jake.PackageTask#needZip - @public - @type {Boolean=false} - @description If set to true, uses the `zip` utility to create - a .zip archive of the package - */ - this.needZip = false; - /** - @name jake.PackageTask#manifestFile - @public - @type {String=null} - @description Can be set to point the `jar` utility at a manifest - file to use in a .jar archive. If unset, one will be automatically - created by the `jar` utility. This path should be relative to the - root of the package directory (this.packageDir above, likely 'pkg') - */ - this.manifestFile = null; - /** - @name jake.PackageTask#tarCommand - @public - @type {String='tar'} - @description The shell-command to use for creating tar archives. - */ - this.tarCommand = 'tar'; - /** - @name jake.PackageTask#jarCommand - @public - @type {String='jar'} - @description The shell-command to use for creating jar archives. - */ - this.jarCommand = 'jar'; - /** - @name jake.PackageTask#zipCommand - @public - @type {String='zip'} - @description The shell-command to use for creating zip archives. - */ - this.zipCommand = 'zip'; - /** - @name jake.PackageTask#archiveNoBaseDir - @public - @type {Boolean=false} - @description Simple option for performing the archive on the - contents of the directory instead of the directory itself - */ - this.archiveNoBaseDir = false; - /** - @name jake.PackageTask#archiveChangeDir - @public - @type {String=null} - @description Equivalent to the '-C' command for the `tar` and `jar` - commands. ("Change to this directory before adding files.") - */ - this.archiveChangeDir = null; - /** - @name jake.PackageTask#archiveContentDir - @public - @type {String=null} - @description Specifies the files and directories to include in the - package-archive. If unset, this will default to the main package - directory -- i.e., name + version. - */ - this.archiveContentDir = null; - - if (typeof definition == 'function') { - definition.call(this); - } - this.define(); -}; - -PackageTask.prototype = new (function () { - - let _compressOpts = { - Tar: { - ext: '.tgz', - flags: 'czf', - cmd: 'tar' - }, - TarGz: { - ext: '.tar.gz', - flags: 'czf', - cmd: 'tar' - }, - TarBz2: { - ext: '.tar.bz2', - flags: 'cjf', - cmd: 'tar' - }, - Jar: { - ext: '.jar', - flags: 'cf', - cmd: 'jar' - }, - Zip: { - ext: '.zip', - flags: 'qr', - cmd: 'zip' - } - }; - - this.define = function () { - let self = this; - let packageDirPath = this.packageDirPath(); - let compressTaskArr = []; - - desc('Build the package for distribution'); - task('package', self.prereqs.concat(['clobberPackage', 'buildPackage'])); - // Backward-compat alias - task('repackage', ['package']); - - task('clobberPackage', function () { - jake.rmRf(self.packageDir, {silent: true}); - }); - - desc('Remove the package'); - task('clobber', ['clobberPackage']); - - let doCommand = function (p) { - let filename = path.resolve(self.packageDir + '/' + self.packageName() + - _compressOpts[p].ext); - if (process.platform == 'win32') { - // Windows full path may have drive letter, which is going to cause - // namespace problems, so strip it. - if (filename.length > 2 && filename[1] == ':') { - filename = filename.substr(2); - } - } - compressTaskArr.push(filename); - - file(filename, [packageDirPath], function () { - let cmd; - let opts = _compressOpts[p]; - // Directory to move to when doing the compression-task - // Changes in the case of zip for emulating -C option - let chdir = self.packageDir; - // Save the current dir so it's possible to pop back up - // after compressing - let currDir = process.cwd(); - let archiveChangeDir; - let archiveContentDir; - - if (self.archiveNoBaseDir) { - archiveChangeDir = self.packageName(); - archiveContentDir = '.'; - } - else { - archiveChangeDir = self.archiveChangeDir; - archiveContentDir = self.archiveContentDir; - } - - cmd = self[opts.cmd + 'Command']; - cmd += ' -' + opts.flags; - if (opts.cmd == 'jar' && self.manifestFile) { - cmd += 'm'; - } - - // The name of the archive to create -- use full path - // so compression can be performed from a different dir - // if needed - cmd += ' ' + filename; - - if (opts.cmd == 'jar' && self.manifestFile) { - cmd += ' ' + self.manifestFile; - } - - // Where to perform the compression -- -C option isn't - // supported in zip, so actually do process.chdir for this - if (archiveChangeDir) { - if (opts.cmd == 'zip') { - chdir = path.join(chdir, archiveChangeDir); - } - else { - cmd += ' -C ' + archiveChangeDir; - } - } - - // Where to get the archive content - if (archiveContentDir) { - cmd += ' ' + archiveContentDir; - } - else { - cmd += ' ' + self.packageName(); - } - - // Move into the desired dir (usually packageDir) to compress - // Return back up to the current dir after the exec - process.chdir(chdir); - - exec(cmd, function (err, stdout, stderr) { - if (err) { throw err; } - - // Return back up to the starting directory (see above, - // before exec) - process.chdir(currDir); - - complete(); - }); - }, {async: true}); - }; - - for (let p in _compressOpts) { - if (this['need' + p]) { - doCommand(p); - } - } - - task('buildPackage', compressTaskArr, function () {}); - - directory(this.packageDir); - - file(packageDirPath, this.packageFiles, function () { - jake.mkdirP(packageDirPath); - let fileList = []; - self.packageFiles.forEach(function (name) { - let f = path.join(self.packageDirPath(), name); - let fDir = path.dirname(f); - jake.mkdirP(fDir, {silent: true}); - - // Add both files and directories - fileList.push({ - from: name, - to: f - }); - }); - let _copyFile = function () { - let file = fileList.pop(); - let stat; - if (file) { - stat = fs.statSync(file.from); - // Target is a directory, just create it - if (stat.isDirectory()) { - jake.mkdirP(file.to, {silent: true}); - _copyFile(); - } - // Otherwise copy the file - else { - jake.cpR(file.from, file.to, {silent: true}); - _copyFile(); - } - } - else { - complete(); - } - }; - _copyFile(); - }, {async: true}); - - - }; - - this.packageName = function () { - if (this.version) { - return this.name + '-' + this.version; - } - else { - return this.name; - } - }; - - this.packageDirPath = function () { - return this.packageDir + '/' + this.packageName(); - }; - -})(); - -jake.PackageTask = PackageTask; -exports.PackageTask = PackageTask; - diff --git a/Easebuzz_NodeJS_kit/node_modules/jake/lib/parseargs.js b/Easebuzz_NodeJS_kit/node_modules/jake/lib/parseargs.js deleted file mode 100644 index 1bd24c9..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/jake/lib/parseargs.js +++ /dev/null @@ -1,134 +0,0 @@ -/* - * Jake JavaScript build tool - * Copyright 2112 Matthew Eernisse (mde@fleegix.org) - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * -*/ - -let parseargs = {}; -let isOpt = function (arg) { return arg.indexOf('-') === 0 }; -let removeOptPrefix = function (opt) { return opt.replace(/^--/, '').replace(/^-/, '') }; - -/** - * @constructor - * Parses a list of command-line args into a key/value object of - * options and an array of positional commands. - * @ param {Array} opts A list of options in the following format: - * [{full: 'foo', abbr: 'f'}, {full: 'bar', abbr: 'b'}]] - */ -parseargs.Parser = function (opts) { - // A key/value object of matching options parsed out of the args - this.opts = {}; - this.taskNames = null; - this.envVars = null; - - // Data structures used for parsing - this.reg = opts; - this.shortOpts = {}; - this.longOpts = {}; - - let self = this; - [].forEach.call(opts, function (item) { - self.shortOpts[item.abbr] = item; - self.longOpts[item.full] = item; - }); -}; - -parseargs.Parser.prototype = new function () { - - let _trueOrNextVal = function (argParts, args) { - if (argParts[1]) { - return argParts[1]; - } - else { - return (!args[0] || isOpt(args[0])) ? - true : args.shift(); - } - }; - - /** - * Parses an array of arguments into options and positional commands - * @param {Array} args The command-line args to parse - */ - this.parse = function (args) { - let cmds = []; - let cmd; - let envVars = {}; - let opts = {}; - let arg; - let argItem; - let argParts; - let cmdItems; - let taskNames = []; - let preempt; - - while (args.length) { - arg = args.shift(); - - if (isOpt(arg)) { - arg = removeOptPrefix(arg); - argParts = arg.split('='); - argItem = this.longOpts[argParts[0]] || this.shortOpts[argParts[0]]; - if (argItem) { - // First-encountered preemptive opt takes precedence -- no further opts - // or possibility of ambiguity, so just look for a value, or set to - // true and then bail - if (argItem.preempts) { - opts[argItem.full] = _trueOrNextVal(argParts, args); - preempt = true; - break; - } - // If the opt requires a value, see if we can get a value from the - // next arg, or infer true from no-arg -- if it's followed by another - // opt, throw an error - if (argItem.expectValue || argItem.allowValue) { - opts[argItem.full] = _trueOrNextVal(argParts, args); - if (argItem.expectValue && !opts[argItem.full]) { - throw new Error(argItem.full + ' option expects a value.'); - } - } - else { - opts[argItem.full] = true; - } - } - } - else { - cmds.unshift(arg); - } - } - - if (!preempt) { - // Parse out any env-vars and task-name - while ((cmd = cmds.pop())) { - cmdItems = cmd.split('='); - if (cmdItems.length > 1) { - envVars[cmdItems[0]] = cmdItems[1]; - } - else { - taskNames.push(cmd); - } - } - - } - - return { - opts: opts, - envVars: envVars, - taskNames: taskNames - }; - }; - -}; - -module.exports = parseargs; diff --git a/Easebuzz_NodeJS_kit/node_modules/jake/lib/program.js b/Easebuzz_NodeJS_kit/node_modules/jake/lib/program.js deleted file mode 100644 index 121632f..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/jake/lib/program.js +++ /dev/null @@ -1,282 +0,0 @@ -/* - * Jake JavaScript build tool - * Copyright 2112 Matthew Eernisse (mde@fleegix.org) - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * -*/ - -let fs = require('fs'); -let parseargs = require('./parseargs'); -let utils = require('./utils'); -let Program; -let usage = require('fs').readFileSync(`${__dirname}/../usage.txt`).toString(); -let { Task } = require('./task/task'); - -function die(msg) { - console.log(msg); - process.stdout.write('', function () { - process.stderr.write('', function () { - process.exit(); - }); - }); -} - -let preempts = { - version: function () { - die(jake.version); - }, - help: function () { - die(usage); - } -}; - -let AVAILABLE_OPTS = [ - { full: 'jakefile', - abbr: 'f', - expectValue: true - }, - { full: 'quiet', - abbr: 'q', - expectValue: false - }, - { full: 'directory', - abbr: 'C', - expectValue: true - }, - { full: 'always-make', - abbr: 'B', - expectValue: false - }, - { full: 'tasks', - abbr: 'T', - expectValue: false, - allowValue: true - }, - // Alias t - { full: 'tasks', - abbr: 't', - expectValue: false, - allowValue: true - }, - // Alias ls - { full: 'tasks', - abbr: 'ls', - expectValue: false, - allowValue: true - }, - { full: 'help', - abbr: 'h', - }, - { full: 'version', - abbr: 'V', - }, - // Alias lowercase v - { full: 'version', - abbr: 'v', - }, - { full: 'jakelibdir', - abbr: 'J', - expectValue: true - }, - { full: 'allow-rejection', - abbr: 'ar', - expectValue: false - } -]; - -Program = function () { - this.availableOpts = AVAILABLE_OPTS; - this.opts = {}; - this.taskNames = null; - this.taskArgs = null; - this.envVars = null; - this.die = die; -}; - -Program.prototype = new (function () { - - this.handleErr = function (err) { - if (jake.listeners('error').length !== 0) { - jake.emit('error', err); - return; - } - - if (jake.listeners('error').length) { - jake.emit('error', err); - return; - } - - utils.logger.error('jake aborted.'); - if (err.stack) { - utils.logger.error(err.stack); - } - else { - utils.logger.error(err.message); - } - - process.stdout.write('', function () { - process.stderr.write('', function () { - jake.errorCode = jake.errorCode || 1; - process.exit(jake.errorCode); - }); - }); - }; - - this.parseArgs = function (args) { - let result = (new parseargs.Parser(this.availableOpts)).parse(args); - this.setOpts(result.opts); - this.setTaskNames(result.taskNames); - this.setEnvVars(result.envVars); - }; - - this.setOpts = function (options) { - let opts = options || {}; - Object.assign(this.opts, opts); - }; - - this.internalOpts = function (options) { - this.availableOpts = this.availableOpts.concat(options); - }; - - this.autocompletions = function (cur) { - let p; let i; let task; - let commonPrefix = ''; - let matches = []; - - for (p in jake.Task) { - task = jake.Task[p]; - if ( - 'fullName' in task - && ( - // if empty string, program converts to true - cur === true || - task.fullName.indexOf(cur) === 0 - ) - ) { - if (matches.length === 0) { - commonPrefix = task.fullName; - } - else { - for (i = commonPrefix.length; i > -1; --i) { - commonPrefix = commonPrefix.substr(0, i); - if (task.fullName.indexOf(commonPrefix) === 0) { - break; - } - } - } - matches.push(task.fullName); - } - } - - if (matches.length > 1 && commonPrefix === cur) { - matches.unshift('yes-space'); - } - else { - matches.unshift('no-space'); - } - - process.stdout.write(matches.join(' ')); - }; - - this.setTaskNames = function (names) { - if (names && !Array.isArray(names)) { - throw new Error('Task names must be an array'); - } - this.taskNames = (names && names.length) ? names : ['default']; - }; - - this.setEnvVars = function (vars) { - this.envVars = vars || null; - }; - - this.firstPreemptiveOption = function () { - let opts = this.opts; - for (let p in opts) { - if (preempts[p]) { - return preempts[p]; - } - } - return false; - }; - - this.init = function (configuration) { - let self = this; - let config = configuration || {}; - if (config.options) { - this.setOpts(config.options); - } - if (config.taskNames) { - this.setTaskNames(config.taskNames); - } - if (config.envVars) { - this.setEnvVars(config.envVars); - } - process.addListener('uncaughtException', function (err) { - self.handleErr(err); - }); - if (!this.opts['allow-rejection']) { - process.addListener('unhandledRejection', (reason, promise) => { - utils.logger.error('Unhandled rejection at:', promise, 'reason:', reason); - self.handleErr(reason); - }); - } - if (this.envVars) { - Object.assign(process.env, this.envVars); - } - }; - - this.run = function () { - let rootTask; - let taskNames; - let dirname; - let opts = this.opts; - - if (opts.autocomplete) { - return this.autocompletions(opts['autocomplete-cur'], opts['autocomplete-prev']); - } - // Run with `jake -T`, just show descriptions - if (opts.tasks) { - return jake.showAllTaskDescriptions(opts.tasks); - } - - taskNames = this.taskNames; - if (!(Array.isArray(taskNames) && taskNames.length)) { - throw new Error('Please pass jake.runTasks an array of task-names'); - } - - // Set working dir - dirname = opts.directory; - if (dirname) { - if (fs.existsSync(dirname) && - fs.statSync(dirname).isDirectory()) { - process.chdir(dirname); - } - else { - throw new Error(dirname + ' is not a valid directory path'); - } - } - - rootTask = task(Task.ROOT_TASK_NAME, taskNames, function () {}); - rootTask._internal = true; - - rootTask.once('complete', function () { - jake.emit('complete'); - }); - jake.emit('start'); - rootTask.invoke(); - }; - -})(); - -module.exports.Program = Program; diff --git a/Easebuzz_NodeJS_kit/node_modules/jake/lib/publish_task.js b/Easebuzz_NodeJS_kit/node_modules/jake/lib/publish_task.js deleted file mode 100644 index f0cacfd..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/jake/lib/publish_task.js +++ /dev/null @@ -1,290 +0,0 @@ -/* - * Jake JavaScript build tool - * Copyright 2112 Matthew Eernisse (mde@fleegix.org) - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * -*/ - -let fs = require('fs'); -let path = require('path'); -let exec = require('child_process').execSync; -let FileList = require('filelist').FileList; - -let PublishTask = function () { - let args = Array.prototype.slice.call(arguments).filter(function (item) { - return typeof item != 'undefined'; - }); - let arg; - let opts = {}; - let definition; - let prereqs = []; - let createDef = function (arg) { - return function () { - this.packageFiles.include(arg); - }; - }; - - this.name = args.shift(); - - // Old API, just name + list of files - if (args.length == 1 && (Array.isArray(args[0]) || typeof args[0] == 'string')) { - definition = createDef(args.pop()); - } - // Current API, name + [prereqs] + [opts] + definition - else { - while ((arg = args.pop())) { - // Definition func - if (typeof arg == 'function') { - definition = arg; - } - // Prereqs - else if (Array.isArray(arg) || typeof arg == 'string') { - prereqs = arg; - } - // Opts - else { - opts = arg; - } - } - } - - this.prereqs = prereqs; - this.packageFiles = new FileList(); - this.publishCmd = opts.publishCmd || 'npm publish %filename'; - this.publishMessage = opts.publishMessage || 'BOOM! Published.'; - this.gitCmd = opts.gitCmd || 'git'; - this.versionFiles = opts.versionFiles || ['package.json']; - this.scheduleDelay = 5000; - - // Override utility funcs for testing - this._ensureRepoClean = function (stdout) { - if (stdout.length) { - fail(new Error('Git repository is not clean.')); - } - }; - this._getCurrentBranch = function (stdout) { - return String(stdout).trim(); - }; - - if (typeof definition == 'function') { - definition.call(this); - } - this.define(); -}; - - -PublishTask.prototype = new (function () { - - let _currentBranch = null; - - let getPackage = function () { - let pkg = JSON.parse(fs.readFileSync(path.join(process.cwd(), - '/package.json')).toString()); - return pkg; - }; - let getPackageVersionNumber = function () { - return getPackage().version; - }; - - this.define = function () { - let self = this; - - namespace('publish', function () { - task('fetchTags', function () { - // Make sure local tags are up to date - exec(self.gitCmd + ' fetch --tags'); - console.log('Fetched remote tags.'); - }); - - task('getCurrentBranch', function () { - // Figure out what branch to push to - let stdout = exec(self.gitCmd + ' symbolic-ref --short HEAD').toString(); - if (!stdout) { - throw new Error('No current Git branch found'); - } - _currentBranch = self._getCurrentBranch(stdout); - console.log('On branch ' + _currentBranch); - }); - - task('ensureClean', function () { - // Only bump, push, and tag if the Git repo is clean - let stdout = exec(self.gitCmd + ' status --porcelain --untracked-files=no').toString(); - // Throw if there's output - self._ensureRepoClean(stdout); - }); - - task('updateVersionFiles', function () { - let pkg; - let version; - let arr; - let patch; - - // Grab the current version-string - pkg = getPackage(); - version = pkg.version; - // Increment the patch-number for the version - arr = version.split('.'); - patch = parseInt(arr.pop(), 10) + 1; - arr.push(patch); - version = arr.join('.'); - - // Update package.json or other files with the new version-info - self.versionFiles.forEach(function (file) { - let p = path.join(process.cwd(), file); - let data = JSON.parse(fs.readFileSync(p).toString()); - data.version = version; - fs.writeFileSync(p, JSON.stringify(data, true, 2) + '\n'); - }); - // Return the version string so that listeners for the 'complete' event - // for this task can use it (e.g., to update other files before pushing - // to Git) - return version; - }); - - task('pushVersion', ['ensureClean', 'updateVersionFiles'], function () { - let version = getPackageVersionNumber(); - let message = 'Version ' + version; - let cmds = [ - self.gitCmd + ' commit -a -m "' + message + '"', - self.gitCmd + ' push origin ' + _currentBranch, - self.gitCmd + ' tag -a v' + version + ' -m "' + message + '"', - self.gitCmd + ' push --tags' - ]; - cmds.forEach((cmd) => { - exec(cmd); - }); - version = getPackageVersionNumber(); - console.log('Bumped version number to v' + version + '.'); - }); - - let defineTask = task('definePackage', function () { - let version = getPackageVersionNumber(); - new jake.PackageTask(self.name, 'v' + version, self.prereqs, function () { - // Replace the PackageTask's FileList with the PublishTask's FileList - this.packageFiles = self.packageFiles; - this.needTarGz = true; // Default to tar.gz - // If any of the need or archive opts are set - // proxy them to the PackageTask - for (let p in this) { - if (p.indexOf('need') === 0 || p.indexOf('archive') === 0) { - if (typeof self[p] != 'undefined') { - this[p] = self[p]; - } - } - } - }); - }); - defineTask._internal = true; - - task('package', function () { - let definePack = jake.Task['publish:definePackage']; - let pack = jake.Task['package']; - let version = getPackageVersionNumber(); - - // May have already been run - if (definePack.taskStatus == jake.Task.runStatuses.DONE) { - definePack.reenable(true); - } - definePack.invoke(); - // Set manually, completion happens in next tick, creating deadlock - definePack.taskStatus = jake.Task.runStatuses.DONE; - pack.invoke(); - console.log('Created package for ' + self.name + ' v' + version); - }); - - task('publish', function () { - return new Promise((resolve) => { - let version = getPackageVersionNumber(); - let filename; - let cmd; - - console.log('Publishing ' + self.name + ' v' + version); - - if (typeof self.createPublishCommand == 'function') { - cmd = self.createPublishCommand(version); - } - else { - filename = './pkg/' + self.name + '-v' + version + '.tar.gz'; - cmd = self.publishCmd.replace(/%filename/gi, filename); - } - - if (typeof cmd == 'function') { - cmd(function (err) { - if (err) { - throw err; - } - console.log(self.publishMessage); - resolve(); - }); - } - else { - // Hackity hack -- NPM publish sometimes returns errror like: - // Error sending version data\nnpm ERR! - // Error: forbidden 0.2.4 is modified, should match modified time - setTimeout(function () { - let stdout = exec(cmd).toString() || ''; - stdout = stdout.trim(); - if (stdout) { - console.log(stdout); - } - console.log(self.publishMessage); - resolve(); - }, self.scheduleDelay); - } - }); - }); - - task('cleanup', function () { - return new Promise((resolve) => { - let clobber = jake.Task.clobber; - clobber.reenable(true); - clobber.on('complete', function () { - console.log('Cleaned up package'); - resolve(); - }); - clobber.invoke(); - }); - }); - - }); - - let prefixNs = function (item) { - return 'publish:' + item; - }; - - // Create aliases in the default namespace - desc('Create a new version and release.'); - task('publish', self.prereqs.concat(['version', 'release'] - .map(prefixNs))); - - desc('Release the existing version.'); - task('publishExisting', self.prereqs.concat(['release'] - .map(prefixNs))); - - task('version', ['fetchTags', 'getCurrentBranch', 'pushVersion'] - .map(prefixNs)); - - task('release', ['package', 'publish', 'cleanup'] - .map(prefixNs)); - - // Invoke proactively so there will be a callable 'package' task - // which can be used apart from 'publish' - jake.Task['publish:definePackage'].invoke(); - }; - -})(); - -jake.PublishTask = PublishTask; -exports.PublishTask = PublishTask; - diff --git a/Easebuzz_NodeJS_kit/node_modules/jake/lib/rule.js b/Easebuzz_NodeJS_kit/node_modules/jake/lib/rule.js deleted file mode 100644 index 25f51ae..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/jake/lib/rule.js +++ /dev/null @@ -1,311 +0,0 @@ -let path = require('path'); -let fs = require('fs'); -let Task = require('./task/task').Task; - -// Split a task to two parts, name space and task name. -// For example, given 'foo:bin/a%.c', return an object with -// - 'ns' : foo -// - 'name' : bin/a%.c -function splitNs(task) { - let parts = task.split(':'); - let name = parts.pop(); - let ns = resolveNs(parts); - return { - 'name' : name, - 'ns' : ns - }; -} - -// Return the namespace based on an array of names. -// For example, given ['foo', 'baz' ], return the namespace -// -// default -> foo -> baz -// -// where default is the global root namespace -// and -> means child namespace. -function resolveNs(parts) { - let ns = jake.defaultNamespace; - for(let i = 0, l = parts.length; ns && i < l; i++) { - ns = ns.childNamespaces[parts[i]]; - } - return ns; -} - -// Given a pattern p, say 'foo:bin/a%.c' -// Return an object with -// - 'ns' : foo -// - 'dir' : bin -// - 'prefix' : a -// - 'suffix' : .c -function resolve(p) { - let task = splitNs(p); - let name = task.name; - let ns = task.ns; - let split = path.basename(name).split('%'); - return { - ns: ns, - dir: path.dirname(name), - prefix: split[0], - suffix: split[1] - }; -} - -// Test whether string a is a suffix of string b -function stringEndWith(a, b) { - let l; - return (l = b.lastIndexOf(a)) == -1 ? false : l + a.length == b.length; -} - -// Replace the suffix a of the string s with b. -// Note that, it is assumed a is a suffix of s. -function stringReplaceSuffix(s, a, b) { - return s.slice(0, s.lastIndexOf(a)) + b; -} - -class Rule { - constructor(opts) { - this.pattern = opts.pattern; - this.source = opts.source; - this.prereqs = opts.prereqs; - this.action = opts.action; - this.opts = opts.opts; - this.desc = opts.desc; - this.ns = opts.ns; - } - - // Create a file task based on this rule for the specified - // task-name - // ====== - // FIXME: Right now this just throws away any passed-in args - // for the synthsized task (taskArgs param) - // ====== - createTask(fullName, level) { - let self = this; - let pattern; - let source; - let action; - let opts; - let prereqs; - let valid; - let src; - let tNs; - let createdTask; - let name = Task.getBaseTaskName(fullName); - let nsPath = Task.getBaseNamespacePath(fullName); - let ns = this.ns.resolveNamespace(nsPath); - - pattern = this.pattern; - source = this.source; - - if (typeof source == 'string') { - src = Rule.getSource(name, pattern, source); - } - else { - src = source(name); - } - - // TODO: Write a utility function that appends a - // taskname to a namespace path - src = nsPath.split(':').filter(function (item) { - return !!item; - }).concat(src).join(':'); - - // Generate the prerequisite for the matching task. - // It is the original prerequisites plus the prerequisite - // representing source file, i.e., - // - // rule( '%.o', '%.c', ['some.h'] ... - // - // If the objective is main.o, then new task should be - // - // file( 'main.o', ['main.c', 'some.h' ] ... - prereqs = this.prereqs.slice(); // Get a copy to work with - prereqs.unshift(src); - - // Prereq should be: - // 1. an existing task - // 2. an existing file on disk - // 3. a valid rule (i.e., not at too deep a level) - valid = prereqs.some(function (p) { - let ns = self.ns; - return ns.resolveTask(p) || - fs.existsSync(Task.getBaseTaskName(p)) || - jake.attemptRule(p, ns, level + 1); - }); - - // If any of the prereqs aren't valid, the rule isn't valid - if (!valid) { - return null; - } - // Otherwise, hunky-dory, finish creating the task for the rule - else { - // Create the action for the task - action = function () { - let task = this; - self.action.apply(task); - }; - - opts = this.opts; - - // Insert the file task into Jake - // - // Since createTask function stores the task as a child task - // of currentNamespace. Here we temporariliy switch the namespace. - // FIXME: Should allow optional ns passed in instead of this hack - tNs = jake.currentNamespace; - jake.currentNamespace = ns; - createdTask = jake.createTask('file', name, prereqs, action, opts); - createdTask.source = src.split(':').pop(); - jake.currentNamespace = tNs; - - return createdTask; - } - } - - match(name) { - return Rule.match(this.pattern, name); - } - - // Test wether the a prerequisite matchs the pattern. - // The arg 'pattern' does not have namespace as prefix. - // For example, the following tests are true - // - // pattern | name - // bin/%.o | bin/main.o - // bin/%.o | foo:bin/main.o - // - // The following tests are false (trivally) - // - // pattern | name - // bin/%.o | foobin/main.o - // bin/%.o | bin/main.oo - static match(pattern, name) { - let p; - let task; - let obj; - let filename; - - if (pattern instanceof RegExp) { - return pattern.test(name); - } - else if (pattern.indexOf('%') == -1) { - // No Pattern. No Folder. No Namespace. - // A Simple Suffix Rule. Just test suffix - return stringEndWith(pattern, name); - } - else { - // Resolve the dir, prefix and suffix of pattern - p = resolve(pattern); - - // Resolve the namespace and task-name - task = splitNs(name); - name = task.name; - - // Set the objective as the task-name - obj = name; - - // Namespace is already matched. - - // Check dir - if (path.dirname(obj) != p.dir) { - return false; - } - - filename = path.basename(obj); - - // Check file name length - if ((p.prefix.length + p.suffix.length + 1) > filename.length) { - // Length does not match. - return false; - } - - // Check prefix - if (filename.indexOf(p.prefix) !== 0) { - return false; - } - - // Check suffix - if (!stringEndWith(p.suffix, filename)) { - return false; - } - - // OK. Find a match. - return true; - } - } - - // Generate the source based on - // - name name for the synthesized task - // - pattern pattern for the objective - // - source pattern for the source - // - // Return the source with properties - // - dep the prerequisite of source - // (with the namespace) - // - // - file the file name of source - // (without the namespace) - // - // For example, given - // - // - name foo:bin/main.o - // - pattern bin/%.o - // - source src/%.c - // - // return 'foo:src/main.c', - // - static getSource(name, pattern, source) { - let dep; - let pat; - let match; - let file; - let src; - - // Regex pattern -- use to look up the extension - if (pattern instanceof RegExp) { - match = pattern.exec(name); - if (match) { - if (typeof source == 'function') { - src = source(name); - } - else { - src = stringReplaceSuffix(name, match[0], source); - } - } - } - // Assume string - else { - // Simple string suffix replacement - if (pattern.indexOf('%') == -1) { - if (typeof source == 'function') { - src = source(name); - } - else { - src = stringReplaceSuffix(name, pattern, source); - } - } - // Percent-based substitution - else { - pat = pattern.replace('%', '(.*?)'); - pat = new RegExp(pat); - match = pat.exec(name); - if (match) { - if (typeof source == 'function') { - src = source(name); - } - else { - file = match[1]; - file = source.replace('%', file); - dep = match[0]; - src = name.replace(dep, file); - } - } - } - } - - return src; - } -} - - -exports.Rule = Rule; diff --git a/Easebuzz_NodeJS_kit/node_modules/jake/lib/task/directory_task.js b/Easebuzz_NodeJS_kit/node_modules/jake/lib/task/directory_task.js deleted file mode 100644 index b17b624..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/jake/lib/task/directory_task.js +++ /dev/null @@ -1,30 +0,0 @@ -let fs = require('fs'); -let FileTask = require('./file_task').FileTask; - -/** - @name jake - @namespace jake -*/ -/** - @name jake.DirectoryTask - @constructor - @augments EventEmitter - @augments jake.Task - @augments jake.FileTask - @description A Jake DirectoryTask - - @param {String} name The name of the directory to create. - */ -class DirectoryTask extends FileTask { - constructor(...args) { - super(...args); - if (fs.existsSync(this.name)) { - this.updateModTime(); - } - else { - this.modTime = null; - } - } -} - -exports.DirectoryTask = DirectoryTask; diff --git a/Easebuzz_NodeJS_kit/node_modules/jake/lib/task/file_task.js b/Easebuzz_NodeJS_kit/node_modules/jake/lib/task/file_task.js deleted file mode 100644 index 6fad84b..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/jake/lib/task/file_task.js +++ /dev/null @@ -1,124 +0,0 @@ -let fs = require('fs'); -let Task = require('./task').Task; - -function isFileOrDirectory(t) { - return (t instanceof FileTask || - t instanceof DirectoryTask); -} - -function isFile(t) { - return (t instanceof FileTask && !(t instanceof DirectoryTask)); -} - -/** - @name jake - @namespace jake -*/ -/** - @name jake.FileTask - @class` - @extentds Task - @description A Jake FileTask - - @param {String} name The name of the Task - @param {Array} [prereqs] Prerequisites to be run before this task - @param {Function} [action] The action to perform to create this file - @param {Object} [opts] - @param {Array} [opts.asyc=false] Perform this task asynchronously. - If you flag a task with this option, you must call the global - `complete` method inside the task's action, for execution to proceed - to the next task. - */ -class FileTask extends Task { - constructor(...args) { - super(...args); - this.dummy = false; - if (fs.existsSync(this.name)) { - this.updateModTime(); - } - else { - this.modTime = null; - } - } - - isNeeded() { - let prereqs = this.prereqs; - let prereqName; - let prereqTask; - - // No repeatsies - if (this.taskStatus == Task.runStatuses.DONE) { - return false; - } - // The always-make override - else if (jake.program.opts['always-make']) { - return true; - } - // Default case - else { - - // We need either an existing file, or an action to create one. - // First try grabbing the actual mod-time of the file - try { - this.updateModTime(); - } - // Then fall back to looking for an action - catch(e) { - if (typeof this.action == 'function') { - return true; - } - else { - throw new Error('File-task ' + this.fullName + ' has no ' + - 'existing file, and no action to create one.'); - } - } - - // Compare mod-time of all the prereqs with its mod-time - // If any prereqs are newer, need to run the action to update - if (prereqs && prereqs.length) { - for (let i = 0, ii = prereqs.length; i < ii; i++) { - prereqName = prereqs[i]; - prereqTask = this.namespace.resolveTask(prereqName) || - jake.createPlaceholderFileTask(prereqName, this.namespace); - // Run the action if: - // 1. The prereq is a normal task (not file/dir) - // 2. The prereq is a file-task with a mod-date more recent than - // the one for this file/dir - if (prereqTask) { - if (!isFileOrDirectory(prereqTask) || - (isFile(prereqTask) && prereqTask.modTime > this.modTime)) { - return true; - } - } - } - } - // File/dir has no prereqs, and exists -- no need to run - else { - // Effectively done - this.taskStatus = Task.runStatuses.DONE; - return false; - } - } - } - - updateModTime() { - let stats = fs.statSync(this.name); - this.modTime = stats.mtime; - } - - complete() { - if (!this.dummy) { - this.updateModTime(); - } - // Hackity hack - Task.prototype.complete.apply(this, arguments); - } - -} - -exports.FileTask = FileTask; - -// DirectoryTask is a subclass of FileTask, depends on it -// being defined -let DirectoryTask = require('./directory_task').DirectoryTask; - diff --git a/Easebuzz_NodeJS_kit/node_modules/jake/lib/task/index.js b/Easebuzz_NodeJS_kit/node_modules/jake/lib/task/index.js deleted file mode 100644 index bc93f41..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/jake/lib/task/index.js +++ /dev/null @@ -1,9 +0,0 @@ - -let Task = require('./task').Task; -let FileTask = require('./file_task').FileTask; -let DirectoryTask = require('./directory_task').DirectoryTask; - -exports.Task = Task; -exports.FileTask = FileTask; -exports.DirectoryTask = DirectoryTask; - diff --git a/Easebuzz_NodeJS_kit/node_modules/jake/lib/task/task.js b/Easebuzz_NodeJS_kit/node_modules/jake/lib/task/task.js deleted file mode 100644 index 9e8886f..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/jake/lib/task/task.js +++ /dev/null @@ -1,439 +0,0 @@ -let EventEmitter = require('events').EventEmitter; -let async = require('async'); -let chalk = require('chalk'); -// 'rule' module is required at the bottom because circular deps - -// Used for task value, so better not to use -// null, since value should be unset/uninitialized -let UNDEFINED_VALUE; - -const ROOT_TASK_NAME = '__rootTask__'; -const POLLING_INTERVAL = 100; - -// Parse any positional args attached to the task-name -function parsePrereqName(name) { - let taskArr = name.split('['); - let taskName = taskArr[0]; - let taskArgs = []; - if (taskArr[1]) { - taskArgs = taskArr[1].replace(/\]$/, ''); - taskArgs = taskArgs.split(','); - } - return { - name: taskName, - args: taskArgs - }; -} - -/** - @name jake.Task - @class - @extends EventEmitter - @description A Jake Task - - @param {String} name The name of the Task - @param {Array} [prereqs] Prerequisites to be run before this task - @param {Function} [action] The action to perform for this task - @param {Object} [opts] - @param {Array} [opts.asyc=false] Perform this task asynchronously. - If you flag a task with this option, you must call the global - `complete` method inside the task's action, for execution to proceed - to the next task. - */ -class Task extends EventEmitter { - - constructor(name, prereqs, action, options) { - // EventEmitter ctor takes no args - super(); - - if (name.indexOf(':') > -1) { - throw new Error('Task name cannot include a colon. It is used internally as namespace delimiter.'); - } - let opts = options || {}; - - this._currentPrereqIndex = 0; - this._internal = false; - this._skipped = false; - - this.name = name; - this.prereqs = prereqs; - this.action = action; - this.async = false; - this.taskStatus = Task.runStatuses.UNSTARTED; - this.description = null; - this.args = []; - this.value = UNDEFINED_VALUE; - this.concurrency = 1; - this.startTime = null; - this.endTime = null; - this.directory = null; - this.namespace = null; - - // Support legacy async-flag -- if not explicitly passed or falsy, will - // be set to empty-object - if (typeof opts == 'boolean' && opts === true) { - this.async = true; - } - else { - if (opts.async) { - this.async = true; - } - if (opts.concurrency) { - this.concurrency = opts.concurrency; - } - } - - //Do a test on self dependencies for this task - if(Array.isArray(this.prereqs) && this.prereqs.indexOf(this.name) !== -1) { - throw new Error("Cannot use prereq " + this.name + " as a dependency of itself"); - } - } - - get fullName() { - return this._getFullName(); - } - - _initInvocationChain() { - // Legacy global invocation chain - jake._invocationChain.push(this); - - // New root chain - if (!this._invocationChain) { - this._invocationChainRoot = true; - this._invocationChain = []; - if (jake.currentRunningTask) { - jake.currentRunningTask._waitForChains = jake.currentRunningTask._waitForChains || []; - jake.currentRunningTask._waitForChains.push(this._invocationChain); - } - } - } - - /** - @name jake.Task#invoke - @function - @description Runs prerequisites, then this task. If the task has already - been run, will not run the task again. - */ - invoke() { - this._initInvocationChain(); - - this.args = Array.prototype.slice.call(arguments); - this.reenabled = false - this.runPrereqs(); - } - - /** - @name jake.Task#execute - @function - @description Run only this task, without prereqs. If the task has already - been run, *will* run the task again. - */ - execute() { - this._initInvocationChain(); - - this.args = Array.prototype.slice.call(arguments); - this.reenable(); - this.reenabled = true - this.run(); - } - - runPrereqs() { - if (this.prereqs && this.prereqs.length) { - - if (this.concurrency > 1) { - async.eachLimit(this.prereqs, this.concurrency, - - (name, cb) => { - let parsed = parsePrereqName(name); - - let prereq = this.namespace.resolveTask(parsed.name) || - jake.attemptRule(name, this.namespace, 0) || - jake.createPlaceholderFileTask(name, this.namespace); - - if (!prereq) { - throw new Error('Unknown task "' + name + '"'); - } - - //Test for circular invocation - if(prereq === this) { - setImmediate(function () { - cb(new Error("Cannot use prereq " + prereq.name + " as a dependency of itself")); - }); - } - - if (prereq.taskStatus == Task.runStatuses.DONE) { - //prereq already done, return - setImmediate(cb); - } - else { - //wait for complete before calling cb - prereq.once('_done', () => { - prereq.removeAllListeners('_done'); - setImmediate(cb); - }); - // Start the prereq if we are the first to encounter it - if (prereq.taskStatus === Task.runStatuses.UNSTARTED) { - prereq.taskStatus = Task.runStatuses.STARTED; - prereq.invoke.apply(prereq, parsed.args); - } - } - }, - - (err) => { - //async callback is called after all prereqs have run. - if (err) { - throw err; - } - else { - setImmediate(this.run.bind(this)); - } - } - ); - } - else { - setImmediate(this.nextPrereq.bind(this)); - } - } - else { - setImmediate(this.run.bind(this)); - } - } - - nextPrereq() { - let self = this; - let index = this._currentPrereqIndex; - let name = this.prereqs[index]; - let prereq; - let parsed; - - if (name) { - - parsed = parsePrereqName(name); - - prereq = this.namespace.resolveTask(parsed.name) || - jake.attemptRule(name, this.namespace, 0) || - jake.createPlaceholderFileTask(name, this.namespace); - - if (!prereq) { - throw new Error('Unknown task "' + name + '"'); - } - - // Do when done - if (prereq.taskStatus == Task.runStatuses.DONE) { - self.handlePrereqDone(prereq); - } - else { - prereq.once('_done', () => { - this.handlePrereqDone(prereq); - prereq.removeAllListeners('_done'); - }); - if (prereq.taskStatus == Task.runStatuses.UNSTARTED) { - prereq.taskStatus = Task.runStatuses.STARTED; - prereq._invocationChain = this._invocationChain; - prereq.invoke.apply(prereq, parsed.args); - } - } - } - } - - /** - @name jake.Task#reenable - @function - @description Reenables a task so that it can be run again. - */ - reenable(deep) { - let prereqs; - let prereq; - this._skipped = false; - this.taskStatus = Task.runStatuses.UNSTARTED; - this.value = UNDEFINED_VALUE; - if (deep && this.prereqs) { - prereqs = this.prereqs; - for (let i = 0, ii = prereqs.length; i < ii; i++) { - prereq = jake.Task[prereqs[i]]; - if (prereq) { - prereq.reenable(deep); - } - } - } - } - - handlePrereqDone(prereq) { - this._currentPrereqIndex++; - if (this._currentPrereqIndex < this.prereqs.length) { - setImmediate(this.nextPrereq.bind(this)); - } - else { - setImmediate(this.run.bind(this)); - } - } - - isNeeded() { - let needed = true; - if (this.taskStatus == Task.runStatuses.DONE) { - needed = false; - } - return needed; - } - - run() { - let val, previous; - let hasAction = typeof this.action == 'function'; - - if (!this.isNeeded()) { - this.emit('skip'); - this.emit('_done'); - } - else { - if (this._invocationChain.length) { - previous = this._invocationChain[this._invocationChain.length - 1]; - // If this task is repeating and its previous is equal to this, don't check its status because it was set to UNSTARTED by the reenable() method - if (!(this.reenabled && previous == this)) { - if (previous.taskStatus != Task.runStatuses.DONE) { - let now = (new Date()).getTime(); - if (now - this.startTime > jake._taskTimeout) { - return jake.fail(`Timed out waiting for task: ${previous.name} with status of ${previous.taskStatus}`); - } - setTimeout(this.run.bind(this), POLLING_INTERVAL); - return; - } - } - } - if (!(this.reenabled && previous == this)) { - this._invocationChain.push(this); - } - - if (!(this._internal || jake.program.opts.quiet)) { - console.log("Starting '" + chalk.green(this.fullName) + "'..."); - } - - this.startTime = (new Date()).getTime(); - this.emit('start'); - - jake.currentRunningTask = this; - - if (hasAction) { - try { - if (this.directory) { - process.chdir(this.directory); - } - - val = this.action.apply(this, this.args); - - if (typeof val == 'object' && typeof val.then == 'function') { - this.async = true; - - val.then( - (result) => { - setImmediate(() => { - this.complete(result); - }); - }, - (err) => { - setImmediate(() => { - this.errorOut(err); - }); - }); - } - } - catch (err) { - this.errorOut(err); - return; // Bail out, not complete - } - } - - if (!(hasAction && this.async)) { - setImmediate(() => { - this.complete(val); - }); - } - } - } - - errorOut(err) { - this.taskStatus = Task.runStatuses.ERROR; - this._invocationChain.chainStatus = Task.runStatuses.ERROR; - this.emit('error', err); - } - - complete(val) { - - if (Array.isArray(this._waitForChains)) { - let stillWaiting = this._waitForChains.some((chain) => { - return !(chain.chainStatus == Task.runStatuses.DONE || - chain.chainStatus == Task.runStatuses.ERROR); - }); - if (stillWaiting) { - let now = (new Date()).getTime(); - let elapsed = now - this.startTime; - if (elapsed > jake._taskTimeout) { - return jake.fail(`Timed out waiting for task: ${this.name} with status of ${this.taskStatus}. Elapsed: ${elapsed}`); - } - setTimeout(() => { - this.complete(val); - }, POLLING_INTERVAL); - return; - } - } - - jake._invocationChain.splice(jake._invocationChain.indexOf(this), 1); - - if (this._invocationChainRoot) { - this._invocationChain.chainStatus = Task.runStatuses.DONE; - } - - this._currentPrereqIndex = 0; - - // If 'complete' getting called because task has been - // run already, value will not be passed -- leave in place - if (!this._skipped) { - this.taskStatus = Task.runStatuses.DONE; - this.value = val; - - this.emit('complete', this.value); - this.emit('_done'); - - this.endTime = (new Date()).getTime(); - let taskTime = this.endTime - this.startTime; - - if (!(this._internal || jake.program.opts.quiet)) { - console.log("Finished '" + chalk.green(this.fullName) + "' after " + chalk.magenta(taskTime + ' ms')); - } - - } - } - - _getFullName() { - let ns = this.namespace; - let path = (ns && ns.path) || ''; - path = (path && path.split(':')) || []; - if (this.namespace !== jake.defaultNamespace) { - path.push(this.namespace.name); - } - path.push(this.name); - return path.join(':'); - } - - static getBaseNamespacePath(fullName) { - return fullName.split(':').slice(0, -1).join(':'); - } - - static getBaseTaskName(fullName) { - return fullName.split(':').pop(); - } -} - -Task.runStatuses = { - UNSTARTED: 'unstarted', - DONE: 'done', - STARTED: 'started', - ERROR: 'error' -}; - -Task.ROOT_TASK_NAME = ROOT_TASK_NAME; - -exports.Task = Task; - -// Required here because circular deps -require('../rule'); - diff --git a/Easebuzz_NodeJS_kit/node_modules/jake/lib/test_task.js b/Easebuzz_NodeJS_kit/node_modules/jake/lib/test_task.js deleted file mode 100644 index 6482bf1..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/jake/lib/test_task.js +++ /dev/null @@ -1,270 +0,0 @@ -/* - * Jake JavaScript build tool - * Copyright 2112 Matthew Eernisse (mde@fleegix.org) - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * -*/ - -let path = require('path'); -let currDir = process.cwd(); - -/** - @name jake - @namespace jake -*/ -/** - @name jake.TestTask - @constructor - @description Instantiating a TestTask creates a number of Jake - Tasks that make running tests for your software easy. - - @param {String} name The name of the project - @param {Function} definition Defines the list of files containing the tests, - and the name of the namespace/task for running them. Will be executed on the - instantiated TestTask (i.e., 'this', will be the TestTask instance), to set - the various instance-propertiess. - - @example - let t = new jake.TestTask('bij-js', function () { - this.testName = 'testSpecial'; - this.testFiles.include('test/**'); - }); - - */ -let TestTask = function () { - let self = this; - let args = Array.prototype.slice.call(arguments); - let name = args.shift(); - let definition = args.pop(); - let prereqs = args.pop() || []; - - /** - @name jake.TestTask#testNam - @public - @type {String} - @description The name of the namespace to place the tests in, and - the top-level task for running tests. Defaults to "test" - */ - this.testName = 'test'; - - /** - @name jake.TestTask#testFiles - @public - @type {jake.FileList} - @description The list of files containing tests to load - */ - this.testFiles = new jake.FileList(); - - /** - @name jake.TestTask#showDescription - @public - @type {Boolean} - @description Show the created task when doing Jake -T - */ - this.showDescription = true; - - /* - @name jake.TestTask#totalTests - @public - @type {Number} - @description The total number of tests to run - */ - this.totalTests = 0; - - /* - @name jake.TestTask#executedTests - @public - @type {Number} - @description The number of tests successfully run - */ - this.executedTests = 0; - - if (typeof definition == 'function') { - definition.call(this); - } - - if (this.showDescription) { - desc('Run the tests for ' + name); - } - - task(this.testName, prereqs, {async: true}, function () { - let t = jake.Task[this.fullName + ':run']; - t.on('complete', function () { - complete(); - }); - // Pass args to the namespaced test - t.invoke.apply(t, arguments); - }); - - namespace(self.testName, function () { - - let runTask = task('run', {async: true}, function (pat) { - let re; - let testFiles; - - // Don't nest; make a top-level namespace. Don't want - // re-calling from inside to nest infinitely - jake.currentNamespace = jake.defaultNamespace; - - re = new RegExp(pat); - // Get test files that match the passed-in pattern - testFiles = self.testFiles.toArray() - .filter(function (f) { - return (re).test(f); - }) // Don't load the same file multiple times -- should this be in FileList? - .reduce(function (p, c) { - if (p.indexOf(c) < 0) { - p.push(c); - } - return p; - }, []); - - // Create a namespace for all the testing tasks to live in - namespace(self.testName + 'Exec', function () { - // Each test will be a prereq for the dummy top-level task - let prereqs = []; - // Continuation to pass to the async tests, wrapping `continune` - let next = function () { - complete(); - }; - // Create the task for this test-function - let createTask = function (name, action) { - // If the test-function is defined with a continuation - // param, flag the task as async - let t; - let isAsync = !!action.length; - - // Define the actual namespaced task with the name, the - // wrapped action, and the correc async-flag - t = task(name, createAction(name, action), { - async: isAsync - }); - t.once('complete', function () { - self.executedTests++; - }); - t._internal = true; - return t; - }; - // Used as the action for the defined task for each test. - let createAction = function (n, a) { - // A wrapped function that passes in the `next` function - // for any tasks that run asynchronously - return function () { - let cb; - if (a.length) { - cb = next; - } - if (!(n == 'before' || n == 'after' || - /_beforeEach$/.test(n) || /_afterEach$/.test(n))) { - jake.logger.log(n); - } - // 'this' will be the task when action is run - return a.call(this, cb); - }; - }; - // Dummy top-level task for everything to be prereqs for - let topLevel; - - // Pull in each test-file, and iterate over any exported - // test-functions. Register each test-function as a prereq task - testFiles.forEach(function (file) { - let exp = require(path.join(currDir, file)); - - // Create a namespace for each filename, so test-name collisions - // won't be a problem - namespace(file, function () { - let testPrefix = self.testName + 'Exec:' + file + ':'; - let testName; - // Dummy task for displaying file banner - testName = '*** Running ' + file + ' ***'; - prereqs.push(testPrefix + testName); - createTask(testName, function () {}); - - // 'before' setup - if (typeof exp.before == 'function') { - prereqs.push(testPrefix + 'before'); - // Create the task - createTask('before', exp.before); - } - - // Walk each exported function, and create a task for each - for (let p in exp) { - if (p == 'before' || p == 'after' || - p == 'beforeEach' || p == 'afterEach') { - continue; - } - - if (typeof exp.beforeEach == 'function') { - prereqs.push(testPrefix + p + '_beforeEach'); - // Create the task - createTask(p + '_beforeEach', exp.beforeEach); - } - - // Add the namespace:name of this test to the list of prereqs - // for the dummy top-level task - prereqs.push(testPrefix + p); - // Create the task - createTask(p, exp[p]); - - if (typeof exp.afterEach == 'function') { - prereqs.push(testPrefix + p + '_afterEach'); - // Create the task - createTask(p + '_afterEach', exp.afterEach); - } - } - - // 'after' teardown - if (typeof exp.after == 'function') { - prereqs.push(testPrefix + 'after'); - // Create the task - let afterTask = createTask('after', exp.after); - afterTask._internal = true; - } - - }); - }); - - self.totalTests = prereqs.length; - process.on('exit', function () { - // Throw in the case where the process exits without - // finishing tests, but no error was thrown - if (!jake.errorCode && (self.totalTests > self.executedTests)) { - throw new Error('Process exited without all tests completing.'); - } - }); - - // Create the dummy top-level task. When calling a task internally - // with `invoke` that is async (or has async prereqs), have to listen - // for the 'complete' event to know when it's done - topLevel = task('__top__', prereqs); - topLevel._internal = true; - topLevel.addListener('complete', function () { - jake.logger.log('All tests ran successfully'); - complete(); - }); - - topLevel.invoke(); // Do the thing! - }); - - }); - runTask._internal = true; - - }); - - -}; - -jake.TestTask = TestTask; -exports.TestTask = TestTask; - diff --git a/Easebuzz_NodeJS_kit/node_modules/jake/lib/utils/file.js b/Easebuzz_NodeJS_kit/node_modules/jake/lib/utils/file.js deleted file mode 100644 index a436def..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/jake/lib/utils/file.js +++ /dev/null @@ -1,286 +0,0 @@ -/* - * Utilities: A classic collection of JavaScript utilities - * Copyright 2112 Matthew Eernisse (mde@fleegix.org) - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * -*/ - -let fs = require('fs'); -let path = require('path'); - -/** - @name file - @namespace file -*/ - -let fileUtils = new (function () { - - // Recursively copy files and directories - let _copyFile = function (fromPath, toPath, opts) { - let from = path.normalize(fromPath) - let to = path.normalize(toPath) - let options = opts || {} - let fromStat; - let toStat; - let destExists; - let destDoesNotExistErr; - let content; - let filename; - let dirContents; - let targetDir; - - fromStat = fs.statSync(from); - - try { - //console.dir(to + ' destExists'); - toStat = fs.statSync(to); - destExists = true; - } - catch(e) { - //console.dir(to + ' does not exist'); - destDoesNotExistErr = e; - destExists = false; - } - // Destination dir or file exists, copy into (directory) - // or overwrite (file) - if (destExists) { - - // If there's a rename-via-copy file/dir name passed, use it. - // Otherwise use the actual file/dir name - filename = options.rename || path.basename(from); - - // Copying a directory - if (fromStat.isDirectory()) { - dirContents = fs.readdirSync(from); - targetDir = path.join(to, filename); - // We don't care if the target dir already exists - try { - fs.mkdirSync(targetDir, {mode: fromStat.mode & 0o777}); - } - catch(e) { - if (e.code !== 'EEXIST') { - throw e; - } - } - for (let i = 0, ii = dirContents.length; i < ii; i++) { - _copyFile(path.join(from, dirContents[i]), targetDir, {preserveMode: options.preserveMode}); - } - } - // Copying a file - else { - content = fs.readFileSync(from); - let mode = fromStat.mode & 0o777; - let targetFile = to; - - if (toStat.isDirectory()) { - targetFile = path.join(to, filename); - } - - let fileExists = fs.existsSync(targetFile); - fs.writeFileSync(targetFile, content); - - // If the file didn't already exist, use the original file mode. - // Otherwise, only update the mode if preserverMode is true. - if(!fileExists || options.preserveMode) { - fs.chmodSync(targetFile, mode); - } - } - } - // Dest doesn't exist, can't create it - else { - throw destDoesNotExistErr; - } - }; - - // Remove the given directory - let _rmDir = function (dirPath) { - let dir = path.normalize(dirPath); - let paths = []; - paths = fs.readdirSync(dir); - paths.forEach(function (p) { - let curr = path.join(dir, p); - let stat = fs.lstatSync(curr); - if (stat.isDirectory()) { - _rmDir(curr); - } - else { - try { - fs.unlinkSync(curr); - } catch(e) { - if (e.code === 'EPERM') { - fs.chmodSync(curr, parseInt(666, 8)); - fs.unlinkSync(curr); - } else { - throw e; - } - } - } - }); - fs.rmdirSync(dir); - }; - - /** - @name file#cpR - @public - @function - @description Copies a directory/file to a destination - @param {String} fromPath The source path to copy from - @param {String} toPath The destination path to copy to - @param {Object} opts Options to use - @param {Boolean} [opts.preserveMode] If target file already exists, this - determines whether the original file's mode is copied over. The default of - false mimics the behavior of the `cp` command line tool. (Default: false) - */ - this.cpR = function (fromPath, toPath, options) { - let from = path.normalize(fromPath); - let to = path.normalize(toPath); - let toStat; - let doesNotExistErr; - let filename; - let opts = options || {}; - - if (from == to) { - throw new Error('Cannot copy ' + from + ' to itself.'); - } - - // Handle rename-via-copy - try { - toStat = fs.statSync(to); - } - catch(e) { - doesNotExistErr = e; - - // Get abs path so it's possible to check parent dir - if (!this.isAbsolute(to)) { - to = path.join(process.cwd(), to); - } - - // Save the file/dir name - filename = path.basename(to); - // See if a parent dir exists, so there's a place to put the - /// renamed file/dir (resets the destination for the copy) - to = path.dirname(to); - try { - toStat = fs.statSync(to); - } - catch(e) {} - if (toStat && toStat.isDirectory()) { - // Set the rename opt to pass to the copy func, will be used - // as the new file/dir name - opts.rename = filename; - //console.log('filename ' + filename); - } - else { - throw doesNotExistErr; - } - } - - _copyFile(from, to, opts); - }; - - /** - @name file#mkdirP - @public - @function - @description Create the given directory(ies) using the given mode permissions - @param {String} dir The directory to create - @param {Number} mode The mode to give the created directory(ies)(Default: 0755) - */ - this.mkdirP = function (dir, mode) { - let dirPath = path.normalize(dir); - let paths = dirPath.split(/\/|\\/); - let currPath = ''; - let next; - - if (paths[0] == '' || /^[A-Za-z]+:/.test(paths[0])) { - currPath = paths.shift() || '/'; - currPath = path.join(currPath, paths.shift()); - //console.log('basedir'); - } - while ((next = paths.shift())) { - if (next == '..') { - currPath = path.join(currPath, next); - continue; - } - currPath = path.join(currPath, next); - try { - //console.log('making ' + currPath); - fs.mkdirSync(currPath, mode || parseInt(755, 8)); - } - catch(e) { - if (e.code != 'EEXIST') { - throw e; - } - } - } - }; - - /** - @name file#rmRf - @public - @function - @description Deletes the given directory/file - @param {String} p The path to delete, can be a directory or file - */ - this.rmRf = function (p, options) { - let stat; - try { - stat = fs.lstatSync(p); - if (stat.isDirectory()) { - _rmDir(p); - } - else { - fs.unlinkSync(p); - } - } - catch (e) {} - }; - - /** - @name file#isAbsolute - @public - @function - @return {Boolean/String} If it's absolute the first character is returned otherwise false - @description Checks if a given path is absolute or relative - @param {String} p Path to check - */ - this.isAbsolute = function (p) { - let match = /^[A-Za-z]+:\\|^\//.exec(p); - if (match && match.length) { - return match[0]; - } - return false; - }; - - /** - @name file#absolutize - @public - @function - @return {String} Returns the absolute path for the given path - @description Returns the absolute path for the given path - @param {String} p The path to get the absolute path for - */ - this.absolutize = function (p) { - if (this.isAbsolute(p)) { - return p; - } - else { - return path.join(process.cwd(), p); - } - }; - -})(); - -module.exports = fileUtils; - diff --git a/Easebuzz_NodeJS_kit/node_modules/jake/lib/utils/index.js b/Easebuzz_NodeJS_kit/node_modules/jake/lib/utils/index.js deleted file mode 100644 index 17d686b..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/jake/lib/utils/index.js +++ /dev/null @@ -1,297 +0,0 @@ -/* - * Jake JavaScript build tool - * Copyright 2112 Matthew Eernisse (mde@fleegix.org) - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * -*/ - - -let util = require('util'); // Native Node util module -let spawn = require('child_process').spawn; -let EventEmitter = require('events').EventEmitter; -let logger = require('./logger'); -let file = require('./file'); -let Exec; - -const _UUID_CHARS = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'.split(''); - -let parseArgs = function (argumentsObj) { - let args; - let arg; - let cmds; - let callback; - let opts = { - interactive: false, - printStdout: false, - printStderr: false, - breakOnError: true - }; - - args = Array.prototype.slice.call(argumentsObj); - - cmds = args.shift(); - // Arrayize if passed a single string command - if (typeof cmds == 'string') { - cmds = [cmds]; - } - // Make a copy if it's an actual list - else { - cmds = cmds.slice(); - } - - // Get optional callback or opts - while((arg = args.shift())) { - if (typeof arg == 'function') { - callback = arg; - } - else if (typeof arg == 'object') { - opts = Object.assign(opts, arg); - } - } - - // Backward-compat shim - if (typeof opts.stdout != 'undefined') { - opts.printStdout = opts.stdout; - delete opts.stdout; - } - if (typeof opts.stderr != 'undefined') { - opts.printStderr = opts.stderr; - delete opts.stderr; - } - - return { - cmds: cmds, - opts: opts, - callback: callback - }; -}; - -/** - @name jake - @namespace jake -*/ -let utils = new (function () { - /** - @name jake.exec - @static - @function - @description Executes shell-commands asynchronously with an optional - final callback. - ` - @param {String[]} cmds The list of shell-commands to execute - @param {Object} [opts] - @param {Boolean} [opts.printStdout=false] Print stdout from each command - @param {Boolean} [opts.printStderr=false] Print stderr from each command - @param {Boolean} [opts.breakOnError=true] Stop further execution on - the first error. - @param {Boolean} [opts.windowsVerbatimArguments=false] Don't translate - arguments on Windows. - @param {Function} [callback] Callback to run after executing the - commands - - @example - let cmds = [ - 'echo "showing directories"' - , 'ls -al | grep ^d' - , 'echo "moving up a directory"' - , 'cd ../' - ] - , callback = function () { - console.log('Finished running commands.'); - } - jake.exec(cmds, {stdout: true}, callback); - */ - this.exec = function (a, b, c) { - let parsed = parseArgs(arguments); - let cmds = parsed.cmds; - let opts = parsed.opts; - let callback = parsed.callback; - - let ex = new Exec(cmds, opts, callback); - - ex.addListener('error', function (msg, code) { - if (opts.breakOnError) { - fail(msg, code); - } - }); - ex.run(); - - return ex; - }; - - this.createExec = function (a, b, c) { - return new Exec(a, b, c); - }; - - // From Math.uuid.js, https://github.com/broofa/node-uuid - // Robert Kieffer (robert@broofa.com), MIT license - this.uuid = function (length, radix) { - var chars = _UUID_CHARS - , uuid = [] - , r - , i; - - radix = radix || chars.length; - - if (length) { - // Compact form - i = -1; - while (++i < length) { - uuid[i] = chars[0 | Math.random()*radix]; - } - } else { - // rfc4122, version 4 form - - // rfc4122 requires these characters - uuid[8] = uuid[13] = uuid[18] = uuid[23] = '-'; - uuid[14] = '4'; - - // Fill in random data. At i==19 set the high bits of clock sequence as - // per rfc4122, sec. 4.1.5 - i = -1; - while (++i < 36) { - if (!uuid[i]) { - r = 0 | Math.random()*16; - uuid[i] = chars[(i == 19) ? (r & 0x3) | 0x8 : r]; - } - } - } - - return uuid.join(''); - }; - -})(); - -Exec = function () { - let parsed = parseArgs(arguments); - let cmds = parsed.cmds; - let opts = parsed.opts; - let callback = parsed.callback; - - this._cmds = cmds; - this._callback = callback; - this._config = opts; -}; - -util.inherits(Exec, EventEmitter); - -Object.assign(Exec.prototype, new (function () { - - let _run = function () { - let self = this; - let sh; - let cmd; - let args; - let next = this._cmds.shift(); - let config = this._config; - let errData = ''; - let shStdio; - let handleStdoutData = function (data) { - self.emit('stdout', data); - }; - let handleStderrData = function (data) { - let d = data.toString(); - self.emit('stderr', data); - // Accumulate the error-data so we can use it as the - // stack if the process exits with an error - errData += d; - }; - - // Keep running as long as there are commands in the array - if (next) { - let spawnOpts = {}; - this.emit('cmdStart', next); - - // Ganking part of Node's child_process.exec to get cmdline args parsed - if (process.platform == 'win32') { - cmd = 'cmd'; - args = ['/c', next]; - if (config.windowsVerbatimArguments) { - spawnOpts.windowsVerbatimArguments = true; - } - } - else { - cmd = '/bin/sh'; - args = ['-c', next]; - } - - if (config.interactive) { - spawnOpts.stdio = 'inherit'; - sh = spawn(cmd, args, spawnOpts); - } - else { - shStdio = [ - process.stdin - ]; - if (config.printStdout) { - shStdio.push(process.stdout); - } - else { - shStdio.push('pipe'); - } - if (config.printStderr) { - shStdio.push(process.stderr); - } - else { - shStdio.push('pipe'); - } - spawnOpts.stdio = shStdio; - sh = spawn(cmd, args, spawnOpts); - if (!config.printStdout) { - sh.stdout.addListener('data', handleStdoutData); - } - if (!config.printStderr) { - sh.stderr.addListener('data', handleStderrData); - } - } - - // Exit, handle err or run next - sh.on('exit', function (code) { - let msg; - if (code !== 0) { - msg = errData || 'Process exited with error.'; - msg = msg.trim(); - self.emit('error', msg, code); - } - if (code === 0 || !config.breakOnError) { - self.emit('cmdEnd', next); - setTimeout(function () { _run.call(self); }, 0); - } - }); - - } - else { - self.emit('end'); - if (typeof self._callback == 'function') { - self._callback(); - } - } - }; - - this.append = function (cmd) { - this._cmds.push(cmd); - }; - - this.run = function () { - _run.call(this); - }; - -})()); - -utils.Exec = Exec; -utils.file = file; -utils.logger = logger; - -module.exports = utils; - diff --git a/Easebuzz_NodeJS_kit/node_modules/jake/lib/utils/logger.js b/Easebuzz_NodeJS_kit/node_modules/jake/lib/utils/logger.js deleted file mode 100644 index 8f72686..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/jake/lib/utils/logger.js +++ /dev/null @@ -1,24 +0,0 @@ -let util = require('util'); - -let logger = new (function () { - let _output = function (type, out) { - let quiet = typeof jake != 'undefined' && jake.program && - jake.program.opts && jake.program.opts.quiet; - let msg; - if (!quiet) { - msg = typeof out == 'string' ? out : util.inspect(out); - console[type](msg); - } - }; - - this.log = function (out) { - _output('log', out); - }; - - this.error = function (out) { - _output('error', out); - }; - -})(); - -module.exports = logger; diff --git a/Easebuzz_NodeJS_kit/node_modules/jake/node_modules/ansi-styles/index.js b/Easebuzz_NodeJS_kit/node_modules/jake/node_modules/ansi-styles/index.js deleted file mode 100644 index 90a871c..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/jake/node_modules/ansi-styles/index.js +++ /dev/null @@ -1,165 +0,0 @@ -'use strict'; -const colorConvert = require('color-convert'); - -const wrapAnsi16 = (fn, offset) => function () { - const code = fn.apply(colorConvert, arguments); - return `\u001B[${code + offset}m`; -}; - -const wrapAnsi256 = (fn, offset) => function () { - const code = fn.apply(colorConvert, arguments); - return `\u001B[${38 + offset};5;${code}m`; -}; - -const wrapAnsi16m = (fn, offset) => function () { - const rgb = fn.apply(colorConvert, arguments); - return `\u001B[${38 + offset};2;${rgb[0]};${rgb[1]};${rgb[2]}m`; -}; - -function assembleStyles() { - const codes = new Map(); - const styles = { - modifier: { - reset: [0, 0], - // 21 isn't widely supported and 22 does the same thing - bold: [1, 22], - dim: [2, 22], - italic: [3, 23], - underline: [4, 24], - inverse: [7, 27], - hidden: [8, 28], - strikethrough: [9, 29] - }, - color: { - black: [30, 39], - red: [31, 39], - green: [32, 39], - yellow: [33, 39], - blue: [34, 39], - magenta: [35, 39], - cyan: [36, 39], - white: [37, 39], - gray: [90, 39], - - // Bright color - redBright: [91, 39], - greenBright: [92, 39], - yellowBright: [93, 39], - blueBright: [94, 39], - magentaBright: [95, 39], - cyanBright: [96, 39], - whiteBright: [97, 39] - }, - bgColor: { - bgBlack: [40, 49], - bgRed: [41, 49], - bgGreen: [42, 49], - bgYellow: [43, 49], - bgBlue: [44, 49], - bgMagenta: [45, 49], - bgCyan: [46, 49], - bgWhite: [47, 49], - - // Bright color - bgBlackBright: [100, 49], - bgRedBright: [101, 49], - bgGreenBright: [102, 49], - bgYellowBright: [103, 49], - bgBlueBright: [104, 49], - bgMagentaBright: [105, 49], - bgCyanBright: [106, 49], - bgWhiteBright: [107, 49] - } - }; - - // Fix humans - styles.color.grey = styles.color.gray; - - for (const groupName of Object.keys(styles)) { - const group = styles[groupName]; - - for (const styleName of Object.keys(group)) { - const style = group[styleName]; - - styles[styleName] = { - open: `\u001B[${style[0]}m`, - close: `\u001B[${style[1]}m` - }; - - group[styleName] = styles[styleName]; - - codes.set(style[0], style[1]); - } - - Object.defineProperty(styles, groupName, { - value: group, - enumerable: false - }); - - Object.defineProperty(styles, 'codes', { - value: codes, - enumerable: false - }); - } - - const ansi2ansi = n => n; - const rgb2rgb = (r, g, b) => [r, g, b]; - - styles.color.close = '\u001B[39m'; - styles.bgColor.close = '\u001B[49m'; - - styles.color.ansi = { - ansi: wrapAnsi16(ansi2ansi, 0) - }; - styles.color.ansi256 = { - ansi256: wrapAnsi256(ansi2ansi, 0) - }; - styles.color.ansi16m = { - rgb: wrapAnsi16m(rgb2rgb, 0) - }; - - styles.bgColor.ansi = { - ansi: wrapAnsi16(ansi2ansi, 10) - }; - styles.bgColor.ansi256 = { - ansi256: wrapAnsi256(ansi2ansi, 10) - }; - styles.bgColor.ansi16m = { - rgb: wrapAnsi16m(rgb2rgb, 10) - }; - - for (let key of Object.keys(colorConvert)) { - if (typeof colorConvert[key] !== 'object') { - continue; - } - - const suite = colorConvert[key]; - - if (key === 'ansi16') { - key = 'ansi'; - } - - if ('ansi16' in suite) { - styles.color.ansi[key] = wrapAnsi16(suite.ansi16, 0); - styles.bgColor.ansi[key] = wrapAnsi16(suite.ansi16, 10); - } - - if ('ansi256' in suite) { - styles.color.ansi256[key] = wrapAnsi256(suite.ansi256, 0); - styles.bgColor.ansi256[key] = wrapAnsi256(suite.ansi256, 10); - } - - if ('rgb' in suite) { - styles.color.ansi16m[key] = wrapAnsi16m(suite.rgb, 0); - styles.bgColor.ansi16m[key] = wrapAnsi16m(suite.rgb, 10); - } - } - - return styles; -} - -// Make the export immutable -Object.defineProperty(module, 'exports', { - enumerable: true, - get: assembleStyles -}); diff --git a/Easebuzz_NodeJS_kit/node_modules/jake/node_modules/ansi-styles/license b/Easebuzz_NodeJS_kit/node_modules/jake/node_modules/ansi-styles/license deleted file mode 100644 index e7af2f7..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/jake/node_modules/ansi-styles/license +++ /dev/null @@ -1,9 +0,0 @@ -MIT License - -Copyright (c) Sindre Sorhus (sindresorhus.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/Easebuzz_NodeJS_kit/node_modules/jake/node_modules/ansi-styles/package.json b/Easebuzz_NodeJS_kit/node_modules/jake/node_modules/ansi-styles/package.json deleted file mode 100644 index 687553d..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/jake/node_modules/ansi-styles/package.json +++ /dev/null @@ -1,123 +0,0 @@ -{ - "_args": [ - [ - "ansi-styles@^3.2.1", - "/home/support/NodeJS/node_modules/jake/node_modules/chalk" - ] - ], - "_from": "ansi-styles@>=3.2.1 <4.0.0", - "_hasShrinkwrap": false, - "_id": "ansi-styles@3.2.1", - "_inCache": true, - "_installable": true, - "_location": "/jake/ansi-styles", - "_nodeVersion": "8.9.4", - "_npmOperationalInternal": { - "host": "s3://npm-registry-packages", - "tmp": "tmp/ansi-styles_3.2.1_1519983600652_0.7656433427334486" - }, - "_npmUser": { - "email": "sindresorhus@gmail.com", - "name": "sindresorhus" - }, - "_npmVersion": "5.6.0", - "_phantomChildren": {}, - "_requested": { - "name": "ansi-styles", - "raw": "ansi-styles@^3.2.1", - "rawSpec": "^3.2.1", - "scope": null, - "spec": ">=3.2.1 <4.0.0", - "type": "range" - }, - "_requiredBy": [ - "/jake/chalk" - ], - "_resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "_shasum": "41fbb20243e50b12be0f04b8dedbf07520ce841d", - "_shrinkwrap": null, - "_spec": "ansi-styles@^3.2.1", - "_where": "/home/support/NodeJS/node_modules/jake/node_modules/chalk", - "author": { - "email": "sindresorhus@gmail.com", - "name": "Sindre Sorhus", - "url": "sindresorhus.com" - }, - "ava": { - "require": "babel-polyfill" - }, - "bugs": { - "url": "https://github.com/chalk/ansi-styles/issues" - }, - "dependencies": { - "color-convert": "^1.9.0" - }, - "description": "ANSI escape codes for styling strings in the terminal", - "devDependencies": { - "ava": "*", - "babel-polyfill": "^6.23.0", - "svg-term-cli": "^2.1.1", - "xo": "*" - }, - "directories": {}, - "dist": { - "fileCount": 4, - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "shasum": "41fbb20243e50b12be0f04b8dedbf07520ce841d", - "tarball": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "unpackedSize": 9371 - }, - "engines": { - "node": ">=4" - }, - "files": [ - "index.js" - ], - "gitHead": "de7527a86c1cf49906b0eb32a0de1402d849ccc2", - "homepage": "https://github.com/chalk/ansi-styles#readme", - "keywords": [ - "256", - "ansi", - "cli", - "color", - "colors", - "colour", - "command-line", - "console", - "escape", - "formatting", - "log", - "logging", - "rgb", - "shell", - "string", - "styles", - "terminal", - "text", - "tty", - "xterm" - ], - "license": "MIT", - "maintainers": [ - { - "name": "qix", - "email": "i.am.qix@gmail.com" - }, - { - "name": "sindresorhus", - "email": "sindresorhus@gmail.com" - } - ], - "name": "ansi-styles", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git+https://github.com/chalk/ansi-styles.git" - }, - "scripts": { - "screenshot": "svg-term --command='node screenshot' --out=screenshot.svg --padding=3 --width=55 --height=3 --at=1000 --no-cursor", - "test": "xo && ava" - }, - "version": "3.2.1" -} diff --git a/Easebuzz_NodeJS_kit/node_modules/jake/node_modules/ansi-styles/readme.md b/Easebuzz_NodeJS_kit/node_modules/jake/node_modules/ansi-styles/readme.md deleted file mode 100644 index 3158e2d..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/jake/node_modules/ansi-styles/readme.md +++ /dev/null @@ -1,147 +0,0 @@ -# ansi-styles [![Build Status](https://travis-ci.org/chalk/ansi-styles.svg?branch=master)](https://travis-ci.org/chalk/ansi-styles) - -> [ANSI escape codes](http://en.wikipedia.org/wiki/ANSI_escape_code#Colors_and_Styles) for styling strings in the terminal - -You probably want the higher-level [chalk](https://github.com/chalk/chalk) module for styling your strings. - - - - -## Install - -``` -$ npm install ansi-styles -``` - - -## Usage - -```js -const style = require('ansi-styles'); - -console.log(`${style.green.open}Hello world!${style.green.close}`); - - -// Color conversion between 16/256/truecolor -// NOTE: If conversion goes to 16 colors or 256 colors, the original color -// may be degraded to fit that color palette. This means terminals -// that do not support 16 million colors will best-match the -// original color. -console.log(style.bgColor.ansi.hsl(120, 80, 72) + 'Hello world!' + style.bgColor.close); -console.log(style.color.ansi256.rgb(199, 20, 250) + 'Hello world!' + style.color.close); -console.log(style.color.ansi16m.hex('#ABCDEF') + 'Hello world!' + style.color.close); -``` - -## API - -Each style has an `open` and `close` property. - - -## Styles - -### Modifiers - -- `reset` -- `bold` -- `dim` -- `italic` *(Not widely supported)* -- `underline` -- `inverse` -- `hidden` -- `strikethrough` *(Not widely supported)* - -### Colors - -- `black` -- `red` -- `green` -- `yellow` -- `blue` -- `magenta` -- `cyan` -- `white` -- `gray` ("bright black") -- `redBright` -- `greenBright` -- `yellowBright` -- `blueBright` -- `magentaBright` -- `cyanBright` -- `whiteBright` - -### Background colors - -- `bgBlack` -- `bgRed` -- `bgGreen` -- `bgYellow` -- `bgBlue` -- `bgMagenta` -- `bgCyan` -- `bgWhite` -- `bgBlackBright` -- `bgRedBright` -- `bgGreenBright` -- `bgYellowBright` -- `bgBlueBright` -- `bgMagentaBright` -- `bgCyanBright` -- `bgWhiteBright` - - -## Advanced usage - -By default, you get a map of styles, but the styles are also available as groups. They are non-enumerable so they don't show up unless you access them explicitly. This makes it easier to expose only a subset in a higher-level module. - -- `style.modifier` -- `style.color` -- `style.bgColor` - -###### Example - -```js -console.log(style.color.green.open); -``` - -Raw escape codes (i.e. without the CSI escape prefix `\u001B[` and render mode postfix `m`) are available under `style.codes`, which returns a `Map` with the open codes as keys and close codes as values. - -###### Example - -```js -console.log(style.codes.get(36)); -//=> 39 -``` - - -## [256 / 16 million (TrueColor) support](https://gist.github.com/XVilka/8346728) - -`ansi-styles` uses the [`color-convert`](https://github.com/Qix-/color-convert) package to allow for converting between various colors and ANSI escapes, with support for 256 and 16 million colors. - -To use these, call the associated conversion function with the intended output, for example: - -```js -style.color.ansi.rgb(100, 200, 15); // RGB to 16 color ansi foreground code -style.bgColor.ansi.rgb(100, 200, 15); // RGB to 16 color ansi background code - -style.color.ansi256.hsl(120, 100, 60); // HSL to 256 color ansi foreground code -style.bgColor.ansi256.hsl(120, 100, 60); // HSL to 256 color ansi foreground code - -style.color.ansi16m.hex('#C0FFEE'); // Hex (RGB) to 16 million color foreground code -style.bgColor.ansi16m.hex('#C0FFEE'); // Hex (RGB) to 16 million color background code -``` - - -## Related - -- [ansi-escapes](https://github.com/sindresorhus/ansi-escapes) - ANSI escape codes for manipulating the terminal - - -## Maintainers - -- [Sindre Sorhus](https://github.com/sindresorhus) -- [Josh Junon](https://github.com/qix-) - - -## License - -MIT diff --git a/Easebuzz_NodeJS_kit/node_modules/jake/node_modules/chalk/index.js b/Easebuzz_NodeJS_kit/node_modules/jake/node_modules/chalk/index.js deleted file mode 100644 index 1cc5fa8..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/jake/node_modules/chalk/index.js +++ /dev/null @@ -1,228 +0,0 @@ -'use strict'; -const escapeStringRegexp = require('escape-string-regexp'); -const ansiStyles = require('ansi-styles'); -const stdoutColor = require('supports-color').stdout; - -const template = require('./templates.js'); - -const isSimpleWindowsTerm = process.platform === 'win32' && !(process.env.TERM || '').toLowerCase().startsWith('xterm'); - -// `supportsColor.level` → `ansiStyles.color[name]` mapping -const levelMapping = ['ansi', 'ansi', 'ansi256', 'ansi16m']; - -// `color-convert` models to exclude from the Chalk API due to conflicts and such -const skipModels = new Set(['gray']); - -const styles = Object.create(null); - -function applyOptions(obj, options) { - options = options || {}; - - // Detect level if not set manually - const scLevel = stdoutColor ? stdoutColor.level : 0; - obj.level = options.level === undefined ? scLevel : options.level; - obj.enabled = 'enabled' in options ? options.enabled : obj.level > 0; -} - -function Chalk(options) { - // We check for this.template here since calling `chalk.constructor()` - // by itself will have a `this` of a previously constructed chalk object - if (!this || !(this instanceof Chalk) || this.template) { - const chalk = {}; - applyOptions(chalk, options); - - chalk.template = function () { - const args = [].slice.call(arguments); - return chalkTag.apply(null, [chalk.template].concat(args)); - }; - - Object.setPrototypeOf(chalk, Chalk.prototype); - Object.setPrototypeOf(chalk.template, chalk); - - chalk.template.constructor = Chalk; - - return chalk.template; - } - - applyOptions(this, options); -} - -// Use bright blue on Windows as the normal blue color is illegible -if (isSimpleWindowsTerm) { - ansiStyles.blue.open = '\u001B[94m'; -} - -for (const key of Object.keys(ansiStyles)) { - ansiStyles[key].closeRe = new RegExp(escapeStringRegexp(ansiStyles[key].close), 'g'); - - styles[key] = { - get() { - const codes = ansiStyles[key]; - return build.call(this, this._styles ? this._styles.concat(codes) : [codes], this._empty, key); - } - }; -} - -styles.visible = { - get() { - return build.call(this, this._styles || [], true, 'visible'); - } -}; - -ansiStyles.color.closeRe = new RegExp(escapeStringRegexp(ansiStyles.color.close), 'g'); -for (const model of Object.keys(ansiStyles.color.ansi)) { - if (skipModels.has(model)) { - continue; - } - - styles[model] = { - get() { - const level = this.level; - return function () { - const open = ansiStyles.color[levelMapping[level]][model].apply(null, arguments); - const codes = { - open, - close: ansiStyles.color.close, - closeRe: ansiStyles.color.closeRe - }; - return build.call(this, this._styles ? this._styles.concat(codes) : [codes], this._empty, model); - }; - } - }; -} - -ansiStyles.bgColor.closeRe = new RegExp(escapeStringRegexp(ansiStyles.bgColor.close), 'g'); -for (const model of Object.keys(ansiStyles.bgColor.ansi)) { - if (skipModels.has(model)) { - continue; - } - - const bgModel = 'bg' + model[0].toUpperCase() + model.slice(1); - styles[bgModel] = { - get() { - const level = this.level; - return function () { - const open = ansiStyles.bgColor[levelMapping[level]][model].apply(null, arguments); - const codes = { - open, - close: ansiStyles.bgColor.close, - closeRe: ansiStyles.bgColor.closeRe - }; - return build.call(this, this._styles ? this._styles.concat(codes) : [codes], this._empty, model); - }; - } - }; -} - -const proto = Object.defineProperties(() => {}, styles); - -function build(_styles, _empty, key) { - const builder = function () { - return applyStyle.apply(builder, arguments); - }; - - builder._styles = _styles; - builder._empty = _empty; - - const self = this; - - Object.defineProperty(builder, 'level', { - enumerable: true, - get() { - return self.level; - }, - set(level) { - self.level = level; - } - }); - - Object.defineProperty(builder, 'enabled', { - enumerable: true, - get() { - return self.enabled; - }, - set(enabled) { - self.enabled = enabled; - } - }); - - // See below for fix regarding invisible grey/dim combination on Windows - builder.hasGrey = this.hasGrey || key === 'gray' || key === 'grey'; - - // `__proto__` is used because we must return a function, but there is - // no way to create a function with a different prototype - builder.__proto__ = proto; // eslint-disable-line no-proto - - return builder; -} - -function applyStyle() { - // Support varags, but simply cast to string in case there's only one arg - const args = arguments; - const argsLen = args.length; - let str = String(arguments[0]); - - if (argsLen === 0) { - return ''; - } - - if (argsLen > 1) { - // Don't slice `arguments`, it prevents V8 optimizations - for (let a = 1; a < argsLen; a++) { - str += ' ' + args[a]; - } - } - - if (!this.enabled || this.level <= 0 || !str) { - return this._empty ? '' : str; - } - - // Turns out that on Windows dimmed gray text becomes invisible in cmd.exe, - // see https://github.com/chalk/chalk/issues/58 - // If we're on Windows and we're dealing with a gray color, temporarily make 'dim' a noop. - const originalDim = ansiStyles.dim.open; - if (isSimpleWindowsTerm && this.hasGrey) { - ansiStyles.dim.open = ''; - } - - for (const code of this._styles.slice().reverse()) { - // Replace any instances already present with a re-opening code - // otherwise only the part of the string until said closing code - // will be colored, and the rest will simply be 'plain'. - str = code.open + str.replace(code.closeRe, code.open) + code.close; - - // Close the styling before a linebreak and reopen - // after next line to fix a bleed issue on macOS - // https://github.com/chalk/chalk/pull/92 - str = str.replace(/\r?\n/g, `${code.close}$&${code.open}`); - } - - // Reset the original `dim` if we changed it to work around the Windows dimmed gray issue - ansiStyles.dim.open = originalDim; - - return str; -} - -function chalkTag(chalk, strings) { - if (!Array.isArray(strings)) { - // If chalk() was called by itself or with a string, - // return the string itself as a string. - return [].slice.call(arguments, 1).join(' '); - } - - const args = [].slice.call(arguments, 2); - const parts = [strings.raw[0]]; - - for (let i = 1; i < strings.length; i++) { - parts.push(String(args[i - 1]).replace(/[{}\\]/g, '\\$&')); - parts.push(String(strings.raw[i])); - } - - return template(chalk, parts.join('')); -} - -Object.defineProperties(Chalk.prototype, styles); - -module.exports = Chalk(); // eslint-disable-line new-cap -module.exports.supportsColor = stdoutColor; -module.exports.default = module.exports; // For TypeScript diff --git a/Easebuzz_NodeJS_kit/node_modules/jake/node_modules/chalk/index.js.flow b/Easebuzz_NodeJS_kit/node_modules/jake/node_modules/chalk/index.js.flow deleted file mode 100644 index 622caaa..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/jake/node_modules/chalk/index.js.flow +++ /dev/null @@ -1,93 +0,0 @@ -// @flow strict - -type TemplateStringsArray = $ReadOnlyArray; - -export type Level = $Values<{ - None: 0, - Basic: 1, - Ansi256: 2, - TrueColor: 3 -}>; - -export type ChalkOptions = {| - enabled?: boolean, - level?: Level -|}; - -export type ColorSupport = {| - level: Level, - hasBasic: boolean, - has256: boolean, - has16m: boolean -|}; - -export interface Chalk { - (...text: string[]): string, - (text: TemplateStringsArray, ...placeholders: string[]): string, - constructor(options?: ChalkOptions): Chalk, - enabled: boolean, - level: Level, - rgb(r: number, g: number, b: number): Chalk, - hsl(h: number, s: number, l: number): Chalk, - hsv(h: number, s: number, v: number): Chalk, - hwb(h: number, w: number, b: number): Chalk, - bgHex(color: string): Chalk, - bgKeyword(color: string): Chalk, - bgRgb(r: number, g: number, b: number): Chalk, - bgHsl(h: number, s: number, l: number): Chalk, - bgHsv(h: number, s: number, v: number): Chalk, - bgHwb(h: number, w: number, b: number): Chalk, - hex(color: string): Chalk, - keyword(color: string): Chalk, - - +reset: Chalk, - +bold: Chalk, - +dim: Chalk, - +italic: Chalk, - +underline: Chalk, - +inverse: Chalk, - +hidden: Chalk, - +strikethrough: Chalk, - - +visible: Chalk, - - +black: Chalk, - +red: Chalk, - +green: Chalk, - +yellow: Chalk, - +blue: Chalk, - +magenta: Chalk, - +cyan: Chalk, - +white: Chalk, - +gray: Chalk, - +grey: Chalk, - +blackBright: Chalk, - +redBright: Chalk, - +greenBright: Chalk, - +yellowBright: Chalk, - +blueBright: Chalk, - +magentaBright: Chalk, - +cyanBright: Chalk, - +whiteBright: Chalk, - - +bgBlack: Chalk, - +bgRed: Chalk, - +bgGreen: Chalk, - +bgYellow: Chalk, - +bgBlue: Chalk, - +bgMagenta: Chalk, - +bgCyan: Chalk, - +bgWhite: Chalk, - +bgBlackBright: Chalk, - +bgRedBright: Chalk, - +bgGreenBright: Chalk, - +bgYellowBright: Chalk, - +bgBlueBright: Chalk, - +bgMagentaBright: Chalk, - +bgCyanBright: Chalk, - +bgWhiteBrigh: Chalk, - - supportsColor: ColorSupport -}; - -declare module.exports: Chalk; diff --git a/Easebuzz_NodeJS_kit/node_modules/jake/node_modules/chalk/license b/Easebuzz_NodeJS_kit/node_modules/jake/node_modules/chalk/license deleted file mode 100644 index e7af2f7..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/jake/node_modules/chalk/license +++ /dev/null @@ -1,9 +0,0 @@ -MIT License - -Copyright (c) Sindre Sorhus (sindresorhus.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/Easebuzz_NodeJS_kit/node_modules/jake/node_modules/chalk/package.json b/Easebuzz_NodeJS_kit/node_modules/jake/node_modules/chalk/package.json deleted file mode 100644 index 56d4592..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/jake/node_modules/chalk/package.json +++ /dev/null @@ -1,133 +0,0 @@ -{ - "_args": [ - [ - "chalk@^2.4.2", - "/home/support/NodeJS/node_modules/jake" - ] - ], - "_from": "chalk@>=2.4.2 <3.0.0", - "_hasShrinkwrap": false, - "_id": "chalk@2.4.2", - "_inCache": true, - "_installable": true, - "_location": "/jake/chalk", - "_nodeVersion": "10.13.0", - "_npmOperationalInternal": { - "host": "s3://npm-registry-packages", - "tmp": "tmp/chalk_2.4.2_1546703152138_0.5501232329596948" - }, - "_npmUser": { - "email": "sindresorhus@gmail.com", - "name": "sindresorhus" - }, - "_npmVersion": "6.5.0", - "_phantomChildren": {}, - "_requested": { - "name": "chalk", - "raw": "chalk@^2.4.2", - "rawSpec": "^2.4.2", - "scope": null, - "spec": ">=2.4.2 <3.0.0", - "type": "range" - }, - "_requiredBy": [ - "/jake" - ], - "_resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", - "_shasum": "cd42541677a54333cf541a49108c1432b44c9424", - "_shrinkwrap": null, - "_spec": "chalk@^2.4.2", - "_where": "/home/support/NodeJS/node_modules/jake", - "bugs": { - "url": "https://github.com/chalk/chalk/issues" - }, - "dependencies": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - }, - "description": "Terminal string styling done right", - "devDependencies": { - "ava": "*", - "coveralls": "^3.0.0", - "execa": "^0.9.0", - "flow-bin": "^0.68.0", - "import-fresh": "^2.0.0", - "matcha": "^0.7.0", - "nyc": "^11.0.2", - "resolve-from": "^4.0.0", - "typescript": "^2.5.3", - "xo": "*" - }, - "directories": {}, - "dist": { - "fileCount": 7, - "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", - "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcMNEwCRA9TVsSAnZWagAAmpUQAJgCZygaBX9qniyJ7YVF\nOXq9BNycBSnHyRd5YnaoO6HB7ejh/M4CYYGPqdSQ0OXEk1teNm7iPhGhocbW\n0eEcg0gsnVTgkUKx5p3o841VKydwy72FDgO9WJjKm2QC/mwuYHB9kI7zkq3h\nkakWBNGlKxbKNYX+7x04BXx1H8Fn1CSE//133uQnUWzM6NSXrUwpiZTzwtXi\nOybESujfKq6x6DxlYsTTScThCUodQQTslxIrdeS8PZxQL1RqCwnJSMHi81nI\nPR5BNVbAEYOsZuw88mNEtc6sHellN3ZFVlZwFDu4ZDskgoMiXZVv7Qp6AXbN\nCdsz1ej/OBFdwUfjS17igoHY3sO3+7o3IuFFaCXM4lkSE2zu79M2A7H0GL0R\nUcyfM1OC/nRcLgeEytIDBSOAgeN4tstswdyagFQ36jymeKUyz+q50ziBchey\nZnxPMGYDMKTx+me3TGpf3SbjiSstyZm8GLWPhRLbkjIDajFcFnq2HZXUu/LR\npdFJIWqnJihr9dxxiPSxddqZspb/Jo2mD2+ILNxROZB5+nzmlLnV/PsnnbxM\nPRN0iYDQt6NtXce/GOFMasLwtwidfHx8B4ybmObU3btbmg7V7Og++xpVg+h1\nQfACtop8sZyVN3l65vhonCmioqpSLQPeEkMvwGN6/7wi01BRi5VI4DdEtIet\nHcNL\r\n=DerQ\r\n-----END PGP SIGNATURE-----\r\n", - "shasum": "cd42541677a54333cf541a49108c1432b44c9424", - "tarball": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", - "unpackedSize": 26924 - }, - "engines": { - "node": ">=4" - }, - "gitHead": "9776a2ae5b5b1712ccf16416b55f47e575a81fb9", - "homepage": "https://github.com/chalk/chalk#readme", - "keywords": [ - "256", - "ansi", - "cli", - "color", - "colors", - "colour", - "command-line", - "console", - "formatting", - "log", - "logging", - "rgb", - "shell", - "str", - "string", - "style", - "styles", - "terminal", - "text", - "tty", - "xterm" - ], - "license": "MIT", - "maintainers": [ - { - "name": "qix", - "email": "i.am.qix@gmail.com" - }, - { - "name": "sindresorhus", - "email": "sindresorhus@gmail.com" - } - ], - "name": "chalk", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git+https://github.com/chalk/chalk.git" - }, - "scripts": { - "bench": "matcha benchmark.js", - "coveralls": "nyc report --reporter=text-lcov | coveralls", - "test": "xo && tsc --project types && flow --max-warnings=0 && nyc ava" - }, - "types": "types/index.d.ts", - "version": "2.4.2", - "xo": { - "envs": [ - "mocha", - "node" - ], - "ignores": [ - "test/_flow.js" - ] - } -} diff --git a/Easebuzz_NodeJS_kit/node_modules/jake/node_modules/chalk/readme.md b/Easebuzz_NodeJS_kit/node_modules/jake/node_modules/chalk/readme.md deleted file mode 100644 index d298e2c..0000000 --- a/Easebuzz_NodeJS_kit/node_modules/jake/node_modules/chalk/readme.md +++ /dev/null @@ -1,314 +0,0 @@ -

-
-
- Chalk -
-
-
-

- -> Terminal string styling done right - -[![Build Status](https://travis-ci.org/chalk/chalk.svg?branch=master)](https://travis-ci.org/chalk/chalk) [![Coverage Status](https://coveralls.io/repos/github/chalk/chalk/badge.svg?branch=master)](https://coveralls.io/github/chalk/chalk?branch=master) [![](https://img.shields.io/badge/unicorn-approved-ff69b4.svg)](https://www.youtube.com/watch?v=9auOCbH5Ns4) [![XO code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/xojs/xo) [![Mentioned in Awesome Node.js](https://awesome.re/mentioned-badge.svg)](https://github.com/sindresorhus/awesome-nodejs) - -### [See what's new in Chalk 2](https://github.com/chalk/chalk/releases/tag/v2.0.0) - - - - -## Highlights - -- Expressive API -- Highly performant -- Ability to nest styles -- [256/Truecolor color support](#256-and-truecolor-color-support) -- Auto-detects color support -- Doesn't extend `String.prototype` -- Clean and focused -- Actively maintained -- [Used by ~23,000 packages](https://www.npmjs.com/browse/depended/chalk) as of December 31, 2017 - - -## Install - -```console -$ npm install chalk -``` - - - - - - -## Usage - -```js -const chalk = require('chalk'); - -console.log(chalk.blue('Hello world!')); -``` - -Chalk comes with an easy to use composable API where you just chain and nest the styles you want. - -```js -const chalk = require('chalk'); -const log = console.log; - -// Combine styled and normal strings -log(chalk.blue('Hello') + ' World' + chalk.red('!')); - -// Compose multiple styles using the chainable API -log(chalk.blue.bgRed.bold('Hello world!')); - -// Pass in multiple arguments -log(chalk.blue('Hello', 'World!', 'Foo', 'bar', 'biz', 'baz')); - -// Nest styles -log(chalk.red('Hello', chalk.underline.bgBlue('world') + '!')); - -// Nest styles of the same type even (color, underline, background) -log(chalk.green( - 'I am a green line ' + - chalk.blue.underline.bold('with a blue substring') + - ' that becomes green again!' -)); - -// ES2015 template literal -log(` -CPU: ${chalk.red('90%')} -RAM: ${chalk.green('40%')} -DISK: ${chalk.yellow('70%')} -`); - -// ES2015 tagged template literal -log(chalk` -CPU: {red ${cpu.totalPercent}%} -RAM: {green ${ram.used / ram.total * 100}%} -DISK: {rgb(255,131,0) ${disk.used / disk.total * 100}%} -`); - -// Use RGB colors in terminal emulators that support it. -log(chalk.keyword('orange')('Yay for orange colored text!')); -log(chalk.rgb(123, 45, 67).underline('Underlined reddish color')); -log(chalk.hex('#DEADED').bold('Bold gray!')); -``` - -Easily define your own themes: - -```js -const chalk = require('chalk'); - -const error = chalk.bold.red; -const warning = chalk.keyword('orange'); - -console.log(error('Error!')); -console.log(warning('Warning!')); -``` - -Take advantage of console.log [string substitution](https://nodejs.org/docs/latest/api/console.html#console_console_log_data_args): - -```js -const name = 'Sindre'; -console.log(chalk.green('Hello %s'), name); -//=> 'Hello Sindre' -``` - - -## API - -### chalk.`