Comparing version 3.15.0 to 3.16.0
{ | ||
"name": "urllib", | ||
"version": "3.15.0", | ||
"version": "3.16.0", | ||
"publishConfig": { | ||
@@ -76,3 +76,3 @@ "tag": "latest" | ||
"@types/mime-types": "^2.1.1", | ||
"@types/node": "^18.11.18", | ||
"@types/node": "^20.2.1", | ||
"@types/pump": "^1.1.1", | ||
@@ -79,0 +79,0 @@ "@types/selfsigned": "^2.0.1", |
@@ -78,2 +78,3 @@ # urllib | ||
- ***socketPath*** String | null - request a unix socket service, default is `null`. | ||
- ***highWaterMark*** Number - default is `67108864`, 64 KiB. | ||
@@ -80,0 +81,0 @@ #### Options: `options.data` |
@@ -72,3 +72,3 @@ "use strict"; | ||
} | ||
exports.HEADER_USER_AGENT = (0, default_user_agent_1.default)('node-urllib', '3.15.0'); | ||
exports.HEADER_USER_AGENT = (0, default_user_agent_1.default)('node-urllib', '3.16.0'); | ||
function getFileName(stream) { | ||
@@ -257,2 +257,5 @@ const filePath = stream.path; | ||
}; | ||
if (typeof args.highWaterMark === 'number') { | ||
requestOptions.highWaterMark = args.highWaterMark; | ||
} | ||
if (typeof args.reset === 'boolean') { | ||
@@ -259,0 +262,0 @@ requestOptions.reset = args.reset; |
@@ -132,2 +132,4 @@ /// <reference types="node" /> | ||
reset?: boolean; | ||
/** Default: `64 KiB` */ | ||
highWaterMark?: number; | ||
}; |
@@ -66,3 +66,3 @@ import { EventEmitter } from 'node:events'; | ||
} | ||
export const HEADER_USER_AGENT = createUserAgent('node-urllib', '3.15.0'); | ||
export const HEADER_USER_AGENT = createUserAgent('node-urllib', '3.16.0'); | ||
function getFileName(stream) { | ||
@@ -251,2 +251,5 @@ const filePath = stream.path; | ||
}; | ||
if (typeof args.highWaterMark === 'number') { | ||
requestOptions.highWaterMark = args.highWaterMark; | ||
} | ||
if (typeof args.reset === 'boolean') { | ||
@@ -253,0 +256,0 @@ requestOptions.reset = args.reset; |
@@ -132,2 +132,4 @@ /// <reference types="node" /> | ||
reset?: boolean; | ||
/** Default: `64 KiB` */ | ||
highWaterMark?: number; | ||
}; |
@@ -319,6 +319,8 @@ import { EventEmitter } from 'node:events'; | ||
}; | ||
if (typeof args.highWaterMark === 'number') { | ||
requestOptions.highWaterMark = args.highWaterMark; | ||
} | ||
if (typeof args.reset === 'boolean') { | ||
requestOptions.reset = args.reset; | ||
} | ||
if (args.followRedirect === false) { | ||
@@ -325,0 +327,0 @@ requestOptions.maxRedirections = 0; |
@@ -128,3 +128,2 @@ import { Readable, Writable } from 'node:stream'; | ||
dispatcher?: Dispatcher; | ||
/** | ||
@@ -136,2 +135,4 @@ * unix domain socket file path | ||
reset?: boolean; | ||
/** Default: `64 KiB` */ | ||
highWaterMark?: number; | ||
}; |
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
171401
3655
309