@socketsecurity/cli-with-sentry 1.0.73 → 1.0.75

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 CHANGED
@@ -67,7 +67,7 @@ async function fetchRepoAnalyticsData(repo, time, options) {
67
67
 
68
68
  // Note: Widgets does not seem to actually work as code :'(
69
69
 
70
- 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)));
70
+ const require$5 = require$$5.createRequire(require('node:url').pathToFileURL(__filename).href);
71
71
  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'];
72
72
 
73
73
  // Note: This maps `new Date(date).getMonth()` to English three letters
@@ -499,7 +499,7 @@ async function fetchAuditLog(config, options) {
499
499
  });
500
500
  }
501
501
 
502
- 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)));
502
+ const require$4 = require$$5.createRequire(require('node:url').pathToFileURL(__filename).href);
503
503
  const {
504
504
  REDACTED
505
505
  } = constants;
@@ -2041,7 +2041,7 @@ async function handleCreateNewScan({
2041
2041
  if (!wasValidInput) {
2042
2042
  return;
2043
2043
  }
2044
- debug.debugFn('notice', `found: ${packagePaths.length} local ${words.pluralize('file', packagePaths.length)}`);
2044
+ logger.logger.success(`Found ${packagePaths.length} local ${words.pluralize('file', packagePaths.length)}`);
2045
2045
  debug.debugDir('inspect', {
2046
2046
  packagePaths
2047
2047
  });
@@ -4970,7 +4970,7 @@ async function setupTabCompletion(targetName) {
4970
4970
  };
4971
4971
  }
4972
4972
  function getTabCompletionScriptRaw() {
4973
- const sourceDir = path.dirname(require$$0.fileURLToPath((typeof document === 'undefined' ? require$$0.pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('cli.js', document.baseURI).href))));
4973
+ const sourceDir = path.dirname(require$$0.fileURLToPath(require('node:url').pathToFileURL(__filename).href));
4974
4974
  const sourcePath = path.join(sourceDir, 'socket-completion.bash');
4975
4975
  if (!fs$1.existsSync(sourcePath)) {
4976
4976
  return {
@@ -7007,7 +7007,7 @@ async function run$v(argv, importMeta, {
7007
7007
  });
7008
7008
  }
7009
7009
 
7010
- 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)));
7010
+ const require$3 = require$$5.createRequire(require('node:url').pathToFileURL(__filename).href);
7011
7011
  const {
7012
7012
  DRY_RUN_BAILING_NOW: DRY_RUN_BAILING_NOW$u
7013
7013
  } = constants;
@@ -7060,7 +7060,7 @@ async function run$u(argv, importMeta, {
7060
7060
  await shadowBin('npm', argv);
7061
7061
  }
7062
7062
 
7063
- 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)));
7063
+ const require$2 = require$$5.createRequire(require('node:url').pathToFileURL(__filename).href);
7064
7064
  const {
7065
7065
  DRY_RUN_BAILING_NOW: DRY_RUN_BAILING_NOW$t
7066
7066
  } = constants;
@@ -13657,7 +13657,7 @@ async function fetchThreatFeed({
13657
13657
  return await utils.queryApiSafeJson(`orgs/${orgSlug}/threat-feed?${queryParams}`, 'the Threat Feed data');
13658
13658
  }
13659
13659
 
13660
- 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)));
13660
+ const require$1 = require$$5.createRequire(require('node:url').pathToFileURL(__filename).href);
13661
13661
  async function outputThreatFeed(result, outputKind) {
13662
13662
  if (!result.ok) {
13663
13663
  process.exitCode = result.code ?? 1;
@@ -14439,7 +14439,7 @@ async function run(argv, importMeta, {
14439
14439
  }
14440
14440
  }
14441
14441
 
14442
- const __filename$1 = require$$0.fileURLToPath((typeof document === 'undefined' ? require$$0.pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('cli.js', document.baseURI).href)));
14442
+ const __filename$1 = require$$0.fileURLToPath(require('node:url').pathToFileURL(__filename).href);
14443
14443
  void (async () => {
14444
14444
  const registryUrl = vendor.registryUrl();
14445
14445
  await vendor.updater({
@@ -14634,5 +14634,5 @@ void (async () => {
14634
14634
  await utils.captureException(e);
14635
14635
  }
14636
14636
  })();
14637
- //# debugId=ba4215ca-3cc8-45b8-8900-a36e38e6cc4a
14637
+ //# debugId=bfe6a434-8c63-4711-96a4-5000ee94150f
14638
14638
  //# sourceMappingURL=cli.js.map