@eslint-react/shared
Advanced tools
Comparing version 1.19.0 to 1.20.0-beta.2
@@ -1332,10 +1332,10 @@ 'use strict'; | ||
var decodeSettings = createMemoizedFunction((data) => { | ||
return tools.Data.struct({ | ||
return { | ||
...INITIAL_ESLINT_REACT_SETTINGS, | ||
...parse(ESLintSettingsSchema, data)["react-x"] ?? {} | ||
}); | ||
}; | ||
}, { isEqual: (a, b) => a === b }); | ||
var normalizeSettings = createMemoizedFunction((settings) => { | ||
const additionalComponents = settings.additionalComponents ?? []; | ||
return tools.Data.struct({ | ||
return { | ||
...settings, | ||
@@ -1356,4 +1356,4 @@ additionalComponents: additionalComponents.map((component) => ({ | ||
}, /* @__PURE__ */ new Map()), | ||
version: tsPattern.match(settings.version).with(tsPattern.P.union(tsPattern.P.nullish, "", "detect"), () => localPkg.getPackageInfoSync("react")?.version).otherwise(tools.F.identity) ?? "19.0.0" | ||
}); | ||
version: tsPattern.match(settings.version).with(tsPattern.P.union(tsPattern.P.nullish, "", "detect"), () => localPkg.getPackageInfoSync("react")?.version ?? "19.0.0").otherwise(tools.F.identity) | ||
}; | ||
}, { isEqual: shallowEqual }); | ||
@@ -1360,0 +1360,0 @@ var defineSettings = tools.F.identity; |
{ | ||
"name": "@eslint-react/shared", | ||
"version": "1.19.0", | ||
"version": "1.20.0-beta.2", | ||
"description": "ESLint React's Shared constants and functions.", | ||
@@ -42,3 +42,3 @@ "homepage": "https://github.com/rel1cx/eslint-react", | ||
"ts-pattern": "^5.5.0", | ||
"@eslint-react/tools": "1.19.0" | ||
"@eslint-react/tools": "1.20.0-beta.2" | ||
}, | ||
@@ -45,0 +45,0 @@ "devDependencies": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
240775
4953
1
+ Added@eslint-react/tools@1.20.0-beta.2(transitive)
- Removed@eslint-react/tools@1.19.0(transitive)