ngx-filesaver
Advanced tools
Comparing version 0.0.1 to 0.0.2
{ | ||
"name": "ngx-filesaver", | ||
"version": "0.0.1", | ||
"main": "index.js", | ||
"version": "0.0.2", | ||
"description": "Simple file save with FileSaver.js", | ||
"typings": "index.d.ts", | ||
"description": "Simple file save with FileSaver.js", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/cipchk/ngx-filesaver.git" | ||
}, | ||
"keywords": [ | ||
@@ -21,27 +16,12 @@ "angular", | ||
], | ||
"author": "cipchk <cipchk>", | ||
"author": { | ||
"name": "cipchk", | ||
"email": "cipchk" | ||
}, | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/cipchk/ngx-filesaver/issues" | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/cipchk/ngx-filesaver.git" | ||
}, | ||
"homepage": "https://github.com/cipchk/ngx-filesaver#readme", | ||
"scripts": { | ||
"lite-server": "lite-server -c demo/bs-config.json", | ||
"demo.serve": "run-s build link demo.build lite-server", | ||
"demo.gh-pages": "run-s build demo.build demo.deploy", | ||
"demo.build": "ng build -prod", | ||
"demo.deploy": "gh-pages -d demo/dist", | ||
"link": "ngm link -p src --here", | ||
"lint": "exit 0", | ||
"disable-lint": "tslint \"**/*.ts\" -c tslint.json --fix --type-check -t prose -e \"node_modules/**\" -e \"dist/**\" -e \"temp/**\" -e \"scripts/docs/**\"", | ||
"flow.changelog": "conventional-changelog -i CHANGELOG.md -s -p angular", | ||
"flow.github-release": "conventional-github-releaser -p angular", | ||
"build": "ngm build -p src --clean", | ||
"build.watch": "ngm build -p src --watch --skip-bundles", | ||
"start": "ng serve", | ||
"pretest": "run-s lint build link", | ||
"test": "ng test -sr", | ||
"test-coverage": "ng test -sr -cc", | ||
"version": "npm run flow.changelog && git add -A" | ||
}, | ||
"name": "ngx-filesaver", | ||
"dependencies": { | ||
@@ -51,45 +31,6 @@ "file-saver": "^1.3.3" | ||
"peerDependencies": { | ||
"@angular/core": "^4.0.1", | ||
"@angular/common": "^4.0.1", | ||
"@angular/http": "^4.0.1" | ||
"file-saver": "^1.3.3" | ||
}, | ||
"devDependencies": { | ||
"@angular/cli": "1.0.0", | ||
"@angular/common": "4.0.1", | ||
"@angular/compiler": "4.0.1", | ||
"@angular/compiler-cli": "4.0.1", | ||
"@angular/core": "4.0.1", | ||
"@angular/forms": "4.0.1", | ||
"@angular/http": "4.0.1", | ||
"@angular/language-service": "4.0.1", | ||
"@angular/platform-browser": "4.0.1", | ||
"@angular/platform-browser-dynamic": "4.0.1", | ||
"@angular/router": "4.0.1", | ||
"@angular/tsc-wrapped": "4.0.1", | ||
"@types/file-saver": "0.0.0", | ||
"@types/jasmine": "2.5.47", | ||
"@types/node": "~6.0.60", | ||
"angular2-markdown": "^1.5.1", | ||
"bootstrap": "^3.3.7", | ||
"classlist-polyfill": "^1.0.3", | ||
"codelyzer": "~2.0.0", | ||
"jasmine-core": "~2.5.2", | ||
"jasmine-spec-reporter": "~3.2.0", | ||
"karma": "~1.4.1", | ||
"karma-chrome-launcher": "~2.0.0", | ||
"karma-cli": "~1.0.1", | ||
"karma-coverage-istanbul-reporter": "^0.2.0", | ||
"karma-jasmine": "~1.1.0", | ||
"karma-jasmine-html-reporter": "^0.2.2", | ||
"lite-server": "^2.3.0", | ||
"ng2-bootstrap": "^1.6.3", | ||
"ngm-cli": "0.5.0", | ||
"npm-run-all": "4.0.2", | ||
"protractor": "~5.1.1", | ||
"ts-helpers": "^1.1.2", | ||
"ts-node": "~3.0.2", | ||
"tslint": "^4.5.1", | ||
"typescript": "~2.2.2", | ||
"zone.js": "^0.8.5" | ||
} | ||
"_id": "ngx-filesaver@", | ||
"devDependencies": {} | ||
} |
@@ -5,2 +5,3 @@ # ngx-filesaver | ||
[![NPM version](https://img.shields.io/npm/v/ngx-filesaver.svg)](https://www.npmjs.com/package/ngx-filesaver) | ||
[![Build Status](https://travis-ci.org/cipchk/ngx-filesaver.svg?branch=master)](https://travis-ci.org/cipchk/ngx-filesaver) | ||
@@ -92,1 +93,9 @@ | ||
``` | ||
#### 关于文件名 | ||
文件名的获取按以下优先级:fileName =》 response.headers.get('filename') =》 response.headers.get('x-filename')。 | ||
如果你请求的是一个CORS跨域地址,需要注意设置 `Access-Control-Allow-Headers: filename`,以免无法获取。 | ||
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
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
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
2
0
620
100
74826
27
1
3