Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ngx-filesaver

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ngx-filesaver - npm Package Compare versions

Comparing version 0.0.2 to 1.0.0

201

bundles/ngx-filesaver.umd.js
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("@angular/core"), require("@angular/http"), require("rxjs/Observable"), require("rxjs/add/operator/map"));
module.exports = factory(require("@angular/core"), require("@angular/http"), require("rxjs/Observable"));
else if(typeof define === 'function' && define.amd)
define(["@angular/core", "@angular/http", "rxjs/Observable", "rxjs/add/operator/map"], factory);
define(["@angular/core", "@angular/http", "rxjs/Observable"], factory);
else if(typeof exports === 'object')
exports["ngx-filesaver.umd"] = factory(require("@angular/core"), require("@angular/http"), require("rxjs/Observable"), require("rxjs/add/operator/map"));
exports["ngx-filesaver.umd"] = factory(require("@angular/core"), require("@angular/http"), require("rxjs/Observable"));
else
root["ngx-filesaver.umd"] = factory(root["@angular/core"], root["@angular/http"], root["rxjs/Observable"], root["rxjs/add/operator/map"]);
})(this, function(__WEBPACK_EXTERNAL_MODULE_1__, __WEBPACK_EXTERNAL_MODULE_3__, __WEBPACK_EXTERNAL_MODULE_8__, __WEBPACK_EXTERNAL_MODULE_9__) {
root["ngx-filesaver.umd"] = factory(root["@angular/core"], root["@angular/http"], root["rxjs/Observable"]);
})(this, function(__WEBPACK_EXTERNAL_MODULE_0__, __WEBPACK_EXTERNAL_MODULE_2__, __WEBPACK_EXTERNAL_MODULE_5__) {
return /******/ (function(modules) { // webpackBootstrap

@@ -19,5 +19,5 @@ /******/ // The module cache

/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ if(installedModules[moduleId]) {
/******/ return installedModules[moduleId].exports;
/******/
/******/ }
/******/ // Create a new module (and put it into the cache)

@@ -47,5 +47,2 @@ /******/ var module = installedModules[moduleId] = {

/******/
/******/ // identity function for calling harmony imports with the correct context
/******/ __webpack_require__.i = function(value) { return value; };
/******/
/******/ // define getter function for harmony exports

@@ -78,3 +75,3 @@ /******/ __webpack_require__.d = function(exports, name, getter) {

/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 10);
/******/ return __webpack_require__(__webpack_require__.s = 4);
/******/ })

@@ -84,10 +81,16 @@ /************************************************************************/

/* 0 */
/***/ (function(module, exports) {
module.exports = __WEBPACK_EXTERNAL_MODULE_0__;
/***/ }),
/* 1 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(1);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return FileSaverService; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__angular_core__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_file_saver__ = __webpack_require__(5);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_file_saver__ = __webpack_require__(6);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_file_saver___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_file_saver__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return FileSaverService; });
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

@@ -127,14 +130,14 @@ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;

}
__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1_file_saver__["saveAs"])(new Blob([blob], { type: filtType || blob.type || this.genType(fileName) }), decodeURI(fileName || 'download'));
Object(__WEBPACK_IMPORTED_MODULE_1_file_saver__["saveAs"])(new Blob([blob], { type: filtType || blob.type || this.genType(fileName) }), decodeURI(fileName || 'download'));
};
FileSaverService.prototype.saveText = function (txt, fileName) {
var blob = new Blob([txt], fileName);
var blob = new Blob([txt]);
this.save(blob, fileName);
};
FileSaverService = __decorate([
Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["Injectable"])(),
__metadata("design:paramtypes", [])
], FileSaverService);
return FileSaverService;
}());
FileSaverService = __decorate([
__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__["Injectable"])(),
__metadata("design:paramtypes", [])
], FileSaverService);

@@ -144,22 +147,20 @@

/***/ }),
/* 1 */
/* 2 */
/***/ (function(module, exports) {
module.exports = __WEBPACK_EXTERNAL_MODULE_1__;
module.exports = __WEBPACK_EXTERNAL_MODULE_2__;
/***/ }),
/* 2 */
/* 3 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_http__ = __webpack_require__(3);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return FileSaverDirective; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_http__ = __webpack_require__(2);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_http___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__angular_http__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__angular_core__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_rxjs_Observable__ = __webpack_require__(8);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_rxjs_Observable__ = __webpack_require__(5);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_rxjs_Observable___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_rxjs_Observable__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_rxjs_add_operator_map__ = __webpack_require__(9);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_rxjs_add_operator_map___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_rxjs_add_operator_map__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__filesaver_provider__ = __webpack_require__(0);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return FileSaverDirective; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__filesaver_provider__ = __webpack_require__(1);
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

@@ -178,3 +179,2 @@ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;

var FileSaverDirective = (function () {

@@ -212,34 +212,35 @@ function FileSaverDirective(el, _FileSaverService, _http) {

};
__decorate([
Object(__WEBPACK_IMPORTED_MODULE_1__angular_core__["Input"])(),
__metadata("design:type", typeof (_a = typeof __WEBPACK_IMPORTED_MODULE_2_rxjs_Observable__["Observable"] !== "undefined" && __WEBPACK_IMPORTED_MODULE_2_rxjs_Observable__["Observable"]) === "function" && _a || Object)
], FileSaverDirective.prototype, "http", void 0);
__decorate([
Object(__WEBPACK_IMPORTED_MODULE_1__angular_core__["Input"])(),
__metadata("design:type", Object)
], FileSaverDirective.prototype, "query", void 0);
__decorate([
Object(__WEBPACK_IMPORTED_MODULE_1__angular_core__["Input"])(),
__metadata("design:type", Object)
], FileSaverDirective.prototype, "header", void 0);
__decorate([
Object(__WEBPACK_IMPORTED_MODULE_1__angular_core__["Input"])(),
__metadata("design:type", String)
], FileSaverDirective.prototype, "url", void 0);
__decorate([
Object(__WEBPACK_IMPORTED_MODULE_1__angular_core__["Input"])(),
__metadata("design:type", String)
], FileSaverDirective.prototype, "fileName", void 0);
__decorate([
Object(__WEBPACK_IMPORTED_MODULE_1__angular_core__["HostListener"])('click'),
__metadata("design:type", Function),
__metadata("design:paramtypes", []),
__metadata("design:returntype", void 0)
], FileSaverDirective.prototype, "onclick", null);
FileSaverDirective = __decorate([
Object(__WEBPACK_IMPORTED_MODULE_1__angular_core__["Directive"])({ selector: '[fileSaver]' }),
__metadata("design:paramtypes", [typeof (_b = typeof __WEBPACK_IMPORTED_MODULE_1__angular_core__["ElementRef"] !== "undefined" && __WEBPACK_IMPORTED_MODULE_1__angular_core__["ElementRef"]) === "function" && _b || Object, typeof (_c = typeof __WEBPACK_IMPORTED_MODULE_3__filesaver_provider__["a" /* FileSaverService */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_3__filesaver_provider__["a" /* FileSaverService */]) === "function" && _c || Object, typeof (_d = typeof __WEBPACK_IMPORTED_MODULE_0__angular_http__["Http"] !== "undefined" && __WEBPACK_IMPORTED_MODULE_0__angular_http__["Http"]) === "function" && _d || Object])
], FileSaverDirective);
return FileSaverDirective;
var _a, _b, _c, _d;
}());
__decorate([
__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__["Input"])(),
__metadata("design:type", __WEBPACK_IMPORTED_MODULE_2_rxjs_Observable__["Observable"])
], FileSaverDirective.prototype, "http", void 0);
__decorate([
__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__["Input"])(),
__metadata("design:type", Object)
], FileSaverDirective.prototype, "query", void 0);
__decorate([
__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__["Input"])(),
__metadata("design:type", Object)
], FileSaverDirective.prototype, "header", void 0);
__decorate([
__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__["Input"])(),
__metadata("design:type", String)
], FileSaverDirective.prototype, "url", void 0);
__decorate([
__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__["Input"])(),
__metadata("design:type", String)
], FileSaverDirective.prototype, "fileName", void 0);
__decorate([
__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__["HostListener"])('click'),
__metadata("design:type", Function),
__metadata("design:paramtypes", []),
__metadata("design:returntype", void 0)
], FileSaverDirective.prototype, "onclick", null);
FileSaverDirective = __decorate([
__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__["Directive"])({ selector: '[fileSaver]' }),
__metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1__angular_core__["ElementRef"], __WEBPACK_IMPORTED_MODULE_4__filesaver_provider__["a" /* FileSaverService */], __WEBPACK_IMPORTED_MODULE_0__angular_http__["Http"]])
], FileSaverDirective);

@@ -249,8 +250,2 @@

/***/ }),
/* 3 */
/***/ (function(module, exports) {
module.exports = __WEBPACK_EXTERNAL_MODULE_3__;
/***/ }),
/* 4 */

@@ -260,9 +255,12 @@ /***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(1);
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FileSaverModule", function() { return FileSaverModule; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__angular_core__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_http__ = __webpack_require__(3);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_http__ = __webpack_require__(2);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_http___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__angular_http__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__filesaver_directive__ = __webpack_require__(2);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__filesaver_provider__ = __webpack_require__(0);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return FileSaverModule; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__components_filesaver_directive__ = __webpack_require__(3);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__components_filesaver_provider__ = __webpack_require__(1);
/* harmony namespace reexport (by provided) */ __webpack_require__.d(__webpack_exports__, "FileSaverService", function() { return __WEBPACK_IMPORTED_MODULE_3__components_filesaver_provider__["a"]; });
/* harmony namespace reexport (by provided) */ __webpack_require__.d(__webpack_exports__, "FileSaverDirective", function() { return __WEBPACK_IMPORTED_MODULE_2__components_filesaver_directive__["a"]; });
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

@@ -278,15 +276,17 @@ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;

var FileSaverModule = (function () {
function FileSaverModule() {
}
FileSaverModule = __decorate([
Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["NgModule"])({
imports: [__WEBPACK_IMPORTED_MODULE_1__angular_http__["HttpModule"]],
exports: [__WEBPACK_IMPORTED_MODULE_2__components_filesaver_directive__["a" /* FileSaverDirective */]],
declarations: [__WEBPACK_IMPORTED_MODULE_2__components_filesaver_directive__["a" /* FileSaverDirective */]],
providers: [__WEBPACK_IMPORTED_MODULE_3__components_filesaver_provider__["a" /* FileSaverService */]]
})
], FileSaverModule);
return FileSaverModule;
}());
FileSaverModule = __decorate([
__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__["NgModule"])({
imports: [__WEBPACK_IMPORTED_MODULE_1__angular_http__["HttpModule"]],
exports: [__WEBPACK_IMPORTED_MODULE_2__filesaver_directive__["a" /* FileSaverDirective */]],
declarations: [__WEBPACK_IMPORTED_MODULE_2__filesaver_directive__["a" /* FileSaverDirective */]],
providers: [__WEBPACK_IMPORTED_MODULE_3__filesaver_provider__["a" /* FileSaverService */]]
})
], FileSaverModule);

@@ -297,2 +297,8 @@

/* 5 */
/***/ (function(module, exports) {
module.exports = __WEBPACK_EXTERNAL_MODULE_5__;
/***/ }),
/* 6 */
/***/ (function(module, exports, __webpack_require__) {

@@ -483,3 +489,3 @@

module.exports.saveAs = saveAs;
} else if (("function" !== "undefined" && __webpack_require__(6) !== null) && (__webpack_require__(7) !== null)) {
} else if (("function" !== "undefined" && __webpack_require__(7) !== null) && (__webpack_require__(8) !== null)) {
!(__WEBPACK_AMD_DEFINE_RESULT__ = function() {

@@ -493,3 +499,3 @@ return saveAs;

/***/ }),
/* 6 */
/* 7 */
/***/ (function(module, exports) {

@@ -503,3 +509,3 @@

/***/ }),
/* 7 */
/* 8 */
/***/ (function(module, exports) {

@@ -512,31 +518,2 @@

/***/ }),
/* 8 */
/***/ (function(module, exports) {
module.exports = __WEBPACK_EXTERNAL_MODULE_8__;
/***/ }),
/* 9 */
/***/ (function(module, exports) {
module.exports = __WEBPACK_EXTERNAL_MODULE_9__;
/***/ }),
/* 10 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__components_filesaver_provider__ = __webpack_require__(0);
/* harmony namespace reexport (by provided) */ __webpack_require__.d(__webpack_exports__, "FileSaverService", function() { return __WEBPACK_IMPORTED_MODULE_0__components_filesaver_provider__["a"]; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__components_filesaver_directive__ = __webpack_require__(2);
/* harmony namespace reexport (by provided) */ __webpack_require__.d(__webpack_exports__, "FileSaverDirective", function() { return __WEBPACK_IMPORTED_MODULE_1__components_filesaver_directive__["a"]; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__components_filesaver_module__ = __webpack_require__(4);
/* harmony namespace reexport (by provided) */ __webpack_require__.d(__webpack_exports__, "FileSaverModule", function() { return __WEBPACK_IMPORTED_MODULE_2__components_filesaver_module__["a"]; });
/***/ })

@@ -543,0 +520,0 @@ /******/ ]);

@@ -1,1 +0,1 @@

!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("@angular/core"),require("@angular/http"),require("rxjs/Observable"),require("rxjs/add/operator/map")):"function"==typeof define&&define.amd?define(["@angular/core","@angular/http","rxjs/Observable","rxjs/add/operator/map"],t):"object"==typeof exports?exports["ngx-filesaver.umd.min"]=t(require("@angular/core"),require("@angular/http"),require("rxjs/Observable"),require("rxjs/add/operator/map")):e["ngx-filesaver.umd.min"]=t(e["@angular/core"],e["@angular/http"],e["rxjs/Observable"],e["rxjs/add/operator/map"])}(this,function(e,t,n,r){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/",t(t.s=10)}([function(e,t,n){"use strict";var r=n(1),o=(n.n(r),n(5));n.n(o);n.d(t,"a",function(){return c});var i=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var c=e.length-1;c>=0;c--)(o=e[c])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},a=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=function(){function e(){}return e.prototype.genType=function(e){if(!e||-1===e.lastIndexOf("."))return"text/plain";var t=e.substr(e.lastIndexOf(".")+1);switch(t){case"txt":return"text/plain";case"xml":case"html":return"text/"+t;case"json":return"octet/stream";default:return"application/"+t}},e.prototype.save=function(e,t,r){if(!e)throw new Error("必须指定Blod");n.i(o.saveAs)(new Blob([e],{type:r||e.type||this.genType(t)}),decodeURI(t||"download"))},e.prototype.saveText=function(e,t){var n=new Blob([e],t);this.save(n,t)},e}();c=i([n.i(r.Injectable)(),a("design:paramtypes",[])],c)},function(t,n){t.exports=e},function(e,t,n){"use strict";var r=n(3),o=(n.n(r),n(1)),i=(n.n(o),n(8)),a=(n.n(i),n(9)),c=(n.n(a),n(0));n.d(t,"a",function(){return f});var u=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var c=e.length-1;c>=0;c--)(o=e[c])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},f=function(){function e(e,t,n){this.el=e,this._FileSaverService=t,this._http=n}return e.prototype.onclick=function(){var e=this;if(this.http)return void this.http.subscribe(function(t){e._FileSaverService.save(t._body,e.fileName||t.headers.get("filename")||t.headers.get("x-filename"))});var t=new r.URLSearchParams,n=this.query||{};for(var o in n)t.set(o,n[o]);var i=new r.RequestOptions({search:t,headers:new r.Headers(this.header||{}),responseType:r.ResponseContentType.Blob});this.el.nativeElement.disabled=!0,this._http.get(this.url,i).subscribe(function(t){e._FileSaverService.save(t._body,e.fileName||t.headers.get("filename")||t.headers.get("x-filename"))},function(e){},function(){e.el.nativeElement.disabled=!1})},e}();u([n.i(o.Input)(),s("design:type",i.Observable)],f.prototype,"http",void 0),u([n.i(o.Input)(),s("design:type",Object)],f.prototype,"query",void 0),u([n.i(o.Input)(),s("design:type",Object)],f.prototype,"header",void 0),u([n.i(o.Input)(),s("design:type",String)],f.prototype,"url",void 0),u([n.i(o.Input)(),s("design:type",String)],f.prototype,"fileName",void 0),u([n.i(o.HostListener)("click"),s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],f.prototype,"onclick",null),f=u([n.i(o.Directive)({selector:"[fileSaver]"}),s("design:paramtypes",[o.ElementRef,c.a,r.Http])],f)},function(e,n){e.exports=t},function(e,t,n){"use strict";var r=n(1),o=(n.n(r),n(3)),i=(n.n(o),n(2)),a=n(0);n.d(t,"a",function(){return u});var c=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var c=e.length-1;c>=0;c--)(o=e[c])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},u=function(){function e(){}return e}();u=c([n.i(r.NgModule)({imports:[o.HttpModule],exports:[i.a],declarations:[i.a],providers:[a.a]})],u)},function(e,t,n){var r,o=o||function(e){"use strict";if(!(void 0===e||"undefined"!=typeof navigator&&/MSIE [1-9]\./.test(navigator.userAgent))){var t=e.document,n=function(){return e.URL||e.webkitURL||e},r=t.createElementNS("http://www.w3.org/1999/xhtml","a"),o="download"in r,i=function(e){var t=new MouseEvent("click");e.dispatchEvent(t)},a=/constructor/i.test(e.HTMLElement)||e.safari,c=/CriOS\/[\d]+/.test(navigator.userAgent),u=function(t){(e.setImmediate||e.setTimeout)(function(){throw t},0)},s="application/octet-stream",f=4e4,l=function(e){var t=function(){"string"==typeof e?n().revokeObjectURL(e):e.remove()};setTimeout(t,f)},p=function(e,t,n){t=[].concat(t);for(var r=t.length;r--;){var o=e["on"+t[r]];if("function"==typeof o)try{o.call(e,n||e)}catch(e){u(e)}}},d=function(e){return/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob([String.fromCharCode(65279),e],{type:e.type}):e},v=function(t,u,f){f||(t=d(t));var v,y=this,h=t.type,b=h===s,m=function(){p(y,"writestart progress write writeend".split(" "))},g=function(){if((c||b&&a)&&e.FileReader){var r=new FileReader;return r.onloadend=function(){var t=c?r.result:r.result.replace(/^data:[^;]*;/,"data:attachment/file;");e.open(t,"_blank")||(e.location.href=t),t=void 0,y.readyState=y.DONE,m()},r.readAsDataURL(t),void(y.readyState=y.INIT)}if(v||(v=n().createObjectURL(t)),b)e.location.href=v;else{e.open(v,"_blank")||(e.location.href=v)}y.readyState=y.DONE,m(),l(v)};if(y.readyState=y.INIT,o)return v=n().createObjectURL(t),void setTimeout(function(){r.href=v,r.download=u,i(r),m(),l(v),y.readyState=y.DONE});g()},y=v.prototype,h=function(e,t,n){return new v(e,t||e.name||"download",n)};return"undefined"!=typeof navigator&&navigator.msSaveOrOpenBlob?function(e,t,n){return t=t||e.name||"download",n||(e=d(e)),navigator.msSaveOrOpenBlob(e,t)}:(y.abort=function(){},y.readyState=y.INIT=0,y.WRITING=1,y.DONE=2,y.error=y.onwritestart=y.onprogress=y.onwrite=y.onabort=y.onerror=y.onwriteend=null,h)}}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||this.content);void 0!==e&&e.exports?e.exports.saveAs=o:null!==n(6)&&null!==n(7)&&void 0!==(r=function(){return o}.call(t,n,t,e))&&(e.exports=r)},function(e,t){e.exports=function(){throw new Error("define cannot be used indirect")}},function(e,t){(function(t){e.exports=t}).call(t,{})},function(e,t){e.exports=n},function(e,t){e.exports=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0);n.d(t,"FileSaverService",function(){return r.a});var o=n(2);n.d(t,"FileSaverDirective",function(){return o.a});var i=n(4);n.d(t,"FileSaverModule",function(){return i.a})}])});
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("@angular/core"),require("@angular/http"),require("rxjs/Observable")):"function"==typeof define&&define.amd?define(["@angular/core","@angular/http","rxjs/Observable"],t):"object"==typeof exports?exports["ngx-filesaver.umd.min"]=t(require("@angular/core"),require("@angular/http"),require("rxjs/Observable")):e["ngx-filesaver.umd.min"]=t(e["@angular/core"],e["@angular/http"],e["rxjs/Observable"])}(this,function(e,t,n){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/",t(t.s=4)}([function(t,n){t.exports=e},function(e,t,n){"use strict";n.d(t,"a",function(){return c});var r=n(0),o=(n.n(r),n(6)),i=(n.n(o),this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var c=e.length-1;c>=0;c--)(o=e[c])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}),a=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=function(){function e(){}return e.prototype.genType=function(e){if(!e||-1===e.lastIndexOf("."))return"text/plain";var t=e.substr(e.lastIndexOf(".")+1);switch(t){case"txt":return"text/plain";case"xml":case"html":return"text/"+t;case"json":return"octet/stream";default:return"application/"+t}},e.prototype.save=function(e,t,n){if(!e)throw new Error("必须指定Blod");Object(o.saveAs)(new Blob([e],{type:n||e.type||this.genType(t)}),decodeURI(t||"download"))},e.prototype.saveText=function(e,t){var n=new Blob([e]);this.save(n,t)},e=i([Object(r.Injectable)(),a("design:paramtypes",[])],e)}()},function(e,n){e.exports=t},function(e,t,n){"use strict";n.d(t,"a",function(){return f});var r=n(2),o=(n.n(r),n(0)),i=(n.n(o),n(5)),a=(n.n(i),n(1)),c=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var c=e.length-1;c>=0;c--)(o=e[c])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},u=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},f=function(){function e(e,t,n){this.el=e,this._FileSaverService=t,this._http=n}return e.prototype.onclick=function(){var e=this;if(this.http)return void this.http.subscribe(function(t){e._FileSaverService.save(t._body,e.fileName||t.headers.get("filename")||t.headers.get("x-filename"))});var t=new r.URLSearchParams,n=this.query||{};for(var o in n)t.set(o,n[o]);var i=new r.RequestOptions({search:t,headers:new r.Headers(this.header||{}),responseType:r.ResponseContentType.Blob});this.el.nativeElement.disabled=!0,this._http.get(this.url,i).subscribe(function(t){e._FileSaverService.save(t._body,e.fileName||t.headers.get("filename")||t.headers.get("x-filename"))},function(e){},function(){e.el.nativeElement.disabled=!1})},c([Object(o.Input)(),u("design:type","function"==typeof(t=void 0!==i.Observable&&i.Observable)&&t||Object)],e.prototype,"http",void 0),c([Object(o.Input)(),u("design:type",Object)],e.prototype,"query",void 0),c([Object(o.Input)(),u("design:type",Object)],e.prototype,"header",void 0),c([Object(o.Input)(),u("design:type",String)],e.prototype,"url",void 0),c([Object(o.Input)(),u("design:type",String)],e.prototype,"fileName",void 0),c([Object(o.HostListener)("click"),u("design:type",Function),u("design:paramtypes",[]),u("design:returntype",void 0)],e.prototype,"onclick",null),e=c([Object(o.Directive)({selector:"[fileSaver]"}),u("design:paramtypes",["function"==typeof(n=void 0!==o.ElementRef&&o.ElementRef)&&n||Object,"function"==typeof(f=void 0!==a.a&&a.a)&&f||Object,"function"==typeof(s=void 0!==r.Http&&r.Http)&&s||Object])],e);var t,n,f,s}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"FileSaverModule",function(){return u});var r=n(0),o=(n.n(r),n(2)),i=(n.n(o),n(3)),a=n(1);n.d(t,"FileSaverService",function(){return a.a}),n.d(t,"FileSaverDirective",function(){return i.a});var c=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var c=e.length-1;c>=0;c--)(o=e[c])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},u=function(){function e(){}return e=c([Object(r.NgModule)({imports:[o.HttpModule],exports:[i.a],declarations:[i.a],providers:[a.a]})],e)}()},function(e,t){e.exports=n},function(e,t,n){var r,o=o||function(e){"use strict";if(!(void 0===e||"undefined"!=typeof navigator&&/MSIE [1-9]\./.test(navigator.userAgent))){var t=e.document,n=function(){return e.URL||e.webkitURL||e},r=t.createElementNS("http://www.w3.org/1999/xhtml","a"),o="download"in r,i=function(e){var t=new MouseEvent("click");e.dispatchEvent(t)},a=/constructor/i.test(e.HTMLElement)||e.safari,c=/CriOS\/[\d]+/.test(navigator.userAgent),u=function(t){(e.setImmediate||e.setTimeout)(function(){throw t},0)},f=function(e){var t=function(){"string"==typeof e?n().revokeObjectURL(e):e.remove()};setTimeout(t,4e4)},s=function(e,t,n){t=[].concat(t);for(var r=t.length;r--;){var o=e["on"+t[r]];if("function"==typeof o)try{o.call(e,n||e)}catch(e){u(e)}}},l=function(e){return/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob([String.fromCharCode(65279),e],{type:e.type}):e},p=function(t,u,p){p||(t=l(t));var d,v=this,y=t.type,b="application/octet-stream"===y,h=function(){s(v,"writestart progress write writeend".split(" "))};if(v.readyState=v.INIT,o)return d=n().createObjectURL(t),void setTimeout(function(){r.href=d,r.download=u,i(r),h(),f(d),v.readyState=v.DONE});!function(){if((c||b&&a)&&e.FileReader){var r=new FileReader;return r.onloadend=function(){var t=c?r.result:r.result.replace(/^data:[^;]*;/,"data:attachment/file;");e.open(t,"_blank")||(e.location.href=t),t=void 0,v.readyState=v.DONE,h()},r.readAsDataURL(t),void(v.readyState=v.INIT)}if(d||(d=n().createObjectURL(t)),b)e.location.href=d;else{e.open(d,"_blank")||(e.location.href=d)}v.readyState=v.DONE,h(),f(d)}()},d=p.prototype,v=function(e,t,n){return new p(e,t||e.name||"download",n)};return"undefined"!=typeof navigator&&navigator.msSaveOrOpenBlob?function(e,t,n){return t=t||e.name||"download",n||(e=l(e)),navigator.msSaveOrOpenBlob(e,t)}:(d.abort=function(){},d.readyState=d.INIT=0,d.WRITING=1,d.DONE=2,d.error=d.onwritestart=d.onprogress=d.onwrite=d.onabort=d.onerror=d.onwriteend=null,v)}}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||this.content);void 0!==e&&e.exports?e.exports.saveAs=o:null!==n(7)&&null!==n(8)&&void 0!==(r=function(){return o}.call(t,n,t,e))&&(e.exports=r)},function(e,t){e.exports=function(){throw new Error("define cannot be used indirect")}},function(e,t){(function(t){e.exports=t}).call(t,{})}])});

@@ -1,5 +0,3 @@

<a name="0.0.1"></a>
# 0.0.1 (2017-04-09)
# 1.0.0
首次上传
+ Support Angular5.
import { Http, Response } from '@angular/http';
import { ElementRef } from '@angular/core';
import { Observable } from 'rxjs/Observable';
import 'rxjs/add/operator/map';
import { FileSaverService } from './filesaver.provider';

@@ -6,0 +5,0 @@ export declare class FileSaverDirective {

import { Http, RequestOptions, Headers, URLSearchParams, ResponseContentType } from '@angular/http';
import { Directive, ElementRef, Input, HostListener } from '@angular/core';
import 'rxjs/add/operator/map';
import { Observable } from 'rxjs/Observable';
import { FileSaverService } from './filesaver.provider';

@@ -37,22 +37,22 @@ var FileSaverDirective = (function () {

};
FileSaverDirective.decorators = [
{ type: Directive, args: [{ selector: '[fileSaver]' },] },
];
/** @nocollapse */
FileSaverDirective.ctorParameters = function () { return [
{ type: ElementRef, },
{ type: FileSaverService, },
{ type: Http, },
]; };
FileSaverDirective.propDecorators = {
"http": [{ type: Input },],
"query": [{ type: Input },],
"header": [{ type: Input },],
"url": [{ type: Input },],
"fileName": [{ type: Input },],
"onclick": [{ type: HostListener, args: ['click',] },],
};
return FileSaverDirective;
}());
export { FileSaverDirective };
FileSaverDirective.decorators = [
{ type: Directive, args: [{ selector: '[fileSaver]' },] },
];
/** @nocollapse */
FileSaverDirective.ctorParameters = function () { return [
{ type: ElementRef, },
{ type: FileSaverService, },
{ type: Http, },
]; };
FileSaverDirective.propDecorators = {
'http': [{ type: Input },],
'query': [{ type: Input },],
'header': [{ type: Input },],
'url': [{ type: Input },],
'fileName': [{ type: Input },],
'onclick': [{ type: HostListener, args: ['click',] },],
};
//# sourceMappingURL=filesaver.directive.js.map

@@ -1,1 +0,1 @@

[{"__symbolic":"module","version":3,"metadata":{"FileSaverDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive"},"arguments":[{"selector":"[fileSaver]"}]}],"members":{"http":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"query":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"header":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"url":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"fileName":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"},{"__symbolic":"reference","module":"./filesaver.provider","name":"FileSaverService"},{"__symbolic":"reference","module":"@angular/http","name":"Http"}]}],"onclick":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener"},"arguments":["click"]}]}]}}}},{"__symbolic":"module","version":1,"metadata":{"FileSaverDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive"},"arguments":[{"selector":"[fileSaver]"}]}],"members":{"http":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"query":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"header":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"url":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"fileName":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"},{"__symbolic":"reference","module":"./filesaver.provider","name":"FileSaverService"},{"__symbolic":"reference","module":"@angular/http","name":"Http"}]}],"onclick":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener"},"arguments":["click"]}]}]}}}}]
[{"__symbolic":"module","version":4,"metadata":{"FileSaverDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive"},"arguments":[{"selector":"[fileSaver]"}]}],"members":{"http":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"query":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"header":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"url":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"fileName":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"},{"__symbolic":"reference","module":"./filesaver.provider","name":"FileSaverService"},{"__symbolic":"reference","module":"@angular/http","name":"Http"}]}],"onclick":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener"},"arguments":["click"]}]}]}}}}]

@@ -29,13 +29,13 @@ import { Injectable } from '@angular/core';

FileSaverService.prototype.saveText = function (txt, fileName) {
var blob = new Blob([txt], fileName);
var blob = new Blob([txt]);
this.save(blob, fileName);
};
FileSaverService.decorators = [
{ type: Injectable },
];
/** @nocollapse */
FileSaverService.ctorParameters = function () { return []; };
return FileSaverService;
}());
export { FileSaverService };
FileSaverService.decorators = [
{ type: Injectable },
];
/** @nocollapse */
FileSaverService.ctorParameters = function () { return []; };
//# sourceMappingURL=filesaver.provider.js.map

@@ -1,1 +0,1 @@

[{"__symbolic":"module","version":3,"metadata":{"FileSaverService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor"}],"genType":[{"__symbolic":"method"}],"save":[{"__symbolic":"method"}],"saveText":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"FileSaverService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor"}],"genType":[{"__symbolic":"method"}],"save":[{"__symbolic":"method"}],"saveText":[{"__symbolic":"method"}]}}}}]
[{"__symbolic":"module","version":4,"metadata":{"FileSaverService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor"}],"genType":[{"__symbolic":"method"}],"save":[{"__symbolic":"method"}],"saveText":[{"__symbolic":"method"}]}}}}]
export * from './components/filesaver.provider';
export * from './components/filesaver.directive';
export * from './components/filesaver.module';
export declare class FileSaverModule {
}

@@ -0,4 +1,23 @@

import { NgModule } from '@angular/core';
import { HttpModule } from "@angular/http";
import { FileSaverDirective } from './components/filesaver.directive';
import { FileSaverService } from './components/filesaver.provider';
export * from './components/filesaver.provider';
export * from './components/filesaver.directive';
export * from './components/filesaver.module';
var FileSaverModule = (function () {
function FileSaverModule() {
}
FileSaverModule.decorators = [
{ type: NgModule, args: [{
imports: [HttpModule],
exports: [FileSaverDirective],
declarations: [FileSaverDirective],
providers: [FileSaverService]
},] },
];
/** @nocollapse */
FileSaverModule.ctorParameters = function () { return []; };
return FileSaverModule;
}());
export { FileSaverModule };
//# sourceMappingURL=index.js.map

@@ -1,1 +0,1 @@

[{"__symbolic":"module","version":3,"metadata":{},"exports":[{"from":"./components/filesaver.provider"},{"from":"./components/filesaver.directive"},{"from":"./components/filesaver.module"}]},{"__symbolic":"module","version":1,"metadata":{},"exports":[{"from":"./components/filesaver.provider"},{"from":"./components/filesaver.directive"},{"from":"./components/filesaver.module"}]}]
[{"__symbolic":"module","version":4,"metadata":{"FileSaverModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/http","name":"HttpModule"}],"exports":[{"__symbolic":"reference","module":"./components/filesaver.directive","name":"FileSaverDirective"}],"declarations":[{"__symbolic":"reference","module":"./components/filesaver.directive","name":"FileSaverDirective"}],"providers":[{"__symbolic":"reference","module":"./components/filesaver.provider","name":"FileSaverService"}]}]}]}},"exports":[{"from":"./components/filesaver.provider"},{"from":"./components/filesaver.directive"}]}]
{
"main": "index.js",
"version": "0.0.2",
"description": "Simple file save with FileSaver.js",
"typings": "index.d.ts",
"keywords": [
"angular",
"FileSaver",
"FileSaver.js",
"ngx-filesaver",
"angular2",
"ng2",
"angular2-filesaver",
"ng2-filesaver"
],
"author": {
"name": "cipchk",
"email": "cipchk"
},
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/cipchk/ngx-filesaver.git"
},
"name": "ngx-filesaver",
"dependencies": {
"file-saver": "^1.3.3"
},
"peerDependencies": {
"file-saver": "^1.3.3"
},
"_id": "ngx-filesaver@",
"devDependencies": {}
"main": "index.js",
"version": "1.0.0",
"description": "Simple file save with FileSaver.js",
"typings": "index.d.ts",
"keywords": [
"angular",
"FileSaver",
"FileSaver.js",
"ngx-filesaver",
"angular2",
"ng2",
"angular2-filesaver",
"ng2-filesaver"
],
"author": {
"name": "cipchk",
"email": "cipchk"
},
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/cipchk/ngx-filesaver.git"
},
"name": "ngx-filesaver",
"peerDependencies": {
"file-saver": "^1.3.3"
},
"_id": "ngx-filesaver@"
}

@@ -0,0 +0,0 @@ # ngx-filesaver

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

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