@claxedo/workspace-relay 0.10.1 → 0.10.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/dist/index.mjs +8 -0
- package/dist/workerd-fixture/boot.d.ts +5 -13
- package/package.json +4 -4
package/dist/index.mjs
CHANGED
|
@@ -482,11 +482,19 @@ var PUBLIC_API_ERRORS = {
|
|
|
482
482
|
enrollment_paused: { status: 403, message: "enrollment_paused" },
|
|
483
483
|
enrollment_owner_ineligible: { status: 403, message: "enrollment_owner_ineligible" },
|
|
484
484
|
enrollment_key_version_mismatch: { status: 403, message: "enrollment_key_version_mismatch" },
|
|
485
|
+
enrollment_denied: { status: 403, message: "enrollment_denied" },
|
|
486
|
+
enrollment_approval_expired: { status: 403, message: "enrollment_approval_expired" },
|
|
487
|
+
enrollment_awaiting_approval: { status: 403, message: "enrollment_awaiting_approval" },
|
|
485
488
|
invitation_invalid: { status: 403, message: "invitation_invalid" },
|
|
486
489
|
invitation_expired: { status: 410, message: "invitation_expired" },
|
|
487
490
|
invitation_revoked: { status: 410, message: "invitation_revoked" },
|
|
488
491
|
invitation_redeemed: { status: 409, message: "invitation_redeemed" },
|
|
489
492
|
invitation_host_conflict: { status: 409, message: "invitation_host_conflict" },
|
|
493
|
+
pairing_invalid: { status: 403, message: "pairing_invalid" },
|
|
494
|
+
pairing_expired: { status: 410, message: "pairing_expired" },
|
|
495
|
+
pairing_used: { status: 409, message: "pairing_used" },
|
|
496
|
+
pairing_owner_signed_out: { status: 410, message: "pairing_owner_signed_out" },
|
|
497
|
+
pairing_decided: { status: 409, message: "pairing_decided" },
|
|
490
498
|
enrollment_generation_superseded: { status: 409, message: "enrollment_generation_superseded" },
|
|
491
499
|
host_assignment_outside_scope: { status: 400, message: "host_assignment_outside_scope" },
|
|
492
500
|
host_sealing_key_undeclared: { status: 409, message: "host_sealing_key_undeclared" },
|
|
@@ -1,18 +1,10 @@
|
|
|
1
1
|
import { Miniflare, type MiniflareOptions } from "miniflare";
|
|
2
2
|
/**
|
|
3
|
-
* Kill this process's workerd children
|
|
4
|
-
*
|
|
5
|
-
* direct children of this process whose command line names workerd
|
|
6
|
-
*
|
|
7
|
-
* runs files sequentially, the only children alive when a file's `afterAll`
|
|
8
|
-
* runs are ones whose tests have already finished.
|
|
3
|
+
* Kill this process's workerd children. `bun test` exits without running
|
|
4
|
+
* `process.on("exit")` handlers, so a child left running would outlive the
|
|
5
|
+
* run. Only direct children of this process whose command line names workerd
|
|
6
|
+
* can match.
|
|
9
7
|
*/
|
|
10
8
|
export declare function reapWorkerd(): void;
|
|
11
|
-
/**
|
|
12
|
-
* Boot workerd once and return the ready Miniflare. Call it exactly once per
|
|
13
|
-
* test file, from `beforeAll`, with a `workers` array hosting every
|
|
14
|
-
* configuration the file tests. Do NOT dispose the result — not in `afterAll`,
|
|
15
|
-
* not anywhere: disposal wedges every later boot in the process (see header).
|
|
16
|
-
* Tear down with `reapWorkerd()` in `afterAll` instead.
|
|
17
|
-
*/
|
|
9
|
+
/** Boots workerd once per process; tear it down with `reapWorkerd()`. */
|
|
18
10
|
export declare function bootWorkerd(options: MiniflareOptions): Promise<Miniflare>;
|
package/package.json
CHANGED
|
@@ -33,16 +33,16 @@
|
|
|
33
33
|
"access": "public"
|
|
34
34
|
},
|
|
35
35
|
"name": "@claxedo/workspace-relay",
|
|
36
|
-
"version": "0.10.
|
|
36
|
+
"version": "0.10.2",
|
|
37
37
|
"scripts": {
|
|
38
38
|
"build": "tsx scripts/build.ts",
|
|
39
39
|
"prepublishOnly": "npm run build",
|
|
40
40
|
"typecheck": "tsc --noEmit -p tsconfig.json",
|
|
41
|
-
"test": "mkdir -p .artifacts/unit && node ../../script/test-deadline.mjs bun test src scripts --path-ignore-patterns='**/relay-workerd-*' --timeout 30000 --reporter=junit --reporter-outfile=.artifacts/unit/junit.xml && node ../../script/test-deadline.mjs
|
|
41
|
+
"test": "mkdir -p .artifacts/unit && node ../../script/test-deadline.mjs bun test src scripts --path-ignore-patterns='**/relay-workerd-*' --timeout 30000 --reporter=junit --reporter-outfile=.artifacts/unit/junit.xml && node ../../script/test-deadline.mjs node scripts/test-workerd.mjs"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@claxedo/helpers": "0.2.
|
|
45
|
-
"@claxedo/workspace-relay-protocol": "0.10.
|
|
44
|
+
"@claxedo/helpers": "0.2.2",
|
|
45
|
+
"@claxedo/workspace-relay-protocol": "0.10.2",
|
|
46
46
|
"jose": "6.0.11"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|