tinacms-clerk 0.0.0-e0ddb8c-20241004065742 → 0.0.0-e5c0e91-20250421003142

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.ts CHANGED
@@ -1,16 +1 @@
1
- import type { IncomingMessage, ServerResponse } from 'http';
2
- export declare const ClerkBackendAuthentication: ({ secretKey, allowList, orgId, }: {
3
- secretKey: string;
4
- allowList?: string[];
5
- orgId?: string;
6
- }) => {
7
- isAuthorized: (req: IncomingMessage, _res: ServerResponse) => Promise<{
8
- isAuthorized: false;
9
- errorMessage: string;
10
- errorCode: number;
11
- } | {
12
- isAuthorized: true;
13
- errorMessage?: undefined;
14
- errorCode?: undefined;
15
- }>;
16
- };
1
+ export * from "../src/index"
package/dist/index.js CHANGED
@@ -17,11 +17,11 @@ var __copyProps = (to, from, except, desc) => {
17
17
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
18
 
19
19
  // src/index.ts
20
- var src_exports = {};
21
- __export(src_exports, {
20
+ var index_exports = {};
21
+ __export(index_exports, {
22
22
  ClerkBackendAuthentication: () => ClerkBackendAuthentication
23
23
  });
24
- module.exports = __toCommonJS(src_exports);
24
+ module.exports = __toCommonJS(index_exports);
25
25
  var import_backend = require("@clerk/backend");
26
26
  var ClerkBackendAuthentication = ({
27
27
  secretKey,
package/dist/tinacms.d.ts CHANGED
@@ -1,26 +1 @@
1
- import { AbstractAuthProvider } from 'tinacms';
2
- import type Clerk from '@clerk/clerk-js';
3
- export declare class ClerkAuthProvider extends AbstractAuthProvider {
4
- clerk: Clerk;
5
- allowedList?: string[];
6
- orgId?: string;
7
- constructor({ orgId, clerk, allowedList, }: {
8
- clerk: Clerk;
9
- /**
10
- * For premium Clerk users, you can use restrictions
11
- * https://clerk.com/docs/authentication/allowlist
12
- */
13
- allowedList?: string[];
14
- orgId?: string;
15
- });
16
- /**
17
- * Generates a short-lived token when Tina makes a request
18
- */
19
- getToken(): Promise<{
20
- id_token: string;
21
- }>;
22
- logout(): Promise<void>;
23
- authenticate(): Promise<void>;
24
- authorize(context?: any): Promise<any>;
25
- getUser(): Promise<any>;
26
- }
1
+ export * from "../src/tinacms"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tinacms-clerk",
3
- "version": "0.0.0-e0ddb8c-20241004065742",
3
+ "version": "0.0.0-e5c0e91-20250421003142",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.mjs",
6
6
  "files": [
@@ -20,15 +20,15 @@
20
20
  "devDependencies": {
21
21
  "@clerk/backend": "0.31.3",
22
22
  "@clerk/clerk-js": "4.56.2",
23
- "@types/node": "^22.7.4",
24
- "typescript": "^5.6.2",
25
- "@tinacms/scripts": "1.2.3",
26
- "tinacms": "0.0.0-e0ddb8c-20241004065742"
23
+ "@types/node": "^22.13.1",
24
+ "typescript": "^5.7.3",
25
+ "@tinacms/scripts": "1.3.4",
26
+ "tinacms": "0.0.0-e5c0e91-20250421003142"
27
27
  },
28
28
  "peerDependencies": {
29
29
  "@clerk/backend": "0.x",
30
30
  "@clerk/clerk-js": "4.x",
31
- "tinacms": "0.0.0-e0ddb8c-20241004065742"
31
+ "tinacms": "0.0.0-e5c0e91-20250421003142"
32
32
  },
33
33
  "publishConfig": {
34
34
  "registry": "https://registry.npmjs.org"