@strapi/utils 4.1.6-alpha.1 → 4.1.8

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/lib/pagination.js CHANGED
@@ -47,10 +47,7 @@ const withDefaultPagination = (args, { defaults = {}, maxLimit = -1 } = {}) => {
47
47
  const usePagePagination = !isNil(args.page) || !isNil(args.pageSize);
48
48
  const useOffsetPagination = !isNil(args.start) || !isNil(args.limit);
49
49
 
50
- const ensureValidValues = pipe(
51
- ensureMinValues,
52
- ensureMaxValues(maxLimit)
53
- );
50
+ const ensureValidValues = pipe(ensureMinValues, ensureMaxValues(maxLimit));
54
51
 
55
52
  // If there is no pagination attribute, don't modify the payload
56
53
  if (!usePagePagination && !useOffsetPagination) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@strapi/utils",
3
- "version": "4.1.6-alpha.1",
3
+ "version": "4.1.8",
4
4
  "description": "Shared utilities for the Strapi packages",
5
5
  "keywords": [
6
6
  "strapi",
@@ -45,5 +45,5 @@
45
45
  "node": ">=12.22.0 <=16.x.x",
46
46
  "npm": ">=6.0.0"
47
47
  },
48
- "gitHead": "1130511ce3b6762b3b3de972103d891c7bc69520"
48
+ "gitHead": "3f204a0a48d4e1f6dca21683eb6c63041b2f6626"
49
49
  }