@clerk/shared
Advanced tools
Comparing version 2.20.14-snapshot.v20250123153506 to 2.20.14
@@ -53,3 +53,3 @@ "use strict"; | ||
return new Date(d || /* @__PURE__ */ new Date()); | ||
} catch (e) { | ||
} catch { | ||
return /* @__PURE__ */ new Date(); | ||
@@ -56,0 +56,0 @@ } |
@@ -33,3 +33,3 @@ "use strict"; | ||
return process.env.NODE_ENV === "test"; | ||
} catch (err) { | ||
} catch { | ||
} | ||
@@ -41,3 +41,3 @@ return false; | ||
return process.env.NODE_ENV === "production"; | ||
} catch (err) { | ||
} catch { | ||
} | ||
@@ -44,0 +44,0 @@ return false; |
@@ -178,3 +178,3 @@ "use strict"; | ||
return process.env.NODE_ENV === "development"; | ||
} catch (err) { | ||
} catch { | ||
} | ||
@@ -186,3 +186,3 @@ return false; | ||
return process.env.NODE_ENV === "test"; | ||
} catch (err) { | ||
} catch { | ||
} | ||
@@ -194,3 +194,3 @@ return false; | ||
return process.env.NODE_ENV === "production"; | ||
} catch (err) { | ||
} catch { | ||
} | ||
@@ -667,3 +667,3 @@ return false; | ||
return new Date(d || /* @__PURE__ */ new Date()); | ||
} catch (e) { | ||
} catch { | ||
return /* @__PURE__ */ new Date(); | ||
@@ -1041,3 +1041,3 @@ } | ||
if (!src) { | ||
reject(NO_SRC_ERROR); | ||
reject(new Error(NO_SRC_ERROR)); | ||
} | ||
@@ -1048,3 +1048,3 @@ if (!document || !document.body) { | ||
const script = document.createElement("script"); | ||
crossOrigin && script.setAttribute("crossorigin", crossOrigin); | ||
if (crossOrigin) script.setAttribute("crossorigin", crossOrigin); | ||
script.async = async || false; | ||
@@ -1214,3 +1214,3 @@ script.defer = defer || false; | ||
// src/versionSelector.ts | ||
var versionSelector = (clerkJSVersion, packageVersion = "5.49.0-snapshot.v20250123153506") => { | ||
var versionSelector = (clerkJSVersion, packageVersion = "5.49.0") => { | ||
if (clerkJSVersion) { | ||
@@ -1222,3 +1222,3 @@ return clerkJSVersion; | ||
if (prereleaseTag === "snapshot") { | ||
return "5.49.0-snapshot.v20250123153506"; | ||
return "5.49.0"; | ||
} | ||
@@ -1320,3 +1320,3 @@ return prereleaseTag; | ||
window.localStorage.removeItem(this.channelKey); | ||
} catch (e) { | ||
} catch { | ||
} | ||
@@ -1340,3 +1340,3 @@ }; | ||
this.eventTarget.dispatchEvent(event); | ||
} catch (e2) { | ||
} catch { | ||
} | ||
@@ -1366,3 +1366,3 @@ }; | ||
return new Worker(workerScript, opts); | ||
} catch (e) { | ||
} catch { | ||
console.warn("Clerk: Cannot create worker from blob. Consider adding worker-src blob:; to your CSP"); | ||
@@ -1369,0 +1369,0 @@ return null; |
@@ -213,3 +213,3 @@ "use strict"; | ||
if (!src) { | ||
reject(NO_SRC_ERROR); | ||
reject(new Error(NO_SRC_ERROR)); | ||
} | ||
@@ -220,3 +220,3 @@ if (!document || !document.body) { | ||
const script = document.createElement("script"); | ||
crossOrigin && script.setAttribute("crossorigin", crossOrigin); | ||
if (crossOrigin) script.setAttribute("crossorigin", crossOrigin); | ||
script.async = async || false; | ||
@@ -279,3 +279,3 @@ script.defer = defer || false; | ||
// src/versionSelector.ts | ||
var versionSelector = (clerkJSVersion, packageVersion = "5.49.0-snapshot.v20250123153506") => { | ||
var versionSelector = (clerkJSVersion, packageVersion = "5.49.0") => { | ||
if (clerkJSVersion) { | ||
@@ -287,3 +287,3 @@ return clerkJSVersion; | ||
if (prereleaseTag === "snapshot") { | ||
return "5.49.0-snapshot.v20250123153506"; | ||
return "5.49.0"; | ||
} | ||
@@ -290,0 +290,0 @@ return prereleaseTag; |
@@ -76,3 +76,3 @@ "use strict"; | ||
if (!src) { | ||
reject(NO_SRC_ERROR); | ||
reject(new Error(NO_SRC_ERROR)); | ||
} | ||
@@ -83,3 +83,3 @@ if (!document || !document.body) { | ||
const script = document.createElement("script"); | ||
crossOrigin && script.setAttribute("crossorigin", crossOrigin); | ||
if (crossOrigin) script.setAttribute("crossorigin", crossOrigin); | ||
script.async = async || false; | ||
@@ -86,0 +86,0 @@ script.defer = defer || false; |
@@ -37,3 +37,3 @@ "use strict"; | ||
window.localStorage.removeItem(this.channelKey); | ||
} catch (e) { | ||
} catch { | ||
} | ||
@@ -57,3 +57,3 @@ }; | ||
this.eventTarget.dispatchEvent(event); | ||
} catch (e2) { | ||
} catch { | ||
} | ||
@@ -60,0 +60,0 @@ }; |
@@ -43,3 +43,3 @@ "use strict"; | ||
return new Worker(workerScript, opts); | ||
} catch (e) { | ||
} catch { | ||
console.warn("Clerk: Cannot create worker from blob. Consider adding worker-src blob:; to your CSP"); | ||
@@ -46,0 +46,0 @@ return null; |
@@ -103,3 +103,2 @@ "use strict"; | ||
__export(clerk_swr_exports, { | ||
SWRConfig: () => import_swr.SWRConfig, | ||
useSWR: () => import_swr.default, | ||
@@ -133,3 +132,3 @@ useSWRInfinite: () => import_infinite.default | ||
}) => { | ||
return /* @__PURE__ */ import_react2.default.createElement(import_swr.SWRConfig, { value: swrConfig }, /* @__PURE__ */ import_react2.default.createElement( | ||
return /* @__PURE__ */ import_react2.default.createElement(clerk_swr_exports.SWRConfig, { value: swrConfig }, /* @__PURE__ */ import_react2.default.createElement( | ||
OrganizationContextInternal.Provider, | ||
@@ -136,0 +135,0 @@ { |
@@ -61,3 +61,3 @@ "use strict"; | ||
return process.env.NODE_ENV === "development"; | ||
} catch (err) { | ||
} catch { | ||
} | ||
@@ -69,3 +69,3 @@ return false; | ||
return process.env.NODE_ENV === "test"; | ||
} catch (err) { | ||
} catch { | ||
} | ||
@@ -77,3 +77,3 @@ return false; | ||
return process.env.NODE_ENV === "production"; | ||
} catch (err) { | ||
} catch { | ||
} | ||
@@ -80,0 +80,0 @@ return false; |
@@ -27,3 +27,3 @@ "use strict"; | ||
module.exports = __toCommonJS(versionSelector_exports); | ||
var versionSelector = (clerkJSVersion, packageVersion = "5.49.0-snapshot.v20250123153506") => { | ||
var versionSelector = (clerkJSVersion, packageVersion = "5.49.0") => { | ||
if (clerkJSVersion) { | ||
@@ -35,3 +35,3 @@ return clerkJSVersion; | ||
if (prereleaseTag === "snapshot") { | ||
return "5.49.0-snapshot.v20250123153506"; | ||
return "5.49.0"; | ||
} | ||
@@ -38,0 +38,0 @@ return prereleaseTag; |
@@ -83,3 +83,3 @@ "use strict"; | ||
return isWebAuthnSupported() && await window.PublicKeyCredential.isConditionalMediationAvailable(); | ||
} catch (e) { | ||
} catch { | ||
return false; | ||
@@ -91,3 +91,3 @@ } | ||
return typeof window !== "undefined" && await window.PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable(); | ||
} catch (e) { | ||
} catch { | ||
return false; | ||
@@ -94,0 +94,0 @@ } |
@@ -43,3 +43,3 @@ "use strict"; | ||
return new Worker(workerScript, opts); | ||
} catch (e) { | ||
} catch { | ||
console.warn("Clerk: Cannot create worker from blob. Consider adding worker-src blob:; to your CSP"); | ||
@@ -46,0 +46,0 @@ return null; |
{ | ||
"name": "@clerk/shared", | ||
"version": "2.20.14-snapshot.v20250123153506", | ||
"version": "2.20.14", | ||
"description": "Internal package utils used by the Clerk SDKs", | ||
@@ -125,3 +125,3 @@ "repository": { | ||
"swr": "^2.2.0", | ||
"@clerk/types": "^4.44.0-snapshot.v20250123153506" | ||
"@clerk/types": "^4.44.0" | ||
}, | ||
@@ -132,4 +132,3 @@ "devDependencies": { | ||
"cross-fetch": "^4.0.0", | ||
"esbuild": "0.20.2", | ||
"@clerk/eslint-config-custom": "0.0.2" | ||
"esbuild": "0.20.2" | ||
}, | ||
@@ -161,3 +160,3 @@ "peerDependencies": { | ||
"postinstall": "node ./scripts/postinstall.mjs", | ||
"lint": "eslint src/", | ||
"lint": "eslint src", | ||
"lint:attw": "attw --pack .", | ||
@@ -164,0 +163,0 @@ "lint:publint": "publint", |
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
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
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
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
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
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
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
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
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
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
4
1
1139979
12773
Updated@clerk/types@^4.44.0