urllib
Advanced tools
Comparing version 3.22.3 to 3.22.4
@@ -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; |
219239
4703