@contrast/agent-bundle 5.39.1 → 5.41.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/lib/start-agent.js +50 -40
- package/node_modules/@contrast/agent/package.json +11 -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/string/replace.js +6 -3
- package/node_modules/@contrast/assess/lib/dataflow/propagation/install/util-format.js +44 -21
- package/node_modules/@contrast/assess/lib/dataflow/sources/index.js +1 -1
- package/node_modules/@contrast/assess/lib/dataflow/sources/install/{body-parser1.js → body-parser.js} +2 -2
- 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/constants.d.ts +6 -0
- package/node_modules/@contrast/common/lib/constants.js +8 -1
- 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 +3 -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 +300 -152
- package/node_modules/@contrast/library-analysis/lib/install/library-reporting/index.js +9 -2
- package/node_modules/@contrast/library-analysis/lib/install/library-reporting/utils.js +54 -43
- 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/index.js +1 -1
- package/node_modules/@contrast/protect/lib/input-analysis/install/{body-parser1.js → body-parser.js} +1 -1
- 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/routes-observed.js +2 -1
- package/node_modules/@contrast/reporter/lib/reporters/contrast-ui/endpoints/traces/index.js +1 -1
- 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.d.ts +2 -0
- package/node_modules/@contrast/route-coverage/lib/index.js +15 -17
- package/node_modules/@contrast/route-coverage/lib/install/express/express5.js +489 -202
- package/node_modules/@contrast/route-coverage/package.json +9 -9
- 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/@types/node/README.md +2 -2
- package/node_modules/@types/node/buffer.d.ts +5 -0
- package/node_modules/@types/node/dns/promises.d.ts +11 -10
- package/node_modules/@types/node/dns.d.ts +18 -19
- package/node_modules/@types/node/fs.d.ts +13 -1
- package/node_modules/@types/node/http.d.ts +4 -19
- package/node_modules/@types/node/inspector.d.ts +53 -0
- package/node_modules/@types/node/package.json +2 -82
- package/node_modules/@types/node/stream/web.d.ts +4 -0
- 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/{path-to-regexp/LICENSE → deepmerge/license.txt} +1 -1
- 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/package.json +5 -3
- package/node_modules/@contrast/agentify/lib/sources.js +0 -94
- package/node_modules/@contrast/route-coverage/lib/install/http.js +0 -44
- 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/form-data/README.md.bak +0 -355
- package/node_modules/path-to-regexp/Readme.md +0 -216
- package/node_modules/path-to-regexp/dist/index.d.ts +0 -136
- package/node_modules/path-to-regexp/dist/index.js +0 -403
- package/node_modules/path-to-regexp/dist/index.js.map +0 -1
- package/node_modules/path-to-regexp/package.json +0 -62
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
declare function deepmerge<T>(x: Partial<T>, y: Partial<T>, options?: deepmerge.Options): T;
|
|
2
|
+
declare function deepmerge<T1, T2>(x: Partial<T1>, y: Partial<T2>, options?: deepmerge.Options): T1 & T2;
|
|
3
|
+
|
|
4
|
+
declare namespace deepmerge {
|
|
5
|
+
export interface Options {
|
|
6
|
+
arrayMerge?(target: any[], source: any[], options?: ArrayMergeOptions): any[];
|
|
7
|
+
clone?: boolean;
|
|
8
|
+
customMerge?: (key: string, options?: Options) => ((x: any, y: any) => any) | undefined;
|
|
9
|
+
isMergeableObject?(value: object): boolean;
|
|
10
|
+
}
|
|
11
|
+
export interface ArrayMergeOptions {
|
|
12
|
+
isMergeableObject(value: object): boolean;
|
|
13
|
+
cloneUnlessOtherwiseSpecified(value: object, options?: Options): object;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export function all (objects: object[], options?: Options): object;
|
|
17
|
+
export function all<T> (objects: Partial<T>[], options?: Options): T;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export = deepmerge;
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
var defaultIsMergeableObject = require('is-mergeable-object')
|
|
2
|
+
|
|
3
|
+
function emptyTarget(val) {
|
|
4
|
+
return Array.isArray(val) ? [] : {}
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
function cloneUnlessOtherwiseSpecified(value, options) {
|
|
8
|
+
return (options.clone !== false && options.isMergeableObject(value))
|
|
9
|
+
? deepmerge(emptyTarget(value), value, options)
|
|
10
|
+
: value
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
function defaultArrayMerge(target, source, options) {
|
|
14
|
+
return target.concat(source).map(function(element) {
|
|
15
|
+
return cloneUnlessOtherwiseSpecified(element, options)
|
|
16
|
+
})
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
function getMergeFunction(key, options) {
|
|
20
|
+
if (!options.customMerge) {
|
|
21
|
+
return deepmerge
|
|
22
|
+
}
|
|
23
|
+
var customMerge = options.customMerge(key)
|
|
24
|
+
return typeof customMerge === 'function' ? customMerge : deepmerge
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
function getEnumerableOwnPropertySymbols(target) {
|
|
28
|
+
return Object.getOwnPropertySymbols
|
|
29
|
+
? Object.getOwnPropertySymbols(target).filter(function(symbol) {
|
|
30
|
+
return Object.propertyIsEnumerable.call(target, symbol)
|
|
31
|
+
})
|
|
32
|
+
: []
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
function getKeys(target) {
|
|
36
|
+
return Object.keys(target).concat(getEnumerableOwnPropertySymbols(target))
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
function propertyIsOnObject(object, property) {
|
|
40
|
+
try {
|
|
41
|
+
return property in object
|
|
42
|
+
} catch(_) {
|
|
43
|
+
return false
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
// Protects from prototype poisoning and unexpected merging up the prototype chain.
|
|
48
|
+
function propertyIsUnsafe(target, key) {
|
|
49
|
+
return propertyIsOnObject(target, key) // Properties are safe to merge if they don't exist in the target yet,
|
|
50
|
+
&& !(Object.hasOwnProperty.call(target, key) // unsafe if they exist up the prototype chain,
|
|
51
|
+
&& Object.propertyIsEnumerable.call(target, key)) // and also unsafe if they're nonenumerable.
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
function mergeObject(target, source, options) {
|
|
55
|
+
var destination = {}
|
|
56
|
+
if (options.isMergeableObject(target)) {
|
|
57
|
+
getKeys(target).forEach(function(key) {
|
|
58
|
+
destination[key] = cloneUnlessOtherwiseSpecified(target[key], options)
|
|
59
|
+
})
|
|
60
|
+
}
|
|
61
|
+
getKeys(source).forEach(function(key) {
|
|
62
|
+
if (propertyIsUnsafe(target, key)) {
|
|
63
|
+
return
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
if (propertyIsOnObject(target, key) && options.isMergeableObject(source[key])) {
|
|
67
|
+
destination[key] = getMergeFunction(key, options)(target[key], source[key], options)
|
|
68
|
+
} else {
|
|
69
|
+
destination[key] = cloneUnlessOtherwiseSpecified(source[key], options)
|
|
70
|
+
}
|
|
71
|
+
})
|
|
72
|
+
return destination
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
function deepmerge(target, source, options) {
|
|
76
|
+
options = options || {}
|
|
77
|
+
options.arrayMerge = options.arrayMerge || defaultArrayMerge
|
|
78
|
+
options.isMergeableObject = options.isMergeableObject || defaultIsMergeableObject
|
|
79
|
+
// cloneUnlessOtherwiseSpecified is added to `options` so that custom arrayMerge()
|
|
80
|
+
// implementations can use it. The caller may not replace it.
|
|
81
|
+
options.cloneUnlessOtherwiseSpecified = cloneUnlessOtherwiseSpecified
|
|
82
|
+
|
|
83
|
+
var sourceIsArray = Array.isArray(source)
|
|
84
|
+
var targetIsArray = Array.isArray(target)
|
|
85
|
+
var sourceAndTargetTypesMatch = sourceIsArray === targetIsArray
|
|
86
|
+
|
|
87
|
+
if (!sourceAndTargetTypesMatch) {
|
|
88
|
+
return cloneUnlessOtherwiseSpecified(source, options)
|
|
89
|
+
} else if (sourceIsArray) {
|
|
90
|
+
return options.arrayMerge(target, source, options)
|
|
91
|
+
} else {
|
|
92
|
+
return mergeObject(target, source, options)
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
deepmerge.all = function deepmergeAll(array, options) {
|
|
97
|
+
if (!Array.isArray(array)) {
|
|
98
|
+
throw new Error('first argument should be an array')
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
return array.reduce(function(prev, next) {
|
|
102
|
+
return deepmerge(prev, next, options)
|
|
103
|
+
}, {})
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
module.exports = deepmerge
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
The MIT License (MIT)
|
|
2
2
|
|
|
3
|
-
Copyright (c)
|
|
3
|
+
Copyright (c) 2012 James Halliday, Josh Duff, and other contributors
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "deepmerge",
|
|
3
|
+
"description": "A library for deep (recursive) merging of Javascript objects",
|
|
4
|
+
"keywords": [
|
|
5
|
+
"merge",
|
|
6
|
+
"deep",
|
|
7
|
+
"extend",
|
|
8
|
+
"copy",
|
|
9
|
+
"clone",
|
|
10
|
+
"recursive"
|
|
11
|
+
],
|
|
12
|
+
"version": "4.3.1",
|
|
13
|
+
"homepage": "https://github.com/TehShrike/deepmerge",
|
|
14
|
+
"repository": {
|
|
15
|
+
"type": "git",
|
|
16
|
+
"url": "git://github.com/TehShrike/deepmerge.git"
|
|
17
|
+
},
|
|
18
|
+
"main": "dist/cjs.js",
|
|
19
|
+
"engines": {
|
|
20
|
+
"node": ">=0.10.0"
|
|
21
|
+
},
|
|
22
|
+
"scripts": {
|
|
23
|
+
"build": "rollup -c",
|
|
24
|
+
"test": "npm run build && tape test/*.js && jsmd readme.md && npm run test:typescript",
|
|
25
|
+
"test:typescript": "tsc --noEmit test/typescript.ts && ts-node test/typescript.ts",
|
|
26
|
+
"size": "npm run build && uglifyjs --compress --mangle -- ./dist/umd.js | gzip -c | wc -c"
|
|
27
|
+
},
|
|
28
|
+
"devDependencies": {
|
|
29
|
+
"@types/node": "^8.10.54",
|
|
30
|
+
"is-mergeable-object": "1.1.0",
|
|
31
|
+
"is-plain-object": "^5.0.0",
|
|
32
|
+
"jsmd": "^1.0.2",
|
|
33
|
+
"rollup": "^1.23.1",
|
|
34
|
+
"rollup-plugin-commonjs": "^10.1.0",
|
|
35
|
+
"rollup-plugin-node-resolve": "^5.2.0",
|
|
36
|
+
"tape": "^4.11.0",
|
|
37
|
+
"ts-node": "7.0.1",
|
|
38
|
+
"typescript": "=2.2.2",
|
|
39
|
+
"uglify-js": "^3.6.1"
|
|
40
|
+
},
|
|
41
|
+
"license": "MIT"
|
|
42
|
+
}
|
|
@@ -0,0 +1,264 @@
|
|
|
1
|
+
# deepmerge
|
|
2
|
+
|
|
3
|
+
Merges the enumerable properties of two or more objects deeply.
|
|
4
|
+
|
|
5
|
+
> UMD bundle is 723B minified+gzipped
|
|
6
|
+
|
|
7
|
+
## Getting Started
|
|
8
|
+
|
|
9
|
+
### Example Usage
|
|
10
|
+
<!--js
|
|
11
|
+
const merge = require('./')
|
|
12
|
+
-->
|
|
13
|
+
|
|
14
|
+
```js
|
|
15
|
+
const x = {
|
|
16
|
+
foo: { bar: 3 },
|
|
17
|
+
array: [{
|
|
18
|
+
does: 'work',
|
|
19
|
+
too: [ 1, 2, 3 ]
|
|
20
|
+
}]
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
const y = {
|
|
24
|
+
foo: { baz: 4 },
|
|
25
|
+
quux: 5,
|
|
26
|
+
array: [{
|
|
27
|
+
does: 'work',
|
|
28
|
+
too: [ 4, 5, 6 ]
|
|
29
|
+
}, {
|
|
30
|
+
really: 'yes'
|
|
31
|
+
}]
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
const output = {
|
|
35
|
+
foo: {
|
|
36
|
+
bar: 3,
|
|
37
|
+
baz: 4
|
|
38
|
+
},
|
|
39
|
+
array: [{
|
|
40
|
+
does: 'work',
|
|
41
|
+
too: [ 1, 2, 3 ]
|
|
42
|
+
}, {
|
|
43
|
+
does: 'work',
|
|
44
|
+
too: [ 4, 5, 6 ]
|
|
45
|
+
}, {
|
|
46
|
+
really: 'yes'
|
|
47
|
+
}],
|
|
48
|
+
quux: 5
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
merge(x, y) // => output
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
### Installation
|
|
56
|
+
|
|
57
|
+
With [npm](http://npmjs.org) do:
|
|
58
|
+
|
|
59
|
+
```sh
|
|
60
|
+
npm install deepmerge
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
deepmerge can be used directly in the browser without the use of package managers/bundlers as well: [UMD version from unpkg.com](https://unpkg.com/deepmerge/dist/umd.js).
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
### Include
|
|
67
|
+
|
|
68
|
+
deepmerge exposes a CommonJS entry point:
|
|
69
|
+
|
|
70
|
+
```
|
|
71
|
+
const merge = require('deepmerge')
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
The ESM entry point was dropped due to a [Webpack bug](https://github.com/webpack/webpack/issues/6584).
|
|
75
|
+
|
|
76
|
+
# API
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
## `merge(x, y, [options])`
|
|
80
|
+
|
|
81
|
+
Merge two objects `x` and `y` deeply, returning a new merged object with the
|
|
82
|
+
elements from both `x` and `y`.
|
|
83
|
+
|
|
84
|
+
If an element at the same key is present for both `x` and `y`, the value from
|
|
85
|
+
`y` will appear in the result.
|
|
86
|
+
|
|
87
|
+
Merging creates a new object, so that neither `x` or `y` is modified.
|
|
88
|
+
|
|
89
|
+
**Note:** By default, arrays are merged by concatenating them.
|
|
90
|
+
|
|
91
|
+
## `merge.all(arrayOfObjects, [options])`
|
|
92
|
+
|
|
93
|
+
Merges any number of objects into a single result object.
|
|
94
|
+
|
|
95
|
+
```js
|
|
96
|
+
const foobar = { foo: { bar: 3 } }
|
|
97
|
+
const foobaz = { foo: { baz: 4 } }
|
|
98
|
+
const bar = { bar: 'yay!' }
|
|
99
|
+
|
|
100
|
+
merge.all([ foobar, foobaz, bar ]) // => { foo: { bar: 3, baz: 4 }, bar: 'yay!' }
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
## Options
|
|
105
|
+
|
|
106
|
+
### `arrayMerge`
|
|
107
|
+
|
|
108
|
+
There are multiple ways to merge two arrays, below are a few examples but you can also create your own custom function.
|
|
109
|
+
|
|
110
|
+
Your `arrayMerge` function will be called with three arguments: a `target` array, the `source` array, and an `options` object with these properties:
|
|
111
|
+
|
|
112
|
+
- `isMergeableObject(value)`
|
|
113
|
+
- `cloneUnlessOtherwiseSpecified(value, options)`
|
|
114
|
+
|
|
115
|
+
#### `arrayMerge` example: overwrite target array
|
|
116
|
+
|
|
117
|
+
Overwrites the existing array values completely rather than concatenating them:
|
|
118
|
+
|
|
119
|
+
```js
|
|
120
|
+
const overwriteMerge = (destinationArray, sourceArray, options) => sourceArray
|
|
121
|
+
|
|
122
|
+
merge(
|
|
123
|
+
[1, 2, 3],
|
|
124
|
+
[3, 2, 1],
|
|
125
|
+
{ arrayMerge: overwriteMerge }
|
|
126
|
+
) // => [3, 2, 1]
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
#### `arrayMerge` example: combine arrays
|
|
130
|
+
|
|
131
|
+
Combines objects at the same index in the two arrays.
|
|
132
|
+
|
|
133
|
+
This was the default array merging algorithm pre-version-2.0.0.
|
|
134
|
+
|
|
135
|
+
```js
|
|
136
|
+
const combineMerge = (target, source, options) => {
|
|
137
|
+
const destination = target.slice()
|
|
138
|
+
|
|
139
|
+
source.forEach((item, index) => {
|
|
140
|
+
if (typeof destination[index] === 'undefined') {
|
|
141
|
+
destination[index] = options.cloneUnlessOtherwiseSpecified(item, options)
|
|
142
|
+
} else if (options.isMergeableObject(item)) {
|
|
143
|
+
destination[index] = merge(target[index], item, options)
|
|
144
|
+
} else if (target.indexOf(item) === -1) {
|
|
145
|
+
destination.push(item)
|
|
146
|
+
}
|
|
147
|
+
})
|
|
148
|
+
return destination
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
merge(
|
|
152
|
+
[{ a: true }],
|
|
153
|
+
[{ b: true }, 'ah yup'],
|
|
154
|
+
{ arrayMerge: combineMerge }
|
|
155
|
+
) // => [{ a: true, b: true }, 'ah yup']
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
### `isMergeableObject`
|
|
159
|
+
|
|
160
|
+
By default, deepmerge clones every property from almost every kind of object.
|
|
161
|
+
|
|
162
|
+
You may not want this, if your objects are of special types, and you want to copy the whole object instead of just copying its properties.
|
|
163
|
+
|
|
164
|
+
You can accomplish this by passing in a function for the `isMergeableObject` option.
|
|
165
|
+
|
|
166
|
+
If you only want to clone properties of plain objects, and ignore all "special" kinds of instantiated objects, you probably want to drop in [`is-plain-object`](https://github.com/jonschlinkert/is-plain-object).
|
|
167
|
+
|
|
168
|
+
```js
|
|
169
|
+
const { isPlainObject } = require('is-plain-object')
|
|
170
|
+
|
|
171
|
+
function SuperSpecial() {
|
|
172
|
+
this.special = 'oh yeah man totally'
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
const instantiatedSpecialObject = new SuperSpecial()
|
|
176
|
+
|
|
177
|
+
const target = {
|
|
178
|
+
someProperty: {
|
|
179
|
+
cool: 'oh for sure'
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
const source = {
|
|
184
|
+
someProperty: instantiatedSpecialObject
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
const defaultOutput = merge(target, source)
|
|
188
|
+
|
|
189
|
+
defaultOutput.someProperty.cool // => 'oh for sure'
|
|
190
|
+
defaultOutput.someProperty.special // => 'oh yeah man totally'
|
|
191
|
+
defaultOutput.someProperty instanceof SuperSpecial // => false
|
|
192
|
+
|
|
193
|
+
const customMergeOutput = merge(target, source, {
|
|
194
|
+
isMergeableObject: isPlainObject
|
|
195
|
+
})
|
|
196
|
+
|
|
197
|
+
customMergeOutput.someProperty.cool // => undefined
|
|
198
|
+
customMergeOutput.someProperty.special // => 'oh yeah man totally'
|
|
199
|
+
customMergeOutput.someProperty instanceof SuperSpecial // => true
|
|
200
|
+
```
|
|
201
|
+
|
|
202
|
+
### `customMerge`
|
|
203
|
+
|
|
204
|
+
Specifies a function which can be used to override the default merge behavior for a property, based on the property name.
|
|
205
|
+
|
|
206
|
+
The `customMerge` function will be passed the key for each property, and should return the function which should be used to merge the values for that property.
|
|
207
|
+
|
|
208
|
+
It may also return undefined, in which case the default merge behaviour will be used.
|
|
209
|
+
|
|
210
|
+
```js
|
|
211
|
+
const alex = {
|
|
212
|
+
name: {
|
|
213
|
+
first: 'Alex',
|
|
214
|
+
last: 'Alexson'
|
|
215
|
+
},
|
|
216
|
+
pets: ['Cat', 'Parrot']
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
const tony = {
|
|
220
|
+
name: {
|
|
221
|
+
first: 'Tony',
|
|
222
|
+
last: 'Tonison'
|
|
223
|
+
},
|
|
224
|
+
pets: ['Dog']
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
const mergeNames = (nameA, nameB) => `${nameA.first} and ${nameB.first}`
|
|
228
|
+
|
|
229
|
+
const options = {
|
|
230
|
+
customMerge: (key) => {
|
|
231
|
+
if (key === 'name') {
|
|
232
|
+
return mergeNames
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
const result = merge(alex, tony, options)
|
|
238
|
+
|
|
239
|
+
result.name // => 'Alex and Tony'
|
|
240
|
+
result.pets // => ['Cat', 'Parrot', 'Dog']
|
|
241
|
+
```
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
### `clone`
|
|
245
|
+
|
|
246
|
+
*Deprecated.*
|
|
247
|
+
|
|
248
|
+
Defaults to `true`.
|
|
249
|
+
|
|
250
|
+
If `clone` is `false` then child objects will be copied directly instead of being cloned. This was the default behavior before version 2.x.
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
# Testing
|
|
254
|
+
|
|
255
|
+
With [npm](http://npmjs.org) do:
|
|
256
|
+
|
|
257
|
+
```sh
|
|
258
|
+
npm test
|
|
259
|
+
```
|
|
260
|
+
|
|
261
|
+
|
|
262
|
+
# License
|
|
263
|
+
|
|
264
|
+
MIT
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import resolve from 'rollup-plugin-node-resolve'
|
|
2
|
+
import commonjs from 'rollup-plugin-commonjs'
|
|
3
|
+
import pkg from './package.json'
|
|
4
|
+
|
|
5
|
+
export default {
|
|
6
|
+
input: `index.js`,
|
|
7
|
+
plugins: [
|
|
8
|
+
commonjs(),
|
|
9
|
+
resolve(),
|
|
10
|
+
],
|
|
11
|
+
output: [
|
|
12
|
+
{
|
|
13
|
+
file: pkg.main,
|
|
14
|
+
format: `cjs`
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
name: 'deepmerge',
|
|
18
|
+
file: 'dist/umd.js',
|
|
19
|
+
format: `umd`
|
|
20
|
+
},
|
|
21
|
+
],
|
|
22
|
+
}
|