@clerk/clerk-react
Advanced tools
Comparing version 2.10.1 to 2.10.2-staging.0
@@ -0,1 +1,2 @@ | ||
/// <reference types="react" /> | ||
import { SignInWithMetamaskButtonProps } from '../types'; | ||
@@ -2,0 +3,0 @@ export declare const SignInWithMetamaskButton: { |
@@ -0,1 +1,2 @@ | ||
/// <reference types="react" /> | ||
import { SignOutButtonProps, WithClerkProp } from '../types'; | ||
@@ -2,0 +3,0 @@ export declare const SignOutButton: { |
@@ -0,1 +1,2 @@ | ||
/// <reference types="react" /> | ||
import { UserButtonProps, UserProfileProps } from '@clerk/types'; | ||
@@ -2,0 +3,0 @@ export declare const SignIn: { |
/** DO NOT EDIT: This file is automatically generated by ../scripts/info.js */ | ||
export declare const LIB_VERSION = "2.10.1"; | ||
export declare const LIB_VERSION = "2.10.2-staging.0"; | ||
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.10.1'; | ||
exports.LIB_VERSION = '2.10.2-staging.0'; | ||
exports.LIB_NAME = '@clerk/clerk-react'; | ||
//# sourceMappingURL=info.js.map |
@@ -8,2 +8,7 @@ "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) { | ||
@@ -16,5 +21,7 @@ return packageJsonVersion.match(/-(.*)\./); | ||
} | ||
const majorVersion = parseInt(info_1.LIB_VERSION.split('.')[0], 10); | ||
const majorVersion = isStaging(frontendApi) | ||
? 'staging' | ||
: 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'; | ||
const sourceVersion = tag === null ? majorVersion : 'next'; | ||
return `https://${frontendApi}/npm/@clerk/clerk-js@${sourceVersion}/dist/clerk.browser.js`; | ||
@@ -21,0 +28,0 @@ } |
{ | ||
"name": "@clerk/clerk-react", | ||
"version": "2.10.1", | ||
"version": "2.10.2-staging.0", | ||
"license": "MIT", | ||
@@ -36,3 +36,3 @@ "description": "Clerk.dev React library", | ||
"dependencies": { | ||
"@clerk/types": "1.24.1", | ||
"@clerk/types": "1.24.2-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.10.1'; | ||
export const LIB_VERSION = '2.10.2-staging.0'; | ||
export const LIB_NAME = '@clerk/clerk-react'; |
@@ -14,2 +14,10 @@ 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) { | ||
@@ -27,6 +35,8 @@ return packageJsonVersion.match(/-(.*)\./); | ||
const majorVersion = parseInt(LIB_VERSION.split('.')[0], 10); | ||
const majorVersion = isStaging(frontendApi) | ||
? 'staging' | ||
: parseInt(LIB_VERSION.split('.')[0], 10); | ||
const tag = extractTag(LIB_VERSION); | ||
const sourceVersion = | ||
tag === null ? majorVersion : tag[0] === 'staging' ? 'staging' : 'next'; | ||
const sourceVersion = tag === null ? majorVersion : 'next'; | ||
@@ -33,0 +43,0 @@ return `https://${frontendApi}/npm/@clerk/clerk-js@${sourceVersion}/dist/clerk.browser.js`; |
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
248494
4328
1
+ Added@clerk/types@1.24.2-staging.0(transitive)
- Removed@clerk/types@1.24.1(transitive)