@opensaas/keystone-nextjs-auth 22.2.3 → 23.0.0
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
|
@@ -477,9 +477,9 @@ function createAuth({
|
|
|
477
477
|
publicPages: [...(keystoneConfig.ui.publicPages || []), ...publicPages],
|
|
478
478
|
getAdditionalFiles: [...(((_keystoneConfig$ui = keystoneConfig.ui) === null || _keystoneConfig$ui === void 0 ? void 0 : _keystoneConfig$ui.getAdditionalFiles) || []), getAdditionalFiles],
|
|
479
479
|
pageMiddleware: async args => {
|
|
480
|
-
var
|
|
480
|
+
var _keystoneConfig$ui2, _keystoneConfig$ui2$p;
|
|
481
481
|
|
|
482
|
-
return (
|
|
482
|
+
return (await pageMiddleware(args)) ?? (keystoneConfig === null || keystoneConfig === void 0 ? void 0 : (_keystoneConfig$ui2 = keystoneConfig.ui) === null || _keystoneConfig$ui2 === void 0 ? void 0 : (_keystoneConfig$ui2$p = _keystoneConfig$ui2.pageMiddleware) === null || _keystoneConfig$ui2$p === void 0 ? void 0 : _keystoneConfig$ui2$p.call(_keystoneConfig$ui2, args));
|
|
483
483
|
},
|
|
484
484
|
enableSessionItem: true,
|
|
485
485
|
isAccessAllowed: async context => {
|
|
@@ -476,9 +476,9 @@ function createAuth({
|
|
|
476
476
|
publicPages: [...(keystoneConfig.ui.publicPages || []), ...publicPages],
|
|
477
477
|
getAdditionalFiles: [...(((_keystoneConfig$ui = keystoneConfig.ui) === null || _keystoneConfig$ui === void 0 ? void 0 : _keystoneConfig$ui.getAdditionalFiles) || []), getAdditionalFiles],
|
|
478
478
|
pageMiddleware: async args => {
|
|
479
|
-
var
|
|
479
|
+
var _keystoneConfig$ui2, _keystoneConfig$ui2$p;
|
|
480
480
|
|
|
481
|
-
return (
|
|
481
|
+
return (await pageMiddleware(args)) ?? (keystoneConfig === null || keystoneConfig === void 0 ? void 0 : (_keystoneConfig$ui2 = keystoneConfig.ui) === null || _keystoneConfig$ui2 === void 0 ? void 0 : (_keystoneConfig$ui2$p = _keystoneConfig$ui2.pageMiddleware) === null || _keystoneConfig$ui2$p === void 0 ? void 0 : _keystoneConfig$ui2$p.call(_keystoneConfig$ui2, args));
|
|
482
482
|
},
|
|
483
483
|
enableSessionItem: true,
|
|
484
484
|
isAccessAllowed: async context => {
|
|
@@ -444,9 +444,9 @@ function createAuth({
|
|
|
444
444
|
publicPages: [...(keystoneConfig.ui.publicPages || []), ...publicPages],
|
|
445
445
|
getAdditionalFiles: [...(((_keystoneConfig$ui = keystoneConfig.ui) === null || _keystoneConfig$ui === void 0 ? void 0 : _keystoneConfig$ui.getAdditionalFiles) || []), getAdditionalFiles],
|
|
446
446
|
pageMiddleware: async args => {
|
|
447
|
-
var
|
|
447
|
+
var _keystoneConfig$ui2, _keystoneConfig$ui2$p;
|
|
448
448
|
|
|
449
|
-
return (
|
|
449
|
+
return (await pageMiddleware(args)) ?? (keystoneConfig === null || keystoneConfig === void 0 ? void 0 : (_keystoneConfig$ui2 = keystoneConfig.ui) === null || _keystoneConfig$ui2 === void 0 ? void 0 : (_keystoneConfig$ui2$p = _keystoneConfig$ui2.pageMiddleware) === null || _keystoneConfig$ui2$p === void 0 ? void 0 : _keystoneConfig$ui2$p.call(_keystoneConfig$ui2, args));
|
|
450
450
|
},
|
|
451
451
|
enableSessionItem: true,
|
|
452
452
|
isAccessAllowed: async context => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opensaas/keystone-nextjs-auth",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "23.0.0",
|
|
4
4
|
"repository": "https://github.com/opensaasau/keystone-nextjs-auth",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/opensaas-keystone-nextjs-auth.cjs.js",
|
|
@@ -16,12 +16,12 @@
|
|
|
16
16
|
"next-auth": "^4.3.4"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@keystone-6/core": "^
|
|
20
|
-
"react": "^
|
|
19
|
+
"@keystone-6/core": "^2.0.0",
|
|
20
|
+
"react": "^18.1.0"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
23
|
-
"@keystone-6/core": "^
|
|
24
|
-
"react": "^
|
|
23
|
+
"@keystone-6/core": "^2.0.0",
|
|
24
|
+
"react": "^18.1.0"
|
|
25
25
|
},
|
|
26
26
|
"engines": {
|
|
27
27
|
"node": "^14.13 || >= 16.13"
|