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.1.0 to 1.1.1

1

dist/node.d.ts

@@ -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;

3

dist/register/browser.js

@@ -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 @@

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