@socketsecurity/cli-with-sentry 1.1.12 → 1.1.14

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.
Files changed (63) hide show
  1. package/CHANGELOG.md +41 -30
  2. package/dist/cli.js +75 -63
  3. package/dist/cli.js.map +1 -1
  4. package/dist/constants.js +107 -5
  5. package/dist/constants.js.map +1 -1
  6. package/dist/flags.js.map +1 -1
  7. package/dist/npm-cli.js +3 -2
  8. package/dist/npm-cli.js.map +1 -1
  9. package/dist/shadow-npm-inject.js.map +1 -1
  10. package/dist/tsconfig.dts.tsbuildinfo +1 -1
  11. package/dist/types/commands/fix/cmd-fix.d.mts.map +1 -1
  12. package/dist/types/commands/fix/coana-fix.d.mts.map +1 -1
  13. package/dist/types/commands/fix/git.d.mts +1 -1
  14. package/dist/types/commands/fix/git.d.mts.map +1 -1
  15. package/dist/types/commands/fix/handle-fix.d.mts +4 -1
  16. package/dist/types/commands/fix/handle-fix.d.mts.map +1 -1
  17. package/dist/types/commands/fix/pull-request.d.mts +1 -1
  18. package/dist/types/commands/fix/pull-request.d.mts.map +1 -1
  19. package/dist/types/commands/fix/types.d.mts +3 -0
  20. package/dist/types/commands/fix/types.d.mts.map +1 -1
  21. package/dist/types/commands/login/apply-login.d.mts.map +1 -1
  22. package/dist/types/commands/login/attempt-login.d.mts.map +1 -1
  23. package/dist/types/commands/logout/apply-logout.d.mts.map +1 -1
  24. package/dist/types/commands/manifest/run-cdxgen.d.mts.map +1 -1
  25. package/dist/types/commands/scan/fetch-create-org-full-scan.d.mts +1 -1
  26. package/dist/types/commands/scan/fetch-create-org-full-scan.d.mts.map +1 -1
  27. package/dist/types/commands/scan/perform-reachability-analysis.d.mts.map +1 -1
  28. package/dist/types/constants.d.mts +74 -6
  29. package/dist/types/constants.d.mts.map +1 -1
  30. package/dist/types/flags.d.mts +1 -1
  31. package/dist/types/flags.d.mts.map +1 -1
  32. package/dist/types/shadow/npm/arborist/types.d.mts +10 -10
  33. package/dist/types/shadow/npm/arborist/types.d.mts.map +1 -1
  34. package/dist/types/shadow/npm/install.d.mts +1 -1
  35. package/dist/types/shadow/npm/install.d.mts.map +1 -1
  36. package/dist/types/types.d.mts +4 -4
  37. package/dist/types/types.d.mts.map +1 -1
  38. package/dist/types/utils/alert/artifact.d.mts +1 -1
  39. package/dist/types/utils/alert/artifact.d.mts.map +1 -1
  40. package/dist/types/utils/api.d.mts +2 -2
  41. package/dist/types/utils/api.d.mts.map +1 -1
  42. package/dist/types/utils/coana.d.mts +0 -4
  43. package/dist/types/utils/coana.d.mts.map +1 -1
  44. package/dist/types/utils/config.d.mts +4 -3
  45. package/dist/types/utils/config.d.mts.map +1 -1
  46. package/dist/types/utils/determine-org-slug.d.mts.map +1 -1
  47. package/dist/types/utils/dlx.d.mts +33 -0
  48. package/dist/types/utils/dlx.d.mts.map +1 -0
  49. package/dist/types/utils/errors.d.mts +1 -1
  50. package/dist/types/utils/errors.d.mts.map +1 -1
  51. package/dist/types/utils/github.d.mts +3 -3
  52. package/dist/types/utils/github.d.mts.map +1 -1
  53. package/dist/types/utils/glob.d.mts.map +1 -1
  54. package/dist/types/utils/meow-with-subcommands.d.mts +1 -1
  55. package/dist/types/utils/meow-with-subcommands.d.mts.map +1 -1
  56. package/dist/types/utils/package-environment.d.mts.map +1 -1
  57. package/dist/types/utils/sdk.d.mts.map +1 -1
  58. package/dist/types/utils/socket-json.d.mts +27 -27
  59. package/dist/types/utils/socket-json.d.mts.map +1 -1
  60. package/dist/utils.js +283 -140
  61. package/dist/utils.js.map +1 -1
  62. package/dist/vendor.js +235 -235
  63. package/package.json +2 -2
package/dist/vendor.js CHANGED
@@ -34187,227 +34187,6 @@ defineLazyProperty(apps, 'edge', () => detectPlatformBinary({
34187
34187
  defineLazyProperty(apps, 'browser', () => 'browser');
34188
34188
  defineLazyProperty(apps, 'browserPrivate', () => 'browserPrivate');
34189
34189
 
34190
- var toBatchSyntax = {};
34191
-
34192
- var hasRequiredToBatchSyntax;
34193
- function requireToBatchSyntax() {
34194
- if (hasRequiredToBatchSyntax) return toBatchSyntax;
34195
- hasRequiredToBatchSyntax = 1;
34196
- toBatchSyntax.replaceDollarWithPercentPair = replaceDollarWithPercentPair;
34197
- toBatchSyntax.convertToSetCommand = convertToSetCommand;
34198
- toBatchSyntax.convertToSetCommands = convertToSetCommands;
34199
- function convertToSetCommand(key, value) {
34200
- var line = '';
34201
- key = key || '';
34202
- key = key.trim();
34203
- value = value || '';
34204
- value = value.trim();
34205
- if (key && value && value.length > 0) {
34206
- line = '@SET ' + key + '=' + replaceDollarWithPercentPair(value) + '\r\n';
34207
- }
34208
- return line;
34209
- }
34210
- function extractVariableValuePairs(declarations) {
34211
- var pairs = {};
34212
- declarations.map(function (declaration) {
34213
- var split = declaration.split('=');
34214
- pairs[split[0]] = split[1];
34215
- });
34216
- return pairs;
34217
- }
34218
- function convertToSetCommands(variableString) {
34219
- var variableValuePairs = extractVariableValuePairs(variableString.split(' '));
34220
- var variableDeclarationsAsBatch = '';
34221
- Object.keys(variableValuePairs).forEach(function (key) {
34222
- variableDeclarationsAsBatch += convertToSetCommand(key, variableValuePairs[key]);
34223
- });
34224
- return variableDeclarationsAsBatch;
34225
- }
34226
- function replaceDollarWithPercentPair(value) {
34227
- var dollarExpressions = /\$\{?([^$@#?\- \t{}:]+)\}?/g;
34228
- var result = '';
34229
- var startIndex = 0;
34230
- do {
34231
- var match = dollarExpressions.exec(value);
34232
- if (match) {
34233
- var betweenMatches = value.substring(startIndex, match.index) || '';
34234
- result += betweenMatches + '%' + match[1] + '%';
34235
- startIndex = dollarExpressions.lastIndex;
34236
- }
34237
- } while (dollarExpressions.lastIndex > 0);
34238
- result += value.slice(startIndex);
34239
- return result;
34240
- }
34241
- return toBatchSyntax;
34242
- }
34243
-
34244
- var lib$K;
34245
- var hasRequiredLib$K;
34246
- function requireLib$K() {
34247
- if (hasRequiredLib$K) return lib$K;
34248
- hasRequiredLib$K = 1;
34249
- // On windows, create a .cmd file.
34250
- // Read the #! in the file to see what it uses. The vast majority
34251
- // of the time, this will be either:
34252
- // "#!/usr/bin/env <prog> <args...>"
34253
- // or:
34254
- // "#!<prog> <args...>"
34255
- //
34256
- // Write a binroot/pkg.bin + ".cmd" file that has this line in it:
34257
- // @<prog> <args...> %dp0%<target> %*
34258
-
34259
- const {
34260
- chmod,
34261
- mkdir,
34262
- readFile,
34263
- stat,
34264
- unlink,
34265
- writeFile
34266
- } = require$$0$k;
34267
- const {
34268
- dirname,
34269
- relative
34270
- } = require$$0$d;
34271
- const toBatchSyntax = requireToBatchSyntax();
34272
- // linting disabled because this regex is really long
34273
- // eslint-disable-next-line max-len
34274
- const shebangExpr = /^#!\s*(?:\/usr\/bin\/env\s+(?:-S\s+)?((?:[^ \t=]+=[^ \t=]+\s+)*))?([^ \t]+)(.*)$/;
34275
- const cmdShimIfExists = (from, to) => stat(from).then(() => cmdShim(from, to), () => {});
34276
-
34277
- // Try to unlink, but ignore errors.
34278
- // Any problems will surface later.
34279
- const rm = path => unlink(path).catch(() => {});
34280
- const cmdShim = (from, to) => stat(from).then(() => cmdShim_(from, to));
34281
- const cmdShim_ = (from, to) => Promise.all([rm(to), rm(to + '.cmd'), rm(to + '.ps1')]).then(() => writeShim(from, to));
34282
- const writeShim = (from, to) =>
34283
- // make a cmd file and a sh script
34284
- // First, check if the bin is a #! of some sort.
34285
- // If not, then assume it's something that'll be compiled, or some other
34286
- // sort of script, and just call it directly.
34287
- mkdir(dirname(to), {
34288
- recursive: true
34289
- }).then(() => readFile(from, 'utf8')).then(data => {
34290
- const firstLine = data.trim().split(/\r*\n/)[0];
34291
- const shebang = firstLine.match(shebangExpr);
34292
- if (!shebang) {
34293
- return writeShim_(from, to);
34294
- }
34295
- const vars = shebang[1] || '';
34296
- const prog = shebang[2];
34297
- const args = shebang[3] || '';
34298
- return writeShim_(from, to, prog, args, vars);
34299
- }, () => writeShim_(from, to));
34300
- const writeShim_ = (from, to, prog, args, variables) => {
34301
- let shTarget = relative(dirname(to), from);
34302
- let target = shTarget.split('/').join('\\');
34303
- let longProg;
34304
- let shProg = prog && prog.split('\\').join('/');
34305
- let shLongProg;
34306
- let pwshProg = shProg && `"${shProg}$exe"`;
34307
- let pwshLongProg;
34308
- shTarget = shTarget.split('\\').join('/');
34309
- args = args || '';
34310
- variables = variables || '';
34311
- if (!prog) {
34312
- prog = `"%dp0%\\${target}"`;
34313
- shProg = `"$basedir/${shTarget}"`;
34314
- pwshProg = shProg;
34315
- args = '';
34316
- target = '';
34317
- shTarget = '';
34318
- } else {
34319
- longProg = `"%dp0%\\${prog}.exe"`;
34320
- shLongProg = `"$basedir/${prog}"`;
34321
- pwshLongProg = `"$basedir/${prog}$exe"`;
34322
- target = `"%dp0%\\${target}"`;
34323
- shTarget = `"$basedir/${shTarget}"`;
34324
- }
34325
-
34326
- // Subroutine trick to fix https://github.com/npm/cmd-shim/issues/10
34327
- // and https://github.com/npm/cli/issues/969
34328
- const head = '@ECHO off\r\n' + 'GOTO start\r\n' + ':find_dp0\r\n' + 'SET dp0=%~dp0\r\n' + 'EXIT /b\r\n' + ':start\r\n' + 'SETLOCAL\r\n' + 'CALL :find_dp0\r\n';
34329
- let cmd;
34330
- if (longProg) {
34331
- shLongProg = shLongProg.trim();
34332
- args = args.trim();
34333
- const variablesBatch = toBatchSyntax.convertToSetCommands(variables);
34334
- cmd = head + variablesBatch + '\r\n' + `IF EXIST ${longProg} (\r\n` + ` SET "_prog=${longProg.replace(/(^")|("$)/g, '')}"\r\n` + ') ELSE (\r\n' + ` SET "_prog=${prog.replace(/(^")|("$)/g, '')}"\r\n` + ' SET PATHEXT=%PATHEXT:;.JS;=;%\r\n' + ')\r\n' + '\r\n'
34335
- // prevent "Terminate Batch Job? (Y/n)" message
34336
- // https://github.com/npm/cli/issues/969#issuecomment-737496588
34337
- + 'endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & ' + `"%_prog%" ${args} ${target} %*\r\n`;
34338
- } else {
34339
- cmd = `${head}${prog} ${args} ${target} %*\r\n`;
34340
- }
34341
-
34342
- // #!/bin/sh
34343
- // basedir=`dirname "$0"`
34344
- //
34345
- // case `uname` in
34346
- // *CYGWIN*|*MINGW*|*MSYS*)
34347
- // if command -v cygpath > /dev/null 2>&1; then
34348
- // basedir=`cygpath -w "$basedir"`
34349
- // fi
34350
- // ;;
34351
- // esac
34352
- //
34353
- // if [ -x "$basedir/node.exe" ]; then
34354
- // exec "$basedir/node.exe" "$basedir/node_modules/npm/bin/npm-cli.js" "$@"
34355
- // else
34356
- // exec node "$basedir/node_modules/npm/bin/npm-cli.js" "$@"
34357
- // fi
34358
-
34359
- let sh = '#!/bin/sh\n';
34360
- sh = sh + `basedir=$(dirname "$(echo "$0" | sed -e 's,\\\\,/,g')")\n` + '\n' + 'case `uname` in\n' + ' *CYGWIN*|*MINGW*|*MSYS*)\n' + ' if command -v cygpath > /dev/null 2>&1; then\n' + ' basedir=`cygpath -w "$basedir"`\n' + ' fi\n' + ' ;;\n' + 'esac\n' + '\n';
34361
- if (shLongProg) {
34362
- sh = sh + `if [ -x ${shLongProg} ]; then\n` + ` exec ${variables}${shLongProg} ${args} ${shTarget} "$@"\n` + 'else \n' + ` exec ${variables}${shProg} ${args} ${shTarget} "$@"\n` + 'fi\n';
34363
- } else {
34364
- sh = sh + `exec ${shProg} ${args} ${shTarget} "$@"\n`;
34365
- }
34366
-
34367
- // #!/usr/bin/env pwsh
34368
- // $basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
34369
- //
34370
- // $ret=0
34371
- // $exe = ""
34372
- // if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
34373
- // # Fix case when both the Windows and Linux builds of Node
34374
- // # are installed in the same directory
34375
- // $exe = ".exe"
34376
- // }
34377
- // if (Test-Path "$basedir/node") {
34378
- // # Suport pipeline input
34379
- // if ($MyInvocation.ExpectingInput) {
34380
- // input | & "$basedir/node$exe" "$basedir/node_modules/npm/bin/npm-cli.js" $args
34381
- // } else {
34382
- // & "$basedir/node$exe" "$basedir/node_modules/npm/bin/npm-cli.js" $args
34383
- // }
34384
- // $ret=$LASTEXITCODE
34385
- // } else {
34386
- // # Support pipeline input
34387
- // if ($MyInvocation.ExpectingInput) {
34388
- // $input | & "node$exe" "$basedir/node_modules/npm/bin/npm-cli.js" $args
34389
- // } else {
34390
- // & "node$exe" "$basedir/node_modules/npm/bin/npm-cli.js" $args
34391
- // }
34392
- // $ret=$LASTEXITCODE
34393
- // }
34394
- // exit $ret
34395
- let pwsh = '#!/usr/bin/env pwsh\n' + '$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent\n' + '\n' + '$exe=""\n' + 'if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {\n' + ' # Fix case when both the Windows and Linux builds of Node\n' + ' # are installed in the same directory\n' + ' $exe=".exe"\n' + '}\n';
34396
- if (shLongProg) {
34397
- pwsh = pwsh + '$ret=0\n' + `if (Test-Path ${pwshLongProg}) {\n` + ' # Support pipeline input\n' + ' if ($MyInvocation.ExpectingInput) {\n' + ` $input | & ${pwshLongProg} ${args} ${shTarget} $args\n` + ' } else {\n' + ` & ${pwshLongProg} ${args} ${shTarget} $args\n` + ' }\n' + ' $ret=$LASTEXITCODE\n' + '} else {\n' + ' # Support pipeline input\n' + ' if ($MyInvocation.ExpectingInput) {\n' + ` $input | & ${pwshProg} ${args} ${shTarget} $args\n` + ' } else {\n' + ` & ${pwshProg} ${args} ${shTarget} $args\n` + ' }\n' + ' $ret=$LASTEXITCODE\n' + '}\n' + 'exit $ret\n';
34398
- } else {
34399
- pwsh = pwsh + '# Support pipeline input\n' + 'if ($MyInvocation.ExpectingInput) {\n' + ` $input | & ${pwshProg} ${args} ${shTarget} $args\n` + '} else {\n' + ` & ${pwshProg} ${args} ${shTarget} $args\n` + '}\n' + 'exit $LASTEXITCODE\n';
34400
- }
34401
- return Promise.all([writeFile(to + '.ps1', pwsh, 'utf8'), writeFile(to + '.cmd', cmd, 'utf8'), writeFile(to, sh, 'utf8')]).then(() => chmodShim(to));
34402
- };
34403
- const chmodShim = to => Promise.all([chmod(to, 0o755), chmod(to + '.cmd', 0o755), chmod(to + '.ps1', 0o755)]);
34404
- lib$K = cmdShim;
34405
- cmdShim.ifExists = cmdShimIfExists;
34406
- return lib$K;
34407
- }
34408
-
34409
- var libExports$1 = requireLib$K();
34410
-
34411
34190
  var cjs$1 = {};
34412
34191
 
34413
34192
  var posix = {};
@@ -34632,11 +34411,11 @@ function requireCjs$1() {
34632
34411
  return cjs$1;
34633
34412
  }
34634
34413
 
34635
- var lib$J;
34636
- var hasRequiredLib$J;
34637
- function requireLib$J() {
34638
- if (hasRequiredLib$J) return lib$J;
34639
- hasRequiredLib$J = 1;
34414
+ var lib$K;
34415
+ var hasRequiredLib$K;
34416
+ function requireLib$K() {
34417
+ if (hasRequiredLib$K) return lib$K;
34418
+ hasRequiredLib$K = 1;
34640
34419
  const {
34641
34420
  isexe,
34642
34421
  sync: isexeSync
@@ -34754,12 +34533,12 @@ function requireLib$J() {
34754
34533
  }
34755
34534
  throw getNotFoundError(cmd);
34756
34535
  };
34757
- lib$J = which;
34536
+ lib$K = which;
34758
34537
  which.sync = whichSync;
34759
- return lib$J;
34538
+ return lib$K;
34760
34539
  }
34761
34540
 
34762
- var libExports = requireLib$J();
34541
+ var libExports$1 = requireLib$K();
34763
34542
 
34764
34543
  var tasks = {};
34765
34544
 
@@ -42570,6 +42349,227 @@ var micromatchExports = requireMicromatch();
42570
42349
 
42571
42350
  var distExports = requireDist$f();
42572
42351
 
42352
+ var toBatchSyntax = {};
42353
+
42354
+ var hasRequiredToBatchSyntax;
42355
+ function requireToBatchSyntax() {
42356
+ if (hasRequiredToBatchSyntax) return toBatchSyntax;
42357
+ hasRequiredToBatchSyntax = 1;
42358
+ toBatchSyntax.replaceDollarWithPercentPair = replaceDollarWithPercentPair;
42359
+ toBatchSyntax.convertToSetCommand = convertToSetCommand;
42360
+ toBatchSyntax.convertToSetCommands = convertToSetCommands;
42361
+ function convertToSetCommand(key, value) {
42362
+ var line = '';
42363
+ key = key || '';
42364
+ key = key.trim();
42365
+ value = value || '';
42366
+ value = value.trim();
42367
+ if (key && value && value.length > 0) {
42368
+ line = '@SET ' + key + '=' + replaceDollarWithPercentPair(value) + '\r\n';
42369
+ }
42370
+ return line;
42371
+ }
42372
+ function extractVariableValuePairs(declarations) {
42373
+ var pairs = {};
42374
+ declarations.map(function (declaration) {
42375
+ var split = declaration.split('=');
42376
+ pairs[split[0]] = split[1];
42377
+ });
42378
+ return pairs;
42379
+ }
42380
+ function convertToSetCommands(variableString) {
42381
+ var variableValuePairs = extractVariableValuePairs(variableString.split(' '));
42382
+ var variableDeclarationsAsBatch = '';
42383
+ Object.keys(variableValuePairs).forEach(function (key) {
42384
+ variableDeclarationsAsBatch += convertToSetCommand(key, variableValuePairs[key]);
42385
+ });
42386
+ return variableDeclarationsAsBatch;
42387
+ }
42388
+ function replaceDollarWithPercentPair(value) {
42389
+ var dollarExpressions = /\$\{?([^$@#?\- \t{}:]+)\}?/g;
42390
+ var result = '';
42391
+ var startIndex = 0;
42392
+ do {
42393
+ var match = dollarExpressions.exec(value);
42394
+ if (match) {
42395
+ var betweenMatches = value.substring(startIndex, match.index) || '';
42396
+ result += betweenMatches + '%' + match[1] + '%';
42397
+ startIndex = dollarExpressions.lastIndex;
42398
+ }
42399
+ } while (dollarExpressions.lastIndex > 0);
42400
+ result += value.slice(startIndex);
42401
+ return result;
42402
+ }
42403
+ return toBatchSyntax;
42404
+ }
42405
+
42406
+ var lib$J;
42407
+ var hasRequiredLib$J;
42408
+ function requireLib$J() {
42409
+ if (hasRequiredLib$J) return lib$J;
42410
+ hasRequiredLib$J = 1;
42411
+ // On windows, create a .cmd file.
42412
+ // Read the #! in the file to see what it uses. The vast majority
42413
+ // of the time, this will be either:
42414
+ // "#!/usr/bin/env <prog> <args...>"
42415
+ // or:
42416
+ // "#!<prog> <args...>"
42417
+ //
42418
+ // Write a binroot/pkg.bin + ".cmd" file that has this line in it:
42419
+ // @<prog> <args...> %dp0%<target> %*
42420
+
42421
+ const {
42422
+ chmod,
42423
+ mkdir,
42424
+ readFile,
42425
+ stat,
42426
+ unlink,
42427
+ writeFile
42428
+ } = require$$0$k;
42429
+ const {
42430
+ dirname,
42431
+ relative
42432
+ } = require$$0$d;
42433
+ const toBatchSyntax = requireToBatchSyntax();
42434
+ // linting disabled because this regex is really long
42435
+ // eslint-disable-next-line max-len
42436
+ const shebangExpr = /^#!\s*(?:\/usr\/bin\/env\s+(?:-S\s+)?((?:[^ \t=]+=[^ \t=]+\s+)*))?([^ \t]+)(.*)$/;
42437
+ const cmdShimIfExists = (from, to) => stat(from).then(() => cmdShim(from, to), () => {});
42438
+
42439
+ // Try to unlink, but ignore errors.
42440
+ // Any problems will surface later.
42441
+ const rm = path => unlink(path).catch(() => {});
42442
+ const cmdShim = (from, to) => stat(from).then(() => cmdShim_(from, to));
42443
+ const cmdShim_ = (from, to) => Promise.all([rm(to), rm(to + '.cmd'), rm(to + '.ps1')]).then(() => writeShim(from, to));
42444
+ const writeShim = (from, to) =>
42445
+ // make a cmd file and a sh script
42446
+ // First, check if the bin is a #! of some sort.
42447
+ // If not, then assume it's something that'll be compiled, or some other
42448
+ // sort of script, and just call it directly.
42449
+ mkdir(dirname(to), {
42450
+ recursive: true
42451
+ }).then(() => readFile(from, 'utf8')).then(data => {
42452
+ const firstLine = data.trim().split(/\r*\n/)[0];
42453
+ const shebang = firstLine.match(shebangExpr);
42454
+ if (!shebang) {
42455
+ return writeShim_(from, to);
42456
+ }
42457
+ const vars = shebang[1] || '';
42458
+ const prog = shebang[2];
42459
+ const args = shebang[3] || '';
42460
+ return writeShim_(from, to, prog, args, vars);
42461
+ }, () => writeShim_(from, to));
42462
+ const writeShim_ = (from, to, prog, args, variables) => {
42463
+ let shTarget = relative(dirname(to), from);
42464
+ let target = shTarget.split('/').join('\\');
42465
+ let longProg;
42466
+ let shProg = prog && prog.split('\\').join('/');
42467
+ let shLongProg;
42468
+ let pwshProg = shProg && `"${shProg}$exe"`;
42469
+ let pwshLongProg;
42470
+ shTarget = shTarget.split('\\').join('/');
42471
+ args = args || '';
42472
+ variables = variables || '';
42473
+ if (!prog) {
42474
+ prog = `"%dp0%\\${target}"`;
42475
+ shProg = `"$basedir/${shTarget}"`;
42476
+ pwshProg = shProg;
42477
+ args = '';
42478
+ target = '';
42479
+ shTarget = '';
42480
+ } else {
42481
+ longProg = `"%dp0%\\${prog}.exe"`;
42482
+ shLongProg = `"$basedir/${prog}"`;
42483
+ pwshLongProg = `"$basedir/${prog}$exe"`;
42484
+ target = `"%dp0%\\${target}"`;
42485
+ shTarget = `"$basedir/${shTarget}"`;
42486
+ }
42487
+
42488
+ // Subroutine trick to fix https://github.com/npm/cmd-shim/issues/10
42489
+ // and https://github.com/npm/cli/issues/969
42490
+ const head = '@ECHO off\r\n' + 'GOTO start\r\n' + ':find_dp0\r\n' + 'SET dp0=%~dp0\r\n' + 'EXIT /b\r\n' + ':start\r\n' + 'SETLOCAL\r\n' + 'CALL :find_dp0\r\n';
42491
+ let cmd;
42492
+ if (longProg) {
42493
+ shLongProg = shLongProg.trim();
42494
+ args = args.trim();
42495
+ const variablesBatch = toBatchSyntax.convertToSetCommands(variables);
42496
+ cmd = head + variablesBatch + '\r\n' + `IF EXIST ${longProg} (\r\n` + ` SET "_prog=${longProg.replace(/(^")|("$)/g, '')}"\r\n` + ') ELSE (\r\n' + ` SET "_prog=${prog.replace(/(^")|("$)/g, '')}"\r\n` + ' SET PATHEXT=%PATHEXT:;.JS;=;%\r\n' + ')\r\n' + '\r\n'
42497
+ // prevent "Terminate Batch Job? (Y/n)" message
42498
+ // https://github.com/npm/cli/issues/969#issuecomment-737496588
42499
+ + 'endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & ' + `"%_prog%" ${args} ${target} %*\r\n`;
42500
+ } else {
42501
+ cmd = `${head}${prog} ${args} ${target} %*\r\n`;
42502
+ }
42503
+
42504
+ // #!/bin/sh
42505
+ // basedir=`dirname "$0"`
42506
+ //
42507
+ // case `uname` in
42508
+ // *CYGWIN*|*MINGW*|*MSYS*)
42509
+ // if command -v cygpath > /dev/null 2>&1; then
42510
+ // basedir=`cygpath -w "$basedir"`
42511
+ // fi
42512
+ // ;;
42513
+ // esac
42514
+ //
42515
+ // if [ -x "$basedir/node.exe" ]; then
42516
+ // exec "$basedir/node.exe" "$basedir/node_modules/npm/bin/npm-cli.js" "$@"
42517
+ // else
42518
+ // exec node "$basedir/node_modules/npm/bin/npm-cli.js" "$@"
42519
+ // fi
42520
+
42521
+ let sh = '#!/bin/sh\n';
42522
+ sh = sh + `basedir=$(dirname "$(echo "$0" | sed -e 's,\\\\,/,g')")\n` + '\n' + 'case `uname` in\n' + ' *CYGWIN*|*MINGW*|*MSYS*)\n' + ' if command -v cygpath > /dev/null 2>&1; then\n' + ' basedir=`cygpath -w "$basedir"`\n' + ' fi\n' + ' ;;\n' + 'esac\n' + '\n';
42523
+ if (shLongProg) {
42524
+ sh = sh + `if [ -x ${shLongProg} ]; then\n` + ` exec ${variables}${shLongProg} ${args} ${shTarget} "$@"\n` + 'else \n' + ` exec ${variables}${shProg} ${args} ${shTarget} "$@"\n` + 'fi\n';
42525
+ } else {
42526
+ sh = sh + `exec ${shProg} ${args} ${shTarget} "$@"\n`;
42527
+ }
42528
+
42529
+ // #!/usr/bin/env pwsh
42530
+ // $basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
42531
+ //
42532
+ // $ret=0
42533
+ // $exe = ""
42534
+ // if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
42535
+ // # Fix case when both the Windows and Linux builds of Node
42536
+ // # are installed in the same directory
42537
+ // $exe = ".exe"
42538
+ // }
42539
+ // if (Test-Path "$basedir/node") {
42540
+ // # Suport pipeline input
42541
+ // if ($MyInvocation.ExpectingInput) {
42542
+ // input | & "$basedir/node$exe" "$basedir/node_modules/npm/bin/npm-cli.js" $args
42543
+ // } else {
42544
+ // & "$basedir/node$exe" "$basedir/node_modules/npm/bin/npm-cli.js" $args
42545
+ // }
42546
+ // $ret=$LASTEXITCODE
42547
+ // } else {
42548
+ // # Support pipeline input
42549
+ // if ($MyInvocation.ExpectingInput) {
42550
+ // $input | & "node$exe" "$basedir/node_modules/npm/bin/npm-cli.js" $args
42551
+ // } else {
42552
+ // & "node$exe" "$basedir/node_modules/npm/bin/npm-cli.js" $args
42553
+ // }
42554
+ // $ret=$LASTEXITCODE
42555
+ // }
42556
+ // exit $ret
42557
+ let pwsh = '#!/usr/bin/env pwsh\n' + '$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent\n' + '\n' + '$exe=""\n' + 'if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {\n' + ' # Fix case when both the Windows and Linux builds of Node\n' + ' # are installed in the same directory\n' + ' $exe=".exe"\n' + '}\n';
42558
+ if (shLongProg) {
42559
+ pwsh = pwsh + '$ret=0\n' + `if (Test-Path ${pwshLongProg}) {\n` + ' # Support pipeline input\n' + ' if ($MyInvocation.ExpectingInput) {\n' + ` $input | & ${pwshLongProg} ${args} ${shTarget} $args\n` + ' } else {\n' + ` & ${pwshLongProg} ${args} ${shTarget} $args\n` + ' }\n' + ' $ret=$LASTEXITCODE\n' + '} else {\n' + ' # Support pipeline input\n' + ' if ($MyInvocation.ExpectingInput) {\n' + ` $input | & ${pwshProg} ${args} ${shTarget} $args\n` + ' } else {\n' + ` & ${pwshProg} ${args} ${shTarget} $args\n` + ' }\n' + ' $ret=$LASTEXITCODE\n' + '}\n' + 'exit $ret\n';
42560
+ } else {
42561
+ pwsh = pwsh + '# Support pipeline input\n' + 'if ($MyInvocation.ExpectingInput) {\n' + ` $input | & ${pwshProg} ${args} ${shTarget} $args\n` + '} else {\n' + ` & ${pwshProg} ${args} ${shTarget} $args\n` + '}\n' + 'exit $LASTEXITCODE\n';
42562
+ }
42563
+ return Promise.all([writeFile(to + '.ps1', pwsh, 'utf8'), writeFile(to + '.cmd', cmd, 'utf8'), writeFile(to, sh, 'utf8')]).then(() => chmodShim(to));
42564
+ };
42565
+ const chmodShim = to => Promise.all([chmod(to, 0o755), chmod(to + '.cmd', 0o755), chmod(to + '.ps1', 0o755)]);
42566
+ lib$J = cmdShim;
42567
+ cmdShim.ifExists = cmdShimIfExists;
42568
+ return lib$J;
42569
+ }
42570
+
42571
+ var libExports = requireLib$J();
42572
+
42573
42573
  class RequestError extends Error {
42574
42574
  name;
42575
42575
  /**
@@ -69056,7 +69056,7 @@ function requireShimBin() {
69056
69056
  throw er;
69057
69057
  }
69058
69058
  };
69059
- const cmdShim = requireLib$K();
69059
+ const cmdShim = requireLib$J();
69060
69060
  const readCmdShim = requireLib$B();
69061
69061
  const fixBin = requireFixBin();
69062
69062
 
@@ -84548,7 +84548,7 @@ function requireLib$x() {
84548
84548
  spawn
84549
84549
  } = require$$0$m;
84550
84550
  const os = require$$0$f;
84551
- const which = requireLib$J();
84551
+ const which = requireLib$K();
84552
84552
  const escape = require_escape();
84553
84553
 
84554
84554
  // 'extra' object is for decorating the error a bit more
@@ -85220,7 +85220,7 @@ var hasRequiredWhich;
85220
85220
  function requireWhich() {
85221
85221
  if (hasRequiredWhich) return which_1;
85222
85222
  hasRequiredWhich = 1;
85223
- const which = requireLib$J();
85223
+ const which = requireLib$K();
85224
85224
  let gitPath;
85225
85225
  try {
85226
85226
  gitPath = which.sync('git');
@@ -160957,8 +160957,8 @@ exports.ignoreExports = ignoreExports;
160957
160957
  exports.indentStringExports = indentStringExports;
160958
160958
  exports.isInteractiveExports = isInteractiveExports;
160959
160959
  exports.jsYaml = jsYaml;
160960
- exports.libExports = libExports$1;
160961
- exports.libExports$1 = libExports;
160960
+ exports.libExports = libExports;
160961
+ exports.libExports$1 = libExports$1;
160962
160962
  exports.meow = meow;
160963
160963
  exports.messageWithCauses = messageWithCauses;
160964
160964
  exports.micromatchExports = micromatchExports;
@@ -160980,5 +160980,5 @@ exports.terminalLinkExports = terminalLinkExports;
160980
160980
  exports.updater = updater$1;
160981
160981
  exports.yargsParser = yargsParser;
160982
160982
  exports.yoctocolorsCjsExports = yoctocolorsCjsExports;
160983
- //# debugId=9fcfe3bb-d2e7-4c1a-9d05-dba251248177
160983
+ //# debugId=839cfdba-0d80-46fa-a8c3-0eb7f8ad5239
160984
160984
  //# sourceMappingURL=vendor.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@socketsecurity/cli-with-sentry",
3
- "version": "1.1.12",
3
+ "version": "1.1.14",
4
4
  "description": "CLI for Socket.dev, includes Sentry error handling, otherwise identical to the regular `socket` package",
5
5
  "homepage": "https://github.com/SocketDev/socket-cli",
6
6
  "license": "MIT AND OFL-1.1",
@@ -168,7 +168,7 @@
168
168
  "strict": true
169
169
  },
170
170
  "dependencies": {
171
- "@sentry/node": "10.11.0"
171
+ "@sentry/node": "10.12.0"
172
172
  },
173
173
  "scripts": {
174
174
  "build": "pnpm build:dist",