Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fetch-shim

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fetch-shim - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

dist/register/browser.d.ts

4

dist/node.d.ts
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;
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc