@socketsecurity/cli-with-sentry 1.0.56 → 1.0.57
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.
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
const { stripAnsi } = /*@__PURE__*/ require('./strings')
|
|
4
4
|
|
|
5
|
-
const {
|
|
5
|
+
const { isArray: ArrayIsArray } = Array
|
|
6
|
+
const { hasOwn: ObjectHasOwn, keys: ObjectKeys } = Object
|
|
6
7
|
|
|
7
8
|
let _child_process
|
|
8
9
|
/*@__NO_SIDE_EFFECTS__*/
|
|
@@ -24,12 +25,26 @@ function getSpawn() {
|
|
|
24
25
|
return _spawn
|
|
25
26
|
}
|
|
26
27
|
|
|
28
|
+
/*@__NO_SIDE_EFFECTS__*/
|
|
29
|
+
function isSpawnError(value) {
|
|
30
|
+
return (
|
|
31
|
+
value !== null &&
|
|
32
|
+
typeof value === 'object' &&
|
|
33
|
+
ObjectHasOwn(value, 'code') &&
|
|
34
|
+
typeof value.code === 'number' &&
|
|
35
|
+
ObjectHasOwn(value, 'cmd') &&
|
|
36
|
+
typeof value.code === 'string' &&
|
|
37
|
+
ObjectHasOwn(value, 'args') &&
|
|
38
|
+
ArrayIsArray(value.args)
|
|
39
|
+
)
|
|
40
|
+
}
|
|
41
|
+
|
|
27
42
|
/*@__NO_SIDE_EFFECTS__*/
|
|
28
43
|
function isStdioType(stdio, type) {
|
|
29
44
|
return (
|
|
30
45
|
stdio === type ||
|
|
31
|
-
(
|
|
32
|
-
(
|
|
46
|
+
((stdio === null || stdio === undefined) && type === 'pipe') ||
|
|
47
|
+
(ArrayIsArray(stdio) &&
|
|
33
48
|
stdio.length > 2 &&
|
|
34
49
|
stdio[0] === type &&
|
|
35
50
|
stdio[1] === type &&
|
|
@@ -109,6 +124,8 @@ function spawnSync(...args) {
|
|
|
109
124
|
}
|
|
110
125
|
|
|
111
126
|
module.exports = {
|
|
127
|
+
isSpawnError,
|
|
128
|
+
isStdioType,
|
|
112
129
|
spawn,
|
|
113
130
|
spawnSync
|
|
114
131
|
}
|
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.57",
|
|
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",
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
"@biomejs/biome": "2.1.1",
|
|
88
88
|
"@coana-tech/cli": "14.10.3",
|
|
89
89
|
"@cyclonedx/cdxgen": "11.4.3",
|
|
90
|
-
"@dotenvx/dotenvx": "1.47.
|
|
90
|
+
"@dotenvx/dotenvx": "1.47.6",
|
|
91
91
|
"@eslint/compat": "1.3.1",
|
|
92
92
|
"@eslint/js": "9.31.0",
|
|
93
93
|
"@npmcli/arborist": "9.1.2",
|
|
@@ -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.234",
|
|
116
116
|
"@socketsecurity/sdk": "1.4.54",
|
|
117
117
|
"@types/blessed": "0.1.25",
|
|
118
118
|
"@types/cmd-shim": "5.0.2",
|
|
@@ -126,7 +126,7 @@
|
|
|
126
126
|
"@types/semver": "7.7.0",
|
|
127
127
|
"@types/which": "3.0.4",
|
|
128
128
|
"@types/yargs-parser": "21.0.3",
|
|
129
|
-
"@typescript-eslint/parser": "8.
|
|
129
|
+
"@typescript-eslint/parser": "8.37.0",
|
|
130
130
|
"@typescript/native-preview": "7.0.0-dev.20250712.1",
|
|
131
131
|
"@vitest/coverage-v8": "3.2.4",
|
|
132
132
|
"blessed": "0.1.81",
|
|
@@ -170,7 +170,7 @@
|
|
|
170
170
|
"tinyglobby": "0.2.14",
|
|
171
171
|
"trash": "9.0.0",
|
|
172
172
|
"type-coverage": "2.29.7",
|
|
173
|
-
"typescript-eslint": "8.
|
|
173
|
+
"typescript-eslint": "8.37.0",
|
|
174
174
|
"unplugin-purge-polyfills": "0.1.0",
|
|
175
175
|
"vitest": "3.2.4",
|
|
176
176
|
"which": "5.0.0",
|