@stackframe/stack 2.5.21 → 2.5.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -24,7 +24,7 @@ import { constructRedirectUrl } from "../utils/url";
|
|
|
24
24
|
import { addNewOAuthProviderOrScope, callOAuthCallback, signInWithOAuth } from "./auth";
|
|
25
25
|
import { deleteCookie, getCookie, setOrDeleteCookie } from "./cookie";
|
|
26
26
|
var NextNavigation = scrambleDuringCompileTime(NextNavigationUnscrambled);
|
|
27
|
-
var clientVersion = "js @stackframe/stack@2.5.
|
|
27
|
+
var clientVersion = "js @stackframe/stack@2.5.22";
|
|
28
28
|
function getUrls(partial) {
|
|
29
29
|
const handler = partial.handler ?? "/handler";
|
|
30
30
|
const home = partial.home ?? "/";
|
|
@@ -586,6 +586,7 @@ var _StackClientAppImpl = class __StackClientAppImpl {
|
|
|
586
586
|
profileImageUrl: crud.profile_image_url,
|
|
587
587
|
signedUpAt: new Date(crud.signed_up_at_millis),
|
|
588
588
|
clientMetadata: crud.client_metadata,
|
|
589
|
+
clientReadOnlyMetadata: crud.client_read_only_metadata,
|
|
589
590
|
hasPassword: crud.has_password,
|
|
590
591
|
emailAuthEnabled: crud.auth_with_email,
|
|
591
592
|
oauthProviders: crud.oauth_providers,
|
|
@@ -1316,6 +1317,9 @@ var _StackServerAppImpl = class extends _StackClientAppImpl {
|
|
|
1316
1317
|
async setClientMetadata(metadata) {
|
|
1317
1318
|
return await this.update({ clientMetadata: metadata });
|
|
1318
1319
|
},
|
|
1320
|
+
async setClientReadOnlyMetadata(metadata) {
|
|
1321
|
+
return await this.update({ clientReadOnlyMetadata: metadata });
|
|
1322
|
+
},
|
|
1319
1323
|
async setServerMetadata(metadata) {
|
|
1320
1324
|
return await this.update({ serverMetadata: metadata });
|
|
1321
1325
|
},
|
|
@@ -1832,6 +1836,7 @@ function serverUserUpdateOptionsToCrud(options) {
|
|
|
1832
1836
|
display_name: options.displayName,
|
|
1833
1837
|
primary_email: options.primaryEmail,
|
|
1834
1838
|
client_metadata: options.clientMetadata,
|
|
1839
|
+
client_read_only_metadata: options.clientReadOnlyMetadata,
|
|
1835
1840
|
server_metadata: options.serverMetadata,
|
|
1836
1841
|
selected_team_id: options.selectedTeamId,
|
|
1837
1842
|
primary_email_auth_enabled: options.primaryEmailAuthEnabled,
|