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

fetch-ponyfill

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fetch-ponyfill - npm Package Compare versions

Comparing version 7.0.0 to 7.1.0

24

build/fetch-browser.js

@@ -442,10 +442,18 @@ (function (global) {

var preProcessedHeaders = rawHeaders.replace(/\r?\n[\t ]+/g, ' ');
preProcessedHeaders.split(/\r?\n/).forEach(function(line) {
var parts = line.split(':');
var key = parts.shift().trim();
if (key) {
var value = parts.join(':').trim();
headers.append(key, value);
}
});
// Avoiding split via regex to work around a common IE11 bug with the core-js 3.6.0 regex polyfill
// https://github.com/github/fetch/issues/748
// https://github.com/zloirock/core-js/issues/751
preProcessedHeaders
.split('\r')
.map(function(header) {
return header.indexOf('\n') === 0 ? header.substr(1, header.length) : header
})
.forEach(function(line) {
var parts = line.split(':');
var key = parts.shift().trim();
if (key) {
var value = parts.join(':').trim();
headers.append(key, value);
}
});
return headers

@@ -452,0 +460,0 @@ }

# History
# 7.1.0
- Updates whatwg-fetch to 3.5.0 to address an issue with IE11.
## 7.0.0

@@ -4,0 +8,0 @@

{
"name": "fetch-ponyfill",
"version": "7.0.0",
"version": "7.1.0",
"description": "A ponyfill (doesn't overwrite the native fetch) for the Fetch specification https://fetch.spec.whatwg.org.",

@@ -49,3 +49,3 @@ "main": "fetch-node.js",

"webpack-cli": "^4.1.0",
"whatwg-fetch": "~3.4.1"
"whatwg-fetch": "^3.5.0"
},

@@ -52,0 +52,0 @@ "files": [

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