Commit 3a2b06d
fix(maven): send the official Maven CLI user agent to the maven2 registry; refresh npm wrapper lock for published 4.0.0 platform packages (#233)
* fix(maven): send the official Maven CLI user agent to the maven2 registry
Maven Central blocks/rate-limits user agents containing "socket", so the
fallback pom download in the maven vendor backend (acquire_upstream_pom →
fetch_pom_bytes) was refused when sent as SocketPatchCLI/x.y.z — the only
CLI code path that talks to Maven Central. maven2 registry requests now
identify exactly as the official Maven CLI (Apache-Maven/<v> (Java <v>;
<os> <ver>), pinned per-OS so the string stays deterministic). Socket API
requests keep the honest CLI UA.
Tests: shape + no-"socket" guard on the constant, and a wiremock test
that only serves the pom when the Maven CLI UA actually goes out on the
wire.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* fix(release): refresh the npm wrapper lockfile with the published 4.0.0 platform packages
The lock was committed while the 4.0.0 @socketsecurity/socket-patch-*
platform packages were still unpublished (npm publish was pending 2FA at
release time), so npm silently omitted their node_modules entries. Now
that they are live on the registry, version-sync's
`npm install --package-lock-only` re-adds them, making the sync a
non-no-op and failing release-readiness on every PR. Committing the
refreshed lock restores the no-op invariant.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>1 parent dcebffa commit 3a2b06d
2 files changed
Lines changed: 262 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
67 | 66 | | |
68 | 67 | | |
69 | 68 | | |
| |||
95 | 94 | | |
96 | 95 | | |
97 | 96 | | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
98 | 112 | | |
99 | 113 | | |
100 | 114 | | |
| |||
730 | 744 | | |
731 | 745 | | |
732 | 746 | | |
733 | | - | |
| 747 | + | |
734 | 748 | | |
735 | 749 | | |
736 | 750 | | |
| |||
2304 | 2318 | | |
2305 | 2319 | | |
2306 | 2320 | | |
| 2321 | + | |
| 2322 | + | |
| 2323 | + | |
| 2324 | + | |
| 2325 | + | |
| 2326 | + | |
| 2327 | + | |
| 2328 | + | |
| 2329 | + | |
| 2330 | + | |
| 2331 | + | |
| 2332 | + | |
| 2333 | + | |
| 2334 | + | |
| 2335 | + | |
| 2336 | + | |
| 2337 | + | |
| 2338 | + | |
| 2339 | + | |
| 2340 | + | |
| 2341 | + | |
| 2342 | + | |
| 2343 | + | |
| 2344 | + | |
| 2345 | + | |
| 2346 | + | |
| 2347 | + | |
| 2348 | + | |
| 2349 | + | |
| 2350 | + | |
| 2351 | + | |
| 2352 | + | |
| 2353 | + | |
| 2354 | + | |
| 2355 | + | |
| 2356 | + | |
| 2357 | + | |
| 2358 | + | |
| 2359 | + | |
| 2360 | + | |
2307 | 2361 | | |
2308 | 2362 | | |
2309 | 2363 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments