Comparing version 1.0.0 to 1.1.0
import './node.silencing'; | ||
import { fetch } from 'undici'; | ||
export default fetch; | ||
declare const _default: typeof globalThis.fetch; | ||
export default _default; |
@@ -5,2 +5,2 @@ /* IMPORT */ | ||
/* EXPORT */ | ||
export default fetch; | ||
export default globalThis.fetch || fetch; |
@@ -5,7 +5,16 @@ { | ||
"description": "A tiny isomoprhic Fetch function, it just gives you the native one if available, or the one from undici.", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"type": "module", | ||
"main": "dist/index.js", | ||
"exports": "./dist/index.js", | ||
"types": "./dist/index.d.ts", | ||
"main": "dist/browser.js", | ||
"types": "./dist/browser.d.ts", | ||
"exports": { | ||
".": { | ||
"node": "./dist/node.js", | ||
"default": "./dist/browser.js" | ||
}, | ||
"./register": { | ||
"node": "./dist/register/node.js", | ||
"default": "./dist/register/browser.js" | ||
} | ||
}, | ||
"scripts": { | ||
@@ -12,0 +21,0 @@ "clean": "tsex clean", |
@@ -9,2 +9,2 @@ | ||
export default fetch; | ||
export default globalThis.fetch || fetch; |
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
5171
21
67
4