@okendo/shopify-hydrogen 1.0.3 → 1.1.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.
|
@@ -11,7 +11,7 @@ export const OkendoProvider = (props) => {
|
|
|
11
11
|
// Download subscriber widget plus settings.
|
|
12
12
|
const url = `https://${apiDomain ?? kDefaultOkendoApiDomain}/stores/${subscriberId}/widget_plus_settings`;
|
|
13
13
|
const settingsResponse = fetchSync(url, { preload: true });
|
|
14
|
-
if (!settingsResponse.
|
|
14
|
+
if (!settingsResponse.ok) {
|
|
15
15
|
console.error(okendoError('Failed to retrieve subscriber settings. Please check your environment variables.'));
|
|
16
16
|
setInOkendoRequestContext('setupFailed', true);
|
|
17
17
|
return null;
|
|
@@ -24,7 +24,7 @@ export const OkendoProvider = (props) => {
|
|
|
24
24
|
cache: CacheShort(),
|
|
25
25
|
preload: true
|
|
26
26
|
});
|
|
27
|
-
if (!initScriptResponse.
|
|
27
|
+
if (!initScriptResponse.ok) {
|
|
28
28
|
console.error(okendoError('Failed to retrieve widget initialization script.'));
|
|
29
29
|
setInOkendoRequestContext('setupFailed', true);
|
|
30
30
|
return null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@okendo/shopify-hydrogen",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "A component library containing Okendo Reviews React components.",
|
|
5
5
|
"main": "dist/esnext/index.js",
|
|
6
6
|
"engines": {
|
|
@@ -43,9 +43,9 @@
|
|
|
43
43
|
"html-react-parser": "^1.4.13"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@okendo/reviews-widget-plus": "^0.
|
|
46
|
+
"@okendo/reviews-widget-plus": "^0.49.0",
|
|
47
47
|
"@okendo/tsconfig": "0.0.2",
|
|
48
|
-
"@shopify/hydrogen": "^1.
|
|
48
|
+
"@shopify/hydrogen": "^1.1.0",
|
|
49
49
|
"@types/node": "^17.0.35",
|
|
50
50
|
"@types/react": "^18.0.14",
|
|
51
51
|
"@types/react-dom": "^18.0.5",
|
|
@@ -56,6 +56,6 @@
|
|
|
56
56
|
"vite": "^2.9.0"
|
|
57
57
|
},
|
|
58
58
|
"peerDependencies": {
|
|
59
|
-
"@shopify/hydrogen": "1.
|
|
59
|
+
"@shopify/hydrogen": "1.1.x"
|
|
60
60
|
}
|
|
61
61
|
}
|