@socketsecurity/cli-with-sentry 0.14.135 → 0.14.137

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/vendor.js CHANGED
@@ -25708,7 +25708,11 @@ function requireUtils$1() {
25708
25708
  Object.defineProperty(utils$1, '__esModule', {
25709
25709
  value: true
25710
25710
  })
25711
- utils$1.normalizePath = utils$1.convertSlashes = utils$1.cleanPath = void 0
25711
+ utils$1.normalizePath =
25712
+ utils$1.isRootDirectory =
25713
+ utils$1.convertSlashes =
25714
+ utils$1.cleanPath =
25715
+ void 0
25712
25716
  const path_1 = require$$0$5
25713
25717
  function cleanPath(path) {
25714
25718
  let normalized = (0, path_1.normalize)(path)
@@ -25728,6 +25732,10 @@ function requireUtils$1() {
25728
25732
  return path.replace(SLASHES_REGEX, separator)
25729
25733
  }
25730
25734
  utils$1.convertSlashes = convertSlashes
25735
+ function isRootDirectory(path) {
25736
+ return path === '/' || /^[a-z]:\\$/i.test(path)
25737
+ }
25738
+ utils$1.isRootDirectory = isRootDirectory
25731
25739
  function normalizePath(path, options) {
25732
25740
  const { normalizePath, pathSeparator, resolvePaths } = options
25733
25741
  const pathNeedsCleaning =
@@ -26371,7 +26379,9 @@ function requireWalker() {
26371
26379
  this.callbackInvoker = invokeCallback.build(options, this.isSynchronous)
26372
26380
  this.root = (0, utils_1.normalizePath)(root, options)
26373
26381
  this.state = {
26374
- root: this.root.slice(0, -1),
26382
+ root: (0, utils_1.isRootDirectory)(this.root)
26383
+ ? this.root
26384
+ : this.root.slice(0, -1),
26375
26385
  // Perf: we explicitly tell the compiler to optimize for String arrays
26376
26386
  paths: [''].slice(0, 0),
26377
26387
  groups: [],
@@ -29320,7 +29330,9 @@ function requireDist$2() {
29320
29330
  props.depthOffset = newCommonPath.length
29321
29331
  props.commonPath = newCommonPath
29322
29332
  props.root =
29323
- newCommonPath.length > 0 ? `${cwd}/${newCommonPath.join('/')}` : cwd
29333
+ newCommonPath.length > 0
29334
+ ? import_node_path.default.posix.join(cwd, ...newCommonPath)
29335
+ : cwd
29324
29336
  }
29325
29337
  return result
29326
29338
  }
@@ -29378,7 +29390,9 @@ function requireDist$2() {
29378
29390
  return import_node_path.posix.relative(cwd, `${root}/${path2}`) || '.'
29379
29391
  }
29380
29392
  function processPath(path2, cwd, root, isDirectory, absolute) {
29381
- const relativePath = absolute ? path2.slice(root.length + 1) || '.' : path2
29393
+ const relativePath = absolute
29394
+ ? path2.slice(root === '/' ? 1 : root.length + 1) || '.'
29395
+ : path2
29382
29396
  if (root === cwd) {
29383
29397
  return isDirectory && relativePath !== '.'
29384
29398
  ? relativePath.slice(0, -1)
@@ -93823,5 +93837,5 @@ exports.terminalLinkExports = terminalLinkExports
93823
93837
  exports.updater = updater
93824
93838
  exports.yargsParser = yargsParser
93825
93839
  exports.yoctocolorsCjsExports = yoctocolorsCjsExports
93826
- //# debugId=2dd52dc8-5909-45f5-88e3-6250929d2c05
93840
+ //# debugId=5e001b78-66ce-4b97-9ba3-e76a18071486
93827
93841
  //# sourceMappingURL=vendor.js.map