Skip to content

Commit 88f973f

Browse files
authoredMar 4, 2020
Do not ignore decompress-response when bundling (#1105)
1 parent cf4fdad commit 88f973f

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed
 

‎package.json

-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@
9494
"types": "dist/source",
9595
"sideEffects": false,
9696
"browser": {
97-
"decompress-response": false,
9897
"electron": false
9998
},
10099
"ava": {

1 commit comments

Comments
 (1)

qtisan commented on Mar 9, 2020

@qtisan

without the decompress: false, it would catch an error:

get-response.js:15 Uncaught (in promise) TypeError: decompressResponse is not a function
    at Object.module.exports../node_modules/got/dist/source/get-response.js.exports.default (get-response.js:15)
    at ClientRequest.handleResponse (request-as-event-emitter.js:121)
    at Object.onceWrapper (events.js:300)
    at ClientRequest.emit (events.js:215)
    at ClientRequest.origin.emit (index.js:39)
    at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:583)
    at HTTPParser.parserOnHeadersComplete (_http_common.js:115)
    at TLSSocket.socketOnData (_http_client.js:456)
    at TLSSocket.emit (events.js:210)
    at addChunk (_stream_readable.js:308)
Please sign in to comment.