@lifeomic/axios-fetch
Advanced tools
Comparing version 2.0.4-pr-91-1337575714-1634130493.0 to 2.0.4
{ | ||
"name": "@lifeomic/axios-fetch", | ||
"version": "2.0.4-pr-91-1337575714-1634130493.0", | ||
"version": "2.0.4", | ||
"description": "A WebAPI Fetch implementation backed by an Axios client", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -16,3 +16,3 @@ "use strict"; | ||
const rawHeaders = init.headers || {}; | ||
const lowerCasedHeaders = Object.keys(rawHeaders).filter(key => rawHeaders[key]) | ||
const lowerCasedHeaders = Object.keys(rawHeaders).filter(key => key && rawHeaders[key]) | ||
.reduce((acc, key) => { | ||
@@ -60,2 +60,2 @@ acc[key.toLowerCase()] = rawHeaders[key]; | ||
exports.buildAxiosFetch = buildAxiosFetch; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7QUFBQSwyQ0FBK0Q7QUFDL0QsMERBQWlDO0FBY2pDOztHQUVHO0FBQ0gsS0FBSyxVQUFVLFVBQVUsQ0FDdkIsS0FBb0I7QUFDcEIsZ0VBQWdFO0FBQ2hFLFdBQThCLEVBQzlCLEtBQWMsRUFDZCxPQUFrQixFQUFFO0lBRXBCLE1BQU0sVUFBVSxHQUEyQixJQUFJLENBQUMsT0FBTyxJQUFJLEVBQUUsQ0FBQztJQUM5RCxNQUFNLGlCQUFpQixHQUFHLE1BQU0sQ0FBQyxJQUFJLENBQUMsVUFBVSxDQUFDLENBQUMsTUFBTSxDQUFDLEdBQUcsQ0FBQyxFQUFFLENBQUMsVUFBVSxDQUFDLEdBQUcsQ0FBQyxDQUFDO1NBQzdFLE1BQU0sQ0FDTCxDQUFDLEdBQUcsRUFBRSxHQUFHLEVBQUUsRUFBRTtRQUNYLEdBQUcsQ0FBQyxHQUF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AnYXJyYXlidWZmZXInXG4gIH07XG5cbiAgY29uc3QgY29uZmlnID0gdHJhbnNmb3JtZXIgPyB0cmFuc2Zvcm1lcihyYXdDb25maWcsIGlucHV0LCBpbml0KSA6IHJhd0NvbmZpZztcblxuICBsZXQgcmVzdWx0O1xuICB0cnkge1xuICAgIHJlc3VsdCA9IGF3YWl0IGF4aW9zLnJlcXVlc3QoY29uZmlnKTtcbiAgfSBjYXRjaCAoZXJyOiBhbnkpIHtcbiAgICBpZiAoZXJyLnJlc3BvbnNlKSB7XG4gICAgICByZXN1bHQgPSBlcnIucmVzcG9uc2U7XG4gICAgfSBlbHNlIHtcbiAgICAgIHRocm93IGVycjtcbiAgICB9XG4gIH1cblxuICBjb25zdCBmZXRjaEhlYWRlcnMgPSBuZXcgRmV0Y2hIZWFkZXJzKHJlc3VsdC5oZWFkZXJzKTtcblxuICByZXR1cm4gbmV3IFJlc3BvbnNlKHJlc3VsdC5kYXRhLCB7XG4gICAgc3RhdHVzOiByZXN1bHQuc3RhdHVzLFxuICAgIHN0YXR1c1RleHQ6IHJlc3VsdC5zdGF0dXNUZXh0LFxuICAgIGhlYWRlcnM6IGZldGNoSGVhZGVyc1xuICB9KTtcbn1cblxuZXhwb3J0IGZ1bmN0aW9uIGJ1aWxkQXhpb3NGZXRjaCAoYXhpb3M6IEF4aW9zSW5zdGFuY2UsIHRyYW5zZm9ybWVyPzogQXhpb3NUcmFuc2Zvcm1lcik6IEF4aW9zRmV0Y2gge1xuICByZXR1cm4gYXhpb3NGZXRjaC5iaW5kKHVuZGVmaW5lZCwgYXhpb3MsIHRyYW5zZm9ybWVyKTtcbn1cbiJdfQ== |
@@ -27,3 +27,3 @@ import { Response, Headers as FetchHeaders } from 'node-fetch'; | ||
const rawHeaders: Record<string, string> = init.headers || {}; | ||
const lowerCasedHeaders = Object.keys(rawHeaders).filter(key => rawHeaders[key]) | ||
const lowerCasedHeaders = Object.keys(rawHeaders).filter(key => key && rawHeaders[key]) | ||
.reduce<Record<string, string>>( | ||
@@ -30,0 +30,0 @@ (acc, key) => { |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
18710
1