@eslint-react/shared 4.0.2-beta.2 → 4.0.2-beta.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/index.js +3 -3
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -740,9 +740,9 @@ function constFalse() {
|
|
|
740
740
|
* @since 1.0.0
|
|
741
741
|
*/
|
|
742
742
|
const compose = dual(2, (ab, bc) => (a) => bc(ab(a)));
|
|
743
|
-
function
|
|
743
|
+
function getOrInsertComputed(map, key, callback) {
|
|
744
744
|
if (map.has(key)) return map.get(key);
|
|
745
|
-
const value = callback();
|
|
745
|
+
const value = callback(key);
|
|
746
746
|
map.set(key, value);
|
|
747
747
|
return value;
|
|
748
748
|
}
|
|
@@ -858,7 +858,7 @@ const normalizeSettings = ({ importSource = "react", compilationMode, polymorphi
|
|
|
858
858
|
const cache = /* @__PURE__ */ new Map();
|
|
859
859
|
function getSettingsFromContext(context) {
|
|
860
860
|
const settings = context.settings;
|
|
861
|
-
return
|
|
861
|
+
return getOrInsertComputed(cache, settings["react-x"], () => normalizeSettings(decodeSettings(settings["react-x"])));
|
|
862
862
|
}
|
|
863
863
|
|
|
864
864
|
//#endregion
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-react/shared",
|
|
3
|
-
"version": "4.0.2-beta.
|
|
3
|
+
"version": "4.0.2-beta.4",
|
|
4
4
|
"description": "ESLint React's Shared constants and functions.",
|
|
5
5
|
"homepage": "https://github.com/Rel1cx/eslint-react",
|
|
6
6
|
"bugs": {
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@tsconfig/node24": "^24.0.4",
|
|
39
39
|
"@types/node": "^25.5.0",
|
|
40
40
|
"@types/picomatch": "^4.0.2",
|
|
41
|
-
"tsdown": "^0.21.
|
|
41
|
+
"tsdown": "^0.21.7",
|
|
42
42
|
"@local/configs": "0.0.0",
|
|
43
43
|
"@local/eff": "3.0.0-beta.72"
|
|
44
44
|
},
|