@socketsecurity/cli-with-sentry 1.0.72 → 1.0.74
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/cli.js +22 -19
- package/dist/cli.js.map +1 -1
- package/dist/constants.js +37 -7
- package/dist/constants.js.map +1 -1
- package/dist/instrument-with-sentry.js +3 -2
- package/dist/instrument-with-sentry.js.map +1 -1
- package/dist/shadow-npm-bin.js +18 -24
- package/dist/shadow-npm-bin.js.map +1 -1
- package/dist/shadow-npm-inject.js +3 -2
- package/dist/shadow-npm-inject.js.map +1 -1
- package/dist/tsconfig.dts.tsbuildinfo +1 -1
- package/dist/types/commands/fix/handle-fix.d.mts.map +1 -1
- package/dist/types/constants.d.mts +3 -0
- package/dist/types/constants.d.mts.map +1 -1
- package/dist/types/shadow/npm/bin.d.mts.map +1 -1
- package/dist/utils.js +4 -3
- package/dist/utils.js.map +1 -1
- package/dist/vendor.js +4 -3
- package/external/@coana-tech/cli/cli.mjs +1 -1
- package/external/@socketsecurity/registry/external/libnpmpack.js +20520 -4658
- package/external/@socketsecurity/registry/external/make-fetch-happen.js +7702 -4384
- package/external/@socketsecurity/registry/external/pacote.js +20310 -4448
- package/external/@socketsecurity/registry/lib/constants/npm-real-exec-path.js +2 -2
- package/external/@socketsecurity/registry/lib/spawn.js +25 -2
- package/package.json +8 -8
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict'
|
|
2
2
|
|
|
3
|
+
const npmExecPath = /*@__PURE__*/ require('./npm-exec-path')
|
|
3
4
|
const { resolveBinPathSync } = /*@__PURE__*/ require('../npm')
|
|
4
|
-
const which = /*@__PURE__*/ require('../../external/which')
|
|
5
5
|
|
|
6
|
-
module.exports = resolveBinPathSync(
|
|
6
|
+
module.exports = resolveBinPathSync(npmExecPath)
|
|
@@ -119,8 +119,31 @@ function spawn(cmd, args, options, extra) {
|
|
|
119
119
|
}
|
|
120
120
|
|
|
121
121
|
/*@__NO_SIDE_EFFECTS__*/
|
|
122
|
-
function spawnSync(
|
|
123
|
-
|
|
122
|
+
function spawnSync(cmd, args, options) {
|
|
123
|
+
const { stripAnsi: shouldStripAnsi = true, ...rawSpawnOptions } = {
|
|
124
|
+
__proto__: null,
|
|
125
|
+
...options
|
|
126
|
+
}
|
|
127
|
+
const { stdioString: rawStdioString = true } = rawSpawnOptions
|
|
128
|
+
const rawEncoding = rawStdioString ? 'utf8' : 'buffer'
|
|
129
|
+
const spawnOptions = {
|
|
130
|
+
encoding: rawEncoding,
|
|
131
|
+
...rawSpawnOptions
|
|
132
|
+
}
|
|
133
|
+
const stdioString = spawnOptions.encoding !== 'buffer'
|
|
134
|
+
const result = getChildProcess().spawnSync(cmd, args, spawnOptions)
|
|
135
|
+
if (stdioString) {
|
|
136
|
+
const { stderr, stdout } = result
|
|
137
|
+
if (stdout) {
|
|
138
|
+
result.stdout = stdout.toString().trim()
|
|
139
|
+
}
|
|
140
|
+
if (stderr) {
|
|
141
|
+
result.stderr = stderr.toString().trim()
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
return shouldStripAnsi && stdioString
|
|
145
|
+
? stripAnsiFromSpawnResult(result)
|
|
146
|
+
: result
|
|
124
147
|
}
|
|
125
148
|
|
|
126
149
|
module.exports = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@socketsecurity/cli-with-sentry",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.74",
|
|
4
4
|
"description": "CLI for Socket.dev, includes Sentry error handling, otherwise identical to the regular `socket` package",
|
|
5
5
|
"homepage": "https://github.com/SocketDev/socket-cli",
|
|
6
6
|
"license": "MIT",
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
"@babel/preset-typescript": "7.27.1",
|
|
86
86
|
"@babel/runtime": "7.28.2",
|
|
87
87
|
"@biomejs/biome": "2.1.2",
|
|
88
|
-
"@coana-tech/cli": "14.10.
|
|
88
|
+
"@coana-tech/cli": "14.10.5",
|
|
89
89
|
"@cyclonedx/cdxgen": "11.4.4",
|
|
90
90
|
"@dotenvx/dotenvx": "1.48.3",
|
|
91
91
|
"@eslint/compat": "1.3.1",
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
"@socketregistry/is-interactive": "1.0.6",
|
|
113
113
|
"@socketregistry/packageurl-js": "1.0.8",
|
|
114
114
|
"@socketsecurity/config": "3.0.1",
|
|
115
|
-
"@socketsecurity/registry": "1.0.
|
|
115
|
+
"@socketsecurity/registry": "1.0.249",
|
|
116
116
|
"@socketsecurity/sdk": "1.4.65",
|
|
117
117
|
"@types/blessed": "0.1.25",
|
|
118
118
|
"@types/cmd-shim": "5.0.2",
|
|
@@ -127,7 +127,7 @@
|
|
|
127
127
|
"@types/which": "3.0.4",
|
|
128
128
|
"@types/yargs-parser": "21.0.3",
|
|
129
129
|
"@typescript-eslint/parser": "8.38.0",
|
|
130
|
-
"@typescript/native-preview": "7.0.0-dev.
|
|
130
|
+
"@typescript/native-preview": "7.0.0-dev.20250728.1",
|
|
131
131
|
"@vitest/coverage-v8": "3.2.4",
|
|
132
132
|
"blessed": "0.1.81",
|
|
133
133
|
"blessed-contrib": "4.11.0",
|
|
@@ -140,7 +140,7 @@
|
|
|
140
140
|
"eslint": "9.32.0",
|
|
141
141
|
"eslint-import-resolver-typescript": "4.4.4",
|
|
142
142
|
"eslint-plugin-import-x": "4.16.1",
|
|
143
|
-
"eslint-plugin-n": "17.21.
|
|
143
|
+
"eslint-plugin-n": "17.21.3",
|
|
144
144
|
"eslint-plugin-sort-destructure-keys": "2.0.0",
|
|
145
145
|
"eslint-plugin-unicorn": "56.0.1",
|
|
146
146
|
"globals": "16.3.0",
|
|
@@ -154,7 +154,7 @@
|
|
|
154
154
|
"meow": "13.2.0",
|
|
155
155
|
"micromatch": "4.0.8",
|
|
156
156
|
"mock-fs": "5.5.0",
|
|
157
|
-
"nock": "14.0.
|
|
157
|
+
"nock": "14.0.7",
|
|
158
158
|
"npm-package-arg": "13.0.0",
|
|
159
159
|
"npm-run-all2": "8.0.4",
|
|
160
160
|
"open": "10.2.0",
|
|
@@ -162,7 +162,7 @@
|
|
|
162
162
|
"pony-cause": "2.1.11",
|
|
163
163
|
"registry-auth-token": "5.1.0",
|
|
164
164
|
"registry-url": "7.2.0",
|
|
165
|
-
"rollup": "4.
|
|
165
|
+
"rollup": "4.46.1",
|
|
166
166
|
"semver": "7.7.2",
|
|
167
167
|
"synp": "1.9.14",
|
|
168
168
|
"terminal-link": "2.1.1",
|
|
@@ -239,6 +239,6 @@
|
|
|
239
239
|
"strict": true
|
|
240
240
|
},
|
|
241
241
|
"dependencies": {
|
|
242
|
-
"@sentry/node": "9.42.
|
|
242
|
+
"@sentry/node": "9.42.1"
|
|
243
243
|
}
|
|
244
244
|
}
|