contentful-management 11.39.1 → 11.39.2
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-management.browser.js +6 -2
- package/dist/contentful-management.browser.js.map +1 -1
- package/dist/contentful-management.browser.min.js +1 -1
- package/dist/contentful-management.node.js +6 -2
- package/dist/contentful-management.node.js.map +1 -1
- package/dist/contentful-management.node.min.js +1 -1
- package/dist/es-modules/adapters/REST/rest-adapter.js +5 -1
- package/dist/es-modules/contentful-management.js +1 -1
- package/package.json +1 -1
|
@@ -21,7 +21,11 @@ export class RestAdapter {
|
|
|
21
21
|
if (!params.accessToken) {
|
|
22
22
|
throw new TypeError('Expected parameter accessToken');
|
|
23
23
|
}
|
|
24
|
-
|
|
24
|
+
const copiedParams = copy(params);
|
|
25
|
+
// httpAgent and httpsAgent cannot be copied because they can contain private fields
|
|
26
|
+
copiedParams.httpAgent = params.httpAgent;
|
|
27
|
+
copiedParams.httpsAgent = params.httpsAgent;
|
|
28
|
+
this.params = _objectSpread(_objectSpread({}, defaultHostParameters), copiedParams);
|
|
25
29
|
this.axiosInstance = createHttpClient(axios, _objectSpread(_objectSpread({}, this.params), {}, {
|
|
26
30
|
headers: _objectSpread(_objectSpread({
|
|
27
31
|
'Content-Type': 'application/vnd.contentful.management.v1+json'
|
|
@@ -46,7 +46,7 @@ function createClient(params, opts = {}) {
|
|
|
46
46
|
const sdkMain = opts.type === 'plain' ? 'contentful-management-plain.js' : 'contentful-management.js';
|
|
47
47
|
const userAgent = getUserAgentHeader(
|
|
48
48
|
// @ts-expect-error
|
|
49
|
-
`${sdkMain}/${"11.39.
|
|
49
|
+
`${sdkMain}/${"11.39.2"}`, params.application, params.integration, params.feature);
|
|
50
50
|
const adapter = createAdapter(_objectSpread(_objectSpread({}, params), {}, {
|
|
51
51
|
userAgent
|
|
52
52
|
}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "contentful-management",
|
|
3
|
-
"version": "11.39.
|
|
3
|
+
"version": "11.39.2",
|
|
4
4
|
"description": "Client for Contentful's Content Management API",
|
|
5
5
|
"homepage": "https://www.contentful.com/developers/documentation/content-management-api/",
|
|
6
6
|
"main": "./dist/contentful-management.node.js",
|