@socketsecurity/cli-with-sentry 1.0.62 → 1.0.64
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 +171 -52
- package/dist/cli.js.map +1 -1
- package/dist/constants.js +13 -10
- package/dist/constants.js.map +1 -1
- package/dist/types/commands/optimize/add-overrides.d.mts.map +1 -1
- package/dist/types/commands/optimize/deps-includes-by-agent.d.mts +4 -3
- package/dist/types/commands/optimize/deps-includes-by-agent.d.mts.map +1 -1
- package/dist/types/commands/optimize/lockfile-includes-by-agent.d.mts +7 -2
- package/dist/types/commands/optimize/lockfile-includes-by-agent.d.mts.map +1 -1
- package/dist/types/commands/optimize/ls-by-agent.d.mts +9 -3
- package/dist/types/commands/optimize/ls-by-agent.d.mts.map +1 -1
- package/dist/types/commands/optimize/update-manifest-by-agent.d.mts +6 -3
- package/dist/types/commands/optimize/update-manifest-by-agent.d.mts.map +1 -1
- package/dist/types/commands/scan/handle-create-new-scan.d.mts.map +1 -1
- package/dist/types/constants.d.mts +2 -2
- package/dist/types/constants.d.mts.map +1 -1
- package/dist/types/utils/path-resolve.d.mts +5 -1
- package/dist/types/utils/path-resolve.d.mts.map +1 -1
- package/dist/types/utils/socket-package-alert.d.mts.map +1 -1
- package/dist/utils.js +11 -25
- package/dist/utils.js.map +1 -1
- package/dist/vendor.js +7 -7
- package/external/@socketsecurity/registry/external/picomatch.js +1 -0
- package/external/@socketsecurity/registry/lib/constants/env.js +6 -2
- package/external/@socketsecurity/registry/lib/constants/ipc-promise.js +4 -2
- package/external/@socketsecurity/registry/lib/constants/maintained-node-versions.js +3 -1
- package/external/@socketsecurity/registry/lib/constants/node-harden-flags.js +3 -1
- package/external/@socketsecurity/registry/lib/constants/node-no-warnings-flags.js +3 -1
- package/external/@socketsecurity/registry/lib/constants/package-extensions.js +3 -1
- package/external/@socketsecurity/registry/lib/fs.js +3 -1
- package/external/@socketsecurity/registry/lib/logger.js +3 -2
- package/external/@socketsecurity/registry/lib/objects.js +40 -29
- package/external/@socketsecurity/registry/lib/packages.js +14 -11
- package/external/@socketsecurity/registry/lib/spawn.js +2 -2
- package/external/@socketsecurity/registry/manifest.json +10 -10
- package/package.json +7 -7
package/dist/vendor.js
CHANGED
|
@@ -35519,7 +35519,7 @@ var isInteractiveExports = /*@__PURE__*/ requireIsInteractive();
|
|
|
35519
35519
|
var dist$e = {};
|
|
35520
35520
|
|
|
35521
35521
|
var name$2 = "@socketsecurity/sdk";
|
|
35522
|
-
var version$5 = "1.4.
|
|
35522
|
+
var version$5 = "1.4.57";
|
|
35523
35523
|
var license = "MIT";
|
|
35524
35524
|
var description = "SDK for the Socket API client";
|
|
35525
35525
|
var author = {
|
|
@@ -35602,11 +35602,11 @@ var scripts = {
|
|
|
35602
35602
|
"update:deps": "npx --yes npm-check-updates"
|
|
35603
35603
|
};
|
|
35604
35604
|
var dependencies = {
|
|
35605
|
-
"@socketsecurity/registry": "1.0.
|
|
35605
|
+
"@socketsecurity/registry": "1.0.239"
|
|
35606
35606
|
};
|
|
35607
35607
|
var devDependencies = {
|
|
35608
|
-
"@biomejs/biome": "2.1.
|
|
35609
|
-
"@dotenvx/dotenvx": "1.
|
|
35608
|
+
"@biomejs/biome": "2.1.2",
|
|
35609
|
+
"@dotenvx/dotenvx": "1.48.0",
|
|
35610
35610
|
"@eslint/compat": "1.3.1",
|
|
35611
35611
|
"@eslint/js": "9.31.0",
|
|
35612
35612
|
"@types/node": "24.0.14",
|
|
@@ -35616,7 +35616,7 @@ var devDependencies = {
|
|
|
35616
35616
|
eslint: "9.31.0",
|
|
35617
35617
|
"eslint-import-resolver-typescript": "4.4.4",
|
|
35618
35618
|
"eslint-plugin-import-x": "4.16.1",
|
|
35619
|
-
"eslint-plugin-jsdoc": "51.4.
|
|
35619
|
+
"eslint-plugin-jsdoc": "51.4.1",
|
|
35620
35620
|
"eslint-plugin-n": "17.21.0",
|
|
35621
35621
|
"eslint-plugin-sort-destructure-keys": "2.0.0",
|
|
35622
35622
|
"eslint-plugin-unicorn": "56.0.1",
|
|
@@ -35628,7 +35628,7 @@ var devDependencies = {
|
|
|
35628
35628
|
nock: "14.0.5",
|
|
35629
35629
|
"npm-run-all2": "8.0.4",
|
|
35630
35630
|
"openapi-typescript": "6.7.6",
|
|
35631
|
-
oxlint: "1.
|
|
35631
|
+
oxlint: "1.7.0",
|
|
35632
35632
|
"type-coverage": "2.29.7",
|
|
35633
35633
|
typescript: "~5.8.3",
|
|
35634
35634
|
"typescript-eslint": "8.37.0",
|
|
@@ -168581,5 +168581,5 @@ exports.terminalLinkExports = terminalLinkExports;
|
|
|
168581
168581
|
exports.updater = updater$1;
|
|
168582
168582
|
exports.yargsParser = yargsParser;
|
|
168583
168583
|
exports.yoctocolorsCjsExports = yoctocolorsCjsExports;
|
|
168584
|
-
//# debugId=
|
|
168584
|
+
//# debugId=a6d120ac-674c-4f55-94f7-a4c5c64f00cb
|
|
168585
168585
|
//# sourceMappingURL=vendor.js.map
|
|
@@ -1,16 +1,20 @@
|
|
|
1
1
|
'use strict'
|
|
2
2
|
|
|
3
|
+
const { freeze: ObjectFreeze, hasOwn: ObjectHasOwn } = Object
|
|
4
|
+
|
|
3
5
|
const { envAsBoolean, envAsString } = /*@__PURE__*/ require('../env')
|
|
4
6
|
|
|
5
7
|
const { env } = process
|
|
6
8
|
|
|
7
9
|
const DEBUG = envAsString(env.DEBUG)
|
|
8
10
|
|
|
9
|
-
module.exports =
|
|
11
|
+
module.exports = ObjectFreeze({
|
|
10
12
|
__proto__: null,
|
|
11
13
|
// CI is always set to 'true' in a GitHub action.
|
|
12
14
|
// https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/store-information-in-variables#default-environment-variables
|
|
13
|
-
CI
|
|
15
|
+
// Libraries like yocto-colors check for CI not by value but my existence,
|
|
16
|
+
// e.g. `'CI' in process.env`.
|
|
17
|
+
CI: ObjectHasOwn(env, 'CI'),
|
|
14
18
|
// Flag set to enable debug logging.
|
|
15
19
|
DEBUG,
|
|
16
20
|
// Variable to set the debug log level
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
'use strict'
|
|
2
2
|
|
|
3
|
+
const { assign: ObjectAssign, freeze: ObjectFreeze } = Object
|
|
4
|
+
|
|
3
5
|
module.exports = new Promise(
|
|
4
6
|
// The Promise executor is immediately executed.
|
|
5
7
|
resolve => {
|
|
@@ -25,8 +27,8 @@ module.exports = new Promise(
|
|
|
25
27
|
...rawData
|
|
26
28
|
}
|
|
27
29
|
const target = /*@__PURE__*/ require('./ipc-target')
|
|
28
|
-
|
|
29
|
-
|
|
30
|
+
ObjectAssign(target, source)
|
|
31
|
+
ObjectFreeze(target)
|
|
30
32
|
// The handler of a Proxy is mutable after proxy instantiation.
|
|
31
33
|
// We delete the traps to defer to native behavior.
|
|
32
34
|
const handler = /*@__PURE__*/ require('./ipc-handler')
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
'use strict'
|
|
2
2
|
|
|
3
|
+
const { freeze: ObjectFreeze } = Object
|
|
4
|
+
|
|
3
5
|
// Under the hood browserlist uses the node-releases package which is out of date:
|
|
4
6
|
// https://github.com/chicoxyzzy/node-releases/issues/37
|
|
5
7
|
//
|
|
@@ -35,7 +37,7 @@ const previous = semver.maxSatisfying(
|
|
|
35
37
|
)
|
|
36
38
|
const last = semver.lt(manualLast, queryLast) ? manualLast : queryLast
|
|
37
39
|
|
|
38
|
-
module.exports =
|
|
40
|
+
module.exports = ObjectFreeze(
|
|
39
41
|
Object.assign([last, previous, current, next], {
|
|
40
42
|
last,
|
|
41
43
|
previous,
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
'use strict'
|
|
2
2
|
|
|
3
|
+
const { freeze: ObjectFreeze } = Object
|
|
4
|
+
|
|
3
5
|
const SUPPORTS_NODE_DISABLE_WARNING_FLAG = /*@__PURE__*/ require('./supports-node-disable-warning-flag')
|
|
4
6
|
|
|
5
|
-
module.exports =
|
|
7
|
+
module.exports = ObjectFreeze(
|
|
6
8
|
SUPPORTS_NODE_DISABLE_WARNING_FLAG
|
|
7
9
|
? ['--disable-warning', 'ExperimentalWarning']
|
|
8
10
|
: ['--no-warnings']
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
'use strict'
|
|
2
2
|
|
|
3
|
+
const { freeze: ObjectFreeze } = Object
|
|
4
|
+
|
|
3
5
|
const yarnPkgExtensions = /*@__PURE__*/ require('../../external/@yarnpkg/extensions')
|
|
4
6
|
|
|
5
|
-
module.exports =
|
|
7
|
+
module.exports = ObjectFreeze(
|
|
6
8
|
[
|
|
7
9
|
yarnPkgExtensions.packageExtensions,
|
|
8
10
|
[
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
'use strict'
|
|
2
2
|
|
|
3
|
+
const { freeze: ObjectFreeze } = Object
|
|
4
|
+
|
|
3
5
|
const { getGlobMatcher } = /*@__PURE__*/ require('./globs')
|
|
4
6
|
const { naturalCompare } = /*@__PURE__*/ require('./sorts')
|
|
5
7
|
const { stripBom } = /*@__PURE__*/ require('./strings')
|
|
6
8
|
|
|
7
|
-
const defaultRemoveOptions =
|
|
9
|
+
const defaultRemoveOptions = ObjectFreeze({
|
|
8
10
|
__proto__: null,
|
|
9
11
|
force: true,
|
|
10
12
|
maxRetries: 3,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
'use strict'
|
|
2
2
|
|
|
3
3
|
const globalConsole = console
|
|
4
|
+
const { assign: ObjectAssign, freeze: ObjectFreeze } = Object
|
|
4
5
|
const { apply: ReflectApply, construct: ReflectConstruct } = Reflect
|
|
5
6
|
|
|
6
7
|
const { applyLinePrefix, isBlankString } = /*@__PURE__*/ require('./strings')
|
|
@@ -33,13 +34,13 @@ const LOG_SYMBOLS = /*@__PURE__*/ (() => {
|
|
|
33
34
|
const supported =
|
|
34
35
|
/*@__PURE__*/ require('../external/@socketregistry/is-unicode-supported')()
|
|
35
36
|
const colors = getYoctocolors()
|
|
36
|
-
|
|
37
|
+
ObjectAssign(target, {
|
|
37
38
|
fail: colors.red(supported ? '✖' : '×'),
|
|
38
39
|
info: colors.blue(supported ? 'ℹ' : 'i'),
|
|
39
40
|
success: colors.green(supported ? '✔' : '√'),
|
|
40
41
|
warn: colors.yellow(supported ? '⚠' : '‼')
|
|
41
42
|
})
|
|
42
|
-
|
|
43
|
+
ObjectFreeze(target)
|
|
43
44
|
// The handler of a Proxy is mutable after proxy instantiation.
|
|
44
45
|
// We delete the traps to defer to native behavior.
|
|
45
46
|
for (const trapName in handler) {
|
|
@@ -1,6 +1,17 @@
|
|
|
1
1
|
'use strict'
|
|
2
2
|
|
|
3
|
+
const { isArray: ArrayIsArray } = Array
|
|
4
|
+
const {
|
|
5
|
+
defineProperties: ObjectDefineProperties,
|
|
6
|
+
freeze: ObjectFreeze,
|
|
7
|
+
fromEntries: ObjectFromEntries,
|
|
8
|
+
getOwnPropertyDescriptors: ObjectGetOwnPropertyDescriptors,
|
|
9
|
+
getOwnPropertyNames: ObjectGetOwnPropertyNames,
|
|
10
|
+
hasOwn: ObjectHasOwn,
|
|
11
|
+
setPrototypeOf: ObjectSetPrototypeOf
|
|
12
|
+
} = Object
|
|
3
13
|
const { __defineGetter__ } = Object.prototype
|
|
14
|
+
const { ownKeys: ReflectOwnKeys } = Reflect
|
|
4
15
|
|
|
5
16
|
/*@__NO_SIDE_EFFECTS__*/
|
|
6
17
|
function createLazyGetter(name, getter, stats) {
|
|
@@ -22,39 +33,39 @@ function createLazyGetter(name, getter, stats) {
|
|
|
22
33
|
/*@__NO_SIDE_EFFECTS__*/
|
|
23
34
|
function createConstantsObject(props, options_) {
|
|
24
35
|
const options = { __proto__: null, ...options_ }
|
|
25
|
-
const attributes =
|
|
36
|
+
const attributes = ObjectFreeze({
|
|
26
37
|
__proto__: null,
|
|
27
38
|
getters: options.getters
|
|
28
|
-
?
|
|
29
|
-
|
|
39
|
+
? ObjectFreeze(
|
|
40
|
+
ObjectSetPrototypeOf(toSortedObject(options.getters), null)
|
|
30
41
|
)
|
|
31
42
|
: undefined,
|
|
32
43
|
internals: options.internals
|
|
33
|
-
?
|
|
34
|
-
|
|
44
|
+
? ObjectFreeze(
|
|
45
|
+
ObjectSetPrototypeOf(toSortedObject(options.internals), null)
|
|
35
46
|
)
|
|
36
47
|
: undefined,
|
|
37
48
|
mixin: options.mixin
|
|
38
|
-
?
|
|
39
|
-
|
|
49
|
+
? ObjectFreeze(
|
|
50
|
+
ObjectDefineProperties(
|
|
40
51
|
{ __proto__: null },
|
|
41
|
-
|
|
52
|
+
ObjectGetOwnPropertyDescriptors(options.mixin)
|
|
42
53
|
)
|
|
43
54
|
)
|
|
44
55
|
: undefined,
|
|
45
56
|
props: props
|
|
46
|
-
?
|
|
57
|
+
? ObjectFreeze(ObjectSetPrototypeOf(toSortedObject(props), null))
|
|
47
58
|
: undefined
|
|
48
59
|
})
|
|
49
60
|
const kInternalsSymbol = /*@__PURE__*/ require('./constants/k-internals-symbol')
|
|
50
|
-
const lazyGetterStats =
|
|
61
|
+
const lazyGetterStats = ObjectFreeze({
|
|
51
62
|
__proto__: null,
|
|
52
63
|
initialized: new Set()
|
|
53
64
|
})
|
|
54
65
|
const object = defineLazyGetters(
|
|
55
66
|
{
|
|
56
67
|
__proto__: null,
|
|
57
|
-
[kInternalsSymbol]:
|
|
68
|
+
[kInternalsSymbol]: ObjectFreeze({
|
|
58
69
|
__proto__: null,
|
|
59
70
|
get attributes() {
|
|
60
71
|
return attributes
|
|
@@ -71,16 +82,16 @@ function createConstantsObject(props, options_) {
|
|
|
71
82
|
lazyGetterStats
|
|
72
83
|
)
|
|
73
84
|
if (attributes.mixin) {
|
|
74
|
-
|
|
85
|
+
ObjectDefineProperties(
|
|
75
86
|
object,
|
|
76
87
|
toSortedObjectFromEntries(
|
|
77
|
-
objectEntries(
|
|
78
|
-
|
|
79
|
-
)
|
|
88
|
+
objectEntries(ObjectGetOwnPropertyDescriptors(attributes.mixin)).filter(
|
|
89
|
+
p => !ObjectHasOwn(object, p[0])
|
|
90
|
+
)
|
|
80
91
|
)
|
|
81
92
|
)
|
|
82
93
|
}
|
|
83
|
-
return
|
|
94
|
+
return ObjectFreeze(object)
|
|
84
95
|
}
|
|
85
96
|
|
|
86
97
|
/*@__NO_SIDE_EFFECTS__*/
|
|
@@ -97,7 +108,7 @@ function defineLazyGetter(object, propKey, getter, stats) {
|
|
|
97
108
|
/*@__NO_SIDE_EFFECTS__*/
|
|
98
109
|
function defineLazyGetters(object, getterDefObj, stats) {
|
|
99
110
|
if (getterDefObj !== null && typeof getterDefObj === 'object') {
|
|
100
|
-
const keys =
|
|
111
|
+
const keys = ReflectOwnKeys(getterDefObj)
|
|
101
112
|
for (let i = 0, { length } = keys; i < length; i += 1) {
|
|
102
113
|
const key = keys[i]
|
|
103
114
|
defineLazyGetter(
|
|
@@ -115,7 +126,7 @@ function getOwnPropertyValues(obj) {
|
|
|
115
126
|
if (obj === null || obj === undefined) {
|
|
116
127
|
return []
|
|
117
128
|
}
|
|
118
|
-
const keys =
|
|
129
|
+
const keys = ObjectGetOwnPropertyNames(obj)
|
|
119
130
|
const { length } = keys
|
|
120
131
|
const values = Array(length)
|
|
121
132
|
for (let i = 0; i < length; i += 1) {
|
|
@@ -130,7 +141,7 @@ function hasKeys(obj) {
|
|
|
130
141
|
return false
|
|
131
142
|
}
|
|
132
143
|
for (const key in obj) {
|
|
133
|
-
if (
|
|
144
|
+
if (ObjectHasOwn(obj, key)) {
|
|
134
145
|
return true
|
|
135
146
|
}
|
|
136
147
|
}
|
|
@@ -142,7 +153,7 @@ function hasOwn(obj, propKey) {
|
|
|
142
153
|
if (obj === null || obj === undefined) {
|
|
143
154
|
return false
|
|
144
155
|
}
|
|
145
|
-
return
|
|
156
|
+
return ObjectHasOwn(obj, propKey)
|
|
146
157
|
}
|
|
147
158
|
|
|
148
159
|
/*@__NO_SIDE_EFFECTS__*/
|
|
@@ -152,7 +163,7 @@ function isObject(value) {
|
|
|
152
163
|
|
|
153
164
|
/*@__NO_SIDE_EFFECTS__*/
|
|
154
165
|
function isObjectObject(value) {
|
|
155
|
-
return value !== null && typeof value === 'object' && !
|
|
166
|
+
return value !== null && typeof value === 'object' && !ArrayIsArray(value)
|
|
156
167
|
}
|
|
157
168
|
|
|
158
169
|
/*@__NO_SIDE_EFFECTS__*/
|
|
@@ -160,7 +171,7 @@ function objectEntries(obj) {
|
|
|
160
171
|
if (obj === null || obj === undefined) {
|
|
161
172
|
return []
|
|
162
173
|
}
|
|
163
|
-
const keys =
|
|
174
|
+
const keys = ReflectOwnKeys(obj)
|
|
164
175
|
const { length } = keys
|
|
165
176
|
const entries = Array(length)
|
|
166
177
|
for (let i = 0; i < length; i += 1) {
|
|
@@ -184,8 +195,8 @@ function merge(target, source) {
|
|
|
184
195
|
throw new Error('Detected infinite loop in object crawl of merge')
|
|
185
196
|
}
|
|
186
197
|
const { 0: currentTarget, 1: currentSource } = queue[pos++]
|
|
187
|
-
const isSourceArray =
|
|
188
|
-
if (
|
|
198
|
+
const isSourceArray = ArrayIsArray(currentSource)
|
|
199
|
+
if (ArrayIsArray(currentTarget)) {
|
|
189
200
|
if (isSourceArray) {
|
|
190
201
|
const seen = new Set(currentTarget)
|
|
191
202
|
for (let i = 0, { length } = currentSource; i < length; i += 1) {
|
|
@@ -201,13 +212,13 @@ function merge(target, source) {
|
|
|
201
212
|
if (isSourceArray) {
|
|
202
213
|
continue
|
|
203
214
|
}
|
|
204
|
-
const keys =
|
|
215
|
+
const keys = ReflectOwnKeys(currentSource)
|
|
205
216
|
for (let i = 0, { length } = keys; i < length; i += 1) {
|
|
206
217
|
const key = keys[i]
|
|
207
218
|
const srcVal = currentSource[key]
|
|
208
219
|
const targetVal = currentTarget[key]
|
|
209
|
-
if (
|
|
210
|
-
if (
|
|
220
|
+
if (ArrayIsArray(srcVal)) {
|
|
221
|
+
if (ArrayIsArray(targetVal)) {
|
|
211
222
|
const seen = new Set(targetVal)
|
|
212
223
|
for (let i = 0, { length } = srcVal; i < length; i += 1) {
|
|
213
224
|
const item = srcVal[i]
|
|
@@ -220,7 +231,7 @@ function merge(target, source) {
|
|
|
220
231
|
currentTarget[key] = srcVal
|
|
221
232
|
}
|
|
222
233
|
} else if (isObject(srcVal)) {
|
|
223
|
-
if (isObject(targetVal) && !
|
|
234
|
+
if (isObject(targetVal) && !ArrayIsArray(targetVal)) {
|
|
224
235
|
queue[queueLength++] = [targetVal, srcVal]
|
|
225
236
|
} else {
|
|
226
237
|
currentTarget[key] = srcVal
|
|
@@ -255,7 +266,7 @@ function toSortedObjectFromEntries(entries) {
|
|
|
255
266
|
}
|
|
256
267
|
}
|
|
257
268
|
const { localeCompare } = /*@__PURE__*/ require('./sorts')
|
|
258
|
-
return
|
|
269
|
+
return ObjectFromEntries([
|
|
259
270
|
// The String constructor is safe to use with symbols.
|
|
260
271
|
...symbolEntries.sort((a, b) => localeCompare(String(a[0]), String(b[0]))),
|
|
261
272
|
...stringEntries.sort((a, b) => localeCompare(a[0], b[0]))
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
'use strict'
|
|
2
2
|
|
|
3
|
+
const { isArray: ArrayIsArray } = Array
|
|
4
|
+
const { hasOwn: ObjectHasOwn } = Object
|
|
5
|
+
|
|
3
6
|
const abortSignal = /*@__PURE__*/ require('./constants/abort-signal')
|
|
4
7
|
const copyLeftLicenses = /*@__PURE__*/ require('./constants/copy-left-licenses')
|
|
5
8
|
const LOOP_SENTINEL = /*@__PURE__*/ require('./constants/loop-sentinel')
|
|
@@ -487,7 +490,7 @@ function collectLicenseWarnings(licenseNodes) {
|
|
|
487
490
|
|
|
488
491
|
/*@__NO_SIDE_EFFECTS__*/
|
|
489
492
|
function createAstNode(rawNode) {
|
|
490
|
-
return
|
|
493
|
+
return ObjectHasOwn(rawNode, 'license')
|
|
491
494
|
? createLicenseNode(rawNode)
|
|
492
495
|
: createBinaryOperationNode(rawNode)
|
|
493
496
|
}
|
|
@@ -591,7 +594,7 @@ function createPackageJson(sockRegPkgName, directory, options) {
|
|
|
591
594
|
)
|
|
592
595
|
}
|
|
593
596
|
: { engines: { node: PACKAGE_DEFAULT_NODE_RANGE } }),
|
|
594
|
-
files:
|
|
597
|
+
files: ArrayIsArray(files) ? files.slice() : ['*.d.ts', '*.js'],
|
|
595
598
|
...(isObjectObject(socket)
|
|
596
599
|
? { socket: { ...socket } }
|
|
597
600
|
: {
|
|
@@ -723,7 +726,7 @@ function findTypesForSubpath(entryExports, subpath) {
|
|
|
723
726
|
)
|
|
724
727
|
}
|
|
725
728
|
const value = queue[pos++]
|
|
726
|
-
if (
|
|
729
|
+
if (ArrayIsArray(value)) {
|
|
727
730
|
for (let i = 0, { length } = value; i < length; i += 1) {
|
|
728
731
|
const item = value[i]
|
|
729
732
|
if (item === subpath) {
|
|
@@ -778,7 +781,7 @@ function getSubpaths(entryExports) {
|
|
|
778
781
|
const value = queue[pos++]
|
|
779
782
|
if (typeof value === 'string') {
|
|
780
783
|
result.push(value)
|
|
781
|
-
} else if (
|
|
784
|
+
} else if (ArrayIsArray(value)) {
|
|
782
785
|
queue.push(...value)
|
|
783
786
|
} else if (isObject(value)) {
|
|
784
787
|
queue.push(...getOwnPropertyValues(value))
|
|
@@ -908,14 +911,14 @@ function normalizePackageJson(pkgJson, options) {
|
|
|
908
911
|
const preserved = [
|
|
909
912
|
['_id', undefined],
|
|
910
913
|
['readme', undefined],
|
|
911
|
-
...(
|
|
912
|
-
...(
|
|
913
|
-
...(
|
|
914
|
-
...(
|
|
915
|
-
...(
|
|
914
|
+
...(ObjectHasOwn(pkgJson, 'bugs') ? [] : [['bugs', undefined]]),
|
|
915
|
+
...(ObjectHasOwn(pkgJson, 'homepage') ? [] : [['homepage', undefined]]),
|
|
916
|
+
...(ObjectHasOwn(pkgJson, 'name') ? [] : [['name', undefined]]),
|
|
917
|
+
...(ObjectHasOwn(pkgJson, 'version') ? [] : [['version', undefined]]),
|
|
918
|
+
...(ArrayIsArray(preserve)
|
|
916
919
|
? preserve.map(k => [
|
|
917
920
|
k,
|
|
918
|
-
|
|
921
|
+
ObjectHasOwn(pkgJson, k) ? pkgJson[k] : undefined
|
|
919
922
|
])
|
|
920
923
|
: [])
|
|
921
924
|
]
|
|
@@ -1074,7 +1077,7 @@ function resolvePackageJsonDirname(filepath) {
|
|
|
1074
1077
|
function resolvePackageJsonEntryExports(entryExports) {
|
|
1075
1078
|
// If conditional exports main sugar
|
|
1076
1079
|
// https://nodejs.org/api/packages.html#exports-sugar
|
|
1077
|
-
if (typeof entryExports === 'string' ||
|
|
1080
|
+
if (typeof entryExports === 'string' || ArrayIsArray(entryExports)) {
|
|
1078
1081
|
return { '.': entryExports }
|
|
1079
1082
|
}
|
|
1080
1083
|
if (isConditionalExports(entryExports)) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict'
|
|
2
2
|
|
|
3
|
-
const { stripAnsi } = /*@__PURE__*/ require('./strings')
|
|
4
|
-
|
|
5
3
|
const { isArray: ArrayIsArray } = Array
|
|
6
4
|
const { hasOwn: ObjectHasOwn, keys: ObjectKeys } = Object
|
|
7
5
|
|
|
6
|
+
const { stripAnsi } = /*@__PURE__*/ require('./strings')
|
|
7
|
+
|
|
8
8
|
let _child_process
|
|
9
9
|
/*@__NO_SIDE_EFFECTS__*/
|
|
10
10
|
function getChildProcess() {
|
|
@@ -749,7 +749,7 @@
|
|
|
749
749
|
}
|
|
750
750
|
],
|
|
751
751
|
[
|
|
752
|
-
"pkg:npm/%40socketregistry/is-bigint@1.0.
|
|
752
|
+
"pkg:npm/%40socketregistry/is-bigint@1.0.9",
|
|
753
753
|
{
|
|
754
754
|
"categories": ["cleanup"],
|
|
755
755
|
"engines": {
|
|
@@ -759,11 +759,11 @@
|
|
|
759
759
|
"license": "MIT",
|
|
760
760
|
"name": "@socketregistry/is-bigint",
|
|
761
761
|
"package": "is-bigint",
|
|
762
|
-
"version": "1.0.
|
|
762
|
+
"version": "1.0.9"
|
|
763
763
|
}
|
|
764
764
|
],
|
|
765
765
|
[
|
|
766
|
-
"pkg:npm/%40socketregistry/is-boolean-object@1.0.
|
|
766
|
+
"pkg:npm/%40socketregistry/is-boolean-object@1.0.9",
|
|
767
767
|
{
|
|
768
768
|
"categories": ["cleanup"],
|
|
769
769
|
"engines": {
|
|
@@ -773,7 +773,7 @@
|
|
|
773
773
|
"license": "MIT",
|
|
774
774
|
"name": "@socketregistry/is-boolean-object",
|
|
775
775
|
"package": "is-boolean-object",
|
|
776
|
-
"version": "1.0.
|
|
776
|
+
"version": "1.0.9"
|
|
777
777
|
}
|
|
778
778
|
],
|
|
779
779
|
[
|
|
@@ -932,7 +932,7 @@
|
|
|
932
932
|
}
|
|
933
933
|
],
|
|
934
934
|
[
|
|
935
|
-
"pkg:npm/%40socketregistry/is-string@1.0.
|
|
935
|
+
"pkg:npm/%40socketregistry/is-string@1.0.9",
|
|
936
936
|
{
|
|
937
937
|
"categories": ["cleanup"],
|
|
938
938
|
"engines": {
|
|
@@ -942,11 +942,11 @@
|
|
|
942
942
|
"license": "MIT",
|
|
943
943
|
"name": "@socketregistry/is-string",
|
|
944
944
|
"package": "is-string",
|
|
945
|
-
"version": "1.0.
|
|
945
|
+
"version": "1.0.9"
|
|
946
946
|
}
|
|
947
947
|
],
|
|
948
948
|
[
|
|
949
|
-
"pkg:npm/%40socketregistry/is-symbol@1.0.
|
|
949
|
+
"pkg:npm/%40socketregistry/is-symbol@1.0.9",
|
|
950
950
|
{
|
|
951
951
|
"categories": ["cleanup"],
|
|
952
952
|
"engines": {
|
|
@@ -956,11 +956,11 @@
|
|
|
956
956
|
"license": "MIT",
|
|
957
957
|
"name": "@socketregistry/is-symbol",
|
|
958
958
|
"package": "is-symbol",
|
|
959
|
-
"version": "1.0.
|
|
959
|
+
"version": "1.0.9"
|
|
960
960
|
}
|
|
961
961
|
],
|
|
962
962
|
[
|
|
963
|
-
"pkg:npm/%40socketregistry/is-typed-array@1.0.
|
|
963
|
+
"pkg:npm/%40socketregistry/is-typed-array@1.0.10",
|
|
964
964
|
{
|
|
965
965
|
"categories": ["cleanup"],
|
|
966
966
|
"engines": {
|
|
@@ -970,7 +970,7 @@
|
|
|
970
970
|
"license": "MIT",
|
|
971
971
|
"name": "@socketregistry/is-typed-array",
|
|
972
972
|
"package": "is-typed-array",
|
|
973
|
-
"version": "1.0.
|
|
973
|
+
"version": "1.0.10"
|
|
974
974
|
}
|
|
975
975
|
],
|
|
976
976
|
[
|
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.64",
|
|
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",
|
|
@@ -84,10 +84,10 @@
|
|
|
84
84
|
"@babel/plugin-transform-runtime": "7.28.0",
|
|
85
85
|
"@babel/preset-typescript": "7.27.1",
|
|
86
86
|
"@babel/runtime": "7.27.6",
|
|
87
|
-
"@biomejs/biome": "2.1.
|
|
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.
|
|
90
|
+
"@dotenvx/dotenvx": "1.48.0",
|
|
91
91
|
"@eslint/compat": "1.3.1",
|
|
92
92
|
"@eslint/js": "9.31.0",
|
|
93
93
|
"@npmcli/arborist": "9.1.2",
|
|
@@ -112,8 +112,8 @@
|
|
|
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.
|
|
116
|
-
"@socketsecurity/sdk": "1.4.
|
|
115
|
+
"@socketsecurity/registry": "1.0.239",
|
|
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",
|
|
@@ -158,7 +158,7 @@
|
|
|
158
158
|
"npm-package-arg": "12.0.2",
|
|
159
159
|
"npm-run-all2": "8.0.4",
|
|
160
160
|
"open": "10.2.0",
|
|
161
|
-
"oxlint": "1.
|
|
161
|
+
"oxlint": "1.7.0",
|
|
162
162
|
"pony-cause": "2.1.11",
|
|
163
163
|
"registry-auth-token": "5.1.0",
|
|
164
164
|
"registry-url": "7.2.0",
|
|
@@ -239,6 +239,6 @@
|
|
|
239
239
|
"strict": true
|
|
240
240
|
},
|
|
241
241
|
"dependencies": {
|
|
242
|
-
"@sentry/node": "9.
|
|
242
|
+
"@sentry/node": "9.40.0"
|
|
243
243
|
}
|
|
244
244
|
}
|