@wix/astro 1.0.20 → 1.0.21
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.
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
var logoutSearchParams = z.object({
|
|
11
11
|
returnToUrl: z.string().optional()
|
|
12
12
|
});
|
|
13
|
-
var
|
|
13
|
+
var POST = async ({ redirect, request, url }) => {
|
|
14
14
|
const { returnToUrl = "/" } = logoutSearchParams.parse(
|
|
15
15
|
Object.fromEntries(url.searchParams.entries())
|
|
16
16
|
);
|
|
@@ -21,5 +21,5 @@ var GET = async ({ redirect, request, url }) => {
|
|
|
21
21
|
return redirect(logoutUrl);
|
|
22
22
|
};
|
|
23
23
|
export {
|
|
24
|
-
|
|
24
|
+
POST
|
|
25
25
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/astro",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.21",
|
|
4
4
|
"devDependencies": {
|
|
5
5
|
"@wix/dashboard": "^1.3.35",
|
|
6
6
|
"@wix/essentials": "^0.1.23",
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
]
|
|
49
49
|
}
|
|
50
50
|
},
|
|
51
|
-
"falconPackageHash": "
|
|
51
|
+
"falconPackageHash": "1582964b2e070bcdaacf19658e234f267a2a3080254a5cc19a91fca2"
|
|
52
52
|
}
|
|
@@ -7,7 +7,7 @@ const logoutSearchParams = z.object({
|
|
|
7
7
|
returnToUrl: z.string().optional(),
|
|
8
8
|
});
|
|
9
9
|
|
|
10
|
-
export const
|
|
10
|
+
export const POST: APIRoute = async ({ redirect, request, url }) => {
|
|
11
11
|
const { returnToUrl = '/' } = logoutSearchParams.parse(
|
|
12
12
|
Object.fromEntries(url.searchParams.entries())
|
|
13
13
|
);
|