@theholocron/holocron-plugin-clerk 2.2.3 → 3.0.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.d.mts +3 -3
- package/dist/index.mjs +1 -1
- package/package.json +12 -12
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Auth, AuthDescription, AuthError, AuthEvent, AuthIdentity, AuthUser, CreateAuthUserInput, ParseWebhookInput, ResolveTokenInput, WebhookDashboardInfo } from "@theholocron/cli";
|
|
2
|
-
import { ClerkClient, createClerkClient } from "@theholocron/clerk-client";
|
|
2
|
+
import { ClerkClient, ClerkClientOptions, createClerkClient } from "@theholocron/clerk-client";
|
|
3
3
|
//#region src/auth.d.ts
|
|
4
|
-
declare const resolveToken: (input?:
|
|
4
|
+
declare const resolveToken: (input?: ResolveTokenInput) => string;
|
|
5
5
|
//#endregion
|
|
6
6
|
//#region src/capabilities/auth.d.ts
|
|
7
7
|
type ClerkAuthOptions = Record<string, never>;
|
|
@@ -75,4 +75,4 @@ declare function createPlugin(options?: ClerkPluginOptions): {
|
|
|
75
75
|
*/
|
|
76
76
|
declare const AUTH_HINT: string;
|
|
77
77
|
//#endregion
|
|
78
|
-
export { AUTH_HINT, AuthError, ClerkAuth, ClerkPluginOptions, PluginContext, type ResolveTokenInput, type VerifyTokenFailure, type VerifyTokenResult, type VerifyTokenSuccess, auth, createClerkClient, createContext, createPlugin, parseWebhook, resolveToken, verifyToken };
|
|
78
|
+
export { AUTH_HINT, AuthError, ClerkAuth, type ClerkClientOptions, ClerkPluginOptions, PluginContext, type ResolveTokenInput, type VerifyTokenFailure, type VerifyTokenResult, type VerifyTokenSuccess, auth, createClerkClient, createContext, createPlugin, parseWebhook, resolveToken, verifyToken };
|
package/dist/index.mjs
CHANGED
|
@@ -166,7 +166,7 @@ async function verifySignature(input) {
|
|
|
166
166
|
let sigBytes;
|
|
167
167
|
try {
|
|
168
168
|
sigBytes = Buffer.from(sig.slice(comma + 1), "base64");
|
|
169
|
-
} catch {
|
|
169
|
+
} catch /* istanbul ignore next -- Buffer.from('base64') never throws in Node.js */ {
|
|
170
170
|
return false;
|
|
171
171
|
}
|
|
172
172
|
if (sigBytes.length !== computed.length) return false;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theholocron/holocron-plugin-clerk",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"description": "Holocron plugin for Clerk. Implements the auth capability against Clerk's Backend REST API.",
|
|
5
5
|
"homepage": "https://github.com/theholocron/holocron/tree/main/packages/holocron-plugin-clerk#readme",
|
|
6
6
|
"bugs": "https://github.com/theholocron/holocron/issues",
|
|
@@ -21,15 +21,15 @@
|
|
|
21
21
|
}
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
|
-
"@theholocron/clerk-client": "^1.3.
|
|
25
|
-
"@theholocron/cli": "
|
|
24
|
+
"@theholocron/clerk-client": "^1.3.3",
|
|
25
|
+
"@theholocron/cli": "3.0.0"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@theholocron/clerk-client": "^1.3.
|
|
29
|
-
"@theholocron/eslint-config": "^7.
|
|
30
|
-
"@theholocron/tsconfig": "^7.
|
|
31
|
-
"@theholocron/tsdown-config": "^7.
|
|
32
|
-
"@theholocron/vitest-config": "^7.
|
|
28
|
+
"@theholocron/clerk-client": "^1.3.3",
|
|
29
|
+
"@theholocron/eslint-config": "^7.5.0",
|
|
30
|
+
"@theholocron/tsconfig": "^7.5.0",
|
|
31
|
+
"@theholocron/tsdown-config": "^7.5.0",
|
|
32
|
+
"@theholocron/vitest-config": "^7.5.0",
|
|
33
33
|
"@types/node": "^26",
|
|
34
34
|
"@vitest/coverage-v8": "^4.1.10",
|
|
35
35
|
"@vitest/eslint-plugin": "^1.6.23",
|
|
@@ -37,10 +37,10 @@
|
|
|
37
37
|
"eslint-plugin-n": "^18.2.2",
|
|
38
38
|
"globals": "^17.7.0",
|
|
39
39
|
"tsdown": "^0.22.13",
|
|
40
|
-
"tsx": "4.
|
|
40
|
+
"tsx": "4.23.1",
|
|
41
41
|
"typescript": "^5.9.3",
|
|
42
42
|
"vitest": "^4.1.10",
|
|
43
|
-
"@theholocron/cli": "
|
|
43
|
+
"@theholocron/cli": "3.0.0"
|
|
44
44
|
},
|
|
45
45
|
"publishConfig": {
|
|
46
46
|
"access": "public"
|
|
@@ -49,6 +49,7 @@
|
|
|
49
49
|
"dist",
|
|
50
50
|
"README.md"
|
|
51
51
|
],
|
|
52
|
+
"types": "./dist/index.d.mts",
|
|
52
53
|
"scripts": {
|
|
53
54
|
"build": "tsdown",
|
|
54
55
|
"lint": "eslint .",
|
|
@@ -57,6 +58,5 @@
|
|
|
57
58
|
"test:watch": "vitest",
|
|
58
59
|
"test:coverage": "vitest run --coverage",
|
|
59
60
|
"validate": "tsx scripts/validate.mjs"
|
|
60
|
-
}
|
|
61
|
-
"types": "./dist/index.d.mts"
|
|
61
|
+
}
|
|
62
62
|
}
|