save-as-file
Advanced tools
Comparing version 0.2.0 to 0.3.0
(function (global, factory) { | ||
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : | ||
typeof define === 'function' && define.amd ? define(factory) : | ||
(global.saveAsFile = factory()); | ||
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.saveAsFile = factory()); | ||
}(this, (function () { 'use strict'; | ||
@@ -6,0 +6,0 @@ |
@@ -1,2 +0,2 @@ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.saveAsFile=t()}(this,function(){"use strict";return function(e,t,n){void 0===n&&(n=6e4);var o=e instanceof Blob,i=o?URL.createObjectURL(e):e,c=document.createElement("a");c.href=i,c.download=t;var f=new MouseEvent("click");requestAnimationFrame(function(){c.dispatchEvent(f)}),o&&setTimeout(function(){URL.revokeObjectURL(i)},n)}}); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).saveAsFile=t()}(this,(function(){"use strict";return function(e,t,n){void 0===n&&(n=6e4);var o=e instanceof Blob,i=o?URL.createObjectURL(e):e,f=document.createElement("a");f.href=i,f.download=t;var c=new MouseEvent("click");requestAnimationFrame((function(){f.dispatchEvent(c)})),o&&setTimeout((function(){URL.revokeObjectURL(i)}),n)}})); | ||
//# sourceMappingURL=save-as-file.umd.min.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.default = void 0; | ||
var save_file_1 = require("./save-file"); | ||
exports.default = save_file_1.default; | ||
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return save_file_1.default; } }); | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "save-as-file", | ||
"version": "0.2.0", | ||
"version": "0.3.0", | ||
"description": "A simple fn to save a file to disk", | ||
@@ -38,10 +38,4 @@ "main": "./dist/index.js", | ||
"test:cov": "jest --coverage", | ||
"test": "jest --watch", | ||
"release": "standard-version" | ||
"test": "jest --watch" | ||
}, | ||
"standard-version": { | ||
"scripts": { | ||
"prerelease": "yarn test:cov" | ||
} | ||
}, | ||
"dependencies": { | ||
@@ -51,23 +45,21 @@ "tslib": "^1.9.0" | ||
"devDependencies": { | ||
"@babel/core": "^7.0.0-beta.54", | ||
"@types/jest": "^23.3.1", | ||
"@types/node": "^9.4.5", | ||
"babel-core": "^7.0.0-0", | ||
"babel-jest": "^23.4.0", | ||
"camelcase": "^4.1.0", | ||
"jest": "^23.5.0", | ||
"npm-run-all": "^4.1.3", | ||
"rollup": "^0.65.0", | ||
"rollup-plugin-commonjs": "^9.1.6", | ||
"rollup-plugin-node-resolve": "^3.3.0", | ||
"rollup-plugin-sourcemaps": "^0.4.2", | ||
"rollup-plugin-uglify": "^4.0.0", | ||
"standard-version": "^4.4.0", | ||
"ts-jest": "^23.1.4", | ||
"tslint": "^5.9.1", | ||
"typescript": "2.8.3" | ||
"@babel/core": "^7.11.6", | ||
"@rollup/plugin-commonjs": "^15.0.0", | ||
"@rollup/plugin-node-resolve": "^9.0.0", | ||
"@types/jest": "^26.0.13", | ||
"@types/node": "^14.6.4", | ||
"babel-jest": "^26.3.0", | ||
"camelcase": "^6.0.0", | ||
"jest": "^26.4.2", | ||
"npm-run-all": "^4.1.5", | ||
"rollup": "^2.26.10", | ||
"rollup-plugin-sourcemaps": "^0.6.2", | ||
"rollup-plugin-terser": "^7.0.2", | ||
"ts-jest": "^26.3.0", | ||
"tslint": "^6.1.3", | ||
"typescript": "^4.0.2" | ||
}, | ||
"engines": { | ||
"node": ">= 7.9" | ||
"node": ">= 10" | ||
} | ||
} |
@@ -5,3 +5,5 @@ # File Saver | ||
[![Travis (.org) branch](https://img.shields.io/travis/rolandjitsu/save-file/master.svg?style=flat-square)](https://github.com/rolandjitsu/save-file) | ||
[![npm](https://img.shields.io/npm/v/save-file.svg?style=flat-square)](https://www.npmjs.com/package/save-file) | ||
[![GitHub Workflow Status](https://img.shields.io/github/workflow/status/rolandjitsu/save-file/Test?label=tests&style=flat-square)](https://github.com/rolandjitsu/save-file/actions?query=workflow%3ATest) | ||
[![Coveralls github branch](https://img.shields.io/coveralls/github/rolandjitsu/save-file/master?style=flat-square)](https://coveralls.io/github/rolandjitsu/save-file?branch=master) | ||
@@ -8,0 +10,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
22426
15
25
251
86