@decocms/apps-website 7.37.2 → 7.37.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@decocms/apps-website",
3
- "version": "7.37.2",
3
+ "version": "7.37.3",
4
4
  "type": "module",
5
5
  "description": "Deco generic-site app: SEO, analytics, theme, and content utilities shared across every commerce backend",
6
6
  "repository": {
@@ -32,8 +32,8 @@
32
32
  "lint:unused": "knip"
33
33
  },
34
34
  "dependencies": {
35
- "@decocms/blocks": "7.37.2",
36
- "@decocms/apps-commerce": "7.37.2"
35
+ "@decocms/blocks": "7.37.3",
36
+ "@decocms/apps-commerce": "7.37.3"
37
37
  },
38
38
  "peerDependencies": {
39
39
  "react": "^19.0.0",
@@ -1,5 +1,8 @@
1
+ import { withFetchTimeout } from "@decocms/blocks/sdk/fetchTimeout";
1
2
  import type { Font } from "../../types";
2
3
 
4
+ const timeoutFetch = withFetchTimeout();
5
+
3
6
  interface Props {
4
7
  fonts: GoogleFont[];
5
8
  }
@@ -94,13 +97,13 @@ const loader = async (props: Props): Promise<Font> => {
94
97
  };
95
98
 
96
99
  const sheets = await Promise.all([
97
- fetch(url, { headers: OLD_BROWSER_KEY })
100
+ timeoutFetch(url, { headers: OLD_BROWSER_KEY })
98
101
  .then((res) => res.text())
99
102
  .catch((e) => {
100
103
  logFontError("OLD_UA", url, e);
101
104
  return "";
102
105
  }),
103
- fetch(url, { headers: NEW_BROWSER_KEY })
106
+ timeoutFetch(url, { headers: NEW_BROWSER_KEY })
104
107
  .then((res) => res.text())
105
108
  .catch((e) => {
106
109
  logFontError("NEW_UA", url, e);