@eslint-react/shared
Advanced tools
Comparing version
@@ -468,3 +468,3 @@ 'use strict'; | ||
if (key in input || (valueSchema.type === "exact_optional" || valueSchema.type === "optional" || valueSchema.type === "nullish") && // @ts-expect-error | ||
valueSchema.default !== undefined) { | ||
valueSchema.default !== void 0) { | ||
const value2 = key in input ? ( | ||
@@ -503,7 +503,7 @@ // @ts-expect-error | ||
dataset.value[key] = valueDataset.value; | ||
} else if (valueSchema.fallback !== undefined) { | ||
} else if (valueSchema.fallback !== void 0) { | ||
dataset.value[key] = /* @__PURE__ */ getFallback(valueSchema); | ||
} else if (valueSchema.type !== "exact_optional" && valueSchema.type !== "optional" && valueSchema.type !== "nullish") { | ||
_addIssue(this, "key", dataset, config2, { | ||
input: undefined, | ||
input: void 0, | ||
expected: `"${key}"`, | ||
@@ -547,7 +547,7 @@ path: [ | ||
"~run"(dataset, config2) { | ||
if (dataset.value === undefined) { | ||
if (this.default !== undefined) { | ||
if (dataset.value === void 0) { | ||
if (this.default !== void 0) { | ||
dataset.value = /* @__PURE__ */ getDefault(this, dataset, config2); | ||
} | ||
if (dataset.value === undefined) { | ||
if (dataset.value === void 0) { | ||
dataset.typed = true; | ||
@@ -1082,3 +1082,3 @@ return dataset; | ||
return function isEqual(a, b) { | ||
var _a2 = createState(), _b = _a2.cache, cache = _b === undefined ? circular ? /* @__PURE__ */ new WeakMap() : undefined : _b, meta = _a2.meta; | ||
var _a2 = createState(), _b = _a2.cache, cache = _b === void 0 ? circular ? /* @__PURE__ */ new WeakMap() : void 0 : _b, meta = _a2.meta; | ||
return comparator(a, b, { | ||
@@ -1097,3 +1097,3 @@ cache, | ||
equals, | ||
meta: undefined, | ||
meta: void 0, | ||
strict | ||
@@ -1104,5 +1104,5 @@ }); | ||
var state = { | ||
cache: undefined, | ||
cache: void 0, | ||
equals, | ||
meta: undefined, | ||
meta: void 0, | ||
strict | ||
@@ -1146,6 +1146,6 @@ }; | ||
function createCustomEqual(options) { | ||
if (options === undefined) { | ||
if (options === void 0) { | ||
options = {}; | ||
} | ||
var _a = options.circular, circular = _a === undefined ? false : _a, createCustomInternalComparator = options.createInternalComparator, createState = options.createState, _b = options.strict, strict = _b === undefined ? false : _b; | ||
var _a = options.circular, circular = _a === void 0 ? false : _a, createCustomInternalComparator = options.createInternalComparator, createState = options.createState, _b = options.strict, strict = _b === void 0 ? false : _b; | ||
var config = createEqualityComparatorConfig(options); | ||
@@ -1380,3 +1380,3 @@ var comparator = createEqualityComparator(config); | ||
function createMemoizedFunction(fn, options) { | ||
if (options === undefined) { | ||
if (options === void 0) { | ||
options = {}; | ||
@@ -1390,3 +1390,3 @@ } | ||
} | ||
var _a = options.isEqual, isEqual = _a === undefined ? isSameValueZero : _a, isMatchingKey = options.isMatchingKey, _b = options.isPromise, isPromise = _b === undefined ? false : _b, _c = options.maxSize, maxSize = _c === undefined ? 1 : _c, onCacheAdd = options.onCacheAdd, onCacheChange = options.onCacheChange, onCacheHit = options.onCacheHit, transformKey = options.transformKey; | ||
var _a = options.isEqual, isEqual = _a === void 0 ? isSameValueZero : _a, isMatchingKey = options.isMatchingKey, _b = options.isPromise, isPromise = _b === void 0 ? false : _b, _c = options.maxSize, maxSize = _c === void 0 ? 1 : _c, onCacheAdd = options.onCacheAdd, onCacheChange = options.onCacheChange, onCacheHit = options.onCacheHit, transformKey = options.transformKey; | ||
var normalizedOptions = mergeOptions({ | ||
@@ -1393,0 +1393,0 @@ isEqual, |
{ | ||
"name": "@eslint-react/shared", | ||
"version": "1.26.3-next.3", | ||
"version": "1.26.3-next.4", | ||
"description": "ESLint React's Shared constants and functions.", | ||
@@ -41,3 +41,3 @@ "homepage": "https://github.com/Rel1cx/eslint-react", | ||
"ts-pattern": "^5.6.2", | ||
"@eslint-react/eff": "1.26.3-next.3" | ||
"@eslint-react/eff": "1.26.3-next.4" | ||
}, | ||
@@ -51,3 +51,3 @@ "devDependencies": { | ||
"valibot": "^1.0.0-beta.15", | ||
"@workspace/configs": "0.0.0" | ||
"@local/configs": "0.0.0" | ||
}, | ||
@@ -54,0 +54,0 @@ "engines": { |
Sorry, the diff of this file is not supported yet
258252
-0.04%+ Added
- Removed