Comparing version 1.1.0 to 1.1.1
@@ -1,3 +0,2 @@ | ||
import './node.silencing'; | ||
declare const _default: typeof globalThis.fetch; | ||
export default _default; |
/* IMPORT */ | ||
import './node.silencing.js'; | ||
import { fetch } from 'undici'; | ||
/* EXPORT */ | ||
export default globalThis.fetch || fetch; |
@@ -1,1 +0,2 @@ | ||
"use strict"; | ||
/* EXPORT */ | ||
export {}; |
{ | ||
"name": "fetch-shim", | ||
"repository": "github:fabiospampinato/fetch-shim", | ||
"description": "A tiny isomoprhic Fetch function, it just gives you the native one if available, or the one from undici.", | ||
"version": "1.1.0", | ||
"description": "An isomoprhic Fetch function, it just gives you the native one if available, or the one from undici.", | ||
"version": "1.1.1", | ||
"type": "module", | ||
@@ -24,4 +24,4 @@ "main": "dist/browser.js", | ||
"test": "tsex test", | ||
"test:watch": "tsex --watch", | ||
"prepublishOnly": "npm run clean && npm run compile && npm run test" | ||
"test:watch": "tsex test --watch", | ||
"prepublishOnly": "tsex prepare" | ||
}, | ||
@@ -36,9 +36,9 @@ "keywords": [ | ||
"dependencies": { | ||
"undici": "^5.4.0" | ||
"undici": "^5.19.1" | ||
}, | ||
"devDependencies": { | ||
"fava": "^0.0.6", | ||
"tsex": "^1.1.2", | ||
"typescript": "^4.7.2" | ||
"fava": "^0.2.0", | ||
"tsex": "^2.2.0", | ||
"typescript": "^4.9.5" | ||
} | ||
} |
# Fetch Shim | ||
A tiny isomoprhic Fetch function, it just gives you the native one if available, or the one from [`undici`](https://github.com/nodejs/undici). | ||
An isomoprhic Fetch function, it just gives you the native one if available, or the one from [`undici`](https://github.com/nodejs/undici). | ||
@@ -5,0 +5,0 @@ ## Install |
/* IMPORT */ | ||
import './node.silencing'; | ||
import {fetch} from 'undici'; | ||
@@ -6,0 +5,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3829
18
46
Updatedundici@^5.19.1