sentinello 3.0.1 → 3.1.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/dist/cli.cjs +17 -9
- package/package.json +1 -1
package/dist/cli.cjs
CHANGED
|
@@ -27,7 +27,11 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
|
|
|
27
27
|
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
28
28
|
});
|
|
29
29
|
var __commonJS = (cb, mod) => function __require2() {
|
|
30
|
-
|
|
30
|
+
try {
|
|
31
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
32
|
+
} catch (e) {
|
|
33
|
+
throw mod = 0, e;
|
|
34
|
+
}
|
|
31
35
|
};
|
|
32
36
|
var __export = (target, all) => {
|
|
33
37
|
for (var name in all)
|
|
@@ -28604,6 +28608,10 @@ async function detectYarnMajor(projectPath, lockfile) {
|
|
|
28604
28608
|
}
|
|
28605
28609
|
return null;
|
|
28606
28610
|
}
|
|
28611
|
+
function auditSummary(ctx, findingCount) {
|
|
28612
|
+
const packageCount = ctx.resolvedGraph?.packages?.length ?? null;
|
|
28613
|
+
return JSON.stringify({ source: SCANNER_NAME, packageCount, findingCount });
|
|
28614
|
+
}
|
|
28607
28615
|
function logCrossCheckDrops(result, packageManager) {
|
|
28608
28616
|
if (result.droppedCount === 0) return;
|
|
28609
28617
|
const MAX_LIST = 10;
|
|
@@ -28712,7 +28720,7 @@ async function runNpmAudit(projectPath, ctx, deps = REAL_DEPS) {
|
|
|
28712
28720
|
status: "ok",
|
|
28713
28721
|
reasonCode: "ok",
|
|
28714
28722
|
findings: crossChecked2.kept,
|
|
28715
|
-
rawJson:
|
|
28723
|
+
rawJson: auditSummary(ctx, crossChecked2.kept.length),
|
|
28716
28724
|
errorText: null,
|
|
28717
28725
|
durationMs: Date.now() - startedAt
|
|
28718
28726
|
};
|
|
@@ -28736,7 +28744,7 @@ async function runNpmAudit(projectPath, ctx, deps = REAL_DEPS) {
|
|
|
28736
28744
|
status: "ok",
|
|
28737
28745
|
reasonCode: "ok",
|
|
28738
28746
|
findings: crossChecked.kept,
|
|
28739
|
-
rawJson:
|
|
28747
|
+
rawJson: auditSummary(ctx, crossChecked.kept.length),
|
|
28740
28748
|
errorText: null,
|
|
28741
28749
|
durationMs: Date.now() - startedAt
|
|
28742
28750
|
};
|
|
@@ -28997,7 +29005,7 @@ function nameFromNodePath(nodePath) {
|
|
|
28997
29005
|
return slash < 0 ? tail : tail.slice(0, slash);
|
|
28998
29006
|
}
|
|
28999
29007
|
|
|
29000
|
-
// ../../node_modules/.pnpm/js-yaml@4.3.
|
|
29008
|
+
// ../../node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/dist/js-yaml.mjs
|
|
29001
29009
|
function getDefaultExportFromCjs(x) {
|
|
29002
29010
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
29003
29011
|
}
|
|
@@ -29858,7 +29866,7 @@ function requireOmap() {
|
|
|
29858
29866
|
const _toString = Object.prototype.toString;
|
|
29859
29867
|
function resolveYamlOmap(data) {
|
|
29860
29868
|
if (data === null) return true;
|
|
29861
|
-
const objectKeys =
|
|
29869
|
+
const objectKeys = {};
|
|
29862
29870
|
const object2 = data;
|
|
29863
29871
|
for (let index = 0, length = object2.length; index < length; index += 1) {
|
|
29864
29872
|
const pair = object2[index];
|
|
@@ -29872,8 +29880,8 @@ function requireOmap() {
|
|
|
29872
29880
|
}
|
|
29873
29881
|
}
|
|
29874
29882
|
if (!pairHasKey) return false;
|
|
29875
|
-
if (
|
|
29876
|
-
|
|
29883
|
+
if (_hasOwnProperty.call(objectKeys, pairKey)) return false;
|
|
29884
|
+
Object.defineProperty(objectKeys, pairKey, { value: true });
|
|
29877
29885
|
}
|
|
29878
29886
|
return true;
|
|
29879
29887
|
}
|
|
@@ -35368,8 +35376,8 @@ function createUi(options) {
|
|
|
35368
35376
|
|
|
35369
35377
|
// src/help.ts
|
|
35370
35378
|
var CLI_VERSION = (function resolveVersion() {
|
|
35371
|
-
if ("3.0
|
|
35372
|
-
return "3.0
|
|
35379
|
+
if ("3.1.0".length > 0) {
|
|
35380
|
+
return "3.1.0";
|
|
35373
35381
|
}
|
|
35374
35382
|
const fromEnv = process.env.SENTINELLO_VERSION;
|
|
35375
35383
|
if (fromEnv && fromEnv.trim().length > 0) return fromEnv.trim();
|