@socketsecurity/cli-with-sentry 0.14.96 → 0.14.98

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.
@@ -389,13 +389,64 @@ async function setupSdk(
389
389
  // The '@rollup/plugin-replace' will replace "process.env['INLINED_SOCKET_CLI_NAME']".
390
390
  name: '@socketsecurity/cli',
391
391
  // The '@rollup/plugin-replace' will replace "process.env['INLINED_SOCKET_CLI_VERSION']".
392
- version: '0.14.96',
392
+ version: '0.14.98',
393
393
  // The '@rollup/plugin-replace' will replace "process.env['INLINED_SOCKET_CLI_HOMEPAGE']".
394
394
  homepage: 'https://github.com/SocketDev/socket-cli'
395
395
  })
396
396
  })
397
397
  }
398
398
 
399
+ function assignDefaultFixOptions(options) {
400
+ if (options.autoPilot === undefined) {
401
+ options.autoPilot = false
402
+ }
403
+ if (options.autoMerge === undefined) {
404
+ options.autoMerge = !!options.autoPilot
405
+ }
406
+ if (options.cwd === undefined) {
407
+ options.cwd = process.cwd()
408
+ }
409
+ if (options.rangeStyle === undefined) {
410
+ options.rangeStyle = 'preserve'
411
+ }
412
+ if (options.test === undefined) {
413
+ options.test = !!options.autoPilot || !!options.testScript
414
+ }
415
+ if (options.testScript === undefined) {
416
+ options.testScript = 'test'
417
+ }
418
+ return options
419
+ }
420
+ function applyRange(refRange, version, style = 'preserve') {
421
+ switch (style) {
422
+ case 'caret':
423
+ return `^${version}`
424
+ case 'gt':
425
+ return `>${version}`
426
+ case 'gte':
427
+ return `>=${version}`
428
+ case 'lt':
429
+ return `<${version}`
430
+ case 'lte':
431
+ return `<=${version}`
432
+ case 'preserve': {
433
+ const comparators = [
434
+ ...new vendor.semverExports.Range(refRange).set
435
+ ].flat()
436
+ const { length } = comparators
437
+ return !length || length > 1
438
+ ? version
439
+ : `${comparators[0].operator}${version}`
440
+ }
441
+ case 'tilde':
442
+ return `~${version}`
443
+ case 'pin':
444
+ default:
445
+ return version
446
+ }
447
+ }
448
+ const RangeStyles = ['caret', 'gt', 'lt', 'pin', 'preserve', 'tilde']
449
+
399
450
  const DiffAction = /*#__PURE__*/ (function (DiffAction) {
400
451
  DiffAction['add'] = 'ADD'
401
452
  DiffAction['change'] = 'CHANGE'
@@ -1734,57 +1785,6 @@ function logAlertsMap(alertsMap, options) {
1734
1785
  output.write('\n')
1735
1786
  }
1736
1787
 
1737
- function assignDefaultFixOptions(options) {
1738
- if (options.autoPilot === undefined) {
1739
- options.autoPilot = false
1740
- }
1741
- if (options.autoMerge === undefined) {
1742
- options.autoMerge = !!options.autoPilot
1743
- }
1744
- if (options.cwd === undefined) {
1745
- options.cwd = process.cwd()
1746
- }
1747
- if (options.rangeStyle === undefined) {
1748
- options.rangeStyle = 'preserve'
1749
- }
1750
- if (options.test === undefined) {
1751
- options.test = !!options.autoPilot || !!options.testScript
1752
- }
1753
- if (options.testScript === undefined) {
1754
- options.testScript = 'test'
1755
- }
1756
- return options
1757
- }
1758
- function applyRange(refRange, version, style = 'preserve') {
1759
- switch (style) {
1760
- case 'caret':
1761
- return `^${version}`
1762
- case 'gt':
1763
- return `>${version}`
1764
- case 'gte':
1765
- return `>=${version}`
1766
- case 'lt':
1767
- return `<${version}`
1768
- case 'lte':
1769
- return `<=${version}`
1770
- case 'preserve': {
1771
- const comparators = [
1772
- ...new vendor.semverExports.Range(refRange).set
1773
- ].flat()
1774
- const { length } = comparators
1775
- return !length || length > 1
1776
- ? version
1777
- : `${comparators[0].operator}${version}`
1778
- }
1779
- case 'tilde':
1780
- return `~${version}`
1781
- case 'pin':
1782
- default:
1783
- return version
1784
- }
1785
- }
1786
- const RangeStyles = ['caret', 'gt', 'lt', 'pin', 'preserve', 'tilde']
1787
-
1788
1788
  const { LOOP_SENTINEL, NPM: NPM$1, NPM_REGISTRY_URL } = constants
1789
1789
  function getDetailsFromDiff(diff_, options) {
1790
1790
  const details = []
@@ -2333,5 +2333,5 @@ exports.supportedConfigKeys = supportedConfigKeys
2333
2333
  exports.updateConfigValue = updateConfigValue
2334
2334
  exports.updateNode = updateNode
2335
2335
  exports.updatePackageJsonFromNode = updatePackageJsonFromNode
2336
- //# debugId=d29afdea-cfc6-4b70-afc0-51fe50fadf13
2336
+ //# debugId=17bb7117-e7bf-4171-b608-aeb5ed7ea402
2337
2337
  //# sourceMappingURL=shadow-npm-inject.js.map