socket 0.14.27 → 0.14.28
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 +2 -2
- package/dist/npm-injection.js +201 -1
- package/dist/vendor.js +120 -12
- package/package.json +24 -27
package/dist/cli.js
CHANGED
|
@@ -78,7 +78,7 @@ const {
|
|
|
78
78
|
} = process.env;
|
|
79
79
|
const toLower = arg => arg.toLowerCase();
|
|
80
80
|
const arrayToLower = arg => arg.map(toLower);
|
|
81
|
-
const nodejsPlatformTypes = ['javascript', 'js', 'nodejs', 'npm', 'pnpm', 'ts', 'tsx', 'typescript'];
|
|
81
|
+
const nodejsPlatformTypes = new Set(['javascript', 'js', 'nodejs', 'npm', 'pnpm', 'ts', 'tsx', 'typescript']);
|
|
82
82
|
const yargsConfig = {
|
|
83
83
|
configuration: {
|
|
84
84
|
'camel-case-expansion': false,
|
|
@@ -187,7 +187,7 @@ cdxgen.cdxgen = {
|
|
|
187
187
|
return;
|
|
188
188
|
}
|
|
189
189
|
let cleanupPackageLock = false;
|
|
190
|
-
if (yargv.type !== 'yarn' && nodejsPlatformTypes.
|
|
190
|
+
if (yargv.type !== 'yarn' && nodejsPlatformTypes.has(yargv.type) && (0, _nodeFs$3.existsSync)('./yarn.lock')) {
|
|
191
191
|
if ((0, _nodeFs$3.existsSync)('./package-lock.json')) {
|
|
192
192
|
yargv.type = 'npm';
|
|
193
193
|
} else {
|
package/dist/npm-injection.js
CHANGED
|
@@ -15,7 +15,6 @@ var require$$6$1 = require('@socketsecurity/config');
|
|
|
15
15
|
var require$$7 = require('@socketsecurity/registry/lib/objects');
|
|
16
16
|
var require$$1$2 = require('node:net');
|
|
17
17
|
var require$$1 = require('node:os');
|
|
18
|
-
var require$$6 = require('../package.json');
|
|
19
18
|
var sdk = require('./sdk.js');
|
|
20
19
|
var pathResolve = require('./path-resolve.js');
|
|
21
20
|
var link = require('./link.js');
|
|
@@ -28,6 +27,207 @@ var arborist = {};
|
|
|
28
27
|
|
|
29
28
|
var ttyServer$1 = {};
|
|
30
29
|
|
|
30
|
+
var name = "socket";
|
|
31
|
+
var version = "0.14.28";
|
|
32
|
+
var description = "CLI tool for Socket.dev";
|
|
33
|
+
var homepage = "http://github.com/SocketDev/socket-cli";
|
|
34
|
+
var license = "MIT";
|
|
35
|
+
var repository = {
|
|
36
|
+
type: "git",
|
|
37
|
+
url: "git+https://github.com/SocketDev/socket-cli.git"
|
|
38
|
+
};
|
|
39
|
+
var author = {
|
|
40
|
+
name: "Socket Inc",
|
|
41
|
+
email: "eng@socket.dev",
|
|
42
|
+
url: "https://socket.dev"
|
|
43
|
+
};
|
|
44
|
+
var bin = {
|
|
45
|
+
socket: "dist/cli.js",
|
|
46
|
+
"socket-npm": "dist/npm-cli.js",
|
|
47
|
+
"socket-npx": "dist/npx-cli.js"
|
|
48
|
+
};
|
|
49
|
+
var scripts = {
|
|
50
|
+
build: "run-s build:*",
|
|
51
|
+
"build:dist": "rollup -c .config/rollup.dist.config.mjs",
|
|
52
|
+
"build:test": "rollup -c .config/rollup.test.config.mjs",
|
|
53
|
+
check: "run-p -c --aggregate-output check:*",
|
|
54
|
+
"check:lint": "eslint --report-unused-disable-directives .",
|
|
55
|
+
"check:tsc": "tsc",
|
|
56
|
+
"check:type-coverage": "type-coverage --detail --strict --at-least 95 --ignore-files 'test/*'",
|
|
57
|
+
"knip:dependencies": "knip --dependencies",
|
|
58
|
+
"knip:exports": "knip --include exports,duplicates",
|
|
59
|
+
lint: "oxlint -c=./.oxlintrc.json --ignore-path=./.prettierignore --tsconfig=./tsconfig.json .",
|
|
60
|
+
"lint:fix": "npm run lint -- --fix && npm run lint:fix:fast",
|
|
61
|
+
"lint:fix:fast": "prettier --cache --log-level warn --write .",
|
|
62
|
+
prepare: "husky",
|
|
63
|
+
test: "run-s check build:* test:*",
|
|
64
|
+
"test:c8": "c8 --reporter=none node --test 'test/socket-npm.test.cjs'",
|
|
65
|
+
"test-ci": "run-s build:* test:*",
|
|
66
|
+
"test:unit": "tap",
|
|
67
|
+
"test:coverage": "cp -r .tap/coverage/*.json coverage/tmp && c8 --reporter=lcov --reporter=text --include 'dist/*.js' --exclude 'dist/vendor.js' report"
|
|
68
|
+
};
|
|
69
|
+
var dependencies = {
|
|
70
|
+
"@apideck/better-ajv-errors": "^0.3.6",
|
|
71
|
+
"@cyclonedx/cdxgen": "^11.0.3",
|
|
72
|
+
"@inquirer/prompts": "^7.1.0",
|
|
73
|
+
"@npmcli/promise-spawn": "^8.0.2",
|
|
74
|
+
"@socketregistry/hyrious__bun.lockb": "1.0.5",
|
|
75
|
+
"@socketregistry/yocto-spinner": "^1.0.1",
|
|
76
|
+
"@socketsecurity/config": "^2.1.3",
|
|
77
|
+
"@socketsecurity/registry": "^1.0.32",
|
|
78
|
+
"@socketsecurity/sdk": "^1.3.0",
|
|
79
|
+
blessed: "^0.1.81",
|
|
80
|
+
"blessed-contrib": "^4.11.0",
|
|
81
|
+
browserslist: "4.24.2",
|
|
82
|
+
"chalk-table": "^1.0.2",
|
|
83
|
+
"has-flag": "^4.0.0",
|
|
84
|
+
hpagent: "^1.2.0",
|
|
85
|
+
ignore: "^6.0.2",
|
|
86
|
+
micromatch: "^4.0.8",
|
|
87
|
+
"npm-package-arg": "^12.0.0",
|
|
88
|
+
"pony-cause": "^2.1.11",
|
|
89
|
+
semver: "^7.6.3",
|
|
90
|
+
synp: "^1.9.14",
|
|
91
|
+
tinyglobby: "^0.2.10",
|
|
92
|
+
which: "^5.0.0",
|
|
93
|
+
yaml: "^2.6.1",
|
|
94
|
+
"yargs-parser": "^21.1.1",
|
|
95
|
+
"yoctocolors-cjs": "^2.1.2"
|
|
96
|
+
};
|
|
97
|
+
var devDependencies = {
|
|
98
|
+
"@babel/core": "^7.26.0",
|
|
99
|
+
"@babel/plugin-proposal-export-default-from": "^7.25.9",
|
|
100
|
+
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
|
101
|
+
"@babel/plugin-transform-export-namespace-from": "^7.25.9",
|
|
102
|
+
"@babel/plugin-transform-modules-commonjs": "^7.25.9",
|
|
103
|
+
"@babel/plugin-transform-runtime": "^7.25.9",
|
|
104
|
+
"@babel/preset-env": "^7.26.0",
|
|
105
|
+
"@babel/preset-typescript": "^7.26.0",
|
|
106
|
+
"@babel/runtime": "^7.26.0",
|
|
107
|
+
"@eslint/compat": "^1.2.3",
|
|
108
|
+
"@eslint/js": "^9.16.0",
|
|
109
|
+
"@rollup/plugin-commonjs": "^28.0.1",
|
|
110
|
+
"@rollup/plugin-json": "^6.1.0",
|
|
111
|
+
"@rollup/plugin-node-resolve": "^15.3.0",
|
|
112
|
+
"@rollup/plugin-replace": "^6.0.1",
|
|
113
|
+
"@rollup/pluginutils": "^5.1.3",
|
|
114
|
+
"@types/blessed": "^0.1.25",
|
|
115
|
+
"@types/micromatch": "^4.0.9",
|
|
116
|
+
"@types/mocha": "^10.0.10",
|
|
117
|
+
"@types/mock-fs": "^4.13.4",
|
|
118
|
+
"@types/node": "^22.10.1",
|
|
119
|
+
"@types/npmcli__arborist": "^5.6.11",
|
|
120
|
+
"@types/npmcli__promise-spawn": "^6.0.3",
|
|
121
|
+
"@types/proc-log": "^3.0.4",
|
|
122
|
+
"@types/semver": "^7.5.8",
|
|
123
|
+
"@types/update-notifier": "^6.0.8",
|
|
124
|
+
"@types/which": "^3.0.4",
|
|
125
|
+
"@types/yargs-parser": "^21.0.3",
|
|
126
|
+
"@typescript-eslint/eslint-plugin": "^8.17.0",
|
|
127
|
+
"@typescript-eslint/parser": "^8.17.0",
|
|
128
|
+
c8: "^10.1.2",
|
|
129
|
+
eslint: "^9.16.0",
|
|
130
|
+
"eslint-import-resolver-oxc": "^0.5.0",
|
|
131
|
+
"eslint-plugin-depend": "^0.12.0",
|
|
132
|
+
"eslint-plugin-import-x": "^4.4.3",
|
|
133
|
+
"eslint-plugin-n": "^17.14.0",
|
|
134
|
+
"eslint-plugin-sort-destructure-keys": "^2.0.0",
|
|
135
|
+
"eslint-plugin-unicorn": "^56.0.1",
|
|
136
|
+
husky: "^9.1.7",
|
|
137
|
+
"is-interactive": "^2.0.0",
|
|
138
|
+
"is-unicode-supported": "^2.1.0",
|
|
139
|
+
knip: "^5.39.0",
|
|
140
|
+
"magic-string": "^0.30.14",
|
|
141
|
+
meow: "^13.2.0",
|
|
142
|
+
"mock-fs": "^5.4.1",
|
|
143
|
+
nock: "^13.5.6",
|
|
144
|
+
"npm-run-all2": "^7.0.1",
|
|
145
|
+
open: "^10.1.0",
|
|
146
|
+
oxlint: "0.14.0",
|
|
147
|
+
prettier: "3.4.1",
|
|
148
|
+
"read-package-up": "^11.0.0",
|
|
149
|
+
rollup: "4.28.0",
|
|
150
|
+
"rollup-plugin-ts": "^3.4.5",
|
|
151
|
+
tap: "^21.0.1",
|
|
152
|
+
"terminal-link": "^3.0.0",
|
|
153
|
+
"tiny-updater": "^3.5.2",
|
|
154
|
+
"type-coverage": "^2.29.7",
|
|
155
|
+
typescript: "5.4.5",
|
|
156
|
+
"typescript-eslint": "^8.17.0",
|
|
157
|
+
"unplugin-purge-polyfills": "^0.0.7"
|
|
158
|
+
};
|
|
159
|
+
var overrides = {
|
|
160
|
+
"aggregate-error": "npm:@socketregistry/aggregate-error@^1",
|
|
161
|
+
"es-define-property": "npm:@socketregistry/es-define-property@^1",
|
|
162
|
+
"function-bind": "npm:@socketregistry/function-bind@^1",
|
|
163
|
+
globalthis: "npm:@socketregistry/globalthis@^1",
|
|
164
|
+
gopd: "npm:@socketregistry/gopd@^1",
|
|
165
|
+
"has-property-descriptors": "npm:@socketregistry/has-property-descriptors@^1",
|
|
166
|
+
"has-proto": "npm:@socketregistry/has-proto@^1",
|
|
167
|
+
"has-symbols": "npm:@socketregistry/has-symbols@^1",
|
|
168
|
+
hasown: "npm:@socketregistry/hasown@^1",
|
|
169
|
+
"indent-string": "npm:@socketregistry/indent-string@^1",
|
|
170
|
+
"is-core-module": "npm:@socketregistry/is-core-module@^1",
|
|
171
|
+
isarray: "npm:@socketregistry/isarray@^1",
|
|
172
|
+
"npm-package-arg": "$npm-package-arg",
|
|
173
|
+
"packageurl-js": "npm:@socketregistry/packageurl-js@^1",
|
|
174
|
+
"path-parse": "npm:@socketregistry/path-parse@^1",
|
|
175
|
+
"safe-buffer": "npm:@socketregistry/safe-buffer@^1",
|
|
176
|
+
"safer-buffer": "npm:@socketregistry/safer-buffer@^1",
|
|
177
|
+
semver: "$semver",
|
|
178
|
+
"set-function-length": "npm:@socketregistry/set-function-length@^1",
|
|
179
|
+
"side-channel": "npm:@socketregistry/side-channel@^1",
|
|
180
|
+
yaml: "$yaml"
|
|
181
|
+
};
|
|
182
|
+
var resolutions = {
|
|
183
|
+
"aggregate-error": "npm:@socketregistry/aggregate-error@^1",
|
|
184
|
+
"es-define-property": "npm:@socketregistry/es-define-property@^1",
|
|
185
|
+
"function-bind": "npm:@socketregistry/function-bind@^1",
|
|
186
|
+
globalthis: "npm:@socketregistry/globalthis@^1",
|
|
187
|
+
gopd: "npm:@socketregistry/gopd@^1",
|
|
188
|
+
"has-property-descriptors": "npm:@socketregistry/has-property-descriptors@^1",
|
|
189
|
+
"has-proto": "npm:@socketregistry/has-proto@^1",
|
|
190
|
+
"has-symbols": "npm:@socketregistry/has-symbols@^1",
|
|
191
|
+
hasown: "npm:@socketregistry/hasown@^1",
|
|
192
|
+
"indent-string": "npm:@socketregistry/indent-string@^1",
|
|
193
|
+
"is-core-module": "npm:@socketregistry/is-core-module@^1",
|
|
194
|
+
isarray: "npm:@socketregistry/isarray@^1",
|
|
195
|
+
"npm-package-arg": "^12.0.0",
|
|
196
|
+
"packageurl-js": "npm:@socketregistry/packageurl-js@^1",
|
|
197
|
+
"path-parse": "npm:@socketregistry/path-parse@^1",
|
|
198
|
+
"safe-buffer": "npm:@socketregistry/safe-buffer@^1",
|
|
199
|
+
"safer-buffer": "npm:@socketregistry/safer-buffer@^1",
|
|
200
|
+
semver: "^7.6.3",
|
|
201
|
+
"set-function-length": "npm:@socketregistry/set-function-length@^1",
|
|
202
|
+
"side-channel": "npm:@socketregistry/side-channel@^1",
|
|
203
|
+
yaml: "^2.6.0"
|
|
204
|
+
};
|
|
205
|
+
var engines = {
|
|
206
|
+
node: "^18.20.4 || ^20.9.0 || >=22.0.0"
|
|
207
|
+
};
|
|
208
|
+
var files = [
|
|
209
|
+
"bin/**",
|
|
210
|
+
"dist/**",
|
|
211
|
+
"translations.json"
|
|
212
|
+
];
|
|
213
|
+
var require$$6 = {
|
|
214
|
+
name: name,
|
|
215
|
+
version: version,
|
|
216
|
+
description: description,
|
|
217
|
+
homepage: homepage,
|
|
218
|
+
license: license,
|
|
219
|
+
repository: repository,
|
|
220
|
+
author: author,
|
|
221
|
+
bin: bin,
|
|
222
|
+
scripts: scripts,
|
|
223
|
+
dependencies: dependencies,
|
|
224
|
+
devDependencies: devDependencies,
|
|
225
|
+
overrides: overrides,
|
|
226
|
+
resolutions: resolutions,
|
|
227
|
+
engines: engines,
|
|
228
|
+
files: files
|
|
229
|
+
};
|
|
230
|
+
|
|
31
231
|
Object.defineProperty(ttyServer$1, "__esModule", {
|
|
32
232
|
value: true
|
|
33
233
|
});
|
package/dist/vendor.js
CHANGED
|
@@ -6,11 +6,11 @@ var require$$0 = require('node:fs');
|
|
|
6
6
|
var require$$1 = require('node:os');
|
|
7
7
|
var require$$0$1 = require('node:process');
|
|
8
8
|
var require$$0$2 = require('node:util');
|
|
9
|
-
var require$$
|
|
10
|
-
var require$$
|
|
9
|
+
var require$$1$2 = require('node:tty');
|
|
10
|
+
var require$$2 = require('has-flag');
|
|
11
11
|
var require$$1$3 = require('node:fs/promises');
|
|
12
|
-
var require$$2$
|
|
13
|
-
var require$$2 = require('node:child_process');
|
|
12
|
+
var require$$2$2 = require('node:buffer');
|
|
13
|
+
var require$$2$1 = require('node:child_process');
|
|
14
14
|
|
|
15
15
|
var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
|
|
16
16
|
var interopRequireWildcard = {};
|
|
@@ -9131,8 +9131,116 @@ ansiEscapes.iTerm = {
|
|
|
9131
9131
|
};
|
|
9132
9132
|
ansiEscapes$1.default = ansiEscapes;
|
|
9133
9133
|
|
|
9134
|
-
const
|
|
9135
|
-
const
|
|
9134
|
+
const os = require$$1;
|
|
9135
|
+
const tty = require$$1$2;
|
|
9136
|
+
const hasFlag$2 = require$$2;
|
|
9137
|
+
const {
|
|
9138
|
+
env
|
|
9139
|
+
} = process;
|
|
9140
|
+
let forceColor;
|
|
9141
|
+
if (hasFlag$2('no-color') || hasFlag$2('no-colors') || hasFlag$2('color=false') || hasFlag$2('color=never')) {
|
|
9142
|
+
forceColor = 0;
|
|
9143
|
+
} else if (hasFlag$2('color') || hasFlag$2('colors') || hasFlag$2('color=true') || hasFlag$2('color=always')) {
|
|
9144
|
+
forceColor = 1;
|
|
9145
|
+
}
|
|
9146
|
+
if ('FORCE_COLOR' in env) {
|
|
9147
|
+
if (env.FORCE_COLOR === 'true') {
|
|
9148
|
+
forceColor = 1;
|
|
9149
|
+
} else if (env.FORCE_COLOR === 'false') {
|
|
9150
|
+
forceColor = 0;
|
|
9151
|
+
} else {
|
|
9152
|
+
forceColor = env.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env.FORCE_COLOR, 10), 3);
|
|
9153
|
+
}
|
|
9154
|
+
}
|
|
9155
|
+
function translateLevel(level) {
|
|
9156
|
+
if (level === 0) {
|
|
9157
|
+
return false;
|
|
9158
|
+
}
|
|
9159
|
+
return {
|
|
9160
|
+
level,
|
|
9161
|
+
hasBasic: true,
|
|
9162
|
+
has256: level >= 2,
|
|
9163
|
+
has16m: level >= 3
|
|
9164
|
+
};
|
|
9165
|
+
}
|
|
9166
|
+
function supportsColor$1(haveStream, streamIsTTY) {
|
|
9167
|
+
if (forceColor === 0) {
|
|
9168
|
+
return 0;
|
|
9169
|
+
}
|
|
9170
|
+
if (hasFlag$2('color=16m') || hasFlag$2('color=full') || hasFlag$2('color=truecolor')) {
|
|
9171
|
+
return 3;
|
|
9172
|
+
}
|
|
9173
|
+
if (hasFlag$2('color=256')) {
|
|
9174
|
+
return 2;
|
|
9175
|
+
}
|
|
9176
|
+
if (haveStream && !streamIsTTY && forceColor === undefined) {
|
|
9177
|
+
return 0;
|
|
9178
|
+
}
|
|
9179
|
+
const min = forceColor || 0;
|
|
9180
|
+
if (env.TERM === 'dumb') {
|
|
9181
|
+
return min;
|
|
9182
|
+
}
|
|
9183
|
+
if (process.platform === 'win32') {
|
|
9184
|
+
// Windows 10 build 10586 is the first Windows release that supports 256 colors.
|
|
9185
|
+
// Windows 10 build 14931 is the first release that supports 16m/TrueColor.
|
|
9186
|
+
const osRelease = os.release().split('.');
|
|
9187
|
+
if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
|
|
9188
|
+
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
9189
|
+
}
|
|
9190
|
+
return 1;
|
|
9191
|
+
}
|
|
9192
|
+
if ('CI' in env) {
|
|
9193
|
+
if (['TRAVIS', 'CIRCLECI', 'APPVEYOR', 'GITLAB_CI', 'GITHUB_ACTIONS', 'BUILDKITE'].some(sign => sign in env) || env.CI_NAME === 'codeship') {
|
|
9194
|
+
return 1;
|
|
9195
|
+
}
|
|
9196
|
+
return min;
|
|
9197
|
+
}
|
|
9198
|
+
if ('TEAMCITY_VERSION' in env) {
|
|
9199
|
+
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
|
|
9200
|
+
}
|
|
9201
|
+
if (env.COLORTERM === 'truecolor') {
|
|
9202
|
+
return 3;
|
|
9203
|
+
}
|
|
9204
|
+
if ('TERM_PROGRAM' in env) {
|
|
9205
|
+
const version = parseInt((env.TERM_PROGRAM_VERSION || '').split('.')[0], 10);
|
|
9206
|
+
switch (env.TERM_PROGRAM) {
|
|
9207
|
+
case 'iTerm.app':
|
|
9208
|
+
return version >= 3 ? 3 : 2;
|
|
9209
|
+
case 'Apple_Terminal':
|
|
9210
|
+
return 2;
|
|
9211
|
+
// No default
|
|
9212
|
+
}
|
|
9213
|
+
}
|
|
9214
|
+
if (/-256(color)?$/i.test(env.TERM)) {
|
|
9215
|
+
return 2;
|
|
9216
|
+
}
|
|
9217
|
+
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
|
|
9218
|
+
return 1;
|
|
9219
|
+
}
|
|
9220
|
+
if ('COLORTERM' in env) {
|
|
9221
|
+
return 1;
|
|
9222
|
+
}
|
|
9223
|
+
return min;
|
|
9224
|
+
}
|
|
9225
|
+
function getSupportLevel(stream) {
|
|
9226
|
+
const level = supportsColor$1(stream, stream && stream.isTTY);
|
|
9227
|
+
return translateLevel(level);
|
|
9228
|
+
}
|
|
9229
|
+
var supportsColor_1 = {
|
|
9230
|
+
supportsColor: getSupportLevel,
|
|
9231
|
+
stdout: translateLevel(supportsColor$1(true, tty.isatty(1))),
|
|
9232
|
+
stderr: translateLevel(supportsColor$1(true, tty.isatty(2)))
|
|
9233
|
+
};
|
|
9234
|
+
|
|
9235
|
+
var hasFlag$1 = (flag, argv = process.argv) => {
|
|
9236
|
+
const prefix = flag.startsWith('-') ? '' : flag.length === 1 ? '-' : '--';
|
|
9237
|
+
const position = argv.indexOf(prefix + flag);
|
|
9238
|
+
const terminatorPosition = argv.indexOf('--');
|
|
9239
|
+
return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
|
|
9240
|
+
};
|
|
9241
|
+
|
|
9242
|
+
const supportsColor = supportsColor_1;
|
|
9243
|
+
const hasFlag = hasFlag$1;
|
|
9136
9244
|
function parseVersion(versionString) {
|
|
9137
9245
|
if (/^\d{3,4}$/.test(versionString)) {
|
|
9138
9246
|
// Env var doesn't always use dots. example: 4601 => 46.1.0
|
|
@@ -9379,7 +9487,7 @@ Object.defineProperty(defaultBrowserId$1, "__esModule", {
|
|
|
9379
9487
|
defaultBrowserId$1.default = defaultBrowserId;
|
|
9380
9488
|
var _nodeUtil$3 = require$$0$2;
|
|
9381
9489
|
var _nodeProcess$3 = require$$0$1;
|
|
9382
|
-
var _nodeChild_process$4 = require$$2;
|
|
9490
|
+
var _nodeChild_process$4 = require$$2$1;
|
|
9383
9491
|
const execFileAsync$3 = (0, _nodeUtil$3.promisify)(_nodeChild_process$4.execFile);
|
|
9384
9492
|
async function defaultBrowserId() {
|
|
9385
9493
|
if (_nodeProcess$3.platform !== 'darwin') {
|
|
@@ -9405,7 +9513,7 @@ runApplescript.runAppleScript = runAppleScript;
|
|
|
9405
9513
|
runApplescript.runAppleScriptSync = runAppleScriptSync;
|
|
9406
9514
|
var _nodeProcess$2 = require$$0$1;
|
|
9407
9515
|
var _nodeUtil$2 = require$$0$2;
|
|
9408
|
-
var _nodeChild_process$3 = require$$2;
|
|
9516
|
+
var _nodeChild_process$3 = require$$2$1;
|
|
9409
9517
|
const execFileAsync$2 = (0, _nodeUtil$2.promisify)(_nodeChild_process$3.execFile);
|
|
9410
9518
|
async function runAppleScript(script, {
|
|
9411
9519
|
humanReadableOutput = true
|
|
@@ -9451,7 +9559,7 @@ Object.defineProperty(windows, "__esModule", {
|
|
|
9451
9559
|
windows.UnknownBrowserError = void 0;
|
|
9452
9560
|
windows.default = defaultBrowser$1;
|
|
9453
9561
|
var _nodeUtil$1 = require$$0$2;
|
|
9454
|
-
var _nodeChild_process$2 = require$$2;
|
|
9562
|
+
var _nodeChild_process$2 = require$$2$1;
|
|
9455
9563
|
const execFileAsync$1 = (0, _nodeUtil$1.promisify)(_nodeChild_process$2.execFile);
|
|
9456
9564
|
|
|
9457
9565
|
// Windows doesn't have browser IDs in the same way macOS/Linux does so we give fake
|
|
@@ -9522,7 +9630,7 @@ Object.defineProperty(defaultBrowser$2, "__esModule", {
|
|
|
9522
9630
|
defaultBrowser$2.default = defaultBrowser;
|
|
9523
9631
|
var _nodeUtil = require$$0$2;
|
|
9524
9632
|
var _nodeProcess$1 = require$$0$1;
|
|
9525
|
-
var _nodeChild_process$1 = require$$2;
|
|
9633
|
+
var _nodeChild_process$1 = require$$2$1;
|
|
9526
9634
|
var _defaultBrowserId = defaultBrowserId$1;
|
|
9527
9635
|
var _bundleName = bundleName$1;
|
|
9528
9636
|
var _windows = windows;
|
|
@@ -9562,10 +9670,10 @@ Object.defineProperty(open$1, "__esModule", {
|
|
|
9562
9670
|
});
|
|
9563
9671
|
open$1.openApp = open$1.default = open$1.apps = void 0;
|
|
9564
9672
|
var _nodeProcess = require$$0$1;
|
|
9565
|
-
var _nodeBuffer = require$$2$
|
|
9673
|
+
var _nodeBuffer = require$$2$2;
|
|
9566
9674
|
var _nodePath = require$$1$1;
|
|
9567
9675
|
var _nodeUrl = require$$8;
|
|
9568
|
-
var _nodeChild_process = require$$2;
|
|
9676
|
+
var _nodeChild_process = require$$2$1;
|
|
9569
9677
|
var _promises = _interopRequireWildcard(require$$1$3, true);
|
|
9570
9678
|
var _isWsl = isWsl$1;
|
|
9571
9679
|
var _defineLazyProp = defineLazyProp;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "socket",
|
|
3
|
-
"version": "0.14.
|
|
3
|
+
"version": "0.14.28",
|
|
4
4
|
"description": "CLI tool for Socket.dev",
|
|
5
5
|
"homepage": "http://github.com/SocketDev/socket-cli",
|
|
6
6
|
"license": "MIT",
|
|
@@ -40,32 +40,29 @@
|
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@apideck/better-ajv-errors": "^0.3.6",
|
|
43
|
-
"@cyclonedx/cdxgen": "^
|
|
43
|
+
"@cyclonedx/cdxgen": "^11.0.3",
|
|
44
44
|
"@inquirer/prompts": "^7.1.0",
|
|
45
45
|
"@npmcli/promise-spawn": "^8.0.2",
|
|
46
46
|
"@socketregistry/hyrious__bun.lockb": "1.0.5",
|
|
47
47
|
"@socketregistry/yocto-spinner": "^1.0.1",
|
|
48
48
|
"@socketsecurity/config": "^2.1.3",
|
|
49
|
-
"@socketsecurity/registry": "^1.0.
|
|
49
|
+
"@socketsecurity/registry": "^1.0.32",
|
|
50
50
|
"@socketsecurity/sdk": "^1.3.0",
|
|
51
51
|
"blessed": "^0.1.81",
|
|
52
52
|
"blessed-contrib": "^4.11.0",
|
|
53
53
|
"browserslist": "4.24.2",
|
|
54
54
|
"chalk-table": "^1.0.2",
|
|
55
|
-
"
|
|
56
|
-
"emoji-regex": "^10.4.0",
|
|
55
|
+
"has-flag": "^4.0.0",
|
|
57
56
|
"hpagent": "^1.2.0",
|
|
58
57
|
"ignore": "^6.0.2",
|
|
59
58
|
"micromatch": "^4.0.8",
|
|
60
59
|
"npm-package-arg": "^12.0.0",
|
|
61
60
|
"pony-cause": "^2.1.11",
|
|
62
61
|
"semver": "^7.6.3",
|
|
63
|
-
"
|
|
64
|
-
"supports-hyperlinks": "^3.1.0",
|
|
65
|
-
"synp": "^1.9.13",
|
|
62
|
+
"synp": "^1.9.14",
|
|
66
63
|
"tinyglobby": "^0.2.10",
|
|
67
64
|
"which": "^5.0.0",
|
|
68
|
-
"yaml": "^2.6.
|
|
65
|
+
"yaml": "^2.6.1",
|
|
69
66
|
"yargs-parser": "^21.1.1",
|
|
70
67
|
"yoctocolors-cjs": "^2.1.2"
|
|
71
68
|
},
|
|
@@ -79,8 +76,8 @@
|
|
|
79
76
|
"@babel/preset-env": "^7.26.0",
|
|
80
77
|
"@babel/preset-typescript": "^7.26.0",
|
|
81
78
|
"@babel/runtime": "^7.26.0",
|
|
82
|
-
"@eslint/compat": "^1.2.
|
|
83
|
-
"@eslint/js": "^9.
|
|
79
|
+
"@eslint/compat": "^1.2.3",
|
|
80
|
+
"@eslint/js": "^9.16.0",
|
|
84
81
|
"@rollup/plugin-commonjs": "^28.0.1",
|
|
85
82
|
"@rollup/plugin-json": "^6.1.0",
|
|
86
83
|
"@rollup/plugin-node-resolve": "^15.3.0",
|
|
@@ -88,9 +85,9 @@
|
|
|
88
85
|
"@rollup/pluginutils": "^5.1.3",
|
|
89
86
|
"@types/blessed": "^0.1.25",
|
|
90
87
|
"@types/micromatch": "^4.0.9",
|
|
91
|
-
"@types/mocha": "^10.0.
|
|
88
|
+
"@types/mocha": "^10.0.10",
|
|
92
89
|
"@types/mock-fs": "^4.13.4",
|
|
93
|
-
"@types/node": "^22.
|
|
90
|
+
"@types/node": "^22.10.1",
|
|
94
91
|
"@types/npmcli__arborist": "^5.6.11",
|
|
95
92
|
"@types/npmcli__promise-spawn": "^6.0.3",
|
|
96
93
|
"@types/proc-log": "^3.0.4",
|
|
@@ -98,37 +95,37 @@
|
|
|
98
95
|
"@types/update-notifier": "^6.0.8",
|
|
99
96
|
"@types/which": "^3.0.4",
|
|
100
97
|
"@types/yargs-parser": "^21.0.3",
|
|
101
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
102
|
-
"@typescript-eslint/parser": "^8.
|
|
98
|
+
"@typescript-eslint/eslint-plugin": "^8.17.0",
|
|
99
|
+
"@typescript-eslint/parser": "^8.17.0",
|
|
103
100
|
"c8": "^10.1.2",
|
|
104
|
-
"eslint": "^9.
|
|
105
|
-
"eslint-import-resolver-oxc": "^0.
|
|
101
|
+
"eslint": "^9.16.0",
|
|
102
|
+
"eslint-import-resolver-oxc": "^0.5.0",
|
|
106
103
|
"eslint-plugin-depend": "^0.12.0",
|
|
107
|
-
"eslint-plugin-import-x": "^4.4.
|
|
108
|
-
"eslint-plugin-n": "^17.
|
|
104
|
+
"eslint-plugin-import-x": "^4.4.3",
|
|
105
|
+
"eslint-plugin-n": "^17.14.0",
|
|
109
106
|
"eslint-plugin-sort-destructure-keys": "^2.0.0",
|
|
110
|
-
"eslint-plugin-unicorn": "^56.0.
|
|
111
|
-
"husky": "^9.1.
|
|
107
|
+
"eslint-plugin-unicorn": "^56.0.1",
|
|
108
|
+
"husky": "^9.1.7",
|
|
112
109
|
"is-interactive": "^2.0.0",
|
|
113
110
|
"is-unicode-supported": "^2.1.0",
|
|
114
|
-
"knip": "^5.
|
|
115
|
-
"magic-string": "^0.30.
|
|
111
|
+
"knip": "^5.39.0",
|
|
112
|
+
"magic-string": "^0.30.14",
|
|
116
113
|
"meow": "^13.2.0",
|
|
117
114
|
"mock-fs": "^5.4.1",
|
|
118
115
|
"nock": "^13.5.6",
|
|
119
116
|
"npm-run-all2": "^7.0.1",
|
|
120
117
|
"open": "^10.1.0",
|
|
121
|
-
"oxlint": "0.
|
|
122
|
-
"prettier": "3.
|
|
118
|
+
"oxlint": "0.14.0",
|
|
119
|
+
"prettier": "3.4.1",
|
|
123
120
|
"read-package-up": "^11.0.0",
|
|
124
|
-
"rollup": "4.
|
|
121
|
+
"rollup": "4.28.0",
|
|
125
122
|
"rollup-plugin-ts": "^3.4.5",
|
|
126
123
|
"tap": "^21.0.1",
|
|
127
124
|
"terminal-link": "^3.0.0",
|
|
128
125
|
"tiny-updater": "^3.5.2",
|
|
129
126
|
"type-coverage": "^2.29.7",
|
|
130
127
|
"typescript": "5.4.5",
|
|
131
|
-
"typescript-eslint": "^8.
|
|
128
|
+
"typescript-eslint": "^8.17.0",
|
|
132
129
|
"unplugin-purge-polyfills": "^0.0.7"
|
|
133
130
|
},
|
|
134
131
|
"overrides": {
|