@uniformdev/next-app-router 20.50.2-alpha.109 → 20.50.2-alpha.146
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/handler.js +11 -2
- package/dist/handler.mjs +11 -2
- package/package.json +8 -9
package/dist/handler.js
CHANGED
|
@@ -1688,8 +1688,17 @@ var createPreviewGETRouteHandler = (options) => {
|
|
|
1688
1688
|
};
|
|
1689
1689
|
};
|
|
1690
1690
|
function validateLocalRedirectUrl(pathToRedirectTo) {
|
|
1691
|
-
if (pathToRedirectTo
|
|
1692
|
-
|
|
1691
|
+
if (!pathToRedirectTo) {
|
|
1692
|
+
return;
|
|
1693
|
+
}
|
|
1694
|
+
let resolved;
|
|
1695
|
+
try {
|
|
1696
|
+
resolved = new URL(pathToRedirectTo, BASE_URL_EXAMPLE);
|
|
1697
|
+
} catch (e) {
|
|
1698
|
+
throw new Error("Invalid redirect path. Disallowing open redirect.");
|
|
1699
|
+
}
|
|
1700
|
+
if (resolved.origin !== BASE_URL_EXAMPLE) {
|
|
1701
|
+
throw new Error("Tried to redirect off-origin. Disallowing open redirect.");
|
|
1693
1702
|
}
|
|
1694
1703
|
}
|
|
1695
1704
|
var resolveFullPathDefault = ({ slug, path }) => {
|
package/dist/handler.mjs
CHANGED
|
@@ -1673,8 +1673,17 @@ var createPreviewGETRouteHandler = (options) => {
|
|
|
1673
1673
|
};
|
|
1674
1674
|
};
|
|
1675
1675
|
function validateLocalRedirectUrl(pathToRedirectTo) {
|
|
1676
|
-
if (pathToRedirectTo
|
|
1677
|
-
|
|
1676
|
+
if (!pathToRedirectTo) {
|
|
1677
|
+
return;
|
|
1678
|
+
}
|
|
1679
|
+
let resolved;
|
|
1680
|
+
try {
|
|
1681
|
+
resolved = new URL(pathToRedirectTo, BASE_URL_EXAMPLE);
|
|
1682
|
+
} catch (e) {
|
|
1683
|
+
throw new Error("Invalid redirect path. Disallowing open redirect.");
|
|
1684
|
+
}
|
|
1685
|
+
if (resolved.origin !== BASE_URL_EXAMPLE) {
|
|
1686
|
+
throw new Error("Tried to redirect off-origin. Disallowing open redirect.");
|
|
1678
1687
|
}
|
|
1679
1688
|
}
|
|
1680
1689
|
var resolveFullPathDefault = ({ slug, path }) => {
|
package/package.json
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/next-app-router",
|
|
3
|
-
"version": "20.50.2-alpha.
|
|
3
|
+
"version": "20.50.2-alpha.146+88f341e03e",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "tsup",
|
|
7
7
|
"dev": "tsup --watch",
|
|
8
|
-
"lint": "eslint \"src/**/*.{ts,tsx}\" --fix",
|
|
9
8
|
"test": "vitest run"
|
|
10
9
|
},
|
|
11
10
|
"sideEffects": false,
|
|
@@ -99,12 +98,12 @@
|
|
|
99
98
|
"vitest": "3.2.4"
|
|
100
99
|
},
|
|
101
100
|
"dependencies": {
|
|
102
|
-
"@uniformdev/canvas-react": "20.50.2-alpha.
|
|
103
|
-
"@uniformdev/next-app-router-client": "20.50.2-alpha.
|
|
104
|
-
"@uniformdev/next-app-router-shared": "20.50.2-alpha.
|
|
105
|
-
"@uniformdev/redirect": "20.50.2-alpha.
|
|
106
|
-
"@uniformdev/richtext": "20.50.2-alpha.
|
|
107
|
-
"@uniformdev/webhooks": "20.50.2-alpha.
|
|
101
|
+
"@uniformdev/canvas-react": "20.50.2-alpha.146+88f341e03e",
|
|
102
|
+
"@uniformdev/next-app-router-client": "20.50.2-alpha.146+88f341e03e",
|
|
103
|
+
"@uniformdev/next-app-router-shared": "20.50.2-alpha.146+88f341e03e",
|
|
104
|
+
"@uniformdev/redirect": "20.50.2-alpha.146+88f341e03e",
|
|
105
|
+
"@uniformdev/richtext": "20.50.2-alpha.146+88f341e03e",
|
|
106
|
+
"@uniformdev/webhooks": "20.50.2-alpha.146+88f341e03e",
|
|
108
107
|
"@vercel/functions": "^2.2.2",
|
|
109
108
|
"encoding": "^0.1.13",
|
|
110
109
|
"server-only": "^0.0.1",
|
|
@@ -121,5 +120,5 @@
|
|
|
121
120
|
"publishConfig": {
|
|
122
121
|
"access": "public"
|
|
123
122
|
},
|
|
124
|
-
"gitHead": "
|
|
123
|
+
"gitHead": "88f341e03ec871c6af2cd47b9ce257ff4a394816"
|
|
125
124
|
}
|