@claxedo/workspace-relay-protocol 0.6.0 → 0.7.0
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 +2 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -111,9 +111,10 @@ function createClerkTokenVerifier(options) {
|
|
|
111
111
|
};
|
|
112
112
|
}
|
|
113
113
|
function createStaticTokenVerifier(options) {
|
|
114
|
+
const tokens = Object.assign(/* @__PURE__ */ Object.create(null), options.tokens);
|
|
114
115
|
return {
|
|
115
116
|
async verify(token) {
|
|
116
|
-
const claims =
|
|
117
|
+
const claims = tokens[token];
|
|
117
118
|
if (!claims) {
|
|
118
119
|
throw new TokenVerifierError({
|
|
119
120
|
code: "token_not_in_static_table",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@claxedo/workspace-relay-protocol",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Wire types, message validation, and token verifier interfaces for the Claxedo workspace relay tunnel protocol",
|
|
6
6
|
"license": "MIT",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"build": "tsx scripts/build.ts",
|
|
42
42
|
"prepublishOnly": "npm run build",
|
|
43
43
|
"typecheck": "tsc --noEmit -p tsconfig.json",
|
|
44
|
-
"test": "bun test src"
|
|
44
|
+
"test": "mkdir -p .artifacts/unit && bun test src --reporter=junit --reporter-outfile=.artifacts/unit/junit.xml"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@tsconfig/node-lts": "22.0.4",
|