strapi-plugin-navigation 3.0.0-beta.7 → 3.0.0

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.
@@ -13409,8 +13409,7 @@ const getTimestamps = (model) => {
13409
13409
  return attributes;
13410
13410
  };
13411
13411
  const getNonWritableAttributes = (model) => {
13412
- if (!model)
13413
- return [];
13412
+ if (!model) return [];
13414
13413
  const nonWritableAttributes = ___default__default.default.reduce(
13415
13414
  model.attributes,
13416
13415
  (acc, attr, attrName) => attr.writable === false ? acc.concat(attrName) : acc,
@@ -14764,43 +14763,33 @@ const regExpToString = RegExp.prototype.toString;
14764
14763
  const symbolToString = typeof Symbol !== "undefined" ? Symbol.prototype.toString : () => "";
14765
14764
  const SYMBOL_REGEXP = /^Symbol\((.*)\)(.*)$/;
14766
14765
  function printNumber(val) {
14767
- if (val != +val)
14768
- return "NaN";
14766
+ if (val != +val) return "NaN";
14769
14767
  const isNegativeZero2 = val === 0 && 1 / val < 0;
14770
14768
  return isNegativeZero2 ? "-0" : `${val}`;
14771
14769
  }
14772
14770
  function printSimpleValue(val, quoteStrings = false) {
14773
- if (val == null || val === true || val === false)
14774
- return `${val}`;
14775
- if (typeof val === "number")
14776
- return printNumber(val);
14777
- if (typeof val === "string")
14778
- return quoteStrings ? `"${val}"` : val;
14779
- if (typeof val === "function")
14780
- return `[Function ${val.name || "anonymous"}]`;
14781
- if (typeof val === "symbol")
14782
- return symbolToString.call(val).replace(SYMBOL_REGEXP, "Symbol($1)");
14771
+ if (val == null || val === true || val === false) return `${val}`;
14772
+ if (typeof val === "number") return printNumber(val);
14773
+ if (typeof val === "string") return quoteStrings ? `"${val}"` : val;
14774
+ if (typeof val === "function") return `[Function ${val.name || "anonymous"}]`;
14775
+ if (typeof val === "symbol") return symbolToString.call(val).replace(SYMBOL_REGEXP, "Symbol($1)");
14783
14776
  const tag = toString3.call(val).slice(8, -1);
14784
14777
  if (tag === "Date") {
14785
14778
  const v = val;
14786
14779
  return Number.isNaN(v.getTime()) ? `${v}` : v.toISOString();
14787
14780
  }
14788
- if (tag === "Error" || val instanceof Error)
14789
- return `[${errorToString.call(val)}]`;
14790
- if (tag === "RegExp")
14791
- return regExpToString.call(val);
14781
+ if (tag === "Error" || val instanceof Error) return `[${errorToString.call(val)}]`;
14782
+ if (tag === "RegExp") return regExpToString.call(val);
14792
14783
  return null;
14793
14784
  }
14794
14785
  function printValue(value, quoteStrings) {
14795
14786
  const result = printSimpleValue(value, quoteStrings);
14796
- if (result !== null)
14797
- return result;
14787
+ if (result !== null) return result;
14798
14788
  return JSON.stringify(
14799
14789
  value,
14800
14790
  function replacer(key, value2) {
14801
14791
  const result2 = printSimpleValue(this[key], quoteStrings);
14802
- if (result2 !== null)
14803
- return result2;
14792
+ if (result2 !== null) return result2;
14804
14793
  return value2;
14805
14794
  },
14806
14795
  2
@@ -13371,8 +13371,7 @@ const getTimestamps = (model) => {
13371
13371
  return attributes;
13372
13372
  };
13373
13373
  const getNonWritableAttributes = (model) => {
13374
- if (!model)
13375
- return [];
13374
+ if (!model) return [];
13376
13375
  const nonWritableAttributes = ___default.reduce(
13377
13376
  model.attributes,
13378
13377
  (acc, attr, attrName) => attr.writable === false ? acc.concat(attrName) : acc,
@@ -14726,43 +14725,33 @@ const regExpToString = RegExp.prototype.toString;
14726
14725
  const symbolToString = typeof Symbol !== "undefined" ? Symbol.prototype.toString : () => "";
14727
14726
  const SYMBOL_REGEXP = /^Symbol\((.*)\)(.*)$/;
14728
14727
  function printNumber(val) {
14729
- if (val != +val)
14730
- return "NaN";
14728
+ if (val != +val) return "NaN";
14731
14729
  const isNegativeZero2 = val === 0 && 1 / val < 0;
14732
14730
  return isNegativeZero2 ? "-0" : `${val}`;
14733
14731
  }
14734
14732
  function printSimpleValue(val, quoteStrings = false) {
14735
- if (val == null || val === true || val === false)
14736
- return `${val}`;
14737
- if (typeof val === "number")
14738
- return printNumber(val);
14739
- if (typeof val === "string")
14740
- return quoteStrings ? `"${val}"` : val;
14741
- if (typeof val === "function")
14742
- return `[Function ${val.name || "anonymous"}]`;
14743
- if (typeof val === "symbol")
14744
- return symbolToString.call(val).replace(SYMBOL_REGEXP, "Symbol($1)");
14733
+ if (val == null || val === true || val === false) return `${val}`;
14734
+ if (typeof val === "number") return printNumber(val);
14735
+ if (typeof val === "string") return quoteStrings ? `"${val}"` : val;
14736
+ if (typeof val === "function") return `[Function ${val.name || "anonymous"}]`;
14737
+ if (typeof val === "symbol") return symbolToString.call(val).replace(SYMBOL_REGEXP, "Symbol($1)");
14745
14738
  const tag = toString3.call(val).slice(8, -1);
14746
14739
  if (tag === "Date") {
14747
14740
  const v = val;
14748
14741
  return Number.isNaN(v.getTime()) ? `${v}` : v.toISOString();
14749
14742
  }
14750
- if (tag === "Error" || val instanceof Error)
14751
- return `[${errorToString.call(val)}]`;
14752
- if (tag === "RegExp")
14753
- return regExpToString.call(val);
14743
+ if (tag === "Error" || val instanceof Error) return `[${errorToString.call(val)}]`;
14744
+ if (tag === "RegExp") return regExpToString.call(val);
14754
14745
  return null;
14755
14746
  }
14756
14747
  function printValue(value, quoteStrings) {
14757
14748
  const result = printSimpleValue(value, quoteStrings);
14758
- if (result !== null)
14759
- return result;
14749
+ if (result !== null) return result;
14760
14750
  return JSON.stringify(
14761
14751
  value,
14762
14752
  function replacer(key, value2) {
14763
14753
  const result2 = printSimpleValue(this[key], quoteStrings);
14764
- if (result2 !== null)
14765
- return result2;
14754
+ if (result2 !== null) return result2;
14766
14755
  return value2;
14767
14756
  },
14768
14757
  2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "strapi-plugin-navigation",
3
- "version": "3.0.0-beta.7",
3
+ "version": "3.0.0",
4
4
  "description": "Strapi - Navigation plugin",
5
5
  "strapi": {
6
6
  "name": "navigation",
@@ -57,14 +57,14 @@
57
57
  "devDependencies": {
58
58
  "@jest/types": "29.5.x",
59
59
  "@koa/router": "^12.0.1",
60
- "@sensinum/strapi-utils": "^1.0.2",
61
- "@strapi/design-system": "2.0.0-rc.13",
62
- "@strapi/icons": "2.0.0-rc.13",
63
- "@strapi/plugin-graphql": "5.4.0",
64
- "@strapi/sdk-plugin": "^5.2.6",
65
- "@strapi/strapi": "^5.4.1",
66
- "@strapi/types": "^5.4.1",
67
- "@strapi/typescript-utils": "^5.4.1",
60
+ "@sensinum/strapi-utils": "^1.0.4",
61
+ "@strapi/design-system": "2.0.0-rc.14",
62
+ "@strapi/icons": "2.0.0-rc.14",
63
+ "@strapi/plugin-graphql": "^5.5.1",
64
+ "@strapi/sdk-plugin": "^5.2.8",
65
+ "@strapi/strapi": "^5.5.1",
66
+ "@strapi/types": "^5.5.1",
67
+ "@strapi/typescript-utils": "^5.5.1",
68
68
  "@types/jest": "^29.5.12",
69
69
  "@types/koa": "^2.15.0",
70
70
  "@types/koa-bodyparser": "^4.3.12",
@@ -79,7 +79,6 @@
79
79
  "@types/uuid": "^10.0.0",
80
80
  "codecov": "^3.7.2",
81
81
  "formik": "^2.2.9",
82
- "generate-lockfile": "0.0.12",
83
82
  "husky": "7.0.4",
84
83
  "jest": "^29.7.0",
85
84
  "jest-cli": "^29.7.0",
@@ -101,8 +100,8 @@
101
100
  "typescript": "^5.6.2"
102
101
  },
103
102
  "peerDependencies": {
104
- "@strapi/sdk-plugin": "^5.2.7",
105
- "@strapi/strapi": "^5.4.1",
103
+ "@strapi/sdk-plugin": "^5.2.8",
104
+ "@strapi/strapi": "^5.5.1",
106
105
  "react": "^18.3.1",
107
106
  "react-dom": "^18.3.1",
108
107
  "react-router-dom": "^6.26.2",
@@ -156,7 +155,7 @@
156
155
  "navigation"
157
156
  ],
158
157
  "engines": {
159
- "node": ">=18.0.0 <=20.x.x",
158
+ "node": ">=18.0.0 <=22.x.x",
160
159
  "npm": ">=6.0.0"
161
160
  },
162
161
  "license": "MIT"