@socketsecurity/cli-with-sentry 0.14.44

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.
Files changed (57) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +121 -0
  3. package/bin/cli.js +57 -0
  4. package/bin/npm-cli.js +6 -0
  5. package/bin/npx-cli.js +6 -0
  6. package/dist/constants.d.ts +162 -0
  7. package/dist/constants.js +8 -0
  8. package/dist/constants.js.map +1 -0
  9. package/dist/init.gradle +250 -0
  10. package/dist/instrument-with-sentry.d.ts +1 -0
  11. package/dist/instrument-with-sentry.js +58 -0
  12. package/dist/instrument-with-sentry.js.map +1 -0
  13. package/dist/module-sync/cli.d.ts +2 -0
  14. package/dist/module-sync/cli.js +6851 -0
  15. package/dist/module-sync/cli.js.map +1 -0
  16. package/dist/module-sync/constants.js +3 -0
  17. package/dist/module-sync/constants2.d.ts +0 -0
  18. package/dist/module-sync/constants2.js +231 -0
  19. package/dist/module-sync/constants2.js.map +1 -0
  20. package/dist/module-sync/debug.d.ts +3 -0
  21. package/dist/module-sync/edge.d.ts +66 -0
  22. package/dist/module-sync/errors.d.ts +14 -0
  23. package/dist/module-sync/index.d.ts +192 -0
  24. package/dist/module-sync/index.js +1879 -0
  25. package/dist/module-sync/index.js.map +1 -0
  26. package/dist/module-sync/logging.d.ts +16 -0
  27. package/dist/module-sync/node.d.ts +84 -0
  28. package/dist/module-sync/npm-injection.d.ts +1 -0
  29. package/dist/module-sync/npm-injection.js +26 -0
  30. package/dist/module-sync/npm-injection.js.map +1 -0
  31. package/dist/module-sync/npm-paths.d.ts +15 -0
  32. package/dist/module-sync/npm-paths.js +423 -0
  33. package/dist/module-sync/npm-paths.js.map +1 -0
  34. package/dist/module-sync/npm.d.ts +24 -0
  35. package/dist/module-sync/npm.js +99 -0
  36. package/dist/module-sync/npm.js.map +1 -0
  37. package/dist/module-sync/path-resolve.d.ts +12 -0
  38. package/dist/module-sync/proc-log.d.ts +3 -0
  39. package/dist/module-sync/reify.d.ts +1018 -0
  40. package/dist/module-sync/sdk.d.ts +5 -0
  41. package/dist/module-sync/settings.d.ts +15 -0
  42. package/dist/module-sync/shadow-bin.d.ts +2 -0
  43. package/dist/module-sync/shadow-bin.js +103 -0
  44. package/dist/module-sync/shadow-bin.js.map +1 -0
  45. package/dist/module-sync/types.d.ts +45 -0
  46. package/dist/require/cli.js +6848 -0
  47. package/dist/require/constants.js +3 -0
  48. package/dist/require/index.js +3 -0
  49. package/dist/require/npm-injection.js +3 -0
  50. package/dist/require/npm-paths.js +3 -0
  51. package/dist/require/npm.js +3 -0
  52. package/dist/require/shadow-bin.js +3 -0
  53. package/dist/require/vendor.js +11474 -0
  54. package/package.json +245 -0
  55. package/shadow-bin/npm +4 -0
  56. package/shadow-bin/npx +4 -0
  57. package/translations.json +592 -0
package/package.json ADDED
@@ -0,0 +1,245 @@
1
+ {
2
+ "name": "@socketsecurity/cli-with-sentry",
3
+ "version": "0.14.44",
4
+ "description": "CLI tool for Socket.dev, includes Sentry error handling, otherwise identical to the regular `socket` package",
5
+ "homepage": "http://github.com/SocketDev/socket-cli",
6
+ "license": "MIT",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://github.com/SocketDev/socket-cli.git"
10
+ },
11
+ "author": {
12
+ "name": "Socket Inc",
13
+ "email": "eng@socket.dev",
14
+ "url": "https://socket.dev"
15
+ },
16
+ "bin": {
17
+ "socket-with-sentry": "bin/cli.js",
18
+ "socket-npm-with-sentry": "bin/npm-cli.js",
19
+ "socket-npx-with-sentry": "bin/npx-cli.js"
20
+ },
21
+ "exports": {
22
+ "./bin/cli.js": {
23
+ "types": "./dist/module-sync/cli.d.ts",
24
+ "default": "./dist/cli.js"
25
+ },
26
+ "./bin/npm-cli.js": {
27
+ "types": "./dist/module-sync/npm-cli.d.ts",
28
+ "default": "./dist/npm-cli.js"
29
+ },
30
+ "./bin/npx-cli.js": {
31
+ "types": "./dist/module-sync/npx-cli.d.ts",
32
+ "default": "./dist/npx-cli.js"
33
+ },
34
+ "./package.json": "./package.json",
35
+ "./translations.json": "./translations.json"
36
+ },
37
+ "scripts": {
38
+ "build": "run-s build:*",
39
+ "build:dist": "del-cli 'dist' && rollup -c .config/rollup.dist.config.mjs",
40
+ "build:test": "del-cli 'test/dist' && rollup -c .config/rollup.test.config.mjs",
41
+ "check": "run-p -c --aggregate-output check:*",
42
+ "check:lint": "eslint --report-unused-disable-directives .",
43
+ "check:lint:fix": "npm run check:lint -- --fix",
44
+ "check:tsc": "tsc",
45
+ "check:type-coverage": "type-coverage",
46
+ "check:type-coverage:detail": "npm run check:type-coverage -- --detail",
47
+ "clean": "run-p --aggregate-output clean:*",
48
+ "clean:dist": "del-cli 'dist' 'test/dist'",
49
+ "clean:node_modules": "del-cli '**/node_modules'",
50
+ "fix": "run-s lint:fix check:lint:fix",
51
+ "knip:dependencies": "knip --dependencies",
52
+ "knip:exports": "knip --include exports,duplicates",
53
+ "lint": "oxlint -c=./.oxlintrc.json --ignore-path=./.oxlintignore --tsconfig=./tsconfig.json .",
54
+ "lint:fix": "npm run lint -- --fix && npm run lint:fix:fast",
55
+ "lint:fix:fast": "biome format --write",
56
+ "lint-staged": "lint-staged",
57
+ "precommit": "lint-staged",
58
+ "prepare": "husky && custompatch",
59
+ "test": "run-s check build:* test:* test:coverage:*",
60
+ "test-ci": "run-s build:* test:*",
61
+ "test:unit": "tap-run",
62
+ "test:coverage:c8": "c8 --reporter=none node --test 'test/socket-npm.test.cjs'",
63
+ "test:coverage:merge": "cp -r .tap/coverage/*.json coverage/tmp && c8 --reporter=lcov --reporter=text --include 'dist/{module-sync,require}/*.js' --exclude 'dist/require/vendor.js' report",
64
+ "update": "run-p --aggregate-output update:**",
65
+ "update:deps": "npx --yes npm-check-updates"
66
+ },
67
+ "dependencies": {
68
+ "@apideck/better-ajv-errors": "^0.3.6",
69
+ "@cyclonedx/cdxgen": "^11.1.10",
70
+ "@npmcli/promise-spawn": "^8.0.2",
71
+ "@octokit/rest": "^21.1.1",
72
+ "@sentry/node": "9.2.0",
73
+ "@socketregistry/hyrious__bun.lockb": "^1.0.13",
74
+ "@socketregistry/indent-string": "^1.0.10",
75
+ "@socketregistry/is-interactive": "^1.0.1",
76
+ "@socketregistry/is-unicode-supported": "^1.0.0",
77
+ "@socketregistry/packageurl-js": "^1.0.2",
78
+ "@socketsecurity/config": "^2.1.3",
79
+ "@socketsecurity/registry": "^1.0.93",
80
+ "@socketsecurity/sdk": "^1.4.5",
81
+ "blessed": "^0.1.81",
82
+ "blessed-contrib": "^4.11.0",
83
+ "browserslist": "4.24.4",
84
+ "chalk-table": "^1.0.2",
85
+ "cmd-shim": "^7.0.0",
86
+ "fast-content-type-parse": "^2.0.1",
87
+ "has-flag": "4.0.0",
88
+ "hpagent": "^1.2.0",
89
+ "ignore": "^7.0.3",
90
+ "meow": "^13.2.0",
91
+ "micromatch": "^4.0.8",
92
+ "ndjson": "^2.0.0",
93
+ "npm-package-arg": "^12.0.2",
94
+ "open": "^10.1.0",
95
+ "pony-cause": "^2.1.11",
96
+ "semver": "^7.7.1",
97
+ "simple-git": "^3.27.0",
98
+ "synp": "^1.9.14",
99
+ "terminal-link": "2.1.1",
100
+ "tiny-updater": "^3.5.3",
101
+ "tinyglobby": "^0.2.12",
102
+ "which": "^5.0.0",
103
+ "yaml": "^2.7.0",
104
+ "yargs-parser": "^21.1.1",
105
+ "yoctocolors-cjs": "^2.1.2"
106
+ },
107
+ "devDependencies": {
108
+ "@babel/core": "^7.26.9",
109
+ "@babel/plugin-proposal-export-default-from": "^7.25.9",
110
+ "@babel/plugin-syntax-dynamic-import": "^7.8.3",
111
+ "@babel/plugin-transform-export-namespace-from": "^7.25.9",
112
+ "@babel/plugin-transform-runtime": "^7.26.9",
113
+ "@babel/preset-env": "^7.26.9",
114
+ "@babel/preset-typescript": "^7.26.0",
115
+ "@babel/runtime": "^7.26.9",
116
+ "@biomejs/biome": "^1.9.4",
117
+ "@eslint/compat": "^1.2.7",
118
+ "@eslint/js": "^9.21.0",
119
+ "@rollup/plugin-commonjs": "^28.0.2",
120
+ "@rollup/plugin-json": "^6.1.0",
121
+ "@rollup/plugin-node-resolve": "^16.0.0",
122
+ "@rollup/plugin-replace": "^6.0.2",
123
+ "@rollup/pluginutils": "^5.1.4",
124
+ "@tapjs/run": "^4.0.2",
125
+ "@types/blessed": "^0.1.25",
126
+ "@types/cmd-shim": "^5.0.2",
127
+ "@types/micromatch": "^4.0.9",
128
+ "@types/mocha": "^10.0.10",
129
+ "@types/mock-fs": "^4.13.4",
130
+ "@types/ndjson": "^2.0.4",
131
+ "@types/node": "^22.13.5",
132
+ "@types/npmcli__arborist": "^6.3.0",
133
+ "@types/npmcli__promise-spawn": "^6.0.3",
134
+ "@types/proc-log": "^3.0.4",
135
+ "@types/semver": "^7.5.8",
136
+ "@types/update-notifier": "^6.0.8",
137
+ "@types/which": "^3.0.4",
138
+ "@types/yargs-parser": "^21.0.3",
139
+ "@typescript-eslint/eslint-plugin": "^8.25.0",
140
+ "@typescript-eslint/parser": "^8.25.0",
141
+ "c8": "^10.1.3",
142
+ "custompatch": "^1.1.4",
143
+ "del-cli": "^6.0.0",
144
+ "eslint": "^9.21.0",
145
+ "eslint-import-resolver-oxc": "^0.12.0",
146
+ "eslint-plugin-depend": "^0.12.0",
147
+ "eslint-plugin-import-x": "^4.6.1",
148
+ "eslint-plugin-n": "^17.15.1",
149
+ "eslint-plugin-sort-destructure-keys": "^2.0.0",
150
+ "eslint-plugin-unicorn": "^56.0.1",
151
+ "husky": "^9.1.7",
152
+ "knip": "^5.45.0",
153
+ "lint-staged": "^15.4.3",
154
+ "magic-string": "^0.30.17",
155
+ "mock-fs": "^5.5.0",
156
+ "nock": "^14.0.1",
157
+ "npm-run-all2": "^7.0.2",
158
+ "oxlint": "0.15.12",
159
+ "read-package-up": "^11.0.0",
160
+ "rollup": "4.34.8",
161
+ "rollup-plugin-ts": "^3.4.5",
162
+ "type-coverage": "^2.29.7",
163
+ "typescript": "5.4.5",
164
+ "typescript-eslint": "^8.25.0",
165
+ "unplugin-purge-polyfills": "^0.0.7"
166
+ },
167
+ "overrides": {
168
+ "aggregate-error": "npm:@socketregistry/aggregate-error@^1",
169
+ "es-define-property": "npm:@socketregistry/es-define-property@^1",
170
+ "function-bind": "npm:@socketregistry/function-bind@^1",
171
+ "globalthis": "npm:@socketregistry/globalthis@^1",
172
+ "gopd": "npm:@socketregistry/gopd@^1",
173
+ "has-property-descriptors": "npm:@socketregistry/has-property-descriptors@^1",
174
+ "has-proto": "npm:@socketregistry/has-proto@^1",
175
+ "has-symbols": "npm:@socketregistry/has-symbols@^1",
176
+ "hasown": "npm:@socketregistry/hasown@^1",
177
+ "indent-string": "$@socketregistry/indent-string",
178
+ "is-core-module": "npm:@socketregistry/is-core-module@^1",
179
+ "isarray": "npm:@socketregistry/isarray@^1",
180
+ "npm-package-arg": "$npm-package-arg",
181
+ "packageurl-js": "$@socketregistry/packageurl-js",
182
+ "path-parse": "npm:@socketregistry/path-parse@^1",
183
+ "safe-buffer": "npm:@socketregistry/safe-buffer@^1",
184
+ "safer-buffer": "npm:@socketregistry/safer-buffer@^1",
185
+ "semver": "$semver",
186
+ "set-function-length": "npm:@socketregistry/set-function-length@^1",
187
+ "shell-quote": "npm:shell-quote@^1",
188
+ "side-channel": "npm:@socketregistry/side-channel@^1",
189
+ "tiny-colors": "$yoctocolors-cjs",
190
+ "typedarray": "npm:@socketregistry/typedarray@^1",
191
+ "yaml": "$yaml"
192
+ },
193
+ "resolutions": {
194
+ "aggregate-error": "npm:@socketregistry/aggregate-error@^1",
195
+ "es-define-property": "npm:@socketregistry/es-define-property@^1",
196
+ "function-bind": "npm:@socketregistry/function-bind@^1",
197
+ "globalthis": "npm:@socketregistry/globalthis@^1",
198
+ "gopd": "npm:@socketregistry/gopd@^1",
199
+ "has-property-descriptors": "npm:@socketregistry/has-property-descriptors@^1",
200
+ "has-proto": "npm:@socketregistry/has-proto@^1",
201
+ "has-symbols": "npm:@socketregistry/has-symbols@^1",
202
+ "hasown": "npm:@socketregistry/hasown@^1",
203
+ "indent-string": "npm:@socketregistry/indent-string@^1",
204
+ "is-core-module": "npm:@socketregistry/is-core-module@^1",
205
+ "isarray": "npm:@socketregistry/isarray@^1",
206
+ "npm-package-arg": "^12.0.0",
207
+ "packageurl-js": "npm:@socketregistry/packageurl-js@^1",
208
+ "path-parse": "npm:@socketregistry/path-parse@^1",
209
+ "safe-buffer": "npm:@socketregistry/safe-buffer@^1",
210
+ "safer-buffer": "npm:@socketregistry/safer-buffer@^1",
211
+ "semver": "^7.6.3",
212
+ "set-function-length": "npm:@socketregistry/set-function-length@^1",
213
+ "shell-quote": "npm:shell-quote@^1",
214
+ "side-channel": "npm:@socketregistry/side-channel@^1",
215
+ "tiny-colors": "npm:yoctocolors-cjs@^2.1.2",
216
+ "typedarray": "npm:@socketregistry/typedarray@^1",
217
+ "yaml": "^2.6.0"
218
+ },
219
+ "engines": {
220
+ "node": "^18.20.4 || ^20.9.0 || >=22.0.0"
221
+ },
222
+ "files": [
223
+ "bin/**",
224
+ "dist/**",
225
+ "shadow-bin/**",
226
+ "translations.json"
227
+ ],
228
+ "lint-staged": {
229
+ "*.{cjs,js,json,md,mjs,ts}": [
230
+ "npm run lint -- --fix",
231
+ "npm run lint:fix:fast -- --no-errors-on-unmatched --files-ignore-unknown=true --colors=off"
232
+ ]
233
+ },
234
+ "typeCoverage": {
235
+ "cache": true,
236
+ "atLeast": 95,
237
+ "ignoreAsAssertion": true,
238
+ "ignoreCatch": true,
239
+ "ignoreEmptyType": true,
240
+ "ignore-non-null-assertion": true,
241
+ "ignore-type-assertion": true,
242
+ "ignore-files": "test/*",
243
+ "strict": true
244
+ }
245
+ }
package/shadow-bin/npm ADDED
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env node
2
+ 'use strict'
3
+
4
+ require(`../bin/npm-cli.js`)
package/shadow-bin/npx ADDED
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env node
2
+ 'use strict'
3
+
4
+ require(`../bin/npx-cli.js`)