socket 2.0.6 → 2.0.8

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