@eslint-react/shared
Advanced tools
Comparing version 1.20.2-next.2 to 1.20.2-next.3
'use strict'; | ||
var utils = require('@typescript-eslint/utils'); | ||
var tools = require('@eslint-react/tools'); | ||
var eff = require('@eslint-react/eff'); | ||
var tsPattern = require('ts-pattern'); | ||
@@ -225,5 +225,5 @@ var module$1 = require('module'); | ||
try { | ||
return tools.E.right(_require(id)); | ||
return eff.E.right(_require(id)); | ||
} catch { | ||
return tools.E.left(new Error(`Module '${id}' not found`)); | ||
return eff.E.left(new Error(`Module '${id}' not found`)); | ||
} | ||
@@ -234,6 +234,6 @@ } | ||
function getReactVersion(at = (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index.js', document.baseURI).href))) { | ||
return tools.F.pipe( | ||
return eff.F.pipe( | ||
tryRequire("react", at), | ||
tools.E.filterOrLeft(tsPattern.isMatching({ version: tsPattern.P.string }), tools.F.identity), | ||
tools.E.map((mod) => mod.version) | ||
eff.E.filterOrLeft(tsPattern.isMatching({ version: tsPattern.P.string }), eff.F.identity), | ||
eff.E.map((mod) => mod.version) | ||
); | ||
@@ -1385,6 +1385,6 @@ } | ||
}, /* @__PURE__ */ new Map()), | ||
version: tsPattern.match(settings.version).with(tsPattern.P.union(tsPattern.P.nullish, "", "detect"), () => tools.E.getOrElse(getReactVersion(), tools.F.constant("19.0.0"))).otherwise(tools.F.identity) | ||
version: tsPattern.match(settings.version).with(tsPattern.P.union(tsPattern.P.nullish, "", "detect"), () => eff.E.getOrElse(getReactVersion(), eff.F.constant("19.0.0"))).otherwise(eff.F.identity) | ||
}; | ||
}, { isEqual: shallowEqual }); | ||
var defineSettings = tools.F.identity; | ||
var defineSettings = eff.F.identity; | ||
@@ -1391,0 +1391,0 @@ exports.CustomAttributeSchema = CustomAttributeSchema; |
{ | ||
"name": "@eslint-react/shared", | ||
"version": "1.20.2-next.2", | ||
"version": "1.20.2-next.3", | ||
"description": "ESLint React's Shared constants and functions.", | ||
@@ -41,3 +41,3 @@ "homepage": "https://github.com/rel1cx/eslint-react", | ||
"ts-pattern": "^5.6.0", | ||
"@eslint-react/tools": "1.20.2-next.2" | ||
"@eslint-react/eff": "1.20.2-next.3" | ||
}, | ||
@@ -44,0 +44,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
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
238735
+ Added@eslint-react/eff@1.20.2-next.3(transitive)
- Removed@eslint-react/tools@1.20.2-next.2
- Removed@eslint-react/tools@1.20.2-next.2(transitive)