contentful-management 11.54.2 → 11.54.3

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.
@@ -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 ? {} : params.query
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.2"}`, params.application, params.integration, params.feature);
50
+ `${sdkMain}/${"11.54.3"}`, 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.2",
3
+ "version": "11.54.3",
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",