socket 2.0.6 → 2.0.7

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 ADDED
@@ -0,0 +1,415 @@
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
+ ## [2.0.7](https://github.com/SocketDev/socket-cli/releases/tag/v2.0.7) - 2025-10-31
8
+
9
+ ### Added
10
+ - Shimmer effect to bootstrap spinner for enhanced visual feedback during CLI download
11
+
12
+ ### Changed
13
+ - Consolidated SOCKET_CLI_ISSUES_URL constant to socket constants module for better organization
14
+
15
+ ## [2.0.6](https://github.com/SocketDev/socket-cli/releases/tag/v2.0.6) - 2025-10-31
16
+
17
+ ### Fixed
18
+ - Shadow npm spawn mechanism now properly uses spawnNode abstraction for SEA binary compatibility
19
+ - IPC handshake structure for shadow npm processes with correct parent_pid and subprocess fields
20
+
21
+ ## [2.0.2](https://github.com/SocketDev/socket-cli/releases/tag/v2.0.2) - 2025-10-30
22
+
23
+ ### Fixed
24
+ - Fixed import from @socketsecurity/registry to @socketsecurity/lib
25
+
26
+ ## [2.0.1](https://github.com/SocketDev/socket-cli/releases/tag/v2.0.1) - 2025-10-30
27
+
28
+ ### Changed
29
+ - Updated @socketsecurity/lib to v2.9.0 with Socket.dev URL constants and enhanced error messages
30
+ - Updated @socketsecurity/sdk to v3.0.21
31
+ - Normalized lock behavior across codebase
32
+
33
+ ### Fixed
34
+ - Bootstrap path resolution in binary builders to correct path
35
+
36
+ ## [2.0.0](https://github.com/SocketDev/socket-cli/releases/tag/v2.0.0) - 2025-10-29
37
+
38
+ ### Changed
39
+ - **BREAKING**: CLI now ships as single executable binary requiring no external Node.js installation
40
+
41
+ ### Added
42
+ - GitLab merge request support for `socket fix`
43
+ - Persistent GHSA tracking to avoid duplicate fixes
44
+ - Markdown output support for `socket fix` and `socket optimize`
45
+ - `--reach-min-severity` flag to filter reachability analysis by vulnerability severity threshold
46
+
47
+ ### Fixed
48
+ - Target directory handling in reachability analysis for scan commands
49
+
50
+ ## [1.1.25](https://github.com/SocketDev/socket-cli/releases/tag/v1.1.25) - 2025-10-10
51
+
52
+ ### Added
53
+ - `--no-major-updates` flag
54
+ - `--show-affected-direct-dependencies` flag
55
+
56
+ ### Fixed
57
+ - Provenance handling
58
+
59
+ ## [1.1.24](https://github.com/SocketDev/socket-cli/releases/tag/v1.1.24) - 2025-10-10
60
+
61
+ ### Added
62
+ - `--minimum-release-age` flag for `socket fix`
63
+ - SOCKET_CLI_COANA_LOCAL_PATH environment variable
64
+
65
+ ### Fixed
66
+ - Organization capabilities detection
67
+ - Enterprise plan filtering
68
+
69
+ ## [1.1.23](https://github.com/SocketDev/socket-cli/releases/tag/v1.1.23) - 2025-09-22
70
+
71
+ ### Changed
72
+ - Renamed `--dont-apply-fixes` to `--no-apply-fixes` (old flag remains as alias)
73
+ - pnpm dlx operations no longer use `--ignore-scripts`
74
+
75
+ ### Fixed
76
+ - Error handling in optimize command for pnpm
77
+
78
+ ## [1.1.22](https://github.com/SocketDev/socket-cli/releases/tag/v1.1.22) - 2025-09-20
79
+
80
+ ### Changed
81
+ - Renamed `--only-compute` to `--dont-apply-fixes` for `socket fix` (old flag remains as alias)
82
+
83
+ ### Fixed
84
+ - Interactive prompts in `socket optimize` with pnpm
85
+ - Git repository name sanitization
86
+
87
+ ## [1.1.21](https://github.com/SocketDev/socket-cli/releases/tag/v1.1.21) - 2025-09-20
88
+
89
+ ### Added
90
+ - `--compact-header` flag
91
+
92
+ ### Fixed
93
+ - Error handling in `socket optimize`
94
+
95
+ ## [1.1.20](https://github.com/SocketDev/socket-cli/releases/tag/v1.1.20) - 2025-09-19
96
+
97
+ ### Added
98
+ - Terminal link support
99
+
100
+ ### Fixed
101
+ - Windows package manager execution
102
+
103
+ ## [1.1.13](https://github.com/SocketDev/socket-cli/releases/tag/v1.1.13) - 2025-09-16
104
+
105
+ ### Added
106
+ - `--output-file` flag for `socket fix`
107
+ - `--only-compute` flag for `socket fix`
108
+
109
+ ## [1.1.9](https://github.com/SocketDev/socket-cli/releases/tag/v1.1.9) - 2025-09-11
110
+
111
+ ### Added
112
+ - `socket fix --id` now accepts CVE IDs and PURLs
113
+
114
+ ### Fixed
115
+ - SOCKET_CLI_API_TIMEOUT environment variable lookup
116
+
117
+ ## [1.1.7](https://github.com/SocketDev/socket-cli/releases/tag/v1.1.7) - 2025-09-11
118
+
119
+ ### Added
120
+ - `--no-spinner` flag
121
+
122
+ ### Fixed
123
+ - Proxy support
124
+
125
+ ## [1.1.4](https://github.com/SocketDev/socket-cli/releases/tag/v1.1.4) - 2025-09-09
126
+
127
+ ### Added
128
+ - `--report-level` flag for scan output control
129
+
130
+ ## [1.1.1](https://github.com/SocketDev/socket-cli/releases/tag/v1.1.1) - 2025-09-04
131
+
132
+ ### Removed
133
+ - Legacy `--test` and `--test-script` flags from `socket fix`
134
+
135
+ ## [1.1.0](https://github.com/SocketDev/socket-cli/releases/tag/v1.1.0) - 2025-09-03
136
+
137
+ ### Added
138
+ - Package versions in `socket npm` security reports
139
+
140
+ ## [1.0.111](https://github.com/SocketDev/socket-cli/releases/tag/v1.0.111) - 2025-09-03
141
+
142
+ ### Added
143
+ - `--range-style` flag for `socket fix`
144
+
145
+ ## [1.0.106](https://github.com/SocketDev/socket-cli/releases/tag/v1.0.106) - 2025-09-02
146
+
147
+ ### Added
148
+ - `--reach-skip-cache` flag
149
+
150
+ ## [1.0.89](https://github.com/SocketDev/socket-cli/releases/tag/v1.0.89) - 2025-08-15
151
+
152
+ ### Added
153
+ - `socket scan create --reach` for manifest scanning
154
+
155
+ ## [1.0.85](https://github.com/SocketDev/socket-cli/releases/tag/v1.0.85) - 2025-08-01
156
+
157
+ ### Added
158
+ - SOCKET_CLI_NPM_PATH environment variable
159
+
160
+ ## [1.0.82](https://github.com/SocketDev/socket-cli/releases/tag/v1.0.82) - 2025-07-30
161
+
162
+ ### Added
163
+ - `--max-old-space-size` and `--max-semi-space-size` flags
164
+
165
+ ## [1.0.73](https://github.com/SocketDev/socket-cli/releases/tag/v1.0.73) - 2025-07-14
166
+
167
+ ### Added
168
+ - Automatic `.socket.facts.json` detection
169
+
170
+ ## [1.0.69](https://github.com/SocketDev/socket-cli/releases/tag/v1.0.69) - 2025-07-10
171
+
172
+ ### Added
173
+ - `--no-pr-check` flag for `socket fix`
174
+
175
+ ## [1.0.0](https://github.com/SocketDev/socket-cli/releases/tag/v1.0.0) - 2025-06-13
176
+
177
+ ### Added
178
+ - Official v1.0.0 release
179
+ - Added `socket org deps` alias command
180
+
181
+ ### Changed
182
+ - Moved dependencies command to a subcommand of organization
183
+ - Improved UX for threat-feed and audit-logs
184
+ - Removed Node 18 deprecation warnings
185
+ - Removed v1 preparation flags
186
+
187
+ ## [0.15.64](https://github.com/SocketDev/socket-cli/releases/tag/v0.15.64) - 2025-06-13
188
+
189
+ ### Fixed
190
+ - Improved `socket fix` error handling when server rejects request
191
+
192
+ ### Changed
193
+ - Final pre-v1.0.0 stability improvements
194
+
195
+ ## [0.15.63](https://github.com/SocketDev/socket-cli/releases/tag/v0.15.63) - 2025-06-12
196
+
197
+ ### Added
198
+ - Enhanced debugging capabilities
199
+
200
+ ## [0.15.62](https://github.com/SocketDev/socket-cli/releases/tag/v0.15.62) - 2025-06-12
201
+
202
+ ### Fixed
203
+ - Avoided double installing during `socket fix` operations
204
+
205
+ ## [0.15.61](https://github.com/SocketDev/socket-cli/releases/tag/v0.15.61) - 2025-06-11
206
+
207
+ ### Fixed
208
+ - Memory management for `socket fix` with packument cache clearing
209
+
210
+ ## [0.15.60](https://github.com/SocketDev/socket-cli/releases/tag/v0.15.60) - 2025-06-10
211
+
212
+ ### Changed
213
+ - Widened Node.js test matrix
214
+ - Removed Node 18 support due to native-ts compatibility
215
+
216
+ ## [0.15.59](https://github.com/SocketDev/socket-cli/releases/tag/v0.15.59) - 2025-06-09
217
+
218
+ ### Changed
219
+ - Reduced Node version restrictions on CLI
220
+
221
+ ## [0.15.57](https://github.com/SocketDev/socket-cli/releases/tag/v0.15.57) - 2025-06-06
222
+
223
+ ### Added
224
+ - Added `socket threat-feed` search flags
225
+
226
+ ## [0.15.56](https://github.com/SocketDev/socket-cli/releases/tag/v0.15.56) - 2025-05-07
227
+
228
+ ### Added
229
+ - `socket manifest setup` for project configuration
230
+ - Enhanced debugging output and error handling
231
+
232
+ ## [0.15.0](https://github.com/SocketDev/socket-cli/releases/tag/v0.15.0) - 2025-05-07
233
+
234
+ ### Added
235
+ - Enhanced `socket threat-feed` with new API endpoints
236
+ - `socket.json` configuration support
237
+ - Improved `socket fix` error handling
238
+
239
+ ### Fixed
240
+ - Avoid double installing with `socket fix`
241
+ - CI/CD improvements reducing GitHub Action dependencies for `socket fix`
242
+
243
+ ## [0.14.155](https://github.com/SocketDev/socket-cli/releases/tag/v0.14.155) - 2025-05-07
244
+
245
+ ### Added
246
+ - `SOCKET_CLI_API_BASE_URL` for base URL configuration
247
+ - `DISABLE_GITHUB_CACHE` environment variable
248
+ - `cdxgen` lifecycle logging and documentation hyperlinks
249
+
250
+ ### Fixed
251
+ - Set `exitCode=1` when login steps fail
252
+ - Fixed Socket package URLs
253
+ - Band-aid fix for `socket analytics`
254
+ - Improved handling of non-SDK API calls
255
+
256
+ ### Changed
257
+ - Enhanced JSON-safe API handling
258
+ - Updated `cdxgen` flags and configuration
259
+
260
+ ## [0.14.0](https://github.com/SocketDev/socket-cli/releases/tag/v0.14.0) - 2024-10-10
261
+
262
+ ### Added
263
+ - `socket optimize` to apply Socket registry overrides
264
+ - Suggestion flows to `socket scan create`
265
+ - JSON/markdown output support for `socket repos list`
266
+ - Enhanced organization command with `--json` and `--markdown` flags
267
+ - `SOCKET_CLI_NO_API_TOKEN` environment variable support
268
+ - Improved test snapshot updating
269
+
270
+ ### Fixed
271
+ - Spinner management in report flow and after API errors
272
+ - API error handling for non-SDK calls
273
+ - Package URL corrections
274
+
275
+ ### Changed
276
+ - Added Node permissions for shadow-bin
277
+
278
+ ## [0.13.0](https://github.com/SocketDev/socket-cli/releases/tag/v0.13.0) - 2024-09-06
279
+
280
+ ### Added
281
+ - `socket threat-feed` for security threat information
282
+
283
+ ## [0.12.0](https://github.com/SocketDev/socket-cli/releases/tag/v0.12.0) - 2024-08-30
284
+
285
+ ### Added
286
+ - Diff Scan command for comparing scan results
287
+ - Analytics enhancements and data visualization
288
+ - Feature to save analytics data to local files
289
+
290
+ ## [0.11.0](https://github.com/SocketDev/socket-cli/releases/tag/v0.11.0) - 2024-08-05
291
+
292
+ ### Added
293
+ - Organization listing capability
294
+
295
+ ## [0.10.0](https://github.com/SocketDev/socket-cli/releases/tag/v0.10.0) - 2024-07-17
296
+
297
+ ### Added
298
+ - Analytics command with graphical data visualization
299
+ - Interactive charts and graphs
300
+
301
+ ## [0.9.0](https://github.com/SocketDev/socket-cli/releases/tag/v0.9.0) - 2023-12-01
302
+
303
+ ### Added
304
+ - Automatic latest version fetching for `socket info`
305
+ - Package scoring integration
306
+ - Human-readable issue rendering with clickable links
307
+ - Enhanced package analysis with scores
308
+
309
+ ### Changed
310
+ - Smart defaults for package version resolution
311
+ - Improved issue visualization and reporting
312
+
313
+ ## [0.8.0](https://github.com/SocketDev/socket-cli/releases/tag/v0.8.0) - 2023-08-10
314
+
315
+ ### Added
316
+ - Configuration-based warnings from settings
317
+ - Enhanced `socket npm` installation safety checks
318
+
319
+ ### Changed
320
+ - Dropped Node 14 support (EOL April 2023)
321
+ - Added Node 16 manual testing due to c8 segfault issues
322
+
323
+ ## [0.7.1](https://github.com/SocketDev/socket-cli/releases/tag/v0.7.1) - 2023-06-13
324
+
325
+ ### Added
326
+ - Python report creation capabilities
327
+ - CLI login/logout functionality
328
+
329
+ ### Fixed
330
+ - Lockfile handling to ensure saves on `socket npm install`
331
+ - Report creation issues
332
+ - Python uploads via CLI
333
+
334
+ ### Changed
335
+ - Switched to base64 encoding for certain operations
336
+
337
+ ## [0.6.0](https://github.com/SocketDev/socket-cli/releases/tag/v0.6.0) - 2023-04-11
338
+
339
+ ### Added
340
+ - Enhanced update notifier for npm wrapper
341
+ - TTY IPC to mitigate sub-shell prompts
342
+
343
+ ## [0.5.0](https://github.com/SocketDev/socket-cli/releases/tag/v0.5.0) - 2023-03-16
344
+
345
+ ### Added
346
+ - npm/npx wrapper commands (`socket npm`, `socket npx`)
347
+ - npm provenance and publish action support
348
+
349
+ ### Changed
350
+ - Reusable consistent flags across commands
351
+
352
+ ## [0.4.0](https://github.com/SocketDev/socket-cli/releases/tag/v0.4.0) - 2023-01-20
353
+
354
+ ### Added
355
+ - Persistent authentication - CLI remembers API key for full duration
356
+ - Comprehensive TypeScript integration and type checks
357
+ - Enhanced development tooling and dependencies
358
+
359
+ ## [0.3.0](https://github.com/SocketDev/socket-cli/releases/tag/v0.3.0) - 2022-12-13
360
+
361
+ ### Added
362
+ - Support for globbed input and ignores for package scanning
363
+ - `--strict` and `--all` flags to commands
364
+ - Configuration support using `@socketsecurity/config`
365
+
366
+ ### Changed
367
+ - Improved error handling and messaging
368
+ - Stricter TypeScript configuration
369
+
370
+ ### Fixed
371
+ - Improved tests
372
+
373
+ ## [0.2.1](https://github.com/SocketDev/socket-cli/releases/tag/v0.2.1) - 2022-11-23
374
+
375
+ ### Added
376
+ - Update notifier to inform users of new CLI versions
377
+
378
+ ## [0.2.0](https://github.com/SocketDev/socket-cli/releases/tag/v0.2.0) - 2022-11-23
379
+
380
+ ### Added
381
+ - New `socket report view` for viewing existing reports
382
+ - `--view` flag to `report create` for immediate viewing
383
+ - Enhanced report creation and viewing capabilities
384
+
385
+ ### Changed
386
+ - Synced up report create command with report view functionality
387
+ - Synced up info command with report view
388
+ - Improved examples in `--help` output
389
+
390
+ ### Fixed
391
+ - Updated documentation and README with new features
392
+
393
+ ## [0.1.2](https://github.com/SocketDev/socket-cli/releases/tag/v0.1.2) - 2022-11-17
394
+
395
+ ### Added
396
+ - Node 19 testing support
397
+
398
+ ### Changed
399
+ - Improved documentation
400
+
401
+ ## [0.1.1](https://github.com/SocketDev/socket-cli/releases/tag/v0.1.1) - 2022-11-07
402
+
403
+ ### Changed
404
+ - Extended README documentation
405
+
406
+ ### Fixed
407
+ - Removed accidental debug code
408
+
409
+ ## [0.1.0](https://github.com/SocketDev/socket-cli/releases/tag/v0.1.0) - 2022-11-07
410
+
411
+ ### Added
412
+ - Initial Socket CLI release
413
+ - `socket info` for package security information
414
+ - `socket report create` for generating security reports
415
+ - Basic CLI infrastructure and configuration
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2022 Socket Inc
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.