@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,101 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = memoize;
|
|
7
|
-
|
|
8
|
-
var _identity = require('lodash/identity');
|
|
9
|
-
|
|
10
|
-
var _identity2 = _interopRequireDefault(_identity);
|
|
11
|
-
|
|
12
|
-
var _slice = require('./internal/slice');
|
|
13
|
-
|
|
14
|
-
var _slice2 = _interopRequireDefault(_slice);
|
|
15
|
-
|
|
16
|
-
var _setImmediate = require('./internal/setImmediate');
|
|
17
|
-
|
|
18
|
-
var _setImmediate2 = _interopRequireDefault(_setImmediate);
|
|
19
|
-
|
|
20
|
-
var _initialParams = require('./internal/initialParams');
|
|
21
|
-
|
|
22
|
-
var _initialParams2 = _interopRequireDefault(_initialParams);
|
|
23
|
-
|
|
24
|
-
var _wrapAsync = require('./internal/wrapAsync');
|
|
25
|
-
|
|
26
|
-
var _wrapAsync2 = _interopRequireDefault(_wrapAsync);
|
|
27
|
-
|
|
28
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
29
|
-
|
|
30
|
-
function has(obj, key) {
|
|
31
|
-
return key in obj;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* Caches the results of an async function. When creating a hash to store
|
|
36
|
-
* function results against, the callback is omitted from the hash and an
|
|
37
|
-
* optional hash function can be used.
|
|
38
|
-
*
|
|
39
|
-
* If no hash function is specified, the first argument is used as a hash key,
|
|
40
|
-
* which may work reasonably if it is a string or a data type that converts to a
|
|
41
|
-
* distinct string. Note that objects and arrays will not behave reasonably.
|
|
42
|
-
* Neither will cases where the other arguments are significant. In such cases,
|
|
43
|
-
* specify your own hash function.
|
|
44
|
-
*
|
|
45
|
-
* The cache of results is exposed as the `memo` property of the function
|
|
46
|
-
* returned by `memoize`.
|
|
47
|
-
*
|
|
48
|
-
* @name memoize
|
|
49
|
-
* @static
|
|
50
|
-
* @memberOf module:Utils
|
|
51
|
-
* @method
|
|
52
|
-
* @category Util
|
|
53
|
-
* @param {AsyncFunction} fn - The async function to proxy and cache results from.
|
|
54
|
-
* @param {Function} hasher - An optional function for generating a custom hash
|
|
55
|
-
* for storing results. It has all the arguments applied to it apart from the
|
|
56
|
-
* callback, and must be synchronous.
|
|
57
|
-
* @returns {AsyncFunction} a memoized version of `fn`
|
|
58
|
-
* @example
|
|
59
|
-
*
|
|
60
|
-
* var slow_fn = function(name, callback) {
|
|
61
|
-
* // do something
|
|
62
|
-
* callback(null, result);
|
|
63
|
-
* };
|
|
64
|
-
* var fn = async.memoize(slow_fn);
|
|
65
|
-
*
|
|
66
|
-
* // fn can now be used as if it were slow_fn
|
|
67
|
-
* fn('some name', function() {
|
|
68
|
-
* // callback
|
|
69
|
-
* });
|
|
70
|
-
*/
|
|
71
|
-
function memoize(fn, hasher) {
|
|
72
|
-
var memo = Object.create(null);
|
|
73
|
-
var queues = Object.create(null);
|
|
74
|
-
hasher = hasher || _identity2.default;
|
|
75
|
-
var _fn = (0, _wrapAsync2.default)(fn);
|
|
76
|
-
var memoized = (0, _initialParams2.default)(function memoized(args, callback) {
|
|
77
|
-
var key = hasher.apply(null, args);
|
|
78
|
-
if (has(memo, key)) {
|
|
79
|
-
(0, _setImmediate2.default)(function () {
|
|
80
|
-
callback.apply(null, memo[key]);
|
|
81
|
-
});
|
|
82
|
-
} else if (has(queues, key)) {
|
|
83
|
-
queues[key].push(callback);
|
|
84
|
-
} else {
|
|
85
|
-
queues[key] = [callback];
|
|
86
|
-
_fn.apply(null, args.concat(function () /*args*/{
|
|
87
|
-
var args = (0, _slice2.default)(arguments);
|
|
88
|
-
memo[key] = args;
|
|
89
|
-
var q = queues[key];
|
|
90
|
-
delete queues[key];
|
|
91
|
-
for (var i = 0, l = q.length; i < l; i++) {
|
|
92
|
-
q[i].apply(null, args);
|
|
93
|
-
}
|
|
94
|
-
}));
|
|
95
|
-
}
|
|
96
|
-
});
|
|
97
|
-
memoized.memo = memo;
|
|
98
|
-
memoized.unmemoized = fn;
|
|
99
|
-
return memoized;
|
|
100
|
-
}
|
|
101
|
-
module.exports = exports['default'];
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
|
|
7
|
-
var _setImmediate = require('./internal/setImmediate');
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* Calls `callback` on a later loop around the event loop. In Node.js this just
|
|
11
|
-
* calls `process.nextTick`. In the browser it will use `setImmediate` if
|
|
12
|
-
* available, otherwise `setTimeout(callback, 0)`, which means other higher
|
|
13
|
-
* priority events may precede the execution of `callback`.
|
|
14
|
-
*
|
|
15
|
-
* This is used internally for browser-compatibility purposes.
|
|
16
|
-
*
|
|
17
|
-
* @name nextTick
|
|
18
|
-
* @static
|
|
19
|
-
* @memberOf module:Utils
|
|
20
|
-
* @method
|
|
21
|
-
* @see [async.setImmediate]{@link module:Utils.setImmediate}
|
|
22
|
-
* @category Util
|
|
23
|
-
* @param {Function} callback - The function to call on a later loop around
|
|
24
|
-
* the event loop. Invoked with (args...).
|
|
25
|
-
* @param {...*} args... - any number of additional arguments to pass to the
|
|
26
|
-
* callback on the next tick.
|
|
27
|
-
* @example
|
|
28
|
-
*
|
|
29
|
-
* var call_order = [];
|
|
30
|
-
* async.nextTick(function() {
|
|
31
|
-
* call_order.push('two');
|
|
32
|
-
* // call_order now equals ['one','two']
|
|
33
|
-
* });
|
|
34
|
-
* call_order.push('one');
|
|
35
|
-
*
|
|
36
|
-
* async.setImmediate(function (a, b, c) {
|
|
37
|
-
* // a, b, and c equal 1, 2, and 3
|
|
38
|
-
* }, 1, 2, 3);
|
|
39
|
-
*/
|
|
40
|
-
var _defer;
|
|
41
|
-
|
|
42
|
-
if (_setImmediate.hasNextTick) {
|
|
43
|
-
_defer = process.nextTick;
|
|
44
|
-
} else if (_setImmediate.hasSetImmediate) {
|
|
45
|
-
_defer = setImmediate;
|
|
46
|
-
} else {
|
|
47
|
-
_defer = _setImmediate.fallback;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
exports.default = (0, _setImmediate.wrap)(_defer);
|
|
51
|
-
module.exports = exports['default'];
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "async",
|
|
3
|
-
"description": "Higher-order functions and common patterns for asynchronous code",
|
|
4
|
-
"version": "2.6.3",
|
|
5
|
-
"main": "dist/async.js",
|
|
6
|
-
"author": "Caolan McMahon",
|
|
7
|
-
"homepage": "https://caolan.github.io/async/",
|
|
8
|
-
"repository": {
|
|
9
|
-
"type": "git",
|
|
10
|
-
"url": "https://github.com/caolan/async.git"
|
|
11
|
-
},
|
|
12
|
-
"bugs": {
|
|
13
|
-
"url": "https://github.com/caolan/async/issues"
|
|
14
|
-
},
|
|
15
|
-
"keywords": [
|
|
16
|
-
"async",
|
|
17
|
-
"callback",
|
|
18
|
-
"module",
|
|
19
|
-
"utility"
|
|
20
|
-
],
|
|
21
|
-
"dependencies": {
|
|
22
|
-
"lodash": "^4.17.14"
|
|
23
|
-
},
|
|
24
|
-
"devDependencies": {
|
|
25
|
-
"babel-cli": "^6.24.0",
|
|
26
|
-
"babel-core": "^6.26.3",
|
|
27
|
-
"babel-plugin-add-module-exports": "^0.2.1",
|
|
28
|
-
"babel-plugin-istanbul": "^2.0.1",
|
|
29
|
-
"babel-plugin-transform-es2015-modules-commonjs": "^6.26.2",
|
|
30
|
-
"babel-preset-es2015": "^6.3.13",
|
|
31
|
-
"babel-preset-es2017": "^6.22.0",
|
|
32
|
-
"babelify": "^8.0.0",
|
|
33
|
-
"benchmark": "^2.1.1",
|
|
34
|
-
"bluebird": "^3.4.6",
|
|
35
|
-
"browserify": "^16.2.2",
|
|
36
|
-
"chai": "^4.1.2",
|
|
37
|
-
"cheerio": "^0.22.0",
|
|
38
|
-
"coveralls": "^3.0.1",
|
|
39
|
-
"es6-promise": "^2.3.0",
|
|
40
|
-
"eslint": "^2.13.1",
|
|
41
|
-
"fs-extra": "^0.26.7",
|
|
42
|
-
"gh-pages-deploy": "^0.5.0",
|
|
43
|
-
"jsdoc": "^3.4.0",
|
|
44
|
-
"karma": "^2.0.2",
|
|
45
|
-
"karma-browserify": "^5.2.0",
|
|
46
|
-
"karma-firefox-launcher": "^1.1.0",
|
|
47
|
-
"karma-mocha": "^1.2.0",
|
|
48
|
-
"karma-mocha-reporter": "^2.2.0",
|
|
49
|
-
"mocha": "^5.2.0",
|
|
50
|
-
"native-promise-only": "^0.8.0-a",
|
|
51
|
-
"nyc": "^11.8.0",
|
|
52
|
-
"rimraf": "^2.5.0",
|
|
53
|
-
"rollup": "^0.36.3",
|
|
54
|
-
"rollup-plugin-node-resolve": "^2.0.0",
|
|
55
|
-
"rollup-plugin-npm": "^2.0.0",
|
|
56
|
-
"rsvp": "^3.0.18",
|
|
57
|
-
"semver": "^5.5.0",
|
|
58
|
-
"uglify-js": "~2.7.3",
|
|
59
|
-
"yargs": "^11.0.0"
|
|
60
|
-
},
|
|
61
|
-
"scripts": {
|
|
62
|
-
"coverage": "nyc npm run mocha-node-test -- --grep @nycinvalid --invert",
|
|
63
|
-
"coveralls": "npm run coverage && nyc report --reporter=text-lcov | coveralls",
|
|
64
|
-
"jsdoc": "jsdoc -c ./support/jsdoc/jsdoc.json && node support/jsdoc/jsdoc-fix-html.js",
|
|
65
|
-
"lint": "eslint lib/ mocha_test/ perf/memory.js perf/suites.js perf/benchmark.js support/build/ support/*.js karma.conf.js",
|
|
66
|
-
"mocha-browser-test": "karma start",
|
|
67
|
-
"mocha-node-test": "mocha mocha_test/ --compilers js:babel-core/register",
|
|
68
|
-
"mocha-test": "npm run mocha-node-test && npm run mocha-browser-test",
|
|
69
|
-
"test": "npm run lint && npm run mocha-node-test"
|
|
70
|
-
},
|
|
71
|
-
"license": "MIT",
|
|
72
|
-
"gh-pages-deploy": {
|
|
73
|
-
"staticpath": "docs"
|
|
74
|
-
},
|
|
75
|
-
"nyc": {
|
|
76
|
-
"exclude": [
|
|
77
|
-
"mocha_test"
|
|
78
|
-
]
|
|
79
|
-
}
|
|
80
|
-
}
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = parallelLimit;
|
|
7
|
-
|
|
8
|
-
var _eachOf = require('./eachOf');
|
|
9
|
-
|
|
10
|
-
var _eachOf2 = _interopRequireDefault(_eachOf);
|
|
11
|
-
|
|
12
|
-
var _parallel = require('./internal/parallel');
|
|
13
|
-
|
|
14
|
-
var _parallel2 = _interopRequireDefault(_parallel);
|
|
15
|
-
|
|
16
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* Run the `tasks` collection of functions in parallel, without waiting until
|
|
20
|
-
* the previous function has completed. If any of the functions pass an error to
|
|
21
|
-
* its callback, the main `callback` is immediately called with the value of the
|
|
22
|
-
* error. Once the `tasks` have completed, the results are passed to the final
|
|
23
|
-
* `callback` as an array.
|
|
24
|
-
*
|
|
25
|
-
* **Note:** `parallel` is about kicking-off I/O tasks in parallel, not about
|
|
26
|
-
* parallel execution of code. If your tasks do not use any timers or perform
|
|
27
|
-
* any I/O, they will actually be executed in series. Any synchronous setup
|
|
28
|
-
* sections for each task will happen one after the other. JavaScript remains
|
|
29
|
-
* single-threaded.
|
|
30
|
-
*
|
|
31
|
-
* **Hint:** Use [`reflect`]{@link module:Utils.reflect} to continue the
|
|
32
|
-
* execution of other tasks when a task fails.
|
|
33
|
-
*
|
|
34
|
-
* It is also possible to use an object instead of an array. Each property will
|
|
35
|
-
* be run as a function and the results will be passed to the final `callback`
|
|
36
|
-
* as an object instead of an array. This can be a more readable way of handling
|
|
37
|
-
* results from {@link async.parallel}.
|
|
38
|
-
*
|
|
39
|
-
* @name parallel
|
|
40
|
-
* @static
|
|
41
|
-
* @memberOf module:ControlFlow
|
|
42
|
-
* @method
|
|
43
|
-
* @category Control Flow
|
|
44
|
-
* @param {Array|Iterable|Object} tasks - A collection of
|
|
45
|
-
* [async functions]{@link AsyncFunction} to run.
|
|
46
|
-
* Each async function can complete with any number of optional `result` values.
|
|
47
|
-
* @param {Function} [callback] - An optional callback to run once all the
|
|
48
|
-
* functions have completed successfully. This function gets a results array
|
|
49
|
-
* (or object) containing all the result arguments passed to the task callbacks.
|
|
50
|
-
* Invoked with (err, results).
|
|
51
|
-
*
|
|
52
|
-
* @example
|
|
53
|
-
* async.parallel([
|
|
54
|
-
* function(callback) {
|
|
55
|
-
* setTimeout(function() {
|
|
56
|
-
* callback(null, 'one');
|
|
57
|
-
* }, 200);
|
|
58
|
-
* },
|
|
59
|
-
* function(callback) {
|
|
60
|
-
* setTimeout(function() {
|
|
61
|
-
* callback(null, 'two');
|
|
62
|
-
* }, 100);
|
|
63
|
-
* }
|
|
64
|
-
* ],
|
|
65
|
-
* // optional callback
|
|
66
|
-
* function(err, results) {
|
|
67
|
-
* // the results array will equal ['one','two'] even though
|
|
68
|
-
* // the second function had a shorter timeout.
|
|
69
|
-
* });
|
|
70
|
-
*
|
|
71
|
-
* // an example using an object instead of an array
|
|
72
|
-
* async.parallel({
|
|
73
|
-
* one: function(callback) {
|
|
74
|
-
* setTimeout(function() {
|
|
75
|
-
* callback(null, 1);
|
|
76
|
-
* }, 200);
|
|
77
|
-
* },
|
|
78
|
-
* two: function(callback) {
|
|
79
|
-
* setTimeout(function() {
|
|
80
|
-
* callback(null, 2);
|
|
81
|
-
* }, 100);
|
|
82
|
-
* }
|
|
83
|
-
* }, function(err, results) {
|
|
84
|
-
* // results is now equals to: {one: 1, two: 2}
|
|
85
|
-
* });
|
|
86
|
-
*/
|
|
87
|
-
function parallelLimit(tasks, callback) {
|
|
88
|
-
(0, _parallel2.default)(_eachOf2.default, tasks, callback);
|
|
89
|
-
}
|
|
90
|
-
module.exports = exports['default'];
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = parallelLimit;
|
|
7
|
-
|
|
8
|
-
var _eachOfLimit = require('./internal/eachOfLimit');
|
|
9
|
-
|
|
10
|
-
var _eachOfLimit2 = _interopRequireDefault(_eachOfLimit);
|
|
11
|
-
|
|
12
|
-
var _parallel = require('./internal/parallel');
|
|
13
|
-
|
|
14
|
-
var _parallel2 = _interopRequireDefault(_parallel);
|
|
15
|
-
|
|
16
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* The same as [`parallel`]{@link module:ControlFlow.parallel} but runs a maximum of `limit` async operations at a
|
|
20
|
-
* time.
|
|
21
|
-
*
|
|
22
|
-
* @name parallelLimit
|
|
23
|
-
* @static
|
|
24
|
-
* @memberOf module:ControlFlow
|
|
25
|
-
* @method
|
|
26
|
-
* @see [async.parallel]{@link module:ControlFlow.parallel}
|
|
27
|
-
* @category Control Flow
|
|
28
|
-
* @param {Array|Iterable|Object} tasks - A collection of
|
|
29
|
-
* [async functions]{@link AsyncFunction} to run.
|
|
30
|
-
* Each async function can complete with any number of optional `result` values.
|
|
31
|
-
* @param {number} limit - The maximum number of async operations at a time.
|
|
32
|
-
* @param {Function} [callback] - An optional callback to run once all the
|
|
33
|
-
* functions have completed successfully. This function gets a results array
|
|
34
|
-
* (or object) containing all the result arguments passed to the task callbacks.
|
|
35
|
-
* Invoked with (err, results).
|
|
36
|
-
*/
|
|
37
|
-
function parallelLimit(tasks, limit, callback) {
|
|
38
|
-
(0, _parallel2.default)((0, _eachOfLimit2.default)(limit), tasks, callback);
|
|
39
|
-
}
|
|
40
|
-
module.exports = exports['default'];
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
|
|
7
|
-
exports.default = function (worker, concurrency) {
|
|
8
|
-
// Start with a normal queue
|
|
9
|
-
var q = (0, _queue2.default)(worker, concurrency);
|
|
10
|
-
|
|
11
|
-
// Override push to accept second parameter representing priority
|
|
12
|
-
q.push = function (data, priority, callback) {
|
|
13
|
-
if (callback == null) callback = _noop2.default;
|
|
14
|
-
if (typeof callback !== 'function') {
|
|
15
|
-
throw new Error('task callback must be a function');
|
|
16
|
-
}
|
|
17
|
-
q.started = true;
|
|
18
|
-
if (!(0, _isArray2.default)(data)) {
|
|
19
|
-
data = [data];
|
|
20
|
-
}
|
|
21
|
-
if (data.length === 0) {
|
|
22
|
-
// call drain immediately if there are no tasks
|
|
23
|
-
return (0, _setImmediate2.default)(function () {
|
|
24
|
-
q.drain();
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
priority = priority || 0;
|
|
29
|
-
var nextNode = q._tasks.head;
|
|
30
|
-
while (nextNode && priority >= nextNode.priority) {
|
|
31
|
-
nextNode = nextNode.next;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
for (var i = 0, l = data.length; i < l; i++) {
|
|
35
|
-
var item = {
|
|
36
|
-
data: data[i],
|
|
37
|
-
priority: priority,
|
|
38
|
-
callback: callback
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
if (nextNode) {
|
|
42
|
-
q._tasks.insertBefore(nextNode, item);
|
|
43
|
-
} else {
|
|
44
|
-
q._tasks.push(item);
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
(0, _setImmediate2.default)(q.process);
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
// Remove unshift function
|
|
51
|
-
delete q.unshift;
|
|
52
|
-
|
|
53
|
-
return q;
|
|
54
|
-
};
|
|
55
|
-
|
|
56
|
-
var _isArray = require('lodash/isArray');
|
|
57
|
-
|
|
58
|
-
var _isArray2 = _interopRequireDefault(_isArray);
|
|
59
|
-
|
|
60
|
-
var _noop = require('lodash/noop');
|
|
61
|
-
|
|
62
|
-
var _noop2 = _interopRequireDefault(_noop);
|
|
63
|
-
|
|
64
|
-
var _setImmediate = require('./setImmediate');
|
|
65
|
-
|
|
66
|
-
var _setImmediate2 = _interopRequireDefault(_setImmediate);
|
|
67
|
-
|
|
68
|
-
var _queue = require('./queue');
|
|
69
|
-
|
|
70
|
-
var _queue2 = _interopRequireDefault(_queue);
|
|
71
|
-
|
|
72
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
73
|
-
|
|
74
|
-
module.exports = exports['default'];
|
|
75
|
-
|
|
76
|
-
/**
|
|
77
|
-
* The same as [async.queue]{@link module:ControlFlow.queue} only tasks are assigned a priority and
|
|
78
|
-
* completed in ascending priority order.
|
|
79
|
-
*
|
|
80
|
-
* @name priorityQueue
|
|
81
|
-
* @static
|
|
82
|
-
* @memberOf module:ControlFlow
|
|
83
|
-
* @method
|
|
84
|
-
* @see [async.queue]{@link module:ControlFlow.queue}
|
|
85
|
-
* @category Control Flow
|
|
86
|
-
* @param {AsyncFunction} worker - An async function for processing a queued task.
|
|
87
|
-
* If you want to handle errors from an individual task, pass a callback to
|
|
88
|
-
* `q.push()`.
|
|
89
|
-
* Invoked with (task, callback).
|
|
90
|
-
* @param {number} concurrency - An `integer` for determining how many `worker`
|
|
91
|
-
* functions should be run in parallel. If omitted, the concurrency defaults to
|
|
92
|
-
* `1`. If the concurrency is `0`, an error is thrown.
|
|
93
|
-
* @returns {module:ControlFlow.QueueObject} A priorityQueue object to manage the tasks. There are two
|
|
94
|
-
* differences between `queue` and `priorityQueue` objects:
|
|
95
|
-
* * `push(task, priority, [callback])` - `priority` should be a number. If an
|
|
96
|
-
* array of `tasks` is given, all tasks will be assigned the same priority.
|
|
97
|
-
* * The `unshift` method was removed.
|
|
98
|
-
*/
|
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
|
|
7
|
-
exports.default = function (worker, concurrency) {
|
|
8
|
-
var _worker = (0, _wrapAsync2.default)(worker);
|
|
9
|
-
return (0, _queue2.default)(function (items, cb) {
|
|
10
|
-
_worker(items[0], cb);
|
|
11
|
-
}, concurrency, 1);
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
var _queue = require('./internal/queue');
|
|
15
|
-
|
|
16
|
-
var _queue2 = _interopRequireDefault(_queue);
|
|
17
|
-
|
|
18
|
-
var _wrapAsync = require('./internal/wrapAsync');
|
|
19
|
-
|
|
20
|
-
var _wrapAsync2 = _interopRequireDefault(_wrapAsync);
|
|
21
|
-
|
|
22
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
23
|
-
|
|
24
|
-
module.exports = exports['default'];
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* A queue of tasks for the worker function to complete.
|
|
28
|
-
* @typedef {Object} QueueObject
|
|
29
|
-
* @memberOf module:ControlFlow
|
|
30
|
-
* @property {Function} length - a function returning the number of items
|
|
31
|
-
* waiting to be processed. Invoke with `queue.length()`.
|
|
32
|
-
* @property {boolean} started - a boolean indicating whether or not any
|
|
33
|
-
* items have been pushed and processed by the queue.
|
|
34
|
-
* @property {Function} running - a function returning the number of items
|
|
35
|
-
* currently being processed. Invoke with `queue.running()`.
|
|
36
|
-
* @property {Function} workersList - a function returning the array of items
|
|
37
|
-
* currently being processed. Invoke with `queue.workersList()`.
|
|
38
|
-
* @property {Function} idle - a function returning false if there are items
|
|
39
|
-
* waiting or being processed, or true if not. Invoke with `queue.idle()`.
|
|
40
|
-
* @property {number} concurrency - an integer for determining how many `worker`
|
|
41
|
-
* functions should be run in parallel. This property can be changed after a
|
|
42
|
-
* `queue` is created to alter the concurrency on-the-fly.
|
|
43
|
-
* @property {Function} push - add a new task to the `queue`. Calls `callback`
|
|
44
|
-
* once the `worker` has finished processing the task. Instead of a single task,
|
|
45
|
-
* a `tasks` array can be submitted. The respective callback is used for every
|
|
46
|
-
* task in the list. Invoke with `queue.push(task, [callback])`,
|
|
47
|
-
* @property {Function} unshift - add a new task to the front of the `queue`.
|
|
48
|
-
* Invoke with `queue.unshift(task, [callback])`.
|
|
49
|
-
* @property {Function} remove - remove items from the queue that match a test
|
|
50
|
-
* function. The test function will be passed an object with a `data` property,
|
|
51
|
-
* and a `priority` property, if this is a
|
|
52
|
-
* [priorityQueue]{@link module:ControlFlow.priorityQueue} object.
|
|
53
|
-
* Invoked with `queue.remove(testFn)`, where `testFn` is of the form
|
|
54
|
-
* `function ({data, priority}) {}` and returns a Boolean.
|
|
55
|
-
* @property {Function} saturated - a callback that is called when the number of
|
|
56
|
-
* running workers hits the `concurrency` limit, and further tasks will be
|
|
57
|
-
* queued.
|
|
58
|
-
* @property {Function} unsaturated - a callback that is called when the number
|
|
59
|
-
* of running workers is less than the `concurrency` & `buffer` limits, and
|
|
60
|
-
* further tasks will not be queued.
|
|
61
|
-
* @property {number} buffer - A minimum threshold buffer in order to say that
|
|
62
|
-
* the `queue` is `unsaturated`.
|
|
63
|
-
* @property {Function} empty - a callback that is called when the last item
|
|
64
|
-
* from the `queue` is given to a `worker`.
|
|
65
|
-
* @property {Function} drain - a callback that is called when the last item
|
|
66
|
-
* from the `queue` has returned from the `worker`.
|
|
67
|
-
* @property {Function} error - a callback that is called when a task errors.
|
|
68
|
-
* Has the signature `function(error, task)`.
|
|
69
|
-
* @property {boolean} paused - a boolean for determining whether the queue is
|
|
70
|
-
* in a paused state.
|
|
71
|
-
* @property {Function} pause - a function that pauses the processing of tasks
|
|
72
|
-
* until `resume()` is called. Invoke with `queue.pause()`.
|
|
73
|
-
* @property {Function} resume - a function that resumes the processing of
|
|
74
|
-
* queued tasks when the queue is paused. Invoke with `queue.resume()`.
|
|
75
|
-
* @property {Function} kill - a function that removes the `drain` callback and
|
|
76
|
-
* empties remaining tasks from the queue forcing it to go idle. No more tasks
|
|
77
|
-
* should be pushed to the queue after calling this function. Invoke with `queue.kill()`.
|
|
78
|
-
*/
|
|
79
|
-
|
|
80
|
-
/**
|
|
81
|
-
* Creates a `queue` object with the specified `concurrency`. Tasks added to the
|
|
82
|
-
* `queue` are processed in parallel (up to the `concurrency` limit). If all
|
|
83
|
-
* `worker`s are in progress, the task is queued until one becomes available.
|
|
84
|
-
* Once a `worker` completes a `task`, that `task`'s callback is called.
|
|
85
|
-
*
|
|
86
|
-
* @name queue
|
|
87
|
-
* @static
|
|
88
|
-
* @memberOf module:ControlFlow
|
|
89
|
-
* @method
|
|
90
|
-
* @category Control Flow
|
|
91
|
-
* @param {AsyncFunction} worker - An async function for processing a queued task.
|
|
92
|
-
* If you want to handle errors from an individual task, pass a callback to
|
|
93
|
-
* `q.push()`. Invoked with (task, callback).
|
|
94
|
-
* @param {number} [concurrency=1] - An `integer` for determining how many
|
|
95
|
-
* `worker` functions should be run in parallel. If omitted, the concurrency
|
|
96
|
-
* defaults to `1`. If the concurrency is `0`, an error is thrown.
|
|
97
|
-
* @returns {module:ControlFlow.QueueObject} A queue object to manage the tasks. Callbacks can
|
|
98
|
-
* attached as certain properties to listen for specific events during the
|
|
99
|
-
* lifecycle of the queue.
|
|
100
|
-
* @example
|
|
101
|
-
*
|
|
102
|
-
* // create a queue object with concurrency 2
|
|
103
|
-
* var q = async.queue(function(task, callback) {
|
|
104
|
-
* console.log('hello ' + task.name);
|
|
105
|
-
* callback();
|
|
106
|
-
* }, 2);
|
|
107
|
-
*
|
|
108
|
-
* // assign a callback
|
|
109
|
-
* q.drain = function() {
|
|
110
|
-
* console.log('all items have been processed');
|
|
111
|
-
* };
|
|
112
|
-
*
|
|
113
|
-
* // add some items to the queue
|
|
114
|
-
* q.push({name: 'foo'}, function(err) {
|
|
115
|
-
* console.log('finished processing foo');
|
|
116
|
-
* });
|
|
117
|
-
* q.push({name: 'bar'}, function (err) {
|
|
118
|
-
* console.log('finished processing bar');
|
|
119
|
-
* });
|
|
120
|
-
*
|
|
121
|
-
* // add some items to the queue (batch-wise)
|
|
122
|
-
* q.push([{name: 'baz'},{name: 'bay'},{name: 'bax'}], function(err) {
|
|
123
|
-
* console.log('finished processing item');
|
|
124
|
-
* });
|
|
125
|
-
*
|
|
126
|
-
* // add some items to the front of the queue
|
|
127
|
-
* q.unshift({name: 'bar'}, function (err) {
|
|
128
|
-
* console.log('finished processing bar');
|
|
129
|
-
* });
|
|
130
|
-
*/
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = race;
|
|
7
|
-
|
|
8
|
-
var _isArray = require('lodash/isArray');
|
|
9
|
-
|
|
10
|
-
var _isArray2 = _interopRequireDefault(_isArray);
|
|
11
|
-
|
|
12
|
-
var _noop = require('lodash/noop');
|
|
13
|
-
|
|
14
|
-
var _noop2 = _interopRequireDefault(_noop);
|
|
15
|
-
|
|
16
|
-
var _once = require('./internal/once');
|
|
17
|
-
|
|
18
|
-
var _once2 = _interopRequireDefault(_once);
|
|
19
|
-
|
|
20
|
-
var _wrapAsync = require('./internal/wrapAsync');
|
|
21
|
-
|
|
22
|
-
var _wrapAsync2 = _interopRequireDefault(_wrapAsync);
|
|
23
|
-
|
|
24
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* Runs the `tasks` array of functions in parallel, without waiting until the
|
|
28
|
-
* previous function has completed. Once any of the `tasks` complete or pass an
|
|
29
|
-
* error to its callback, the main `callback` is immediately called. It's
|
|
30
|
-
* equivalent to `Promise.race()`.
|
|
31
|
-
*
|
|
32
|
-
* @name race
|
|
33
|
-
* @static
|
|
34
|
-
* @memberOf module:ControlFlow
|
|
35
|
-
* @method
|
|
36
|
-
* @category Control Flow
|
|
37
|
-
* @param {Array} tasks - An array containing [async functions]{@link AsyncFunction}
|
|
38
|
-
* to run. Each function can complete with an optional `result` value.
|
|
39
|
-
* @param {Function} callback - A callback to run once any of the functions have
|
|
40
|
-
* completed. This function gets an error or result from the first function that
|
|
41
|
-
* completed. Invoked with (err, result).
|
|
42
|
-
* @returns undefined
|
|
43
|
-
* @example
|
|
44
|
-
*
|
|
45
|
-
* async.race([
|
|
46
|
-
* function(callback) {
|
|
47
|
-
* setTimeout(function() {
|
|
48
|
-
* callback(null, 'one');
|
|
49
|
-
* }, 200);
|
|
50
|
-
* },
|
|
51
|
-
* function(callback) {
|
|
52
|
-
* setTimeout(function() {
|
|
53
|
-
* callback(null, 'two');
|
|
54
|
-
* }, 100);
|
|
55
|
-
* }
|
|
56
|
-
* ],
|
|
57
|
-
* // main callback
|
|
58
|
-
* function(err, result) {
|
|
59
|
-
* // the result will be equal to 'two' as it finishes earlier
|
|
60
|
-
* });
|
|
61
|
-
*/
|
|
62
|
-
function race(tasks, callback) {
|
|
63
|
-
callback = (0, _once2.default)(callback || _noop2.default);
|
|
64
|
-
if (!(0, _isArray2.default)(tasks)) return callback(new TypeError('First argument to race must be an array of functions'));
|
|
65
|
-
if (!tasks.length) return callback();
|
|
66
|
-
for (var i = 0, l = tasks.length; i < l; i++) {
|
|
67
|
-
(0, _wrapAsync2.default)(tasks[i])(callback);
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
module.exports = exports['default'];
|