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

blob-polyfill

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

blob-polyfill - npm Package Compare versions

Comparing version 4.0.20190430 to 4.0.20200531

12

Blob.js

@@ -259,3 +259,3 @@ /* Blob.js

function isDataView (obj) {
return obj && DataView.prototype.isPrototypeOf(obj);
return obj && Object.prototype.isPrototypeOf.call(DataView, obj);
}

@@ -356,3 +356,3 @@ function bufferClone (buf) {

chunks[i] = textEncode(chunk);
} else if (arrayBufferSupported && (ArrayBuffer.prototype.isPrototypeOf(chunk) || isArrayBufferView(chunk))) {
} else if (arrayBufferSupported && (Object.prototype.isPrototypeOf.call(ArrayBuffer, chunk) || isArrayBufferView(chunk))) {
chunks[i] = bufferClone(chunk);

@@ -526,3 +526,3 @@ } else if (arrayBufferSupported && isDataView(chunk)) {

// Monkey patched
// IE don't set Content-Type header on XHR whose body is a typed Blob
// IE doesn't set Content-Type header on XHR whose body is a typed Blob
// https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/6047383

@@ -588,5 +588,5 @@ var _send = global.XMLHttpRequest && global.XMLHttpRequest.prototype.send;

if (strTag) {
exports.File.prototype[strTag] = "File";
exports.Blob.prototype[strTag] = "Blob";
exports.FileReader.prototype[strTag] = "FileReader";
if (!exports.File.prototype[strTag]) exports.File.prototype[strTag] = "File";
if (!exports.Blob.prototype[strTag]) exports.Blob.prototype[strTag] = "Blob";
if (!exports.FileReader.prototype[strTag]) exports.FileReader.prototype[strTag] = "FileReader";
}

@@ -593,0 +593,0 @@

# `blob-polyfill` CHANGELOG
## v4.0.20200531
* [Blob.js] Do not attempt to set readonly property Symbols (@bjornstar)
* [Blob.js] Do not use prototype built-ins (@bjornstar)
* [.travis.yml] Drop testing for node v6 and v8 (@bjornstar)
* [.travis.yml] Add testing for node v14 (@bjornstar)
* [package.json] Update devDependencies: `eslint` & `mocha` (@bjornstar)
* [.gitignore] Add `npm-debug.log` (@bjornstar)
* [README] Add usage examples to encourage non-global use of Blob (@bjornstar)
## v4.0.20190430

@@ -4,0 +13,0 @@ * A complete rewrite of Blob.js (@jimmywarting)

{
"name": "blob-polyfill",
"version": "4.0.20190430",
"version": "4.0.20200531",
"description": "Blob.js implements the W3C Blob interface in browsers that do not natively support it.",

@@ -25,5 +25,5 @@ "main": "Blob.js",

"devDependencies": {
"eslint": "^5.16.0",
"mocha": "^6.1.4"
"eslint": "^7.1.0",
"mocha": "^7.2.0"
}
}

@@ -24,3 +24,14 @@ # Blob Polyfill

## Usage
CommonJS:
```js
var Blob = require('blob-polyfill').Blob;
```
AMD
```js
import { Blob } from 'blob-polyfill';
```
## Supported browsers

@@ -27,0 +38,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