contentful-management 11.54.2 → 11.54.4
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 +49 -13
- package/dist/contentful-management.browser.js.map +1 -1
- package/dist/contentful-management.browser.min.js +1 -1
- package/dist/contentful-management.node.js +261 -165
- 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/concept-scheme.js +1 -1
- package/dist/es-modules/adapters/REST/endpoints/concept.js +2 -3
- package/dist/es-modules/contentful-management.js +1 -1
- package/package.json +2 -2
|
@@ -17,7 +17,7 @@ export const getMany = (http, params) => {
|
|
|
17
17
|
var _params$query$pageUrl, _params$query, _params$query2;
|
|
18
18
|
const url = (_params$query$pageUrl = (_params$query = params.query) === null || _params$query === void 0 ? void 0 : _params$query.pageUrl) !== null && _params$query$pageUrl !== void 0 ? _params$query$pageUrl : basePath(params.organizationId);
|
|
19
19
|
return raw.get(http, url, {
|
|
20
|
-
params: (_params$query2 = params.query) !== null && _params$query2 !== void 0 && _params$query2.pageUrl ?
|
|
20
|
+
params: (_params$query2 = params.query) !== null && _params$query2 !== void 0 && _params$query2.pageUrl ? undefined : params.query
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
23
|
export const getTotal = (http, params) => raw.get(http, `${basePath(params.organizationId)}/total`);
|
|
@@ -76,10 +76,9 @@ export const getTotal = (http, params) => raw.get(http, `${basePath(params.organ
|
|
|
76
76
|
function cursorBasedCollection(path, params) {
|
|
77
77
|
var _params$query, _params$query2;
|
|
78
78
|
return (_params$query = params.query) !== null && _params$query !== void 0 && _params$query.pageUrl ? {
|
|
79
|
-
url: (_params$query2 = params.query) === null || _params$query2 === void 0 ? void 0 : _params$query2.pageUrl
|
|
80
|
-
queryParams: {}
|
|
79
|
+
url: (_params$query2 = params.query) === null || _params$query2 === void 0 ? void 0 : _params$query2.pageUrl
|
|
81
80
|
} : {
|
|
82
81
|
url: `${basePath(params.organizationId)}${path}`,
|
|
83
|
-
queryParams: params.query
|
|
82
|
+
queryParams: params.query
|
|
84
83
|
};
|
|
85
84
|
}
|
|
@@ -47,7 +47,7 @@ function createClient(params, opts = {}) {
|
|
|
47
47
|
const sdkMain = opts.type === 'plain' ? 'contentful-management-plain.js' : 'contentful-management.js';
|
|
48
48
|
const userAgent = getUserAgentHeader(
|
|
49
49
|
// @ts-expect-error
|
|
50
|
-
`${sdkMain}/${"11.54.
|
|
50
|
+
`${sdkMain}/${"11.54.4"}`, params.application, params.integration, params.feature);
|
|
51
51
|
const adapter = createAdapter(_objectSpread(_objectSpread({}, params), {}, {
|
|
52
52
|
userAgent
|
|
53
53
|
}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "contentful-management",
|
|
3
|
-
"version": "11.54.
|
|
3
|
+
"version": "11.54.4",
|
|
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",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
],
|
|
68
68
|
"dependencies": {
|
|
69
69
|
"@contentful/rich-text-types": "^16.6.1",
|
|
70
|
-
"axios": "^1.
|
|
70
|
+
"axios": "^1.11.0",
|
|
71
71
|
"contentful-sdk-core": "^9.0.1",
|
|
72
72
|
"fast-copy": "^3.0.0",
|
|
73
73
|
"globals": "^15.15.0"
|