node-superfetch
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -81,3 +81,3 @@ const fetch = require('node-fetch'); | ||
if (typeof headersOrName === 'object' && !value) this.headers = { ...this.headers, ...headersOrName }; | ||
else if (typeof headerOrName === 'string' && value) this.headers[headersOrName] = value; | ||
else if (typeof headersOrName === 'string' && value) this.headers[headersOrName] = value; | ||
else throw new TypeError('The "headers" parameter must be either an object or a header field.'); | ||
@@ -84,0 +84,0 @@ return this; |
{ | ||
"name": "node-superfetch", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "A wrapper for node-fetch that makes it appear like superagent.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
6888