socket 1.1.11 → 1.1.12

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 (85) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/bin/cli.js +2 -1
  3. package/bin/npm-cli.js +2 -1
  4. package/bin/npx-cli.js +2 -1
  5. package/bin/pnpm-cli.js +29 -0
  6. package/bin/yarn-cli.js +29 -0
  7. package/dist/cli.js +702 -526
  8. package/dist/cli.js.map +1 -1
  9. package/dist/constants.js +27 -5
  10. package/dist/constants.js.map +1 -1
  11. package/dist/npm-cli.js +26 -0
  12. package/dist/npm-cli.js.map +1 -0
  13. package/dist/npx-cli.js +26 -0
  14. package/dist/npx-cli.js.map +1 -0
  15. package/dist/pnpm-cli.js +26 -0
  16. package/dist/pnpm-cli.js.map +1 -0
  17. package/dist/shadow-npm-inject.js +2 -2
  18. package/dist/shadow-npm-inject.js.map +1 -1
  19. package/dist/shadow-pnpm-bin.js +235 -0
  20. package/dist/shadow-pnpm-bin.js.map +1 -0
  21. package/dist/shadow-yarn-bin.js +200 -0
  22. package/dist/shadow-yarn-bin.js.map +1 -0
  23. package/dist/tsconfig.dts.tsbuildinfo +1 -1
  24. package/dist/types/commands/fix/pull-request.d.mts.map +1 -1
  25. package/dist/types/commands/json/cmd-json.d.mts.map +1 -1
  26. package/dist/types/commands/manifest/cmd-manifest-conda.d.mts.map +1 -1
  27. package/dist/types/commands/manifest/cmd-manifest-gradle.d.mts.map +1 -1
  28. package/dist/types/commands/manifest/cmd-manifest-kotlin.d.mts.map +1 -1
  29. package/dist/types/commands/manifest/cmd-manifest-setup.d.mts.map +1 -1
  30. package/dist/types/commands/manifest/cmd-manifest.d.mts.map +1 -1
  31. package/dist/types/commands/manifest/detect-manifest-actions.d.mts.map +1 -1
  32. package/dist/types/commands/manifest/generate_auto_manifest.d.mts.map +1 -1
  33. package/dist/types/commands/manifest/output-requirements.d.mts.map +1 -1
  34. package/dist/types/commands/manifest/run-cdxgen.d.mts.map +1 -1
  35. package/dist/types/commands/manifest/setup-manifest-config.d.mts.map +1 -1
  36. package/dist/types/commands/npm/cmd-npm.d.mts.map +1 -1
  37. package/dist/types/commands/npx/cmd-npx.d.mts.map +1 -1
  38. package/dist/types/commands/pnpm/cmd-pnpm.d.mts +10 -0
  39. package/dist/types/commands/pnpm/cmd-pnpm.d.mts.map +1 -0
  40. package/dist/types/commands/scan/cmd-scan-setup.d.mts.map +1 -1
  41. package/dist/types/commands/yarn/cmd-yarn.d.mts +10 -0
  42. package/dist/types/commands/yarn/cmd-yarn.d.mts.map +1 -0
  43. package/dist/types/commands.d.mts +10 -0
  44. package/dist/types/commands.d.mts.map +1 -1
  45. package/dist/types/constants.d.mts +15 -1
  46. package/dist/types/constants.d.mts.map +1 -1
  47. package/dist/types/npm-cli.d.mts +3 -0
  48. package/dist/types/npm-cli.d.mts.map +1 -0
  49. package/dist/types/npx-cli.d.mts +3 -0
  50. package/dist/types/npx-cli.d.mts.map +1 -0
  51. package/dist/types/pnpm-cli.d.mts +3 -0
  52. package/dist/types/pnpm-cli.d.mts.map +1 -0
  53. package/dist/types/shadow/pnpm/bin.d.mts +10 -0
  54. package/dist/types/shadow/pnpm/bin.d.mts.map +1 -0
  55. package/dist/types/shadow/pnpm/link.d.mts +2 -0
  56. package/dist/types/shadow/pnpm/link.d.mts.map +1 -0
  57. package/dist/types/shadow/yarn/bin.d.mts +10 -0
  58. package/dist/types/shadow/yarn/bin.d.mts.map +1 -0
  59. package/dist/types/shadow/yarn/link.d.mts +2 -0
  60. package/dist/types/shadow/yarn/link.d.mts.map +1 -0
  61. package/dist/types/utils/alerts-map.d.mts.map +1 -1
  62. package/dist/types/utils/coana.d.mts.map +1 -1
  63. package/dist/types/utils/github.d.mts.map +1 -1
  64. package/dist/types/utils/meow-with-subcommands.d.mts.map +1 -1
  65. package/dist/types/utils/package-environment.d.mts.map +1 -1
  66. package/dist/types/utils/pnpm-paths.d.mts +5 -0
  67. package/dist/types/utils/pnpm-paths.d.mts.map +1 -0
  68. package/dist/types/utils/socket-json.d.mts +3 -0
  69. package/dist/types/utils/socket-json.d.mts.map +1 -1
  70. package/dist/types/utils/yarn-paths.d.mts +5 -0
  71. package/dist/types/utils/yarn-paths.d.mts.map +1 -0
  72. package/dist/types/utils/yarn-version.d.mts +2 -0
  73. package/dist/types/utils/yarn-version.d.mts.map +1 -0
  74. package/dist/types/yarn-cli.d.mts +3 -0
  75. package/dist/types/yarn-cli.d.mts.map +1 -0
  76. package/dist/utils.js +242 -63
  77. package/dist/utils.js.map +1 -1
  78. package/dist/vendor.js +3622 -1386
  79. package/dist/yarn-cli.js +26 -0
  80. package/dist/yarn-cli.js.map +1 -0
  81. package/package.json +6 -2
  82. package/shadow-bin/npm +1 -1
  83. package/shadow-bin/npx +1 -1
  84. package/shadow-bin/pnpm +27 -0
  85. package/shadow-bin/yarn +27 -0
package/CHANGELOG.md CHANGED
@@ -4,6 +4,21 @@ All notable changes to this project will be documented in this file.
4
4
 
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
6
6
 
7
+ ## [1.1.12](https://github.com/SocketDev/socket-cli/releases/tag/v1.1.12) - 2025-09-15
8
+
9
+ ### Fixed
10
+ - Resolved runtime error when processing security alerts
11
+
12
+ ## [1.1.11](https://github.com/SocketDev/socket-cli/releases/tag/v1.1.11) - 2025-09-12
13
+
14
+ ### Fixed
15
+ - Updated Socket SDK to resolve issues with multipart uploads
16
+
17
+ ## [1.1.10](https://github.com/SocketDev/socket-cli/releases/tag/v1.1.10) - 2025-09-11
18
+
19
+ ### Changed
20
+ - Enhanced command argument filtering for improved compatibility with npm and cdxgen integrations
21
+
7
22
  ## [1.1.9](https://github.com/SocketDev/socket-cli/releases/tag/v1.1.9) - 2025-09-11
8
23
 
9
24
  ### Added
package/bin/cli.js CHANGED
@@ -1,6 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  'use strict'
3
- ;(async () => {
3
+
4
+ void (async () => {
4
5
  const Module = require('node:module')
5
6
  const path = require('node:path')
6
7
  const rootPath = path.join(__dirname, '..')
package/bin/npm-cli.js CHANGED
@@ -1,6 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  'use strict'
3
- ;(async () => {
3
+
4
+ void (async () => {
4
5
  const Module = require('node:module')
5
6
  const path = require('node:path')
6
7
  const rootPath = path.join(__dirname, '..')
package/bin/npx-cli.js CHANGED
@@ -1,6 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  'use strict'
3
- ;(async () => {
3
+
4
+ void (async () => {
4
5
  const Module = require('node:module')
5
6
  const path = require('node:path')
6
7
  const rootPath = path.join(__dirname, '..')
@@ -0,0 +1,29 @@
1
+ #!/usr/bin/env node
2
+ 'use strict'
3
+
4
+ void (async () => {
5
+ const Module = require('node:module')
6
+ const path = require('node:path')
7
+ const rootPath = path.join(__dirname, '..')
8
+ Module.enableCompileCache?.(path.join(rootPath, '.cache'))
9
+
10
+ const shadowBin = require(path.join(rootPath, 'dist/shadow-pnpm-bin.js'))
11
+
12
+ process.exitCode = 1
13
+
14
+ const { spawnPromise } = await shadowBin('pnpm', process.argv.slice(2), {
15
+ stdio: 'inherit',
16
+ })
17
+
18
+ // See https://nodejs.org/api/child_process.html#event-exit.
19
+ spawnPromise.process.on('exit', (code, signalName) => {
20
+ if (signalName) {
21
+ process.kill(process.pid, signalName)
22
+ } else if (typeof code === 'number') {
23
+ // eslint-disable-next-line n/no-process-exit
24
+ process.exit(code)
25
+ }
26
+ })
27
+
28
+ await spawnPromise
29
+ })()
@@ -0,0 +1,29 @@
1
+ #!/usr/bin/env node
2
+ 'use strict'
3
+
4
+ void (async () => {
5
+ const Module = require('node:module')
6
+ const path = require('node:path')
7
+ const rootPath = path.join(__dirname, '..')
8
+ Module.enableCompileCache?.(path.join(rootPath, '.cache'))
9
+
10
+ const shadowBin = require(path.join(rootPath, 'dist/shadow-yarn-bin.js'))
11
+
12
+ process.exitCode = 1
13
+
14
+ const { spawnPromise } = await shadowBin('yarn', process.argv.slice(2), {
15
+ stdio: 'inherit',
16
+ })
17
+
18
+ // See https://nodejs.org/api/child_process.html#event-exit.
19
+ spawnPromise.process.on('exit', (code, signalName) => {
20
+ if (signalName) {
21
+ process.kill(process.pid, signalName)
22
+ } else if (typeof code === 'number') {
23
+ // eslint-disable-next-line n/no-process-exit
24
+ process.exit(code)
25
+ }
26
+ })
27
+
28
+ await spawnPromise
29
+ })()