@nodescript/core
Advanced tools
Comparing version 7.21.2 to 7.21.3
@@ -12,2 +12,3 @@ import { Schema } from 'airtight'; | ||
followRedirects: { type: 'boolean', optional: true }, | ||
timeout: { type: 'number', optional: true }, | ||
connectOptions: { | ||
@@ -14,0 +15,0 @@ type: 'object', |
@@ -16,2 +16,3 @@ export type FetchFunction = (req: FetchRequestSpec, body: any) => Promise<FetchResponseSpec>; | ||
followRedirects?: boolean; | ||
timeout?: number; | ||
connectOptions?: Record<string, any>; | ||
@@ -18,0 +19,0 @@ } |
@@ -32,2 +32,5 @@ import { parseJson } from './json.js'; | ||
} | ||
if (req.timeout != null) { | ||
headers['x-fetch-timeout'] = String(req.timeout); | ||
} | ||
return headers; | ||
@@ -34,0 +37,0 @@ } |
{ | ||
"name": "@nodescript/core", | ||
"version": "7.21.2", | ||
"version": "7.21.3", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "description": "Visual programming language for Browser and Node", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
214256
3733