contentful 8.5.4 → 8.5.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/contentful.browser.js +17538 -204
- package/dist/contentful.browser.js.map +1 -1
- package/dist/contentful.browser.min.js +9 -1
- package/dist/contentful.legacy.js +17538 -204
- package/dist/contentful.legacy.js.map +1 -1
- package/dist/contentful.legacy.min.js +9 -1
- package/dist/contentful.node.js +17533 -199
- package/dist/contentful.node.js.map +1 -1
- package/dist/contentful.node.min.js +9 -1
- package/dist/es-modules/contentful.js +1 -5
- package/package.json +5 -1
|
@@ -72,7 +72,7 @@ function createClient(params) {
|
|
|
72
72
|
|
|
73
73
|
const config = _objectSpread(_objectSpread({}, defaultConfig), params);
|
|
74
74
|
|
|
75
|
-
const userAgentHeader = (0, _contentfulSdkCore.getUserAgentHeader)(`contentful.js/${"8.5.
|
|
75
|
+
const userAgentHeader = (0, _contentfulSdkCore.getUserAgentHeader)(`contentful.js/${"8.5.8"}`, config.application, config.integration);
|
|
76
76
|
config.headers = _objectSpread(_objectSpread({}, config.headers), {}, {
|
|
77
77
|
'Content-Type': 'application/vnd.contentful.delivery.v1+json',
|
|
78
78
|
'X-Contentful-User-Agent': userAgentHeader
|
|
@@ -103,10 +103,6 @@ function obscureAuthTokenInResponse(http) {
|
|
|
103
103
|
const token = error.response.config.headers.Authorization;
|
|
104
104
|
error.response.config.headers.Authorization = error.response.config.headers.Authorization.replace(token, `Bearer...${token.substr(-5)}`);
|
|
105
105
|
|
|
106
|
-
if (error.response.request._headers && error.response.request._headers.authorization) {
|
|
107
|
-
error.response.request._headers.authorization = error.response.request._headers.authorization.replace(token, `Bearer...${token.substr(-5)}`);
|
|
108
|
-
}
|
|
109
|
-
|
|
110
106
|
if (error.response.request._header) {
|
|
111
107
|
error.response.request._header = error.response.request._header.replace(token, `Bearer...${token.substr(-5)}`);
|
|
112
108
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "contentful",
|
|
3
3
|
"description": "Client for Contentful's Content Delivery API",
|
|
4
|
-
"version": "8.5.
|
|
4
|
+
"version": "8.5.8",
|
|
5
5
|
"homepage": "https://www.contentful.com/developers/documentation/content-delivery-api/",
|
|
6
6
|
"main": "./dist/contentful.node.js",
|
|
7
7
|
"module": "./dist/es-modules/contentful.js",
|
|
@@ -155,6 +155,10 @@
|
|
|
155
155
|
}
|
|
156
156
|
],
|
|
157
157
|
"release": {
|
|
158
|
+
"branches": [
|
|
159
|
+
"master",
|
|
160
|
+
"next"
|
|
161
|
+
],
|
|
158
162
|
"plugins": [
|
|
159
163
|
[
|
|
160
164
|
"@semantic-release/commit-analyzer",
|