socket 0.0.1 → 0.14.12
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/LICENSE +21 -0
- package/README.md +128 -0
- package/bin/npm +2 -0
- package/bin/npx +2 -0
- package/dist/chalk-markdown.d.ts +23 -0
- package/dist/cli.d.ts +3 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +4777 -0
- package/dist/errors.d.ts +7 -0
- package/dist/link.d.ts +2 -0
- package/dist/link.js +45 -0
- package/dist/npm-cli.d.ts +2 -0
- package/dist/npm-cli.js +84 -0
- package/dist/npm-injection.d.ts +1 -0
- package/dist/npm-injection.js +1253 -0
- package/dist/npx-cli.d.ts +2 -0
- package/dist/npx-cli.js +61 -0
- package/dist/path-resolve.d.ts +11 -0
- package/dist/path-resolve.js +136 -0
- package/dist/sdk.d.ts +13 -0
- package/dist/sdk.js +270 -0
- package/dist/settings.d.ts +9 -0
- package/dist/vendor.d.ts +0 -0
- package/dist/vendor.js +18048 -0
- package/package.json +174 -19
- package/translations.json +689 -0
- package/examples/echo-server.js +0 -29
- package/examples/simple-test.js +0 -76
- package/examples/simple-time-server.js +0 -40
- package/index.js +0 -24
- package/lib/index.js +0 -110
- package/lib/middleware/echo.js +0 -30
- package/lib/middleware/errorHandler.js +0 -57
- package/lib/middleware/json.js +0 -42
- package/lib/middleware/profiler.js +0 -129
- package/lib/proto.js +0 -191
- package/lib/utils.js +0 -75
- package/nbproject/private/private.properties +0 -1
- package/nbproject/project.properties +0 -6
- package/nbproject/project.xml +0 -9
- package/scripts/lint +0 -3
package/package.json
CHANGED
|
@@ -1,21 +1,176 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
"name": "socket",
|
|
3
|
+
"version": "0.14.12",
|
|
4
|
+
"description": "CLI tool for Socket.dev",
|
|
5
|
+
"homepage": "http://github.com/SocketDev/socket-cli-js",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/SocketDev/socket-cli-js.git"
|
|
10
|
+
},
|
|
11
|
+
"author": {
|
|
12
|
+
"name": "Socket Inc",
|
|
13
|
+
"email": "eng@socket.dev",
|
|
14
|
+
"url": "https://socket.dev"
|
|
15
|
+
},
|
|
16
|
+
"bin": {
|
|
17
|
+
"socket": "dist/cli.js",
|
|
18
|
+
"socket-npm": "dist/npm-cli.js",
|
|
19
|
+
"socket-npx": "dist/npx-cli.js"
|
|
20
|
+
},
|
|
21
|
+
"scripts": {
|
|
22
|
+
"build": "run-s build:*",
|
|
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
|
+
},
|
|
41
|
+
"dependencies": {
|
|
42
|
+
"@apideck/better-ajv-errors": "^0.3.6",
|
|
43
|
+
"@cyclonedx/cdxgen": "^10.10.6",
|
|
44
|
+
"@inquirer/prompts": "^7.0.0",
|
|
45
|
+
"@npmcli/package-json": "6.0.1",
|
|
46
|
+
"@npmcli/promise-spawn": "^8.0.2",
|
|
47
|
+
"@socketregistry/hyrious__bun.lockb": "1.0.1",
|
|
48
|
+
"@socketsecurity/config": "^2.1.3",
|
|
49
|
+
"@socketsecurity/registry": "^1.0.8",
|
|
50
|
+
"@socketsecurity/sdk": "^1.3.0",
|
|
51
|
+
"ansi-align": "^3.0.1",
|
|
52
|
+
"blessed": "^0.1.81",
|
|
53
|
+
"blessed-contrib": "^4.11.0",
|
|
54
|
+
"browserslist": "4.24.0",
|
|
55
|
+
"chalk-table": "^1.0.2",
|
|
56
|
+
"cli-boxes": "^4.0.1",
|
|
57
|
+
"cli-spinners": "^3.2.0",
|
|
58
|
+
"cross-spawn": "^7.0.3",
|
|
59
|
+
"dot-prop": "^9.0.0",
|
|
60
|
+
"eastasianwidth": "^0.3.0",
|
|
61
|
+
"emoji-regex": "^10.4.0",
|
|
62
|
+
"fast-glob": "^3.3.2",
|
|
63
|
+
"graceful-fs": "^4.2.11",
|
|
64
|
+
"has-flag": "^5.0.1",
|
|
65
|
+
"hpagent": "^1.2.0",
|
|
66
|
+
"ignore": "^6.0.2",
|
|
67
|
+
"ini": "5.0.0",
|
|
68
|
+
"onetime": "^7.0.0",
|
|
69
|
+
"pacote": "^20.0.0",
|
|
70
|
+
"pony-cause": "^2.1.11",
|
|
71
|
+
"rc": "1.2.8",
|
|
72
|
+
"registry-auth-token": "^5.0.2",
|
|
73
|
+
"semver": "^7.6.3",
|
|
74
|
+
"signal-exit": "^4.1.0",
|
|
75
|
+
"supports-color": "^9.4.0",
|
|
76
|
+
"supports-hyperlinks": "^3.1.0",
|
|
77
|
+
"synp": "^1.9.13",
|
|
78
|
+
"which": "^5.0.0",
|
|
79
|
+
"write-file-atomic": "^6.0.0",
|
|
80
|
+
"yargs-parser": "^21.1.1"
|
|
81
|
+
},
|
|
82
|
+
"devDependencies": {
|
|
83
|
+
"@babel/core": "^7.25.8",
|
|
84
|
+
"@babel/plugin-proposal-export-default-from": "^7.25.8",
|
|
85
|
+
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
|
86
|
+
"@babel/plugin-transform-export-namespace-from": "^7.25.8",
|
|
87
|
+
"@babel/plugin-transform-modules-commonjs": "^7.25.7",
|
|
88
|
+
"@babel/plugin-transform-runtime": "^7.25.7",
|
|
89
|
+
"@babel/preset-env": "^7.25.8",
|
|
90
|
+
"@babel/preset-typescript": "^7.25.7",
|
|
91
|
+
"@babel/runtime": "^7.25.7",
|
|
92
|
+
"@eslint/compat": "^1.2.1",
|
|
93
|
+
"@eslint/js": "^9.13.0",
|
|
94
|
+
"@rollup/plugin-commonjs": "^28.0.1",
|
|
95
|
+
"@rollup/plugin-json": "^6.1.0",
|
|
96
|
+
"@rollup/plugin-node-resolve": "^15.3.0",
|
|
97
|
+
"@rollup/plugin-replace": "^6.0.1",
|
|
98
|
+
"@rollup/pluginutils": "^5.1.2",
|
|
99
|
+
"@types/blessed": "^0.1.25",
|
|
100
|
+
"@types/micromatch": "^4.0.9",
|
|
101
|
+
"@types/mocha": "^10.0.9",
|
|
102
|
+
"@types/mock-fs": "^4.13.4",
|
|
103
|
+
"@types/node": "^22.7.7",
|
|
104
|
+
"@types/npmcli__arborist": "^5.6.11",
|
|
105
|
+
"@types/npmcli__package-json": "^4.0.4",
|
|
106
|
+
"@types/npmcli__promise-spawn": "^6.0.3",
|
|
107
|
+
"@types/semver": "^7.5.8",
|
|
108
|
+
"@types/update-notifier": "^6.0.8",
|
|
109
|
+
"@types/which": "^3.0.4",
|
|
110
|
+
"@types/yargs-parser": "^21.0.3",
|
|
111
|
+
"@typescript-eslint/eslint-plugin": "^8.10.0",
|
|
112
|
+
"@typescript-eslint/parser": "^8.10.0",
|
|
113
|
+
"c8": "^10.1.2",
|
|
114
|
+
"chalk": "^5.3.0",
|
|
115
|
+
"eslint": "^9.13.0",
|
|
116
|
+
"eslint-plugin-depend": "^0.11.0",
|
|
117
|
+
"eslint-plugin-n": "^17.11.1",
|
|
118
|
+
"eslint-plugin-unicorn": "^56.0.0",
|
|
119
|
+
"globby": "^14.0.2",
|
|
120
|
+
"husky": "^9.1.6",
|
|
121
|
+
"is-interactive": "^2.0.0",
|
|
122
|
+
"is-unicode-supported": "^2.1.0",
|
|
123
|
+
"knip": "^5.33.3",
|
|
124
|
+
"magic-string": "^0.30.12",
|
|
125
|
+
"meow": "^13.2.0",
|
|
126
|
+
"mock-fs": "^5.4.0",
|
|
127
|
+
"nock": "^13.5.5",
|
|
128
|
+
"normalize-package-data": "^7.0.0",
|
|
129
|
+
"npm-run-all2": "^6.2.4",
|
|
130
|
+
"open": "^10.1.0",
|
|
131
|
+
"ora": "^8.1.0",
|
|
132
|
+
"oxlint": "0.9.10",
|
|
133
|
+
"prettier": "3.3.3",
|
|
134
|
+
"read-package-up": "^11.0.0",
|
|
135
|
+
"rollup": "4.24.0",
|
|
136
|
+
"rollup-plugin-ts": "^3.4.5",
|
|
137
|
+
"tap": "^21.0.1",
|
|
138
|
+
"terminal-link": "^3.0.0",
|
|
139
|
+
"type-coverage": "^2.29.7",
|
|
140
|
+
"typescript": "5.4.5",
|
|
141
|
+
"typescript-eslint": "^8.10.0",
|
|
142
|
+
"unplugin-purge-polyfills": "^0.0.7",
|
|
143
|
+
"update-notifier": "^7.3.1",
|
|
144
|
+
"validate-npm-package-name": "^6.0.0"
|
|
145
|
+
},
|
|
146
|
+
"overrides": {
|
|
147
|
+
"@cyclonedx/cdxgen": {
|
|
148
|
+
"packageurl-js": "https://registry.npmjs.org/packageurl-js/-/packageurl-js-2.0.1.tgz"
|
|
8
149
|
},
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
"
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
"
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
"
|
|
21
|
-
|
|
150
|
+
"aggregate-error": "npm:@socketregistry/aggregate-error@^1",
|
|
151
|
+
"es-define-property": "npm:@socketregistry/es-define-property@^1",
|
|
152
|
+
"function-bind": "npm:@socketregistry/function-bind@^1",
|
|
153
|
+
"globalthis": "npm:@socketregistry/globalthis@^1",
|
|
154
|
+
"gopd": "npm:@socketregistry/gopd@^1",
|
|
155
|
+
"has-property-descriptors": "npm:@socketregistry/has-property-descriptors@^1",
|
|
156
|
+
"has-proto": "npm:@socketregistry/has-proto@^1",
|
|
157
|
+
"has-symbols": "npm:@socketregistry/has-symbols@^1",
|
|
158
|
+
"hasown": "npm:@socketregistry/hasown@^1",
|
|
159
|
+
"indent-string": "npm:@socketregistry/indent-string@^1",
|
|
160
|
+
"is-core-module": "npm:@socketregistry/is-core-module@^1",
|
|
161
|
+
"isarray": "npm:@socketregistry/isarray@^1",
|
|
162
|
+
"path-parse": "npm:@socketregistry/path-parse@^1",
|
|
163
|
+
"safe-buffer": "npm:@socketregistry/safe-buffer@^1",
|
|
164
|
+
"safer-buffer": "npm:@socketregistry/safer-buffer@^1",
|
|
165
|
+
"set-function-length": "npm:@socketregistry/set-function-length@^1",
|
|
166
|
+
"side-channel": "npm:@socketregistry/side-channel@^1"
|
|
167
|
+
},
|
|
168
|
+
"engines": {
|
|
169
|
+
"node": "^20.9.0 || >=22.0.0"
|
|
170
|
+
},
|
|
171
|
+
"files": [
|
|
172
|
+
"bin/**",
|
|
173
|
+
"dist/**",
|
|
174
|
+
"translations.json"
|
|
175
|
+
]
|
|
176
|
+
}
|