@eslint-react/var
Advanced tools
Comparing version 1.5.11 to 1.5.12-beta.8
@@ -12,3 +12,3 @@ 'use strict'; | ||
// ../../../node_modules/.pnpm/effect@3.1.2/node_modules/effect/dist/esm/Function.js | ||
// ../../../node_modules/.pnpm/effect@3.1.5/node_modules/effect/dist/esm/Function.js | ||
var Function_exports = {}; | ||
@@ -188,6 +188,6 @@ __export(Function_exports, { | ||
// ../../../node_modules/.pnpm/effect@3.1.2/node_modules/effect/dist/esm/Equivalence.js | ||
// ../../../node_modules/.pnpm/effect@3.1.5/node_modules/effect/dist/esm/Equivalence.js | ||
var make = (isEquivalent) => (self, that) => self === that || isEquivalent(self, that); | ||
// ../../../node_modules/.pnpm/effect@3.1.2/node_modules/effect/dist/esm/internal/doNotation.js | ||
// ../../../node_modules/.pnpm/effect@3.1.5/node_modules/effect/dist/esm/internal/doNotation.js | ||
var let_ = (map2) => dual(3, (self, name, f) => map2(self, (a) => Object.assign({}, a, { | ||
@@ -203,7 +203,7 @@ [name]: f(a) | ||
// ../../../node_modules/.pnpm/effect@3.1.2/node_modules/effect/dist/esm/internal/version.js | ||
var moduleVersion = "3.1.2"; | ||
// ../../../node_modules/.pnpm/effect@3.1.5/node_modules/effect/dist/esm/internal/version.js | ||
var moduleVersion = "3.1.5"; | ||
var getCurrentVersion = () => moduleVersion; | ||
// ../../../node_modules/.pnpm/effect@3.1.2/node_modules/effect/dist/esm/GlobalValue.js | ||
// ../../../node_modules/.pnpm/effect@3.1.5/node_modules/effect/dist/esm/GlobalValue.js | ||
var globalStoreId = /* @__PURE__ */ Symbol.for(`effect/GlobalValue/globalStoreId/${/* @__PURE__ */ getCurrentVersion()}`); | ||
@@ -221,3 +221,3 @@ if (!(globalStoreId in globalThis)) { | ||
// ../../../node_modules/.pnpm/effect@3.1.2/node_modules/effect/dist/esm/Predicate.js | ||
// ../../../node_modules/.pnpm/effect@3.1.5/node_modules/effect/dist/esm/Predicate.js | ||
var isFunction2 = isFunction; | ||
@@ -229,6 +229,6 @@ var isRecordOrArray = (input) => typeof input === "object" && input !== null; | ||
// ../../../node_modules/.pnpm/effect@3.1.2/node_modules/effect/dist/esm/internal/errors.js | ||
// ../../../node_modules/.pnpm/effect@3.1.5/node_modules/effect/dist/esm/internal/errors.js | ||
var getBugErrorMessage = (message) => `BUG: ${message} - please report an issue at https://github.com/Effect-TS/effect/issues`; | ||
// ../../../node_modules/.pnpm/effect@3.1.2/node_modules/effect/dist/esm/Utils.js | ||
// ../../../node_modules/.pnpm/effect@3.1.5/node_modules/effect/dist/esm/Utils.js | ||
var GenKindTypeId = /* @__PURE__ */ Symbol.for("effect/Gen/GenKind"); | ||
@@ -477,3 +477,3 @@ var isGenKind = (u) => isObject(u) && GenKindTypeId in u; | ||
// ../../../node_modules/.pnpm/effect@3.1.2/node_modules/effect/dist/esm/Hash.js | ||
// ../../../node_modules/.pnpm/effect@3.1.5/node_modules/effect/dist/esm/Hash.js | ||
var randomHashCache = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/Hash/randomHashCache"), () => /* @__PURE__ */ new WeakMap()); | ||
@@ -483,2 +483,5 @@ var pcgr = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/Hash/pcgr"), () => new PCGRandom()); | ||
var hash = (self) => { | ||
if (structuralRegionState.enabled === true) { | ||
return 0; | ||
} | ||
switch (typeof self) { | ||
@@ -513,5 +516,2 @@ case "number": | ||
var random = (self) => { | ||
if (structuralRegionState.enabled === true) { | ||
return 0; | ||
} | ||
if (!randomHashCache.has(self)) { | ||
@@ -549,14 +549,8 @@ randomHashCache.set(self, number(pcgr.integer(Number.MAX_SAFE_INTEGER))); | ||
return function(hash3) { | ||
const original2 = self2[symbol].bind(self2); | ||
if (structuralRegionState.enabled === false) { | ||
Object.defineProperty(self2, symbol, { | ||
value() { | ||
if (structuralRegionState.enabled === true) { | ||
return original2(); | ||
} | ||
return hash3; | ||
}, | ||
enumerable: false | ||
}); | ||
} | ||
Object.defineProperty(self2, symbol, { | ||
value() { | ||
return hash3; | ||
}, | ||
enumerable: false | ||
}); | ||
return hash3; | ||
@@ -567,18 +561,12 @@ }; | ||
const hash2 = arguments[1]; | ||
const original = self[symbol].bind(self); | ||
if (structuralRegionState.enabled === false) { | ||
Object.defineProperty(self, symbol, { | ||
value() { | ||
if (structuralRegionState.enabled === true) { | ||
return original(); | ||
} | ||
return hash2; | ||
}, | ||
enumerable: false | ||
}); | ||
} | ||
Object.defineProperty(self, symbol, { | ||
value() { | ||
return hash2; | ||
}, | ||
enumerable: false | ||
}); | ||
return hash2; | ||
}; | ||
// ../../../node_modules/.pnpm/effect@3.1.2/node_modules/effect/dist/esm/Equal.js | ||
// ../../../node_modules/.pnpm/effect@3.1.5/node_modules/effect/dist/esm/Equal.js | ||
var symbol2 = /* @__PURE__ */ Symbol.for("effect/Equal"); | ||
@@ -602,3 +590,7 @@ function equals() { | ||
if (isEqual(self) && isEqual(that)) { | ||
return hash(self) === hash(that) && self[symbol2](that); | ||
if (hash(self) === hash(that) && self[symbol2](that)) { | ||
return true; | ||
} else { | ||
return structuralRegionState.enabled && structuralRegionState.tester ? structuralRegionState.tester(self, that) : false; | ||
} | ||
} | ||
@@ -630,3 +622,3 @@ } | ||
// ../../../node_modules/.pnpm/effect@3.1.2/node_modules/effect/dist/esm/Inspectable.js | ||
// ../../../node_modules/.pnpm/effect@3.1.5/node_modules/effect/dist/esm/Inspectable.js | ||
var NodeInspectSymbol = /* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom"); | ||
@@ -643,3 +635,3 @@ var toJSON = (x) => { | ||
// ../../../node_modules/.pnpm/effect@3.1.2/node_modules/effect/dist/esm/Pipeable.js | ||
// ../../../node_modules/.pnpm/effect@3.1.5/node_modules/effect/dist/esm/Pipeable.js | ||
var pipeArguments = (self, args) => { | ||
@@ -675,3 +667,3 @@ switch (args.length) { | ||
// ../../../node_modules/.pnpm/effect@3.1.2/node_modules/effect/dist/esm/internal/effectable.js | ||
// ../../../node_modules/.pnpm/effect@3.1.5/node_modules/effect/dist/esm/internal/effectable.js | ||
var EffectTypeId = /* @__PURE__ */ Symbol.for("effect/Effect"); | ||
@@ -737,3 +729,3 @@ var StreamTypeId = /* @__PURE__ */ Symbol.for("effect/Stream"); | ||
// ../../../node_modules/.pnpm/effect@3.1.2/node_modules/effect/dist/esm/internal/option.js | ||
// ../../../node_modules/.pnpm/effect@3.1.5/node_modules/effect/dist/esm/internal/option.js | ||
var TypeId = /* @__PURE__ */ Symbol.for("effect/Option"); | ||
@@ -756,3 +748,3 @@ var CommonProto = { | ||
[symbol2](that) { | ||
return isOption(that) && isSome(that) && equals(that.value, this.value); | ||
return isOption(that) && isSome(that) && equals(this.value, that.value); | ||
}, | ||
@@ -797,3 +789,3 @@ [symbol]() { | ||
// ../../../node_modules/.pnpm/effect@3.1.2/node_modules/effect/dist/esm/internal/either.js | ||
// ../../../node_modules/.pnpm/effect@3.1.5/node_modules/effect/dist/esm/internal/either.js | ||
var TypeId2 = /* @__PURE__ */ Symbol.for("effect/Either"); | ||
@@ -816,3 +808,3 @@ var CommonProto2 = { | ||
[symbol2](that) { | ||
return isEither(that) && isRight(that) && equals(that.right, this.right); | ||
return isEither(that) && isRight(that) && equals(this.right, that.right); | ||
}, | ||
@@ -834,3 +826,3 @@ [symbol]() { | ||
[symbol2](that) { | ||
return isEither(that) && isLeft(that) && equals(that.left, this.left); | ||
return isEither(that) && isLeft(that) && equals(this.left, that.left); | ||
}, | ||
@@ -864,3 +856,3 @@ [symbol]() { | ||
// ../../../node_modules/.pnpm/effect@3.1.2/node_modules/effect/dist/esm/Option.js | ||
// ../../../node_modules/.pnpm/effect@3.1.5/node_modules/effect/dist/esm/Option.js | ||
var Option_exports = {}; | ||
@@ -927,6 +919,6 @@ __export(Option_exports, { | ||
// ../../../node_modules/.pnpm/effect@3.1.2/node_modules/effect/dist/esm/Order.js | ||
// ../../../node_modules/.pnpm/effect@3.1.5/node_modules/effect/dist/esm/Order.js | ||
var make2 = (compare) => (self, that) => self === that ? 0 : compare(self, that); | ||
// ../../../node_modules/.pnpm/effect@3.1.2/node_modules/effect/dist/esm/Option.js | ||
// ../../../node_modules/.pnpm/effect@3.1.5/node_modules/effect/dist/esm/Option.js | ||
var TypeId3 = /* @__PURE__ */ Symbol.for("effect/Option"); | ||
@@ -1099,3 +1091,3 @@ var none2 = () => none; | ||
// ../../../node_modules/.pnpm/effect@3.1.2/node_modules/effect/dist/esm/MutableRef.js | ||
// ../../../node_modules/.pnpm/effect@3.1.5/node_modules/effect/dist/esm/MutableRef.js | ||
var MutableRef_exports = {}; | ||
@@ -1102,0 +1094,0 @@ __export(MutableRef_exports, { |
{ | ||
"name": "@eslint-react/var", | ||
"version": "1.5.11", | ||
"version": "1.5.12-beta.8", | ||
"description": "TSESTree AST utility module for static analysis of variables", | ||
@@ -38,13 +38,13 @@ "homepage": "https://github.com/rel1cx/eslint-react", | ||
"dependencies": { | ||
"@typescript-eslint/scope-manager": "^7.8.0", | ||
"@typescript-eslint/types": "^7.8.0", | ||
"@typescript-eslint/utils": "^7.8.0", | ||
"@typescript-eslint/scope-manager": "^7.9.0", | ||
"@typescript-eslint/types": "^7.9.0", | ||
"@typescript-eslint/utils": "^7.9.0", | ||
"string-ts": "2.1.1", | ||
"valibot": "0.30.0", | ||
"@eslint-react/tools": "1.5.11", | ||
"@eslint-react/types": "1.5.11", | ||
"@eslint-react/ast": "1.5.11" | ||
"@eslint-react/tools": "1.5.12-beta.8", | ||
"@eslint-react/ast": "1.5.12-beta.8", | ||
"@eslint-react/types": "1.5.12-beta.8" | ||
}, | ||
"devDependencies": { | ||
"effect": "3.1.2" | ||
"effect": "3.1.5" | ||
}, | ||
@@ -51,0 +51,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
74148
2348
1
+ Added@eslint-react/ast@1.5.12-beta.8(transitive)
+ Added@eslint-react/tools@1.5.12-beta.8(transitive)
+ Added@eslint-react/types@1.5.12-beta.8(transitive)
- Removed@eslint-react/ast@1.5.11(transitive)
- Removed@eslint-react/tools@1.5.11(transitive)
- Removed@eslint-react/types@1.5.11(transitive)