Skip to content

Commit 3cffd53

Browse files
authored
Merge pull request #88 from ahayes91/update-form-data
fix: update patch version of form-data to address new critical Snyk vulnerability
2 parents a1252dd + 7c424d5 commit 3cffd53

File tree

2 files changed

+1
-15
lines changed

2 files changed

+1
-15
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"combined-stream": "~1.0.6",
3434
"extend": "~3.0.2",
3535
"forever-agent": "~0.6.1",
36-
"form-data": "~4.0.0",
36+
"form-data": "~4.0.4",
3737
"http-signature": "~1.4.0",
3838
"is-typedarray": "~1.0.0",
3939
"isstream": "~0.1.2",

tests/test-form-data-error.js

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -64,20 +64,6 @@ tape('omit content-length header if the value is set to NaN', function (t) {
6464
})
6565
})
6666

67-
// TODO: remove this test after [email protected] starts stringifying null values
68-
tape('form-data should throw on null value', function (t) {
69-
t.throws(function () {
70-
request({
71-
method: 'POST',
72-
url: s.url,
73-
formData: {
74-
key: null
75-
}
76-
})
77-
}, TypeError)
78-
t.end()
79-
})
80-
8167
tape('cleanup', function (t) {
8268
s.close(function () {
8369
t.end()

0 commit comments

Comments
 (0)