Socket
Socket
Sign inDemoInstall

blueimp-canvas-to-blob

Package Overview
Dependencies
Maintainers
1
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

blueimp-canvas-to-blob - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

.gitignore

10

canvas-to-blob.js
/*
* JavaScript Canvas to Blob 1.0
* JavaScript Canvas to Blob 1.0.1
* https://github.com/blueimp/JavaScript-Canvas-to-Blob

@@ -15,3 +15,3 @@ *

/*jslint nomen: true */
/*jslint nomen: true, regexp: true */
/*global window, atob, ArrayBuffer, Uint8Array, define */

@@ -24,2 +24,4 @@

window.WebKitBlobBuilder || window.BlobBuilder,
blobTypes = /^image\/(jpeg|png)$/,
// Converts a canvas element to a Blob or File object:

@@ -32,4 +34,6 @@ canvasToBlob = function (canvas, callback, options) {

} else if (canvas.mozGetAsFile) {
var name = options.name;
callback(canvas.mozGetAsFile(
options.name || 'blob.png',
(blobTypes.test(options.type) && name) ||
((name && name.replace(/\..+$/, '')) || 'blob') + '.png',
options.type

@@ -36,0 +40,0 @@ ));

{
"name": "blueimp-canvas-to-blob",
"version": "1.0.0",
"version": "1.0.1",
"title": "JavaScript Canvas to Blob",

@@ -35,6 +35,3 @@ "description": "JavaScript Canvas to Blob is a function to convert canvas elements into Blob objects.",

],
"files": [
"canvas-to-blob.js"
],
"main": "canvas-to-blob.js"
}
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