@eslint-react/shared 1.15.0 → 1.15.1-beta.2

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
@@ -213,6 +213,8 @@ var getDocsUrl = (pluginName) => (ruleName) => {
213
213
  return `${WEBSITE_URL}/docs/rules/${pluginName}-${ruleName}`;
214
214
  };
215
215
  var createRuleForPlugin = (pluginName) => utils.ESLintUtils.RuleCreator(getDocsUrl(pluginName));
216
+
217
+ // ../../node_modules/.pnpm/valibot@1.0.0-beta.1_typescript@5.6.3/node_modules/valibot/dist/index.js
216
218
  var store;
217
219
  function getGlobalConfig(config2) {
218
220
  return {
@@ -463,7 +465,7 @@ function object(entries, message) {
463
465
  }
464
466
  };
465
467
  }
466
- function optional(wrapped, ...args) {
468
+ function optional(wrapped, ...args2) {
467
469
  const schema = {
468
470
  kind: "schema",
469
471
  type: "optional",
@@ -486,8 +488,8 @@ function optional(wrapped, ...args) {
486
488
  return this.wrapped["~validate"](dataset, config2);
487
489
  }
488
490
  };
489
- if (0 in args) {
490
- schema.default = args[0];
491
+ if (0 in args2) {
492
+ schema.default = args2[0];
491
493
  }
492
494
  return schema;
493
495
  }
package/dist/index.mjs CHANGED
@@ -207,6 +207,8 @@ var getDocsUrl = (pluginName) => (ruleName) => {
207
207
  return `${WEBSITE_URL}/docs/rules/${pluginName}-${ruleName}`;
208
208
  };
209
209
  var createRuleForPlugin = (pluginName) => ESLintUtils.RuleCreator(getDocsUrl(pluginName));
210
+
211
+ // ../../node_modules/.pnpm/valibot@1.0.0-beta.1_typescript@5.6.3/node_modules/valibot/dist/index.js
210
212
  var store;
211
213
  function getGlobalConfig(config2) {
212
214
  return {
@@ -457,7 +459,7 @@ function object(entries, message) {
457
459
  }
458
460
  };
459
461
  }
460
- function optional(wrapped, ...args) {
462
+ function optional(wrapped, ...args2) {
461
463
  const schema = {
462
464
  kind: "schema",
463
465
  type: "optional",
@@ -480,8 +482,8 @@ function optional(wrapped, ...args) {
480
482
  return this.wrapped["~validate"](dataset, config2);
481
483
  }
482
484
  };
483
- if (0 in args) {
484
- schema.default = args[0];
485
+ if (0 in args2) {
486
+ schema.default = args2[0];
485
487
  }
486
488
  return schema;
487
489
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eslint-react/shared",
3
- "version": "1.15.0",
3
+ "version": "1.15.1-beta.2",
4
4
  "description": "ESLint React's Shared constants and functions.",
5
5
  "homepage": "https://github.com/rel1cx/eslint-react",
6
6
  "bugs": {
@@ -35,9 +35,9 @@
35
35
  "./package.json"
36
36
  ],
37
37
  "dependencies": {
38
- "@typescript-eslint/utils": "^8.8.1",
38
+ "@typescript-eslint/utils": "^8.10.0",
39
39
  "picomatch": "^4.0.2",
40
- "@eslint-react/tools": "1.15.0"
40
+ "@eslint-react/tools": "1.15.1-beta.2"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@types/picomatch": "^3.0.1",
@@ -45,7 +45,7 @@
45
45
  "micro-memoize": "^4.1.2",
46
46
  "tsup": "^8.3.0",
47
47
  "type-fest": "^4.26.1",
48
- "valibot": "^1.0.0-beta.0"
48
+ "valibot": "^1.0.0-beta.1"
49
49
  },
50
50
  "scripts": {
51
51
  "build": "tsup --dts-resolve",