@uxland/fetch-client
Advanced tools
Comparing version 1.0.0-alpha.17 to 1.0.0-alpha.18
@@ -6,2 +6,13 @@ # Change Log | ||
# [1.0.0-alpha.18](https://github.com/uxland/uxland/compare/@uxland/fetch-client@1.0.0-alpha.17...@uxland/fetch-client@1.0.0-alpha.18) (2020-12-18) | ||
### Bug Fixes | ||
* replace build:cjs script to replace optional-chaining ([b3a8b8e](https://github.com/uxland/uxland/commit/b3a8b8e06843d92ee7b11d5c021758a4ba016820)) | ||
# [1.0.0-alpha.17](https://github.com/uxland/uxland/compare/@uxland/fetch-client@1.0.0-alpha.16...@uxland/fetch-client@1.0.0-alpha.17) (2020-10-15) | ||
@@ -8,0 +19,0 @@ |
@@ -1,2 +0,2 @@ | ||
// Fetch Client v1.0.0-alpha.16 | ||
// Fetch Client v1.0.0-alpha.17 | ||
// https://github.com/uxland/uxland/tree/master/packages/fetch-client#readme | ||
@@ -3,0 +3,0 @@ // (c) 2020-2020 UXLand |
@@ -99,3 +99,3 @@ "use strict"; | ||
/* istanbul ignore next */ | ||
exports.getHeaders = () => configuration?.headers; | ||
exports.getHeaders = () => configuration === null || configuration === void 0 ? void 0 : configuration.headers; | ||
/** | ||
@@ -117,3 +117,3 @@ * Removes provided header by ID | ||
exports.removeHeader = (key) => { | ||
if (configuration?.headers[key]) | ||
if (configuration === null || configuration === void 0 ? void 0 : configuration.headers[key]) | ||
delete configuration.headers[key]; | ||
@@ -120,0 +120,0 @@ }; |
@@ -7,4 +7,5 @@ "use strict"; | ||
const isResponseContentTypeJSON = (response) => { | ||
const contentType = response.headers?.get(HEADER_CONTENT_TYPE); | ||
return contentType?.indexOf(CONTENT_TYPE_JSON) !== -1; | ||
var _a; | ||
const contentType = (_a = response.headers) === null || _a === void 0 ? void 0 : _a.get(HEADER_CONTENT_TYPE); | ||
return (contentType === null || contentType === void 0 ? void 0 : contentType.indexOf(CONTENT_TYPE_JSON)) !== -1; | ||
}; | ||
@@ -11,0 +12,0 @@ exports.handleResponse = async (response, handlers = []) => isResponseContentTypeJSON(response) |
{ | ||
"name": "@uxland/fetch-client", | ||
"version": "1.0.0-alpha.17", | ||
"version": "1.0.0-alpha.18", | ||
"description": "Fetch Client", | ||
@@ -28,3 +28,3 @@ "author": "UXLand <dev@uxland.es>", | ||
"build:es": "tsc -p tsconfig.json --outDir es --module esnext --target es2018 --noEmit false", | ||
"build:cjs": "tsc -p tsconfig.json --outDir lib --noEmit false --declaration --removeComments false", | ||
"build:cjs": "tsc -p tsconfig.json --outDir lib --target es2018 --noEmit false --declaration --removeComments false", | ||
"build:umd": "cross-env NODE_ENV=development rollup -c -o dist/index.js", | ||
@@ -74,6 +74,6 @@ "build:umd:min": "cross-env NODE_ENV=production rollup -c -o dist/index.min.js", | ||
"dependencies": { | ||
"@uxland/event-aggregator": "^1.0.0-alpha.15", | ||
"@uxland/event-aggregator": "^1.0.0-alpha.16", | ||
"ramda": "^0.27.1" | ||
}, | ||
"gitHead": "ef34536fe8292391766bfded70b4b9935003f4c8" | ||
"gitHead": "3a7f64cb310e88a7ddfe0e30b67807d746c27dd8" | ||
} |
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
45371
1011