Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@clerk/shared

Package Overview
Dependencies
Maintainers
8
Versions
1892
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@clerk/shared - npm Package Compare versions

Comparing version 2.19.1-snapshot.v20241206121546 to 2.19.1

dist/chunk-KAQETGMA.mjs

3

dist/error.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc