@contrast/agent-bundle 5.40.0 → 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/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/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.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.js +1 -9
- package/node_modules/@contrast/route-coverage/lib/install/express/express5.js +17 -19
- 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/@types/node/README.md +2 -2
- 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/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/package.json +2 -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/form-data/README.md.bak +0 -355
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { CommonRulesResultsMap, HardeningResultsMap, ResultMap, SemanticAnalysisResultsMap, ServerFeaturePreliminaryResultsMap } from './types';
|
|
2
|
-
export * from './constants';
|
|
3
|
-
export * from './types';
|
|
4
|
-
export * from './primordials';
|
|
5
|
-
interface TraverseCallback {
|
|
6
|
-
(path: any[], type: 'Key' | 'Value', value: any, obj: any): unknown;
|
|
7
|
-
}
|
|
8
|
-
export declare const empties: {
|
|
9
|
-
OBJECT: Readonly<{}>;
|
|
10
|
-
ARRAY: readonly never[];
|
|
11
|
-
UNTRACKED_VALUE_OBJ: Readonly<{
|
|
12
|
-
value: null;
|
|
13
|
-
tracked: false;
|
|
14
|
-
}>;
|
|
15
|
-
};
|
|
16
|
-
/**
|
|
17
|
-
* Returns true if the value passed is either a primitive string or a
|
|
18
|
-
* String object.
|
|
19
|
-
*/
|
|
20
|
-
export declare function isString(value: unknown): value is string | String;
|
|
21
|
-
export declare function isNonEmptyObject(value: unknown): value is object;
|
|
22
|
-
export declare function encodeString(str: string): string;
|
|
23
|
-
export declare function traverseKeysAndValues(obj: any, cb: TraverseCallback, depth?: number): void;
|
|
24
|
-
export declare function traverseValues(obj: any, cb: TraverseCallback, depth?: number): void;
|
|
25
|
-
export declare function traverseKeys(obj: any, cb: TraverseCallback, depth?: number): void;
|
|
26
|
-
export declare function callChildComponentMethodsSync(parent: any, method: 'install' | 'uninstall', order?: string[]): void;
|
|
27
|
-
export declare function callChildComponentMethods(parent: any, method: 'install' | 'uninstall', order?: string[]): Promise<void>;
|
|
28
|
-
export declare function groupResultsMap(resultsMap: Partial<ResultMap>): {
|
|
29
|
-
commonResultsMap: Partial<CommonRulesResultsMap>;
|
|
30
|
-
hardeningResultsMap: Partial<HardeningResultsMap>;
|
|
31
|
-
semanticResultsMap: Partial<SemanticAnalysisResultsMap>;
|
|
32
|
-
serverFeaturesResultsMap: Partial<ServerFeaturePreliminaryResultsMap>;
|
|
33
|
-
};
|
|
34
|
-
export declare function get(obj: any, name: string): any;
|
|
35
|
-
export declare function set(obj: Record<string, any>, name: string, value: any): void;
|
|
36
|
-
/** Suppresses output to stderr when installed by the universal agent */
|
|
37
|
-
export declare function safeConsoleError(...args: Parameters<typeof console.error>): void;
|
|
38
|
-
/** Suppresses output to stderr when installed by the universal agent */
|
|
39
|
-
export declare function safeConsoleWarn(...args: Parameters<typeof console.warn>): void;
|
|
40
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,228 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Copyright: 2025 Contrast Security, Inc
|
|
4
|
-
* Contact: support@contrastsecurity.com
|
|
5
|
-
* License: Commercial
|
|
6
|
-
|
|
7
|
-
* NOTICE: This Software and the patented inventions embodied within may only be
|
|
8
|
-
* used as part of Contrast Security’s commercial offerings. Even though it is
|
|
9
|
-
* made available through public repositories, use of this Software is subject to
|
|
10
|
-
* the applicable End User Licensing Agreement found at
|
|
11
|
-
* https://www.contrastsecurity.com/enduser-terms-0317a or as otherwise agreed
|
|
12
|
-
* between Contrast Security and the End User. The Software may not be reverse
|
|
13
|
-
* engineered, modified, repackaged, sold, redistributed or otherwise used in a
|
|
14
|
-
* way not consistent with the End User License Agreement.
|
|
15
|
-
*/
|
|
16
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
17
|
-
if (k2 === undefined) k2 = k;
|
|
18
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
19
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
20
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
21
|
-
}
|
|
22
|
-
Object.defineProperty(o, k2, desc);
|
|
23
|
-
}) : (function(o, m, k, k2) {
|
|
24
|
-
if (k2 === undefined) k2 = k;
|
|
25
|
-
o[k2] = m[k];
|
|
26
|
-
}));
|
|
27
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
28
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
29
|
-
};
|
|
30
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
31
|
-
exports.safeConsoleWarn = exports.safeConsoleError = exports.set = exports.get = exports.groupResultsMap = exports.callChildComponentMethods = exports.callChildComponentMethodsSync = exports.traverseKeys = exports.traverseValues = exports.traverseKeysAndValues = exports.encodeString = exports.isNonEmptyObject = exports.isString = exports.empties = void 0;
|
|
32
|
-
const constants_1 = require("./constants");
|
|
33
|
-
const primordials_1 = require("./primordials");
|
|
34
|
-
__exportStar(require("./constants"), exports);
|
|
35
|
-
__exportStar(require("./types"), exports);
|
|
36
|
-
__exportStar(require("./primordials"), exports);
|
|
37
|
-
const { CONTRAST_INSTALLATION_TOOL = 'NONE' } = process.env;
|
|
38
|
-
const { StringPrototypeSplit, BufferFrom, BufferPrototypeToString } = primordials_1.primordials;
|
|
39
|
-
exports.empties = {
|
|
40
|
-
OBJECT: Object.freeze({}),
|
|
41
|
-
ARRAY: Object.freeze([]),
|
|
42
|
-
UNTRACKED_VALUE_OBJ: Object.freeze({ value: null, tracked: false })
|
|
43
|
-
};
|
|
44
|
-
/**
|
|
45
|
-
* Returns true if the value passed is either a primitive string or a
|
|
46
|
-
* String object.
|
|
47
|
-
*/
|
|
48
|
-
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
49
|
-
function isString(value) {
|
|
50
|
-
return typeof value === 'string' || value instanceof String;
|
|
51
|
-
}
|
|
52
|
-
exports.isString = isString;
|
|
53
|
-
function isNonEmptyObject(value) {
|
|
54
|
-
return !!value && typeof value === 'object' && Object.keys(value).length > 0;
|
|
55
|
-
}
|
|
56
|
-
exports.isNonEmptyObject = isNonEmptyObject;
|
|
57
|
-
/* c8 ignore next 3 */
|
|
58
|
-
function encodeString(str) {
|
|
59
|
-
return BufferPrototypeToString.call(BufferFrom(str), 'base64');
|
|
60
|
-
}
|
|
61
|
-
exports.encodeString = encodeString;
|
|
62
|
-
function traverse(obj, cb, path, traverseValues, traverseKeys, depth = Infinity) {
|
|
63
|
-
let shouldKeepTraversing = true;
|
|
64
|
-
let reachedDepth = 0;
|
|
65
|
-
function _traverse(obj, cb, path, traverseValues, traverseKeys) {
|
|
66
|
-
const isArray = Array.isArray(obj);
|
|
67
|
-
for (const k in obj) {
|
|
68
|
-
if (!shouldKeepTraversing || reachedDepth >= depth)
|
|
69
|
-
return;
|
|
70
|
-
if (isArray) {
|
|
71
|
-
const _k = Number(k);
|
|
72
|
-
// if it is an array, store each index in path but don't call the
|
|
73
|
-
// callback on the index itself as they are just numeric strings.
|
|
74
|
-
path.push(_k);
|
|
75
|
-
if (typeof obj[_k] === 'object' && obj[_k] !== null) {
|
|
76
|
-
reachedDepth++;
|
|
77
|
-
_traverse(obj[_k], cb, path, traverseValues, traverseKeys);
|
|
78
|
-
}
|
|
79
|
-
else if (typeof obj[_k] === 'string' && obj[_k]) {
|
|
80
|
-
if (traverseValues && cb(path, 'Value', obj[_k], obj)) {
|
|
81
|
-
return shouldKeepTraversing = false;
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
path.pop();
|
|
85
|
-
}
|
|
86
|
-
else if (typeof obj[k] === 'object' && obj[k] !== null) {
|
|
87
|
-
if (traverseKeys && cb(path, 'Key', k, obj)) {
|
|
88
|
-
return shouldKeepTraversing = false;
|
|
89
|
-
}
|
|
90
|
-
path.push(k);
|
|
91
|
-
reachedDepth++;
|
|
92
|
-
_traverse(obj[k], cb, path, traverseValues, traverseKeys);
|
|
93
|
-
path.pop();
|
|
94
|
-
}
|
|
95
|
-
else {
|
|
96
|
-
if (traverseKeys && cb(path, 'Key', k, obj)) {
|
|
97
|
-
return shouldKeepTraversing = false;
|
|
98
|
-
}
|
|
99
|
-
// only callback if the value is a non-empty string
|
|
100
|
-
if (typeof obj[k] === 'string' && obj[k]) {
|
|
101
|
-
path.push(k);
|
|
102
|
-
if (traverseValues && cb(path, 'Value', obj[k], obj)) {
|
|
103
|
-
return shouldKeepTraversing = false;
|
|
104
|
-
}
|
|
105
|
-
path.pop();
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
_traverse(obj, cb, path, traverseValues, traverseKeys);
|
|
111
|
-
}
|
|
112
|
-
function traverseKeysAndValues(obj, cb, depth) {
|
|
113
|
-
if (typeof obj !== 'object' || obj === null) {
|
|
114
|
-
return;
|
|
115
|
-
}
|
|
116
|
-
traverse(obj, cb, [], true, true, depth);
|
|
117
|
-
}
|
|
118
|
-
exports.traverseKeysAndValues = traverseKeysAndValues;
|
|
119
|
-
function traverseValues(obj, cb, depth) {
|
|
120
|
-
if (typeof obj !== 'object' || obj === null) {
|
|
121
|
-
return;
|
|
122
|
-
}
|
|
123
|
-
traverse(obj, cb, [], true, false, depth);
|
|
124
|
-
}
|
|
125
|
-
exports.traverseValues = traverseValues;
|
|
126
|
-
function traverseKeys(obj, cb, depth) {
|
|
127
|
-
if (typeof obj !== 'object' || obj === null) {
|
|
128
|
-
return;
|
|
129
|
-
}
|
|
130
|
-
traverse(obj, cb, [], false, true, depth);
|
|
131
|
-
}
|
|
132
|
-
exports.traverseKeys = traverseKeys;
|
|
133
|
-
function callChildComponentMethodsSync(parent, method, order) {
|
|
134
|
-
const keys = order || Object.keys(parent);
|
|
135
|
-
for (const key of keys) {
|
|
136
|
-
const component = parent[key];
|
|
137
|
-
component?.[method]?.();
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
exports.callChildComponentMethodsSync = callChildComponentMethodsSync;
|
|
141
|
-
async function callChildComponentMethods(parent, method, order) {
|
|
142
|
-
const keys = order || Object.keys(parent);
|
|
143
|
-
for (const key of keys) {
|
|
144
|
-
const component = parent[key];
|
|
145
|
-
await component?.[method]?.();
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
exports.callChildComponentMethods = callChildComponentMethods;
|
|
149
|
-
function groupResultsMap(resultsMap) {
|
|
150
|
-
const result = {
|
|
151
|
-
commonResultsMap: {},
|
|
152
|
-
hardeningResultsMap: {},
|
|
153
|
-
semanticResultsMap: {},
|
|
154
|
-
serverFeaturesResultsMap: {},
|
|
155
|
-
};
|
|
156
|
-
Object.keys(resultsMap).reduce((acc, rule) => {
|
|
157
|
-
switch (rule) {
|
|
158
|
-
case constants_1.Rule.SQL_INJECTION:
|
|
159
|
-
case constants_1.Rule.CMD_INJECTION:
|
|
160
|
-
case constants_1.Rule.PATH_TRAVERSAL:
|
|
161
|
-
case constants_1.Rule.REFLECTED_XSS:
|
|
162
|
-
case constants_1.Rule.SSJS_INJECTION:
|
|
163
|
-
case constants_1.Rule.NOSQL_INJECTION_MONGO:
|
|
164
|
-
case constants_1.Rule.UNSAFE_FILE_UPLOAD:
|
|
165
|
-
case constants_1.Rule.BOT_BLOCKER:
|
|
166
|
-
case constants_1.Rule.NOSQL_INJECTION:
|
|
167
|
-
acc.commonResultsMap[rule] = resultsMap[rule];
|
|
168
|
-
break;
|
|
169
|
-
case constants_1.Rule.CMD_INJECTION_SEMANTIC_DANGEROUS_PATHS:
|
|
170
|
-
case constants_1.Rule.CMD_INJECTION_SEMANTIC_CHAINED_COMMANDS:
|
|
171
|
-
case constants_1.Rule.XXE:
|
|
172
|
-
case constants_1.Rule.CMD_INJECTION_COMMAND_BACKDOORS:
|
|
173
|
-
case constants_1.Rule.PATH_TRAVERSAL_SEMANTIC_FILE_SECURITY_BYPASS:
|
|
174
|
-
acc.semanticResultsMap[rule] = resultsMap[rule];
|
|
175
|
-
break;
|
|
176
|
-
case constants_1.Rule.VIRTUAL_PATCH:
|
|
177
|
-
case constants_1.Rule.IP_DENYLIST:
|
|
178
|
-
acc.serverFeaturesResultsMap[rule] = resultsMap[rule];
|
|
179
|
-
break;
|
|
180
|
-
case constants_1.Rule.UNTRUSTED_DESERIALIZATION:
|
|
181
|
-
acc.hardeningResultsMap[rule] = resultsMap[rule];
|
|
182
|
-
}
|
|
183
|
-
return acc;
|
|
184
|
-
}, result);
|
|
185
|
-
return result;
|
|
186
|
-
}
|
|
187
|
-
exports.groupResultsMap = groupResultsMap;
|
|
188
|
-
function get(obj, name) {
|
|
189
|
-
let target = obj;
|
|
190
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
191
|
-
// @ts-ignore
|
|
192
|
-
const props = StringPrototypeSplit.call(name, '.');
|
|
193
|
-
for (const prop of props) {
|
|
194
|
-
target = target?.[prop];
|
|
195
|
-
if (target === undefined)
|
|
196
|
-
break;
|
|
197
|
-
}
|
|
198
|
-
return target;
|
|
199
|
-
}
|
|
200
|
-
exports.get = get;
|
|
201
|
-
function set(obj, name, value) {
|
|
202
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
203
|
-
// @ts-ignore
|
|
204
|
-
const props = StringPrototypeSplit.call(name, '.');
|
|
205
|
-
const lastProp = props.pop();
|
|
206
|
-
for (const p of props) {
|
|
207
|
-
if (!obj[p])
|
|
208
|
-
obj[p] = {};
|
|
209
|
-
obj = obj[p];
|
|
210
|
-
}
|
|
211
|
-
obj[lastProp] = value;
|
|
212
|
-
}
|
|
213
|
-
exports.set = set;
|
|
214
|
-
/** Suppresses output to stderr when installed by the universal agent */
|
|
215
|
-
function safeConsoleError(...args) {
|
|
216
|
-
if (CONTRAST_INSTALLATION_TOOL === 'NONE') {
|
|
217
|
-
console.error(...args);
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
exports.safeConsoleError = safeConsoleError;
|
|
221
|
-
/** Suppresses output to stderr when installed by the universal agent */
|
|
222
|
-
function safeConsoleWarn(...args) {
|
|
223
|
-
if (CONTRAST_INSTALLATION_TOOL === 'NONE') {
|
|
224
|
-
console.warn(...args);
|
|
225
|
-
}
|
|
226
|
-
}
|
|
227
|
-
exports.safeConsoleWarn = safeConsoleWarn;
|
|
228
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
/// <reference types="node" />
|
|
3
|
-
/// <reference types="node" />
|
|
4
|
-
/// <reference types="node" />
|
|
5
|
-
import { inspect } from 'util';
|
|
6
|
-
import fs from 'fs';
|
|
7
|
-
export declare const primordials: {
|
|
8
|
-
ArrayPrototypeJoin: (separator?: string | undefined) => string;
|
|
9
|
-
ArrayPrototypeSlice: (start?: number | undefined, end?: number | undefined) => any[];
|
|
10
|
-
BufferFrom: typeof Buffer.from;
|
|
11
|
-
BufferPrototypeToString: (encoding?: BufferEncoding | undefined, start?: number | undefined, end?: number | undefined) => string;
|
|
12
|
-
StringPrototypeConcat: (...strings: string[]) => string;
|
|
13
|
-
StringPrototypeMatch: {
|
|
14
|
-
(regexp: string | RegExp): RegExpMatchArray | null;
|
|
15
|
-
(matcher: {
|
|
16
|
-
[Symbol.match](string: string): RegExpMatchArray | null;
|
|
17
|
-
}): RegExpMatchArray | null;
|
|
18
|
-
};
|
|
19
|
-
StringPrototypeMatchAll: (regexp: RegExp) => IterableIterator<RegExpMatchArray>;
|
|
20
|
-
StringPrototypeReplace: {
|
|
21
|
-
(searchValue: string | RegExp, replaceValue: string): string;
|
|
22
|
-
(searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string;
|
|
23
|
-
(searchValue: {
|
|
24
|
-
[Symbol.replace](string: string, replaceValue: string): string;
|
|
25
|
-
}, replaceValue: string): string;
|
|
26
|
-
(searchValue: {
|
|
27
|
-
[Symbol.replace](string: string, replacer: (substring: string, ...args: any[]) => string): string;
|
|
28
|
-
}, replacer: (substring: string, ...args: any[]) => string): string;
|
|
29
|
-
};
|
|
30
|
-
StringPrototypeReplaceAll: {
|
|
31
|
-
(searchValue: string | RegExp, replaceValue: string): string;
|
|
32
|
-
(searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string;
|
|
33
|
-
};
|
|
34
|
-
StringPrototypeSlice: (start?: number | undefined, end?: number | undefined) => string;
|
|
35
|
-
StringPrototypeSplit: {
|
|
36
|
-
(separator: string | RegExp, limit?: number | undefined): string[];
|
|
37
|
-
(splitter: {
|
|
38
|
-
[Symbol.split](string: string, limit?: number | undefined): string[];
|
|
39
|
-
}, limit?: number | undefined): string[];
|
|
40
|
-
};
|
|
41
|
-
StringPrototypeSubstr: (from: number, length?: number | undefined) => string;
|
|
42
|
-
StringPrototypeSubstring: (start: number, end?: number | undefined) => string;
|
|
43
|
-
StringPrototypeToLowerCase: () => string;
|
|
44
|
-
StringPrototypeToUpperCase: () => string;
|
|
45
|
-
StringPrototypeToLocaleLowerCase: (locales?: string | string[] | undefined) => string;
|
|
46
|
-
StringPrototypeToLocaleUpperCase: (locales?: string | string[] | undefined) => string;
|
|
47
|
-
StringPrototypeTrim: () => string;
|
|
48
|
-
RegExpPrototypeTest: (string: string) => boolean;
|
|
49
|
-
RegExpPrototypeExec: (string: string) => RegExpExecArray | null;
|
|
50
|
-
FunctionPrototypeToString: () => string;
|
|
51
|
-
JSONParse: (text: string, reviver?: ((this: any, key: string, value: any) => any) | undefined) => any;
|
|
52
|
-
JSONStringify: {
|
|
53
|
-
(value: any, replacer?: ((this: any, key: string, value: any) => any) | undefined, space?: string | number | undefined): string;
|
|
54
|
-
(value: any, replacer?: (string | number)[] | null | undefined, space?: string | number | undefined): string;
|
|
55
|
-
};
|
|
56
|
-
UtilInspect: typeof inspect;
|
|
57
|
-
PathBasename: (path: string, ext?: string | undefined) => string;
|
|
58
|
-
FsOpen: typeof fs.open;
|
|
59
|
-
FsOpenSync: typeof fs.openSync;
|
|
60
|
-
FsReadFile: typeof fs.readFile;
|
|
61
|
-
FsReadFileSync: typeof fs.readFileSync;
|
|
62
|
-
FsPromisesOpen: typeof fs.promises.open;
|
|
63
|
-
FsPromiseReadFile: typeof fs.promises.readFile;
|
|
64
|
-
};
|
|
65
|
-
//# sourceMappingURL=primordials.d.ts.map
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Copyright: 2025 Contrast Security, Inc
|
|
4
|
-
* Contact: support@contrastsecurity.com
|
|
5
|
-
* License: Commercial
|
|
6
|
-
|
|
7
|
-
* NOTICE: This Software and the patented inventions embodied within may only be
|
|
8
|
-
* used as part of Contrast Security’s commercial offerings. Even though it is
|
|
9
|
-
* made available through public repositories, use of this Software is subject to
|
|
10
|
-
* the applicable End User Licensing Agreement found at
|
|
11
|
-
* https://www.contrastsecurity.com/enduser-terms-0317a or as otherwise agreed
|
|
12
|
-
* between Contrast Security and the End User. The Software may not be reverse
|
|
13
|
-
* engineered, modified, repackaged, sold, redistributed or otherwise used in a
|
|
14
|
-
* way not consistent with the End User License Agreement.
|
|
15
|
-
*/
|
|
16
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
17
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
18
|
-
};
|
|
19
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
-
exports.primordials = void 0;
|
|
21
|
-
const util_1 = require("util");
|
|
22
|
-
const path_1 = require("path");
|
|
23
|
-
const fs_1 = __importDefault(require("fs"));
|
|
24
|
-
const promises_1 = __importDefault(require("fs/promises"));
|
|
25
|
-
exports.primordials = {
|
|
26
|
-
// arrays
|
|
27
|
-
ArrayPrototypeJoin: Array.prototype.join,
|
|
28
|
-
ArrayPrototypeSlice: Array.prototype.slice,
|
|
29
|
-
//buffers,
|
|
30
|
-
BufferFrom: Buffer.from,
|
|
31
|
-
BufferPrototypeToString: Buffer.prototype.toString,
|
|
32
|
-
//strings
|
|
33
|
-
StringPrototypeConcat: String.prototype.concat,
|
|
34
|
-
StringPrototypeMatch: String.prototype.match,
|
|
35
|
-
StringPrototypeMatchAll: String.prototype.matchAll,
|
|
36
|
-
StringPrototypeReplace: String.prototype.replace,
|
|
37
|
-
StringPrototypeReplaceAll: String.prototype.replaceAll,
|
|
38
|
-
StringPrototypeSlice: String.prototype.slice,
|
|
39
|
-
StringPrototypeSplit: String.prototype.split,
|
|
40
|
-
StringPrototypeSubstr: String.prototype.substr,
|
|
41
|
-
StringPrototypeSubstring: String.prototype.substring,
|
|
42
|
-
StringPrototypeToLowerCase: String.prototype.toLowerCase,
|
|
43
|
-
StringPrototypeToUpperCase: String.prototype.toUpperCase,
|
|
44
|
-
StringPrototypeToLocaleLowerCase: String.prototype.toLocaleLowerCase,
|
|
45
|
-
StringPrototypeToLocaleUpperCase: String.prototype.toLocaleUpperCase,
|
|
46
|
-
StringPrototypeTrim: String.prototype.trim,
|
|
47
|
-
//regex,
|
|
48
|
-
RegExpPrototypeTest: RegExp.prototype.test,
|
|
49
|
-
RegExpPrototypeExec: RegExp.prototype.exec,
|
|
50
|
-
//function
|
|
51
|
-
FunctionPrototypeToString: Function.prototype.toString,
|
|
52
|
-
// misc
|
|
53
|
-
JSONParse: JSON.parse,
|
|
54
|
-
JSONStringify: JSON.stringify,
|
|
55
|
-
UtilInspect: util_1.inspect,
|
|
56
|
-
PathBasename: path_1.basename,
|
|
57
|
-
// fs
|
|
58
|
-
FsOpen: fs_1.default.open,
|
|
59
|
-
FsOpenSync: fs_1.default.openSync,
|
|
60
|
-
FsReadFile: fs_1.default.readFile,
|
|
61
|
-
FsReadFileSync: fs_1.default.readFileSync,
|
|
62
|
-
// fs/promises
|
|
63
|
-
FsPromisesOpen: promises_1.default.open,
|
|
64
|
-
FsPromiseReadFile: promises_1.default.readFile,
|
|
65
|
-
};
|
|
66
|
-
//# sourceMappingURL=primordials.js.map
|