Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@eslint-react/shared

Package Overview
Dependencies
Maintainers
1
Versions
815
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@eslint-react/shared - npm Package Compare versions

Comparing version 1.20.2-next.2 to 1.20.2-next.3

16

dist/index.js
'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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc