socket 1.0.60 → 1.0.61
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 +8 -8
- package/dist/cli.js.map +1 -1
- package/dist/constants.js +5 -5
- package/dist/constants.js.map +1 -1
- package/dist/shadow-npm-inject.js +3 -3
- package/dist/shadow-npm-inject.js.map +1 -1
- package/dist/types/utils/check-input.d.mts.map +1 -1
- package/dist/utils.js +8 -8
- package/dist/utils.js.map +1 -1
- package/dist/vendor.js +1980 -5946
- package/package.json +5 -5
package/dist/cli.js
CHANGED
|
@@ -7,7 +7,7 @@ var debug = require('../external/@socketsecurity/registry/lib/debug');
|
|
|
7
7
|
var logger = require('../external/@socketsecurity/registry/lib/logger');
|
|
8
8
|
var utils = require('./utils.js');
|
|
9
9
|
var fs = require('node:fs/promises');
|
|
10
|
-
var
|
|
10
|
+
var require$$5 = require('node:module');
|
|
11
11
|
var constants = require('./constants.js');
|
|
12
12
|
var prompts = require('../external/@socketsecurity/registry/lib/prompts');
|
|
13
13
|
var fs$1 = require('node:fs');
|
|
@@ -51,7 +51,7 @@ async function fetchRepoAnalyticsData(repo, time) {
|
|
|
51
51
|
|
|
52
52
|
// Note: Widgets does not seem to actually work as code :'(
|
|
53
53
|
|
|
54
|
-
const require$5 =
|
|
54
|
+
const require$5 = require$$5.createRequire((typeof document === 'undefined' ? require$$0.pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('cli.js', document.baseURI).href)));
|
|
55
55
|
const METRICS = ['total_critical_alerts', 'total_high_alerts', 'total_medium_alerts', 'total_low_alerts', 'total_critical_added', 'total_medium_added', 'total_low_added', 'total_high_added', 'total_critical_prevented', 'total_high_prevented', 'total_medium_prevented', 'total_low_prevented'];
|
|
56
56
|
|
|
57
57
|
// Note: This maps `new Date(date).getMonth()` to English three letters
|
|
@@ -471,7 +471,7 @@ async function fetchAuditLog({
|
|
|
471
471
|
}), `audit log for ${orgSlug}`);
|
|
472
472
|
}
|
|
473
473
|
|
|
474
|
-
const require$4 =
|
|
474
|
+
const require$4 = require$$5.createRequire((typeof document === 'undefined' ? require$$0.pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('cli.js', document.baseURI).href)));
|
|
475
475
|
const {
|
|
476
476
|
REDACTED
|
|
477
477
|
} = constants;
|
|
@@ -5803,7 +5803,7 @@ async function run$A(argv, importMeta, {
|
|
|
5803
5803
|
test: cli.input.length <= 1,
|
|
5804
5804
|
message: 'Can only accept one DIR (make sure to escape spaces!)',
|
|
5805
5805
|
pass: 'ok',
|
|
5806
|
-
fail:
|
|
5806
|
+
fail: `received ${cli.input.length}`
|
|
5807
5807
|
}, {
|
|
5808
5808
|
nook: true,
|
|
5809
5809
|
test: !json || !markdown,
|
|
@@ -6833,7 +6833,7 @@ async function run$v(argv, importMeta, {
|
|
|
6833
6833
|
});
|
|
6834
6834
|
}
|
|
6835
6835
|
|
|
6836
|
-
const require$3 =
|
|
6836
|
+
const require$3 = require$$5.createRequire((typeof document === 'undefined' ? require$$0.pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('cli.js', document.baseURI).href)));
|
|
6837
6837
|
const {
|
|
6838
6838
|
DRY_RUN_BAILING_NOW: DRY_RUN_BAILING_NOW$u
|
|
6839
6839
|
} = constants;
|
|
@@ -6886,7 +6886,7 @@ async function run$u(argv, importMeta, {
|
|
|
6886
6886
|
await shadowBin('npm', argv);
|
|
6887
6887
|
}
|
|
6888
6888
|
|
|
6889
|
-
const require$2 =
|
|
6889
|
+
const require$2 = require$$5.createRequire((typeof document === 'undefined' ? require$$0.pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('cli.js', document.baseURI).href)));
|
|
6890
6890
|
const {
|
|
6891
6891
|
DRY_RUN_BAILING_NOW: DRY_RUN_BAILING_NOW$t
|
|
6892
6892
|
} = constants;
|
|
@@ -13234,7 +13234,7 @@ async function fetchThreatFeed({
|
|
|
13234
13234
|
return await utils.queryApiSafeJson(`orgs/${orgSlug}/threat-feed?${queryParams}`, 'the Threat Feed data');
|
|
13235
13235
|
}
|
|
13236
13236
|
|
|
13237
|
-
const require$1 =
|
|
13237
|
+
const require$1 = require$$5.createRequire((typeof document === 'undefined' ? require$$0.pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('cli.js', document.baseURI).href)));
|
|
13238
13238
|
async function outputThreatFeed(result, outputKind) {
|
|
13239
13239
|
if (!result.ok) {
|
|
13240
13240
|
process.exitCode = result.code ?? 1;
|
|
@@ -14212,5 +14212,5 @@ void (async () => {
|
|
|
14212
14212
|
await utils.captureException(e);
|
|
14213
14213
|
}
|
|
14214
14214
|
})();
|
|
14215
|
-
//# debugId=
|
|
14215
|
+
//# debugId=758b903c-de42-4d5b-988b-b07da95f2793
|
|
14216
14216
|
//# sourceMappingURL=cli.js.map
|