@socketsecurity/cli-with-sentry 1.1.17 → 1.1.19

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 (134) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/bin/npm-cli.js +2 -2
  3. package/bin/npx-cli.js +2 -2
  4. package/bin/pnpm-cli.js +2 -2
  5. package/bin/yarn-cli.js +2 -2
  6. package/dist/cli.js +238 -94
  7. package/dist/cli.js.map +1 -1
  8. package/dist/constants.js +5 -3
  9. package/dist/constants.js.map +1 -1
  10. package/dist/flags.js +3 -2
  11. package/dist/flags.js.map +1 -1
  12. package/dist/npm-cli.js +3 -4
  13. package/dist/npm-cli.js.map +1 -1
  14. package/dist/npx-cli.js +3 -3
  15. package/dist/npx-cli.js.map +1 -1
  16. package/dist/pnpm-cli.js +3 -3
  17. package/dist/pnpm-cli.js.map +1 -1
  18. package/dist/shadow-npm-bin.js +3 -106
  19. package/dist/shadow-npm-bin.js.map +1 -1
  20. package/dist/shadow-npm-bin2.js +125 -0
  21. package/dist/shadow-npm-bin2.js.map +1 -0
  22. package/dist/shadow-npx-bin.js +12 -0
  23. package/dist/shadow-npx-bin.js.map +1 -0
  24. package/dist/shadow-pnpm-bin.js +3 -228
  25. package/dist/shadow-pnpm-bin.js.map +1 -1
  26. package/dist/shadow-pnpm-bin2.js +319 -0
  27. package/dist/shadow-pnpm-bin2.js.map +1 -0
  28. package/dist/shadow-yarn-bin.js +58 -150
  29. package/dist/shadow-yarn-bin.js.map +1 -1
  30. package/dist/tsconfig.dts.tsbuildinfo +1 -1
  31. package/dist/types/commands/analytics/cmd-analytics.d.mts.map +1 -1
  32. package/dist/types/commands/analytics/output-analytics.d.mts.map +1 -1
  33. package/dist/types/commands/audit-log/cmd-audit-log.d.mts.map +1 -1
  34. package/dist/types/commands/audit-log/output-audit-log.d.mts.map +1 -1
  35. package/dist/types/commands/ci/handle-ci.d.mts.map +1 -1
  36. package/dist/types/commands/config/cmd-config-auto.d.mts.map +1 -1
  37. package/dist/types/commands/config/cmd-config-get.d.mts.map +1 -1
  38. package/dist/types/commands/config/cmd-config-list.d.mts.map +1 -1
  39. package/dist/types/commands/config/cmd-config-set.d.mts.map +1 -1
  40. package/dist/types/commands/config/cmd-config-unset.d.mts.map +1 -1
  41. package/dist/types/commands/config/handle-config-set.d.mts.map +1 -1
  42. package/dist/types/commands/fix/cmd-fix.d.mts.map +1 -1
  43. package/dist/types/commands/fix/coana-fix.d.mts.map +1 -1
  44. package/dist/types/commands/fix/handle-fix.d.mts.map +1 -1
  45. package/dist/types/commands/fix/pull-request.d.mts.map +1 -1
  46. package/dist/types/commands/manifest/cmd-manifest-conda.d.mts.map +1 -1
  47. package/dist/types/commands/npm/cmd-npm.d.mts.map +1 -1
  48. package/dist/types/commands/optimize/handle-optimize.d.mts.map +1 -1
  49. package/dist/types/commands/organization/cmd-organization-dependencies.d.mts.map +1 -1
  50. package/dist/types/commands/organization/cmd-organization-list.d.mts.map +1 -1
  51. package/dist/types/commands/organization/handle-dependencies.d.mts.map +1 -1
  52. package/dist/types/commands/organization/handle-organization-list.d.mts.map +1 -1
  53. package/dist/types/commands/package/handle-purl-deep-score.d.mts.map +1 -1
  54. package/dist/types/commands/package/handle-purls-shallow-score.d.mts.map +1 -1
  55. package/dist/types/commands/pnpm/cmd-pnpm.d.mts.map +1 -1
  56. package/dist/types/commands/repository/cmd-repository-list.d.mts.map +1 -1
  57. package/dist/types/commands/repository/cmd-repository-view.d.mts.map +1 -1
  58. package/dist/types/commands/repository/handle-create-repo.d.mts.map +1 -1
  59. package/dist/types/commands/scan/cmd-scan-diff.d.mts.map +1 -1
  60. package/dist/types/commands/scan/create-scan-from-github.d.mts.map +1 -1
  61. package/dist/types/commands/scan/fetch-report-data.d.mts.map +1 -1
  62. package/dist/types/commands/scan/handle-create-new-scan.d.mts.map +1 -1
  63. package/dist/types/commands/wrapper/postinstall-wrapper.d.mts.map +1 -1
  64. package/dist/types/commands/yarn/cmd-yarn.d.mts.map +1 -1
  65. package/dist/types/constants.d.mts +1 -0
  66. package/dist/types/constants.d.mts.map +1 -1
  67. package/dist/types/flags.d.mts.map +1 -1
  68. package/dist/types/shadow/common.d.mts +31 -0
  69. package/dist/types/shadow/common.d.mts.map +1 -0
  70. package/dist/types/shadow/npm/bin.d.mts +4 -10
  71. package/dist/types/shadow/npm/bin.d.mts.map +1 -1
  72. package/dist/types/shadow/npm-base.d.mts +11 -0
  73. package/dist/types/shadow/npm-base.d.mts.map +1 -0
  74. package/dist/types/shadow/npx/bin.d.mts +5 -0
  75. package/dist/types/shadow/npx/bin.d.mts.map +1 -0
  76. package/dist/types/shadow/pnpm/bin.d.mts +1 -1
  77. package/dist/types/shadow/pnpm/bin.d.mts.map +1 -1
  78. package/dist/types/shadow/stdio-ipc.d.mts +7 -0
  79. package/dist/types/shadow/stdio-ipc.d.mts.map +1 -0
  80. package/dist/types/shadow/yarn/bin.d.mts +1 -1
  81. package/dist/types/shadow/yarn/bin.d.mts.map +1 -1
  82. package/dist/types/utils/agent.d.mts.map +1 -1
  83. package/dist/types/utils/alerts-map.d.mts.map +1 -1
  84. package/dist/types/utils/api.d.mts.map +1 -1
  85. package/dist/types/utils/cmd.d.mts.map +1 -1
  86. package/dist/types/utils/coana.d.mts.map +1 -1
  87. package/dist/types/utils/color-or-markdown.d.mts.map +1 -1
  88. package/dist/types/utils/config.d.mts.map +1 -1
  89. package/dist/types/utils/cve-to-ghsa.d.mts.map +1 -1
  90. package/dist/types/utils/debug.d.mts +45 -0
  91. package/dist/types/utils/debug.d.mts.map +1 -0
  92. package/dist/types/utils/dlx.d.mts +1 -1
  93. package/dist/types/utils/dlx.d.mts.map +1 -1
  94. package/dist/types/utils/ecosystem.d.mts.map +1 -1
  95. package/dist/types/utils/errors.d.mts +48 -0
  96. package/dist/types/utils/errors.d.mts.map +1 -1
  97. package/dist/types/utils/filter-config.d.mts.map +1 -1
  98. package/dist/types/utils/fs.d.mts.map +1 -1
  99. package/dist/types/utils/get-output-kind.d.mts.map +1 -1
  100. package/dist/types/utils/git.d.mts.map +1 -1
  101. package/dist/types/utils/github.d.mts.map +1 -1
  102. package/dist/types/utils/markdown.d.mts +17 -0
  103. package/dist/types/utils/markdown.d.mts.map +1 -1
  104. package/dist/types/utils/meow-with-subcommands.d.mts.map +1 -1
  105. package/dist/types/utils/npm-package-arg.d.mts +5 -1
  106. package/dist/types/utils/npm-package-arg.d.mts.map +1 -1
  107. package/dist/types/utils/npm-paths.d.mts.map +1 -1
  108. package/dist/types/utils/npm-spec.d.mts +57 -0
  109. package/dist/types/utils/npm-spec.d.mts.map +1 -0
  110. package/dist/types/utils/output-formatting.d.mts.map +1 -1
  111. package/dist/types/utils/package-environment.d.mts.map +1 -1
  112. package/dist/types/utils/pnpm-paths.d.mts.map +1 -1
  113. package/dist/types/utils/purl-to-ghsa.d.mts.map +1 -1
  114. package/dist/types/utils/purl.d.mts +24 -0
  115. package/dist/types/utils/purl.d.mts.map +1 -1
  116. package/dist/types/utils/requirements.d.mts.map +1 -1
  117. package/dist/types/utils/sdk.d.mts.map +1 -1
  118. package/dist/types/utils/serialize-result-json.d.mts.map +1 -1
  119. package/dist/types/utils/socket-json.d.mts.map +1 -1
  120. package/dist/types/utils/socket-package-alert.d.mts.map +1 -1
  121. package/dist/types/utils/socket-url.d.mts.map +1 -1
  122. package/dist/types/utils/strings.d.mts +12 -0
  123. package/dist/types/utils/strings.d.mts.map +1 -1
  124. package/dist/types/utils/tildify.d.mts +0 -2
  125. package/dist/types/utils/tildify.d.mts.map +1 -1
  126. package/dist/types/utils/yarn-paths.d.mts.map +1 -1
  127. package/dist/utils.js +1303 -457
  128. package/dist/utils.js.map +1 -1
  129. package/dist/vendor.js +317 -316
  130. package/package.json +4 -4
  131. package/shadow-bin/npm +2 -2
  132. package/shadow-bin/npx +2 -2
  133. package/shadow-bin/pnpm +2 -2
  134. package/shadow-bin/yarn +2 -2
package/dist/vendor.js CHANGED
@@ -37,10 +37,10 @@ var require$$12 = require('../external/@socketsecurity/registry/lib/promises');
37
37
  var require$$13 = require('../external/@socketsecurity/registry/lib/url');
38
38
  var node_buffer = require$$0$i;
39
39
  var childProcess = require('node:child_process');
40
- var require$$0$k = fs$6;
41
- var require$$5$4 = require('node:module');
42
40
  var require$$1$9 = require('node:path/win32');
43
- var require$$0$l = require$$5$4;
41
+ var require$$0$k = require('node:module');
42
+ var require$$0$l = fs$6;
43
+ var require$$5$4 = require$$0$k;
44
44
  var require$$2$5 = require('node:string_decoder');
45
45
  var require$$0$m = childProcess;
46
46
  var require$$2$6 = require$$2$5;
@@ -41996,227 +41996,6 @@ var micromatchExports = requireMicromatch();
41996
41996
 
41997
41997
  var distExports = requireDist$f();
41998
41998
 
41999
- var toBatchSyntax = {};
42000
-
42001
- var hasRequiredToBatchSyntax;
42002
- function requireToBatchSyntax() {
42003
- if (hasRequiredToBatchSyntax) return toBatchSyntax;
42004
- hasRequiredToBatchSyntax = 1;
42005
- toBatchSyntax.replaceDollarWithPercentPair = replaceDollarWithPercentPair;
42006
- toBatchSyntax.convertToSetCommand = convertToSetCommand;
42007
- toBatchSyntax.convertToSetCommands = convertToSetCommands;
42008
- function convertToSetCommand(key, value) {
42009
- var line = '';
42010
- key = key || '';
42011
- key = key.trim();
42012
- value = value || '';
42013
- value = value.trim();
42014
- if (key && value && value.length > 0) {
42015
- line = '@SET ' + key + '=' + replaceDollarWithPercentPair(value) + '\r\n';
42016
- }
42017
- return line;
42018
- }
42019
- function extractVariableValuePairs(declarations) {
42020
- var pairs = {};
42021
- declarations.map(function (declaration) {
42022
- var split = declaration.split('=');
42023
- pairs[split[0]] = split[1];
42024
- });
42025
- return pairs;
42026
- }
42027
- function convertToSetCommands(variableString) {
42028
- var variableValuePairs = extractVariableValuePairs(variableString.split(' '));
42029
- var variableDeclarationsAsBatch = '';
42030
- Object.keys(variableValuePairs).forEach(function (key) {
42031
- variableDeclarationsAsBatch += convertToSetCommand(key, variableValuePairs[key]);
42032
- });
42033
- return variableDeclarationsAsBatch;
42034
- }
42035
- function replaceDollarWithPercentPair(value) {
42036
- var dollarExpressions = /\$\{?([^$@#?\- \t{}:]+)\}?/g;
42037
- var result = '';
42038
- var startIndex = 0;
42039
- do {
42040
- var match = dollarExpressions.exec(value);
42041
- if (match) {
42042
- var betweenMatches = value.substring(startIndex, match.index) || '';
42043
- result += betweenMatches + '%' + match[1] + '%';
42044
- startIndex = dollarExpressions.lastIndex;
42045
- }
42046
- } while (dollarExpressions.lastIndex > 0);
42047
- result += value.slice(startIndex);
42048
- return result;
42049
- }
42050
- return toBatchSyntax;
42051
- }
42052
-
42053
- var lib$K;
42054
- var hasRequiredLib$K;
42055
- function requireLib$K() {
42056
- if (hasRequiredLib$K) return lib$K;
42057
- hasRequiredLib$K = 1;
42058
- // On windows, create a .cmd file.
42059
- // Read the #! in the file to see what it uses. The vast majority
42060
- // of the time, this will be either:
42061
- // "#!/usr/bin/env <prog> <args...>"
42062
- // or:
42063
- // "#!<prog> <args...>"
42064
- //
42065
- // Write a binroot/pkg.bin + ".cmd" file that has this line in it:
42066
- // @<prog> <args...> %dp0%<target> %*
42067
-
42068
- const {
42069
- chmod,
42070
- mkdir,
42071
- readFile,
42072
- stat,
42073
- unlink,
42074
- writeFile
42075
- } = require$$0$k;
42076
- const {
42077
- dirname,
42078
- relative
42079
- } = require$$0$d;
42080
- const toBatchSyntax = requireToBatchSyntax();
42081
- // linting disabled because this regex is really long
42082
- // eslint-disable-next-line max-len
42083
- const shebangExpr = /^#!\s*(?:\/usr\/bin\/env\s+(?:-S\s+)?((?:[^ \t=]+=[^ \t=]+\s+)*))?([^ \t]+)(.*)$/;
42084
- const cmdShimIfExists = (from, to) => stat(from).then(() => cmdShim(from, to), () => {});
42085
-
42086
- // Try to unlink, but ignore errors.
42087
- // Any problems will surface later.
42088
- const rm = path => unlink(path).catch(() => {});
42089
- const cmdShim = (from, to) => stat(from).then(() => cmdShim_(from, to));
42090
- const cmdShim_ = (from, to) => Promise.all([rm(to), rm(to + '.cmd'), rm(to + '.ps1')]).then(() => writeShim(from, to));
42091
- const writeShim = (from, to) =>
42092
- // make a cmd file and a sh script
42093
- // First, check if the bin is a #! of some sort.
42094
- // If not, then assume it's something that'll be compiled, or some other
42095
- // sort of script, and just call it directly.
42096
- mkdir(dirname(to), {
42097
- recursive: true
42098
- }).then(() => readFile(from, 'utf8')).then(data => {
42099
- const firstLine = data.trim().split(/\r*\n/)[0];
42100
- const shebang = firstLine.match(shebangExpr);
42101
- if (!shebang) {
42102
- return writeShim_(from, to);
42103
- }
42104
- const vars = shebang[1] || '';
42105
- const prog = shebang[2];
42106
- const args = shebang[3] || '';
42107
- return writeShim_(from, to, prog, args, vars);
42108
- }, () => writeShim_(from, to));
42109
- const writeShim_ = (from, to, prog, args, variables) => {
42110
- let shTarget = relative(dirname(to), from);
42111
- let target = shTarget.split('/').join('\\');
42112
- let longProg;
42113
- let shProg = prog && prog.split('\\').join('/');
42114
- let shLongProg;
42115
- let pwshProg = shProg && `"${shProg}$exe"`;
42116
- let pwshLongProg;
42117
- shTarget = shTarget.split('\\').join('/');
42118
- args = args || '';
42119
- variables = variables || '';
42120
- if (!prog) {
42121
- prog = `"%dp0%\\${target}"`;
42122
- shProg = `"$basedir/${shTarget}"`;
42123
- pwshProg = shProg;
42124
- args = '';
42125
- target = '';
42126
- shTarget = '';
42127
- } else {
42128
- longProg = `"%dp0%\\${prog}.exe"`;
42129
- shLongProg = `"$basedir/${prog}"`;
42130
- pwshLongProg = `"$basedir/${prog}$exe"`;
42131
- target = `"%dp0%\\${target}"`;
42132
- shTarget = `"$basedir/${shTarget}"`;
42133
- }
42134
-
42135
- // Subroutine trick to fix https://github.com/npm/cmd-shim/issues/10
42136
- // and https://github.com/npm/cli/issues/969
42137
- 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';
42138
- let cmd;
42139
- if (longProg) {
42140
- shLongProg = shLongProg.trim();
42141
- args = args.trim();
42142
- const variablesBatch = toBatchSyntax.convertToSetCommands(variables);
42143
- 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'
42144
- // prevent "Terminate Batch Job? (Y/n)" message
42145
- // https://github.com/npm/cli/issues/969#issuecomment-737496588
42146
- + 'endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & ' + `"%_prog%" ${args} ${target} %*\r\n`;
42147
- } else {
42148
- cmd = `${head}${prog} ${args} ${target} %*\r\n`;
42149
- }
42150
-
42151
- // #!/bin/sh
42152
- // basedir=`dirname "$0"`
42153
- //
42154
- // case `uname` in
42155
- // *CYGWIN*|*MINGW*|*MSYS*)
42156
- // if command -v cygpath > /dev/null 2>&1; then
42157
- // basedir=`cygpath -w "$basedir"`
42158
- // fi
42159
- // ;;
42160
- // esac
42161
- //
42162
- // if [ -x "$basedir/node.exe" ]; then
42163
- // exec "$basedir/node.exe" "$basedir/node_modules/npm/bin/npm-cli.js" "$@"
42164
- // else
42165
- // exec node "$basedir/node_modules/npm/bin/npm-cli.js" "$@"
42166
- // fi
42167
-
42168
- let sh = '#!/bin/sh\n';
42169
- 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';
42170
- if (shLongProg) {
42171
- sh = sh + `if [ -x ${shLongProg} ]; then\n` + ` exec ${variables}${shLongProg} ${args} ${shTarget} "$@"\n` + 'else \n' + ` exec ${variables}${shProg} ${args} ${shTarget} "$@"\n` + 'fi\n';
42172
- } else {
42173
- sh = sh + `exec ${shProg} ${args} ${shTarget} "$@"\n`;
42174
- }
42175
-
42176
- // #!/usr/bin/env pwsh
42177
- // $basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
42178
- //
42179
- // $ret=0
42180
- // $exe = ""
42181
- // if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
42182
- // # Fix case when both the Windows and Linux builds of Node
42183
- // # are installed in the same directory
42184
- // $exe = ".exe"
42185
- // }
42186
- // if (Test-Path "$basedir/node") {
42187
- // # Suport pipeline input
42188
- // if ($MyInvocation.ExpectingInput) {
42189
- // input | & "$basedir/node$exe" "$basedir/node_modules/npm/bin/npm-cli.js" $args
42190
- // } else {
42191
- // & "$basedir/node$exe" "$basedir/node_modules/npm/bin/npm-cli.js" $args
42192
- // }
42193
- // $ret=$LASTEXITCODE
42194
- // } else {
42195
- // # Support pipeline input
42196
- // if ($MyInvocation.ExpectingInput) {
42197
- // $input | & "node$exe" "$basedir/node_modules/npm/bin/npm-cli.js" $args
42198
- // } else {
42199
- // & "node$exe" "$basedir/node_modules/npm/bin/npm-cli.js" $args
42200
- // }
42201
- // $ret=$LASTEXITCODE
42202
- // }
42203
- // exit $ret
42204
- 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';
42205
- if (shLongProg) {
42206
- 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';
42207
- } else {
42208
- 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';
42209
- }
42210
- return Promise.all([writeFile(to + '.ps1', pwsh, 'utf8'), writeFile(to + '.cmd', cmd, 'utf8'), writeFile(to, sh, 'utf8')]).then(() => chmodShim(to));
42211
- };
42212
- const chmodShim = to => Promise.all([chmod(to, 0o755), chmod(to + '.cmd', 0o755), chmod(to + '.ps1', 0o755)]);
42213
- lib$K = cmdShim;
42214
- cmdShim.ifExists = cmdShimIfExists;
42215
- return lib$K;
42216
- }
42217
-
42218
- var libExports = requireLib$K();
42219
-
42220
41999
  class RequestError extends Error {
42221
42000
  name;
42222
42001
  /**
@@ -47148,7 +46927,6 @@ var DefaultValuesForTypeKey;
47148
46927
  * Copyright (c) 2016, Contributors
47149
46928
  * SPDX-License-Identifier: ISC
47150
46929
  */
47151
- /* eslint-disable prefer-arrow-callback */
47152
46930
  let mixin;
47153
46931
  class YargsParser {
47154
46932
  constructor(_mixin) {
@@ -48085,6 +47863,7 @@ function stripQuotes(val) {
48085
47863
 
48086
47864
  /**
48087
47865
  * @fileoverview Main entrypoint for libraries using yargs-parser in Node.js
47866
+ * CJS and ESM environments.
48088
47867
  *
48089
47868
  * @license
48090
47869
  * Copyright (c) 2016, Contributors
@@ -48093,7 +47872,7 @@ function stripQuotes(val) {
48093
47872
  var _a, _b, _c;
48094
47873
  // See https://github.com/yargs/yargs-parser#supported-nodejs-versions for our
48095
47874
  // version support policy. The YARGS_MIN_NODE_VERSION is used for testing only.
48096
- const minNodeVersion = process && process.env && process.env.YARGS_MIN_NODE_VERSION ? Number(process.env.YARGS_MIN_NODE_VERSION) : 20;
47875
+ const minNodeVersion = process && process.env && process.env.YARGS_MIN_NODE_VERSION ? Number(process.env.YARGS_MIN_NODE_VERSION) : 12;
48097
47876
  const nodeVersion = (_b = (_a = process === null || process === void 0 ? void 0 : process.versions) === null || _a === void 0 ? void 0 : _a.node) !== null && _b !== void 0 ? _b : (_c = process === null || process === void 0 ? void 0 : process.version) === null || _c === void 0 ? void 0 : _c.slice(1);
48098
47877
  if (nodeVersion) {
48099
47878
  const major = Number(nodeVersion.match(/^([^.]+)/)[1]);
@@ -48103,7 +47882,6 @@ if (nodeVersion) {
48103
47882
  }
48104
47883
  // Creates a yargs-parser instance using Node.js standard libraries:
48105
47884
  const env = process ? process.env : {};
48106
- const require$1 = require$$5$4.createRequire ? require$$5$4.createRequire((typeof document === 'undefined' ? require$$0$7.pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('vendor.js', document.baseURI).href))) : undefined;
48107
47885
  const parser$1 = new YargsParser({
48108
47886
  cwd: process.cwd,
48109
47887
  env: () => {
@@ -48112,9 +47890,11 @@ const parser$1 = new YargsParser({
48112
47890
  format: require$$1$6.format,
48113
47891
  normalize: path$4.normalize,
48114
47892
  resolve: path$4.resolve,
47893
+ // TODO: figure out a way to combine ESM and CJS coverage, such that
47894
+ // we can exercise all the lines below:
48115
47895
  require: path => {
48116
- if (typeof require$1 !== 'undefined') {
48117
- return require$1(path);
47896
+ if (typeof require !== 'undefined') {
47897
+ return require(path);
48118
47898
  } else if (path.match(/\.json$/)) {
48119
47899
  // Addresses: https://github.com/yargs/yargs/issues/2040
48120
47900
  return JSON.parse(fs$5.readFileSync(path, 'utf8'));
@@ -50259,11 +50039,11 @@ function requireFromUrl$1() {
50259
50039
  return fromUrl$1;
50260
50040
  }
50261
50041
 
50262
- var lib$J;
50263
- var hasRequiredLib$J;
50264
- function requireLib$J() {
50265
- if (hasRequiredLib$J) return lib$J;
50266
- hasRequiredLib$J = 1;
50042
+ var lib$K;
50043
+ var hasRequiredLib$K;
50044
+ function requireLib$K() {
50045
+ if (hasRequiredLib$K) return lib$K;
50046
+ hasRequiredLib$K = 1;
50267
50047
  const {
50268
50048
  LRUCache
50269
50049
  } = /*@__PURE__*/requireCommonjs$h();
@@ -50492,18 +50272,18 @@ function requireLib$J() {
50492
50272
  for (const [name, host] of Object.entries(hosts)) {
50493
50273
  GitHost.addHost(name, host);
50494
50274
  }
50495
- lib$J = GitHost;
50496
- return lib$J;
50275
+ lib$K = GitHost;
50276
+ return lib$K;
50497
50277
  }
50498
50278
 
50499
- var lib$I;
50500
- var hasRequiredLib$I;
50501
- function requireLib$I() {
50502
- if (hasRequiredLib$I) return lib$I;
50503
- hasRequiredLib$I = 1;
50279
+ var lib$J;
50280
+ var hasRequiredLib$J;
50281
+ function requireLib$J() {
50282
+ if (hasRequiredLib$J) return lib$J;
50283
+ hasRequiredLib$J = 1;
50504
50284
  const {
50505
50285
  builtinModules: builtins
50506
- } = require$$0$l;
50286
+ } = require$$0$k;
50507
50287
  var scopedPackagePattern = new RegExp('^(?:@([^/]+?)[/])?([^/]+?)$');
50508
50288
  var exclusionList = ['node_modules', 'favicon.ico'];
50509
50289
  function validate(name) {
@@ -50590,17 +50370,17 @@ function requireLib$I() {
50590
50370
  }
50591
50371
  return result;
50592
50372
  };
50593
- lib$I = validate;
50594
- return lib$I;
50373
+ lib$J = validate;
50374
+ return lib$J;
50595
50375
  }
50596
50376
 
50597
- var lib$H;
50598
- var hasRequiredLib$H;
50599
- function requireLib$H() {
50600
- if (hasRequiredLib$H) return lib$H;
50601
- hasRequiredLib$H = 1;
50377
+ var lib$I;
50378
+ var hasRequiredLib$I;
50379
+ function requireLib$I() {
50380
+ if (hasRequiredLib$I) return lib$I;
50381
+ hasRequiredLib$I = 1;
50602
50382
  const META = Symbol('proc-log.meta');
50603
- lib$H = {
50383
+ lib$I = {
50604
50384
  META: META,
50605
50385
  output: {
50606
50386
  LEVELS: ['standard', 'error', 'buffer', 'flush'],
@@ -50729,7 +50509,7 @@ function requireLib$H() {
50729
50509
  }
50730
50510
  }
50731
50511
  };
50732
- return lib$H;
50512
+ return lib$I;
50733
50513
  }
50734
50514
 
50735
50515
  var hasRequiredNpa;
@@ -50745,12 +50525,12 @@ function requireNpa() {
50745
50525
  const {
50746
50526
  homedir
50747
50527
  } = os$3;
50748
- const HostedGit = requireLib$J();
50528
+ const HostedGit = requireLib$K();
50749
50529
  const semver = requireSemver();
50750
- const validatePackageName = requireLib$I();
50530
+ const validatePackageName = requireLib$J();
50751
50531
  const {
50752
50532
  log
50753
- } = requireLib$H();
50533
+ } = requireLib$I();
50754
50534
  const hasSlashes = isWindows ? /\\|[/]/ : /[/]/;
50755
50535
  const isURL = /^(?:git[+])?[a-z]+:/i;
50756
50536
  const isGit = /^[^@]+@[^:.]+\.[^:]+:.+$/i;
@@ -63449,6 +63229,227 @@ function superRefine(fn) {
63449
63229
  return _superRefine(fn);
63450
63230
  }
63451
63231
 
63232
+ var toBatchSyntax = {};
63233
+
63234
+ var hasRequiredToBatchSyntax;
63235
+ function requireToBatchSyntax() {
63236
+ if (hasRequiredToBatchSyntax) return toBatchSyntax;
63237
+ hasRequiredToBatchSyntax = 1;
63238
+ toBatchSyntax.replaceDollarWithPercentPair = replaceDollarWithPercentPair;
63239
+ toBatchSyntax.convertToSetCommand = convertToSetCommand;
63240
+ toBatchSyntax.convertToSetCommands = convertToSetCommands;
63241
+ function convertToSetCommand(key, value) {
63242
+ var line = '';
63243
+ key = key || '';
63244
+ key = key.trim();
63245
+ value = value || '';
63246
+ value = value.trim();
63247
+ if (key && value && value.length > 0) {
63248
+ line = '@SET ' + key + '=' + replaceDollarWithPercentPair(value) + '\r\n';
63249
+ }
63250
+ return line;
63251
+ }
63252
+ function extractVariableValuePairs(declarations) {
63253
+ var pairs = {};
63254
+ declarations.map(function (declaration) {
63255
+ var split = declaration.split('=');
63256
+ pairs[split[0]] = split[1];
63257
+ });
63258
+ return pairs;
63259
+ }
63260
+ function convertToSetCommands(variableString) {
63261
+ var variableValuePairs = extractVariableValuePairs(variableString.split(' '));
63262
+ var variableDeclarationsAsBatch = '';
63263
+ Object.keys(variableValuePairs).forEach(function (key) {
63264
+ variableDeclarationsAsBatch += convertToSetCommand(key, variableValuePairs[key]);
63265
+ });
63266
+ return variableDeclarationsAsBatch;
63267
+ }
63268
+ function replaceDollarWithPercentPair(value) {
63269
+ var dollarExpressions = /\$\{?([^$@#?\- \t{}:]+)\}?/g;
63270
+ var result = '';
63271
+ var startIndex = 0;
63272
+ do {
63273
+ var match = dollarExpressions.exec(value);
63274
+ if (match) {
63275
+ var betweenMatches = value.substring(startIndex, match.index) || '';
63276
+ result += betweenMatches + '%' + match[1] + '%';
63277
+ startIndex = dollarExpressions.lastIndex;
63278
+ }
63279
+ } while (dollarExpressions.lastIndex > 0);
63280
+ result += value.slice(startIndex);
63281
+ return result;
63282
+ }
63283
+ return toBatchSyntax;
63284
+ }
63285
+
63286
+ var lib$H;
63287
+ var hasRequiredLib$H;
63288
+ function requireLib$H() {
63289
+ if (hasRequiredLib$H) return lib$H;
63290
+ hasRequiredLib$H = 1;
63291
+ // On windows, create a .cmd file.
63292
+ // Read the #! in the file to see what it uses. The vast majority
63293
+ // of the time, this will be either:
63294
+ // "#!/usr/bin/env <prog> <args...>"
63295
+ // or:
63296
+ // "#!<prog> <args...>"
63297
+ //
63298
+ // Write a binroot/pkg.bin + ".cmd" file that has this line in it:
63299
+ // @<prog> <args...> %dp0%<target> %*
63300
+
63301
+ const {
63302
+ chmod,
63303
+ mkdir,
63304
+ readFile,
63305
+ stat,
63306
+ unlink,
63307
+ writeFile
63308
+ } = require$$0$l;
63309
+ const {
63310
+ dirname,
63311
+ relative
63312
+ } = require$$0$d;
63313
+ const toBatchSyntax = requireToBatchSyntax();
63314
+ // linting disabled because this regex is really long
63315
+ // eslint-disable-next-line max-len
63316
+ const shebangExpr = /^#!\s*(?:\/usr\/bin\/env\s+(?:-S\s+)?((?:[^ \t=]+=[^ \t=]+\s+)*))?([^ \t]+)(.*)$/;
63317
+ const cmdShimIfExists = (from, to) => stat(from).then(() => cmdShim(from, to), () => {});
63318
+
63319
+ // Try to unlink, but ignore errors.
63320
+ // Any problems will surface later.
63321
+ const rm = path => unlink(path).catch(() => {});
63322
+ const cmdShim = (from, to) => stat(from).then(() => cmdShim_(from, to));
63323
+ const cmdShim_ = (from, to) => Promise.all([rm(to), rm(to + '.cmd'), rm(to + '.ps1')]).then(() => writeShim(from, to));
63324
+ const writeShim = (from, to) =>
63325
+ // make a cmd file and a sh script
63326
+ // First, check if the bin is a #! of some sort.
63327
+ // If not, then assume it's something that'll be compiled, or some other
63328
+ // sort of script, and just call it directly.
63329
+ mkdir(dirname(to), {
63330
+ recursive: true
63331
+ }).then(() => readFile(from, 'utf8')).then(data => {
63332
+ const firstLine = data.trim().split(/\r*\n/)[0];
63333
+ const shebang = firstLine.match(shebangExpr);
63334
+ if (!shebang) {
63335
+ return writeShim_(from, to);
63336
+ }
63337
+ const vars = shebang[1] || '';
63338
+ const prog = shebang[2];
63339
+ const args = shebang[3] || '';
63340
+ return writeShim_(from, to, prog, args, vars);
63341
+ }, () => writeShim_(from, to));
63342
+ const writeShim_ = (from, to, prog, args, variables) => {
63343
+ let shTarget = relative(dirname(to), from);
63344
+ let target = shTarget.split('/').join('\\');
63345
+ let longProg;
63346
+ let shProg = prog && prog.split('\\').join('/');
63347
+ let shLongProg;
63348
+ let pwshProg = shProg && `"${shProg}$exe"`;
63349
+ let pwshLongProg;
63350
+ shTarget = shTarget.split('\\').join('/');
63351
+ args = args || '';
63352
+ variables = variables || '';
63353
+ if (!prog) {
63354
+ prog = `"%dp0%\\${target}"`;
63355
+ shProg = `"$basedir/${shTarget}"`;
63356
+ pwshProg = shProg;
63357
+ args = '';
63358
+ target = '';
63359
+ shTarget = '';
63360
+ } else {
63361
+ longProg = `"%dp0%\\${prog}.exe"`;
63362
+ shLongProg = `"$basedir/${prog}"`;
63363
+ pwshLongProg = `"$basedir/${prog}$exe"`;
63364
+ target = `"%dp0%\\${target}"`;
63365
+ shTarget = `"$basedir/${shTarget}"`;
63366
+ }
63367
+
63368
+ // Subroutine trick to fix https://github.com/npm/cmd-shim/issues/10
63369
+ // and https://github.com/npm/cli/issues/969
63370
+ 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';
63371
+ let cmd;
63372
+ if (longProg) {
63373
+ shLongProg = shLongProg.trim();
63374
+ args = args.trim();
63375
+ const variablesBatch = toBatchSyntax.convertToSetCommands(variables);
63376
+ 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'
63377
+ // prevent "Terminate Batch Job? (Y/n)" message
63378
+ // https://github.com/npm/cli/issues/969#issuecomment-737496588
63379
+ + 'endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & ' + `"%_prog%" ${args} ${target} %*\r\n`;
63380
+ } else {
63381
+ cmd = `${head}${prog} ${args} ${target} %*\r\n`;
63382
+ }
63383
+
63384
+ // #!/bin/sh
63385
+ // basedir=`dirname "$0"`
63386
+ //
63387
+ // case `uname` in
63388
+ // *CYGWIN*|*MINGW*|*MSYS*)
63389
+ // if command -v cygpath > /dev/null 2>&1; then
63390
+ // basedir=`cygpath -w "$basedir"`
63391
+ // fi
63392
+ // ;;
63393
+ // esac
63394
+ //
63395
+ // if [ -x "$basedir/node.exe" ]; then
63396
+ // exec "$basedir/node.exe" "$basedir/node_modules/npm/bin/npm-cli.js" "$@"
63397
+ // else
63398
+ // exec node "$basedir/node_modules/npm/bin/npm-cli.js" "$@"
63399
+ // fi
63400
+
63401
+ let sh = '#!/bin/sh\n';
63402
+ 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';
63403
+ if (shLongProg) {
63404
+ sh = sh + `if [ -x ${shLongProg} ]; then\n` + ` exec ${variables}${shLongProg} ${args} ${shTarget} "$@"\n` + 'else \n' + ` exec ${variables}${shProg} ${args} ${shTarget} "$@"\n` + 'fi\n';
63405
+ } else {
63406
+ sh = sh + `exec ${shProg} ${args} ${shTarget} "$@"\n`;
63407
+ }
63408
+
63409
+ // #!/usr/bin/env pwsh
63410
+ // $basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
63411
+ //
63412
+ // $ret=0
63413
+ // $exe = ""
63414
+ // if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
63415
+ // # Fix case when both the Windows and Linux builds of Node
63416
+ // # are installed in the same directory
63417
+ // $exe = ".exe"
63418
+ // }
63419
+ // if (Test-Path "$basedir/node") {
63420
+ // # Suport pipeline input
63421
+ // if ($MyInvocation.ExpectingInput) {
63422
+ // input | & "$basedir/node$exe" "$basedir/node_modules/npm/bin/npm-cli.js" $args
63423
+ // } else {
63424
+ // & "$basedir/node$exe" "$basedir/node_modules/npm/bin/npm-cli.js" $args
63425
+ // }
63426
+ // $ret=$LASTEXITCODE
63427
+ // } else {
63428
+ // # Support pipeline input
63429
+ // if ($MyInvocation.ExpectingInput) {
63430
+ // $input | & "node$exe" "$basedir/node_modules/npm/bin/npm-cli.js" $args
63431
+ // } else {
63432
+ // & "node$exe" "$basedir/node_modules/npm/bin/npm-cli.js" $args
63433
+ // }
63434
+ // $ret=$LASTEXITCODE
63435
+ // }
63436
+ // exit $ret
63437
+ 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';
63438
+ if (shLongProg) {
63439
+ 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';
63440
+ } else {
63441
+ 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';
63442
+ }
63443
+ return Promise.all([writeFile(to + '.ps1', pwsh, 'utf8'), writeFile(to + '.cmd', cmd, 'utf8'), writeFile(to, sh, 'utf8')]).then(() => chmodShim(to));
63444
+ };
63445
+ const chmodShim = to => Promise.all([chmod(to, 0o755), chmod(to + '.cmd', 0o755), chmod(to + '.ps1', 0o755)]);
63446
+ lib$H = cmdShim;
63447
+ cmdShim.ifExists = cmdShimIfExists;
63448
+ return lib$H;
63449
+ }
63450
+
63451
+ var libExports = requireLib$H();
63452
+
63452
63453
  /*! @zkochan/js-yaml 0.0.10 https://github.com/nodeca/js-yaml @license MIT */
63453
63454
  function isNothing(subject) {
63454
63455
  return typeof subject === 'undefined' || subject === null;
@@ -66769,7 +66770,7 @@ function requireOverrideSet() {
66769
66770
  const semver = requireSemver();
66770
66771
  const {
66771
66772
  log
66772
- } = requireLib$H();
66773
+ } = requireLib$I();
66773
66774
  class OverrideSet {
66774
66775
  constructor({
66775
66776
  overrides,
@@ -67651,7 +67652,7 @@ function requireLib$D() {
67651
67652
  readFile,
67652
67653
  lstat,
67653
67654
  readdir
67654
- } = require$$0$k;
67655
+ } = require$$0$l;
67655
67656
  const parse = requireLib$F();
67656
67657
  const normalizePackageBin = requireLib$E();
67657
67658
  const {
@@ -68664,7 +68665,7 @@ function requireFixBin() {
68664
68665
  chmod,
68665
68666
  open,
68666
68667
  readFile
68667
- } = require$$0$k;
68668
+ } = require$$0$l;
68668
68669
  const execMode = 0o777 & ~process.umask();
68669
68670
  const writeFileAtomic = requireLib$B();
68670
68671
  const isWindowsHashBang = buf => buf[0] === '#'.charCodeAt(0) && buf[1] === '!'.charCodeAt(0) && /^#![^\n]+\r\n/.test(buf.toString());
@@ -68697,13 +68698,13 @@ function requireShimBin() {
68697
68698
  } = require$$0$d;
68698
68699
  const {
68699
68700
  lstat
68700
- } = require$$0$k;
68701
+ } = require$$0$l;
68701
68702
  const throwNonEnoent = er => {
68702
68703
  if (er.code !== 'ENOENT') {
68703
68704
  throw er;
68704
68705
  }
68705
68706
  };
68706
- const cmdShim = requireLib$K();
68707
+ const cmdShim = requireLib$H();
68707
68708
  const readCmdShim = requireLib$C();
68708
68709
  const fixBin = requireFixBin();
68709
68710
 
@@ -68804,10 +68805,10 @@ function requireLinkGently() {
68804
68805
  readlink,
68805
68806
  rm,
68806
68807
  symlink
68807
- } = require$$0$k;
68808
+ } = require$$0$l;
68808
68809
  const {
68809
68810
  log
68810
- } = requireLib$H();
68811
+ } = requireLib$I();
68811
68812
  const throwSignificant = er => {
68812
68813
  if (er.code === 'ENOENT') {
68813
68814
  return;
@@ -69076,7 +69077,7 @@ function requireCheckBin() {
69076
69077
  const readCmdShim = requireLib$C();
69077
69078
  const {
69078
69079
  readlink
69079
- } = require$$0$k;
69080
+ } = require$$0$l;
69080
69081
  const checkBin = async ({
69081
69082
  bin,
69082
69083
  path,
@@ -83863,7 +83864,7 @@ function requireNormalizeData$1() {
83863
83864
  const {
83864
83865
  URL
83865
83866
  } = require$$0$7;
83866
- const hostedGitInfo = requireLib$J();
83867
+ const hostedGitInfo = requireLib$K();
83867
83868
  const validateLicense = requireValidateNpmPackageLicense();
83868
83869
  const typos = {
83869
83870
  dependancies: 'dependencies',
@@ -84139,7 +84140,7 @@ function requirePosix() {
84139
84140
  });
84140
84141
  posix.sync = posix.isexe = void 0;
84141
84142
  const fs_1 = require$$0$b;
84142
- const promises_1 = require$$0$k;
84143
+ const promises_1 = require$$0$l;
84143
84144
  /**
84144
84145
  * Determine whether a path is executable according to the mode and
84145
84146
  * current (or specified) user and group IDs.
@@ -84212,7 +84213,7 @@ function requireWin32() {
84212
84213
  });
84213
84214
  win32.sync = win32.isexe = void 0;
84214
84215
  const fs_1 = require$$0$b;
84215
- const promises_1 = require$$0$k;
84216
+ const promises_1 = require$$0$l;
84216
84217
  /**
84217
84218
  * Determine whether a path is executable based on the file extension
84218
84219
  * and PATHEXT environment variable (or specified pathExt option)
@@ -85248,7 +85249,7 @@ function requireSpawn() {
85248
85249
  const promiseRetry = requirePromiseRetry();
85249
85250
  const {
85250
85251
  log
85251
- } = requireLib$H();
85252
+ } = requireLib$I();
85252
85253
  const makeError = requireMakeError();
85253
85254
  const makeOpts = requireOpts();
85254
85255
  spawn_1 = (gitArgs, opts = {}) => {
@@ -87546,7 +87547,7 @@ function requireClone() {
87546
87547
  isWindows
87547
87548
  } = requireUtils$3();
87548
87549
  const pickManifest = requireLib$v();
87549
- const fs = require$$0$k;
87550
+ const fs = require$$0$l;
87550
87551
  clone_1 = (repo, ref = 'HEAD', target = null, opts = {}) => getRevs(repo, opts).then(revs => clone(repo, revs, ref, resolveRef(revs, ref, opts), target || defaultTarget(repo, opts.cwd), opts));
87551
87552
  const maybeShallow = (repo, opts) => {
87552
87553
  if (opts.gitShallow === false || opts.gitShallow) {
@@ -87663,7 +87664,7 @@ function requireIs() {
87663
87664
  // not an airtight indicator, but a good gut-check to even bother trying
87664
87665
  const {
87665
87666
  stat
87666
- } = require$$0$k;
87667
+ } = require$$0$l;
87667
87668
  is = ({
87668
87669
  cwd = process.cwd()
87669
87670
  } = {}) => stat(cwd + '/.git').then(() => true, () => false);
@@ -87737,7 +87738,7 @@ function requireNormalize$1() {
87737
87738
  const path = path$4;
87738
87739
  const {
87739
87740
  log
87740
- } = requireLib$H();
87741
+ } = requireLib$I();
87741
87742
  const moduleBuiltin = require$$5$4;
87742
87743
 
87743
87744
  /**
@@ -87746,7 +87747,7 @@ function requireNormalize$1() {
87746
87747
  let _hostedGitInfo;
87747
87748
  function lazyHostedGitInfo() {
87748
87749
  if (!_hostedGitInfo) {
87749
- _hostedGitInfo = requireLib$J();
87750
+ _hostedGitInfo = requireLib$K();
87750
87751
  }
87751
87752
  return _hostedGitInfo;
87752
87753
  }
@@ -88354,7 +88355,7 @@ function requireReadPackage$1() {
88354
88355
 
88355
88356
  const {
88356
88357
  readFile
88357
- } = require$$0$k;
88358
+ } = require$$0$l;
88358
88359
  const parseJSON = requireLib$F();
88359
88360
  async function read(filename) {
88360
88361
  try {
@@ -90301,7 +90302,7 @@ function requirePolyfill() {
90301
90302
  symlink,
90302
90303
  unlink,
90303
90304
  utimes
90304
- } = require$$0$k;
90305
+ } = require$$0$l;
90305
90306
  const {
90306
90307
  dirname,
90307
90308
  isAbsolute,
@@ -90665,7 +90666,7 @@ var hasRequiredCp;
90665
90666
  function requireCp() {
90666
90667
  if (hasRequiredCp) return cp_1;
90667
90668
  hasRequiredCp = 1;
90668
- const fs = require$$0$k;
90669
+ const fs = require$$0$l;
90669
90670
  const getOptions = requireGetOptions();
90670
90671
  const node = requireNode$2();
90671
90672
  const polyfill = requirePolyfill();
@@ -90700,7 +90701,7 @@ function requireWithTempDir() {
90700
90701
  mkdir,
90701
90702
  mkdtemp,
90702
90703
  rm
90703
- } = require$$0$k;
90704
+ } = require$$0$l;
90704
90705
 
90705
90706
  // create a temp directory, ensure its permissions match its parent, then call
90706
90707
  // the supplied function passing it the path to the directory. clean up after
@@ -90745,7 +90746,7 @@ function requireReaddirScoped() {
90745
90746
  hasRequiredReaddirScoped = 1;
90746
90747
  const {
90747
90748
  readdir
90748
- } = require$$0$k;
90749
+ } = require$$0$l;
90749
90750
  const {
90750
90751
  join
90751
90752
  } = require$$0$d;
@@ -90778,7 +90779,7 @@ function requireMoveFile() {
90778
90779
  relative,
90779
90780
  isAbsolute
90780
90781
  } = require$$0$d;
90781
- const fs = require$$0$k;
90782
+ const fs = require$$0$l;
90782
90783
  const pathExists = async path => {
90783
90784
  try {
90784
90785
  await fs.access(path);
@@ -90885,7 +90886,7 @@ function requireEntryIndex$1() {
90885
90886
  readdir,
90886
90887
  rm,
90887
90888
  writeFile
90888
- } = require$$0$k;
90889
+ } = require$$0$l;
90889
90890
  const {
90890
90891
  Minipass
90891
90892
  } = requireCommonjs$b();
@@ -91665,7 +91666,7 @@ var hasRequiredRead$1;
91665
91666
  function requireRead$1() {
91666
91667
  if (hasRequiredRead$1) return read$1.exports;
91667
91668
  hasRequiredRead$1 = 1;
91668
- const fs = require$$0$k;
91669
+ const fs = require$$0$l;
91669
91670
  const fsm = requireLib$o();
91670
91671
  const ssri = requireLib$s();
91671
91672
  const contentPath = requirePath$1();
@@ -92053,7 +92054,7 @@ function requireWrite$1() {
92053
92054
  hasRequiredWrite$1 = 1;
92054
92055
  const events = require$$0$c;
92055
92056
  const contentPath = requirePath$1();
92056
- const fs = require$$0$k;
92057
+ const fs = require$$0$l;
92057
92058
  const {
92058
92059
  moveFile
92059
92060
  } = requireLib$p();
@@ -92358,7 +92359,7 @@ var hasRequiredRm$3;
92358
92359
  function requireRm$3() {
92359
92360
  if (hasRequiredRm$3) return rm_1$1;
92360
92361
  hasRequiredRm$3 = 1;
92361
- const fs = require$$0$k;
92362
+ const fs = require$$0$l;
92362
92363
  const contentPath = requirePath$1();
92363
92364
  const {
92364
92365
  hasContent
@@ -92386,7 +92387,7 @@ function requireRm$2() {
92386
92387
  hasRequiredRm$2 = 1;
92387
92388
  const {
92388
92389
  rm
92389
- } = require$$0$k;
92390
+ } = require$$0$l;
92390
92391
  const glob = requireGlob$2();
92391
92392
  const index = requireEntryIndex$1();
92392
92393
  const memo = requireMemoization$1();
@@ -92431,7 +92432,7 @@ function requireVerify$2() {
92431
92432
  stat,
92432
92433
  truncate,
92433
92434
  writeFile
92434
- } = require$$0$k;
92435
+ } = require$$0$l;
92435
92436
  const contentPath = requirePath$1();
92436
92437
  const fsm = requireLib$o();
92437
92438
  const glob = requireGlob$2();
@@ -92682,7 +92683,7 @@ function requireTmp$1() {
92682
92683
  const {
92683
92684
  withTempDir
92684
92685
  } = requireLib$p();
92685
- const fs = require$$0$k;
92686
+ const fs = require$$0$l;
92686
92687
  const path = require$$0$d;
92687
92688
  tmp$1.mkdir = mktmpdir;
92688
92689
  async function mktmpdir(cache, opts = {}) {
@@ -93010,7 +93011,7 @@ function requireLib$l() {
93010
93011
  readFile,
93011
93012
  readdir,
93012
93013
  stat
93013
- } = require$$0$k;
93014
+ } = require$$0$l;
93014
93015
  const {
93015
93016
  resolve,
93016
93017
  basename,
@@ -100866,7 +100867,7 @@ function requireRunScriptPkg$1() {
100866
100867
  const {
100867
100868
  output,
100868
100869
  input
100869
- } = requireLib$H();
100870
+ } = requireLib$I();
100870
100871
  output.standard(banner);
100871
100872
  inputEnd = input.start();
100872
100873
  }
@@ -114252,7 +114253,7 @@ function requireCheckResponse$1() {
114252
114253
  const defaultOpts = requireDefaultOpts$1();
114253
114254
  const {
114254
114255
  log
114255
- } = requireLib$H();
114256
+ } = requireLib$I();
114256
114257
  const {
114257
114258
  redact: cleanUrl
114258
114259
  } = requireLib$f();
@@ -123250,7 +123251,7 @@ function requireRemote$2() {
123250
123251
  const ssri = requireLib$s();
123251
123252
  const {
123252
123253
  log
123253
- } = requireLib$H();
123254
+ } = requireLib$I();
123254
123255
  const CachingMinipassPipeline = requirePipeline$1();
123255
123256
  const {
123256
123257
  getAgent
@@ -125104,7 +125105,7 @@ function requireGit() {
125104
125105
  } = requireCommonjs$b();
125105
125106
  const {
125106
125107
  log
125107
- } = requireLib$H();
125108
+ } = requireLib$I();
125108
125109
  const DirFetcher = requireDir();
125109
125110
  const Fetcher = requireFetcher();
125110
125111
  const FileFetcher = requireFile$1();
@@ -130262,7 +130263,7 @@ function requireFetch$1() {
130262
130263
  */
130263
130264
  const http2_1 = require$$0$s;
130264
130265
  const make_fetch_happen_1 = __importDefault(requireLib$d());
130265
- const proc_log_1 = requireLib$H();
130266
+ const proc_log_1 = requireLib$I();
130266
130267
  const promise_retry_1 = __importDefault(requirePromiseRetry());
130267
130268
  const util_1 = requireUtil();
130268
130269
  const error_1 = requireError$5();
@@ -133464,7 +133465,7 @@ function requireTmpfile() {
133464
133465
  value: true
133465
133466
  });
133466
133467
  tmpfile.withTempFile = void 0;
133467
- const promises_1 = __importDefault(require$$0$k);
133468
+ const promises_1 = __importDefault(require$$0$l);
133468
133469
  const os_1 = __importDefault(require$$0$f);
133469
133470
  const path_1 = __importDefault(require$$0$d);
133470
133471
  // Invokes the given handler with the path to a temporary file. The file
@@ -137026,7 +137027,7 @@ function requireFetcher() {
137026
137027
  } = requireCommonjs$b();
137027
137028
  const {
137028
137029
  log
137029
- } = requireLib$H();
137030
+ } = requireLib$I();
137030
137031
  const _ = require_protected();
137031
137032
  const cacheDir = requireCacheDir();
137032
137033
  const isPackageBin = requireIsPackageBin();
@@ -137595,7 +137596,7 @@ function requireCheckResponse() {
137595
137596
  const defaultOpts = requireDefaultOpts();
137596
137597
  const {
137597
137598
  log
137598
- } = requireLib$H();
137599
+ } = requireLib$I();
137599
137600
  const {
137600
137601
  redact: cleanUrl
137601
137602
  } = requireLib$f();
@@ -138211,7 +138212,7 @@ function requireEntryIndex() {
138211
138212
  readdir,
138212
138213
  rm,
138213
138214
  writeFile
138214
- } = require$$0$k;
138215
+ } = require$$0$l;
138215
138216
  const {
138216
138217
  Minipass
138217
138218
  } = requireCommonjs$b();
@@ -138602,7 +138603,7 @@ var hasRequiredRead;
138602
138603
  function requireRead() {
138603
138604
  if (hasRequiredRead) return read.exports;
138604
138605
  hasRequiredRead = 1;
138605
- const fs = require$$0$k;
138606
+ const fs = require$$0$l;
138606
138607
  const fsm = requireLib$o();
138607
138608
  const ssri = requireLib$s();
138608
138609
  const contentPath = requirePath();
@@ -138954,7 +138955,7 @@ function requireWrite() {
138954
138955
  hasRequiredWrite = 1;
138955
138956
  const events = require$$0$c;
138956
138957
  const contentPath = requirePath();
138957
- const fs = require$$0$k;
138958
+ const fs = require$$0$l;
138958
138959
  const {
138959
138960
  moveFile
138960
138961
  } = requireLib$p();
@@ -142571,7 +142572,7 @@ var hasRequiredRm$1;
142571
142572
  function requireRm$1() {
142572
142573
  if (hasRequiredRm$1) return rm_1;
142573
142574
  hasRequiredRm$1 = 1;
142574
- const fs = require$$0$k;
142575
+ const fs = require$$0$l;
142575
142576
  const contentPath = requirePath();
142576
142577
  const {
142577
142578
  hasContent
@@ -142599,7 +142600,7 @@ function requireRm() {
142599
142600
  hasRequiredRm = 1;
142600
142601
  const {
142601
142602
  rm: rm$1
142602
- } = require$$0$k;
142603
+ } = require$$0$l;
142603
142604
  const glob = requireGlob();
142604
142605
  const index = requireEntryIndex();
142605
142606
  const memo = requireMemoization();
@@ -142644,7 +142645,7 @@ function requireVerify() {
142644
142645
  stat,
142645
142646
  truncate,
142646
142647
  writeFile
142647
- } = require$$0$k;
142648
+ } = require$$0$l;
142648
142649
  const contentPath = requirePath();
142649
142650
  const fsm = requireLib$o();
142650
142651
  const glob = requireGlob();
@@ -142895,7 +142896,7 @@ function requireTmp() {
142895
142896
  const {
142896
142897
  withTempDir
142897
142898
  } = requireLib$p();
142898
- const fs = require$$0$k;
142899
+ const fs = require$$0$l;
142899
142900
  const path = require$$0$d;
142900
142901
  tmp.mkdir = mktmpdir;
142901
142902
  async function mktmpdir(cache, opts = {}) {
@@ -143055,7 +143056,7 @@ function requireRemote() {
143055
143056
  const ssri = requireLib$s();
143056
143057
  const {
143057
143058
  log
143058
- } = requireLib$H();
143059
+ } = requireLib$I();
143059
143060
  const CachingMinipassPipeline = requirePipeline();
143060
143061
  const {
143061
143062
  getAgent
@@ -144264,7 +144265,7 @@ function requireQuerySelectorAll() {
144264
144265
  const localeCompare = requireStringLocaleCompare()('en');
144265
144266
  const {
144266
144267
  log
144267
- } = requireLib$H();
144268
+ } = requireLib$I();
144268
144269
  const {
144269
144270
  minimatch
144270
144271
  } = requireCommonjs$f();
@@ -145228,7 +145229,7 @@ function requireNode() {
145228
145229
  } = requireCommonjs$g();
145229
145230
  const {
145230
145231
  log
145231
- } = requireLib$H();
145232
+ } = requireLib$I();
145232
145233
  const {
145233
145234
  resolve,
145234
145235
  relative,
@@ -148164,7 +148165,7 @@ function requireNormalize() {
148164
148165
  const path = path$4;
148165
148166
  const {
148166
148167
  log
148167
- } = requireLib$H();
148168
+ } = requireLib$I();
148168
148169
  const moduleBuiltin = require$$5$4;
148169
148170
 
148170
148171
  /**
@@ -148762,7 +148763,7 @@ function requireReadPackage() {
148762
148763
 
148763
148764
  const {
148764
148765
  readFile
148765
- } = require$$0$k;
148766
+ } = require$$0$l;
148766
148767
  const parseJSON = requireLib$F();
148767
148768
  async function read(filename) {
148768
148769
  try {
@@ -149453,7 +149454,7 @@ function requireAddRmPkgDeps() {
149453
149454
 
149454
149455
  const {
149455
149456
  log
149456
- } = requireLib$H();
149457
+ } = requireLib$I();
149457
149458
  const localeCompare = requireStringLocaleCompare()('en');
149458
149459
  const add = ({
149459
149460
  pkg,
@@ -150233,7 +150234,7 @@ function requireLib$2() {
150233
150234
  const cacache = requireLib$9();
150234
150235
  const {
150235
150236
  time
150236
- } = requireLib$H();
150237
+ } = requireLib$I();
150237
150238
  const Advisory = requireAdvisory();
150238
150239
  const {
150239
150240
  homedir
@@ -150376,7 +150377,7 @@ function requireAuditReport() {
150376
150377
  const {
150377
150378
  log,
150378
150379
  time
150379
- } = requireLib$H();
150380
+ } = requireLib$I();
150380
150381
  const npmFetch = requireLib$7();
150381
150382
  class AuditReport extends Map {
150382
150383
  #omit;
@@ -150690,7 +150691,7 @@ function requirePackumentCache() {
150690
150691
  } = require$$1$c;
150691
150692
  const {
150692
150693
  log
150693
- } = requireLib$H();
150694
+ } = requireLib$I();
150694
150695
 
150695
150696
  // This is an in-memory cache that Pacote uses for packuments.
150696
150697
  // Packuments are usually cached on disk. This allows for rapid re-requests
@@ -151933,7 +151934,7 @@ function requirePlaceDep() {
151933
151934
  const localeCompare = requireStringLocaleCompare()('en');
151934
151935
  const {
151935
151936
  log
151936
- } = requireLib$H();
151937
+ } = requireLib$I();
151937
151938
  const {
151938
151939
  redact
151939
151940
  } = requireLib$f();
@@ -153612,7 +153613,7 @@ function requireShrinkwrap() {
153612
153613
 
153613
153614
  const {
153614
153615
  log
153615
- } = requireLib$H();
153616
+ } = requireLib$I();
153616
153617
  const YarnLock = requireYarnLock();
153617
153618
  const {
153618
153619
  readFile,
@@ -154749,7 +154750,7 @@ function requireBuildIdealTree() {
154749
154750
  const {
154750
154751
  log,
154751
154752
  time
154752
- } = requireLib$H();
154753
+ } = requireLib$I();
154753
154754
  const {
154754
154755
  redact
154755
154756
  } = requireLib$f();
@@ -157413,7 +157414,7 @@ function requireRunScriptPkg() {
157413
157414
  const {
157414
157415
  output,
157415
157416
  input
157416
- } = requireLib$H();
157417
+ } = requireLib$I();
157417
157418
  output.standard(banner);
157418
157419
  inputEnd = input.start();
157419
157420
  }
@@ -157570,7 +157571,7 @@ function requireRebuild() {
157570
157571
  const {
157571
157572
  log,
157572
157573
  time
157573
- } = requireLib$H();
157574
+ } = requireLib$I();
157574
157575
  const boolEnv = b => b ? '1' : '';
157575
157576
  const sortNodes = (a, b) => a.depth - b.depth || localeCompare(a.path, b.path);
157576
157577
  const _checkBins = Symbol.for('checkBins');
@@ -158472,7 +158473,7 @@ function requireReify() {
158472
158473
  const {
158473
158474
  log,
158474
158475
  time
158475
- } = requireLib$H();
158476
+ } = requireLib$I();
158476
158477
  const rpj = requireLib$D();
158477
158478
  const hgi = requireLib$5();
158478
158479
  const {
@@ -160552,7 +160553,7 @@ function requireArborist() {
160552
160553
  const {
160553
160554
  log,
160554
160555
  time
160555
- } = requireLib$H();
160556
+ } = requireLib$I();
160556
160557
  const {
160557
160558
  saveTypeMap
160558
160559
  } = requireAddRmPkgDeps();
@@ -160977,5 +160978,5 @@ exports.terminalLinkExports = terminalLinkExports;
160977
160978
  exports.updater = updater$1;
160978
160979
  exports.yargsParser = yargsParser;
160979
160980
  exports.yoctocolorsCjsExports = yoctocolorsCjsExports;
160980
- //# debugId=df912508-88ac-4a37-b8d4-105de5eb0617
160981
+ //# debugId=406d7b8c-f921-4d3d-a49f-f886ed6115f9
160981
160982
  //# sourceMappingURL=vendor.js.map