@socketsecurity/cli-with-sentry 0.14.134 → 0.14.135

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
@@ -50471,10 +50471,14 @@ function requirePackageUrl() {
50471
50471
  return [rawType, undefined, undefined, undefined, undefined, undefined]
50472
50472
  }
50473
50473
  let rawVersion
50474
- let atSignIndex = pathname.lastIndexOf('@')
50475
- // Handle unencoded leading '@' characters. This is a small break from
50476
- // the specification to make parsing more forgiving so that users don't
50477
- // have to deal with it.
50474
+ let atSignIndex =
50475
+ rawType === 'npm'
50476
+ ? // Deviate from the specification to handle a special npm purl type case for
50477
+ // pnpm ids such as 'pkg:npm/next@14.2.10(react-dom@18.3.1(react@18.3.1))(react@18.3.1)'.
50478
+ pathname.indexOf('@', firstSlashIndex + 2)
50479
+ : pathname.lastIndexOf('@')
50480
+ // When a forward slash ('/') is directly preceding an '@' symbol,
50481
+ // then the '@' symbol is NOT considered a version separator.
50478
50482
  if (
50479
50483
  atSignIndex !== -1 &&
50480
50484
  pathname.charCodeAt(atSignIndex - 1) === 47 /*'/'*/
@@ -93819,5 +93823,5 @@ exports.terminalLinkExports = terminalLinkExports
93819
93823
  exports.updater = updater
93820
93824
  exports.yargsParser = yargsParser
93821
93825
  exports.yoctocolorsCjsExports = yoctocolorsCjsExports
93822
- //# debugId=3810388f-5112-4109-ae8b-e3bb8d0ea22c
93826
+ //# debugId=2dd52dc8-5909-45f5-88e3-6250929d2c05
93823
93827
  //# sourceMappingURL=vendor.js.map