eslint-plugin-react-rsc 5.14.6 → 5.14.8

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.
Files changed (2) hide show
  1. package/dist/index.js +25 -9
  2. package/package.json +7 -7
package/dist/index.js CHANGED
@@ -34,7 +34,7 @@ const rules$4 = { "react-rsc/function-definition": "off" };
34
34
  //#endregion
35
35
  //#region package.json
36
36
  var name$4 = "eslint-plugin-react-rsc";
37
- var version = "5.14.6";
37
+ var version = "5.14.8";
38
38
 
39
39
  //#endregion
40
40
  //#region src/utils/create-rule.ts
@@ -45,7 +45,12 @@ const createRule = ESLintUtils.RuleCreator(getDocsUrl);
45
45
 
46
46
  //#endregion
47
47
  //#region ../../node_modules/.pnpm/ts-pattern@5.9.0/node_modules/ts-pattern/dist/index.js
48
- const t = Symbol.for("@ts-pattern/matcher"), e = Symbol.for("@ts-pattern/isVariadic"), n = "@ts-pattern/anonymous-select-key", r = (t) => Boolean(t && "object" == typeof t), i = (e) => e && !!e[t], o = (n, s, c) => {
48
+ const t = Symbol.for("@ts-pattern/matcher");
49
+ const e = Symbol.for("@ts-pattern/isVariadic");
50
+ const n = "@ts-pattern/anonymous-select-key";
51
+ const r = (t) => Boolean(t && "object" == typeof t);
52
+ const i = (e) => e && !!e[t];
53
+ const o = (n, s, c) => {
49
54
  if (i(n)) {
50
55
  const { matched: r, selections: i } = n[t]().match(s);
51
56
  return r && i && Object.keys(i).forEach((t) => c(t, i[t])), r;
@@ -74,10 +79,12 @@ const t = Symbol.for("@ts-pattern/matcher"), e = Symbol.for("@ts-pattern/isVaria
74
79
  });
75
80
  }
76
81
  return Object.is(s, n);
77
- }, s = (e) => {
82
+ };
83
+ const s = (e) => {
78
84
  var n, o, u;
79
85
  return r(e) ? i(e) ? null != (n = null == (o = (u = e[t]()).getSelectionKeys) ? void 0 : o.call(u)) ? n : [] : Array.isArray(e) ? c(e, s) : c(Object.values(e), s) : [];
80
- }, c = (t, e) => t.reduce((t, n) => t.concat(e(n)), []);
86
+ };
87
+ const c = (t, e) => t.reduce((t, n) => t.concat(e(n)), []);
81
88
  function u(...t) {
82
89
  if (1 === t.length) {
83
90
  const [e] = t;
@@ -138,10 +145,12 @@ function h(e) {
138
145
  const f = (t, e) => {
139
146
  for (const n of t) if (!e(n)) return !1;
140
147
  return !0;
141
- }, g = (t, e) => {
148
+ };
149
+ const g = (t, e) => {
142
150
  for (const [n, r] of t.entries()) if (!e(r, n)) return !1;
143
151
  return !0;
144
- }, m = (t, e) => {
152
+ };
153
+ const m = (t, e) => {
145
154
  const n = Reflect.ownKeys(t);
146
155
  for (const r of n) if (!e(r, t[r])) return !1;
147
156
  return !0;
@@ -208,7 +217,10 @@ function S(t) {
208
217
  function j(t) {
209
218
  return "bigint" == typeof t;
210
219
  }
211
- const K = a(p(b)), O = a(p(b)), E = K, x = (t) => Object.assign(a(t), {
220
+ const K = a(p(b));
221
+ const O = a(p(b));
222
+ const E = K;
223
+ const x = (t) => Object.assign(a(t), {
212
224
  startsWith: (e) => {
213
225
  return x(d(t, (n = e, p((t) => S(t) && t.startsWith(n)))));
214
226
  var n;
@@ -228,7 +240,9 @@ const K = a(p(b)), O = a(p(b)), E = K, x = (t) => Object.assign(a(t), {
228
240
  return x(d(t, (n = e, p((t) => S(t) && Boolean(t.match(n))))));
229
241
  var n;
230
242
  }
231
- }), A = x(p(S)), N = (t) => Object.assign(a(t), {
243
+ });
244
+ const A = x(p(S));
245
+ const N = (t) => Object.assign(a(t), {
232
246
  between: (e, n) => N(d(t, ((t, e) => p((n) => w(n) && t <= n && e >= n))(e, n))),
233
247
  lt: (e) => N(d(t, ((t) => p((e) => w(e) && e < t))(e))),
234
248
  gt: (e) => N(d(t, ((t) => p((e) => w(e) && e > t))(e))),
@@ -238,7 +252,9 @@ const K = a(p(b)), O = a(p(b)), E = K, x = (t) => Object.assign(a(t), {
238
252
  finite: () => N(d(t, p((t) => w(t) && Number.isFinite(t)))),
239
253
  positive: () => N(d(t, p((t) => w(t) && t > 0))),
240
254
  negative: () => N(d(t, p((t) => w(t) && t < 0)))
241
- }), P = N(p(w)), k = (t) => Object.assign(a(t), {
255
+ });
256
+ const P = N(p(w));
257
+ const k = (t) => Object.assign(a(t), {
242
258
  between: (e, n) => k(d(t, ((t, e) => p((n) => j(n) && t <= n && e >= n))(e, n))),
243
259
  lt: (e) => k(d(t, ((t) => p((e) => j(e) && e < t))(e))),
244
260
  gt: (e) => k(d(t, ((t) => p((e) => j(e) && e > t))(e))),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-react-rsc",
3
- "version": "5.14.6",
3
+ "version": "5.14.8",
4
4
  "description": "ESLint React's ESLint plugin for RSC related rules.",
5
5
  "keywords": [
6
6
  "react",
@@ -38,18 +38,18 @@
38
38
  "dependencies": {
39
39
  "@typescript-eslint/types": "^8.63.0",
40
40
  "@typescript-eslint/utils": "^8.63.0",
41
- "@eslint-react/ast": "5.14.6",
42
- "@eslint-react/core": "5.14.6",
43
- "@eslint-react/eslint": "5.14.6",
44
- "@eslint-react/var": "5.14.6",
45
- "@eslint-react/shared": "5.14.6"
41
+ "@eslint-react/ast": "5.14.8",
42
+ "@eslint-react/core": "5.14.8",
43
+ "@eslint-react/var": "5.14.8",
44
+ "@eslint-react/eslint": "5.14.8",
45
+ "@eslint-react/shared": "5.14.8"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@types/react": "^19.2.17",
49
49
  "@types/react-dom": "^19.2.3",
50
50
  "dedent": "^1.7.2",
51
51
  "eslint": "^10.7.0",
52
- "tsdown": "^0.22.4",
52
+ "tsdown": "^0.22.5",
53
53
  "typescript": "6.0.3",
54
54
  "@local/configs": "0.0.0",
55
55
  "@local/eff": "0.0.0"