blueimp-canvas-to-blob
Advanced tools
Comparing version 1.0.0 to 1.0.1
/* | ||
* 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" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
11900
8
192
0
45