zedbee 0.1.0-beta.12 → 0.1.0-beta.14

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 (1100) hide show
  1. package/README.md +3 -2
  2. package/SECURITY.md +2 -0
  3. package/THIRD_PARTY_NOTICES.md +130 -14
  4. package/dist/attribution/entities.d.ts.map +1 -1
  5. package/dist/attribution/entities.js +74 -72
  6. package/dist/attribution/entities.js.map +1 -1
  7. package/dist/attribution/metrics.d.ts +2 -0
  8. package/dist/attribution/metrics.d.ts.map +1 -1
  9. package/dist/attribution/metrics.js +8 -0
  10. package/dist/attribution/metrics.js.map +1 -1
  11. package/dist/attribution/pair-locations.js +1 -1
  12. package/dist/attribution/pair-locations.js.map +1 -1
  13. package/dist/attribution/source-identity.d.ts +6 -0
  14. package/dist/attribution/source-identity.d.ts.map +1 -0
  15. package/dist/attribution/source-identity.js +60 -0
  16. package/dist/attribution/source-identity.js.map +1 -0
  17. package/dist/cache/key.d.ts +6 -1
  18. package/dist/cache/key.d.ts.map +1 -1
  19. package/dist/cache/key.js +57 -21
  20. package/dist/cache/key.js.map +1 -1
  21. package/dist/cache/store.d.ts.map +1 -1
  22. package/dist/cache/store.js +7 -7
  23. package/dist/cache/store.js.map +1 -1
  24. package/dist/checks/applicability.d.ts.map +1 -1
  25. package/dist/checks/applicability.js +17 -14
  26. package/dist/checks/applicability.js.map +1 -1
  27. package/dist/checks/complexity/adapter.d.ts.map +1 -1
  28. package/dist/checks/complexity/adapter.js +72 -18
  29. package/dist/checks/complexity/adapter.js.map +1 -1
  30. package/dist/checks/complexity/pair-class-metrics.d.ts +12 -0
  31. package/dist/checks/complexity/pair-class-metrics.d.ts.map +1 -0
  32. package/dist/checks/complexity/pair-class-metrics.js +220 -0
  33. package/dist/checks/complexity/pair-class-metrics.js.map +1 -0
  34. package/dist/checks/dead-code/adapter.d.ts.map +1 -1
  35. package/dist/checks/dead-code/adapter.js +8 -97
  36. package/dist/checks/dead-code/adapter.js.map +1 -1
  37. package/dist/checks/dead-code/framework-entrypoints.d.ts +9 -0
  38. package/dist/checks/dead-code/framework-entrypoints.d.ts.map +1 -0
  39. package/dist/checks/dead-code/framework-entrypoints.js +47 -0
  40. package/dist/checks/dead-code/framework-entrypoints.js.map +1 -0
  41. package/dist/checks/dead-code/import-boundary.d.ts +1 -1
  42. package/dist/checks/dead-code/import-boundary.d.ts.map +1 -1
  43. package/dist/checks/dead-code/import-boundary.js +3 -1
  44. package/dist/checks/dead-code/import-boundary.js.map +1 -1
  45. package/dist/checks/dead-code/knip-worker.js +19 -8
  46. package/dist/checks/dead-code/knip-worker.js.map +1 -1
  47. package/dist/checks/dead-code/managed-config.d.ts +4 -2
  48. package/dist/checks/dead-code/managed-config.d.ts.map +1 -1
  49. package/dist/checks/dead-code/managed-config.js +29 -2
  50. package/dist/checks/dead-code/managed-config.js.map +1 -1
  51. package/dist/checks/dead-code/parse-report.d.ts.map +1 -1
  52. package/dist/checks/dead-code/parse-report.js +26 -23
  53. package/dist/checks/dead-code/parse-report.js.map +1 -1
  54. package/dist/checks/dependency-architecture/adapter.d.ts.map +1 -1
  55. package/dist/checks/dependency-architecture/adapter.js +57 -46
  56. package/dist/checks/dependency-architecture/adapter.js.map +1 -1
  57. package/dist/checks/dependency-architecture/normalize-graph.d.ts +2 -0
  58. package/dist/checks/dependency-architecture/normalize-graph.d.ts.map +1 -1
  59. package/dist/checks/dependency-architecture/normalize-graph.js +12 -3
  60. package/dist/checks/dependency-architecture/normalize-graph.js.map +1 -1
  61. package/dist/checks/diagnostic-messages.d.ts +4 -0
  62. package/dist/checks/diagnostic-messages.d.ts.map +1 -0
  63. package/dist/checks/diagnostic-messages.js +50 -0
  64. package/dist/checks/diagnostic-messages.js.map +1 -0
  65. package/dist/checks/dispatch-adapter.d.ts +25 -0
  66. package/dist/checks/dispatch-adapter.d.ts.map +1 -0
  67. package/dist/checks/dispatch-adapter.js +133 -0
  68. package/dist/checks/dispatch-adapter.js.map +1 -0
  69. package/dist/checks/dispatch-cache.d.ts +9 -0
  70. package/dist/checks/dispatch-cache.d.ts.map +1 -0
  71. package/dist/checks/dispatch-cache.js +154 -0
  72. package/dist/checks/dispatch-cache.js.map +1 -0
  73. package/dist/checks/dispatch-context.d.ts +11 -0
  74. package/dist/checks/dispatch-context.d.ts.map +1 -0
  75. package/dist/checks/dispatch-context.js +155 -0
  76. package/dist/checks/dispatch-context.js.map +1 -0
  77. package/dist/checks/dispatch-target.d.ts +17 -0
  78. package/dist/checks/dispatch-target.d.ts.map +1 -0
  79. package/dist/checks/dispatch-target.js +167 -0
  80. package/dist/checks/dispatch-target.js.map +1 -0
  81. package/dist/checks/dispatcher.d.ts +3 -7
  82. package/dist/checks/dispatcher.d.ts.map +1 -1
  83. package/dist/checks/dispatcher.js +12 -642
  84. package/dist/checks/dispatcher.js.map +1 -1
  85. package/dist/checks/duplication/adapter.d.ts.map +1 -1
  86. package/dist/checks/duplication/adapter.js +44 -6
  87. package/dist/checks/duplication/adapter.js.map +1 -1
  88. package/dist/checks/duplication/clone-comparison.d.ts +6 -0
  89. package/dist/checks/duplication/clone-comparison.d.ts.map +1 -0
  90. package/dist/checks/duplication/clone-comparison.js +163 -0
  91. package/dist/checks/duplication/clone-comparison.js.map +1 -0
  92. package/dist/checks/duplication/normalize-clone.d.ts.map +1 -1
  93. package/dist/checks/duplication/normalize-clone.js +9 -0
  94. package/dist/checks/duplication/normalize-clone.js.map +1 -1
  95. package/dist/checks/duplication/source-tokens.d.ts +18 -0
  96. package/dist/checks/duplication/source-tokens.d.ts.map +1 -0
  97. package/dist/checks/duplication/source-tokens.js +68 -0
  98. package/dist/checks/duplication/source-tokens.js.map +1 -0
  99. package/dist/checks/duplication/types.d.ts +2 -0
  100. package/dist/checks/duplication/types.d.ts.map +1 -1
  101. package/dist/checks/engine-identity.d.ts.map +1 -1
  102. package/dist/checks/engine-identity.js +9 -8
  103. package/dist/checks/engine-identity.js.map +1 -1
  104. package/dist/checks/eslint/convert-message.d.ts +2 -0
  105. package/dist/checks/eslint/convert-message.d.ts.map +1 -1
  106. package/dist/checks/eslint/convert-message.js +34 -1
  107. package/dist/checks/eslint/convert-message.js.map +1 -1
  108. package/dist/checks/eslint/lint-adapter.d.ts.map +1 -1
  109. package/dist/checks/eslint/lint-adapter.js +17 -13
  110. package/dist/checks/eslint/lint-adapter.js.map +1 -1
  111. package/dist/checks/events.d.ts +7 -1
  112. package/dist/checks/events.d.ts.map +1 -1
  113. package/dist/checks/metadata.d.ts +4 -2
  114. package/dist/checks/metadata.d.ts.map +1 -1
  115. package/dist/checks/metadata.js +7 -4
  116. package/dist/checks/metadata.js.map +1 -1
  117. package/dist/checks/observation-result.d.ts.map +1 -1
  118. package/dist/checks/observation-result.js +26 -14
  119. package/dist/checks/observation-result.js.map +1 -1
  120. package/dist/checks/prettier/project-engine.d.ts +8 -14
  121. package/dist/checks/prettier/project-engine.d.ts.map +1 -1
  122. package/dist/checks/prettier/project-engine.js +33 -281
  123. package/dist/checks/prettier/project-engine.js.map +1 -1
  124. package/dist/checks/prettier/project-error.d.ts +7 -0
  125. package/dist/checks/prettier/project-error.d.ts.map +1 -0
  126. package/dist/checks/prettier/project-error.js +12 -0
  127. package/dist/checks/prettier/project-error.js.map +1 -0
  128. package/dist/checks/prettier/project-import-capture.d.ts +20 -0
  129. package/dist/checks/prettier/project-import-capture.d.ts.map +1 -0
  130. package/dist/checks/prettier/project-import-capture.js +173 -0
  131. package/dist/checks/prettier/project-import-capture.js.map +1 -0
  132. package/dist/checks/prettier/project-import-dependencies.d.ts +5 -0
  133. package/dist/checks/prettier/project-import-dependencies.d.ts.map +1 -0
  134. package/dist/checks/prettier/project-import-dependencies.js +84 -0
  135. package/dist/checks/prettier/project-import-dependencies.js.map +1 -0
  136. package/dist/checks/prettier/project-installation.d.ts +3 -0
  137. package/dist/checks/prettier/project-installation.d.ts.map +1 -0
  138. package/dist/checks/prettier/project-installation.js +204 -0
  139. package/dist/checks/prettier/project-installation.js.map +1 -0
  140. package/dist/checks/prettier/project-protocol.d.ts.map +1 -1
  141. package/dist/checks/prettier/project-protocol.js +15 -3
  142. package/dist/checks/prettier/project-protocol.js.map +1 -1
  143. package/dist/checks/prettier/project-snapshot-identity.d.ts +7 -0
  144. package/dist/checks/prettier/project-snapshot-identity.d.ts.map +1 -0
  145. package/dist/checks/prettier/project-snapshot-identity.js +63 -0
  146. package/dist/checks/prettier/project-snapshot-identity.js.map +1 -0
  147. package/dist/checks/prettier/project-types.d.ts +2 -0
  148. package/dist/checks/prettier/project-types.d.ts.map +1 -1
  149. package/dist/checks/prettier/project-worker.js +25 -3
  150. package/dist/checks/prettier/project-worker.js.map +1 -1
  151. package/dist/checks/prettier/project-workspace.d.ts +7 -0
  152. package/dist/checks/prettier/project-workspace.d.ts.map +1 -1
  153. package/dist/checks/prettier/project-workspace.js +101 -40
  154. package/dist/checks/prettier/project-workspace.js.map +1 -1
  155. package/dist/checks/project-inputs.d.ts +6 -0
  156. package/dist/checks/project-inputs.d.ts.map +1 -0
  157. package/dist/checks/project-inputs.js +70 -0
  158. package/dist/checks/project-inputs.js.map +1 -0
  159. package/dist/checks/runner/process-group.d.ts.map +1 -1
  160. package/dist/checks/runner/process-group.js +30 -2
  161. package/dist/checks/runner/process-group.js.map +1 -1
  162. package/dist/checks/secrets/content.d.ts.map +1 -1
  163. package/dist/checks/secrets/content.js +35 -16
  164. package/dist/checks/secrets/content.js.map +1 -1
  165. package/dist/checks/typescript/adapter.d.ts.map +1 -1
  166. package/dist/checks/typescript/adapter.js +6 -14
  167. package/dist/checks/typescript/adapter.js.map +1 -1
  168. package/dist/checks/typescript/aliases.d.ts +28 -0
  169. package/dist/checks/typescript/aliases.d.ts.map +1 -0
  170. package/dist/checks/typescript/aliases.js +259 -0
  171. package/dist/checks/typescript/aliases.js.map +1 -0
  172. package/dist/checks/typescript/configuration-paths.d.ts +8 -0
  173. package/dist/checks/typescript/configuration-paths.d.ts.map +1 -0
  174. package/dist/checks/typescript/configuration-paths.js +138 -0
  175. package/dist/checks/typescript/configuration-paths.js.map +1 -0
  176. package/dist/checks/typescript/convert-diagnostic.d.ts +2 -0
  177. package/dist/checks/typescript/convert-diagnostic.d.ts.map +1 -1
  178. package/dist/checks/typescript/convert-diagnostic.js +23 -5
  179. package/dist/checks/typescript/convert-diagnostic.js.map +1 -1
  180. package/dist/checks/typescript/project-coverage.d.ts +16 -0
  181. package/dist/checks/typescript/project-coverage.d.ts.map +1 -0
  182. package/dist/checks/typescript/project-coverage.js +49 -0
  183. package/dist/checks/typescript/project-coverage.js.map +1 -0
  184. package/dist/checks/vulnerabilities/inventory/normalize.d.ts +1 -0
  185. package/dist/checks/vulnerabilities/inventory/normalize.d.ts.map +1 -1
  186. package/dist/checks/vulnerabilities/inventory/normalize.js +5 -2
  187. package/dist/checks/vulnerabilities/inventory/normalize.js.map +1 -1
  188. package/dist/checks/vulnerabilities/inventory/parse-bun.d.ts.map +1 -1
  189. package/dist/checks/vulnerabilities/inventory/parse-bun.js +18 -7
  190. package/dist/checks/vulnerabilities/inventory/parse-bun.js.map +1 -1
  191. package/dist/checks/vulnerabilities/inventory/parse-yarn.d.ts.map +1 -1
  192. package/dist/checks/vulnerabilities/inventory/parse-yarn.js +21 -11
  193. package/dist/checks/vulnerabilities/inventory/parse-yarn.js.map +1 -1
  194. package/dist/cli.d.ts.map +1 -1
  195. package/dist/cli.js +3 -0
  196. package/dist/cli.js.map +1 -1
  197. package/dist/commands/agent.js +1 -1
  198. package/dist/commands/agent.js.map +1 -1
  199. package/dist/commands/checks.d.ts +5 -2
  200. package/dist/commands/checks.d.ts.map +1 -1
  201. package/dist/commands/checks.js +18 -5
  202. package/dist/commands/checks.js.map +1 -1
  203. package/dist/commands/fix.d.ts.map +1 -1
  204. package/dist/commands/fix.js +6 -297
  205. package/dist/commands/fix.js.map +1 -1
  206. package/dist/commands/init.d.ts +4 -2
  207. package/dist/commands/init.d.ts.map +1 -1
  208. package/dist/commands/init.js +36 -379
  209. package/dist/commands/init.js.map +1 -1
  210. package/dist/commands/scan.d.ts +2 -1
  211. package/dist/commands/scan.d.ts.map +1 -1
  212. package/dist/commands/scan.js +6 -13
  213. package/dist/commands/scan.js.map +1 -1
  214. package/dist/commands/telemetry.d.ts.map +1 -1
  215. package/dist/commands/telemetry.js +3 -0
  216. package/dist/commands/telemetry.js.map +1 -1
  217. package/dist/config/load-config.d.ts.map +1 -1
  218. package/dist/config/load-config.js +6 -15
  219. package/dist/config/load-config.js.map +1 -1
  220. package/dist/config/selection-path.d.ts +7 -0
  221. package/dist/config/selection-path.d.ts.map +1 -0
  222. package/dist/config/selection-path.js +20 -0
  223. package/dist/config/selection-path.js.map +1 -0
  224. package/dist/core/check-label.d.ts +2 -0
  225. package/dist/core/check-label.d.ts.map +1 -0
  226. package/dist/core/check-label.js +19 -0
  227. package/dist/core/check-label.js.map +1 -0
  228. package/dist/core/freeze-result.d.ts +3 -0
  229. package/dist/core/freeze-result.d.ts.map +1 -0
  230. package/dist/core/freeze-result.js +10 -0
  231. package/dist/core/freeze-result.js.map +1 -0
  232. package/dist/core/immutable-map.d.ts +3 -0
  233. package/dist/core/immutable-map.d.ts.map +1 -0
  234. package/dist/core/immutable-map.js +33 -0
  235. package/dist/core/immutable-map.js.map +1 -0
  236. package/dist/core/kernel-lease.d.ts +17 -0
  237. package/dist/core/kernel-lease.d.ts.map +1 -0
  238. package/dist/core/kernel-lease.js +55 -0
  239. package/dist/core/kernel-lease.js.map +1 -0
  240. package/dist/fixes/apply-plan.d.ts.map +1 -1
  241. package/dist/fixes/apply-plan.js +2 -9
  242. package/dist/fixes/apply-plan.js.map +1 -1
  243. package/dist/fixes/build-plan.d.ts +5 -5
  244. package/dist/fixes/build-plan.d.ts.map +1 -1
  245. package/dist/fixes/build-plan.js +15 -466
  246. package/dist/fixes/build-plan.js.map +1 -1
  247. package/dist/fixes/exact-edits.d.ts +11 -1
  248. package/dist/fixes/exact-edits.d.ts.map +1 -1
  249. package/dist/fixes/exact-edits.js +101 -46
  250. package/dist/fixes/exact-edits.js.map +1 -1
  251. package/dist/fixes/plan-candidates.d.ts +8 -0
  252. package/dist/fixes/plan-candidates.d.ts.map +1 -0
  253. package/dist/fixes/plan-candidates.js +144 -0
  254. package/dist/fixes/plan-candidates.js.map +1 -0
  255. package/dist/fixes/prettier-provider.d.ts +3 -2
  256. package/dist/fixes/prettier-provider.d.ts.map +1 -1
  257. package/dist/fixes/prettier-provider.js +53 -0
  258. package/dist/fixes/prettier-provider.js.map +1 -1
  259. package/dist/fixes/public-plan.d.ts +8 -0
  260. package/dist/fixes/public-plan.d.ts.map +1 -0
  261. package/dist/fixes/public-plan.js +194 -0
  262. package/dist/fixes/public-plan.js.map +1 -0
  263. package/dist/fixes/working-preview.d.ts +18 -0
  264. package/dist/fixes/working-preview.d.ts.map +1 -0
  265. package/dist/fixes/working-preview.js +162 -0
  266. package/dist/fixes/working-preview.js.map +1 -0
  267. package/dist/git/change-set.d.ts.map +1 -1
  268. package/dist/git/change-set.js +10 -9
  269. package/dist/git/change-set.js.map +1 -1
  270. package/dist/git/client.d.ts +16 -0
  271. package/dist/git/client.d.ts.map +1 -1
  272. package/dist/git/client.js +46 -3
  273. package/dist/git/client.js.map +1 -1
  274. package/dist/git/merge-comparison.d.ts.map +1 -1
  275. package/dist/git/merge-comparison.js +16 -4
  276. package/dist/git/merge-comparison.js.map +1 -1
  277. package/dist/git/selected-comparison.d.ts +13 -0
  278. package/dist/git/selected-comparison.d.ts.map +1 -0
  279. package/dist/git/selected-comparison.js +143 -0
  280. package/dist/git/selected-comparison.js.map +1 -0
  281. package/dist/git/snapshot-work.d.ts +18 -0
  282. package/dist/git/snapshot-work.d.ts.map +1 -0
  283. package/dist/git/snapshot-work.js +59 -0
  284. package/dist/git/snapshot-work.js.map +1 -0
  285. package/dist/git/snapshot.d.ts +6 -1
  286. package/dist/git/snapshot.d.ts.map +1 -1
  287. package/dist/git/snapshot.js +102 -5
  288. package/dist/git/snapshot.js.map +1 -1
  289. package/dist/init/formatter-setup.d.ts +29 -0
  290. package/dist/init/formatter-setup.d.ts.map +1 -0
  291. package/dist/init/formatter-setup.js +166 -0
  292. package/dist/init/formatter-setup.js.map +1 -0
  293. package/dist/init/import-provenance.d.ts +7 -0
  294. package/dist/init/import-provenance.d.ts.map +1 -0
  295. package/dist/init/import-provenance.js +58 -0
  296. package/dist/init/import-provenance.js.map +1 -0
  297. package/dist/init/install-dependency.d.mts +40 -0
  298. package/dist/init/install-dependency.mjs +427 -0
  299. package/dist/init/install-project.d.ts +1 -0
  300. package/dist/init/install-project.d.ts.map +1 -1
  301. package/dist/init/install-project.js +12 -31
  302. package/dist/init/install-project.js.map +1 -1
  303. package/dist/init/presentation.d.ts +54 -0
  304. package/dist/init/presentation.d.ts.map +1 -0
  305. package/dist/init/presentation.js +139 -0
  306. package/dist/init/presentation.js.map +1 -0
  307. package/dist/init/selection-policy.d.ts +29 -0
  308. package/dist/init/selection-policy.d.ts.map +1 -0
  309. package/dist/init/selection-policy.js +59 -0
  310. package/dist/init/selection-policy.js.map +1 -0
  311. package/dist/init/types.d.ts +7 -0
  312. package/dist/init/types.d.ts.map +1 -1
  313. package/dist/init/types.js.map +1 -1
  314. package/dist/init/write-config.d.ts.map +1 -1
  315. package/dist/init/write-config.js +3 -13
  316. package/dist/init/write-config.js.map +1 -1
  317. package/dist/inspection/inspect-repository.d.ts.map +1 -1
  318. package/dist/inspection/inspect-repository.js +17 -3
  319. package/dist/inspection/inspect-repository.js.map +1 -1
  320. package/dist/inspection/snapshot-registry.d.ts +2 -0
  321. package/dist/inspection/snapshot-registry.d.ts.map +1 -1
  322. package/dist/inspection/snapshot-registry.js +58 -7
  323. package/dist/inspection/snapshot-registry.js.map +1 -1
  324. package/dist/inspection/types.d.ts +6 -1
  325. package/dist/inspection/types.d.ts.map +1 -1
  326. package/dist/inspection/types.js +7 -1
  327. package/dist/inspection/types.js.map +1 -1
  328. package/dist/inspection/workspaces.d.ts.map +1 -1
  329. package/dist/inspection/workspaces.js +17 -0
  330. package/dist/inspection/workspaces.js.map +1 -1
  331. package/dist/reporting/check-label.d.ts +1 -1
  332. package/dist/reporting/check-label.d.ts.map +1 -1
  333. package/dist/reporting/check-label.js +1 -18
  334. package/dist/reporting/check-label.js.map +1 -1
  335. package/dist/reporting/fix-plan-store.d.ts +7 -0
  336. package/dist/reporting/fix-plan-store.d.ts.map +1 -0
  337. package/dist/reporting/fix-plan-store.js +29 -0
  338. package/dist/reporting/fix-plan-store.js.map +1 -0
  339. package/dist/reporting/fix-presentation.d.ts +77 -0
  340. package/dist/reporting/fix-presentation.d.ts.map +1 -0
  341. package/dist/reporting/fix-presentation.js +262 -0
  342. package/dist/reporting/fix-presentation.js.map +1 -0
  343. package/dist/reporting/temporary-report-common.d.ts +27 -0
  344. package/dist/reporting/temporary-report-common.d.ts.map +1 -0
  345. package/dist/reporting/temporary-report-common.js +33 -0
  346. package/dist/reporting/temporary-report-common.js.map +1 -0
  347. package/dist/reporting/temporary-report-filesystem.d.ts +6 -0
  348. package/dist/reporting/temporary-report-filesystem.d.ts.map +1 -0
  349. package/dist/reporting/temporary-report-filesystem.js +124 -0
  350. package/dist/reporting/temporary-report-filesystem.js.map +1 -0
  351. package/dist/reporting/temporary-report-lifecycle.d.ts +19 -0
  352. package/dist/reporting/temporary-report-lifecycle.d.ts.map +1 -0
  353. package/dist/reporting/temporary-report-lifecycle.js +278 -0
  354. package/dist/reporting/temporary-report-lifecycle.js.map +1 -0
  355. package/dist/reporting/temporary-report-lock.d.ts +21 -0
  356. package/dist/reporting/temporary-report-lock.d.ts.map +1 -0
  357. package/dist/reporting/temporary-report-lock.js +106 -0
  358. package/dist/reporting/temporary-report-lock.js.map +1 -0
  359. package/dist/reporting/temporary-reports.d.ts +3 -24
  360. package/dist/reporting/temporary-reports.d.ts.map +1 -1
  361. package/dist/reporting/temporary-reports.js +10 -534
  362. package/dist/reporting/temporary-reports.js.map +1 -1
  363. package/dist/scan/analysis-failure.d.ts.map +1 -1
  364. package/dist/scan/analysis-failure.js +23 -0
  365. package/dist/scan/analysis-failure.js.map +1 -1
  366. package/dist/scan/analysis-session.d.ts +4 -0
  367. package/dist/scan/analysis-session.d.ts.map +1 -1
  368. package/dist/scan/analysis-session.js +60 -13
  369. package/dist/scan/analysis-session.js.map +1 -1
  370. package/dist/scan/incomplete-report.js +2 -2
  371. package/dist/scan/incomplete-report.js.map +1 -1
  372. package/dist/scan/merge-scan.d.ts +2 -1
  373. package/dist/scan/merge-scan.d.ts.map +1 -1
  374. package/dist/scan/merge-scan.js +82 -37
  375. package/dist/scan/merge-scan.js.map +1 -1
  376. package/dist/scan/progress.d.ts +4 -0
  377. package/dist/scan/progress.d.ts.map +1 -0
  378. package/dist/scan/progress.js +18 -0
  379. package/dist/scan/progress.js.map +1 -0
  380. package/dist/scan/run-scan.d.ts.map +1 -1
  381. package/dist/scan/run-scan.js +11 -15
  382. package/dist/scan/run-scan.js.map +1 -1
  383. package/dist/scan/source-excerpts.d.ts +1 -1
  384. package/dist/scan/source-excerpts.d.ts.map +1 -1
  385. package/dist/scan/source-excerpts.js +25 -27
  386. package/dist/scan/source-excerpts.js.map +1 -1
  387. package/dist/service/client-connection.d.ts +21 -0
  388. package/dist/service/client-connection.d.ts.map +1 -0
  389. package/dist/service/client-connection.js +219 -0
  390. package/dist/service/client-connection.js.map +1 -0
  391. package/dist/service/client-executor.d.ts +10 -0
  392. package/dist/service/client-executor.d.ts.map +1 -0
  393. package/dist/service/client-executor.js +69 -0
  394. package/dist/service/client-executor.js.map +1 -0
  395. package/dist/service/client-ownership.d.ts +16 -0
  396. package/dist/service/client-ownership.d.ts.map +1 -0
  397. package/dist/service/client-ownership.js +104 -0
  398. package/dist/service/client-ownership.js.map +1 -0
  399. package/dist/service/client-startup.d.ts +3 -0
  400. package/dist/service/client-startup.d.ts.map +1 -0
  401. package/dist/service/client-startup.js +123 -0
  402. package/dist/service/client-startup.js.map +1 -0
  403. package/dist/service/client.d.ts +2 -27
  404. package/dist/service/client.d.ts.map +1 -1
  405. package/dist/service/client.js +7 -490
  406. package/dist/service/client.js.map +1 -1
  407. package/dist/service/identity-parallel.js +3 -3
  408. package/dist/service/identity-parallel.js.map +1 -1
  409. package/dist/service/identity.js +4 -4
  410. package/dist/service/identity.js.map +1 -1
  411. package/dist/service/server-connection.d.ts +43 -0
  412. package/dist/service/server-connection.d.ts.map +1 -0
  413. package/dist/service/server-connection.js +327 -0
  414. package/dist/service/server-connection.js.map +1 -0
  415. package/dist/service/server.d.ts +1 -1
  416. package/dist/service/server.d.ts.map +1 -1
  417. package/dist/service/server.js +77 -343
  418. package/dist/service/server.js.map +1 -1
  419. package/dist/service/state.d.ts.map +1 -1
  420. package/dist/service/state.js +14 -26
  421. package/dist/service/state.js.map +1 -1
  422. package/dist/service/windows-pipe.d.ts +22 -14
  423. package/dist/service/windows-pipe.d.ts.map +1 -1
  424. package/dist/service/windows-pipe.js +384 -350
  425. package/dist/service/windows-pipe.js.map +1 -1
  426. package/dist/telemetry/ai-context.d.ts +14 -0
  427. package/dist/telemetry/ai-context.d.ts.map +1 -0
  428. package/dist/telemetry/ai-context.js +129 -0
  429. package/dist/telemetry/ai-context.js.map +1 -0
  430. package/dist/telemetry/batch.d.ts +4 -0
  431. package/dist/telemetry/batch.d.ts.map +1 -0
  432. package/dist/telemetry/batch.js +21 -0
  433. package/dist/telemetry/batch.js.map +1 -0
  434. package/dist/telemetry/client.d.ts +3 -0
  435. package/dist/telemetry/client.d.ts.map +1 -1
  436. package/dist/telemetry/client.js +63 -2
  437. package/dist/telemetry/client.js.map +1 -1
  438. package/dist/telemetry/details-store.d.ts +15 -0
  439. package/dist/telemetry/details-store.d.ts.map +1 -0
  440. package/dist/telemetry/details-store.js +198 -0
  441. package/dist/telemetry/details-store.js.map +1 -0
  442. package/dist/telemetry/finding-catalog.d.ts +2 -0
  443. package/dist/telemetry/finding-catalog.d.ts.map +1 -0
  444. package/dist/telemetry/finding-catalog.js +2817 -0
  445. package/dist/telemetry/finding-catalog.js.map +1 -0
  446. package/dist/telemetry/finding-rules.d.ts +3 -0
  447. package/dist/telemetry/finding-rules.d.ts.map +1 -0
  448. package/dist/telemetry/finding-rules.js +16 -0
  449. package/dist/telemetry/finding-rules.js.map +1 -0
  450. package/dist/telemetry/finding-summary.d.ts +8 -0
  451. package/dist/telemetry/finding-summary.d.ts.map +1 -0
  452. package/dist/telemetry/finding-summary.js +63 -0
  453. package/dist/telemetry/finding-summary.js.map +1 -0
  454. package/dist/telemetry/schema.d.ts +603 -4
  455. package/dist/telemetry/schema.d.ts.map +1 -1
  456. package/dist/telemetry/schema.js +117 -1
  457. package/dist/telemetry/schema.js.map +1 -1
  458. package/dist/telemetry/state.d.ts +5 -4
  459. package/dist/telemetry/state.d.ts.map +1 -1
  460. package/dist/telemetry/state.js +115 -69
  461. package/dist/telemetry/state.js.map +1 -1
  462. package/dist/telemetry/transport.d.ts.map +1 -1
  463. package/dist/telemetry/transport.js +5 -1
  464. package/dist/telemetry/transport.js.map +1 -1
  465. package/dist/telemetry/worker.d.ts.map +1 -1
  466. package/dist/telemetry/worker.js +9 -1
  467. package/dist/telemetry/worker.js.map +1 -1
  468. package/dist/ui/init-app.d.ts +6 -14
  469. package/dist/ui/init-app.d.ts.map +1 -1
  470. package/dist/ui/init-app.js +39 -203
  471. package/dist/ui/init-app.js.map +1 -1
  472. package/dist/ui/init-operation.d.ts +19 -0
  473. package/dist/ui/init-operation.d.ts.map +1 -0
  474. package/dist/ui/init-operation.js +54 -0
  475. package/dist/ui/init-operation.js.map +1 -0
  476. package/dist/ui/init-view.d.ts +42 -0
  477. package/dist/ui/init-view.d.ts.map +1 -0
  478. package/dist/ui/init-view.js +199 -0
  479. package/dist/ui/init-view.js.map +1 -0
  480. package/dist/ui/live-dashboard.d.ts +5 -1
  481. package/dist/ui/live-dashboard.d.ts.map +1 -1
  482. package/dist/ui/live-dashboard.js +46 -4
  483. package/dist/ui/live-dashboard.js.map +1 -1
  484. package/dist/vendor/knip/node_modules/get-tsconfig/LICENSE +21 -0
  485. package/dist/vendor/knip/node_modules/get-tsconfig/README.md +268 -0
  486. package/dist/vendor/knip/node_modules/get-tsconfig/dist/index.cjs +7 -0
  487. package/dist/vendor/knip/node_modules/get-tsconfig/dist/index.d.cts +2116 -0
  488. package/dist/vendor/knip/node_modules/get-tsconfig/dist/index.d.mts +2116 -0
  489. package/dist/vendor/knip/node_modules/get-tsconfig/dist/index.mjs +7 -0
  490. package/dist/vendor/knip/node_modules/get-tsconfig/package.json +46 -0
  491. package/docs/checks.md +56 -5
  492. package/docs/cli-reference.md +12 -2
  493. package/docs/commercial-licensing.md +1 -1
  494. package/docs/managed-fixes.md +14 -0
  495. package/docs/privacy.md +55 -2
  496. package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslint-recommended-raw.js +1 -0
  497. package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslintrc/all.d.ts +2 -0
  498. package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslintrc/all.js +3 -0
  499. package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslintrc/base.js +1 -0
  500. package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslintrc/disable-type-checked.d.ts +2 -0
  501. package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslintrc/disable-type-checked.js +3 -0
  502. package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslintrc/eslint-recommended.js +1 -0
  503. package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslintrc/recommended-type-checked-only.js +1 -0
  504. package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslintrc/recommended-type-checked.js +1 -0
  505. package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslintrc/recommended.js +1 -0
  506. package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslintrc/strict-type-checked-only.d.ts +2 -0
  507. package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslintrc/strict-type-checked-only.js +3 -0
  508. package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslintrc/strict-type-checked.d.ts +2 -0
  509. package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslintrc/strict-type-checked.js +3 -0
  510. package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslintrc/strict.js +1 -0
  511. package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslintrc/stylistic-type-checked-only.js +1 -0
  512. package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslintrc/stylistic-type-checked.js +1 -0
  513. package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslintrc/stylistic.js +1 -0
  514. package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/flat/all.js +3 -0
  515. package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/flat/base.js +1 -0
  516. package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/flat/disable-type-checked.js +3 -0
  517. package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/flat/eslint-recommended.js +1 -0
  518. package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/flat/recommended-type-checked-only.js +1 -0
  519. package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/flat/recommended-type-checked.js +1 -0
  520. package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/flat/recommended.js +1 -0
  521. package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/flat/strict-type-checked-only.js +3 -0
  522. package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/flat/strict-type-checked.js +3 -0
  523. package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/flat/strict.js +1 -0
  524. package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/flat/stylistic-type-checked-only.js +1 -0
  525. package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/flat/stylistic-type-checked.js +1 -0
  526. package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/flat/stylistic.js +1 -0
  527. package/node_modules/@typescript-eslint/eslint-plugin/dist/index.d.ts +9 -447
  528. package/node_modules/@typescript-eslint/eslint-plugin/dist/index.js +1 -0
  529. package/node_modules/@typescript-eslint/eslint-plugin/dist/raw-plugin.d.ts +9 -447
  530. package/node_modules/@typescript-eslint/eslint-plugin/dist/raw-plugin.js +1 -0
  531. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/adjacent-overload-signatures.js +2 -0
  532. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/array-type.js +2 -0
  533. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/await-thenable.d.ts +6 -1
  534. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/await-thenable.js +41 -6
  535. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-ts-comment.js +2 -0
  536. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-tslint-comment.js +2 -0
  537. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/class-literal-property-style.js +2 -0
  538. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/class-methods-use-this.js +2 -0
  539. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-generic-constructors.js +2 -0
  540. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-indexed-object-style.js +2 -0
  541. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-return.js +2 -0
  542. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-assertions.js +2 -0
  543. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-definitions.js +2 -0
  544. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-exports.js +2 -0
  545. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-imports.js +2 -0
  546. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/default-param-last.js +2 -0
  547. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/dot-notation.js +2 -0
  548. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/enum-utils/shared.d.ts +9 -0
  549. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/enum-utils/shared.js +69 -0
  550. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-function-return-type.js +2 -0
  551. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-member-accessibility.js +2 -0
  552. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-module-boundary-types.js +2 -0
  553. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/index.d.ts +1 -447
  554. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/index.js +141 -273
  555. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/init-declarations.js +2 -0
  556. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/max-params.js +2 -0
  557. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/member-ordering.js +59 -1
  558. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/method-signature-style.js +2 -0
  559. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/enums.js +1 -0
  560. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/format.js +1 -0
  561. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/index.js +1 -0
  562. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/parse-options.js +1 -0
  563. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/schema.js +1 -0
  564. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/shared.js +1 -0
  565. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/types.js +1 -0
  566. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/validator.js +1 -0
  567. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention.js +2 -0
  568. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-array-constructor.js +2 -0
  569. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-array-delete.js +2 -0
  570. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-base-to-string.js +2 -0
  571. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-confusing-non-null-assertion.js +2 -0
  572. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-confusing-void-expression.js +30 -10
  573. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-deprecated.js +57 -2
  574. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-dupe-class-members.js +2 -0
  575. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-duplicate-enum-values.js +2 -0
  576. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-duplicate-type-constituents.js +2 -0
  577. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-dynamic-delete.js +2 -0
  578. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-empty-function.js +2 -0
  579. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-empty-interface.js +3 -0
  580. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-empty-object-type.js +10 -4
  581. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-explicit-any.js +12 -2
  582. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extra-non-null-assertion.js +2 -0
  583. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extraneous-class.js +2 -0
  584. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-floating-promises.js +65 -55
  585. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-for-in-array.js +2 -0
  586. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-generated-empty-object-type.d.ts +4 -0
  587. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-generated-empty-object-type.js +97 -0
  588. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-implied-eval.js +2 -0
  589. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-import-type-side-effects.js +2 -0
  590. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-inferrable-types.js +2 -0
  591. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-invalid-this.js +2 -0
  592. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-invalid-void-type.js +2 -0
  593. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-loop-func.js +2 -0
  594. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-loss-of-precision.js +2 -0
  595. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-magic-numbers.js +2 -0
  596. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-meaningless-void-operator.d.ts +1 -1
  597. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-meaningless-void-operator.js +49 -1
  598. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-new.js +2 -0
  599. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-promises.d.ts +5 -1
  600. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-promises.js +76 -4
  601. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-spread.js +6 -1
  602. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-mixed-enums.js +35 -23
  603. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-namespace.js +2 -0
  604. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-asserted-nullish-coalescing.js +2 -0
  605. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-asserted-optional-chain.js +2 -0
  606. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-assertion.js +2 -0
  607. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-redeclare.js +2 -0
  608. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-redundant-type-constituents.js +6 -2
  609. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-require-imports.js +2 -0
  610. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-restricted-imports.js +3 -0
  611. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-restricted-types.js +2 -0
  612. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-shadow.js +2 -0
  613. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-this-alias.js +2 -0
  614. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-type-alias.js +2 -0
  615. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-boolean-literal-compare.js +2 -0
  616. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-condition.js +85 -12
  617. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-parameter-property-assignment.js +14 -4
  618. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-qualifier.js +2 -0
  619. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-template-expression.js +4 -14
  620. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-arguments.js +2 -0
  621. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-assertion.d.ts +2 -3
  622. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-assertion.js +52 -49
  623. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-constraint.js +3 -0
  624. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-conversion.js +2 -0
  625. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-parameters.js +46 -18
  626. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-argument.js +3 -91
  627. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-assignment.js +2 -0
  628. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-call.js +2 -0
  629. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-declaration-merging.js +2 -0
  630. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-enum-assignment.d.ts +5 -0
  631. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-enum-assignment.js +518 -0
  632. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-enum-comparison.js +4 -113
  633. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-function-type.js +2 -0
  634. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-member-access.js +2 -0
  635. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-return.js +2 -0
  636. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-type-assertion.js +2 -0
  637. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-unary-minus.js +2 -0
  638. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unused-expressions.js +2 -0
  639. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unused-private-class-members.js +2 -0
  640. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unused-vars.js +6 -5
  641. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-use-before-define.js +2 -0
  642. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-useless-constructor.js +2 -0
  643. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-useless-default-assignment.d.ts +1 -1
  644. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-useless-default-assignment.js +29 -7
  645. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-useless-empty-export.js +2 -0
  646. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-var-requires.js +3 -0
  647. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-wrapper-object-types.js +2 -0
  648. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/non-nullable-type-assertion-style.js +2 -0
  649. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/only-throw-error.js +2 -0
  650. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/parameter-properties.js +2 -0
  651. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-as-const.js +2 -0
  652. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-destructuring.js +2 -0
  653. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-enum-initializers.js +2 -0
  654. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-find.js +2 -0
  655. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-for-of.js +2 -0
  656. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-function-type.js +2 -0
  657. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-includes.js +2 -0
  658. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-literal-enum-member.js +2 -0
  659. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-namespace-keyword.js +2 -0
  660. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-nullish-coalescing.js +4 -3
  661. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/PreferOptionalChainOptions.js +1 -0
  662. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/analyzeChain.js +47 -10
  663. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/checkNullishAndReport.js +1 -0
  664. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/compareNodes.js +1 -0
  665. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/gatherLogicalOperands.js +2 -0
  666. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain.js +2 -0
  667. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-promise-reject-errors.js +2 -0
  668. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-readonly-parameter-types.js +2 -0
  669. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-readonly.js +2 -0
  670. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-reduce-type-parameter.js +2 -0
  671. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-regexp-exec.js +2 -0
  672. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-return-this-type.js +2 -0
  673. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-string-starts-ends-with.js +2 -0
  674. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-ts-expect-error.js +3 -0
  675. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/promise-function-async.js +2 -0
  676. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/related-getter-setter-pairs.js +2 -0
  677. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/require-array-sort-compare.js +50 -3
  678. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/require-await.js +2 -0
  679. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/restrict-plus-operands.js +2 -0
  680. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/restrict-template-expressions.js +2 -0
  681. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/return-await.js +12 -9
  682. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/sort-type-constituents.js +3 -0
  683. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/strict-boolean-expressions.js +2 -0
  684. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/strict-void-return.d.ts +3 -2
  685. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/strict-void-return.js +100 -5
  686. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/switch-exhaustiveness-check.js +3 -1
  687. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/triple-slash-reference.js +6 -1
  688. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/typedef.js +2 -0
  689. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/unbound-method.js +39 -12
  690. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/unified-signatures.d.ts +1 -1
  691. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/unified-signatures.js +75 -37
  692. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/use-unknown-in-catch-callback-variable.js +2 -0
  693. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/FunctionSignature.d.ts +15 -0
  694. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/FunctionSignature.js +123 -0
  695. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/assertionFunctionUtils.js +1 -0
  696. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/astUtils.js +1 -0
  697. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/baseTypeUtils.d.ts +2 -0
  698. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/baseTypeUtils.js +17 -0
  699. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/class-scope-analyzer/classScopeAnalyzer.js +1 -0
  700. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/class-scope-analyzer/extractComputedName.js +1 -0
  701. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/class-scope-analyzer/types.js +1 -0
  702. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/collectUnusedVariables.js +11 -7
  703. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/createRule.js +1 -0
  704. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/escapeRegExp.js +1 -0
  705. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/explicitReturnTypeUtils.js +1 -0
  706. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/getAwaitTokenRemovalRange.d.ts +4 -0
  707. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/getAwaitTokenRemovalRange.js +15 -0
  708. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/getBaseTypesOfClassMember.js +1 -0
  709. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/getConstraintInfo.js +1 -0
  710. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/getESLintCoreRule.js +1 -0
  711. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/getFixOrSuggest.js +1 -0
  712. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/getForStatementHeadLoc.js +1 -0
  713. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/getFunctionHeadLoc.js +1 -0
  714. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/getMemberHeadLoc.js +1 -0
  715. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/getOperatorPrecedence.js +2 -0
  716. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/getParentFunctionNode.js +1 -0
  717. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/getStaticStringValue.js +1 -0
  718. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/getStringLength.js +1 -0
  719. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/getTextWithParentheses.js +1 -0
  720. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/getThisExpression.js +1 -0
  721. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/getValueOfLiteralType.js +1 -0
  722. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/getWrappedCode.js +1 -0
  723. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/getWrappingFixer.js +1 -1
  724. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/hasOverloadSignatures.js +1 -0
  725. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/index.d.ts +4 -0
  726. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/index.js +5 -0
  727. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/isArrayMethodCallWithPredicate.js +1 -0
  728. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/isAssignee.js +1 -0
  729. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/isConditionalTest.js +1 -0
  730. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/isHigherPrecedenceThanAwait.js +1 -0
  731. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/isNodeEqual.js +1 -0
  732. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/isNullLiteral.js +1 -0
  733. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/isPromiseAggregatorMethod.js +1 -0
  734. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/isStartOfArrowFunctionBodyNeedingParentheses.d.ts +2 -0
  735. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/isStartOfArrowFunctionBodyNeedingParentheses.js +30 -0
  736. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/isStartOfExpressionStatement.js +1 -0
  737. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/isStartOfExpressionStatementNeedingParentheses.d.ts +2 -0
  738. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/isStartOfExpressionStatementNeedingParentheses.js +9 -0
  739. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/isTypeImport.js +1 -0
  740. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/isTypeOnlyReference.d.ts +4 -0
  741. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/isTypeOnlyReference.js +23 -0
  742. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/isUndefinedIdentifier.js +1 -0
  743. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/lazyRules.d.ts +6 -0
  744. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/lazyRules.js +18 -0
  745. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/misc.js +1 -0
  746. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/needsPrecedingSemiColon.js +1 -0
  747. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/needsToBeAwaited.js +1 -0
  748. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/objectIterators.js +1 -0
  749. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/promiseUtils.js +1 -0
  750. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/rangeToLoc.js +1 -0
  751. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/referenceContainsTypePredicate.js +1 -0
  752. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/referenceContainsTypeQuery.js +1 -0
  753. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/scopeUtils.js +1 -0
  754. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/skipChainExpression.js +1 -0
  755. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/truthinessUtils.js +3 -1
  756. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/types.js +1 -0
  757. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/walkStatements.js +1 -0
  758. package/node_modules/@typescript-eslint/eslint-plugin/package.json +19 -18
  759. package/node_modules/@typescript-eslint/parser/dist/index.js +1 -0
  760. package/node_modules/@typescript-eslint/parser/dist/parser.js +1 -0
  761. package/node_modules/@typescript-eslint/parser/package.json +9 -8
  762. package/node_modules/@typescript-eslint/project-service/dist/createProjectService.js +10 -9
  763. package/node_modules/@typescript-eslint/project-service/dist/getParsedConfigFileFromTSServer.js +1 -0
  764. package/node_modules/@typescript-eslint/project-service/dist/index.js +1 -0
  765. package/node_modules/@typescript-eslint/project-service/dist/throttleOpenedFileCleanup.d.ts +7 -0
  766. package/node_modules/@typescript-eslint/project-service/dist/throttleOpenedFileCleanup.js +37 -0
  767. package/node_modules/@typescript-eslint/project-service/package.json +7 -6
  768. package/node_modules/@typescript-eslint/scope-manager/dist/ID.js +1 -0
  769. package/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.js +1 -0
  770. package/node_modules/@typescript-eslint/scope-manager/dist/analyze.js +3 -0
  771. package/node_modules/@typescript-eslint/scope-manager/dist/assert.js +1 -0
  772. package/node_modules/@typescript-eslint/scope-manager/dist/definition/CatchClauseDefinition.js +1 -0
  773. package/node_modules/@typescript-eslint/scope-manager/dist/definition/ClassNameDefinition.js +1 -0
  774. package/node_modules/@typescript-eslint/scope-manager/dist/definition/Definition.js +1 -0
  775. package/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionBase.js +1 -0
  776. package/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionType.js +1 -0
  777. package/node_modules/@typescript-eslint/scope-manager/dist/definition/FunctionNameDefinition.js +1 -0
  778. package/node_modules/@typescript-eslint/scope-manager/dist/definition/ImplicitGlobalVariableDefinition.js +1 -0
  779. package/node_modules/@typescript-eslint/scope-manager/dist/definition/ImportBindingDefinition.js +1 -0
  780. package/node_modules/@typescript-eslint/scope-manager/dist/definition/ParameterDefinition.js +1 -0
  781. package/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumMemberDefinition.js +1 -0
  782. package/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumNameDefinition.js +1 -0
  783. package/node_modules/@typescript-eslint/scope-manager/dist/definition/TSModuleNameDefinition.js +1 -0
  784. package/node_modules/@typescript-eslint/scope-manager/dist/definition/TypeDefinition.js +1 -0
  785. package/node_modules/@typescript-eslint/scope-manager/dist/definition/VariableDefinition.js +1 -0
  786. package/node_modules/@typescript-eslint/scope-manager/dist/definition/index.js +1 -0
  787. package/node_modules/@typescript-eslint/scope-manager/dist/index.js +1 -0
  788. package/node_modules/@typescript-eslint/scope-manager/dist/lib/base-config.js +1 -0
  789. package/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.js +1 -0
  790. package/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.js +1 -0
  791. package/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.asynciterable.js +1 -0
  792. package/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.iterable.js +1 -0
  793. package/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.js +1 -0
  794. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.collection.js +1 -0
  795. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.core.js +1 -0
  796. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.generator.js +1 -0
  797. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.iterable.js +1 -0
  798. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.js +1 -0
  799. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.promise.js +1 -0
  800. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.proxy.js +1 -0
  801. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.reflect.js +1 -0
  802. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.js +1 -0
  803. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.wellknown.js +1 -0
  804. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.array.include.js +1 -0
  805. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.full.js +1 -0
  806. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.intl.js +1 -0
  807. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.js +1 -0
  808. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.arraybuffer.js +1 -0
  809. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.date.js +1 -0
  810. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.full.js +1 -0
  811. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.intl.js +1 -0
  812. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.js +1 -0
  813. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.object.js +1 -0
  814. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.sharedmemory.js +1 -0
  815. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.string.js +1 -0
  816. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.typedarrays.js +1 -0
  817. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asyncgenerator.js +1 -0
  818. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asynciterable.js +1 -0
  819. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.full.js +1 -0
  820. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.intl.js +1 -0
  821. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.js +1 -0
  822. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.promise.js +1 -0
  823. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.regexp.js +1 -0
  824. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.array.js +1 -0
  825. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.full.js +1 -0
  826. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.js +1 -0
  827. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.js +1 -0
  828. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.object.js +1 -0
  829. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.string.js +1 -0
  830. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.symbol.js +1 -0
  831. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.bigint.js +1 -0
  832. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.date.js +1 -0
  833. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.full.js +1 -0
  834. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.intl.js +1 -0
  835. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.js +1 -0
  836. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.number.js +1 -0
  837. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.promise.js +1 -0
  838. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.sharedmemory.js +1 -0
  839. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.string.js +1 -0
  840. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.symbol.wellknown.js +1 -0
  841. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.full.js +1 -0
  842. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.intl.js +1 -0
  843. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.js +1 -0
  844. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.promise.js +1 -0
  845. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.string.js +1 -0
  846. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.weakref.js +1 -0
  847. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.array.js +1 -0
  848. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.error.js +1 -0
  849. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.full.js +1 -0
  850. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.intl.js +1 -0
  851. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.js +1 -0
  852. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.object.js +1 -0
  853. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.js +1 -0
  854. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.string.js +1 -0
  855. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.js +1 -0
  856. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.collection.js +1 -0
  857. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.js +1 -0
  858. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.intl.js +1 -0
  859. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.js +1 -0
  860. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.arraybuffer.js +1 -0
  861. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.collection.js +1 -0
  862. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.full.js +1 -0
  863. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.js +1 -0
  864. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.object.js +1 -0
  865. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.promise.js +1 -0
  866. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.regexp.js +1 -0
  867. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.sharedmemory.js +1 -0
  868. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.string.js +1 -0
  869. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2025.collection.js +1 -0
  870. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2025.float16.js +1 -0
  871. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2025.full.js +1 -0
  872. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2025.intl.js +1 -0
  873. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2025.iterator.js +1 -0
  874. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2025.js +1 -0
  875. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2025.promise.js +1 -0
  876. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2025.regexp.js +1 -0
  877. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es5.js +1 -0
  878. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es6.js +1 -0
  879. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es7.js +1 -0
  880. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.array.js +1 -0
  881. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.asynciterable.js +1 -0
  882. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.bigint.js +1 -0
  883. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.collection.js +1 -0
  884. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.date.js +1 -0
  885. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.decorators.js +1 -0
  886. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.disposable.js +1 -0
  887. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.error.js +1 -0
  888. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.float16.js +1 -0
  889. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.full.js +1 -0
  890. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.intl.js +1 -0
  891. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.iterator.js +1 -0
  892. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.js +1 -0
  893. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.object.js +1 -0
  894. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.promise.js +1 -0
  895. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.regexp.js +1 -0
  896. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.sharedmemory.js +1 -0
  897. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.string.js +1 -0
  898. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.symbol.js +1 -0
  899. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.temporal.js +1 -0
  900. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.typedarrays.js +1 -0
  901. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.weakref.js +1 -0
  902. package/node_modules/@typescript-eslint/scope-manager/dist/lib/index.js +1 -0
  903. package/node_modules/@typescript-eslint/scope-manager/dist/lib/lib.js +1 -0
  904. package/node_modules/@typescript-eslint/scope-manager/dist/lib/scripthost.js +1 -0
  905. package/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.asynciterable.js +1 -0
  906. package/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.importscripts.js +1 -0
  907. package/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.iterable.js +1 -0
  908. package/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.js +1 -0
  909. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.js +1 -0
  910. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ExportVisitor.js +1 -0
  911. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ImportVisitor.js +1 -0
  912. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.js +1 -0
  913. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/Reference.js +1 -0
  914. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.js +13 -1
  915. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/TypeVisitor.js +1 -0
  916. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/Visitor.js +1 -0
  917. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/VisitorBase.js +1 -0
  918. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/index.js +1 -0
  919. package/node_modules/@typescript-eslint/scope-manager/dist/scope/BlockScope.js +1 -0
  920. package/node_modules/@typescript-eslint/scope-manager/dist/scope/CatchScope.js +1 -0
  921. package/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassFieldInitializerScope.js +1 -0
  922. package/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassScope.js +1 -0
  923. package/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassStaticBlockScope.js +1 -0
  924. package/node_modules/@typescript-eslint/scope-manager/dist/scope/ConditionalTypeScope.js +1 -0
  925. package/node_modules/@typescript-eslint/scope-manager/dist/scope/ForScope.js +1 -0
  926. package/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionExpressionNameScope.js +1 -0
  927. package/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionScope.js +1 -0
  928. package/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionTypeScope.js +1 -0
  929. package/node_modules/@typescript-eslint/scope-manager/dist/scope/GlobalScope.js +1 -0
  930. package/node_modules/@typescript-eslint/scope-manager/dist/scope/MappedTypeScope.js +1 -0
  931. package/node_modules/@typescript-eslint/scope-manager/dist/scope/ModuleScope.js +1 -0
  932. package/node_modules/@typescript-eslint/scope-manager/dist/scope/Scope.js +1 -0
  933. package/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeBase.js +1 -0
  934. package/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeType.js +1 -0
  935. package/node_modules/@typescript-eslint/scope-manager/dist/scope/SwitchScope.js +1 -0
  936. package/node_modules/@typescript-eslint/scope-manager/dist/scope/TSEnumScope.js +1 -0
  937. package/node_modules/@typescript-eslint/scope-manager/dist/scope/TSModuleScope.js +1 -0
  938. package/node_modules/@typescript-eslint/scope-manager/dist/scope/TypeScope.js +1 -0
  939. package/node_modules/@typescript-eslint/scope-manager/dist/scope/WithScope.js +1 -0
  940. package/node_modules/@typescript-eslint/scope-manager/dist/scope/index.js +1 -0
  941. package/node_modules/@typescript-eslint/scope-manager/dist/variable/ESLintScopeVariable.js +1 -0
  942. package/node_modules/@typescript-eslint/scope-manager/dist/variable/ImplicitLibVariable.js +1 -0
  943. package/node_modules/@typescript-eslint/scope-manager/dist/variable/Variable.js +1 -0
  944. package/node_modules/@typescript-eslint/scope-manager/dist/variable/VariableBase.js +1 -0
  945. package/node_modules/@typescript-eslint/scope-manager/dist/variable/index.js +1 -0
  946. package/node_modules/@typescript-eslint/scope-manager/package.json +8 -7
  947. package/node_modules/@typescript-eslint/tsconfig-utils/dist/compilerOptions.js +1 -0
  948. package/node_modules/@typescript-eslint/tsconfig-utils/dist/getParsedConfigFile.js +1 -0
  949. package/node_modules/@typescript-eslint/tsconfig-utils/dist/index.js +1 -0
  950. package/node_modules/@typescript-eslint/tsconfig-utils/package.json +4 -3
  951. package/node_modules/@typescript-eslint/type-utils/dist/TypeOrValueSpecifier.js +4 -14
  952. package/node_modules/@typescript-eslint/type-utils/dist/builtinSymbolLikes.js +1 -0
  953. package/node_modules/@typescript-eslint/type-utils/dist/containsAllTypesByName.js +1 -0
  954. package/node_modules/@typescript-eslint/type-utils/dist/discriminateAnyType.js +7 -0
  955. package/node_modules/@typescript-eslint/type-utils/dist/getConstrainedTypeAtLocation.js +1 -0
  956. package/node_modules/@typescript-eslint/type-utils/dist/getContextualType.js +1 -0
  957. package/node_modules/@typescript-eslint/type-utils/dist/getDeclaration.js +1 -0
  958. package/node_modules/@typescript-eslint/type-utils/dist/getSourceFileOfNode.js +1 -0
  959. package/node_modules/@typescript-eslint/type-utils/dist/getTypeName.js +1 -0
  960. package/node_modules/@typescript-eslint/type-utils/dist/index.js +1 -0
  961. package/node_modules/@typescript-eslint/type-utils/dist/isSymbolFromDefaultLibrary.js +1 -0
  962. package/node_modules/@typescript-eslint/type-utils/dist/isTypeBrandedLiteralLike.js +3 -1
  963. package/node_modules/@typescript-eslint/type-utils/dist/isTypeReadonly.js +10 -5
  964. package/node_modules/@typescript-eslint/type-utils/dist/isUnsafeAssignment.js +1 -0
  965. package/node_modules/@typescript-eslint/type-utils/dist/predicates.d.ts +5 -0
  966. package/node_modules/@typescript-eslint/type-utils/dist/predicates.js +11 -0
  967. package/node_modules/@typescript-eslint/type-utils/dist/propertyTypes.js +1 -0
  968. package/node_modules/@typescript-eslint/type-utils/dist/requiresQuoting.js +1 -0
  969. package/node_modules/@typescript-eslint/type-utils/dist/typeFlagUtils.js +2 -1
  970. package/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/specifierNameMatches.js +1 -0
  971. package/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/specifierSourceMatches.d.ts +3 -0
  972. package/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/specifierSourceMatches.js +19 -0
  973. package/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/typeDeclaredInFile.js +1 -0
  974. package/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/typeDeclaredInLib.js +1 -0
  975. package/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/typeDeclaredInPackageDeclarationFile.d.ts +1 -1
  976. package/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/typeDeclaredInPackageDeclarationFile.js +87 -9
  977. package/node_modules/@typescript-eslint/type-utils/package.json +9 -8
  978. package/node_modules/@typescript-eslint/types/dist/generated/ast-spec.d.ts +3 -3
  979. package/node_modules/@typescript-eslint/types/dist/generated/ast-spec.js +1 -0
  980. package/node_modules/@typescript-eslint/types/dist/index.js +1 -0
  981. package/node_modules/@typescript-eslint/types/dist/lib.js +1 -0
  982. package/node_modules/@typescript-eslint/types/dist/parser-options.js +1 -0
  983. package/node_modules/@typescript-eslint/types/dist/ts-estree.js +1 -0
  984. package/node_modules/@typescript-eslint/types/package.json +8 -7
  985. package/node_modules/@typescript-eslint/typescript-estree/dist/ast-converter.js +1 -0
  986. package/node_modules/@typescript-eslint/typescript-estree/dist/check-modifiers.js +7 -0
  987. package/node_modules/@typescript-eslint/typescript-estree/dist/check-syntax-errors.js +8 -0
  988. package/node_modules/@typescript-eslint/typescript-estree/dist/clear-caches.js +3 -0
  989. package/node_modules/@typescript-eslint/typescript-estree/dist/convert-comments.js +1 -0
  990. package/node_modules/@typescript-eslint/typescript-estree/dist/convert.d.ts +1 -1
  991. package/node_modules/@typescript-eslint/typescript-estree/dist/convert.js +12 -2
  992. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/WatchCompilerHostOfConfigFile.js +1 -0
  993. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createIsolatedProgram.js +1 -0
  994. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.js +1 -0
  995. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgramError.js +3 -2
  996. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createSourceFile.js +1 -0
  997. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/describeFilePath.js +1 -0
  998. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getScriptKind.js +2 -0
  999. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getWatchProgramsForProjects.js +14 -6
  1000. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.d.ts +23 -0
  1001. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.js +86 -1
  1002. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/useProvidedPrograms.js +1 -0
  1003. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/validateDefaultProjectForFilesGlob.js +1 -0
  1004. package/node_modules/@typescript-eslint/typescript-estree/dist/createParserServices.js +1 -0
  1005. package/node_modules/@typescript-eslint/typescript-estree/dist/getImportClausePhaseModifier.js +1 -0
  1006. package/node_modules/@typescript-eslint/typescript-estree/dist/getModifiers.js +1 -0
  1007. package/node_modules/@typescript-eslint/typescript-estree/dist/index.js +1 -0
  1008. package/node_modules/@typescript-eslint/typescript-estree/dist/jsx/xhtml-entities.js +1 -0
  1009. package/node_modules/@typescript-eslint/typescript-estree/dist/node-utils.js +48 -2
  1010. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.js +1 -0
  1011. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/candidateTSConfigRootDirs.js +1 -0
  1012. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.js +2 -0
  1013. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/getProjectConfigFiles.js +1 -0
  1014. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/index.js +1 -0
  1015. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/inferSingleRun.js +1 -0
  1016. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/resolveProjectList.js +1 -0
  1017. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.js +1 -0
  1018. package/node_modules/@typescript-eslint/typescript-estree/dist/parser-options.js +1 -0
  1019. package/node_modules/@typescript-eslint/typescript-estree/dist/parser.js +1 -0
  1020. package/node_modules/@typescript-eslint/typescript-estree/dist/semantic-or-syntactic-errors.js +1 -0
  1021. package/node_modules/@typescript-eslint/typescript-estree/dist/simple-traverse.js +1 -0
  1022. package/node_modules/@typescript-eslint/typescript-estree/dist/source-files.js +1 -0
  1023. package/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/estree-to-ts-node-types.js +1 -0
  1024. package/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/index.js +1 -0
  1025. package/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/ts-nodes.js +1 -0
  1026. package/node_modules/@typescript-eslint/typescript-estree/dist/use-at-your-own-risk.js +1 -0
  1027. package/node_modules/@typescript-eslint/typescript-estree/dist/useProgramFromProjectService.js +45 -4
  1028. package/node_modules/@typescript-eslint/typescript-estree/dist/version-check.js +1 -0
  1029. package/node_modules/@typescript-eslint/typescript-estree/dist/version.js +1 -0
  1030. package/node_modules/@typescript-eslint/typescript-estree/dist/withoutProjectParserOptions.js +1 -0
  1031. package/node_modules/@typescript-eslint/typescript-estree/package.json +9 -8
  1032. package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/PatternMatcher.js +1 -0
  1033. package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/ReferenceTracker.js +1 -0
  1034. package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/astUtilities.js +1 -0
  1035. package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/index.js +1 -0
  1036. package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/predicates.js +1 -0
  1037. package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/scopeAnalysis.js +1 -0
  1038. package/node_modules/@typescript-eslint/utils/dist/ast-utils/helpers.js +1 -0
  1039. package/node_modules/@typescript-eslint/utils/dist/ast-utils/index.js +1 -0
  1040. package/node_modules/@typescript-eslint/utils/dist/ast-utils/misc.js +1 -0
  1041. package/node_modules/@typescript-eslint/utils/dist/ast-utils/predicates.js +1 -0
  1042. package/node_modules/@typescript-eslint/utils/dist/eslint-utils/InferTypesFromRule.js +1 -0
  1043. package/node_modules/@typescript-eslint/utils/dist/eslint-utils/RuleCreator.js +2 -0
  1044. package/node_modules/@typescript-eslint/utils/dist/eslint-utils/applyDefault.js +1 -0
  1045. package/node_modules/@typescript-eslint/utils/dist/eslint-utils/deepMerge.js +1 -0
  1046. package/node_modules/@typescript-eslint/utils/dist/eslint-utils/getParserServices.js +1 -0
  1047. package/node_modules/@typescript-eslint/utils/dist/eslint-utils/index.js +1 -0
  1048. package/node_modules/@typescript-eslint/utils/dist/eslint-utils/nullThrows.js +1 -0
  1049. package/node_modules/@typescript-eslint/utils/dist/eslint-utils/parserSeemsToBeTSESLint.js +1 -0
  1050. package/node_modules/@typescript-eslint/utils/dist/index.js +1 -0
  1051. package/node_modules/@typescript-eslint/utils/dist/json-schema.js +1 -0
  1052. package/node_modules/@typescript-eslint/utils/dist/ts-eslint/AST.js +1 -0
  1053. package/node_modules/@typescript-eslint/utils/dist/ts-eslint/Config.js +1 -0
  1054. package/node_modules/@typescript-eslint/utils/dist/ts-eslint/ESLint.js +1 -0
  1055. package/node_modules/@typescript-eslint/utils/dist/ts-eslint/Linter.js +1 -0
  1056. package/node_modules/@typescript-eslint/utils/dist/ts-eslint/Parser.js +1 -0
  1057. package/node_modules/@typescript-eslint/utils/dist/ts-eslint/ParserOptions.js +1 -0
  1058. package/node_modules/@typescript-eslint/utils/dist/ts-eslint/Processor.js +1 -0
  1059. package/node_modules/@typescript-eslint/utils/dist/ts-eslint/Rule.d.ts +17 -0
  1060. package/node_modules/@typescript-eslint/utils/dist/ts-eslint/Rule.js +1 -0
  1061. package/node_modules/@typescript-eslint/utils/dist/ts-eslint/RuleTester.js +1 -0
  1062. package/node_modules/@typescript-eslint/utils/dist/ts-eslint/Scope.js +1 -0
  1063. package/node_modules/@typescript-eslint/utils/dist/ts-eslint/SourceCode.js +1 -0
  1064. package/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/ESLintShared.js +1 -0
  1065. package/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/FlatESLint.js +1 -0
  1066. package/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/LegacyESLint.js +1 -0
  1067. package/node_modules/@typescript-eslint/utils/dist/ts-eslint/index.js +1 -0
  1068. package/node_modules/@typescript-eslint/utils/dist/ts-estree.js +1 -0
  1069. package/node_modules/@typescript-eslint/utils/dist/ts-utils/NoInfer.d.ts +1 -1
  1070. package/node_modules/@typescript-eslint/utils/dist/ts-utils/NoInfer.js +1 -0
  1071. package/node_modules/@typescript-eslint/utils/dist/ts-utils/index.js +1 -0
  1072. package/node_modules/@typescript-eslint/utils/dist/ts-utils/isArray.js +1 -0
  1073. package/node_modules/@typescript-eslint/utils/package.json +7 -6
  1074. package/node_modules/@typescript-eslint/visitor-keys/dist/get-keys.js +1 -0
  1075. package/node_modules/@typescript-eslint/visitor-keys/dist/index.js +1 -0
  1076. package/node_modules/@typescript-eslint/visitor-keys/dist/visitor-keys.js +1 -0
  1077. package/node_modules/@typescript-eslint/visitor-keys/package.json +6 -5
  1078. package/node_modules/dependency-cruiser/node_modules/ignore/LICENSE-MIT +21 -0
  1079. package/node_modules/dependency-cruiser/node_modules/ignore/README.md +452 -0
  1080. package/node_modules/dependency-cruiser/node_modules/ignore/index.d.ts +81 -0
  1081. package/node_modules/dependency-cruiser/node_modules/ignore/index.js +793 -0
  1082. package/node_modules/dependency-cruiser/node_modules/ignore/legacy.js +690 -0
  1083. package/node_modules/dependency-cruiser/node_modules/ignore/package.json +87 -0
  1084. package/node_modules/get-tsconfig/dist/index.cjs +4 -4
  1085. package/node_modules/get-tsconfig/dist/index.mjs +4 -4
  1086. package/node_modules/get-tsconfig/package.json +1 -1
  1087. package/node_modules/ignore/README.md +49 -0
  1088. package/node_modules/ignore/index.js +906 -162
  1089. package/node_modules/ignore/legacy.js +760 -127
  1090. package/node_modules/ignore/package.json +10 -4
  1091. package/node_modules/typescript-eslint/dist/compatibility-types.js +1 -0
  1092. package/node_modules/typescript-eslint/dist/config-helper.js +1 -0
  1093. package/node_modules/typescript-eslint/dist/getTSConfigRootDirFromStack.js +1 -0
  1094. package/node_modules/typescript-eslint/dist/globs.js +1 -0
  1095. package/node_modules/typescript-eslint/dist/index.js +2 -0
  1096. package/node_modules/typescript-eslint/package.json +13 -20
  1097. package/package.json +11 -9
  1098. package/plugins/swarm/README.md +31 -14
  1099. package/plugins/swarm/{skills/scan/SKILL.md → references/scan.md} +6 -13
  1100. package/schema/zedbee.schema.json +12 -0
@@ -0,0 +1,793 @@
1
+ // A simple implementation of make-array
2
+ function makeArray (subject) {
3
+ return Array.isArray(subject)
4
+ ? subject
5
+ : [subject]
6
+ }
7
+
8
+ const UNDEFINED = undefined
9
+ const EMPTY = ''
10
+ const SPACE = ' '
11
+ const ESCAPE = '\\'
12
+ const REGEX_TEST_BLANK_LINE = /^\s+$/
13
+ const REGEX_INVALID_TRAILING_BACKSLASH = /(?:[^\\]|^)\\$/
14
+ const REGEX_REPLACE_LEADING_EXCAPED_EXCLAMATION = /^\\!/
15
+ const REGEX_REPLACE_LEADING_EXCAPED_HASH = /^\\#/
16
+ const REGEX_SPLITALL_CRLF = /\r?\n/g
17
+
18
+ // Invalid:
19
+ // - /foo,
20
+ // - ./foo,
21
+ // - ../foo,
22
+ // - .
23
+ // - ..
24
+ // Valid:
25
+ // - .foo
26
+ const REGEX_TEST_INVALID_PATH = /^\.{0,2}\/|^\.{1,2}$/
27
+
28
+ const REGEX_TEST_TRAILING_SLASH = /\/$/
29
+
30
+ const SLASH = '/'
31
+
32
+ // Do not use ternary expression here, since "istanbul ignore next" is buggy
33
+ let TMP_KEY_IGNORE = 'node-ignore'
34
+ /* istanbul ignore else */
35
+ if (typeof Symbol !== 'undefined') {
36
+ TMP_KEY_IGNORE = Symbol.for('node-ignore')
37
+ }
38
+ const KEY_IGNORE = TMP_KEY_IGNORE
39
+
40
+ const define = (object, key, value) => {
41
+ Object.defineProperty(object, key, {value})
42
+ return value
43
+ }
44
+
45
+ const REGEX_REGEXP_RANGE = /([0-z])-([0-z])/g
46
+
47
+ const RETURN_FALSE = () => false
48
+
49
+ // Sanitize the range of a regular expression
50
+ // The cases are complicated, see test cases for details
51
+ const sanitizeRange = range => range.replace(
52
+ REGEX_REGEXP_RANGE,
53
+ (match, from, to) => from.charCodeAt(0) <= to.charCodeAt(0)
54
+ ? match
55
+ // Invalid range (out of order) which is ok for gitignore rules but
56
+ // fatal for JavaScript regular expression, so eliminate it.
57
+ : EMPTY
58
+ )
59
+
60
+ // > An optional `!` or `^` at the start of a class negates it, so that it
61
+ // > matches any character not in the set. (gitignore(5), fnmatch(3))
62
+ // The leading `^` has already been escaped to `\^` by the metacharacter
63
+ // escaper, so we strip the literal `!` or escaped `^` and emit a single
64
+ // regex `^` which is the JavaScript negation token.
65
+ const negateRange = range => range.startsWith('!') || range.startsWith('\\^')
66
+ ? `^${range.slice(range[0] === '!' ? 1 : 2)}`
67
+ : range
68
+
69
+ // See fixtures #59
70
+ const cleanRangeBackSlash = slashes => {
71
+ const {length} = slashes
72
+ return slashes.slice(0, length - length % 2)
73
+ }
74
+
75
+ // > If the pattern ends with a slash,
76
+ // > it is removed for the purpose of the following description,
77
+ // > but it would only find a match with a directory.
78
+ // > In other words, foo/ will match a directory foo and paths underneath it,
79
+ // > but will not match a regular file or a symbolic link foo
80
+ // > (this is consistent with the way how pathspec works in general in Git).
81
+ // '`foo/`' will not match regular file '`foo`' or symbolic link '`foo`'
82
+ // -> ignore-rules will not deal with it, because it costs extra `fs.stat` call
83
+ // you could use option `mark: true` with `glob`
84
+
85
+ // '`foo/`' should not continue with the '`..`'
86
+ const REPLACERS = [
87
+
88
+ [
89
+ // Remove BOM
90
+ // TODO:
91
+ // Other similar zero-width characters?
92
+ /^\uFEFF/,
93
+ () => EMPTY
94
+ ],
95
+
96
+ // > Trailing spaces are ignored unless they are quoted with backslash ("\")
97
+ [
98
+ // (a\ ) -> (a )
99
+ // (a ) -> (a)
100
+ // (a ) -> (a)
101
+ // (a \ ) -> (a )
102
+ /((?:\\\\)*?)(\\?\s+)$/,
103
+ (_, m1, m2) => m1 + (
104
+ m2.indexOf('\\') === 0
105
+ ? SPACE
106
+ : EMPTY
107
+ )
108
+ ],
109
+
110
+ // Replace (\ ) with ' '
111
+ // (\ ) -> ' '
112
+ // (\\ ) -> '\\ '
113
+ // (\\\ ) -> '\\ '
114
+ [
115
+ /(\\+?)\s/g,
116
+ (_, m1) => {
117
+ const {length} = m1
118
+ return m1.slice(0, length - length % 2) + SPACE
119
+ }
120
+ ],
121
+
122
+ // Escape metacharacters
123
+ // which is written down by users but means special for regular expressions.
124
+
125
+ // > There are 12 characters with special meanings:
126
+ // > - the backslash \,
127
+ // > - the caret ^,
128
+ // > - the dollar sign $,
129
+ // > - the period or dot .,
130
+ // > - the vertical bar or pipe symbol |,
131
+ // > - the question mark ?,
132
+ // > - the asterisk or star *,
133
+ // > - the plus sign +,
134
+ // > - the opening parenthesis (,
135
+ // > - the closing parenthesis ),
136
+ // > - and the opening square bracket [,
137
+ // > - the opening curly brace {,
138
+ // > These special characters are often called "metacharacters".
139
+ [
140
+ /[\\$.|*+(){^]/g,
141
+ match => `\\${match}`
142
+ ],
143
+
144
+ [
145
+ // > a question mark (?) matches a single character
146
+ /(?!\\)\?/g,
147
+ () => '[^/]'
148
+ ],
149
+
150
+ // leading slash
151
+ [
152
+
153
+ // > A leading slash matches the beginning of the pathname.
154
+ // > For example, "/*.c" matches "cat-file.c" but not "mozilla-sha1/sha1.c".
155
+ // A leading slash matches the beginning of the pathname
156
+ /^\//,
157
+ () => '^'
158
+ ],
159
+
160
+ // replace special metacharacter slash after the leading slash
161
+ [
162
+ /\//g,
163
+ () => '\\/'
164
+ ],
165
+
166
+ [
167
+ // > A leading "**" followed by a slash means match in all directories.
168
+ // > For example, "**/foo" matches file or directory "foo" anywhere,
169
+ // > the same as pattern "foo".
170
+ // > "**/foo/bar" matches file or directory "bar" anywhere that is directly
171
+ // > under directory "foo".
172
+ // Notice that the '*'s have been replaced as '\\*'
173
+ /^\^*(?:\\\*\\\*\\\/)+/,
174
+
175
+ // '**/foo' <-> 'foo'
176
+ () => '^(?:.*\\/)?'
177
+ ],
178
+
179
+ // starting
180
+ [
181
+ // there will be no leading '/'
182
+ // (which has been replaced by section "leading slash")
183
+ // If starts with '**', adding a '^' to the regular expression also works
184
+ /^(?=[^^])/,
185
+ function startingReplacer () {
186
+ // If has a slash `/` at the beginning or middle
187
+ return !/\/(?!$)/.test(this)
188
+ // > Prior to 2.22.1
189
+ // > If the pattern does not contain a slash /,
190
+ // > Git treats it as a shell glob pattern
191
+ // Actually, if there is only a trailing slash,
192
+ // git also treats it as a shell glob pattern
193
+
194
+ // After 2.22.1 (compatible but clearer)
195
+ // > If there is a separator at the beginning or middle (or both)
196
+ // > of the pattern, then the pattern is relative to the directory
197
+ // > level of the particular .gitignore file itself.
198
+ // > Otherwise the pattern may also match at any level below
199
+ // > the .gitignore level.
200
+ ? '(?:^|\\/)'
201
+
202
+ // > Otherwise, Git treats the pattern as a shell glob suitable for
203
+ // > consumption by fnmatch(3)
204
+ : '^'
205
+ }
206
+ ],
207
+
208
+ // two globstars
209
+ [
210
+ // Use lookahead assertions so that we could match more than one `'/**'`
211
+ /\\\/\\\*\\\*(?=\\\/|$)/g,
212
+
213
+ // Zero, one or several directories
214
+ // should not use '*', or it will be replaced by the next replacer
215
+
216
+ // Check if it is not the last `'/**'`
217
+ (_, index, str) => index + 6 < str.length
218
+
219
+ // case: /**/
220
+ // > A slash followed by two consecutive asterisks then a slash matches
221
+ // > zero or more directories.
222
+ // > For example, "a/**/b" matches "a/b", "a/x/b", "a/x/y/b" and so on.
223
+ // '/**/'
224
+ ? '(?:\\/[^\\/]+)*'
225
+
226
+ // case: /**
227
+ // > A trailing `"/**"` matches everything inside.
228
+
229
+ // #21: everything inside but it should not include the current folder
230
+ : '\\/.+'
231
+ ],
232
+
233
+ // normal intermediate wildcards
234
+ [
235
+ // Never replace escaped '*'
236
+ // ignore rule '\*' will match the path '*'
237
+
238
+ // 'abc.*/' -> go
239
+ // 'abc.*' -> skip this rule,
240
+ // coz trailing single wildcard will be handed by [trailing wildcard]
241
+ /(^|[^\\]+)(\\\*)+(?=.+)/g,
242
+
243
+ // '*.js' matches '.js'
244
+ // '*.js' doesn't match 'abc'
245
+ (_, p1, p2) => {
246
+ // 1.
247
+ // > An asterisk "*" matches anything except a slash.
248
+ // 2.
249
+ // > Other consecutive asterisks are considered regular asterisks
250
+ // > and will match according to the previous rules.
251
+ const unescaped = p2.replace(/\\\*/g, '[^\\/]*')
252
+ return p1 + unescaped
253
+ }
254
+ ],
255
+
256
+ [
257
+ // unescape, revert step 3 except for back slash
258
+ // For example, if a user escape a '\\*',
259
+ // after step 3, the result will be '\\\\\\*'
260
+ /\\\\\\(?=[$.|*+(){^])/g,
261
+ () => ESCAPE
262
+ ],
263
+
264
+ [
265
+ // '\\\\' -> '\\'
266
+ /\\\\/g,
267
+ () => ESCAPE
268
+ ],
269
+
270
+ [
271
+ // > The range notation, e.g. [a-zA-Z],
272
+ // > can be used to match one of the characters in a range.
273
+
274
+ // `\` is escaped by step 3
275
+ /(\\)?\[([^\]/]*?)(\\*)($|\])/g,
276
+ (match, leadEscape, range, endEscape, close) => leadEscape === ESCAPE
277
+ // '\\[bar]' -> '\\\\[bar\\]'
278
+ ? `\\[${range}${cleanRangeBackSlash(endEscape)}${close}`
279
+ : close === ']'
280
+ ? endEscape.length % 2 === 0
281
+ // A normal case, and it is a range notation
282
+ // '[bar]'
283
+ // '[bar\\\\]'
284
+ ? `[${negateRange(sanitizeRange(range))}${endEscape}]`
285
+ // Invalid range notaton
286
+ // '[bar\\]' -> '[bar\\\\]'
287
+ : '[]'
288
+ : '[]'
289
+ ],
290
+
291
+ // ending
292
+ [
293
+ // 'js' will not match 'js.'
294
+ // 'ab' will not match 'abc'
295
+ /(?:[^*])$/,
296
+
297
+ // WTF!
298
+ // https://git-scm.com/docs/gitignore
299
+ // changes in [2.22.1](https://git-scm.com/docs/gitignore/2.22.1)
300
+ // which re-fixes #24, #38
301
+
302
+ // > If there is a separator at the end of the pattern then the pattern
303
+ // > will only match directories, otherwise the pattern can match both
304
+ // > files and directories.
305
+
306
+ // 'js*' will not match 'a.js'
307
+ // 'js/' will not match 'a.js'
308
+ // 'js' will match 'a.js' and 'a.js/'
309
+ match => /\/$/.test(match)
310
+ // foo/ will not match 'foo'
311
+ ? `${match}$`
312
+ // foo matches 'foo' and 'foo/'
313
+ : `${match}(?=$|\\/$)`
314
+ ]
315
+ ]
316
+
317
+ const REGEX_REPLACE_TRAILING_WILDCARD = /(^|\\\/)?\\\*$/
318
+ const MODE_IGNORE = 'regex'
319
+ const MODE_CHECK_IGNORE = 'checkRegex'
320
+ const UNDERSCORE = '_'
321
+
322
+ const TRAILING_WILD_CARD_REPLACERS = {
323
+ [MODE_IGNORE] (_, p1) {
324
+ const prefix = p1
325
+ // '\^':
326
+ // '/*' does not match EMPTY
327
+ // '/*' does not match everything
328
+
329
+ // '\\\/':
330
+ // 'abc/*' does not match 'abc/'
331
+ ? `${p1}[^/]+`
332
+
333
+ // 'a*' matches 'a'
334
+ // 'a*' matches 'aa'
335
+ : '[^/]*'
336
+
337
+ return `${prefix}(?=$|\\/$)`
338
+ },
339
+
340
+ [MODE_CHECK_IGNORE] (_, p1) {
341
+ // When doing `git check-ignore`
342
+ const prefix = p1
343
+ // '\\\/':
344
+ // 'abc/*' DOES match 'abc/' !
345
+ ? `${p1}[^/]*`
346
+
347
+ // 'a*' matches 'a'
348
+ // 'a*' matches 'aa'
349
+ : '[^/]*'
350
+
351
+ return `${prefix}(?=$|\\/$)`
352
+ }
353
+ }
354
+
355
+ // @param {pattern}
356
+ const makeRegexPrefix = pattern => REPLACERS.reduce(
357
+ (prev, [matcher, replacer]) =>
358
+ prev.replace(matcher, replacer.bind(pattern)),
359
+ pattern
360
+ )
361
+
362
+ const isString = subject => typeof subject === 'string'
363
+
364
+ // > A blank line matches no files, so it can serve as a separator for readability.
365
+ const checkPattern = pattern => pattern
366
+ && isString(pattern)
367
+ && !REGEX_TEST_BLANK_LINE.test(pattern)
368
+ && !REGEX_INVALID_TRAILING_BACKSLASH.test(pattern)
369
+
370
+ // > A line starting with # serves as a comment.
371
+ && pattern.indexOf('#') !== 0
372
+
373
+ const splitPattern = pattern => pattern
374
+ .split(REGEX_SPLITALL_CRLF)
375
+ .filter(Boolean)
376
+
377
+ class IgnoreRule {
378
+ constructor (
379
+ pattern,
380
+ mark,
381
+ body,
382
+ ignoreCase,
383
+ negative,
384
+ prefix
385
+ ) {
386
+ this.pattern = pattern
387
+ this.mark = mark
388
+ this.negative = negative
389
+
390
+ define(this, 'body', body)
391
+ define(this, 'ignoreCase', ignoreCase)
392
+ define(this, 'regexPrefix', prefix)
393
+ }
394
+
395
+ get regex () {
396
+ const key = UNDERSCORE + MODE_IGNORE
397
+
398
+ if (this[key]) {
399
+ return this[key]
400
+ }
401
+
402
+ return this._make(MODE_IGNORE, key)
403
+ }
404
+
405
+ get checkRegex () {
406
+ const key = UNDERSCORE + MODE_CHECK_IGNORE
407
+
408
+ if (this[key]) {
409
+ return this[key]
410
+ }
411
+
412
+ return this._make(MODE_CHECK_IGNORE, key)
413
+ }
414
+
415
+ _make (mode, key) {
416
+ const str = this.regexPrefix.replace(
417
+ REGEX_REPLACE_TRAILING_WILDCARD,
418
+
419
+ // It does not need to bind pattern
420
+ TRAILING_WILD_CARD_REPLACERS[mode]
421
+ )
422
+
423
+ const regex = this.ignoreCase
424
+ ? new RegExp(str, 'i')
425
+ : new RegExp(str)
426
+
427
+ return define(this, key, regex)
428
+ }
429
+ }
430
+
431
+ const createRule = ({
432
+ pattern,
433
+ mark
434
+ }, ignoreCase) => {
435
+ let negative = false
436
+ let body = pattern
437
+
438
+ // > An optional prefix "!" which negates the pattern;
439
+ if (body.indexOf('!') === 0) {
440
+ negative = true
441
+ body = body.substr(1)
442
+ }
443
+
444
+ body = body
445
+ // > Put a backslash ("\") in front of the first "!" for patterns that
446
+ // > begin with a literal "!", for example, `"\!important!.txt"`.
447
+ .replace(REGEX_REPLACE_LEADING_EXCAPED_EXCLAMATION, '!')
448
+ // > Put a backslash ("\") in front of the first hash for patterns that
449
+ // > begin with a hash.
450
+ .replace(REGEX_REPLACE_LEADING_EXCAPED_HASH, '#')
451
+
452
+ const regexPrefix = makeRegexPrefix(body)
453
+
454
+ return new IgnoreRule(
455
+ pattern,
456
+ mark,
457
+ body,
458
+ ignoreCase,
459
+ negative,
460
+ regexPrefix
461
+ )
462
+ }
463
+
464
+ class RuleManager {
465
+ constructor (ignoreCase) {
466
+ this._ignoreCase = ignoreCase
467
+ this._rules = []
468
+ }
469
+
470
+ _add (pattern) {
471
+ // #32
472
+ if (pattern && pattern[KEY_IGNORE]) {
473
+ this._rules = this._rules.concat(pattern._rules._rules)
474
+ this._added = true
475
+ return
476
+ }
477
+
478
+ if (isString(pattern)) {
479
+ pattern = {
480
+ pattern
481
+ }
482
+ }
483
+
484
+ if (checkPattern(pattern.pattern)) {
485
+ const rule = createRule(pattern, this._ignoreCase)
486
+ this._added = true
487
+ this._rules.push(rule)
488
+ }
489
+ }
490
+
491
+ // @param {Array<string> | string | Ignore} pattern
492
+ add (pattern) {
493
+ this._added = false
494
+
495
+ makeArray(
496
+ isString(pattern)
497
+ ? splitPattern(pattern)
498
+ : pattern
499
+ ).forEach(this._add, this)
500
+
501
+ return this._added
502
+ }
503
+
504
+ // Test one single path without recursively checking parent directories
505
+ //
506
+ // - checkUnignored `boolean` whether should check if the path is unignored,
507
+ // setting `checkUnignored` to `false` could reduce additional
508
+ // path matching.
509
+ // - check `string` either `MODE_IGNORE` or `MODE_CHECK_IGNORE`
510
+
511
+ // @returns {TestResult} true if a file is ignored
512
+ test (path, checkUnignored, mode) {
513
+ let ignored = false
514
+ let unignored = false
515
+ let matchedRule
516
+
517
+ this._rules.forEach(rule => {
518
+ const {negative} = rule
519
+
520
+ // | ignored : unignored
521
+ // -------- | ---------------------------------------
522
+ // negative | 0:0 | 0:1 | 1:0 | 1:1
523
+ // -------- | ------- | ------- | ------- | --------
524
+ // 0 | TEST | TEST | SKIP | X
525
+ // 1 | TESTIF | SKIP | TEST | X
526
+
527
+ // - SKIP: always skip
528
+ // - TEST: always test
529
+ // - TESTIF: only test if checkUnignored
530
+ // - X: that never happen
531
+ if (
532
+ unignored === negative && ignored !== unignored
533
+ || negative && !ignored && !unignored && !checkUnignored
534
+ ) {
535
+ return
536
+ }
537
+
538
+ const matched = rule[mode].test(path)
539
+
540
+ if (!matched) {
541
+ return
542
+ }
543
+
544
+ ignored = !negative
545
+ unignored = negative
546
+
547
+ matchedRule = negative
548
+ ? UNDEFINED
549
+ : rule
550
+ })
551
+
552
+ const ret = {
553
+ ignored,
554
+ unignored
555
+ }
556
+
557
+ if (matchedRule) {
558
+ ret.rule = matchedRule
559
+ }
560
+
561
+ return ret
562
+ }
563
+ }
564
+
565
+ const throwError = (message, Ctor) => {
566
+ throw new Ctor(message)
567
+ }
568
+
569
+ const checkPath = (path, originalPath, doThrow) => {
570
+ if (!isString(path)) {
571
+ return doThrow(
572
+ `path must be a string, but got \`${originalPath}\``,
573
+ TypeError
574
+ )
575
+ }
576
+
577
+ // We don't know if we should ignore EMPTY, so throw
578
+ if (!path) {
579
+ return doThrow(`path must not be empty`, TypeError)
580
+ }
581
+
582
+ // Check if it is a relative path
583
+ if (checkPath.isNotRelative(path)) {
584
+ const r = '`path.relative()`d'
585
+ return doThrow(
586
+ `path should be a ${r} string, but got "${originalPath}"`,
587
+ RangeError
588
+ )
589
+ }
590
+
591
+ return true
592
+ }
593
+
594
+ const isNotRelative = path => REGEX_TEST_INVALID_PATH.test(path)
595
+
596
+ checkPath.isNotRelative = isNotRelative
597
+
598
+ // On windows, the following function will be replaced
599
+ /* istanbul ignore next */
600
+ checkPath.convert = p => p
601
+
602
+
603
+ class Ignore {
604
+ constructor ({
605
+ ignorecase = true,
606
+ ignoreCase = ignorecase,
607
+ allowRelativePaths = false
608
+ } = {}) {
609
+ define(this, KEY_IGNORE, true)
610
+
611
+ this._rules = new RuleManager(ignoreCase)
612
+ this._strictPathCheck = !allowRelativePaths
613
+ this._initCache()
614
+ }
615
+
616
+ _initCache () {
617
+ // A cache for the result of `.ignores()`
618
+ this._ignoreCache = Object.create(null)
619
+
620
+ // A cache for the result of `.test()`
621
+ this._testCache = Object.create(null)
622
+ }
623
+
624
+ add (pattern) {
625
+ if (this._rules.add(pattern)) {
626
+ // Some rules have just added to the ignore,
627
+ // making the behavior changed,
628
+ // so we need to re-initialize the result cache
629
+ this._initCache()
630
+ }
631
+
632
+ return this
633
+ }
634
+
635
+ // legacy
636
+ addPattern (pattern) {
637
+ return this.add(pattern)
638
+ }
639
+
640
+ // @returns {TestResult}
641
+ _test (originalPath, cache, checkUnignored, slices) {
642
+ const path = originalPath
643
+ // Supports nullable path
644
+ && checkPath.convert(originalPath)
645
+
646
+ checkPath(
647
+ path,
648
+ originalPath,
649
+ this._strictPathCheck
650
+ ? throwError
651
+ : RETURN_FALSE
652
+ )
653
+
654
+ return this._t(path, cache, checkUnignored, slices)
655
+ }
656
+
657
+ checkIgnore (path) {
658
+ // If the path doest not end with a slash, `.ignores()` is much equivalent
659
+ // to `git check-ignore`
660
+ if (!REGEX_TEST_TRAILING_SLASH.test(path)) {
661
+ return this.test(path)
662
+ }
663
+
664
+ const slices = path.split(SLASH).filter(Boolean)
665
+ slices.pop()
666
+
667
+ if (slices.length) {
668
+ const parent = this._t(
669
+ slices.join(SLASH) + SLASH,
670
+ this._testCache,
671
+ true,
672
+ slices
673
+ )
674
+
675
+ if (parent.ignored) {
676
+ return parent
677
+ }
678
+ }
679
+
680
+ return this._rules.test(path, false, MODE_CHECK_IGNORE)
681
+ }
682
+
683
+ _t (
684
+ // The path to be tested
685
+ path,
686
+
687
+ // The cache for the result of a certain checking
688
+ cache,
689
+
690
+ // Whether should check if the path is unignored
691
+ checkUnignored,
692
+
693
+ // The path slices
694
+ slices
695
+ ) {
696
+ if (path in cache) {
697
+ return cache[path]
698
+ }
699
+
700
+ if (!slices) {
701
+ // path/to/a.js
702
+ // ['path', 'to', 'a.js']
703
+ slices = path.split(SLASH).filter(Boolean)
704
+ }
705
+
706
+ slices.pop()
707
+
708
+ // If the path has no parent directory, just test it
709
+ if (!slices.length) {
710
+ return cache[path] = this._rules.test(path, checkUnignored, MODE_IGNORE)
711
+ }
712
+
713
+ const parent = this._t(
714
+ slices.join(SLASH) + SLASH,
715
+ cache,
716
+ checkUnignored,
717
+ slices
718
+ )
719
+
720
+ // If the path contains a parent directory, check the parent first
721
+ return cache[path] = parent.ignored
722
+ // > It is not possible to re-include a file if a parent directory of
723
+ // > that file is excluded.
724
+ ? parent
725
+ : this._rules.test(path, checkUnignored, MODE_IGNORE)
726
+ }
727
+
728
+ ignores (path) {
729
+ return this._test(path, this._ignoreCache, false).ignored
730
+ }
731
+
732
+ createFilter () {
733
+ return path => !this.ignores(path)
734
+ }
735
+
736
+ filter (paths) {
737
+ return makeArray(paths).filter(this.createFilter())
738
+ }
739
+
740
+ // @returns {TestResult}
741
+ test (path) {
742
+ return this._test(path, this._testCache, true)
743
+ }
744
+ }
745
+
746
+ const factory = options => new Ignore(options)
747
+
748
+ const isPathValid = path =>
749
+ checkPath(path && checkPath.convert(path), path, RETURN_FALSE)
750
+
751
+ /* istanbul ignore next */
752
+ const setupWindows = () => {
753
+ /* eslint no-control-regex: "off" */
754
+ const makePosix = str => /^\\\\\?\\/.test(str)
755
+ || /["<>|\u0000-\u001F]+/u.test(str)
756
+ ? str
757
+ : str.replace(/\\/g, '/')
758
+
759
+ checkPath.convert = makePosix
760
+
761
+ // 'C:\\foo' <- 'C:\\foo' has been converted to 'C:/'
762
+ // 'd:\\foo'
763
+ const REGEX_TEST_WINDOWS_PATH_ABSOLUTE = /^[a-z]:\//i
764
+ checkPath.isNotRelative = path =>
765
+ REGEX_TEST_WINDOWS_PATH_ABSOLUTE.test(path)
766
+ || isNotRelative(path)
767
+ }
768
+
769
+
770
+ // Windows
771
+ // --------------------------------------------------------------
772
+ /* istanbul ignore next */
773
+ if (
774
+ // Detect `process` so that it can run in browsers.
775
+ typeof process !== 'undefined'
776
+ && process.platform === 'win32'
777
+ ) {
778
+ setupWindows()
779
+ }
780
+
781
+ // COMMONJS_EXPORTS ////////////////////////////////////////////////////////////
782
+
783
+ module.exports = factory
784
+
785
+ // Although it is an anti-pattern,
786
+ // it is still widely misused by a lot of libraries in github
787
+ // Ref: https://github.com/search?q=ignore.default%28%29&type=code
788
+ factory.default = factory
789
+
790
+ module.exports.isPathValid = isPathValid
791
+
792
+ // For testing purposes
793
+ define(module.exports, Symbol.for('setupWindows'), setupWindows)