@pack/hydrogen 0.0.5 → 0.0.6
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.
|
@@ -81,8 +81,8 @@ export const loader = async function ({ request, context }) {
|
|
|
81
81
|
if (!searchParams.has("token")) {
|
|
82
82
|
throw new MissingTokenError();
|
|
83
83
|
}
|
|
84
|
-
const
|
|
85
|
-
if (!
|
|
84
|
+
const validatedToken = await pack.isValidEditToken(token);
|
|
85
|
+
if (!validatedToken) {
|
|
86
86
|
throw new InvalidTokenError();
|
|
87
87
|
}
|
|
88
88
|
pack.preview.session.set("enabled", true);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pack/hydrogen",
|
|
3
3
|
"description": "Pack Hydrogen",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.6",
|
|
5
5
|
"exports": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
7
7
|
"engines": {
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"dist"
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@pack/client": "^0.0.
|
|
25
|
+
"@pack/client": "^0.0.7",
|
|
26
26
|
"@shopify/hydrogen": "^2023.10.2"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|