@jskit-ai/connectors-catalog 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jskit-ai/connectors-catalog",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Provider definitions and focused API operations for JSKIT connectors.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -123,14 +123,14 @@
|
|
|
123
123
|
"@aws-sdk/client-redshift-data": "3.1128.0",
|
|
124
124
|
"@aws-sdk/client-s3": "3.1128.0",
|
|
125
125
|
"@aws-sdk/s3-request-presigner": "3.1128.0",
|
|
126
|
-
"@jskit-ai/connectors-core": "0.1.
|
|
126
|
+
"@jskit-ai/connectors-core": "0.1.2",
|
|
127
127
|
"@modelcontextprotocol/sdk": "1.30.0",
|
|
128
128
|
"@smithy/fetch-http-handler": "5.8.0",
|
|
129
129
|
"json-rest-schema": "^1.0.17",
|
|
130
130
|
"jose": "^6.1.3"
|
|
131
131
|
},
|
|
132
132
|
"peerDependencies": {
|
|
133
|
-
"@jskit-ai/kernel": "0.1.
|
|
133
|
+
"@jskit-ai/kernel": "0.1.185"
|
|
134
134
|
},
|
|
135
135
|
"jskit": {
|
|
136
136
|
"kind": "runtime",
|
|
@@ -163,6 +163,9 @@ test("dbt changing environment, host or token reference requires verification fo
|
|
|
163
163
|
});
|
|
164
164
|
|
|
165
165
|
test("dbt abort and timeout interrupt requests without replay or automatic page traversal", async (t) => {
|
|
166
|
+
// The fake transport has no socket to keep Node 22 alive for an unrefed timeout.
|
|
167
|
+
const keepAlive = setTimeout(() => {}, 1000);
|
|
168
|
+
t.after(() => clearTimeout(keepAlive));
|
|
166
169
|
const f = await fixture(t); await f.service.connectApiKey(input); const before = f.requests.length;
|
|
167
170
|
const controller = new AbortController(); controller.abort();
|
|
168
171
|
await assert.rejects(f.service.invoke({ ...input, operation: "metrics.list", signal: controller.signal }), { code: "connector_cancelled" });
|
package/test/google-ads.test.js
CHANGED
|
@@ -241,6 +241,9 @@ test("Google Ads rejects declined or insufficient consent and keeps managed assi
|
|
|
241
241
|
});
|
|
242
242
|
|
|
243
243
|
test("Google Ads refresh scope reduction, API cancellation and timeout do not replay requests", async (t) => {
|
|
244
|
+
// The fake transport has no socket to keep Node 22 alive for an unrefed timeout.
|
|
245
|
+
const keepAlive = setTimeout(() => {}, 1000);
|
|
246
|
+
t.after(() => clearTimeout(keepAlive));
|
|
244
247
|
const f = await fixture(t); await f.connect(); f.state.stall = "api";
|
|
245
248
|
const timed = createConnectionService({ ...f.options, providers: [{ ...provider, requestTimeoutMs: 20 }] });
|
|
246
249
|
await assert.rejects(f.invoke(undefined, timed), { code: "connector_provider_timeout" });
|
package/test/salesforce.test.js
CHANGED
|
@@ -235,6 +235,9 @@ test("Salesforce host policy, cancelled/denied consent and managed references ca
|
|
|
235
235
|
});
|
|
236
236
|
|
|
237
237
|
test("Salesforce cancellation and timeout interrupt requests and a revoked refresh becomes reconnect-required", async (t) => {
|
|
238
|
+
// The fake transport has no socket to keep Node 22 alive for an unrefed timeout.
|
|
239
|
+
const keepAlive = setTimeout(() => {}, 1000);
|
|
240
|
+
t.after(() => clearTimeout(keepAlive));
|
|
238
241
|
const f = await fixture(t); await f.connect(); f.state.stall = "api";
|
|
239
242
|
const timed = createConnectionService({ ...f.options, providers: [{ ...provider, requestTimeoutMs: 30 }] });
|
|
240
243
|
await assert.rejects(timed.invoke({ ...input, operation: "limits.read" }), { code: "connector_provider_timeout" });
|
package/test/xero.test.js
CHANGED
|
@@ -248,6 +248,9 @@ test("Xero errors are redacted, never retried and require reconnect after authen
|
|
|
248
248
|
});
|
|
249
249
|
|
|
250
250
|
test("Xero interruption and timeout stop before the accounting call and keep the connection usable", async (t) => {
|
|
251
|
+
// The fake transport has no socket to keep Node 22 alive for an unrefed timeout.
|
|
252
|
+
const keepAlive = setTimeout(() => {}, 1000);
|
|
253
|
+
t.after(() => clearTimeout(keepAlive));
|
|
251
254
|
const f = await fixture(t); await f.connect(); f.state.stall = true;
|
|
252
255
|
const service = createConnectionService({ ...f.options, providers: [{ ...xeroProvider, requestTimeoutMs: 35 }] });
|
|
253
256
|
const count = f.requests.length;
|