contentful-management 11.62.1 → 11.63.0
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 +56 -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 +83 -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/entities/app-definition.js +7 -0
- 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/app-definition.d.ts +7 -1
- package/dist/typings/entities/bulk-action.d.ts +31 -3
- package/dist/typings/export-types.d.ts +1 -1
- package/dist/typings/plain/common-types.d.ts +20 -2
- package/package.json +1 -1
- 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.
|
|
@@ -14226,6 +14257,13 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
14226
14257
|
|
|
14227
14258
|
|
|
14228
14259
|
|
|
14260
|
+
|
|
14261
|
+
/**
|
|
14262
|
+
* These locations are currently restricted to internal Contentful apps only.
|
|
14263
|
+
* If you are interested in using these locations for your app,
|
|
14264
|
+
* please reach out to Contentful Support (https://www.contentful.com/support/).
|
|
14265
|
+
*/
|
|
14266
|
+
|
|
14229
14267
|
/**
|
|
14230
14268
|
* @private
|
|
14231
14269
|
* @param makeRequest - function to make requests via an adapter
|
|
@@ -18551,7 +18589,11 @@ const createPlainClient = (makeRequest, defaults) => {
|
|
|
18551
18589
|
get: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'BulkAction', 'get'),
|
|
18552
18590
|
publish: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'BulkAction', 'publish'),
|
|
18553
18591
|
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')
|
|
18592
|
+
validate: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'BulkAction', 'validate'),
|
|
18593
|
+
getV2: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'BulkAction', 'getV2'),
|
|
18594
|
+
publishV2: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'BulkAction', 'publishV2'),
|
|
18595
|
+
unpublishV2: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'BulkAction', 'unpublishV2'),
|
|
18596
|
+
validateV2: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'BulkAction', 'validateV2')
|
|
18555
18597
|
},
|
|
18556
18598
|
comment: {
|
|
18557
18599
|
get: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Comment', 'get'),
|
|
@@ -26210,14 +26252,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
26210
26252
|
/* harmony export */ __setProxy: () => (/* binding */ __setProxy),
|
|
26211
26253
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
26212
26254
|
/* harmony export */ });
|
|
26213
|
-
/* harmony import */ var http2__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! http2 */ "http2");
|
|
26214
26255
|
/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./../utils.js */ "../node_modules/axios/lib/utils.js");
|
|
26215
26256
|
/* harmony import */ var _core_settle_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./../core/settle.js */ "../node_modules/axios/lib/core/settle.js");
|
|
26216
26257
|
/* harmony import */ var _core_buildFullPath_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../core/buildFullPath.js */ "../node_modules/axios/lib/core/buildFullPath.js");
|
|
26217
26258
|
/* 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
|
|
26259
|
+
/* harmony import */ var proxy_from_env__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! proxy-from-env */ "../node_modules/proxy-from-env/index.js");
|
|
26260
|
+
/* harmony import */ var http__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! http */ "http");
|
|
26261
|
+
/* harmony import */ var https__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! https */ "https");
|
|
26262
|
+
/* harmony import */ var http2__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! http2 */ "http2");
|
|
26221
26263
|
/* harmony import */ var util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! util */ "util");
|
|
26222
26264
|
/* harmony import */ var follow_redirects__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! follow-redirects */ "../node_modules/follow-redirects/index.js");
|
|
26223
26265
|
/* harmony import */ var zlib__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! zlib */ "zlib");
|
|
@@ -26275,13 +26317,6 @@ const brotliOptions = {
|
|
|
26275
26317
|
finishFlush: zlib__WEBPACK_IMPORTED_MODULE_6__.constants.BROTLI_OPERATION_FLUSH
|
|
26276
26318
|
}
|
|
26277
26319
|
|
|
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
26320
|
const isBrotliSupported = _utils_js__WEBPACK_IMPORTED_MODULE_9__["default"].isFunction(zlib__WEBPACK_IMPORTED_MODULE_6__.createBrotliDecompress);
|
|
26286
26321
|
|
|
26287
26322
|
const {http: httpFollow, https: httpsFollow} = follow_redirects__WEBPACK_IMPORTED_MODULE_5__;
|
|
@@ -26311,9 +26346,9 @@ class Http2Sessions {
|
|
|
26311
26346
|
sessionTimeout: 1000
|
|
26312
26347
|
}, options);
|
|
26313
26348
|
|
|
26314
|
-
let authoritySessions;
|
|
26349
|
+
let authoritySessions = this.sessions[authority];
|
|
26315
26350
|
|
|
26316
|
-
if (
|
|
26351
|
+
if (authoritySessions) {
|
|
26317
26352
|
let len = authoritySessions.length;
|
|
26318
26353
|
|
|
26319
26354
|
for (let i = 0; i < len; i++) {
|
|
@@ -26324,7 +26359,7 @@ class Http2Sessions {
|
|
|
26324
26359
|
}
|
|
26325
26360
|
}
|
|
26326
26361
|
|
|
26327
|
-
const session =
|
|
26362
|
+
const session = http2__WEBPACK_IMPORTED_MODULE_3__.connect(authority, options);
|
|
26328
26363
|
|
|
26329
26364
|
let removed;
|
|
26330
26365
|
|
|
@@ -26339,11 +26374,12 @@ class Http2Sessions {
|
|
|
26339
26374
|
|
|
26340
26375
|
while (i--) {
|
|
26341
26376
|
if (entries[i][0] === session) {
|
|
26342
|
-
entries.splice(i, 1);
|
|
26343
26377
|
if (len === 1) {
|
|
26344
26378
|
delete this.sessions[authority];
|
|
26345
|
-
|
|
26379
|
+
} else {
|
|
26380
|
+
entries.splice(i, 1);
|
|
26346
26381
|
}
|
|
26382
|
+
return;
|
|
26347
26383
|
}
|
|
26348
26384
|
}
|
|
26349
26385
|
};
|
|
@@ -26382,12 +26418,12 @@ class Http2Sessions {
|
|
|
26382
26418
|
|
|
26383
26419
|
session.once('close', removeSession);
|
|
26384
26420
|
|
|
26385
|
-
let
|
|
26386
|
-
|
|
26387
|
-
|
|
26388
|
-
|
|
26421
|
+
let entry = [
|
|
26422
|
+
session,
|
|
26423
|
+
options
|
|
26424
|
+
];
|
|
26389
26425
|
|
|
26390
|
-
|
|
26426
|
+
authoritySessions ? authoritySessions.push(entry) : authoritySessions = this.sessions[authority] = [entry];
|
|
26391
26427
|
|
|
26392
26428
|
return session;
|
|
26393
26429
|
}
|
|
@@ -26425,7 +26461,7 @@ function dispatchBeforeRedirect(options, responseDetails) {
|
|
|
26425
26461
|
function setProxy(options, configProxy, location) {
|
|
26426
26462
|
let proxy = configProxy;
|
|
26427
26463
|
if (!proxy && proxy !== false) {
|
|
26428
|
-
const proxyUrl =
|
|
26464
|
+
const proxyUrl = proxy_from_env__WEBPACK_IMPORTED_MODULE_0__.getProxyForUrl(location);
|
|
26429
26465
|
if (proxyUrl) {
|
|
26430
26466
|
proxy = new URL(proxyUrl);
|
|
26431
26467
|
}
|
|
@@ -26515,6 +26551,13 @@ const http2Transport = {
|
|
|
26515
26551
|
|
|
26516
26552
|
const session = http2Sessions.getSession(authority, http2Options);
|
|
26517
26553
|
|
|
26554
|
+
const {
|
|
26555
|
+
HTTP2_HEADER_SCHEME,
|
|
26556
|
+
HTTP2_HEADER_METHOD,
|
|
26557
|
+
HTTP2_HEADER_PATH,
|
|
26558
|
+
HTTP2_HEADER_STATUS
|
|
26559
|
+
} = http2__WEBPACK_IMPORTED_MODULE_3__.constants;
|
|
26560
|
+
|
|
26518
26561
|
const http2Headers = {
|
|
26519
26562
|
[HTTP2_HEADER_SCHEME]: options.protocol.replace(':', ''),
|
|
26520
26563
|
[HTTP2_HEADER_METHOD]: options.method,
|
|
@@ -26872,7 +26915,7 @@ const http2Transport = {
|
|
|
26872
26915
|
if (config.transport) {
|
|
26873
26916
|
transport = config.transport;
|
|
26874
26917
|
} else if (config.maxRedirects === 0) {
|
|
26875
|
-
transport = isHttpsRequest ?
|
|
26918
|
+
transport = isHttpsRequest ? https__WEBPACK_IMPORTED_MODULE_2__ : http__WEBPACK_IMPORTED_MODULE_1__;
|
|
26876
26919
|
} else {
|
|
26877
26920
|
if (config.maxRedirects) {
|
|
26878
26921
|
options.maxRedirects = config.maxRedirects;
|
|
@@ -27096,6 +27139,9 @@ const http2Transport = {
|
|
|
27096
27139
|
req
|
|
27097
27140
|
));
|
|
27098
27141
|
});
|
|
27142
|
+
} else {
|
|
27143
|
+
// explicitly reset the socket timeout value for a possible `keep-alive` request
|
|
27144
|
+
req.setTimeout(0);
|
|
27099
27145
|
}
|
|
27100
27146
|
|
|
27101
27147
|
|
|
@@ -29067,7 +29113,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
29067
29113
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
29068
29114
|
/* harmony export */ VERSION: () => (/* binding */ VERSION)
|
|
29069
29115
|
/* harmony export */ });
|
|
29070
|
-
const VERSION = "1.13.
|
|
29116
|
+
const VERSION = "1.13.2";
|
|
29071
29117
|
|
|
29072
29118
|
/***/ }),
|
|
29073
29119
|
|
|
@@ -33625,7 +33671,7 @@ function createClient(params, opts = {}) {
|
|
|
33625
33671
|
const sdkMain = opts.type === 'plain' ? 'contentful-management-plain.js' : 'contentful-management.js';
|
|
33626
33672
|
const userAgent = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.getUserAgentHeader)(
|
|
33627
33673
|
// @ts-expect-error
|
|
33628
|
-
`${sdkMain}/${"11.
|
|
33674
|
+
`${sdkMain}/${"11.63.0"}`, params.application, params.integration, params.feature);
|
|
33629
33675
|
const adapter = (0,_create_adapter__WEBPACK_IMPORTED_MODULE_1__.createAdapter)(_objectSpread(_objectSpread({}, params), {}, {
|
|
33630
33676
|
userAgent
|
|
33631
33677
|
}));
|