@clerk/shared
Advanced tools
Comparing version 2.15.0 to 2.15.1-canary.v152f0b8eeb7687a1fcff75b7395bf8f57ef04591
@@ -1186,3 +1186,3 @@ "use strict"; | ||
// src/versionSelector.ts | ||
var versionSelector = (clerkJSVersion, packageVersion = "5.34.3") => { | ||
var versionSelector = (clerkJSVersion, packageVersion = "5.34.4-canary.v152f0b8eeb7687a1fcff75b7395bf8f57ef04591") => { | ||
if (clerkJSVersion) { | ||
@@ -1194,3 +1194,3 @@ return clerkJSVersion; | ||
if (prereleaseTag === "snapshot") { | ||
return "5.34.3"; | ||
return "5.34.4-canary.v152f0b8eeb7687a1fcff75b7395bf8f57ef04591"; | ||
} | ||
@@ -1197,0 +1197,0 @@ return prereleaseTag; |
@@ -272,3 +272,3 @@ "use strict"; | ||
// src/versionSelector.ts | ||
var versionSelector = (clerkJSVersion, packageVersion = "5.34.3") => { | ||
var versionSelector = (clerkJSVersion, packageVersion = "5.34.4-canary.v152f0b8eeb7687a1fcff75b7395bf8f57ef04591") => { | ||
if (clerkJSVersion) { | ||
@@ -280,3 +280,3 @@ return clerkJSVersion; | ||
if (prereleaseTag === "snapshot") { | ||
return "5.34.3"; | ||
return "5.34.4-canary.v152f0b8eeb7687a1fcff75b7395bf8f57ef04591"; | ||
} | ||
@@ -283,0 +283,0 @@ return prereleaseTag; |
import React, { PropsWithChildren } from 'react'; | ||
import { ClerkPaginatedResponse, OrganizationDomainResource, OrganizationMembershipRequestResource, OrganizationMembershipResource, OrganizationInvitationResource, OrganizationResource, GetDomainsParams, GetMembershipRequestParams, GetMembersParams, GetInvitationsParams, UserOrganizationInvitationResource, OrganizationSuggestionResource, CreateOrganizationParams, SetActive, GetUserOrganizationMembershipParams, GetUserOrganizationInvitationsParams, GetUserOrganizationSuggestionsParams, ActiveSessionResource, SessionResource, UserResource, LoadedClerk, ClientResource, ClerkOptions } from '@clerk/types'; | ||
import { ClerkPaginatedResponse, OrganizationDomainResource, OrganizationMembershipRequestResource, OrganizationMembershipResource, OrganizationInvitationResource, OrganizationResource, GetDomainsParams, GetMembershipRequestParams, GetMembersParams, GetInvitationsParams, UserOrganizationInvitationResource, OrganizationSuggestionResource, CreateOrganizationParams, SetActive, GetUserOrganizationMembershipParams, GetUserOrganizationInvitationsParams, GetUserOrganizationSuggestionsParams, UseSessionReturn, UseSessionListReturn, UseUserReturn, LoadedClerk, UserResource, ClientResource, ActiveSessionResource, ClerkOptions } from '@clerk/types'; | ||
import { ClerkAPIResponseError } from '../error.js'; | ||
@@ -126,15 +126,2 @@ import { dequal } from 'dequal'; | ||
type UseSessionReturn = { | ||
isLoaded: false; | ||
isSignedIn: undefined; | ||
session: undefined; | ||
} | { | ||
isLoaded: true; | ||
isSignedIn: false; | ||
session: null; | ||
} | { | ||
isLoaded: true; | ||
isSignedIn: true; | ||
session: ActiveSessionResource; | ||
}; | ||
type UseSession = () => UseSessionReturn; | ||
@@ -163,27 +150,5 @@ /** | ||
type UseSessionListReturn = { | ||
isLoaded: false; | ||
sessions: undefined; | ||
setActive: undefined; | ||
} | { | ||
isLoaded: true; | ||
sessions: SessionResource[]; | ||
setActive: SetActive; | ||
}; | ||
type UseSessionList = () => UseSessionListReturn; | ||
declare const useSessionList: UseSessionList; | ||
type UseUserReturn = { | ||
isLoaded: false; | ||
isSignedIn: undefined; | ||
user: undefined; | ||
} | { | ||
isLoaded: true; | ||
isSignedIn: false; | ||
user: null; | ||
} | { | ||
isLoaded: true; | ||
isSignedIn: true; | ||
user: UserResource; | ||
}; | ||
/** | ||
@@ -190,0 +155,0 @@ * Returns the current auth state and if a user is signed in, the user object. |
@@ -27,3 +27,3 @@ "use strict"; | ||
module.exports = __toCommonJS(versionSelector_exports); | ||
var versionSelector = (clerkJSVersion, packageVersion = "5.34.3") => { | ||
var versionSelector = (clerkJSVersion, packageVersion = "5.34.4-canary.v152f0b8eeb7687a1fcff75b7395bf8f57ef04591") => { | ||
if (clerkJSVersion) { | ||
@@ -35,3 +35,3 @@ return clerkJSVersion; | ||
if (prereleaseTag === "snapshot") { | ||
return "5.34.3"; | ||
return "5.34.4-canary.v152f0b8eeb7687a1fcff75b7395bf8f57ef04591"; | ||
} | ||
@@ -38,0 +38,0 @@ return prereleaseTag; |
{ | ||
"name": "@clerk/shared", | ||
"version": "2.15.0", | ||
"version": "2.15.1-canary.v152f0b8eeb7687a1fcff75b7395bf8f57ef04591", | ||
"description": "Internal package utils used by the Clerk SDKs", | ||
@@ -118,3 +118,3 @@ "repository": { | ||
"dependencies": { | ||
"@clerk/types": "4.34.0", | ||
"@clerk/types": "4.34.1-canary.v152f0b8eeb7687a1fcff75b7395bf8f57ef04591", | ||
"dequal": "2.0.3", | ||
@@ -121,0 +121,0 @@ "glob-to-regexp": "0.4.1", |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
1075921
12008
2
+ Added@clerk/types@4.34.1-canary.v152f0b8eeb7687a1fcff75b7395bf8f57ef04591(transitive)
- Removed@clerk/types@4.34.0(transitive)
Updated@clerk/types@4.34.1-canary.v152f0b8eeb7687a1fcff75b7395bf8f57ef04591