@strapi/utils 4.3.8 → 4.3.9

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.
@@ -21,7 +21,7 @@ const getAssociationFromFieldKey = ({ model, field }) => {
21
21
  let association;
22
22
  let attribute;
23
23
 
24
- for (let i = 0; i < fieldParts.length; i++) {
24
+ for (let i = 0; i < fieldParts.length; i += 1) {
25
25
  const part = fieldParts[i];
26
26
  attribute = part;
27
27
 
@@ -11,6 +11,7 @@ const symbolToString = typeof Symbol !== 'undefined' ? Symbol.prototype.toString
11
11
  const SYMBOL_REGEXP = /^Symbol\((.*)\)(.*)$/;
12
12
 
13
13
  function printNumber(val) {
14
+ // eslint-disable-next-line eqeqeq
14
15
  if (val != +val) return 'NaN';
15
16
  const isNegativeZero = val === 0 && 1 / val < 0;
16
17
  return isNegativeZero ? '-0' : `${val}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@strapi/utils",
3
- "version": "4.3.8",
3
+ "version": "4.3.9",
4
4
  "description": "Shared utilities for the Strapi packages",
5
5
  "keywords": [
6
6
  "strapi",
@@ -42,8 +42,8 @@
42
42
  "yup": "0.32.9"
43
43
  },
44
44
  "engines": {
45
- "node": ">=14.19.1 <=16.x.x",
45
+ "node": ">=14.19.1 <=18.x.x",
46
46
  "npm": ">=6.0.0"
47
47
  },
48
- "gitHead": "c44f21d5ba95d3f2fbba239cf241081dddd54dd7"
48
+ "gitHead": "8ebf58d9edb62872acf88d19d1f878b4a1632ff7"
49
49
  }