@lopatnov/express-reverse-proxy 1.1.0 → 1.3.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/.git/COMMIT_EDITMSG +1 -1
- package/.git/FETCH_HEAD +2 -1
- package/.git/ORIG_HEAD +1 -1
- package/.git/index +0 -0
- package/.git/logs/HEAD +6 -0
- package/.git/logs/refs/heads/master +6 -0
- package/.git/logs/refs/remotes/origin/dependabot/npm_and_yarn/async-2.6.4 +1 -0
- package/.git/logs/refs/remotes/origin/dependabot/npm_and_yarn/follow-redirects-1.14.8 +1 -0
- package/.git/logs/refs/remotes/origin/dependabot/npm_and_yarn/follow-redirects-1.15.1 +1 -0
- package/.git/logs/refs/remotes/origin/dependabot/npm_and_yarn/minimist-1.2.6 +2 -0
- package/.git/logs/refs/remotes/origin/dependabot/npm_and_yarn/moment-2.29.4 +2 -0
- package/.git/logs/refs/remotes/origin/dependabot/npm_and_yarn/moment-timezone-0.5.37 +1 -0
- package/.git/logs/refs/remotes/origin/dependabot/npm_and_yarn/vm2-3.9.10 +1 -0
- package/.git/logs/refs/remotes/origin/dependabot/npm_and_yarn/vm2-3.9.7 +1 -0
- package/.git/logs/refs/remotes/origin/master +6 -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/0f/981da089a027ab4deb1f0c7864dfcee50bd0f1 +0 -0
- package/.git/objects/10/eee3c8fa2c12b77e0fed1f2fad1b967c267b53 +0 -0
- package/.git/objects/12/3d8423180da838ba0af1284aae79e1a955c98b +0 -0
- package/.git/objects/14/3d5eca2e4998e6899de6049e38b4bf2559e4e0 +0 -0
- package/.git/objects/15/2c053b9a24234f6bec33280204f11e5d9dda6b +0 -0
- package/.git/objects/16/a3a924f2a6924622e739eebe236ef713030c8b +0 -0
- package/.git/objects/1d/559712ab5ec703cf8e866b24b8dfb3b321ff03 +0 -0
- package/.git/objects/1f/4bda8b3565949d26f700322b343189d29bffdf +3 -0
- package/.git/objects/22/034a86b3f190407ef7a2c0eaf212ddaa686f16 +0 -0
- package/.git/objects/25/9462200ffecedc2eef36f888eb503e3f2e81ec +0 -0
- package/.git/objects/28/220d00bdbed408d7a98ece866fb5af1e7d1395 +0 -0
- package/.git/objects/33/f5906b4664855687be03e7d6d93092c9daf955 +0 -0
- package/.git/objects/39/fb332adf9703decb515ff845b2c93ee7bdd191 +0 -0
- package/.git/objects/3a/4d74b53dc2acdf09452ccf6c30100a929f557d +0 -0
- package/.git/objects/3b/2d52de53f2b2dd1e2ea057a01c0d0553236d21 +0 -0
- package/.git/objects/3b/f4ee4b9fb6b872ee61b1a392113d208ca7c762 +0 -0
- package/.git/objects/3c/43aaf00d26ff1acbc0a237198fc30baa6e25be +0 -0
- package/.git/objects/3f/8e368a352ad9a944b90208dee1188e4330a2f1 +1 -0
- package/.git/objects/44/e27cef5a809b8c2d36871c5193198142431a63 +0 -0
- package/.git/objects/46/6d53dd4e6463d5e899cd61b80077af9100e3a8 +0 -0
- package/.git/objects/4b/47d7aeb054f8ab581690b65dcb12308ba90b6c +0 -0
- package/.git/objects/4e/3353916674e6e2d72452b43f1706f5916d2c89 +2 -0
- package/.git/objects/54/e5124ded8dd3a8ed0b19720474203dbc5c52be +0 -0
- package/.git/objects/58/2cf7a6f56fd9e6f5084a88c953da4013167b94 +0 -0
- package/.git/objects/5b/c7e4571e0196bc7913762a38c0698ab23b4b40 +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/64/967bb9704893349c92a31f5291fc0eb2c13fa9 +0 -0
- package/.git/objects/6c/ef2f57e30fc6bc765e9ebfe3bf096e84101cc1 +0 -0
- package/.git/objects/6e/22bebb02332d3ff461dca72d0ecb8f1d44835f +0 -0
- package/.git/objects/6f/220ef271ba804052014c8a5d406a1438efef64 +0 -0
- package/.git/objects/70/ad2e555e35eb73420e7f7edd4177a20635e795 +0 -0
- package/.git/objects/7f/3277bd2a1e2b01b395caf1e0e8999c1682c223 +0 -0
- package/.git/objects/83/5696f89cedc2214df0ffc788f08c4d58a97c95 +0 -0
- package/.git/objects/84/b568065a1ee10c396c790029aef4fc7e990dcb +0 -0
- package/.git/objects/85/b13d9fef3c897366d43df137438cd28f915087 +0 -0
- package/.git/objects/95/d70526c36e8b3e5c814f64645623371d57946d +0 -0
- package/.git/objects/98/898b1fd7b14788c34282603fca629e813ba546 +0 -0
- package/.git/objects/9d/31d2fc81e780e5e2de1c51b8e705005e94d59d +0 -0
- package/.git/objects/a2/955bbd248d85219a4264c1b21dc7c2d0481d11 +0 -0
- package/.git/objects/a4/a1ac412998cdfe316b39e29e5462057602c1d6 +0 -0
- package/.git/objects/b6/b55dd9c407d6e3de1075ecf67a7f229496d75e +0 -0
- package/.git/objects/bb/269a37e471f96225f825accb8fec832556baeb +0 -0
- package/.git/objects/be/6b92cd3ae0f90b9b3fae0ca6661931dae6c83a +0 -0
- package/.git/objects/c0/7164be325d2c63ae2d899f18569a83e7b4ba67 +0 -0
- package/.git/objects/c0/e2ecce02f4d74977c088b07ddae70af1b0204b +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/d5/2717c6fd9c3deeb0ff98151d64927d2a6234c6 +0 -0
- package/.git/objects/d9/981364d8a15210123a3585846031c62eaecd8f +0 -0
- package/.git/objects/db/454cbee6da5938914837cda981dea069f7f409 +0 -0
- package/.git/objects/dd/b3b7a413e020bae0d7a4bec93871427e70d257 +0 -0
- package/.git/objects/e5/2673bb0d2f0856fee0cef63f2018cf38aaf12a +0 -0
- package/.git/objects/e9/94cd70c55ab2bbd98761c2e607daf9b2e97f8f +1 -0
- package/.git/objects/e9/bd949a381501bde67f21ba4d00c670cd65663c +0 -0
- package/.git/objects/eb/eb5a56b15dab25752fdaa5c407aa876cbf23b3 +0 -0
- package/.git/objects/ef/2403cca5e0283f168e74e1e0548f0bee6ba64b +5 -0
- package/.git/objects/ef/de9a8166073eaffcbdb334a63e93ab2e0e2bb2 +3 -0
- package/.git/objects/f1/8fc2e1985b84cd24de30829a7a4a9c691340c9 +0 -0
- package/.git/objects/f2/9fbde97f3b548ee6ec891b4b411707ebf0561a +0 -0
- package/.git/objects/f5/f2285b984ce7ef265cf79ce10ba51dcc9f9ad6 +0 -0
- package/.git/objects/fd/a93fd9e44b59cfec306dd85a72db21360569a4 +0 -0
- package/.git/refs/heads/master +1 -1
- package/.git/refs/remotes/origin/dependabot/npm_and_yarn/async-2.6.4 +1 -0
- package/.git/refs/remotes/origin/dependabot/npm_and_yarn/follow-redirects-1.14.8 +1 -0
- package/.git/refs/remotes/origin/dependabot/npm_and_yarn/follow-redirects-1.15.1 +1 -0
- package/.git/refs/remotes/origin/dependabot/npm_and_yarn/minimist-1.2.6 +1 -0
- package/.git/refs/remotes/origin/dependabot/npm_and_yarn/moment-2.29.4 +1 -0
- package/.git/refs/remotes/origin/dependabot/npm_and_yarn/moment-timezone-0.5.37 +1 -0
- package/.git/refs/remotes/origin/dependabot/npm_and_yarn/vm2-3.9.10 +1 -0
- package/.git/refs/remotes/origin/dependabot/npm_and_yarn/vm2-3.9.7 +1 -0
- package/.git/refs/remotes/origin/master +1 -1
- package/.git/tortoisegit.data +0 -0
- package/.git/tortoisegit.index +0 -0
- package/.vscode/launch.json +14 -16
- package/LICENSE +185 -185
- package/README.md +41 -14
- package/node_modules/@eslint/eslintrc/LICENSE +19 -0
- package/node_modules/@eslint/eslintrc/README.md +64 -0
- package/node_modules/@eslint/eslintrc/conf/config-schema.js +79 -0
- package/node_modules/@eslint/eslintrc/conf/environments.js +203 -0
- package/node_modules/@eslint/eslintrc/lib/cascading-config-array-factory.js +533 -0
- package/node_modules/@eslint/eslintrc/lib/config-array/config-array.js +523 -0
- package/node_modules/@eslint/eslintrc/lib/config-array/config-dependency.js +115 -0
- package/node_modules/@eslint/eslintrc/lib/config-array/extracted-config.js +145 -0
- package/node_modules/@eslint/eslintrc/lib/config-array/ignore-pattern.js +238 -0
- package/node_modules/@eslint/eslintrc/lib/config-array/index.js +19 -0
- package/node_modules/@eslint/eslintrc/lib/config-array/override-tester.js +225 -0
- package/node_modules/@eslint/eslintrc/lib/config-array-factory.js +1133 -0
- package/node_modules/@eslint/eslintrc/lib/flat-compat.js +307 -0
- package/node_modules/@eslint/eslintrc/lib/index-universal.js +29 -0
- package/node_modules/@eslint/eslintrc/lib/index.js +56 -0
- package/node_modules/@eslint/eslintrc/lib/shared/ajv.js +191 -0
- package/node_modules/@eslint/eslintrc/lib/shared/config-ops.js +135 -0
- package/node_modules/@eslint/eslintrc/lib/shared/config-validator.js +325 -0
- package/node_modules/@eslint/eslintrc/lib/shared/deprecation-warnings.js +63 -0
- package/node_modules/@eslint/eslintrc/lib/shared/naming.js +96 -0
- package/node_modules/@eslint/eslintrc/lib/shared/relative-module-resolver.js +42 -0
- package/node_modules/@eslint/eslintrc/lib/shared/types.js +149 -0
- package/node_modules/@eslint/eslintrc/package.json +82 -0
- package/node_modules/@eslint/eslintrc/universal.js +9 -0
- package/node_modules/@humanwhocodes/config-array/CHANGELOG.md +107 -0
- package/node_modules/@humanwhocodes/config-array/LICENSE +201 -0
- package/node_modules/@humanwhocodes/config-array/README.md +303 -0
- package/node_modules/@humanwhocodes/config-array/api.js +761 -0
- package/node_modules/@humanwhocodes/config-array/package.json +60 -0
- package/node_modules/@humanwhocodes/gitignore-to-minimatch/LICENSE +201 -0
- package/node_modules/@humanwhocodes/gitignore-to-minimatch/README.md +78 -0
- package/node_modules/@humanwhocodes/gitignore-to-minimatch/package.json +61 -0
- package/node_modules/@humanwhocodes/module-importer/CHANGELOG.md +15 -0
- package/node_modules/@humanwhocodes/module-importer/LICENSE +201 -0
- package/node_modules/@humanwhocodes/module-importer/README.md +80 -0
- package/node_modules/@humanwhocodes/module-importer/package.json +65 -0
- package/node_modules/@humanwhocodes/module-importer/src/module-importer.cjs +81 -0
- package/node_modules/@humanwhocodes/module-importer/src/module-importer.js +22 -0
- package/node_modules/@humanwhocodes/object-schema/.eslintrc.js +29 -0
- package/node_modules/@humanwhocodes/object-schema/.github/workflows/nodejs-test.yml +27 -0
- package/node_modules/@humanwhocodes/object-schema/.github/workflows/release-please.yml +39 -0
- package/node_modules/@humanwhocodes/object-schema/CHANGELOG.md +8 -0
- package/node_modules/@humanwhocodes/object-schema/LICENSE +29 -0
- package/node_modules/@humanwhocodes/object-schema/README.md +234 -0
- package/node_modules/@humanwhocodes/object-schema/package.json +33 -0
- package/node_modules/@humanwhocodes/object-schema/src/index.js +7 -0
- package/node_modules/@humanwhocodes/object-schema/src/merge-strategy.js +53 -0
- package/node_modules/@humanwhocodes/object-schema/src/object-schema.js +235 -0
- package/node_modules/@humanwhocodes/object-schema/src/validation-strategy.js +102 -0
- package/node_modules/@humanwhocodes/object-schema/tests/merge-strategy.js +66 -0
- package/node_modules/@humanwhocodes/object-schema/tests/object-schema.js +611 -0
- package/node_modules/@humanwhocodes/object-schema/tests/validation-strategy.js +186 -0
- package/node_modules/@nodelib/fs.scandir/LICENSE +21 -0
- package/node_modules/@nodelib/fs.scandir/README.md +171 -0
- package/node_modules/@nodelib/fs.scandir/out/adapters/fs.d.ts +20 -0
- package/node_modules/@nodelib/fs.scandir/out/adapters/fs.js +19 -0
- package/node_modules/@nodelib/fs.scandir/out/constants.d.ts +4 -0
- package/node_modules/@nodelib/fs.scandir/out/constants.js +17 -0
- package/node_modules/@nodelib/fs.scandir/out/index.d.ts +12 -0
- package/node_modules/@nodelib/fs.scandir/out/index.js +26 -0
- package/node_modules/@nodelib/fs.scandir/out/providers/async.d.ts +7 -0
- package/node_modules/@nodelib/fs.scandir/out/providers/async.js +104 -0
- package/node_modules/@nodelib/fs.scandir/out/providers/common.d.ts +1 -0
- package/node_modules/@nodelib/fs.scandir/out/providers/common.js +13 -0
- package/node_modules/@nodelib/fs.scandir/out/providers/sync.d.ts +5 -0
- package/node_modules/@nodelib/fs.scandir/out/providers/sync.js +54 -0
- package/node_modules/@nodelib/fs.scandir/out/settings.d.ts +20 -0
- package/node_modules/@nodelib/fs.scandir/out/settings.js +24 -0
- package/node_modules/@nodelib/fs.scandir/out/types/index.d.ts +20 -0
- package/node_modules/@nodelib/fs.scandir/out/types/index.js +2 -0
- package/node_modules/@nodelib/fs.scandir/out/utils/fs.d.ts +2 -0
- package/node_modules/@nodelib/fs.scandir/out/utils/fs.js +19 -0
- package/node_modules/@nodelib/fs.scandir/out/utils/index.d.ts +2 -0
- package/node_modules/@nodelib/fs.scandir/out/utils/index.js +5 -0
- package/node_modules/@nodelib/fs.scandir/package.json +44 -0
- package/node_modules/@nodelib/fs.stat/LICENSE +21 -0
- package/node_modules/@nodelib/fs.stat/README.md +126 -0
- package/node_modules/@nodelib/fs.stat/out/adapters/fs.d.ts +13 -0
- package/node_modules/@nodelib/fs.stat/out/adapters/fs.js +17 -0
- package/node_modules/@nodelib/fs.stat/out/index.d.ts +12 -0
- package/node_modules/@nodelib/fs.stat/out/index.js +26 -0
- package/node_modules/@nodelib/fs.stat/out/providers/async.d.ts +4 -0
- package/node_modules/@nodelib/fs.stat/out/providers/async.js +36 -0
- package/node_modules/@nodelib/fs.stat/out/providers/sync.d.ts +3 -0
- package/node_modules/@nodelib/fs.stat/out/providers/sync.js +23 -0
- package/node_modules/@nodelib/fs.stat/out/settings.d.ts +16 -0
- package/node_modules/@nodelib/fs.stat/out/settings.js +16 -0
- package/node_modules/@nodelib/fs.stat/out/types/index.d.ts +4 -0
- package/node_modules/@nodelib/fs.stat/out/types/index.js +2 -0
- package/node_modules/@nodelib/fs.stat/package.json +37 -0
- package/node_modules/@nodelib/fs.walk/LICENSE +21 -0
- package/node_modules/@nodelib/fs.walk/README.md +215 -0
- package/node_modules/@nodelib/fs.walk/out/index.d.ts +14 -0
- package/node_modules/@nodelib/fs.walk/out/index.js +34 -0
- package/node_modules/@nodelib/fs.walk/out/providers/async.d.ts +12 -0
- package/node_modules/@nodelib/fs.walk/out/providers/async.js +30 -0
- package/node_modules/@nodelib/fs.walk/out/providers/index.d.ts +4 -0
- package/node_modules/@nodelib/fs.walk/out/providers/index.js +9 -0
- package/node_modules/@nodelib/fs.walk/out/providers/stream.d.ts +12 -0
- package/node_modules/@nodelib/fs.walk/out/providers/stream.js +34 -0
- package/node_modules/@nodelib/fs.walk/out/providers/sync.d.ts +10 -0
- package/node_modules/@nodelib/fs.walk/out/providers/sync.js +14 -0
- package/node_modules/@nodelib/fs.walk/out/readers/async.d.ts +30 -0
- package/node_modules/@nodelib/fs.walk/out/readers/async.js +97 -0
- package/node_modules/@nodelib/fs.walk/out/readers/common.d.ts +7 -0
- package/node_modules/@nodelib/fs.walk/out/readers/common.js +31 -0
- package/node_modules/@nodelib/fs.walk/out/readers/reader.d.ts +6 -0
- package/node_modules/@nodelib/fs.walk/out/readers/reader.js +11 -0
- package/node_modules/@nodelib/fs.walk/out/readers/sync.d.ts +15 -0
- package/node_modules/@nodelib/fs.walk/out/readers/sync.js +59 -0
- package/node_modules/@nodelib/fs.walk/out/settings.d.ts +30 -0
- package/node_modules/@nodelib/fs.walk/out/settings.js +26 -0
- package/node_modules/@nodelib/fs.walk/out/types/index.d.ts +8 -0
- package/node_modules/@nodelib/fs.walk/out/types/index.js +2 -0
- package/node_modules/@nodelib/fs.walk/package.json +44 -0
- package/node_modules/@opencensus/core/LICENSE +202 -0
- package/node_modules/@opencensus/core/README.md +108 -0
- package/node_modules/@opencensus/core/build/src/common/console-logger.d.ts +60 -0
- package/node_modules/@opencensus/core/build/src/common/console-logger.js +97 -0
- package/node_modules/@opencensus/core/build/src/common/time-util.d.ts +41 -0
- package/node_modules/@opencensus/core/build/src/common/time-util.js +74 -0
- package/node_modules/@opencensus/core/build/src/common/types.d.ts +29 -0
- package/node_modules/@opencensus/core/build/src/common/types.js +18 -0
- package/node_modules/@opencensus/core/build/src/common/validations.d.ts +31 -0
- package/node_modules/@opencensus/core/build/src/common/validations.js +46 -0
- package/node_modules/@opencensus/core/build/src/common/version.d.ts +16 -0
- package/node_modules/@opencensus/core/build/src/common/version.js +24 -0
- package/node_modules/@opencensus/core/build/src/exporters/console-exporter.d.ts +70 -0
- package/node_modules/@opencensus/core/build/src/exporters/console-exporter.js +91 -0
- package/node_modules/@opencensus/core/build/src/exporters/exporter-buffer.d.ts +59 -0
- package/node_modules/@opencensus/core/build/src/exporters/exporter-buffer.js +104 -0
- package/node_modules/@opencensus/core/build/src/exporters/types.d.ts +52 -0
- package/node_modules/@opencensus/core/build/src/exporters/types.js +18 -0
- package/node_modules/@opencensus/core/build/src/index.d.ts +50 -0
- package/node_modules/@opencensus/core/build/src/index.js +59 -0
- package/node_modules/@opencensus/core/build/src/internal/clock.d.ts +43 -0
- package/node_modules/@opencensus/core/build/src/internal/clock.js +68 -0
- package/node_modules/@opencensus/core/build/src/internal/cls-ah.d.ts +20 -0
- package/node_modules/@opencensus/core/build/src/internal/cls-ah.js +128 -0
- package/node_modules/@opencensus/core/build/src/internal/cls.d.ts +28 -0
- package/node_modules/@opencensus/core/build/src/internal/cls.js +45 -0
- package/node_modules/@opencensus/core/build/src/internal/string-utils.d.ts +35 -0
- package/node_modules/@opencensus/core/build/src/internal/string-utils.js +49 -0
- package/node_modules/@opencensus/core/build/src/internal/util.d.ts +16 -0
- package/node_modules/@opencensus/core/build/src/internal/util.js +34 -0
- package/node_modules/@opencensus/core/build/src/metrics/export/base-metric-producer.d.ts +27 -0
- package/node_modules/@opencensus/core/build/src/metrics/export/base-metric-producer.js +25 -0
- package/node_modules/@opencensus/core/build/src/metrics/export/metric-producer-manager.d.ts +17 -0
- package/node_modules/@opencensus/core/build/src/metrics/export/metric-producer-manager.js +70 -0
- package/node_modules/@opencensus/core/build/src/metrics/export/types.d.ts +331 -0
- package/node_modules/@opencensus/core/build/src/metrics/export/types.js +69 -0
- package/node_modules/@opencensus/core/build/src/metrics/gauges/derived-gauge.d.ts +110 -0
- package/node_modules/@opencensus/core/build/src/metrics/gauges/derived-gauge.js +150 -0
- package/node_modules/@opencensus/core/build/src/metrics/gauges/gauge.d.ts +114 -0
- package/node_modules/@opencensus/core/build/src/metrics/gauges/gauge.js +162 -0
- package/node_modules/@opencensus/core/build/src/metrics/gauges/types.d.ts +45 -0
- package/node_modules/@opencensus/core/build/src/metrics/gauges/types.js +18 -0
- package/node_modules/@opencensus/core/build/src/metrics/metric-component.d.ts +29 -0
- package/node_modules/@opencensus/core/build/src/metrics/metric-component.js +40 -0
- package/node_modules/@opencensus/core/build/src/metrics/metric-registry.d.ts +93 -0
- package/node_modules/@opencensus/core/build/src/metrics/metric-registry.js +152 -0
- package/node_modules/@opencensus/core/build/src/metrics/metrics.d.ts +27 -0
- package/node_modules/@opencensus/core/build/src/metrics/metrics.js +35 -0
- package/node_modules/@opencensus/core/build/src/metrics/utils.d.ts +30 -0
- package/node_modules/@opencensus/core/build/src/metrics/utils.js +42 -0
- package/node_modules/@opencensus/core/build/src/resource/resource.d.ts +98 -0
- package/node_modules/@opencensus/core/build/src/resource/resource.js +167 -0
- package/node_modules/@opencensus/core/build/src/resource/types.d.ts +31 -0
- package/node_modules/@opencensus/core/build/src/resource/types.js +18 -0
- package/node_modules/@opencensus/core/build/src/stats/bucket-boundaries.d.ts +49 -0
- package/node_modules/@opencensus/core/build/src/stats/bucket-boundaries.js +90 -0
- package/node_modules/@opencensus/core/build/src/stats/metric-producer.d.ts +34 -0
- package/node_modules/@opencensus/core/build/src/stats/metric-producer.js +40 -0
- package/node_modules/@opencensus/core/build/src/stats/metric-utils.d.ts +40 -0
- package/node_modules/@opencensus/core/build/src/stats/metric-utils.js +83 -0
- package/node_modules/@opencensus/core/build/src/stats/recorder.d.ts +26 -0
- package/node_modules/@opencensus/core/build/src/stats/recorder.js +76 -0
- package/node_modules/@opencensus/core/build/src/stats/stats.d.ts +97 -0
- package/node_modules/@opencensus/core/build/src/stats/stats.js +169 -0
- package/node_modules/@opencensus/core/build/src/stats/types.d.ts +242 -0
- package/node_modules/@opencensus/core/build/src/stats/types.js +48 -0
- package/node_modules/@opencensus/core/build/src/stats/view.d.ts +119 -0
- package/node_modules/@opencensus/core/build/src/stats/view.js +194 -0
- package/node_modules/@opencensus/core/build/src/tags/tag-map.d.ts +26 -0
- package/node_modules/@opencensus/core/build/src/tags/tag-map.js +45 -0
- package/node_modules/@opencensus/core/build/src/tags/types.d.ts +25 -0
- package/node_modules/@opencensus/core/build/src/tags/types.js +18 -0
- package/node_modules/@opencensus/core/build/src/tags/validation.d.ts +20 -0
- package/node_modules/@opencensus/core/build/src/tags/validation.js +41 -0
- package/node_modules/@opencensus/core/build/src/trace/config/types.d.ts +82 -0
- package/node_modules/@opencensus/core/build/src/trace/config/types.js +18 -0
- package/node_modules/@opencensus/core/build/src/trace/instrumentation/base-plugin.d.ts +77 -0
- package/node_modules/@opencensus/core/build/src/trace/instrumentation/base-plugin.js +113 -0
- package/node_modules/@opencensus/core/build/src/trace/instrumentation/types.d.ts +56 -0
- package/node_modules/@opencensus/core/build/src/trace/instrumentation/types.js +18 -0
- package/node_modules/@opencensus/core/build/src/trace/model/root-span.d.ts +53 -0
- package/node_modules/@opencensus/core/build/src/trace/model/root-span.js +111 -0
- package/node_modules/@opencensus/core/build/src/trace/model/span-base.d.ts +131 -0
- package/node_modules/@opencensus/core/build/src/trace/model/span-base.js +210 -0
- package/node_modules/@opencensus/core/build/src/trace/model/span.d.ts +35 -0
- package/node_modules/@opencensus/core/build/src/trace/model/span.js +66 -0
- package/node_modules/@opencensus/core/build/src/trace/model/tracer.d.ts +112 -0
- package/node_modules/@opencensus/core/build/src/trace/model/tracer.js +241 -0
- package/node_modules/@opencensus/core/build/src/trace/model/types.d.ts +455 -0
- package/node_modules/@opencensus/core/build/src/trace/model/types.js +198 -0
- package/node_modules/@opencensus/core/build/src/trace/propagation/types.d.ts +36 -0
- package/node_modules/@opencensus/core/build/src/trace/propagation/types.js +18 -0
- package/node_modules/@opencensus/core/build/src/trace/sampler/sampler.d.ts +72 -0
- package/node_modules/@opencensus/core/build/src/trace/sampler/sampler.js +129 -0
- package/node_modules/@opencensus/core/build/src/trace/sampler/types.d.ts +29 -0
- package/node_modules/@opencensus/core/build/src/trace/sampler/types.js +18 -0
- package/node_modules/@opencensus/core/build/src/trace/types.d.ts +46 -0
- package/node_modules/@opencensus/core/build/src/trace/types.js +18 -0
- package/node_modules/@opencensus/core/node_modules/.bin/semver +12 -0
- package/node_modules/@opencensus/core/node_modules/.bin/semver.cmd +17 -0
- package/node_modules/@opencensus/core/node_modules/.bin/semver.ps1 +28 -0
- package/node_modules/@opencensus/core/node_modules/semver/CHANGELOG.md +39 -0
- package/node_modules/@opencensus/core/node_modules/semver/LICENSE +15 -0
- package/node_modules/@opencensus/core/node_modules/semver/README.md +412 -0
- package/node_modules/@opencensus/core/node_modules/semver/bin/semver +160 -0
- package/node_modules/@opencensus/core/node_modules/semver/package.json +28 -0
- package/node_modules/@opencensus/core/node_modules/semver/range.bnf +16 -0
- package/node_modules/@opencensus/core/node_modules/semver/semver.js +1483 -0
- package/node_modules/@opencensus/core/package.json +68 -0
- package/node_modules/@opencensus/propagation-b3/LICENSE +202 -0
- package/node_modules/@opencensus/propagation-b3/README.md +46 -0
- package/node_modules/@opencensus/propagation-b3/build/src/b3-format.d.ts +35 -0
- package/node_modules/@opencensus/propagation-b3/build/src/b3-format.js +77 -0
- package/node_modules/@opencensus/propagation-b3/build/src/index.d.ts +16 -0
- package/node_modules/@opencensus/propagation-b3/build/src/index.js +22 -0
- package/node_modules/@opencensus/propagation-b3/node_modules/.bin/semver +12 -0
- package/node_modules/@opencensus/propagation-b3/node_modules/.bin/semver.cmd +17 -0
- package/node_modules/@opencensus/propagation-b3/node_modules/.bin/semver.ps1 +28 -0
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/LICENSE +202 -0
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/README.md +96 -0
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/common/console-logger.d.ts +51 -0
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/common/console-logger.js +106 -0
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/common/types.d.ts +29 -0
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/common/types.js +18 -0
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/common/validations.d.ts +31 -0
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/common/validations.js +46 -0
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/common/version.d.ts +1 -0
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/common/version.js +24 -0
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/exporters/console-exporter.d.ts +64 -0
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/exporters/console-exporter.js +84 -0
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/exporters/exporter-buffer.d.ts +44 -0
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/exporters/exporter-buffer.js +104 -0
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/exporters/types.d.ts +44 -0
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/exporters/types.js +18 -0
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/index.d.ts +37 -0
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/index.js +45 -0
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/internal/clock.d.ts +43 -0
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/internal/clock.js +68 -0
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/internal/cls-ah.d.ts +5 -0
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/internal/cls-ah.js +128 -0
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/internal/cls.d.ts +28 -0
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/internal/cls.js +45 -0
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/internal/string-utils.d.ts +35 -0
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/internal/string-utils.js +49 -0
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/internal/util.d.ts +1 -0
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/internal/util.js +34 -0
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/metrics/export/metric-producer.d.ts +27 -0
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/metrics/export/metric-producer.js +25 -0
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/metrics/export/types.d.ts +309 -0
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/metrics/export/types.js +69 -0
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/metrics/gauges/derived-gauge.d.ts +95 -0
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/metrics/gauges/derived-gauge.js +151 -0
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/metrics/gauges/gauge.d.ts +99 -0
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/metrics/gauges/gauge.js +161 -0
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/metrics/gauges/types.d.ts +45 -0
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/metrics/gauges/types.js +18 -0
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/metrics/metric-registry.d.ts +79 -0
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/metrics/metric-registry.js +152 -0
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/metrics/metrics.d.ts +26 -0
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/metrics/metrics.js +34 -0
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/metrics/utils.d.ts +30 -0
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/metrics/utils.js +42 -0
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/resource/resource.d.ts +81 -0
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/resource/resource.js +160 -0
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/resource/types.d.ts +31 -0
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/resource/types.js +18 -0
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/stats/bucket-boundaries.d.ts +49 -0
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/stats/bucket-boundaries.js +90 -0
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/stats/metric-producer.d.ts +34 -0
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/stats/metric-producer.js +40 -0
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/stats/metric-utils.d.ts +39 -0
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/stats/metric-utils.js +84 -0
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/stats/recorder.d.ts +23 -0
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/stats/recorder.js +70 -0
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/stats/stats.d.ts +85 -0
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/stats/stats.js +145 -0
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/stats/types.d.ts +188 -0
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/stats/types.js +48 -0
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/stats/view.d.ts +118 -0
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/stats/view.js +201 -0
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/trace/config/types.d.ts +68 -0
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/trace/config/types.js +18 -0
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/trace/instrumentation/base-plugin.d.ts +73 -0
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/trace/instrumentation/base-plugin.js +110 -0
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/trace/instrumentation/types.d.ts +45 -0
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/trace/instrumentation/types.js +18 -0
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/trace/model/root-span.d.ts +38 -0
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/trace/model/root-span.js +108 -0
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/trace/model/span-base.d.ts +114 -0
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/trace/model/span-base.js +165 -0
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/trace/model/span.d.ts +20 -0
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/trace/model/span.js +65 -0
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/trace/model/tracer.d.ts +95 -0
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/trace/model/tracer.js +229 -0
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/trace/model/types.d.ts +245 -0
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/trace/model/types.js +18 -0
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/trace/propagation/types.d.ts +36 -0
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/trace/propagation/types.js +18 -0
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/trace/sampler/sampler.d.ts +56 -0
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/trace/sampler/sampler.js +94 -0
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/trace/sampler/types.d.ts +29 -0
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/trace/sampler/types.js +18 -0
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/trace/types.d.ts +46 -0
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/build/src/trace/types.js +18 -0
- package/node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core/package.json +63 -0
- package/node_modules/@opencensus/propagation-b3/node_modules/semver/CHANGELOG.md +39 -0
- package/node_modules/@opencensus/propagation-b3/node_modules/semver/LICENSE +15 -0
- package/node_modules/@opencensus/propagation-b3/node_modules/semver/README.md +412 -0
- package/node_modules/@opencensus/propagation-b3/node_modules/semver/bin/semver +160 -0
- package/node_modules/@opencensus/propagation-b3/node_modules/semver/package.json +28 -0
- package/node_modules/@opencensus/propagation-b3/node_modules/semver/range.bnf +16 -0
- package/node_modules/@opencensus/propagation-b3/node_modules/semver/semver.js +1483 -0
- package/node_modules/@opencensus/propagation-b3/package.json +56 -0
- package/node_modules/@pm2/agent/.drone.jsonnet +104 -0
- package/node_modules/@pm2/agent/.mocharc.yml +12 -0
- package/node_modules/@pm2/agent/.vscode/launch.json +29 -0
- package/node_modules/@pm2/agent/LICENSE +661 -0
- package/node_modules/@pm2/agent/README.md +95 -0
- package/node_modules/@pm2/agent/config.js +30 -0
- package/node_modules/@pm2/agent/constants.js +98 -0
- package/node_modules/@pm2/agent/index.js +2 -0
- package/node_modules/@pm2/agent/node_modules/.bin/semver +12 -0
- package/node_modules/@pm2/agent/node_modules/.bin/semver.cmd +17 -0
- package/node_modules/@pm2/agent/node_modules/.bin/semver.ps1 +28 -0
- package/node_modules/@pm2/agent/node_modules/chalk/index.d.ts +411 -0
- package/node_modules/@pm2/agent/node_modules/chalk/license +9 -0
- package/node_modules/@pm2/agent/node_modules/chalk/package.json +63 -0
- package/node_modules/@pm2/agent/node_modules/chalk/readme.md +304 -0
- package/node_modules/@pm2/agent/node_modules/chalk/source/index.js +233 -0
- package/node_modules/@pm2/agent/node_modules/chalk/source/templates.js +134 -0
- package/node_modules/@pm2/agent/node_modules/chalk/source/util.js +39 -0
- package/node_modules/@pm2/agent/node_modules/semver/CHANGELOG.md +101 -0
- package/node_modules/@pm2/agent/node_modules/semver/LICENSE +15 -0
- package/node_modules/@pm2/agent/node_modules/semver/README.md +563 -0
- package/node_modules/@pm2/agent/node_modules/semver/bin/semver.js +173 -0
- package/node_modules/@pm2/agent/node_modules/semver/classes/comparator.js +139 -0
- package/node_modules/@pm2/agent/node_modules/semver/classes/index.js +5 -0
- package/node_modules/@pm2/agent/node_modules/semver/classes/range.js +453 -0
- package/node_modules/@pm2/agent/node_modules/semver/classes/semver.js +290 -0
- package/node_modules/@pm2/agent/node_modules/semver/functions/clean.js +6 -0
- package/node_modules/@pm2/agent/node_modules/semver/functions/cmp.js +48 -0
- package/node_modules/@pm2/agent/node_modules/semver/functions/coerce.js +51 -0
- package/node_modules/@pm2/agent/node_modules/semver/functions/compare-build.js +7 -0
- package/node_modules/@pm2/agent/node_modules/semver/functions/compare-loose.js +3 -0
- package/node_modules/@pm2/agent/node_modules/semver/functions/compare.js +5 -0
- package/node_modules/@pm2/agent/node_modules/semver/functions/diff.js +23 -0
- package/node_modules/@pm2/agent/node_modules/semver/functions/eq.js +3 -0
- package/node_modules/@pm2/agent/node_modules/semver/functions/gt.js +3 -0
- package/node_modules/@pm2/agent/node_modules/semver/functions/gte.js +3 -0
- package/node_modules/@pm2/agent/node_modules/semver/functions/inc.js +15 -0
- package/node_modules/@pm2/agent/node_modules/semver/functions/lt.js +3 -0
- package/node_modules/@pm2/agent/node_modules/semver/functions/lte.js +3 -0
- package/node_modules/@pm2/agent/node_modules/semver/functions/major.js +3 -0
- package/node_modules/@pm2/agent/node_modules/semver/functions/minor.js +3 -0
- package/node_modules/@pm2/agent/node_modules/semver/functions/neq.js +3 -0
- package/node_modules/@pm2/agent/node_modules/semver/functions/parse.js +37 -0
- package/node_modules/@pm2/agent/node_modules/semver/functions/patch.js +3 -0
- package/node_modules/@pm2/agent/node_modules/semver/functions/prerelease.js +6 -0
- package/node_modules/@pm2/agent/node_modules/semver/functions/rcompare.js +3 -0
- package/node_modules/@pm2/agent/node_modules/semver/functions/rsort.js +3 -0
- package/node_modules/@pm2/agent/node_modules/semver/functions/satisfies.js +10 -0
- package/node_modules/@pm2/agent/node_modules/semver/functions/sort.js +3 -0
- package/node_modules/@pm2/agent/node_modules/semver/functions/valid.js +6 -0
- package/node_modules/@pm2/agent/node_modules/semver/index.js +47 -0
- package/node_modules/@pm2/agent/node_modules/semver/internal/constants.js +17 -0
- package/node_modules/@pm2/agent/node_modules/semver/internal/debug.js +9 -0
- package/node_modules/@pm2/agent/node_modules/semver/internal/identifiers.js +23 -0
- package/node_modules/@pm2/agent/node_modules/semver/internal/re.js +179 -0
- package/node_modules/@pm2/agent/node_modules/semver/package.json +38 -0
- package/node_modules/@pm2/agent/node_modules/semver/preload.js +2 -0
- package/node_modules/@pm2/agent/node_modules/semver/range.bnf +16 -0
- package/node_modules/@pm2/agent/node_modules/semver/ranges/gtr.js +4 -0
- package/node_modules/@pm2/agent/node_modules/semver/ranges/intersects.js +7 -0
- package/node_modules/@pm2/agent/node_modules/semver/ranges/ltr.js +4 -0
- package/node_modules/@pm2/agent/node_modules/semver/ranges/max-satisfying.js +25 -0
- package/node_modules/@pm2/agent/node_modules/semver/ranges/min-satisfying.js +24 -0
- package/node_modules/@pm2/agent/node_modules/semver/ranges/min-version.js +57 -0
- package/node_modules/@pm2/agent/node_modules/semver/ranges/outside.js +80 -0
- package/node_modules/@pm2/agent/node_modules/semver/ranges/simplify.js +44 -0
- package/node_modules/@pm2/agent/node_modules/semver/ranges/to-comparators.js +8 -0
- package/node_modules/@pm2/agent/node_modules/semver/ranges/valid.js +11 -0
- package/node_modules/@pm2/agent/package.json +41 -0
- package/node_modules/@pm2/agent/src/InteractorClient.js +502 -0
- package/node_modules/@pm2/agent/src/InteractorDaemon.js +452 -0
- package/node_modules/@pm2/agent/src/PM2Client.js +112 -0
- package/node_modules/@pm2/agent/src/PM2Interface.js +180 -0
- package/node_modules/@pm2/agent/src/TransporterInterface.js +173 -0
- package/node_modules/@pm2/agent/src/Utility.js +395 -0
- package/node_modules/@pm2/agent/src/WatchDog.js +70 -0
- package/node_modules/@pm2/agent/src/push/DataRetriever.js +77 -0
- package/node_modules/@pm2/agent/src/push/PushInteractor.js +206 -0
- package/node_modules/@pm2/agent/src/push/TransactionAggregator.js +670 -0
- package/node_modules/@pm2/agent/src/reverse/ReverseInteractor.js +128 -0
- package/node_modules/@pm2/agent/src/transporters/Transporter.js +129 -0
- package/node_modules/@pm2/agent/src/transporters/WebsocketTransport.js +204 -0
- package/node_modules/@pm2/agent/src/utils/BinaryHeap.js +135 -0
- package/node_modules/@pm2/agent/src/utils/EDS.js +111 -0
- package/node_modules/@pm2/agent/src/utils/probes/Histogram.js +204 -0
- package/node_modules/@pm2/agent/src/utils/units.js +10 -0
- package/node_modules/@pm2/io/.drone.jsonnet +114 -0
- package/node_modules/@pm2/io/.mocharc.js +17 -0
- package/node_modules/@pm2/io/.vscode/settings.json +3 -0
- package/node_modules/@pm2/io/CHANGELOG.md +13 -0
- package/node_modules/@pm2/io/LICENSE.md +201 -0
- package/node_modules/@pm2/io/NOTES.md +73 -0
- package/node_modules/@pm2/io/README.md +574 -0
- package/node_modules/@pm2/io/build/main/census/config/default-config.d.ts +8 -0
- package/node_modules/@pm2/io/build/main/census/config/default-config.js +12 -0
- package/node_modules/@pm2/io/build/main/census/constants.d.ts +9 -0
- package/node_modules/@pm2/io/build/main/census/constants.js +12 -0
- package/node_modules/@pm2/io/build/main/census/exporter.d.ts +18 -0
- package/node_modules/@pm2/io/build/main/census/exporter.js +103 -0
- package/node_modules/@pm2/io/build/main/census/instrumentation/ext-types.d.ts +12 -0
- package/node_modules/@pm2/io/build/main/census/instrumentation/ext-types.js +1 -0
- package/node_modules/@pm2/io/build/main/census/instrumentation/plugin-loader.d.ts +14 -0
- package/node_modules/@pm2/io/build/main/census/instrumentation/plugin-loader.js +94 -0
- package/node_modules/@pm2/io/build/main/census/plugins/express.d.ts +13 -0
- package/node_modules/@pm2/io/build/main/census/plugins/express.js +120 -0
- package/node_modules/@pm2/io/build/main/census/plugins/http.d.ts +46 -0
- package/node_modules/@pm2/io/build/main/census/plugins/http.js +325 -0
- package/node_modules/@pm2/io/build/main/census/plugins/http2.d.ts +17 -0
- package/node_modules/@pm2/io/build/main/census/plugins/http2.js +163 -0
- package/node_modules/@pm2/io/build/main/census/plugins/https.d.ts +9 -0
- package/node_modules/@pm2/io/build/main/census/plugins/https.js +61 -0
- package/node_modules/@pm2/io/build/main/census/plugins/ioredis.d.ts +23 -0
- package/node_modules/@pm2/io/build/main/census/plugins/ioredis.js +89 -0
- package/node_modules/@pm2/io/build/main/census/plugins/mongodb.d.ts +21 -0
- package/node_modules/@pm2/io/build/main/census/plugins/mongodb.js +128 -0
- package/node_modules/@pm2/io/build/main/census/plugins/mysql.d.ts +21 -0
- package/node_modules/@pm2/io/build/main/census/plugins/mysql.js +82 -0
- package/node_modules/@pm2/io/build/main/census/plugins/mysql2.d.ts +21 -0
- package/node_modules/@pm2/io/build/main/census/plugins/mysql2.js +82 -0
- package/node_modules/@pm2/io/build/main/census/plugins/net.d.ts +8 -0
- package/node_modules/@pm2/io/build/main/census/plugins/net.js +79 -0
- package/node_modules/@pm2/io/build/main/census/plugins/pg.d.ts +23 -0
- package/node_modules/@pm2/io/build/main/census/plugins/pg.js +148 -0
- package/node_modules/@pm2/io/build/main/census/plugins/redis.d.ts +19 -0
- package/node_modules/@pm2/io/build/main/census/plugins/redis.js +114 -0
- package/node_modules/@pm2/io/build/main/census/plugins/vue.d.ts +12 -0
- package/node_modules/@pm2/io/build/main/census/plugins/vue.js +78 -0
- package/node_modules/@pm2/io/build/main/census/tracer.d.ts +19 -0
- package/node_modules/@pm2/io/build/main/census/tracer.js +67 -0
- package/node_modules/@pm2/io/build/main/configuration.d.ts +6 -0
- package/node_modules/@pm2/io/build/main/configuration.js +125 -0
- package/node_modules/@pm2/io/build/main/constants.d.ts +5 -0
- package/node_modules/@pm2/io/build/main/constants.js +15 -0
- package/node_modules/@pm2/io/build/main/featureManager.d.ts +14 -0
- package/node_modules/@pm2/io/build/main/featureManager.js +105 -0
- package/node_modules/@pm2/io/build/main/features/dependencies.d.ts +7 -0
- package/node_modules/@pm2/io/build/main/features/dependencies.js +45 -0
- package/node_modules/@pm2/io/build/main/features/entrypoint.d.ts +11 -0
- package/node_modules/@pm2/io/build/main/features/entrypoint.js +52 -0
- package/node_modules/@pm2/io/build/main/features/events.d.ts +8 -0
- package/node_modules/@pm2/io/build/main/features/events.js +44 -0
- package/node_modules/@pm2/io/build/main/features/metrics.d.ts +24 -0
- package/node_modules/@pm2/io/build/main/features/metrics.js +89 -0
- package/node_modules/@pm2/io/build/main/features/notify.d.ts +23 -0
- package/node_modules/@pm2/io/build/main/features/notify.js +224 -0
- package/node_modules/@pm2/io/build/main/features/profiling.d.ts +18 -0
- package/node_modules/@pm2/io/build/main/features/profiling.js +68 -0
- package/node_modules/@pm2/io/build/main/features/tracing.d.ts +25 -0
- package/node_modules/@pm2/io/build/main/features/tracing.js +149 -0
- package/node_modules/@pm2/io/build/main/index.d.ts +3 -0
- package/node_modules/@pm2/io/build/main/index.js +8 -0
- package/node_modules/@pm2/io/build/main/metrics/eventLoopMetrics.d.ts +17 -0
- package/node_modules/@pm2/io/build/main/metrics/eventLoopMetrics.js +128 -0
- package/node_modules/@pm2/io/build/main/metrics/httpMetrics.d.ts +18 -0
- package/node_modules/@pm2/io/build/main/metrics/httpMetrics.js +178 -0
- package/node_modules/@pm2/io/build/main/metrics/network.d.ts +15 -0
- package/node_modules/@pm2/io/build/main/metrics/network.js +121 -0
- package/node_modules/@pm2/io/build/main/metrics/runtime.d.ts +16 -0
- package/node_modules/@pm2/io/build/main/metrics/runtime.js +153 -0
- package/node_modules/@pm2/io/build/main/metrics/v8.d.ts +23 -0
- package/node_modules/@pm2/io/build/main/metrics/v8.js +100 -0
- package/node_modules/@pm2/io/build/main/pmx.d.ts +54 -0
- package/node_modules/@pm2/io/build/main/pmx.js +283 -0
- package/node_modules/@pm2/io/build/main/profilers/addonProfiler.d.ts +16 -0
- package/node_modules/@pm2/io/build/main/profilers/addonProfiler.js +172 -0
- package/node_modules/@pm2/io/build/main/profilers/inspectorProfiler.d.ts +18 -0
- package/node_modules/@pm2/io/build/main/profilers/inspectorProfiler.js +268 -0
- package/node_modules/@pm2/io/build/main/serviceManager.d.ts +7 -0
- package/node_modules/@pm2/io/build/main/serviceManager.js +19 -0
- package/node_modules/@pm2/io/build/main/services/actions.d.ts +20 -0
- package/node_modules/@pm2/io/build/main/services/actions.js +146 -0
- package/node_modules/@pm2/io/build/main/services/inspector.d.ts +8 -0
- package/node_modules/@pm2/io/build/main/services/inspector.js +42 -0
- package/node_modules/@pm2/io/build/main/services/metrics.d.ts +63 -0
- package/node_modules/@pm2/io/build/main/services/metrics.js +186 -0
- package/node_modules/@pm2/io/build/main/services/runtimeStats.d.ts +10 -0
- package/node_modules/@pm2/io/build/main/services/runtimeStats.js +49 -0
- package/node_modules/@pm2/io/build/main/services/transport.d.ts +22 -0
- package/node_modules/@pm2/io/build/main/services/transport.js +13 -0
- package/node_modules/@pm2/io/build/main/transports/IPCTransport.d.ts +17 -0
- package/node_modules/@pm2/io/build/main/transports/IPCTransport.js +102 -0
- package/node_modules/@pm2/io/build/main/transports/WebsocketTransport.d.ts +0 -0
- package/node_modules/@pm2/io/build/main/transports/WebsocketTransport.js +1 -0
- package/node_modules/@pm2/io/build/main/utils/BinaryHeap.d.ts +16 -0
- package/node_modules/@pm2/io/build/main/utils/BinaryHeap.js +109 -0
- package/node_modules/@pm2/io/build/main/utils/EDS.d.ts +21 -0
- package/node_modules/@pm2/io/build/main/utils/EDS.js +93 -0
- package/node_modules/@pm2/io/build/main/utils/EWMA.d.ts +12 -0
- package/node_modules/@pm2/io/build/main/utils/EWMA.js +26 -0
- package/node_modules/@pm2/io/build/main/utils/autocast.d.ts +13 -0
- package/node_modules/@pm2/io/build/main/utils/autocast.js +49 -0
- package/node_modules/@pm2/io/build/main/utils/metrics/counter.d.ts +10 -0
- package/node_modules/@pm2/io/build/main/utils/metrics/counter.js +28 -0
- package/node_modules/@pm2/io/build/main/utils/metrics/gauge.d.ts +7 -0
- package/node_modules/@pm2/io/build/main/utils/metrics/gauge.js +20 -0
- package/node_modules/@pm2/io/build/main/utils/metrics/histogram.d.ts +43 -0
- package/node_modules/@pm2/io/build/main/utils/metrics/histogram.js +160 -0
- package/node_modules/@pm2/io/build/main/utils/metrics/meter.d.ts +12 -0
- package/node_modules/@pm2/io/build/main/utils/metrics/meter.js +36 -0
- package/node_modules/@pm2/io/build/main/utils/miscellaneous.d.ts +4 -0
- package/node_modules/@pm2/io/build/main/utils/miscellaneous.js +17 -0
- package/node_modules/@pm2/io/build/main/utils/module.d.ts +5 -0
- package/node_modules/@pm2/io/build/main/utils/module.js +53 -0
- package/node_modules/@pm2/io/build/main/utils/stackParser.d.ts +37 -0
- package/node_modules/@pm2/io/build/main/utils/stackParser.js +125 -0
- package/node_modules/@pm2/io/build/main/utils/transactionAggregator.d.ts +74 -0
- package/node_modules/@pm2/io/build/main/utils/transactionAggregator.js +317 -0
- package/node_modules/@pm2/io/build/main/utils/units.d.ts +10 -0
- package/node_modules/@pm2/io/build/main/utils/units.js +16 -0
- package/node_modules/@pm2/io/docker-compose.yml +27 -0
- package/node_modules/@pm2/io/docs/README.md +106 -0
- package/node_modules/@pm2/io/node_modules/.bin/semver +12 -0
- package/node_modules/@pm2/io/node_modules/.bin/semver.cmd +17 -0
- package/node_modules/@pm2/io/node_modules/.bin/semver.ps1 +28 -0
- package/node_modules/@pm2/io/node_modules/async/CHANGELOG.md +278 -0
- package/node_modules/@pm2/io/node_modules/async/LICENSE +19 -0
- package/node_modules/@pm2/io/node_modules/async/README.md +56 -0
- package/node_modules/@pm2/io/node_modules/async/all.js +50 -0
- package/node_modules/@pm2/io/node_modules/async/allLimit.js +42 -0
- package/node_modules/@pm2/io/node_modules/async/allSeries.js +37 -0
- package/node_modules/@pm2/io/node_modules/async/any.js +52 -0
- package/node_modules/@pm2/io/node_modules/async/anyLimit.js +43 -0
- package/node_modules/@pm2/io/node_modules/async/anySeries.js +38 -0
- package/node_modules/@pm2/io/node_modules/async/apply.js +68 -0
- package/node_modules/@pm2/io/node_modules/async/applyEach.js +51 -0
- package/node_modules/@pm2/io/node_modules/async/applyEachSeries.js +37 -0
- package/node_modules/@pm2/io/node_modules/async/asyncify.js +110 -0
- package/node_modules/@pm2/io/node_modules/async/auto.js +289 -0
- package/node_modules/@pm2/io/node_modules/async/autoInject.js +170 -0
- package/node_modules/@pm2/io/node_modules/async/bower.json +17 -0
- package/node_modules/@pm2/io/node_modules/async/cargo.js +94 -0
- package/node_modules/@pm2/io/node_modules/async/compose.js +58 -0
- package/node_modules/@pm2/io/node_modules/async/concat.js +43 -0
- package/node_modules/@pm2/io/node_modules/async/concatLimit.js +65 -0
- package/node_modules/@pm2/io/node_modules/async/concatSeries.js +36 -0
- package/node_modules/@pm2/io/node_modules/async/constant.js +66 -0
- package/node_modules/@pm2/io/node_modules/async/detect.js +61 -0
- package/node_modules/@pm2/io/node_modules/async/detectLimit.js +48 -0
- package/node_modules/@pm2/io/node_modules/async/detectSeries.js +38 -0
- package/node_modules/@pm2/io/node_modules/async/dir.js +43 -0
- package/node_modules/@pm2/io/node_modules/async/doDuring.js +66 -0
- package/node_modules/@pm2/io/node_modules/async/doUntil.js +39 -0
- package/node_modules/@pm2/io/node_modules/async/doWhilst.js +59 -0
- package/node_modules/@pm2/io/node_modules/async/during.js +76 -0
- package/node_modules/@pm2/io/node_modules/async/each.js +82 -0
- package/node_modules/@pm2/io/node_modules/async/eachLimit.js +45 -0
- package/node_modules/@pm2/io/node_modules/async/eachOf.js +111 -0
- package/node_modules/@pm2/io/node_modules/async/eachOfLimit.js +41 -0
- package/node_modules/@pm2/io/node_modules/async/eachOfSeries.js +35 -0
- package/node_modules/@pm2/io/node_modules/async/eachSeries.js +37 -0
- package/node_modules/@pm2/io/node_modules/async/ensureAsync.js +73 -0
- package/node_modules/@pm2/io/node_modules/async/every.js +50 -0
- package/node_modules/@pm2/io/node_modules/async/everyLimit.js +42 -0
- package/node_modules/@pm2/io/node_modules/async/everySeries.js +37 -0
- package/node_modules/@pm2/io/node_modules/async/filter.js +45 -0
- package/node_modules/@pm2/io/node_modules/async/filterLimit.js +37 -0
- package/node_modules/@pm2/io/node_modules/async/filterSeries.js +35 -0
- package/node_modules/@pm2/io/node_modules/async/find.js +61 -0
- package/node_modules/@pm2/io/node_modules/async/findLimit.js +48 -0
- package/node_modules/@pm2/io/node_modules/async/findSeries.js +38 -0
- package/node_modules/@pm2/io/node_modules/async/foldl.js +78 -0
- package/node_modules/@pm2/io/node_modules/async/foldr.js +44 -0
- package/node_modules/@pm2/io/node_modules/async/forEach.js +82 -0
- package/node_modules/@pm2/io/node_modules/async/forEachLimit.js +45 -0
- package/node_modules/@pm2/io/node_modules/async/forEachOf.js +111 -0
- package/node_modules/@pm2/io/node_modules/async/forEachOfLimit.js +41 -0
- package/node_modules/@pm2/io/node_modules/async/forEachOfSeries.js +35 -0
- package/node_modules/@pm2/io/node_modules/async/forEachSeries.js +37 -0
- package/node_modules/@pm2/io/node_modules/async/forever.js +65 -0
- package/node_modules/@pm2/io/node_modules/async/groupBy.js +54 -0
- package/node_modules/@pm2/io/node_modules/async/groupByLimit.js +71 -0
- package/node_modules/@pm2/io/node_modules/async/groupBySeries.js +37 -0
- package/node_modules/@pm2/io/node_modules/async/index.js +582 -0
- package/node_modules/@pm2/io/node_modules/async/inject.js +78 -0
- package/node_modules/@pm2/io/node_modules/async/internal/DoublyLinkedList.js +88 -0
- package/node_modules/@pm2/io/node_modules/async/internal/applyEach.js +38 -0
- package/node_modules/@pm2/io/node_modules/async/internal/breakLoop.js +9 -0
- package/node_modules/@pm2/io/node_modules/async/internal/consoleFunc.js +42 -0
- package/node_modules/@pm2/io/node_modules/async/internal/createTester.js +44 -0
- package/node_modules/@pm2/io/node_modules/async/internal/doLimit.js +12 -0
- package/node_modules/@pm2/io/node_modules/async/internal/doParallel.js +23 -0
- package/node_modules/@pm2/io/node_modules/async/internal/doParallelLimit.js +23 -0
- package/node_modules/@pm2/io/node_modules/async/internal/eachOfLimit.js +74 -0
- package/node_modules/@pm2/io/node_modules/async/internal/filter.js +75 -0
- package/node_modules/@pm2/io/node_modules/async/internal/findGetResult.js +10 -0
- package/node_modules/@pm2/io/node_modules/async/internal/getIterator.js +13 -0
- package/node_modules/@pm2/io/node_modules/async/internal/initialParams.js +21 -0
- package/node_modules/@pm2/io/node_modules/async/internal/iterator.js +61 -0
- package/node_modules/@pm2/io/node_modules/async/internal/map.js +35 -0
- package/node_modules/@pm2/io/node_modules/async/internal/notId.js +10 -0
- package/node_modules/@pm2/io/node_modules/async/internal/once.js +15 -0
- package/node_modules/@pm2/io/node_modules/async/internal/onlyOnce.js +15 -0
- package/node_modules/@pm2/io/node_modules/async/internal/parallel.js +42 -0
- package/node_modules/@pm2/io/node_modules/async/internal/queue.js +204 -0
- package/node_modules/@pm2/io/node_modules/async/internal/reject.js +21 -0
- package/node_modules/@pm2/io/node_modules/async/internal/setImmediate.js +42 -0
- package/node_modules/@pm2/io/node_modules/async/internal/slice.js +16 -0
- package/node_modules/@pm2/io/node_modules/async/internal/withoutIndex.js +12 -0
- package/node_modules/@pm2/io/node_modules/async/internal/wrapAsync.js +25 -0
- package/node_modules/@pm2/io/node_modules/async/log.js +41 -0
- package/node_modules/@pm2/io/node_modules/async/map.js +54 -0
- package/node_modules/@pm2/io/node_modules/async/mapLimit.js +37 -0
- package/node_modules/@pm2/io/node_modules/async/mapSeries.js +36 -0
- package/node_modules/@pm2/io/node_modules/async/mapValues.js +63 -0
- package/node_modules/@pm2/io/node_modules/async/mapValuesLimit.js +61 -0
- package/node_modules/@pm2/io/node_modules/async/mapValuesSeries.js +37 -0
- package/node_modules/@pm2/io/node_modules/async/memoize.js +101 -0
- package/node_modules/@pm2/io/node_modules/async/nextTick.js +51 -0
- package/node_modules/@pm2/io/node_modules/async/package.json +80 -0
- package/node_modules/@pm2/io/node_modules/async/parallel.js +90 -0
- package/node_modules/@pm2/io/node_modules/async/parallelLimit.js +40 -0
- package/node_modules/@pm2/io/node_modules/async/priorityQueue.js +98 -0
- package/node_modules/@pm2/io/node_modules/async/queue.js +130 -0
- package/node_modules/@pm2/io/node_modules/async/race.js +70 -0
- package/node_modules/@pm2/io/node_modules/async/reduce.js +78 -0
- package/node_modules/@pm2/io/node_modules/async/reduceRight.js +44 -0
- package/node_modules/@pm2/io/node_modules/async/reflect.js +81 -0
- package/node_modules/@pm2/io/node_modules/async/reflectAll.js +105 -0
- package/node_modules/@pm2/io/node_modules/async/reject.js +45 -0
- package/node_modules/@pm2/io/node_modules/async/rejectLimit.js +37 -0
- package/node_modules/@pm2/io/node_modules/async/rejectSeries.js +35 -0
- package/node_modules/@pm2/io/node_modules/async/retry.js +156 -0
- package/node_modules/@pm2/io/node_modules/async/retryable.js +65 -0
- package/node_modules/@pm2/io/node_modules/async/select.js +45 -0
- package/node_modules/@pm2/io/node_modules/async/selectLimit.js +37 -0
- package/node_modules/@pm2/io/node_modules/async/selectSeries.js +35 -0
- package/node_modules/@pm2/io/node_modules/async/seq.js +91 -0
- package/node_modules/@pm2/io/node_modules/async/series.js +85 -0
- package/node_modules/@pm2/io/node_modules/async/setImmediate.js +45 -0
- package/node_modules/@pm2/io/node_modules/async/some.js +52 -0
- package/node_modules/@pm2/io/node_modules/async/someLimit.js +43 -0
- package/node_modules/@pm2/io/node_modules/async/someSeries.js +38 -0
- package/node_modules/@pm2/io/node_modules/async/sortBy.js +91 -0
- package/node_modules/@pm2/io/node_modules/async/timeout.js +89 -0
- package/node_modules/@pm2/io/node_modules/async/times.js +50 -0
- package/node_modules/@pm2/io/node_modules/async/timesLimit.js +42 -0
- package/node_modules/@pm2/io/node_modules/async/timesSeries.js +32 -0
- package/node_modules/@pm2/io/node_modules/async/transform.js +87 -0
- package/node_modules/@pm2/io/node_modules/async/tryEach.js +81 -0
- package/node_modules/@pm2/io/node_modules/async/unmemoize.js +25 -0
- package/node_modules/@pm2/io/node_modules/async/until.js +41 -0
- package/node_modules/@pm2/io/node_modules/async/waterfall.js +113 -0
- package/node_modules/@pm2/io/node_modules/async/whilst.js +72 -0
- package/node_modules/@pm2/io/node_modules/async/wrapSync.js +110 -0
- package/node_modules/@pm2/io/node_modules/eventemitter2/CHANGELOG.md +122 -0
- package/node_modules/@pm2/io/node_modules/eventemitter2/LICENSE.txt +21 -0
- package/node_modules/@pm2/io/node_modules/eventemitter2/README.md +809 -0
- package/node_modules/@pm2/io/node_modules/eventemitter2/eventemitter2.d.ts +150 -0
- package/node_modules/@pm2/io/node_modules/eventemitter2/index.js +1 -0
- package/node_modules/@pm2/io/node_modules/eventemitter2/lib/eventemitter2.js +1629 -0
- package/node_modules/@pm2/io/node_modules/eventemitter2/package.json +89 -0
- package/node_modules/@pm2/io/node_modules/semver/CHANGELOG.md +70 -0
- package/node_modules/@pm2/io/node_modules/semver/LICENSE +15 -0
- package/node_modules/@pm2/io/node_modules/semver/README.md +443 -0
- package/node_modules/@pm2/io/node_modules/semver/bin/semver.js +174 -0
- package/node_modules/@pm2/io/node_modules/semver/package.json +28 -0
- package/node_modules/@pm2/io/node_modules/semver/range.bnf +16 -0
- package/node_modules/@pm2/io/node_modules/semver/semver.js +1596 -0
- package/node_modules/@pm2/io/package.json +97 -0
- 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 +67 -0
- package/node_modules/@pm2/js-api/.drone.jsonnet +100 -0
- package/node_modules/@pm2/js-api/LICENSE +201 -0
- package/node_modules/@pm2/js-api/README.md +375 -0
- package/node_modules/@pm2/js-api/constants.js +21 -0
- package/node_modules/@pm2/js-api/index.js +1 -0
- package/node_modules/@pm2/js-api/node_modules/async/CHANGELOG.md +278 -0
- package/node_modules/@pm2/js-api/node_modules/async/LICENSE +19 -0
- package/node_modules/@pm2/js-api/node_modules/async/README.md +56 -0
- package/node_modules/@pm2/js-api/node_modules/async/all.js +50 -0
- package/node_modules/@pm2/js-api/node_modules/async/allLimit.js +42 -0
- package/node_modules/@pm2/js-api/node_modules/async/allSeries.js +37 -0
- package/node_modules/@pm2/js-api/node_modules/async/any.js +52 -0
- package/node_modules/@pm2/js-api/node_modules/async/anyLimit.js +43 -0
- package/node_modules/@pm2/js-api/node_modules/async/anySeries.js +38 -0
- package/node_modules/@pm2/js-api/node_modules/async/apply.js +68 -0
- package/node_modules/@pm2/js-api/node_modules/async/applyEach.js +51 -0
- package/node_modules/@pm2/js-api/node_modules/async/applyEachSeries.js +37 -0
- package/node_modules/@pm2/js-api/node_modules/async/asyncify.js +110 -0
- package/node_modules/@pm2/js-api/node_modules/async/auto.js +289 -0
- package/node_modules/@pm2/js-api/node_modules/async/autoInject.js +170 -0
- package/node_modules/@pm2/js-api/node_modules/async/bower.json +17 -0
- package/node_modules/@pm2/js-api/node_modules/async/cargo.js +94 -0
- package/node_modules/@pm2/js-api/node_modules/async/compose.js +58 -0
- package/node_modules/@pm2/js-api/node_modules/async/concat.js +43 -0
- package/node_modules/@pm2/js-api/node_modules/async/concatLimit.js +65 -0
- package/node_modules/@pm2/js-api/node_modules/async/concatSeries.js +36 -0
- package/node_modules/@pm2/js-api/node_modules/async/constant.js +66 -0
- package/node_modules/@pm2/js-api/node_modules/async/detect.js +61 -0
- package/node_modules/@pm2/js-api/node_modules/async/detectLimit.js +48 -0
- package/node_modules/@pm2/js-api/node_modules/async/detectSeries.js +38 -0
- package/node_modules/@pm2/js-api/node_modules/async/dir.js +43 -0
- package/node_modules/@pm2/js-api/node_modules/async/doDuring.js +66 -0
- package/node_modules/@pm2/js-api/node_modules/async/doUntil.js +39 -0
- package/node_modules/@pm2/js-api/node_modules/async/doWhilst.js +59 -0
- package/node_modules/@pm2/js-api/node_modules/async/during.js +76 -0
- package/node_modules/@pm2/js-api/node_modules/async/each.js +82 -0
- package/node_modules/@pm2/js-api/node_modules/async/eachLimit.js +45 -0
- package/node_modules/@pm2/js-api/node_modules/async/eachOf.js +111 -0
- package/node_modules/@pm2/js-api/node_modules/async/eachOfLimit.js +41 -0
- package/node_modules/@pm2/js-api/node_modules/async/eachOfSeries.js +35 -0
- package/node_modules/@pm2/js-api/node_modules/async/eachSeries.js +37 -0
- package/node_modules/@pm2/js-api/node_modules/async/ensureAsync.js +73 -0
- package/node_modules/@pm2/js-api/node_modules/async/every.js +50 -0
- package/node_modules/@pm2/js-api/node_modules/async/everyLimit.js +42 -0
- package/node_modules/@pm2/js-api/node_modules/async/everySeries.js +37 -0
- package/node_modules/@pm2/js-api/node_modules/async/filter.js +45 -0
- package/node_modules/@pm2/js-api/node_modules/async/filterLimit.js +37 -0
- package/node_modules/@pm2/js-api/node_modules/async/filterSeries.js +35 -0
- package/node_modules/@pm2/js-api/node_modules/async/find.js +61 -0
- package/node_modules/@pm2/js-api/node_modules/async/findLimit.js +48 -0
- package/node_modules/@pm2/js-api/node_modules/async/findSeries.js +38 -0
- package/node_modules/@pm2/js-api/node_modules/async/foldl.js +78 -0
- package/node_modules/@pm2/js-api/node_modules/async/foldr.js +44 -0
- package/node_modules/@pm2/js-api/node_modules/async/forEach.js +82 -0
- package/node_modules/@pm2/js-api/node_modules/async/forEachLimit.js +45 -0
- package/node_modules/@pm2/js-api/node_modules/async/forEachOf.js +111 -0
- package/node_modules/@pm2/js-api/node_modules/async/forEachOfLimit.js +41 -0
- package/node_modules/@pm2/js-api/node_modules/async/forEachOfSeries.js +35 -0
- package/node_modules/@pm2/js-api/node_modules/async/forEachSeries.js +37 -0
- package/node_modules/@pm2/js-api/node_modules/async/forever.js +65 -0
- package/node_modules/@pm2/js-api/node_modules/async/groupBy.js +54 -0
- package/node_modules/@pm2/js-api/node_modules/async/groupByLimit.js +71 -0
- package/node_modules/@pm2/js-api/node_modules/async/groupBySeries.js +37 -0
- package/node_modules/@pm2/js-api/node_modules/async/index.js +582 -0
- package/node_modules/@pm2/js-api/node_modules/async/inject.js +78 -0
- package/node_modules/@pm2/js-api/node_modules/async/internal/DoublyLinkedList.js +88 -0
- package/node_modules/@pm2/js-api/node_modules/async/internal/applyEach.js +38 -0
- package/node_modules/@pm2/js-api/node_modules/async/internal/breakLoop.js +9 -0
- package/node_modules/@pm2/js-api/node_modules/async/internal/consoleFunc.js +42 -0
- package/node_modules/@pm2/js-api/node_modules/async/internal/createTester.js +44 -0
- package/node_modules/@pm2/js-api/node_modules/async/internal/doLimit.js +12 -0
- package/node_modules/@pm2/js-api/node_modules/async/internal/doParallel.js +23 -0
- package/node_modules/@pm2/js-api/node_modules/async/internal/doParallelLimit.js +23 -0
- package/node_modules/@pm2/js-api/node_modules/async/internal/eachOfLimit.js +74 -0
- package/node_modules/@pm2/js-api/node_modules/async/internal/filter.js +75 -0
- package/node_modules/@pm2/js-api/node_modules/async/internal/findGetResult.js +10 -0
- package/node_modules/@pm2/js-api/node_modules/async/internal/getIterator.js +13 -0
- package/node_modules/@pm2/js-api/node_modules/async/internal/initialParams.js +21 -0
- package/node_modules/@pm2/js-api/node_modules/async/internal/iterator.js +61 -0
- package/node_modules/@pm2/js-api/node_modules/async/internal/map.js +35 -0
- package/node_modules/@pm2/js-api/node_modules/async/internal/notId.js +10 -0
- package/node_modules/@pm2/js-api/node_modules/async/internal/once.js +15 -0
- package/node_modules/@pm2/js-api/node_modules/async/internal/onlyOnce.js +15 -0
- package/node_modules/@pm2/js-api/node_modules/async/internal/parallel.js +42 -0
- package/node_modules/@pm2/js-api/node_modules/async/internal/queue.js +204 -0
- package/node_modules/@pm2/js-api/node_modules/async/internal/reject.js +21 -0
- package/node_modules/@pm2/js-api/node_modules/async/internal/setImmediate.js +42 -0
- package/node_modules/@pm2/js-api/node_modules/async/internal/slice.js +16 -0
- package/node_modules/@pm2/js-api/node_modules/async/internal/withoutIndex.js +12 -0
- package/node_modules/@pm2/js-api/node_modules/async/internal/wrapAsync.js +25 -0
- package/node_modules/@pm2/js-api/node_modules/async/log.js +41 -0
- package/node_modules/@pm2/js-api/node_modules/async/map.js +54 -0
- package/node_modules/@pm2/js-api/node_modules/async/mapLimit.js +37 -0
- package/node_modules/@pm2/js-api/node_modules/async/mapSeries.js +36 -0
- package/node_modules/@pm2/js-api/node_modules/async/mapValues.js +63 -0
- package/node_modules/@pm2/js-api/node_modules/async/mapValuesLimit.js +61 -0
- package/node_modules/@pm2/js-api/node_modules/async/mapValuesSeries.js +37 -0
- package/node_modules/@pm2/js-api/node_modules/async/memoize.js +101 -0
- package/node_modules/@pm2/js-api/node_modules/async/nextTick.js +51 -0
- package/node_modules/@pm2/js-api/node_modules/async/package.json +80 -0
- package/node_modules/@pm2/js-api/node_modules/async/parallel.js +90 -0
- package/node_modules/@pm2/js-api/node_modules/async/parallelLimit.js +40 -0
- package/node_modules/@pm2/js-api/node_modules/async/priorityQueue.js +98 -0
- package/node_modules/@pm2/js-api/node_modules/async/queue.js +130 -0
- package/node_modules/@pm2/js-api/node_modules/async/race.js +70 -0
- package/node_modules/@pm2/js-api/node_modules/async/reduce.js +78 -0
- package/node_modules/@pm2/js-api/node_modules/async/reduceRight.js +44 -0
- package/node_modules/@pm2/js-api/node_modules/async/reflect.js +81 -0
- package/node_modules/@pm2/js-api/node_modules/async/reflectAll.js +105 -0
- package/node_modules/@pm2/js-api/node_modules/async/reject.js +45 -0
- package/node_modules/@pm2/js-api/node_modules/async/rejectLimit.js +37 -0
- package/node_modules/@pm2/js-api/node_modules/async/rejectSeries.js +35 -0
- package/node_modules/@pm2/js-api/node_modules/async/retry.js +156 -0
- package/node_modules/@pm2/js-api/node_modules/async/retryable.js +65 -0
- package/node_modules/@pm2/js-api/node_modules/async/select.js +45 -0
- package/node_modules/@pm2/js-api/node_modules/async/selectLimit.js +37 -0
- package/node_modules/@pm2/js-api/node_modules/async/selectSeries.js +35 -0
- package/node_modules/@pm2/js-api/node_modules/async/seq.js +91 -0
- package/node_modules/@pm2/js-api/node_modules/async/series.js +85 -0
- package/node_modules/@pm2/js-api/node_modules/async/setImmediate.js +45 -0
- package/node_modules/@pm2/js-api/node_modules/async/some.js +52 -0
- package/node_modules/@pm2/js-api/node_modules/async/someLimit.js +43 -0
- package/node_modules/@pm2/js-api/node_modules/async/someSeries.js +38 -0
- package/node_modules/@pm2/js-api/node_modules/async/sortBy.js +91 -0
- package/node_modules/@pm2/js-api/node_modules/async/timeout.js +89 -0
- package/node_modules/@pm2/js-api/node_modules/async/times.js +50 -0
- package/node_modules/@pm2/js-api/node_modules/async/timesLimit.js +42 -0
- package/node_modules/@pm2/js-api/node_modules/async/timesSeries.js +32 -0
- package/node_modules/@pm2/js-api/node_modules/async/transform.js +87 -0
- package/node_modules/@pm2/js-api/node_modules/async/tryEach.js +81 -0
- package/node_modules/@pm2/js-api/node_modules/async/unmemoize.js +25 -0
- package/node_modules/@pm2/js-api/node_modules/async/until.js +41 -0
- package/node_modules/@pm2/js-api/node_modules/async/waterfall.js +113 -0
- package/node_modules/@pm2/js-api/node_modules/async/whilst.js +72 -0
- package/node_modules/@pm2/js-api/node_modules/async/wrapSync.js +110 -0
- package/node_modules/@pm2/js-api/node_modules/eventemitter2/CHANGELOG.md +122 -0
- package/node_modules/@pm2/js-api/node_modules/eventemitter2/LICENSE.txt +21 -0
- package/node_modules/@pm2/js-api/node_modules/eventemitter2/README.md +809 -0
- package/node_modules/@pm2/js-api/node_modules/eventemitter2/eventemitter2.d.ts +150 -0
- package/node_modules/@pm2/js-api/node_modules/eventemitter2/index.js +1 -0
- package/node_modules/@pm2/js-api/node_modules/eventemitter2/lib/eventemitter2.js +1629 -0
- package/node_modules/@pm2/js-api/node_modules/eventemitter2/package.json +89 -0
- package/node_modules/@pm2/js-api/package.json +77 -0
- package/node_modules/@pm2/js-api/src/api_mappings.json +1 -0
- package/node_modules/@pm2/js-api/src/auth_strategies/browser_strategy.js +67 -0
- package/node_modules/@pm2/js-api/src/auth_strategies/embed_strategy.js +138 -0
- package/node_modules/@pm2/js-api/src/auth_strategies/standalone_strategy.js +33 -0
- package/node_modules/@pm2/js-api/src/auth_strategies/strategy.js +57 -0
- package/node_modules/@pm2/js-api/src/endpoint.js +34 -0
- package/node_modules/@pm2/js-api/src/keymetrics.js +78 -0
- package/node_modules/@pm2/js-api/src/namespace.js +76 -0
- package/node_modules/@pm2/js-api/src/network.js +464 -0
- package/node_modules/@pm2/js-api/src/utils/validator.js +164 -0
- package/node_modules/@pm2/js-api/src/utils/websocket.js +181 -0
- package/node_modules/@pm2/pm2-version-check/README.md +8 -0
- package/node_modules/@pm2/pm2-version-check/index.js +54 -0
- package/node_modules/@pm2/pm2-version-check/package.json +11 -0
- package/node_modules/@tootallnate/once/package.json +45 -0
- package/node_modules/@types/json5/README.md +18 -0
- package/node_modules/@types/json5/index.d.ts +44 -0
- package/node_modules/@types/json5/package.json +16 -0
- package/node_modules/@types/json5/types-metadata.json +25 -0
- package/package.json +11 -10
- package/server-config.json +3 -0
- package/server.js +249 -181
|
@@ -0,0 +1,761 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
|
|
6
|
+
|
|
7
|
+
var path = _interopDefault(require('path'));
|
|
8
|
+
var minimatch = _interopDefault(require('minimatch'));
|
|
9
|
+
var createDebug = _interopDefault(require('debug'));
|
|
10
|
+
var objectSchema = require('@humanwhocodes/object-schema');
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* @fileoverview ConfigSchema
|
|
14
|
+
* @author Nicholas C. Zakas
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
//------------------------------------------------------------------------------
|
|
18
|
+
// Helpers
|
|
19
|
+
//------------------------------------------------------------------------------
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Assets that a given value is an array.
|
|
23
|
+
* @param {*} value The value to check.
|
|
24
|
+
* @returns {void}
|
|
25
|
+
* @throws {TypeError} When the value is not an array.
|
|
26
|
+
*/
|
|
27
|
+
function assertIsArray(value) {
|
|
28
|
+
if (!Array.isArray(value)) {
|
|
29
|
+
throw new TypeError('Expected value to be an array.');
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Assets that a given value is an array containing only strings and functions.
|
|
35
|
+
* @param {*} value The value to check.
|
|
36
|
+
* @returns {void}
|
|
37
|
+
* @throws {TypeError} When the value is not an array of strings and functions.
|
|
38
|
+
*/
|
|
39
|
+
function assertIsArrayOfStringsAndFunctions(value, name) {
|
|
40
|
+
assertIsArray(value);
|
|
41
|
+
|
|
42
|
+
if (value.some(item => typeof item !== 'string' && typeof item !== 'function')) {
|
|
43
|
+
throw new TypeError('Expected array to only contain strings.');
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
//------------------------------------------------------------------------------
|
|
48
|
+
// Exports
|
|
49
|
+
//------------------------------------------------------------------------------
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* The base schema that every ConfigArray uses.
|
|
53
|
+
* @type Object
|
|
54
|
+
*/
|
|
55
|
+
const baseSchema = Object.freeze({
|
|
56
|
+
name: {
|
|
57
|
+
required: false,
|
|
58
|
+
merge() {
|
|
59
|
+
return undefined;
|
|
60
|
+
},
|
|
61
|
+
validate(value) {
|
|
62
|
+
if (typeof value !== 'string') {
|
|
63
|
+
throw new TypeError('Property must be a string.');
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
files: {
|
|
68
|
+
required: false,
|
|
69
|
+
merge() {
|
|
70
|
+
return undefined;
|
|
71
|
+
},
|
|
72
|
+
validate(value) {
|
|
73
|
+
|
|
74
|
+
// first check if it's an array
|
|
75
|
+
assertIsArray(value);
|
|
76
|
+
|
|
77
|
+
// then check each member
|
|
78
|
+
value.forEach(item => {
|
|
79
|
+
if (Array.isArray(item)) {
|
|
80
|
+
assertIsArrayOfStringsAndFunctions(item);
|
|
81
|
+
} else if (typeof item !== 'string' && typeof item !== 'function') {
|
|
82
|
+
throw new TypeError('Items must be a string, a function, or an array of strings and functions.');
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
ignores: {
|
|
89
|
+
required: false,
|
|
90
|
+
merge() {
|
|
91
|
+
return undefined;
|
|
92
|
+
},
|
|
93
|
+
validate: assertIsArrayOfStringsAndFunctions
|
|
94
|
+
}
|
|
95
|
+
});
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* @fileoverview ConfigArray
|
|
99
|
+
* @author Nicholas C. Zakas
|
|
100
|
+
*/
|
|
101
|
+
|
|
102
|
+
//------------------------------------------------------------------------------
|
|
103
|
+
// Helpers
|
|
104
|
+
//------------------------------------------------------------------------------
|
|
105
|
+
|
|
106
|
+
const debug = createDebug('@hwc/config-array');
|
|
107
|
+
|
|
108
|
+
const MINIMATCH_OPTIONS = {
|
|
109
|
+
// matchBase: true,
|
|
110
|
+
dot: true
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
const CONFIG_TYPES = new Set(['array', 'function']);
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* Shorthand for checking if a value is a string.
|
|
117
|
+
* @param {any} value The value to check.
|
|
118
|
+
* @returns {boolean} True if a string, false if not.
|
|
119
|
+
*/
|
|
120
|
+
function isString(value) {
|
|
121
|
+
return typeof value === 'string';
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* Normalizes a `ConfigArray` by flattening it and executing any functions
|
|
126
|
+
* that are found inside.
|
|
127
|
+
* @param {Array} items The items in a `ConfigArray`.
|
|
128
|
+
* @param {Object} context The context object to pass into any function
|
|
129
|
+
* found.
|
|
130
|
+
* @param {Array<string>} extraConfigTypes The config types to check.
|
|
131
|
+
* @returns {Promise<Array>} A flattened array containing only config objects.
|
|
132
|
+
* @throws {TypeError} When a config function returns a function.
|
|
133
|
+
*/
|
|
134
|
+
async function normalize(items, context, extraConfigTypes) {
|
|
135
|
+
|
|
136
|
+
const allowFunctions = extraConfigTypes.includes('function');
|
|
137
|
+
const allowArrays = extraConfigTypes.includes('array');
|
|
138
|
+
|
|
139
|
+
async function *flatTraverse(array) {
|
|
140
|
+
for (let item of array) {
|
|
141
|
+
if (typeof item === 'function') {
|
|
142
|
+
if (!allowFunctions) {
|
|
143
|
+
throw new TypeError('Unexpected function.');
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
item = item(context);
|
|
147
|
+
if (item.then) {
|
|
148
|
+
item = await item;
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
if (Array.isArray(item)) {
|
|
153
|
+
if (!allowArrays) {
|
|
154
|
+
throw new TypeError('Unexpected array.');
|
|
155
|
+
}
|
|
156
|
+
yield * flatTraverse(item);
|
|
157
|
+
} else if (typeof item === 'function') {
|
|
158
|
+
throw new TypeError('A config function can only return an object or array.');
|
|
159
|
+
} else {
|
|
160
|
+
yield item;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
/*
|
|
166
|
+
* Async iterables cannot be used with the spread operator, so we need to manually
|
|
167
|
+
* create the array to return.
|
|
168
|
+
*/
|
|
169
|
+
const asyncIterable = await flatTraverse(items);
|
|
170
|
+
const configs = [];
|
|
171
|
+
|
|
172
|
+
for await (const config of asyncIterable) {
|
|
173
|
+
configs.push(config);
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
return configs;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* Normalizes a `ConfigArray` by flattening it and executing any functions
|
|
181
|
+
* that are found inside.
|
|
182
|
+
* @param {Array} items The items in a `ConfigArray`.
|
|
183
|
+
* @param {Object} context The context object to pass into any function
|
|
184
|
+
* found.
|
|
185
|
+
* @param {Array<string>} extraConfigTypes The config types to check.
|
|
186
|
+
* @returns {Array} A flattened array containing only config objects.
|
|
187
|
+
* @throws {TypeError} When a config function returns a function.
|
|
188
|
+
*/
|
|
189
|
+
function normalizeSync(items, context, extraConfigTypes) {
|
|
190
|
+
|
|
191
|
+
const allowFunctions = extraConfigTypes.includes('function');
|
|
192
|
+
const allowArrays = extraConfigTypes.includes('array');
|
|
193
|
+
|
|
194
|
+
function *flatTraverse(array) {
|
|
195
|
+
for (let item of array) {
|
|
196
|
+
if (typeof item === 'function') {
|
|
197
|
+
|
|
198
|
+
if (!allowFunctions) {
|
|
199
|
+
throw new TypeError('Unexpected function.');
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
item = item(context);
|
|
203
|
+
if (item.then) {
|
|
204
|
+
throw new TypeError('Async config functions are not supported.');
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
if (Array.isArray(item)) {
|
|
209
|
+
|
|
210
|
+
if (!allowArrays) {
|
|
211
|
+
throw new TypeError('Unexpected array.');
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
yield * flatTraverse(item);
|
|
215
|
+
} else if (typeof item === 'function') {
|
|
216
|
+
throw new TypeError('A config function can only return an object or array.');
|
|
217
|
+
} else {
|
|
218
|
+
yield item;
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
return [...flatTraverse(items)];
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
/**
|
|
227
|
+
* Determines if a given file path should be ignored based on the given
|
|
228
|
+
* matcher.
|
|
229
|
+
* @param {Array<string|() => boolean>} ignores The ignore patterns to check.
|
|
230
|
+
* @param {string} filePath The absolute path of the file to check.
|
|
231
|
+
* @param {string} relativeFilePath The relative path of the file to check.
|
|
232
|
+
* @returns {boolean} True if the path should be ignored and false if not.
|
|
233
|
+
*/
|
|
234
|
+
function shouldIgnoreFilePath(ignores, filePath, relativeFilePath) {
|
|
235
|
+
|
|
236
|
+
// all files outside of the basePath are ignored
|
|
237
|
+
if (relativeFilePath.startsWith('..')) {
|
|
238
|
+
return true;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
let shouldIgnore = false;
|
|
242
|
+
|
|
243
|
+
for (const matcher of ignores) {
|
|
244
|
+
|
|
245
|
+
if (typeof matcher === 'function') {
|
|
246
|
+
shouldIgnore = shouldIgnore || matcher(filePath);
|
|
247
|
+
continue;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
/*
|
|
251
|
+
* If there's a negated pattern, that means anything matching
|
|
252
|
+
* must NOT be ignored. To do that, we need to use the `flipNegate`
|
|
253
|
+
* option for minimatch to check if the filepath matches the
|
|
254
|
+
* pattern specified after the !, and if that result is true,
|
|
255
|
+
* then we return false immediately because this file should
|
|
256
|
+
* never be ignored.
|
|
257
|
+
*/
|
|
258
|
+
if (matcher.startsWith('!')) {
|
|
259
|
+
|
|
260
|
+
/*
|
|
261
|
+
* The file must already be ignored in order to apply a negated
|
|
262
|
+
* pattern, because negated patterns simply remove files that
|
|
263
|
+
* would already be ignored.
|
|
264
|
+
*/
|
|
265
|
+
if (shouldIgnore &&
|
|
266
|
+
minimatch(relativeFilePath, matcher, {
|
|
267
|
+
...MINIMATCH_OPTIONS,
|
|
268
|
+
flipNegate: true
|
|
269
|
+
})) {
|
|
270
|
+
return false;
|
|
271
|
+
}
|
|
272
|
+
} else {
|
|
273
|
+
shouldIgnore = shouldIgnore || minimatch(relativeFilePath, matcher, MINIMATCH_OPTIONS);
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
return shouldIgnore;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
/**
|
|
282
|
+
* Determines if a given file path is matched by a config. If the config
|
|
283
|
+
* has no `files` field, then it matches; otherwise, if a `files` field
|
|
284
|
+
* is present then we match the globs in `files` and exclude any globs in
|
|
285
|
+
* `ignores`.
|
|
286
|
+
* @param {string} filePath The absolute file path to check.
|
|
287
|
+
* @param {Object} config The config object to check.
|
|
288
|
+
* @returns {boolean} True if the file path is matched by the config,
|
|
289
|
+
* false if not.
|
|
290
|
+
*/
|
|
291
|
+
function pathMatches(filePath, basePath, config) {
|
|
292
|
+
|
|
293
|
+
/*
|
|
294
|
+
* For both files and ignores, functions are passed the absolute
|
|
295
|
+
* file path while strings are compared against the relative
|
|
296
|
+
* file path.
|
|
297
|
+
*/
|
|
298
|
+
const relativeFilePath = path.relative(basePath, filePath);
|
|
299
|
+
|
|
300
|
+
// if files isn't an array, throw an error
|
|
301
|
+
if (!Array.isArray(config.files) || config.files.length === 0) {
|
|
302
|
+
throw new TypeError('The files key must be a non-empty array.');
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
// match both strings and functions
|
|
306
|
+
const match = pattern => {
|
|
307
|
+
|
|
308
|
+
if (isString(pattern)) {
|
|
309
|
+
return minimatch(relativeFilePath, pattern, MINIMATCH_OPTIONS);
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
if (typeof pattern === 'function') {
|
|
313
|
+
return pattern(filePath);
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
throw new TypeError(`Unexpected matcher type ${pattern}.`);
|
|
317
|
+
};
|
|
318
|
+
|
|
319
|
+
// check for all matches to config.files
|
|
320
|
+
let filePathMatchesPattern = config.files.some(pattern => {
|
|
321
|
+
if (Array.isArray(pattern)) {
|
|
322
|
+
return pattern.every(match);
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
return match(pattern);
|
|
326
|
+
});
|
|
327
|
+
|
|
328
|
+
/*
|
|
329
|
+
* If the file path matches the config.files patterns, then check to see
|
|
330
|
+
* if there are any files to ignore.
|
|
331
|
+
*/
|
|
332
|
+
if (filePathMatchesPattern && config.ignores) {
|
|
333
|
+
filePathMatchesPattern = !shouldIgnoreFilePath(config.ignores, filePath, relativeFilePath);
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
return filePathMatchesPattern;
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
/**
|
|
340
|
+
* Ensures that a ConfigArray has been normalized.
|
|
341
|
+
* @param {ConfigArray} configArray The ConfigArray to check.
|
|
342
|
+
* @returns {void}
|
|
343
|
+
* @throws {Error} When the `ConfigArray` is not normalized.
|
|
344
|
+
*/
|
|
345
|
+
function assertNormalized(configArray) {
|
|
346
|
+
// TODO: Throw more verbose error
|
|
347
|
+
if (!configArray.isNormalized()) {
|
|
348
|
+
throw new Error('ConfigArray must be normalized to perform this operation.');
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
/**
|
|
353
|
+
* Ensures that config types are valid.
|
|
354
|
+
* @param {Array<string>} extraConfigTypes The config types to check.
|
|
355
|
+
* @returns {void}
|
|
356
|
+
* @throws {Error} When the config types array is invalid.
|
|
357
|
+
*/
|
|
358
|
+
function assertExtraConfigTypes(extraConfigTypes) {
|
|
359
|
+
if (extraConfigTypes.length > 2) {
|
|
360
|
+
throw new TypeError('configTypes must be an array with at most two items.');
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
for (const configType of extraConfigTypes) {
|
|
364
|
+
if (!CONFIG_TYPES.has(configType)) {
|
|
365
|
+
throw new TypeError(`Unexpected config type "${configType}" found. Expected one of: "object", "array", "function".`);
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
//------------------------------------------------------------------------------
|
|
371
|
+
// Public Interface
|
|
372
|
+
//------------------------------------------------------------------------------
|
|
373
|
+
|
|
374
|
+
const ConfigArraySymbol = {
|
|
375
|
+
isNormalized: Symbol('isNormalized'),
|
|
376
|
+
configCache: Symbol('configCache'),
|
|
377
|
+
schema: Symbol('schema'),
|
|
378
|
+
finalizeConfig: Symbol('finalizeConfig'),
|
|
379
|
+
preprocessConfig: Symbol('preprocessConfig')
|
|
380
|
+
};
|
|
381
|
+
|
|
382
|
+
// used to store calculate data for faster lookup
|
|
383
|
+
const dataCache = new WeakMap();
|
|
384
|
+
|
|
385
|
+
/**
|
|
386
|
+
* Represents an array of config objects and provides method for working with
|
|
387
|
+
* those config objects.
|
|
388
|
+
*/
|
|
389
|
+
class ConfigArray extends Array {
|
|
390
|
+
|
|
391
|
+
/**
|
|
392
|
+
* Creates a new instance of ConfigArray.
|
|
393
|
+
* @param {Iterable|Function|Object} configs An iterable yielding config
|
|
394
|
+
* objects, or a config function, or a config object.
|
|
395
|
+
* @param {string} [options.basePath=""] The path of the config file
|
|
396
|
+
* @param {boolean} [options.normalized=false] Flag indicating if the
|
|
397
|
+
* configs have already been normalized.
|
|
398
|
+
* @param {Object} [options.schema] The additional schema
|
|
399
|
+
* definitions to use for the ConfigArray schema.
|
|
400
|
+
* @param {Array<string>} [options.configTypes] List of config types supported.
|
|
401
|
+
*/
|
|
402
|
+
constructor(configs, {
|
|
403
|
+
basePath = '',
|
|
404
|
+
normalized = false,
|
|
405
|
+
schema: customSchema,
|
|
406
|
+
extraConfigTypes = []
|
|
407
|
+
} = {}
|
|
408
|
+
) {
|
|
409
|
+
super();
|
|
410
|
+
|
|
411
|
+
/**
|
|
412
|
+
* Tracks if the array has been normalized.
|
|
413
|
+
* @property isNormalized
|
|
414
|
+
* @type boolean
|
|
415
|
+
* @private
|
|
416
|
+
*/
|
|
417
|
+
this[ConfigArraySymbol.isNormalized] = normalized;
|
|
418
|
+
|
|
419
|
+
/**
|
|
420
|
+
* The schema used for validating and merging configs.
|
|
421
|
+
* @property schema
|
|
422
|
+
* @type ObjectSchema
|
|
423
|
+
* @private
|
|
424
|
+
*/
|
|
425
|
+
this[ConfigArraySymbol.schema] = new objectSchema.ObjectSchema({
|
|
426
|
+
...customSchema,
|
|
427
|
+
...baseSchema
|
|
428
|
+
});
|
|
429
|
+
|
|
430
|
+
/**
|
|
431
|
+
* The path of the config file that this array was loaded from.
|
|
432
|
+
* This is used to calculate filename matches.
|
|
433
|
+
* @property basePath
|
|
434
|
+
* @type string
|
|
435
|
+
*/
|
|
436
|
+
this.basePath = basePath;
|
|
437
|
+
|
|
438
|
+
assertExtraConfigTypes(extraConfigTypes);
|
|
439
|
+
|
|
440
|
+
/**
|
|
441
|
+
* The supported config types.
|
|
442
|
+
* @property configTypes
|
|
443
|
+
* @type Array<string>
|
|
444
|
+
*/
|
|
445
|
+
this.extraConfigTypes = Object.freeze([...extraConfigTypes]);
|
|
446
|
+
|
|
447
|
+
/**
|
|
448
|
+
* A cache to store calculated configs for faster repeat lookup.
|
|
449
|
+
* @property configCache
|
|
450
|
+
* @type Map
|
|
451
|
+
* @private
|
|
452
|
+
*/
|
|
453
|
+
this[ConfigArraySymbol.configCache] = new Map();
|
|
454
|
+
|
|
455
|
+
// init cache
|
|
456
|
+
dataCache.set(this, { explicitMatches: new Map() });
|
|
457
|
+
|
|
458
|
+
// load the configs into this array
|
|
459
|
+
if (Array.isArray(configs)) {
|
|
460
|
+
this.push(...configs);
|
|
461
|
+
} else {
|
|
462
|
+
this.push(configs);
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
/**
|
|
468
|
+
* Prevent normal array methods from creating a new `ConfigArray` instance.
|
|
469
|
+
* This is to ensure that methods such as `slice()` won't try to create a
|
|
470
|
+
* new instance of `ConfigArray` behind the scenes as doing so may throw
|
|
471
|
+
* an error due to the different constructor signature.
|
|
472
|
+
* @returns {Function} The `Array` constructor.
|
|
473
|
+
*/
|
|
474
|
+
static get [Symbol.species]() {
|
|
475
|
+
return Array;
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
/**
|
|
479
|
+
* Returns the `files` globs from every config object in the array.
|
|
480
|
+
* This can be used to determine which files will be matched by a
|
|
481
|
+
* config array or to use as a glob pattern when no patterns are provided
|
|
482
|
+
* for a command line interface.
|
|
483
|
+
* @returns {Array<string|Function>} An array of matchers.
|
|
484
|
+
*/
|
|
485
|
+
get files() {
|
|
486
|
+
|
|
487
|
+
assertNormalized(this);
|
|
488
|
+
|
|
489
|
+
// if this data has been cached, retrieve it
|
|
490
|
+
const cache = dataCache.get(this);
|
|
491
|
+
|
|
492
|
+
if (cache.files) {
|
|
493
|
+
return cache.files;
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
// otherwise calculate it
|
|
497
|
+
|
|
498
|
+
const result = [];
|
|
499
|
+
|
|
500
|
+
for (const config of this) {
|
|
501
|
+
if (config.files) {
|
|
502
|
+
config.files.forEach(filePattern => {
|
|
503
|
+
result.push(filePattern);
|
|
504
|
+
});
|
|
505
|
+
}
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
// store result
|
|
509
|
+
cache.files = result;
|
|
510
|
+
dataCache.set(this, cache);
|
|
511
|
+
|
|
512
|
+
return result;
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
/**
|
|
516
|
+
* Returns ignore matchers that should always be ignored regardless of
|
|
517
|
+
* the matching `files` fields in any configs. This is necessary to mimic
|
|
518
|
+
* the behavior of things like .gitignore and .eslintignore, allowing a
|
|
519
|
+
* globbing operation to be faster.
|
|
520
|
+
* @returns {string[]} An array of string patterns and functions to be ignored.
|
|
521
|
+
*/
|
|
522
|
+
get ignores() {
|
|
523
|
+
|
|
524
|
+
assertNormalized(this);
|
|
525
|
+
|
|
526
|
+
// if this data has been cached, retrieve it
|
|
527
|
+
const cache = dataCache.get(this);
|
|
528
|
+
|
|
529
|
+
if (cache.ignores) {
|
|
530
|
+
return cache.ignores;
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
// otherwise calculate it
|
|
534
|
+
|
|
535
|
+
const result = [];
|
|
536
|
+
|
|
537
|
+
for (const config of this) {
|
|
538
|
+
|
|
539
|
+
/*
|
|
540
|
+
* We only count ignores if there are no other keys in the object.
|
|
541
|
+
* In this case, it acts list a globally ignored pattern. If there
|
|
542
|
+
* are additional keys, then ignores act like exclusions.
|
|
543
|
+
*/
|
|
544
|
+
if (config.ignores && Object.keys(config).length === 1) {
|
|
545
|
+
result.push(...config.ignores);
|
|
546
|
+
}
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
// store result
|
|
550
|
+
cache.ignores = result;
|
|
551
|
+
dataCache.set(this, cache);
|
|
552
|
+
|
|
553
|
+
return result;
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
/**
|
|
557
|
+
* Indicates if the config array has been normalized.
|
|
558
|
+
* @returns {boolean} True if the config array is normalized, false if not.
|
|
559
|
+
*/
|
|
560
|
+
isNormalized() {
|
|
561
|
+
return this[ConfigArraySymbol.isNormalized];
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
/**
|
|
565
|
+
* Normalizes a config array by flattening embedded arrays and executing
|
|
566
|
+
* config functions.
|
|
567
|
+
* @param {ConfigContext} context The context object for config functions.
|
|
568
|
+
* @returns {Promise<ConfigArray>} The current ConfigArray instance.
|
|
569
|
+
*/
|
|
570
|
+
async normalize(context = {}) {
|
|
571
|
+
|
|
572
|
+
if (!this.isNormalized()) {
|
|
573
|
+
const normalizedConfigs = await normalize(this, context, this.extraConfigTypes);
|
|
574
|
+
this.length = 0;
|
|
575
|
+
this.push(...normalizedConfigs.map(this[ConfigArraySymbol.preprocessConfig].bind(this)));
|
|
576
|
+
this[ConfigArraySymbol.isNormalized] = true;
|
|
577
|
+
|
|
578
|
+
// prevent further changes
|
|
579
|
+
Object.freeze(this);
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
return this;
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
/**
|
|
586
|
+
* Normalizes a config array by flattening embedded arrays and executing
|
|
587
|
+
* config functions.
|
|
588
|
+
* @param {ConfigContext} context The context object for config functions.
|
|
589
|
+
* @returns {ConfigArray} The current ConfigArray instance.
|
|
590
|
+
*/
|
|
591
|
+
normalizeSync(context = {}) {
|
|
592
|
+
|
|
593
|
+
if (!this.isNormalized()) {
|
|
594
|
+
const normalizedConfigs = normalizeSync(this, context, this.extraConfigTypes);
|
|
595
|
+
this.length = 0;
|
|
596
|
+
this.push(...normalizedConfigs.map(this[ConfigArraySymbol.preprocessConfig].bind(this)));
|
|
597
|
+
this[ConfigArraySymbol.isNormalized] = true;
|
|
598
|
+
|
|
599
|
+
// prevent further changes
|
|
600
|
+
Object.freeze(this);
|
|
601
|
+
}
|
|
602
|
+
|
|
603
|
+
return this;
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
/**
|
|
607
|
+
* Finalizes the state of a config before being cached and returned by
|
|
608
|
+
* `getConfig()`. Does nothing by default but is provided to be
|
|
609
|
+
* overridden by subclasses as necessary.
|
|
610
|
+
* @param {Object} config The config to finalize.
|
|
611
|
+
* @returns {Object} The finalized config.
|
|
612
|
+
*/
|
|
613
|
+
[ConfigArraySymbol.finalizeConfig](config) {
|
|
614
|
+
return config;
|
|
615
|
+
}
|
|
616
|
+
|
|
617
|
+
/**
|
|
618
|
+
* Preprocesses a config during the normalization process. This is the
|
|
619
|
+
* method to override if you want to convert an array item before it is
|
|
620
|
+
* validated for the first time. For example, if you want to replace a
|
|
621
|
+
* string with an object, this is the method to override.
|
|
622
|
+
* @param {Object} config The config to preprocess.
|
|
623
|
+
* @returns {Object} The config to use in place of the argument.
|
|
624
|
+
*/
|
|
625
|
+
[ConfigArraySymbol.preprocessConfig](config) {
|
|
626
|
+
return config;
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
/**
|
|
630
|
+
* Determines if a given file path explicitly matches a `files` entry
|
|
631
|
+
* and also doesn't match an `ignores` entry. Configs that don't have
|
|
632
|
+
* a `files` property are not considered an explicit match.
|
|
633
|
+
* @param {string} filePath The complete path of a file to check.
|
|
634
|
+
* @returns {boolean} True if the file path matches a `files` entry
|
|
635
|
+
* or false if not.
|
|
636
|
+
*/
|
|
637
|
+
isExplicitMatch(filePath) {
|
|
638
|
+
|
|
639
|
+
assertNormalized(this);
|
|
640
|
+
|
|
641
|
+
const cache = dataCache.get(this);
|
|
642
|
+
|
|
643
|
+
// first check the cache to avoid duplicate work
|
|
644
|
+
let result = cache.explicitMatches.get(filePath);
|
|
645
|
+
|
|
646
|
+
if (typeof result == 'boolean') {
|
|
647
|
+
return result;
|
|
648
|
+
}
|
|
649
|
+
|
|
650
|
+
// TODO: Maybe move elsewhere? Maybe combine with getConfig() logic?
|
|
651
|
+
const relativeFilePath = path.relative(this.basePath, filePath);
|
|
652
|
+
|
|
653
|
+
if (shouldIgnoreFilePath(this.ignores, filePath, relativeFilePath)) {
|
|
654
|
+
debug(`Ignoring ${filePath}`);
|
|
655
|
+
|
|
656
|
+
// cache and return result
|
|
657
|
+
cache.explicitMatches.set(filePath, false);
|
|
658
|
+
return false;
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
// filePath isn't automatically ignored, so try to find a match
|
|
662
|
+
|
|
663
|
+
for (const config of this) {
|
|
664
|
+
|
|
665
|
+
if (!config.files) {
|
|
666
|
+
continue;
|
|
667
|
+
}
|
|
668
|
+
|
|
669
|
+
if (pathMatches(filePath, this.basePath, config)) {
|
|
670
|
+
debug(`Matching config found for ${filePath}`);
|
|
671
|
+
cache.explicitMatches.set(filePath, true);
|
|
672
|
+
return true;
|
|
673
|
+
}
|
|
674
|
+
}
|
|
675
|
+
|
|
676
|
+
return false;
|
|
677
|
+
}
|
|
678
|
+
|
|
679
|
+
/**
|
|
680
|
+
* Returns the config object for a given file path.
|
|
681
|
+
* @param {string} filePath The complete path of a file to get a config for.
|
|
682
|
+
* @returns {Object} The config object for this file.
|
|
683
|
+
*/
|
|
684
|
+
getConfig(filePath) {
|
|
685
|
+
|
|
686
|
+
assertNormalized(this);
|
|
687
|
+
|
|
688
|
+
// first check the cache to avoid duplicate work
|
|
689
|
+
let finalConfig = this[ConfigArraySymbol.configCache].get(filePath);
|
|
690
|
+
|
|
691
|
+
if (finalConfig) {
|
|
692
|
+
return finalConfig;
|
|
693
|
+
}
|
|
694
|
+
|
|
695
|
+
// TODO: Maybe move elsewhere?
|
|
696
|
+
const relativeFilePath = path.relative(this.basePath, filePath);
|
|
697
|
+
|
|
698
|
+
if (shouldIgnoreFilePath(this.ignores, filePath, relativeFilePath)) {
|
|
699
|
+
debug(`Ignoring ${filePath}`);
|
|
700
|
+
|
|
701
|
+
// cache and return result - finalConfig is undefined at this point
|
|
702
|
+
this[ConfigArraySymbol.configCache].set(filePath, finalConfig);
|
|
703
|
+
return finalConfig;
|
|
704
|
+
}
|
|
705
|
+
|
|
706
|
+
// filePath isn't automatically ignored, so try to construct config
|
|
707
|
+
|
|
708
|
+
const matchingConfigs = [];
|
|
709
|
+
let matchFound = false;
|
|
710
|
+
|
|
711
|
+
for (const config of this) {
|
|
712
|
+
|
|
713
|
+
if (!config.files) {
|
|
714
|
+
debug(`Universal config found for ${filePath}`);
|
|
715
|
+
matchingConfigs.push(config);
|
|
716
|
+
continue;
|
|
717
|
+
}
|
|
718
|
+
|
|
719
|
+
if (pathMatches(filePath, this.basePath, config)) {
|
|
720
|
+
debug(`Matching config found for ${filePath}`);
|
|
721
|
+
matchingConfigs.push(config);
|
|
722
|
+
matchFound = true;
|
|
723
|
+
continue;
|
|
724
|
+
}
|
|
725
|
+
}
|
|
726
|
+
|
|
727
|
+
// if matching both files and ignores, there will be no config to create
|
|
728
|
+
if (!matchFound) {
|
|
729
|
+
debug(`No matching configs found for ${filePath}`);
|
|
730
|
+
|
|
731
|
+
// cache and return result - finalConfig is undefined at this point
|
|
732
|
+
this[ConfigArraySymbol.configCache].set(filePath, finalConfig);
|
|
733
|
+
return finalConfig;
|
|
734
|
+
}
|
|
735
|
+
|
|
736
|
+
// otherwise construct the config
|
|
737
|
+
|
|
738
|
+
finalConfig = matchingConfigs.reduce((result, config) => {
|
|
739
|
+
return this[ConfigArraySymbol.schema].merge(result, config);
|
|
740
|
+
}, {}, this);
|
|
741
|
+
|
|
742
|
+
finalConfig = this[ConfigArraySymbol.finalizeConfig](finalConfig);
|
|
743
|
+
|
|
744
|
+
this[ConfigArraySymbol.configCache].set(filePath, finalConfig);
|
|
745
|
+
|
|
746
|
+
return finalConfig;
|
|
747
|
+
}
|
|
748
|
+
|
|
749
|
+
/**
|
|
750
|
+
* Determines if the given filepath is ignored based on the configs.
|
|
751
|
+
* @param {string} filePath The complete path of a file to check.
|
|
752
|
+
* @returns {boolean} True if the path is ignored, false if not.
|
|
753
|
+
*/
|
|
754
|
+
isIgnored(filePath) {
|
|
755
|
+
return this.getConfig(filePath) === undefined;
|
|
756
|
+
}
|
|
757
|
+
|
|
758
|
+
}
|
|
759
|
+
|
|
760
|
+
exports.ConfigArray = ConfigArray;
|
|
761
|
+
exports.ConfigArraySymbol = ConfigArraySymbol;
|