formdata-node
Advanced tools
Comparing version 2.1.0 to 2.1.1
@@ -304,3 +304,3 @@ "use strict"; | ||
} else if ((0, _isBlob.default)(value)) { | ||
filename = (0, _path.basename)(value.name || filename); | ||
filename = (0, _path.basename)(value.name || filename || value.constructor.name === "Blob" ? "blob" : String(value.name)); | ||
} else if ((0, _isStream.default)(value) && (value.path || filename)) { | ||
@@ -307,0 +307,0 @@ // Readable stream which created from fs.createReadStream |
@@ -10,2 +10,5 @@ "use strict"; | ||
/** | ||
* @api private | ||
*/ | ||
const isReadable = val => val instanceof _stream.Readable; | ||
@@ -12,0 +15,0 @@ |
@@ -10,2 +10,5 @@ "use strict"; | ||
/** | ||
* @api private | ||
*/ | ||
const isReadStream = value => value instanceof _fs.ReadStream; | ||
@@ -12,0 +15,0 @@ |
{ | ||
"name": "formdata-node", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"description": "FormData implementation for Node.js. Built over Readable stream and async generators.", | ||
@@ -41,6 +41,4 @@ "repository": "octet-stream/form-data", | ||
"files": [ | ||
"test/**/*.js" | ||
], | ||
"helpers": [ | ||
"test/__helper__/*.js" | ||
"test/**/*.js", | ||
"!test/__helper__/*.js" | ||
] | ||
@@ -58,23 +56,23 @@ }, | ||
"devDependencies": { | ||
"@babel/cli": "7.7.7", | ||
"@babel/core": "7.7.7", | ||
"@babel/plugin-proposal-class-properties": "7.7.4", | ||
"@babel/plugin-proposal-decorators": "7.7.4", | ||
"@babel/plugin-transform-modules-commonjs": "7.7.5", | ||
"@babel/plugin-transform-runtime": "7.7.6", | ||
"@babel/cli": "7.8.4", | ||
"@babel/core": "7.8.4", | ||
"@babel/plugin-proposal-class-properties": "7.8.3", | ||
"@babel/plugin-proposal-decorators": "7.8.3", | ||
"@babel/plugin-transform-modules-commonjs": "7.8.3", | ||
"@babel/plugin-transform-runtime": "7.8.3", | ||
"@octetstream/eslint-config": "4.0.0", | ||
"@types/node": "13.1.4", | ||
"ava": "2.4.0", | ||
"@types/node": "13.7.1", | ||
"ava": "3.3.0", | ||
"babel-plugin-add-module-exports": "1.0.2", | ||
"codecov": "3.6.1", | ||
"codecov": "3.6.5", | ||
"eslint": "6.8.0", | ||
"eslint-plugin-ava": "9.0.0", | ||
"eslint-plugin-ava": "10.0.1", | ||
"fetch-blob": "1.0.5", | ||
"husky": "3.1.0", | ||
"lint-staged": "9.5.0", | ||
"husky": "4.2.1", | ||
"lint-staged": "10.0.7", | ||
"lodash.isplainobject": "4.0.6", | ||
"nyc": "15.0.0", | ||
"proxyquire": "2.1.3", | ||
"rimraf": "3.0.0", | ||
"sinon": "8.0.2", | ||
"rimraf": "3.0.2", | ||
"sinon": "8.1.1", | ||
"supertest": "4.0.2", | ||
@@ -86,6 +84,6 @@ "then-busboy": "4.4.0", | ||
"dependencies": { | ||
"@babel/runtime": "7.7.7", | ||
"mime-types": "2.1.25", | ||
"nanoid": "2.1.8" | ||
"@babel/runtime": "7.8.4", | ||
"mime-types": "2.1.26", | ||
"nanoid": "2.1.11" | ||
} | ||
} |
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
68217
1853
+ Added@babel/runtime@7.8.4(transitive)
+ Addedmime-db@1.43.0(transitive)
+ Addedmime-types@2.1.26(transitive)
+ Addednanoid@2.1.11(transitive)
- Removed@babel/runtime@7.7.7(transitive)
- Removedmime-db@1.42.0(transitive)
- Removedmime-types@2.1.25(transitive)
- Removednanoid@2.1.8(transitive)
Updated@babel/runtime@7.8.4
Updatedmime-types@2.1.26
Updatednanoid@2.1.11