@contrast/agent-bundle 5.40.0 → 5.42.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/node_modules/@contrast/agent/package.json +12 -11
- package/node_modules/@contrast/agent-swc-plugin/index.js +9 -3
- package/node_modules/@contrast/agent-swc-plugin/methods.js +15 -1
- package/node_modules/@contrast/agent-swc-plugin/package.json +5 -8
- package/node_modules/@contrast/agent-swc-plugin/rewriter.wasm +0 -0
- package/node_modules/@contrast/agentify/lib/index.js +2 -2
- package/node_modules/@contrast/agentify/package.json +15 -14
- package/node_modules/@contrast/architecture-components/package.json +5 -5
- package/node_modules/@contrast/assess/lib/dataflow/propagation/install/util-format.js +44 -21
- package/node_modules/@contrast/assess/lib/dataflow/sources/install/body-parser.js +1 -1
- package/node_modules/@contrast/assess/lib/dataflow/sources/install/koa/koa-bodyparsers.js +3 -1
- package/node_modules/@contrast/assess/lib/dataflow/sources/install/qs6.js +5 -5
- package/node_modules/@contrast/assess/lib/dataflow/sources/install/querystring.js +2 -1
- package/node_modules/@contrast/assess/lib/index.d.ts +0 -1
- package/node_modules/@contrast/assess/lib/make-source-context.js +7 -37
- package/node_modules/@contrast/assess/lib/sampler/common.js +7 -11
- package/node_modules/@contrast/assess/package.json +12 -11
- package/node_modules/@contrast/common/lib/types.d.ts +7 -1
- package/node_modules/@contrast/common/package.json +1 -1
- package/node_modules/@contrast/config/lib/common.js +1 -1
- package/node_modules/@contrast/config/lib/config.js +49 -27
- package/node_modules/@contrast/config/lib/index.d.ts +2 -2
- package/node_modules/@contrast/config/lib/options.js +4 -4
- package/node_modules/@contrast/config/package.json +4 -3
- package/node_modules/@contrast/core/lib/sensitive-data-masking/protect-listener.js +15 -15
- package/node_modules/@contrast/core/package.json +6 -6
- package/node_modules/@contrast/deadzones/package.json +5 -5
- package/node_modules/@contrast/dep-hooks/package.json +3 -3
- package/node_modules/@contrast/esm-hooks/package.json +6 -6
- package/node_modules/@contrast/instrumentation/lib/index.js +0 -1
- package/node_modules/@contrast/instrumentation/package.json +5 -5
- package/node_modules/@contrast/library-analysis/lib/install/library-reporting/dep.json +298 -148
- package/node_modules/@contrast/library-analysis/package.json +4 -4
- package/node_modules/@contrast/logger/lib/serializers.js +2 -2
- package/node_modules/@contrast/logger/package.json +3 -3
- package/node_modules/@contrast/metrics/package.json +6 -6
- package/node_modules/@contrast/patcher/package.json +2 -2
- package/node_modules/@contrast/protect/lib/get-source-context.js +3 -1
- package/node_modules/@contrast/protect/lib/index.js +6 -1
- package/node_modules/@contrast/protect/lib/input-analysis/handlers.js +7 -9
- package/node_modules/@contrast/protect/lib/input-analysis/install/http.js +18 -19
- package/node_modules/@contrast/protect/lib/input-analysis/install/qs6.js +18 -17
- package/node_modules/@contrast/protect/lib/input-analysis/install/universal-cookie4.js +2 -3
- package/node_modules/@contrast/protect/lib/make-source-context.js +22 -66
- package/node_modules/@contrast/protect/lib/semantic-analysis/handlers.js +73 -72
- package/node_modules/@contrast/protect/package.json +11 -11
- package/node_modules/@contrast/reporter/lib/reporters/contrast-ui/endpoints/application-activity/index.js +7 -7
- package/node_modules/@contrast/reporter/lib/reporters/contrast-ui/endpoints/application-activity/translations.d.ts +3 -3
- package/node_modules/@contrast/reporter/lib/reporters/contrast-ui/endpoints/application-activity/translations.js +24 -21
- package/node_modules/@contrast/reporter/lib/reporters/contrast-ui/endpoints/traces/index.d.ts +11 -11
- package/node_modules/@contrast/reporter/lib/reporters/contrast-ui/endpoints/traces/index.js +76 -86
- package/node_modules/@contrast/reporter/lib/reporters/contrast-ui/endpoints/traces/translations.d.ts +1 -2
- package/node_modules/@contrast/reporter/lib/reporters/contrast-ui/endpoints/traces/translations.js +8 -2
- package/node_modules/@contrast/reporter/lib/reporters/security-logger/index.d.ts +2 -2
- package/node_modules/@contrast/reporter/lib/reporters/security-logger/index.js +22 -20
- package/node_modules/@contrast/reporter/package.json +7 -7
- package/node_modules/@contrast/rewriter/lib/index.js +2 -2
- package/node_modules/@contrast/rewriter/package.json +6 -6
- package/node_modules/@contrast/route-coverage/lib/index.js +1 -9
- package/node_modules/@contrast/route-coverage/lib/install/express/express5.js +17 -19
- package/node_modules/@contrast/route-coverage/lib/install/hapi.js +9 -2
- package/node_modules/@contrast/route-coverage/package.json +8 -8
- package/node_modules/@contrast/scopes/package.json +5 -5
- package/node_modules/@contrast/sec-obs/lib/traces/http.js +2 -2
- package/node_modules/@contrast/sec-obs/lib/traces/http.test.js +17 -0
- package/node_modules/@contrast/sec-obs/lib/traces/outbound-service-call.js +2 -2
- package/node_modules/@contrast/sec-obs/lib/traces/outbound-service-call.test.js +17 -0
- package/node_modules/@contrast/sec-obs/package.json +9 -9
- package/node_modules/@contrast/sources/lib/index.js +109 -0
- package/node_modules/@contrast/sources/lib/index.test.js +120 -0
- package/node_modules/@contrast/{route-coverage/lib/normalized-url-mapper.js → sources/lib/normalized-uri-mapper.js} +10 -3
- package/node_modules/@contrast/sources/lib/normalized-uri-mapper.test.js +59 -0
- package/node_modules/@contrast/{sec-obs/node_modules/@contrast/core/lib/sensitive-data-masking/constants.js → sources/lib/req-data.js} +0 -6
- package/node_modules/@contrast/sources/lib/source-info.js +183 -0
- package/node_modules/@contrast/sources/lib/source-info.test.js +68 -0
- package/node_modules/@contrast/sources/package.json +16 -0
- package/node_modules/@contrast/telemetry/package.json +6 -6
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/experimental_attributes.d.ts +2831 -77
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/experimental_attributes.js +2831 -77
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/experimental_attributes.js.map +1 -1
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/experimental_metrics.d.ts +415 -98
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/experimental_metrics.js +415 -98
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/experimental_metrics.js.map +1 -1
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/stable_attributes.d.ts +106 -0
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/stable_attributes.js +106 -0
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/stable_attributes.js.map +1 -1
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/version.d.ts +1 -1
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/version.js +1 -1
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/version.js.map +1 -1
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/experimental_attributes.d.ts +2831 -77
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/experimental_attributes.js +2831 -77
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/experimental_attributes.js.map +1 -1
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/experimental_metrics.d.ts +415 -98
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/experimental_metrics.js +415 -98
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/experimental_metrics.js.map +1 -1
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/stable_attributes.d.ts +106 -0
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/stable_attributes.js +106 -0
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/stable_attributes.js.map +1 -1
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/version.d.ts +1 -1
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/version.js +1 -1
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/version.js.map +1 -1
- package/node_modules/@opentelemetry/semantic-conventions/build/src/experimental_attributes.d.ts +2831 -77
- package/node_modules/@opentelemetry/semantic-conventions/build/src/experimental_attributes.js +2858 -103
- package/node_modules/@opentelemetry/semantic-conventions/build/src/experimental_attributes.js.map +1 -1
- package/node_modules/@opentelemetry/semantic-conventions/build/src/experimental_metrics.d.ts +415 -98
- package/node_modules/@opentelemetry/semantic-conventions/build/src/experimental_metrics.js +420 -102
- package/node_modules/@opentelemetry/semantic-conventions/build/src/experimental_metrics.js.map +1 -1
- package/node_modules/@opentelemetry/semantic-conventions/build/src/stable_attributes.d.ts +106 -0
- package/node_modules/@opentelemetry/semantic-conventions/build/src/stable_attributes.js +106 -0
- package/node_modules/@opentelemetry/semantic-conventions/build/src/stable_attributes.js.map +1 -1
- package/node_modules/@opentelemetry/semantic-conventions/build/src/version.d.ts +1 -1
- package/node_modules/@opentelemetry/semantic-conventions/build/src/version.js +1 -1
- package/node_modules/@opentelemetry/semantic-conventions/build/src/version.js.map +1 -1
- package/node_modules/@opentelemetry/semantic-conventions/package.json +3 -3
- package/node_modules/@swc/types/index.d.ts +3 -2
- package/node_modules/@swc/types/package.json +1 -1
- package/node_modules/@types/node/README.md +2 -2
- package/node_modules/@types/node/crypto.d.ts +17 -1
- package/node_modules/@types/node/fs/promises.d.ts +7 -3
- package/node_modules/@types/node/fs.d.ts +11 -1
- package/node_modules/@types/node/http.d.ts +4 -19
- package/node_modules/@types/node/http2.d.ts +13 -11
- package/node_modules/@types/node/inspector.d.ts +163 -6
- package/node_modules/@types/node/module.d.ts +24 -0
- package/node_modules/@types/node/package.json +4 -89
- package/node_modules/@types/node/perf_hooks.d.ts +14 -0
- package/node_modules/@types/node/repl.d.ts +11 -1
- package/node_modules/@types/node/sqlite.d.ts +0 -1
- package/node_modules/@types/node/stream/web.d.ts +4 -0
- package/node_modules/@types/node/stream.d.ts +17 -6
- package/node_modules/@types/node/test.d.ts +16 -1
- package/node_modules/@types/node/timers.d.ts +0 -2
- package/node_modules/@types/node/url.d.ts +1 -1
- package/node_modules/@types/node/util.d.ts +6 -2
- package/node_modules/@types/node/worker_threads.d.ts +12 -0
- package/node_modules/@types/node/zlib.d.ts +8 -2
- package/node_modules/axios/CHANGELOG.md +17 -0
- package/node_modules/axios/README.md +1 -4
- package/node_modules/axios/dist/axios.js +39 -5
- package/node_modules/axios/dist/axios.js.map +1 -1
- package/node_modules/axios/dist/axios.min.js +2 -2
- package/node_modules/axios/dist/axios.min.js.map +1 -1
- package/node_modules/axios/dist/browser/axios.cjs +46 -9
- package/node_modules/axios/dist/browser/axios.cjs.map +1 -1
- package/node_modules/axios/dist/esm/axios.js +46 -9
- package/node_modules/axios/dist/esm/axios.js.map +1 -1
- package/node_modules/axios/dist/esm/axios.min.js +2 -2
- package/node_modules/axios/dist/esm/axios.min.js.map +1 -1
- package/node_modules/axios/dist/node/axios.cjs +46 -9
- package/node_modules/axios/dist/node/axios.cjs.map +1 -1
- package/node_modules/axios/index.d.cts +13 -2
- package/node_modules/axios/lib/core/Axios.js +2 -2
- package/node_modules/axios/lib/core/mergeConfig.js +1 -1
- package/node_modules/axios/lib/env/data.js +1 -1
- package/node_modules/axios/lib/helpers/throttle.js +1 -1
- package/node_modules/axios/lib/helpers/toURLEncodedForm.js +4 -3
- package/node_modules/axios/lib/utils.js +36 -0
- package/node_modules/axios/package.json +5 -5
- package/node_modules/deepmerge/.editorconfig +7 -0
- package/node_modules/deepmerge/.eslintcache +1 -0
- package/node_modules/deepmerge/changelog.md +167 -0
- package/node_modules/deepmerge/dist/cjs.js +133 -0
- package/node_modules/deepmerge/dist/umd.js +139 -0
- package/node_modules/deepmerge/index.d.ts +20 -0
- package/node_modules/deepmerge/index.js +106 -0
- package/node_modules/deepmerge/license.txt +21 -0
- package/node_modules/deepmerge/package.json +42 -0
- package/node_modules/deepmerge/readme.md +264 -0
- package/node_modules/deepmerge/rollup.config.js +22 -0
- package/node_modules/follow-redirects/package.json +1 -1
- package/node_modules/form-data/CHANGELOG.md +601 -0
- package/node_modules/form-data/{Readme.md → README.md} +4 -4
- package/node_modules/form-data/lib/form_data.js +2 -6
- package/node_modules/form-data/package.json +22 -6
- package/node_modules/nan/.github/workflows/ci.yml +8 -10
- package/node_modules/nan/.pre-commit-config.yaml +8 -0
- package/node_modules/nan/CHANGELOG.md +5 -1
- package/node_modules/nan/README.md +4 -4
- package/node_modules/nan/nan.h +16 -12
- package/node_modules/nan/nan_callbacks.h +13 -0
- package/node_modules/nan/nan_callbacks_12_inl.h +16 -2
- package/node_modules/nan/nan_callbacks_pre_12_inl.h +6 -2
- package/node_modules/nan/nan_maybe_43_inl.h +1 -1
- package/node_modules/nan/nan_maybe_pre_43_inl.h +1 -1
- package/node_modules/nan/nan_scriptorigin.h +11 -9
- package/node_modules/nan/nan_typedarray_contents.h +1 -1
- package/node_modules/nan/package.json +2 -2
- package/node_modules/undici-types/agent.d.ts +4 -0
- package/node_modules/undici-types/client-stats.d.ts +15 -0
- package/node_modules/undici-types/client.d.ts +6 -3
- package/node_modules/undici-types/mock-agent.d.ts +3 -0
- package/node_modules/undici-types/package.json +1 -1
- package/node_modules/undici-types/pool.d.ts +2 -0
- package/node_modules/undici-types/proxy-agent.d.ts +1 -0
- package/node_modules/yaml/README.md +2 -20
- package/node_modules/yaml/browser/dist/stringify/stringifyString.js +1 -1
- package/node_modules/yaml/dist/stringify/stringifyString.js +1 -1
- package/node_modules/yaml/package.json +2 -1
- package/package.json +3 -2
- package/node_modules/@contrast/agentify/lib/sources.js +0 -95
- package/node_modules/@contrast/sec-obs/node_modules/@contrast/common/LICENSE +0 -12
- package/node_modules/@contrast/sec-obs/node_modules/@contrast/common/lib/constants.d.ts +0 -385
- package/node_modules/@contrast/sec-obs/node_modules/@contrast/common/lib/constants.js +0 -270
- package/node_modules/@contrast/sec-obs/node_modules/@contrast/common/lib/index.d.ts +0 -40
- package/node_modules/@contrast/sec-obs/node_modules/@contrast/common/lib/index.js +0 -228
- package/node_modules/@contrast/sec-obs/node_modules/@contrast/common/lib/primordials.d.ts +0 -65
- package/node_modules/@contrast/sec-obs/node_modules/@contrast/common/lib/primordials.js +0 -66
- package/node_modules/@contrast/sec-obs/node_modules/@contrast/common/lib/types.d.ts +0 -383
- package/node_modules/@contrast/sec-obs/node_modules/@contrast/common/lib/types.js +0 -30
- package/node_modules/@contrast/sec-obs/node_modules/@contrast/common/package.json +0 -23
- package/node_modules/@contrast/sec-obs/node_modules/@contrast/config/LICENSE +0 -12
- package/node_modules/@contrast/sec-obs/node_modules/@contrast/config/README.md +0 -44
- package/node_modules/@contrast/sec-obs/node_modules/@contrast/config/lib/common.js +0 -131
- package/node_modules/@contrast/sec-obs/node_modules/@contrast/config/lib/config.js +0 -290
- package/node_modules/@contrast/sec-obs/node_modules/@contrast/config/lib/index.d.ts +0 -328
- package/node_modules/@contrast/sec-obs/node_modules/@contrast/config/lib/index.js +0 -29
- package/node_modules/@contrast/sec-obs/node_modules/@contrast/config/lib/options.js +0 -836
- package/node_modules/@contrast/sec-obs/node_modules/@contrast/config/lib/validators.js +0 -23
- package/node_modules/@contrast/sec-obs/node_modules/@contrast/config/package.json +0 -27
- package/node_modules/@contrast/sec-obs/node_modules/@contrast/core/LICENSE +0 -12
- package/node_modules/@contrast/sec-obs/node_modules/@contrast/core/README.md +0 -98
- package/node_modules/@contrast/sec-obs/node_modules/@contrast/core/lib/agent-info.js +0 -36
- package/node_modules/@contrast/sec-obs/node_modules/@contrast/core/lib/app-info.js +0 -233
- package/node_modules/@contrast/sec-obs/node_modules/@contrast/core/lib/build-id.js +0 -51
- package/node_modules/@contrast/sec-obs/node_modules/@contrast/core/lib/capture-stacktrace.js +0 -256
- package/node_modules/@contrast/sec-obs/node_modules/@contrast/core/lib/contrast-methods.js +0 -155
- package/node_modules/@contrast/sec-obs/node_modules/@contrast/core/lib/index.d.ts +0 -52
- package/node_modules/@contrast/sec-obs/node_modules/@contrast/core/lib/ioc/core.js +0 -95
- package/node_modules/@contrast/sec-obs/node_modules/@contrast/core/lib/is-agent-path.js +0 -37
- package/node_modules/@contrast/sec-obs/node_modules/@contrast/core/lib/messages.js +0 -28
- package/node_modules/@contrast/sec-obs/node_modules/@contrast/core/lib/sensitive-data-masking/index.js +0 -63
- package/node_modules/@contrast/sec-obs/node_modules/@contrast/core/lib/sensitive-data-masking/protect-listener.js +0 -111
- package/node_modules/@contrast/sec-obs/node_modules/@contrast/core/lib/sensitive-data-masking/server-settings-listener.js +0 -44
- package/node_modules/@contrast/sec-obs/node_modules/@contrast/core/lib/system-info/cloud-provider-metadata.js +0 -146
- package/node_modules/@contrast/sec-obs/node_modules/@contrast/core/lib/system-info/index.js +0 -225
- package/node_modules/@contrast/sec-obs/node_modules/@contrast/core/lib/system-info/linux-os-info.js +0 -137
- package/node_modules/@contrast/sec-obs/node_modules/@contrast/core/lib/system-info/utils.js +0 -35
- package/node_modules/@contrast/sec-obs/node_modules/@contrast/core/package.json +0 -33
- package/node_modules/@contrast/sec-obs/node_modules/@contrast/dep-hooks/LICENSE +0 -12
- package/node_modules/@contrast/sec-obs/node_modules/@contrast/dep-hooks/README.md +0 -94
- package/node_modules/@contrast/sec-obs/node_modules/@contrast/dep-hooks/lib/export-handler-registry.d.ts +0 -121
- package/node_modules/@contrast/sec-obs/node_modules/@contrast/dep-hooks/lib/export-handler-registry.js +0 -206
- package/node_modules/@contrast/sec-obs/node_modules/@contrast/dep-hooks/lib/export-hook-descriptor.d.ts +0 -72
- package/node_modules/@contrast/sec-obs/node_modules/@contrast/dep-hooks/lib/export-hook-descriptor.js +0 -88
- package/node_modules/@contrast/sec-obs/node_modules/@contrast/dep-hooks/lib/handler-invoker.d.ts +0 -46
- package/node_modules/@contrast/sec-obs/node_modules/@contrast/dep-hooks/lib/handler-invoker.js +0 -106
- package/node_modules/@contrast/sec-obs/node_modules/@contrast/dep-hooks/lib/helpers.d.ts +0 -28
- package/node_modules/@contrast/sec-obs/node_modules/@contrast/dep-hooks/lib/helpers.js +0 -66
- package/node_modules/@contrast/sec-obs/node_modules/@contrast/dep-hooks/lib/index.d.ts +0 -115
- package/node_modules/@contrast/sec-obs/node_modules/@contrast/dep-hooks/lib/index.js +0 -208
- package/node_modules/@contrast/sec-obs/node_modules/@contrast/dep-hooks/lib/package-finder.d.ts +0 -43
- package/node_modules/@contrast/sec-obs/node_modules/@contrast/dep-hooks/lib/package-finder.js +0 -79
- package/node_modules/@contrast/sec-obs/node_modules/@contrast/dep-hooks/package.json +0 -29
- package/node_modules/@contrast/sec-obs/node_modules/@contrast/logger/LICENSE +0 -12
- package/node_modules/@contrast/sec-obs/node_modules/@contrast/logger/README.md +0 -270
- package/node_modules/@contrast/sec-obs/node_modules/@contrast/logger/lib/index.d.ts +0 -16
- package/node_modules/@contrast/sec-obs/node_modules/@contrast/logger/lib/index.js +0 -132
- package/node_modules/@contrast/sec-obs/node_modules/@contrast/logger/lib/serializers.d.ts +0 -33
- package/node_modules/@contrast/sec-obs/node_modules/@contrast/logger/lib/serializers.js +0 -75
- package/node_modules/@contrast/sec-obs/node_modules/@contrast/logger/lib/utils.d.ts +0 -15
- package/node_modules/@contrast/sec-obs/node_modules/@contrast/logger/lib/utils.js +0 -34
- package/node_modules/@contrast/sec-obs/node_modules/@contrast/logger/package.json +0 -28
- package/node_modules/@contrast/sec-obs/node_modules/@contrast/patcher/LICENSE +0 -12
- package/node_modules/@contrast/sec-obs/node_modules/@contrast/patcher/README.md +0 -51
- package/node_modules/@contrast/sec-obs/node_modules/@contrast/patcher/lib/index.d.ts +0 -101
- package/node_modules/@contrast/sec-obs/node_modules/@contrast/patcher/lib/index.js +0 -544
- package/node_modules/@contrast/sec-obs/node_modules/@contrast/patcher/package.json +0 -25
- package/node_modules/@contrast/sec-obs/node_modules/@contrast/rewriter/LICENSE +0 -12
- package/node_modules/@contrast/sec-obs/node_modules/@contrast/rewriter/README.md +0 -6
- package/node_modules/@contrast/sec-obs/node_modules/@contrast/rewriter/lib/cache.js +0 -318
- package/node_modules/@contrast/sec-obs/node_modules/@contrast/rewriter/lib/index.js +0 -216
- package/node_modules/@contrast/sec-obs/node_modules/@contrast/rewriter/lib/rewrite-is-deadzoned.js +0 -143
- package/node_modules/@contrast/sec-obs/node_modules/@contrast/rewriter/package.json +0 -30
- package/node_modules/@contrast/sec-obs/node_modules/@contrast/scopes/LICENSE +0 -12
- package/node_modules/@contrast/sec-obs/node_modules/@contrast/scopes/lib/constants.js +0 -26
- package/node_modules/@contrast/sec-obs/node_modules/@contrast/scopes/lib/index.d.ts +0 -46
- package/node_modules/@contrast/sec-obs/node_modules/@contrast/scopes/lib/index.js +0 -70
- package/node_modules/@contrast/sec-obs/node_modules/@contrast/scopes/lib/install/bluebird.js +0 -128
- package/node_modules/@contrast/sec-obs/node_modules/@contrast/scopes/lib/install/index.js +0 -34
- package/node_modules/@contrast/sec-obs/node_modules/@contrast/scopes/lib/install/mongodb-core.js +0 -83
- package/node_modules/@contrast/sec-obs/node_modules/@contrast/scopes/lib/install/mongodb3.js +0 -89
- package/node_modules/@contrast/sec-obs/node_modules/@contrast/scopes/lib/install/mongodb4.js +0 -80
- package/node_modules/@contrast/sec-obs/node_modules/@contrast/scopes/lib/install/mongodb6.js +0 -46
- package/node_modules/@contrast/sec-obs/node_modules/@contrast/scopes/lib/install/mysql.js +0 -151
- package/node_modules/@contrast/sec-obs/node_modules/@contrast/scopes/lib/install/redis.js +0 -79
- package/node_modules/@contrast/sec-obs/node_modules/@contrast/scopes/lib/utils.js +0 -35
- package/node_modules/@contrast/sec-obs/node_modules/@contrast/scopes/package.json +0 -28
- package/node_modules/@types/node/ts5.1/compatibility/disposable.d.ts +0 -12
- package/node_modules/@types/node/ts5.1/index.d.ts +0 -98
- package/node_modules/form-data/README.md.bak +0 -355
package/node_modules/@contrast/sec-obs/node_modules/@contrast/scopes/lib/install/mongodb4.js
DELETED
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright: 2025 Contrast Security, Inc
|
|
3
|
-
* Contact: support@contrastsecurity.com
|
|
4
|
-
* License: Commercial
|
|
5
|
-
|
|
6
|
-
* NOTICE: This Software and the patented inventions embodied within may only be
|
|
7
|
-
* used as part of Contrast Security’s commercial offerings. Even though it is
|
|
8
|
-
* made available through public repositories, use of this Software is subject to
|
|
9
|
-
* the applicable End User Licensing Agreement found at
|
|
10
|
-
* https://www.contrastsecurity.com/enduser-terms-0317a or as otherwise agreed
|
|
11
|
-
* between Contrast Security and the End User. The Software may not be reverse
|
|
12
|
-
* engineered, modified, repackaged, sold, redistributed or otherwise used in a
|
|
13
|
-
* way not consistent with the End User License Agreement.
|
|
14
|
-
*/
|
|
15
|
-
|
|
16
|
-
'use strict';
|
|
17
|
-
|
|
18
|
-
const { PATCH_TYPES: { ASYNC_CONTEXT } } = require('../constants');
|
|
19
|
-
const { resolveCallbackIndex } = require('../utils');
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* Exports a function handling the patching of `mongodb` versions 4 and 5.
|
|
23
|
-
* @param {Object} core the core Contrast object in v5
|
|
24
|
-
*/
|
|
25
|
-
module.exports = function (core) {
|
|
26
|
-
const { depHooks, patcher, logger, scopes: { wrap } } = core;
|
|
27
|
-
const mongoDBCursor = { name: 'mongodb', file: 'lib/cursor/abstract_cursor.js', version: '>=4 <6' };
|
|
28
|
-
const mongoDBCommand = { name: 'mongodb', file: 'lib/operations/command.js', version: '>=4 <6' };
|
|
29
|
-
|
|
30
|
-
function install() {
|
|
31
|
-
depHooks.resolve(mongoDBCommand, (command) => {
|
|
32
|
-
const methods = ['executeCommand'];
|
|
33
|
-
methods.forEach((method) => {
|
|
34
|
-
patcher.patch(command.CommandOperation.prototype, method, {
|
|
35
|
-
name: `mongodb.CommandOperation.prototype.${method}`,
|
|
36
|
-
patchType: ASYNC_CONTEXT,
|
|
37
|
-
pre: methodHook()
|
|
38
|
-
});
|
|
39
|
-
});
|
|
40
|
-
});
|
|
41
|
-
|
|
42
|
-
depHooks.resolve(
|
|
43
|
-
mongoDBCursor,
|
|
44
|
-
(cursor) => {
|
|
45
|
-
const methods = ['hasNext', 'next', 'tryNext', 'forEach', 'toArray', 'close'];
|
|
46
|
-
methods.forEach((method) => {
|
|
47
|
-
patcher.patch(cursor.AbstractCursor.prototype, method, {
|
|
48
|
-
name: `mongodb.AbstractCursor.prototype.${method}`,
|
|
49
|
-
patchType: ASYNC_CONTEXT,
|
|
50
|
-
pre: methodHook(),
|
|
51
|
-
});
|
|
52
|
-
});
|
|
53
|
-
});
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* Returns a function/hook to be used with a given mongodb-core/mongodb method
|
|
58
|
-
* @param {string} name the method for hooking
|
|
59
|
-
* @return {function} a preHook for the given mongodb-core method
|
|
60
|
-
*/
|
|
61
|
-
function methodHook() {
|
|
62
|
-
/**
|
|
63
|
-
* Binds callback (when present) to the relevant AsyncStorage.
|
|
64
|
-
* @param {object} data the argument for the preHook
|
|
65
|
-
* @param {object} data.args the arguments passed to hooked method
|
|
66
|
-
*/
|
|
67
|
-
return function ({ args, funcKey, name }) {
|
|
68
|
-
try {
|
|
69
|
-
const indexOfCallback = resolveCallbackIndex(args);
|
|
70
|
-
args[indexOfCallback] = wrap(args[indexOfCallback]);
|
|
71
|
-
} catch (err) {
|
|
72
|
-
logger.warn({ err, funcKey }, 'An error occurred in %s', name);
|
|
73
|
-
}
|
|
74
|
-
};
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
return {
|
|
78
|
-
install
|
|
79
|
-
};
|
|
80
|
-
};
|
package/node_modules/@contrast/sec-obs/node_modules/@contrast/scopes/lib/install/mongodb6.js
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright: 2025 Contrast Security, Inc
|
|
3
|
-
* Contact: support@contrastsecurity.com
|
|
4
|
-
* License: Commercial
|
|
5
|
-
|
|
6
|
-
* NOTICE: This Software and the patented inventions embodied within may only be
|
|
7
|
-
* used as part of Contrast Security’s commercial offerings. Even though it is
|
|
8
|
-
* made available through public repositories, use of this Software is subject to
|
|
9
|
-
* the applicable End User Licensing Agreement found at
|
|
10
|
-
* https://www.contrastsecurity.com/enduser-terms-0317a or as otherwise agreed
|
|
11
|
-
* between Contrast Security and the End User. The Software may not be reverse
|
|
12
|
-
* engineered, modified, repackaged, sold, redistributed or otherwise used in a
|
|
13
|
-
* way not consistent with the End User License Agreement.
|
|
14
|
-
*/
|
|
15
|
-
|
|
16
|
-
'use strict';
|
|
17
|
-
|
|
18
|
-
const { PATCH_TYPES: { ASYNC_CONTEXT } } = require('../constants');
|
|
19
|
-
const { resolveCallbackIndex } = require('../utils');
|
|
20
|
-
|
|
21
|
-
module.exports = function (core) {
|
|
22
|
-
const { depHooks, patcher, logger, scopes: { wrap } } = core;
|
|
23
|
-
|
|
24
|
-
function install() {
|
|
25
|
-
depHooks.resolve(
|
|
26
|
-
{ name: 'mongodb', file: 'lib/cursor/abstract_cursor.js', version: '>=6 <7' },
|
|
27
|
-
({ AbstractCursor }) => {
|
|
28
|
-
patcher.patch(AbstractCursor.prototype, 'forEach', {
|
|
29
|
-
name: 'mongodb.AbstractCursor.prototype.forEach',
|
|
30
|
-
patchType: ASYNC_CONTEXT,
|
|
31
|
-
pre({ args, funcKey, name }) {
|
|
32
|
-
try {
|
|
33
|
-
const indexOfCallback = resolveCallbackIndex(args);
|
|
34
|
-
args[indexOfCallback] = wrap(args[indexOfCallback]);
|
|
35
|
-
} catch (err) {
|
|
36
|
-
logger.warn({ err, funcKey }, 'An error occurred in %s', name);
|
|
37
|
-
}
|
|
38
|
-
},
|
|
39
|
-
});
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
return {
|
|
44
|
-
install
|
|
45
|
-
};
|
|
46
|
-
};
|
|
@@ -1,151 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright: 2025 Contrast Security, Inc
|
|
3
|
-
* Contact: support@contrastsecurity.com
|
|
4
|
-
* License: Commercial
|
|
5
|
-
|
|
6
|
-
* NOTICE: This Software and the patented inventions embodied within may only be
|
|
7
|
-
* used as part of Contrast Security’s commercial offerings. Even though it is
|
|
8
|
-
* made available through public repositories, use of this Software is subject to
|
|
9
|
-
* the applicable End User Licensing Agreement found at
|
|
10
|
-
* https://www.contrastsecurity.com/enduser-terms-0317a or as otherwise agreed
|
|
11
|
-
* between Contrast Security and the End User. The Software may not be reverse
|
|
12
|
-
* engineered, modified, repackaged, sold, redistributed or otherwise used in a
|
|
13
|
-
* way not consistent with the End User License Agreement.
|
|
14
|
-
*/
|
|
15
|
-
|
|
16
|
-
'use strict';
|
|
17
|
-
|
|
18
|
-
const { ASYNC_CONTEXT } = require('../constants').PATCH_TYPES;
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* Exports a function handling the patching of `mysql` and `mysql2` packages
|
|
22
|
-
* @param {Object} core the core Contrast object in v5
|
|
23
|
-
* @param {Object} core.depHooks instance of @contrast/depHooks
|
|
24
|
-
* @param {Object} core.patcher instance of @contrast/patcher
|
|
25
|
-
* @param {Object} core.logger instance of @contrast/logger
|
|
26
|
-
* @param {Object} core.scopes instance of @contrast/scopes
|
|
27
|
-
* @param {Function} core.scopes.wrap reference to scopes.wrap function
|
|
28
|
-
*/
|
|
29
|
-
module.exports = ({ depHooks, patcher, logger, scopes: { wrap } }) => {
|
|
30
|
-
function install() {
|
|
31
|
-
depHooks.resolve({ name: 'mysql', version: '<3', file: 'lib/protocol/sequences/Sequence.js' }, patchSequence);
|
|
32
|
-
|
|
33
|
-
// Note: This may not be necessary, though comments in source code re domains
|
|
34
|
-
// suggest asyncStorage issues may be possible:
|
|
35
|
-
// https://github.com/mysqljs/mysql/blob/master/lib/Pool.js#L231
|
|
36
|
-
depHooks.resolve({ name: 'mysql', version: '<3', file: 'lib/Pool.js' }, patchPool);
|
|
37
|
-
|
|
38
|
-
depHooks.resolve({ name: 'mysql2', version: '<4', file: 'lib/commands/query.js' }, patchQuery);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* Patches the Sequence constructor which the protocol classes inherit.
|
|
43
|
-
* This _must return_ the patched value to set the export in require hook.
|
|
44
|
-
* @param {function} sequenceCtor Sequence constructor fn
|
|
45
|
-
* @returns {function}
|
|
46
|
-
*/
|
|
47
|
-
function patchSequence(sequenceCtor) {
|
|
48
|
-
return patcher.patch(sequenceCtor, {
|
|
49
|
-
name: 'mysql/lib/protocol/sequences/Sequence',
|
|
50
|
-
patchType: ASYNC_CONTEXT,
|
|
51
|
-
post: sequencePostHook(),
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* Patches Pool.prototype.getConnection.
|
|
57
|
-
* @param {function} poolCtor Pool constructor fn
|
|
58
|
-
*/
|
|
59
|
-
function patchPool(poolCtor) {
|
|
60
|
-
patcher.patch(poolCtor.prototype, 'getConnection', {
|
|
61
|
-
name: 'mysql/lib/Pool.prototype.getConnection',
|
|
62
|
-
patchType: ASYNC_CONTEXT,
|
|
63
|
-
pre: poolPreHook(),
|
|
64
|
-
});
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
/**
|
|
68
|
-
* Patches the Query constructor.
|
|
69
|
-
* This _must return_ the patched value to set the export in require hook.
|
|
70
|
-
* @param {function} queryCtor Query constructor fn
|
|
71
|
-
* @returns {function}
|
|
72
|
-
*/
|
|
73
|
-
function patchQuery(queryCtor) {
|
|
74
|
-
return patcher.patch(queryCtor, {
|
|
75
|
-
name: 'mysql2/lib/commands/query',
|
|
76
|
-
patchType: ASYNC_CONTEXT,
|
|
77
|
-
pre: queryPreHook(),
|
|
78
|
-
});
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
function sequencePostHook() {
|
|
82
|
-
/**
|
|
83
|
-
* Typically in a constructor the data.result would be the instance. But mysql
|
|
84
|
-
* has the subclasses e.g. Query, do Sequence.call(this, cb). In this case the
|
|
85
|
-
* data.obj is the instance.
|
|
86
|
-
* @param {object} data the argument for the postHook
|
|
87
|
-
* @param {object} data.obj sequence instance
|
|
88
|
-
*/
|
|
89
|
-
return function ({ obj, funcKey, name }) {
|
|
90
|
-
try {
|
|
91
|
-
if (obj && obj._callback && typeof obj._callback === 'function') {
|
|
92
|
-
obj._callback = wrap(obj._callback);
|
|
93
|
-
}
|
|
94
|
-
} catch (err) {
|
|
95
|
-
logger.warn(
|
|
96
|
-
{ err, funcKey },
|
|
97
|
-
'An error occurred in %s',
|
|
98
|
-
name
|
|
99
|
-
);
|
|
100
|
-
}
|
|
101
|
-
};
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
function poolPreHook() {
|
|
105
|
-
/**
|
|
106
|
-
* Binds callback (when present) to the relevant AsyncStorage.
|
|
107
|
-
* @param {object} data the argument for the preHook
|
|
108
|
-
* @param {object} data.args getConnection arguments
|
|
109
|
-
*/
|
|
110
|
-
return function ({ args, funcKey, name }) {
|
|
111
|
-
try {
|
|
112
|
-
if (args.length && typeof args[0] === 'function') {
|
|
113
|
-
args[0] = wrap(args[0]);
|
|
114
|
-
}
|
|
115
|
-
} catch (err) {
|
|
116
|
-
logger.warn(
|
|
117
|
-
{ err, funcKey },
|
|
118
|
-
'An error occurred in %s',
|
|
119
|
-
name
|
|
120
|
-
);
|
|
121
|
-
}
|
|
122
|
-
};
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
function queryPreHook() {
|
|
127
|
-
/**
|
|
128
|
-
* Binds callback (when present) to the context the constructor is called in.
|
|
129
|
-
* @param {object} data the argument for the preHook
|
|
130
|
-
* @param {object} data.args the arguments passed to the Query constructor
|
|
131
|
-
*/
|
|
132
|
-
return function ({ args, funcKey, name }) {
|
|
133
|
-
try {
|
|
134
|
-
if (args.length && args[1] && typeof args[1] === 'function') {
|
|
135
|
-
args[1] = wrap(args[1]);
|
|
136
|
-
}
|
|
137
|
-
} catch (err) {
|
|
138
|
-
logger.warn({ err, funcKey }, 'An error occurred in %s', name);
|
|
139
|
-
}
|
|
140
|
-
};
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
return {
|
|
144
|
-
install,
|
|
145
|
-
hooks: {
|
|
146
|
-
sequencePostHook,
|
|
147
|
-
poolPreHook,
|
|
148
|
-
queryPreHook
|
|
149
|
-
},
|
|
150
|
-
};
|
|
151
|
-
};
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright: 2025 Contrast Security, Inc
|
|
3
|
-
* Contact: support@contrastsecurity.com
|
|
4
|
-
* License: Commercial
|
|
5
|
-
|
|
6
|
-
* NOTICE: This Software and the patented inventions embodied within may only be
|
|
7
|
-
* used as part of Contrast Security’s commercial offerings. Even though it is
|
|
8
|
-
* made available through public repositories, use of this Software is subject to
|
|
9
|
-
* the applicable End User Licensing Agreement found at
|
|
10
|
-
* https://www.contrastsecurity.com/enduser-terms-0317a or as otherwise agreed
|
|
11
|
-
* between Contrast Security and the End User. The Software may not be reverse
|
|
12
|
-
* engineered, modified, repackaged, sold, redistributed or otherwise used in a
|
|
13
|
-
* way not consistent with the End User License Agreement.
|
|
14
|
-
*/
|
|
15
|
-
|
|
16
|
-
'use strict';
|
|
17
|
-
|
|
18
|
-
const { ASYNC_CONTEXT } = require('../constants').PATCH_TYPES;
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* Redis doesn't properly support async hooks
|
|
22
|
-
* In their code they bind a callback to a domain
|
|
23
|
-
* but since this isn't an AsyncResource it loses
|
|
24
|
-
* context when using async hooks
|
|
25
|
-
*
|
|
26
|
-
* https://github.com/NodeRedis/node-redis/blob/master/index.js#L807
|
|
27
|
-
*
|
|
28
|
-
* Exports a function handling the patching of `redis` package
|
|
29
|
-
* @param {Object} core the core Contrast object in v5
|
|
30
|
-
* @param {Object} core.depHooks instance of @contrast/depHooks
|
|
31
|
-
* @param {Object} core.patcher instance of @contrast/patcher
|
|
32
|
-
* @param {Object} hooks the relevant hooks that are to be used in the patching, found in ./hooks.js
|
|
33
|
-
* @param {function} sendCommandPreHook - a pre hook for the internal_send_command method
|
|
34
|
-
*/
|
|
35
|
-
module.exports = ({ depHooks, patcher, logger, scopes: { wrap } }) => {
|
|
36
|
-
function install() {
|
|
37
|
-
depHooks.resolve({ name: 'redis', version: '<5' }, patchRedis);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* Patches redis.RedisClient.prototype.internal_send_command, if present.
|
|
42
|
-
* The redis object changes from v3.*.* onwards and no such patch is needed there.
|
|
43
|
-
* @param {Object} redis Redis object
|
|
44
|
-
*/
|
|
45
|
-
function patchRedis(redis) {
|
|
46
|
-
if (redis.RedisClient?.prototype?.internal_send_command) {
|
|
47
|
-
patcher.patch(redis.RedisClient.prototype, 'internal_send_command', {
|
|
48
|
-
name: 'redis.RedisClient.internal_send_command',
|
|
49
|
-
patchType: ASYNC_CONTEXT,
|
|
50
|
-
pre: sendCommandPreHook(),
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
function sendCommandPreHook() {
|
|
56
|
-
/**
|
|
57
|
-
* Binds callback (when present) to the relevant AsyncStorage.
|
|
58
|
-
* @param {object} data the argument for the preHook
|
|
59
|
-
* @param {object} data.args the arguments passed to `.internal_send_command` method
|
|
60
|
-
*/
|
|
61
|
-
return function ({ args, funcKey, name }) {
|
|
62
|
-
try {
|
|
63
|
-
if (
|
|
64
|
-
args.length &&
|
|
65
|
-
args[0].callback &&
|
|
66
|
-
typeof args[0].callback === 'function'
|
|
67
|
-
) {
|
|
68
|
-
args[0].callback = wrap(args[0].callback);
|
|
69
|
-
}
|
|
70
|
-
} catch (err) {
|
|
71
|
-
logger.warn({ err, funcKey }, 'An error occurred in %s', name);
|
|
72
|
-
}
|
|
73
|
-
};
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
return {
|
|
77
|
-
install
|
|
78
|
-
};
|
|
79
|
-
};
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright: 2025 Contrast Security, Inc
|
|
3
|
-
* Contact: support@contrastsecurity.com
|
|
4
|
-
* License: Commercial
|
|
5
|
-
|
|
6
|
-
* NOTICE: This Software and the patented inventions embodied within may only be
|
|
7
|
-
* used as part of Contrast Security’s commercial offerings. Even though it is
|
|
8
|
-
* made available through public repositories, use of this Software is subject to
|
|
9
|
-
* the applicable End User Licensing Agreement found at
|
|
10
|
-
* https://www.contrastsecurity.com/enduser-terms-0317a or as otherwise agreed
|
|
11
|
-
* between Contrast Security and the End User. The Software may not be reverse
|
|
12
|
-
* engineered, modified, repackaged, sold, redistributed or otherwise used in a
|
|
13
|
-
* way not consistent with the End User License Agreement.
|
|
14
|
-
*/
|
|
15
|
-
|
|
16
|
-
'use strict';
|
|
17
|
-
|
|
18
|
-
const resolveCallbackIndex = (argList) => {
|
|
19
|
-
if (!argList || !argList.length) {
|
|
20
|
-
return -1;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
// Work backwards
|
|
24
|
-
for (let i = argList.length - 1; 0 <= i; i--) {
|
|
25
|
-
if (typeof argList[i] === 'function') {
|
|
26
|
-
return i;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
return -1;
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
module.exports = {
|
|
34
|
-
resolveCallbackIndex
|
|
35
|
-
};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@contrast/scopes",
|
|
3
|
-
"version": "1.23.0",
|
|
4
|
-
"description": "Handles AsyncLocalStorage scopes",
|
|
5
|
-
"license": "SEE LICENSE IN LICENSE",
|
|
6
|
-
"author": "Contrast Security <nodejs@contrastsecurity.com> (https://www.contrastsecurity.com)",
|
|
7
|
-
"files": [
|
|
8
|
-
"lib/",
|
|
9
|
-
"!*.test.*",
|
|
10
|
-
"!tsconfig.*",
|
|
11
|
-
"!*.map"
|
|
12
|
-
],
|
|
13
|
-
"main": "lib/index.js",
|
|
14
|
-
"types": "lib/index.d.ts",
|
|
15
|
-
"engines": {
|
|
16
|
-
"npm": ">=6.13.7 <7 || >= 8.3.1",
|
|
17
|
-
"node": ">= 16.9.1"
|
|
18
|
-
},
|
|
19
|
-
"scripts": {
|
|
20
|
-
"test": "bash ../scripts/test.sh"
|
|
21
|
-
},
|
|
22
|
-
"dependencies": {
|
|
23
|
-
"@contrast/core": "1.53.0",
|
|
24
|
-
"@contrast/dep-hooks": "1.22.0",
|
|
25
|
-
"@contrast/logger": "1.26.0",
|
|
26
|
-
"@contrast/patcher": "1.25.0"
|
|
27
|
-
}
|
|
28
|
-
}
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* License for programmatically and manually incorporated
|
|
3
|
-
* documentation aka. `JSDoc` from https://github.com/nodejs/node/tree/master/doc
|
|
4
|
-
*
|
|
5
|
-
* Copyright Node.js contributors. All rights reserved.
|
|
6
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
-
* of this software and associated documentation files (the "Software"), to
|
|
8
|
-
* deal in the Software without restriction, including without limitation the
|
|
9
|
-
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
10
|
-
* sell copies of the Software, and to permit persons to whom the Software is
|
|
11
|
-
* furnished to do so, subject to the following conditions:
|
|
12
|
-
*
|
|
13
|
-
* The above copyright notice and this permission notice shall be included in
|
|
14
|
-
* all copies or substantial portions of the Software.
|
|
15
|
-
*
|
|
16
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
21
|
-
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
|
22
|
-
* IN THE SOFTWARE.
|
|
23
|
-
*/
|
|
24
|
-
|
|
25
|
-
// NOTE: These definitions support Node.js and TypeScript 5.1.
|
|
26
|
-
|
|
27
|
-
// Reference required TypeScript libraries:
|
|
28
|
-
/// <reference lib="es2020" />
|
|
29
|
-
|
|
30
|
-
// TypeScript library polyfills required for TypeScript <=5.1:
|
|
31
|
-
/// <reference path="./compatibility/disposable.d.ts" />
|
|
32
|
-
|
|
33
|
-
// TypeScript library polyfills required for TypeScript <=5.6:
|
|
34
|
-
/// <reference path="../ts5.6/compatibility/float16array.d.ts" />
|
|
35
|
-
|
|
36
|
-
// Iterator definitions required for compatibility with TypeScript <5.6:
|
|
37
|
-
/// <reference path="../compatibility/iterators.d.ts" />
|
|
38
|
-
|
|
39
|
-
// Definitions for Node.js modules specific to TypeScript <=5.6:
|
|
40
|
-
/// <reference path="../ts5.6/globals.typedarray.d.ts" />
|
|
41
|
-
/// <reference path="../ts5.6/buffer.buffer.d.ts" />
|
|
42
|
-
|
|
43
|
-
// Definitions for Node.js modules that are not specific to any version of TypeScript:
|
|
44
|
-
/// <reference path="../globals.d.ts" />
|
|
45
|
-
/// <reference path="../assert.d.ts" />
|
|
46
|
-
/// <reference path="../assert/strict.d.ts" />
|
|
47
|
-
/// <reference path="../async_hooks.d.ts" />
|
|
48
|
-
/// <reference path="../buffer.d.ts" />
|
|
49
|
-
/// <reference path="../child_process.d.ts" />
|
|
50
|
-
/// <reference path="../cluster.d.ts" />
|
|
51
|
-
/// <reference path="../console.d.ts" />
|
|
52
|
-
/// <reference path="../constants.d.ts" />
|
|
53
|
-
/// <reference path="../crypto.d.ts" />
|
|
54
|
-
/// <reference path="../dgram.d.ts" />
|
|
55
|
-
/// <reference path="../diagnostics_channel.d.ts" />
|
|
56
|
-
/// <reference path="../dns.d.ts" />
|
|
57
|
-
/// <reference path="../dns/promises.d.ts" />
|
|
58
|
-
/// <reference path="../dns/promises.d.ts" />
|
|
59
|
-
/// <reference path="../domain.d.ts" />
|
|
60
|
-
/// <reference path="../dom-events.d.ts" />
|
|
61
|
-
/// <reference path="../events.d.ts" />
|
|
62
|
-
/// <reference path="../fs.d.ts" />
|
|
63
|
-
/// <reference path="../fs/promises.d.ts" />
|
|
64
|
-
/// <reference path="../http.d.ts" />
|
|
65
|
-
/// <reference path="../http2.d.ts" />
|
|
66
|
-
/// <reference path="../https.d.ts" />
|
|
67
|
-
/// <reference path="../inspector.d.ts" />
|
|
68
|
-
/// <reference path="../module.d.ts" />
|
|
69
|
-
/// <reference path="../net.d.ts" />
|
|
70
|
-
/// <reference path="../os.d.ts" />
|
|
71
|
-
/// <reference path="../path.d.ts" />
|
|
72
|
-
/// <reference path="../perf_hooks.d.ts" />
|
|
73
|
-
/// <reference path="../process.d.ts" />
|
|
74
|
-
/// <reference path="../punycode.d.ts" />
|
|
75
|
-
/// <reference path="../querystring.d.ts" />
|
|
76
|
-
/// <reference path="../readline.d.ts" />
|
|
77
|
-
/// <reference path="../readline/promises.d.ts" />
|
|
78
|
-
/// <reference path="../repl.d.ts" />
|
|
79
|
-
/// <reference path="../sea.d.ts" />
|
|
80
|
-
/// <reference path="../sqlite.d.ts" />
|
|
81
|
-
/// <reference path="../stream.d.ts" />
|
|
82
|
-
/// <reference path="../stream/promises.d.ts" />
|
|
83
|
-
/// <reference path="../stream/consumers.d.ts" />
|
|
84
|
-
/// <reference path="../stream/web.d.ts" />
|
|
85
|
-
/// <reference path="../string_decoder.d.ts" />
|
|
86
|
-
/// <reference path="../test.d.ts" />
|
|
87
|
-
/// <reference path="../timers.d.ts" />
|
|
88
|
-
/// <reference path="../timers/promises.d.ts" />
|
|
89
|
-
/// <reference path="../tls.d.ts" />
|
|
90
|
-
/// <reference path="../trace_events.d.ts" />
|
|
91
|
-
/// <reference path="../tty.d.ts" />
|
|
92
|
-
/// <reference path="../url.d.ts" />
|
|
93
|
-
/// <reference path="../util.d.ts" />
|
|
94
|
-
/// <reference path="../v8.d.ts" />
|
|
95
|
-
/// <reference path="../vm.d.ts" />
|
|
96
|
-
/// <reference path="../wasi.d.ts" />
|
|
97
|
-
/// <reference path="../worker_threads.d.ts" />
|
|
98
|
-
/// <reference path="../zlib.d.ts" />
|