socket 1.1.3 → 1.1.4
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/CHANGELOG.md +426 -0
- package/bin/cli.js +3 -1
- package/dist/cli.js +362 -400
- package/dist/cli.js.map +1 -1
- package/dist/constants.js +211 -19
- package/dist/constants.js.map +1 -1
- package/dist/flags.js +3 -3
- package/dist/flags.js.map +1 -1
- package/dist/shadow-npm-bin.js +14 -14
- package/dist/shadow-npm-bin.js.map +1 -1
- package/dist/shadow-npm-inject.js +16 -16
- package/dist/shadow-npm-inject.js.map +1 -1
- package/dist/tsconfig.dts.tsbuildinfo +1 -1
- package/dist/types/commands/ci/handle-ci.d.mts.map +1 -1
- package/dist/types/commands/fix/cmd-fix.d.mts.map +1 -1
- package/dist/types/commands/npm/cmd-npm.d.mts +1 -1
- package/dist/types/commands/npm/cmd-npm.d.mts.map +1 -1
- package/dist/types/commands/optimize/add-overrides.d.mts.map +1 -1
- package/dist/types/commands/patch/cmd-patch.d.mts.map +1 -1
- package/dist/types/commands/patch/handle-patch.d.mts +9 -2
- package/dist/types/commands/patch/handle-patch.d.mts.map +1 -1
- package/dist/types/commands/patch/output-patch-result.d.mts +1 -1
- package/dist/types/commands/patch/output-patch-result.d.mts.map +1 -1
- package/dist/types/commands/scan/cmd-scan-create.d.mts.map +1 -1
- package/dist/types/commands/scan/cmd-scan-github.d.mts.map +1 -1
- package/dist/types/commands/scan/cmd-scan-report.d.mts.map +1 -1
- package/dist/types/commands/scan/create-scan-from-github.d.mts.map +1 -1
- package/dist/types/commands/scan/generate-report.d.mts +9 -8
- package/dist/types/commands/scan/generate-report.d.mts.map +1 -1
- package/dist/types/commands/scan/handle-create-new-scan.d.mts +5 -2
- package/dist/types/commands/scan/handle-create-new-scan.d.mts.map +1 -1
- package/dist/types/commands/scan/handle-scan-report.d.mts +7 -5
- package/dist/types/commands/scan/handle-scan-report.d.mts.map +1 -1
- package/dist/types/commands/scan/output-scan-report.d.mts +10 -8
- package/dist/types/commands/scan/output-scan-report.d.mts.map +1 -1
- package/dist/types/commands/scan/perform-reachability-analysis.d.mts.map +1 -1
- package/dist/types/commands/scan/types.d.mts +3 -0
- package/dist/types/commands/scan/types.d.mts.map +1 -0
- package/dist/types/constants.d.mts +99 -46
- package/dist/types/constants.d.mts.map +1 -1
- package/dist/types/shadow/npm/arborist-helpers.d.mts +1 -17
- package/dist/types/shadow/npm/arborist-helpers.d.mts.map +1 -1
- package/dist/types/shadow/npm/bin.d.mts +4 -3
- package/dist/types/shadow/npm/bin.d.mts.map +1 -1
- package/dist/types/utils/coana.d.mts.map +1 -1
- package/dist/types/utils/ecosystem.d.mts.map +1 -1
- package/dist/types/utils/get-output-kind.d.mts.map +1 -1
- package/dist/types/utils/glob.d.mts.map +1 -1
- package/dist/types/utils/package-environment.d.mts.map +1 -1
- package/dist/types/utils/purl.d.mts +25 -9
- package/dist/types/utils/purl.d.mts.map +1 -1
- package/dist/types/utils/spec.d.mts.map +1 -1
- package/dist/utils.js +120 -102
- package/dist/utils.js.map +1 -1
- package/dist/vendor.js +222 -4598
- package/external/@socketsecurity/registry/lib/constants/env.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/ext-cjs.js +3 -0
- package/external/@socketsecurity/registry/lib/constants/ext-cts.js +3 -0
- package/external/@socketsecurity/registry/lib/constants/ext-dts.js +3 -0
- package/external/@socketsecurity/registry/lib/constants/ext-js.js +3 -0
- package/external/@socketsecurity/registry/lib/constants/ext-json.js +3 -0
- package/external/@socketsecurity/registry/lib/constants/ext-lock.js +3 -0
- package/external/@socketsecurity/registry/lib/constants/ext-lockb.js +3 -0
- package/external/@socketsecurity/registry/lib/constants/ext-md.js +3 -0
- package/external/@socketsecurity/registry/lib/constants/ext-mjs.js +3 -0
- package/external/@socketsecurity/registry/lib/constants/ext-mts.js +3 -0
- package/external/@socketsecurity/registry/lib/constants/index.js +82 -83
- package/external/@socketsecurity/registry/lib/constants/ipc-promise.js +4 -5
- package/external/@socketsecurity/registry/lib/constants/node-debug-flags.js +9 -0
- package/external/@socketsecurity/registry/lib/constants/pnpm.js +3 -0
- package/external/@socketsecurity/registry/lib/constants/yarn-lock.js +3 -0
- package/external/@socketsecurity/registry/lib/json.js +11 -0
- package/external/@socketsecurity/registry/lib/strings.js +16 -0
- package/package.json +12 -11
- package/external/@socketsecurity/registry/lib/constants/socket-public-api-key.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/tap.js +0 -3
- /package/external/@socketsecurity/registry/lib/constants/{ipc.js → ipc-object.js} +0 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,426 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
|
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
|
|
6
|
+
|
|
7
|
+
## [1.1.4](https://github.com/SocketDev/socket-cli/releases/tag/v1.1.4) - 2025-09-09
|
|
8
|
+
|
|
9
|
+
### Added
|
|
10
|
+
- Added CHANGELOG.md to track user-facing changes
|
|
11
|
+
- Added CLAUDE.md for development guidance
|
|
12
|
+
- Added `--report-level` flag to `socket scan create`
|
|
13
|
+
|
|
14
|
+
## [1.1.1](https://github.com/SocketDev/socket-cli/releases/tag/v1.1.1) - 2025-09-04
|
|
15
|
+
|
|
16
|
+
### Changed
|
|
17
|
+
- Updated tab completion functionality
|
|
18
|
+
- Improved spinner integration
|
|
19
|
+
|
|
20
|
+
### Removed
|
|
21
|
+
- Removed `--test` and `--test-script` flags from user interface
|
|
22
|
+
- Removed dead legacy `socket fix` code
|
|
23
|
+
|
|
24
|
+
## [1.1.0](https://github.com/SocketDev/socket-cli/releases/tag/v1.1.0) - 2025-09-03
|
|
25
|
+
|
|
26
|
+
### Added
|
|
27
|
+
- Added package version information to `socket npm` reports
|
|
28
|
+
|
|
29
|
+
### Changed
|
|
30
|
+
- Improved messaging for repeat `socket npm` installs
|
|
31
|
+
- Enhanced timeout handling with try-catch for batch purl timeouts
|
|
32
|
+
- Hide audit functionality on repeat `socket npm` installs
|
|
33
|
+
|
|
34
|
+
### Fixed
|
|
35
|
+
- Fixed file system method implementations
|
|
36
|
+
- Fixed boolean value coercion in configurations
|
|
37
|
+
|
|
38
|
+
### Removed
|
|
39
|
+
- Removed legacy `socket fix` code
|
|
40
|
+
|
|
41
|
+
## [1.0.111](https://github.com/SocketDev/socket-cli/releases/tag/v1.0.111) - 2025-09-03
|
|
42
|
+
|
|
43
|
+
### Added
|
|
44
|
+
- Reimplemented `--range-style` flag for `socket fix`
|
|
45
|
+
|
|
46
|
+
### Fixed
|
|
47
|
+
- Fixed reachability analysis and `socket fix` in CI environments
|
|
48
|
+
|
|
49
|
+
## [1.0.110](https://github.com/SocketDev/socket-cli/releases/tag/v1.0.110) - 2025-09-03
|
|
50
|
+
|
|
51
|
+
### Changed
|
|
52
|
+
- Enhanced reachability analysis and `socket fix` for better output handling
|
|
53
|
+
|
|
54
|
+
## [1.0.109](https://github.com/SocketDev/socket-cli/releases/tag/v1.0.109) - 2025-09-03
|
|
55
|
+
|
|
56
|
+
### Changed
|
|
57
|
+
- Avoid setting `NODE_ENV` when built
|
|
58
|
+
|
|
59
|
+
## [1.0.108](https://github.com/SocketDev/socket-cli/releases/tag/v1.0.108) - 2025-09-03
|
|
60
|
+
|
|
61
|
+
### Changed
|
|
62
|
+
- Made shadow bin runs more silent
|
|
63
|
+
|
|
64
|
+
## [1.0.107](https://github.com/SocketDev/socket-cli/releases/tag/v1.0.107) - 2025-09-02
|
|
65
|
+
|
|
66
|
+
### Fixed
|
|
67
|
+
- Fixed build regression
|
|
68
|
+
|
|
69
|
+
## [1.0.106](https://github.com/SocketDev/socket-cli/releases/tag/v1.0.106) - 2025-09-02
|
|
70
|
+
|
|
71
|
+
### Added
|
|
72
|
+
- Added `--reach-skip-cache` flag to disable reachability analysis configuration caching
|
|
73
|
+
|
|
74
|
+
## [1.0.104](https://github.com/SocketDev/socket-cli/releases/tag/v1.0.104) - 2025-08-29
|
|
75
|
+
|
|
76
|
+
### Fixed
|
|
77
|
+
- Improved GHSA resolving functionality
|
|
78
|
+
|
|
79
|
+
## [1.0.103](https://github.com/SocketDev/socket-cli/releases/tag/v1.0.103) - 2025-08-29
|
|
80
|
+
|
|
81
|
+
### Fixed
|
|
82
|
+
- Fixed GHSA resolving issues
|
|
83
|
+
|
|
84
|
+
## [1.0.102](https://github.com/SocketDev/socket-cli/releases/tag/v1.0.102) - 2025-08-29
|
|
85
|
+
|
|
86
|
+
### Fixed
|
|
87
|
+
- Fixed `cmdFlagValueToArray` function
|
|
88
|
+
|
|
89
|
+
## [1.0.100](https://github.com/SocketDev/socket-cli/releases/tag/v1.0.100) - 2025-08-29
|
|
90
|
+
|
|
91
|
+
### Added
|
|
92
|
+
- Added more debug information for GHSA details
|
|
93
|
+
|
|
94
|
+
## [1.0.96](https://github.com/SocketDev/socket-cli/releases/tag/v1.0.96) - 2025-08-27
|
|
95
|
+
|
|
96
|
+
### Changed
|
|
97
|
+
- Improved `--org` flag usage with reachability analysis
|
|
98
|
+
|
|
99
|
+
## [1.0.89](https://github.com/SocketDev/socket-cli/releases/tag/v1.0.89) - 2025-08-15
|
|
100
|
+
|
|
101
|
+
### Added
|
|
102
|
+
- Added support for uploading all manifest files when running `socket scan create --reach`
|
|
103
|
+
|
|
104
|
+
## [1.0.85](https://github.com/SocketDev/socket-cli/releases/tag/v1.0.85) - 2025-08-01
|
|
105
|
+
|
|
106
|
+
### Added
|
|
107
|
+
- Added support for `SOCKET_CLI_NPM_PATH` environment variable
|
|
108
|
+
|
|
109
|
+
## [1.0.82](https://github.com/SocketDev/socket-cli/releases/tag/v1.0.82) - 2025-07-30
|
|
110
|
+
|
|
111
|
+
### Added
|
|
112
|
+
- Added support for `--max-old-space-size` and `--max-semi-space-size` flags
|
|
113
|
+
|
|
114
|
+
## [1.0.80](https://github.com/SocketDev/socket-cli/releases/tag/v1.0.80) - 2025-07-29
|
|
115
|
+
|
|
116
|
+
### Changed
|
|
117
|
+
- Add back logging of local files found in `socket scan create`
|
|
118
|
+
|
|
119
|
+
## [1.0.73](https://github.com/SocketDev/socket-cli/releases/tag/v1.0.73) - 2025-07-14
|
|
120
|
+
|
|
121
|
+
### Added
|
|
122
|
+
- Added support for finding `.socket.facts.json` files
|
|
123
|
+
|
|
124
|
+
## [1.0.69](https://github.com/SocketDev/socket-cli/releases/tag/v1.0.69) - 2025-07-10
|
|
125
|
+
|
|
126
|
+
### Added
|
|
127
|
+
- Added `--no-pr-check` flag to `socket fix`
|
|
128
|
+
|
|
129
|
+
## [1.0.10](https://github.com/SocketDev/socket-cli/releases/tag/v1.0.10) - 2025-06-28
|
|
130
|
+
|
|
131
|
+
### Changed
|
|
132
|
+
- Various improvements and optimizations
|
|
133
|
+
|
|
134
|
+
## [1.0.9](https://github.com/SocketDev/socket-cli/releases/tag/v1.0.9) - 2025-06-28
|
|
135
|
+
|
|
136
|
+
### Changed
|
|
137
|
+
- Bug fixes and performance improvements
|
|
138
|
+
|
|
139
|
+
## [1.0.8](https://github.com/SocketDev/socket-cli/releases/tag/v1.0.8) - 2025-06-27
|
|
140
|
+
|
|
141
|
+
### Changed
|
|
142
|
+
- Internal improvements and optimizations
|
|
143
|
+
|
|
144
|
+
## [1.0.7](https://github.com/SocketDev/socket-cli/releases/tag/v1.0.7) - 2025-06-25
|
|
145
|
+
|
|
146
|
+
### Changed
|
|
147
|
+
- Code quality improvements
|
|
148
|
+
|
|
149
|
+
## [1.0.6](https://github.com/SocketDev/socket-cli/releases/tag/v1.0.6) - 2025-06-25
|
|
150
|
+
|
|
151
|
+
### Changed
|
|
152
|
+
- Minor bug fixes and improvements
|
|
153
|
+
|
|
154
|
+
## [1.0.5](https://github.com/SocketDev/socket-cli/releases/tag/v1.0.5) - 2025-06-25
|
|
155
|
+
|
|
156
|
+
### Changed
|
|
157
|
+
- Performance optimizations
|
|
158
|
+
|
|
159
|
+
## [1.0.4](https://github.com/SocketDev/socket-cli/releases/tag/v1.0.4) - 2025-06-25
|
|
160
|
+
|
|
161
|
+
### Changed
|
|
162
|
+
- Bug fixes and stability improvements
|
|
163
|
+
|
|
164
|
+
## [1.0.3](https://github.com/SocketDev/socket-cli/releases/tag/v1.0.3) - 2025-06-25
|
|
165
|
+
|
|
166
|
+
### Added
|
|
167
|
+
- Load npm config as part of `socket fix`
|
|
168
|
+
|
|
169
|
+
## [1.0.2](https://github.com/SocketDev/socket-cli/releases/tag/v1.0.2) - 2025-06-25
|
|
170
|
+
|
|
171
|
+
### Added
|
|
172
|
+
- Added spinner to reachability scan
|
|
173
|
+
|
|
174
|
+
## [1.0.1](https://github.com/SocketDev/socket-cli/releases/tag/v1.0.1) - 2025-06-24
|
|
175
|
+
|
|
176
|
+
### Added
|
|
177
|
+
- Package manager version logging to info
|
|
178
|
+
- Organization persistence when selecting orgs
|
|
179
|
+
|
|
180
|
+
### Changed
|
|
181
|
+
- Made `socket fix` command reuse implementations for better efficiency
|
|
182
|
+
- Normalized options passed to `socket fix`
|
|
183
|
+
- Improved banner spacing logic
|
|
184
|
+
- Enhanced default org feedback and call-to-action
|
|
185
|
+
|
|
186
|
+
## [1.0.0](https://github.com/SocketDev/socket-cli/releases/tag/v1.0.0) - 2025-06-13
|
|
187
|
+
|
|
188
|
+
### Added
|
|
189
|
+
- Official v1.0.0 release
|
|
190
|
+
- Added `socket org deps` alias command
|
|
191
|
+
|
|
192
|
+
### Changed
|
|
193
|
+
- Moved dependencies command to a subcommand of organization
|
|
194
|
+
- Improved UX for threat-feed and audit-logs
|
|
195
|
+
- Removed Node 18 deprecation warnings
|
|
196
|
+
- Removed v1 preparation flags
|
|
197
|
+
|
|
198
|
+
## [0.15.64](https://github.com/SocketDev/socket-cli/releases/tag/v0.15.64) - 2025-06-13
|
|
199
|
+
|
|
200
|
+
### Fixed
|
|
201
|
+
- Improved `socket fix` error handling when server rejects request
|
|
202
|
+
|
|
203
|
+
### Changed
|
|
204
|
+
- Final pre-v1.0.0 stability improvements
|
|
205
|
+
|
|
206
|
+
## [0.15.63](https://github.com/SocketDev/socket-cli/releases/tag/v0.15.63) - 2025-06-12
|
|
207
|
+
|
|
208
|
+
### Added
|
|
209
|
+
- Enhanced debugging capabilities
|
|
210
|
+
|
|
211
|
+
## [0.15.62](https://github.com/SocketDev/socket-cli/releases/tag/v0.15.62) - 2025-06-12
|
|
212
|
+
|
|
213
|
+
### Fixed
|
|
214
|
+
- Avoided double installing during `socket fix` operations
|
|
215
|
+
|
|
216
|
+
## [0.15.61](https://github.com/SocketDev/socket-cli/releases/tag/v0.15.61) - 2025-06-11
|
|
217
|
+
|
|
218
|
+
### Fixed
|
|
219
|
+
- Memory management for `socket fix` with packument cache clearing
|
|
220
|
+
|
|
221
|
+
## [0.15.60](https://github.com/SocketDev/socket-cli/releases/tag/v0.15.60) - 2025-06-10
|
|
222
|
+
|
|
223
|
+
### Changed
|
|
224
|
+
- Widened Node.js test matrix
|
|
225
|
+
- Removed Node 18 support due to native-ts compatibility
|
|
226
|
+
|
|
227
|
+
## [0.15.59](https://github.com/SocketDev/socket-cli/releases/tag/v0.15.59) - 2025-06-09
|
|
228
|
+
|
|
229
|
+
### Changed
|
|
230
|
+
- Reduced Node version restrictions on CLI
|
|
231
|
+
|
|
232
|
+
## [0.15.57](https://github.com/SocketDev/socket-cli/releases/tag/v0.15.57) - 2025-06-06
|
|
233
|
+
|
|
234
|
+
### Added
|
|
235
|
+
- Added `socket threat-feed` search flags
|
|
236
|
+
|
|
237
|
+
## [0.15.56](https://github.com/SocketDev/socket-cli/releases/tag/v0.15.56) - 2025-05-07
|
|
238
|
+
|
|
239
|
+
### Added
|
|
240
|
+
- `socket manifest setup` for project configuration
|
|
241
|
+
- Enhanced debugging output and error handling
|
|
242
|
+
|
|
243
|
+
## [0.15.0](https://github.com/SocketDev/socket-cli/releases/tag/v0.15.0) - 2025-05-07
|
|
244
|
+
|
|
245
|
+
### Added
|
|
246
|
+
- Enhanced `socket threat-feed` with new API endpoints
|
|
247
|
+
- `socket.json` configuration support
|
|
248
|
+
- Improved `socket fix` error handling
|
|
249
|
+
|
|
250
|
+
### Fixed
|
|
251
|
+
- Avoid double installing with `socket fix`
|
|
252
|
+
- CI/CD improvements reducing GitHub Action dependencies for `socket fix`
|
|
253
|
+
|
|
254
|
+
## [0.14.155](https://github.com/SocketDev/socket-cli/releases/tag/v0.14.155) - 2025-05-07
|
|
255
|
+
|
|
256
|
+
### Added
|
|
257
|
+
- `SOCKET_CLI_API_BASE_URL` for base URL configuration
|
|
258
|
+
- `DISABLE_GITHUB_CACHE` environment variable
|
|
259
|
+
- `cdxgen` lifecycle logging and documentation hyperlinks
|
|
260
|
+
|
|
261
|
+
### Fixed
|
|
262
|
+
- Set `exitCode=1` when login steps fail
|
|
263
|
+
- Fixed Socket package URLs
|
|
264
|
+
- Band-aid fix for `socket analytics`
|
|
265
|
+
- Improved handling of non-SDK API calls
|
|
266
|
+
|
|
267
|
+
### Changed
|
|
268
|
+
- Enhanced JSON-safe API handling
|
|
269
|
+
- Updated `cdxgen` flags and configuration
|
|
270
|
+
|
|
271
|
+
## [0.14.0](https://github.com/SocketDev/socket-cli/releases/tag/v0.14.0) - 2024-10-10
|
|
272
|
+
|
|
273
|
+
### Added
|
|
274
|
+
- `socket optimize` to apply Socket registry overrides
|
|
275
|
+
- Suggestion flows to `socket scan create`
|
|
276
|
+
- JSON/markdown output support for `socket repos list`
|
|
277
|
+
- Enhanced organization command with `--json` and `--markdown` flags
|
|
278
|
+
- `SOCKET_CLI_NO_API_TOKEN` environment variable support
|
|
279
|
+
- Improved test snapshot updating
|
|
280
|
+
|
|
281
|
+
### Fixed
|
|
282
|
+
- Spinner management in report flow and after API errors
|
|
283
|
+
- API error handling for non-SDK calls
|
|
284
|
+
- Package URL corrections
|
|
285
|
+
|
|
286
|
+
### Changed
|
|
287
|
+
- Added Node permissions for shadow-bin
|
|
288
|
+
|
|
289
|
+
## [0.13.0](https://github.com/SocketDev/socket-cli/releases/tag/v0.13.0) - 2024-09-06
|
|
290
|
+
|
|
291
|
+
### Added
|
|
292
|
+
- `socket threat-feed` for security threat information
|
|
293
|
+
|
|
294
|
+
## [0.12.0](https://github.com/SocketDev/socket-cli/releases/tag/v0.12.0) - 2024-08-30
|
|
295
|
+
|
|
296
|
+
### Added
|
|
297
|
+
- Diff Scan command for comparing scan results
|
|
298
|
+
- Analytics enhancements and data visualization
|
|
299
|
+
- Feature to save analytics data to local files
|
|
300
|
+
|
|
301
|
+
## [0.11.0](https://github.com/SocketDev/socket-cli/releases/tag/v0.11.0) - 2024-08-05
|
|
302
|
+
|
|
303
|
+
### Added
|
|
304
|
+
- Organization listing capability
|
|
305
|
+
|
|
306
|
+
## [0.10.0](https://github.com/SocketDev/socket-cli/releases/tag/v0.10.0) - 2024-07-17
|
|
307
|
+
|
|
308
|
+
### Added
|
|
309
|
+
- Analytics command with graphical data visualization
|
|
310
|
+
- Interactive charts and graphs
|
|
311
|
+
|
|
312
|
+
## [0.9.0](https://github.com/SocketDev/socket-cli/releases/tag/v0.9.0) - 2023-12-01
|
|
313
|
+
|
|
314
|
+
### Added
|
|
315
|
+
- Automatic latest version fetching for `socket info`
|
|
316
|
+
- Package scoring integration
|
|
317
|
+
- Human-readable issue rendering with clickable links
|
|
318
|
+
- Enhanced package analysis with scores
|
|
319
|
+
|
|
320
|
+
### Changed
|
|
321
|
+
- Smart defaults for package version resolution
|
|
322
|
+
- Improved issue visualization and reporting
|
|
323
|
+
|
|
324
|
+
## [0.8.0](https://github.com/SocketDev/socket-cli/releases/tag/v0.8.0) - 2023-08-10
|
|
325
|
+
|
|
326
|
+
### Added
|
|
327
|
+
- Configuration-based warnings from settings
|
|
328
|
+
- Enhanced `socket npm` installation safety checks
|
|
329
|
+
|
|
330
|
+
### Changed
|
|
331
|
+
- Dropped Node 14 support (EOL April 2023)
|
|
332
|
+
- Added Node 16 manual testing due to c8 segfault issues
|
|
333
|
+
|
|
334
|
+
## [0.7.1](https://github.com/SocketDev/socket-cli/releases/tag/v0.7.1) - 2023-06-13
|
|
335
|
+
|
|
336
|
+
### Added
|
|
337
|
+
- Python report creation capabilities
|
|
338
|
+
- CLI login/logout functionality
|
|
339
|
+
|
|
340
|
+
### Fixed
|
|
341
|
+
- Lockfile handling to ensure saves on `socket npm install`
|
|
342
|
+
- Report creation issues
|
|
343
|
+
- Python uploads via CLI
|
|
344
|
+
|
|
345
|
+
### Changed
|
|
346
|
+
- Switched to base64 encoding for certain operations
|
|
347
|
+
|
|
348
|
+
## [0.6.0](https://github.com/SocketDev/socket-cli/releases/tag/v0.6.0) - 2023-04-11
|
|
349
|
+
|
|
350
|
+
### Added
|
|
351
|
+
- Enhanced update notifier for npm wrapper
|
|
352
|
+
- TTY IPC to mitigate sub-shell prompts
|
|
353
|
+
|
|
354
|
+
## [0.5.0](https://github.com/SocketDev/socket-cli/releases/tag/v0.5.0) - 2023-03-16
|
|
355
|
+
|
|
356
|
+
### Added
|
|
357
|
+
- npm/npx wrapper commands (`socket npm`, `socket npx`)
|
|
358
|
+
- npm provenance and publish action support
|
|
359
|
+
|
|
360
|
+
### Changed
|
|
361
|
+
- Reusable consistent flags across commands
|
|
362
|
+
|
|
363
|
+
## [0.4.0](https://github.com/SocketDev/socket-cli/releases/tag/v0.4.0) - 2023-01-20
|
|
364
|
+
|
|
365
|
+
### Added
|
|
366
|
+
- Persistent authentication - CLI remembers API key for full duration
|
|
367
|
+
- Comprehensive TypeScript integration and type checks
|
|
368
|
+
- Enhanced development tooling and dependencies
|
|
369
|
+
|
|
370
|
+
## [0.3.0](https://github.com/SocketDev/socket-cli/releases/tag/v0.3.0) - 2022-12-13
|
|
371
|
+
|
|
372
|
+
### Added
|
|
373
|
+
- Support for globbed input and ignores for package scanning
|
|
374
|
+
- `--strict` and `--all` flags to commands
|
|
375
|
+
- Configuration support using `@socketsecurity/config`
|
|
376
|
+
|
|
377
|
+
### Changed
|
|
378
|
+
- Improved error handling and messaging
|
|
379
|
+
- Stricter TypeScript configuration
|
|
380
|
+
|
|
381
|
+
### Fixed
|
|
382
|
+
- Improved tests
|
|
383
|
+
|
|
384
|
+
## [0.2.1](https://github.com/SocketDev/socket-cli/releases/tag/v0.2.1) - 2022-11-23
|
|
385
|
+
|
|
386
|
+
### Added
|
|
387
|
+
- Update notifier to inform users of new CLI versions
|
|
388
|
+
|
|
389
|
+
## [0.2.0](https://github.com/SocketDev/socket-cli/releases/tag/v0.2.0) - 2022-11-23
|
|
390
|
+
|
|
391
|
+
### Added
|
|
392
|
+
- New `socket report view` for viewing existing reports
|
|
393
|
+
- `--view` flag to `report create` for immediate viewing
|
|
394
|
+
- Enhanced report creation and viewing capabilities
|
|
395
|
+
|
|
396
|
+
### Changed
|
|
397
|
+
- Synced up report create command with report view functionality
|
|
398
|
+
- Synced up info command with report view
|
|
399
|
+
- Improved examples in `--help` output
|
|
400
|
+
|
|
401
|
+
### Fixed
|
|
402
|
+
- Updated documentation and README with new features
|
|
403
|
+
|
|
404
|
+
## [0.1.2](https://github.com/SocketDev/socket-cli/releases/tag/v0.1.2) - 2022-11-17
|
|
405
|
+
|
|
406
|
+
### Added
|
|
407
|
+
- Node 19 testing support
|
|
408
|
+
|
|
409
|
+
### Changed
|
|
410
|
+
- Improved documentation
|
|
411
|
+
|
|
412
|
+
## [0.1.1](https://github.com/SocketDev/socket-cli/releases/tag/v0.1.1) - 2022-11-07
|
|
413
|
+
|
|
414
|
+
### Changed
|
|
415
|
+
- Extended README documentation
|
|
416
|
+
|
|
417
|
+
### Fixed
|
|
418
|
+
- Removed accidental debug code
|
|
419
|
+
|
|
420
|
+
## [0.1.0](https://github.com/SocketDev/socket-cli/releases/tag/v0.1.0) - 2022-11-07
|
|
421
|
+
|
|
422
|
+
### Added
|
|
423
|
+
- Initial Socket CLI release
|
|
424
|
+
- `socket info` for package security information
|
|
425
|
+
- `socket report create` for generating security reports
|
|
426
|
+
- Basic CLI infrastructure and configuration
|
package/bin/cli.js
CHANGED
|
@@ -6,7 +6,9 @@
|
|
|
6
6
|
const rootPath = path.join(__dirname, '..')
|
|
7
7
|
Module.enableCompileCache?.(path.join(rootPath, '.cache'))
|
|
8
8
|
|
|
9
|
-
const constants = require(
|
|
9
|
+
const { default: constants } = require(
|
|
10
|
+
path.join(rootPath, 'dist/constants.js'),
|
|
11
|
+
)
|
|
10
12
|
const { spawn } = require(
|
|
11
13
|
path.join(rootPath, 'external/@socketsecurity/registry/lib/spawn.js'),
|
|
12
14
|
)
|