@vonage/vetch
Advanced tools
Comparing version 1.5.0 to 1.5.1
export declare enum ResponseTypes { | ||
json = "json" | ||
json = "json", | ||
stream = "stream", | ||
text = "text" | ||
} |
@@ -7,3 +7,5 @@ "use strict"; | ||
ResponseTypes["json"] = "json"; | ||
ResponseTypes["stream"] = "stream"; | ||
ResponseTypes["text"] = "text"; | ||
})(ResponseTypes || (exports.ResponseTypes = ResponseTypes = {})); | ||
//# sourceMappingURL=responseTypes.js.map |
@@ -57,2 +57,4 @@ "use strict"; | ||
switch (opts.responseType) { | ||
case 'stream': | ||
return res.buffer(); | ||
case 'json': { | ||
@@ -59,0 +61,0 @@ let data = await res.text(); |
{ | ||
"name": "@vonage/vetch", | ||
"version": "1.5.0", | ||
"version": "1.5.1", | ||
"description": "Vonage package for server side fetch.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/vonage/vonage-node-sdk/tree/master/packages/vetch#readme", |
Sorry, the diff of this file is not supported yet
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
21146
316