Comparing version 6.7.3 to 6.7.4
@@ -802,3 +802,2 @@ import { CustomError } from 'ts-custom-error'; | ||
const DEFAULT_TIMEOUT_MS = 1000 * 300; | ||
class HttpConfigImpl { | ||
@@ -830,6 +829,2 @@ constructor(props, serializer) { | ||
} | ||
createTimeout() { | ||
var _a; | ||
return AbortSignal.timeout((_a = this.props.timeout) !== null && _a !== void 0 ? _a : DEFAULT_TIMEOUT_MS); | ||
} | ||
mergeHeadersWithDefaults(override = {}) { | ||
@@ -849,4 +844,6 @@ var _a, _b; | ||
var _a; | ||
const timeout = this.createTimeout(); | ||
const signals = [timeout]; | ||
const signals = []; | ||
if (this.props.timeout != undefined) { | ||
signals.push(AbortSignal.timeout(this.props.timeout)); | ||
} | ||
if ((_a = this.props.requestInit) === null || _a === void 0 ? void 0 : _a.signal) { | ||
@@ -853,0 +850,0 @@ signals.push(this.props.requestInit.signal); |
@@ -5,3 +5,3 @@ { | ||
"private": false, | ||
"version": "6.7.3", | ||
"version": "6.7.4", | ||
"author": "Ryo Igarashi <n33t5hin@gmail.com>", | ||
@@ -8,0 +8,0 @@ "license": "MIT", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
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
456620
6576