@socketsecurity/cli 0.14.34 → 0.14.36
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/bin/cli.js +37 -1
- package/bin/npm-cli.js +2 -1
- package/bin/npx-cli.js +2 -1
- package/dist/constants.js +69 -38
- package/dist/module-sync/cli.js +773 -1555
- package/dist/module-sync/constants.d.ts +16 -79
- package/dist/module-sync/constants.d.ts.map +1 -0
- package/dist/module-sync/npm-injection.js +77 -396
- package/dist/module-sync/path-resolve.d.ts +6 -1
- package/dist/module-sync/path-resolve.js +47 -38
- package/dist/module-sync/sdk.js +60 -110
- package/dist/module-sync/shadow-bin.d.ts +2 -0
- package/dist/module-sync/shadow-bin.js +103 -0
- package/dist/require/cli.js +768 -1549
- package/dist/require/constants.d.ts.map +1 -0
- package/dist/require/npm-injection.js +76 -394
- package/dist/require/path-resolve.js +47 -38
- package/dist/require/sdk.js +57 -106
- package/dist/require/shadow-bin.js +103 -0
- package/dist/require/vendor.js +8295 -8708
- package/package.json +30 -31
- package/shadow-bin/npm +4 -0
- package/shadow-bin/npx +4 -0
- package/bin/shadow/module-sync/npm +0 -3
- package/bin/shadow/module-sync/npx +0 -3
- package/bin/shadow/require/npm +0 -3
- package/bin/shadow/require/npx +0 -3
- package/dist/module-sync/link.d.ts +0 -2
- package/dist/module-sync/link.js +0 -54
- package/dist/module-sync/npm-cli.d.ts +0 -2
- package/dist/module-sync/npm-cli.js +0 -101
- package/dist/module-sync/npx-cli.d.ts +0 -2
- package/dist/module-sync/npx-cli.js +0 -77
- package/dist/module-sync/vendor.js +0 -70
- package/dist/require/link.js +0 -54
- package/dist/require/npm-cli.js +0 -101
- package/dist/require/npx-cli.js +0 -77
|
@@ -1,16 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
NODE_AUTH_TOKEN: string;
|
|
5
|
-
PRE_COMMIT: boolean;
|
|
6
|
-
}>;
|
|
7
|
-
declare const constants: {
|
|
1
|
+
import registryConstants from '@socketsecurity/registry/lib/constants';
|
|
2
|
+
type RegistryEnv = typeof registryConstants.ENV;
|
|
3
|
+
type Constants = {
|
|
8
4
|
readonly API_V0_URL: 'https://api.socket.dev/v0';
|
|
9
|
-
readonly
|
|
5
|
+
readonly BABEL_RUNTIME: '@babel/runtime';
|
|
6
|
+
readonly BUN: 'bun';
|
|
7
|
+
readonly ENV: RegistryEnv & {
|
|
8
|
+
UPDATE_SOCKET_OVERRIDES_IN_PACKAGE_LOCK_FILE: boolean;
|
|
9
|
+
};
|
|
10
10
|
readonly DIST_TYPE: 'module-sync' | 'require';
|
|
11
11
|
readonly NPM_REGISTRY_URL: 'https://registry.npmjs.org';
|
|
12
|
+
readonly NPX: 'npx';
|
|
13
|
+
readonly PNPM: 'pnpm';
|
|
12
14
|
readonly SOCKET_CLI_ISSUES_URL: 'https://github.com/SocketDev/socket-cli/issues';
|
|
13
15
|
readonly UPDATE_SOCKET_OVERRIDES_IN_PACKAGE_LOCK_FILE: 'UPDATE_SOCKET_OVERRIDES_IN_PACKAGE_LOCK_FILE';
|
|
16
|
+
readonly VLT: 'vlt';
|
|
17
|
+
readonly YARN_BERRY: 'yarn/berry';
|
|
18
|
+
readonly YARN_CLASSIC: 'yarn/classic';
|
|
14
19
|
readonly cdxgenBinPath: string;
|
|
15
20
|
readonly distPath: string;
|
|
16
21
|
readonly nmBinPath: string;
|
|
@@ -20,75 +25,7 @@ declare const constants: {
|
|
|
20
25
|
readonly rootPkgJsonPath: string;
|
|
21
26
|
readonly shadowBinPath: string;
|
|
22
27
|
readonly synpBinPath: string;
|
|
23
|
-
} &
|
|
24
|
-
|
|
25
|
-
readonly COLUMN_LIMIT: 80;
|
|
26
|
-
readonly EMPTY_FILE: "/* empty */\n";
|
|
27
|
-
readonly ENV: ENV;
|
|
28
|
-
readonly ESLINT_CONFIG_JS: "eslint.config.js";
|
|
29
|
-
readonly ESNEXT: "esnext";
|
|
30
|
-
readonly GIT_IGNORE: ".gitignore";
|
|
31
|
-
readonly LATEST: "latest";
|
|
32
|
-
readonly LICENSE: "LICENSE";
|
|
33
|
-
readonly LICENSE_GLOB: "LICEN[CS]E{[.-]*,}";
|
|
34
|
-
readonly LICENSE_GLOB_RECURSIVE: "**/LICEN[CS]E{[.-]*,}";
|
|
35
|
-
readonly LICENSE_ORIGINAL: "LICENSE.original";
|
|
36
|
-
readonly LICENSE_ORIGINAL_GLOB: "*.original{.*,}";
|
|
37
|
-
readonly LICENSE_ORIGINAL_GLOB_RECURSIVE: "**/*.original{.*,}";
|
|
38
|
-
readonly LOOP_SENTINEL: 1000000;
|
|
39
|
-
readonly MANIFEST_JSON: "manifest.json";
|
|
40
|
-
readonly MIT: "MIT";
|
|
41
|
-
readonly NODE_MODULES: "node_modules";
|
|
42
|
-
readonly NODE_MODULES_GLOB_RECURSIVE: "**/node_modules";
|
|
43
|
-
readonly NODE_WORKSPACES: "node_workspaces";
|
|
44
|
-
readonly NODE_VERSION: string;
|
|
45
|
-
readonly NPM_ORG: "socketregistry";
|
|
46
|
-
readonly OVERRIDES: "overrides";
|
|
47
|
-
readonly PACKAGE_DEFAULT_SOCKET_CATEGORIES: readonly ["cleanup"];
|
|
48
|
-
readonly PACKAGE_DEFAULT_NODE_RANGE: string;
|
|
49
|
-
readonly PACKAGE_DEFAULT_VERSION: "1.0.0";
|
|
50
|
-
readonly PACKAGE_JSON: "package.json";
|
|
51
|
-
readonly PACKAGE_LOCK: "package-lock.json";
|
|
52
|
-
readonly PACKAGE_SCOPE: "@socketregistry";
|
|
53
|
-
readonly PRETTIER_IGNORE: ".prettierignore";
|
|
54
|
-
readonly PRETTIER_RC: ".prettierrc";
|
|
55
|
-
readonly README_GLOB: "README{.*,}";
|
|
56
|
-
readonly README_GLOB_RECURSIVE: "**/README{.*,}";
|
|
57
|
-
readonly README_MD: "README.md";
|
|
58
|
-
readonly REGISTRY_SCOPE_DELIMITER: "__";
|
|
59
|
-
readonly REGISTRY_WORKSPACE: "registry";
|
|
60
|
-
readonly SOCKET_PUBLIC_API_KEY: "sktsec_t_--RAN5U4ivauy4w37-6aoKyYPDt5ZbaT5JBVMqiwKo_api";
|
|
61
|
-
readonly SOCKET_REPO_ORG: "SocketDev";
|
|
62
|
-
readonly SOCKET_REGISTRY_REPO_NAME: "socket-registry";
|
|
63
|
-
readonly SUPPORTS_NODE_DISABLE_WARNING_FLAG: boolean;
|
|
64
|
-
readonly SUPPORTS_NODE_REQUIRE_MODULE: boolean;
|
|
65
|
-
readonly SUPPORTS_NODE_RUN: boolean;
|
|
66
|
-
readonly TEMPLATE_CJS: "cjs";
|
|
67
|
-
readonly TEMPLATE_CJS_BROWSER: "cjs-browser";
|
|
68
|
-
readonly TEMPLATE_CJS_ESM: "cjs-esm";
|
|
69
|
-
readonly TEMPLATE_ES_SHIM_CONSTRUCTOR: "es-shim-constructor";
|
|
70
|
-
readonly TEMPLATE_ES_SHIM_PROTOTYPE_METHOD: "es-shim-prototype-method";
|
|
71
|
-
readonly TEMPLATE_ES_SHIM_STATIC_METHOD: "es-shim-static-method";
|
|
72
|
-
readonly TSCONFIG_JSON: "tsconfig.json";
|
|
73
|
-
readonly UNLICENCED: "UNLICENCED";
|
|
74
|
-
readonly UNLICENSED: "UNLICENSED";
|
|
75
|
-
readonly WIN32: boolean;
|
|
76
|
-
readonly copyLeftLicenses: ReadonlySet<string>;
|
|
77
|
-
readonly execPath: string;
|
|
78
|
-
readonly ignoreGlobs: readonly string[];
|
|
79
|
-
readonly kInternalsSymbol: unique symbol;
|
|
80
|
-
readonly lifecycleScriptNames: ReadonlySet<string>;
|
|
81
|
-
readonly maintainedNodeVersions: MaintainedNodeVersions;
|
|
82
|
-
readonly nodeNoWarningsFlags: readonly string[];
|
|
83
|
-
readonly npmExecPath: string;
|
|
84
|
-
readonly packageExtensions: readonly [string, object][];
|
|
85
|
-
readonly packumentCache: Map<unknown, unknown>;
|
|
86
|
-
readonly pacoteCachePath: string;
|
|
87
|
-
readonly parseArgsConfig: ParseArgsConfig;
|
|
88
|
-
readonly skipTestsByEcosystem: Readonly<Record<string, ReadonlySet<string>>>;
|
|
89
|
-
readonly tsLibsAvailable: ReadonlySet<string>;
|
|
90
|
-
readonly tsTypesAvailable: ReadonlySet<string>;
|
|
91
|
-
readonly win32EnsureTestsByEcosystem: Readonly<Record<string, ReadonlySet<string>>>;
|
|
92
|
-
readonly [kInternalsSymbol]: Internals;
|
|
93
|
-
};
|
|
28
|
+
} & typeof registryConstants;
|
|
29
|
+
declare const constants: Constants;
|
|
94
30
|
export { constants as default };
|
|
31
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":"AAIA,OAAO,iBAAiB,MAAM,wCAAwC,CAAA;AAEtE,KAAK,WAAW,GAAG,OAAO,iBAAiB,CAAC,GAAG,CAAA;AAE/C,KAAK,SAAS,GAAG;IACf,QAAQ,CAAC,UAAU,EAAE,2BAA2B,CAAA;IAChD,QAAQ,CAAC,aAAa,EAAE,gBAAgB,CAAA;IACxC,QAAQ,CAAC,GAAG,EAAE,KAAK,CAAA;IACnB,QAAQ,CAAC,GAAG,EAAE,WAAW,GAAG;QAC1B,4CAA4C,EAAE,OAAO,CAAA;KACtD,CAAA;IACD,QAAQ,CAAC,SAAS,EAAE,aAAa,GAAG,SAAS,CAAA;IAC7C,QAAQ,CAAC,gBAAgB,EAAE,4BAA4B,CAAA;IACvD,QAAQ,CAAC,GAAG,EAAE,KAAK,CAAA;IACnB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,qBAAqB,EAAE,gDAAgD,CAAA;IAChF,QAAQ,CAAC,4CAA4C,EAAE,8CAA8C,CAAA;IACrG,QAAQ,CAAC,GAAG,EAAE,KAAK,CAAA;IACnB,QAAQ,CAAC,UAAU,EAAE,YAAY,CAAA;IACjC,QAAQ,CAAC,YAAY,EAAE,cAAc,CAAA;IACrC,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAA;IAC9B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;IAC1B,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAA;IAC5B,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAA;IAC7B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAA;IAChC,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAA;IAC9B,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAA;CAC7B,GAAG,OAAO,iBAAiB,CAAA;AAsE5B,QAAA,MAAM,SAAS,WA0Cd,CAAA"}
|