jazz-browser-auth-clerk 0.7.35-guest-auth.4 → 0.7.35-guest-auth.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,8 +1,8 @@
1
1
 
2
- > jazz-browser-auth-clerk@0.7.33-guest-auth.2 build /Users/anselm/jazz/jazz/packages/jazz-browser-auth-clerk
2
+ > jazz-browser-auth-clerk@0.7.35-guest-auth.5 build /Users/anselm/jazz/jazz/packages/jazz-browser-auth-clerk
3
3
  > npm run lint && rm -rf ./dist && tsc --sourceMap --outDir dist
4
4
 
5
5
 
6
- > jazz-browser-auth-clerk@0.7.33-guest-auth.2 lint
6
+ > jazz-browser-auth-clerk@0.7.35-guest-auth.5 lint
7
7
  > eslint . --ext ts,tsx
8
8
 
@@ -0,0 +1,4 @@
1
+
2
+ > jazz-browser-auth-clerk@0.7.35-guest-auth.5 lint /Users/anselm/jazz/jazz/packages/jazz-browser-auth-clerk
3
+ > eslint . --ext ts,tsx
4
+
package/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # jazz-browser-media-images
2
2
 
3
+ ## 0.7.35-guest-auth.6
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+ - jazz-tools@0.7.35-guest-auth.6
9
+ - jazz-browser@0.7.35-guest-auth.6
10
+
11
+ ## 0.7.35-guest-auth.5
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+ - cojson@0.7.35-guest-auth.5
17
+ - jazz-browser@0.7.35-guest-auth.5
18
+ - jazz-tools@0.7.35-guest-auth.5
19
+
3
20
  ## 0.7.35-guest-auth.4
4
21
 
5
22
  ### Patch Changes
package/dist/index.js CHANGED
@@ -20,6 +20,9 @@ export class BrowserClerkAuth {
20
20
  onError: (error) => {
21
21
  this.driver.onError(error);
22
22
  },
23
+ logOut: () => {
24
+ void this.clerkClient.signOut();
25
+ },
23
26
  };
24
27
  }
25
28
  else {
@@ -42,6 +45,9 @@ export class BrowserClerkAuth {
42
45
  onError: (error) => {
43
46
  this.driver.onError(error);
44
47
  },
48
+ logOut: () => {
49
+ void this.clerkClient.signOut();
50
+ },
45
51
  };
46
52
  }
47
53
  }
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAiBA,MAAM,OAAO,gBAAgB;IACzB,YACW,MAA+B,EACrB,WAA+B;QADzC,WAAM,GAAN,MAAM,CAAyB;QACrB,gBAAW,GAAX,WAAW,CAAoB;IACjD,CAAC;IAEJ,KAAK,CAAC,KAAK;QACP,IAAI,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,CAAC;YACxB,MAAM,iBAAiB,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,cAAc,CAAC;YAC/D,IAAI,iBAAiB,CAAC,aAAa,EAAE,CAAC;gBAClC,IAAI,CAAC,iBAAiB,CAAC,iBAAiB,EAAE,CAAC;oBACvC,MAAM,IAAI,KAAK,CAAC,6BAA6B,CAAC,CAAC;gBACnD,CAAC;gBACD,OAAO;oBACH,IAAI,EAAE,UAAU;oBAChB,WAAW,EAAE;wBACT,SAAS,EACL,iBAAiB,CAAC,aAA4B;wBAClD,MAAM,EAAE,iBAAiB,CAAC,iBAAgC;qBAC7D;oBACD,SAAS,EAAE,GAAG,EAAE,GAAE,CAAC;oBACnB,OAAO,EAAE,CAAC,KAAqB,EAAE,EAAE;wBAC/B,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;oBAC/B,CAAC;iBACJ,CAAC;YACN,CAAC;iBAAM,CAAC;gBACJ,OAAO;oBACH,IAAI,EAAE,KAAK;oBACX,aAAa,EAAE;wBACX,IAAI,EACA,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,QAAQ;4BAC9B,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,QAAQ;4BAC9B,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE;qBAC/B;oBACD,eAAe,EAAE,KAAK,EAAE,WAGvB,EA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,EAAE;wBAC/B,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;oBAC/B,CAAC;oBACD,MAAM,EAAE,GAAG,EAAE;wBACT,KAAK,IAAI,CAAC,WAAW,CAAC,OAAO,EAAE,CAAC;oBACpC,CAAC;iBACJ,CAAC;YACN,CAAC;iBAAM,CAAC;gBACJ,OAAO;oBACH,IAAI,EAAE,KAAK;oBACX,aAAa,EAAE;wBACX,IAAI,EACA,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,QAAQ;4BAC9B,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,QAAQ;4BAC9B,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE;qBAC/B;oBACD,eAAe,EAAE,KAAK,EAAE,WAGvB,EAAE,EAAE;wBACD,MAAM,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,MAAM,CAAC;4BAChC,cAAc,EAAE;gCACZ,aAAa,EAAE,WAAW,CAAC,SAAS;gCACpC,iBAAiB,EAAE,WAAW,CAAC,MAAM;6BACxC;yBACJ,CAAC,CAAC;oBACP,CAAC;oBACD,SAAS,EAAE,GAAG,EAAE,GAAE,CAAC;oBACnB,OAAO,EAAE,CAAC,KAAqB,EAAE,EAAE;wBAC/B,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;oBAC/B,CAAC;oBACD,MAAM,EAAE,GAAG,EAAE;wBACT,KAAK,IAAI,CAAC,WAAW,CAAC,OAAO,EAAE,CAAC;oBACpC,CAAC;iBACJ,CAAC;YACN,CAAC;QACL,CAAC;aAAM,CAAC;YACJ,MAAM,IAAI,KAAK,CAAC,eAAe,CAAC,CAAC;QACrC,CAAC;IACL,CAAC;CACJ"}
package/package.json CHANGED
@@ -1,23 +1,22 @@
1
1
  {
2
2
  "name": "jazz-browser-auth-clerk",
3
- "version": "0.7.35-guest-auth.4",
3
+ "version": "0.7.35-guest-auth.6",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "src/index.ts",
7
7
  "license": "MIT",
8
- "dependencies": {},
9
- "peerDependencies": {
10
- "cojson": "0.7.35-unique.2",
11
- "jazz-tools": "0.7.35-guest-auth.4",
12
- "jazz-browser": "0.7.35-guest-auth.4"
13
- },
14
- "devDependencies": {
15
- "typescript": "^5.1.6"
16
- },
17
8
  "lint-staged": {
18
9
  "*.{ts,tsx}": "eslint --fix",
19
10
  "*.{js,jsx,mdx,json}": "prettier --write"
20
11
  },
12
+ "peerDependencies": {
13
+ "cojson": "0.7.35-guest-auth.5",
14
+ "jazz-browser": "0.7.35-guest-auth.6",
15
+ "jazz-tools": "0.7.35-guest-auth.6"
16
+ },
17
+ "devDependencies": {
18
+ "typescript": "^5.3.3"
19
+ },
21
20
  "scripts": {
22
21
  "lint": "eslint . --ext ts,tsx",
23
22
  "format": "prettier --write './src/**/*.{ts,tsx}'",
package/src/index.ts CHANGED
@@ -13,6 +13,7 @@ export type MinimalClerkClient = {
13
13
  unsafeMetadata: Record<string, any>;
14
14
  }) => Promise<unknown>;
15
15
  } | null | undefined;
16
+ signOut: () => Promise<void>;
16
17
  }
17
18
 
18
19
  export class BrowserClerkAuth implements AuthMethod {
@@ -39,6 +40,9 @@ export class BrowserClerkAuth implements AuthMethod {
39
40
  onError: (error: string | Error) => {
40
41
  this.driver.onError(error);
41
42
  },
43
+ logOut: () => {
44
+ void this.clerkClient.signOut();
45
+ },
42
46
  };
43
47
  } else {
44
48
  return {
@@ -64,6 +68,9 @@ export class BrowserClerkAuth implements AuthMethod {
64
68
  onError: (error: string | Error) => {
65
69
  this.driver.onError(error);
66
70
  },
71
+ logOut: () => {
72
+ void this.clerkClient.signOut();
73
+ },
67
74
  };
68
75
  }
69
76
  } else {