@lopatnov/express-reverse-proxy 1.2.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +192 -192
- package/README.md +524 -109
- package/ecosystem.config.cjs +24 -0
- package/package.json +44 -18
- package/server.js +294 -97
- package/.eslintrc.json +0 -18
- package/.git/COMMIT_EDITMSG +0 -1
- package/.git/FETCH_HEAD +0 -6
- package/.git/HEAD +0 -1
- package/.git/ORIG_HEAD +0 -1
- package/.git/config +0 -13
- package/.git/description +0 -1
- package/.git/hooks/applypatch-msg.sample +0 -15
- package/.git/hooks/commit-msg.sample +0 -24
- package/.git/hooks/fsmonitor-watchman.sample +0 -173
- package/.git/hooks/post-update.sample +0 -8
- package/.git/hooks/pre-applypatch.sample +0 -14
- package/.git/hooks/pre-commit.sample +0 -49
- package/.git/hooks/pre-merge-commit.sample +0 -13
- package/.git/hooks/pre-push.sample +0 -53
- package/.git/hooks/pre-rebase.sample +0 -169
- package/.git/hooks/pre-receive.sample +0 -24
- package/.git/hooks/prepare-commit-msg.sample +0 -42
- package/.git/hooks/push-to-checkout.sample +0 -78
- package/.git/hooks/update.sample +0 -128
- package/.git/index +0 -0
- package/.git/info/exclude +0 -6
- package/.git/logs/HEAD +0 -21
- package/.git/logs/refs/heads/master +0 -21
- package/.git/logs/refs/remotes/origin/HEAD +0 -1
- package/.git/logs/refs/remotes/origin/dependabot/npm_and_yarn/async-2.6.4 +0 -1
- package/.git/logs/refs/remotes/origin/dependabot/npm_and_yarn/follow-redirects-1.14.8 +0 -1
- package/.git/logs/refs/remotes/origin/dependabot/npm_and_yarn/follow-redirects-1.15.1 +0 -1
- package/.git/logs/refs/remotes/origin/dependabot/npm_and_yarn/minimist-1.2.6 +0 -2
- package/.git/logs/refs/remotes/origin/dependabot/npm_and_yarn/moment-2.29.4 +0 -2
- package/.git/logs/refs/remotes/origin/dependabot/npm_and_yarn/vm2-3.9.10 +0 -1
- package/.git/logs/refs/remotes/origin/dependabot/npm_and_yarn/vm2-3.9.7 +0 -1
- package/.git/logs/refs/remotes/origin/master +0 -20
- package/.git/objects/02/2f0d6daa910e95df17f9864c245498142f91b1 +0 -0
- package/.git/objects/05/5c1a74a1e2d853bd7f7ccc8eecab205ed7ec55 +0 -0
- package/.git/objects/05/7279a8af3092f351c4ae469bd547adfc76f7a4 +0 -0
- package/.git/objects/05/c82a6f0ea9c0a164aad76ced44fec680b8604a +0 -0
- package/.git/objects/06/051cdbe81b43e531f1ca0fa765cb4c91d91ea1 +0 -0
- package/.git/objects/0a/8635f2c0a6626f197585fa2a44b9c92cf27709 +0 -0
- package/.git/objects/12/3d8423180da838ba0af1284aae79e1a955c98b +0 -0
- package/.git/objects/12/8811e49aa28e93060a0921bbd8b7eabba968ff +0 -0
- package/.git/objects/14/3d5eca2e4998e6899de6049e38b4bf2559e4e0 +0 -0
- package/.git/objects/14/d1535abc130e7354294b917eb7d5c32eb29e34 +0 -0
- package/.git/objects/16/a3a924f2a6924622e739eebe236ef713030c8b +0 -0
- package/.git/objects/17/fe62d46c8606309d1954bfef9e692410da2710 +0 -0
- package/.git/objects/1a/e23bdc300d7dddb5d7a1405774f3ac3d8658a7 +0 -0
- package/.git/objects/1d/559712ab5ec703cf8e866b24b8dfb3b321ff03 +0 -0
- package/.git/objects/1f/4bda8b3565949d26f700322b343189d29bffdf +0 -3
- package/.git/objects/20/09e0695e8376740e4e88b63f1eb219671f14a4 +0 -0
- package/.git/objects/22/034a86b3f190407ef7a2c0eaf212ddaa686f16 +0 -0
- package/.git/objects/22/98fdc28f7dd444c1a852e87db8a1c5865b3407 +0 -0
- package/.git/objects/25/9462200ffecedc2eef36f888eb503e3f2e81ec +0 -0
- package/.git/objects/28/220d00bdbed408d7a98ece866fb5af1e7d1395 +0 -0
- package/.git/objects/2a/107bbc4529b3b4fb726be42f7ce11d4a1eb983 +0 -0
- package/.git/objects/2e/883b77fd3c5ea062c8ed62428cd7d9758312d7 +0 -7
- package/.git/objects/32/01f58ddbc1e42624f99b0e7620dbf92034b136 +0 -0
- package/.git/objects/33/f5906b4664855687be03e7d6d93092c9daf955 +0 -0
- package/.git/objects/35/01719e91f3a07024fe56483eea7039d7d96844 +0 -0
- package/.git/objects/39/fb332adf9703decb515ff845b2c93ee7bdd191 +0 -0
- package/.git/objects/3a/2fe95e41237bf8a5f56094b3b1446f8951d175 +0 -0
- package/.git/objects/3a/4d74b53dc2acdf09452ccf6c30100a929f557d +0 -0
- package/.git/objects/3b/f4ee4b9fb6b872ee61b1a392113d208ca7c762 +0 -0
- package/.git/objects/3f/8e368a352ad9a944b90208dee1188e4330a2f1 +0 -1
- package/.git/objects/40/fee296277005a8165f12da95c7e9e6b718e51f +0 -0
- package/.git/objects/42/923e1c24b6ae751b59ac453706b67322d66969 +0 -0
- package/.git/objects/44/9201848ea33a0fad0ee0737f801f048cfade82 +0 -2
- package/.git/objects/44/c2b7071686272d99d4664916dfb67f4102c6f4 +0 -0
- package/.git/objects/44/e27cef5a809b8c2d36871c5193198142431a63 +0 -0
- package/.git/objects/47/491e904d9441fa24d865860bf1dff1843c6a9c +0 -0
- package/.git/objects/49/896c097c75250aa3c08d2bed5d709771cb1787 +0 -0
- package/.git/objects/4b/47d7aeb054f8ab581690b65dcb12308ba90b6c +0 -0
- package/.git/objects/51/bcfd3f0fb55af10bd01265b307e511c717a755 +0 -2
- package/.git/objects/52/e0845974b78b0332e5b1d8c8705c0bd4fb83bc +0 -0
- package/.git/objects/56/fd1ca1e0010b81c9559e1f429d89884cded9f7 +0 -0
- package/.git/objects/5b/c7e4571e0196bc7913762a38c0698ab23b4b40 +0 -0
- package/.git/objects/5c/877893711138b63925cd066f1403901f889fd1 +0 -4
- package/.git/objects/5c/c52ffbdac3063a1319982b7d1bf18773f96181 +0 -0
- package/.git/objects/5d/cc561a09ef24892a16f23881962624a126f9ca +0 -0
- package/.git/objects/5e/3da9aaf50f9faecdc9cb1ebeab3fba5a9e8fb4 +0 -0
- package/.git/objects/5f/7c7f1513de49814f849f66114759c6daef837d +0 -0
- package/.git/objects/60/9b0f2c978e3bfbb668031fe58c4b3f1086421c +0 -0
- package/.git/objects/62/e1d5405b6e2433872d38a651a967baab80be1b +0 -2
- package/.git/objects/63/7d388cf0ac25bd240977bf8c908a1e5fa92dd8 +0 -0
- package/.git/objects/64/967bb9704893349c92a31f5291fc0eb2c13fa9 +0 -0
- package/.git/objects/6e/22bebb02332d3ff461dca72d0ecb8f1d44835f +0 -0
- package/.git/objects/6f/220ef271ba804052014c8a5d406a1438efef64 +0 -0
- package/.git/objects/72/32a03c47d5fc7353f9cd67b0bd0ffa45390bb4 +0 -0
- package/.git/objects/75/b2aa96174e983a871d2c87d81f05421e8248ba +0 -0
- package/.git/objects/79/8e4fbb78de9a88cda3399b861f9d2243e6ca3b +0 -0
- package/.git/objects/7a/ca04662f44988f4746e4ec6e6ad2d481adcb87 +0 -0
- package/.git/objects/7b/128a2d2b038fd39112c16a4ff67e52d2bab57c +0 -0
- package/.git/objects/7e/37081ce9bd43723b56ef91330cd8e2983b538f +0 -0
- package/.git/objects/7f/3277bd2a1e2b01b395caf1e0e8999c1682c223 +0 -0
- package/.git/objects/7f/68ff06abdaef72ab4f134ecb6912cf324c692c +0 -0
- package/.git/objects/80/45e37f977ea779b4b20900a64a296df56cb9ce +0 -0
- package/.git/objects/83/5696f89cedc2214df0ffc788f08c4d58a97c95 +0 -0
- package/.git/objects/85/b13d9fef3c897366d43df137438cd28f915087 +0 -0
- package/.git/objects/86/a2acaeb7d5eaa7d780a438cfa3db2c3db1d789 +0 -0
- package/.git/objects/88/f8a58d189410942cf2616d55cdc98f939a8d3b +0 -0
- package/.git/objects/93/8f44fae33e8ef450b8087f408c6163bc4238b2 +0 -0
- package/.git/objects/95/d70526c36e8b3e5c814f64645623371d57946d +0 -0
- package/.git/objects/98/455ae14312780d38b2432eb1f189906104e241 +0 -0
- package/.git/objects/98/898b1fd7b14788c34282603fca629e813ba546 +0 -0
- package/.git/objects/99/9aeeca83fc1e75d40326046dc5ccc680c8b036 +0 -0
- package/.git/objects/9a/cf383b82ac33819ec1fcb70ebeab1f3a67088c +0 -0
- package/.git/objects/9d/31d2fc81e780e5e2de1c51b8e705005e94d59d +0 -0
- package/.git/objects/a0/ba9902313fe5c077bdb4ae500fd479474d27e5 +0 -0
- package/.git/objects/a1/c059c501cc6834f3ad5dea003751ae6b47e71c +0 -0
- package/.git/objects/a2/955bbd248d85219a4264c1b21dc7c2d0481d11 +0 -0
- package/.git/objects/a4/94b1ba0a2b0e2bb8431857f3a9e77f81845d6b +0 -0
- package/.git/objects/a4/a1ac412998cdfe316b39e29e5462057602c1d6 +0 -0
- package/.git/objects/a6/43204a711923772e092d7b4d098e553ec9e917 +0 -3
- package/.git/objects/ac/7c581c37018c146af70e6165a8075026964c96 +0 -0
- package/.git/objects/b1/13bc721117f222d824addd66e7d241edd44449 +0 -0
- package/.git/objects/b2/d3bfa9522988ed8d214b800d093efc80da7b8f +0 -0
- package/.git/objects/b9/29f8894983314681cd5c5cc933ad4091edf51b +0 -0
- package/.git/objects/bb/269a37e471f96225f825accb8fec832556baeb +0 -0
- package/.git/objects/be/6b92cd3ae0f90b9b3fae0ca6661931dae6c83a +0 -0
- package/.git/objects/c0/e2ecce02f4d74977c088b07ddae70af1b0204b +0 -0
- package/.git/objects/c4/26b83eae1a1a426af62f1c6ebbbf30f258d696 +0 -2
- package/.git/objects/c4/59a1ea5de4599d66be6c3e6fabdf86c482b0e0 +0 -0
- package/.git/objects/c4/939e403dc1de89cddf6ef031d81504d1c1f650 +0 -0
- package/.git/objects/ca/4942a1100642a56ccf314d1e9c4db6da1ee5d2 +0 -0
- package/.git/objects/cc/6904a6336d2a954e954bb0d1e50aea08c83494 +0 -0
- package/.git/objects/cd/084b222732a6e80a2440e9ecdd773aedb197e6 +0 -0
- package/.git/objects/ce/76a6a80691518fa330d62dc9f1c15d570e2bf9 +0 -0
- package/.git/objects/ce/df14292e7c3e219801794c7135cc878c921712 +0 -0
- package/.git/objects/d0/ff27ffbc3bdc741b65b55d95a20c57f8ab1ca9 +0 -0
- package/.git/objects/d4/2d9e97b06faba28b13073e01f75115237ab8f8 +0 -0
- package/.git/objects/d5/2717c6fd9c3deeb0ff98151d64927d2a6234c6 +0 -0
- package/.git/objects/d9/6866dd25bae6d71e35df942eda0353695affd9 +0 -0
- package/.git/objects/d9/981364d8a15210123a3585846031c62eaecd8f +0 -0
- package/.git/objects/db/454cbee6da5938914837cda981dea069f7f409 +0 -0
- package/.git/objects/dc/8a7af695dba46389944b008a3800f12bceb329 +0 -0
- package/.git/objects/dd/b3b7a413e020bae0d7a4bec93871427e70d257 +0 -0
- package/.git/objects/df/35b2679810d172a657f924038c8c90973313ca +0 -3
- package/.git/objects/e0/225a10fccf658bad584b6995c4edd2ff7a77f5 +0 -0
- package/.git/objects/e3/0862243d79a9b5ad215e5bca60a71c4220e72d +0 -0
- package/.git/objects/e4/1a72681611b269bcbf92635a577fbd4d1dc7a2 +0 -0
- package/.git/objects/e5/2673bb0d2f0856fee0cef63f2018cf38aaf12a +0 -0
- package/.git/objects/e9/bd949a381501bde67f21ba4d00c670cd65663c +0 -0
- package/.git/objects/e9/ee6edda984b1f7fac59160bd9231433b3fea2b +0 -0
- package/.git/objects/eb/d4328efb09276aab6e1cfc1c954a96528d5c99 +0 -0
- package/.git/objects/eb/eb5a56b15dab25752fdaa5c407aa876cbf23b3 +0 -0
- package/.git/objects/ec/04c9bbf4a5d62f695cdf80e49ce07b86b7013e +0 -0
- package/.git/objects/ef/2403cca5e0283f168e74e1e0548f0bee6ba64b +0 -5
- package/.git/objects/ef/de9a8166073eaffcbdb334a63e93ab2e0e2bb2 +0 -3
- package/.git/objects/f1/8fc2e1985b84cd24de30829a7a4a9c691340c9 +0 -0
- package/.git/objects/f2/05d1ab0819bb3f13a368bf1473f1059dd2f1fa +0 -0
- package/.git/objects/f2/9fbde97f3b548ee6ec891b4b411707ebf0561a +0 -0
- package/.git/objects/f5/f2285b984ce7ef265cf79ce10ba51dcc9f9ad6 +0 -0
- package/.git/objects/f6/0628ae8baf0c0379b3e7ab6d75f172f74a005e +0 -0
- package/.git/objects/f6/935898caad4dee4ea9282ca155e3c3bf3715fc +0 -0
- package/.git/objects/f6/e44fde420f65f300fb5d363ef95a186e4165e5 +0 -0
- package/.git/objects/f7/a182eb7c42ff63bf11edf772b65bdf7d706d96 +0 -0
- package/.git/objects/f8/14559da278a2f0cfd627b62d7d325085eef17b +0 -0
- package/.git/objects/f8/aff9f6e425792723ef5fe5dbdf85b53bce2fe9 +0 -0
- package/.git/objects/f9/63ccecc3469eb1ef17e3685032099ec13f5a0f +0 -0
- package/.git/objects/f9/8ad699a4944fb6f793485d4e2ea3c7bf5aec96 +0 -0
- package/.git/objects/fd/4f133c0aca14ec46bccb1b7ef8258ff1343761 +0 -2
- package/.git/objects/fd/a93fd9e44b59cfec306dd85a72db21360569a4 +0 -0
- package/.git/objects/ff/5b08014258895dbb22d6b171aeee232fdcda7b +0 -0
- package/.git/objects/pack/pack-63ffdae441c323ee12f24bd65e4b0b162f008209.idx +0 -0
- package/.git/objects/pack/pack-63ffdae441c323ee12f24bd65e4b0b162f008209.pack +0 -0
- package/.git/packed-refs +0 -4
- package/.git/refs/heads/master +0 -1
- package/.git/refs/remotes/origin/HEAD +0 -1
- package/.git/refs/remotes/origin/dependabot/npm_and_yarn/async-2.6.4 +0 -1
- package/.git/refs/remotes/origin/dependabot/npm_and_yarn/follow-redirects-1.14.8 +0 -1
- package/.git/refs/remotes/origin/dependabot/npm_and_yarn/follow-redirects-1.15.1 +0 -1
- package/.git/refs/remotes/origin/dependabot/npm_and_yarn/minimist-1.2.6 +0 -1
- package/.git/refs/remotes/origin/dependabot/npm_and_yarn/moment-2.29.4 +0 -1
- package/.git/refs/remotes/origin/dependabot/npm_and_yarn/vm2-3.9.10 +0 -1
- package/.git/refs/remotes/origin/dependabot/npm_and_yarn/vm2-3.9.7 +0 -1
- package/.git/refs/remotes/origin/master +0 -1
- package/.git/tortoisegit.data +0 -0
- package/.git/tortoisegit.index +0 -0
- package/.gitattributes +0 -52
- package/.github/FUNDING.yml +0 -3
- package/.github/ISSUE_TEMPLATE/bug_report.md +0 -38
- package/.github/ISSUE_TEMPLATE/feature_request.md +0 -20
- package/.github/ISSUE_TEMPLATE/vulnerability-report.md +0 -10
- package/.gitignore +0 -104
- package/.vscode/launch.json +0 -17
- package/CODE_OF_CONDUCT.md +0 -76
- package/Dockerfile +0 -10
- package/SECURITY.md +0 -18
- package/_config.yml +0 -1
- package/ecosystem.config.js +0 -10
- package/node_modules/@eslint/eslintrc/LICENSE +0 -21
- package/node_modules/@eslint/eslintrc/README.md +0 -61
- package/node_modules/@eslint/eslintrc/conf/config-schema.js +0 -79
- package/node_modules/@eslint/eslintrc/conf/environments.js +0 -179
- package/node_modules/@eslint/eslintrc/conf/eslint-all.cjs +0 -12
- package/node_modules/@eslint/eslintrc/conf/eslint-recommended.cjs +0 -12
- package/node_modules/@eslint/eslintrc/lib/cascading-config-array-factory.js +0 -520
- package/node_modules/@eslint/eslintrc/lib/config-array/config-array.js +0 -523
- package/node_modules/@eslint/eslintrc/lib/config-array/config-dependency.js +0 -115
- package/node_modules/@eslint/eslintrc/lib/config-array/extracted-config.js +0 -145
- package/node_modules/@eslint/eslintrc/lib/config-array/ignore-pattern.js +0 -238
- package/node_modules/@eslint/eslintrc/lib/config-array/index.js +0 -19
- package/node_modules/@eslint/eslintrc/lib/config-array/override-tester.js +0 -225
- package/node_modules/@eslint/eslintrc/lib/config-array-factory.js +0 -1103
- package/node_modules/@eslint/eslintrc/lib/flat-compat.js +0 -310
- package/node_modules/@eslint/eslintrc/lib/index-universal.js +0 -29
- package/node_modules/@eslint/eslintrc/lib/index.js +0 -56
- package/node_modules/@eslint/eslintrc/lib/shared/ajv.js +0 -191
- package/node_modules/@eslint/eslintrc/lib/shared/config-ops.js +0 -135
- package/node_modules/@eslint/eslintrc/lib/shared/config-validator.js +0 -325
- package/node_modules/@eslint/eslintrc/lib/shared/deprecation-warnings.js +0 -63
- package/node_modules/@eslint/eslintrc/lib/shared/naming.js +0 -96
- package/node_modules/@eslint/eslintrc/lib/shared/relative-module-resolver.js +0 -42
- package/node_modules/@eslint/eslintrc/lib/shared/types.js +0 -149
- package/node_modules/@eslint/eslintrc/package.json +0 -81
- package/node_modules/@eslint/eslintrc/universal.js +0 -9
- package/node_modules/@humanwhocodes/config-array/CHANGELOG.md +0 -9
- package/node_modules/@humanwhocodes/config-array/LICENSE +0 -201
- package/node_modules/@humanwhocodes/config-array/README.md +0 -266
- package/node_modules/@humanwhocodes/config-array/api.js +0 -523
- package/node_modules/@humanwhocodes/config-array/package.json +0 -61
- package/node_modules/@humanwhocodes/object-schema/.eslintrc.js +0 -29
- package/node_modules/@humanwhocodes/object-schema/.github/workflows/nodejs-test.yml +0 -27
- package/node_modules/@humanwhocodes/object-schema/.github/workflows/release-please.yml +0 -39
- package/node_modules/@humanwhocodes/object-schema/CHANGELOG.md +0 -8
- package/node_modules/@humanwhocodes/object-schema/LICENSE +0 -29
- package/node_modules/@humanwhocodes/object-schema/README.md +0 -234
- package/node_modules/@humanwhocodes/object-schema/package.json +0 -33
- package/node_modules/@humanwhocodes/object-schema/src/index.js +0 -7
- package/node_modules/@humanwhocodes/object-schema/src/merge-strategy.js +0 -53
- package/node_modules/@humanwhocodes/object-schema/src/object-schema.js +0 -235
- package/node_modules/@humanwhocodes/object-schema/src/validation-strategy.js +0 -102
- package/node_modules/@humanwhocodes/object-schema/tests/merge-strategy.js +0 -66
- package/node_modules/@humanwhocodes/object-schema/tests/object-schema.js +0 -611
- package/node_modules/@humanwhocodes/object-schema/tests/validation-strategy.js +0 -186
- package/node_modules/@opencensus/core/LICENSE +0 -202
- package/node_modules/@opencensus/core/README.md +0 -108
- package/node_modules/@opencensus/core/build/src/common/console-logger.d.ts +0 -60
- package/node_modules/@opencensus/core/build/src/common/console-logger.js +0 -97
- package/node_modules/@opencensus/core/build/src/common/time-util.d.ts +0 -41
- package/node_modules/@opencensus/core/build/src/common/time-util.js +0 -74
- package/node_modules/@opencensus/core/build/src/common/types.d.ts +0 -29
- package/node_modules/@opencensus/core/build/src/common/types.js +0 -18
- package/node_modules/@opencensus/core/build/src/common/validations.d.ts +0 -31
- package/node_modules/@opencensus/core/build/src/common/validations.js +0 -46
- package/node_modules/@opencensus/core/build/src/common/version.d.ts +0 -16
- package/node_modules/@opencensus/core/build/src/common/version.js +0 -24
- package/node_modules/@opencensus/core/build/src/exporters/console-exporter.d.ts +0 -70
- package/node_modules/@opencensus/core/build/src/exporters/console-exporter.js +0 -91
- package/node_modules/@opencensus/core/build/src/exporters/exporter-buffer.d.ts +0 -59
- package/node_modules/@opencensus/core/build/src/exporters/exporter-buffer.js +0 -104
- package/node_modules/@opencensus/core/build/src/exporters/types.d.ts +0 -52
- package/node_modules/@opencensus/core/build/src/exporters/types.js +0 -18
- package/node_modules/@opencensus/core/build/src/index.d.ts +0 -50
- package/node_modules/@opencensus/core/build/src/index.js +0 -59
- package/node_modules/@opencensus/core/build/src/internal/clock.d.ts +0 -43
- package/node_modules/@opencensus/core/build/src/internal/clock.js +0 -68
- package/node_modules/@opencensus/core/build/src/internal/cls-ah.d.ts +0 -20
- package/node_modules/@opencensus/core/build/src/internal/cls-ah.js +0 -128
- package/node_modules/@opencensus/core/build/src/internal/cls.d.ts +0 -28
- package/node_modules/@opencensus/core/build/src/internal/cls.js +0 -45
- package/node_modules/@opencensus/core/build/src/internal/string-utils.d.ts +0 -35
- package/node_modules/@opencensus/core/build/src/internal/string-utils.js +0 -49
- package/node_modules/@opencensus/core/build/src/internal/util.d.ts +0 -16
- package/node_modules/@opencensus/core/build/src/internal/util.js +0 -34
- package/node_modules/@opencensus/core/build/src/metrics/export/base-metric-producer.d.ts +0 -27
- package/node_modules/@opencensus/core/build/src/metrics/export/base-metric-producer.js +0 -25
- package/node_modules/@opencensus/core/build/src/metrics/export/metric-producer-manager.d.ts +0 -17
- package/node_modules/@opencensus/core/build/src/metrics/export/metric-producer-manager.js +0 -70
- package/node_modules/@opencensus/core/build/src/metrics/export/types.d.ts +0 -331
- package/node_modules/@opencensus/core/build/src/metrics/export/types.js +0 -69
- package/node_modules/@opencensus/core/build/src/metrics/gauges/derived-gauge.d.ts +0 -110
- package/node_modules/@opencensus/core/build/src/metrics/gauges/derived-gauge.js +0 -150
- package/node_modules/@opencensus/core/build/src/metrics/gauges/gauge.d.ts +0 -114
- package/node_modules/@opencensus/core/build/src/metrics/gauges/gauge.js +0 -162
- package/node_modules/@opencensus/core/build/src/metrics/gauges/types.d.ts +0 -45
- package/node_modules/@opencensus/core/build/src/metrics/gauges/types.js +0 -18
- package/node_modules/@opencensus/core/build/src/metrics/metric-component.d.ts +0 -29
- package/node_modules/@opencensus/core/build/src/metrics/metric-component.js +0 -40
- package/node_modules/@opencensus/core/build/src/metrics/metric-registry.d.ts +0 -93
- package/node_modules/@opencensus/core/build/src/metrics/metric-registry.js +0 -152
- package/node_modules/@opencensus/core/build/src/metrics/metrics.d.ts +0 -27
- package/node_modules/@opencensus/core/build/src/metrics/metrics.js +0 -35
- package/node_modules/@opencensus/core/build/src/metrics/utils.d.ts +0 -30
- package/node_modules/@opencensus/core/build/src/metrics/utils.js +0 -42
- package/node_modules/@opencensus/core/build/src/resource/resource.d.ts +0 -98
- package/node_modules/@opencensus/core/build/src/resource/resource.js +0 -167
- package/node_modules/@opencensus/core/build/src/resource/types.d.ts +0 -31
- package/node_modules/@opencensus/core/build/src/resource/types.js +0 -18
- package/node_modules/@opencensus/core/build/src/stats/bucket-boundaries.d.ts +0 -49
- package/node_modules/@opencensus/core/build/src/stats/bucket-boundaries.js +0 -90
- package/node_modules/@opencensus/core/build/src/stats/metric-producer.d.ts +0 -34
- package/node_modules/@opencensus/core/build/src/stats/metric-producer.js +0 -40
- package/node_modules/@opencensus/core/build/src/stats/metric-utils.d.ts +0 -40
- package/node_modules/@opencensus/core/build/src/stats/metric-utils.js +0 -83
- package/node_modules/@opencensus/core/build/src/stats/recorder.d.ts +0 -26
- package/node_modules/@opencensus/core/build/src/stats/recorder.js +0 -76
- package/node_modules/@opencensus/core/build/src/stats/stats.d.ts +0 -97
- package/node_modules/@opencensus/core/build/src/stats/stats.js +0 -169
- package/node_modules/@opencensus/core/build/src/stats/types.d.ts +0 -242
- package/node_modules/@opencensus/core/build/src/stats/types.js +0 -48
- package/node_modules/@opencensus/core/build/src/stats/view.d.ts +0 -119
- package/node_modules/@opencensus/core/build/src/stats/view.js +0 -194
- package/node_modules/@opencensus/core/build/src/tags/tag-map.d.ts +0 -26
- package/node_modules/@opencensus/core/build/src/tags/tag-map.js +0 -45
- package/node_modules/@opencensus/core/build/src/tags/types.d.ts +0 -25
- package/node_modules/@opencensus/core/build/src/tags/types.js +0 -18
- package/node_modules/@opencensus/core/build/src/tags/validation.d.ts +0 -20
- package/node_modules/@opencensus/core/build/src/tags/validation.js +0 -41
- package/node_modules/@opencensus/core/build/src/trace/config/types.d.ts +0 -82
- package/node_modules/@opencensus/core/build/src/trace/config/types.js +0 -18
- package/node_modules/@opencensus/core/build/src/trace/instrumentation/base-plugin.d.ts +0 -77
- package/node_modules/@opencensus/core/build/src/trace/instrumentation/base-plugin.js +0 -113
- package/node_modules/@opencensus/core/build/src/trace/instrumentation/types.d.ts +0 -56
- package/node_modules/@opencensus/core/build/src/trace/instrumentation/types.js +0 -18
- package/node_modules/@opencensus/core/build/src/trace/model/root-span.d.ts +0 -53
- package/node_modules/@opencensus/core/build/src/trace/model/root-span.js +0 -111
- package/node_modules/@opencensus/core/build/src/trace/model/span-base.d.ts +0 -131
- package/node_modules/@opencensus/core/build/src/trace/model/span-base.js +0 -210
- package/node_modules/@opencensus/core/build/src/trace/model/span.d.ts +0 -35
- package/node_modules/@opencensus/core/build/src/trace/model/span.js +0 -66
- package/node_modules/@opencensus/core/build/src/trace/model/tracer.d.ts +0 -112
- package/node_modules/@opencensus/core/build/src/trace/model/tracer.js +0 -241
- package/node_modules/@opencensus/core/build/src/trace/model/types.d.ts +0 -455
- package/node_modules/@opencensus/core/build/src/trace/model/types.js +0 -198
- package/node_modules/@opencensus/core/build/src/trace/propagation/types.d.ts +0 -36
- package/node_modules/@opencensus/core/build/src/trace/propagation/types.js +0 -18
- package/node_modules/@opencensus/core/build/src/trace/sampler/sampler.d.ts +0 -72
- package/node_modules/@opencensus/core/build/src/trace/sampler/sampler.js +0 -129
- package/node_modules/@opencensus/core/build/src/trace/sampler/types.d.ts +0 -29
- package/node_modules/@opencensus/core/build/src/trace/sampler/types.js +0 -18
- package/node_modules/@opencensus/core/build/src/trace/types.d.ts +0 -46
- package/node_modules/@opencensus/core/build/src/trace/types.js +0 -18
- package/node_modules/@opencensus/core/node_modules/.bin/semver +0 -12
- package/node_modules/@opencensus/core/node_modules/.bin/semver.cmd +0 -17
- package/node_modules/@opencensus/core/node_modules/.bin/semver.ps1 +0 -28
- package/node_modules/@opencensus/core/node_modules/semver/CHANGELOG.md +0 -39
- package/node_modules/@opencensus/core/node_modules/semver/LICENSE +0 -15
- package/node_modules/@opencensus/core/node_modules/semver/README.md +0 -412
- package/node_modules/@opencensus/core/node_modules/semver/bin/semver +0 -160
- package/node_modules/@opencensus/core/node_modules/semver/package.json +0 -28
- package/node_modules/@opencensus/core/node_modules/semver/range.bnf +0 -16
- package/node_modules/@opencensus/core/node_modules/semver/semver.js +0 -1483
- package/node_modules/@opencensus/core/package.json +0 -68
- package/node_modules/@opencensus/propagation-b3/LICENSE +0 -202
- package/node_modules/@opencensus/propagation-b3/README.md +0 -46
- package/node_modules/@opencensus/propagation-b3/build/src/b3-format.d.ts +0 -35
- package/node_modules/@opencensus/propagation-b3/build/src/b3-format.js +0 -77
- package/node_modules/@opencensus/propagation-b3/build/src/index.d.ts +0 -16
- package/node_modules/@opencensus/propagation-b3/build/src/index.js +0 -22
- package/node_modules/@opencensus/propagation-b3/node_modules/.bin/semver +0 -12
- package/node_modules/@opencensus/propagation-b3/node_modules/.bin/semver.cmd +0 -17
- package/node_modules/@opencensus/propagation-b3/node_modules/.bin/semver.ps1 +0 -28
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/LICENSE +0 -202
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/README.md +0 -96
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/common/console-logger.d.ts +0 -51
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/common/console-logger.js +0 -106
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/common/types.d.ts +0 -29
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/common/types.js +0 -18
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/common/validations.d.ts +0 -31
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/common/validations.js +0 -46
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/common/version.d.ts +0 -1
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/common/version.js +0 -24
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/exporters/console-exporter.d.ts +0 -64
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/exporters/console-exporter.js +0 -84
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/exporters/exporter-buffer.d.ts +0 -44
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/exporters/exporter-buffer.js +0 -104
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/exporters/types.d.ts +0 -44
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/exporters/types.js +0 -18
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/index.d.ts +0 -37
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/index.js +0 -45
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/internal/clock.d.ts +0 -43
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/internal/clock.js +0 -68
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/internal/cls-ah.d.ts +0 -5
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/internal/cls-ah.js +0 -128
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/internal/cls.d.ts +0 -28
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/internal/cls.js +0 -45
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/internal/string-utils.d.ts +0 -35
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/internal/string-utils.js +0 -49
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/internal/util.d.ts +0 -1
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/internal/util.js +0 -34
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/metrics/export/metric-producer.d.ts +0 -27
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/metrics/export/metric-producer.js +0 -25
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/metrics/export/types.d.ts +0 -309
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/metrics/export/types.js +0 -69
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/metrics/gauges/derived-gauge.d.ts +0 -95
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/metrics/gauges/derived-gauge.js +0 -151
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/metrics/gauges/gauge.d.ts +0 -99
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/metrics/gauges/gauge.js +0 -161
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/metrics/gauges/types.d.ts +0 -45
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/metrics/gauges/types.js +0 -18
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/metrics/metric-registry.d.ts +0 -79
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/metrics/metric-registry.js +0 -152
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/metrics/metrics.d.ts +0 -26
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/metrics/metrics.js +0 -34
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/metrics/utils.d.ts +0 -30
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/metrics/utils.js +0 -42
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/resource/resource.d.ts +0 -81
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/resource/resource.js +0 -160
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/resource/types.d.ts +0 -31
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/resource/types.js +0 -18
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/stats/bucket-boundaries.d.ts +0 -49
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/stats/bucket-boundaries.js +0 -90
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/stats/metric-producer.d.ts +0 -34
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/stats/metric-producer.js +0 -40
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/stats/metric-utils.d.ts +0 -39
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/stats/metric-utils.js +0 -84
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/stats/recorder.d.ts +0 -23
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/stats/recorder.js +0 -70
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/stats/stats.d.ts +0 -85
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/stats/stats.js +0 -145
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/stats/types.d.ts +0 -188
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/stats/types.js +0 -48
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/stats/view.d.ts +0 -118
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/stats/view.js +0 -201
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/trace/config/types.d.ts +0 -68
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/trace/config/types.js +0 -18
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/trace/instrumentation/base-plugin.d.ts +0 -73
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/trace/instrumentation/base-plugin.js +0 -110
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/trace/instrumentation/types.d.ts +0 -45
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/trace/instrumentation/types.js +0 -18
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/trace/model/root-span.d.ts +0 -38
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/trace/model/root-span.js +0 -108
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/trace/model/span-base.d.ts +0 -114
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/trace/model/span-base.js +0 -165
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/trace/model/span.d.ts +0 -20
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/trace/model/span.js +0 -65
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/trace/model/tracer.d.ts +0 -95
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/trace/model/tracer.js +0 -229
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/trace/model/types.d.ts +0 -245
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/trace/model/types.js +0 -18
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/trace/propagation/types.d.ts +0 -36
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/trace/propagation/types.js +0 -18
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/trace/sampler/sampler.d.ts +0 -56
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/trace/sampler/sampler.js +0 -94
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/trace/sampler/types.d.ts +0 -29
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/trace/sampler/types.js +0 -18
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/trace/types.d.ts +0 -46
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/trace/types.js +0 -18
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/package.json +0 -63
- package/node_modules/@opencensus/propagation-b3/node_modules/semver/CHANGELOG.md +0 -39
- package/node_modules/@opencensus/propagation-b3/node_modules/semver/LICENSE +0 -15
- package/node_modules/@opencensus/propagation-b3/node_modules/semver/README.md +0 -412
- package/node_modules/@opencensus/propagation-b3/node_modules/semver/bin/semver +0 -160
- package/node_modules/@opencensus/propagation-b3/node_modules/semver/package.json +0 -28
- package/node_modules/@opencensus/propagation-b3/node_modules/semver/range.bnf +0 -16
- package/node_modules/@opencensus/propagation-b3/node_modules/semver/semver.js +0 -1483
- package/node_modules/@opencensus/propagation-b3/package.json +0 -56
- package/node_modules/@pm2/agent/.drone.jsonnet +0 -104
- package/node_modules/@pm2/agent/.mocharc.yml +0 -12
- package/node_modules/@pm2/agent/.vscode/launch.json +0 -29
- package/node_modules/@pm2/agent/LICENSE +0 -661
- package/node_modules/@pm2/agent/README.md +0 -95
- package/node_modules/@pm2/agent/config.js +0 -30
- package/node_modules/@pm2/agent/constants.js +0 -98
- package/node_modules/@pm2/agent/index.js +0 -2
- package/node_modules/@pm2/agent/node_modules/.bin/semver +0 -12
- package/node_modules/@pm2/agent/node_modules/.bin/semver.cmd +0 -17
- package/node_modules/@pm2/agent/node_modules/.bin/semver.ps1 +0 -28
- package/node_modules/@pm2/agent/node_modules/chalk/index.d.ts +0 -411
- package/node_modules/@pm2/agent/node_modules/chalk/license +0 -9
- package/node_modules/@pm2/agent/node_modules/chalk/package.json +0 -63
- package/node_modules/@pm2/agent/node_modules/chalk/readme.md +0 -304
- package/node_modules/@pm2/agent/node_modules/chalk/source/index.js +0 -233
- package/node_modules/@pm2/agent/node_modules/chalk/source/templates.js +0 -134
- package/node_modules/@pm2/agent/node_modules/chalk/source/util.js +0 -39
- package/node_modules/@pm2/agent/node_modules/semver/CHANGELOG.md +0 -101
- package/node_modules/@pm2/agent/node_modules/semver/LICENSE +0 -15
- package/node_modules/@pm2/agent/node_modules/semver/README.md +0 -563
- package/node_modules/@pm2/agent/node_modules/semver/bin/semver.js +0 -173
- package/node_modules/@pm2/agent/node_modules/semver/classes/comparator.js +0 -139
- package/node_modules/@pm2/agent/node_modules/semver/classes/index.js +0 -5
- package/node_modules/@pm2/agent/node_modules/semver/classes/range.js +0 -453
- package/node_modules/@pm2/agent/node_modules/semver/classes/semver.js +0 -290
- package/node_modules/@pm2/agent/node_modules/semver/functions/clean.js +0 -6
- package/node_modules/@pm2/agent/node_modules/semver/functions/cmp.js +0 -48
- package/node_modules/@pm2/agent/node_modules/semver/functions/coerce.js +0 -51
- package/node_modules/@pm2/agent/node_modules/semver/functions/compare-build.js +0 -7
- package/node_modules/@pm2/agent/node_modules/semver/functions/compare-loose.js +0 -3
- package/node_modules/@pm2/agent/node_modules/semver/functions/compare.js +0 -5
- package/node_modules/@pm2/agent/node_modules/semver/functions/diff.js +0 -23
- package/node_modules/@pm2/agent/node_modules/semver/functions/eq.js +0 -3
- package/node_modules/@pm2/agent/node_modules/semver/functions/gt.js +0 -3
- package/node_modules/@pm2/agent/node_modules/semver/functions/gte.js +0 -3
- package/node_modules/@pm2/agent/node_modules/semver/functions/inc.js +0 -15
- package/node_modules/@pm2/agent/node_modules/semver/functions/lt.js +0 -3
- package/node_modules/@pm2/agent/node_modules/semver/functions/lte.js +0 -3
- package/node_modules/@pm2/agent/node_modules/semver/functions/major.js +0 -3
- package/node_modules/@pm2/agent/node_modules/semver/functions/minor.js +0 -3
- package/node_modules/@pm2/agent/node_modules/semver/functions/neq.js +0 -3
- package/node_modules/@pm2/agent/node_modules/semver/functions/parse.js +0 -37
- package/node_modules/@pm2/agent/node_modules/semver/functions/patch.js +0 -3
- package/node_modules/@pm2/agent/node_modules/semver/functions/prerelease.js +0 -6
- package/node_modules/@pm2/agent/node_modules/semver/functions/rcompare.js +0 -3
- package/node_modules/@pm2/agent/node_modules/semver/functions/rsort.js +0 -3
- package/node_modules/@pm2/agent/node_modules/semver/functions/satisfies.js +0 -10
- package/node_modules/@pm2/agent/node_modules/semver/functions/sort.js +0 -3
- package/node_modules/@pm2/agent/node_modules/semver/functions/valid.js +0 -6
- package/node_modules/@pm2/agent/node_modules/semver/index.js +0 -47
- package/node_modules/@pm2/agent/node_modules/semver/internal/constants.js +0 -17
- package/node_modules/@pm2/agent/node_modules/semver/internal/debug.js +0 -9
- package/node_modules/@pm2/agent/node_modules/semver/internal/identifiers.js +0 -23
- package/node_modules/@pm2/agent/node_modules/semver/internal/re.js +0 -179
- package/node_modules/@pm2/agent/node_modules/semver/package.json +0 -38
- package/node_modules/@pm2/agent/node_modules/semver/preload.js +0 -2
- package/node_modules/@pm2/agent/node_modules/semver/range.bnf +0 -16
- package/node_modules/@pm2/agent/node_modules/semver/ranges/gtr.js +0 -4
- package/node_modules/@pm2/agent/node_modules/semver/ranges/intersects.js +0 -7
- package/node_modules/@pm2/agent/node_modules/semver/ranges/ltr.js +0 -4
- package/node_modules/@pm2/agent/node_modules/semver/ranges/max-satisfying.js +0 -25
- package/node_modules/@pm2/agent/node_modules/semver/ranges/min-satisfying.js +0 -24
- package/node_modules/@pm2/agent/node_modules/semver/ranges/min-version.js +0 -57
- package/node_modules/@pm2/agent/node_modules/semver/ranges/outside.js +0 -80
- package/node_modules/@pm2/agent/node_modules/semver/ranges/simplify.js +0 -44
- package/node_modules/@pm2/agent/node_modules/semver/ranges/to-comparators.js +0 -8
- package/node_modules/@pm2/agent/node_modules/semver/ranges/valid.js +0 -11
- package/node_modules/@pm2/agent/package.json +0 -41
- package/node_modules/@pm2/agent/src/InteractorClient.js +0 -502
- package/node_modules/@pm2/agent/src/InteractorDaemon.js +0 -452
- package/node_modules/@pm2/agent/src/PM2Client.js +0 -112
- package/node_modules/@pm2/agent/src/PM2Interface.js +0 -180
- package/node_modules/@pm2/agent/src/TransporterInterface.js +0 -173
- package/node_modules/@pm2/agent/src/Utility.js +0 -395
- package/node_modules/@pm2/agent/src/WatchDog.js +0 -70
- package/node_modules/@pm2/agent/src/push/DataRetriever.js +0 -77
- package/node_modules/@pm2/agent/src/push/PushInteractor.js +0 -206
- package/node_modules/@pm2/agent/src/push/TransactionAggregator.js +0 -670
- package/node_modules/@pm2/agent/src/reverse/ReverseInteractor.js +0 -128
- package/node_modules/@pm2/agent/src/transporters/Transporter.js +0 -129
- package/node_modules/@pm2/agent/src/transporters/WebsocketTransport.js +0 -204
- package/node_modules/@pm2/agent/src/utils/BinaryHeap.js +0 -135
- package/node_modules/@pm2/agent/src/utils/EDS.js +0 -111
- package/node_modules/@pm2/agent/src/utils/probes/Histogram.js +0 -204
- package/node_modules/@pm2/agent/src/utils/units.js +0 -10
- package/node_modules/@pm2/io/.drone.jsonnet +0 -114
- package/node_modules/@pm2/io/.mocharc.js +0 -17
- package/node_modules/@pm2/io/.vscode/settings.json +0 -3
- package/node_modules/@pm2/io/CHANGELOG.md +0 -13
- package/node_modules/@pm2/io/LICENSE.md +0 -201
- package/node_modules/@pm2/io/NOTES.md +0 -73
- package/node_modules/@pm2/io/README.md +0 -574
- package/node_modules/@pm2/io/build/main/census/config/default-config.d.ts +0 -8
- package/node_modules/@pm2/io/build/main/census/config/default-config.js +0 -12
- package/node_modules/@pm2/io/build/main/census/constants.d.ts +0 -9
- package/node_modules/@pm2/io/build/main/census/constants.js +0 -12
- package/node_modules/@pm2/io/build/main/census/exporter.d.ts +0 -18
- package/node_modules/@pm2/io/build/main/census/exporter.js +0 -103
- package/node_modules/@pm2/io/build/main/census/instrumentation/ext-types.d.ts +0 -12
- package/node_modules/@pm2/io/build/main/census/instrumentation/ext-types.js +0 -1
- package/node_modules/@pm2/io/build/main/census/instrumentation/plugin-loader.d.ts +0 -14
- package/node_modules/@pm2/io/build/main/census/instrumentation/plugin-loader.js +0 -94
- package/node_modules/@pm2/io/build/main/census/plugins/express.d.ts +0 -13
- package/node_modules/@pm2/io/build/main/census/plugins/express.js +0 -120
- package/node_modules/@pm2/io/build/main/census/plugins/http.d.ts +0 -46
- package/node_modules/@pm2/io/build/main/census/plugins/http.js +0 -325
- package/node_modules/@pm2/io/build/main/census/plugins/http2.d.ts +0 -17
- package/node_modules/@pm2/io/build/main/census/plugins/http2.js +0 -163
- package/node_modules/@pm2/io/build/main/census/plugins/https.d.ts +0 -9
- package/node_modules/@pm2/io/build/main/census/plugins/https.js +0 -61
- package/node_modules/@pm2/io/build/main/census/plugins/ioredis.d.ts +0 -23
- package/node_modules/@pm2/io/build/main/census/plugins/ioredis.js +0 -89
- package/node_modules/@pm2/io/build/main/census/plugins/mongodb.d.ts +0 -21
- package/node_modules/@pm2/io/build/main/census/plugins/mongodb.js +0 -128
- package/node_modules/@pm2/io/build/main/census/plugins/mysql.d.ts +0 -21
- package/node_modules/@pm2/io/build/main/census/plugins/mysql.js +0 -82
- package/node_modules/@pm2/io/build/main/census/plugins/mysql2.d.ts +0 -21
- package/node_modules/@pm2/io/build/main/census/plugins/mysql2.js +0 -82
- package/node_modules/@pm2/io/build/main/census/plugins/net.d.ts +0 -8
- package/node_modules/@pm2/io/build/main/census/plugins/net.js +0 -79
- package/node_modules/@pm2/io/build/main/census/plugins/pg.d.ts +0 -23
- package/node_modules/@pm2/io/build/main/census/plugins/pg.js +0 -148
- package/node_modules/@pm2/io/build/main/census/plugins/redis.d.ts +0 -19
- package/node_modules/@pm2/io/build/main/census/plugins/redis.js +0 -114
- package/node_modules/@pm2/io/build/main/census/plugins/vue.d.ts +0 -12
- package/node_modules/@pm2/io/build/main/census/plugins/vue.js +0 -78
- package/node_modules/@pm2/io/build/main/census/tracer.d.ts +0 -19
- package/node_modules/@pm2/io/build/main/census/tracer.js +0 -67
- package/node_modules/@pm2/io/build/main/configuration.d.ts +0 -6
- package/node_modules/@pm2/io/build/main/configuration.js +0 -125
- package/node_modules/@pm2/io/build/main/constants.d.ts +0 -5
- package/node_modules/@pm2/io/build/main/constants.js +0 -15
- package/node_modules/@pm2/io/build/main/featureManager.d.ts +0 -14
- package/node_modules/@pm2/io/build/main/featureManager.js +0 -105
- package/node_modules/@pm2/io/build/main/features/dependencies.d.ts +0 -7
- package/node_modules/@pm2/io/build/main/features/dependencies.js +0 -45
- package/node_modules/@pm2/io/build/main/features/entrypoint.d.ts +0 -11
- package/node_modules/@pm2/io/build/main/features/entrypoint.js +0 -52
- package/node_modules/@pm2/io/build/main/features/events.d.ts +0 -8
- package/node_modules/@pm2/io/build/main/features/events.js +0 -44
- package/node_modules/@pm2/io/build/main/features/metrics.d.ts +0 -24
- package/node_modules/@pm2/io/build/main/features/metrics.js +0 -89
- package/node_modules/@pm2/io/build/main/features/notify.d.ts +0 -23
- package/node_modules/@pm2/io/build/main/features/notify.js +0 -224
- package/node_modules/@pm2/io/build/main/features/profiling.d.ts +0 -18
- package/node_modules/@pm2/io/build/main/features/profiling.js +0 -68
- package/node_modules/@pm2/io/build/main/features/tracing.d.ts +0 -25
- package/node_modules/@pm2/io/build/main/features/tracing.js +0 -149
- package/node_modules/@pm2/io/build/main/index.d.ts +0 -3
- package/node_modules/@pm2/io/build/main/index.js +0 -8
- package/node_modules/@pm2/io/build/main/metrics/eventLoopMetrics.d.ts +0 -17
- package/node_modules/@pm2/io/build/main/metrics/eventLoopMetrics.js +0 -128
- package/node_modules/@pm2/io/build/main/metrics/httpMetrics.d.ts +0 -18
- package/node_modules/@pm2/io/build/main/metrics/httpMetrics.js +0 -178
- package/node_modules/@pm2/io/build/main/metrics/network.d.ts +0 -15
- package/node_modules/@pm2/io/build/main/metrics/network.js +0 -121
- package/node_modules/@pm2/io/build/main/metrics/runtime.d.ts +0 -16
- package/node_modules/@pm2/io/build/main/metrics/runtime.js +0 -153
- package/node_modules/@pm2/io/build/main/metrics/v8.d.ts +0 -23
- package/node_modules/@pm2/io/build/main/metrics/v8.js +0 -100
- package/node_modules/@pm2/io/build/main/pmx.d.ts +0 -54
- package/node_modules/@pm2/io/build/main/pmx.js +0 -283
- package/node_modules/@pm2/io/build/main/profilers/addonProfiler.d.ts +0 -16
- package/node_modules/@pm2/io/build/main/profilers/addonProfiler.js +0 -172
- package/node_modules/@pm2/io/build/main/profilers/inspectorProfiler.d.ts +0 -18
- package/node_modules/@pm2/io/build/main/profilers/inspectorProfiler.js +0 -268
- package/node_modules/@pm2/io/build/main/serviceManager.d.ts +0 -7
- package/node_modules/@pm2/io/build/main/serviceManager.js +0 -19
- package/node_modules/@pm2/io/build/main/services/actions.d.ts +0 -20
- package/node_modules/@pm2/io/build/main/services/actions.js +0 -146
- package/node_modules/@pm2/io/build/main/services/inspector.d.ts +0 -8
- package/node_modules/@pm2/io/build/main/services/inspector.js +0 -42
- package/node_modules/@pm2/io/build/main/services/metrics.d.ts +0 -63
- package/node_modules/@pm2/io/build/main/services/metrics.js +0 -186
- package/node_modules/@pm2/io/build/main/services/runtimeStats.d.ts +0 -10
- package/node_modules/@pm2/io/build/main/services/runtimeStats.js +0 -49
- package/node_modules/@pm2/io/build/main/services/transport.d.ts +0 -22
- package/node_modules/@pm2/io/build/main/services/transport.js +0 -13
- package/node_modules/@pm2/io/build/main/transports/IPCTransport.d.ts +0 -17
- package/node_modules/@pm2/io/build/main/transports/IPCTransport.js +0 -102
- package/node_modules/@pm2/io/build/main/transports/WebsocketTransport.d.ts +0 -0
- package/node_modules/@pm2/io/build/main/transports/WebsocketTransport.js +0 -1
- package/node_modules/@pm2/io/build/main/utils/BinaryHeap.d.ts +0 -16
- package/node_modules/@pm2/io/build/main/utils/BinaryHeap.js +0 -109
- package/node_modules/@pm2/io/build/main/utils/EDS.d.ts +0 -21
- package/node_modules/@pm2/io/build/main/utils/EDS.js +0 -93
- package/node_modules/@pm2/io/build/main/utils/EWMA.d.ts +0 -12
- package/node_modules/@pm2/io/build/main/utils/EWMA.js +0 -26
- package/node_modules/@pm2/io/build/main/utils/autocast.d.ts +0 -13
- package/node_modules/@pm2/io/build/main/utils/autocast.js +0 -49
- package/node_modules/@pm2/io/build/main/utils/metrics/counter.d.ts +0 -10
- package/node_modules/@pm2/io/build/main/utils/metrics/counter.js +0 -28
- package/node_modules/@pm2/io/build/main/utils/metrics/gauge.d.ts +0 -7
- package/node_modules/@pm2/io/build/main/utils/metrics/gauge.js +0 -20
- package/node_modules/@pm2/io/build/main/utils/metrics/histogram.d.ts +0 -43
- package/node_modules/@pm2/io/build/main/utils/metrics/histogram.js +0 -160
- package/node_modules/@pm2/io/build/main/utils/metrics/meter.d.ts +0 -12
- package/node_modules/@pm2/io/build/main/utils/metrics/meter.js +0 -36
- package/node_modules/@pm2/io/build/main/utils/miscellaneous.d.ts +0 -4
- package/node_modules/@pm2/io/build/main/utils/miscellaneous.js +0 -17
- package/node_modules/@pm2/io/build/main/utils/module.d.ts +0 -5
- package/node_modules/@pm2/io/build/main/utils/module.js +0 -53
- package/node_modules/@pm2/io/build/main/utils/stackParser.d.ts +0 -37
- package/node_modules/@pm2/io/build/main/utils/stackParser.js +0 -125
- package/node_modules/@pm2/io/build/main/utils/transactionAggregator.d.ts +0 -74
- package/node_modules/@pm2/io/build/main/utils/transactionAggregator.js +0 -317
- package/node_modules/@pm2/io/build/main/utils/units.d.ts +0 -10
- package/node_modules/@pm2/io/build/main/utils/units.js +0 -16
- package/node_modules/@pm2/io/docker-compose.yml +0 -27
- package/node_modules/@pm2/io/docs/README.md +0 -106
- package/node_modules/@pm2/io/node_modules/.bin/semver +0 -12
- package/node_modules/@pm2/io/node_modules/.bin/semver.cmd +0 -17
- package/node_modules/@pm2/io/node_modules/.bin/semver.ps1 +0 -28
- package/node_modules/@pm2/io/node_modules/async/CHANGELOG.md +0 -275
- package/node_modules/@pm2/io/node_modules/async/LICENSE +0 -19
- package/node_modules/@pm2/io/node_modules/async/README.md +0 -56
- package/node_modules/@pm2/io/node_modules/async/all.js +0 -50
- package/node_modules/@pm2/io/node_modules/async/allLimit.js +0 -42
- package/node_modules/@pm2/io/node_modules/async/allSeries.js +0 -37
- package/node_modules/@pm2/io/node_modules/async/any.js +0 -52
- package/node_modules/@pm2/io/node_modules/async/anyLimit.js +0 -43
- package/node_modules/@pm2/io/node_modules/async/anySeries.js +0 -38
- package/node_modules/@pm2/io/node_modules/async/apply.js +0 -68
- package/node_modules/@pm2/io/node_modules/async/applyEach.js +0 -51
- package/node_modules/@pm2/io/node_modules/async/applyEachSeries.js +0 -37
- package/node_modules/@pm2/io/node_modules/async/asyncify.js +0 -110
- package/node_modules/@pm2/io/node_modules/async/auto.js +0 -289
- package/node_modules/@pm2/io/node_modules/async/autoInject.js +0 -170
- package/node_modules/@pm2/io/node_modules/async/bower.json +0 -17
- package/node_modules/@pm2/io/node_modules/async/cargo.js +0 -94
- package/node_modules/@pm2/io/node_modules/async/compose.js +0 -58
- package/node_modules/@pm2/io/node_modules/async/concat.js +0 -43
- package/node_modules/@pm2/io/node_modules/async/concatLimit.js +0 -65
- package/node_modules/@pm2/io/node_modules/async/concatSeries.js +0 -36
- package/node_modules/@pm2/io/node_modules/async/constant.js +0 -66
- package/node_modules/@pm2/io/node_modules/async/detect.js +0 -61
- package/node_modules/@pm2/io/node_modules/async/detectLimit.js +0 -48
- package/node_modules/@pm2/io/node_modules/async/detectSeries.js +0 -38
- package/node_modules/@pm2/io/node_modules/async/dir.js +0 -43
- package/node_modules/@pm2/io/node_modules/async/doDuring.js +0 -66
- package/node_modules/@pm2/io/node_modules/async/doUntil.js +0 -39
- package/node_modules/@pm2/io/node_modules/async/doWhilst.js +0 -59
- package/node_modules/@pm2/io/node_modules/async/during.js +0 -76
- package/node_modules/@pm2/io/node_modules/async/each.js +0 -82
- package/node_modules/@pm2/io/node_modules/async/eachLimit.js +0 -45
- package/node_modules/@pm2/io/node_modules/async/eachOf.js +0 -111
- package/node_modules/@pm2/io/node_modules/async/eachOfLimit.js +0 -41
- package/node_modules/@pm2/io/node_modules/async/eachOfSeries.js +0 -35
- package/node_modules/@pm2/io/node_modules/async/eachSeries.js +0 -37
- package/node_modules/@pm2/io/node_modules/async/ensureAsync.js +0 -73
- package/node_modules/@pm2/io/node_modules/async/every.js +0 -50
- package/node_modules/@pm2/io/node_modules/async/everyLimit.js +0 -42
- package/node_modules/@pm2/io/node_modules/async/everySeries.js +0 -37
- package/node_modules/@pm2/io/node_modules/async/filter.js +0 -45
- package/node_modules/@pm2/io/node_modules/async/filterLimit.js +0 -37
- package/node_modules/@pm2/io/node_modules/async/filterSeries.js +0 -35
- package/node_modules/@pm2/io/node_modules/async/find.js +0 -61
- package/node_modules/@pm2/io/node_modules/async/findLimit.js +0 -48
- package/node_modules/@pm2/io/node_modules/async/findSeries.js +0 -38
- package/node_modules/@pm2/io/node_modules/async/foldl.js +0 -78
- package/node_modules/@pm2/io/node_modules/async/foldr.js +0 -44
- package/node_modules/@pm2/io/node_modules/async/forEach.js +0 -82
- package/node_modules/@pm2/io/node_modules/async/forEachLimit.js +0 -45
- package/node_modules/@pm2/io/node_modules/async/forEachOf.js +0 -111
- package/node_modules/@pm2/io/node_modules/async/forEachOfLimit.js +0 -41
- package/node_modules/@pm2/io/node_modules/async/forEachOfSeries.js +0 -35
- package/node_modules/@pm2/io/node_modules/async/forEachSeries.js +0 -37
- package/node_modules/@pm2/io/node_modules/async/forever.js +0 -65
- package/node_modules/@pm2/io/node_modules/async/groupBy.js +0 -54
- package/node_modules/@pm2/io/node_modules/async/groupByLimit.js +0 -71
- package/node_modules/@pm2/io/node_modules/async/groupBySeries.js +0 -37
- package/node_modules/@pm2/io/node_modules/async/index.js +0 -582
- package/node_modules/@pm2/io/node_modules/async/inject.js +0 -78
- package/node_modules/@pm2/io/node_modules/async/internal/DoublyLinkedList.js +0 -88
- package/node_modules/@pm2/io/node_modules/async/internal/applyEach.js +0 -38
- package/node_modules/@pm2/io/node_modules/async/internal/breakLoop.js +0 -9
- package/node_modules/@pm2/io/node_modules/async/internal/consoleFunc.js +0 -42
- package/node_modules/@pm2/io/node_modules/async/internal/createTester.js +0 -44
- package/node_modules/@pm2/io/node_modules/async/internal/doLimit.js +0 -12
- package/node_modules/@pm2/io/node_modules/async/internal/doParallel.js +0 -23
- package/node_modules/@pm2/io/node_modules/async/internal/doParallelLimit.js +0 -23
- package/node_modules/@pm2/io/node_modules/async/internal/eachOfLimit.js +0 -74
- package/node_modules/@pm2/io/node_modules/async/internal/filter.js +0 -75
- package/node_modules/@pm2/io/node_modules/async/internal/findGetResult.js +0 -10
- package/node_modules/@pm2/io/node_modules/async/internal/getIterator.js +0 -13
- package/node_modules/@pm2/io/node_modules/async/internal/initialParams.js +0 -21
- package/node_modules/@pm2/io/node_modules/async/internal/iterator.js +0 -58
- package/node_modules/@pm2/io/node_modules/async/internal/map.js +0 -35
- package/node_modules/@pm2/io/node_modules/async/internal/notId.js +0 -10
- package/node_modules/@pm2/io/node_modules/async/internal/once.js +0 -15
- package/node_modules/@pm2/io/node_modules/async/internal/onlyOnce.js +0 -15
- package/node_modules/@pm2/io/node_modules/async/internal/parallel.js +0 -42
- package/node_modules/@pm2/io/node_modules/async/internal/queue.js +0 -204
- package/node_modules/@pm2/io/node_modules/async/internal/reject.js +0 -21
- package/node_modules/@pm2/io/node_modules/async/internal/setImmediate.js +0 -42
- package/node_modules/@pm2/io/node_modules/async/internal/slice.js +0 -16
- package/node_modules/@pm2/io/node_modules/async/internal/withoutIndex.js +0 -12
- package/node_modules/@pm2/io/node_modules/async/internal/wrapAsync.js +0 -25
- package/node_modules/@pm2/io/node_modules/async/log.js +0 -41
- package/node_modules/@pm2/io/node_modules/async/map.js +0 -54
- package/node_modules/@pm2/io/node_modules/async/mapLimit.js +0 -37
- package/node_modules/@pm2/io/node_modules/async/mapSeries.js +0 -36
- package/node_modules/@pm2/io/node_modules/async/mapValues.js +0 -63
- package/node_modules/@pm2/io/node_modules/async/mapValuesLimit.js +0 -61
- package/node_modules/@pm2/io/node_modules/async/mapValuesSeries.js +0 -37
- package/node_modules/@pm2/io/node_modules/async/memoize.js +0 -101
- package/node_modules/@pm2/io/node_modules/async/nextTick.js +0 -51
- package/node_modules/@pm2/io/node_modules/async/package.json +0 -80
- package/node_modules/@pm2/io/node_modules/async/parallel.js +0 -90
- package/node_modules/@pm2/io/node_modules/async/parallelLimit.js +0 -40
- package/node_modules/@pm2/io/node_modules/async/priorityQueue.js +0 -98
- package/node_modules/@pm2/io/node_modules/async/queue.js +0 -130
- package/node_modules/@pm2/io/node_modules/async/race.js +0 -70
- package/node_modules/@pm2/io/node_modules/async/reduce.js +0 -78
- package/node_modules/@pm2/io/node_modules/async/reduceRight.js +0 -44
- package/node_modules/@pm2/io/node_modules/async/reflect.js +0 -81
- package/node_modules/@pm2/io/node_modules/async/reflectAll.js +0 -105
- package/node_modules/@pm2/io/node_modules/async/reject.js +0 -45
- package/node_modules/@pm2/io/node_modules/async/rejectLimit.js +0 -37
- package/node_modules/@pm2/io/node_modules/async/rejectSeries.js +0 -35
- package/node_modules/@pm2/io/node_modules/async/retry.js +0 -156
- package/node_modules/@pm2/io/node_modules/async/retryable.js +0 -65
- package/node_modules/@pm2/io/node_modules/async/select.js +0 -45
- package/node_modules/@pm2/io/node_modules/async/selectLimit.js +0 -37
- package/node_modules/@pm2/io/node_modules/async/selectSeries.js +0 -35
- package/node_modules/@pm2/io/node_modules/async/seq.js +0 -91
- package/node_modules/@pm2/io/node_modules/async/series.js +0 -85
- package/node_modules/@pm2/io/node_modules/async/setImmediate.js +0 -45
- package/node_modules/@pm2/io/node_modules/async/some.js +0 -52
- package/node_modules/@pm2/io/node_modules/async/someLimit.js +0 -43
- package/node_modules/@pm2/io/node_modules/async/someSeries.js +0 -38
- package/node_modules/@pm2/io/node_modules/async/sortBy.js +0 -91
- package/node_modules/@pm2/io/node_modules/async/timeout.js +0 -89
- package/node_modules/@pm2/io/node_modules/async/times.js +0 -50
- package/node_modules/@pm2/io/node_modules/async/timesLimit.js +0 -42
- package/node_modules/@pm2/io/node_modules/async/timesSeries.js +0 -32
- package/node_modules/@pm2/io/node_modules/async/transform.js +0 -87
- package/node_modules/@pm2/io/node_modules/async/tryEach.js +0 -81
- package/node_modules/@pm2/io/node_modules/async/unmemoize.js +0 -25
- package/node_modules/@pm2/io/node_modules/async/until.js +0 -41
- package/node_modules/@pm2/io/node_modules/async/waterfall.js +0 -113
- package/node_modules/@pm2/io/node_modules/async/whilst.js +0 -72
- package/node_modules/@pm2/io/node_modules/async/wrapSync.js +0 -110
- package/node_modules/@pm2/io/node_modules/eventemitter2/CHANGELOG.md +0 -122
- package/node_modules/@pm2/io/node_modules/eventemitter2/LICENSE.txt +0 -21
- package/node_modules/@pm2/io/node_modules/eventemitter2/README.md +0 -809
- package/node_modules/@pm2/io/node_modules/eventemitter2/eventemitter2.d.ts +0 -150
- package/node_modules/@pm2/io/node_modules/eventemitter2/index.js +0 -1
- package/node_modules/@pm2/io/node_modules/eventemitter2/lib/eventemitter2.js +0 -1629
- package/node_modules/@pm2/io/node_modules/eventemitter2/package.json +0 -89
- package/node_modules/@pm2/io/node_modules/semver/CHANGELOG.md +0 -70
- package/node_modules/@pm2/io/node_modules/semver/LICENSE +0 -15
- package/node_modules/@pm2/io/node_modules/semver/README.md +0 -443
- package/node_modules/@pm2/io/node_modules/semver/bin/semver.js +0 -174
- package/node_modules/@pm2/io/node_modules/semver/package.json +0 -28
- package/node_modules/@pm2/io/node_modules/semver/range.bnf +0 -16
- package/node_modules/@pm2/io/node_modules/semver/semver.js +0 -1596
- package/node_modules/@pm2/io/package.json +0 -97
- package/node_modules/@pm2/io/pres/io-black.png +0 -0
- package/node_modules/@pm2/io/pres/io-white.png +0 -0
- package/node_modules/@pm2/io/test.sh +0 -67
- package/node_modules/@pm2/js-api/.drone.jsonnet +0 -100
- package/node_modules/@pm2/js-api/LICENSE +0 -201
- package/node_modules/@pm2/js-api/README.md +0 -375
- package/node_modules/@pm2/js-api/constants.js +0 -21
- package/node_modules/@pm2/js-api/index.js +0 -1
- package/node_modules/@pm2/js-api/node_modules/async/CHANGELOG.md +0 -275
- package/node_modules/@pm2/js-api/node_modules/async/LICENSE +0 -19
- package/node_modules/@pm2/js-api/node_modules/async/README.md +0 -56
- package/node_modules/@pm2/js-api/node_modules/async/all.js +0 -50
- package/node_modules/@pm2/js-api/node_modules/async/allLimit.js +0 -42
- package/node_modules/@pm2/js-api/node_modules/async/allSeries.js +0 -37
- package/node_modules/@pm2/js-api/node_modules/async/any.js +0 -52
- package/node_modules/@pm2/js-api/node_modules/async/anyLimit.js +0 -43
- package/node_modules/@pm2/js-api/node_modules/async/anySeries.js +0 -38
- package/node_modules/@pm2/js-api/node_modules/async/apply.js +0 -68
- package/node_modules/@pm2/js-api/node_modules/async/applyEach.js +0 -51
- package/node_modules/@pm2/js-api/node_modules/async/applyEachSeries.js +0 -37
- package/node_modules/@pm2/js-api/node_modules/async/asyncify.js +0 -110
- package/node_modules/@pm2/js-api/node_modules/async/auto.js +0 -289
- package/node_modules/@pm2/js-api/node_modules/async/autoInject.js +0 -170
- package/node_modules/@pm2/js-api/node_modules/async/bower.json +0 -17
- package/node_modules/@pm2/js-api/node_modules/async/cargo.js +0 -94
- package/node_modules/@pm2/js-api/node_modules/async/compose.js +0 -58
- package/node_modules/@pm2/js-api/node_modules/async/concat.js +0 -43
- package/node_modules/@pm2/js-api/node_modules/async/concatLimit.js +0 -65
- package/node_modules/@pm2/js-api/node_modules/async/concatSeries.js +0 -36
- package/node_modules/@pm2/js-api/node_modules/async/constant.js +0 -66
- package/node_modules/@pm2/js-api/node_modules/async/detect.js +0 -61
- package/node_modules/@pm2/js-api/node_modules/async/detectLimit.js +0 -48
- package/node_modules/@pm2/js-api/node_modules/async/detectSeries.js +0 -38
- package/node_modules/@pm2/js-api/node_modules/async/dir.js +0 -43
- package/node_modules/@pm2/js-api/node_modules/async/doDuring.js +0 -66
- package/node_modules/@pm2/js-api/node_modules/async/doUntil.js +0 -39
- package/node_modules/@pm2/js-api/node_modules/async/doWhilst.js +0 -59
- package/node_modules/@pm2/js-api/node_modules/async/during.js +0 -76
- package/node_modules/@pm2/js-api/node_modules/async/each.js +0 -82
- package/node_modules/@pm2/js-api/node_modules/async/eachLimit.js +0 -45
- package/node_modules/@pm2/js-api/node_modules/async/eachOf.js +0 -111
- package/node_modules/@pm2/js-api/node_modules/async/eachOfLimit.js +0 -41
- package/node_modules/@pm2/js-api/node_modules/async/eachOfSeries.js +0 -35
- package/node_modules/@pm2/js-api/node_modules/async/eachSeries.js +0 -37
- package/node_modules/@pm2/js-api/node_modules/async/ensureAsync.js +0 -73
- package/node_modules/@pm2/js-api/node_modules/async/every.js +0 -50
- package/node_modules/@pm2/js-api/node_modules/async/everyLimit.js +0 -42
- package/node_modules/@pm2/js-api/node_modules/async/everySeries.js +0 -37
- package/node_modules/@pm2/js-api/node_modules/async/filter.js +0 -45
- package/node_modules/@pm2/js-api/node_modules/async/filterLimit.js +0 -37
- package/node_modules/@pm2/js-api/node_modules/async/filterSeries.js +0 -35
- package/node_modules/@pm2/js-api/node_modules/async/find.js +0 -61
- package/node_modules/@pm2/js-api/node_modules/async/findLimit.js +0 -48
- package/node_modules/@pm2/js-api/node_modules/async/findSeries.js +0 -38
- package/node_modules/@pm2/js-api/node_modules/async/foldl.js +0 -78
- package/node_modules/@pm2/js-api/node_modules/async/foldr.js +0 -44
- package/node_modules/@pm2/js-api/node_modules/async/forEach.js +0 -82
- package/node_modules/@pm2/js-api/node_modules/async/forEachLimit.js +0 -45
- package/node_modules/@pm2/js-api/node_modules/async/forEachOf.js +0 -111
- package/node_modules/@pm2/js-api/node_modules/async/forEachOfLimit.js +0 -41
- package/node_modules/@pm2/js-api/node_modules/async/forEachOfSeries.js +0 -35
- package/node_modules/@pm2/js-api/node_modules/async/forEachSeries.js +0 -37
- package/node_modules/@pm2/js-api/node_modules/async/forever.js +0 -65
- package/node_modules/@pm2/js-api/node_modules/async/groupBy.js +0 -54
- package/node_modules/@pm2/js-api/node_modules/async/groupByLimit.js +0 -71
- package/node_modules/@pm2/js-api/node_modules/async/groupBySeries.js +0 -37
- package/node_modules/@pm2/js-api/node_modules/async/index.js +0 -582
- package/node_modules/@pm2/js-api/node_modules/async/inject.js +0 -78
- package/node_modules/@pm2/js-api/node_modules/async/internal/DoublyLinkedList.js +0 -88
- package/node_modules/@pm2/js-api/node_modules/async/internal/applyEach.js +0 -38
- package/node_modules/@pm2/js-api/node_modules/async/internal/breakLoop.js +0 -9
- package/node_modules/@pm2/js-api/node_modules/async/internal/consoleFunc.js +0 -42
- package/node_modules/@pm2/js-api/node_modules/async/internal/createTester.js +0 -44
- package/node_modules/@pm2/js-api/node_modules/async/internal/doLimit.js +0 -12
- package/node_modules/@pm2/js-api/node_modules/async/internal/doParallel.js +0 -23
- package/node_modules/@pm2/js-api/node_modules/async/internal/doParallelLimit.js +0 -23
- package/node_modules/@pm2/js-api/node_modules/async/internal/eachOfLimit.js +0 -74
- package/node_modules/@pm2/js-api/node_modules/async/internal/filter.js +0 -75
- package/node_modules/@pm2/js-api/node_modules/async/internal/findGetResult.js +0 -10
- package/node_modules/@pm2/js-api/node_modules/async/internal/getIterator.js +0 -13
- package/node_modules/@pm2/js-api/node_modules/async/internal/initialParams.js +0 -21
- package/node_modules/@pm2/js-api/node_modules/async/internal/iterator.js +0 -58
- package/node_modules/@pm2/js-api/node_modules/async/internal/map.js +0 -35
- package/node_modules/@pm2/js-api/node_modules/async/internal/notId.js +0 -10
- package/node_modules/@pm2/js-api/node_modules/async/internal/once.js +0 -15
- package/node_modules/@pm2/js-api/node_modules/async/internal/onlyOnce.js +0 -15
- package/node_modules/@pm2/js-api/node_modules/async/internal/parallel.js +0 -42
- package/node_modules/@pm2/js-api/node_modules/async/internal/queue.js +0 -204
- package/node_modules/@pm2/js-api/node_modules/async/internal/reject.js +0 -21
- package/node_modules/@pm2/js-api/node_modules/async/internal/setImmediate.js +0 -42
- package/node_modules/@pm2/js-api/node_modules/async/internal/slice.js +0 -16
- package/node_modules/@pm2/js-api/node_modules/async/internal/withoutIndex.js +0 -12
- package/node_modules/@pm2/js-api/node_modules/async/internal/wrapAsync.js +0 -25
- package/node_modules/@pm2/js-api/node_modules/async/log.js +0 -41
- package/node_modules/@pm2/js-api/node_modules/async/map.js +0 -54
- package/node_modules/@pm2/js-api/node_modules/async/mapLimit.js +0 -37
- package/node_modules/@pm2/js-api/node_modules/async/mapSeries.js +0 -36
- package/node_modules/@pm2/js-api/node_modules/async/mapValues.js +0 -63
- package/node_modules/@pm2/js-api/node_modules/async/mapValuesLimit.js +0 -61
- package/node_modules/@pm2/js-api/node_modules/async/mapValuesSeries.js +0 -37
- package/node_modules/@pm2/js-api/node_modules/async/memoize.js +0 -101
- package/node_modules/@pm2/js-api/node_modules/async/nextTick.js +0 -51
- package/node_modules/@pm2/js-api/node_modules/async/package.json +0 -80
- package/node_modules/@pm2/js-api/node_modules/async/parallel.js +0 -90
- package/node_modules/@pm2/js-api/node_modules/async/parallelLimit.js +0 -40
- package/node_modules/@pm2/js-api/node_modules/async/priorityQueue.js +0 -98
- package/node_modules/@pm2/js-api/node_modules/async/queue.js +0 -130
- package/node_modules/@pm2/js-api/node_modules/async/race.js +0 -70
- package/node_modules/@pm2/js-api/node_modules/async/reduce.js +0 -78
- package/node_modules/@pm2/js-api/node_modules/async/reduceRight.js +0 -44
- package/node_modules/@pm2/js-api/node_modules/async/reflect.js +0 -81
- package/node_modules/@pm2/js-api/node_modules/async/reflectAll.js +0 -105
- package/node_modules/@pm2/js-api/node_modules/async/reject.js +0 -45
- package/node_modules/@pm2/js-api/node_modules/async/rejectLimit.js +0 -37
- package/node_modules/@pm2/js-api/node_modules/async/rejectSeries.js +0 -35
- package/node_modules/@pm2/js-api/node_modules/async/retry.js +0 -156
- package/node_modules/@pm2/js-api/node_modules/async/retryable.js +0 -65
- package/node_modules/@pm2/js-api/node_modules/async/select.js +0 -45
- package/node_modules/@pm2/js-api/node_modules/async/selectLimit.js +0 -37
- package/node_modules/@pm2/js-api/node_modules/async/selectSeries.js +0 -35
- package/node_modules/@pm2/js-api/node_modules/async/seq.js +0 -91
- package/node_modules/@pm2/js-api/node_modules/async/series.js +0 -85
- package/node_modules/@pm2/js-api/node_modules/async/setImmediate.js +0 -45
- package/node_modules/@pm2/js-api/node_modules/async/some.js +0 -52
- package/node_modules/@pm2/js-api/node_modules/async/someLimit.js +0 -43
- package/node_modules/@pm2/js-api/node_modules/async/someSeries.js +0 -38
- package/node_modules/@pm2/js-api/node_modules/async/sortBy.js +0 -91
- package/node_modules/@pm2/js-api/node_modules/async/timeout.js +0 -89
- package/node_modules/@pm2/js-api/node_modules/async/times.js +0 -50
- package/node_modules/@pm2/js-api/node_modules/async/timesLimit.js +0 -42
- package/node_modules/@pm2/js-api/node_modules/async/timesSeries.js +0 -32
- package/node_modules/@pm2/js-api/node_modules/async/transform.js +0 -87
- package/node_modules/@pm2/js-api/node_modules/async/tryEach.js +0 -81
- package/node_modules/@pm2/js-api/node_modules/async/unmemoize.js +0 -25
- package/node_modules/@pm2/js-api/node_modules/async/until.js +0 -41
- package/node_modules/@pm2/js-api/node_modules/async/waterfall.js +0 -113
- package/node_modules/@pm2/js-api/node_modules/async/whilst.js +0 -72
- package/node_modules/@pm2/js-api/node_modules/async/wrapSync.js +0 -110
- package/node_modules/@pm2/js-api/node_modules/eventemitter2/CHANGELOG.md +0 -122
- package/node_modules/@pm2/js-api/node_modules/eventemitter2/LICENSE.txt +0 -21
- package/node_modules/@pm2/js-api/node_modules/eventemitter2/README.md +0 -809
- package/node_modules/@pm2/js-api/node_modules/eventemitter2/eventemitter2.d.ts +0 -150
- package/node_modules/@pm2/js-api/node_modules/eventemitter2/index.js +0 -1
- package/node_modules/@pm2/js-api/node_modules/eventemitter2/lib/eventemitter2.js +0 -1629
- package/node_modules/@pm2/js-api/node_modules/eventemitter2/package.json +0 -89
- package/node_modules/@pm2/js-api/package.json +0 -77
- package/node_modules/@pm2/js-api/src/api_mappings.json +0 -1
- package/node_modules/@pm2/js-api/src/auth_strategies/browser_strategy.js +0 -67
- package/node_modules/@pm2/js-api/src/auth_strategies/embed_strategy.js +0 -138
- package/node_modules/@pm2/js-api/src/auth_strategies/standalone_strategy.js +0 -33
- package/node_modules/@pm2/js-api/src/auth_strategies/strategy.js +0 -57
- package/node_modules/@pm2/js-api/src/endpoint.js +0 -34
- package/node_modules/@pm2/js-api/src/keymetrics.js +0 -78
- package/node_modules/@pm2/js-api/src/namespace.js +0 -76
- package/node_modules/@pm2/js-api/src/network.js +0 -464
- package/node_modules/@pm2/js-api/src/utils/validator.js +0 -164
- package/node_modules/@pm2/js-api/src/utils/websocket.js +0 -181
- package/node_modules/@pm2/pm2-version-check/README.md +0 -8
- package/node_modules/@pm2/pm2-version-check/index.js +0 -54
- package/node_modules/@pm2/pm2-version-check/package.json +0 -11
- package/node_modules/@tootallnate/once/package.json +0 -45
- package/node_modules/@types/json5/README.md +0 -18
- package/node_modules/@types/json5/index.d.ts +0 -44
- package/node_modules/@types/json5/package.json +0 -16
- package/node_modules/@types/json5/types-metadata.json +0 -25
- package/server-config.json +0 -32
- package/www/assets/brand/bootstrap-outline.svg +0 -20
- package/www/assets/brand/bootstrap-punchout.svg +0 -18
- package/www/assets/brand/bootstrap-solid.svg +0 -17
- package/www/assets/css/docs.min.css +0 -11
- package/www/assets/css/docs.min.css.map +0 -1
- package/www/assets/css/ie10-viewport-bug-workaround.css +0 -13
- package/www/assets/css/src/docs.css +0 -1632
- package/www/assets/css/src/pygments-manni.css +0 -66
- package/www/assets/flash/ZeroClipboard.swf +0 -0
- package/www/assets/img/components.png +0 -0
- package/www/assets/img/devices.png +0 -0
- package/www/assets/img/expo-lyft.jpg +0 -0
- package/www/assets/img/expo-newsweek.jpg +0 -0
- package/www/assets/img/expo-riot.jpg +0 -0
- package/www/assets/img/expo-vogue.jpg +0 -0
- package/www/assets/img/process.png +0 -0
- package/www/assets/img/sass-less.png +0 -0
- package/www/assets/js/customize.min.js +0 -91
- package/www/assets/js/docs.min.js +0 -26
- package/www/assets/js/ie-emulation-modes-warning.js +0 -51
- package/www/assets/js/ie10-viewport-bug-workaround.js +0 -23
- package/www/assets/js/ie8-responsive-file-warning.js +0 -13
- package/www/assets/js/raw-files.min.js +0 -8
- package/www/assets/js/src/application.js +0 -183
- package/www/assets/js/src/customizer.js +0 -520
- package/www/assets/js/vendor/Blob.js +0 -211
- package/www/assets/js/vendor/FileSaver.js +0 -248
- package/www/assets/js/vendor/ZeroClipboard.min.js +0 -9
- package/www/assets/js/vendor/anchor.min.js +0 -6
- package/www/assets/js/vendor/autoprefixer.js +0 -21114
- package/www/assets/js/vendor/holder.min.js +0 -12
- package/www/assets/js/vendor/jquery.min.js +0 -5
- package/www/assets/js/vendor/jszip.min.js +0 -14
- package/www/assets/js/vendor/less.min.js +0 -16
- package/www/assets/js/vendor/uglify.min.js +0 -6
- package/www/css/bootstrap-theme.css +0 -587
- package/www/css/bootstrap-theme.css.map +0 -1
- package/www/css/bootstrap-theme.min.css +0 -6
- package/www/css/bootstrap-theme.min.css.map +0 -1
- package/www/css/bootstrap.css +0 -6757
- package/www/css/bootstrap.css.map +0 -1
- package/www/css/bootstrap.min.css +0 -6
- package/www/css/bootstrap.min.css.map +0 -1
- package/www/favicon.ico +0 -0
- package/www/fonts/glyphicons-halflings-regular.eot +0 -0
- package/www/fonts/glyphicons-halflings-regular.svg +0 -288
- package/www/fonts/glyphicons-halflings-regular.ttf +0 -0
- package/www/fonts/glyphicons-halflings-regular.woff +0 -0
- package/www/fonts/glyphicons-halflings-regular.woff2 +0 -0
- package/www/index.html +0 -117
- package/www/js/bootstrap.js +0 -2377
- package/www/js/bootstrap.min.js +0 -7
- package/www/js/npm.js +0 -13
- package/www/justified-nav.css +0 -88
- package/www/not-found.txt +0 -1
|
@@ -1,170 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = autoInject;
|
|
7
|
-
|
|
8
|
-
var _auto = require('./auto');
|
|
9
|
-
|
|
10
|
-
var _auto2 = _interopRequireDefault(_auto);
|
|
11
|
-
|
|
12
|
-
var _baseForOwn = require('lodash/_baseForOwn');
|
|
13
|
-
|
|
14
|
-
var _baseForOwn2 = _interopRequireDefault(_baseForOwn);
|
|
15
|
-
|
|
16
|
-
var _arrayMap = require('lodash/_arrayMap');
|
|
17
|
-
|
|
18
|
-
var _arrayMap2 = _interopRequireDefault(_arrayMap);
|
|
19
|
-
|
|
20
|
-
var _isArray = require('lodash/isArray');
|
|
21
|
-
|
|
22
|
-
var _isArray2 = _interopRequireDefault(_isArray);
|
|
23
|
-
|
|
24
|
-
var _trim = require('lodash/trim');
|
|
25
|
-
|
|
26
|
-
var _trim2 = _interopRequireDefault(_trim);
|
|
27
|
-
|
|
28
|
-
var _wrapAsync = require('./internal/wrapAsync');
|
|
29
|
-
|
|
30
|
-
var _wrapAsync2 = _interopRequireDefault(_wrapAsync);
|
|
31
|
-
|
|
32
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
33
|
-
|
|
34
|
-
var FN_ARGS = /^(?:async\s+)?(function)?\s*[^\(]*\(\s*([^\)]*)\)/m;
|
|
35
|
-
var FN_ARG_SPLIT = /,/;
|
|
36
|
-
var FN_ARG = /(=.+)?(\s*)$/;
|
|
37
|
-
var STRIP_COMMENTS = /((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg;
|
|
38
|
-
|
|
39
|
-
function parseParams(func) {
|
|
40
|
-
func = func.toString().replace(STRIP_COMMENTS, '');
|
|
41
|
-
func = func.match(FN_ARGS)[2].replace(' ', '');
|
|
42
|
-
func = func ? func.split(FN_ARG_SPLIT) : [];
|
|
43
|
-
func = func.map(function (arg) {
|
|
44
|
-
return (0, _trim2.default)(arg.replace(FN_ARG, ''));
|
|
45
|
-
});
|
|
46
|
-
return func;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* A dependency-injected version of the [async.auto]{@link module:ControlFlow.auto} function. Dependent
|
|
51
|
-
* tasks are specified as parameters to the function, after the usual callback
|
|
52
|
-
* parameter, with the parameter names matching the names of the tasks it
|
|
53
|
-
* depends on. This can provide even more readable task graphs which can be
|
|
54
|
-
* easier to maintain.
|
|
55
|
-
*
|
|
56
|
-
* If a final callback is specified, the task results are similarly injected,
|
|
57
|
-
* specified as named parameters after the initial error parameter.
|
|
58
|
-
*
|
|
59
|
-
* The autoInject function is purely syntactic sugar and its semantics are
|
|
60
|
-
* otherwise equivalent to [async.auto]{@link module:ControlFlow.auto}.
|
|
61
|
-
*
|
|
62
|
-
* @name autoInject
|
|
63
|
-
* @static
|
|
64
|
-
* @memberOf module:ControlFlow
|
|
65
|
-
* @method
|
|
66
|
-
* @see [async.auto]{@link module:ControlFlow.auto}
|
|
67
|
-
* @category Control Flow
|
|
68
|
-
* @param {Object} tasks - An object, each of whose properties is an {@link AsyncFunction} of
|
|
69
|
-
* the form 'func([dependencies...], callback). The object's key of a property
|
|
70
|
-
* serves as the name of the task defined by that property, i.e. can be used
|
|
71
|
-
* when specifying requirements for other tasks.
|
|
72
|
-
* * The `callback` parameter is a `callback(err, result)` which must be called
|
|
73
|
-
* when finished, passing an `error` (which can be `null`) and the result of
|
|
74
|
-
* the function's execution. The remaining parameters name other tasks on
|
|
75
|
-
* which the task is dependent, and the results from those tasks are the
|
|
76
|
-
* arguments of those parameters.
|
|
77
|
-
* @param {Function} [callback] - An optional callback which is called when all
|
|
78
|
-
* the tasks have been completed. It receives the `err` argument if any `tasks`
|
|
79
|
-
* pass an error to their callback, and a `results` object with any completed
|
|
80
|
-
* task results, similar to `auto`.
|
|
81
|
-
* @example
|
|
82
|
-
*
|
|
83
|
-
* // The example from `auto` can be rewritten as follows:
|
|
84
|
-
* async.autoInject({
|
|
85
|
-
* get_data: function(callback) {
|
|
86
|
-
* // async code to get some data
|
|
87
|
-
* callback(null, 'data', 'converted to array');
|
|
88
|
-
* },
|
|
89
|
-
* make_folder: function(callback) {
|
|
90
|
-
* // async code to create a directory to store a file in
|
|
91
|
-
* // this is run at the same time as getting the data
|
|
92
|
-
* callback(null, 'folder');
|
|
93
|
-
* },
|
|
94
|
-
* write_file: function(get_data, make_folder, callback) {
|
|
95
|
-
* // once there is some data and the directory exists,
|
|
96
|
-
* // write the data to a file in the directory
|
|
97
|
-
* callback(null, 'filename');
|
|
98
|
-
* },
|
|
99
|
-
* email_link: function(write_file, callback) {
|
|
100
|
-
* // once the file is written let's email a link to it...
|
|
101
|
-
* // write_file contains the filename returned by write_file.
|
|
102
|
-
* callback(null, {'file':write_file, 'email':'user@example.com'});
|
|
103
|
-
* }
|
|
104
|
-
* }, function(err, results) {
|
|
105
|
-
* console.log('err = ', err);
|
|
106
|
-
* console.log('email_link = ', results.email_link);
|
|
107
|
-
* });
|
|
108
|
-
*
|
|
109
|
-
* // If you are using a JS minifier that mangles parameter names, `autoInject`
|
|
110
|
-
* // will not work with plain functions, since the parameter names will be
|
|
111
|
-
* // collapsed to a single letter identifier. To work around this, you can
|
|
112
|
-
* // explicitly specify the names of the parameters your task function needs
|
|
113
|
-
* // in an array, similar to Angular.js dependency injection.
|
|
114
|
-
*
|
|
115
|
-
* // This still has an advantage over plain `auto`, since the results a task
|
|
116
|
-
* // depends on are still spread into arguments.
|
|
117
|
-
* async.autoInject({
|
|
118
|
-
* //...
|
|
119
|
-
* write_file: ['get_data', 'make_folder', function(get_data, make_folder, callback) {
|
|
120
|
-
* callback(null, 'filename');
|
|
121
|
-
* }],
|
|
122
|
-
* email_link: ['write_file', function(write_file, callback) {
|
|
123
|
-
* callback(null, {'file':write_file, 'email':'user@example.com'});
|
|
124
|
-
* }]
|
|
125
|
-
* //...
|
|
126
|
-
* }, function(err, results) {
|
|
127
|
-
* console.log('err = ', err);
|
|
128
|
-
* console.log('email_link = ', results.email_link);
|
|
129
|
-
* });
|
|
130
|
-
*/
|
|
131
|
-
function autoInject(tasks, callback) {
|
|
132
|
-
var newTasks = {};
|
|
133
|
-
|
|
134
|
-
(0, _baseForOwn2.default)(tasks, function (taskFn, key) {
|
|
135
|
-
var params;
|
|
136
|
-
var fnIsAsync = (0, _wrapAsync.isAsync)(taskFn);
|
|
137
|
-
var hasNoDeps = !fnIsAsync && taskFn.length === 1 || fnIsAsync && taskFn.length === 0;
|
|
138
|
-
|
|
139
|
-
if ((0, _isArray2.default)(taskFn)) {
|
|
140
|
-
params = taskFn.slice(0, -1);
|
|
141
|
-
taskFn = taskFn[taskFn.length - 1];
|
|
142
|
-
|
|
143
|
-
newTasks[key] = params.concat(params.length > 0 ? newTask : taskFn);
|
|
144
|
-
} else if (hasNoDeps) {
|
|
145
|
-
// no dependencies, use the function as-is
|
|
146
|
-
newTasks[key] = taskFn;
|
|
147
|
-
} else {
|
|
148
|
-
params = parseParams(taskFn);
|
|
149
|
-
if (taskFn.length === 0 && !fnIsAsync && params.length === 0) {
|
|
150
|
-
throw new Error("autoInject task functions require explicit parameters.");
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
// remove callback param
|
|
154
|
-
if (!fnIsAsync) params.pop();
|
|
155
|
-
|
|
156
|
-
newTasks[key] = params.concat(newTask);
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
function newTask(results, taskCb) {
|
|
160
|
-
var newArgs = (0, _arrayMap2.default)(params, function (name) {
|
|
161
|
-
return results[name];
|
|
162
|
-
});
|
|
163
|
-
newArgs.push(taskCb);
|
|
164
|
-
(0, _wrapAsync2.default)(taskFn).apply(null, newArgs);
|
|
165
|
-
}
|
|
166
|
-
});
|
|
167
|
-
|
|
168
|
-
(0, _auto2.default)(newTasks, callback);
|
|
169
|
-
}
|
|
170
|
-
module.exports = exports['default'];
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = cargo;
|
|
7
|
-
|
|
8
|
-
var _queue = require('./internal/queue');
|
|
9
|
-
|
|
10
|
-
var _queue2 = _interopRequireDefault(_queue);
|
|
11
|
-
|
|
12
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* A cargo of tasks for the worker function to complete. Cargo inherits all of
|
|
16
|
-
* the same methods and event callbacks as [`queue`]{@link module:ControlFlow.queue}.
|
|
17
|
-
* @typedef {Object} CargoObject
|
|
18
|
-
* @memberOf module:ControlFlow
|
|
19
|
-
* @property {Function} length - A function returning the number of items
|
|
20
|
-
* waiting to be processed. Invoke like `cargo.length()`.
|
|
21
|
-
* @property {number} payload - An `integer` for determining how many tasks
|
|
22
|
-
* should be process per round. This property can be changed after a `cargo` is
|
|
23
|
-
* created to alter the payload on-the-fly.
|
|
24
|
-
* @property {Function} push - Adds `task` to the `queue`. The callback is
|
|
25
|
-
* called once the `worker` has finished processing the task. Instead of a
|
|
26
|
-
* single task, an array of `tasks` can be submitted. The respective callback is
|
|
27
|
-
* used for every task in the list. Invoke like `cargo.push(task, [callback])`.
|
|
28
|
-
* @property {Function} saturated - A callback that is called when the
|
|
29
|
-
* `queue.length()` hits the concurrency and further tasks will be queued.
|
|
30
|
-
* @property {Function} empty - A callback that is called when the last item
|
|
31
|
-
* from the `queue` is given to a `worker`.
|
|
32
|
-
* @property {Function} drain - A callback that is called when the last item
|
|
33
|
-
* from the `queue` has returned from the `worker`.
|
|
34
|
-
* @property {Function} idle - a function returning false if there are items
|
|
35
|
-
* waiting or being processed, or true if not. Invoke like `cargo.idle()`.
|
|
36
|
-
* @property {Function} pause - a function that pauses the processing of tasks
|
|
37
|
-
* until `resume()` is called. Invoke like `cargo.pause()`.
|
|
38
|
-
* @property {Function} resume - a function that resumes the processing of
|
|
39
|
-
* queued tasks when the queue is paused. Invoke like `cargo.resume()`.
|
|
40
|
-
* @property {Function} kill - a function that removes the `drain` callback and
|
|
41
|
-
* empties remaining tasks from the queue forcing it to go idle. Invoke like `cargo.kill()`.
|
|
42
|
-
*/
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* Creates a `cargo` object with the specified payload. Tasks added to the
|
|
46
|
-
* cargo will be processed altogether (up to the `payload` limit). If the
|
|
47
|
-
* `worker` is in progress, the task is queued until it becomes available. Once
|
|
48
|
-
* the `worker` has completed some tasks, each callback of those tasks is
|
|
49
|
-
* called. Check out [these](https://camo.githubusercontent.com/6bbd36f4cf5b35a0f11a96dcd2e97711ffc2fb37/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f313637363837312f36383130382f62626330636662302d356632392d313165322d393734662d3333393763363464633835382e676966) [animations](https://camo.githubusercontent.com/f4810e00e1c5f5f8addbe3e9f49064fd5d102699/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f313637363837312f36383130312f38346339323036362d356632392d313165322d383134662d3964336430323431336266642e676966)
|
|
50
|
-
* for how `cargo` and `queue` work.
|
|
51
|
-
*
|
|
52
|
-
* While [`queue`]{@link module:ControlFlow.queue} passes only one task to one of a group of workers
|
|
53
|
-
* at a time, cargo passes an array of tasks to a single worker, repeating
|
|
54
|
-
* when the worker is finished.
|
|
55
|
-
*
|
|
56
|
-
* @name cargo
|
|
57
|
-
* @static
|
|
58
|
-
* @memberOf module:ControlFlow
|
|
59
|
-
* @method
|
|
60
|
-
* @see [async.queue]{@link module:ControlFlow.queue}
|
|
61
|
-
* @category Control Flow
|
|
62
|
-
* @param {AsyncFunction} worker - An asynchronous function for processing an array
|
|
63
|
-
* of queued tasks. Invoked with `(tasks, callback)`.
|
|
64
|
-
* @param {number} [payload=Infinity] - An optional `integer` for determining
|
|
65
|
-
* how many tasks should be processed per round; if omitted, the default is
|
|
66
|
-
* unlimited.
|
|
67
|
-
* @returns {module:ControlFlow.CargoObject} A cargo object to manage the tasks. Callbacks can
|
|
68
|
-
* attached as certain properties to listen for specific events during the
|
|
69
|
-
* lifecycle of the cargo and inner queue.
|
|
70
|
-
* @example
|
|
71
|
-
*
|
|
72
|
-
* // create a cargo object with payload 2
|
|
73
|
-
* var cargo = async.cargo(function(tasks, callback) {
|
|
74
|
-
* for (var i=0; i<tasks.length; i++) {
|
|
75
|
-
* console.log('hello ' + tasks[i].name);
|
|
76
|
-
* }
|
|
77
|
-
* callback();
|
|
78
|
-
* }, 2);
|
|
79
|
-
*
|
|
80
|
-
* // add some items
|
|
81
|
-
* cargo.push({name: 'foo'}, function(err) {
|
|
82
|
-
* console.log('finished processing foo');
|
|
83
|
-
* });
|
|
84
|
-
* cargo.push({name: 'bar'}, function(err) {
|
|
85
|
-
* console.log('finished processing bar');
|
|
86
|
-
* });
|
|
87
|
-
* cargo.push({name: 'baz'}, function(err) {
|
|
88
|
-
* console.log('finished processing baz');
|
|
89
|
-
* });
|
|
90
|
-
*/
|
|
91
|
-
function cargo(worker, payload) {
|
|
92
|
-
return (0, _queue2.default)(worker, 1, payload);
|
|
93
|
-
}
|
|
94
|
-
module.exports = exports['default'];
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
|
|
7
|
-
exports.default = function () /*...args*/{
|
|
8
|
-
return _seq2.default.apply(null, (0, _slice2.default)(arguments).reverse());
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
var _seq = require('./seq');
|
|
12
|
-
|
|
13
|
-
var _seq2 = _interopRequireDefault(_seq);
|
|
14
|
-
|
|
15
|
-
var _slice = require('./internal/slice');
|
|
16
|
-
|
|
17
|
-
var _slice2 = _interopRequireDefault(_slice);
|
|
18
|
-
|
|
19
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
20
|
-
|
|
21
|
-
;
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* Creates a function which is a composition of the passed asynchronous
|
|
25
|
-
* functions. Each function consumes the return value of the function that
|
|
26
|
-
* follows. Composing functions `f()`, `g()`, and `h()` would produce the result
|
|
27
|
-
* of `f(g(h()))`, only this version uses callbacks to obtain the return values.
|
|
28
|
-
*
|
|
29
|
-
* Each function is executed with the `this` binding of the composed function.
|
|
30
|
-
*
|
|
31
|
-
* @name compose
|
|
32
|
-
* @static
|
|
33
|
-
* @memberOf module:ControlFlow
|
|
34
|
-
* @method
|
|
35
|
-
* @category Control Flow
|
|
36
|
-
* @param {...AsyncFunction} functions - the asynchronous functions to compose
|
|
37
|
-
* @returns {Function} an asynchronous function that is the composed
|
|
38
|
-
* asynchronous `functions`
|
|
39
|
-
* @example
|
|
40
|
-
*
|
|
41
|
-
* function add1(n, callback) {
|
|
42
|
-
* setTimeout(function () {
|
|
43
|
-
* callback(null, n + 1);
|
|
44
|
-
* }, 10);
|
|
45
|
-
* }
|
|
46
|
-
*
|
|
47
|
-
* function mul3(n, callback) {
|
|
48
|
-
* setTimeout(function () {
|
|
49
|
-
* callback(null, n * 3);
|
|
50
|
-
* }, 10);
|
|
51
|
-
* }
|
|
52
|
-
*
|
|
53
|
-
* var add1mul3 = async.compose(mul3, add1);
|
|
54
|
-
* add1mul3(4, function (err, result) {
|
|
55
|
-
* // result now equals 15
|
|
56
|
-
* });
|
|
57
|
-
*/
|
|
58
|
-
module.exports = exports['default'];
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
|
|
7
|
-
var _doLimit = require('./internal/doLimit');
|
|
8
|
-
|
|
9
|
-
var _doLimit2 = _interopRequireDefault(_doLimit);
|
|
10
|
-
|
|
11
|
-
var _concatLimit = require('./concatLimit');
|
|
12
|
-
|
|
13
|
-
var _concatLimit2 = _interopRequireDefault(_concatLimit);
|
|
14
|
-
|
|
15
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* Applies `iteratee` to each item in `coll`, concatenating the results. Returns
|
|
19
|
-
* the concatenated list. The `iteratee`s are called in parallel, and the
|
|
20
|
-
* results are concatenated as they return. There is no guarantee that the
|
|
21
|
-
* results array will be returned in the original order of `coll` passed to the
|
|
22
|
-
* `iteratee` function.
|
|
23
|
-
*
|
|
24
|
-
* @name concat
|
|
25
|
-
* @static
|
|
26
|
-
* @memberOf module:Collections
|
|
27
|
-
* @method
|
|
28
|
-
* @category Collection
|
|
29
|
-
* @param {Array|Iterable|Object} coll - A collection to iterate over.
|
|
30
|
-
* @param {AsyncFunction} iteratee - A function to apply to each item in `coll`,
|
|
31
|
-
* which should use an array as its result. Invoked with (item, callback).
|
|
32
|
-
* @param {Function} [callback(err)] - A callback which is called after all the
|
|
33
|
-
* `iteratee` functions have finished, or an error occurs. Results is an array
|
|
34
|
-
* containing the concatenated results of the `iteratee` function. Invoked with
|
|
35
|
-
* (err, results).
|
|
36
|
-
* @example
|
|
37
|
-
*
|
|
38
|
-
* async.concat(['dir1','dir2','dir3'], fs.readdir, function(err, files) {
|
|
39
|
-
* // files is now a list of filenames that exist in the 3 directories
|
|
40
|
-
* });
|
|
41
|
-
*/
|
|
42
|
-
exports.default = (0, _doLimit2.default)(_concatLimit2.default, Infinity);
|
|
43
|
-
module.exports = exports['default'];
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
|
|
7
|
-
exports.default = function (coll, limit, iteratee, callback) {
|
|
8
|
-
callback = callback || _noop2.default;
|
|
9
|
-
var _iteratee = (0, _wrapAsync2.default)(iteratee);
|
|
10
|
-
(0, _mapLimit2.default)(coll, limit, function (val, callback) {
|
|
11
|
-
_iteratee(val, function (err /*, ...args*/) {
|
|
12
|
-
if (err) return callback(err);
|
|
13
|
-
return callback(null, (0, _slice2.default)(arguments, 1));
|
|
14
|
-
});
|
|
15
|
-
}, function (err, mapResults) {
|
|
16
|
-
var result = [];
|
|
17
|
-
for (var i = 0; i < mapResults.length; i++) {
|
|
18
|
-
if (mapResults[i]) {
|
|
19
|
-
result = _concat.apply(result, mapResults[i]);
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
return callback(err, result);
|
|
24
|
-
});
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
var _noop = require('lodash/noop');
|
|
28
|
-
|
|
29
|
-
var _noop2 = _interopRequireDefault(_noop);
|
|
30
|
-
|
|
31
|
-
var _wrapAsync = require('./internal/wrapAsync');
|
|
32
|
-
|
|
33
|
-
var _wrapAsync2 = _interopRequireDefault(_wrapAsync);
|
|
34
|
-
|
|
35
|
-
var _slice = require('./internal/slice');
|
|
36
|
-
|
|
37
|
-
var _slice2 = _interopRequireDefault(_slice);
|
|
38
|
-
|
|
39
|
-
var _mapLimit = require('./mapLimit');
|
|
40
|
-
|
|
41
|
-
var _mapLimit2 = _interopRequireDefault(_mapLimit);
|
|
42
|
-
|
|
43
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
44
|
-
|
|
45
|
-
var _concat = Array.prototype.concat;
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* The same as [`concat`]{@link module:Collections.concat} but runs a maximum of `limit` async operations at a time.
|
|
49
|
-
*
|
|
50
|
-
* @name concatLimit
|
|
51
|
-
* @static
|
|
52
|
-
* @memberOf module:Collections
|
|
53
|
-
* @method
|
|
54
|
-
* @see [async.concat]{@link module:Collections.concat}
|
|
55
|
-
* @category Collection
|
|
56
|
-
* @param {Array|Iterable|Object} coll - A collection to iterate over.
|
|
57
|
-
* @param {number} limit - The maximum number of async operations at a time.
|
|
58
|
-
* @param {AsyncFunction} iteratee - A function to apply to each item in `coll`,
|
|
59
|
-
* which should use an array as its result. Invoked with (item, callback).
|
|
60
|
-
* @param {Function} [callback] - A callback which is called after all the
|
|
61
|
-
* `iteratee` functions have finished, or an error occurs. Results is an array
|
|
62
|
-
* containing the concatenated results of the `iteratee` function. Invoked with
|
|
63
|
-
* (err, results).
|
|
64
|
-
*/
|
|
65
|
-
module.exports = exports['default'];
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
|
|
7
|
-
var _doLimit = require('./internal/doLimit');
|
|
8
|
-
|
|
9
|
-
var _doLimit2 = _interopRequireDefault(_doLimit);
|
|
10
|
-
|
|
11
|
-
var _concatLimit = require('./concatLimit');
|
|
12
|
-
|
|
13
|
-
var _concatLimit2 = _interopRequireDefault(_concatLimit);
|
|
14
|
-
|
|
15
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* The same as [`concat`]{@link module:Collections.concat} but runs only a single async operation at a time.
|
|
19
|
-
*
|
|
20
|
-
* @name concatSeries
|
|
21
|
-
* @static
|
|
22
|
-
* @memberOf module:Collections
|
|
23
|
-
* @method
|
|
24
|
-
* @see [async.concat]{@link module:Collections.concat}
|
|
25
|
-
* @category Collection
|
|
26
|
-
* @param {Array|Iterable|Object} coll - A collection to iterate over.
|
|
27
|
-
* @param {AsyncFunction} iteratee - A function to apply to each item in `coll`.
|
|
28
|
-
* The iteratee should complete with an array an array of results.
|
|
29
|
-
* Invoked with (item, callback).
|
|
30
|
-
* @param {Function} [callback(err)] - A callback which is called after all the
|
|
31
|
-
* `iteratee` functions have finished, or an error occurs. Results is an array
|
|
32
|
-
* containing the concatenated results of the `iteratee` function. Invoked with
|
|
33
|
-
* (err, results).
|
|
34
|
-
*/
|
|
35
|
-
exports.default = (0, _doLimit2.default)(_concatLimit2.default, 1);
|
|
36
|
-
module.exports = exports['default'];
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
|
|
7
|
-
exports.default = function () /*...values*/{
|
|
8
|
-
var values = (0, _slice2.default)(arguments);
|
|
9
|
-
var args = [null].concat(values);
|
|
10
|
-
return function () /*...ignoredArgs, callback*/{
|
|
11
|
-
var callback = arguments[arguments.length - 1];
|
|
12
|
-
return callback.apply(this, args);
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
var _slice = require('./internal/slice');
|
|
17
|
-
|
|
18
|
-
var _slice2 = _interopRequireDefault(_slice);
|
|
19
|
-
|
|
20
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
21
|
-
|
|
22
|
-
;
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* Returns a function that when called, calls-back with the values provided.
|
|
26
|
-
* Useful as the first function in a [`waterfall`]{@link module:ControlFlow.waterfall}, or for plugging values in to
|
|
27
|
-
* [`auto`]{@link module:ControlFlow.auto}.
|
|
28
|
-
*
|
|
29
|
-
* @name constant
|
|
30
|
-
* @static
|
|
31
|
-
* @memberOf module:Utils
|
|
32
|
-
* @method
|
|
33
|
-
* @category Util
|
|
34
|
-
* @param {...*} arguments... - Any number of arguments to automatically invoke
|
|
35
|
-
* callback with.
|
|
36
|
-
* @returns {AsyncFunction} Returns a function that when invoked, automatically
|
|
37
|
-
* invokes the callback with the previous given arguments.
|
|
38
|
-
* @example
|
|
39
|
-
*
|
|
40
|
-
* async.waterfall([
|
|
41
|
-
* async.constant(42),
|
|
42
|
-
* function (value, next) {
|
|
43
|
-
* // value === 42
|
|
44
|
-
* },
|
|
45
|
-
* //...
|
|
46
|
-
* ], callback);
|
|
47
|
-
*
|
|
48
|
-
* async.waterfall([
|
|
49
|
-
* async.constant(filename, "utf8"),
|
|
50
|
-
* fs.readFile,
|
|
51
|
-
* function (fileData, next) {
|
|
52
|
-
* //...
|
|
53
|
-
* }
|
|
54
|
-
* //...
|
|
55
|
-
* ], callback);
|
|
56
|
-
*
|
|
57
|
-
* async.auto({
|
|
58
|
-
* hostname: async.constant("https://server.net/"),
|
|
59
|
-
* port: findFreePort,
|
|
60
|
-
* launchServer: ["hostname", "port", function (options, cb) {
|
|
61
|
-
* startServer(options, cb);
|
|
62
|
-
* }],
|
|
63
|
-
* //...
|
|
64
|
-
* }, callback);
|
|
65
|
-
*/
|
|
66
|
-
module.exports = exports['default'];
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
|
|
7
|
-
var _identity = require('lodash/identity');
|
|
8
|
-
|
|
9
|
-
var _identity2 = _interopRequireDefault(_identity);
|
|
10
|
-
|
|
11
|
-
var _createTester = require('./internal/createTester');
|
|
12
|
-
|
|
13
|
-
var _createTester2 = _interopRequireDefault(_createTester);
|
|
14
|
-
|
|
15
|
-
var _doParallel = require('./internal/doParallel');
|
|
16
|
-
|
|
17
|
-
var _doParallel2 = _interopRequireDefault(_doParallel);
|
|
18
|
-
|
|
19
|
-
var _findGetResult = require('./internal/findGetResult');
|
|
20
|
-
|
|
21
|
-
var _findGetResult2 = _interopRequireDefault(_findGetResult);
|
|
22
|
-
|
|
23
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* Returns the first value in `coll` that passes an async truth test. The
|
|
27
|
-
* `iteratee` is applied in parallel, meaning the first iteratee to return
|
|
28
|
-
* `true` will fire the detect `callback` with that result. That means the
|
|
29
|
-
* result might not be the first item in the original `coll` (in terms of order)
|
|
30
|
-
* that passes the test.
|
|
31
|
-
|
|
32
|
-
* If order within the original `coll` is important, then look at
|
|
33
|
-
* [`detectSeries`]{@link module:Collections.detectSeries}.
|
|
34
|
-
*
|
|
35
|
-
* @name detect
|
|
36
|
-
* @static
|
|
37
|
-
* @memberOf module:Collections
|
|
38
|
-
* @method
|
|
39
|
-
* @alias find
|
|
40
|
-
* @category Collections
|
|
41
|
-
* @param {Array|Iterable|Object} coll - A collection to iterate over.
|
|
42
|
-
* @param {AsyncFunction} iteratee - A truth test to apply to each item in `coll`.
|
|
43
|
-
* The iteratee must complete with a boolean value as its result.
|
|
44
|
-
* Invoked with (item, callback).
|
|
45
|
-
* @param {Function} [callback] - A callback which is called as soon as any
|
|
46
|
-
* iteratee returns `true`, or after all the `iteratee` functions have finished.
|
|
47
|
-
* Result will be the first item in the array that passes the truth test
|
|
48
|
-
* (iteratee) or the value `undefined` if none passed. Invoked with
|
|
49
|
-
* (err, result).
|
|
50
|
-
* @example
|
|
51
|
-
*
|
|
52
|
-
* async.detect(['file1','file2','file3'], function(filePath, callback) {
|
|
53
|
-
* fs.access(filePath, function(err) {
|
|
54
|
-
* callback(null, !err)
|
|
55
|
-
* });
|
|
56
|
-
* }, function(err, result) {
|
|
57
|
-
* // result now equals the first file in the list that exists
|
|
58
|
-
* });
|
|
59
|
-
*/
|
|
60
|
-
exports.default = (0, _doParallel2.default)((0, _createTester2.default)(_identity2.default, _findGetResult2.default));
|
|
61
|
-
module.exports = exports['default'];
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
|
|
7
|
-
var _identity = require('lodash/identity');
|
|
8
|
-
|
|
9
|
-
var _identity2 = _interopRequireDefault(_identity);
|
|
10
|
-
|
|
11
|
-
var _createTester = require('./internal/createTester');
|
|
12
|
-
|
|
13
|
-
var _createTester2 = _interopRequireDefault(_createTester);
|
|
14
|
-
|
|
15
|
-
var _doParallelLimit = require('./internal/doParallelLimit');
|
|
16
|
-
|
|
17
|
-
var _doParallelLimit2 = _interopRequireDefault(_doParallelLimit);
|
|
18
|
-
|
|
19
|
-
var _findGetResult = require('./internal/findGetResult');
|
|
20
|
-
|
|
21
|
-
var _findGetResult2 = _interopRequireDefault(_findGetResult);
|
|
22
|
-
|
|
23
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* The same as [`detect`]{@link module:Collections.detect} but runs a maximum of `limit` async operations at a
|
|
27
|
-
* time.
|
|
28
|
-
*
|
|
29
|
-
* @name detectLimit
|
|
30
|
-
* @static
|
|
31
|
-
* @memberOf module:Collections
|
|
32
|
-
* @method
|
|
33
|
-
* @see [async.detect]{@link module:Collections.detect}
|
|
34
|
-
* @alias findLimit
|
|
35
|
-
* @category Collections
|
|
36
|
-
* @param {Array|Iterable|Object} coll - A collection to iterate over.
|
|
37
|
-
* @param {number} limit - The maximum number of async operations at a time.
|
|
38
|
-
* @param {AsyncFunction} iteratee - A truth test to apply to each item in `coll`.
|
|
39
|
-
* The iteratee must complete with a boolean value as its result.
|
|
40
|
-
* Invoked with (item, callback).
|
|
41
|
-
* @param {Function} [callback] - A callback which is called as soon as any
|
|
42
|
-
* iteratee returns `true`, or after all the `iteratee` functions have finished.
|
|
43
|
-
* Result will be the first item in the array that passes the truth test
|
|
44
|
-
* (iteratee) or the value `undefined` if none passed. Invoked with
|
|
45
|
-
* (err, result).
|
|
46
|
-
*/
|
|
47
|
-
exports.default = (0, _doParallelLimit2.default)((0, _createTester2.default)(_identity2.default, _findGetResult2.default));
|
|
48
|
-
module.exports = exports['default'];
|