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 1.0.20150320 to 2.0.20171115

CHANGELOG.md

52

Blob.js
/* Blob.js
* A Blob implementation.
* 2014-07-24
* 2017-11-15
*
* By Eli Grey, http://eligrey.com
* By Devin Samarin, https://github.com/dsamarin
* License: X11/MIT
* License: MIT
* See https://github.com/eligrey/Blob.js/blob/master/LICENSE.md

@@ -17,8 +17,20 @@ */

(function (view) {
(function(global) {
(function (factory) {
if (typeof define === "function" && define.amd) {
// AMD. Register as an anonymous module.
define(["exports"], factory);
} else if (typeof exports === "object" && typeof exports.nodeName !== "string") {
// CommonJS
factory(exports);
} else {
// Browser globals
factory(global);
}
})(function (exports) {
"use strict";
view.URL = view.URL || view.webkitURL;
exports.URL = global.URL || global.webkitURL;
if (view.Blob && view.URL) {
if (global.Blob && global.URL) {
try {

@@ -32,3 +44,3 @@ new Blob;

// in order to support older browsers that only have BlobBuilder
var BlobBuilder = view.BlobBuilder || view.WebKitBlobBuilder || view.MozBlobBuilder || (function(view) {
var BlobBuilder = global.BlobBuilder || global.WebKitBlobBuilder || global.MozBlobBuilder || (function() {
var

@@ -49,3 +61,3 @@ get_class = function(object) {

, FB_proto = FakeBlob.prototype
, FileReaderSync = view.FileReaderSync
, FileReaderSync = global.FileReaderSync
, FileException = function(type) {

@@ -59,11 +71,11 @@ this.code = this[this.name = type];

, file_ex_code = file_ex_codes.length
, real_URL = view.URL || view.webkitURL || view
, real_URL = global.URL || global.webkitURL || exports
, real_create_object_URL = real_URL.createObjectURL
, real_revoke_object_URL = real_URL.revokeObjectURL
, URL = real_URL
, btoa = view.btoa
, atob = view.atob
, btoa = global.btoa
, atob = global.atob
, ArrayBuffer = view.ArrayBuffer
, Uint8Array = view.Uint8Array
, ArrayBuffer = global.ArrayBuffer
, Uint8Array = global.Uint8Array

@@ -78,3 +90,3 @@ , origin = /^[\w-]+:\/*\[?[\w\.:-]+\]?(?::[0-9]+)?/

if (!real_URL.createObjectURL) {
URL = view.URL = function(uri) {
URL = exports.URL = function(uri) {
var

@@ -190,5 +202,5 @@ uri_info = document.createElementNS("http://www.w3.org/1999/xhtml", "a")

return FakeBlobBuilder;
}(view));
}());
view.Blob = function(blobParts, options) {
exports.Blob = function(blobParts, options) {
var type = options ? (options.type || "") : "";

@@ -216,3 +228,9 @@ var builder = new BlobBuilder();

};
view.Blob.prototype = getPrototypeOf(new view.Blob());
}(typeof self !== "undefined" && self || typeof window !== "undefined" && window || this.content || this));
exports.Blob.prototype = getPrototypeOf(new exports.Blob());
});
})(
typeof self !== "undefined" && self ||
typeof window !== "undefined" && window ||
typeof global !== "undefined" && global ||
this.content || this
);
{
"name": "blob-polyfill",
"version": "1.0.20150320",
"version": "2.0.20171115",
"homepage": "https://github.com/bjornstar/blob-polyfill",

@@ -11,3 +11,4 @@ "authors": [

"moduleType": [
"amd"
"amd",
"node"
],

@@ -14,0 +15,0 @@ "keywords": [

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

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

@@ -7,4 +7,10 @@ Blob.js

Supported browsers
------------------
Blob.js shares the [same supported browsers as FileSaver.js][2].
![Tracking image](https://in.getclicky.com/212712ns.gif)
[1]: https://developer.mozilla.org/en-US/docs/Web/API/Blob
[2]: https://github.com/eligrey/FileSaver.js#supported-browsers
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