Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

urllib

Package Overview
Dependencies
Maintainers
13
Versions
222
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

urllib - npm Package Compare versions

Comparing version 3.25.0 to 3.25.1

12

dist/commonjs/diagnosticsChannel.js

@@ -182,4 +182,9 @@ "use strict";

const socket = opaque[symbols_js_1.default.kRequestSocket];
socket[symbols_js_1.default.kHandledResponses]++;
debug('[%s] Request#%d get %s response headers on Socket#%d (handled %d responses, sock: %o)', name, opaque[symbols_js_1.default.kRequestId], response.statusCode, socket[symbols_js_1.default.kSocketId], socket[symbols_js_1.default.kHandledResponses], formatSocket(socket));
if (socket) {
socket[symbols_js_1.default.kHandledResponses]++;
debug('[%s] Request#%d get %s response headers on Socket#%d (handled %d responses, sock: %o)', name, opaque[symbols_js_1.default.kRequestId], response.statusCode, socket[symbols_js_1.default.kSocketId], socket[symbols_js_1.default.kHandledResponses], formatSocket(socket));
}
else {
debug('[%s] Request#%d get %s response headers on Unknown Socket', name, opaque[symbols_js_1.default.kRequestId], response.statusCode);
}
if (!opaque[symbols_js_1.default.kEnableRequestTiming])

@@ -193,4 +198,5 @@ return;

const opaque = getRequestOpaque(request, kHandler);
if (!opaque || !opaque[symbols_js_1.default.kRequestId])
if (!opaque || !opaque[symbols_js_1.default.kRequestId]) {
return;
}
debug('[%s] Request#%d get response body and trailers', name, opaque[symbols_js_1.default.kRequestId]);

@@ -197,0 +203,0 @@ if (!opaque[symbols_js_1.default.kEnableRequestTiming])

@@ -71,3 +71,3 @@ "use strict";

}
exports.HEADER_USER_AGENT = (0, default_user_agent_1.default)('node-urllib', '3.25.0');
exports.HEADER_USER_AGENT = (0, default_user_agent_1.default)('node-urllib', '3.25.1');
function getFileName(stream) {

@@ -74,0 +74,0 @@ const filePath = stream.path;

@@ -176,4 +176,9 @@ import diagnosticsChannel from 'node:diagnostics_channel';

const socket = opaque[symbols.kRequestSocket];
socket[symbols.kHandledResponses]++;
debug('[%s] Request#%d get %s response headers on Socket#%d (handled %d responses, sock: %o)', name, opaque[symbols.kRequestId], response.statusCode, socket[symbols.kSocketId], socket[symbols.kHandledResponses], formatSocket(socket));
if (socket) {
socket[symbols.kHandledResponses]++;
debug('[%s] Request#%d get %s response headers on Socket#%d (handled %d responses, sock: %o)', name, opaque[symbols.kRequestId], response.statusCode, socket[symbols.kSocketId], socket[symbols.kHandledResponses], formatSocket(socket));
}
else {
debug('[%s] Request#%d get %s response headers on Unknown Socket', name, opaque[symbols.kRequestId], response.statusCode);
}
if (!opaque[symbols.kEnableRequestTiming])

@@ -187,4 +192,5 @@ return;

const opaque = getRequestOpaque(request, kHandler);
if (!opaque || !opaque[symbols.kRequestId])
if (!opaque || !opaque[symbols.kRequestId]) {
return;
}
debug('[%s] Request#%d get response body and trailers', name, opaque[symbols.kRequestId]);

@@ -191,0 +197,0 @@ if (!opaque[symbols.kEnableRequestTiming])

@@ -65,3 +65,3 @@ import diagnosticsChannel from 'node:diagnostics_channel';

}
export const HEADER_USER_AGENT = createUserAgent('node-urllib', '3.25.0');
export const HEADER_USER_AGENT = createUserAgent('node-urllib', '3.25.1');
function getFileName(stream) {

@@ -68,0 +68,0 @@ const filePath = stream.path;

{
"name": "urllib",
"version": "3.25.0",
"version": "3.25.1",
"publishConfig": {

@@ -5,0 +5,0 @@ "tag": "latest"

@@ -187,6 +187,11 @@ import diagnosticsChannel from 'node:diagnostics_channel';

const socket = opaque[symbols.kRequestSocket];
socket[symbols.kHandledResponses]++;
debug('[%s] Request#%d get %s response headers on Socket#%d (handled %d responses, sock: %o)',
name, opaque[symbols.kRequestId], response.statusCode, socket[symbols.kSocketId], socket[symbols.kHandledResponses],
formatSocket(socket));
if (socket) {
socket[symbols.kHandledResponses]++;
debug('[%s] Request#%d get %s response headers on Socket#%d (handled %d responses, sock: %o)',
name, opaque[symbols.kRequestId], response.statusCode, socket[symbols.kSocketId], socket[symbols.kHandledResponses],
formatSocket(socket));
} else {
debug('[%s] Request#%d get %s response headers on Unknown Socket',
name, opaque[symbols.kRequestId], response.statusCode);
}

@@ -201,3 +206,5 @@ if (!opaque[symbols.kEnableRequestTiming]) return;

const opaque = getRequestOpaque(request, kHandler);
if (!opaque || !opaque[symbols.kRequestId]) return;
if (!opaque || !opaque[symbols.kRequestId]) {
return;
}

@@ -204,0 +211,0 @@ debug('[%s] Request#%d get response body and trailers', name, opaque[symbols.kRequestId]);

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc