@r_masseater/oxlint-typed-rules 0.7.2 → 0.7.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.
Files changed (37) hide show
  1. package/dist/_typescript-default-BOH7QDmR.mjs +139 -0
  2. package/dist/_typescript-default-BOH7QDmR.mjs.map +1 -0
  3. package/dist/{config-rules-BuPkk6Kx.mjs → config-rules-CuLcmBBW.mjs} +1 -1
  4. package/dist/{config-rules-BuPkk6Kx.mjs.map → config-rules-CuLcmBBW.mjs.map} +1 -1
  5. package/dist/drizzle.d.mts +2 -3
  6. package/dist/drizzle.mjs +3 -3
  7. package/dist/drizzle.mjs.map +1 -1
  8. package/dist/{index-C_YjgAV0.d.mts → index-DE13TpIf.d.mts} +5 -6
  9. package/dist/index.d.mts +3 -4
  10. package/dist/index.mjs +1 -1
  11. package/dist/react.d.mts +1 -2
  12. package/dist/react.mjs +27 -32
  13. package/dist/react.mjs.map +1 -1
  14. package/dist/remotion.d.mts +2 -3
  15. package/dist/remotion.mjs +2 -2
  16. package/dist/{rolldown-runtime-Dn33JYCD.mjs → rolldown-runtime-DaLwmsLK.mjs} +12 -10
  17. package/dist/tanstack-query.d.mts +2 -3
  18. package/dist/tanstack-query.mjs +4 -5
  19. package/dist/tanstack-query.mjs.map +1 -1
  20. package/dist/tanstack-router.d.mts +2 -3
  21. package/dist/tanstack-router.mjs +2 -2
  22. package/dist/tanstack-router.mjs.map +1 -1
  23. package/dist/tanstack-start.d.mts +1 -2
  24. package/dist/tanstack-start.mjs +7 -9
  25. package/dist/tanstack-start.mjs.map +1 -1
  26. package/dist/{typed-rule-ugUYAIDV.mjs → typed-rule-Bgq8IPaL.mjs} +1 -1
  27. package/dist/{typed-rule-ugUYAIDV.mjs.map → typed-rule-Bgq8IPaL.mjs.map} +1 -1
  28. package/dist/{typescript-eslint-utils-B8zxXMN2.mjs → typescript-eslint-utils-Bbuyu5Ya.mjs} +3 -3
  29. package/dist/{typescript-eslint-utils-B8zxXMN2.mjs.map → typescript-eslint-utils-Bbuyu5Ya.mjs.map} +1 -1
  30. package/dist/{upstream-plugin-8wLKFW1s.mjs → upstream-plugin-DWCc7koO.mjs} +3 -3
  31. package/dist/{upstream-plugin-8wLKFW1s.mjs.map → upstream-plugin-DWCc7koO.mjs.map} +1 -1
  32. package/dist/{usage-meter-Dh3a__gr.mjs → usage-meter-DGyQ26tP.mjs} +2 -2
  33. package/dist/{usage-meter-Dh3a__gr.mjs.map → usage-meter-DGyQ26tP.mjs.map} +1 -1
  34. package/package.json +6 -6
  35. package/skills/run-typed-eslint-rules/SKILL.md +9 -6
  36. package/dist/_typescript-default-Dl1RVMfr.mjs +0 -139
  37. package/dist/_typescript-default-Dl1RVMfr.mjs.map +0 -1
@@ -0,0 +1,139 @@
1
+ import { r as __exportAll } from "./rolldown-runtime-DaLwmsLK.mjs";
2
+ import { Array, Function, Option, Predicate } from "effect";
3
+ import { NodeFlags, NodeFlags as NodeFlags$1, SyntaxKind, SyntaxKind as SyntaxKind$1 } from "tsrs/ast";
4
+ import { isArrayBindingPattern, isArrayBindingPattern as isArrayBindingPattern$1, isArrowFunction, isArrowFunction as isArrowFunction$1, isBindingElement, isBindingElement as isBindingElement$1, isCallExpression, isCallExpression as isCallExpression$1, isClassDeclaration, isClassDeclaration as isClassDeclaration$1, isClassExpression, isClassExpression as isClassExpression$1, isComputedPropertyName, isComputedPropertyName as isComputedPropertyName$1, isEnumDeclaration, isEnumDeclaration as isEnumDeclaration$1, isEnumMember, isEnumMember as isEnumMember$1, isExpressionStatement, isExpressionStatement as isExpressionStatement$1, isFunctionDeclaration, isFunctionDeclaration as isFunctionDeclaration$1, isFunctionExpression, isFunctionExpression as isFunctionExpression$1, isIdentifier, isIdentifier as isIdentifier$1, isImportClause, isImportClause as isImportClause$1, isImportSpecifier, isImportSpecifier as isImportSpecifier$1, isInterfaceDeclaration, isInterfaceDeclaration as isInterfaceDeclaration$1, isIntersectionTypeNode, isIntersectionTypeNode as isIntersectionTypeNode$1, isJsxAttribute, isJsxAttribute as isJsxAttribute$1, isJsxExpression, isJsxExpression as isJsxExpression$1, isJsxOpeningElement, isJsxOpeningElement as isJsxOpeningElement$1, isJsxSelfClosingElement, isJsxSelfClosingElement as isJsxSelfClosingElement$1, isMappedTypeNode, isMappedTypeNode as isMappedTypeNode$1, isMethodDeclaration, isMethodDeclaration as isMethodDeclaration$1, isMethodSignatureDeclaration, isMethodSignatureDeclaration as isMethodSignature, isModuleDeclaration, isModuleDeclaration as isModuleDeclaration$1, isNamespaceExport, isNamespaceExport as isNamespaceExport$1, isNamespaceExportDeclaration, isNamespaceExportDeclaration as isNamespaceExportDeclaration$1, isNamespaceImport, isNamespaceImport as isNamespaceImport$1, isObjectBindingPattern, isObjectBindingPattern as isObjectBindingPattern$1, isObjectLiteralExpression, isObjectLiteralExpression as isObjectLiteralExpression$1, isParameterDeclaration, isParameterDeclaration as isParameter, isParenthesizedExpression, isParenthesizedExpression as isParenthesizedExpression$1, isPropertyAccessExpression, isPropertyAccessExpression as isPropertyAccessExpression$1, isPropertyAssignment, isPropertyAssignment as isPropertyAssignment$1, isPropertyDeclaration, isPropertyDeclaration as isPropertyDeclaration$1, isPropertySignatureDeclaration, isPropertySignatureDeclaration as isPropertySignature, isSourceFile, isSourceFile as isSourceFile$1, isStringLiteral, isStringLiteral as isStringLiteral$1, isTypeAliasDeclaration, isTypeAliasDeclaration as isTypeAliasDeclaration$1, isTypeLiteralNode, isTypeLiteralNode as isTypeLiteralNode$1, isTypeParameterDeclaration, isTypeParameterDeclaration as isTypeParameterDeclaration$1, isTypeQueryNode, isTypeQueryNode as isTypeQueryNode$1, isTypeReferenceNode, isTypeReferenceNode as isTypeReferenceNode$1, isUnionTypeNode, isUnionTypeNode as isUnionTypeNode$1, isVariableDeclaration, isVariableDeclaration as isVariableDeclaration$1, isVariableStatement, isVariableStatement as isVariableStatement$1 } from "tsrs/ast/is";
5
+ import { JsxEmit, JsxEmit as JsxEmit$1, SymbolFlags, SymbolFlags as SymbolFlags$1, TypeFlags, TypeFlags as TypeFlags$1 } from "tsrs/sync";
6
+ const FUNCTION_LIKE_KINDS = /* @__PURE__ */ new Set([
7
+ SyntaxKind$1.FunctionDeclaration,
8
+ SyntaxKind$1.MethodDeclaration,
9
+ SyntaxKind$1.Constructor,
10
+ SyntaxKind$1.GetAccessor,
11
+ SyntaxKind$1.SetAccessor,
12
+ SyntaxKind$1.FunctionExpression,
13
+ SyntaxKind$1.ArrowFunction,
14
+ SyntaxKind$1.MethodSignature,
15
+ SyntaxKind$1.CallSignature,
16
+ SyntaxKind$1.JSDocSignature,
17
+ SyntaxKind$1.ConstructSignature,
18
+ SyntaxKind$1.IndexSignature,
19
+ SyntaxKind$1.FunctionType,
20
+ SyntaxKind$1.ConstructorType
21
+ ]);
22
+ const isFunctionLike = (node) => Option.fromNullishOr(node).pipe(Option.exists(({ kind }) => FUNCTION_LIKE_KINDS.has(kind)));
23
+ const forEachChild = Function.dual((args) => Array.head(Array.fromIterable(args)).pipe(Option.exists(Predicate.not(Predicate.isFunction))), (node, visit) => node.forEachChild(visit));
24
+ const ts = {
25
+ forEachChild,
26
+ isArrayBindingPattern: isArrayBindingPattern$1,
27
+ isArrowFunction: isArrowFunction$1,
28
+ isBindingElement: isBindingElement$1,
29
+ isCallExpression: isCallExpression$1,
30
+ isClassDeclaration: isClassDeclaration$1,
31
+ isClassExpression: isClassExpression$1,
32
+ isComputedPropertyName: isComputedPropertyName$1,
33
+ isEnumDeclaration: isEnumDeclaration$1,
34
+ isEnumMember: isEnumMember$1,
35
+ isExpressionStatement: isExpressionStatement$1,
36
+ isFunctionDeclaration: isFunctionDeclaration$1,
37
+ isFunctionExpression: isFunctionExpression$1,
38
+ isFunctionLike,
39
+ isIdentifier: isIdentifier$1,
40
+ isImportClause: isImportClause$1,
41
+ isImportSpecifier: isImportSpecifier$1,
42
+ isInterfaceDeclaration: isInterfaceDeclaration$1,
43
+ isIntersectionTypeNode: isIntersectionTypeNode$1,
44
+ isJsxAttribute: isJsxAttribute$1,
45
+ isJsxExpression: isJsxExpression$1,
46
+ isJsxOpeningElement: isJsxOpeningElement$1,
47
+ isJsxSelfClosingElement: isJsxSelfClosingElement$1,
48
+ isMappedTypeNode: isMappedTypeNode$1,
49
+ isMethodDeclaration: isMethodDeclaration$1,
50
+ isMethodSignature: isMethodSignatureDeclaration,
51
+ isModuleDeclaration: isModuleDeclaration$1,
52
+ isNamespaceExport: isNamespaceExport$1,
53
+ isNamespaceExportDeclaration: isNamespaceExportDeclaration$1,
54
+ isNamespaceImport: isNamespaceImport$1,
55
+ isObjectBindingPattern: isObjectBindingPattern$1,
56
+ isObjectLiteralExpression: isObjectLiteralExpression$1,
57
+ isParameter: isParameterDeclaration,
58
+ isParenthesizedExpression: isParenthesizedExpression$1,
59
+ isPropertyAccessExpression: isPropertyAccessExpression$1,
60
+ isPropertyAssignment: isPropertyAssignment$1,
61
+ isPropertyDeclaration: isPropertyDeclaration$1,
62
+ isPropertySignature: isPropertySignatureDeclaration,
63
+ isSourceFile: isSourceFile$1,
64
+ isStringLiteral: isStringLiteral$1,
65
+ isTypeAliasDeclaration: isTypeAliasDeclaration$1,
66
+ isTypeLiteralNode: isTypeLiteralNode$1,
67
+ isTypeParameterDeclaration: isTypeParameterDeclaration$1,
68
+ isTypeQueryNode: isTypeQueryNode$1,
69
+ isTypeReferenceNode: isTypeReferenceNode$1,
70
+ isUnionTypeNode: isUnionTypeNode$1,
71
+ isVariableDeclaration: isVariableDeclaration$1,
72
+ isVariableStatement: isVariableStatement$1,
73
+ JsxEmit: JsxEmit$1,
74
+ NodeFlags: NodeFlags$1,
75
+ SymbolFlags: SymbolFlags$1,
76
+ SyntaxKind: SyntaxKind$1,
77
+ TypeFlags: TypeFlags$1
78
+ };
79
+ var _typescript_default_exports = /* @__PURE__ */ __exportAll({
80
+ JsxEmit: () => JsxEmit,
81
+ NodeFlags: () => NodeFlags,
82
+ SymbolFlags: () => SymbolFlags,
83
+ SyntaxKind: () => SyntaxKind,
84
+ TypeFlags: () => TypeFlags,
85
+ default: () => _typescript_default_default,
86
+ forEachChild: () => forEachChild,
87
+ isArrayBindingPattern: () => isArrayBindingPattern,
88
+ isArrowFunction: () => isArrowFunction,
89
+ isBindingElement: () => isBindingElement,
90
+ isCallExpression: () => isCallExpression,
91
+ isClassDeclaration: () => isClassDeclaration,
92
+ isClassExpression: () => isClassExpression,
93
+ isComputedPropertyName: () => isComputedPropertyName,
94
+ isEnumDeclaration: () => isEnumDeclaration,
95
+ isEnumMember: () => isEnumMember,
96
+ isExpressionStatement: () => isExpressionStatement,
97
+ isFunctionDeclaration: () => isFunctionDeclaration,
98
+ isFunctionExpression: () => isFunctionExpression,
99
+ isFunctionLike: () => isFunctionLike,
100
+ isIdentifier: () => isIdentifier,
101
+ isImportClause: () => isImportClause,
102
+ isImportSpecifier: () => isImportSpecifier,
103
+ isInterfaceDeclaration: () => isInterfaceDeclaration,
104
+ isIntersectionTypeNode: () => isIntersectionTypeNode,
105
+ isJsxAttribute: () => isJsxAttribute,
106
+ isJsxExpression: () => isJsxExpression,
107
+ isJsxOpeningElement: () => isJsxOpeningElement,
108
+ isJsxSelfClosingElement: () => isJsxSelfClosingElement,
109
+ isMappedTypeNode: () => isMappedTypeNode,
110
+ isMethodDeclaration: () => isMethodDeclaration,
111
+ isMethodSignature: () => isMethodSignature,
112
+ isModuleDeclaration: () => isModuleDeclaration,
113
+ isNamespaceExport: () => isNamespaceExport,
114
+ isNamespaceExportDeclaration: () => isNamespaceExportDeclaration,
115
+ isNamespaceImport: () => isNamespaceImport,
116
+ isObjectBindingPattern: () => isObjectBindingPattern,
117
+ isObjectLiteralExpression: () => isObjectLiteralExpression,
118
+ isParameter: () => isParameter,
119
+ isParenthesizedExpression: () => isParenthesizedExpression,
120
+ isPropertyAccessExpression: () => isPropertyAccessExpression,
121
+ isPropertyAssignment: () => isPropertyAssignment,
122
+ isPropertyDeclaration: () => isPropertyDeclaration,
123
+ isPropertySignature: () => isPropertySignature,
124
+ isSourceFile: () => isSourceFile,
125
+ isStringLiteral: () => isStringLiteral,
126
+ isTypeAliasDeclaration: () => isTypeAliasDeclaration,
127
+ isTypeLiteralNode: () => isTypeLiteralNode,
128
+ isTypeParameterDeclaration: () => isTypeParameterDeclaration,
129
+ isTypeQueryNode: () => isTypeQueryNode,
130
+ isTypeReferenceNode: () => isTypeReferenceNode,
131
+ isUnionTypeNode: () => isUnionTypeNode,
132
+ isVariableDeclaration: () => isVariableDeclaration,
133
+ isVariableStatement: () => isVariableStatement,
134
+ ts: () => ts
135
+ });
136
+ var _typescript_default_default = ts;
137
+ export { isArrayBindingPattern as a, isExpressionStatement as c, isJsxOpeningElement as d, isJsxSelfClosingElement as f, isStringLiteral as h, forEachChild as i, isFunctionLike as l, isParameter as m, _typescript_default_exports as n, isBindingElement as o, isObjectBindingPattern as p, SymbolFlags as r, isCallExpression as s, _typescript_default_default as t, isIdentifier as u };
138
+
139
+ //# sourceMappingURL=_typescript-default-BOH7QDmR.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_typescript-default-BOH7QDmR.mjs","names":["SyntaxKind","Arr","isArrayBindingPattern","isArrowFunction","isBindingElement","isCallExpression","isClassDeclaration","isClassExpression","isComputedPropertyName","isEnumDeclaration","isEnumMember","isExpressionStatement","isFunctionDeclaration","isFunctionExpression","isIdentifier","isImportClause","isImportSpecifier","isInterfaceDeclaration","isIntersectionTypeNode","isJsxAttribute","isJsxExpression","isJsxOpeningElement","isJsxSelfClosingElement","isMappedTypeNode","isMethodDeclaration","isModuleDeclaration","isNamespaceExport","isNamespaceExportDeclaration","isNamespaceImport","isObjectBindingPattern","isObjectLiteralExpression","isParenthesizedExpression","isPropertyAccessExpression","isPropertyAssignment","isPropertyDeclaration","isSourceFile","isStringLiteral","isTypeAliasDeclaration","isTypeLiteralNode","isTypeParameterDeclaration","isTypeQueryNode","isTypeReferenceNode","isUnionTypeNode","isVariableDeclaration","isVariableStatement","JsxEmit","NodeFlags","SymbolFlags","TypeFlags"],"sources":["../src/shared/lib/ts-compat.ts"],"sourcesContent":["import { Array as Arr, Function, Option, Predicate } from \"effect\";\nimport { NodeFlags, SyntaxKind } from \"tsrs/ast\";\nimport type { Node } from \"tsrs/ast\";\nimport {\n isArrayBindingPattern,\n isArrowFunction,\n isBindingElement,\n isCallExpression,\n isClassDeclaration,\n isClassExpression,\n isComputedPropertyName,\n isEnumDeclaration,\n isEnumMember,\n isExpressionStatement,\n isFunctionDeclaration,\n isFunctionExpression,\n isIdentifier,\n isImportClause,\n isImportSpecifier,\n isInterfaceDeclaration,\n isIntersectionTypeNode,\n isJsxAttribute,\n isJsxExpression,\n isJsxOpeningElement,\n isJsxSelfClosingElement,\n isMappedTypeNode,\n isMethodDeclaration,\n isMethodSignatureDeclaration,\n isModuleDeclaration,\n isNamespaceExport,\n isNamespaceExportDeclaration,\n isNamespaceImport,\n isObjectBindingPattern,\n isObjectLiteralExpression,\n isParameterDeclaration,\n isParenthesizedExpression,\n isPropertyAccessExpression,\n isPropertyAssignment,\n isPropertyDeclaration,\n isPropertySignatureDeclaration,\n isSourceFile,\n isStringLiteral,\n isTypeAliasDeclaration,\n isTypeLiteralNode,\n isTypeParameterDeclaration,\n isTypeQueryNode,\n isTypeReferenceNode,\n isUnionTypeNode,\n isVariableDeclaration,\n isVariableStatement,\n} from \"tsrs/ast/is\";\nimport { JsxEmit, SymbolFlags, TypeFlags } from \"tsrs/sync\";\n\nconst FUNCTION_LIKE_KINDS: ReadonlySet<SyntaxKind> = new Set([\n SyntaxKind.FunctionDeclaration,\n SyntaxKind.MethodDeclaration,\n SyntaxKind.Constructor,\n SyntaxKind.GetAccessor,\n SyntaxKind.SetAccessor,\n SyntaxKind.FunctionExpression,\n SyntaxKind.ArrowFunction,\n SyntaxKind.MethodSignature,\n SyntaxKind.CallSignature,\n SyntaxKind.JSDocSignature,\n SyntaxKind.ConstructSignature,\n SyntaxKind.IndexSignature,\n SyntaxKind.FunctionType,\n SyntaxKind.ConstructorType,\n]);\n\nexport const isFunctionLike = (node: Node | null | undefined): boolean =>\n Option.fromNullishOr(node).pipe(Option.exists(({ kind }) => FUNCTION_LIKE_KINDS.has(kind)));\n\nexport const forEachChild: {\n <Result>(visit: (child: Node) => Result | undefined): (node: Node) => Result | undefined;\n <Result>(node: Node, visit: (child: Node) => Result | undefined): Result | undefined;\n} = Function.dual(\n (args) =>\n Arr.head(Arr.fromIterable(args)).pipe(Option.exists(Predicate.not(Predicate.isFunction))),\n <Result>(node: Node, visit: (child: Node) => Result | undefined): Result | undefined =>\n node.forEachChild(visit),\n);\n\nexport const ts = {\n forEachChild,\n isArrayBindingPattern,\n isArrowFunction,\n isBindingElement,\n isCallExpression,\n isClassDeclaration,\n isClassExpression,\n isComputedPropertyName,\n isEnumDeclaration,\n isEnumMember,\n isExpressionStatement,\n isFunctionDeclaration,\n isFunctionExpression,\n isFunctionLike,\n isIdentifier,\n isImportClause,\n isImportSpecifier,\n isInterfaceDeclaration,\n isIntersectionTypeNode,\n isJsxAttribute,\n isJsxExpression,\n isJsxOpeningElement,\n isJsxSelfClosingElement,\n isMappedTypeNode,\n isMethodDeclaration,\n isMethodSignature: isMethodSignatureDeclaration,\n isModuleDeclaration,\n isNamespaceExport,\n isNamespaceExportDeclaration,\n isNamespaceImport,\n isObjectBindingPattern,\n isObjectLiteralExpression,\n isParameter: isParameterDeclaration,\n isParenthesizedExpression,\n isPropertyAccessExpression,\n isPropertyAssignment,\n isPropertyDeclaration,\n isPropertySignature: isPropertySignatureDeclaration,\n isSourceFile,\n isStringLiteral,\n isTypeAliasDeclaration,\n isTypeLiteralNode,\n isTypeParameterDeclaration,\n isTypeQueryNode,\n isTypeReferenceNode,\n isUnionTypeNode,\n isVariableDeclaration,\n isVariableStatement,\n JsxEmit,\n NodeFlags,\n SymbolFlags,\n SyntaxKind,\n TypeFlags,\n} as const;\n\nexport {\n isArrayBindingPattern,\n isArrowFunction,\n isBindingElement,\n isCallExpression,\n isClassDeclaration,\n isClassExpression,\n isComputedPropertyName,\n isEnumDeclaration,\n isEnumMember,\n isExpressionStatement,\n isFunctionDeclaration,\n isFunctionExpression,\n isIdentifier,\n isImportClause,\n isImportSpecifier,\n isInterfaceDeclaration,\n isIntersectionTypeNode,\n isJsxAttribute,\n isJsxExpression,\n isJsxOpeningElement,\n isJsxSelfClosingElement,\n isMappedTypeNode,\n isMethodDeclaration,\n isMethodSignatureDeclaration as isMethodSignature,\n isModuleDeclaration,\n isNamespaceExport,\n isNamespaceExportDeclaration,\n isNamespaceImport,\n isObjectBindingPattern,\n isObjectLiteralExpression,\n isParameterDeclaration as isParameter,\n isParenthesizedExpression,\n isPropertyAccessExpression,\n isPropertyAssignment,\n isPropertyDeclaration,\n isPropertySignatureDeclaration as isPropertySignature,\n isSourceFile,\n isStringLiteral,\n isTypeAliasDeclaration,\n isTypeLiteralNode,\n isTypeParameterDeclaration,\n isTypeQueryNode,\n isTypeReferenceNode,\n isUnionTypeNode,\n isVariableDeclaration,\n isVariableStatement,\n} from \"tsrs/ast/is\";\nexport { NodeFlags, SyntaxKind } from \"tsrs/ast\";\nexport { JsxEmit, SymbolFlags, TypeFlags } from \"tsrs/sync\";\n"],"mappings":";;;;;AAqDA,MAAM,sCAA+C,IAAI,IAAI;CAC3DA,aAAW;CACXA,aAAW;CACXA,aAAW;CACXA,aAAW;CACXA,aAAW;CACXA,aAAW;CACXA,aAAW;CACXA,aAAW;CACXA,aAAW;CACXA,aAAW;CACXA,aAAW;CACXA,aAAW;CACXA,aAAW;CACXA,aAAW;AACb,CAAC;AAED,MAAa,kBAAkB,SAC7B,OAAO,cAAc,IAAI,CAAC,CAAC,KAAK,OAAO,QAAQ,EAAE,WAAW,oBAAoB,IAAI,IAAI,CAAC,CAAC;AAE5F,MAAa,eAGT,SAAS,MACV,SACCC,MAAI,KAAKA,MAAI,aAAa,IAAI,CAAC,CAAC,CAAC,KAAK,OAAO,OAAO,UAAU,IAAI,UAAU,UAAU,CAAC,CAAC,IACjF,MAAY,UACnB,KAAK,aAAa,KAAK,CAC3B;AAEA,MAAa,KAAK;CAChB;CACAC,uBAAAA;CACAC,iBAAAA;CACAC,kBAAAA;CACAC,kBAAAA;CACAC,oBAAAA;CACAC,mBAAAA;CACAC,wBAAAA;CACAC,mBAAAA;CACAC,cAAAA;CACAC,uBAAAA;CACAC,uBAAAA;CACAC,sBAAAA;CACA;CACAC,cAAAA;CACAC,gBAAAA;CACAC,mBAAAA;CACAC,wBAAAA;CACAC,wBAAAA;CACAC,gBAAAA;CACAC,iBAAAA;CACAC,qBAAAA;CACAC,yBAAAA;CACAC,kBAAAA;CACAC,qBAAAA;CACA,mBAAmB;CACnBC,qBAAAA;CACAC,mBAAAA;CACAC,8BAAAA;CACAC,mBAAAA;CACAC,wBAAAA;CACAC,2BAAAA;CACA,aAAa;CACbC,2BAAAA;CACAC,4BAAAA;CACAC,sBAAAA;CACAC,uBAAAA;CACA,qBAAqB;CACrBC,cAAAA;CACAC,iBAAAA;CACAC,wBAAAA;CACAC,mBAAAA;CACAC,4BAAAA;CACAC,iBAAAA;CACAC,qBAAAA;CACAC,iBAAAA;CACAC,uBAAAA;CACAC,qBAAAA;CACAC,SAAAA;CACAC,WAAAA;CACAC,aAAAA;CACA/C,YAAAA;CACAgD,WAAAA;AACF"}
@@ -2,4 +2,4 @@ import { Option, Predicate } from "effect";
2
2
  const rulesOf = (config) => Option.liftPredicate(config, Predicate.hasProperty("rules")).pipe(Option.flatMap(({ rules }) => Option.liftPredicate(rules, Predicate.isReadonlyObject)));
3
3
  export { rulesOf as t };
4
4
 
5
- //# sourceMappingURL=config-rules-BuPkk6Kx.mjs.map
5
+ //# sourceMappingURL=config-rules-CuLcmBBW.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"config-rules-BuPkk6Kx.mjs","names":[],"sources":["../src/entities/upstream-plugin/model/config-rules.ts"],"sourcesContent":["import { Option, Predicate } from \"effect\";\n\nexport const rulesOf = (config: unknown): Option.Option<Readonly<Record<string, unknown>>> =>\n Option.liftPredicate(config, Predicate.hasProperty(\"rules\")).pipe(\n Option.flatMap(({ rules }) => Option.liftPredicate(rules, Predicate.isReadonlyObject)),\n );\n"],"mappings":";AAEA,MAAa,WAAW,WACtB,OAAO,cAAc,QAAQ,UAAU,YAAY,OAAO,CAAC,CAAC,CAAC,KAC3D,OAAO,SAAS,EAAE,YAAY,OAAO,cAAc,OAAO,UAAU,gBAAgB,CAAC,CACvF"}
1
+ {"version":3,"file":"config-rules-CuLcmBBW.mjs","names":[],"sources":["../src/entities/upstream-plugin/model/config-rules.ts"],"sourcesContent":["import { Option, Predicate } from \"effect\";\n\nexport const rulesOf = (config: unknown): Option.Option<Readonly<Record<string, unknown>>> =>\n Option.liftPredicate(config, Predicate.hasProperty(\"rules\")).pipe(\n Option.flatMap(({ rules }) => Option.liftPredicate(rules, Predicate.isReadonlyObject)),\n );\n"],"mappings":";AAEA,MAAa,WAAW,WACtB,OAAO,cAAc,QAAQ,UAAU,YAAY,OAAO,CAAC,CAAC,CAAC,KAC3D,OAAO,SAAS,EAAE,YAAY,OAAO,cAAc,OAAO,UAAU,gBAAgB,CAAC,CACvF"}
@@ -1,5 +1,4 @@
1
- import { t as UpstreamPlugin } from "./index-C_YjgAV0.mjs";
1
+ import { t as UpstreamPlugin } from "./index-DE13TpIf.mjs";
2
2
  export type ConfigName = "all" | "recommended";
3
3
  declare const plugin: UpstreamPlugin<ConfigName>;
4
- export { plugin as default };
5
- //# sourceMappingURL=drizzle.d.mts.map
4
+ export { plugin as default };
package/dist/drizzle.mjs CHANGED
@@ -1,6 +1,6 @@
1
- import { i as __toCommonJS, t as __commonJSMin } from "./rolldown-runtime-Dn33JYCD.mjs";
2
- import { i as typescript_eslint_utils_exports, r as init_typescript_eslint_utils } from "./typescript-eslint-utils-B8zxXMN2.mjs";
3
- import { n as upstreamPlugin, t as plainRules } from "./upstream-plugin-8wLKFW1s.mjs";
1
+ import { i as __toCommonJS, t as __commonJSMin } from "./rolldown-runtime-DaLwmsLK.mjs";
2
+ import { i as typescript_eslint_utils_exports, r as init_typescript_eslint_utils } from "./typescript-eslint-utils-Bbuyu5Ya.mjs";
3
+ import { n as upstreamPlugin, t as plainRules } from "./upstream-plugin-DWCc7koO.mjs";
4
4
  var require_package = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5
5
  module.exports = {
6
6
  "name": "eslint-plugin-drizzle",
@@ -1 +1 @@
1
- {"version":3,"file":"drizzle.mjs","names":[],"sources":["../../../node_modules/.pnpm/eslint-plugin-drizzle@0.2.3_patch_hash=970a4ab095ef16d6b77ccac81c31e17b85e1423d06ec977b_c723539dfa2dcd59172ece8cdbd9ae46/node_modules/eslint-plugin-drizzle/package.json","../../../node_modules/.pnpm/eslint-plugin-drizzle@0.2.3_patch_hash=970a4ab095ef16d6b77ccac81c31e17b85e1423d06ec977b_c723539dfa2dcd59172ece8cdbd9ae46/node_modules/eslint-plugin-drizzle/src/configs/all.js","../../../node_modules/.pnpm/eslint-plugin-drizzle@0.2.3_patch_hash=970a4ab095ef16d6b77ccac81c31e17b85e1423d06ec977b_c723539dfa2dcd59172ece8cdbd9ae46/node_modules/eslint-plugin-drizzle/src/configs/recommended.js","../../../node_modules/.pnpm/eslint-plugin-drizzle@0.2.3_patch_hash=970a4ab095ef16d6b77ccac81c31e17b85e1423d06ec977b_c723539dfa2dcd59172ece8cdbd9ae46/node_modules/eslint-plugin-drizzle/src/utils/ast.js","../../../node_modules/.pnpm/eslint-plugin-drizzle@0.2.3_patch_hash=970a4ab095ef16d6b77ccac81c31e17b85e1423d06ec977b_c723539dfa2dcd59172ece8cdbd9ae46/node_modules/eslint-plugin-drizzle/src/utils/options.js","../../../node_modules/.pnpm/eslint-plugin-drizzle@0.2.3_patch_hash=970a4ab095ef16d6b77ccac81c31e17b85e1423d06ec977b_c723539dfa2dcd59172ece8cdbd9ae46/node_modules/eslint-plugin-drizzle/src/enforce-delete-with-where.js","../../../node_modules/.pnpm/eslint-plugin-drizzle@0.2.3_patch_hash=970a4ab095ef16d6b77ccac81c31e17b85e1423d06ec977b_c723539dfa2dcd59172ece8cdbd9ae46/node_modules/eslint-plugin-drizzle/src/enforce-update-with-where.js","../../../node_modules/.pnpm/eslint-plugin-drizzle@0.2.3_patch_hash=970a4ab095ef16d6b77ccac81c31e17b85e1423d06ec977b_c723539dfa2dcd59172ece8cdbd9ae46/node_modules/eslint-plugin-drizzle/src/index.js","../src/app/drizzle.ts"],"sourcesContent":["","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.default = {\n env: {\n es2024: true,\n },\n parserOptions: {\n ecmaVersion: 'latest',\n sourceType: 'module',\n },\n plugins: ['drizzle'],\n rules: {\n 'drizzle/enforce-delete-with-where': 'error',\n 'drizzle/enforce-update-with-where': 'error',\n },\n};\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.default = {\n env: {\n es2024: true,\n },\n parserOptions: {\n ecmaVersion: 'latest',\n sourceType: 'module',\n },\n plugins: ['drizzle'],\n rules: {\n 'drizzle/enforce-delete-with-where': 'error',\n 'drizzle/enforce-update-with-where': 'error',\n },\n};\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.resolveMemberExpressionPath = void 0;\nconst resolveMemberExpressionPath = (node) => {\n let objectExpression = node.object;\n let fullName = '';\n const addToFullName = (name) => {\n const prefix = fullName ? '.' : '';\n fullName = `${name}${prefix}${fullName}`;\n };\n while (objectExpression) {\n if (objectExpression.type === 'MemberExpression') {\n if (objectExpression.property.type === 'Identifier') {\n addToFullName(objectExpression.property.name);\n }\n objectExpression = objectExpression.object;\n }\n else if (objectExpression.type === 'CallExpression' && objectExpression.callee.type === 'Identifier') {\n addToFullName(`${objectExpression.callee.name}(...)`);\n break;\n }\n else if (objectExpression.type === 'CallExpression' && objectExpression.callee.type === 'MemberExpression') {\n if (objectExpression.callee.property.type === 'Identifier') {\n addToFullName(`${objectExpression.callee.property.name}(...)`);\n }\n objectExpression = objectExpression.callee.object;\n }\n else if (objectExpression.type === 'Identifier') {\n addToFullName(objectExpression.name);\n break;\n }\n else if (objectExpression.type === 'ThisExpression') {\n addToFullName('this');\n break;\n }\n else {\n break;\n }\n }\n return fullName;\n};\nexports.resolveMemberExpressionPath = resolveMemberExpressionPath;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.isDrizzleObj = void 0;\nconst isDrizzleObjName = (name, drizzleObjectName) => {\n if (typeof drizzleObjectName === 'string') {\n return name === drizzleObjectName;\n }\n if (Array.isArray(drizzleObjectName)) {\n if (drizzleObjectName.length === 0) {\n return true;\n }\n return drizzleObjectName.includes(name);\n }\n return false;\n};\nconst isDrizzleObj = (node, options) => {\n const drizzleObjectName = options[0].drizzleObjectName;\n if (node.object.type === 'Identifier') {\n return isDrizzleObjName(node.object.name, drizzleObjectName);\n }\n else if (node.object.type === 'MemberExpression' && node.object.property.type === 'Identifier') {\n return isDrizzleObjName(node.object.property.name, drizzleObjectName);\n }\n else if (node.object.type === 'CallExpression') {\n if (node.object.callee.type === 'Identifier') {\n return isDrizzleObjName(node.object.callee.name, drizzleObjectName);\n }\n else if (node.object.callee.type === 'MemberExpression' && node.object.callee.property.type === 'Identifier') {\n return isDrizzleObjName(node.object.callee.property.name, drizzleObjectName);\n }\n }\n return false;\n};\nexports.isDrizzleObj = isDrizzleObj;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst utils_1 = require(\"@typescript-eslint/utils\");\nconst ast_1 = require(\"./utils/ast\");\nconst options_1 = require(\"./utils/options\");\nconst createRule = utils_1.ESLintUtils.RuleCreator(() => 'https://github.com/drizzle-team/eslint-plugin-drizzle');\nlet lastNodeName = '';\nconst deleteRule = createRule({\n defaultOptions: [{ drizzleObjectName: [] }],\n name: 'enforce-delete-with-where',\n meta: {\n type: 'problem',\n docs: {\n description: 'Enforce that `delete` method is used with `where` to avoid deleting all the rows in a table.',\n },\n fixable: 'code',\n messages: {\n enforceDeleteWithWhere: \"Without `.where(...)` you will delete all the rows in a table. If you didn't want to do it, please use `{{ drizzleObjName }}.delete(...).where(...)` instead. Otherwise you can ignore this rule here\",\n },\n schema: [{\n type: 'object',\n properties: {\n drizzleObjectName: {\n type: ['string', 'array'],\n },\n },\n additionalProperties: false,\n }],\n },\n create(context, options) {\n return {\n MemberExpression: (node) => {\n if (node.property.type === 'Identifier') {\n if (node.property.name === 'delete' && lastNodeName !== 'where' && (0, options_1.isDrizzleObj)(node, options)) {\n context.report({\n node,\n messageId: 'enforceDeleteWithWhere',\n data: {\n drizzleObjName: (0, ast_1.resolveMemberExpressionPath)(node),\n },\n });\n }\n lastNodeName = node.property.name;\n }\n return;\n },\n };\n },\n});\nexports.default = deleteRule;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst utils_1 = require(\"@typescript-eslint/utils\");\nconst ast_1 = require(\"./utils/ast\");\nconst options_1 = require(\"./utils/options\");\nconst createRule = utils_1.ESLintUtils.RuleCreator(() => 'https://github.com/drizzle-team/eslint-plugin-drizzle');\nlet lastNodeName = '';\nconst updateRule = createRule({\n defaultOptions: [{ drizzleObjectName: [] }],\n name: 'enforce-update-with-where',\n meta: {\n type: 'problem',\n docs: {\n description: 'Enforce that `update` method is used with `where` to avoid deleting all the rows in a table.',\n },\n fixable: 'code',\n messages: {\n enforceUpdateWithWhere: \"Without `.where(...)` you will update all the rows in a table. If you didn't want to do it, please use `{{ drizzleObjName }}.update(...).set(...).where(...)` instead. Otherwise you can ignore this rule here\",\n },\n schema: [{\n type: 'object',\n properties: {\n drizzleObjectName: {\n type: ['string', 'array'],\n },\n },\n additionalProperties: false,\n }],\n },\n create(context, options) {\n return {\n MemberExpression: (node) => {\n if (node.property.type === 'Identifier') {\n if (lastNodeName !== 'where'\n && node.property.name === 'set'\n && node.object.type === 'CallExpression'\n && node.object.callee.type === 'MemberExpression'\n && node.object.callee.property.type === 'Identifier'\n && node.object.callee.property.name === 'update'\n && (0, options_1.isDrizzleObj)(node.object.callee, options)) {\n context.report({\n node,\n messageId: 'enforceUpdateWithWhere',\n data: {\n drizzleObjName: (0, ast_1.resolveMemberExpressionPath)(node.object.callee),\n },\n });\n }\n lastNodeName = node.property.name;\n }\n return;\n },\n };\n },\n});\nexports.default = updateRule;\n","\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.meta = exports.configs = exports.rules = void 0;\nconst package_json_1 = require(\"../package.json\");\nconst all_1 = __importDefault(require(\"./configs/all\"));\nconst recommended_1 = __importDefault(require(\"./configs/recommended\"));\nconst enforce_delete_with_where_1 = __importDefault(require(\"./enforce-delete-with-where\"));\nconst enforce_update_with_where_1 = __importDefault(require(\"./enforce-update-with-where\"));\nexports.rules = {\n 'enforce-delete-with-where': enforce_delete_with_where_1.default,\n 'enforce-update-with-where': enforce_update_with_where_1.default,\n};\nexports.configs = { all: all_1.default, recommended: recommended_1.default };\nexports.meta = { name: package_json_1.name, version: package_json_1.version };\n","import { configs, rules } from \"eslint-plugin-drizzle\";\n\nimport { plainRules, upstreamPlugin } from \"#/entities/upstream-plugin/index.ts\";\nimport type { UpstreamPlugin } from \"#/entities/upstream-plugin/index.ts\";\n\nexport type ConfigName = \"all\" | \"recommended\";\n\nconst plugin: UpstreamPlugin<ConfigName> = upstreamPlugin(\n \"drizzle\",\n { configs, rules },\n plainRules,\n);\n\nexport default plugin;\n"],"ignoreList":[0,1,2,3,4,5,6,7],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CCCA,OAAO,eAAe,SAAS,cAAc,EAAE,OAAO,KAAK,CAAC;CAC5D,QAAQ,UAAU;EACd,KAAK,EACD,QAAQ,KACZ;EACA,eAAe;GACX,aAAa;GACb,YAAY;EAChB;EACA,SAAS,CAAC,SAAS;EACnB,OAAO;GACH,qCAAqC;GACrC,qCAAqC;EACzC;CACJ;;;CCdA,OAAO,eAAe,SAAS,cAAc,EAAE,OAAO,KAAK,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,GAAG,MAAM,4BAAA,CAA6B,KAAK,OAAO,MAAM,EAC7E;KACJ,CAAC;KAEL,eAAe,KAAK,SAAS;IACjC;GAEJ,EACJ;EACJ;CACJ,CACkB;;;CCtDlB,IAAI,kBAAA,UAAA,OAAgC,mBAAoB,SAAU,KAAK;EACnE,OAAQ,OAAO,IAAI,aAAc,MAAM,EAAE,WAAW,IAAI;CAC5D;CACA,OAAO,eAAe,SAAS,cAAc,EAAE,OAAO,KAAK,CAAC;CAC5D,QAAQ,OAAO,QAAQ,UAAU,QAAQ,QAAQ,KAAK;CACtD,MAAM,iBAAA,gBAAA;CACN,MAAM,QAAQ,gBAAA,YAAA,CAAwC;CACtD,MAAM,gBAAgB,gBAAA,oBAAA,CAAgD;CACtE,MAAM,8BAA8B,gBAAA,kCAAA,CAAsD;CAC1F,MAAM,8BAA8B,gBAAA,kCAAA,CAAsD;CAC1F,QAAQ,QAAQ;EACZ,6BAA6B,4BAA4B;EACzD,6BAA6B,4BAA4B;CAC7D;CACA,QAAQ,UAAU;EAAE,KAAK,MAAM;EAAS,aAAa,cAAc;CAAQ;CAC3E,QAAQ,OAAO;EAAE,MAAM,eAAe;EAAM,SAAS,eAAe;CAAQ;;ACT5E,MAAM,SAAqC,eACzC,WACA;CAAE,SAAA,WAAA;CAAS,OAAA,WAAA;AAAM,GACjB,UACF"}
1
+ {"version":3,"file":"drizzle.mjs","names":["configs","rules"],"sources":["../../../node_modules/.pnpm/eslint-plugin-drizzle@0.2.3_patch_hash=970a4ab095ef16d6b77ccac81c31e17b85e1423d06ec977b_c723539dfa2dcd59172ece8cdbd9ae46/node_modules/eslint-plugin-drizzle/package.json","../../../node_modules/.pnpm/eslint-plugin-drizzle@0.2.3_patch_hash=970a4ab095ef16d6b77ccac81c31e17b85e1423d06ec977b_c723539dfa2dcd59172ece8cdbd9ae46/node_modules/eslint-plugin-drizzle/src/configs/all.js","../../../node_modules/.pnpm/eslint-plugin-drizzle@0.2.3_patch_hash=970a4ab095ef16d6b77ccac81c31e17b85e1423d06ec977b_c723539dfa2dcd59172ece8cdbd9ae46/node_modules/eslint-plugin-drizzle/src/configs/recommended.js","../../../node_modules/.pnpm/eslint-plugin-drizzle@0.2.3_patch_hash=970a4ab095ef16d6b77ccac81c31e17b85e1423d06ec977b_c723539dfa2dcd59172ece8cdbd9ae46/node_modules/eslint-plugin-drizzle/src/utils/ast.js","../../../node_modules/.pnpm/eslint-plugin-drizzle@0.2.3_patch_hash=970a4ab095ef16d6b77ccac81c31e17b85e1423d06ec977b_c723539dfa2dcd59172ece8cdbd9ae46/node_modules/eslint-plugin-drizzle/src/utils/options.js","../../../node_modules/.pnpm/eslint-plugin-drizzle@0.2.3_patch_hash=970a4ab095ef16d6b77ccac81c31e17b85e1423d06ec977b_c723539dfa2dcd59172ece8cdbd9ae46/node_modules/eslint-plugin-drizzle/src/enforce-delete-with-where.js","../../../node_modules/.pnpm/eslint-plugin-drizzle@0.2.3_patch_hash=970a4ab095ef16d6b77ccac81c31e17b85e1423d06ec977b_c723539dfa2dcd59172ece8cdbd9ae46/node_modules/eslint-plugin-drizzle/src/enforce-update-with-where.js","../../../node_modules/.pnpm/eslint-plugin-drizzle@0.2.3_patch_hash=970a4ab095ef16d6b77ccac81c31e17b85e1423d06ec977b_c723539dfa2dcd59172ece8cdbd9ae46/node_modules/eslint-plugin-drizzle/src/index.js","../src/app/drizzle.ts"],"sourcesContent":["","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.default = {\n env: {\n es2024: true,\n },\n parserOptions: {\n ecmaVersion: 'latest',\n sourceType: 'module',\n },\n plugins: ['drizzle'],\n rules: {\n 'drizzle/enforce-delete-with-where': 'error',\n 'drizzle/enforce-update-with-where': 'error',\n },\n};\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.default = {\n env: {\n es2024: true,\n },\n parserOptions: {\n ecmaVersion: 'latest',\n sourceType: 'module',\n },\n plugins: ['drizzle'],\n rules: {\n 'drizzle/enforce-delete-with-where': 'error',\n 'drizzle/enforce-update-with-where': 'error',\n },\n};\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.resolveMemberExpressionPath = void 0;\nconst resolveMemberExpressionPath = (node) => {\n let objectExpression = node.object;\n let fullName = '';\n const addToFullName = (name) => {\n const prefix = fullName ? '.' : '';\n fullName = `${name}${prefix}${fullName}`;\n };\n while (objectExpression) {\n if (objectExpression.type === 'MemberExpression') {\n if (objectExpression.property.type === 'Identifier') {\n addToFullName(objectExpression.property.name);\n }\n objectExpression = objectExpression.object;\n }\n else if (objectExpression.type === 'CallExpression' && objectExpression.callee.type === 'Identifier') {\n addToFullName(`${objectExpression.callee.name}(...)`);\n break;\n }\n else if (objectExpression.type === 'CallExpression' && objectExpression.callee.type === 'MemberExpression') {\n if (objectExpression.callee.property.type === 'Identifier') {\n addToFullName(`${objectExpression.callee.property.name}(...)`);\n }\n objectExpression = objectExpression.callee.object;\n }\n else if (objectExpression.type === 'Identifier') {\n addToFullName(objectExpression.name);\n break;\n }\n else if (objectExpression.type === 'ThisExpression') {\n addToFullName('this');\n break;\n }\n else {\n break;\n }\n }\n return fullName;\n};\nexports.resolveMemberExpressionPath = resolveMemberExpressionPath;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.isDrizzleObj = void 0;\nconst isDrizzleObjName = (name, drizzleObjectName) => {\n if (typeof drizzleObjectName === 'string') {\n return name === drizzleObjectName;\n }\n if (Array.isArray(drizzleObjectName)) {\n if (drizzleObjectName.length === 0) {\n return true;\n }\n return drizzleObjectName.includes(name);\n }\n return false;\n};\nconst isDrizzleObj = (node, options) => {\n const drizzleObjectName = options[0].drizzleObjectName;\n if (node.object.type === 'Identifier') {\n return isDrizzleObjName(node.object.name, drizzleObjectName);\n }\n else if (node.object.type === 'MemberExpression' && node.object.property.type === 'Identifier') {\n return isDrizzleObjName(node.object.property.name, drizzleObjectName);\n }\n else if (node.object.type === 'CallExpression') {\n if (node.object.callee.type === 'Identifier') {\n return isDrizzleObjName(node.object.callee.name, drizzleObjectName);\n }\n else if (node.object.callee.type === 'MemberExpression' && node.object.callee.property.type === 'Identifier') {\n return isDrizzleObjName(node.object.callee.property.name, drizzleObjectName);\n }\n }\n return false;\n};\nexports.isDrizzleObj = isDrizzleObj;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst utils_1 = require(\"@typescript-eslint/utils\");\nconst ast_1 = require(\"./utils/ast\");\nconst options_1 = require(\"./utils/options\");\nconst createRule = utils_1.ESLintUtils.RuleCreator(() => 'https://github.com/drizzle-team/eslint-plugin-drizzle');\nlet lastNodeName = '';\nconst deleteRule = createRule({\n defaultOptions: [{ drizzleObjectName: [] }],\n name: 'enforce-delete-with-where',\n meta: {\n type: 'problem',\n docs: {\n description: 'Enforce that `delete` method is used with `where` to avoid deleting all the rows in a table.',\n },\n fixable: 'code',\n messages: {\n enforceDeleteWithWhere: \"Without `.where(...)` you will delete all the rows in a table. If you didn't want to do it, please use `{{ drizzleObjName }}.delete(...).where(...)` instead. Otherwise you can ignore this rule here\",\n },\n schema: [{\n type: 'object',\n properties: {\n drizzleObjectName: {\n type: ['string', 'array'],\n },\n },\n additionalProperties: false,\n }],\n },\n create(context, options) {\n return {\n MemberExpression: (node) => {\n if (node.property.type === 'Identifier') {\n if (node.property.name === 'delete' && lastNodeName !== 'where' && (0, options_1.isDrizzleObj)(node, options)) {\n context.report({\n node,\n messageId: 'enforceDeleteWithWhere',\n data: {\n drizzleObjName: (0, ast_1.resolveMemberExpressionPath)(node),\n },\n });\n }\n lastNodeName = node.property.name;\n }\n return;\n },\n };\n },\n});\nexports.default = deleteRule;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst utils_1 = require(\"@typescript-eslint/utils\");\nconst ast_1 = require(\"./utils/ast\");\nconst options_1 = require(\"./utils/options\");\nconst createRule = utils_1.ESLintUtils.RuleCreator(() => 'https://github.com/drizzle-team/eslint-plugin-drizzle');\nlet lastNodeName = '';\nconst updateRule = createRule({\n defaultOptions: [{ drizzleObjectName: [] }],\n name: 'enforce-update-with-where',\n meta: {\n type: 'problem',\n docs: {\n description: 'Enforce that `update` method is used with `where` to avoid deleting all the rows in a table.',\n },\n fixable: 'code',\n messages: {\n enforceUpdateWithWhere: \"Without `.where(...)` you will update all the rows in a table. If you didn't want to do it, please use `{{ drizzleObjName }}.update(...).set(...).where(...)` instead. Otherwise you can ignore this rule here\",\n },\n schema: [{\n type: 'object',\n properties: {\n drizzleObjectName: {\n type: ['string', 'array'],\n },\n },\n additionalProperties: false,\n }],\n },\n create(context, options) {\n return {\n MemberExpression: (node) => {\n if (node.property.type === 'Identifier') {\n if (lastNodeName !== 'where'\n && node.property.name === 'set'\n && node.object.type === 'CallExpression'\n && node.object.callee.type === 'MemberExpression'\n && node.object.callee.property.type === 'Identifier'\n && node.object.callee.property.name === 'update'\n && (0, options_1.isDrizzleObj)(node.object.callee, options)) {\n context.report({\n node,\n messageId: 'enforceUpdateWithWhere',\n data: {\n drizzleObjName: (0, ast_1.resolveMemberExpressionPath)(node.object.callee),\n },\n });\n }\n lastNodeName = node.property.name;\n }\n return;\n },\n };\n },\n});\nexports.default = updateRule;\n","\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.meta = exports.configs = exports.rules = void 0;\nconst package_json_1 = require(\"../package.json\");\nconst all_1 = __importDefault(require(\"./configs/all\"));\nconst recommended_1 = __importDefault(require(\"./configs/recommended\"));\nconst enforce_delete_with_where_1 = __importDefault(require(\"./enforce-delete-with-where\"));\nconst enforce_update_with_where_1 = __importDefault(require(\"./enforce-update-with-where\"));\nexports.rules = {\n 'enforce-delete-with-where': enforce_delete_with_where_1.default,\n 'enforce-update-with-where': enforce_update_with_where_1.default,\n};\nexports.configs = { all: all_1.default, recommended: recommended_1.default };\nexports.meta = { name: package_json_1.name, version: package_json_1.version };\n","import { configs, rules } from \"eslint-plugin-drizzle\";\n\nimport { plainRules, upstreamPlugin } from \"#/entities/upstream-plugin/index.ts\";\nimport type { UpstreamPlugin } from \"#/entities/upstream-plugin/index.ts\";\n\nexport type ConfigName = \"all\" | \"recommended\";\n\nconst plugin: UpstreamPlugin<ConfigName> = upstreamPlugin(\n \"drizzle\",\n { configs, rules },\n plainRules,\n);\n\nexport default plugin;\n"],"ignoreList":[0,1,2,3,4,5,6,7],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CCCA,OAAO,eAAe,SAAS,cAAc,EAAE,OAAO,KAAK,CAAC;CAC5D,QAAQ,UAAU;EACd,KAAK,EACD,QAAQ,KACZ;EACA,eAAe;GACX,aAAa;GACb,YAAY;EAChB;EACA,SAAS,CAAC,SAAS;EACnB,OAAO;GACH,qCAAqC;GACrC,qCAAqC;EACzC;CACJ;;;CCdA,OAAO,eAAe,SAAS,cAAc,EAAE,OAAO,KAAK,CAAC;CAC5D,QAAQ,UAAU;EACd,KAAK,EACD,QAAQ,KACZ;EACA,eAAe;GACX,aAAa;GACb,YAAY;EAChB;EACA,SAAS,CAAC,SAAS;EACnB,OAAO;GACH,qCAAqC;GACrC,qCAAqC;EACzC;CACJ;;;CCdA,OAAO,eAAe,SAAS,cAAc,EAAE,OAAO,KAAK,CAAC;CAC5D,QAAQ,8BAA8B,KAAK;CAC3C,MAAM,+BAA+B,SAAS;EAC1C,IAAI,mBAAmB,KAAK;EAC5B,IAAI,WAAW;EACf,MAAM,iBAAiB,SAAS;GAE5B,WAAW,GAAG,OADC,WAAW,MAAM,KACF;EAClC;EACA,OAAO,kBACH,IAAI,iBAAiB,SAAS,oBAAoB;GAC9C,IAAI,iBAAiB,SAAS,SAAS,cACnC,cAAc,iBAAiB,SAAS,IAAI;GAEhD,mBAAmB,iBAAiB;EACxC,OACK,IAAI,iBAAiB,SAAS,oBAAoB,iBAAiB,OAAO,SAAS,cAAc;GAClG,cAAc,GA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7D;CACA,QAAQ,UAAU;EAAE,KAAK,MAAM;EAAS,aAAa,cAAc;CAAQ;CAC3E,QAAQ,OAAO;EAAE,MAAM,eAAe;EAAM,SAAS,eAAe;CAAQ;;ACT5E,MAAM,SAAqC,eACzC,WACA;CAAEA,SAAAA,WAAAA;CAASC,OAAAA,WAAAA;AAAM,GACjB,UACF"}
@@ -1,15 +1,14 @@
1
- import { Option, Record as Record$1, Schema } from "effect";
2
- import { CreateRule, Plugin } from "vite-plus/lint/plugins";
1
+ import { Record as Record$1, Schema } from "effect";
2
+ import { Plugin } from "vite-plus/lint/plugins";
3
3
  declare const Severities: Schema.Literals<readonly ["error", "warn", "off"]>;
4
4
  type Severity = typeof Severities.Type;
5
- interface Config$1 {
5
+ interface Config {
6
6
  readonly rules?: Readonly<Record$1<string, Severity>> | undefined;
7
7
  }
8
8
  type UpstreamPlugin<ConfigName extends string> = Plugin & {
9
9
  readonly meta: {
10
10
  readonly name: string;
11
11
  };
12
- readonly configs: Readonly<Record$1<ConfigName, Config$1>>;
12
+ readonly configs: Readonly<Record$1<ConfigName, Config>>;
13
13
  };
14
- export { UpstreamPlugin as t };
15
- //# sourceMappingURL=index-C_YjgAV0.d.mts.map
14
+ export { UpstreamPlugin as t };
package/dist/index.d.mts CHANGED
@@ -1,7 +1,7 @@
1
- import { Record } from "effect";
2
- import { CompilerOptions, Project, Signature, Symbol, SymbolFlags, Type, TypeFlags } from "tsrs/sync";
3
1
  import { Node, SourceFile } from "tsrs/ast";
4
2
  import { Context, CreateRule, Location, Range, RuleMeta, Visitor } from "vite-plus/lint/plugins";
3
+ import { CompilerOptions, Project, Signature, Symbol, SymbolFlags, Type, TypeFlags } from "tsrs/sync";
4
+ import { Record } from "effect";
5
5
  interface LegacySymbol {
6
6
  readonly getName: () => string;
7
7
  readonly getDeclarations: () => readonly Node[];
@@ -105,5 +105,4 @@ interface TypedRule {
105
105
  }
106
106
  export declare const withTypeInformation: (rule: TypedRule) => CreateRule;
107
107
  export declare const typedRules: (rules: Record.ReadonlyRecord<string, unknown>) => Record.ReadonlyRecord<string, CreateRule>;
108
- export type { ParserServices, TypedContext, TypedRule };
109
- //# sourceMappingURL=index.d.mts.map
108
+ export type { ParserServices, TypedContext, TypedRule };
package/dist/index.mjs CHANGED
@@ -1 +1 @@
1
- export { r as typedRules, a as withTypeInformation } from "./typed-rule-ugUYAIDV.mjs";
1
+ export { r as typedRules, a as withTypeInformation } from "./typed-rule-Bgq8IPaL.mjs";
package/dist/react.d.mts CHANGED
@@ -12,5 +12,4 @@ export type ReactPlugin = Plugin & {
12
12
  readonly configs: Configs;
13
13
  };
14
14
  declare const plugin: ReactPlugin;
15
- export { plugin as default };
16
- //# sourceMappingURL=react.d.mts.map
15
+ export { plugin as default };
package/dist/react.mjs CHANGED
@@ -1,11 +1,11 @@
1
- import { a as __toESM, t as __commonJSMin } from "./rolldown-runtime-Dn33JYCD.mjs";
2
- import { n as require_eslint_utils$2, r as require_dist$2, t as usageMeter } from "./usage-meter-Dh3a__gr.mjs";
3
- import { t as _typescript_default_default } from "./_typescript-default-Dl1RVMfr.mjs";
4
- import { a as withTypeInformation, i as withOptionalTypeInformation, t as isTypedRule } from "./typed-rule-ugUYAIDV.mjs";
5
- import { t as rulesOf } from "./config-rules-BuPkk6Kx.mjs";
1
+ import { a as __toESM, t as __commonJSMin } from "./rolldown-runtime-DaLwmsLK.mjs";
6
2
  import module$1 from "node:module";
7
- import { Array as Array$1, Option, Record, String as String$1, pipe } from "effect";
8
3
  import path from "node:path";
4
+ import { n as require_eslint_utils$2, r as require_dist$2, t as usageMeter } from "./usage-meter-DGyQ26tP.mjs";
5
+ import { t as _typescript_default_default } from "./_typescript-default-BOH7QDmR.mjs";
6
+ import { Array as Array$1, Option, Record, String as String$1, pipe as pipe$1 } from "effect";
7
+ import { a as withTypeInformation, i as withOptionalTypeInformation, t as isTypedRule } from "./typed-rule-Bgq8IPaL.mjs";
8
+ import { t as rulesOf } from "./config-rules-CuLcmBBW.mjs";
9
9
  const t$1 = Symbol.for("@ts-pattern/matcher");
10
10
  const e$1 = Symbol.for("@ts-pattern/isVariadic");
11
11
  const n$1 = "@ts-pattern/anonymous-select-key";
@@ -28,7 +28,7 @@ const o$1 = (n, s, c) => {
28
28
  if (u.length) {
29
29
  if (u.length > 1) throw new Error("Pattern error: Using `...P.array(...)` several times in a single pattern is not allowed.");
30
30
  if (s.length < t.length + r.length) return !1;
31
- const e = s.slice(0, t.length), n = 0 === r.length ? [] : s.slice(-r.length), i = s.slice(t.length, 0 === r.length ? Infinity : -r.length);
31
+ const e = s.slice(0, t.length), n = 0 === r.length ? [] : s.slice(-r.length), i = s.slice(t.length, 0 === r.length ? 1e400 : -r.length);
32
32
  return t.every((t, n) => o$1(t, e[n], c)) && r.every((t, e) => o$1(t, n[e], c)) && (0 === u.length || o$1(u[0], i, c));
33
33
  }
34
34
  return n.length === s.length && n.every((t, e) => o$1(t, s[e], c));
@@ -603,8 +603,8 @@ function optionalKeys(shape) {
603
603
  }
604
604
  const NUMBER_FORMAT_RANGES = /*@__PURE__*/ (() => ({
605
605
  safeint: [Number.MIN_SAFE_INTEGER, Number.MAX_SAFE_INTEGER],
606
- int32: [-2147483648, 2147483647],
607
- uint32: [0, 4294967295],
606
+ int32: [-0x80000000, 0x7fffffff],
607
+ uint32: [0, 0xffffffff],
608
608
  float32: [-34028234663852886e22, 34028234663852886e22],
609
609
  float64: [-Number.MAX_VALUE, Number.MAX_VALUE]
610
610
  }))();
@@ -2544,9 +2544,7 @@ function mergeValues(a, b) {
2544
2544
  };
2545
2545
  const newArray = [];
2546
2546
  for (let index = 0; index < a.length; index++) {
2547
- const itemA = a[index];
2548
- const itemB = b[index];
2549
- const sharedValue = mergeValues(itemA, itemB);
2547
+ const sharedValue = mergeValues(a[index], b[index]);
2550
2548
  if (!sharedValue.valid) return {
2551
2549
  valid: false,
2552
2550
  mergeErrorPath: [index, ...sharedValue.mergeErrorPath]
@@ -4232,8 +4230,7 @@ const neverProcessor = (_schema, _ctx, json, _params) => {
4232
4230
  json.not = {};
4233
4231
  };
4234
4232
  const enumProcessor = (schema, _ctx, json, _params) => {
4235
- const def = schema._zod.def;
4236
- const values = getEnumValues(def.entries);
4233
+ const values = getEnumValues(schema._zod.def.entries);
4237
4234
  if (values.length === 0) {
4238
4235
  json.not = {};
4239
4236
  return;
@@ -4542,7 +4539,7 @@ const ZodType = /*@__PURE__*/ $constructor("ZodType", (inst, def) => {
4542
4539
  return intersection(this, arg);
4543
4540
  },
4544
4541
  transform(tx) {
4545
- return pipe$1(this, transform(tx));
4542
+ return pipe(this, transform(tx));
4546
4543
  },
4547
4544
  default(d) {
4548
4545
  return _default(this, d);
@@ -4554,7 +4551,7 @@ const ZodType = /*@__PURE__*/ $constructor("ZodType", (inst, def) => {
4554
4551
  return _catch(this, params);
4555
4552
  },
4556
4553
  pipe(target) {
4557
- return pipe$1(this, target);
4554
+ return pipe(this, target);
4558
4555
  },
4559
4556
  readonly() {
4560
4557
  return readonly(this);
@@ -5189,7 +5186,7 @@ const ZodPipe = /*@__PURE__*/ $constructor("ZodPipe", (inst, def) => {
5189
5186
  inst.in = def.in;
5190
5187
  inst.out = def.out;
5191
5188
  });
5192
- function pipe$1(in_, out) {
5189
+ function pipe(in_, out) {
5193
5190
  return new ZodPipe({
5194
5191
  type: "pipe",
5195
5192
  in: in_,
@@ -6307,8 +6304,7 @@ var require_eslint_utils$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
6307
6304
  return { value: object };
6308
6305
  },
6309
6306
  SequenceExpression(node, initialScope) {
6310
- const last = node.expressions[node.expressions.length - 1];
6311
- return getStaticValueR(last, initialScope);
6307
+ return getStaticValueR(node.expressions[node.expressions.length - 1], initialScope);
6312
6308
  },
6313
6309
  TaggedTemplateExpression(node, initialScope) {
6314
6310
  const tag = getStaticValueR(node.tag, initialScope);
@@ -17803,6 +17799,7 @@ function getTypeVariants(types) {
17803
17799
  return variants;
17804
17800
  }
17805
17801
  var import_umd = (/* @__PURE__ */ __commonJSMin(((exports, module, this$1) => {
17802
+ var define;
17806
17803
  (function(global, factory) {
17807
17804
  typeof exports === "object" && typeof module !== "undefined" ? factory(exports) : typeof define === "function" && define.amd ? define(["exports"], factory) : (global = typeof globalThis !== "undefined" ? globalThis : global || self, factory(global.compareVersions = {}));
17808
17805
  })(this$1, (function(exports) {
@@ -20676,8 +20673,7 @@ function create$27(context) {
20676
20673
  }).with({ type: import_dist$1.AST_NODE_TYPES.Identifier }, (n) => {
20677
20674
  if (seen.has(n.name)) return null;
20678
20675
  seen.add(n.name);
20679
- const variableDefNode = (0, import_ast_utils.findVariable)(context.sourceCode.getScope(n), n.name)?.defs.at(0)?.node;
20680
- return M(variableDefNode).with({ init: z$1.select({ type: z$1.not(import_dist$1.AST_NODE_TYPES.VariableDeclaration) }) }, (init) => visit(init, seen)).otherwise(() => null);
20676
+ return M((0, import_ast_utils.findVariable)(context.sourceCode.getScope(n), n.name)?.defs.at(0)?.node).with({ init: z$1.select({ type: z$1.not(import_dist$1.AST_NODE_TYPES.VariableDeclaration) }) }, (init) => visit(init, seen)).otherwise(() => null);
20681
20677
  }).otherwise(() => null);
20682
20678
  }
20683
20679
  return { JSXExpressionContainer: flow(visit, report(context)) };
@@ -21309,8 +21305,7 @@ function create$13$2(context) {
21309
21305
  const attribute = node.attributes.findLast(isPlainAttribute("value"));
21310
21306
  if (attribute?.type !== import_dist$1.AST_NODE_TYPES.JSXAttribute) return;
21311
21307
  if (attribute.value?.type !== import_dist$1.AST_NODE_TYPES.JSXExpressionContainer) return;
21312
- const valueExpression = attribute.value.expression;
21313
- const construction = resolveObjectType(context, valueExpression);
21308
+ const construction = resolveObjectType(context, attribute.value.expression);
21314
21309
  if (construction == null) return;
21315
21310
  if (construction.node.type === import_dist$1.AST_NODE_TYPES.CallExpression && isHookCall(construction.node)) return;
21316
21311
  getOrInsertComputed$2(constructions, enclosingFunction, () => []).push(construction);
@@ -24273,12 +24268,12 @@ const rule$2 = {
24273
24268
  function shortestPathLengthToStart(segment) {
24274
24269
  const { cache } = shortestPathLengthToStart;
24275
24270
  let length = cache.get(segment.id);
24276
- if (length === null) return Infinity;
24271
+ if (length === null) return 1e400;
24277
24272
  if (length !== void 0) return length;
24278
24273
  cache.set(segment.id, null);
24279
24274
  if (segment.prevSegments.length === 0) length = 1;
24280
24275
  else {
24281
- length = Infinity;
24276
+ length = 1e400;
24282
24277
  for (const prevSegment of segment.prevSegments) {
24283
24278
  const prevLength = shortestPathLengthToStart(prevSegment);
24284
24279
  if (prevLength < length) length = prevLength;
@@ -24295,7 +24290,7 @@ const rule$2 = {
24295
24290
  const codePathFunctionName = getFunctionName(codePathNode);
24296
24291
  const isSomewhereInsideComponentOrHook = isInsideComponentOrHook(codePathNode);
24297
24292
  const isDirectlyInsideComponentOrHook = codePathFunctionName ? isComponentName(codePathFunctionName) || isHook(codePathFunctionName) : isForwardRefCallback(codePathNode) || isMemoCallback(codePathNode);
24298
- let shortestFinalPathLength = Infinity;
24293
+ let shortestFinalPathLength = 1e400;
24299
24294
  for (const finalSegment of codePath.finalSegments) {
24300
24295
  if (!finalSegment.reachable) continue;
24301
24296
  const length = shortestPathLengthToStart(finalSegment);
@@ -27816,9 +27811,9 @@ function codePointToString(codePoint) {
27816
27811
  */
27817
27812
  const htmlDecodeData = ["Q=¨`p0AEligMPacutebrevecircyfrgravelphamacrndogonpfpplyFunctionringscrsigntildeumlBackslashrvwedcyecausernoullistafropfrevescrumpeqCHcyOPYacutepitalDifferentialDyleyscaronedilirconintdotedillanterDotfrhiircleDotMinusPlusTimeslockwiseContourIntegralseCurlyDoubleQuoteQuoteolonengruentinttourIntegralpfroductunterClockwiseContourIntegralrossscrupCapDDotrahdJcyScyZcyaggerrrshvcaronyeltafriacriticalAcuteDotubleAcuteGraveTildemondfferentialDopftDotEqualubleContourIntegralDotwnArrowLeftArrowRightArrowTeeongLeftArrowRightArrowRightArrowRightArrowTeeUpArrowDownArrowVerticalBarwnArrowBarUpArrowBreveLeftRightVectorTeeVectorVectorBarRightTeeVectorVectorBarTeeArrowarrowscrtrokENGTHacutecaronircydotfrgravelementmacrptySmallSquareVerySmallSquareogonpfpsilonqualTildeilibriumscrimtaumlxistsponentialEFcyfrilledSmallSquareVerySmallSquareopfrAlluriertrfscrGJcyTammadbrevecedilircydotfrgopfreaterEqualLessFullEqualGreaterLessSlantEqualTildescrtHARDcyacektcircfrilbertSpaceopfrizontalLinescrtrokumpDownHumpEqualIEcyJligOcyacutecircydotfrgravemacrginaryIpliesntegralrsectionvisibleCommaTimesogonpftascrtildeukcymlJcircyfropfscrercyukcyKHcyJcyappacedilyfropfscrLJcyTacutembdangplacetrfrrcaronedilyeftAngleBracketrrowBarRightArrowCeilingDoubleBracketwnTeeVectorVectorBarFloorRightArrowVectorTeeArrowVectorriangleBarEqualUpDownVectorTeeVectorVectorBarVectorBararrowrightarrowssEqualGreaterFullEqualGreaterLessSlantEqualTildefrleftarrowmidotongLeftArrowRightArrowRightArrowleftarrowrightarrowrightarrowpfwerLeftArrowRightArrowscrhtroktMapcyediumSpacellintrffrinusPlusopfscruNJcyacutecaronedilyegativeMediumSpaceThickSpacenSpaceVeryThinSpacestedGreaterGreaterLessLesswLinefroBreaknBreakingSpacepftCongruentupCapDoubleVerticalBarElementqualTildexistsGreaterEqualFullEqualGreaterLessSlantEqualTildeHumpDownHumpEqualLeftTriangleBarEqualssEqualGreaterLessSlantEqualTildeNestedGreaterGreaterLessLessPrecedesEqualSlantEqualReverseElementightTriangleBarEqualSquareSubsetEqualpersetEqualubsetEqualcceedsEqualSlantEqualTildepersetEqualTildeEqualFullEqualTildeVerticalBarscrtildeuOEligacutecircydblacfrgravemacregaicronopfpenCurlyDoubleQuoteQuoterscrlashtildemesumlverBarraceketParenthesisPartialDcyfrhiilusMinusoincareplanepfrecedesEqualSlantEqualTildeimeoductportionalscriQUOTfropfscrRBarrEGacutengrrtlcaronedilyeverseElementquilibriumUpEquilibriumfrhoightAngleBracketrrowBarLeftArrowCeilingDoubleBracketwnTeeVectorVectorBarFloorTeeArrowVectorriangleBarEqualUpDownVectorTeeVectorVectorBarVectorBararrowopfundImpliesrightarrowscrhuleDelayedSHCHcycyOFTcyacutecaronedilircyfrhortDownArrowLeftArrowRightArrowUpArrowigmamallCircleopfqrtuareIntersectionSubsetEqualpersetEqualUnionscrtarubsetEqualcceedsEqualSlantEqualTildehThatmpersetEqualsetTHORNRADESHcycyabucaronedilyfrhereforetaickSpacenSpaceildeEqualFullEqualTildeopfripleDotscrtrokUacuterrocirbrcyevecircydblacfrgravemacrnderBarraceketParenthesisionPlusogonpfpArrowBarDownArrowDownArrowEquilibriumTeeArrowarrowdownarrowperLeftArrowRightArrowsilonringscrtildeumlVDashbarcydashleerbarticalBarLineSeparatorTildeyThinSpacefropfscrvdashWcircedgefropfscrXfriopfscrYAcyIcyUcyacutecircyfropfscrumlZHcyacutecaronydoteroWidthSpacetafropfscraacutebrevecEdircuteyeligfrgravelefsymphphamacrlgpndanddslopevgelemsdaabcdefghrtvbdsphtzarrogonpfpEacireidosproxeqringscrtympeqtildeumlwconintintbNotackcongepsilonprimesimeqrveewedgebrktbrkcongydquoecausemptyvpsirnoutahweenfrigcapircupodotplustimessqcuptartriangledownupuplusveewedgekarowlacklozengesquaretriangledownleftrightnkk12434ocknequivotopfttomwtiexDLRlrHDUduULRlrVHLRhlrboxdLRlrhDUduminusplustimesuLRlrvHLRhlrprimerevevbarscremiimeolbhsubulletmpEeqcacutepandbrcupcapupdotsretoncapsronedilircupssmdotedilmptyvnterdotfrhcyeckmarkiirEceqlearrowleftrightdRSastcircdashefnintmidscirlubsuitoloneqmmatpfnlementxesngdotintpfrodysrrarrossscrubepetdotudarrlreprsclarrppbrcapcapupdotorsrarrmlyeqprecsuccveewedgerenvearrowleftrightveewedwconintintylctydArrHaraggerlethrrshvbkarowlaccaronydaggerrrotseqegltamptyvfishtrharlriamondsuitsegammasinvideontimesonxjcylcornropollarpfteqdotminusplussquareublebarwedgewnarrowdownarrowsharpoonleftrightrbkarowcornropscryoltroktdotrifuarrharwanglezcyigrarreDDototacutestercaronircolonydotefDotrgravesdotlinterslsdotmacrptysetvsp134ngspogonpfparsllussilonvqcircolonsimlantgtrlessualsestivDDvparslrDotarrscrdotimtahumlroxclistpectationonentialefallingdotseqcyemalefiligligligriligjliglatligtnsnofopfrallkvpartintrac123456823534584556878slownscrgElacutemmadpbrevecircydotelqqslantsccdotollesfrggimeljcylEajnEapproxeqqsimopfravescrimeltccirdotlParquestrapproxrrdoteqlessqlesslesssimvertneqqnEhArrairsplfmiltrdcyrcirwbarcirceartsuitlliprconfrksearowwarowoarrmthtokleftarrowrightarrowpfrbarscrlashtrokybullpheniacutecircyecyxclffrgraveiiintntnfinotajligmacrgelinepartthofpedncarefintieodottcalegersrcallarhkprodocygonpftaprodquestscrinEdotsvvtildeukcymljcircyfrmathopfscrercyukcykappavcedilyfrgreenhcyjcyopfscrlAarrrrtailBarrEgHaracuteemptyvgranmbdangdlepquorrbfsfshklpplsimtltailesbarrbrkracekkeslducaronedililubydcaquorrdharusharsheftarrowtailharpoondownupleftarrowsrightarrowsharpoonssquigarrowthreetimesgqqslantsccdotorgessapproxdoteqgtrqgtrgtrsimfishtloorrgEhardulblkjcylarrcornerhardtrimidotoustachenEapproxeqqsimoangrrbrkngleftarrowrightarrowmapstorightarrowoparrowleftrightparflustimeswastbarzengefparltrarrcornerhardmtrisaquocrhimegqbuortroktccirdothreeimeslarrquestrPariefurdsharuharvertneqqnEmDDotacrletesepstodownleftuprkercommaydasheasuredanglefrhoicrodastcirdotnusbdulcpdrnplusodelspfpscrtposultimapmapnGgtvLeftarrowrightarrowltvRightarrowVDashdashablacutengpEidosproxturalsbspumpecapronedilongdotupydasheArrarhkrowdotquivsearimxistsfrgEeqqslantssimtrhArrarrparisdvjcylArrEarrdreftarrowrightarrowqqslantsssimtriemidopftinEdotvabcnivabcparallelsltolintrcueeceqrArrarrcwightarrowtriesccueerhortmidparallelimeqmidparqsubepeubEeseteqqcceqpEeseteqqtglildelgrianglelefteqrightequmerospvDashHarrapdashgetinfinlArretrierArrtriesimwArrarhkrownearoSacutestcircydashblacivotsoldeligfcirrgonravethbarmintlarrcirrossinetmacregaicrondnusopfparerplusrarrderoffmigoforslopevscrlasholtildemesasumlvbarparallelsimltcyercntiodmilptenkfrhivmmatoneitchforkvlanckhkvusacirbcirdouemnsimtwomointintpfundrEapcueecapproxcurlyeqeqnapproxeqqsimsimimesnEapsimodfalarlinesurfptosimurelscriuncspqfrintopfprimescruaternionsintesteqotrAarrrrtailBarrHaraceutedicemptyvngdelequorrapbfscfshklpplsimtlwtailionalsbarrbrkracekkeslducaronedililubydcaldharquorshealinepartsctgfishtloorrhardulovightarrowtailharpoondownupleftarrowsharpoonsrightarrowssquigarrowthreetimesngsingdotseqlarrharmmoustachenmidoangrrbrkparflustimespargtpolintrarrsaquocrhqbuorthreeimesriefltriuluharxsacutebquocEaproncueedilircnEapsimpolintsimydotbeeArrarhkrowctmiswartminusnxtfrownharpchcyyortmidparallelyigmafvmdoteqgElEneplusrarrlarrmallsetminusshpeparslidletesoftcylbarpfpadesuitrqcapsupssubeseteqpesetequareffrarrscretmnmiletarftarfraightepsilonphinsubEdotedotmultnEeplusrarrseteqqneqqimubpccapproxcurlyeqeqnapproxeqqsimsimmngp123EdotsubedothsolublarrmultnEeplusseteqqneqqimubpwArrarhkrownwarzligtargetubrkcaronedilydotelrecfrhere4foretasymvickapproxsimnspkapsimornildemesbardntoeapbotcirforksaprimeradeiangledownlefteqqrighteqdoteminusplussbtimepeziumscryhcytrokwixtoheadleftarrowrightarrowuArrHaracuterrbrcyevecircydarrblacharfishtrgraveharlrblklcornerroptrimacrlogonpfparrowdownarrowharpoonleftrightlussihlonuparrowsrcornerropingtriscrtdotilderifuarrmlwanglevArrBarvDashangrtrepsilonkappanothingphiiroptorhosigmaubsetneqqpsetneqqthetariangleleftrightcydasheebareqlliprbartfrltrinsubpopfproprtriscrubnEepnEezigzagwcircedbargeqierpfropfpreathscrxcapircupdtrifrhArrarrilArrarrmapnisodotpflustimerArrarrscrqcupuplustriveewedgeyacuteycircyenfricyopfscrucymlzacutecaronydoteetrftafrhcyigrarropfscrwjnjC(D%D($(D'%$$ED($'$'$%$'%E$/D'$F%'D(D&#,%%&&$%$)%+%%$E$F$'$&$(#'D&$(%$&4%($(E'%&%($&$)%*$%$%$+)()')($:&5-($'($%*&&&/%%&)%@$'$F$%&&#%%)$&$&$&$(%%%&$(%$$%&%$E$2.&0,.(.(&'%.$F%$&&&(%6)&+*),---&*/1---)-.&)*+,).%*,&,*'('2+,+)1&'1,)2&'&*('($F%'#&D%D($(E&%$$&$ED($)$'%1(2$'%E$)$'((&+$&%%$%D&$(%-#&$E$3)2$F%'%+$&#'D$$'($$($(%&%$$&$E$$$F$./'*,***'*-*($F$$#)$'%$$'$%$.$&%/$&%'$.'(#'$'$&D(D'%$$&$%D($$%&&*%($%&('+%/,($'%E%%$&$($'E%#(%$$E$F$F%'$'#'$&$'$(%$$E$F$F#'D$$(%'%%%+%%$(%'%$$2(',&,-'*'0).+)1&'('-,)'&*(*)(*/&/('/),))/&')-&'('-%1','*'''-'($E$$%+$($/+-'-',+-'-%E%/(-$&%$%'$$#&$%$-%*$E$+$F$&$$#'$($(%'%$$5+-.)+0%5)+%($E$)%1%%%$&,'(&4&*''+H'(&*-(-L-J-'-M-(&O*H&/2F2((%*(***G*M*(&W,K&+.H.-&1'/3F3(&O2(.I4('H,(().H.-.H(I.(&(+(+,+(&.$FD($$#(D(D'%$$($ED($'%&%($F$6,($$$FE'D(&&D&$)('+&'.#+$%$E$%$$$+$/%%$$%)+(+-+(%&%(&*-%$F%$C'$E$&$F#(D%$(%%%%'%$(%'%$$$%/+-*0$%$%$3)'-&-,(*(0*.,)2&(((&+(+))*0&0((/*,*)0&().&(($&%-$-$&%$$-#)%%$($($$%'%'%&%$$E$0(,(-(*$'$-$F$&%')/))/(+)1()($F$&$%&&)(%)+(+-+(&(%$%$&(+(&&C($'$'%%$%%$$(%'%$$E$+&%%K&)$'(((,(($F$+$F%'C)%%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0@0000H8H40H000047P00P@001000@0B0HP@:H9T8P000LB8d@800@I0<110000QQ8400P10030005940@410020000Q02000@0200000@P0101@8000440400000000808000000000@00000000P`0000000040400@0004<000000000008000030000000000P020T400020@0@00000000000000000000000000P0000000400400000400220080000100000000000000000P000000000000P000000@00402000000000@00000000000000000000040000000000000", "Æ&ÁĂÂА𝔄ÀΑĀ⩓Ą𝔸⁡Å𝒜≔ÃÄ∖⫧⌆Б∵ℬΒ𝔅𝔹˘ℬ≎Ч©Ć⋒ⅅℭČÇĈ∰Ċ¸·ℭΧ⊙⊖⊕⊗∲”’∷⩴≡∯∮ℂ∐∳⨯𝒞⋓≍ⅅ⤑ЂЅЏ‡↡⫤ĎД∇Δ𝔇´˙˝`˜⋄ⅆ𝔻¨⃜≐∯¨⇓⇐⇔⫤⟸⟺⟹⇒⊨⇑⇕∥↓⤓⇵̑⥐⥞↽⥖⥟⇁⥗⊤↧⇓𝒟ĐŊÐÉĚÊЭĖ𝔈È∈Ē◻▫Ę𝔼Ε⩵≂⇌ℰ⩳ΗË∃ⅇФ𝔉◼▪𝔽∀ℱℱЃ>ΓϜĞĢĜГĠ𝔊⋙𝔾≥⋛≧⪢≷⩾≳𝒢≫Ъˇ^Ĥℌℋℍ─ℋĦ≎≏ЕIJЁÍÎИİℑÌℑĪⅈ⇒∬∫⋂⁣⁢Į𝕀ΙℐĨІÏĴЙ𝔍𝕁𝒥ЈЄХЌΚĶК𝔎𝕂𝒦Љ<ĹΛ⟪ℒ↞ĽĻЛ⟨←⇤⇆⌈⟦⥡⇃⥙⌊↔⥎⊣↤⥚⊲⧏⊴⥑⥠↿⥘↼⥒⇐⇔⋚≦≶⪡⩽≲𝔏⋘⇚Ŀ⟵⟷⟶⟸⟺⟹𝕃↙↘ℒ↰Ł≪⤅М ℳ𝔐∓𝕄ℳΜЊŃŇŅН​​​​≫≪\n𝔑⁠\xA0ℕ⫬≢≭∦∉≠≂̸∄≯≱≧̸≫̸≹⩾̸≵≎̸≏̸⋪⧏̸⋬≮≰≸≪̸⩽̸≴⪢̸⪡̸⊀⪯̸⋠∌⋫⧐̸⋭⊏̸⋢⊐̸⋣⊂⃒⊈⊁⪰̸⋡≿̸⊃⃒⊉≁≄≇≉∤𝒩ÑΝŒÓÔОŐ𝔒ÒŌΩΟ𝕆“‘⩔𝒪ØÕ⨷Ö‾⏞⎴⏜∂П𝔓ΦΠ±ℌℙ⪻≺⪯≼≾″∏∷∝𝒫Ψ\"𝔔ℚ𝒬⤐®Ŕ⟫↠⤖ŘŖРℜ∋⇋⥯ℜΡ⟩→⇥⇄⌉⟧⥝⇂⥕⌋⊢↦⥛⊳⧐⊵⥏⥜↾⥔⇀⥓⇒ℝ⥰⇛ℛ↱⧴ЩШЬŚ⪼ŠŞŜС𝔖↓←→↑Σ∘𝕊√□⊓⊏⊑⊐⊒⊔𝒮⋆⋐⋐⊆≻⪰≽≿∋∑⋑⊃⊇⋑Þ™ЋЦ ΤŤŢТ𝔗∴Θ   ∼≃≅≈𝕋⃛𝒯ŦÚ↟⥉ЎŬÛУŰ𝔘ÙŪ_⏟⎵⏝⋃⊎Ų𝕌↑⤒⇅↕⥮⊥↥⇑⇕↖↗ϒΥŮ𝒰ŨÜ⊫⫫В⊩⫦⋁‖‖∣|❘≀ 𝔙𝕍𝒱⊪Ŵ⋀𝔚𝕎𝒲𝔛Ξ𝕏𝒳ЯЇЮÝŶЫ𝔜𝕐𝒴ŸЖŹŽЗŻ​Ζℨℤ𝒵áă∾∾̳∿â´аæ⁡𝔞àℵℵαā⨿&∧⩕⩜⩘⩚∠⦤∠∡⦨⦩⦪⦫⦬⦭⦮⦯∟⊾⦝∢Å⍼ą𝕒≈⩰⩯≊≋'≈≊å𝒶*≈≍ãä∳⨑⫭≌϶‵∽⋍⊽⌅⌅⎵⎶≌б„∵∵⦰϶ℬβℶ≬𝔟⋂◯⋃⨀⨁⨂⨆★▽△⨄⋁⋀⤍⧫▪▴▾◂▸␣▒░▓█=⃥≡⃥⌐𝕓⊥⊥⋈╗╔╖╓═╦╩╤╧╝╚╜╙║╬╣╠╫╢╟⧉╕╒┐┌─╥╨┬┴⊟⊞⊠╛╘┘└│╪╡╞┼┤├‵˘¦𝒷⁏∽⋍\\⧅⟈••≎⪮≏≏ć∩⩄⩉⩋⩇⩀∩︀⁁ˇ⩍čçĉ⩌⩐ċ¸⦲¢·𝔠ч✓✓χ○⧃ˆ≗↺↻®Ⓢ⊛⊚⊝≗⨐⫯⧂♣♣:≔≔,@∁∘∁ℂ≅⩭∮𝕔∐©℗↵✗𝒸⫏⫑⫐⫒⋯⤸⤵⋞⋟↶⤽∪⩈⩆⩊⊍⩅∪︀↷⤼⋞⋟⋎⋏¤↶↷⋎⋏∲∱⌭⇓⥥†ℸ↓‐⊣⤏˝ďдⅆ‡⇊⩷°δ⦱⥿𝔡⇃⇂⋄⋄♦♦¨ϝ⋲÷÷⋇⋇ђ⌞⌍$𝕕˙≐≑∸∔⊡⌆↓⇊⇃⇂⤐⌟⌌𝒹ѕ⧶đ⋱▿▾⇵⥯⦦џ⟿⩷≑é⩮ě≖ê≕эėⅇ≒𝔢⪚è⪖⪘⪙⏧ℓ⪕⪗ē∅∅∅   ŋ ę𝕖⋕⧣⩱εεϵ≖≕≂⪖⪕=≟≡⩸⧥≓⥱ℯ≐≂ηðë€!∃ℰⅇ≒ф♀ffiffffl𝔣fifj♭fl▱ƒ𝕗∀⋔⫙⨍½⅓¼⅕⅙⅛⅔⅖¾⅗⅜⅘⅚⅝⅞⁄⌢𝒻≧⪌ǵγϝ⪆ğĝгġ≥⋛≥≧⩾⩾⪩⪀⪂⪄⋛︀⪔𝔤≫⋙ℷѓ≷⪒⪥⪤≩⪊⪊⪈⪈≩⋧𝕘`ℊ≳⪎⪐>⪧⩺⋗⦕⩼⪆⥸⋗⋛⪌≷≳≩︀≩︀⇔ ½ℋъ↔⥈↭ℏĥ♥♥…⊹𝔥⤥⤦⇿∻↩↪𝕙―𝒽ℏħ⁃‐í⁣îие¡⇔𝔦ìⅈ⨌∭⧜℩ijīℑℐℑı⊷Ƶ∈℅∞⧝ı∫⊺ℤ⊺⨗⨼ёį𝕚ι⨼¿𝒾∈⋹⋵⋴⋳∈⁢ĩіïĵй𝔧ȷ𝕛𝒿јєκϰķк𝔨ĸхќ𝕜𝓀⇚⇐⤛⤎≦⪋⥢ĺ⦴ℒλ⟨⦑⟨⪅«←⇤⤟⤝↩↫⤹⥳↢⪫⤙⪭⪭︀⤌❲{[⦋⦏⦍ľļ⌈{л⤶“„⥧⥋↲≤←↢↽↼⇇↔⇆⇋↭⋋⋚≤≦⩽⩽⪨⩿⪁⪃⋚︀⪓⪅⋖⋚⪋≶≲⥼⌊𝔩≶⪑↽↼⥪▄љ≪⇇⌞⥫◺ŀ⎰⎰≨⪉⪉⪇⪇≨⋦⟬⇽⟦⟵⟷⟼⟶↫↬⦅𝕝⨭⨴∗_◊◊⧫(⦓⇆⌟⇋⥭‎⊿‹𝓁↰≲⪍⪏[‘‚ł<⪦⩹⋖⋋⋉⥶⩻⦖◃⊴◂⥊⥦≨︀≨︀∺¯♂✠✠↦↦↧↤↥▮⨩м—∡𝔪℧µ∣*⫰·−⊟∸⨪⫛…∓⊧𝕞∓𝓂∾μ⊸⊸⋙̸≫⃒≫̸⇍⇎⋘̸≪⃒≪̸⇏⊯⊮∇ń∠⃒≉⩰̸≋̸ʼn≉♮♮ℕ\xA0≎̸≏̸⩃ňņ≇⩭̸⩂н–≠⇗⤤↗↗≐̸≢⤨≂̸∄∄𝔫≧̸≱≱≧̸⩾̸⩾̸≵≯≯⇎↮⫲∋⋼⋺∋њ⇍≦̸↚‥≰↚↮≰≦̸⩽̸⩽̸≮≴≮⋪⋬∤𝕟¬∉⋹̸⋵̸∉⋷⋶∌∌⋾⋽∦∦⫽⃥∂̸⨔⊀⋠⪯̸⊀⪯̸⇏↛⤳̸↝̸↛⋫⋭⊁⋡⪰̸𝓃∤∦≁≄≄∤∦⋢⋣⊄⫅̸⊈⊂⃒⊈⫅̸⊁⪰̸⊅⫆̸⊉⊃⃒⊉⫆̸≹ñ≸⋪⋬⋫⋭ν#№ ⊭⤄≍⃒⊬≥⃒>⃒⧞⤂≤⃒<⃒⊴⃒⤃⊵⃒∼⃒⇖⤣↖↖⤧Ⓢó⊛⊚ôо⊝ő⨸⊙⦼œ⦿𝔬˛ò⧁⦵Ω∮↺⦾⦻‾⧀ōωο⦶⊖𝕠⦷⦹⊕∨↻⩝ℴℴªº⊶⩖⩗⩛ℴø⊘õ⊗⨶ö⌽∥¶∥⫳⫽∂п%.‰⊥‱𝔭φϕℳ☎π⋔ϖℏℎℏ+⨣⊞⨢∔⨥⩲±⨦⨧±⨕𝕡£≺⪳⪷≼⪯≺⪷≼⪯⪹⪵⋨≾′ℙ⪵⪹⋨∏⌮⌒⌓∝∝≾⊰𝓅ψ 𝔮⨌𝕢⁗𝓆ℍ⨖?≟\"⇛⇒⤜⤏⥤∽̱ŕ√⦳⟩⦒⦥⟩»→⥵⇥⤠⤳⤞↪↬⥅⥴↣↝⤚∶ℚ⤍❳}]⦌⦎⦐řŗ⌉}р⤷⥩””↳ℜℛℜℝ▭®⥽⌋𝔯⇁⇀⥬ρϱ→↣⇁⇀⇄⇌⇉↝⋌˚≓⇄⇌‏⎱⎱⫮⟭⇾⟧⦆𝕣⨮⨵)⦔⨒⇉›𝓇↱]’’⋌⋊▹⊵▸⧎⥨℞ś‚≻⪴⪸š≽⪰şŝ⪶⪺⋩⨓≿с⋅⊡⩦⇘⤥↘↘§;⤩∖∖✶𝔰⌢♯щш∣∥­σςς∼⩪≃≃⪞⪠⪝⪟≆⨤⥲←∖⨳⧤∣⌣⪪⪬⪬︀ь/⧄⌿𝕤♠♠∥⊓⊓︀⊔⊔︀⊏⊑⊏⊑⊐⊒⊐⊒□□▪▪→𝓈∖⌣⋆☆★ϵϕ¯⊂⫅⪽⊆⫃⫁⫋⊊⪿⥹⊂⊆⫅⊊⫋⫇⫕⫓≻⪸≽⪰⪺⪶⋩≿∑♪⊃¹²³⫆⪾⫘⊇⫄⟉⫗⥻⫂⫌⊋⫀⊃⊇⫆⊋⫌⫈⫔⫖⇙⤦↙↙⤪ß⌖τ⎴ťţт⃛⌕𝔱∴∴θϑϑ≈∼ ≈∼þ˜×⊠⨱⨰∭⤨⊤⌶⫱𝕥⫚⤩‴™▵▿◃⊴≜▹⊵◬≜⨺⨹⧍⨻⏢𝓉цћŧ≬↞↠⇑⥣ú↑ўŭûу⇅ű⥮⥾𝔲ù↿↾▀⌜⌜⌏◸ū¨ų𝕦↑↕↿↾⊎υϒυ⇈⌝⌝⌎ů◹𝓊⋰ũ▵▴⇈ü⦧⇕⫨⫩⊨⦜ϵϰ∅ϕϖ∝↕ϱς⊊︀⫋︀⊋︀⫌︀ϑ⊲⊳в⊢∨⊻≚⋮||𝔳⊲⊂⃒⊃⃒𝕧∝⊳𝓋⫋︀⊊︀⫌︀⊋︀⦚ŵ⩟∧≙℘𝔴𝕨℘≀≀𝓌⋂◯⋃▽𝔵⟺⟷ξ⟸⟵⟼⋻⨀𝕩⨁⨂⟹⟶𝓍⨆⨄△⋁⋀ýяŷы¥𝔶ї𝕪𝓎юÿźžзżℨζ𝔷ж⇝𝕫𝓏‍‌"];
27818
27813
  /** Multiplier deriving the first candidate bucket from a key. */
27819
- const BUCKET_HASH_1 = 2654435761;
27814
+ const BUCKET_HASH_1 = 0x9e3779b1;
27820
27815
  /** Multiplier deriving the second candidate bucket from a key. */
27821
- const BUCKET_HASH_2 = 2246822507;
27816
+ const BUCKET_HASH_2 = 0x85ebca6b;
27822
27817
  /** Size of the (c0,c1) class table (10-bit index). */
27823
27818
  const PAIR_TABLE_SIZE = 1024;
27824
27819
  /**
@@ -29040,7 +29035,7 @@ const o = (n, s, c) => {
29040
29035
  if (u.length) {
29041
29036
  if (u.length > 1) throw new Error("Pattern error: Using `...P.array(...)` several times in a single pattern is not allowed.");
29042
29037
  if (s.length < t.length + r.length) return !1;
29043
- const e = s.slice(0, t.length), n = 0 === r.length ? [] : s.slice(-r.length), i = s.slice(t.length, 0 === r.length ? Infinity : -r.length);
29038
+ const e = s.slice(0, t.length), n = 0 === r.length ? [] : s.slice(-r.length), i = s.slice(t.length, 0 === r.length ? 1e400 : -r.length);
29044
29039
  return t.every((t, n) => o(t, e[n], c)) && r.every((t, e) => o(t, n[e], c)) && (0 === u.length || o(u[0], i, c));
29045
29040
  }
29046
29041
  return n.length === s.length && n.every((t, e) => o(t, s[e], c));
@@ -32248,10 +32243,10 @@ const finalPlugin = {
32248
32243
  };
32249
32244
  const PREFIX = "@eslint-react/";
32250
32245
  const upstreamConfigs = finalPlugin.configs;
32251
- const configs = pipe(upstreamConfigs, Record.map((config) => ({ rules: Option.getOrUndefined(rulesOf(config)) })));
32246
+ const configs = pipe$1(upstreamConfigs, Record.map((config) => ({ rules: Option.getOrUndefined(rulesOf(config)) })));
32252
32247
  const upstreamRules = Option.fromNullishOr(finalPlugin.rules).pipe(Option.getOrElse(() => ({})));
32253
32248
  const typeCheckedIds = Option.fromNullishOr(configs["disable-type-checked"].rules).pipe(Option.map(Record.keys), Option.getOrElse(() => []), Array$1.map(String$1.replace(PREFIX, "")));
32254
- const typeCheckedRules = new Set(pipe(typeCheckedIds, Array$1.flatMap((id) => Option.toArray(Record.get(upstreamRules, id)))));
32249
+ const typeCheckedRules = new Set(pipe$1(typeCheckedIds, Array$1.flatMap((id) => Option.toArray(Record.get(upstreamRules, id)))));
32255
32250
  const withTypes = (rule) => Option.liftPredicate(rule, (candidate) => typeCheckedRules.has(candidate)).pipe(Option.match({
32256
32251
  onSome: withTypeInformation,
32257
32252
  onNone: () => withOptionalTypeInformation(rule)
@@ -32259,7 +32254,7 @@ const withTypes = (rule) => Option.liftPredicate(rule, (candidate) => typeChecke
32259
32254
  const plugin = {
32260
32255
  meta: { name: "@eslint-react" },
32261
32256
  configs,
32262
- rules: usageMeter(import.meta.url).within("@eslint-react").rules(pipe(upstreamRules, Record.filter(isTypedRule), Record.map(withTypes)))
32257
+ rules: usageMeter(import.meta.url).within("@eslint-react").rules(pipe$1(upstreamRules, Record.filter(isTypedRule), Record.map(withTypes)))
32263
32258
  };
32264
32259
  export { plugin as default };
32265
32260