@jskit-ai/connectors-catalog 0.1.44 → 0.1.46

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.44",
3
+ "version": "0.1.46",
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.44",
126
+ "@jskit-ai/connectors-core": "0.1.46",
127
127
  "@modelcontextprotocol/sdk": "1.32.1",
128
128
  "@smithy/fetch-http-handler": "5.8.0",
129
129
  "jose": "^6.1.3",
130
130
  "json-rest-schema": "^1.0.17"
131
131
  },
132
132
  "peerDependencies": {
133
- "@jskit-ai/kernel": "0.1.227"
133
+ "@jskit-ai/kernel": "0.1.229"
134
134
  },
135
135
  "jskit": {
136
136
  "kind": "runtime",
@@ -199,8 +199,12 @@ test("X cancellation and timeout do not replay reads or discard a valid connecti
199
199
  await service.connectApiKey(verification); state.wait = true;
200
200
  const controller = new AbortController();
201
201
  const operation = { ...input, operation: "users.lookup", input: { username: "example" } };
202
- const pending = service.invoke({ ...operation, signal: controller.signal });
203
- setTimeout(() => controller.abort(), 15);
202
+ const cancellableService = createConnectionService({ ...options, fetchImpl: (address, init) => {
203
+ const request = options.fetchImpl(address, init);
204
+ controller.abort();
205
+ return request;
206
+ } });
207
+ const pending = cancellableService.invoke({ ...operation, signal: controller.signal });
204
208
  await assert.rejects(pending, { code: "connector_cancelled" });
205
209
  const timeoutService = createConnectionService({ ...options, providers: [{ ...xTwitterProvider, requestTimeoutMs: 20 }] });
206
210
  const keepAlive = setTimeout(() => {}, 1000);