@socketsecurity/cli-with-sentry 1.0.64 → 1.0.65
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 +180 -174
- package/dist/cli.js.map +1 -1
- package/dist/constants.js +18 -11
- package/dist/constants.js.map +1 -1
- package/dist/instrument-with-sentry.js +4 -9
- package/dist/instrument-with-sentry.js.map +1 -1
- package/dist/shadow-npm-inject.js +8 -11
- package/dist/shadow-npm-inject.js.map +1 -1
- package/dist/types/commands/config/cmd-config-auto.d.mts.map +1 -1
- package/dist/types/commands/config/cmd-config-get.d.mts.map +1 -1
- package/dist/types/commands/config/cmd-config-set.d.mts.map +1 -1
- package/dist/types/commands/config/cmd-config-unset.d.mts.map +1 -1
- package/dist/types/commands/config/discover-config-value.d.mts.map +1 -1
- package/dist/types/commands/config/output-config-list.d.mts.map +1 -1
- package/dist/types/commands/manifest/convert-conda-to-requirements.d.mts +1 -1
- package/dist/types/commands/manifest/convert-conda-to-requirements.d.mts.map +1 -1
- package/dist/types/commands/manifest/output-requirements.d.mts +1 -1
- package/dist/types/commands/manifest/output-requirements.d.mts.map +1 -1
- package/dist/types/commands/organization/output-security-policy.d.mts.map +1 -1
- package/dist/types/constants.d.mts.map +1 -1
- package/dist/types/shadow/npm/arborist-helpers.d.mts +1 -1
- package/dist/types/shadow/npm/arborist-helpers.d.mts.map +1 -1
- package/dist/types/utils/alerts-map.d.mts +1 -1
- package/dist/types/utils/alerts-map.d.mts.map +1 -1
- package/dist/types/utils/config.d.mts +4 -2
- package/dist/types/utils/config.d.mts.map +1 -1
- package/dist/types/utils/fs.d.mts +3 -1
- package/dist/types/utils/fs.d.mts.map +1 -1
- package/dist/types/utils/glob.d.mts.map +1 -1
- package/dist/utils.js +59 -46
- package/dist/utils.js.map +1 -1
- package/dist/vendor.js +3 -4
- package/external/@socketsecurity/registry/extensions.json +2 -2
- package/external/@socketsecurity/registry/external/@socketregistry/yocto-spinner.js +20 -11
- package/external/@socketsecurity/registry/lib/spinner.js +12 -18
- package/external/@socketsecurity/registry/manifest.json +7 -7
- package/package.json +7 -7
package/dist/vendor.js
CHANGED
|
@@ -51,7 +51,6 @@ var require$$0$r = require('node:http2');
|
|
|
51
51
|
var require$$1$d = require('node:v8');
|
|
52
52
|
var require$$2$7 = require$$6$3;
|
|
53
53
|
|
|
54
|
-
var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
|
|
55
54
|
function camelCase$1(str) {
|
|
56
55
|
const isCamelCase = str !== str.toLowerCase() && str !== str.toUpperCase();
|
|
57
56
|
if (!isCamelCase) {
|
|
@@ -41065,7 +41064,7 @@ async function defaultBrowser() {
|
|
|
41065
41064
|
const execFile = require$$1$6.promisify(childProcess.execFile);
|
|
41066
41065
|
|
|
41067
41066
|
// Path to included `xdg-open`.
|
|
41068
|
-
const __dirname$1 = path$2.dirname(require$$0$7.fileURLToPath((
|
|
41067
|
+
const __dirname$1 = path$2.dirname(require$$0$7.fileURLToPath(require('node:url').pathToFileURL(__filename).href));
|
|
41069
41068
|
const localXdgOpenPath = path$2.join(__dirname$1, 'xdg-open');
|
|
41070
41069
|
const {
|
|
41071
41070
|
platform,
|
|
@@ -166554,7 +166553,7 @@ if (nodeVersion) {
|
|
|
166554
166553
|
}
|
|
166555
166554
|
// Creates a yargs-parser instance using Node.js standard libraries:
|
|
166556
166555
|
const env = process ? process.env : {};
|
|
166557
|
-
const require$1 = require$$5$3.createRequire ? require$$5$3.createRequire((
|
|
166556
|
+
const require$1 = require$$5$3.createRequire ? require$$5$3.createRequire(require('node:url').pathToFileURL(__filename).href) : undefined;
|
|
166558
166557
|
const parser = new YargsParser({
|
|
166559
166558
|
cwd: process.cwd,
|
|
166560
166559
|
env: () => {
|
|
@@ -168581,5 +168580,5 @@ exports.terminalLinkExports = terminalLinkExports;
|
|
|
168581
168580
|
exports.updater = updater$1;
|
|
168582
168581
|
exports.yargsParser = yargsParser;
|
|
168583
168582
|
exports.yoctocolorsCjsExports = yoctocolorsCjsExports;
|
|
168584
|
-
//# debugId=
|
|
168583
|
+
//# debugId=17127725-c333-4fdd-a9b0-2ef9149d90d8
|
|
168585
168584
|
//# sourceMappingURL=vendor.js.map
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"pkg:npm/%40socketregistry/packageurl-js@latest",
|
|
5
5
|
{
|
|
6
6
|
"categories": ["levelup"],
|
|
7
|
-
"engines": { "node": ">=18
|
|
7
|
+
"engines": { "node": ">=18" },
|
|
8
8
|
"interop": ["cjs"],
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"name": "@socketregistry/packageurl-js",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"pkg:npm/shell-quote@latest",
|
|
17
17
|
{
|
|
18
18
|
"categories": ["tuneup"],
|
|
19
|
-
"engines": { "node": ">=18
|
|
19
|
+
"engines": { "node": ">=18" },
|
|
20
20
|
"interop": ["cjs"],
|
|
21
21
|
"license": "MIT",
|
|
22
22
|
"name": "shell-quote",
|
|
@@ -140,7 +140,7 @@ function requireYoctoSpinner() {
|
|
|
140
140
|
function getYoctocolors() {
|
|
141
141
|
if (_yoctocolors === undefined) {
|
|
142
142
|
_yoctocolors = {
|
|
143
|
-
.../*@__PURE__*/ requireYoctocolorsCjs()
|
|
143
|
+
.../*@__PURE__*/ /*@__PURE__*/ requireYoctocolorsCjs()
|
|
144
144
|
}
|
|
145
145
|
}
|
|
146
146
|
return _yoctocolors
|
|
@@ -195,6 +195,9 @@ function requireYoctoSpinner() {
|
|
|
195
195
|
}
|
|
196
196
|
return _stripVTControlCharacters(string)
|
|
197
197
|
}
|
|
198
|
+
function normalizeText(value) {
|
|
199
|
+
return typeof value === 'string' ? value.trimStart() : ''
|
|
200
|
+
}
|
|
198
201
|
class YoctoSpinner {
|
|
199
202
|
#color
|
|
200
203
|
#currentFrame = -1
|
|
@@ -216,9 +219,11 @@ function requireYoctoSpinner() {
|
|
|
216
219
|
}
|
|
217
220
|
const spinner = opts.spinner ?? getDefaultSpinner()
|
|
218
221
|
const stream = opts.stream ?? getProcess().stderr
|
|
219
|
-
|
|
222
|
+
const { frames } = spinner
|
|
223
|
+
this.#frames =
|
|
224
|
+
(frames?.length ?? 0) < 1 ? [''] : frames.map(f => f.trim())
|
|
220
225
|
this.#interval = spinner.interval
|
|
221
|
-
this.#text = options.text
|
|
226
|
+
this.#text = normalizeText(options.text)
|
|
222
227
|
this.#stream = stream ?? process.stderr
|
|
223
228
|
this.#color = options.color ?? 'cyan'
|
|
224
229
|
this.#isInteractive = !!stream.isTTY && isProcessInteractive()
|
|
@@ -228,7 +233,6 @@ function requireYoctoSpinner() {
|
|
|
228
233
|
if (this.isSpinning) {
|
|
229
234
|
this.stop()
|
|
230
235
|
}
|
|
231
|
-
|
|
232
236
|
// SIGINT: 128 + 2
|
|
233
237
|
// SIGTERM: 128 + 15
|
|
234
238
|
const exitCode =
|
|
@@ -264,7 +268,7 @@ function requireYoctoSpinner() {
|
|
|
264
268
|
const colors = getYoctocolors()
|
|
265
269
|
const applyColor = colors[this.#color] ?? colors.cyan
|
|
266
270
|
const frame = this.#frames[this.#currentFrame]
|
|
267
|
-
let string = `${applyColor(frame)} ${this.#text}`
|
|
271
|
+
let string = `${frame ? `${applyColor(frame)} ` : ''}${this.#text}`
|
|
268
272
|
if (string) {
|
|
269
273
|
if (this.#indention.length) {
|
|
270
274
|
string = `${this.#indention}${string}`
|
|
@@ -273,8 +277,12 @@ function requireYoctoSpinner() {
|
|
|
273
277
|
string += '\n'
|
|
274
278
|
}
|
|
275
279
|
}
|
|
276
|
-
this
|
|
277
|
-
|
|
280
|
+
if (this.#isInteractive) {
|
|
281
|
+
this.clear()
|
|
282
|
+
}
|
|
283
|
+
if (string) {
|
|
284
|
+
this.#write(string)
|
|
285
|
+
}
|
|
278
286
|
if (this.#isInteractive) {
|
|
279
287
|
this.#lines = this.#lineCount(string)
|
|
280
288
|
}
|
|
@@ -313,7 +321,7 @@ function requireYoctoSpinner() {
|
|
|
313
321
|
return this.#text
|
|
314
322
|
}
|
|
315
323
|
set text(value) {
|
|
316
|
-
this.#text = value
|
|
324
|
+
this.#text = normalizeText(value)
|
|
317
325
|
this.#render()
|
|
318
326
|
}
|
|
319
327
|
clear() {
|
|
@@ -321,7 +329,7 @@ function requireYoctoSpinner() {
|
|
|
321
329
|
return this
|
|
322
330
|
}
|
|
323
331
|
this.#stream.cursorTo(0)
|
|
324
|
-
for (let index = 0; index < this.#lines; index
|
|
332
|
+
for (let index = 0; index < this.#lines; index += 1) {
|
|
325
333
|
if (index > 0) {
|
|
326
334
|
this.#stream.moveCursor(0, -1)
|
|
327
335
|
}
|
|
@@ -349,8 +357,9 @@ function requireYoctoSpinner() {
|
|
|
349
357
|
return this
|
|
350
358
|
}
|
|
351
359
|
start(text) {
|
|
352
|
-
|
|
353
|
-
|
|
360
|
+
const normalized = normalizeText(text)
|
|
361
|
+
if (normalized) {
|
|
362
|
+
this.#text = normalized
|
|
354
363
|
}
|
|
355
364
|
if (this.isSpinning) {
|
|
356
365
|
return this
|
|
@@ -9,6 +9,10 @@ const ciSpinner = {
|
|
|
9
9
|
interval: 2147483647
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
+
function normalizeText(value) {
|
|
13
|
+
return typeof value === 'string' ? value.trimStart() : ''
|
|
14
|
+
}
|
|
15
|
+
|
|
12
16
|
let _Spinner
|
|
13
17
|
let _defaultSpinner
|
|
14
18
|
/*@__NO_SIDE_EFFECTS__*/
|
|
@@ -38,17 +42,17 @@ function Spinner(options) {
|
|
|
38
42
|
extras = args
|
|
39
43
|
text = ''
|
|
40
44
|
}
|
|
41
|
-
const trimmed = text.trimStart()
|
|
42
45
|
const { isSpinning: wasSpinning } = this
|
|
43
|
-
|
|
46
|
+
const normalized = normalizeText(text)
|
|
47
|
+
super[methodName](normalized)
|
|
44
48
|
const {
|
|
45
49
|
incLogCallCountSymbol,
|
|
46
50
|
lastWasBlankSymbol,
|
|
47
51
|
logger
|
|
48
52
|
} = /*@__PURE__*/ require('./logger')
|
|
49
53
|
if (methodName === 'stop') {
|
|
50
|
-
if (wasSpinning &&
|
|
51
|
-
logger[lastWasBlankSymbol](isBlankString(
|
|
54
|
+
if (wasSpinning && normalized) {
|
|
55
|
+
logger[lastWasBlankSymbol](isBlankString(normalized))
|
|
52
56
|
logger[incLogCallCountSymbol]()
|
|
53
57
|
}
|
|
54
58
|
} else {
|
|
@@ -71,15 +75,6 @@ function Spinner(options) {
|
|
|
71
75
|
return this
|
|
72
76
|
}
|
|
73
77
|
|
|
74
|
-
get text() {
|
|
75
|
-
return super.text
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
set text(value) {
|
|
79
|
-
const trimmed = typeof value === 'string' ? value.trimStart() : ''
|
|
80
|
-
super.text = trimmed
|
|
81
|
-
}
|
|
82
|
-
|
|
83
78
|
debug(...args) {
|
|
84
79
|
const { isDebug } = /*@__PURE__*/ require('./debug')
|
|
85
80
|
if (isDebug()) {
|
|
@@ -124,18 +119,17 @@ function Spinner(options) {
|
|
|
124
119
|
return this.#apply('stop', args)
|
|
125
120
|
}
|
|
126
121
|
|
|
127
|
-
setText(
|
|
128
|
-
|
|
129
|
-
this.text = trimmed
|
|
122
|
+
setText(value) {
|
|
123
|
+
this.text = normalizeText(value)
|
|
130
124
|
return this
|
|
131
125
|
}
|
|
132
126
|
|
|
133
127
|
start(...args) {
|
|
134
128
|
const text = args.at(0)
|
|
135
|
-
const
|
|
129
|
+
const normalized = normalizeText(text)
|
|
136
130
|
// We clear this.text on start when `text` is falsy because yocto-spinner
|
|
137
131
|
// would not clear it otherwise.
|
|
138
|
-
if (
|
|
132
|
+
if (!normalized) {
|
|
139
133
|
this.setText('')
|
|
140
134
|
}
|
|
141
135
|
return this.#apply('start', args)
|
|
@@ -974,17 +974,17 @@
|
|
|
974
974
|
}
|
|
975
975
|
],
|
|
976
976
|
[
|
|
977
|
-
"pkg:npm/%40socketregistry/is-unicode-supported@1.0.
|
|
977
|
+
"pkg:npm/%40socketregistry/is-unicode-supported@1.0.5",
|
|
978
978
|
{
|
|
979
979
|
"categories": ["cleanup"],
|
|
980
980
|
"engines": {
|
|
981
|
-
"node": ">=18
|
|
981
|
+
"node": ">=18"
|
|
982
982
|
},
|
|
983
983
|
"interop": ["cjs", "esm"],
|
|
984
984
|
"license": "MIT",
|
|
985
985
|
"name": "@socketregistry/is-unicode-supported",
|
|
986
986
|
"package": "is-unicode-supported",
|
|
987
|
-
"version": "1.0.
|
|
987
|
+
"version": "1.0.5"
|
|
988
988
|
}
|
|
989
989
|
],
|
|
990
990
|
[
|
|
@@ -1843,17 +1843,17 @@
|
|
|
1843
1843
|
}
|
|
1844
1844
|
],
|
|
1845
1845
|
[
|
|
1846
|
-
"pkg:npm/%40socketregistry/yocto-spinner@1.0.
|
|
1846
|
+
"pkg:npm/%40socketregistry/yocto-spinner@1.0.20",
|
|
1847
1847
|
{
|
|
1848
1848
|
"categories": ["cleanup"],
|
|
1849
1849
|
"engines": {
|
|
1850
|
-
"node": ">=18
|
|
1850
|
+
"node": ">=18"
|
|
1851
1851
|
},
|
|
1852
1852
|
"interop": ["cjs", "esm"],
|
|
1853
1853
|
"license": "MIT",
|
|
1854
1854
|
"name": "@socketregistry/yocto-spinner",
|
|
1855
1855
|
"package": "yocto-spinner",
|
|
1856
|
-
"version": "1.0.
|
|
1856
|
+
"version": "1.0.20"
|
|
1857
1857
|
}
|
|
1858
1858
|
],
|
|
1859
1859
|
[
|
|
@@ -1861,7 +1861,7 @@
|
|
|
1861
1861
|
{
|
|
1862
1862
|
"categories": ["tuneup"],
|
|
1863
1863
|
"engines": {
|
|
1864
|
-
"node": ">=18
|
|
1864
|
+
"node": ">=18"
|
|
1865
1865
|
},
|
|
1866
1866
|
"interop": ["cjs"],
|
|
1867
1867
|
"license": "MIT",
|
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.65",
|
|
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.2",
|
|
88
88
|
"@coana-tech/cli": "14.10.3",
|
|
89
89
|
"@cyclonedx/cdxgen": "11.4.4",
|
|
90
|
-
"@dotenvx/dotenvx": "1.48.
|
|
90
|
+
"@dotenvx/dotenvx": "1.48.1",
|
|
91
91
|
"@eslint/compat": "1.3.1",
|
|
92
92
|
"@eslint/js": "9.31.0",
|
|
93
93
|
"@npmcli/arborist": "9.1.2",
|
|
@@ -112,14 +112,14 @@
|
|
|
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.241",
|
|
116
116
|
"@socketsecurity/sdk": "1.4.57",
|
|
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.
|
|
122
|
+
"@types/node": "24.0.15",
|
|
123
123
|
"@types/npmcli__arborist": "6.3.1",
|
|
124
124
|
"@types/npmcli__config": "6.0.3",
|
|
125
125
|
"@types/proc-log": "3.0.4",
|
|
@@ -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.37.0",
|
|
130
|
-
"@typescript/native-preview": "7.0.0-dev.
|
|
130
|
+
"@typescript/native-preview": "7.0.0-dev.20250720.1",
|
|
131
131
|
"@vitest/coverage-v8": "3.2.4",
|
|
132
132
|
"blessed": "0.1.81",
|
|
133
133
|
"blessed-contrib": "4.11.0",
|
|
@@ -148,13 +148,13 @@
|
|
|
148
148
|
"husky": "9.1.7",
|
|
149
149
|
"ignore": "7.0.5",
|
|
150
150
|
"js-yaml": "npm:@zkochan/js-yaml@0.0.7",
|
|
151
|
-
"knip": "5.
|
|
151
|
+
"knip": "5.62.0",
|
|
152
152
|
"lint-staged": "16.1.2",
|
|
153
153
|
"magic-string": "0.30.17",
|
|
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.6",
|
|
158
158
|
"npm-package-arg": "12.0.2",
|
|
159
159
|
"npm-run-all2": "8.0.4",
|
|
160
160
|
"open": "10.2.0",
|