@eslint-react/shared 1.26.3-beta.2 → 1.26.3-beta.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -465,7 +465,7 @@ function object(entries, message) {
465
465
  for (const key in this.entries) {
466
466
  const valueSchema = this.entries[key];
467
467
  if (key in input || (valueSchema.type === "exact_optional" || valueSchema.type === "optional" || valueSchema.type === "nullish") && // @ts-expect-error
468
- valueSchema.default !== undefined) {
468
+ valueSchema.default !== void 0) {
469
469
  const value2 = key in input ? (
470
470
  // @ts-expect-error
471
471
  input[key]
@@ -499,11 +499,11 @@ function object(entries, message) {
499
499
  dataset.typed = false;
500
500
  }
501
501
  dataset.value[key] = valueDataset.value;
502
- } else if (valueSchema.fallback !== undefined) {
502
+ } else if (valueSchema.fallback !== void 0) {
503
503
  dataset.value[key] = /* @__PURE__ */ getFallback(valueSchema);
504
504
  } else if (valueSchema.type !== "exact_optional" && valueSchema.type !== "optional" && valueSchema.type !== "nullish") {
505
505
  _addIssue(this, "key", dataset, config2, {
506
- input: undefined,
506
+ input: void 0,
507
507
  expected: `"${key}"`,
508
508
  path: [
509
509
  {
@@ -542,11 +542,11 @@ function optional(wrapped, default_) {
542
542
  return /* @__PURE__ */ _getStandardProps(this);
543
543
  },
544
544
  "~run"(dataset, config2) {
545
- if (dataset.value === undefined) {
546
- if (this.default !== undefined) {
545
+ if (dataset.value === void 0) {
546
+ if (this.default !== void 0) {
547
547
  dataset.value = /* @__PURE__ */ getDefault(this, dataset, config2);
548
548
  }
549
- if (dataset.value === undefined) {
549
+ if (dataset.value === void 0) {
550
550
  dataset.typed = true;
551
551
  return dataset;
552
552
  }
@@ -1076,7 +1076,7 @@ function createIsEqual(_a) {
1076
1076
  var circular = _a.circular, comparator = _a.comparator, createState = _a.createState, equals = _a.equals, strict = _a.strict;
1077
1077
  if (createState) {
1078
1078
  return function isEqual(a, b) {
1079
- var _a2 = createState(), _b = _a2.cache, cache = _b === undefined ? circular ? /* @__PURE__ */ new WeakMap() : undefined : _b, meta = _a2.meta;
1079
+ var _a2 = createState(), _b = _a2.cache, cache = _b === void 0 ? circular ? /* @__PURE__ */ new WeakMap() : void 0 : _b, meta = _a2.meta;
1080
1080
  return comparator(a, b, {
1081
1081
  cache,
1082
1082
  equals,
@@ -1090,15 +1090,15 @@ function createIsEqual(_a) {
1090
1090
  return comparator(a, b, {
1091
1091
  cache: /* @__PURE__ */ new WeakMap(),
1092
1092
  equals,
1093
- meta: undefined,
1093
+ meta: void 0,
1094
1094
  strict
1095
1095
  });
1096
1096
  };
1097
1097
  }
1098
1098
  var state = {
1099
- cache: undefined,
1099
+ cache: void 0,
1100
1100
  equals,
1101
- meta: undefined,
1101
+ meta: void 0,
1102
1102
  strict
1103
1103
  };
1104
1104
  return function isEqual(a, b) {
@@ -1137,10 +1137,10 @@ createCustomEqual({
1137
1137
  strict: true
1138
1138
  });
1139
1139
  function createCustomEqual(options) {
1140
- if (options === undefined) {
1140
+ if (options === void 0) {
1141
1141
  options = {};
1142
1142
  }
1143
- var _a = options.circular, circular = _a === undefined ? false : _a, createCustomInternalComparator = options.createInternalComparator, createState = options.createState, _b = options.strict, strict = _b === undefined ? false : _b;
1143
+ 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;
1144
1144
  var config = createEqualityComparatorConfig(options);
1145
1145
  var comparator = createEqualityComparator(config);
1146
1146
  var equals = createCustomInternalComparator ? createCustomInternalComparator(comparator) : createInternalEqualityComparator(comparator);
@@ -1370,7 +1370,7 @@ var Cache = (
1370
1370
  }()
1371
1371
  );
1372
1372
  function createMemoizedFunction(fn, options) {
1373
- if (options === undefined) {
1373
+ if (options === void 0) {
1374
1374
  options = {};
1375
1375
  }
1376
1376
  if (isMemoized(fn)) {
@@ -1379,7 +1379,7 @@ function createMemoizedFunction(fn, options) {
1379
1379
  if (typeof fn !== "function") {
1380
1380
  throw new TypeError("You must pass a function to `memoize`.");
1381
1381
  }
1382
- 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;
1382
+ 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;
1383
1383
  var normalizedOptions = mergeOptions({
1384
1384
  isEqual,
1385
1385
  isMatchingKey,
package/dist/index.mjs CHANGED
@@ -457,7 +457,7 @@ function object(entries, message) {
457
457
  for (const key in this.entries) {
458
458
  const valueSchema = this.entries[key];
459
459
  if (key in input || (valueSchema.type === "exact_optional" || valueSchema.type === "optional" || valueSchema.type === "nullish") && // @ts-expect-error
460
- valueSchema.default !== undefined) {
460
+ valueSchema.default !== void 0) {
461
461
  const value2 = key in input ? (
462
462
  // @ts-expect-error
463
463
  input[key]
@@ -491,11 +491,11 @@ function object(entries, message) {
491
491
  dataset.typed = false;
492
492
  }
493
493
  dataset.value[key] = valueDataset.value;
494
- } else if (valueSchema.fallback !== undefined) {
494
+ } else if (valueSchema.fallback !== void 0) {
495
495
  dataset.value[key] = /* @__PURE__ */ getFallback(valueSchema);
496
496
  } else if (valueSchema.type !== "exact_optional" && valueSchema.type !== "optional" && valueSchema.type !== "nullish") {
497
497
  _addIssue(this, "key", dataset, config2, {
498
- input: undefined,
498
+ input: void 0,
499
499
  expected: `"${key}"`,
500
500
  path: [
501
501
  {
@@ -534,11 +534,11 @@ function optional(wrapped, default_) {
534
534
  return /* @__PURE__ */ _getStandardProps(this);
535
535
  },
536
536
  "~run"(dataset, config2) {
537
- if (dataset.value === undefined) {
538
- if (this.default !== undefined) {
537
+ if (dataset.value === void 0) {
538
+ if (this.default !== void 0) {
539
539
  dataset.value = /* @__PURE__ */ getDefault(this, dataset, config2);
540
540
  }
541
- if (dataset.value === undefined) {
541
+ if (dataset.value === void 0) {
542
542
  dataset.typed = true;
543
543
  return dataset;
544
544
  }
@@ -1068,7 +1068,7 @@ function createIsEqual(_a) {
1068
1068
  var circular = _a.circular, comparator = _a.comparator, createState = _a.createState, equals = _a.equals, strict = _a.strict;
1069
1069
  if (createState) {
1070
1070
  return function isEqual(a, b) {
1071
- var _a2 = createState(), _b = _a2.cache, cache = _b === undefined ? circular ? /* @__PURE__ */ new WeakMap() : undefined : _b, meta = _a2.meta;
1071
+ var _a2 = createState(), _b = _a2.cache, cache = _b === void 0 ? circular ? /* @__PURE__ */ new WeakMap() : void 0 : _b, meta = _a2.meta;
1072
1072
  return comparator(a, b, {
1073
1073
  cache,
1074
1074
  equals,
@@ -1082,15 +1082,15 @@ function createIsEqual(_a) {
1082
1082
  return comparator(a, b, {
1083
1083
  cache: /* @__PURE__ */ new WeakMap(),
1084
1084
  equals,
1085
- meta: undefined,
1085
+ meta: void 0,
1086
1086
  strict
1087
1087
  });
1088
1088
  };
1089
1089
  }
1090
1090
  var state = {
1091
- cache: undefined,
1091
+ cache: void 0,
1092
1092
  equals,
1093
- meta: undefined,
1093
+ meta: void 0,
1094
1094
  strict
1095
1095
  };
1096
1096
  return function isEqual(a, b) {
@@ -1129,10 +1129,10 @@ createCustomEqual({
1129
1129
  strict: true
1130
1130
  });
1131
1131
  function createCustomEqual(options) {
1132
- if (options === undefined) {
1132
+ if (options === void 0) {
1133
1133
  options = {};
1134
1134
  }
1135
- var _a = options.circular, circular = _a === undefined ? false : _a, createCustomInternalComparator = options.createInternalComparator, createState = options.createState, _b = options.strict, strict = _b === undefined ? false : _b;
1135
+ 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;
1136
1136
  var config = createEqualityComparatorConfig(options);
1137
1137
  var comparator = createEqualityComparator(config);
1138
1138
  var equals = createCustomInternalComparator ? createCustomInternalComparator(comparator) : createInternalEqualityComparator(comparator);
@@ -1362,7 +1362,7 @@ var Cache = (
1362
1362
  }()
1363
1363
  );
1364
1364
  function createMemoizedFunction(fn, options) {
1365
- if (options === undefined) {
1365
+ if (options === void 0) {
1366
1366
  options = {};
1367
1367
  }
1368
1368
  if (isMemoized(fn)) {
@@ -1371,7 +1371,7 @@ function createMemoizedFunction(fn, options) {
1371
1371
  if (typeof fn !== "function") {
1372
1372
  throw new TypeError("You must pass a function to `memoize`.");
1373
1373
  }
1374
- 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;
1374
+ 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;
1375
1375
  var normalizedOptions = mergeOptions({
1376
1376
  isEqual,
1377
1377
  isMatchingKey,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eslint-react/shared",
3
- "version": "1.26.3-beta.2",
3
+ "version": "1.26.3-beta.4",
4
4
  "description": "ESLint React's Shared constants and functions.",
5
5
  "homepage": "https://github.com/Rel1cx/eslint-react",
6
6
  "bugs": {
@@ -38,7 +38,7 @@
38
38
  "@typescript-eslint/utils": "^8.23.0",
39
39
  "picomatch": "^4.0.2",
40
40
  "ts-pattern": "^5.6.2",
41
- "@eslint-react/eff": "1.26.3-beta.2"
41
+ "@eslint-react/eff": "1.26.3-beta.4"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@types/picomatch": "^3.0.2",
@@ -47,7 +47,7 @@
47
47
  "tsup": "^8.3.6",
48
48
  "type-fest": "^4.33.0",
49
49
  "valibot": "^1.0.0-beta.15",
50
- "@workspace/configs": "0.0.0"
50
+ "@local/configs": "0.0.0"
51
51
  },
52
52
  "engines": {
53
53
  "bun": ">=1.0.15",