@socketsecurity/cli 0.12.0 → 0.14.0
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/README.md +61 -28
- package/package.json +109 -110
- package/dist/cli.d.ts +0 -3
- package/dist/cli.d.ts.map +0 -1
- package/dist/cli.js +0 -3928
- package/dist/errors.d.ts +0 -7
- package/dist/link.d.ts +0 -2
- package/dist/link.js +0 -45
- package/dist/npm-cli.d.ts +0 -2
- package/dist/npm-cli.js +0 -84
- package/dist/npm-injection.d.ts +0 -1
- package/dist/npm-injection.js +0 -913
- package/dist/npm-injection2.d.ts +0 -25
- package/dist/npm-injection2.js +0 -899
- package/dist/npx-cli.d.ts +0 -2
- package/dist/npx-cli.js +0 -60
- package/dist/path-resolve.d.ts +0 -12
- package/dist/path-resolve.js +0 -139
- package/dist/sdk.d.ts +0 -27
- package/dist/sdk.js +0 -224
- package/dist/settings.d.ts +0 -9
- package/dist/type-helpers.d.ts +0 -3
- package/dist/vendor.js +0 -25421
package/README.md
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
# Socket CLI
|
|
2
2
|
|
|
3
3
|
[](https://socket.dev/npm/package/@socketsecurity/cli)
|
|
4
|
-
[](https://www.npmjs.com/package/@socketsecurity/cli)
|
|
5
|
-
[](https://github.com/SocketDev/eslint-config)
|
|
6
4
|
[](https://twitter.com/SocketSecurity)
|
|
7
5
|
|
|
8
|
-
CLI tool for [Socket.dev](https://socket.dev/)
|
|
6
|
+
> CLI tool for [Socket.dev](https://socket.dev/)
|
|
9
7
|
|
|
10
8
|
## Usage
|
|
11
9
|
|
|
@@ -23,55 +21,84 @@ socket wrapper --enable
|
|
|
23
21
|
|
|
24
22
|
## Commands
|
|
25
23
|
|
|
26
|
-
- `socket info <package@version>` -
|
|
24
|
+
- `socket info <package@version>` - Look up issues for a package.
|
|
27
25
|
|
|
28
|
-
- `socket
|
|
26
|
+
- `socket optimize` - Optimize dependencies with
|
|
27
|
+
[`@socketregistry`](https://github.com/SocketDev/socket-registry-js) overrides
|
|
29
28
|
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
- `socket raw-npm` and `socket raw-npx` - Temporarily disable the Socket
|
|
30
|
+
'safe-npm' wrapper.
|
|
32
31
|
|
|
33
|
-
|
|
32
|
+
- `socket report create <path(s)-to-folder-or-file>` - creates a report on
|
|
33
|
+
[socket.dev](https://socket.dev/)
|
|
34
34
|
|
|
35
|
-
|
|
35
|
+
Upload the specified `package.json` and lock files for JavaScript, Python, and
|
|
36
|
+
Go dependency manifests. If any folder is specified, the ones found in there
|
|
37
|
+
recursively are uploaded.
|
|
36
38
|
|
|
37
|
-
|
|
39
|
+
Supports globbing such as `**/package.json`, `**/requirements.txt`,
|
|
40
|
+
`**/pyproject.toml`, and `**/go.mod`.
|
|
38
41
|
|
|
39
|
-
|
|
42
|
+
Ignores any file specified in your project's `.gitignore`, the
|
|
43
|
+
`projectIgnorePaths` in your project's
|
|
44
|
+
[`socket.yml`](https://docs.socket.dev/docs/socket-yml) and on top of that has
|
|
45
|
+
a sensible set of
|
|
46
|
+
[default ignores](https://socket.dev/npm/package/ignore-by-default)
|
|
40
47
|
|
|
41
|
-
- `socket
|
|
48
|
+
- `socket report view <report-id>` - Look up issues and scores from a report.
|
|
49
|
+
|
|
50
|
+
- `socket wrapper --enable` and `socket wrapper --disable` - Enable and disable
|
|
51
|
+
the Socket 'safe-npm' wrapper.
|
|
42
52
|
|
|
43
53
|
## Aliases
|
|
44
54
|
|
|
45
55
|
All aliases supports flags and arguments of the commands they alias.
|
|
46
56
|
|
|
47
|
-
- `socket ci` - alias for `socket report create --view --strict` which creates a
|
|
57
|
+
- `socket ci` - alias for `socket report create --view --strict` which creates a
|
|
58
|
+
report and quits with an exit code if the result is unhealthy. Use like eg.
|
|
59
|
+
`socket ci .` for a report for the current folder
|
|
48
60
|
|
|
49
61
|
## Flags
|
|
50
62
|
|
|
51
63
|
### Command specific flags
|
|
52
64
|
|
|
53
|
-
- `--view` - when set on `socket report create` the command will immediately do
|
|
65
|
+
- `--view` - when set on `socket report create` the command will immediately do
|
|
66
|
+
a `socket report view` style view of the created report, waiting for the
|
|
67
|
+
server to complete it
|
|
54
68
|
|
|
55
69
|
### Output flags
|
|
56
70
|
|
|
57
|
-
- `--json` - outputs result as json which you can then pipe into
|
|
58
|
-
|
|
71
|
+
- `--json` - outputs result as json which you can then pipe into
|
|
72
|
+
[`jq`](https://stedolan.github.io/jq/) and other tools
|
|
73
|
+
- `--markdown` - outputs result as markdown which you can then copy into an
|
|
74
|
+
issue, PR or even chat
|
|
59
75
|
|
|
60
76
|
## Strictness flags
|
|
61
77
|
|
|
62
|
-
- `--all` - by default only `high` and `critical` issues are included, by
|
|
63
|
-
|
|
78
|
+
- `--all` - by default only `high` and `critical` issues are included, by
|
|
79
|
+
setting this flag all issues will be included
|
|
80
|
+
- `--strict` - when set, exits with an error code if report result is deemed
|
|
81
|
+
unhealthy
|
|
64
82
|
|
|
65
83
|
### Other flags
|
|
66
84
|
|
|
67
|
-
- `--dry-run` - like all CLI tools that perform an action should have, we have a
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
- `--
|
|
85
|
+
- `--dry-run` - like all CLI tools that perform an action should have, we have a
|
|
86
|
+
dry run flag. Eg. `socket report create` supports running the command without
|
|
87
|
+
actually uploading anything
|
|
88
|
+
- `--debug` - outputs additional debug output. Great for debugging, geeks and us
|
|
89
|
+
who develop. Hopefully you will never _need_ it, but it can still be fun,
|
|
90
|
+
right?
|
|
91
|
+
- `--help` - prints the help for the current command. All CLI tools should have
|
|
92
|
+
this flag
|
|
93
|
+
- `--version` - prints the version of the tool. All CLI tools should have this
|
|
94
|
+
flag
|
|
71
95
|
|
|
72
96
|
## Configuration files
|
|
73
97
|
|
|
74
|
-
The CLI reads and uses data from a
|
|
98
|
+
The CLI reads and uses data from a
|
|
99
|
+
[`socket.yml` file](https://docs.socket.dev/docs/socket-yml) in the folder you
|
|
100
|
+
run it in. It supports the version 2 of the `socket.yml` file format and makes
|
|
101
|
+
use of the `projectIgnorePaths` to excludes files when creating a report.
|
|
75
102
|
|
|
76
103
|
## Environment variables
|
|
77
104
|
|
|
@@ -81,15 +108,21 @@ The CLI reads and uses data from a [`socket.yml` file](https://docs.socket.dev/d
|
|
|
81
108
|
|
|
82
109
|
### Environment variables for development
|
|
83
110
|
|
|
84
|
-
- `SOCKET_SECURITY_API_BASE_URL` - if set, this will be the base for all
|
|
85
|
-
-
|
|
111
|
+
- `SOCKET_SECURITY_API_BASE_URL` - if set, this will be the base for all
|
|
112
|
+
API-calls. Defaults to `https://api.socket.dev/v0/`
|
|
113
|
+
- `SOCKET_SECURITY_API_PROXY` - if set to something like
|
|
114
|
+
[`http://127.0.0.1:9090`](https://docs.proxyman.io/troubleshooting/couldnt-see-any-requests-from-3rd-party-network-libraries),
|
|
115
|
+
then all request will be proxied through that proxy
|
|
86
116
|
|
|
87
117
|
## Similar projects
|
|
88
118
|
|
|
89
|
-
- [`@socketsecurity/sdk`](https://github.com/SocketDev/socket-sdk-js) - the SDK
|
|
119
|
+
- [`@socketsecurity/sdk`](https://github.com/SocketDev/socket-sdk-js) - the SDK
|
|
120
|
+
used in this CLI
|
|
90
121
|
|
|
91
122
|
## See also
|
|
92
123
|
|
|
93
124
|
- [Announcement blog post](https://socket.dev/blog/announcing-socket-cli-preview)
|
|
94
|
-
- [Socket API Reference](https://docs.socket.dev/reference) - the API used in
|
|
95
|
-
|
|
125
|
+
- [Socket API Reference](https://docs.socket.dev/reference) - the API used in
|
|
126
|
+
this CLI
|
|
127
|
+
- [Socket GitHub App](https://github.com/apps/socket-security) - the
|
|
128
|
+
plug-and-play GitHub App
|
package/package.json
CHANGED
|
@@ -1,173 +1,172 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@socketsecurity/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.14.0",
|
|
4
4
|
"description": "CLI tool for Socket.dev",
|
|
5
5
|
"homepage": "http://github.com/SocketDev/socket-cli-js",
|
|
6
|
+
"license": "MIT",
|
|
6
7
|
"repository": {
|
|
7
8
|
"type": "git",
|
|
8
|
-
"url": "git://github.com/SocketDev/socket-cli-js.git"
|
|
9
|
+
"url": "git+https://github.com/SocketDev/socket-cli-js.git"
|
|
9
10
|
},
|
|
10
|
-
"keywords": [],
|
|
11
11
|
"author": {
|
|
12
12
|
"name": "Socket Inc",
|
|
13
13
|
"email": "eng@socket.dev",
|
|
14
14
|
"url": "https://socket.dev"
|
|
15
15
|
},
|
|
16
|
-
"license": "MIT",
|
|
17
16
|
"bin": {
|
|
18
17
|
"socket": "dist/cli.js",
|
|
19
18
|
"socket-npm": "dist/npm-cli.js",
|
|
20
19
|
"socket-npx": "dist/npx-cli.js"
|
|
21
20
|
},
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"dist
|
|
25
|
-
"
|
|
26
|
-
|
|
21
|
+
"scripts": {
|
|
22
|
+
"build": "npm run build:dist && npm run build:test",
|
|
23
|
+
"build:dist": "rollup -c .config/rollup.dist.config.mjs",
|
|
24
|
+
"build:test": "rollup -c .config/rollup.test.config.mjs",
|
|
25
|
+
"check": "run-p -c --aggregate-output check:*",
|
|
26
|
+
"check:lint": "eslint --report-unused-disable-directives .",
|
|
27
|
+
"check:tsc": "tsc",
|
|
28
|
+
"check:type-coverage": "type-coverage --detail --strict --at-least 95 --ignore-files 'test/*'",
|
|
29
|
+
"knip:dependencies": "knip --dependencies",
|
|
30
|
+
"knip:exports": "knip --include exports,duplicates",
|
|
31
|
+
"lint": "oxlint -c=./.oxlintrc.json --ignore-path=./.prettierignore --tsconfig=./tsconfig.json . -D correctness -D perf -D suspicious --promise-plugin --import-plugin",
|
|
32
|
+
"lint:fix": "npm run lint -- --fix && npm run lint:fix:fast",
|
|
33
|
+
"lint:fix:fast": "prettier --cache --log-level warn --write .",
|
|
34
|
+
"prepare": "husky",
|
|
35
|
+
"test": "run-s check build:* test:*",
|
|
36
|
+
"test:c8": "c8 --reporter=none node --test 'test/socket-npm.test.cjs'",
|
|
37
|
+
"test-ci": "run-s build:* test:*",
|
|
38
|
+
"test:unit": "tap",
|
|
39
|
+
"test:coverage": "cp -r .tap/coverage/*.json coverage/tmp && c8 --reporter=lcov --reporter=text --include 'dist/*.js' --exclude 'dist/vendor.js' report"
|
|
40
|
+
},
|
|
27
41
|
"dependencies": {
|
|
28
42
|
"@apideck/better-ajv-errors": "^0.3.6",
|
|
29
|
-
"@cyclonedx/cdxgen": "^10.
|
|
30
|
-
"@inquirer/prompts": "^
|
|
43
|
+
"@cyclonedx/cdxgen": "^10.10.4",
|
|
44
|
+
"@inquirer/prompts": "^7.0.0",
|
|
45
|
+
"@npmcli/promise-spawn": "^8.0.1",
|
|
46
|
+
"@socketregistry/hyrious__bun.lockb": "1.0.0",
|
|
31
47
|
"@socketsecurity/config": "^2.1.3",
|
|
32
|
-
"@socketsecurity/
|
|
48
|
+
"@socketsecurity/registry": "^1.0.2",
|
|
49
|
+
"@socketsecurity/sdk": "^1.3.0",
|
|
33
50
|
"ansi-align": "^3.0.1",
|
|
34
51
|
"blessed": "^0.1.81",
|
|
35
52
|
"blessed-contrib": "^4.11.0",
|
|
53
|
+
"browserslist": "4.24.0",
|
|
36
54
|
"chalk-table": "^1.0.2",
|
|
37
|
-
"cli-boxes": "^
|
|
38
|
-
"cli-spinners": "^2.
|
|
55
|
+
"cli-boxes": "^4.0.1",
|
|
56
|
+
"cli-spinners": "^3.2.0",
|
|
39
57
|
"cross-spawn": "^7.0.3",
|
|
40
58
|
"dot-prop": "^9.0.0",
|
|
41
|
-
"eastasianwidth": "^0.
|
|
42
|
-
"emoji-regex": "^10.
|
|
59
|
+
"eastasianwidth": "^0.3.0",
|
|
60
|
+
"emoji-regex": "^10.4.0",
|
|
43
61
|
"fast-glob": "^3.3.2",
|
|
44
|
-
"graceful-fs": "^4.2.
|
|
62
|
+
"graceful-fs": "^4.2.11",
|
|
63
|
+
"has-flag": "^5.0.1",
|
|
45
64
|
"hpagent": "^1.2.0",
|
|
46
|
-
"ignore": "^
|
|
47
|
-
"ini": "
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"pacote": "^18.0.6",
|
|
65
|
+
"ignore": "^6.0.2",
|
|
66
|
+
"ini": "5.0.0",
|
|
67
|
+
"onetime": "^7.0.0",
|
|
68
|
+
"pacote": "^19.0.0",
|
|
51
69
|
"pony-cause": "^2.1.11",
|
|
52
70
|
"rc": "1.2.8",
|
|
53
71
|
"registry-auth-token": "^5.0.2",
|
|
54
|
-
"semver": "^7.6.
|
|
72
|
+
"semver": "^7.6.3",
|
|
55
73
|
"signal-exit": "^4.1.0",
|
|
56
|
-
"supports-
|
|
74
|
+
"supports-color": "^9.4.0",
|
|
75
|
+
"supports-hyperlinks": "^3.1.0",
|
|
57
76
|
"synp": "^1.9.13",
|
|
58
|
-
"which": "^
|
|
59
|
-
"write-file-atomic": "^
|
|
77
|
+
"which": "^5.0.0",
|
|
78
|
+
"write-file-atomic": "^6.0.0",
|
|
60
79
|
"yargs-parser": "^21.1.1"
|
|
61
80
|
},
|
|
62
81
|
"devDependencies": {
|
|
63
|
-
"@babel/core": "^7.
|
|
64
|
-
"@babel/plugin-proposal-export-default-from": "^7.
|
|
65
|
-
"@babel/plugin-
|
|
66
|
-
"@babel/plugin-transform-
|
|
67
|
-
"@babel/plugin-transform-
|
|
68
|
-
"@babel/
|
|
69
|
-
"@babel/preset-
|
|
70
|
-
"@babel/
|
|
71
|
-
"@
|
|
72
|
-
"@
|
|
73
|
-
"@rollup/plugin-
|
|
74
|
-
"@rollup/plugin-
|
|
75
|
-
"@rollup/
|
|
76
|
-
"@
|
|
77
|
-
"@
|
|
82
|
+
"@babel/core": "^7.25.8",
|
|
83
|
+
"@babel/plugin-proposal-export-default-from": "^7.25.8",
|
|
84
|
+
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
|
85
|
+
"@babel/plugin-transform-export-namespace-from": "^7.25.8",
|
|
86
|
+
"@babel/plugin-transform-modules-commonjs": "^7.25.7",
|
|
87
|
+
"@babel/plugin-transform-runtime": "^7.25.7",
|
|
88
|
+
"@babel/preset-env": "^7.25.8",
|
|
89
|
+
"@babel/preset-typescript": "^7.25.7",
|
|
90
|
+
"@babel/runtime": "^7.25.7",
|
|
91
|
+
"@eslint/compat": "^1.2.0",
|
|
92
|
+
"@rollup/plugin-commonjs": "^28.0.0",
|
|
93
|
+
"@rollup/plugin-node-resolve": "^15.3.0",
|
|
94
|
+
"@rollup/plugin-replace": "^6.0.1",
|
|
95
|
+
"@rollup/pluginutils": "^5.1.2",
|
|
96
|
+
"@socketregistry/hyrious__bun.lockb": "^1.0.0",
|
|
97
|
+
"@types/blessed": "^0.1.25",
|
|
78
98
|
"@types/micromatch": "^4.0.9",
|
|
79
|
-
"@types/mocha": "^10.0.
|
|
99
|
+
"@types/mocha": "^10.0.9",
|
|
80
100
|
"@types/mock-fs": "^4.13.4",
|
|
81
|
-
"@types/node": "^
|
|
101
|
+
"@types/node": "^22.7.5",
|
|
82
102
|
"@types/npm": "^7.19.3",
|
|
83
|
-
"@types/npmcli__arborist": "^5.6.
|
|
103
|
+
"@types/npmcli__arborist": "^5.6.11",
|
|
104
|
+
"@types/npmcli__promise-spawn": "^6.0.3",
|
|
105
|
+
"@types/semver": "^7.5.8",
|
|
84
106
|
"@types/update-notifier": "^6.0.8",
|
|
85
107
|
"@types/which": "^3.0.4",
|
|
86
108
|
"@types/yargs-parser": "^21.0.3",
|
|
87
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
88
|
-
"@typescript-eslint/parser": "
|
|
109
|
+
"@typescript-eslint/eslint-plugin": "^8.8.1",
|
|
110
|
+
"@typescript-eslint/parser": "^8.8.1",
|
|
89
111
|
"c8": "^10.1.2",
|
|
90
112
|
"chalk": "^5.3.0",
|
|
91
|
-
"
|
|
92
|
-
"eslint": "^8.56.0",
|
|
93
|
-
"eslint-config-prettier": "^9.1.0",
|
|
94
|
-
"eslint-config-standard": "^17.1.0",
|
|
95
|
-
"eslint-config-standard-jsx": "^11.0.0",
|
|
96
|
-
"eslint-import-resolver-typescript": "^3.6.1",
|
|
113
|
+
"eslint": "^9.12.0",
|
|
97
114
|
"eslint-plugin-depend": "^0.11.0",
|
|
98
|
-
"eslint-plugin-import": "^2.29.1",
|
|
99
|
-
"eslint-plugin-n": "^16.6.2",
|
|
100
|
-
"eslint-plugin-promise": "^6.6.0",
|
|
101
|
-
"eslint-plugin-unicorn": "^48.0.1",
|
|
102
|
-
"execa": "^9.3.0",
|
|
103
115
|
"globby": "^14.0.2",
|
|
104
|
-
"husky": "^9.1.
|
|
116
|
+
"husky": "^9.1.6",
|
|
105
117
|
"is-interactive": "^2.0.0",
|
|
106
|
-
"is-unicode-supported": "^2.
|
|
107
|
-
"knip": "^5.
|
|
108
|
-
"magic-string": "^0.30.
|
|
118
|
+
"is-unicode-supported": "^2.1.0",
|
|
119
|
+
"knip": "^5.33.3",
|
|
120
|
+
"magic-string": "^0.30.11",
|
|
109
121
|
"meow": "^13.2.0",
|
|
110
|
-
"mock-fs": "^5.
|
|
111
|
-
"nock": "^13.5.
|
|
112
|
-
"
|
|
122
|
+
"mock-fs": "^5.3.0",
|
|
123
|
+
"nock": "^13.5.5",
|
|
124
|
+
"normalize-package-data": "^7.0.0",
|
|
125
|
+
"npm-run-all2": "^6.2.3",
|
|
113
126
|
"open": "^10.1.0",
|
|
114
|
-
"ora": "^8.0
|
|
127
|
+
"ora": "^8.1.0",
|
|
128
|
+
"oxlint": "^0.9.10",
|
|
115
129
|
"prettier": "3.3.3",
|
|
116
130
|
"read-package-up": "^11.0.0",
|
|
117
|
-
"rollup": "4.
|
|
131
|
+
"rollup": "4.24.0",
|
|
118
132
|
"rollup-plugin-ts": "^3.4.5",
|
|
119
|
-
"tap": "^21.0.
|
|
133
|
+
"tap": "^21.0.1",
|
|
120
134
|
"terminal-link": "^3.0.0",
|
|
121
135
|
"type-coverage": "^2.29.1",
|
|
122
|
-
"typescript": "
|
|
123
|
-
"
|
|
124
|
-
"
|
|
125
|
-
"
|
|
136
|
+
"typescript": "5.4.5",
|
|
137
|
+
"typescript-eslint": "^8.8.1",
|
|
138
|
+
"unplugin-purge-polyfills": "^0.0.7",
|
|
139
|
+
"update-notifier": "^7.3.1",
|
|
140
|
+
"validate-npm-package-name": "^6.0.0"
|
|
126
141
|
},
|
|
127
142
|
"overrides": {
|
|
128
143
|
"@cyclonedx/cdxgen": {
|
|
129
|
-
"packageurl-js": "https://registry.npmjs.org
|
|
144
|
+
"packageurl-js": "https://registry.npmjs.org/packageurl-js/-/packageurl-js-2.0.1.tgz"
|
|
130
145
|
},
|
|
131
|
-
"
|
|
132
|
-
"
|
|
133
|
-
"
|
|
134
|
-
"
|
|
135
|
-
"
|
|
136
|
-
"
|
|
137
|
-
"
|
|
138
|
-
"
|
|
139
|
-
"hasown": "npm:@
|
|
140
|
-
"
|
|
141
|
-
"
|
|
142
|
-
"
|
|
143
|
-
"
|
|
144
|
-
"
|
|
145
|
-
"
|
|
146
|
-
"
|
|
147
|
-
"
|
|
148
|
-
"string.prototype.repeat": "npm:@nolyfill/string.prototype.repeat@^1"
|
|
146
|
+
"aggregate-error": "npm:@socketregistry/aggregate-error@^1",
|
|
147
|
+
"es-define-property": "npm:@socketregistry/es-define-property@^1",
|
|
148
|
+
"function-bind": "npm:@socketregistry/function-bind@^1",
|
|
149
|
+
"globalthis": "npm:@socketregistry/globalthis@^1",
|
|
150
|
+
"gopd": "npm:@socketregistry/gopd@^1",
|
|
151
|
+
"has-property-descriptors": "npm:@socketregistry/has-property-descriptors@^1",
|
|
152
|
+
"has-proto": "npm:@socketregistry/has-proto@^1",
|
|
153
|
+
"has-symbols": "npm:@socketregistry/has-symbols@^1",
|
|
154
|
+
"hasown": "npm:@socketregistry/hasown@^1",
|
|
155
|
+
"indent-string": "npm:@socketregistry/indent-string@^1",
|
|
156
|
+
"is-core-module": "npm:@socketregistry/is-core-module@^1",
|
|
157
|
+
"isarray": "npm:@socketregistry/isarray@^1",
|
|
158
|
+
"path-parse": "npm:@socketregistry/path-parse@^1",
|
|
159
|
+
"safe-buffer": "npm:@socketregistry/safe-buffer@^1",
|
|
160
|
+
"safer-buffer": "npm:@socketregistry/safer-buffer@^1",
|
|
161
|
+
"set-function-length": "npm:@socketregistry/set-function-length@^1",
|
|
162
|
+
"side-channel": "npm:@socketregistry/side-channel@^1"
|
|
149
163
|
},
|
|
150
164
|
"engines": {
|
|
151
165
|
"node": "^20.9.0 || >=22.0.0"
|
|
152
166
|
},
|
|
153
|
-
"
|
|
154
|
-
"
|
|
155
|
-
"
|
|
156
|
-
"
|
|
157
|
-
|
|
158
|
-
"check:lint": "eslint --report-unused-disable-directives .",
|
|
159
|
-
"check:tsc": "tsc",
|
|
160
|
-
"check:type-coverage": "type-coverage --detail --strict --at-least 95 --ignore-files 'test/*'",
|
|
161
|
-
"check": "run-p -c --aggregate-output check:*",
|
|
162
|
-
"prepare": "husky",
|
|
163
|
-
"test:c8": "c8 --reporter=none node --test \"test/socket-npm.test.cjs\"",
|
|
164
|
-
"test:unit": "tap",
|
|
165
|
-
"test:coverage": "cp -r .tap/coverage/*.json coverage/tmp && c8 --reporter=lcov --reporter=text --include \"dist/*.js\" --exclude \"dist/vendor.js\" report",
|
|
166
|
-
"test-ci": "run-s build:* test:*",
|
|
167
|
-
"test": "run-s check build:* test:*",
|
|
168
|
-
"lint": "NODE_OPTIONS=--max-old-space-size=10240 eslint --quiet .",
|
|
169
|
-
"lint:fix": "npm run lint:fix:fast && NODE_OPTIONS=--max-old-space-size=10240 eslint --quiet --cache --fix .",
|
|
170
|
-
"lint:fix:fast": "prettier --cache --log-level warn --write .",
|
|
171
|
-
"//postinstall": "node ./cli.js wrapper --postinstall"
|
|
172
|
-
}
|
|
167
|
+
"files": [
|
|
168
|
+
"bin/**",
|
|
169
|
+
"dist/**",
|
|
170
|
+
"translations.json"
|
|
171
|
+
]
|
|
173
172
|
}
|
package/dist/cli.d.ts
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/utils/meow-with-subcommands.ts","../src/commands/cdxgen.ts","../src/flags.ts","../src/utils/api-helpers.ts","../src/utils/misc.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/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/index.ts"],"names":[],"mappings":""}
|