waii-sdk-js
Advanced tools
Comparing version 1.11.0 to 1.11.1
@@ -21,2 +21,5 @@ import WaiiHttpClient from "../../../lib/src/WaiiHttpClient"; | ||
type GetSemanticContextRequestFilter = { | ||
labels?: string[]; | ||
scope?: string; | ||
statement?: string; | ||
always_include?: boolean; | ||
@@ -23,0 +26,0 @@ }; |
@@ -12,2 +12,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const undici_1 = require("undici"); | ||
class WaiiHttpClient { | ||
@@ -53,5 +54,11 @@ constructor(url = 'http://localhost:9859/api/', apiKey = '') { | ||
}; | ||
(0, undici_1.setGlobalDispatcher)(new undici_1.Agent({ | ||
connectTimeout: 6000000, | ||
headersTimeout: 6000000, | ||
bodyTimeout: 6000000, | ||
keepAliveTimeout: 6000000 | ||
})); | ||
let timer; | ||
let fetchOrTimeout = Promise.race([ | ||
fetch(this.url + endpoint, request), | ||
(0, undici_1.fetch)(this.url + endpoint, request), | ||
new Promise((res, rej) => { | ||
@@ -58,0 +65,0 @@ timer = setTimeout(() => rej(new Error(`Call timed out after ${this.timeout} ms`)), this.timeout); |
@@ -24,3 +24,3 @@ "use strict"; | ||
updated: [{ | ||
key: '', | ||
key: '', // will be generated by the system | ||
account_name: '<your account name>', | ||
@@ -27,0 +27,0 @@ database: '<your database>', |
{ | ||
"name": "waii-sdk-js", | ||
"version": "1.11.0", | ||
"version": "1.11.1", | ||
"description": "Typescript / Javascript SDK for the waii api. SQL generation and much more.", | ||
@@ -27,4 +27,5 @@ "main": "dist/src/waii-sdk.js", | ||
"uuid": "^9.0.0", | ||
"js-yaml": "^4.1.0" | ||
"js-yaml": "^4.1.0", | ||
"undici": "^6.7.1" | ||
} | ||
} |
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
121421
39
1439
0
3
4
+ Addedundici@^6.7.1
+ Addedundici@6.21.1(transitive)