Socket
Socket
Sign inDemoInstall

urllib

Package Overview
Dependencies
41
Maintainers
12
Versions
207
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.22.3 to 3.22.4

4

dist/commonjs/HttpClient.js

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

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

@@ -164,3 +164,3 @@ const filePath = stream.path;

}
const method = (options?.method ?? 'GET').toUpperCase();
const method = (options?.type || options?.method || 'GET').toUpperCase();
const originalHeaders = options?.headers;

@@ -167,0 +167,0 @@ const headers = {};

@@ -15,2 +15,4 @@ /// <reference types="node" />

method?: HttpMethod | Lowercase<HttpMethod>;
/** Alias for 'method'. */
type?: HttpMethod | Lowercase<HttpMethod>;
/** Data to be sent. Will be stringify automatically. */

@@ -17,0 +19,0 @@ data?: any;

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

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

@@ -158,3 +158,3 @@ const filePath = stream.path;

}
const method = (options?.method ?? 'GET').toUpperCase();
const method = (options?.type || options?.method || 'GET').toUpperCase();
const originalHeaders = options?.headers;

@@ -161,0 +161,0 @@ const headers = {};

@@ -15,2 +15,4 @@ /// <reference types="node" resolution-mode="require"/>

method?: HttpMethod | Lowercase<HttpMethod>;
/** Alias for 'method'. */
type?: HttpMethod | Lowercase<HttpMethod>;
/** Data to be sent. Will be stringify automatically. */

@@ -17,0 +19,0 @@ data?: any;

{
"name": "urllib",
"version": "3.22.3",
"version": "3.22.4",
"publishConfig": {

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

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

const method = (options?.method ?? 'GET').toUpperCase() as HttpMethod;
const method = (options?.type || options?.method || 'GET').toUpperCase() as HttpMethod;
const originalHeaders = options?.headers;

@@ -262,0 +262,0 @@ const headers: IncomingHttpHeaders = {};

@@ -16,2 +16,4 @@ import type { Readable, Writable } from 'node:stream';

method?: HttpMethod | Lowercase<HttpMethod>;
/** Alias for 'method'. */
type?: HttpMethod | Lowercase<HttpMethod>;
/** Data to be sent. Will be stringify automatically. */

@@ -18,0 +20,0 @@ data?: any;

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc