1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-01-19 04:16:00 -05:00
denoland-deno/ext
Yoshiya Hinosawa 2091691164
fix(ext/node): apply @npmcli/agent workaround to npm-check-updates (#27639)
See the comment
https://github.com/denoland/deno/pull/25470#issuecomment-2435077722 for
the reason why we do this workaround to make `make-fetch-happen` work in
Deno

This PR applies the same workaround to `npm-check-updates` package.
`npm-check-updates` internally uses
[`npm-registry-fetch`](https://www.npmjs.com/package/npm-registry-fetch)
which uses
[`make-fetch-happen`](https://www.npmjs.com/package/make-fetch-happen)
(the problematic package) for making http request to npm registry.

The detection of `make-fetch-happen` doesn't work for
`npm-check-updates` because we use call stack at `net.Socket`
constructor to check if it's called from `make-fetch-happen`, but
`npm-check-updates` bundles its dependency and the check doesn't work.

This PR adds the check of `npm-check-updates` string in call stack in
net.Socket constructor to trigger the workaroud.

closes #27629
2025-01-13 18:11:26 +09:00
..
broadcast_channel chore: forward v2.1.5 release commit to main (#27613) 2025-01-09 17:38:18 -05:00
cache chore: forward v2.1.5 release commit to main (#27613) 2025-01-09 17:38:18 -05:00
canvas chore: forward v2.1.5 release commit to main (#27613) 2025-01-09 17:38:18 -05:00
console chore: forward v2.1.5 release commit to main (#27613) 2025-01-09 17:38:18 -05:00
cron chore: forward v2.1.5 release commit to main (#27613) 2025-01-09 17:38:18 -05:00
crypto chore: forward v2.1.5 release commit to main (#27613) 2025-01-09 17:38:18 -05:00
fetch chore: forward v2.1.5 release commit to main (#27613) 2025-01-09 17:38:18 -05:00
ffi chore: forward v2.1.5 release commit to main (#27613) 2025-01-09 17:38:18 -05:00
fs chore: forward v2.1.5 release commit to main (#27613) 2025-01-09 17:38:18 -05:00
http chore: forward v2.1.5 release commit to main (#27613) 2025-01-09 17:38:18 -05:00
io chore: forward v2.1.5 release commit to main (#27613) 2025-01-09 17:38:18 -05:00
kv chore: forward v2.1.5 release commit to main (#27613) 2025-01-09 17:38:18 -05:00
napi chore: forward v2.1.5 release commit to main (#27613) 2025-01-09 17:38:18 -05:00
net chore: forward v2.1.5 release commit to main (#27613) 2025-01-09 17:38:18 -05:00
node fix(ext/node): apply @npmcli/agent workaround to npm-check-updates (#27639) 2025-01-13 18:11:26 +09:00
telemetry chore: forward v2.1.5 release commit to main (#27613) 2025-01-09 17:38:18 -05:00
tls chore: forward v2.1.5 release commit to main (#27613) 2025-01-09 17:38:18 -05:00
url chore: forward v2.1.5 release commit to main (#27613) 2025-01-09 17:38:18 -05:00
web chore: forward v2.1.5 release commit to main (#27613) 2025-01-09 17:38:18 -05:00
webgpu chore: forward v2.1.5 release commit to main (#27613) 2025-01-09 17:38:18 -05:00
webidl chore: forward v2.1.5 release commit to main (#27613) 2025-01-09 17:38:18 -05:00
websocket chore: forward v2.1.5 release commit to main (#27613) 2025-01-09 17:38:18 -05:00
webstorage chore: forward v2.1.5 release commit to main (#27613) 2025-01-09 17:38:18 -05:00