@clerk/shared
Advanced tools
Comparing version 0.23.0 to 0.23.1-snapshot.08fefec
@@ -29,5 +29,8 @@ "use strict"; | ||
this.postMessage = (data) => { | ||
if (typeof window === "undefined") { | ||
return; | ||
} | ||
try { | ||
localStorage.setItem(this.channelKey, JSON.stringify(data)); | ||
localStorage.removeItem(this.channelKey); | ||
window.localStorage.setItem(this.channelKey, JSON.stringify(data)); | ||
window.localStorage.removeItem(this.channelKey); | ||
} catch (e) { | ||
@@ -34,0 +37,0 @@ } |
@@ -6,5 +6,8 @@ const KEY_PREFIX = "__lsbc__"; | ||
this.postMessage = (data) => { | ||
if (typeof window === "undefined") { | ||
return; | ||
} | ||
try { | ||
localStorage.setItem(this.channelKey, JSON.stringify(data)); | ||
localStorage.removeItem(this.channelKey); | ||
window.localStorage.setItem(this.channelKey, JSON.stringify(data)); | ||
window.localStorage.removeItem(this.channelKey); | ||
} catch (e) { | ||
@@ -11,0 +14,0 @@ } |
{ | ||
"name": "@clerk/shared", | ||
"version": "0.23.0", | ||
"version": "0.23.1-snapshot.08fefec", | ||
"description": "Internal package utils used by the Clerk SDKs", | ||
@@ -32,3 +32,3 @@ "types": "./dist/types/index.d.ts", | ||
"clean": "rimraf ./dist", | ||
"lint": "eslint .", | ||
"lint": "eslint src/", | ||
"test": "jest", | ||
@@ -39,3 +39,3 @@ "test:ci": "jest --maxWorkers=50%", | ||
"devDependencies": { | ||
"@clerk/types": "^3.52.0", | ||
"@clerk/types": "3.52.1-snapshot.08fefec", | ||
"@types/glob-to-regexp": "0.4.1", | ||
@@ -42,0 +42,0 @@ "@types/js-cookie": "3.0.2", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
620394
6953