@clerk/shared
Advanced tools
Comparing version 2.8.0-canary.v248142a to 2.8.0-canary.v4a9f6d8
@@ -26,2 +26,3 @@ export { apiUrlFromPublishableKey } from './apiUrlFromPublishableKey.js'; | ||
export { DEV_BROWSER_JWT_KEY, extractDevBrowserJWTFromURL, setDevBrowserJWTInURL } from './devBrowser.js'; | ||
export { fastDeepMergeAndKeep, fastDeepMergeAndReplace } from './fastDeepMerge.js'; | ||
import '@clerk/types'; | ||
@@ -28,0 +29,0 @@ |
@@ -63,2 +63,4 @@ "use strict"; | ||
extractDevBrowserJWTFromURL: () => extractDevBrowserJWTFromURL, | ||
fastDeepMergeAndKeep: () => fastDeepMergeAndKeep, | ||
fastDeepMergeAndReplace: () => fastDeepMergeAndReplace, | ||
filterProps: () => filterProps, | ||
@@ -1123,3 +1125,3 @@ formatRelative: () => formatRelative, | ||
// src/versionSelector.ts | ||
var versionSelector = (clerkJSVersion, packageVersion = "5.22.0-canary.v248142a") => { | ||
var versionSelector = (clerkJSVersion, packageVersion = "5.22.0-canary.v4a9f6d8") => { | ||
if (clerkJSVersion) { | ||
@@ -1131,3 +1133,3 @@ return clerkJSVersion; | ||
if (prereleaseTag === "snapshot") { | ||
return "5.22.0-canary.v248142a"; | ||
return "5.22.0-canary.v4a9f6d8"; | ||
} | ||
@@ -1552,2 +1554,34 @@ return prereleaseTag; | ||
}; | ||
// src/fastDeepMerge.ts | ||
var fastDeepMergeAndReplace = (source, target) => { | ||
if (!source || !target) { | ||
return; | ||
} | ||
for (const key in source) { | ||
if (Object.prototype.hasOwnProperty.call(source, key) && source[key] !== null && typeof source[key] === `object`) { | ||
if (target[key] === void 0) { | ||
target[key] = new (Object.getPrototypeOf(source[key])).constructor(); | ||
} | ||
fastDeepMergeAndReplace(source[key], target[key]); | ||
} else if (Object.prototype.hasOwnProperty.call(source, key)) { | ||
target[key] = source[key]; | ||
} | ||
} | ||
}; | ||
var fastDeepMergeAndKeep = (source, target) => { | ||
if (!source || !target) { | ||
return; | ||
} | ||
for (const key in source) { | ||
if (Object.prototype.hasOwnProperty.call(source, key) && source[key] !== null && typeof source[key] === `object`) { | ||
if (target[key] === void 0) { | ||
target[key] = new (Object.getPrototypeOf(source[key])).constructor(); | ||
} | ||
fastDeepMergeAndKeep(source[key], target[key]); | ||
} else if (Object.prototype.hasOwnProperty.call(source, key) && target[key] === void 0) { | ||
target[key] = source[key]; | ||
} | ||
} | ||
}; | ||
// Annotate the CommonJS export names for ESM import in node: | ||
@@ -1595,2 +1629,4 @@ 0 && (module.exports = { | ||
extractDevBrowserJWTFromURL, | ||
fastDeepMergeAndKeep, | ||
fastDeepMergeAndReplace, | ||
filterProps, | ||
@@ -1597,0 +1633,0 @@ formatRelative, |
@@ -228,3 +228,3 @@ "use strict"; | ||
// src/versionSelector.ts | ||
var versionSelector = (clerkJSVersion, packageVersion = "5.22.0-canary.v248142a") => { | ||
var versionSelector = (clerkJSVersion, packageVersion = "5.22.0-canary.v4a9f6d8") => { | ||
if (clerkJSVersion) { | ||
@@ -236,3 +236,3 @@ return clerkJSVersion; | ||
if (prereleaseTag === "snapshot") { | ||
return "5.22.0-canary.v248142a"; | ||
return "5.22.0-canary.v4a9f6d8"; | ||
} | ||
@@ -239,0 +239,0 @@ return prereleaseTag; |
@@ -27,3 +27,3 @@ "use strict"; | ||
module.exports = __toCommonJS(versionSelector_exports); | ||
var versionSelector = (clerkJSVersion, packageVersion = "5.22.0-canary.v248142a") => { | ||
var versionSelector = (clerkJSVersion, packageVersion = "5.22.0-canary.v4a9f6d8") => { | ||
if (clerkJSVersion) { | ||
@@ -35,3 +35,3 @@ return clerkJSVersion; | ||
if (prereleaseTag === "snapshot") { | ||
return "5.22.0-canary.v248142a"; | ||
return "5.22.0-canary.v4a9f6d8"; | ||
} | ||
@@ -38,0 +38,0 @@ return prereleaseTag; |
{ | ||
"name": "@clerk/shared", | ||
"version": "2.8.0-canary.v248142a", | ||
"version": "2.8.0-canary.v4a9f6d8", | ||
"description": "Internal package utils used by the Clerk SDKs", | ||
@@ -95,3 +95,3 @@ "repository": { | ||
"dependencies": { | ||
"@clerk/types": "4.21.0-canary.v248142a", | ||
"@clerk/types": "4.21.0-canary.v4a9f6d8", | ||
"glob-to-regexp": "0.4.1", | ||
@@ -98,0 +98,0 @@ "js-cookie": "3.0.5", |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
978332
297
11021
+ Added@clerk/types@4.21.0-canary.v4a9f6d8(transitive)
- Removed@clerk/types@4.21.0-canary.v248142a(transitive)