@clerk/shared
Advanced tools
Comparing version 2.19.1-snapshot.v20241206121546 to 2.19.1
@@ -41,3 +41,2 @@ import { ClerkAPIErrorJSON, ClerkAPIError } from '@clerk/types'; | ||
declare function parseError(error: ClerkAPIErrorJSON): ClerkAPIError; | ||
declare function errorToJSON(error: ClerkAPIError | null): ClerkAPIErrorJSON; | ||
declare class ClerkAPIResponseError extends Error { | ||
@@ -138,2 +137,2 @@ clerkError: true; | ||
export { ClerkAPIResponseError, ClerkRuntimeError, ClerkWebAuthnError, EmailLinkError, EmailLinkErrorCode, type ErrorThrower, type ErrorThrowerOptions, type MetamaskError, buildErrorThrower, errorToJSON, is4xxError, isCaptchaError, isClerkAPIResponseError, isClerkRuntimeError, isEmailLinkError, isKnownError, isMetamaskError, isNetworkError, isPasswordPwnedError, isUnauthorizedError, isUserLockedError, parseError, parseErrors }; | ||
export { ClerkAPIResponseError, ClerkRuntimeError, ClerkWebAuthnError, EmailLinkError, EmailLinkErrorCode, type ErrorThrower, type ErrorThrowerOptions, type MetamaskError, buildErrorThrower, is4xxError, isCaptchaError, isClerkAPIResponseError, isClerkRuntimeError, isEmailLinkError, isKnownError, isMetamaskError, isNetworkError, isPasswordPwnedError, isUnauthorizedError, isUserLockedError, parseError, parseErrors }; |
@@ -29,3 +29,2 @@ "use strict"; | ||
buildErrorThrower: () => buildErrorThrower, | ||
errorToJSON: () => errorToJSON, | ||
is4xxError: () => is4xxError, | ||
@@ -101,17 +100,2 @@ isCaptchaError: () => isCaptchaError, | ||
} | ||
function errorToJSON(error) { | ||
var _a, _b, _c, _d, _e; | ||
return { | ||
code: (error == null ? void 0 : error.code) || "", | ||
message: (error == null ? void 0 : error.message) || "", | ||
long_message: error == null ? void 0 : error.longMessage, | ||
meta: { | ||
param_name: (_a = error == null ? void 0 : error.meta) == null ? void 0 : _a.paramName, | ||
session_id: (_b = error == null ? void 0 : error.meta) == null ? void 0 : _b.sessionId, | ||
email_addresses: (_c = error == null ? void 0 : error.meta) == null ? void 0 : _c.emailAddresses, | ||
identifiers: (_d = error == null ? void 0 : error.meta) == null ? void 0 : _d.identifiers, | ||
zxcvbn: (_e = error == null ? void 0 : error.meta) == null ? void 0 : _e.zxcvbn | ||
} | ||
}; | ||
} | ||
var ClerkAPIResponseError = class _ClerkAPIResponseError extends Error { | ||
@@ -253,3 +237,2 @@ constructor(message, { data, status, clerkTraceId }) { | ||
buildErrorThrower, | ||
errorToJSON, | ||
is4xxError, | ||
@@ -256,0 +239,0 @@ isCaptchaError, |
@@ -10,3 +10,3 @@ export { createDeferredPromise, fastDeepMergeAndKeep, fastDeepMergeAndReplace, handleValueOrFn, isDevelopmentEnvironment, isProductionEnvironment, isStaging, isTestEnvironment, logErrorInDevMode, noop, runWithExponentialBackOff } from './utils/index.js'; | ||
export { deriveState } from './deriveState.js'; | ||
export { ClerkAPIResponseError, ClerkRuntimeError, ClerkWebAuthnError, EmailLinkError, EmailLinkErrorCode, ErrorThrower, ErrorThrowerOptions, MetamaskError, buildErrorThrower, errorToJSON, is4xxError, isCaptchaError, isClerkAPIResponseError, isClerkRuntimeError, isEmailLinkError, isKnownError, isMetamaskError, isNetworkError, isPasswordPwnedError, isUnauthorizedError, isUserLockedError, parseError, parseErrors } from './error.js'; | ||
export { ClerkAPIResponseError, ClerkRuntimeError, ClerkWebAuthnError, EmailLinkError, EmailLinkErrorCode, ErrorThrower, ErrorThrowerOptions, MetamaskError, buildErrorThrower, is4xxError, isCaptchaError, isClerkAPIResponseError, isClerkRuntimeError, isEmailLinkError, isKnownError, isMetamaskError, isNetworkError, isPasswordPwnedError, isUnauthorizedError, isUserLockedError, parseError, parseErrors } from './error.js'; | ||
export { SupportedMimeType, extension, readJSONFile } from './file.js'; | ||
@@ -13,0 +13,0 @@ export { isomorphicAtob } from './isomorphicAtob.js'; |
@@ -62,3 +62,2 @@ "use strict"; | ||
differenceInCalendarDays: () => differenceInCalendarDays, | ||
errorToJSON: () => errorToJSON, | ||
extension: () => extension, | ||
@@ -856,17 +855,2 @@ extractDevBrowserJWTFromURL: () => extractDevBrowserJWTFromURL, | ||
} | ||
function errorToJSON(error) { | ||
var _a, _b, _c, _d, _e; | ||
return { | ||
code: (error == null ? void 0 : error.code) || "", | ||
message: (error == null ? void 0 : error.message) || "", | ||
long_message: error == null ? void 0 : error.longMessage, | ||
meta: { | ||
param_name: (_a = error == null ? void 0 : error.meta) == null ? void 0 : _a.paramName, | ||
session_id: (_b = error == null ? void 0 : error.meta) == null ? void 0 : _b.sessionId, | ||
email_addresses: (_c = error == null ? void 0 : error.meta) == null ? void 0 : _c.emailAddresses, | ||
identifiers: (_d = error == null ? void 0 : error.meta) == null ? void 0 : _d.identifiers, | ||
zxcvbn: (_e = error == null ? void 0 : error.meta) == null ? void 0 : _e.zxcvbn | ||
} | ||
}; | ||
} | ||
var ClerkAPIResponseError = class _ClerkAPIResponseError extends Error { | ||
@@ -1204,3 +1188,3 @@ constructor(message, { data, status, clerkTraceId }) { | ||
// src/versionSelector.ts | ||
var versionSelector = (clerkJSVersion, packageVersion = "5.40.0-snapshot.v20241206121546") => { | ||
var versionSelector = (clerkJSVersion, packageVersion = "5.40.0") => { | ||
if (clerkJSVersion) { | ||
@@ -1212,3 +1196,3 @@ return clerkJSVersion; | ||
if (prereleaseTag === "snapshot") { | ||
return "5.40.0-snapshot.v20241206121546"; | ||
return "5.40.0"; | ||
} | ||
@@ -1677,3 +1661,2 @@ return prereleaseTag; | ||
differenceInCalendarDays, | ||
errorToJSON, | ||
extension, | ||
@@ -1680,0 +1663,0 @@ extractDevBrowserJWTFromURL, |
@@ -272,3 +272,3 @@ "use strict"; | ||
// src/versionSelector.ts | ||
var versionSelector = (clerkJSVersion, packageVersion = "5.40.0-snapshot.v20241206121546") => { | ||
var versionSelector = (clerkJSVersion, packageVersion = "5.40.0") => { | ||
if (clerkJSVersion) { | ||
@@ -280,3 +280,3 @@ return clerkJSVersion; | ||
if (prereleaseTag === "snapshot") { | ||
return "5.40.0-snapshot.v20241206121546"; | ||
return "5.40.0"; | ||
} | ||
@@ -283,0 +283,0 @@ return prereleaseTag; |
@@ -27,3 +27,3 @@ "use strict"; | ||
module.exports = __toCommonJS(versionSelector_exports); | ||
var versionSelector = (clerkJSVersion, packageVersion = "5.40.0-snapshot.v20241206121546") => { | ||
var versionSelector = (clerkJSVersion, packageVersion = "5.40.0") => { | ||
if (clerkJSVersion) { | ||
@@ -35,3 +35,3 @@ return clerkJSVersion; | ||
if (prereleaseTag === "snapshot") { | ||
return "5.40.0-snapshot.v20241206121546"; | ||
return "5.40.0"; | ||
} | ||
@@ -38,0 +38,0 @@ return prereleaseTag; |
{ | ||
"name": "@clerk/shared", | ||
"version": "2.19.1-snapshot.v20241206121546", | ||
"version": "2.19.1", | ||
"description": "Internal package utils used by the Clerk SDKs", | ||
@@ -125,3 +125,3 @@ "repository": { | ||
"swr": "^2.2.0", | ||
"@clerk/types": "4.39.0-snapshot.v20241206121546" | ||
"@clerk/types": "4.39.0" | ||
}, | ||
@@ -128,0 +128,0 @@ "devDependencies": { |
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
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1
1124415
12614
+ Added@clerk/types@4.39.0(transitive)
- Removed@clerk/types@4.39.0-snapshot.v20241206121546(transitive)
Updated@clerk/types@4.39.0