remove string-to-stream dep (getStream isn't called anywhere) (#4619)

* remove string-to-stream dep (getStream isn't called anywhere)

I don’t see ‘getStream’ being called anywhere in the code, this is the
only method that uses string-to-stream

* trigger status check
This commit is contained in:
Jennifer Shehane
2019-07-01 22:17:15 +06:30
committed by Zach Bloomquist
parent 2823783ff7
commit c13e94a520
2 changed files with 0 additions and 9 deletions

View File

@@ -1,6 +1,5 @@
_ = require("lodash")
mime = require("mime")
str = require("string-to-stream")
Promise = require("bluebird")
fixture = require("../fixture")
@@ -79,13 +78,6 @@ module.exports = {
.then (bytes) ->
{data: bytes, encoding: encoding}
getStream: (resp) ->
if fixturesRe.test(resp)
@_get(resp).then (contents) ->
str(contents)
else
str(resp)
getResponse: (resp, config) ->
if fixturesRe.test(resp)
@_get(resp, config)

View File

@@ -179,7 +179,6 @@
"shell-env": "3.0.0",
"signal-exit": "3.0.2",
"sinon": "5.1.1",
"string-to-stream": "1.1.1",
"strip-ansi": "3.0.1",
"supports-color": "6.1.0",
"syntax-error": "1.4.0",