@socketsecurity/cli-with-sentry 0.15.6 → 0.15.8
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/.config/tsconfig.dts.tsbuildinfo +1 -1
- package/dist/cli.js +56 -49
- package/dist/cli.js.map +1 -1
- package/dist/constants.js +3 -3
- package/dist/constants.js.map +1 -1
- package/dist/shadow-inject.js +38 -14
- package/dist/shadow-inject.js.map +1 -1
- package/dist/types/commands/fix/npm-fix.d.mts.map +1 -1
- package/dist/types/commands/fix/pnpm-fix.d.mts.map +1 -1
- package/dist/types/shadow/npm/arborist/lib/node.d.mts +7 -2
- package/dist/types/shadow/npm/arborist/lib/node.d.mts.map +1 -1
- package/dist/types/shadow/npm/arborist-helpers.d.mts.map +1 -1
- package/dist/types/utils/pnpm.d.mts +1 -15
- package/dist/types/utils/pnpm.d.mts.map +1 -1
- package/dist/types/utils/spec.d.mts +2 -1
- package/dist/types/utils/spec.d.mts.map +1 -1
- package/dist/utils.js +33 -84
- package/dist/utils.js.map +1 -1
- package/dist/vendor.js +4036 -23919
- package/dist/vendor.js.map +1 -1
- package/external/@socketsecurity/registry/lib/logger.js +44 -30
- package/external/@socketsecurity/registry/package.json +3 -3
- package/package.json +6 -4
|
@@ -62,6 +62,10 @@ const boundConsoleMethods = new Map(
|
|
|
62
62
|
])
|
|
63
63
|
)
|
|
64
64
|
|
|
65
|
+
const consoleSymbols = Object.getOwnPropertySymbols(console).filter(
|
|
66
|
+
s => s !== Symbol.toStringTag
|
|
67
|
+
)
|
|
68
|
+
|
|
65
69
|
const privateConsole = new WeakMap()
|
|
66
70
|
|
|
67
71
|
const symbolTypeToMethodName = {
|
|
@@ -92,6 +96,20 @@ class Logger {
|
|
|
92
96
|
}
|
|
93
97
|
privateConsole.set(this, newConsole)
|
|
94
98
|
}
|
|
99
|
+
Object.defineProperties(
|
|
100
|
+
this,
|
|
101
|
+
Object.fromEntries(
|
|
102
|
+
consoleSymbols.map(key => [
|
|
103
|
+
key,
|
|
104
|
+
{
|
|
105
|
+
__proto__: null,
|
|
106
|
+
configurable: true,
|
|
107
|
+
value: console[key],
|
|
108
|
+
writable: true
|
|
109
|
+
}
|
|
110
|
+
])
|
|
111
|
+
)
|
|
112
|
+
)
|
|
95
113
|
}
|
|
96
114
|
|
|
97
115
|
#apply(methodName, args) {
|
|
@@ -174,37 +192,33 @@ for (const { 0: key, 1: value } of Object.entries(console)) {
|
|
|
174
192
|
mixinKeys.push(key)
|
|
175
193
|
}
|
|
176
194
|
}
|
|
177
|
-
|
|
178
|
-
|
|
195
|
+
|
|
196
|
+
Object.defineProperties(
|
|
197
|
+
Logger.prototype,
|
|
198
|
+
Object.fromEntries([
|
|
199
|
+
...mixinKeys.map(key => [
|
|
200
|
+
key,
|
|
201
|
+
{
|
|
202
|
+
__proto__: null,
|
|
203
|
+
configurable: true,
|
|
204
|
+
value: function (...args) {
|
|
205
|
+
const console = privateConsole.get(this)
|
|
206
|
+
const result = console[key](...args)
|
|
207
|
+
return result === undefined || result === console ? this : result
|
|
208
|
+
},
|
|
209
|
+
writable: true
|
|
210
|
+
}
|
|
211
|
+
]),
|
|
212
|
+
[
|
|
213
|
+
Symbol.toStringTag,
|
|
214
|
+
{
|
|
215
|
+
__proto__: null,
|
|
216
|
+
configurable: true,
|
|
217
|
+
value: 'logger'
|
|
218
|
+
}
|
|
219
|
+
]
|
|
220
|
+
])
|
|
179
221
|
)
|
|
180
|
-
if (mixinKeys.length) {
|
|
181
|
-
Object.defineProperties(
|
|
182
|
-
Logger.prototype,
|
|
183
|
-
Object.fromEntries([
|
|
184
|
-
...mixinKeys.map(key => [
|
|
185
|
-
key,
|
|
186
|
-
{
|
|
187
|
-
__proto__: null,
|
|
188
|
-
configurable: true,
|
|
189
|
-
value: function (...args) {
|
|
190
|
-
const console = privateConsole.get(this)
|
|
191
|
-
const result = console[key](...args)
|
|
192
|
-
return result === undefined ? this : result
|
|
193
|
-
},
|
|
194
|
-
writable: true
|
|
195
|
-
}
|
|
196
|
-
]),
|
|
197
|
-
[
|
|
198
|
-
Symbol.toStringTag,
|
|
199
|
-
{
|
|
200
|
-
__proto__: null,
|
|
201
|
-
configurable: true,
|
|
202
|
-
value: 'logger'
|
|
203
|
-
}
|
|
204
|
-
]
|
|
205
|
-
])
|
|
206
|
-
)
|
|
207
|
-
}
|
|
208
222
|
|
|
209
223
|
const logger = new Logger()
|
|
210
224
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@socketsecurity/registry",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.182",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Socket.dev registry helpers methods and metadata",
|
|
6
6
|
"keywords": [
|
|
@@ -635,13 +635,13 @@
|
|
|
635
635
|
"cacache": "19.0.1",
|
|
636
636
|
"del-cli": "6.0.0",
|
|
637
637
|
"dev-null-cli": "2.0.0",
|
|
638
|
-
"eslint": "9.
|
|
638
|
+
"eslint": "9.27.0",
|
|
639
639
|
"fast-sort": "3.4.1",
|
|
640
640
|
"libnpmpack": "9.0.3",
|
|
641
641
|
"make-fetch-happen": "14.0.3",
|
|
642
642
|
"normalize-package-data": "6.0.1",
|
|
643
643
|
"npm-package-arg": "12.0.2",
|
|
644
|
-
"npm-run-all2": "8.0.
|
|
644
|
+
"npm-run-all2": "8.0.2",
|
|
645
645
|
"oxlint": "0.16.11",
|
|
646
646
|
"pacote": "21.0.0",
|
|
647
647
|
"picomatch": "4.0.2",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@socketsecurity/cli-with-sentry",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.8",
|
|
4
4
|
"description": "CLI tool 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",
|
|
@@ -108,10 +108,11 @@
|
|
|
108
108
|
"@socketregistry/is-interactive": "1.0.5",
|
|
109
109
|
"@socketregistry/packageurl-js": "1.0.6",
|
|
110
110
|
"@socketsecurity/config": "2.1.3",
|
|
111
|
-
"@socketsecurity/registry": "1.0.
|
|
111
|
+
"@socketsecurity/registry": "1.0.182",
|
|
112
112
|
"@socketsecurity/sdk": "1.4.35",
|
|
113
113
|
"@types/blessed": "0.1.25",
|
|
114
114
|
"@types/cmd-shim": "5.0.2",
|
|
115
|
+
"@types/js-yaml": "4.0.9",
|
|
115
116
|
"@types/micromatch": "4.0.9",
|
|
116
117
|
"@types/mock-fs": "4.13.4",
|
|
117
118
|
"@types/node": "22.15.18",
|
|
@@ -132,7 +133,7 @@
|
|
|
132
133
|
"dev-null-cli": "2.0.0",
|
|
133
134
|
"eslint": "9.27.0",
|
|
134
135
|
"eslint-import-resolver-typescript": "4.3.4",
|
|
135
|
-
"eslint-plugin-import-x": "4.
|
|
136
|
+
"eslint-plugin-import-x": "4.12.1",
|
|
136
137
|
"eslint-plugin-n": "17.18.0",
|
|
137
138
|
"eslint-plugin-sort-destructure-keys": "2.0.0",
|
|
138
139
|
"eslint-plugin-unicorn": "56.0.1",
|
|
@@ -140,6 +141,7 @@
|
|
|
140
141
|
"hpagent": "1.2.0",
|
|
141
142
|
"husky": "9.1.7",
|
|
142
143
|
"ignore": "7.0.4",
|
|
144
|
+
"js-yaml": "npm:@zkochan/js-yaml@0.0.7",
|
|
143
145
|
"knip": "5.56.0",
|
|
144
146
|
"lint-staged": "16.0.0",
|
|
145
147
|
"magic-string": "0.30.17",
|
|
@@ -152,7 +154,7 @@
|
|
|
152
154
|
"open": "10.1.2",
|
|
153
155
|
"oxlint": "0.16.11",
|
|
154
156
|
"pony-cause": "2.1.11",
|
|
155
|
-
"rollup": "4.
|
|
157
|
+
"rollup": "4.41.0",
|
|
156
158
|
"semver": "7.7.2",
|
|
157
159
|
"synp": "1.9.14",
|
|
158
160
|
"terminal-link": "2.1.1",
|