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