4 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
Eli Grey 5914e2a573 Version bump for 1.3.7 2018-03-20 14:30:18 -07:00
4 changed files with 11 additions and 8 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "file-saver",
"main": "dist/FileSaver.js",
"version": "1.3.3",
"version": "1.3.8",
"homepage": "https://github.com/eligrey/FileSaver.js",
"authors": [
"Eli Grey <[email protected]>"
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "file-saver",
"version": "1.3.3",
"version": "1.3.8",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
+4 -2
View File
@@ -1,11 +1,13 @@
{
"name": "file-saver",
"version": "1.3.4",
"version": "1.3.8",
"description": "An HTML5 saveAs() FileSaver implementation",
"main": "dist/FileSaver.js",
"module": "src/FileSaver.js",
"files": [
"dist/FileSaver.min.js"
"dist/FileSaver.js",
"dist/FileSaver.min.js",
"src/FileSaver.js"
],
"scripts": {
"test": "echo \"Error: no test specified\" && exit 0",
+5 -4
View File
@@ -1,7 +1,7 @@
/* FileSaver.js
* A saveAs() FileSaver implementation.
* 1.3.6
* 2018-03-16 14:39:40
* 1.3.8
* 2018-03-22 14:03:47
*
* By Eli Grey, https://eligrey.com
* License: MIT
@@ -13,7 +13,7 @@
/*! @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";
// IE <10 is explicitly unsupported
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.readyState = FS_proto.INIT = 0;