@eslint-react/jsx 0.8.6-beta.0 → 0.8.6-beta.3

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 (652) hide show
  1. package/node_modules/@eslint-react/ast/dist/index.cjs +958 -0
  2. package/node_modules/@eslint-react/ast/dist/index.d.mts +1185 -0
  3. package/node_modules/@eslint-react/ast/dist/index.d.ts +1185 -0
  4. package/node_modules/@eslint-react/ast/dist/index.js +958 -0
  5. package/node_modules/@eslint-react/ast/dist/index.mjs +878 -0
  6. package/node_modules/@eslint-react/ast/package.json +52 -0
  7. package/node_modules/@eslint-react/tools/dist/index.cjs +9195 -0
  8. package/node_modules/@eslint-react/tools/dist/index.d.mts +173 -0
  9. package/node_modules/@eslint-react/tools/dist/index.d.ts +173 -0
  10. package/node_modules/@eslint-react/tools/dist/index.js +9195 -0
  11. package/node_modules/@eslint-react/tools/dist/index.mjs +9174 -0
  12. package/node_modules/@eslint-react/tools/package.json +46 -0
  13. package/node_modules/@eslint-react/types/dist/index.cjs +2 -0
  14. package/node_modules/@eslint-react/types/dist/index.d.mts +65 -0
  15. package/node_modules/@eslint-react/types/dist/index.d.ts +65 -0
  16. package/node_modules/@eslint-react/types/dist/index.js +2 -0
  17. package/node_modules/@eslint-react/types/dist/index.mjs +1 -0
  18. package/node_modules/@eslint-react/types/package.json +49 -0
  19. package/node_modules/@typescript-eslint/scope-manager/LICENSE +21 -0
  20. package/node_modules/@typescript-eslint/scope-manager/README.md +10 -0
  21. package/node_modules/@typescript-eslint/scope-manager/dist/ID.d.ts +4 -0
  22. package/node_modules/@typescript-eslint/scope-manager/dist/ID.d.ts.map +1 -0
  23. package/node_modules/@typescript-eslint/scope-manager/dist/ID.js +21 -0
  24. package/node_modules/@typescript-eslint/scope-manager/dist/ID.js.map +1 -0
  25. package/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.d.ts +75 -0
  26. package/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.d.ts.map +1 -0
  27. package/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.js +185 -0
  28. package/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.js.map +1 -0
  29. package/node_modules/@typescript-eslint/scope-manager/dist/analyze.d.ts +56 -0
  30. package/node_modules/@typescript-eslint/scope-manager/dist/analyze.d.ts.map +1 -0
  31. package/node_modules/@typescript-eslint/scope-manager/dist/analyze.js +42 -0
  32. package/node_modules/@typescript-eslint/scope-manager/dist/analyze.js.map +1 -0
  33. package/node_modules/@typescript-eslint/scope-manager/dist/assert.d.ts +3 -0
  34. package/node_modules/@typescript-eslint/scope-manager/dist/assert.d.ts.map +1 -0
  35. package/node_modules/@typescript-eslint/scope-manager/dist/assert.js +11 -0
  36. package/node_modules/@typescript-eslint/scope-manager/dist/assert.js.map +1 -0
  37. package/node_modules/@typescript-eslint/scope-manager/dist/definition/CatchClauseDefinition.d.ts +10 -0
  38. package/node_modules/@typescript-eslint/scope-manager/dist/definition/CatchClauseDefinition.d.ts.map +1 -0
  39. package/node_modules/@typescript-eslint/scope-manager/dist/definition/CatchClauseDefinition.js +14 -0
  40. package/node_modules/@typescript-eslint/scope-manager/dist/definition/CatchClauseDefinition.js.map +1 -0
  41. package/node_modules/@typescript-eslint/scope-manager/dist/definition/ClassNameDefinition.d.ts +10 -0
  42. package/node_modules/@typescript-eslint/scope-manager/dist/definition/ClassNameDefinition.d.ts.map +1 -0
  43. package/node_modules/@typescript-eslint/scope-manager/dist/definition/ClassNameDefinition.js +14 -0
  44. package/node_modules/@typescript-eslint/scope-manager/dist/definition/ClassNameDefinition.js.map +1 -0
  45. package/node_modules/@typescript-eslint/scope-manager/dist/definition/Definition.d.ts +14 -0
  46. package/node_modules/@typescript-eslint/scope-manager/dist/definition/Definition.d.ts.map +1 -0
  47. package/node_modules/@typescript-eslint/scope-manager/dist/definition/Definition.js +3 -0
  48. package/node_modules/@typescript-eslint/scope-manager/dist/definition/Definition.js.map +1 -0
  49. package/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionBase.d.ts +39 -0
  50. package/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionBase.d.ts.map +1 -0
  51. package/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionBase.js +19 -0
  52. package/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionBase.js.map +1 -0
  53. package/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionType.d.ts +15 -0
  54. package/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionType.d.ts.map +1 -0
  55. package/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionType.js +18 -0
  56. package/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionType.js.map +1 -0
  57. package/node_modules/@typescript-eslint/scope-manager/dist/definition/FunctionNameDefinition.d.ts +10 -0
  58. package/node_modules/@typescript-eslint/scope-manager/dist/definition/FunctionNameDefinition.d.ts.map +1 -0
  59. package/node_modules/@typescript-eslint/scope-manager/dist/definition/FunctionNameDefinition.js +14 -0
  60. package/node_modules/@typescript-eslint/scope-manager/dist/definition/FunctionNameDefinition.js.map +1 -0
  61. package/node_modules/@typescript-eslint/scope-manager/dist/definition/ImplicitGlobalVariableDefinition.d.ts +10 -0
  62. package/node_modules/@typescript-eslint/scope-manager/dist/definition/ImplicitGlobalVariableDefinition.d.ts.map +1 -0
  63. package/node_modules/@typescript-eslint/scope-manager/dist/definition/ImplicitGlobalVariableDefinition.js +14 -0
  64. package/node_modules/@typescript-eslint/scope-manager/dist/definition/ImplicitGlobalVariableDefinition.js.map +1 -0
  65. package/node_modules/@typescript-eslint/scope-manager/dist/definition/ImportBindingDefinition.d.ts +11 -0
  66. package/node_modules/@typescript-eslint/scope-manager/dist/definition/ImportBindingDefinition.d.ts.map +1 -0
  67. package/node_modules/@typescript-eslint/scope-manager/dist/definition/ImportBindingDefinition.js +14 -0
  68. package/node_modules/@typescript-eslint/scope-manager/dist/definition/ImportBindingDefinition.js.map +1 -0
  69. package/node_modules/@typescript-eslint/scope-manager/dist/definition/ParameterDefinition.d.ts +14 -0
  70. package/node_modules/@typescript-eslint/scope-manager/dist/definition/ParameterDefinition.d.ts.map +1 -0
  71. package/node_modules/@typescript-eslint/scope-manager/dist/definition/ParameterDefinition.js +15 -0
  72. package/node_modules/@typescript-eslint/scope-manager/dist/definition/ParameterDefinition.js.map +1 -0
  73. package/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumMemberDefinition.d.ts +10 -0
  74. package/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumMemberDefinition.d.ts.map +1 -0
  75. package/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumMemberDefinition.js +14 -0
  76. package/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumMemberDefinition.js.map +1 -0
  77. package/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumNameDefinition.d.ts +10 -0
  78. package/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumNameDefinition.d.ts.map +1 -0
  79. package/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumNameDefinition.js +14 -0
  80. package/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumNameDefinition.js.map +1 -0
  81. package/node_modules/@typescript-eslint/scope-manager/dist/definition/TSModuleNameDefinition.d.ts +10 -0
  82. package/node_modules/@typescript-eslint/scope-manager/dist/definition/TSModuleNameDefinition.d.ts.map +1 -0
  83. package/node_modules/@typescript-eslint/scope-manager/dist/definition/TSModuleNameDefinition.js +14 -0
  84. package/node_modules/@typescript-eslint/scope-manager/dist/definition/TSModuleNameDefinition.js.map +1 -0
  85. package/node_modules/@typescript-eslint/scope-manager/dist/definition/TypeDefinition.d.ts +10 -0
  86. package/node_modules/@typescript-eslint/scope-manager/dist/definition/TypeDefinition.d.ts.map +1 -0
  87. package/node_modules/@typescript-eslint/scope-manager/dist/definition/TypeDefinition.js +14 -0
  88. package/node_modules/@typescript-eslint/scope-manager/dist/definition/TypeDefinition.js.map +1 -0
  89. package/node_modules/@typescript-eslint/scope-manager/dist/definition/VariableDefinition.d.ts +10 -0
  90. package/node_modules/@typescript-eslint/scope-manager/dist/definition/VariableDefinition.d.ts.map +1 -0
  91. package/node_modules/@typescript-eslint/scope-manager/dist/definition/VariableDefinition.js +14 -0
  92. package/node_modules/@typescript-eslint/scope-manager/dist/definition/VariableDefinition.js.map +1 -0
  93. package/node_modules/@typescript-eslint/scope-manager/dist/definition/index.d.ts +14 -0
  94. package/node_modules/@typescript-eslint/scope-manager/dist/definition/index.d.ts.map +1 -0
  95. package/node_modules/@typescript-eslint/scope-manager/dist/definition/index.js +30 -0
  96. package/node_modules/@typescript-eslint/scope-manager/dist/definition/index.js.map +1 -0
  97. package/node_modules/@typescript-eslint/scope-manager/dist/index.d.ts +9 -0
  98. package/node_modules/@typescript-eslint/scope-manager/dist/index.d.ts.map +1 -0
  99. package/node_modules/@typescript-eslint/scope-manager/dist/index.js +31 -0
  100. package/node_modules/@typescript-eslint/scope-manager/dist/index.js.map +1 -0
  101. package/node_modules/@typescript-eslint/scope-manager/dist/lib/base-config.d.ts +16 -0
  102. package/node_modules/@typescript-eslint/scope-manager/dist/lib/base-config.d.ts.map +1 -0
  103. package/node_modules/@typescript-eslint/scope-manager/dist/lib/base-config.js +23 -0
  104. package/node_modules/@typescript-eslint/scope-manager/dist/lib/base-config.js.map +1 -0
  105. package/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.d.ts +3 -0
  106. package/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.d.ts.map +1 -0
  107. package/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.js +23 -0
  108. package/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.js.map +1 -0
  109. package/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.d.ts +3 -0
  110. package/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.d.ts.map +1 -0
  111. package/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.js +15 -0
  112. package/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.js.map +1 -0
  113. package/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.d.ts +3 -0
  114. package/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.d.ts.map +1 -0
  115. package/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.iterable.d.ts +3 -0
  116. package/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.iterable.d.ts.map +1 -0
  117. package/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.iterable.js +75 -0
  118. package/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.iterable.js.map +1 -0
  119. package/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.js +1436 -0
  120. package/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.js.map +1 -0
  121. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.collection.d.ts +3 -0
  122. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.collection.d.ts.map +1 -0
  123. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.collection.js +21 -0
  124. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.collection.js.map +1 -0
  125. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.core.d.ts +3 -0
  126. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.core.d.ts.map +1 -0
  127. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.core.js +23 -0
  128. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.core.js.map +1 -0
  129. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.d.ts +3 -0
  130. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.d.ts.map +1 -0
  131. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.generator.d.ts +3 -0
  132. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.generator.d.ts.map +1 -0
  133. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.generator.js +16 -0
  134. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.generator.js.map +1 -0
  135. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.iterable.d.ts +3 -0
  136. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.iterable.d.ts.map +1 -0
  137. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.iterable.js +55 -0
  138. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.iterable.js.map +1 -0
  139. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.js +30 -0
  140. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.js.map +1 -0
  141. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.promise.d.ts +3 -0
  142. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.promise.d.ts.map +1 -0
  143. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.promise.js +12 -0
  144. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.promise.js.map +1 -0
  145. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.proxy.d.ts +3 -0
  146. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.proxy.d.ts.map +1 -0
  147. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.proxy.js +13 -0
  148. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.proxy.js.map +1 -0
  149. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.reflect.d.ts +3 -0
  150. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.reflect.d.ts.map +1 -0
  151. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.reflect.js +12 -0
  152. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.reflect.js.map +1 -0
  153. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.d.ts +3 -0
  154. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.d.ts.map +1 -0
  155. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.js +12 -0
  156. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.js.map +1 -0
  157. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.wellknown.d.ts +3 -0
  158. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.wellknown.d.ts.map +1 -0
  159. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.wellknown.js +46 -0
  160. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.wellknown.js.map +1 -0
  161. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.array.include.d.ts +3 -0
  162. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.array.include.d.ts.map +1 -0
  163. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.array.include.js +22 -0
  164. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.array.include.js.map +1 -0
  165. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.d.ts +3 -0
  166. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.d.ts.map +1 -0
  167. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.full.d.ts +3 -0
  168. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.full.d.ts.map +1 -0
  169. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.full.js +20 -0
  170. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.full.js.map +1 -0
  171. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.js +14 -0
  172. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.js.map +1 -0
  173. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.d.ts +3 -0
  174. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.d.ts.map +1 -0
  175. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.date.d.ts +3 -0
  176. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.date.d.ts.map +1 -0
  177. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.date.js +12 -0
  178. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.date.js.map +1 -0
  179. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.full.d.ts +3 -0
  180. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.full.d.ts.map +1 -0
  181. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.full.js +20 -0
  182. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.full.js.map +1 -0
  183. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.intl.d.ts +3 -0
  184. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.intl.d.ts.map +1 -0
  185. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.intl.js +12 -0
  186. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.intl.js.map +1 -0
  187. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.js +24 -0
  188. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.js.map +1 -0
  189. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.object.d.ts +3 -0
  190. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.object.d.ts.map +1 -0
  191. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.object.js +12 -0
  192. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.object.js.map +1 -0
  193. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.sharedmemory.d.ts +3 -0
  194. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.sharedmemory.d.ts.map +1 -0
  195. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.sharedmemory.js +19 -0
  196. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.sharedmemory.js.map +1 -0
  197. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.string.d.ts +3 -0
  198. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.string.d.ts.map +1 -0
  199. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.string.js +12 -0
  200. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.string.js.map +1 -0
  201. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.typedarrays.d.ts +3 -0
  202. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.typedarrays.d.ts.map +1 -0
  203. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.typedarrays.js +20 -0
  204. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.typedarrays.js.map +1 -0
  205. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asyncgenerator.d.ts +3 -0
  206. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asyncgenerator.d.ts.map +1 -0
  207. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asyncgenerator.js +16 -0
  208. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asyncgenerator.js.map +1 -0
  209. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asynciterable.d.ts +3 -0
  210. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asynciterable.d.ts.map +1 -0
  211. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asynciterable.js +19 -0
  212. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asynciterable.js.map +1 -0
  213. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.d.ts +3 -0
  214. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.d.ts.map +1 -0
  215. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.full.d.ts +3 -0
  216. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.full.d.ts.map +1 -0
  217. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.full.js +20 -0
  218. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.full.js.map +1 -0
  219. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.intl.d.ts +3 -0
  220. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.intl.d.ts.map +1 -0
  221. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.intl.js +12 -0
  222. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.intl.js.map +1 -0
  223. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.js +22 -0
  224. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.js.map +1 -0
  225. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.promise.d.ts +3 -0
  226. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.promise.d.ts.map +1 -0
  227. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.promise.js +12 -0
  228. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.promise.js.map +1 -0
  229. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.regexp.d.ts +3 -0
  230. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.regexp.d.ts.map +1 -0
  231. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.regexp.js +14 -0
  232. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.regexp.js.map +1 -0
  233. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.array.d.ts +3 -0
  234. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.array.d.ts.map +1 -0
  235. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.array.js +14 -0
  236. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.array.js.map +1 -0
  237. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.d.ts +3 -0
  238. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.d.ts.map +1 -0
  239. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.full.d.ts +3 -0
  240. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.full.d.ts.map +1 -0
  241. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.full.js +20 -0
  242. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.full.js.map +1 -0
  243. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.d.ts +3 -0
  244. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.d.ts.map +1 -0
  245. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.js +12 -0
  246. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.js.map +1 -0
  247. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.js +22 -0
  248. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.js.map +1 -0
  249. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.object.d.ts +3 -0
  250. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.object.d.ts.map +1 -0
  251. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.object.js +14 -0
  252. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.object.js.map +1 -0
  253. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.string.d.ts +3 -0
  254. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.string.d.ts.map +1 -0
  255. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.string.js +12 -0
  256. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.string.js.map +1 -0
  257. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.symbol.d.ts +3 -0
  258. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.symbol.d.ts.map +1 -0
  259. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.symbol.js +12 -0
  260. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.symbol.js.map +1 -0
  261. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.bigint.d.ts +3 -0
  262. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.bigint.d.ts.map +1 -0
  263. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.bigint.js +22 -0
  264. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.bigint.js.map +1 -0
  265. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.d.ts +3 -0
  266. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.d.ts.map +1 -0
  267. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.date.d.ts +3 -0
  268. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.date.d.ts.map +1 -0
  269. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.date.js +14 -0
  270. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.date.js.map +1 -0
  271. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.full.d.ts +3 -0
  272. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.full.d.ts.map +1 -0
  273. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.full.js +20 -0
  274. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.full.js.map +1 -0
  275. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.intl.d.ts +3 -0
  276. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.intl.d.ts.map +1 -0
  277. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.intl.js +14 -0
  278. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.intl.js.map +1 -0
  279. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.js +28 -0
  280. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.js.map +1 -0
  281. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.number.d.ts +3 -0
  282. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.number.d.ts.map +1 -0
  283. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.number.js +14 -0
  284. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.number.js.map +1 -0
  285. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.promise.d.ts +3 -0
  286. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.promise.d.ts.map +1 -0
  287. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.promise.js +15 -0
  288. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.promise.js.map +1 -0
  289. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.sharedmemory.d.ts +3 -0
  290. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.sharedmemory.d.ts.map +1 -0
  291. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.sharedmemory.js +12 -0
  292. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.sharedmemory.js.map +1 -0
  293. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.string.d.ts +3 -0
  294. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.string.d.ts.map +1 -0
  295. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.string.js +14 -0
  296. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.string.js.map +1 -0
  297. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.symbol.wellknown.d.ts +3 -0
  298. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.symbol.wellknown.d.ts.map +1 -0
  299. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.symbol.wellknown.js +17 -0
  300. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.symbol.wellknown.js.map +1 -0
  301. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.d.ts +3 -0
  302. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.d.ts.map +1 -0
  303. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.full.d.ts +3 -0
  304. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.full.d.ts.map +1 -0
  305. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.full.js +20 -0
  306. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.full.js.map +1 -0
  307. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.intl.d.ts +3 -0
  308. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.intl.d.ts.map +1 -0
  309. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.intl.js +12 -0
  310. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.intl.js.map +1 -0
  311. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.js +20 -0
  312. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.js.map +1 -0
  313. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.promise.d.ts +3 -0
  314. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.promise.d.ts.map +1 -0
  315. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.promise.js +14 -0
  316. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.promise.js.map +1 -0
  317. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.string.d.ts +3 -0
  318. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.string.d.ts.map +1 -0
  319. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.string.js +12 -0
  320. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.string.js.map +1 -0
  321. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.weakref.d.ts +3 -0
  322. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.weakref.d.ts.map +1 -0
  323. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.weakref.js +15 -0
  324. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.weakref.js.map +1 -0
  325. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.array.d.ts +3 -0
  326. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.array.d.ts.map +1 -0
  327. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.array.js +24 -0
  328. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.array.js.map +1 -0
  329. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.d.ts +3 -0
  330. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.d.ts.map +1 -0
  331. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.error.d.ts +3 -0
  332. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.error.d.ts.map +1 -0
  333. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.error.js +21 -0
  334. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.error.js.map +1 -0
  335. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.full.d.ts +3 -0
  336. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.full.d.ts.map +1 -0
  337. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.full.js +20 -0
  338. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.full.js.map +1 -0
  339. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.intl.d.ts +3 -0
  340. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.intl.d.ts.map +1 -0
  341. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.intl.js +12 -0
  342. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.intl.js.map +1 -0
  343. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.js +26 -0
  344. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.js.map +1 -0
  345. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.object.d.ts +3 -0
  346. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.object.d.ts.map +1 -0
  347. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.object.js +12 -0
  348. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.object.js.map +1 -0
  349. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.d.ts +3 -0
  350. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.d.ts.map +1 -0
  351. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.js +15 -0
  352. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.js.map +1 -0
  353. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.sharedmemory.d.ts +3 -0
  354. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.sharedmemory.d.ts.map +1 -0
  355. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.sharedmemory.js +12 -0
  356. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.sharedmemory.js.map +1 -0
  357. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.string.d.ts +3 -0
  358. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.string.d.ts.map +1 -0
  359. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.string.js +12 -0
  360. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.string.js.map +1 -0
  361. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.d.ts +3 -0
  362. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.d.ts.map +1 -0
  363. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.js +24 -0
  364. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.js.map +1 -0
  365. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.collection.d.ts +3 -0
  366. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.collection.d.ts.map +1 -0
  367. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.collection.js +12 -0
  368. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.collection.js.map +1 -0
  369. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.d.ts +3 -0
  370. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.d.ts.map +1 -0
  371. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.d.ts +3 -0
  372. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.d.ts.map +1 -0
  373. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.js +20 -0
  374. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.js.map +1 -0
  375. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.js +16 -0
  376. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.js.map +1 -0
  377. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es5.d.ts +3 -0
  378. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es5.d.ts.map +1 -0
  379. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es5.js +116 -0
  380. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es5.js.map +1 -0
  381. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es6.d.ts +3 -0
  382. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es6.d.ts.map +1 -0
  383. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es6.js +30 -0
  384. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es6.js.map +1 -0
  385. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es7.d.ts +3 -0
  386. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es7.d.ts.map +1 -0
  387. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es7.js +14 -0
  388. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es7.js.map +1 -0
  389. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.array.d.ts +3 -0
  390. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.array.d.ts.map +1 -0
  391. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.array.js +24 -0
  392. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.array.js.map +1 -0
  393. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.asynciterable.d.ts +3 -0
  394. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.asynciterable.d.ts.map +1 -0
  395. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.asynciterable.js +19 -0
  396. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.asynciterable.js.map +1 -0
  397. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.bigint.d.ts +3 -0
  398. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.bigint.d.ts.map +1 -0
  399. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.bigint.js +22 -0
  400. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.bigint.js.map +1 -0
  401. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.collection.d.ts +3 -0
  402. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.collection.d.ts.map +1 -0
  403. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.collection.js +12 -0
  404. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.collection.js.map +1 -0
  405. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.d.ts +3 -0
  406. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.d.ts.map +1 -0
  407. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.decorators.d.ts +3 -0
  408. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.decorators.d.ts.map +1 -0
  409. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.decorators.js +17 -0
  410. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.decorators.js.map +1 -0
  411. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.disposable.d.ts +3 -0
  412. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.disposable.d.ts.map +1 -0
  413. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.disposable.js +22 -0
  414. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.disposable.js.map +1 -0
  415. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.full.d.ts +3 -0
  416. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.full.d.ts.map +1 -0
  417. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.full.js +20 -0
  418. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.full.js.map +1 -0
  419. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.intl.d.ts +3 -0
  420. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.intl.d.ts.map +1 -0
  421. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.intl.js +12 -0
  422. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.intl.js.map +1 -0
  423. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.js +18 -0
  424. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.js.map +1 -0
  425. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.promise.d.ts +3 -0
  426. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.promise.d.ts.map +1 -0
  427. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.promise.js +14 -0
  428. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.promise.js.map +1 -0
  429. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.string.d.ts +3 -0
  430. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.string.d.ts.map +1 -0
  431. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.string.js +12 -0
  432. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.string.js.map +1 -0
  433. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.symbol.d.ts +3 -0
  434. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.symbol.d.ts.map +1 -0
  435. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.symbol.js +12 -0
  436. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.symbol.js.map +1 -0
  437. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.weakref.d.ts +3 -0
  438. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.weakref.d.ts.map +1 -0
  439. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.weakref.js +15 -0
  440. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.weakref.js.map +1 -0
  441. package/node_modules/@typescript-eslint/scope-manager/dist/lib/index.d.ts +93 -0
  442. package/node_modules/@typescript-eslint/scope-manager/dist/lib/index.d.ts.map +1 -0
  443. package/node_modules/@typescript-eslint/scope-manager/dist/lib/index.js +189 -0
  444. package/node_modules/@typescript-eslint/scope-manager/dist/lib/index.js.map +1 -0
  445. package/node_modules/@typescript-eslint/scope-manager/dist/lib/lib.d.ts +3 -0
  446. package/node_modules/@typescript-eslint/scope-manager/dist/lib/lib.d.ts.map +1 -0
  447. package/node_modules/@typescript-eslint/scope-manager/dist/lib/lib.js +18 -0
  448. package/node_modules/@typescript-eslint/scope-manager/dist/lib/lib.js.map +1 -0
  449. package/node_modules/@typescript-eslint/scope-manager/dist/lib/scripthost.d.ts +3 -0
  450. package/node_modules/@typescript-eslint/scope-manager/dist/lib/scripthost.d.ts.map +1 -0
  451. package/node_modules/@typescript-eslint/scope-manager/dist/lib/scripthost.js +24 -0
  452. package/node_modules/@typescript-eslint/scope-manager/dist/lib/scripthost.js.map +1 -0
  453. package/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.d.ts +3 -0
  454. package/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.d.ts.map +1 -0
  455. package/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.importscripts.d.ts +3 -0
  456. package/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.importscripts.d.ts.map +1 -0
  457. package/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.importscripts.js +9 -0
  458. package/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.importscripts.js.map +1 -0
  459. package/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.iterable.d.ts +3 -0
  460. package/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.iterable.d.ts.map +1 -0
  461. package/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.iterable.js +34 -0
  462. package/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.iterable.js.map +1 -0
  463. package/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.js +589 -0
  464. package/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.js.map +1 -0
  465. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.d.ts +29 -0
  466. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.d.ts.map +1 -0
  467. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.js +321 -0
  468. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.js.map +1 -0
  469. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ExportVisitor.d.ts +15 -0
  470. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ExportVisitor.d.ts.map +1 -0
  471. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ExportVisitor.js +84 -0
  472. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ExportVisitor.js.map +1 -0
  473. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ImportVisitor.d.ts +14 -0
  474. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ImportVisitor.d.ts.map +1 -0
  475. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ImportVisitor.js +50 -0
  476. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ImportVisitor.js.map +1 -0
  477. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.d.ts +29 -0
  478. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.d.ts.map +1 -0
  479. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.js +108 -0
  480. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.js.map +1 -0
  481. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/Reference.d.ts +89 -0
  482. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/Reference.d.ts.map +1 -0
  483. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/Reference.js +107 -0
  484. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/Reference.js.map +1 -0
  485. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.d.ts +86 -0
  486. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.d.ts.map +1 -0
  487. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.js +539 -0
  488. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.js.map +1 -0
  489. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/TypeVisitor.d.ts +33 -0
  490. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/TypeVisitor.d.ts.map +1 -0
  491. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/TypeVisitor.js +229 -0
  492. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/TypeVisitor.js.map +1 -0
  493. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/Visitor.d.ts +13 -0
  494. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/Visitor.d.ts.map +1 -0
  495. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/Visitor.js +41 -0
  496. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/Visitor.js.map +1 -0
  497. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/VisitorBase.d.ts +22 -0
  498. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/VisitorBase.d.ts.map +1 -0
  499. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/VisitorBase.js +80 -0
  500. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/VisitorBase.js.map +1 -0
  501. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/index.d.ts +2 -0
  502. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/index.d.ts.map +1 -0
  503. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/index.js +6 -0
  504. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/index.js.map +1 -0
  505. package/node_modules/@typescript-eslint/scope-manager/dist/scope/BlockScope.d.ts +10 -0
  506. package/node_modules/@typescript-eslint/scope-manager/dist/scope/BlockScope.d.ts.map +1 -0
  507. package/node_modules/@typescript-eslint/scope-manager/dist/scope/BlockScope.js +12 -0
  508. package/node_modules/@typescript-eslint/scope-manager/dist/scope/BlockScope.js.map +1 -0
  509. package/node_modules/@typescript-eslint/scope-manager/dist/scope/CatchScope.d.ts +10 -0
  510. package/node_modules/@typescript-eslint/scope-manager/dist/scope/CatchScope.d.ts.map +1 -0
  511. package/node_modules/@typescript-eslint/scope-manager/dist/scope/CatchScope.js +12 -0
  512. package/node_modules/@typescript-eslint/scope-manager/dist/scope/CatchScope.js.map +1 -0
  513. package/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassFieldInitializerScope.d.ts +10 -0
  514. package/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassFieldInitializerScope.d.ts.map +1 -0
  515. package/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassFieldInitializerScope.js +12 -0
  516. package/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassFieldInitializerScope.js.map +1 -0
  517. package/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassScope.d.ts +10 -0
  518. package/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassScope.d.ts.map +1 -0
  519. package/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassScope.js +12 -0
  520. package/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassScope.js.map +1 -0
  521. package/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassStaticBlockScope.d.ts +10 -0
  522. package/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassStaticBlockScope.d.ts.map +1 -0
  523. package/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassStaticBlockScope.js +12 -0
  524. package/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassStaticBlockScope.js.map +1 -0
  525. package/node_modules/@typescript-eslint/scope-manager/dist/scope/ConditionalTypeScope.d.ts +10 -0
  526. package/node_modules/@typescript-eslint/scope-manager/dist/scope/ConditionalTypeScope.d.ts.map +1 -0
  527. package/node_modules/@typescript-eslint/scope-manager/dist/scope/ConditionalTypeScope.js +12 -0
  528. package/node_modules/@typescript-eslint/scope-manager/dist/scope/ConditionalTypeScope.js.map +1 -0
  529. package/node_modules/@typescript-eslint/scope-manager/dist/scope/ForScope.d.ts +10 -0
  530. package/node_modules/@typescript-eslint/scope-manager/dist/scope/ForScope.d.ts.map +1 -0
  531. package/node_modules/@typescript-eslint/scope-manager/dist/scope/ForScope.js +12 -0
  532. package/node_modules/@typescript-eslint/scope-manager/dist/scope/ForScope.js.map +1 -0
  533. package/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionExpressionNameScope.d.ts +11 -0
  534. package/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionExpressionNameScope.d.ts.map +1 -0
  535. package/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionExpressionNameScope.js +17 -0
  536. package/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionExpressionNameScope.js.map +1 -0
  537. package/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionScope.d.ts +13 -0
  538. package/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionScope.d.ts.map +1 -0
  539. package/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionScope.js +36 -0
  540. package/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionScope.js.map +1 -0
  541. package/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionTypeScope.d.ts +10 -0
  542. package/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionTypeScope.d.ts.map +1 -0
  543. package/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionTypeScope.js +12 -0
  544. package/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionTypeScope.js.map +1 -0
  545. package/node_modules/@typescript-eslint/scope-manager/dist/scope/GlobalScope.d.ts +18 -0
  546. package/node_modules/@typescript-eslint/scope-manager/dist/scope/GlobalScope.d.ts.map +1 -0
  547. package/node_modules/@typescript-eslint/scope-manager/dist/scope/GlobalScope.js +39 -0
  548. package/node_modules/@typescript-eslint/scope-manager/dist/scope/GlobalScope.js.map +1 -0
  549. package/node_modules/@typescript-eslint/scope-manager/dist/scope/MappedTypeScope.d.ts +10 -0
  550. package/node_modules/@typescript-eslint/scope-manager/dist/scope/MappedTypeScope.d.ts.map +1 -0
  551. package/node_modules/@typescript-eslint/scope-manager/dist/scope/MappedTypeScope.js +12 -0
  552. package/node_modules/@typescript-eslint/scope-manager/dist/scope/MappedTypeScope.js.map +1 -0
  553. package/node_modules/@typescript-eslint/scope-manager/dist/scope/ModuleScope.d.ts +10 -0
  554. package/node_modules/@typescript-eslint/scope-manager/dist/scope/ModuleScope.d.ts.map +1 -0
  555. package/node_modules/@typescript-eslint/scope-manager/dist/scope/ModuleScope.js +12 -0
  556. package/node_modules/@typescript-eslint/scope-manager/dist/scope/ModuleScope.js.map +1 -0
  557. package/node_modules/@typescript-eslint/scope-manager/dist/scope/Scope.d.ts +21 -0
  558. package/node_modules/@typescript-eslint/scope-manager/dist/scope/Scope.d.ts.map +1 -0
  559. package/node_modules/@typescript-eslint/scope-manager/dist/scope/Scope.js +3 -0
  560. package/node_modules/@typescript-eslint/scope-manager/dist/scope/Scope.js.map +1 -0
  561. package/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeBase.d.ts +107 -0
  562. package/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeBase.d.ts.map +1 -0
  563. package/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeBase.js +358 -0
  564. package/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeBase.js.map +1 -0
  565. package/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeType.d.ts +22 -0
  566. package/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeType.d.ts.map +1 -0
  567. package/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeType.js +25 -0
  568. package/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeType.js.map +1 -0
  569. package/node_modules/@typescript-eslint/scope-manager/dist/scope/SwitchScope.d.ts +10 -0
  570. package/node_modules/@typescript-eslint/scope-manager/dist/scope/SwitchScope.d.ts.map +1 -0
  571. package/node_modules/@typescript-eslint/scope-manager/dist/scope/SwitchScope.js +12 -0
  572. package/node_modules/@typescript-eslint/scope-manager/dist/scope/SwitchScope.js.map +1 -0
  573. package/node_modules/@typescript-eslint/scope-manager/dist/scope/TSEnumScope.d.ts +10 -0
  574. package/node_modules/@typescript-eslint/scope-manager/dist/scope/TSEnumScope.d.ts.map +1 -0
  575. package/node_modules/@typescript-eslint/scope-manager/dist/scope/TSEnumScope.js +12 -0
  576. package/node_modules/@typescript-eslint/scope-manager/dist/scope/TSEnumScope.js.map +1 -0
  577. package/node_modules/@typescript-eslint/scope-manager/dist/scope/TSModuleScope.d.ts +10 -0
  578. package/node_modules/@typescript-eslint/scope-manager/dist/scope/TSModuleScope.d.ts.map +1 -0
  579. package/node_modules/@typescript-eslint/scope-manager/dist/scope/TSModuleScope.js +12 -0
  580. package/node_modules/@typescript-eslint/scope-manager/dist/scope/TSModuleScope.js.map +1 -0
  581. package/node_modules/@typescript-eslint/scope-manager/dist/scope/TypeScope.d.ts +10 -0
  582. package/node_modules/@typescript-eslint/scope-manager/dist/scope/TypeScope.d.ts.map +1 -0
  583. package/node_modules/@typescript-eslint/scope-manager/dist/scope/TypeScope.js +12 -0
  584. package/node_modules/@typescript-eslint/scope-manager/dist/scope/TypeScope.js.map +1 -0
  585. package/node_modules/@typescript-eslint/scope-manager/dist/scope/WithScope.d.ts +11 -0
  586. package/node_modules/@typescript-eslint/scope-manager/dist/scope/WithScope.d.ts.map +1 -0
  587. package/node_modules/@typescript-eslint/scope-manager/dist/scope/WithScope.js +22 -0
  588. package/node_modules/@typescript-eslint/scope-manager/dist/scope/WithScope.js.map +1 -0
  589. package/node_modules/@typescript-eslint/scope-manager/dist/scope/index.d.ts +20 -0
  590. package/node_modules/@typescript-eslint/scope-manager/dist/scope/index.d.ts.map +1 -0
  591. package/node_modules/@typescript-eslint/scope-manager/dist/scope/index.js +36 -0
  592. package/node_modules/@typescript-eslint/scope-manager/dist/scope/index.js.map +1 -0
  593. package/node_modules/@typescript-eslint/scope-manager/dist/variable/ESLintScopeVariable.d.ts +34 -0
  594. package/node_modules/@typescript-eslint/scope-manager/dist/variable/ESLintScopeVariable.d.ts.map +1 -0
  595. package/node_modules/@typescript-eslint/scope-manager/dist/variable/ESLintScopeVariable.js +12 -0
  596. package/node_modules/@typescript-eslint/scope-manager/dist/variable/ESLintScopeVariable.js.map +1 -0
  597. package/node_modules/@typescript-eslint/scope-manager/dist/variable/ImplicitLibVariable.d.ts +25 -0
  598. package/node_modules/@typescript-eslint/scope-manager/dist/variable/ImplicitLibVariable.d.ts.map +1 -0
  599. package/node_modules/@typescript-eslint/scope-manager/dist/variable/ImplicitLibVariable.js +19 -0
  600. package/node_modules/@typescript-eslint/scope-manager/dist/variable/ImplicitLibVariable.js.map +1 -0
  601. package/node_modules/@typescript-eslint/scope-manager/dist/variable/Variable.d.ts +18 -0
  602. package/node_modules/@typescript-eslint/scope-manager/dist/variable/Variable.d.ts.map +1 -0
  603. package/node_modules/@typescript-eslint/scope-manager/dist/variable/Variable.js +33 -0
  604. package/node_modules/@typescript-eslint/scope-manager/dist/variable/Variable.js.map +1 -0
  605. package/node_modules/@typescript-eslint/scope-manager/dist/variable/VariableBase.d.ts +44 -0
  606. package/node_modules/@typescript-eslint/scope-manager/dist/variable/VariableBase.d.ts.map +1 -0
  607. package/node_modules/@typescript-eslint/scope-manager/dist/variable/VariableBase.js +39 -0
  608. package/node_modules/@typescript-eslint/scope-manager/dist/variable/VariableBase.js.map +1 -0
  609. package/node_modules/@typescript-eslint/scope-manager/dist/variable/index.d.ts +4 -0
  610. package/node_modules/@typescript-eslint/scope-manager/dist/variable/index.d.ts.map +1 -0
  611. package/node_modules/@typescript-eslint/scope-manager/dist/variable/index.js +10 -0
  612. package/node_modules/@typescript-eslint/scope-manager/dist/variable/index.js.map +1 -0
  613. package/node_modules/@typescript-eslint/scope-manager/package.json +72 -0
  614. package/node_modules/@typescript-eslint/types/LICENSE +21 -0
  615. package/node_modules/@typescript-eslint/types/README.md +12 -0
  616. package/node_modules/@typescript-eslint/types/dist/generated/ast-spec.d.ts +1881 -0
  617. package/node_modules/@typescript-eslint/types/dist/generated/ast-spec.d.ts.map +1 -0
  618. package/node_modules/@typescript-eslint/types/dist/generated/ast-spec.js +202 -0
  619. package/node_modules/@typescript-eslint/types/dist/generated/ast-spec.js.map +1 -0
  620. package/node_modules/@typescript-eslint/types/dist/index.d.ts +5 -0
  621. package/node_modules/@typescript-eslint/types/dist/index.d.ts.map +1 -0
  622. package/node_modules/@typescript-eslint/types/dist/index.js +24 -0
  623. package/node_modules/@typescript-eslint/types/dist/index.js.map +1 -0
  624. package/node_modules/@typescript-eslint/types/dist/lib.d.ts +3 -0
  625. package/node_modules/@typescript-eslint/types/dist/lib.d.ts.map +1 -0
  626. package/node_modules/@typescript-eslint/types/dist/lib.js +7 -0
  627. package/node_modules/@typescript-eslint/types/dist/lib.js.map +1 -0
  628. package/node_modules/@typescript-eslint/types/dist/parser-options.d.ts +40 -0
  629. package/node_modules/@typescript-eslint/types/dist/parser-options.d.ts.map +1 -0
  630. package/node_modules/@typescript-eslint/types/dist/parser-options.js +3 -0
  631. package/node_modules/@typescript-eslint/types/dist/parser-options.js.map +1 -0
  632. package/node_modules/@typescript-eslint/types/dist/ts-estree.d.ts +14 -0
  633. package/node_modules/@typescript-eslint/types/dist/ts-estree.d.ts.map +1 -0
  634. package/node_modules/@typescript-eslint/types/dist/ts-estree.js +28 -0
  635. package/node_modules/@typescript-eslint/types/dist/ts-estree.js.map +1 -0
  636. package/node_modules/@typescript-eslint/types/package.json +94 -0
  637. package/node_modules/micro-memoize/CHANGELOG.md +226 -0
  638. package/{LICENSE → node_modules/micro-memoize/LICENSE} +1 -1
  639. package/node_modules/micro-memoize/README.md +557 -0
  640. package/node_modules/micro-memoize/dist/micro-memoize.cjs.js +373 -0
  641. package/node_modules/micro-memoize/dist/micro-memoize.cjs.js.map +1 -0
  642. package/node_modules/micro-memoize/dist/micro-memoize.esm.js +371 -0
  643. package/node_modules/micro-memoize/dist/micro-memoize.esm.js.map +1 -0
  644. package/node_modules/micro-memoize/dist/micro-memoize.js +379 -0
  645. package/node_modules/micro-memoize/dist/micro-memoize.js.map +1 -0
  646. package/node_modules/micro-memoize/dist/micro-memoize.min.js +1 -0
  647. package/node_modules/micro-memoize/index.d.ts +132 -0
  648. package/node_modules/micro-memoize/mjs/index.d.mts +132 -0
  649. package/node_modules/micro-memoize/mjs/index.mjs +371 -0
  650. package/node_modules/micro-memoize/mjs/index.mjs.map +1 -0
  651. package/node_modules/micro-memoize/package.json +106 -0
  652. package/package.json +13 -7
@@ -0,0 +1,379 @@
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
3
+ typeof define === 'function' && define.amd ? define(factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global["micro-memoize"] = factory());
5
+ })(this, (function () { 'use strict';
6
+
7
+ /**
8
+ * @constant DEFAULT_OPTIONS_KEYS the default options keys
9
+ */
10
+ var DEFAULT_OPTIONS_KEYS = {
11
+ isEqual: true,
12
+ isMatchingKey: true,
13
+ isPromise: true,
14
+ maxSize: true,
15
+ onCacheAdd: true,
16
+ onCacheChange: true,
17
+ onCacheHit: true,
18
+ transformKey: true,
19
+ };
20
+ /**
21
+ * @function slice
22
+ *
23
+ * @description
24
+ * slice.call() pre-bound
25
+ */
26
+ var slice = Array.prototype.slice;
27
+ /**
28
+ * @function cloneArray
29
+ *
30
+ * @description
31
+ * clone the array-like object and return the new array
32
+ *
33
+ * @param arrayLike the array-like object to clone
34
+ * @returns the clone as an array
35
+ */
36
+ function cloneArray(arrayLike) {
37
+ var length = arrayLike.length;
38
+ if (!length) {
39
+ return [];
40
+ }
41
+ if (length === 1) {
42
+ return [arrayLike[0]];
43
+ }
44
+ if (length === 2) {
45
+ return [arrayLike[0], arrayLike[1]];
46
+ }
47
+ if (length === 3) {
48
+ return [arrayLike[0], arrayLike[1], arrayLike[2]];
49
+ }
50
+ return slice.call(arrayLike, 0);
51
+ }
52
+ /**
53
+ * @function getCustomOptions
54
+ *
55
+ * @description
56
+ * get the custom options on the object passed
57
+ *
58
+ * @param options the memoization options passed
59
+ * @returns the custom options passed
60
+ */
61
+ function getCustomOptions(options) {
62
+ var customOptions = {};
63
+ /* eslint-disable no-restricted-syntax */
64
+ for (var key in options) {
65
+ if (!DEFAULT_OPTIONS_KEYS[key]) {
66
+ customOptions[key] = options[key];
67
+ }
68
+ }
69
+ /* eslint-enable */
70
+ return customOptions;
71
+ }
72
+ /**
73
+ * @function isMemoized
74
+ *
75
+ * @description
76
+ * is the function passed already memoized
77
+ *
78
+ * @param fn the function to test
79
+ * @returns is the function already memoized
80
+ */
81
+ function isMemoized(fn) {
82
+ return typeof fn === 'function' && fn.isMemoized;
83
+ }
84
+ /**
85
+ * @function isSameValueZero
86
+ *
87
+ * @description
88
+ * are the objects equal based on SameValueZero equality
89
+ *
90
+ * @param object1 the first object to compare
91
+ * @param object2 the second object to compare
92
+ * @returns are the two objects equal
93
+ */
94
+ function isSameValueZero(object1, object2) {
95
+ // eslint-disable-next-line no-self-compare
96
+ return object1 === object2 || (object1 !== object1 && object2 !== object2);
97
+ }
98
+ /**
99
+ * @function mergeOptions
100
+ *
101
+ * @description
102
+ * merge the options into the target
103
+ *
104
+ * @param existingOptions the options provided
105
+ * @param newOptions the options to include
106
+ * @returns the merged options
107
+ */
108
+ function mergeOptions(existingOptions, newOptions) {
109
+ var target = {};
110
+ /* eslint-disable no-restricted-syntax */
111
+ for (var key in existingOptions) {
112
+ target[key] = existingOptions[key];
113
+ }
114
+ for (var key in newOptions) {
115
+ target[key] = newOptions[key];
116
+ }
117
+ /* eslint-enable */
118
+ return target;
119
+ }
120
+
121
+ // utils
122
+ var Cache = /** @class */ (function () {
123
+ function Cache(options) {
124
+ this.keys = [];
125
+ this.values = [];
126
+ this.options = options;
127
+ var isMatchingKeyFunction = typeof options.isMatchingKey === 'function';
128
+ if (isMatchingKeyFunction) {
129
+ this.getKeyIndex = this._getKeyIndexFromMatchingKey;
130
+ }
131
+ else if (options.maxSize > 1) {
132
+ this.getKeyIndex = this._getKeyIndexForMany;
133
+ }
134
+ else {
135
+ this.getKeyIndex = this._getKeyIndexForSingle;
136
+ }
137
+ this.canTransformKey = typeof options.transformKey === 'function';
138
+ this.shouldCloneArguments = this.canTransformKey || isMatchingKeyFunction;
139
+ this.shouldUpdateOnAdd = typeof options.onCacheAdd === 'function';
140
+ this.shouldUpdateOnChange = typeof options.onCacheChange === 'function';
141
+ this.shouldUpdateOnHit = typeof options.onCacheHit === 'function';
142
+ }
143
+ Object.defineProperty(Cache.prototype, "size", {
144
+ /**
145
+ * The number of cached [key,value] results.
146
+ */
147
+ get: function () {
148
+ return this.keys.length;
149
+ },
150
+ enumerable: false,
151
+ configurable: true
152
+ });
153
+ Object.defineProperty(Cache.prototype, "snapshot", {
154
+ /**
155
+ * A copy of the cache at a moment in time. This is useful
156
+ * to compare changes over time, since the cache mutates
157
+ * internally for performance reasons.
158
+ */
159
+ get: function () {
160
+ return {
161
+ keys: cloneArray(this.keys),
162
+ size: this.size,
163
+ values: cloneArray(this.values),
164
+ };
165
+ },
166
+ enumerable: false,
167
+ configurable: true
168
+ });
169
+ /**
170
+ * Gets the matching key index when a custom key matcher is used.
171
+ */
172
+ Cache.prototype._getKeyIndexFromMatchingKey = function (keyToMatch) {
173
+ var _a = this.options, isMatchingKey = _a.isMatchingKey, maxSize = _a.maxSize;
174
+ var keys = this.keys;
175
+ var keysLength = keys.length;
176
+ if (!keysLength) {
177
+ return -1;
178
+ }
179
+ if (isMatchingKey(keys[0], keyToMatch)) {
180
+ return 0;
181
+ }
182
+ if (maxSize > 1) {
183
+ for (var index = 1; index < keysLength; index++) {
184
+ if (isMatchingKey(keys[index], keyToMatch)) {
185
+ return index;
186
+ }
187
+ }
188
+ }
189
+ return -1;
190
+ };
191
+ /**
192
+ * Gets the matching key index when multiple keys are used.
193
+ */
194
+ Cache.prototype._getKeyIndexForMany = function (keyToMatch) {
195
+ var isEqual = this.options.isEqual;
196
+ var keys = this.keys;
197
+ var keysLength = keys.length;
198
+ if (!keysLength) {
199
+ return -1;
200
+ }
201
+ if (keysLength === 1) {
202
+ return this._getKeyIndexForSingle(keyToMatch);
203
+ }
204
+ var keyLength = keyToMatch.length;
205
+ var existingKey;
206
+ var argIndex;
207
+ if (keyLength > 1) {
208
+ for (var index = 0; index < keysLength; index++) {
209
+ existingKey = keys[index];
210
+ if (existingKey.length === keyLength) {
211
+ argIndex = 0;
212
+ for (; argIndex < keyLength; argIndex++) {
213
+ if (!isEqual(existingKey[argIndex], keyToMatch[argIndex])) {
214
+ break;
215
+ }
216
+ }
217
+ if (argIndex === keyLength) {
218
+ return index;
219
+ }
220
+ }
221
+ }
222
+ }
223
+ else {
224
+ for (var index = 0; index < keysLength; index++) {
225
+ existingKey = keys[index];
226
+ if (existingKey.length === keyLength &&
227
+ isEqual(existingKey[0], keyToMatch[0])) {
228
+ return index;
229
+ }
230
+ }
231
+ }
232
+ return -1;
233
+ };
234
+ /**
235
+ * Gets the matching key index when a single key is used.
236
+ */
237
+ Cache.prototype._getKeyIndexForSingle = function (keyToMatch) {
238
+ var keys = this.keys;
239
+ if (!keys.length) {
240
+ return -1;
241
+ }
242
+ var existingKey = keys[0];
243
+ var length = existingKey.length;
244
+ if (keyToMatch.length !== length) {
245
+ return -1;
246
+ }
247
+ var isEqual = this.options.isEqual;
248
+ if (length > 1) {
249
+ for (var index = 0; index < length; index++) {
250
+ if (!isEqual(existingKey[index], keyToMatch[index])) {
251
+ return -1;
252
+ }
253
+ }
254
+ return 0;
255
+ }
256
+ return isEqual(existingKey[0], keyToMatch[0]) ? 0 : -1;
257
+ };
258
+ /**
259
+ * Order the array based on a Least-Recently-Used basis.
260
+ */
261
+ Cache.prototype.orderByLru = function (key, value, startingIndex) {
262
+ var keys = this.keys;
263
+ var values = this.values;
264
+ var currentLength = keys.length;
265
+ var index = startingIndex;
266
+ while (index--) {
267
+ keys[index + 1] = keys[index];
268
+ values[index + 1] = values[index];
269
+ }
270
+ keys[0] = key;
271
+ values[0] = value;
272
+ var maxSize = this.options.maxSize;
273
+ if (currentLength === maxSize && startingIndex === currentLength) {
274
+ keys.pop();
275
+ values.pop();
276
+ }
277
+ else if (startingIndex >= maxSize) {
278
+ // eslint-disable-next-line no-multi-assign
279
+ keys.length = values.length = maxSize;
280
+ }
281
+ };
282
+ /**
283
+ * Update the promise method to auto-remove from cache if rejected, and
284
+ * if resolved then fire cache hit / changed.
285
+ */
286
+ Cache.prototype.updateAsyncCache = function (memoized) {
287
+ var _this = this;
288
+ var _a = this.options, onCacheChange = _a.onCacheChange, onCacheHit = _a.onCacheHit;
289
+ var firstKey = this.keys[0];
290
+ var firstValue = this.values[0];
291
+ this.values[0] = firstValue.then(function (value) {
292
+ if (_this.shouldUpdateOnHit) {
293
+ onCacheHit(_this, _this.options, memoized);
294
+ }
295
+ if (_this.shouldUpdateOnChange) {
296
+ onCacheChange(_this, _this.options, memoized);
297
+ }
298
+ return value;
299
+ }, function (error) {
300
+ var keyIndex = _this.getKeyIndex(firstKey);
301
+ if (keyIndex !== -1) {
302
+ _this.keys.splice(keyIndex, 1);
303
+ _this.values.splice(keyIndex, 1);
304
+ }
305
+ throw error;
306
+ });
307
+ };
308
+ return Cache;
309
+ }());
310
+
311
+ function createMemoizedFunction(fn, options) {
312
+ if (options === void 0) { options = {}; }
313
+ if (isMemoized(fn)) {
314
+ return createMemoizedFunction(fn.fn, mergeOptions(fn.options, options));
315
+ }
316
+ if (typeof fn !== 'function') {
317
+ throw new TypeError('You must pass a function to `memoize`.');
318
+ }
319
+ 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;
320
+ var normalizedOptions = mergeOptions({
321
+ isEqual: isEqual,
322
+ isMatchingKey: isMatchingKey,
323
+ isPromise: isPromise,
324
+ maxSize: maxSize,
325
+ onCacheAdd: onCacheAdd,
326
+ onCacheChange: onCacheChange,
327
+ onCacheHit: onCacheHit,
328
+ transformKey: transformKey,
329
+ }, getCustomOptions(options));
330
+ var cache = new Cache(normalizedOptions);
331
+ var keys = cache.keys, values = cache.values, canTransformKey = cache.canTransformKey, shouldCloneArguments = cache.shouldCloneArguments, shouldUpdateOnAdd = cache.shouldUpdateOnAdd, shouldUpdateOnChange = cache.shouldUpdateOnChange, shouldUpdateOnHit = cache.shouldUpdateOnHit;
332
+ var memoized = function () {
333
+ var key = shouldCloneArguments
334
+ ? cloneArray(arguments)
335
+ : arguments;
336
+ if (canTransformKey) {
337
+ key = transformKey(key);
338
+ }
339
+ var keyIndex = keys.length ? cache.getKeyIndex(key) : -1;
340
+ if (keyIndex !== -1) {
341
+ if (shouldUpdateOnHit) {
342
+ onCacheHit(cache, normalizedOptions, memoized);
343
+ }
344
+ if (keyIndex) {
345
+ cache.orderByLru(keys[keyIndex], values[keyIndex], keyIndex);
346
+ if (shouldUpdateOnChange) {
347
+ onCacheChange(cache, normalizedOptions, memoized);
348
+ }
349
+ }
350
+ }
351
+ else {
352
+ var newValue = fn.apply(this, arguments);
353
+ var newKey = shouldCloneArguments
354
+ ? key
355
+ : cloneArray(arguments);
356
+ cache.orderByLru(newKey, newValue, keys.length);
357
+ if (isPromise) {
358
+ cache.updateAsyncCache(memoized);
359
+ }
360
+ if (shouldUpdateOnAdd) {
361
+ onCacheAdd(cache, normalizedOptions, memoized);
362
+ }
363
+ if (shouldUpdateOnChange) {
364
+ onCacheChange(cache, normalizedOptions, memoized);
365
+ }
366
+ }
367
+ return values[0];
368
+ };
369
+ memoized.cache = cache;
370
+ memoized.fn = fn;
371
+ memoized.isMemoized = true;
372
+ memoized.options = normalizedOptions;
373
+ return memoized;
374
+ }
375
+
376
+ return createMemoizedFunction;
377
+
378
+ }));
379
+ //# sourceMappingURL=micro-memoize.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"micro-memoize.js","sources":["../src/utils.ts","../src/Cache.ts","../src/index.ts"],"sourcesContent":[null,null,null],"names":[],"mappings":";;;;;;IAQA;;IAEG;IACH,IAAM,oBAAoB,GAAqB;IAC7C,IAAA,OAAO,EAAE,IAAI;IACb,IAAA,aAAa,EAAE,IAAI;IACnB,IAAA,SAAS,EAAE,IAAI;IACf,IAAA,OAAO,EAAE,IAAI;IACb,IAAA,UAAU,EAAE,IAAI;IAChB,IAAA,aAAa,EAAE,IAAI;IACnB,IAAA,UAAU,EAAE,IAAI;IAChB,IAAA,YAAY,EAAE,IAAI;KACnB,CAAC;IAEF;;;;;IAKG;IACY,IAAA,KAAK,GAAK,KAAK,CAAC,SAAS,MAApB,CAAqB;IAEzC;;;;;;;;IAQG;IACG,SAAU,UAAU,CAAC,SAA6B,EAAA;IAC9C,IAAA,IAAA,MAAM,GAAK,SAAS,CAAA,MAAd,CAAe;QAE7B,IAAI,CAAC,MAAM,EAAE;IACX,QAAA,OAAO,EAAE,CAAC;IACX,KAAA;QAED,IAAI,MAAM,KAAK,CAAC,EAAE;IAChB,QAAA,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC;IACvB,KAAA;QAED,IAAI,MAAM,KAAK,CAAC,EAAE;YAChB,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC,CAA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IAAI,oBAAoB,EAAE;IACvB,gBAAA,aAA0C,CACzC,KAAK,EACL,iBAAiB,EACjB,QAAQ,CACT,CAAC;IACH,aAAA;IACF,SAAA;IAED,QAAA,OAAO,MAAM,CAAC,CAAC,CAAC,CAAC;IACnB,KAAiB,CAAC;IAElB,IAAA,QAAQ,CAAC,KAAK,GAAG,KAAK,CAAC;IACvB,IAAA,QAAQ,CAAC,EAAE,GAAG,EAAE,CAAC;IACjB,IAAA,QAAQ,CAAC,UAAU,GAAG,IAAa,CAAC;IACpC,IAAA,QAAQ,CAAC,OAAO,GAAG,iBAAiB,CAAC;IAErC,IAAA,OAAO,QAAQ,CAAC;IAClB;;;;;;;;"}
@@ -0,0 +1 @@
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self)["micro-memoize"]=t()}(this,(function(){"use strict";var e={isEqual:!0,isMatchingKey:!0,isPromise:!0,maxSize:!0,onCacheAdd:!0,onCacheChange:!0,onCacheHit:!0,transformKey:!0},t=Array.prototype.slice;function n(e){var n=e.length;return n?1===n?[e[0]]:2===n?[e[0],e[1]]:3===n?[e[0],e[1],e[2]]:t.call(e,0):[]}function i(e,t){return e===t||e!=e&&t!=t}function o(e,t){var n={};for(var i in e)n[i]=e[i];for(var i in t)n[i]=t[i];return n}var r=function(){function e(e){this.keys=[],this.values=[],this.options=e;var t="function"==typeof e.isMatchingKey;t?this.getKeyIndex=this._getKeyIndexFromMatchingKey:e.maxSize>1?this.getKeyIndex=this._getKeyIndexForMany:this.getKeyIndex=this._getKeyIndexForSingle,this.canTransformKey="function"==typeof e.transformKey,this.shouldCloneArguments=this.canTransformKey||t,this.shouldUpdateOnAdd="function"==typeof e.onCacheAdd,this.shouldUpdateOnChange="function"==typeof e.onCacheChange,this.shouldUpdateOnHit="function"==typeof e.onCacheHit}return Object.defineProperty(e.prototype,"size",{get:function(){return this.keys.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"snapshot",{get:function(){return{keys:n(this.keys),size:this.size,values:n(this.values)}},enumerable:!1,configurable:!0}),e.prototype._getKeyIndexFromMatchingKey=function(e){var t=this.options,n=t.isMatchingKey,i=t.maxSize,o=this.keys,r=o.length;if(!r)return-1;if(n(o[0],e))return 0;if(i>1)for(var s=1;s<r;s++)if(n(o[s],e))return s;return-1},e.prototype._getKeyIndexForMany=function(e){var t=this.options.isEqual,n=this.keys,i=n.length;if(!i)return-1;if(1===i)return this._getKeyIndexForSingle(e);var o,r,s=e.length;if(s>1){for(var a=0;a<i;a++)if((o=n[a]).length===s){for(r=0;r<s&&t(o[r],e[r]);r++);if(r===s)return a}}else for(a=0;a<i;a++)if((o=n[a]).length===s&&t(o[0],e[0]))return a;return-1},e.prototype._getKeyIndexForSingle=function(e){var t=this.keys;if(!t.length)return-1;var n=t[0],i=n.length;if(e.length!==i)return-1;var o=this.options.isEqual;if(i>1){for(var r=0;r<i;r++)if(!o(n[r],e[r]))return-1;return 0}return o(n[0],e[0])?0:-1},e.prototype.orderByLru=function(e,t,n){for(var i=this.keys,o=this.values,r=i.length,s=n;s--;)i[s+1]=i[s],o[s+1]=o[s];i[0]=e,o[0]=t;var a=this.options.maxSize;r===a&&n===r?(i.pop(),o.pop()):n>=a&&(i.length=o.length=a)},e.prototype.updateAsyncCache=function(e){var t=this,n=this.options,i=n.onCacheChange,o=n.onCacheHit,r=this.keys[0],s=this.values[0];this.values[0]=s.then((function(n){return t.shouldUpdateOnHit&&o(t,t.options,e),t.shouldUpdateOnChange&&i(t,t.options,e),n}),(function(e){var n=t.getKeyIndex(r);throw-1!==n&&(t.keys.splice(n,1),t.values.splice(n,1)),e}))},e}();return function t(s,a){if(void 0===a&&(a={}),function(e){return"function"==typeof e&&e.isMemoized}(s))return t(s.fn,o(s.options,a));if("function"!=typeof s)throw new TypeError("You must pass a function to `memoize`.");var h=a.isEqual,u=void 0===h?i:h,f=a.isMatchingKey,c=a.isPromise,y=void 0!==c&&c,d=a.maxSize,l=void 0===d?1:d,p=a.onCacheAdd,g=a.onCacheChange,v=a.onCacheHit,m=a.transformKey,C=o({isEqual:u,isMatchingKey:f,isPromise:y,maxSize:l,onCacheAdd:p,onCacheChange:g,onCacheHit:v,transformKey:m},function(t){var n={};for(var i in t)e[i]||(n[i]=t[i]);return n}(a)),K=new r(C),x=K.keys,z=K.values,I=K.canTransformKey,k=K.shouldCloneArguments,A=K.shouldUpdateOnAdd,M=K.shouldUpdateOnChange,O=K.shouldUpdateOnHit,b=function(){var e=k?n(arguments):arguments;I&&(e=m(e));var t=x.length?K.getKeyIndex(e):-1;if(-1!==t)O&&v(K,C,b),t&&(K.orderByLru(x[t],z[t],t),M&&g(K,C,b));else{var i=s.apply(this,arguments),o=k?e:n(arguments);K.orderByLru(o,i,x.length),y&&K.updateAsyncCache(b),A&&p(K,C,b),M&&g(K,C,b)}return z[0]};return b.cache=K,b.fn=s,b.isMemoized=!0,b.options=C,b}}));
@@ -0,0 +1,132 @@
1
+ export interface Dictionary<Type> {
2
+ [key: string]: Type;
3
+ [index: number]: Type;
4
+ }
5
+
6
+ export type AnyFn = (...args: any[]) => any;
7
+
8
+ export type Key = any[];
9
+ export type RawKey = Key | IArguments;
10
+ export type Value = any;
11
+
12
+ export interface CacheSnapshot {
13
+ keys: Key[];
14
+ size: number;
15
+ values: Value[];
16
+ }
17
+
18
+ export class Cache<Fn extends AnyFn> {
19
+ readonly canTransformKey: boolean;
20
+ readonly getKeyIndex: KeyIndexGetter;
21
+ readonly options: NormalizedOptions<Fn>;
22
+ readonly shouldCloneArguments: boolean;
23
+ readonly shouldUpdateOnAdd: boolean;
24
+ readonly shouldUpdateOnChange: boolean;
25
+ readonly shouldUpdateOnHit: boolean;
26
+
27
+ /**
28
+ * The prevents call arguments which have cached results.
29
+ */
30
+ keys: Key[];
31
+ /**
32
+ * The results of previous cached calls.
33
+ */
34
+ values: Value[];
35
+
36
+ constructor(options: NormalizedOptions<Fn>);
37
+
38
+ /**
39
+ * The number of cached [key,value] results.
40
+ */
41
+ get size(): number;
42
+
43
+ /**
44
+ * A copy of the cache at a moment in time. This is useful
45
+ * to compare changes over time, since the cache mutates
46
+ * internally for performance reasons.
47
+ */
48
+ get snapshot(): CacheSnapshot;
49
+
50
+ /**
51
+ * Order the array based on a Least-Recently-Used basis.
52
+ */
53
+ orderByLru(key: Key, value: Value, startingIndex: number): void;
54
+
55
+ /**
56
+ * Update the promise method to auto-remove from cache if rejected, and
57
+ * if resolved then fire cache hit / changed.
58
+ */
59
+ updateAsyncCache(memoized: Memoized<Fn>): void;
60
+ }
61
+
62
+ export type EqualityComparator = (object1: any, object2: any) => boolean;
63
+
64
+ export type MatchingKeyComparator = (key1: Key, key2: RawKey) => boolean;
65
+
66
+ export type CacheModifiedHandler<Fn extends AnyFn> = (
67
+ cache: Cache<Fn>,
68
+ options: NormalizedOptions<Fn>,
69
+ memoized: Memoized<Fn>,
70
+ ) => void;
71
+
72
+ export type KeyTransformer = (args: Key) => Key;
73
+
74
+ export type KeyIndexGetter = (keyToMatch: RawKey) => number;
75
+
76
+ export interface StandardOptions<Fn extends AnyFn> {
77
+ isEqual?: EqualityComparator;
78
+ isMatchingKey?: MatchingKeyComparator;
79
+ isPromise?: boolean;
80
+ maxSize?: number;
81
+ onCacheAdd?: CacheModifiedHandler<Fn>;
82
+ onCacheChange?: CacheModifiedHandler<Fn>;
83
+ onCacheHit?: CacheModifiedHandler<Fn>;
84
+ transformKey?: KeyTransformer;
85
+ }
86
+
87
+ export interface Options<Fn extends AnyFn>
88
+ extends StandardOptions<Fn>,
89
+ Dictionary<any> {}
90
+
91
+ export interface NormalizedOptions<Fn extends AnyFn> extends Options<Fn> {
92
+ isEqual: EqualityComparator;
93
+ isPromise: boolean;
94
+ maxSize: number;
95
+ }
96
+
97
+ export type Memoized<Fn extends AnyFn> = Fn &
98
+ Dictionary<any> & {
99
+ cache: Cache<Fn>;
100
+ fn: Fn;
101
+ isMemoized: true;
102
+ options: NormalizedOptions<Fn>;
103
+ };
104
+
105
+ /**
106
+ * @deprecated
107
+ * All types declared on this namespace are available for direct import
108
+ * from the package. In a future release, this namespace will be removed
109
+ * in favor of those direct imports.
110
+ */
111
+ export declare namespace MicroMemoize {
112
+ export type {
113
+ Cache,
114
+ CacheModifiedHandler,
115
+ EqualityComparator,
116
+ Key,
117
+ KeyIndexGetter,
118
+ KeyTransformer,
119
+ MatchingKeyComparator,
120
+ Memoized,
121
+ NormalizedOptions,
122
+ Options,
123
+ StandardOptions,
124
+ RawKey,
125
+ Value,
126
+ };
127
+ }
128
+
129
+ export default function memoize<Fn extends AnyFn>(
130
+ fn: Fn | Memoized<Fn>,
131
+ options?: Options<Fn>,
132
+ ): Memoized<Fn>;
@@ -0,0 +1,132 @@
1
+ export interface Dictionary<Type> {
2
+ [key: string]: Type;
3
+ [index: number]: Type;
4
+ }
5
+
6
+ export type AnyFn = (...args: any[]) => any;
7
+
8
+ export type Key = any[];
9
+ export type RawKey = Key | IArguments;
10
+ export type Value = any;
11
+
12
+ export interface CacheSnapshot {
13
+ keys: Key[];
14
+ size: number;
15
+ values: Value[];
16
+ }
17
+
18
+ export class Cache<Fn extends AnyFn> {
19
+ readonly canTransformKey: boolean;
20
+ readonly getKeyIndex: KeyIndexGetter;
21
+ readonly options: NormalizedOptions<Fn>;
22
+ readonly shouldCloneArguments: boolean;
23
+ readonly shouldUpdateOnAdd: boolean;
24
+ readonly shouldUpdateOnChange: boolean;
25
+ readonly shouldUpdateOnHit: boolean;
26
+
27
+ /**
28
+ * The prevents call arguments which have cached results.
29
+ */
30
+ keys: Key[];
31
+ /**
32
+ * The results of previous cached calls.
33
+ */
34
+ values: Value[];
35
+
36
+ constructor(options: NormalizedOptions<Fn>);
37
+
38
+ /**
39
+ * The number of cached [key,value] results.
40
+ */
41
+ get size(): number;
42
+
43
+ /**
44
+ * A copy of the cache at a moment in time. This is useful
45
+ * to compare changes over time, since the cache mutates
46
+ * internally for performance reasons.
47
+ */
48
+ get snapshot(): CacheSnapshot;
49
+
50
+ /**
51
+ * Order the array based on a Least-Recently-Used basis.
52
+ */
53
+ orderByLru(key: Key, value: Value, startingIndex: number): void;
54
+
55
+ /**
56
+ * Update the promise method to auto-remove from cache if rejected, and
57
+ * if resolved then fire cache hit / changed.
58
+ */
59
+ updateAsyncCache(memoized: Memoized<Fn>): void;
60
+ }
61
+
62
+ export type EqualityComparator = (object1: any, object2: any) => boolean;
63
+
64
+ export type MatchingKeyComparator = (key1: Key, key2: RawKey) => boolean;
65
+
66
+ export type CacheModifiedHandler<Fn extends AnyFn> = (
67
+ cache: Cache<Fn>,
68
+ options: NormalizedOptions<Fn>,
69
+ memoized: Memoized<Fn>,
70
+ ) => void;
71
+
72
+ export type KeyTransformer = (args: Key) => Key;
73
+
74
+ export type KeyIndexGetter = (keyToMatch: RawKey) => number;
75
+
76
+ export interface StandardOptions<Fn extends AnyFn> {
77
+ isEqual?: EqualityComparator;
78
+ isMatchingKey?: MatchingKeyComparator;
79
+ isPromise?: boolean;
80
+ maxSize?: number;
81
+ onCacheAdd?: CacheModifiedHandler<Fn>;
82
+ onCacheChange?: CacheModifiedHandler<Fn>;
83
+ onCacheHit?: CacheModifiedHandler<Fn>;
84
+ transformKey?: KeyTransformer;
85
+ }
86
+
87
+ export interface Options<Fn extends AnyFn>
88
+ extends StandardOptions<Fn>,
89
+ Dictionary<any> {}
90
+
91
+ export interface NormalizedOptions<Fn extends AnyFn> extends Options<Fn> {
92
+ isEqual: EqualityComparator;
93
+ isPromise: boolean;
94
+ maxSize: number;
95
+ }
96
+
97
+ export type Memoized<Fn extends AnyFn> = Fn &
98
+ Dictionary<any> & {
99
+ cache: Cache<Fn>;
100
+ fn: Fn;
101
+ isMemoized: true;
102
+ options: NormalizedOptions<Fn>;
103
+ };
104
+
105
+ /**
106
+ * @deprecated
107
+ * All types declared on this namespace are available for direct import
108
+ * from the package. In a future release, this namespace will be removed
109
+ * in favor of those direct imports.
110
+ */
111
+ export declare namespace MicroMemoize {
112
+ export type {
113
+ Cache,
114
+ CacheModifiedHandler,
115
+ EqualityComparator,
116
+ Key,
117
+ KeyIndexGetter,
118
+ KeyTransformer,
119
+ MatchingKeyComparator,
120
+ Memoized,
121
+ NormalizedOptions,
122
+ Options,
123
+ StandardOptions,
124
+ RawKey,
125
+ Value,
126
+ };
127
+ }
128
+
129
+ export default function memoize<Fn extends AnyFn>(
130
+ fn: Fn | Memoized<Fn>,
131
+ options?: Options<Fn>,
132
+ ): Memoized<Fn>;