@fuman/fetch 0.0.11 → 0.0.12

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.
Files changed (3) hide show
  1. package/ffetch.cjs +1 -0
  2. package/ffetch.js +1 -0
  3. package/package.json +1 -1
package/ffetch.cjs CHANGED
@@ -194,6 +194,7 @@ function createFfetch(baseOptions = {}) {
194
194
  }
195
195
  }
196
196
  init.headers = headers;
197
+ options.validateResponse ??= baseOptions.validateResponse;
197
198
  return new FfetchResultInner(fetcher, url, init, headers, options, stack);
198
199
  };
199
200
  const fn = fn_;
package/ffetch.js CHANGED
@@ -192,6 +192,7 @@ function createFfetch(baseOptions = {}) {
192
192
  }
193
193
  }
194
194
  init.headers = headers;
195
+ options.validateResponse ??= baseOptions.validateResponse;
195
196
  return new FfetchResultInner(fetcher, url, init, headers, options, stack);
196
197
  };
197
198
  const fn = fn_;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fuman/fetch",
3
3
  "type": "module",
4
- "version": "0.0.11",
4
+ "version": "0.0.12",
5
5
  "description": "tiny wrapper over fetch",
6
6
  "license": "MIT",
7
7
  "dependencies": {