@jskit-ai/connectors-core 0.2.62 → 0.2.64

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-core",
3
- "version": "0.2.62",
3
+ "version": "0.2.64",
4
4
  "description": "Portable integration configuration and server-side account connection runtime.",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -15,7 +15,7 @@
15
15
  "./locales/en.json": "./locales/en.json"
16
16
  },
17
17
  "dependencies": {
18
- "@jskit-ai/resource-core": "0.1.227",
18
+ "@jskit-ai/resource-core": "0.1.229",
19
19
  "jose": "^6.1.3",
20
20
  "json-rest-schema": "^1.0.20",
21
21
  "oauth4webapi": "3.8.8",
@@ -56,10 +56,10 @@
56
56
  }
57
57
  },
58
58
  "peerDependencies": {
59
- "@jskit-ai/database-runtime": "0.1.293",
60
- "@jskit-ai/http-runtime": "0.2.37",
61
- "@jskit-ai/kernel": "0.2.36",
62
- "@jskit-ai/resource-runtime": "0.2.59"
59
+ "@jskit-ai/database-runtime": "0.1.295",
60
+ "@jskit-ai/http-runtime": "0.2.39",
61
+ "@jskit-ai/kernel": "0.2.38",
62
+ "@jskit-ai/resource-runtime": "0.2.61"
63
63
  },
64
64
  "peerDependenciesMeta": {
65
65
  "@jskit-ai/database-runtime": {
@@ -4,10 +4,10 @@ import { spawn } from "node:child_process";
4
4
  import { mkdtemp, readFile, rm, writeFile } from "node:fs/promises";
5
5
  import { tmpdir } from "node:os";
6
6
  import { join } from "node:path";
7
- import { createServer } from "node:net";
8
7
  import { once } from "node:events";
9
8
  import { fileURLToPath } from "node:url";
10
9
  import test from "node:test";
10
+ import { freePort } from "../../../tooling/testUtils/ports.mjs";
11
11
  import createKnex from "knex";
12
12
  import migration from "../migrations/connectors_core_initial.cjs";
13
13
  import { checkForeignKeys } from "@jskit-ai/resource-runtime/server";
@@ -116,11 +116,8 @@ test("durable connector storage on an isolated SQL database", { skip: !databaseU
116
116
  await t.test("the actual CLI source connects, survives restart, reads data and disconnects", { timeout: 20_000 }, async () => {
117
117
  const example = new URL("../../connector-google-calendar/patterns/calendar-cli/example/", import.meta.url);
118
118
  const directory = await mkdtemp(join(tmpdir(), "connector-cli-"));
119
- const listener = createServer();
120
- listener.listen(0, "127.0.0.1");
121
- await once(listener, "listening");
122
- const port = listener.address().port;
123
- await new Promise((resolve) => listener.close(resolve));
119
+ // The port the CLI's callback server listens on.
120
+ const port = await freePort();
124
121
  const env = { ...process.env,
125
122
  DATABASE_URL: databaseUrl,
126
123
  GOOGLE_CLIENT_SECRET: "test-only-client-secret",