@socketsecurity/cli-with-sentry 1.0.6 → 1.0.7
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/dist/cli.js +15 -4
- package/dist/cli.js.map +1 -1
- package/dist/constants.js +3 -3
- package/dist/constants.js.map +1 -1
- package/dist/shadow-npm-inject.js.map +1 -1
- package/dist/types/commands/fix/handle-fix.d.mts.map +1 -1
- package/dist/types/commands/fix/npm-fix.d.mts.map +1 -1
- package/dist/types/shadow/npm/arborist/types.d.mts +5 -1
- package/dist/types/shadow/npm/arborist/types.d.mts.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -4250,11 +4250,18 @@ async function npmFix(pkgEnvDetails, options) {
|
|
|
4250
4250
|
shorthands: vendor.definitionsExports.shorthands
|
|
4251
4251
|
});
|
|
4252
4252
|
await config.load();
|
|
4253
|
-
|
|
4253
|
+
const flatConfig = {
|
|
4254
|
+
__proto__: null,
|
|
4255
|
+
...config.flat
|
|
4256
|
+
};
|
|
4257
|
+
flatConfig.nodeVersion = constants.NODE_VERSION;
|
|
4258
|
+
flatConfig.npmVersion = pkgEnvDetails.agentVersion.toString();
|
|
4259
|
+
flatConfig.npmCommand = 'install';
|
|
4260
|
+
debug.debugFn('npm config:', flatConfig);
|
|
4254
4261
|
const arb = new shadowNpmInject.Arborist({
|
|
4255
4262
|
path: pkgEnvDetails.pkgPath,
|
|
4256
|
-
...
|
|
4257
|
-
|
|
4263
|
+
...flatConfig,
|
|
4264
|
+
...shadowNpmInject.SAFE_ARBORIST_REIFY_OPTIONS_OVERRIDES
|
|
4258
4265
|
});
|
|
4259
4266
|
actualTree = await arb.reify();
|
|
4260
4267
|
// Calling arb.reify() creates the arb.diff object, nulls-out arb.idealTree,
|
|
@@ -4516,6 +4523,10 @@ async function handleFix(argv, {
|
|
|
4516
4523
|
ghsas = utils.cmdFlagValueToArray(/(?<=Vulnerabilities found: )[^\n]+/.exec(autoCResult.data)?.[0]);
|
|
4517
4524
|
ghsasCount = ghsas.length;
|
|
4518
4525
|
} else {
|
|
4526
|
+
debug.debugFn('coana fail:', {
|
|
4527
|
+
message: autoCResult.message,
|
|
4528
|
+
cause: autoCResult.cause
|
|
4529
|
+
});
|
|
4519
4530
|
ghsas = [];
|
|
4520
4531
|
ghsasCount = 0;
|
|
4521
4532
|
}
|
|
@@ -14141,5 +14152,5 @@ void (async () => {
|
|
|
14141
14152
|
await utils.captureException(e);
|
|
14142
14153
|
}
|
|
14143
14154
|
})();
|
|
14144
|
-
//# debugId=
|
|
14155
|
+
//# debugId=5e867fbb-731b-4627-b1dd-e382c345e74f
|
|
14145
14156
|
//# sourceMappingURL=cli.js.map
|