@socketsecurity/cli-with-sentry 1.0.56 → 1.0.58

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 { keys: ObjectKeys } = Object
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
- (!stdio && type === 'pipe') ||
32
- (Array.isArray(stdio) &&
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.56",
3
+ "version": "1.0.58",
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.5",
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,22 +112,22 @@
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.231",
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",
119
119
  "@types/js-yaml": "4.0.9",
120
120
  "@types/micromatch": "4.0.9",
121
121
  "@types/mock-fs": "4.13.4",
122
- "@types/node": "24.0.13",
122
+ "@types/node": "24.0.14",
123
123
  "@types/npmcli__arborist": "6.3.1",
124
124
  "@types/npmcli__config": "6.0.3",
125
125
  "@types/proc-log": "3.0.4",
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.36.0",
130
- "@typescript/native-preview": "7.0.0-dev.20250712.1",
129
+ "@typescript-eslint/parser": "8.37.0",
130
+ "@typescript/native-preview": "7.0.0-dev.20250715.1",
131
131
  "@vitest/coverage-v8": "3.2.4",
132
132
  "blessed": "0.1.81",
133
133
  "blessed-contrib": "4.11.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.45.0",
165
+ "rollup": "4.45.1",
166
166
  "semver": "7.7.2",
167
167
  "synp": "1.9.14",
168
168
  "terminal-link": "2.1.1",
@@ -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.36.0",
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",