@socketsecurity/cli-with-sentry 1.0.5 → 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 +16 -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,10 +4250,18 @@ async function npmFix(pkgEnvDetails, options) {
|
|
|
4250
4250
|
shorthands: vendor.definitionsExports.shorthands
|
|
4251
4251
|
});
|
|
4252
4252
|
await config.load();
|
|
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);
|
|
4253
4261
|
const arb = new shadowNpmInject.Arborist({
|
|
4254
4262
|
path: pkgEnvDetails.pkgPath,
|
|
4255
|
-
...
|
|
4256
|
-
|
|
4263
|
+
...flatConfig,
|
|
4264
|
+
...shadowNpmInject.SAFE_ARBORIST_REIFY_OPTIONS_OVERRIDES
|
|
4257
4265
|
});
|
|
4258
4266
|
actualTree = await arb.reify();
|
|
4259
4267
|
// Calling arb.reify() creates the arb.diff object, nulls-out arb.idealTree,
|
|
@@ -4515,6 +4523,10 @@ async function handleFix(argv, {
|
|
|
4515
4523
|
ghsas = utils.cmdFlagValueToArray(/(?<=Vulnerabilities found: )[^\n]+/.exec(autoCResult.data)?.[0]);
|
|
4516
4524
|
ghsasCount = ghsas.length;
|
|
4517
4525
|
} else {
|
|
4526
|
+
debug.debugFn('coana fail:', {
|
|
4527
|
+
message: autoCResult.message,
|
|
4528
|
+
cause: autoCResult.cause
|
|
4529
|
+
});
|
|
4518
4530
|
ghsas = [];
|
|
4519
4531
|
ghsasCount = 0;
|
|
4520
4532
|
}
|
|
@@ -8857,7 +8869,7 @@ function formatReportCard(artifact, color) {
|
|
|
8857
8869
|
};
|
|
8858
8870
|
const alertString = getAlertString(artifact.alerts, !color);
|
|
8859
8871
|
if (!artifact.ecosystem) {
|
|
8860
|
-
debug.
|
|
8872
|
+
debug.debugFn('miss: Artifact ecosystem', artifact);
|
|
8861
8873
|
}
|
|
8862
8874
|
const purl = `pkg:${artifact.ecosystem}/${artifact.name}${artifact.version ? '@' + artifact.version : ''}`;
|
|
8863
8875
|
return ['Package: ' + (color ? vendor.yoctocolorsCjsExports.bold(purl) : purl), '', ...Object.entries(scoreResult).map(score => `- ${score[0]}:`.padEnd(20, ' ') + ` ${formatScore(score[1], !color, true)}`), alertString].join('\n');
|
|
@@ -14140,5 +14152,5 @@ void (async () => {
|
|
|
14140
14152
|
await utils.captureException(e);
|
|
14141
14153
|
}
|
|
14142
14154
|
})();
|
|
14143
|
-
//# debugId=
|
|
14155
|
+
//# debugId=5e867fbb-731b-4627-b1dd-e382c345e74f
|
|
14144
14156
|
//# sourceMappingURL=cli.js.map
|