formstream
Advanced tools
Comparing version 1.1.0 to 1.1.1
1.1.1 / 2021-04-28 | ||
================== | ||
**fixes** | ||
* [[`c96ba5b`](http://github.com/node-modules/formstream/commit/c96ba5bace0e96bf39770769e43d9de4271971d8)] - fix: upgrade mime to fix wrong mime type (#19) (shaozj <<shaozj@users.noreply.github.com>>) | ||
**others** | ||
* [[`21918e5`](http://github.com/node-modules/formstream/commit/21918e5fc37a4cea5aae82659d39587f099e805b)] - chore: upgrade devDeps express to latest version (#15) (fengmk2 <<fengmk2@gmail.com>>) | ||
1.1.0 / 2016-12-19 | ||
@@ -3,0 +12,0 @@ ================== |
@@ -113,3 +113,3 @@ /** | ||
FormStream.prototype.file = function (name, filepath, filename, filesize) { | ||
var mimeType = mime.lookup(filepath); | ||
var mimeType = mime.getType(filepath); | ||
@@ -149,5 +149,5 @@ if (typeof filename === 'number' && !filesize) { | ||
size = mimeType; | ||
mimeType = mime.lookup(filename); | ||
mimeType = mime.getType(filename); | ||
} else if (!mimeType) { | ||
mimeType = mime.lookup(filename); | ||
mimeType = mime.getType(filename); | ||
} | ||
@@ -185,3 +185,3 @@ | ||
if (filename && !mimeType) { | ||
mimeType = mime.lookup(filename); | ||
mimeType = mime.getType(filename); | ||
} | ||
@@ -188,0 +188,0 @@ |
{ | ||
"name": "formstream", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "A multipart/form-data encoded stream, helper for file upload.", | ||
@@ -31,3 +31,3 @@ "main": "lib/formstream.js", | ||
"destroy": "^1.0.4", | ||
"mime": "^1.3.4", | ||
"mime": "^2.5.2", | ||
"pause-stream": "~0.0.11" | ||
@@ -38,5 +38,5 @@ }, | ||
"connect-multiparty": "1", | ||
"express": "4", | ||
"express": "^4.16.4", | ||
"istanbul": "*", | ||
"mocha": "*", | ||
"mocha": "3", | ||
"pedding": "1", | ||
@@ -46,4 +46,4 @@ "should": "4", | ||
}, | ||
"author": "fengmk2 <fengmk2@gmail.com> (http://fengmk2.github.com)", | ||
"author": "fengmk2 <fengmk2@gmail.com> (https://fengmk2.com)", | ||
"license": "MIT" | ||
} |
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
15885
+ Addedmime@2.6.0(transitive)
- Removedmime@1.6.0(transitive)
Updatedmime@^2.5.2