@the-smithy/hearth 0.24.0 → 0.24.1

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.
@@ -73,7 +73,7 @@ function createCore(options) {
73
73
  throw new Error("Hearth: the API key is secret, so the client only runs on the server. Fetch content in server code, or pass allowBrowser: true if you understand the risk.");
74
74
  }
75
75
  const baseUrl = (options.baseUrl ?? DEFAULT_BASE_URL).replace(/\/+$/, "");
76
- const doFetch = options.fetch ?? globalThis.fetch;
76
+ const doFetch = options.fetch ?? ((input, init) => globalThis.fetch(input, init));
77
77
  const timeoutMs = options.timeoutMs ?? 1e4;
78
78
  const retries = options.retries ?? 2;
79
79
  const hooks = options.hooks ?? {};
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@ import {
5
5
  findRedirect,
6
6
  isHearthError,
7
7
  normalizeSlug
8
- } from "./chunk-GTKPZN53.js";
8
+ } from "./chunk-3LZQGXTQ.js";
9
9
 
10
10
  // src/index.ts
11
11
  import { videoEmbedUrl } from "@the-smithy/hearth-schema";
package/dist/next.js CHANGED
@@ -2,7 +2,7 @@ import {
2
2
  findRedirect,
3
3
  isHearthError,
4
4
  normalizeSlug
5
- } from "./chunk-GTKPZN53.js";
5
+ } from "./chunk-3LZQGXTQ.js";
6
6
  import {
7
7
  parseWebhook,
8
8
  tagsForWebhook
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@the-smithy/hearth",
3
- "version": "0.24.0",
3
+ "version": "0.24.1",
4
4
  "description": "Typed client for the Hearth Delivery API: content, SEO, forms and publish webhooks.",
5
5
  "type": "module",
6
6
  "license": "SEE LICENSE IN LICENSE",
@@ -49,7 +49,7 @@
49
49
  "llms.md"
50
50
  ],
51
51
  "dependencies": {
52
- "@the-smithy/hearth-schema": "^0.24.0"
52
+ "@the-smithy/hearth-schema": "^0.24.1"
53
53
  },
54
54
  "peerDependencies": {
55
55
  "next": ">=15",