3 Commits
Author SHA1 Message Date
Eli Grey e865e37af9 Revert #408 2018-03-22 14:09:13 -07:00
Christopher HuntandJimmy Wärting a606064f37 Revert interface change. (#411) 2018-03-22 19:48:05 +01:00
Bryan WainandJimmy Wärting 28a86d90c4 Fix files included with npm (#413)
the files pointed to by main and module are not included in the npm installation
2018-03-22 19:47:45 +01:00
4 changed files with 11 additions and 8 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
{ {
"name": "file-saver", "name": "file-saver",
"main": "dist/FileSaver.js", "main": "dist/FileSaver.js",
"version": "1.3.7", "version": "1.3.8",
"homepage": "https://github.com/eligrey/FileSaver.js", "homepage": "https://github.com/eligrey/FileSaver.js",
"authors": [ "authors": [
"Eli Grey <[email protected]>" "Eli Grey <[email protected]>"
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "file-saver", "name": "file-saver",
"version": "1.3.7", "version": "1.3.8",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {
+4 -2
View File
@@ -1,11 +1,13 @@
{ {
"name": "file-saver", "name": "file-saver",
"version": "1.3.7", "version": "1.3.8",
"description": "An HTML5 saveAs() FileSaver implementation", "description": "An HTML5 saveAs() FileSaver implementation",
"main": "dist/FileSaver.js", "main": "dist/FileSaver.js",
"module": "src/FileSaver.js", "module": "src/FileSaver.js",
"files": [ "files": [
"dist/FileSaver.min.js" "dist/FileSaver.js",
"dist/FileSaver.min.js",
"src/FileSaver.js"
], ],
"scripts": { "scripts": {
"test": "echo \"Error: no test specified\" && exit 0", "test": "echo \"Error: no test specified\" && exit 0",
+5 -4
View File
@@ -1,7 +1,7 @@
/* FileSaver.js /* FileSaver.js
* A saveAs() FileSaver implementation. * A saveAs() FileSaver implementation.
* 1.3.7 * 1.3.8
* 2018-03-16 14:39:40 * 2018-03-22 14:03:47
* *
* By Eli Grey, https://eligrey.com * By Eli Grey, https://eligrey.com
* License: MIT * License: MIT
@@ -13,7 +13,7 @@
/*! @source http://purl.eligrey.com/github/FileSaver.js/blob/master/src/FileSaver.js */ /*! @source http://purl.eligrey.com/github/FileSaver.js/blob/master/src/FileSaver.js */
export default var saveAs = saveAs || (function(view) { export var saveAs = saveAs || (function(view) {
"use strict"; "use strict";
// IE <10 is explicitly unsupported // IE <10 is explicitly unsupported
if (typeof view === "undefined" || typeof navigator !== "undefined" && /MSIE [1-9]\./.test(navigator.userAgent)) { if (typeof view === "undefined" || typeof navigator !== "undefined" && /MSIE [1-9]\./.test(navigator.userAgent)) {
@@ -157,7 +157,8 @@ export default var saveAs = saveAs || (function(view) {
}; };
} }
save_link.target = "_blank"; // todo: detect chrome extensions & packaged apps
//save_link.target = "_blank";
FS_proto.abort = function(){}; FS_proto.abort = function(){};
FS_proto.readyState = FS_proto.INIT = 0; FS_proto.readyState = FS_proto.INIT = 0;