From b276d386716a7772b157e2cfc84e57db96fb03f5 Mon Sep 17 00:00:00 2001 From: Yoshiya Hinosawa Date: Tue, 12 Nov 2024 20:23:35 +0900 Subject: [PATCH] add note about _isNpmAgent --- ext/node/polyfills/net.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ext/node/polyfills/net.ts b/ext/node/polyfills/net.ts index 13cfd8e2d0..b2b0c9857c 100644 --- a/ext/node/polyfills/net.ts +++ b/ext/node/polyfills/net.ts @@ -1201,6 +1201,8 @@ export class Socket extends Duplex { _host: string | null = null; // deno-lint-ignore no-explicit-any _parent: any = null; + // The flag for detecting if it's called in @npmcli/agent + // See discussions in https://github.com/denoland/deno/pull/25470 for more details. _isNpmAgent = false; autoSelectFamilyAttemptedAddresses: AddressInfo[] | undefined = undefined;