contentful-management 11.62.0 → 11.63.0-dx-542-update-to-gha.1
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/README.md +13 -0
- package/dist/contentful-management.browser.js +49 -14
- package/dist/contentful-management.browser.js.map +1 -1
- package/dist/contentful-management.browser.min.js +1 -1
- package/dist/contentful-management.node.js +76 -37
- package/dist/contentful-management.node.js.map +1 -1
- package/dist/contentful-management.node.min.js +1 -1
- package/dist/es-modules/adapters/REST/endpoints/bulk-action.js +12 -0
- package/dist/es-modules/common-utils.js +12 -0
- package/dist/es-modules/contentful-management.js +1 -1
- package/dist/es-modules/create-environment-api.js +11 -10
- package/dist/es-modules/plain/plain-client.js +5 -1
- package/dist/typings/adapters/REST/endpoints/bulk-action.d.ts +4 -0
- package/dist/typings/common-types.d.ts +47 -1
- package/dist/typings/common-utils.d.ts +8 -1
- package/dist/typings/create-environment-api.d.ts +5 -5
- package/dist/typings/entities/bulk-action.d.ts +31 -3
- package/dist/typings/export-types.d.ts +2 -2
- package/dist/typings/plain/common-types.d.ts +20 -2
- package/package.json +13 -10
- package/dist/es-modules/methods/bulk-action.js +0 -15
- package/dist/typings/methods/bulk-action.d.ts +0 -14
|
@@ -1725,9 +1725,13 @@ const processForAllLocales = async (http, _ref2) => {
|
|
|
1725
1725
|
__webpack_require__.r(__webpack_exports__);
|
|
1726
1726
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1727
1727
|
/* harmony export */ get: () => (/* binding */ get),
|
|
1728
|
+
/* harmony export */ getV2: () => (/* binding */ getV2),
|
|
1728
1729
|
/* harmony export */ publish: () => (/* binding */ publish),
|
|
1730
|
+
/* harmony export */ publishV2: () => (/* binding */ publishV2),
|
|
1729
1731
|
/* harmony export */ unpublish: () => (/* binding */ unpublish),
|
|
1730
|
-
/* harmony export */
|
|
1732
|
+
/* harmony export */ unpublishV2: () => (/* binding */ unpublishV2),
|
|
1733
|
+
/* harmony export */ validate: () => (/* binding */ validate),
|
|
1734
|
+
/* harmony export */ validateV2: () => (/* binding */ validateV2)
|
|
1731
1735
|
/* harmony export */ });
|
|
1732
1736
|
/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts");
|
|
1733
1737
|
|
|
@@ -1743,6 +1747,18 @@ const unpublish = (http, params, payload) => {
|
|
|
1743
1747
|
const validate = (http, params, payload) => {
|
|
1744
1748
|
return _raw__WEBPACK_IMPORTED_MODULE_0__.post(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/bulk_actions/validate`, payload);
|
|
1745
1749
|
};
|
|
1750
|
+
const getV2 = (http, params) => {
|
|
1751
|
+
return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/bulk_actions/${params.bulkActionId}`);
|
|
1752
|
+
};
|
|
1753
|
+
const publishV2 = (http, params, payload) => {
|
|
1754
|
+
return _raw__WEBPACK_IMPORTED_MODULE_0__.post(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/bulk_actions`, payload);
|
|
1755
|
+
};
|
|
1756
|
+
const unpublishV2 = (http, params, payload) => {
|
|
1757
|
+
return _raw__WEBPACK_IMPORTED_MODULE_0__.post(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/bulk_actions`, payload);
|
|
1758
|
+
};
|
|
1759
|
+
const validateV2 = (http, params, payload) => {
|
|
1760
|
+
return _raw__WEBPACK_IMPORTED_MODULE_0__.post(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/bulk_actions`, payload);
|
|
1761
|
+
};
|
|
1746
1762
|
|
|
1747
1763
|
/***/ }),
|
|
1748
1764
|
|
|
@@ -5441,6 +5457,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
5441
5457
|
/* harmony export */ isSuccessful: () => (/* binding */ isSuccessful),
|
|
5442
5458
|
/* harmony export */ shouldRePoll: () => (/* binding */ shouldRePoll),
|
|
5443
5459
|
/* harmony export */ waitFor: () => (/* binding */ waitFor),
|
|
5460
|
+
/* harmony export */ withOptionalCursorApi: () => (/* binding */ withOptionalCursorApi),
|
|
5444
5461
|
/* harmony export */ wrapCollection: () => (/* binding */ wrapCollection),
|
|
5445
5462
|
/* harmony export */ wrapCursorPaginatedCollection: () => (/* binding */ wrapCursorPaginatedCollection)
|
|
5446
5463
|
/* harmony export */ });
|
|
@@ -5460,6 +5477,18 @@ const wrapCollection = fn => (makeRequest, data, ...rest) => {
|
|
|
5460
5477
|
// @ts-expect-error
|
|
5461
5478
|
return collectionData;
|
|
5462
5479
|
};
|
|
5480
|
+
|
|
5481
|
+
/**
|
|
5482
|
+
* @private
|
|
5483
|
+
* Function for endpoints allowing `?cursor=true` wrapping the call
|
|
5484
|
+
* to ensure the correct return type for cursor based pagination
|
|
5485
|
+
* when `cursor: true`.
|
|
5486
|
+
*/
|
|
5487
|
+
const withOptionalCursorApi = fn => {
|
|
5488
|
+
return function (args) {
|
|
5489
|
+
return fn.call(this, args);
|
|
5490
|
+
};
|
|
5491
|
+
};
|
|
5463
5492
|
const wrapCursorPaginatedCollection = fn => (makeRequest, data, ...rest) => {
|
|
5464
5493
|
const collectionData = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_1__["default"])(data));
|
|
5465
5494
|
// @ts-expect-error
|
|
@@ -7508,6 +7537,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
7508
7537
|
/* harmony import */ var _entities_function__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./entities/function */ "./entities/function.ts");
|
|
7509
7538
|
/* harmony import */ var _entities_function_log__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./entities/function-log */ "./entities/function-log.ts");
|
|
7510
7539
|
/* harmony import */ var _entities_ai_action_invocation__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./entities/ai-action-invocation */ "./entities/ai-action-invocation.ts");
|
|
7540
|
+
/* harmony import */ var _common_utils__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./common-utils */ "./common-utils.ts");
|
|
7511
7541
|
const _excluded = ["installationId"];
|
|
7512
7542
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
7513
7543
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
@@ -7528,6 +7558,7 @@ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t =
|
|
|
7528
7558
|
|
|
7529
7559
|
|
|
7530
7560
|
|
|
7561
|
+
|
|
7531
7562
|
/**
|
|
7532
7563
|
* @private
|
|
7533
7564
|
*/
|
|
@@ -7978,7 +8009,7 @@ function createEnvironmentApi(makeRequest) {
|
|
|
7978
8009
|
* .catch(console.error)
|
|
7979
8010
|
* ```
|
|
7980
8011
|
*/
|
|
7981
|
-
getContentTypes(query = {}) {
|
|
8012
|
+
getContentTypes: (0,_common_utils__WEBPACK_IMPORTED_MODULE_11__.withOptionalCursorApi)(function (query = {}) {
|
|
7982
8013
|
const raw = this.toPlainObject();
|
|
7983
8014
|
return makeRequest({
|
|
7984
8015
|
entityType: 'ContentType',
|
|
@@ -7991,7 +8022,7 @@ function createEnvironmentApi(makeRequest) {
|
|
|
7991
8022
|
}).params
|
|
7992
8023
|
}
|
|
7993
8024
|
}).then(data => wrapContentTypeCollection(makeRequest, data));
|
|
7994
|
-
},
|
|
8025
|
+
}),
|
|
7995
8026
|
/**
|
|
7996
8027
|
* Creates a Content Type
|
|
7997
8028
|
* @param data - Object representation of the Content Type to be created
|
|
@@ -8222,7 +8253,7 @@ function createEnvironmentApi(makeRequest) {
|
|
|
8222
8253
|
* .catch(console.error)
|
|
8223
8254
|
* ```
|
|
8224
8255
|
*/
|
|
8225
|
-
getEntries(query = {}) {
|
|
8256
|
+
getEntries: (0,_common_utils__WEBPACK_IMPORTED_MODULE_11__.withOptionalCursorApi)(function (query = {}) {
|
|
8226
8257
|
const raw = this.toPlainObject();
|
|
8227
8258
|
return makeRequest({
|
|
8228
8259
|
entityType: 'Entry',
|
|
@@ -8235,7 +8266,7 @@ function createEnvironmentApi(makeRequest) {
|
|
|
8235
8266
|
}).params
|
|
8236
8267
|
}
|
|
8237
8268
|
}).then(data => wrapEntryCollection(makeRequest, data));
|
|
8238
|
-
},
|
|
8269
|
+
}),
|
|
8239
8270
|
/**
|
|
8240
8271
|
* Gets a collection of published Entries
|
|
8241
8272
|
* @param query - Object with search parameters. Check the <a href="https://www.contentful.com/developers/docs/javascript/tutorials/using-js-cda-sdk/#retrieving-entries-with-search-parameters">JS SDK tutorial</a> and the <a href="https://www.contentful.com/developers/docs/references/content-delivery-api/#/reference/search-parameters">REST API reference</a> for more details.
|
|
@@ -8254,7 +8285,7 @@ function createEnvironmentApi(makeRequest) {
|
|
|
8254
8285
|
* .catch(console.error)
|
|
8255
8286
|
* ```
|
|
8256
8287
|
*/
|
|
8257
|
-
getPublishedEntries(query = {}) {
|
|
8288
|
+
getPublishedEntries: (0,_common_utils__WEBPACK_IMPORTED_MODULE_11__.withOptionalCursorApi)(function (query = {}) {
|
|
8258
8289
|
const raw = this.toPlainObject();
|
|
8259
8290
|
return makeRequest({
|
|
8260
8291
|
entityType: 'Entry',
|
|
@@ -8267,7 +8298,7 @@ function createEnvironmentApi(makeRequest) {
|
|
|
8267
8298
|
}).params
|
|
8268
8299
|
}
|
|
8269
8300
|
}).then(data => wrapEntryCollection(makeRequest, data));
|
|
8270
|
-
},
|
|
8301
|
+
}),
|
|
8271
8302
|
/**
|
|
8272
8303
|
* Creates a Entry
|
|
8273
8304
|
* @param contentTypeId - The Content Type ID of the newly created Entry
|
|
@@ -8438,7 +8469,7 @@ function createEnvironmentApi(makeRequest) {
|
|
|
8438
8469
|
* .catch(console.error)
|
|
8439
8470
|
* ```
|
|
8440
8471
|
*/
|
|
8441
|
-
getAssets(query = {}) {
|
|
8472
|
+
getAssets: (0,_common_utils__WEBPACK_IMPORTED_MODULE_11__.withOptionalCursorApi)(function (query = {}) {
|
|
8442
8473
|
const raw = this.toPlainObject();
|
|
8443
8474
|
return makeRequest({
|
|
8444
8475
|
entityType: 'Asset',
|
|
@@ -8451,7 +8482,7 @@ function createEnvironmentApi(makeRequest) {
|
|
|
8451
8482
|
}).params
|
|
8452
8483
|
}
|
|
8453
8484
|
}).then(data => wrapAssetCollection(makeRequest, data));
|
|
8454
|
-
},
|
|
8485
|
+
}),
|
|
8455
8486
|
/**
|
|
8456
8487
|
* Gets a collection of published Assets
|
|
8457
8488
|
* @param query - Object with search parameters. Check the <a href="https://www.contentful.com/developers/docs/javascript/tutorials/using-js-cda-sdk/#retrieving-entries-with-search-parameters">JS SDK tutorial</a> and the <a href="https://www.contentful.com/developers/docs/references/content-delivery-api/#/reference/search-parameters">REST API reference</a> for more details.
|
|
@@ -8470,7 +8501,7 @@ function createEnvironmentApi(makeRequest) {
|
|
|
8470
8501
|
* .catch(console.error)
|
|
8471
8502
|
* ```
|
|
8472
8503
|
*/
|
|
8473
|
-
getPublishedAssets(query = {}) {
|
|
8504
|
+
getPublishedAssets: (0,_common_utils__WEBPACK_IMPORTED_MODULE_11__.withOptionalCursorApi)(function (query = {}) {
|
|
8474
8505
|
const raw = this.toPlainObject();
|
|
8475
8506
|
return makeRequest({
|
|
8476
8507
|
entityType: 'Asset',
|
|
@@ -8483,7 +8514,7 @@ function createEnvironmentApi(makeRequest) {
|
|
|
8483
8514
|
}).params
|
|
8484
8515
|
}
|
|
8485
8516
|
}).then(data => wrapAssetCollection(makeRequest, data));
|
|
8486
|
-
},
|
|
8517
|
+
}),
|
|
8487
8518
|
/**
|
|
8488
8519
|
* Creates a Asset. After creation, call asset.processForLocale or asset.processForAllLocales to start asset processing.
|
|
8489
8520
|
* @param data - Object representation of the Asset to be created. Note that the field object should have an upload property on asset creation, which will be removed and replaced with an url property when processing is finished.
|
|
@@ -18551,7 +18582,11 @@ const createPlainClient = (makeRequest, defaults) => {
|
|
|
18551
18582
|
get: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'BulkAction', 'get'),
|
|
18552
18583
|
publish: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'BulkAction', 'publish'),
|
|
18553
18584
|
unpublish: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'BulkAction', 'unpublish'),
|
|
18554
|
-
validate: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'BulkAction', 'validate')
|
|
18585
|
+
validate: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'BulkAction', 'validate'),
|
|
18586
|
+
getV2: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'BulkAction', 'getV2'),
|
|
18587
|
+
publishV2: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'BulkAction', 'publishV2'),
|
|
18588
|
+
unpublishV2: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'BulkAction', 'unpublishV2'),
|
|
18589
|
+
validateV2: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'BulkAction', 'validateV2')
|
|
18555
18590
|
},
|
|
18556
18591
|
comment: {
|
|
18557
18592
|
get: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Comment', 'get'),
|
|
@@ -26210,14 +26245,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
26210
26245
|
/* harmony export */ __setProxy: () => (/* binding */ __setProxy),
|
|
26211
26246
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
26212
26247
|
/* harmony export */ });
|
|
26213
|
-
/* harmony import */ var http2__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! http2 */ "http2");
|
|
26214
26248
|
/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./../utils.js */ "../node_modules/axios/lib/utils.js");
|
|
26215
26249
|
/* harmony import */ var _core_settle_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./../core/settle.js */ "../node_modules/axios/lib/core/settle.js");
|
|
26216
26250
|
/* harmony import */ var _core_buildFullPath_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../core/buildFullPath.js */ "../node_modules/axios/lib/core/buildFullPath.js");
|
|
26217
26251
|
/* harmony import */ var _helpers_buildURL_js__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./../helpers/buildURL.js */ "../node_modules/axios/lib/helpers/buildURL.js");
|
|
26218
|
-
/* harmony import */ var
|
|
26219
|
-
/* harmony import */ var
|
|
26220
|
-
/* harmony import */ var
|
|
26252
|
+
/* harmony import */ var proxy_from_env__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! proxy-from-env */ "../node_modules/proxy-from-env/index.js");
|
|
26253
|
+
/* harmony import */ var http__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! http */ "http");
|
|
26254
|
+
/* harmony import */ var https__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! https */ "https");
|
|
26255
|
+
/* harmony import */ var http2__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! http2 */ "http2");
|
|
26221
26256
|
/* harmony import */ var util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! util */ "util");
|
|
26222
26257
|
/* harmony import */ var follow_redirects__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! follow-redirects */ "../node_modules/follow-redirects/index.js");
|
|
26223
26258
|
/* harmony import */ var zlib__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! zlib */ "zlib");
|
|
@@ -26275,13 +26310,6 @@ const brotliOptions = {
|
|
|
26275
26310
|
finishFlush: zlib__WEBPACK_IMPORTED_MODULE_6__.constants.BROTLI_OPERATION_FLUSH
|
|
26276
26311
|
}
|
|
26277
26312
|
|
|
26278
|
-
const {
|
|
26279
|
-
HTTP2_HEADER_SCHEME,
|
|
26280
|
-
HTTP2_HEADER_METHOD,
|
|
26281
|
-
HTTP2_HEADER_PATH,
|
|
26282
|
-
HTTP2_HEADER_STATUS
|
|
26283
|
-
} = http2__WEBPACK_IMPORTED_MODULE_0__.constants;
|
|
26284
|
-
|
|
26285
26313
|
const isBrotliSupported = _utils_js__WEBPACK_IMPORTED_MODULE_9__["default"].isFunction(zlib__WEBPACK_IMPORTED_MODULE_6__.createBrotliDecompress);
|
|
26286
26314
|
|
|
26287
26315
|
const {http: httpFollow, https: httpsFollow} = follow_redirects__WEBPACK_IMPORTED_MODULE_5__;
|
|
@@ -26311,9 +26339,9 @@ class Http2Sessions {
|
|
|
26311
26339
|
sessionTimeout: 1000
|
|
26312
26340
|
}, options);
|
|
26313
26341
|
|
|
26314
|
-
let authoritySessions;
|
|
26342
|
+
let authoritySessions = this.sessions[authority];
|
|
26315
26343
|
|
|
26316
|
-
if (
|
|
26344
|
+
if (authoritySessions) {
|
|
26317
26345
|
let len = authoritySessions.length;
|
|
26318
26346
|
|
|
26319
26347
|
for (let i = 0; i < len; i++) {
|
|
@@ -26324,7 +26352,7 @@ class Http2Sessions {
|
|
|
26324
26352
|
}
|
|
26325
26353
|
}
|
|
26326
26354
|
|
|
26327
|
-
const session =
|
|
26355
|
+
const session = http2__WEBPACK_IMPORTED_MODULE_3__.connect(authority, options);
|
|
26328
26356
|
|
|
26329
26357
|
let removed;
|
|
26330
26358
|
|
|
@@ -26339,11 +26367,12 @@ class Http2Sessions {
|
|
|
26339
26367
|
|
|
26340
26368
|
while (i--) {
|
|
26341
26369
|
if (entries[i][0] === session) {
|
|
26342
|
-
entries.splice(i, 1);
|
|
26343
26370
|
if (len === 1) {
|
|
26344
26371
|
delete this.sessions[authority];
|
|
26345
|
-
|
|
26372
|
+
} else {
|
|
26373
|
+
entries.splice(i, 1);
|
|
26346
26374
|
}
|
|
26375
|
+
return;
|
|
26347
26376
|
}
|
|
26348
26377
|
}
|
|
26349
26378
|
};
|
|
@@ -26382,12 +26411,12 @@ class Http2Sessions {
|
|
|
26382
26411
|
|
|
26383
26412
|
session.once('close', removeSession);
|
|
26384
26413
|
|
|
26385
|
-
let
|
|
26386
|
-
|
|
26387
|
-
|
|
26388
|
-
|
|
26414
|
+
let entry = [
|
|
26415
|
+
session,
|
|
26416
|
+
options
|
|
26417
|
+
];
|
|
26389
26418
|
|
|
26390
|
-
|
|
26419
|
+
authoritySessions ? authoritySessions.push(entry) : authoritySessions = this.sessions[authority] = [entry];
|
|
26391
26420
|
|
|
26392
26421
|
return session;
|
|
26393
26422
|
}
|
|
@@ -26425,7 +26454,7 @@ function dispatchBeforeRedirect(options, responseDetails) {
|
|
|
26425
26454
|
function setProxy(options, configProxy, location) {
|
|
26426
26455
|
let proxy = configProxy;
|
|
26427
26456
|
if (!proxy && proxy !== false) {
|
|
26428
|
-
const proxyUrl =
|
|
26457
|
+
const proxyUrl = proxy_from_env__WEBPACK_IMPORTED_MODULE_0__.getProxyForUrl(location);
|
|
26429
26458
|
if (proxyUrl) {
|
|
26430
26459
|
proxy = new URL(proxyUrl);
|
|
26431
26460
|
}
|
|
@@ -26515,6 +26544,13 @@ const http2Transport = {
|
|
|
26515
26544
|
|
|
26516
26545
|
const session = http2Sessions.getSession(authority, http2Options);
|
|
26517
26546
|
|
|
26547
|
+
const {
|
|
26548
|
+
HTTP2_HEADER_SCHEME,
|
|
26549
|
+
HTTP2_HEADER_METHOD,
|
|
26550
|
+
HTTP2_HEADER_PATH,
|
|
26551
|
+
HTTP2_HEADER_STATUS
|
|
26552
|
+
} = http2__WEBPACK_IMPORTED_MODULE_3__.constants;
|
|
26553
|
+
|
|
26518
26554
|
const http2Headers = {
|
|
26519
26555
|
[HTTP2_HEADER_SCHEME]: options.protocol.replace(':', ''),
|
|
26520
26556
|
[HTTP2_HEADER_METHOD]: options.method,
|
|
@@ -26872,7 +26908,7 @@ const http2Transport = {
|
|
|
26872
26908
|
if (config.transport) {
|
|
26873
26909
|
transport = config.transport;
|
|
26874
26910
|
} else if (config.maxRedirects === 0) {
|
|
26875
|
-
transport = isHttpsRequest ?
|
|
26911
|
+
transport = isHttpsRequest ? https__WEBPACK_IMPORTED_MODULE_2__ : http__WEBPACK_IMPORTED_MODULE_1__;
|
|
26876
26912
|
} else {
|
|
26877
26913
|
if (config.maxRedirects) {
|
|
26878
26914
|
options.maxRedirects = config.maxRedirects;
|
|
@@ -27096,6 +27132,9 @@ const http2Transport = {
|
|
|
27096
27132
|
req
|
|
27097
27133
|
));
|
|
27098
27134
|
});
|
|
27135
|
+
} else {
|
|
27136
|
+
// explicitly reset the socket timeout value for a possible `keep-alive` request
|
|
27137
|
+
req.setTimeout(0);
|
|
27099
27138
|
}
|
|
27100
27139
|
|
|
27101
27140
|
|
|
@@ -29067,7 +29106,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
29067
29106
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
29068
29107
|
/* harmony export */ VERSION: () => (/* binding */ VERSION)
|
|
29069
29108
|
/* harmony export */ });
|
|
29070
|
-
const VERSION = "1.13.
|
|
29109
|
+
const VERSION = "1.13.2";
|
|
29071
29110
|
|
|
29072
29111
|
/***/ }),
|
|
29073
29112
|
|
|
@@ -33625,7 +33664,7 @@ function createClient(params, opts = {}) {
|
|
|
33625
33664
|
const sdkMain = opts.type === 'plain' ? 'contentful-management-plain.js' : 'contentful-management.js';
|
|
33626
33665
|
const userAgent = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.getUserAgentHeader)(
|
|
33627
33666
|
// @ts-expect-error
|
|
33628
|
-
`${sdkMain}/${"11.
|
|
33667
|
+
`${sdkMain}/${"11.63.0-dx-542-update-to-gha.1"}`, params.application, params.integration, params.feature);
|
|
33629
33668
|
const adapter = (0,_create_adapter__WEBPACK_IMPORTED_MODULE_1__.createAdapter)(_objectSpread(_objectSpread({}, params), {}, {
|
|
33630
33669
|
userAgent
|
|
33631
33670
|
}));
|