@pack/hydrogen 1.0.7 → 1.0.8

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.
@@ -114,10 +114,10 @@ export function createPackClient(options) {
114
114
  const previewEnvironment = session.get("environment");
115
115
  const clientContentEnvironment = previewEnvironment || contentEnvironment;
116
116
  if (!token && !defaultThemeData) {
117
- throw new Error("The Pack client token is missing or empty. Please provide a valid token or default theme data.");
117
+ throw new Error("ERR_HY_MISSING_TOKEN: The Pack client token is missing or empty. Please provide a valid token or default theme data. Doc: https://docs.packdigital.com/err/ERR_HY_MISSING_TOKEN");
118
118
  }
119
119
  if (!storeId) {
120
- throw new Error("The Pack Store ID is missing or empty. Please provide a valid Store ID.");
120
+ throw new Error("ERR_HY_MISSING_STORE_ID: The Pack Store ID is missing or empty. Please provide a valid Store ID. Doc: https://docs.packdigital.com/err/ERR_HY_MISSING_STORE_ID");
121
121
  }
122
122
  if (!token) {
123
123
  return {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pack/hydrogen",
3
3
  "description": "Pack Hydrogen",
4
- "version": "1.0.7",
4
+ "version": "1.0.8",
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": "^1.0.1",
25
+ "@pack/client": "^1.0.2",
26
26
  "@pack/packlytics": "^1.0.1",
27
27
  "@shopify/hydrogen": "^2023.10.2"
28
28
  },