@socketsecurity/cli-with-sentry 0.14.66 → 0.14.68

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 (97) hide show
  1. package/dist/blessed/lib/alias.js +521 -0
  2. package/dist/blessed/lib/blessed.js +34 -0
  3. package/dist/blessed/lib/colors.js +492 -0
  4. package/dist/blessed/lib/events.js +197 -0
  5. package/dist/blessed/lib/gpmclient.js +247 -0
  6. package/dist/blessed/lib/helpers.js +172 -0
  7. package/dist/blessed/lib/keys.js +514 -0
  8. package/dist/blessed/lib/program.js +4532 -0
  9. package/dist/blessed/lib/tput.js +3113 -0
  10. package/dist/blessed/lib/unicode.js +914 -0
  11. package/dist/blessed/lib/widget.js +62 -0
  12. package/dist/blessed/lib/widgets/ansiimage.js +175 -0
  13. package/dist/blessed/lib/widgets/bigtext.js +172 -0
  14. package/dist/blessed/lib/widgets/box.js +36 -0
  15. package/dist/blessed/lib/widgets/button.js +64 -0
  16. package/dist/blessed/lib/widgets/checkbox.js +97 -0
  17. package/dist/blessed/lib/widgets/element.js +2873 -0
  18. package/dist/blessed/lib/widgets/filemanager.js +225 -0
  19. package/dist/blessed/lib/widgets/form.js +303 -0
  20. package/dist/blessed/lib/widgets/image.js +73 -0
  21. package/dist/blessed/lib/widgets/input.js +36 -0
  22. package/dist/blessed/lib/widgets/layout.js +251 -0
  23. package/dist/blessed/lib/widgets/line.js +61 -0
  24. package/dist/blessed/lib/widgets/list.js +654 -0
  25. package/dist/blessed/lib/widgets/listbar.js +454 -0
  26. package/dist/blessed/lib/widgets/listtable.js +267 -0
  27. package/dist/blessed/lib/widgets/loading.js +90 -0
  28. package/dist/blessed/lib/widgets/log.js +84 -0
  29. package/dist/blessed/lib/widgets/message.js +147 -0
  30. package/dist/blessed/lib/widgets/node.js +316 -0
  31. package/dist/blessed/lib/widgets/overlayimage.js +796 -0
  32. package/dist/blessed/lib/widgets/progressbar.js +168 -0
  33. package/dist/blessed/lib/widgets/prompt.js +129 -0
  34. package/dist/blessed/lib/widgets/question.js +131 -0
  35. package/dist/blessed/lib/widgets/radiobutton.js +64 -0
  36. package/dist/blessed/lib/widgets/radioset.js +38 -0
  37. package/dist/blessed/lib/widgets/screen.js +2489 -0
  38. package/dist/blessed/lib/widgets/scrollablebox.js +417 -0
  39. package/dist/blessed/lib/widgets/scrollabletext.js +37 -0
  40. package/dist/blessed/lib/widgets/table.js +385 -0
  41. package/dist/blessed/lib/widgets/terminal.js +454 -0
  42. package/dist/blessed/lib/widgets/text.js +37 -0
  43. package/dist/blessed/lib/widgets/textarea.js +378 -0
  44. package/dist/blessed/lib/widgets/textbox.js +81 -0
  45. package/dist/blessed/lib/widgets/video.js +132 -0
  46. package/dist/blessed/usr/fonts/AUTHORS +1 -0
  47. package/dist/blessed/usr/fonts/LICENSE +94 -0
  48. package/dist/blessed/usr/fonts/README +340 -0
  49. package/dist/blessed/usr/fonts/ter-u14b.json +17826 -0
  50. package/dist/blessed/usr/fonts/ter-u14n.json +17826 -0
  51. package/dist/blessed/usr/linux +0 -0
  52. package/dist/blessed/usr/windows-ansi +0 -0
  53. package/dist/blessed/usr/xterm +0 -0
  54. package/dist/blessed/usr/xterm-256color +0 -0
  55. package/dist/blessed/usr/xterm.termcap +243 -0
  56. package/dist/blessed/usr/xterm.terminfo +1977 -0
  57. package/dist/blessed/vendor/tng.js +1878 -0
  58. package/dist/constants.d.ts +271 -205
  59. package/dist/constants.js +273 -221
  60. package/dist/constants.js.map +1 -1
  61. package/dist/instrument-with-sentry.d.ts +1 -1
  62. package/dist/instrument-with-sentry.js +27 -24
  63. package/dist/instrument-with-sentry.js.map +1 -1
  64. package/dist/module-sync/artifact.d.ts +60 -26
  65. package/dist/module-sync/cli.d.ts +1 -1
  66. package/dist/module-sync/cli.js +6991 -4413
  67. package/dist/module-sync/cli.js.map +1 -1
  68. package/dist/module-sync/cmd.d.ts +4 -4
  69. package/dist/module-sync/config.d.ts +32 -0
  70. package/dist/module-sync/edge.d.ts +73 -60
  71. package/dist/module-sync/errors.d.ts +26 -11
  72. package/dist/module-sync/fs.d.ts +61 -0
  73. package/dist/module-sync/index.d.ts +31 -20
  74. package/dist/module-sync/node.d.ts +118 -83
  75. package/dist/module-sync/override-set.d.ts +39 -33
  76. package/dist/module-sync/package-environment.d.ts +83 -52
  77. package/dist/module-sync/path-resolve.d.ts +14 -9
  78. package/dist/module-sync/sdk.d.ts +9 -5
  79. package/dist/module-sync/shadow-bin.d.ts +5 -2
  80. package/dist/module-sync/shadow-bin.js +82 -66
  81. package/dist/module-sync/shadow-bin.js.map +1 -1
  82. package/dist/module-sync/shadow-npm-inject.d.ts +1 -1
  83. package/dist/module-sync/shadow-npm-inject.js +1209 -1006
  84. package/dist/module-sync/shadow-npm-inject.js.map +1 -1
  85. package/dist/module-sync/shadow-npm-paths.d.ts +28 -14
  86. package/dist/module-sync/shadow-npm-paths.js +286 -209
  87. package/dist/module-sync/shadow-npm-paths.js.map +1 -1
  88. package/dist/module-sync/socket-package-alert.d.ts +95 -39
  89. package/dist/module-sync/types.d.ts +75 -47
  90. package/dist/module-sync/vendor.js +11181 -0
  91. package/dist/{require → module-sync}/vendor.js.map +1 -1
  92. package/dist/require/cli.d.ts +1 -1
  93. package/dist/require/cli.js +6991 -4411
  94. package/dist/require/cli.js.map +1 -1
  95. package/dist/require/vendor.js +2 -9145
  96. package/package.json +49 -41
  97. package/dist/module-sync/settings.d.ts +0 -15
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@socketsecurity/cli-with-sentry",
3
- "version": "0.14.66",
3
+ "version": "0.14.68",
4
4
  "description": "CLI tool for Socket.dev, includes Sentry error handling, otherwise identical to the regular `socket` package",
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:fix": "npm run check:lint -- --fix",
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,42 +49,46 @@
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-s lint:fix check:lint:fix",
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:fix": "npm run lint -- --fix && npm run lint:fix:fast",
57
- "lint:fix:fast": "biome format --write",
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
- "@pnpm/lockfile-file": "^9.1.3",
77
- "@pnpm/lockfile.detect-dep-types": "^1001.0.5",
78
- "@sentry/node": "9.8.0",
79
- "@socketregistry/hyrious__bun.lockb": "1.0.16",
81
+ "@pnpm/lockfile.detect-dep-types": "^1001.0.6",
82
+ "@pnpm/lockfile.fs": "^1001.1.8",
83
+ "@pnpm/logger": "^1000.0.0",
84
+ "@sentry/node": "9.10.1",
85
+ "@socketregistry/hyrious__bun.lockb": "1.0.17",
80
86
  "@socketregistry/indent-string": "1.0.12",
81
- "@socketregistry/is-interactive": "1.0.4",
82
- "@socketregistry/packageurl-js": "1.0.4",
87
+ "@socketregistry/is-interactive": "1.0.5",
88
+ "@socketregistry/packageurl-js": "1.0.5",
83
89
  "@socketsecurity/config": "2.1.3",
84
- "@socketsecurity/registry": "1.0.133",
85
- "@socketsecurity/sdk": "1.4.15",
86
- "blessed": "0.1.81",
87
- "blessed-contrib": "4.11.0",
90
+ "@socketsecurity/registry": "1.0.137",
91
+ "@socketsecurity/sdk": "1.4.22",
88
92
  "browserslist": "4.24.4",
89
93
  "chalk-table": "1.0.2",
90
94
  "cmd-shim": "7.0.0",
@@ -101,7 +105,7 @@
101
105
  "tiny-updater": "3.5.3",
102
106
  "tinyglobby": "0.2.12",
103
107
  "which": "5.0.0",
104
- "yaml": "2.7.0",
108
+ "yaml": "2.7.1",
105
109
  "yargs-parser": "21.1.1",
106
110
  "yoctocolors-cjs": "2.1.2"
107
111
  },
@@ -112,56 +116,60 @@
112
116
  "@babel/plugin-transform-export-namespace-from": "^7.25.9",
113
117
  "@babel/plugin-transform-runtime": "^7.26.10",
114
118
  "@babel/preset-env": "^7.26.9",
115
- "@babel/preset-typescript": "^7.26.0",
116
- "@babel/runtime": "^7.26.10",
119
+ "@babel/preset-typescript": "^7.27.0",
120
+ "@babel/runtime": "^7.27.0",
117
121
  "@biomejs/biome": "^1.9.4",
118
- "@cyclonedx/cdxgen": "^11.2.2",
119
- "@eslint/compat": "^1.2.7",
122
+ "@cyclonedx/cdxgen": "^11.2.3",
123
+ "@eslint/compat": "^1.2.8",
120
124
  "@eslint/js": "^9.23.0",
121
- "@rollup/plugin-commonjs": "^28.0.3",
125
+ "@rollup/plugin-commonjs": "28.0.3",
122
126
  "@rollup/plugin-json": "^6.1.0",
123
127
  "@rollup/plugin-node-resolve": "^16.0.1",
124
128
  "@rollup/plugin-replace": "^6.0.2",
125
129
  "@rollup/pluginutils": "^5.1.4",
126
- "@types/blessed": "^0.1.25",
130
+ "@types/blessed": "0.1.25",
127
131
  "@types/cmd-shim": "^5.0.2",
128
132
  "@types/common-tags": "^1.8.4",
129
133
  "@types/micromatch": "^4.0.9",
130
134
  "@types/mock-fs": "^4.13.4",
131
- "@types/node": "^22.13.11",
135
+ "@types/node": "^22.13.17",
132
136
  "@types/npmcli__arborist": "^6.3.0",
133
137
  "@types/proc-log": "^3.0.4",
134
- "@types/semver": "^7.5.8",
138
+ "@types/semver": "^7.7.0",
135
139
  "@types/which": "^3.0.4",
136
140
  "@types/yargs-parser": "^21.0.3",
137
- "@typescript-eslint/parser": "^8.27.0",
138
- "@vitest/coverage-v8": "3.0.9",
141
+ "@typescript-eslint/parser": "^8.29.0",
142
+ "@vitest/coverage-v8": "3.1.1",
143
+ "blessed": "0.1.81",
144
+ "blessed-contrib": "4.11.0",
139
145
  "cross-env": "^7.0.3",
146
+ "custompatch": "^1.1.4",
140
147
  "del-cli": "^6.0.0",
148
+ "dev-null-cli": "^2.0.0",
141
149
  "eslint": "^9.23.0",
142
- "eslint-import-resolver-oxc": "^0.13.1",
143
- "eslint-plugin-import-x": "^4.9.1",
144
- "eslint-plugin-n": "^17.16.2",
150
+ "eslint-import-resolver-typescript": "^4.3.1",
151
+ "eslint-plugin-import-x": "^4.10.0",
152
+ "eslint-plugin-n": "^17.17.0",
145
153
  "eslint-plugin-sort-destructure-keys": "^2.0.0",
146
154
  "eslint-plugin-unicorn": "^56.0.1",
147
155
  "globals": "^16.0.0",
148
156
  "husky": "^9.1.7",
149
- "knip": "^5.46.0",
157
+ "knip": "^5.46.5",
150
158
  "lint-staged": "^15.5.0",
151
159
  "magic-string": "^0.30.17",
152
160
  "mock-fs": "^5.5.0",
153
- "nock": "^14.0.1",
161
+ "nock": "^14.0.2",
154
162
  "npm-run-all2": "^7.0.2",
155
- "oxlint": "0.16.2",
163
+ "oxlint": "0.16.4",
156
164
  "read-package-up": "^11.0.0",
157
- "rollup": "4.36.0",
165
+ "rollup": "4.39.0",
158
166
  "rollup-plugin-ts": "^3.4.5",
159
167
  "synp": "^1.9.14",
160
168
  "type-coverage": "^2.29.7",
161
169
  "typescript": "5.4.5",
162
- "typescript-eslint": "^8.27.0",
170
+ "typescript-eslint": "^8.29.0",
163
171
  "unplugin-purge-polyfills": "^0.0.7",
164
- "vitest": "3.0.9"
172
+ "vitest": "3.1.1"
165
173
  },
166
174
  "overrides": {
167
175
  "aggregate-error": "npm:@socketregistry/aggregate-error@^1",
@@ -188,9 +196,9 @@
188
196
  "tiny-colors": "$yoctocolors-cjs",
189
197
  "typedarray": "npm:@socketregistry/typedarray@^1",
190
198
  "undici": "^6.21.1",
191
- "vite": "^6.2.0",
199
+ "vite": "^6.2.4",
192
200
  "xml2js": "^0.5.0",
193
- "yaml": "2.7.0"
201
+ "yaml": "2.7.1"
194
202
  },
195
203
  "engines": {
196
204
  "node": "^18.20.7 || ^20.18.3 || >=22.14.0"
@@ -1,15 +0,0 @@
1
- import config from '@socketsecurity/config';
2
- interface Settings {
3
- apiBaseUrl?: string | null | undefined;
4
- apiKey?: string | null | undefined;
5
- apiProxy?: string | null | undefined;
6
- enforcedOrgs?: string[] | readonly string[] | null | undefined;
7
- apiToken?: string | null | undefined;
8
- }
9
- declare function findSocketYmlSync(): {
10
- path: string;
11
- parsed: config.SocketYml;
12
- } | null;
13
- declare function getSetting<Key extends keyof Settings>(key: Key): Settings[Key];
14
- declare function updateSetting<Key extends keyof Settings>(key: Key, value: Settings[Key]): void;
15
- export { findSocketYmlSync, getSetting, updateSetting };