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.
- package/CHANGELOG.md +15 -0
- package/bin/cli.js +2 -1
- package/bin/npm-cli.js +2 -1
- package/bin/npx-cli.js +2 -1
- package/bin/pnpm-cli.js +29 -0
- package/bin/yarn-cli.js +29 -0
- package/dist/cli.js +702 -526
- package/dist/cli.js.map +1 -1
- package/dist/constants.js +27 -5
- package/dist/constants.js.map +1 -1
- package/dist/npm-cli.js +26 -0
- package/dist/npm-cli.js.map +1 -0
- package/dist/npx-cli.js +26 -0
- package/dist/npx-cli.js.map +1 -0
- package/dist/pnpm-cli.js +26 -0
- package/dist/pnpm-cli.js.map +1 -0
- package/dist/shadow-npm-inject.js +2 -2
- package/dist/shadow-npm-inject.js.map +1 -1
- package/dist/shadow-pnpm-bin.js +235 -0
- package/dist/shadow-pnpm-bin.js.map +1 -0
- package/dist/shadow-yarn-bin.js +200 -0
- package/dist/shadow-yarn-bin.js.map +1 -0
- package/dist/tsconfig.dts.tsbuildinfo +1 -1
- package/dist/types/commands/fix/pull-request.d.mts.map +1 -1
- package/dist/types/commands/json/cmd-json.d.mts.map +1 -1
- package/dist/types/commands/manifest/cmd-manifest-conda.d.mts.map +1 -1
- package/dist/types/commands/manifest/cmd-manifest-gradle.d.mts.map +1 -1
- package/dist/types/commands/manifest/cmd-manifest-kotlin.d.mts.map +1 -1
- package/dist/types/commands/manifest/cmd-manifest-setup.d.mts.map +1 -1
- package/dist/types/commands/manifest/cmd-manifest.d.mts.map +1 -1
- package/dist/types/commands/manifest/detect-manifest-actions.d.mts.map +1 -1
- package/dist/types/commands/manifest/generate_auto_manifest.d.mts.map +1 -1
- package/dist/types/commands/manifest/output-requirements.d.mts.map +1 -1
- package/dist/types/commands/manifest/run-cdxgen.d.mts.map +1 -1
- package/dist/types/commands/manifest/setup-manifest-config.d.mts.map +1 -1
- package/dist/types/commands/npm/cmd-npm.d.mts.map +1 -1
- package/dist/types/commands/npx/cmd-npx.d.mts.map +1 -1
- package/dist/types/commands/pnpm/cmd-pnpm.d.mts +10 -0
- package/dist/types/commands/pnpm/cmd-pnpm.d.mts.map +1 -0
- package/dist/types/commands/scan/cmd-scan-setup.d.mts.map +1 -1
- package/dist/types/commands/yarn/cmd-yarn.d.mts +10 -0
- package/dist/types/commands/yarn/cmd-yarn.d.mts.map +1 -0
- package/dist/types/commands.d.mts +10 -0
- package/dist/types/commands.d.mts.map +1 -1
- package/dist/types/constants.d.mts +15 -1
- package/dist/types/constants.d.mts.map +1 -1
- package/dist/types/npm-cli.d.mts +3 -0
- package/dist/types/npm-cli.d.mts.map +1 -0
- package/dist/types/npx-cli.d.mts +3 -0
- package/dist/types/npx-cli.d.mts.map +1 -0
- package/dist/types/pnpm-cli.d.mts +3 -0
- package/dist/types/pnpm-cli.d.mts.map +1 -0
- package/dist/types/shadow/pnpm/bin.d.mts +10 -0
- package/dist/types/shadow/pnpm/bin.d.mts.map +1 -0
- package/dist/types/shadow/pnpm/link.d.mts +2 -0
- package/dist/types/shadow/pnpm/link.d.mts.map +1 -0
- package/dist/types/shadow/yarn/bin.d.mts +10 -0
- package/dist/types/shadow/yarn/bin.d.mts.map +1 -0
- package/dist/types/shadow/yarn/link.d.mts +2 -0
- package/dist/types/shadow/yarn/link.d.mts.map +1 -0
- package/dist/types/utils/alerts-map.d.mts.map +1 -1
- package/dist/types/utils/coana.d.mts.map +1 -1
- package/dist/types/utils/github.d.mts.map +1 -1
- package/dist/types/utils/meow-with-subcommands.d.mts.map +1 -1
- package/dist/types/utils/package-environment.d.mts.map +1 -1
- package/dist/types/utils/pnpm-paths.d.mts +5 -0
- package/dist/types/utils/pnpm-paths.d.mts.map +1 -0
- package/dist/types/utils/socket-json.d.mts +3 -0
- package/dist/types/utils/socket-json.d.mts.map +1 -1
- package/dist/types/utils/yarn-paths.d.mts +5 -0
- package/dist/types/utils/yarn-paths.d.mts.map +1 -0
- package/dist/types/utils/yarn-version.d.mts +2 -0
- package/dist/types/utils/yarn-version.d.mts.map +1 -0
- package/dist/types/yarn-cli.d.mts +3 -0
- package/dist/types/yarn-cli.d.mts.map +1 -0
- package/dist/utils.js +242 -63
- package/dist/utils.js.map +1 -1
- package/dist/vendor.js +3622 -1386
- package/dist/yarn-cli.js +26 -0
- package/dist/yarn-cli.js.map +1 -0
- package/package.json +6 -2
- package/shadow-bin/npm +1 -1
- package/shadow-bin/npx +1 -1
- package/shadow-bin/pnpm +27 -0
- 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
package/bin/npm-cli.js
CHANGED
package/bin/npx-cli.js
CHANGED
package/bin/pnpm-cli.js
ADDED
|
@@ -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
|
+
})()
|
package/bin/yarn-cli.js
ADDED
|
@@ -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
|
+
})()
|