@descope/nextjs-sdk 0.3.3 → 0.3.5
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/dist/server/constants.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const DESCOPE_SESSION_HEADER = 'x-descope-session';
|
|
2
2
|
const baseHeaders = {
|
|
3
3
|
'x-descope-sdk-name': 'nextjs',
|
|
4
|
-
'x-descope-sdk-version': "0.3.
|
|
4
|
+
'x-descope-sdk-version': "0.3.5"
|
|
5
5
|
};
|
|
6
6
|
const DEFAULT_PUBLIC_ROUTES = {
|
|
7
7
|
signIn: process.env.SIGN_IN_ROUTE || '/sign-in',
|
package/dist/server/session.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import dynamic from 'next/dynamic';
|
|
4
|
-
import { useRouter } from 'next/navigation';
|
|
3
|
+
import dynamic from 'next/dynamic.js';
|
|
4
|
+
import { useRouter } from 'next/navigation.js';
|
|
5
5
|
import { baseHeaders } from './constants.js';
|
|
6
6
|
|
|
7
7
|
// Generalized function to dynamically import components from @descope/react-sdk
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import dynamic from 'next/dynamic';
|
|
2
|
+
import dynamic from 'next/dynamic.js';
|
|
3
3
|
import { UserManagement as UserManagement$1, RoleManagement as RoleManagement$1, AccessKeyManagement as AccessKeyManagement$1, AuditManagement as AuditManagement$1, UserProfile as UserProfile$1, ApplicationsPortal as ApplicationsPortal$1 } from '@descope/react-sdk';
|
|
4
4
|
|
|
5
5
|
// a helper function to dynamically load the components
|
package/dist/shared/constants.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@descope/nextjs-sdk",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.5",
|
|
4
4
|
"description": "Descope NextJS SDK",
|
|
5
5
|
"author": "Descope Team <info@descope.com>",
|
|
6
6
|
"homepage": "https://github.com/descope/descope-js",
|
|
@@ -61,9 +61,9 @@
|
|
|
61
61
|
},
|
|
62
62
|
"dependencies": {
|
|
63
63
|
"@descope/node-sdk": "1.6.9",
|
|
64
|
-
"@descope/
|
|
65
|
-
"@descope/
|
|
66
|
-
"@descope/web-component": "3.27.
|
|
64
|
+
"@descope/core-js-sdk": "2.29.1",
|
|
65
|
+
"@descope/react-sdk": "2.1.5",
|
|
66
|
+
"@descope/web-component": "3.27.3"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
69
|
"@babel/core": "7.23.9",
|
|
@@ -73,6 +73,7 @@
|
|
|
73
73
|
"@open-wc/rollup-plugin-html": "^1.2.5",
|
|
74
74
|
"@rollup/plugin-commonjs": "^25.0.7",
|
|
75
75
|
"@rollup/plugin-node-resolve": "^15.2.3",
|
|
76
|
+
"@rollup/plugin-alias": "5.1.1",
|
|
76
77
|
"@rollup/plugin-replace": "^5.0.5",
|
|
77
78
|
"@rollup/plugin-typescript": "^8.5.0",
|
|
78
79
|
"@swc/core": "^1.4.0",
|
|
@@ -110,7 +111,7 @@
|
|
|
110
111
|
"jest-fetch-mock": "^3.0.3",
|
|
111
112
|
"lint-staged": "^13.3.0",
|
|
112
113
|
"msw": "^2.1.7",
|
|
113
|
-
"next": "^14.
|
|
114
|
+
"next": "^14.2.10",
|
|
114
115
|
"rollup": "^2.79.1",
|
|
115
116
|
"rollup-plugin-auto-external": "^2.0.0",
|
|
116
117
|
"rollup-plugin-browsersync": "^1.0.0",
|