contentful-management 12.0.0-beta.5 → 12.0.0-beta.7
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/cjs/create-contentful-api.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/plain/plain-client.cjs +1 -1
- package/dist/contentful-management.browser.js +54 -53
- package/dist/contentful-management.browser.min.js +1 -1
- package/dist/contentful-management.node.cjs +3 -3
- package/dist/esm/create-contentful-api.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/plain/plain-client.js +1 -1
- package/dist/stats-browser-min.html +1 -1
- package/dist/types/export-types.d.ts +6 -6
- package/package.json +2 -6
|
@@ -18,7 +18,7 @@ function createClientApi(makeRequest) {
|
|
|
18
18
|
const { wrapEnvironmentTemplate, wrapEnvironmentTemplateCollection } = index.environmentTemplate;
|
|
19
19
|
const { wrapOAuthApplication, wrapOAuthApplicationCollection } = index.oauthApplication;
|
|
20
20
|
return {
|
|
21
|
-
version: "12.0.0-beta.
|
|
21
|
+
version: "12.0.0-beta.7",
|
|
22
22
|
/**
|
|
23
23
|
* Gets all environment templates for a given organization with the lasted version
|
|
24
24
|
* @param organizationId - Organization ID
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -24,7 +24,7 @@ var index__namespace = /*#__PURE__*/_interopNamespaceDefaultOnly(index);
|
|
|
24
24
|
*/
|
|
25
25
|
function createClient(params, opts = {}) {
|
|
26
26
|
const sdkMain = opts.type === 'plain' ? 'contentful-management-plain.js' : 'contentful-management.js';
|
|
27
|
-
const userAgent = contentfulSdkCore.getUserAgentHeader(`${sdkMain}/${"12.0.0-beta.
|
|
27
|
+
const userAgent = contentfulSdkCore.getUserAgentHeader(`${sdkMain}/${"12.0.0-beta.7"}`, params.application, params.integration, params.feature);
|
|
28
28
|
const adapter = createAdapter.createAdapter(Object.assign(Object.assign({}, params), { userAgent }));
|
|
29
29
|
// Parameters<?> and ReturnType<?> only return the types of the last overload
|
|
30
30
|
// https://github.com/microsoft/TypeScript/issues/26591
|
|
@@ -9,7 +9,7 @@ var wrap = require('./wrappers/wrap.cjs');
|
|
|
9
9
|
const createPlainClient = (makeRequest, defaults) => {
|
|
10
10
|
const wrapParams = { makeRequest, defaults };
|
|
11
11
|
return {
|
|
12
|
-
version: "12.0.0-beta.
|
|
12
|
+
version: "12.0.0-beta.7",
|
|
13
13
|
raw: {
|
|
14
14
|
getDefaultParams: () => defaults,
|
|
15
15
|
get: (url, config) => makeRequest({
|
|
@@ -1612,7 +1612,7 @@ var contentfulManagement = (function (exports) {
|
|
|
1612
1612
|
strict: false
|
|
1613
1613
|
});
|
|
1614
1614
|
}
|
|
1615
|
-
var rateLimitThrottle =
|
|
1615
|
+
var rateLimitThrottle = function rateLimitThrottle(axiosInstance) {
|
|
1616
1616
|
var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'auto';
|
|
1617
1617
|
var _axiosInstance$defaul = axiosInstance.defaults.logHandler,
|
|
1618
1618
|
logHandler = _axiosInstance$defaul === void 0 ? noop : _axiosInstance$defaul;
|
|
@@ -1654,7 +1654,7 @@ var contentfulManagement = (function (exports) {
|
|
|
1654
1654
|
axiosInstance.interceptors.request.eject(requestInterceptorId);
|
|
1655
1655
|
axiosInstance.interceptors.response.eject(responseInterceptorId);
|
|
1656
1656
|
};
|
|
1657
|
-
}
|
|
1657
|
+
};
|
|
1658
1658
|
|
|
1659
1659
|
function _arrayWithHoles(r) {
|
|
1660
1660
|
if (Array.isArray(r)) return r;
|
|
@@ -4342,6 +4342,7 @@ var contentfulManagement = (function (exports) {
|
|
|
4342
4342
|
|
|
4343
4343
|
function ownKeys$2(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; }
|
|
4344
4344
|
function _objectSpread$2(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4345
|
+
|
|
4345
4346
|
// Matches 'sub.host:port' or 'host:port' and extracts hostname and port
|
|
4346
4347
|
// Also enforces toplevel domain specified, no spaces and no protocol
|
|
4347
4348
|
var HOST_REGEX = /^(?!\w+:\/\/)([^\s:]+\.?[^\s:]+)(?::(\d+))?(?!:)$/;
|
|
@@ -6681,8 +6682,8 @@ var contentfulManagement = (function (exports) {
|
|
|
6681
6682
|
AxiosHeaders.accessor(['Content-Type', 'Content-Length', 'Accept', 'Accept-Encoding', 'User-Agent', 'Authorization']);
|
|
6682
6683
|
|
|
6683
6684
|
// reserved names hotfix
|
|
6684
|
-
utils$1.reduceDescriptors(AxiosHeaders.prototype, function (
|
|
6685
|
-
var value =
|
|
6685
|
+
utils$1.reduceDescriptors(AxiosHeaders.prototype, function (_ref0, key) {
|
|
6686
|
+
var value = _ref0.value;
|
|
6686
6687
|
var mapped = key[0].toUpperCase() + key.slice(1); // map `set` => `Set`
|
|
6687
6688
|
return {
|
|
6688
6689
|
get: function get() {
|
|
@@ -7090,12 +7091,12 @@ var contentfulManagement = (function (exports) {
|
|
|
7090
7091
|
headers.setContentType(undefined); // Let the browser set it
|
|
7091
7092
|
} else if ((contentType = headers.getContentType()) !== false) {
|
|
7092
7093
|
// fix semicolon duplication issue for ReactNative FormData implementation
|
|
7093
|
-
var
|
|
7094
|
+
var _ref1 = contentType ? contentType.split(';').map(function (token) {
|
|
7094
7095
|
return token.trim();
|
|
7095
7096
|
}).filter(Boolean) : [],
|
|
7096
|
-
|
|
7097
|
-
type =
|
|
7098
|
-
tokens =
|
|
7097
|
+
_ref10 = _toArray(_ref1),
|
|
7098
|
+
type = _ref10[0],
|
|
7099
|
+
tokens = _ref10.slice(1);
|
|
7099
7100
|
headers.setContentType([type || 'multipart/form-data'].concat(_toConsumableArray(tokens)).join('; '));
|
|
7100
7101
|
}
|
|
7101
7102
|
}
|
|
@@ -7541,7 +7542,7 @@ var contentfulManagement = (function (exports) {
|
|
|
7541
7542
|
return encoder.encode(str);
|
|
7542
7543
|
};
|
|
7543
7544
|
}(new TextEncoder()) : (/*#__PURE__*/function () {
|
|
7544
|
-
var
|
|
7545
|
+
var _ref11 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee4(str) {
|
|
7545
7546
|
return _regeneratorRuntime.wrap(function _callee4$(_context5) {
|
|
7546
7547
|
while (1) switch (_context5.prev = _context5.next) {
|
|
7547
7548
|
case 0:
|
|
@@ -7558,7 +7559,7 @@ var contentfulManagement = (function (exports) {
|
|
|
7558
7559
|
}, _callee4);
|
|
7559
7560
|
}));
|
|
7560
7561
|
return function (_x4) {
|
|
7561
|
-
return
|
|
7562
|
+
return _ref11.apply(this, arguments);
|
|
7562
7563
|
};
|
|
7563
7564
|
}()));
|
|
7564
7565
|
var test = function test(fn) {
|
|
@@ -7602,7 +7603,7 @@ var contentfulManagement = (function (exports) {
|
|
|
7602
7603
|
});
|
|
7603
7604
|
}(new Response());
|
|
7604
7605
|
var getBodyLength = /*#__PURE__*/function () {
|
|
7605
|
-
var
|
|
7606
|
+
var _ref12 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee5(body) {
|
|
7606
7607
|
var _request;
|
|
7607
7608
|
return _regeneratorRuntime.wrap(function _callee5$(_context6) {
|
|
7608
7609
|
while (1) switch (_context6.prev = _context6.next) {
|
|
@@ -7656,11 +7657,11 @@ var contentfulManagement = (function (exports) {
|
|
|
7656
7657
|
}, _callee5);
|
|
7657
7658
|
}));
|
|
7658
7659
|
return function getBodyLength(_x5) {
|
|
7659
|
-
return
|
|
7660
|
+
return _ref12.apply(this, arguments);
|
|
7660
7661
|
};
|
|
7661
7662
|
}();
|
|
7662
7663
|
var resolveBodyLength = /*#__PURE__*/function () {
|
|
7663
|
-
var
|
|
7664
|
+
var _ref13 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee6(headers, body) {
|
|
7664
7665
|
var length;
|
|
7665
7666
|
return _regeneratorRuntime.wrap(function _callee6$(_context7) {
|
|
7666
7667
|
while (1) switch (_context7.prev = _context7.next) {
|
|
@@ -7674,12 +7675,12 @@ var contentfulManagement = (function (exports) {
|
|
|
7674
7675
|
}, _callee6);
|
|
7675
7676
|
}));
|
|
7676
7677
|
return function resolveBodyLength(_x6, _x7) {
|
|
7677
|
-
return
|
|
7678
|
+
return _ref13.apply(this, arguments);
|
|
7678
7679
|
};
|
|
7679
7680
|
}();
|
|
7680
7681
|
var fetchAdapter = isFetchSupported && (/*#__PURE__*/function () {
|
|
7681
|
-
var
|
|
7682
|
-
var _resolveConfig, url, method, data, signal, cancelToken, timeout, onDownloadProgress, onUploadProgress, responseType, headers, _resolveConfig$withCr, withCredentials, fetchOptions, composedSignal, request, unsubscribe, requestContentLength, _request, contentTypeHeader, _progressEventDecorat, _progressEventDecorat2, onProgress, flush, isCredentialsSupported, response, isStreamResponse, options, responseContentLength,
|
|
7682
|
+
var _ref14 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee7(config) {
|
|
7683
|
+
var _resolveConfig, url, method, data, signal, cancelToken, timeout, onDownloadProgress, onUploadProgress, responseType, headers, _resolveConfig$withCr, withCredentials, fetchOptions, composedSignal, request, unsubscribe, requestContentLength, _request, contentTypeHeader, _progressEventDecorat, _progressEventDecorat2, onProgress, flush, isCredentialsSupported, response, isStreamResponse, options, responseContentLength, _ref15, _ref16, _onProgress, _flush, responseData;
|
|
7683
7684
|
return _regeneratorRuntime.wrap(function _callee7$(_context8) {
|
|
7684
7685
|
while (1) switch (_context8.prev = _context8.next) {
|
|
7685
7686
|
case 0:
|
|
@@ -7744,7 +7745,7 @@ var contentfulManagement = (function (exports) {
|
|
|
7744
7745
|
options[prop] = response[prop];
|
|
7745
7746
|
});
|
|
7746
7747
|
responseContentLength = utils$1.toFiniteNumber(response.headers.get('content-length'));
|
|
7747
|
-
|
|
7748
|
+
_ref15 = onDownloadProgress && progressEventDecorator(responseContentLength, progressEventReducer(asyncDecorator(onDownloadProgress), true)) || [], _ref16 = _slicedToArray(_ref15, 2), _onProgress = _ref16[0], _flush = _ref16[1];
|
|
7748
7749
|
response = new Response(trackStream(response.body, DEFAULT_CHUNK_SIZE, _onProgress, function () {
|
|
7749
7750
|
_flush && _flush();
|
|
7750
7751
|
unsubscribe && unsubscribe();
|
|
@@ -7789,7 +7790,7 @@ var contentfulManagement = (function (exports) {
|
|
|
7789
7790
|
}, _callee7, null, [[4, 33]]);
|
|
7790
7791
|
}));
|
|
7791
7792
|
return function (_x8) {
|
|
7792
|
-
return
|
|
7793
|
+
return _ref14.apply(this, arguments);
|
|
7793
7794
|
};
|
|
7794
7795
|
}());
|
|
7795
7796
|
var knownAdapters = {
|
|
@@ -7841,10 +7842,10 @@ var contentfulManagement = (function (exports) {
|
|
|
7841
7842
|
rejectedReasons[id || '#' + i] = adapter;
|
|
7842
7843
|
}
|
|
7843
7844
|
if (!adapter) {
|
|
7844
|
-
var reasons = Object.entries(rejectedReasons).map(function (
|
|
7845
|
-
var
|
|
7846
|
-
id =
|
|
7847
|
-
state =
|
|
7845
|
+
var reasons = Object.entries(rejectedReasons).map(function (_ref17) {
|
|
7846
|
+
var _ref18 = _slicedToArray(_ref17, 2),
|
|
7847
|
+
id = _ref18[0],
|
|
7848
|
+
state = _ref18[1];
|
|
7848
7849
|
return "adapter ".concat(id, " ") + (state === false ? 'is not supported by the environment' : 'is not available in the build');
|
|
7849
7850
|
});
|
|
7850
7851
|
var s = length ? reasons.length > 1 ? 'since :\n' + reasons.map(renderReason).join('\n') : ' ' + renderReason(reasons[0]) : 'as no adapter specified';
|
|
@@ -8057,7 +8058,7 @@ var contentfulManagement = (function (exports) {
|
|
|
8057
8058
|
}
|
|
8058
8059
|
}, _callee8, this, [[0, 6]]);
|
|
8059
8060
|
}));
|
|
8060
|
-
function request(_x9,
|
|
8061
|
+
function request(_x9, _x0) {
|
|
8061
8062
|
return _request2.apply(this, arguments);
|
|
8062
8063
|
}
|
|
8063
8064
|
return request;
|
|
@@ -8442,10 +8443,10 @@ var contentfulManagement = (function (exports) {
|
|
|
8442
8443
|
NotExtended: 510,
|
|
8443
8444
|
NetworkAuthenticationRequired: 511
|
|
8444
8445
|
};
|
|
8445
|
-
Object.entries(HttpStatusCode).forEach(function (
|
|
8446
|
-
var
|
|
8447
|
-
key =
|
|
8448
|
-
value =
|
|
8446
|
+
Object.entries(HttpStatusCode).forEach(function (_ref19) {
|
|
8447
|
+
var _ref20 = _slicedToArray(_ref19, 2),
|
|
8448
|
+
key = _ref20[0],
|
|
8449
|
+
value = _ref20[1];
|
|
8449
8450
|
HttpStatusCode[value] = key;
|
|
8450
8451
|
});
|
|
8451
8452
|
var HttpStatusCode$1 = HttpStatusCode;
|
|
@@ -9689,7 +9690,7 @@ var contentfulManagement = (function (exports) {
|
|
|
9689
9690
|
}
|
|
9690
9691
|
}, _callee4);
|
|
9691
9692
|
}));
|
|
9692
|
-
return function processForAllLocales(
|
|
9693
|
+
return function processForAllLocales(_x0, _x1) {
|
|
9693
9694
|
return _ref6.apply(this, arguments);
|
|
9694
9695
|
};
|
|
9695
9696
|
}();
|
|
@@ -10412,10 +10413,10 @@ var contentfulManagement = (function (exports) {
|
|
|
10412
10413
|
headers: headers
|
|
10413
10414
|
});
|
|
10414
10415
|
};
|
|
10415
|
-
var disconnect = function disconnect(http,
|
|
10416
|
-
var spaceId =
|
|
10417
|
-
environmentId =
|
|
10418
|
-
environmentTemplateId =
|
|
10416
|
+
var disconnect = function disconnect(http, _ref0, headers) {
|
|
10417
|
+
var spaceId = _ref0.spaceId,
|
|
10418
|
+
environmentId = _ref0.environmentId,
|
|
10419
|
+
environmentTemplateId = _ref0.environmentTemplateId;
|
|
10419
10420
|
return del$F(http, "/spaces/".concat(spaceId, "/environments/").concat(environmentId, "/template_installations/").concat(environmentTemplateId), {
|
|
10420
10421
|
headers: headers
|
|
10421
10422
|
});
|
|
@@ -11878,7 +11879,7 @@ var contentfulManagement = (function (exports) {
|
|
|
11878
11879
|
}
|
|
11879
11880
|
}, _callee3);
|
|
11880
11881
|
}));
|
|
11881
|
-
return function upsertRetryPolicy(_x8, _x9,
|
|
11882
|
+
return function upsertRetryPolicy(_x8, _x9, _x0) {
|
|
11882
11883
|
return _ref3.apply(this, arguments);
|
|
11883
11884
|
};
|
|
11884
11885
|
}();
|
|
@@ -11897,7 +11898,7 @@ var contentfulManagement = (function (exports) {
|
|
|
11897
11898
|
}
|
|
11898
11899
|
}, _callee4);
|
|
11899
11900
|
}));
|
|
11900
|
-
return function deleteSigningSecret(
|
|
11901
|
+
return function deleteSigningSecret(_x1, _x10) {
|
|
11901
11902
|
return _ref4.apply(this, arguments);
|
|
11902
11903
|
};
|
|
11903
11904
|
}();
|
|
@@ -11916,7 +11917,7 @@ var contentfulManagement = (function (exports) {
|
|
|
11916
11917
|
}
|
|
11917
11918
|
}, _callee5);
|
|
11918
11919
|
}));
|
|
11919
|
-
return function deleteRetryPolicy(
|
|
11920
|
+
return function deleteRetryPolicy(_x11, _x12) {
|
|
11920
11921
|
return _ref5.apply(this, arguments);
|
|
11921
11922
|
};
|
|
11922
11923
|
}();
|
|
@@ -14276,8 +14277,8 @@ var contentfulManagement = (function (exports) {
|
|
|
14276
14277
|
* ```
|
|
14277
14278
|
*/
|
|
14278
14279
|
createComment: function createComment(data) {
|
|
14279
|
-
var
|
|
14280
|
-
params =
|
|
14280
|
+
var _getParams0 = getParams(this),
|
|
14281
|
+
params = _getParams0.params;
|
|
14281
14282
|
return makeRequest({
|
|
14282
14283
|
entityType: 'Comment',
|
|
14283
14284
|
action: 'create',
|
|
@@ -14310,8 +14311,8 @@ var contentfulManagement = (function (exports) {
|
|
|
14310
14311
|
* ```
|
|
14311
14312
|
*/
|
|
14312
14313
|
getComments: function getComments() {
|
|
14313
|
-
var
|
|
14314
|
-
params =
|
|
14314
|
+
var _getParams1 = getParams(this),
|
|
14315
|
+
params = _getParams1.params;
|
|
14315
14316
|
return makeRequest({
|
|
14316
14317
|
entityType: 'Comment',
|
|
14317
14318
|
action: 'getMany',
|
|
@@ -14338,8 +14339,8 @@ var contentfulManagement = (function (exports) {
|
|
|
14338
14339
|
* ```
|
|
14339
14340
|
*/
|
|
14340
14341
|
getComment: function getComment(id) {
|
|
14341
|
-
var
|
|
14342
|
-
params =
|
|
14342
|
+
var _getParams10 = getParams(this),
|
|
14343
|
+
params = _getParams10.params;
|
|
14343
14344
|
return makeRequest({
|
|
14344
14345
|
entityType: 'Comment',
|
|
14345
14346
|
action: 'get',
|
|
@@ -14374,8 +14375,8 @@ var contentfulManagement = (function (exports) {
|
|
|
14374
14375
|
* ```
|
|
14375
14376
|
*/
|
|
14376
14377
|
createTask: function createTask(data) {
|
|
14377
|
-
var
|
|
14378
|
-
params =
|
|
14378
|
+
var _getParams11 = getParams(this),
|
|
14379
|
+
params = _getParams11.params;
|
|
14379
14380
|
return makeRequest({
|
|
14380
14381
|
entityType: 'Task',
|
|
14381
14382
|
action: 'create',
|
|
@@ -14404,8 +14405,8 @@ var contentfulManagement = (function (exports) {
|
|
|
14404
14405
|
*/
|
|
14405
14406
|
getTasks: function getTasks() {
|
|
14406
14407
|
var query = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
14407
|
-
var
|
|
14408
|
-
params =
|
|
14408
|
+
var _getParams12 = getParams(this),
|
|
14409
|
+
params = _getParams12.params;
|
|
14409
14410
|
return makeRequest({
|
|
14410
14411
|
entityType: 'Task',
|
|
14411
14412
|
action: 'getMany',
|
|
@@ -14434,8 +14435,8 @@ var contentfulManagement = (function (exports) {
|
|
|
14434
14435
|
* ```
|
|
14435
14436
|
*/
|
|
14436
14437
|
getTask: function getTask(id) {
|
|
14437
|
-
var
|
|
14438
|
-
params =
|
|
14438
|
+
var _getParams13 = getParams(this),
|
|
14439
|
+
params = _getParams13.params;
|
|
14439
14440
|
return makeRequest({
|
|
14440
14441
|
entityType: 'Task',
|
|
14441
14442
|
action: 'get',
|
|
@@ -17798,9 +17799,9 @@ var contentfulManagement = (function (exports) {
|
|
|
17798
17799
|
* .catch(console.error)
|
|
17799
17800
|
* ```
|
|
17800
17801
|
*/
|
|
17801
|
-
getAiActionInvocation: function getAiActionInvocation(
|
|
17802
|
-
var aiActionId =
|
|
17803
|
-
invocationId =
|
|
17802
|
+
getAiActionInvocation: function getAiActionInvocation(_ref0) {
|
|
17803
|
+
var aiActionId = _ref0.aiActionId,
|
|
17804
|
+
invocationId = _ref0.invocationId;
|
|
17804
17805
|
var raw = this.toPlainObject();
|
|
17805
17806
|
return makeRequest({
|
|
17806
17807
|
entityType: 'AiActionInvocation',
|
|
@@ -22986,7 +22987,7 @@ var contentfulManagement = (function (exports) {
|
|
|
22986
22987
|
wrapOAuthApplication = _entities$oauthApplic.wrapOAuthApplication,
|
|
22987
22988
|
wrapOAuthApplicationCollection = _entities$oauthApplic.wrapOAuthApplicationCollection;
|
|
22988
22989
|
return {
|
|
22989
|
-
version: "12.0.0-beta.
|
|
22990
|
+
version: "12.0.0-beta.7",
|
|
22990
22991
|
/**
|
|
22991
22992
|
* Gets all environment templates for a given organization with the lasted version
|
|
22992
22993
|
* @param organizationId - Organization ID
|
|
@@ -23684,7 +23685,7 @@ var contentfulManagement = (function (exports) {
|
|
|
23684
23685
|
defaults: defaults
|
|
23685
23686
|
};
|
|
23686
23687
|
return {
|
|
23687
|
-
version: "12.0.0-beta.
|
|
23688
|
+
version: "12.0.0-beta.7",
|
|
23688
23689
|
raw: {
|
|
23689
23690
|
getDefaultParams: function getDefaultParams() {
|
|
23690
23691
|
return defaults;
|
|
@@ -24778,7 +24779,7 @@ var contentfulManagement = (function (exports) {
|
|
|
24778
24779
|
function createClient(params) {
|
|
24779
24780
|
var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
24780
24781
|
var sdkMain = opts.type === 'plain' ? 'contentful-management-plain.js' : 'contentful-management.js';
|
|
24781
|
-
var userAgent = getUserAgentHeader("".concat(sdkMain, "/", "12.0.0-beta.
|
|
24782
|
+
var userAgent = getUserAgentHeader("".concat(sdkMain, "/", "12.0.0-beta.7"), params.application, params.integration, params.feature);
|
|
24782
24783
|
var adapter = createAdapter(Object.assign(Object.assign({}, params), {
|
|
24783
24784
|
userAgent: userAgent
|
|
24784
24785
|
}));
|