@clerk/shared
Advanced tools
Comparing version 2.17.1-snapshot.v20241128180515 to 2.17.1-snapshot.v20241129092324
@@ -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.35.1-snapshot.v20241128180515") => { | ||
var versionSelector = (clerkJSVersion, packageVersion = "5.36.0-snapshot.v20241129092324") => { | ||
if (clerkJSVersion) { | ||
@@ -1212,3 +1196,3 @@ return clerkJSVersion; | ||
if (prereleaseTag === "snapshot") { | ||
return "5.35.1-snapshot.v20241128180515"; | ||
return "5.36.0-snapshot.v20241129092324"; | ||
} | ||
@@ -1674,3 +1658,2 @@ return prereleaseTag; | ||
differenceInCalendarDays, | ||
errorToJSON, | ||
extension, | ||
@@ -1677,0 +1660,0 @@ extractDevBrowserJWTFromURL, |
@@ -272,3 +272,3 @@ "use strict"; | ||
// src/versionSelector.ts | ||
var versionSelector = (clerkJSVersion, packageVersion = "5.35.1-snapshot.v20241128180515") => { | ||
var versionSelector = (clerkJSVersion, packageVersion = "5.36.0-snapshot.v20241129092324") => { | ||
if (clerkJSVersion) { | ||
@@ -280,3 +280,3 @@ return clerkJSVersion; | ||
if (prereleaseTag === "snapshot") { | ||
return "5.35.1-snapshot.v20241128180515"; | ||
return "5.36.0-snapshot.v20241129092324"; | ||
} | ||
@@ -283,0 +283,0 @@ return prereleaseTag; |
@@ -27,3 +27,3 @@ "use strict"; | ||
module.exports = __toCommonJS(versionSelector_exports); | ||
var versionSelector = (clerkJSVersion, packageVersion = "5.35.1-snapshot.v20241128180515") => { | ||
var versionSelector = (clerkJSVersion, packageVersion = "5.36.0-snapshot.v20241129092324") => { | ||
if (clerkJSVersion) { | ||
@@ -35,3 +35,3 @@ return clerkJSVersion; | ||
if (prereleaseTag === "snapshot") { | ||
return "5.35.1-snapshot.v20241128180515"; | ||
return "5.36.0-snapshot.v20241129092324"; | ||
} | ||
@@ -38,0 +38,0 @@ return prereleaseTag; |
{ | ||
"name": "@clerk/shared", | ||
"version": "2.17.1-snapshot.v20241128180515", | ||
"version": "2.17.1-snapshot.v20241129092324", | ||
"description": "Internal package utils used by the Clerk SDKs", | ||
@@ -123,3 +123,3 @@ "repository": { | ||
"swr": "^2.2.0", | ||
"@clerk/types": "4.35.1-snapshot.v20241128180515" | ||
"@clerk/types": "4.36.0-snapshot.v20241129092324" | ||
}, | ||
@@ -126,0 +126,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
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
1091741
321748
12128
+ Added@clerk/types@4.36.0-snapshot.v20241129092324(transitive)
- Removed@clerk/types@4.35.1-snapshot.v20241128180515(transitive)