node-superfetch
Advanced tools
Comparing version 0.3.1 to 0.3.2
const FormData = require('form-data'); | ||
const arrayBufferToBuffer = require('arraybuffer-to-buffer'); | ||
const { URL } = require('url'); | ||
@@ -28,3 +29,6 @@ const { METHODS } = require('http'); | ||
let raw = null; | ||
if (!this.noResultData) raw = await response.arrayBuffer(); | ||
if (!this.noResultData) { | ||
raw = await response.arrayBuffer(); | ||
raw = arrayBufferToBuffer(raw); | ||
} | ||
const headers = {}; | ||
@@ -31,0 +35,0 @@ for (const [header, value] of response.headers.entries()) headers[header] = value; |
{ | ||
"name": "node-superfetch", | ||
"version": "0.3.1", | ||
"version": "0.3.2", | ||
"description": "A wrapper for Node.js' fetch API that makes it appear like superagent.", | ||
@@ -38,2 +38,3 @@ "main": "index.js", | ||
"@types/node": "^18.7.18", | ||
"arraybuffer-to-buffer": "^0.0.7", | ||
"eslint": "^8.23.1", | ||
@@ -40,0 +41,0 @@ "eslint-config-amber": "^2.0.4", |
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
10532
212
6