@clerk/clerk-react
Advanced tools
Comparing version 2.9.0 to 2.9.1-staging.2
@@ -7,3 +7,4 @@ import React from 'react'; | ||
} | ||
export declare const ClerkProvider: React.ComponentType<ClerkProviderProps>; | ||
declare const ClerkProvider: React.ComponentType<ClerkProviderProps>; | ||
export { ClerkProvider }; | ||
//# sourceMappingURL=ClerkProvider.d.ts.map |
@@ -24,3 +24,5 @@ "use strict"; | ||
} | ||
exports.ClerkProvider = (0, utils_1.withMaxAllowedInstancesGuard)(ClerkProviderBase, 'ClerkProvider', errors_1.multipleClerkProvidersError); | ||
const ClerkProvider = (0, utils_1.withMaxAllowedInstancesGuard)(ClerkProviderBase, 'ClerkProvider', errors_1.multipleClerkProvidersError); | ||
exports.ClerkProvider = ClerkProvider; | ||
ClerkProvider.displayName = 'ClerkProvider'; | ||
//# sourceMappingURL=ClerkProvider.js.map |
/** DO NOT EDIT: This file is automatically generated by ../scripts/info.js */ | ||
export declare const LIB_VERSION = "2.9.0"; | ||
export declare const LIB_VERSION = "2.9.1-staging.2"; | ||
export declare const LIB_NAME = "@clerk/clerk-react"; | ||
//# sourceMappingURL=info.d.ts.map |
@@ -5,4 +5,4 @@ "use strict"; | ||
/** DO NOT EDIT: This file is automatically generated by ../scripts/info.js */ | ||
exports.LIB_VERSION = '2.9.0'; | ||
exports.LIB_VERSION = '2.9.1-staging.2'; | ||
exports.LIB_NAME = '@clerk/clerk-react'; | ||
//# sourceMappingURL=info.js.map |
@@ -8,6 +8,4 @@ "use strict"; | ||
const MISSING_BODY_ERROR = 'Clerk: Missing <body> element.'; | ||
function isStaging(frontendApi) { | ||
return (frontendApi.endsWith('.lclstage.dev') || | ||
frontendApi.endsWith('.stgstage.dev') || | ||
frontendApi.endsWith('.clerkstage.dev')); | ||
function extractTag(packageJsonVersion) { | ||
return packageJsonVersion.match(/-(.*)\./); | ||
} | ||
@@ -18,6 +16,6 @@ function getScriptSrc(frontendApi, localScriptSrc) { | ||
} | ||
const majorVersion = isStaging(frontendApi) | ||
? 'staging' | ||
: parseInt(info_1.LIB_VERSION.split('.')[0], 10); | ||
return `https://${frontendApi}/npm/@clerk/clerk-js@${majorVersion}/dist/clerk.browser.js`; | ||
const majorVersion = parseInt(info_1.LIB_VERSION.split('.')[0], 10); | ||
const tag = extractTag(info_1.LIB_VERSION); | ||
const sourceVersion = tag === null ? majorVersion : tag[0] === 'staging' ? 'staging' : 'next'; | ||
return `https://${frontendApi}/npm/@clerk/clerk-js@${sourceVersion}/dist/clerk.browser.js`; | ||
} | ||
@@ -24,0 +22,0 @@ function loadScript(frontendApi, localScriptSrc) { |
{ | ||
"name": "@clerk/clerk-react", | ||
"version": "2.9.0", | ||
"version": "2.9.1-staging.2", | ||
"license": "MIT", | ||
@@ -36,3 +36,3 @@ "description": "Clerk.dev React library", | ||
"dependencies": { | ||
"@clerk/types": "1.23.0", | ||
"@clerk/types": "1.23.1-staging.0", | ||
"tslib": "^2.3.1" | ||
@@ -39,0 +39,0 @@ }, |
/** DO NOT EDIT: This file is automatically generated by ../scripts/info.js */ | ||
export const LIB_VERSION = '2.9.0'; | ||
export const LIB_VERSION = '2.9.1-staging.2'; | ||
export const LIB_NAME = '@clerk/clerk-react'; |
@@ -14,8 +14,4 @@ import { LIB_VERSION } from '../info'; | ||
function isStaging(frontendApi: string): boolean { | ||
return ( | ||
frontendApi.endsWith('.lclstage.dev') || | ||
frontendApi.endsWith('.stgstage.dev') || | ||
frontendApi.endsWith('.clerkstage.dev') | ||
); | ||
function extractTag(packageJsonVersion: string) { | ||
return packageJsonVersion.match(/-(.*)\./); | ||
} | ||
@@ -31,7 +27,8 @@ | ||
const majorVersion = isStaging(frontendApi) | ||
? 'staging' | ||
: parseInt(LIB_VERSION.split('.')[0], 10); | ||
const majorVersion = parseInt(LIB_VERSION.split('.')[0], 10); | ||
const tag = extractTag(LIB_VERSION); | ||
const sourceVersion = | ||
tag === null ? majorVersion : tag[0] === 'staging' ? 'staging' : 'next'; | ||
return `https://${frontendApi}/npm/@clerk/clerk-js@${majorVersion}/dist/clerk.browser.js`; | ||
return `https://${frontendApi}/npm/@clerk/clerk-js@${sourceVersion}/dist/clerk.browser.js`; | ||
} | ||
@@ -38,0 +35,0 @@ |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
247817
216
4310
1
+ Added@clerk/types@1.23.1-staging.0(transitive)
- Removed@clerk/types@1.23.0(transitive)