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
1812
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.14.0 to 2.14.1-canary.v02b9ae0a47871adccfefb247878691b72e25e929

dist/chunk-7WF5IYSQ.mjs

2

dist/apiUrlFromPublishableKey.d.ts

@@ -1,3 +0,3 @@

declare const apiUrlFromPublishableKey: (publishableKey: string) => "https://api.lclclerk.com" | "https://api.clerkstage.dev" | "https://api.clerk.com";
declare const apiUrlFromPublishableKey: (publishableKey: string) => "https://api.clerk.com" | "https://api.lclclerk.com" | "https://api.clerkstage.dev";
export { apiUrlFromPublishableKey };

@@ -125,3 +125,10 @@ "use strict";

constructor(message, { code }) {
super(message);
const prefix = "\u{1F512} Clerk:";
const regex = new RegExp(prefix.replace(" ", "\\s*"), "i");
const sanitized = message.replace(regex, "");
const _message = `${prefix} ${sanitized.trim()}
(code="${code}")
`;
super(_message);
/**

@@ -139,4 +146,5 @@ * Returns a string representation of the error.

this.code = code;
this.message = message;
this.message = _message;
this.clerkRuntimeError = true;
this.name = "ClerkRuntimeError";
}

@@ -143,0 +151,0 @@ };

@@ -880,3 +880,10 @@ "use strict";

constructor(message, { code }) {
super(message);
const prefix = "\u{1F512} Clerk:";
const regex = new RegExp(prefix.replace(" ", "\\s*"), "i");
const sanitized = message.replace(regex, "");
const _message = `${prefix} ${sanitized.trim()}
(code="${code}")
`;
super(_message);
/**

@@ -894,4 +901,5 @@ * Returns a string representation of the error.

this.code = code;
this.message = message;
this.message = _message;
this.clerkRuntimeError = true;
this.name = "ClerkRuntimeError";
}

@@ -1180,3 +1188,3 @@ };

// src/versionSelector.ts
var versionSelector = (clerkJSVersion, packageVersion = "5.34.1") => {
var versionSelector = (clerkJSVersion, packageVersion = "5.34.3-canary.v02b9ae0a47871adccfefb247878691b72e25e929") => {
if (clerkJSVersion) {

@@ -1188,3 +1196,3 @@ return clerkJSVersion;

if (prereleaseTag === "snapshot") {
return "5.34.1";
return "5.34.3-canary.v02b9ae0a47871adccfefb247878691b72e25e929";
}

@@ -1191,0 +1199,0 @@ return prereleaseTag;

@@ -272,3 +272,3 @@ "use strict";

// src/versionSelector.ts
var versionSelector = (clerkJSVersion, packageVersion = "5.34.1") => {
var versionSelector = (clerkJSVersion, packageVersion = "5.34.3-canary.v02b9ae0a47871adccfefb247878691b72e25e929") => {
if (clerkJSVersion) {

@@ -280,3 +280,3 @@ return clerkJSVersion;

if (prereleaseTag === "snapshot") {
return "5.34.1";
return "5.34.3-canary.v02b9ae0a47871adccfefb247878691b72e25e929";
}

@@ -283,0 +283,0 @@ return prereleaseTag;

@@ -713,3 +713,10 @@ "use strict";

constructor(message, { code }) {
super(message);
const prefix = "\u{1F512} Clerk:";
const regex = new RegExp(prefix.replace(" ", "\\s*"), "i");
const sanitized = message.replace(regex, "");
const _message = `${prefix} ${sanitized.trim()}
(code="${code}")
`;
super(_message);
/**

@@ -727,4 +734,5 @@ * Returns a string representation of the error.

this.code = code;
this.message = message;
this.message = _message;
this.clerkRuntimeError = true;
this.name = "ClerkRuntimeError";
}

@@ -731,0 +739,0 @@ };

@@ -27,3 +27,3 @@ "use strict";

module.exports = __toCommonJS(versionSelector_exports);
var versionSelector = (clerkJSVersion, packageVersion = "5.34.1") => {
var versionSelector = (clerkJSVersion, packageVersion = "5.34.3-canary.v02b9ae0a47871adccfefb247878691b72e25e929") => {
if (clerkJSVersion) {

@@ -35,3 +35,3 @@ return clerkJSVersion;

if (prereleaseTag === "snapshot") {
return "5.34.1";
return "5.34.3-canary.v02b9ae0a47871adccfefb247878691b72e25e929";
}

@@ -38,0 +38,0 @@ return prereleaseTag;

{
"name": "@clerk/shared",
"version": "2.14.0",
"version": "2.14.1-canary.v02b9ae0a47871adccfefb247878691b72e25e929",
"description": "Internal package utils used by the Clerk SDKs",

@@ -117,18 +117,2 @@ "repository": {

],
"scripts": {
"build": "tsup",
"postbuild": "node ../../scripts/subpath-workaround.mjs shared",
"clean": "rimraf ./dist",
"dev": "tsup --watch",
"dev:publish": "npm run dev -- --env.publish",
"postinstall": "node ./scripts/postinstall.mjs",
"lint": "eslint src/",
"lint:attw": "attw --pack .",
"lint:publint": "publint",
"publish:local": "npx yalc push --replace --sig",
"test": "jest",
"test:cache:clear": "jest --clearCache --useStderr",
"test:ci": "jest --maxWorkers=70%",
"test:coverage": "jest --collectCoverage && open coverage/lcov-report/index.html"
},
"dependencies": {

@@ -143,3 +127,2 @@ "@clerk/types": "4.34.0",

"devDependencies": {
"@clerk/eslint-config-custom": "*",
"@types/glob-to-regexp": "0.4.4",

@@ -151,3 +134,4 @@ "@types/js-cookie": "3.0.6",

"tsup": "*",
"typescript": "*"
"typescript": "*",
"@clerk/eslint-config-custom": "0.0.2"
},

@@ -171,3 +155,19 @@ "peerDependencies": {

"access": "public"
},
"scripts": {
"build": "tsup",
"postbuild": "node ../../scripts/subpath-workaround.mjs shared",
"clean": "rimraf ./dist",
"dev": "tsup --watch",
"dev:publish": "pnpm dev -- --env.publish",
"postinstall": "node ./scripts/postinstall.mjs",
"lint": "eslint src/",
"lint:attw": "attw --pack .",
"lint:publint": "publint",
"publish:local": "pnpm dlx yalc push --replace --sig",
"test": "jest",
"test:cache:clear": "jest --clearCache --useStderr",
"test:ci": "jest --maxWorkers=70%",
"test:coverage": "jest --collectCoverage && open coverage/lcov-report/index.html"
}
}
}

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