@socketsecurity/cli-with-sentry 1.0.107 → 1.0.109
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 +1 -0
- package/dist/cli.js +11 -12
- package/dist/cli.js.map +1 -1
- package/dist/constants.js +69 -47
- package/dist/constants.js.map +1 -1
- package/dist/shadow-npm-bin.js +10 -8
- package/dist/shadow-npm-bin.js.map +1 -1
- package/dist/shadow-npm-inject.js +15 -14
- package/dist/shadow-npm-inject.js.map +1 -1
- package/dist/tsconfig.dts.tsbuildinfo +1 -1
- package/dist/types/commands/manifest/run-cdxgen.d.mts.map +1 -1
- package/dist/types/constants.d.mts +13 -8
- package/dist/types/constants.d.mts.map +1 -1
- package/dist/types/shadow/npm/arborist/lib/arborist/index.d.mts.map +1 -1
- package/dist/types/shadow/npm/bin.d.mts +2 -1
- package/dist/types/shadow/npm/bin.d.mts.map +1 -1
- package/dist/types/shadow/npm/install.d.mts.map +1 -1
- package/dist/types/shadow/npm/link.d.mts +1 -1
- package/dist/types/shadow/npm/link.d.mts.map +1 -1
- package/dist/types/utils/alert/artifact.d.mts +1 -1
- package/dist/types/utils/alert/artifact.d.mts.map +1 -1
- package/dist/types/utils/alerts-map.d.mts +1 -1
- package/dist/types/utils/alerts-map.d.mts.map +1 -1
- package/dist/types/utils/coana.d.mts +3 -2
- package/dist/types/utils/coana.d.mts.map +1 -1
- package/dist/types/utils/sdk.d.mts +1 -1
- package/dist/types/utils/sdk.d.mts.map +1 -1
- package/dist/utils.js +10 -5
- package/dist/utils.js.map +1 -1
- package/external/@socketsecurity/registry/lib/constants/env.js +3 -3
- package/external/@socketsecurity/registry/lib/constants/node-harden-flags.js +11 -3
- package/package.json +6 -6
package/bin/cli.js
CHANGED
package/dist/cli.js
CHANGED
|
@@ -5903,6 +5903,14 @@ async function runCdxgen(argvObj) {
|
|
|
5903
5903
|
__proto__: null,
|
|
5904
5904
|
...argvObj
|
|
5905
5905
|
};
|
|
5906
|
+
const shadowOpts = {
|
|
5907
|
+
ipc: {
|
|
5908
|
+
[constants.SOCKET_CLI_SHADOW_ACCEPT_RISKS]: true,
|
|
5909
|
+
[constants.SOCKET_CLI_SHADOW_API_TOKEN]: constants.SOCKET_PUBLIC_API_TOKEN,
|
|
5910
|
+
[constants.SOCKET_CLI_SHADOW_SILENT]: true
|
|
5911
|
+
},
|
|
5912
|
+
stdio: 'inherit'
|
|
5913
|
+
};
|
|
5906
5914
|
if (argvMutable['type'] !== YARN && nodejsPlatformTypes.has(argvMutable['type']) && fs$1.existsSync(`./${YARN_LOCK}`)) {
|
|
5907
5915
|
if (fs$1.existsSync(`./${PACKAGE_LOCK_JSON}`)) {
|
|
5908
5916
|
argvMutable['type'] = 'npm';
|
|
@@ -5912,23 +5920,14 @@ async function runCdxgen(argvObj) {
|
|
|
5912
5920
|
try {
|
|
5913
5921
|
const {
|
|
5914
5922
|
spawnPromise: synpPromise
|
|
5915
|
-
} = await shadowNpmBin('npx', ['--yes', `synp@${constants.ENV.INLINED_SOCKET_CLI_SYNP_VERSION}`, '--source-file', `./${YARN_LOCK}`],
|
|
5916
|
-
apiToken: constants.SOCKET_PUBLIC_API_TOKEN,
|
|
5917
|
-
stdio: 'inherit'
|
|
5918
|
-
});
|
|
5923
|
+
} = await shadowNpmBin('npx', ['--yes', `synp@${constants.ENV.INLINED_SOCKET_CLI_SYNP_VERSION}`, '--source-file', `./${YARN_LOCK}`], shadowOpts);
|
|
5919
5924
|
await synpPromise;
|
|
5920
5925
|
argvMutable['type'] = 'npm';
|
|
5921
5926
|
cleanupPackageLock = true;
|
|
5922
5927
|
} catch {}
|
|
5923
5928
|
}
|
|
5924
5929
|
}
|
|
5925
|
-
const shadowResult = await shadowNpmBin('npx', ['--yes', `@cyclonedx/cdxgen@${constants.ENV.INLINED_SOCKET_CLI_CYCLONEDX_CDXGEN_VERSION}`, ...argvToArray(argvMutable)],
|
|
5926
|
-
apiToken: constants.SOCKET_PUBLIC_API_TOKEN,
|
|
5927
|
-
env: {
|
|
5928
|
-
[constants.SOCKET_CLI_ACCEPT_RISKS]: '1'
|
|
5929
|
-
},
|
|
5930
|
-
stdio: 'inherit'
|
|
5931
|
-
});
|
|
5930
|
+
const shadowResult = await shadowNpmBin('npx', ['--yes', `@cyclonedx/cdxgen@${constants.ENV.INLINED_SOCKET_CLI_CYCLONEDX_CDXGEN_VERSION}`, ...argvToArray(argvMutable)], shadowOpts);
|
|
5932
5931
|
shadowResult.spawnPromise.process.on('exit', () => {
|
|
5933
5932
|
if (cleanupPackageLock) {
|
|
5934
5933
|
try {
|
|
@@ -15349,5 +15348,5 @@ void (async () => {
|
|
|
15349
15348
|
await utils.captureException(e);
|
|
15350
15349
|
}
|
|
15351
15350
|
})();
|
|
15352
|
-
//# debugId=
|
|
15351
|
+
//# debugId=1c929b2a-d338-4d0d-ba36-1722cd88980
|
|
15353
15352
|
//# sourceMappingURL=cli.js.map
|