@socketsecurity/cli 0.14.27 → 0.14.29
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/bin/cli.js +9 -0
- package/bin/npm-cli.js +9 -0
- package/bin/npx-cli.js +9 -0
- package/bin/shadow/module-sync/npm +3 -0
- package/bin/shadow/module-sync/npx +3 -0
- package/bin/shadow/require/npm +3 -0
- package/bin/shadow/require/npx +3 -0
- package/dist/module-sync/cli.d.ts.map +1 -0
- package/dist/module-sync/cli.js +5256 -0
- package/dist/module-sync/constants.d.ts +15 -0
- package/dist/module-sync/constants.js +62 -0
- package/dist/module-sync/npm-cli.js +85 -0
- package/dist/{npm-injection.js → module-sync/npm-injection.js} +78 -92
- package/dist/module-sync/npx-cli.js +61 -0
- package/dist/{sdk.d.ts → module-sync/sdk.d.ts} +1 -5
- package/dist/module-sync/sdk.js +253 -0
- package/dist/require/cli.d.ts +3 -0
- package/dist/require/cli.d.ts.map +1 -0
- package/dist/{cli.js → require/cli.js} +72 -76
- package/dist/require/color-or-markdown.d.ts +23 -0
- package/dist/require/constants.d.ts +15 -0
- package/dist/require/constants.js +57 -0
- package/dist/require/errors.d.ts +7 -0
- package/dist/require/link.d.ts +2 -0
- package/dist/require/link.js +45 -0
- package/dist/require/npm-cli.d.ts +2 -0
- package/dist/{npm-cli.js → require/npm-cli.js} +12 -10
- package/dist/require/npm-injection.d.ts +1 -0
- package/dist/require/npm-injection.js +1830 -0
- package/dist/require/npx-cli.d.ts +2 -0
- package/dist/{npx-cli.js → require/npx-cli.js} +12 -12
- package/dist/require/path-resolve.d.ts +8 -0
- package/dist/require/path-resolve.js +183 -0
- package/dist/require/sdk.d.ts +9 -0
- package/dist/{sdk.js → require/sdk.js} +16 -36
- package/dist/require/settings.d.ts +9 -0
- package/dist/{vendor.js → require/vendor.js} +126 -13
- package/package.json +68 -36
- package/bin/npm +0 -2
- package/bin/npx +0 -2
- package/dist/cli.d.ts.map +0 -1
- /package/dist/{cli.d.ts → module-sync/cli.d.ts} +0 -0
- /package/dist/{color-or-markdown.d.ts → module-sync/color-or-markdown.d.ts} +0 -0
- /package/dist/{errors.d.ts → module-sync/errors.d.ts} +0 -0
- /package/dist/{link.d.ts → module-sync/link.d.ts} +0 -0
- /package/dist/{link.js → module-sync/link.js} +0 -0
- /package/dist/{npm-cli.d.ts → module-sync/npm-cli.d.ts} +0 -0
- /package/dist/{npm-injection.d.ts → module-sync/npm-injection.d.ts} +0 -0
- /package/dist/{npx-cli.d.ts → module-sync/npx-cli.d.ts} +0 -0
- /package/dist/{path-resolve.d.ts → module-sync/path-resolve.d.ts} +0 -0
- /package/dist/{path-resolve.js → module-sync/path-resolve.js} +0 -0
- /package/dist/{settings.d.ts → module-sync/settings.d.ts} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@socketsecurity/cli",
|
|
3
|
-
"version": "0.14.
|
|
3
|
+
"version": "0.14.29",
|
|
4
4
|
"description": "CLI tool for Socket.dev",
|
|
5
5
|
"homepage": "http://github.com/SocketDev/socket-cli",
|
|
6
6
|
"license": "MIT",
|
|
@@ -14,10 +14,44 @@
|
|
|
14
14
|
"url": "https://socket.dev"
|
|
15
15
|
},
|
|
16
16
|
"bin": {
|
|
17
|
-
"cli": "
|
|
18
|
-
"socket": "
|
|
19
|
-
"socket-npm": "
|
|
20
|
-
"socket-npx": "
|
|
17
|
+
"cli": "./bin/cli.js",
|
|
18
|
+
"socket": "./bin/cli.js",
|
|
19
|
+
"socket-npm": "./bin/npm-cli.js",
|
|
20
|
+
"socket-npx": "./bin/npx-cli.js"
|
|
21
|
+
},
|
|
22
|
+
"exports": {
|
|
23
|
+
"./bin/cli.js": {
|
|
24
|
+
"module-sync": {
|
|
25
|
+
"types": "./dist/module-sync/cli.d.ts",
|
|
26
|
+
"default": "./dist/module-sync/cli.js"
|
|
27
|
+
},
|
|
28
|
+
"require": {
|
|
29
|
+
"types": "./dist/require/cli.d.ts",
|
|
30
|
+
"default": "./dist/require/cli.js"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"./bin/npm-cli.js": {
|
|
34
|
+
"module-sync": {
|
|
35
|
+
"types": "./dist/module-sync/npm-cli.d.ts",
|
|
36
|
+
"default": "./dist/module-sync/npm-cli.js"
|
|
37
|
+
},
|
|
38
|
+
"require": {
|
|
39
|
+
"types": "./dist/require/npm-cli.d.ts",
|
|
40
|
+
"default": "./dist/require/npm-cli.js"
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"./bin/npx-cli.js": {
|
|
44
|
+
"module-sync": {
|
|
45
|
+
"types": "./dist/module-sync/npx-cli.d.ts",
|
|
46
|
+
"default": "./dist/module-sync/npx-cli.js"
|
|
47
|
+
},
|
|
48
|
+
"require": {
|
|
49
|
+
"types": "./dist/require/npx-cli.d.ts",
|
|
50
|
+
"default": "./dist/require/npx-cli.js"
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"./package.json": "./package.json",
|
|
54
|
+
"./translations.json": "./translations.json"
|
|
21
55
|
},
|
|
22
56
|
"scripts": {
|
|
23
57
|
"build": "run-s build:*",
|
|
@@ -32,41 +66,38 @@
|
|
|
32
66
|
"lint": "oxlint -c=./.oxlintrc.json --ignore-path=./.prettierignore --tsconfig=./tsconfig.json .",
|
|
33
67
|
"lint:fix": "npm run lint -- --fix && npm run lint:fix:fast",
|
|
34
68
|
"lint:fix:fast": "prettier --cache --log-level warn --write .",
|
|
35
|
-
"prepare": "husky",
|
|
69
|
+
"prepare": "husky && custompatch",
|
|
36
70
|
"test": "run-s check build:* test:*",
|
|
37
71
|
"test:c8": "c8 --reporter=none node --test 'test/socket-npm.test.cjs'",
|
|
38
72
|
"test-ci": "run-s build:* test:*",
|
|
39
|
-
"test:unit": "tap",
|
|
40
|
-
"test:coverage": "cp -r .tap/coverage/*.json coverage/tmp && c8 --reporter=lcov --reporter=text --include 'dist/*.js' --exclude 'dist/vendor.js' report"
|
|
73
|
+
"test:unit": "tap-run",
|
|
74
|
+
"test:coverage": "cp -r .tap/coverage/*.json coverage/tmp && c8 --reporter=lcov --reporter=text --include 'dist/{module-sync,require}/*.js' --exclude 'dist/require/vendor.js' report"
|
|
41
75
|
},
|
|
42
76
|
"dependencies": {
|
|
43
77
|
"@apideck/better-ajv-errors": "^0.3.6",
|
|
44
|
-
"@cyclonedx/cdxgen": "^
|
|
78
|
+
"@cyclonedx/cdxgen": "^11.0.3",
|
|
45
79
|
"@inquirer/prompts": "^7.1.0",
|
|
46
80
|
"@npmcli/promise-spawn": "^8.0.2",
|
|
47
81
|
"@socketregistry/hyrious__bun.lockb": "1.0.5",
|
|
48
82
|
"@socketregistry/yocto-spinner": "^1.0.1",
|
|
49
83
|
"@socketsecurity/config": "^2.1.3",
|
|
50
|
-
"@socketsecurity/registry": "^1.0.
|
|
84
|
+
"@socketsecurity/registry": "^1.0.33",
|
|
51
85
|
"@socketsecurity/sdk": "^1.3.0",
|
|
52
86
|
"blessed": "^0.1.81",
|
|
53
87
|
"blessed-contrib": "^4.11.0",
|
|
54
88
|
"browserslist": "4.24.2",
|
|
55
89
|
"chalk-table": "^1.0.2",
|
|
56
|
-
"
|
|
57
|
-
"emoji-regex": "^10.4.0",
|
|
90
|
+
"has-flag": "^4.0.0",
|
|
58
91
|
"hpagent": "^1.2.0",
|
|
59
92
|
"ignore": "^6.0.2",
|
|
60
93
|
"micromatch": "^4.0.8",
|
|
61
94
|
"npm-package-arg": "^12.0.0",
|
|
62
95
|
"pony-cause": "^2.1.11",
|
|
63
96
|
"semver": "^7.6.3",
|
|
64
|
-
"
|
|
65
|
-
"supports-hyperlinks": "^3.1.0",
|
|
66
|
-
"synp": "^1.9.13",
|
|
97
|
+
"synp": "^1.9.14",
|
|
67
98
|
"tinyglobby": "^0.2.10",
|
|
68
99
|
"which": "^5.0.0",
|
|
69
|
-
"yaml": "^2.6.
|
|
100
|
+
"yaml": "^2.6.1",
|
|
70
101
|
"yargs-parser": "^21.1.1",
|
|
71
102
|
"yoctocolors-cjs": "^2.1.2"
|
|
72
103
|
},
|
|
@@ -75,23 +106,24 @@
|
|
|
75
106
|
"@babel/plugin-proposal-export-default-from": "^7.25.9",
|
|
76
107
|
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
|
77
108
|
"@babel/plugin-transform-export-namespace-from": "^7.25.9",
|
|
78
|
-
"@babel/plugin-transform-modules-commonjs": "^7.
|
|
109
|
+
"@babel/plugin-transform-modules-commonjs": "^7.26.3",
|
|
79
110
|
"@babel/plugin-transform-runtime": "^7.25.9",
|
|
80
111
|
"@babel/preset-env": "^7.26.0",
|
|
81
112
|
"@babel/preset-typescript": "^7.26.0",
|
|
82
113
|
"@babel/runtime": "^7.26.0",
|
|
83
|
-
"@eslint/compat": "^1.2.
|
|
84
|
-
"@eslint/js": "^9.
|
|
114
|
+
"@eslint/compat": "^1.2.4",
|
|
115
|
+
"@eslint/js": "^9.16.0",
|
|
85
116
|
"@rollup/plugin-commonjs": "^28.0.1",
|
|
86
117
|
"@rollup/plugin-json": "^6.1.0",
|
|
87
118
|
"@rollup/plugin-node-resolve": "^15.3.0",
|
|
88
119
|
"@rollup/plugin-replace": "^6.0.1",
|
|
89
120
|
"@rollup/pluginutils": "^5.1.3",
|
|
121
|
+
"@tapjs/run": "^4.0.1",
|
|
90
122
|
"@types/blessed": "^0.1.25",
|
|
91
123
|
"@types/micromatch": "^4.0.9",
|
|
92
|
-
"@types/mocha": "^10.0.
|
|
124
|
+
"@types/mocha": "^10.0.10",
|
|
93
125
|
"@types/mock-fs": "^4.13.4",
|
|
94
|
-
"@types/node": "^22.
|
|
126
|
+
"@types/node": "^22.10.1",
|
|
95
127
|
"@types/npmcli__arborist": "^5.6.11",
|
|
96
128
|
"@types/npmcli__promise-spawn": "^6.0.3",
|
|
97
129
|
"@types/proc-log": "^3.0.4",
|
|
@@ -99,37 +131,37 @@
|
|
|
99
131
|
"@types/update-notifier": "^6.0.8",
|
|
100
132
|
"@types/which": "^3.0.4",
|
|
101
133
|
"@types/yargs-parser": "^21.0.3",
|
|
102
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
103
|
-
"@typescript-eslint/parser": "^8.
|
|
134
|
+
"@typescript-eslint/eslint-plugin": "^8.17.0",
|
|
135
|
+
"@typescript-eslint/parser": "^8.17.0",
|
|
104
136
|
"c8": "^10.1.2",
|
|
105
|
-
"
|
|
106
|
-
"eslint
|
|
137
|
+
"custompatch": "^1.0.28",
|
|
138
|
+
"eslint": "^9.16.0",
|
|
139
|
+
"eslint-import-resolver-oxc": "^0.6.0",
|
|
107
140
|
"eslint-plugin-depend": "^0.12.0",
|
|
108
|
-
"eslint-plugin-import-x": "^4.
|
|
109
|
-
"eslint-plugin-n": "^17.
|
|
141
|
+
"eslint-plugin-import-x": "^4.5.0",
|
|
142
|
+
"eslint-plugin-n": "^17.14.0",
|
|
110
143
|
"eslint-plugin-sort-destructure-keys": "^2.0.0",
|
|
111
|
-
"eslint-plugin-unicorn": "^56.0.
|
|
112
|
-
"husky": "^9.1.
|
|
144
|
+
"eslint-plugin-unicorn": "^56.0.1",
|
|
145
|
+
"husky": "^9.1.7",
|
|
113
146
|
"is-interactive": "^2.0.0",
|
|
114
147
|
"is-unicode-supported": "^2.1.0",
|
|
115
|
-
"knip": "^5.
|
|
116
|
-
"magic-string": "^0.30.
|
|
148
|
+
"knip": "^5.39.2",
|
|
149
|
+
"magic-string": "^0.30.14",
|
|
117
150
|
"meow": "^13.2.0",
|
|
118
151
|
"mock-fs": "^5.4.1",
|
|
119
152
|
"nock": "^13.5.6",
|
|
120
153
|
"npm-run-all2": "^7.0.1",
|
|
121
154
|
"open": "^10.1.0",
|
|
122
|
-
"oxlint": "0.
|
|
123
|
-
"prettier": "3.
|
|
155
|
+
"oxlint": "0.14.1",
|
|
156
|
+
"prettier": "3.4.2",
|
|
124
157
|
"read-package-up": "^11.0.0",
|
|
125
|
-
"rollup": "4.
|
|
158
|
+
"rollup": "4.28.1",
|
|
126
159
|
"rollup-plugin-ts": "^3.4.5",
|
|
127
|
-
"tap": "^21.0.1",
|
|
128
160
|
"terminal-link": "^3.0.0",
|
|
129
161
|
"tiny-updater": "^3.5.2",
|
|
130
162
|
"type-coverage": "^2.29.7",
|
|
131
163
|
"typescript": "5.4.5",
|
|
132
|
-
"typescript-eslint": "^8.
|
|
164
|
+
"typescript-eslint": "^8.17.0",
|
|
133
165
|
"unplugin-purge-polyfills": "^0.0.7"
|
|
134
166
|
},
|
|
135
167
|
"overrides": {
|
package/bin/npm
DELETED
package/bin/npx
DELETED
package/dist/cli.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts","../src/utils/formatting.ts","../src/flags.ts","../src/utils/meow-with-subcommands.ts","../src/commands/cdxgen.ts","../src/utils/api-helpers.ts","../src/utils/objects.ts","../src/utils/format-issues.ts","../src/commands/info.ts","../src/commands/login.ts","../src/commands/logout.ts","../src/commands/npm.ts","../src/commands/npx.ts","../src/utils/fs.ts","../src/utils/package-manager-detector.ts","../src/commands/optimize.ts","../src/commands/organization.ts","../src/commands/raw-npm.ts","../src/commands/raw-npx.ts","../src/commands/report/view.ts","../src/commands/report/create.ts","../src/commands/report/index.ts","../src/commands/wrapper.ts","../src/commands/scan/create.ts","../src/commands/scan/delete.ts","../src/commands/scan/list.ts","../src/commands/scan/metadata.ts","../src/commands/scan/stream.ts","../src/commands/scan/index.ts","../src/commands/audit-log.ts","../src/commands/repos/create.ts","../src/commands/repos/delete.ts","../src/commands/repos/list.ts","../src/commands/repos/update.ts","../src/commands/repos/view.ts","../src/commands/repos/index.ts","../src/commands/dependencies.ts","../src/commands/analytics.ts","../src/commands/diff-scan/get.ts","../src/commands/diff-scan/index.ts","../src/commands/threat-feed.ts","../src/commands/index.ts"],"names":[],"mappings":""}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|