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

formstream

Package Overview
Dependencies
Maintainers
2
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

formstream - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

9

History.md
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 @@ ==================

8

lib/formstream.js

@@ -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"
}
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