@socketsecurity/cli 0.14.67 → 0.14.69
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/blessed/lib/alias.js +521 -0
- package/dist/blessed/lib/blessed.js +34 -0
- package/dist/blessed/lib/colors.js +492 -0
- package/dist/blessed/lib/events.js +197 -0
- package/dist/blessed/lib/gpmclient.js +247 -0
- package/dist/blessed/lib/helpers.js +172 -0
- package/dist/blessed/lib/keys.js +514 -0
- package/dist/blessed/lib/program.js +4532 -0
- package/dist/blessed/lib/tput.js +3113 -0
- package/dist/blessed/lib/unicode.js +914 -0
- package/dist/blessed/lib/widget.js +62 -0
- package/dist/blessed/lib/widgets/ansiimage.js +175 -0
- package/dist/blessed/lib/widgets/bigtext.js +172 -0
- package/dist/blessed/lib/widgets/box.js +36 -0
- package/dist/blessed/lib/widgets/button.js +64 -0
- package/dist/blessed/lib/widgets/checkbox.js +97 -0
- package/dist/blessed/lib/widgets/element.js +2873 -0
- package/dist/blessed/lib/widgets/filemanager.js +225 -0
- package/dist/blessed/lib/widgets/form.js +303 -0
- package/dist/blessed/lib/widgets/image.js +73 -0
- package/dist/blessed/lib/widgets/input.js +36 -0
- package/dist/blessed/lib/widgets/layout.js +251 -0
- package/dist/blessed/lib/widgets/line.js +61 -0
- package/dist/blessed/lib/widgets/list.js +654 -0
- package/dist/blessed/lib/widgets/listbar.js +454 -0
- package/dist/blessed/lib/widgets/listtable.js +267 -0
- package/dist/blessed/lib/widgets/loading.js +90 -0
- package/dist/blessed/lib/widgets/log.js +84 -0
- package/dist/blessed/lib/widgets/message.js +147 -0
- package/dist/blessed/lib/widgets/node.js +316 -0
- package/dist/blessed/lib/widgets/overlayimage.js +796 -0
- package/dist/blessed/lib/widgets/progressbar.js +168 -0
- package/dist/blessed/lib/widgets/prompt.js +129 -0
- package/dist/blessed/lib/widgets/question.js +131 -0
- package/dist/blessed/lib/widgets/radiobutton.js +64 -0
- package/dist/blessed/lib/widgets/radioset.js +38 -0
- package/dist/blessed/lib/widgets/screen.js +2489 -0
- package/dist/blessed/lib/widgets/scrollablebox.js +417 -0
- package/dist/blessed/lib/widgets/scrollabletext.js +37 -0
- package/dist/blessed/lib/widgets/table.js +385 -0
- package/dist/blessed/lib/widgets/terminal.js +454 -0
- package/dist/blessed/lib/widgets/text.js +37 -0
- package/dist/blessed/lib/widgets/textarea.js +378 -0
- package/dist/blessed/lib/widgets/textbox.js +81 -0
- package/dist/blessed/lib/widgets/video.js +132 -0
- package/dist/blessed/usr/fonts/AUTHORS +1 -0
- package/dist/blessed/usr/fonts/LICENSE +94 -0
- package/dist/blessed/usr/fonts/README +340 -0
- package/dist/blessed/usr/fonts/ter-u14b.json +17826 -0
- package/dist/blessed/usr/fonts/ter-u14n.json +17826 -0
- package/dist/blessed/usr/linux +0 -0
- package/dist/blessed/usr/windows-ansi +0 -0
- package/dist/blessed/usr/xterm +0 -0
- package/dist/blessed/usr/xterm-256color +0 -0
- package/dist/blessed/usr/xterm.termcap +243 -0
- package/dist/blessed/usr/xterm.terminfo +1977 -0
- package/dist/blessed/vendor/tng.js +1878 -0
- package/dist/constants.d.ts +271 -207
- package/dist/constants.js +280 -234
- package/dist/constants.js.map +1 -1
- package/dist/module-sync/artifact.d.ts +60 -26
- package/dist/module-sync/cli.d.ts +1 -1
- package/dist/module-sync/cli.js +6799 -4724
- package/dist/module-sync/cli.js.map +1 -1
- package/dist/module-sync/cmd.d.ts +4 -4
- package/dist/module-sync/config.d.ts +42 -17
- package/dist/module-sync/edge.d.ts +73 -60
- package/dist/module-sync/errors.d.ts +26 -11
- package/dist/module-sync/index.d.ts +31 -20
- package/dist/module-sync/node.d.ts +118 -83
- package/dist/module-sync/override-set.d.ts +39 -33
- package/dist/module-sync/package-environment.d.ts +83 -52
- package/dist/module-sync/path-resolve.d.ts +14 -9
- package/dist/module-sync/sdk.d.ts +9 -5
- package/dist/module-sync/shadow-bin.d.ts +5 -2
- package/dist/module-sync/shadow-bin.js +78 -64
- package/dist/module-sync/shadow-bin.js.map +1 -1
- package/dist/module-sync/shadow-npm-inject.d.ts +1 -1
- package/dist/module-sync/shadow-npm-inject.js +1231 -986
- package/dist/module-sync/shadow-npm-inject.js.map +1 -1
- package/dist/module-sync/shadow-npm-paths.d.ts +28 -14
- package/dist/module-sync/shadow-npm-paths.js +300 -208
- package/dist/module-sync/shadow-npm-paths.js.map +1 -1
- package/dist/module-sync/socket-package-alert.d.ts +95 -39
- package/dist/module-sync/types.d.ts +75 -47
- package/dist/module-sync/vendor.js +15055 -0
- package/dist/module-sync/vendor.js.map +1 -0
- package/dist/require/cli.d.ts +1 -1
- package/dist/require/cli.js +6798 -4722
- package/dist/require/cli.js.map +1 -1
- package/dist/require/vendor.js +2 -9145
- package/package.json +47 -37
- package/dist/module-sync/fs.d.ts +0 -22
- package/dist/require/vendor.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@socketsecurity/cli",
|
|
3
|
-
"version": "0.14.
|
|
3
|
+
"version": "0.14.69",
|
|
4
4
|
"description": "CLI tool for Socket.dev",
|
|
5
5
|
"homepage": "https://github.com/SocketDev/socket-cli",
|
|
6
6
|
"license": "MIT",
|
|
@@ -37,11 +37,11 @@
|
|
|
37
37
|
},
|
|
38
38
|
"scripts": {
|
|
39
39
|
"build": "run-p -c --aggregate-output build:*",
|
|
40
|
-
"build:dist": "del-cli 'dist' && rollup -c .config/rollup.dist.config.mjs",
|
|
40
|
+
"build:dist": "del-cli 'dist' && rollup -c .config/rollup.dist.config.mjs && npm run lint:dist:fix",
|
|
41
41
|
"build:test-dist": "del-cli 'test/dist' && cross-env VITEST=1 rollup -c .config/rollup.test.config.mjs",
|
|
42
42
|
"check": "run-p -c --aggregate-output check:*",
|
|
43
43
|
"check:lint": "eslint --report-unused-disable-directives .",
|
|
44
|
-
"check:lint:
|
|
44
|
+
"check:lint:dist": "cross-env LINT_DIST=1 eslint --report-unused-disable-directives --quiet ./dist",
|
|
45
45
|
"check:tsc": "tsc",
|
|
46
46
|
"coverage": "run-s coverage:*",
|
|
47
47
|
"coverage:test": "run-s test:prepare test:unit:coverage",
|
|
@@ -49,45 +49,51 @@
|
|
|
49
49
|
"clean": "run-p --aggregate-output clean:*",
|
|
50
50
|
"clean:dist": "del-cli 'dist' 'test/dist'",
|
|
51
51
|
"clean:node_modules": "del-cli '**/node_modules'",
|
|
52
|
-
"fix": "run
|
|
52
|
+
"fix": "npm run lint:fix",
|
|
53
53
|
"knip:dependencies": "knip --dependencies",
|
|
54
54
|
"knip:exports": "knip --include exports,duplicates",
|
|
55
55
|
"lint": "oxlint -c=./.oxlintrc.json --ignore-path=./.oxlintignore --tsconfig=./tsconfig.json .",
|
|
56
|
-
"lint:
|
|
57
|
-
"lint:fix
|
|
56
|
+
"lint:dist": "oxlint -c=./.oxlintrc.json --ignore-path=./.oxlintignore --tsconfig=./tsconfig.json ./dist",
|
|
57
|
+
"lint:dist:fix": "cross-env LINT_DIST=1 npm run lint:dist -- --silent --fix | dev-null && run-s lint:dist:fix:*",
|
|
58
|
+
"lint:dist:fix:fast": "biome format --write ./dist",
|
|
59
|
+
"lint:dist:fix:slow": "npm run check:lint:dist -- --fix | dev-null",
|
|
60
|
+
"lint:fix": "npm run lint -- --quiet --fix && run-s lint:fix:*",
|
|
61
|
+
"lint:fix:fast": "biome format --write .",
|
|
62
|
+
"lint:fix:slow": "npm run check:lint -- --fix",
|
|
58
63
|
"lint-staged": "lint-staged",
|
|
59
64
|
"precommit": "lint-staged",
|
|
60
|
-
"prepare": "husky",
|
|
65
|
+
"prepare": "husky && custompatch",
|
|
61
66
|
"bs": "npm run build:dist; npm exec socket --",
|
|
62
67
|
"s": "npm exec socket --",
|
|
63
68
|
"test": "run-s check test:*",
|
|
64
|
-
"test:prepare": "cross-env VITEST=1 npm run build",
|
|
69
|
+
"test:prepare": "cross-env VITEST=1 npm run build && del-cli 'test/**/node_modules'",
|
|
65
70
|
"test:unit": "vitest --run",
|
|
66
71
|
"test:unit:update": "vitest --run --update",
|
|
67
72
|
"test:unit:coverage": "vitest run --coverage",
|
|
68
73
|
"test-ci": "run-s test:*",
|
|
69
74
|
"testu": "cross-env SOCKET_CLI_NO_API_TOKEN=1 run-s test:prepare; npm run test:unit:update --",
|
|
70
|
-
"testuf": "SOCKET_CLI_NO_API_TOKEN=1 npm run test:unit:update --",
|
|
75
|
+
"testuf": "cross-env SOCKET_CLI_NO_API_TOKEN=1 npm run test:unit:update --",
|
|
71
76
|
"update": "run-p --aggregate-output update:**",
|
|
72
77
|
"update:deps": "npx --yes npm-check-updates"
|
|
73
78
|
},
|
|
74
79
|
"dependencies": {
|
|
75
80
|
"@apideck/better-ajv-errors": "0.3.6",
|
|
76
|
-
"@
|
|
77
|
-
"@pnpm/lockfile.detect-dep-types": "^1001.0.
|
|
78
|
-
"@
|
|
81
|
+
"@octokit/rest": "^21.1.1",
|
|
82
|
+
"@pnpm/lockfile.detect-dep-types": "^1001.0.6",
|
|
83
|
+
"@pnpm/lockfile.fs": "^1001.1.8",
|
|
84
|
+
"@pnpm/logger": "^1000.0.0",
|
|
85
|
+
"@socketregistry/hyrious__bun.lockb": "1.0.17",
|
|
79
86
|
"@socketregistry/indent-string": "1.0.12",
|
|
80
87
|
"@socketregistry/is-interactive": "1.0.5",
|
|
81
|
-
"@socketregistry/packageurl-js": "1.0.
|
|
88
|
+
"@socketregistry/packageurl-js": "1.0.5",
|
|
82
89
|
"@socketsecurity/config": "2.1.3",
|
|
83
|
-
"@socketsecurity/registry": "1.0.
|
|
84
|
-
"@socketsecurity/sdk": "1.4.
|
|
85
|
-
"blessed": "0.1.81",
|
|
86
|
-
"blessed-contrib": "4.11.0",
|
|
90
|
+
"@socketsecurity/registry": "1.0.137",
|
|
91
|
+
"@socketsecurity/sdk": "1.4.24",
|
|
87
92
|
"browserslist": "4.24.4",
|
|
88
93
|
"chalk-table": "1.0.2",
|
|
89
94
|
"cmd-shim": "7.0.0",
|
|
90
95
|
"common-tags": "1.8.2",
|
|
96
|
+
"fast-content-type-parse": "^2.0.0",
|
|
91
97
|
"hpagent": "1.2.0",
|
|
92
98
|
"ignore": "7.0.3",
|
|
93
99
|
"meow": "13.2.0",
|
|
@@ -100,7 +106,7 @@
|
|
|
100
106
|
"tiny-updater": "3.5.3",
|
|
101
107
|
"tinyglobby": "0.2.12",
|
|
102
108
|
"which": "5.0.0",
|
|
103
|
-
"yaml": "2.7.
|
|
109
|
+
"yaml": "2.7.1",
|
|
104
110
|
"yargs-parser": "21.1.1",
|
|
105
111
|
"yoctocolors-cjs": "2.1.2"
|
|
106
112
|
},
|
|
@@ -114,53 +120,57 @@
|
|
|
114
120
|
"@babel/preset-typescript": "^7.27.0",
|
|
115
121
|
"@babel/runtime": "^7.27.0",
|
|
116
122
|
"@biomejs/biome": "^1.9.4",
|
|
117
|
-
"@cyclonedx/cdxgen": "^11.2.
|
|
118
|
-
"@eslint/compat": "^1.2.
|
|
123
|
+
"@cyclonedx/cdxgen": "^11.2.3",
|
|
124
|
+
"@eslint/compat": "^1.2.8",
|
|
119
125
|
"@eslint/js": "^9.23.0",
|
|
120
|
-
"@rollup/plugin-commonjs": "
|
|
126
|
+
"@rollup/plugin-commonjs": "28.0.3",
|
|
121
127
|
"@rollup/plugin-json": "^6.1.0",
|
|
122
128
|
"@rollup/plugin-node-resolve": "^16.0.1",
|
|
123
129
|
"@rollup/plugin-replace": "^6.0.2",
|
|
124
130
|
"@rollup/pluginutils": "^5.1.4",
|
|
125
|
-
"@types/blessed": "
|
|
131
|
+
"@types/blessed": "0.1.25",
|
|
126
132
|
"@types/cmd-shim": "^5.0.2",
|
|
127
133
|
"@types/common-tags": "^1.8.4",
|
|
128
134
|
"@types/micromatch": "^4.0.9",
|
|
129
135
|
"@types/mock-fs": "^4.13.4",
|
|
130
|
-
"@types/node": "^22.
|
|
136
|
+
"@types/node": "^22.14.0",
|
|
131
137
|
"@types/npmcli__arborist": "^6.3.0",
|
|
132
138
|
"@types/proc-log": "^3.0.4",
|
|
133
|
-
"@types/semver": "^7.
|
|
139
|
+
"@types/semver": "^7.7.0",
|
|
134
140
|
"@types/which": "^3.0.4",
|
|
135
141
|
"@types/yargs-parser": "^21.0.3",
|
|
136
|
-
"@typescript-eslint/parser": "^8.
|
|
137
|
-
"@vitest/coverage-v8": "3.
|
|
142
|
+
"@typescript-eslint/parser": "^8.29.0",
|
|
143
|
+
"@vitest/coverage-v8": "3.1.1",
|
|
144
|
+
"blessed": "0.1.81",
|
|
145
|
+
"blessed-contrib": "4.11.0",
|
|
138
146
|
"cross-env": "^7.0.3",
|
|
147
|
+
"custompatch": "^1.1.4",
|
|
139
148
|
"del-cli": "^6.0.0",
|
|
149
|
+
"dev-null-cli": "^2.0.0",
|
|
140
150
|
"eslint": "^9.23.0",
|
|
141
|
-
"eslint-import-resolver-
|
|
142
|
-
"eslint-plugin-import-x": "^4.
|
|
143
|
-
"eslint-plugin-n": "^17.
|
|
151
|
+
"eslint-import-resolver-typescript": "^4.3.1",
|
|
152
|
+
"eslint-plugin-import-x": "^4.10.0",
|
|
153
|
+
"eslint-plugin-n": "^17.17.0",
|
|
144
154
|
"eslint-plugin-sort-destructure-keys": "^2.0.0",
|
|
145
155
|
"eslint-plugin-unicorn": "^56.0.1",
|
|
146
156
|
"globals": "^16.0.0",
|
|
147
157
|
"husky": "^9.1.7",
|
|
148
|
-
"knip": "^5.46.
|
|
158
|
+
"knip": "^5.46.5",
|
|
149
159
|
"lint-staged": "^15.5.0",
|
|
150
160
|
"magic-string": "^0.30.17",
|
|
151
161
|
"mock-fs": "^5.5.0",
|
|
152
|
-
"nock": "^14.0.
|
|
162
|
+
"nock": "^14.0.2",
|
|
153
163
|
"npm-run-all2": "^7.0.2",
|
|
154
|
-
"oxlint": "0.16.
|
|
164
|
+
"oxlint": "0.16.4",
|
|
155
165
|
"read-package-up": "^11.0.0",
|
|
156
|
-
"rollup": "4.
|
|
166
|
+
"rollup": "4.39.0",
|
|
157
167
|
"rollup-plugin-ts": "^3.4.5",
|
|
158
168
|
"synp": "^1.9.14",
|
|
159
169
|
"type-coverage": "^2.29.7",
|
|
160
170
|
"typescript": "5.4.5",
|
|
161
|
-
"typescript-eslint": "^8.
|
|
171
|
+
"typescript-eslint": "^8.29.0",
|
|
162
172
|
"unplugin-purge-polyfills": "^0.0.7",
|
|
163
|
-
"vitest": "3.
|
|
173
|
+
"vitest": "3.1.1"
|
|
164
174
|
},
|
|
165
175
|
"overrides": {
|
|
166
176
|
"aggregate-error": "npm:@socketregistry/aggregate-error@^1",
|
|
@@ -187,9 +197,9 @@
|
|
|
187
197
|
"tiny-colors": "$yoctocolors-cjs",
|
|
188
198
|
"typedarray": "npm:@socketregistry/typedarray@^1",
|
|
189
199
|
"undici": "^6.21.1",
|
|
190
|
-
"vite": "^6.2.
|
|
200
|
+
"vite": "^6.2.5",
|
|
191
201
|
"xml2js": "^0.5.0",
|
|
192
|
-
"yaml": "2.7.
|
|
202
|
+
"yaml": "2.7.1"
|
|
193
203
|
},
|
|
194
204
|
"engines": {
|
|
195
205
|
"node": "^18.20.7 || ^20.18.3 || >=22.14.0"
|
package/dist/module-sync/fs.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
import { Remap } from '@socketsecurity/registry/lib/objects';
|
|
3
|
-
import { Abortable } from 'node:events';
|
|
4
|
-
import { ObjectEncodingOptions, OpenMode, PathLike, PathOrFileDescriptor } from 'node:fs';
|
|
5
|
-
import { FileHandle } from 'node:fs/promises';
|
|
6
|
-
type FindUpOptions = {
|
|
7
|
-
cwd?: string | undefined;
|
|
8
|
-
signal?: AbortSignal | undefined;
|
|
9
|
-
};
|
|
10
|
-
declare function findUp(name: string | string[], { cwd, signal }: FindUpOptions): Promise<string | undefined>;
|
|
11
|
-
type ReadFileOptions = Remap<ObjectEncodingOptions & Abortable & {
|
|
12
|
-
flag?: OpenMode | undefined;
|
|
13
|
-
}>;
|
|
14
|
-
declare function readFileBinary(filepath: PathLike | FileHandle, options?: ReadFileOptions | undefined): Promise<Buffer>;
|
|
15
|
-
declare function readFileUtf8(filepath: PathLike | FileHandle, options?: ReadFileOptions | undefined): Promise<string>;
|
|
16
|
-
declare function safeReadFile(filepath: PathLike | FileHandle, options?: 'utf8' | 'utf-8' | {
|
|
17
|
-
encoding: 'utf8' | 'utf-8';
|
|
18
|
-
} | undefined): Promise<string | undefined>;
|
|
19
|
-
declare function safeReadFileSync(filepath: PathOrFileDescriptor, options?: 'utf8' | 'utf-8' | {
|
|
20
|
-
encoding: 'utf8' | 'utf-8';
|
|
21
|
-
} | undefined): string | undefined;
|
|
22
|
-
export { FindUpOptions, findUp, ReadFileOptions, readFileBinary, readFileUtf8, safeReadFile, safeReadFileSync };
|