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

@whatwg-node/fetch

Package Overview
Dependencies
Maintainers
1
Versions
475
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@whatwg-node/fetch - npm Package Compare versions

Comparing version 0.6.3 to 0.6.4

7

CHANGELOG.md
# @whatwg-node/fetch
## 0.6.4
### Patch Changes
- [`2ce7122`](https://github.com/ardatan/whatwg-node/commit/2ce71227f0cc86644998cad70405048d79c1b104)
Thanks [@ardatan](https://github.com/ardatan)! - Bun doesn't have URLPattern
## 0.6.3

@@ -4,0 +11,0 @@

17

dist/create-node-ponyfill.js
module.exports = function createNodePonyfill(opts = {}) {
// Bun already has a Fetch API
if (process.versions.bun) {
return globalThis;
const ponyfills = {};
// We call this previously to patch `Bun`
if (!ponyfills.URLPattern) {
const urlPatternModule = require('urlpattern-polyfill');
ponyfills.URLPattern = urlPatternModule.URLPattern;
}

@@ -10,4 +12,2 @@

const ponyfills = {};
ponyfills.fetch = newNodeFetch.fetch;

@@ -79,9 +79,4 @@ ponyfills.Request = newNodeFetch.Request;

}
if (!ponyfills.URLPattern) {
const urlPatternModule = require('urlpattern-polyfill');
ponyfills.URLPattern = urlPatternModule.URLPattern;
}
return ponyfills;
}
{
"name": "@whatwg-node/fetch",
"version": "0.6.3",
"version": "0.6.4",
"description": "Cross Platform Smart Fetch Ponyfill",

@@ -5,0 +5,0 @@ "repository": {

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