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

@eslint-react/eff

Package Overview
Dependencies
Maintainers
1
Versions
101
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@eslint-react/eff - npm Package Compare versions

Comparing version 1.23.2 to 1.23.3-beta.2

2

dist/index.d.ts

@@ -1,3 +0,1 @@

import * as Either from 'effect/Either';
export { Either as E };
import * as Function from 'effect/Function';

@@ -4,0 +2,0 @@ export { Function as F };

402

dist/index.js
'use strict';
var __defProp = Object.defineProperty;
var __export = (target, all4) => {
for (var name in all4)
__defProp(target, name, { get: all4[name], enumerable: true });
var __export = (target, all3) => {
for (var name in all3)
__defProp(target, name, { get: all3[name], enumerable: true });
};
// ../../../node_modules/.pnpm/effect@3.12.1/node_modules/effect/dist/esm/Either.js
var Either_exports = {};
__export(Either_exports, {
Do: () => Do,
TypeId: () => TypeId3,
all: () => all2,
andThen: () => andThen,
ap: () => ap,
bind: () => bind2,
bindTo: () => bindTo2,
filterOrLeft: () => filterOrLeft,
flatMap: () => flatMap,
flip: () => flip2,
fromNullable: () => fromNullable,
fromOption: () => fromOption2,
gen: () => gen,
getEquivalence: () => getEquivalence,
getLeft: () => getLeft2,
getOrElse: () => getOrElse,
getOrNull: () => getOrNull,
getOrThrow: () => getOrThrow,
getOrThrowWith: () => getOrThrowWith,
getOrUndefined: () => getOrUndefined,
getRight: () => getRight2,
isEither: () => isEither2,
isLeft: () => isLeft2,
isRight: () => isRight2,
left: () => left2,
let: () => let_2,
liftPredicate: () => liftPredicate,
map: () => map,
mapBoth: () => mapBoth,
mapLeft: () => mapLeft,
match: () => match,
merge: () => merge,
orElse: () => orElse,
right: () => right2,
try: () => try_,
zipWith: () => zipWith
});
// ../../../node_modules/.pnpm/effect@3.12.1/node_modules/effect/dist/esm/Function.js

@@ -225,16 +184,64 @@ var Function_exports = {};

// ../../../node_modules/.pnpm/effect@3.12.1/node_modules/effect/dist/esm/Equivalence.js
var make = (isEquivalent) => (self, that) => self === that || isEquivalent(self, that);
// ../../../node_modules/.pnpm/effect@3.12.1/node_modules/effect/dist/esm/Option.js
var Option_exports = {};
__export(Option_exports, {
Do: () => Do,
TypeId: () => TypeId3,
all: () => all2,
andThen: () => andThen,
ap: () => ap,
as: () => as,
asVoid: () => asVoid,
bind: () => bind2,
bindTo: () => bindTo2,
composeK: () => composeK,
contains: () => contains,
containsWith: () => containsWith,
exists: () => exists,
filter: () => filter,
filterMap: () => filterMap,
firstSomeOf: () => firstSomeOf,
flatMap: () => flatMap,
flatMapNullable: () => flatMapNullable,
flatten: () => flatten,
fromIterable: () => fromIterable,
fromNullable: () => fromNullable,
gen: () => gen,
getEquivalence: () => getEquivalence,
getLeft: () => getLeft2,
getOrElse: () => getOrElse,
getOrNull: () => getOrNull,
getOrThrow: () => getOrThrow,
getOrThrowWith: () => getOrThrowWith,
getOrUndefined: () => getOrUndefined,
getOrder: () => getOrder,
getRight: () => getRight2,
isNone: () => isNone2,
isOption: () => isOption2,
isSome: () => isSome2,
let: () => let_2,
lift2: () => lift2,
liftNullable: () => liftNullable,
liftPredicate: () => liftPredicate,
liftThrowable: () => liftThrowable,
map: () => map,
match: () => match,
none: () => none2,
orElse: () => orElse,
orElseEither: () => orElseEither,
orElseSome: () => orElseSome,
partitionMap: () => partitionMap,
product: () => product2,
productMany: () => productMany2,
reduceCompact: () => reduceCompact,
some: () => some3,
tap: () => tap,
toArray: () => toArray,
toRefinement: () => toRefinement,
void: () => void_,
zipLeft: () => zipLeft,
zipRight: () => zipRight,
zipWith: () => zipWith
});
// ../../../node_modules/.pnpm/effect@3.12.1/node_modules/effect/dist/esm/internal/doNotation.js
var let_ = (map3) => dual(3, (self, name, f) => map3(self, (a) => Object.assign({}, a, {
[name]: f(a)
})));
var bindTo = (map3) => dual(2, (self, name) => map3(self, (a) => ({
[name]: a
})));
var bind = (map3, flatMap3) => dual(3, (self, name, f) => flatMap3(self, (a) => map3(f(a), (b) => Object.assign({}, a, {
[name]: b
}))));
// ../../../node_modules/.pnpm/effect@3.12.1/node_modules/effect/dist/esm/internal/version.js

@@ -611,2 +618,16 @@ var moduleVersion = "3.12.1";

// ../../../node_modules/.pnpm/effect@3.12.1/node_modules/effect/dist/esm/Equivalence.js
var make = (isEquivalent) => (self, that) => self === that || isEquivalent(self, that);
// ../../../node_modules/.pnpm/effect@3.12.1/node_modules/effect/dist/esm/internal/doNotation.js
var let_ = (map2) => dual(3, (self, name, f) => map2(self, (a) => Object.assign({}, a, {
[name]: f(a)
})));
var bindTo = (map2) => dual(2, (self, name) => map2(self, (a) => ({
[name]: a
})));
var bind = (map2, flatMap2) => dual(3, (self, name, f) => flatMap2(self, (a) => map2(f(a), (b) => Object.assign({}, a, {
[name]: b
}))));
// ../../../node_modules/.pnpm/effect@3.12.1/node_modules/effect/dist/esm/Inspectable.js

@@ -842,10 +863,10 @@ var NodeInspectSymbol = /* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom");

var isRight = (ma) => ma._tag === "Right";
var left = (left3) => {
var left = (left2) => {
const a = Object.create(LeftProto);
a.left = left3;
a.left = left2;
return a;
};
var right = (right3) => {
var right = (right2) => {
const a = Object.create(RightProto);
a.right = right3;
a.right = right2;
return a;

@@ -855,191 +876,3 @@ };

var getRight = (self) => isLeft(self) ? none : some2(self.right);
var fromOption = /* @__PURE__ */ dual(2, (self, onNone) => isNone(self) ? left(onNone()) : right(self.value));
// ../../../node_modules/.pnpm/effect@3.12.1/node_modules/effect/dist/esm/Either.js
var TypeId3 = TypeId2;
var right2 = right;
var left2 = left;
var fromNullable = /* @__PURE__ */ dual(2, (self, onNullable) => self == null ? left2(onNullable(self)) : right2(self));
var fromOption2 = fromOption;
var try_ = (evaluate) => {
if (isFunction2(evaluate)) {
try {
return right2(evaluate());
} catch (e) {
return left2(e);
}
} else {
try {
return right2(evaluate.try());
} catch (e) {
return left2(evaluate.catch(e));
}
}
};
var isEither2 = isEither;
var isLeft2 = isLeft;
var isRight2 = isRight;
var getRight2 = getRight;
var getLeft2 = getLeft;
var getEquivalence = ({
left: left3,
right: right3
}) => make((x, y) => isLeft2(x) ? isLeft2(y) && left3(x.left, y.left) : isRight2(y) && right3(x.right, y.right));
var mapBoth = /* @__PURE__ */ dual(2, (self, {
onLeft,
onRight
}) => isLeft2(self) ? left2(onLeft(self.left)) : right2(onRight(self.right)));
var mapLeft = /* @__PURE__ */ dual(2, (self, f) => isLeft2(self) ? left2(f(self.left)) : right2(self.right));
var map = /* @__PURE__ */ dual(2, (self, f) => isRight2(self) ? right2(f(self.right)) : left2(self.left));
var match = /* @__PURE__ */ dual(2, (self, {
onLeft,
onRight
}) => isLeft2(self) ? onLeft(self.left) : onRight(self.right));
var liftPredicate = /* @__PURE__ */ dual(3, (a, predicate, orLeftWith) => predicate(a) ? right2(a) : left2(orLeftWith(a)));
var filterOrLeft = /* @__PURE__ */ dual(3, (self, predicate, orLeftWith) => flatMap(self, (r) => predicate(r) ? right2(r) : left2(orLeftWith(r))));
var merge = /* @__PURE__ */ match({
onLeft: identity,
onRight: identity
});
var getOrElse = /* @__PURE__ */ dual(2, (self, onLeft) => isLeft2(self) ? onLeft(self.left) : self.right);
var getOrNull = /* @__PURE__ */ getOrElse(constNull);
var getOrUndefined = /* @__PURE__ */ getOrElse(constUndefined);
var getOrThrowWith = /* @__PURE__ */ dual(2, (self, onLeft) => {
if (isRight2(self)) {
return self.right;
}
throw onLeft(self.left);
});
var getOrThrow = /* @__PURE__ */ getOrThrowWith(() => new Error("getOrThrow called on a Left"));
var orElse = /* @__PURE__ */ dual(2, (self, that) => isLeft2(self) ? that(self.left) : right2(self.right));
var flatMap = /* @__PURE__ */ dual(2, (self, f) => isLeft2(self) ? left2(self.left) : f(self.right));
var andThen = /* @__PURE__ */ dual(2, (self, f) => flatMap(self, (a) => {
const b = isFunction2(f) ? f(a) : f;
return isEither2(b) ? b : right2(b);
}));
var zipWith = /* @__PURE__ */ dual(3, (self, that, f) => flatMap(self, (r) => map(that, (r2) => f(r, r2))));
var ap = /* @__PURE__ */ dual(2, (self, that) => zipWith(self, that, (f, a) => f(a)));
var all2 = (input) => {
if (Symbol.iterator in input) {
const out2 = [];
for (const e of input) {
if (isLeft2(e)) {
return e;
}
out2.push(e.right);
}
return right2(out2);
}
const out = {};
for (const key of Object.keys(input)) {
const e = input[key];
if (isLeft2(e)) {
return e;
}
out[key] = e.right;
}
return right2(out);
};
var flip2 = (self) => isLeft2(self) ? right2(self.left) : left2(self.right);
var adapter2 = /* @__PURE__ */ adapter();
var gen = (...args) => {
const f = args.length === 1 ? args[0] : args[1].bind(args[0]);
const iterator = f(adapter2);
let state = iterator.next();
if (state.done) {
return right2(state.value);
} else {
let current = state.value;
if (isGenKind(current)) {
current = current.value;
} else {
current = yieldWrapGet(current);
}
if (isLeft2(current)) {
return current;
}
while (!state.done) {
state = iterator.next(current.right);
if (!state.done) {
current = state.value;
if (isGenKind(current)) {
current = current.value;
} else {
current = yieldWrapGet(current);
}
if (isLeft2(current)) {
return current;
}
}
}
return right2(state.value);
}
};
var Do = /* @__PURE__ */ right2({});
var bind2 = /* @__PURE__ */ bind(map, flatMap);
var bindTo2 = /* @__PURE__ */ bindTo(map);
var let_2 = /* @__PURE__ */ let_(map);
// ../../../node_modules/.pnpm/effect@3.12.1/node_modules/effect/dist/esm/Option.js
var Option_exports = {};
__export(Option_exports, {
Do: () => Do2,
TypeId: () => TypeId4,
all: () => all3,
andThen: () => andThen2,
ap: () => ap2,
as: () => as,
asVoid: () => asVoid,
bind: () => bind3,
bindTo: () => bindTo3,
composeK: () => composeK,
contains: () => contains,
containsWith: () => containsWith,
exists: () => exists,
filter: () => filter,
filterMap: () => filterMap,
firstSomeOf: () => firstSomeOf,
flatMap: () => flatMap2,
flatMapNullable: () => flatMapNullable,
flatten: () => flatten,
fromIterable: () => fromIterable,
fromNullable: () => fromNullable2,
gen: () => gen2,
getEquivalence: () => getEquivalence2,
getLeft: () => getLeft3,
getOrElse: () => getOrElse2,
getOrNull: () => getOrNull2,
getOrThrow: () => getOrThrow2,
getOrThrowWith: () => getOrThrowWith2,
getOrUndefined: () => getOrUndefined2,
getOrder: () => getOrder,
getRight: () => getRight3,
isNone: () => isNone2,
isOption: () => isOption2,
isSome: () => isSome2,
let: () => let_3,
lift2: () => lift2,
liftNullable: () => liftNullable,
liftPredicate: () => liftPredicate2,
liftThrowable: () => liftThrowable,
map: () => map2,
match: () => match2,
none: () => none2,
orElse: () => orElse2,
orElseEither: () => orElseEither,
orElseSome: () => orElseSome,
partitionMap: () => partitionMap,
product: () => product2,
productMany: () => productMany2,
reduceCompact: () => reduceCompact,
some: () => some3,
tap: () => tap,
toArray: () => toArray,
toRefinement: () => toRefinement,
void: () => void_,
zipLeft: () => zipLeft,
zipRight: () => zipRight,
zipWith: () => zipWith2
});
// ../../../node_modules/.pnpm/effect@3.12.1/node_modules/effect/dist/esm/Order.js

@@ -1049,3 +882,3 @@ var make2 = (compare) => (self, that) => self === that ? 0 : compare(self, that);

// ../../../node_modules/.pnpm/effect@3.12.1/node_modules/effect/dist/esm/Option.js
var TypeId4 = /* @__PURE__ */ Symbol.for("effect/Option");
var TypeId3 = /* @__PURE__ */ Symbol.for("effect/Option");
var none2 = () => none;

@@ -1056,3 +889,3 @@ var some3 = some2;

var isSome2 = isSome;
var match2 = /* @__PURE__ */ dual(2, (self, {
var match = /* @__PURE__ */ dual(2, (self, {
onNone,

@@ -1068,8 +901,8 @@ onSome

};
var getRight3 = getRight;
var getLeft3 = getLeft;
var getOrElse2 = /* @__PURE__ */ dual(2, (self, onNone) => isNone2(self) ? onNone() : self.value);
var orElse2 = /* @__PURE__ */ dual(2, (self, that) => isNone2(self) ? that() : self);
var getRight2 = getRight;
var getLeft2 = getLeft;
var getOrElse = /* @__PURE__ */ dual(2, (self, onNone) => isNone2(self) ? onNone() : self.value);
var orElse = /* @__PURE__ */ dual(2, (self, that) => isNone2(self) ? that() : self);
var orElseSome = /* @__PURE__ */ dual(2, (self, onNone) => isNone2(self) ? some3(onNone()) : self);
var orElseEither = /* @__PURE__ */ dual(2, (self, that) => isNone2(self) ? map2(that(), right) : map2(self, left));
var orElseEither = /* @__PURE__ */ dual(2, (self, that) => isNone2(self) ? map(that(), right) : map(self, left));
var firstSomeOf = (collection) => {

@@ -1084,6 +917,6 @@ let out = none2();

};
var fromNullable2 = (nullableValue) => nullableValue == null ? none2() : some3(nullableValue);
var liftNullable = (f) => (...a) => fromNullable2(f(...a));
var getOrNull2 = /* @__PURE__ */ getOrElse2(constNull);
var getOrUndefined2 = /* @__PURE__ */ getOrElse2(constUndefined);
var fromNullable = (nullableValue) => nullableValue == null ? none2() : some3(nullableValue);
var liftNullable = (f) => (...a) => fromNullable(f(...a));
var getOrNull = /* @__PURE__ */ getOrElse(constNull);
var getOrUndefined = /* @__PURE__ */ getOrElse(constUndefined);
var liftThrowable = (f) => (...a) => {

@@ -1096,3 +929,3 @@ try {

};
var getOrThrowWith2 = /* @__PURE__ */ dual(2, (self, onNone) => {
var getOrThrowWith = /* @__PURE__ */ dual(2, (self, onNone) => {
if (isSome2(self)) {

@@ -1103,18 +936,18 @@ return self.value;

});
var getOrThrow2 = /* @__PURE__ */ getOrThrowWith2(() => new Error("getOrThrow called on a None"));
var map2 = /* @__PURE__ */ dual(2, (self, f) => isNone2(self) ? none2() : some3(f(self.value)));
var as = /* @__PURE__ */ dual(2, (self, b) => map2(self, () => b));
var getOrThrow = /* @__PURE__ */ getOrThrowWith(() => new Error("getOrThrow called on a None"));
var map = /* @__PURE__ */ dual(2, (self, f) => isNone2(self) ? none2() : some3(f(self.value)));
var as = /* @__PURE__ */ dual(2, (self, b) => map(self, () => b));
var asVoid = /* @__PURE__ */ as(undefined);
var void_ = /* @__PURE__ */ some3(undefined);
var flatMap2 = /* @__PURE__ */ dual(2, (self, f) => isNone2(self) ? none2() : f(self.value));
var andThen2 = /* @__PURE__ */ dual(2, (self, f) => flatMap2(self, (a) => {
var flatMap = /* @__PURE__ */ dual(2, (self, f) => isNone2(self) ? none2() : f(self.value));
var andThen = /* @__PURE__ */ dual(2, (self, f) => flatMap(self, (a) => {
const b = isFunction(f) ? f(a) : f;
return isOption2(b) ? b : some3(b);
}));
var flatMapNullable = /* @__PURE__ */ dual(2, (self, f) => isNone2(self) ? none2() : fromNullable2(f(self.value)));
var flatten = /* @__PURE__ */ flatMap2(identity);
var zipRight = /* @__PURE__ */ dual(2, (self, that) => flatMap2(self, () => that));
var composeK = /* @__PURE__ */ dual(2, (afb, bfc) => (a) => flatMap2(afb(a), bfc));
var flatMapNullable = /* @__PURE__ */ dual(2, (self, f) => isNone2(self) ? none2() : fromNullable(f(self.value)));
var flatten = /* @__PURE__ */ flatMap(identity);
var zipRight = /* @__PURE__ */ dual(2, (self, that) => flatMap(self, () => that));
var composeK = /* @__PURE__ */ dual(2, (afb, bfc) => (a) => flatMap(afb(a), bfc));
var zipLeft = /* @__PURE__ */ dual(2, (self, that) => tap(self, () => that));
var tap = /* @__PURE__ */ dual(2, (self, f) => flatMap2(self, (a) => map2(f(a), () => a)));
var tap = /* @__PURE__ */ dual(2, (self, f) => flatMap(self, (a) => map(f(a), () => a)));
var product2 = (self, that) => isSome2(self) && isSome2(that) ? some3([self.value, that.value]) : none2();

@@ -1134,3 +967,3 @@ var productMany2 = (self, collection) => {

};
var all3 = (input) => {
var all2 = (input) => {
if (Symbol.iterator in input) {

@@ -1156,4 +989,4 @@ const out2 = [];

};
var zipWith2 = /* @__PURE__ */ dual(3, (self, that, f) => map2(product2(self, that), ([a, b]) => f(a, b)));
var ap2 = /* @__PURE__ */ dual(2, (self, that) => zipWith2(self, that, (f, a) => f(a)));
var zipWith = /* @__PURE__ */ dual(3, (self, that, f) => map(product2(self, that), ([a, b]) => f(a, b)));
var ap = /* @__PURE__ */ dual(2, (self, that) => zipWith(self, that, (f, a) => f(a)));
var reduceCompact = /* @__PURE__ */ dual(3, (self, b, f) => {

@@ -1178,6 +1011,6 @@ let out = b;

var filter = /* @__PURE__ */ dual(2, (self, predicate) => filterMap(self, (b) => predicate(b) ? some2(b) : none));
var getEquivalence2 = (isEquivalent) => make((x, y) => isNone2(x) ? isNone2(y) : isNone2(y) ? false : isEquivalent(x.value, y.value));
var getEquivalence = (isEquivalent) => make((x, y) => isNone2(x) ? isNone2(y) : isNone2(y) ? false : isEquivalent(x.value, y.value));
var getOrder = (O) => make2((self, that) => isSome2(self) ? isSome2(that) ? O(self.value, that.value) : 1 : -1);
var lift2 = (f) => dual(2, (self, that) => zipWith2(self, that, f));
var liftPredicate2 = /* @__PURE__ */ dual(2, (b, predicate) => predicate(b) ? some3(b) : none2());
var lift2 = (f) => dual(2, (self, that) => zipWith(self, that, f));
var liftPredicate = /* @__PURE__ */ dual(2, (b, predicate) => predicate(b) ? some3(b) : none2());
var containsWith = (isEquivalent) => dual(2, (self, a) => isNone2(self) ? false : isEquivalent(self.value, a));

@@ -1187,8 +1020,8 @@ var _equivalence = /* @__PURE__ */ equivalence();

var exists = /* @__PURE__ */ dual(2, (self, refinement) => isNone2(self) ? false : refinement(self.value));
var bindTo3 = /* @__PURE__ */ bindTo(map2);
var let_3 = /* @__PURE__ */ let_(map2);
var bind3 = /* @__PURE__ */ bind(map2, flatMap2);
var Do2 = /* @__PURE__ */ some3({});
var adapter3 = /* @__PURE__ */ adapter();
var gen2 = (...args) => {
var bindTo2 = /* @__PURE__ */ bindTo(map);
var let_2 = /* @__PURE__ */ let_(map);
var bind2 = /* @__PURE__ */ bind(map, flatMap);
var Do = /* @__PURE__ */ some3({});
var adapter2 = /* @__PURE__ */ adapter();
var gen = (...args) => {
let f;

@@ -1200,3 +1033,3 @@ if (args.length === 1) {

}
const iterator = f(adapter3);
const iterator = f(adapter2);
let state = iterator.next();

@@ -1233,3 +1066,2 @@ if (state.done) {

exports.E = Either_exports;
exports.F = Function_exports;

@@ -1236,0 +1068,0 @@ exports.O = Option_exports;

{
"name": "@eslint-react/eff",
"version": "1.23.2",
"version": "1.23.3-beta.2",
"description": "A subset of effect to produce a more lightweight version of the library.",

@@ -16,2 +16,3 @@ "homepage": "https://github.com/rEl1cx/eslint-react",

"author": "Eva1ent<rel1cx@proton.me>",
"sideEffects": false,
"exports": {

@@ -31,2 +32,3 @@ ".": {

"main": "dist/index.js",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",

@@ -46,4 +48,2 @@ "files": [

},
"sideEffects": false,
"module": "dist/index.mjs",
"scripts": {

@@ -50,0 +50,0 @@ "build": "tsup",

Sorry, the diff of this file is not supported yet

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