Comparing version 3.22.0 to 3.22.1
@@ -70,3 +70,3 @@ "use strict"; | ||
} | ||
exports.HEADER_USER_AGENT = (0, default_user_agent_1.default)('node-urllib', '3.22.0'); | ||
exports.HEADER_USER_AGENT = (0, default_user_agent_1.default)('node-urllib', '3.22.1'); | ||
function getFileName(stream) { | ||
@@ -117,2 +117,5 @@ const filePath = stream.path; | ||
const poolStatsMap = {}; | ||
if (!clients) { | ||
return poolStatsMap; | ||
} | ||
for (const [key, ref] of clients) { | ||
@@ -119,0 +122,0 @@ const pool = ref.deref(); |
@@ -64,3 +64,3 @@ import diagnosticsChannel from 'node:diagnostics_channel'; | ||
} | ||
export const HEADER_USER_AGENT = createUserAgent('node-urllib', '3.22.0'); | ||
export const HEADER_USER_AGENT = createUserAgent('node-urllib', '3.22.1'); | ||
function getFileName(stream) { | ||
@@ -111,2 +111,5 @@ const filePath = stream.path; | ||
const poolStatsMap = {}; | ||
if (!clients) { | ||
return poolStatsMap; | ||
} | ||
for (const [key, ref] of clients) { | ||
@@ -113,0 +116,0 @@ const pool = ref.deref(); |
{ | ||
"name": "urllib", | ||
"version": "3.22.0", | ||
"version": "3.22.1", | ||
"publishConfig": { | ||
@@ -5,0 +5,0 @@ "tag": "latest" |
@@ -209,4 +209,7 @@ import diagnosticsChannel from 'node:diagnostics_channel'; | ||
// origin => Pool Instance | ||
const clients: Map<string, WeakRef<Pool>> = agent[undiciSymbols.kClients]; | ||
const clients: Map<string, WeakRef<Pool>> | undefined = agent[undiciSymbols.kClients]; | ||
const poolStatsMap: Record<string, PoolStat> = {}; | ||
if (!clients) { | ||
return poolStatsMap; | ||
} | ||
for (const [ key, ref ] of clients) { | ||
@@ -213,0 +216,0 @@ const pool = ref.deref(); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
218264
4681