mappersmith
Advanced tools
Comparing version 2.17.0 to 2.18.0
@@ -89,3 +89,15 @@ 'use strict'; | ||
clearTimeout(timer); | ||
fetchResponse.text().then(function (data) { | ||
var responseData = void 0; | ||
if (_this.request.isBinary()) { | ||
if (typeof fetchResponse.buffer === 'function') { | ||
responseData = fetchResponse.buffer(); | ||
} else { | ||
responseData = fetchResponse.arrayBuffer(); | ||
} | ||
} else { | ||
responseData = fetchResponse.text(); | ||
} | ||
responseData.then(function (data) { | ||
_this.dispatchResponse(_this.createResponse(fetchResponse, data)); | ||
@@ -92,0 +104,0 @@ }); |
@@ -18,3 +18,3 @@ 'use strict'; | ||
/* global VERSION */ | ||
var version = exports.version = '2.17.0'; | ||
var version = exports.version = '2.18.0'; | ||
@@ -21,0 +21,0 @@ var configs = exports.configs = { |
{ | ||
"name": "mappersmith", | ||
"version": "2.17.0", | ||
"version": "2.18.0", | ||
"description": "It is a lightweight rest client for node.js and the browser", | ||
@@ -5,0 +5,0 @@ "author": "Tulio Ornelas <ornelas.tulio@gmail.com>", |
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
104559
2053