renovate-log-parser 0.1.1 → 0.2.0

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 (343) hide show
  1. package/README.md +119 -34
  2. package/dist/commands/install-analyze-skill.d.ts +0 -1
  3. package/dist/commands/install-analyze-skill.js +15 -12
  4. package/dist/commands/install-analyze-skill.js.map +1 -1
  5. package/dist/commands/web.d.ts +2 -1
  6. package/dist/commands/web.js +23 -11
  7. package/dist/commands/web.js.map +1 -1
  8. package/dist/core/skill-template.js +17 -3
  9. package/dist/core/skill-template.js.map +1 -1
  10. package/dist/server/api.d.ts +16 -0
  11. package/dist/server/api.js +173 -0
  12. package/dist/server/api.js.map +1 -0
  13. package/dist/server/http-error.d.ts +18 -0
  14. package/dist/server/http-error.js +23 -0
  15. package/dist/server/http-error.js.map +1 -0
  16. package/dist/server/index.d.ts +34 -0
  17. package/dist/server/index.js +54 -0
  18. package/dist/server/index.js.map +1 -0
  19. package/dist/server/log-registry.d.ts +34 -0
  20. package/dist/server/log-registry.js +157 -0
  21. package/dist/server/log-registry.js.map +1 -0
  22. package/dist/server/server-main.d.ts +1 -0
  23. package/dist/server/server-main.js +31 -0
  24. package/dist/server/server-main.js.map +1 -0
  25. package/dist/server/translate-filters.d.ts +58 -0
  26. package/dist/server/translate-filters.js +119 -0
  27. package/dist/server/translate-filters.js.map +1 -0
  28. package/package.json +13 -5
  29. package/web/.output/public/200.html +1 -0
  30. package/web/.output/public/404.html +1 -0
  31. package/web/.output/public/_nuxt/BDNMzG2s.js +1 -0
  32. package/web/.output/public/_nuxt/BjDV6v2h.js +1 -0
  33. package/web/.output/public/_nuxt/CVlqYHPc.js +6 -0
  34. package/web/.output/public/_nuxt/CuOsDQlp.js +1 -0
  35. package/web/.output/public/_nuxt/CztOM3Aq.js +28 -0
  36. package/web/.output/public/_nuxt/D3wuHpM_.js +3 -0
  37. package/web/.output/public/_nuxt/DK3Fl9T5.js +1 -0
  38. package/web/.output/public/_nuxt/DUXEQ2Eh.js +3 -0
  39. package/web/.output/public/_nuxt/DVWtRbHb.js +1 -0
  40. package/web/.output/public/_nuxt/DeS15jQo.js +1 -0
  41. package/web/.output/public/_nuxt/XP9RigIT.js +1 -0
  42. package/web/.output/public/_nuxt/builds/latest.json +1 -1
  43. package/web/.output/public/_nuxt/builds/meta/f68582c9-55a9-4352-b85a-d7f8de6f7202.json +1 -0
  44. package/web/.output/public/_nuxt/entry.BlZrUrUl.css +2 -0
  45. package/web/.output/public/_nuxt/error-404.zKZBzOko.css +1 -0
  46. package/web/.output/public/_nuxt/error-500.DwXcJPfY.css +1 -0
  47. package/web/.output/public/_nuxt/lGYp6_9X.js +1 -0
  48. package/web/.output/public/_nuxt/pages.BDcbBSnU.css +1 -0
  49. package/web/.output/public/_nuxt/public-sans-latin-400-italic.B1appi_f.woff2 +0 -0
  50. package/web/.output/public/_nuxt/public-sans-latin-400-italic.DsCWG5h0.woff +0 -0
  51. package/web/.output/public/_nuxt/public-sans-latin-400-normal.8Rpg0ruU.woff2 +0 -0
  52. package/web/.output/public/_nuxt/public-sans-latin-400-normal.SBbinRkI.woff +0 -0
  53. package/web/.output/public/_nuxt/public-sans-latin-500-normal.NlrCPXnF.woff2 +0 -0
  54. package/web/.output/public/_nuxt/public-sans-latin-500-normal.vCxiVFAq.woff +0 -0
  55. package/web/.output/public/_nuxt/public-sans-latin-600-normal.BR59oU-I.woff +0 -0
  56. package/web/.output/public/_nuxt/public-sans-latin-600-normal.Fru-LXNs.woff2 +0 -0
  57. package/web/.output/public/_nuxt/public-sans-latin-700-normal.BqJmxWdE.woff2 +0 -0
  58. package/web/.output/public/_nuxt/public-sans-latin-700-normal.Dm-oTPSL.woff +0 -0
  59. package/web/.output/public/favicon-dark.svg +32 -0
  60. package/web/.output/public/favicon-light.svg +32 -0
  61. package/web/.output/public/index.html +1 -0
  62. package/web/.output/nitro.json +0 -15
  63. package/web/.output/public/_fonts/57NSSoFy1VLVs2gqly8Ls9awBnZMFyXGrefpmqvdqmc-zJfbBtpgM4cDmcXBsqZNW79_kFnlpPd62b48glgdydA.woff2 +0 -0
  64. package/web/.output/public/_fonts/8VR2wSMN-3U4NbWAVYXlkRV6hA0jFBXP-0RtL3X7fko-x2gYI4qfmkRdxyQQUPaBZdZdgl1TeVrquF_TxHeM4lM.woff2 +0 -0
  65. package/web/.output/public/_fonts/GsKUclqeNLJ96g5AU593ug6yanivOiwjW_7zESNPChw-jHA4tBeM1bjF7LATGUpfBuSTyomIFrWBTzjF7txVYfg.woff2 +0 -0
  66. package/web/.output/public/_fonts/Ld1FnTo3yTIwDyGfTQ5-Fws9AWsCbKfMvgxduXr7JcY-W25bL8NF1fjpLRSOgJb7RoZPHqGQNwMTM7S9tHVoxx8.woff2 +0 -0
  67. package/web/.output/public/_fonts/NdzqRASp2bovDUhQT1IRE_EMqKJ2KYQdTCfFcBvL8yw-KhwZiS86o3fErOe5GGMExHUemmI_dBfaEFxjISZrBd0.woff2 +0 -0
  68. package/web/.output/public/_fonts/iTkrULNFJJkTvihIg1Vqi5IODRH_9btXCioVF5l98I8-AndUyau2HR2felA_ra8V2mutQgschhasE5FD1dXGJX8.woff2 +0 -0
  69. package/web/.output/public/_nuxt/BWja8e3M.js +0 -37
  70. package/web/.output/public/_nuxt/BgApMHS1.js +0 -1
  71. package/web/.output/public/_nuxt/CGPWRqbc.js +0 -1
  72. package/web/.output/public/_nuxt/DlAUqK2U.js +0 -1
  73. package/web/.output/public/_nuxt/Sgtec1U0.js +0 -1
  74. package/web/.output/public/_nuxt/builds/meta/785e7885-8d38-4aac-a7f6-735f68d27e63.json +0 -1
  75. package/web/.output/public/_nuxt/entry.9mB-pyEY.css +0 -1
  76. package/web/.output/public/_nuxt/error-404.B_PvSG-P.css +0 -1
  77. package/web/.output/public/_nuxt/error-500.CghkKCEr.css +0 -1
  78. package/web/.output/public/_nuxt/index.BlvAG7F6.css +0 -1
  79. package/web/.output/public/favicon.ico +0 -0
  80. package/web/.output/server/chunks/_/error-500.mjs +0 -19
  81. package/web/.output/server/chunks/_/error-500.mjs.map +0 -1
  82. package/web/.output/server/chunks/_/icons.mjs +0 -6153
  83. package/web/.output/server/chunks/_/icons.mjs.map +0 -1
  84. package/web/.output/server/chunks/_/icons2.mjs +0 -11494
  85. package/web/.output/server/chunks/_/icons2.mjs.map +0 -1
  86. package/web/.output/server/chunks/build/_plugin-vue_export-helper-1tPrXgE0.mjs +0 -10
  87. package/web/.output/server/chunks/build/_plugin-vue_export-helper-1tPrXgE0.mjs.map +0 -1
  88. package/web/.output/server/chunks/build/client.precomputed.mjs +0 -4
  89. package/web/.output/server/chunks/build/client.precomputed.mjs.map +0 -1
  90. package/web/.output/server/chunks/build/error-404-DOK13euR.mjs +0 -106
  91. package/web/.output/server/chunks/build/error-404-DOK13euR.mjs.map +0 -1
  92. package/web/.output/server/chunks/build/error-404-styles.9cNA4arh.mjs +0 -8
  93. package/web/.output/server/chunks/build/error-404-styles.9cNA4arh.mjs.map +0 -1
  94. package/web/.output/server/chunks/build/error-500-DKHEaocY.mjs +0 -89
  95. package/web/.output/server/chunks/build/error-500-DKHEaocY.mjs.map +0 -1
  96. package/web/.output/server/chunks/build/error-500-styles.BX54ZlkH.mjs +0 -8
  97. package/web/.output/server/chunks/build/error-500-styles.BX54ZlkH.mjs.map +0 -1
  98. package/web/.output/server/chunks/build/index-D_lNB6LA.mjs +0 -19675
  99. package/web/.output/server/chunks/build/index-D_lNB6LA.mjs.map +0 -1
  100. package/web/.output/server/chunks/build/index-styles.V2iua2bE.mjs +0 -8
  101. package/web/.output/server/chunks/build/index-styles.V2iua2bE.mjs.map +0 -1
  102. package/web/.output/server/chunks/build/server.mjs +0 -7910
  103. package/web/.output/server/chunks/build/server.mjs.map +0 -1
  104. package/web/.output/server/chunks/build/styles.mjs +0 -10
  105. package/web/.output/server/chunks/build/styles.mjs.map +0 -1
  106. package/web/.output/server/chunks/nitro/nitro.mjs +0 -6944
  107. package/web/.output/server/chunks/nitro/nitro.mjs.map +0 -1
  108. package/web/.output/server/chunks/routes/api/fields.get.mjs +0 -27
  109. package/web/.output/server/chunks/routes/api/fields.get.mjs.map +0 -1
  110. package/web/.output/server/chunks/routes/api/findings.get.mjs +0 -30
  111. package/web/.output/server/chunks/routes/api/findings.get.mjs.map +0 -1
  112. package/web/.output/server/chunks/routes/api/log/contents.post.mjs +0 -29
  113. package/web/.output/server/chunks/routes/api/log/contents.post.mjs.map +0 -1
  114. package/web/.output/server/chunks/routes/api/log/path.post.mjs +0 -30
  115. package/web/.output/server/chunks/routes/api/log/path.post.mjs.map +0 -1
  116. package/web/.output/server/chunks/routes/api/repositories.get.mjs +0 -27
  117. package/web/.output/server/chunks/routes/api/repositories.get.mjs.map +0 -1
  118. package/web/.output/server/chunks/routes/api/rows.get.mjs +0 -48
  119. package/web/.output/server/chunks/routes/api/rows.get.mjs.map +0 -1
  120. package/web/.output/server/chunks/routes/renderer.mjs +0 -451
  121. package/web/.output/server/chunks/routes/renderer.mjs.map +0 -1
  122. package/web/.output/server/chunks/virtual/_virtual_spa-template.mjs +0 -4
  123. package/web/.output/server/chunks/virtual/_virtual_spa-template.mjs.map +0 -1
  124. package/web/.output/server/index.mjs +0 -16
  125. package/web/.output/server/index.mjs.map +0 -1
  126. package/web/.output/server/node_modules/.nitro/hookable@5.5.3/dist/index.mjs +0 -290
  127. package/web/.output/server/node_modules/.nitro/hookable@5.5.3/package.json +0 -49
  128. package/web/.output/server/node_modules/.nitro/hookable@6.1.1/dist/index.mjs +0 -257
  129. package/web/.output/server/node_modules/.nitro/hookable@6.1.1/package.json +0 -53
  130. package/web/.output/server/node_modules/@babel/parser/lib/index.js +0 -14599
  131. package/web/.output/server/node_modules/@babel/parser/package.json +0 -50
  132. package/web/.output/server/node_modules/@floating-ui/core/dist/floating-ui.core.mjs +0 -1038
  133. package/web/.output/server/node_modules/@floating-ui/core/package.json +0 -63
  134. package/web/.output/server/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs +0 -789
  135. package/web/.output/server/node_modules/@floating-ui/dom/package.json +0 -72
  136. package/web/.output/server/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs +0 -165
  137. package/web/.output/server/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs +0 -136
  138. package/web/.output/server/node_modules/@floating-ui/utils/package.json +0 -70
  139. package/web/.output/server/node_modules/@floating-ui/vue/dist/floating-ui.vue.mjs +0 -190
  140. package/web/.output/server/node_modules/@floating-ui/vue/package.json +0 -71
  141. package/web/.output/server/node_modules/@iconify/utils/lib/colors/index.js +0 -295
  142. package/web/.output/server/node_modules/@iconify/utils/lib/colors/keywords.js +0 -701
  143. package/web/.output/server/node_modules/@iconify/utils/lib/css/common.js +0 -75
  144. package/web/.output/server/node_modules/@iconify/utils/lib/css/format.js +0 -39
  145. package/web/.output/server/node_modules/@iconify/utils/lib/css/icon.js +0 -47
  146. package/web/.output/server/node_modules/@iconify/utils/lib/css/icons.js +0 -128
  147. package/web/.output/server/node_modules/@iconify/utils/lib/customisations/bool.js +0 -19
  148. package/web/.output/server/node_modules/@iconify/utils/lib/customisations/defaults.js +0 -13
  149. package/web/.output/server/node_modules/@iconify/utils/lib/customisations/flip.js +0 -17
  150. package/web/.output/server/node_modules/@iconify/utils/lib/customisations/merge.js +0 -16
  151. package/web/.output/server/node_modules/@iconify/utils/lib/customisations/rotate.js +0 -30
  152. package/web/.output/server/node_modules/@iconify/utils/lib/emoji/cleanup.js +0 -78
  153. package/web/.output/server/node_modules/@iconify/utils/lib/emoji/convert.js +0 -100
  154. package/web/.output/server/node_modules/@iconify/utils/lib/emoji/data.js +0 -28
  155. package/web/.output/server/node_modules/@iconify/utils/lib/emoji/format.js +0 -58
  156. package/web/.output/server/node_modules/@iconify/utils/lib/emoji/parse.js +0 -48
  157. package/web/.output/server/node_modules/@iconify/utils/lib/emoji/regex/base.js +0 -203
  158. package/web/.output/server/node_modules/@iconify/utils/lib/emoji/regex/create.js +0 -33
  159. package/web/.output/server/node_modules/@iconify/utils/lib/emoji/regex/numbers.js +0 -132
  160. package/web/.output/server/node_modules/@iconify/utils/lib/emoji/regex/similar.js +0 -165
  161. package/web/.output/server/node_modules/@iconify/utils/lib/emoji/regex/tree.js +0 -79
  162. package/web/.output/server/node_modules/@iconify/utils/lib/emoji/replace/find.js +0 -92
  163. package/web/.output/server/node_modules/@iconify/utils/lib/emoji/replace/replace.js +0 -26
  164. package/web/.output/server/node_modules/@iconify/utils/lib/emoji/test/components.js +0 -76
  165. package/web/.output/server/node_modules/@iconify/utils/lib/emoji/test/missing.js +0 -66
  166. package/web/.output/server/node_modules/@iconify/utils/lib/emoji/test/name.js +0 -45
  167. package/web/.output/server/node_modules/@iconify/utils/lib/emoji/test/parse.js +0 -103
  168. package/web/.output/server/node_modules/@iconify/utils/lib/emoji/test/similar.js +0 -36
  169. package/web/.output/server/node_modules/@iconify/utils/lib/emoji/test/tree.js +0 -92
  170. package/web/.output/server/node_modules/@iconify/utils/lib/emoji/test/variations.js +0 -62
  171. package/web/.output/server/node_modules/@iconify/utils/lib/icon/defaults.js +0 -25
  172. package/web/.output/server/node_modules/@iconify/utils/lib/icon/merge.js +0 -16
  173. package/web/.output/server/node_modules/@iconify/utils/lib/icon/name.js +0 -57
  174. package/web/.output/server/node_modules/@iconify/utils/lib/icon/square.js +0 -33
  175. package/web/.output/server/node_modules/@iconify/utils/lib/icon/transformations.js +0 -12
  176. package/web/.output/server/node_modules/@iconify/utils/lib/icon-set/convert-info.js +0 -125
  177. package/web/.output/server/node_modules/@iconify/utils/lib/icon-set/expand.js +0 -19
  178. package/web/.output/server/node_modules/@iconify/utils/lib/icon-set/get-icon.js +0 -25
  179. package/web/.output/server/node_modules/@iconify/utils/lib/icon-set/get-icons.js +0 -36
  180. package/web/.output/server/node_modules/@iconify/utils/lib/icon-set/minify.js +0 -91
  181. package/web/.output/server/node_modules/@iconify/utils/lib/icon-set/parse.js +0 -46
  182. package/web/.output/server/node_modules/@iconify/utils/lib/icon-set/tree.js +0 -23
  183. package/web/.output/server/node_modules/@iconify/utils/lib/icon-set/validate-basic.js +0 -42
  184. package/web/.output/server/node_modules/@iconify/utils/lib/icon-set/validate.js +0 -123
  185. package/web/.output/server/node_modules/@iconify/utils/lib/index.js +0 -52
  186. package/web/.output/server/node_modules/@iconify/utils/lib/loader/custom.js +0 -30
  187. package/web/.output/server/node_modules/@iconify/utils/lib/loader/loader.js +0 -26
  188. package/web/.output/server/node_modules/@iconify/utils/lib/loader/modern.js +0 -27
  189. package/web/.output/server/node_modules/@iconify/utils/lib/loader/utils.js +0 -105
  190. package/web/.output/server/node_modules/@iconify/utils/lib/misc/objects.js +0 -26
  191. package/web/.output/server/node_modules/@iconify/utils/lib/misc/strings.js +0 -26
  192. package/web/.output/server/node_modules/@iconify/utils/lib/misc/title.js +0 -9
  193. package/web/.output/server/node_modules/@iconify/utils/lib/svg/build.js +0 -113
  194. package/web/.output/server/node_modules/@iconify/utils/lib/svg/defs.js +0 -31
  195. package/web/.output/server/node_modules/@iconify/utils/lib/svg/encode-svg-for-css.js +0 -13
  196. package/web/.output/server/node_modules/@iconify/utils/lib/svg/html.js +0 -9
  197. package/web/.output/server/node_modules/@iconify/utils/lib/svg/id.js +0 -41
  198. package/web/.output/server/node_modules/@iconify/utils/lib/svg/inner-html.js +0 -22
  199. package/web/.output/server/node_modules/@iconify/utils/lib/svg/parse.js +0 -67
  200. package/web/.output/server/node_modules/@iconify/utils/lib/svg/pretty.js +0 -54
  201. package/web/.output/server/node_modules/@iconify/utils/lib/svg/size.js +0 -27
  202. package/web/.output/server/node_modules/@iconify/utils/lib/svg/trim.js +0 -7
  203. package/web/.output/server/node_modules/@iconify/utils/lib/svg/url.js +0 -22
  204. package/web/.output/server/node_modules/@iconify/utils/lib/svg/viewbox.js +0 -8
  205. package/web/.output/server/node_modules/@iconify/utils/package.json +0 -119
  206. package/web/.output/server/node_modules/@iconify/vue/dist/iconify.mjs +0 -1896
  207. package/web/.output/server/node_modules/@iconify/vue/package.json +0 -62
  208. package/web/.output/server/node_modules/@tanstack/virtual-core/dist/esm/index.js +0 -1268
  209. package/web/.output/server/node_modules/@tanstack/virtual-core/dist/esm/lazy-measurements.js +0 -34
  210. package/web/.output/server/node_modules/@tanstack/virtual-core/dist/esm/utils.js +0 -74
  211. package/web/.output/server/node_modules/@tanstack/virtual-core/package.json +0 -56
  212. package/web/.output/server/node_modules/@tanstack/vue-virtual/dist/esm/index.js +0 -66
  213. package/web/.output/server/node_modules/@tanstack/vue-virtual/package.json +0 -68
  214. package/web/.output/server/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js +0 -6759
  215. package/web/.output/server/node_modules/@vue/compiler-core/package.json +0 -58
  216. package/web/.output/server/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.js +0 -689
  217. package/web/.output/server/node_modules/@vue/compiler-dom/package.json +0 -57
  218. package/web/.output/server/node_modules/@vue/compiler-ssr/dist/compiler-ssr.cjs.js +0 -1413
  219. package/web/.output/server/node_modules/@vue/compiler-ssr/package.json +0 -34
  220. package/web/.output/server/node_modules/@vue/devtools-api/dist/index.js +0 -2
  221. package/web/.output/server/node_modules/@vue/devtools-api/package.json +0 -34
  222. package/web/.output/server/node_modules/@vue/devtools-kit/dist/index.js +0 -5670
  223. package/web/.output/server/node_modules/@vue/devtools-kit/node_modules/hookable/dist/index.mjs +0 -290
  224. package/web/.output/server/node_modules/@vue/devtools-kit/node_modules/hookable/package.json +0 -49
  225. package/web/.output/server/node_modules/@vue/devtools-kit/package.json +0 -44
  226. package/web/.output/server/node_modules/@vue/devtools-shared/dist/index.js +0 -239
  227. package/web/.output/server/node_modules/@vue/devtools-shared/package.json +0 -33
  228. package/web/.output/server/node_modules/@vue/reactivity/dist/reactivity.cjs.prod.js +0 -1899
  229. package/web/.output/server/node_modules/@vue/reactivity/package.json +0 -55
  230. package/web/.output/server/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js +0 -6940
  231. package/web/.output/server/node_modules/@vue/runtime-core/package.json +0 -52
  232. package/web/.output/server/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.prod.js +0 -1822
  233. package/web/.output/server/node_modules/@vue/runtime-dom/package.json +0 -60
  234. package/web/.output/server/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js +0 -896
  235. package/web/.output/server/node_modules/@vue/server-renderer/package.json +0 -55
  236. package/web/.output/server/node_modules/@vue/shared/dist/shared.cjs.prod.js +0 -604
  237. package/web/.output/server/node_modules/@vue/shared/package.json +0 -47
  238. package/web/.output/server/node_modules/@vueuse/core/dist/index.js +0 -8464
  239. package/web/.output/server/node_modules/@vueuse/core/package.json +0 -49
  240. package/web/.output/server/node_modules/@vueuse/shared/dist/index.js +0 -2013
  241. package/web/.output/server/node_modules/@vueuse/shared/package.json +0 -42
  242. package/web/.output/server/node_modules/aria-hidden/dist/es5/index.js +0 -174
  243. package/web/.output/server/node_modules/aria-hidden/package.json +0 -71
  244. package/web/.output/server/node_modules/birpc/dist/index.mjs +0 -291
  245. package/web/.output/server/node_modules/birpc/package.json +0 -57
  246. package/web/.output/server/node_modules/consola/dist/chunks/prompt.mjs +0 -280
  247. package/web/.output/server/node_modules/consola/dist/core.mjs +0 -512
  248. package/web/.output/server/node_modules/consola/dist/index.mjs +0 -651
  249. package/web/.output/server/node_modules/consola/dist/shared/consola.DRwqZj3T.mjs +0 -72
  250. package/web/.output/server/node_modules/consola/dist/shared/consola.DXBYu-KD.mjs +0 -288
  251. package/web/.output/server/node_modules/consola/package.json +0 -136
  252. package/web/.output/server/node_modules/devalue/index.js +0 -4
  253. package/web/.output/server/node_modules/devalue/package.json +0 -40
  254. package/web/.output/server/node_modules/devalue/src/base64.js +0 -60
  255. package/web/.output/server/node_modules/devalue/src/constants.js +0 -12
  256. package/web/.output/server/node_modules/devalue/src/parse.js +0 -283
  257. package/web/.output/server/node_modules/devalue/src/stringify.js +0 -401
  258. package/web/.output/server/node_modules/devalue/src/uneval.js +0 -552
  259. package/web/.output/server/node_modules/devalue/src/utils.js +0 -160
  260. package/web/.output/server/node_modules/entities/dist/commonjs/decode-codepoint.js +0 -77
  261. package/web/.output/server/node_modules/entities/dist/commonjs/decode.js +0 -568
  262. package/web/.output/server/node_modules/entities/dist/commonjs/generated/decode-data-html.js +0 -7
  263. package/web/.output/server/node_modules/entities/dist/commonjs/generated/decode-data-xml.js +0 -7
  264. package/web/.output/server/node_modules/entities/dist/commonjs/internal/bin-trie-flags.js +0 -21
  265. package/web/.output/server/node_modules/entities/dist/commonjs/internal/decode-shared.js +0 -31
  266. package/web/.output/server/node_modules/entities/dist/commonjs/package.json +0 -3
  267. package/web/.output/server/node_modules/entities/package.json +0 -120
  268. package/web/.output/server/node_modules/estree-walker/dist/umd/estree-walker.js +0 -344
  269. package/web/.output/server/node_modules/estree-walker/package.json +0 -37
  270. package/web/.output/server/node_modules/hookable/dist/index.mjs +0 -257
  271. package/web/.output/server/node_modules/hookable/package.json +0 -53
  272. package/web/.output/server/node_modules/nostics/dist/index.mjs +0 -179
  273. package/web/.output/server/node_modules/nostics/package.json +0 -124
  274. package/web/.output/server/node_modules/perfect-debounce/dist/index.mjs +0 -89
  275. package/web/.output/server/node_modules/perfect-debounce/package.json +0 -41
  276. package/web/.output/server/node_modules/rou3/dist/index.mjs +0 -501
  277. package/web/.output/server/node_modules/rou3/package.json +0 -48
  278. package/web/.output/server/node_modules/source-map-js/lib/array-set.js +0 -121
  279. package/web/.output/server/node_modules/source-map-js/lib/base64-vlq.js +0 -140
  280. package/web/.output/server/node_modules/source-map-js/lib/base64.js +0 -67
  281. package/web/.output/server/node_modules/source-map-js/lib/binary-search.js +0 -111
  282. package/web/.output/server/node_modules/source-map-js/lib/mapping-list.js +0 -79
  283. package/web/.output/server/node_modules/source-map-js/lib/quick-sort.js +0 -132
  284. package/web/.output/server/node_modules/source-map-js/lib/source-map-consumer.js +0 -1188
  285. package/web/.output/server/node_modules/source-map-js/lib/source-map-generator.js +0 -444
  286. package/web/.output/server/node_modules/source-map-js/lib/source-node.js +0 -413
  287. package/web/.output/server/node_modules/source-map-js/lib/util.js +0 -594
  288. package/web/.output/server/node_modules/source-map-js/package.json +0 -71
  289. package/web/.output/server/node_modules/source-map-js/source-map.js +0 -8
  290. package/web/.output/server/node_modules/srvx/dist/_chunks/_body-limit.mjs +0 -39
  291. package/web/.output/server/node_modules/srvx/dist/_chunks/_plugins.mjs +0 -56
  292. package/web/.output/server/node_modules/srvx/dist/_chunks/_trust-proxy.mjs +0 -58
  293. package/web/.output/server/node_modules/srvx/dist/_chunks/_url.mjs +0 -134
  294. package/web/.output/server/node_modules/srvx/dist/_chunks/_utils.mjs +0 -15
  295. package/web/.output/server/node_modules/srvx/dist/_chunks/_utils2.mjs +0 -75
  296. package/web/.output/server/node_modules/srvx/dist/adapters/node.mjs +0 -976
  297. package/web/.output/server/node_modules/srvx/package.json +0 -102
  298. package/web/.output/server/node_modules/tailwind-merge/dist/bundle-mjs.mjs +0 -3365
  299. package/web/.output/server/node_modules/tailwind-merge/package.json +0 -93
  300. package/web/.output/server/node_modules/tailwind-variants/dist/chunk-LQJYWU4O.js +0 -112
  301. package/web/.output/server/node_modules/tailwind-variants/dist/chunk-RZF76H2U.js +0 -269
  302. package/web/.output/server/node_modules/tailwind-variants/dist/index.js +0 -38
  303. package/web/.output/server/node_modules/tailwind-variants/package.json +0 -122
  304. package/web/.output/server/node_modules/tailwindcss/dist/chunk-X4GG3EDV.mjs +0 -1
  305. package/web/.output/server/node_modules/tailwindcss/dist/colors.mjs +0 -1
  306. package/web/.output/server/node_modules/tailwindcss/package.json +0 -89
  307. package/web/.output/server/node_modules/ufo/dist/index.mjs +0 -645
  308. package/web/.output/server/node_modules/ufo/package.json +0 -48
  309. package/web/.output/server/node_modules/unhead/dist/index.mjs +0 -9
  310. package/web/.output/server/node_modules/unhead/dist/parser.mjs +0 -508
  311. package/web/.output/server/node_modules/unhead/dist/plugins.mjs +0 -101
  312. package/web/.output/server/node_modules/unhead/dist/scripts.mjs +0 -30
  313. package/web/.output/server/node_modules/unhead/dist/server.mjs +0 -180
  314. package/web/.output/server/node_modules/unhead/dist/shared/unhead.B3VbJo7Y.mjs +0 -207
  315. package/web/.output/server/node_modules/unhead/dist/shared/unhead.BYvz9V1x.mjs +0 -43
  316. package/web/.output/server/node_modules/unhead/dist/shared/unhead.BnoAbrHA.mjs +0 -269
  317. package/web/.output/server/node_modules/unhead/dist/shared/unhead.CaI5ZD4O.mjs +0 -182
  318. package/web/.output/server/node_modules/unhead/dist/shared/unhead.CbpEuj3y.mjs +0 -71
  319. package/web/.output/server/node_modules/unhead/dist/shared/unhead.D4vSFytZ.mjs +0 -236
  320. package/web/.output/server/node_modules/unhead/dist/shared/unhead.DQc16pHI.mjs +0 -196
  321. package/web/.output/server/node_modules/unhead/dist/shared/unhead.Dh1cQCTe.mjs +0 -44
  322. package/web/.output/server/node_modules/unhead/dist/shared/unhead.TxTMM7cM.mjs +0 -166
  323. package/web/.output/server/node_modules/unhead/dist/shared/unhead.yem5I2v_.mjs +0 -38
  324. package/web/.output/server/node_modules/unhead/dist/utils.mjs +0 -5
  325. package/web/.output/server/node_modules/unhead/node_modules/hookable/dist/index.mjs +0 -257
  326. package/web/.output/server/node_modules/unhead/node_modules/hookable/package.json +0 -53
  327. package/web/.output/server/node_modules/unhead/package.json +0 -105
  328. package/web/.output/server/node_modules/vue/dist/vue.cjs.js +0 -80
  329. package/web/.output/server/node_modules/vue/dist/vue.cjs.prod.js +0 -66
  330. package/web/.output/server/node_modules/vue/index.js +0 -7
  331. package/web/.output/server/node_modules/vue/index.mjs +0 -1
  332. package/web/.output/server/node_modules/vue/package.json +0 -112
  333. package/web/.output/server/node_modules/vue/server-renderer/index.mjs +0 -1
  334. package/web/.output/server/node_modules/vue-bundle-renderer/dist/runtime.mjs +0 -249
  335. package/web/.output/server/node_modules/vue-bundle-renderer/package.json +0 -57
  336. package/web/.output/server/node_modules/vue-demi/lib/index.mjs +0 -34
  337. package/web/.output/server/node_modules/vue-demi/package.json +0 -47
  338. package/web/.output/server/node_modules/vue-router/dist/devtools-Bpr7ZAVB.js +0 -1056
  339. package/web/.output/server/node_modules/vue-router/dist/useApi-CROJJdhE.js +0 -436
  340. package/web/.output/server/node_modules/vue-router/dist/vue-router.js +0 -1543
  341. package/web/.output/server/node_modules/vue-router/package.json +0 -214
  342. package/web/.output/server/node_modules/vue-router/vue-router.node.mjs +0 -2
  343. package/web/.output/server/package.json +0 -51
@@ -1,257 +0,0 @@
1
- function flatHooks(configHooks, hooks = {}, parentName) {
2
- for (const key in configHooks) {
3
- const subHook = configHooks[key];
4
- const name = parentName ? `${parentName}:${key}` : key;
5
- if (typeof subHook === "object" && subHook !== null) flatHooks(subHook, hooks, name);
6
- else if (typeof subHook === "function") hooks[name] = subHook;
7
- }
8
- return hooks;
9
- }
10
- function mergeHooks(...hooks) {
11
- const finalHooks = {};
12
- for (const hook of hooks) {
13
- const flatenHook = flatHooks(hook);
14
- for (const key in flatenHook) if (finalHooks[key]) finalHooks[key].push(flatenHook[key]);
15
- else finalHooks[key] = [flatenHook[key]];
16
- }
17
- for (const key in finalHooks) if (finalHooks[key].length > 1) {
18
- const array = finalHooks[key];
19
- finalHooks[key] = (...arguments_) => serial(array, (function_) => function_(...arguments_));
20
- } else finalHooks[key] = finalHooks[key][0];
21
- return finalHooks;
22
- }
23
- function serial(tasks, function_) {
24
- return tasks.reduce((promise, task) => promise.then(() => function_(task)), Promise.resolve());
25
- }
26
- const createTask = /* @__PURE__ */ (() => {
27
- if (console.createTask) return console.createTask;
28
- const defaultTask = { run: (fn) => fn() };
29
- return () => defaultTask;
30
- })();
31
- function callHooks(hooks, args, startIndex, task) {
32
- for (let i = startIndex; i < hooks.length; i += 1) try {
33
- const result = task ? task.run(() => hooks[i](...args)) : hooks[i](...args);
34
- if (result && typeof result.then === "function") return Promise.resolve(result).then(() => callHooks(hooks, args, i + 1, task));
35
- } catch (error) {
36
- return Promise.reject(error);
37
- }
38
- }
39
- function serialTaskCaller(hooks, args, name) {
40
- if (hooks.length > 0) return callHooks(hooks, args, 0, createTask(name));
41
- }
42
- function parallelTaskCaller(hooks, args, name) {
43
- if (hooks.length > 0) {
44
- const task = createTask(name);
45
- return Promise.all(hooks.map((hook) => task.run(() => hook(...args))));
46
- }
47
- }
48
- function serialCaller(hooks, arguments_) {
49
- return hooks.reduce((promise, hookFunction) => promise.then(() => hookFunction(...arguments_ || [])), Promise.resolve());
50
- }
51
- function parallelCaller(hooks, args) {
52
- return Promise.all(hooks.map((hook) => hook(...args || [])));
53
- }
54
- function callEachWith(callbacks, arg0) {
55
- for (const callback of [...callbacks]) callback(arg0);
56
- }
57
- var Hookable = class {
58
- _hooks;
59
- _before;
60
- _after;
61
- _deprecatedHooks;
62
- _deprecatedMessages;
63
- constructor() {
64
- this._hooks = {};
65
- this._before = void 0;
66
- this._after = void 0;
67
- this._deprecatedMessages = void 0;
68
- this._deprecatedHooks = {};
69
- this.hook = this.hook.bind(this);
70
- this.callHook = this.callHook.bind(this);
71
- this.callHookWith = this.callHookWith.bind(this);
72
- }
73
- hook(name, function_, options = {}) {
74
- if (!name || typeof function_ !== "function") return () => {};
75
- const originalName = name;
76
- let dep;
77
- while (this._deprecatedHooks[name]) {
78
- dep = this._deprecatedHooks[name];
79
- name = dep.to;
80
- }
81
- if (dep && !options.allowDeprecated) {
82
- let message = dep.message;
83
- if (!message) message = `${originalName} hook has been deprecated` + (dep.to ? `, please use ${dep.to}` : "");
84
- if (!this._deprecatedMessages) this._deprecatedMessages = /* @__PURE__ */ new Set();
85
- if (!this._deprecatedMessages.has(message)) {
86
- console.warn(message);
87
- this._deprecatedMessages.add(message);
88
- }
89
- }
90
- if (!function_.name) try {
91
- Object.defineProperty(function_, "name", {
92
- get: () => "_" + name.replace(/\W+/g, "_") + "_hook_cb",
93
- configurable: true
94
- });
95
- } catch {}
96
- this._hooks[name] = this._hooks[name] || [];
97
- this._hooks[name].push(function_);
98
- return () => {
99
- if (function_) {
100
- this.removeHook(name, function_);
101
- function_ = void 0;
102
- }
103
- };
104
- }
105
- hookOnce(name, function_) {
106
- let _unreg;
107
- let _function = (...arguments_) => {
108
- if (typeof _unreg === "function") _unreg();
109
- _unreg = void 0;
110
- _function = void 0;
111
- return function_(...arguments_);
112
- };
113
- _unreg = this.hook(name, _function);
114
- return _unreg;
115
- }
116
- removeHook(name, function_) {
117
- const hooks = this._hooks[name];
118
- if (hooks) {
119
- const index = hooks.indexOf(function_);
120
- if (index !== -1) hooks.splice(index, 1);
121
- if (hooks.length === 0) this._hooks[name] = void 0;
122
- }
123
- }
124
- clearHook(name) {
125
- this._hooks[name] = void 0;
126
- }
127
- deprecateHook(name, deprecated) {
128
- this._deprecatedHooks[name] = typeof deprecated === "string" ? { to: deprecated } : deprecated;
129
- const _hooks = this._hooks[name] || [];
130
- this._hooks[name] = void 0;
131
- for (const hook of _hooks) this.hook(name, hook);
132
- }
133
- deprecateHooks(deprecatedHooks) {
134
- for (const name in deprecatedHooks) this.deprecateHook(name, deprecatedHooks[name]);
135
- }
136
- addHooks(configHooks) {
137
- const hooks = flatHooks(configHooks);
138
- const removeFns = Object.keys(hooks).map((key) => this.hook(key, hooks[key]));
139
- return () => {
140
- for (const unreg of removeFns) unreg();
141
- removeFns.length = 0;
142
- };
143
- }
144
- removeHooks(configHooks) {
145
- const hooks = flatHooks(configHooks);
146
- for (const key in hooks) this.removeHook(key, hooks[key]);
147
- }
148
- removeAllHooks() {
149
- this._hooks = {};
150
- }
151
- callHook(name, ...args) {
152
- return this.callHookWith(serialTaskCaller, name, args);
153
- }
154
- callHookParallel(name, ...args) {
155
- return this.callHookWith(parallelTaskCaller, name, args);
156
- }
157
- callHookWith(caller, name, args) {
158
- const event = this._before || this._after ? {
159
- name,
160
- args,
161
- context: {}
162
- } : void 0;
163
- if (this._before) callEachWith(this._before, event);
164
- const result = caller(this._hooks[name] ? [...this._hooks[name]] : [], args, name);
165
- if (result instanceof Promise) return result.finally(() => {
166
- if (this._after && event) callEachWith(this._after, event);
167
- });
168
- if (this._after && event) callEachWith(this._after, event);
169
- return result;
170
- }
171
- beforeEach(function_) {
172
- this._before = this._before || [];
173
- this._before.push(function_);
174
- return () => {
175
- if (this._before !== void 0) {
176
- const index = this._before.indexOf(function_);
177
- if (index !== -1) this._before.splice(index, 1);
178
- }
179
- };
180
- }
181
- afterEach(function_) {
182
- this._after = this._after || [];
183
- this._after.push(function_);
184
- return () => {
185
- if (this._after !== void 0) {
186
- const index = this._after.indexOf(function_);
187
- if (index !== -1) this._after.splice(index, 1);
188
- }
189
- };
190
- }
191
- };
192
- function createHooks() {
193
- return new Hookable();
194
- }
195
- var HookableCore = class {
196
- _hooks;
197
- constructor() {
198
- this._hooks = {};
199
- }
200
- hook(name, fn) {
201
- if (!name || typeof fn !== "function") return () => {};
202
- this._hooks[name] = this._hooks[name] || [];
203
- this._hooks[name].push(fn);
204
- return () => {
205
- if (fn) {
206
- this.removeHook(name, fn);
207
- fn = void 0;
208
- }
209
- };
210
- }
211
- removeHook(name, function_) {
212
- const hooks = this._hooks[name];
213
- if (hooks) {
214
- const index = hooks.indexOf(function_);
215
- if (index !== -1) hooks.splice(index, 1);
216
- if (hooks.length === 0) this._hooks[name] = void 0;
217
- }
218
- }
219
- callHook(name, ...args) {
220
- const hooks = this._hooks[name];
221
- if (!hooks || hooks.length === 0) return;
222
- return callHooks(hooks, args, 0);
223
- }
224
- };
225
- const isBrowser = typeof window !== "undefined";
226
- function createDebugger(hooks, _options = {}) {
227
- const options = {
228
- inspect: isBrowser,
229
- group: isBrowser,
230
- filter: () => true,
231
- ..._options
232
- };
233
- const _filter = options.filter;
234
- const filter = typeof _filter === "string" ? (name) => name.startsWith(_filter) : _filter;
235
- const _tag = options.tag ? `[${options.tag}] ` : "";
236
- const logPrefix = (event) => _tag + event.name + "".padEnd(event._id, "\0");
237
- const _idCtr = {};
238
- const unsubscribeBefore = hooks.beforeEach((event) => {
239
- if (filter !== void 0 && !filter(event.name)) return;
240
- _idCtr[event.name] = _idCtr[event.name] || 0;
241
- event._id = _idCtr[event.name]++;
242
- console.time(logPrefix(event));
243
- });
244
- const unsubscribeAfter = hooks.afterEach((event) => {
245
- if (filter !== void 0 && !filter(event.name)) return;
246
- if (options.group) console.groupCollapsed(event.name);
247
- if (options.inspect) console.timeLog(logPrefix(event), event.args);
248
- else console.timeEnd(logPrefix(event));
249
- if (options.group) console.groupEnd();
250
- _idCtr[event.name]--;
251
- });
252
- return { close: () => {
253
- unsubscribeBefore();
254
- unsubscribeAfter();
255
- } };
256
- }
257
- export { Hookable, HookableCore, createDebugger, createHooks, flatHooks, mergeHooks, parallelCaller, serial, serialCaller };
@@ -1,53 +0,0 @@
1
- {
2
- "name": "hookable",
3
- "version": "6.1.1",
4
- "description": "Awaitable hook system",
5
- "keywords": [
6
- "hook",
7
- "hookable",
8
- "plugin",
9
- "tapable",
10
- "tappable"
11
- ],
12
- "license": "MIT",
13
- "repository": "unjs/hookable",
14
- "files": [
15
- "dist"
16
- ],
17
- "type": "module",
18
- "sideEffects": false,
19
- "main": "./dist/index.mjs",
20
- "types": "./dist/index.d.mts",
21
- "exports": {
22
- ".": "./dist/index.mjs"
23
- },
24
- "scripts": {
25
- "bench": "node --expose-gc --allow-natives-syntax test/bench.ts",
26
- "build": "obuild src/index.ts",
27
- "dev": "vitest",
28
- "lint": "oxlint . && oxfmt --check src test",
29
- "lint:fix": "oxlint . --fix && oxfmt src test",
30
- "prepublish": "pnpm build",
31
- "release": "pnpm test && pnpm build && changelogen --release --publish --push",
32
- "test": "pnpm lint && vitest run --coverage",
33
- "test:types": "tsgo --noEmit"
34
- },
35
- "devDependencies": {
36
- "@types/node": "^25.6.0",
37
- "@typescript/native-preview": "^7.0.0-dev.20260414.1",
38
- "@vitest/coverage-v8": "^4.1.4",
39
- "changelogen": "^0.6.2",
40
- "esbuild": "^0.28.0",
41
- "eslint-config-unjs": "^0.6.2",
42
- "expect-type": "^1.3.0",
43
- "hookable-prev": "npm:hookable@^6.1.0",
44
- "mitata": "^1.0.34",
45
- "obuild": "^0.4.33",
46
- "oxfmt": "^0.45.0",
47
- "oxlint": "^1.60.0",
48
- "typescript": "^6.0.2",
49
- "vite": "^8.0.8",
50
- "vitest": "^4.1.4"
51
- },
52
- "packageManager": "pnpm@10.33.0"
53
- }
@@ -1,179 +0,0 @@
1
- //#region src/formatters/plain.ts
2
- /**
3
- * Renders a diagnostic into a multi-line, unicode-decorated string suitable
4
- * for terminal output. The first line is `[<name>] <message>`; optional
5
- * details (`fix`, `sources`, `docs`) follow with `├▶`/`╰▶` connectors.
6
- */
7
- function formatDiagnostic(diagnostic) {
8
- const header = `[${diagnostic.name}] ${diagnostic.message}`;
9
- const details = [];
10
- if (diagnostic.fix) details.push(`fix: ${diagnostic.fix}`);
11
- if (diagnostic.sources?.length) details.push(`sources: ${diagnostic.sources.join(", ")}`);
12
- if (diagnostic.docs) details.push(`see: ${diagnostic.docs}`);
13
- if (details.length === 0) return header;
14
- return [header, ...details.map((detail, i) => {
15
- return `${i < details.length - 1 ? "├▶" : "╰▶"} ${detail}`;
16
- })].join("\n");
17
- }
18
- //#endregion
19
- //#region src/utils.ts
20
- /**
21
- * Transforms a value or a function that returns a value to a value.
22
- *
23
- * @param valFn either a value or a function that returns a value
24
- * @param args arguments to pass to the function if `valFn` is a function
25
- *
26
- * @internal
27
- */
28
- function toValueWithArgs(valFn, ...args) {
29
- return typeof valFn === "function" ? valFn(...args) : valFn;
30
- }
31
- //#endregion
32
- //#region src/diagnostic.ts
33
- /**
34
- * Creates a console reporter that renders each diagnostic with `formatter` and
35
- * prints the result via `console[method]`. Both default sensibly (`'warn'` and
36
- * {@link formatDiagnostic}); `method` can also be overridden per call through
37
- * the reporter options.
38
- */
39
- /* @__NO_SIDE_EFFECTS__ */
40
- function createConsoleReporter({ method: defaultMethod = "warn", formatter = formatDiagnostic } = {}) {
41
- return (diagnostic, { method = defaultMethod } = {}) => {
42
- console[method](formatter(diagnostic));
43
- };
44
- }
45
- const captureStackTrace = Error.captureStackTrace;
46
- var Diagnostic = class Diagnostic extends Error {
47
- name = "Diagnostic";
48
- /**
49
- * URL to extended documentation for this diagnostic code.
50
- * Auto-generated from {@link DefineDiagnosticsOptions.docsBase}.
51
- */
52
- docs;
53
- /**
54
- * Optional actionable instructions on how to resolve the problem.
55
- */
56
- fix;
57
- /**
58
- * Locations in user code that contributed to this diagnostic, in
59
- * `file:line:column` format. Relevant when the stack trace doesn't reflect
60
- * the user's source (e.g. compilers, bundlers), otherwise redundant with the
61
- * stack and should be omitted.
62
- */
63
- sources;
64
- /**
65
- * Alias for {@link Error.message}: the reason this diagnostic was raised.
66
- */
67
- get why() {
68
- return this.message;
69
- }
70
- /**
71
- * @param init structured initializer; `why` is required
72
- * @param captureFrom V8 stack-cutoff frame. Defaults to {@link Diagnostic}
73
- * so the top of the trace is the `new Diagnostic(...)` call site.
74
- * `defineDiagnostics` passes its action method to strip its own frames too.
75
- * Ignored on engines without `Error.captureStackTrace`.
76
- */
77
- constructor(init, captureFrom = Diagnostic) {
78
- super(init.why, { cause: init.cause });
79
- this.fix = init.fix;
80
- this.docs = init.docs;
81
- this.sources = init.sources;
82
- captureStackTrace?.(this, captureFrom);
83
- }
84
- /**
85
- * Converts the diagnostic into a serializable structured object.
86
- */
87
- toJSON() {
88
- return {
89
- name: this.name,
90
- why: this.why,
91
- fix: this.fix,
92
- docs: this.docs,
93
- sources: this.sources,
94
- cause: this.cause,
95
- stack: this.stack
96
- };
97
- }
98
- };
99
- /**
100
- * Resolves the docs URL for a code from a `docsBase` (string template or
101
- * resolver function). Shared by {@link defineDiagnostics} and
102
- * {@link defineProdDiagnostics}. Per-code `docs` overrides are handled by the
103
- * caller; this only covers the `docsBase`-derived case.
104
- *
105
- * @internal
106
- */
107
- function deriveDocs(docsBase, code) {
108
- return typeof docsBase === "string" ? `${docsBase}/${code.toLowerCase()}` : docsBase?.(code);
109
- }
110
- /**
111
- * Creates a typed diagnostics object from a set of code definitions. Each
112
- * code becomes a callable {@link DiagnosticHandle}: invoke to report, or
113
- * `throw` the result to raise. No `new` required, no proxy.
114
- */
115
- /* @__NO_SIDE_EFFECTS__ */
116
- function defineDiagnostics(options) {
117
- const reporters = options.reporters ?? [];
118
- const result = {};
119
- const { docsBase } = options;
120
- for (const code of Object.keys(options.codes)) {
121
- const def = options.codes[code];
122
- const docs = def.docs === false ? void 0 : def.docs || deriveDocs(docsBase, code);
123
- const handle = (params = {}, reporterOptions = {}) => {
124
- const diagnostic = new Diagnostic({
125
- why: toValueWithArgs(def.why, params),
126
- fix: toValueWithArgs(def.fix, params),
127
- docs,
128
- cause: params.cause,
129
- sources: params.sources
130
- }, handle);
131
- diagnostic.name = code;
132
- for (const reporter of reporters) reporter(diagnostic, reporterOptions);
133
- return diagnostic;
134
- };
135
- result[code] = handle;
136
- }
137
- return result;
138
- }
139
- //#endregion
140
- //#region src/prod-diagnostics.ts
141
- /**
142
- * Production counterpart to {@link defineDiagnostics}. Returns a `Proxy` that
143
- * builds a minimal {@link Diagnostic} for any accessed code: the code becomes
144
- * both the `message` (`why`) and the instance `name`, and `docs` is derived
145
- * from `docsBase`. It carries no catalog text, so it stays tiny in a bundle.
146
- *
147
- * The strip plugin (`@nostics/unplugin`) can rewrite a `defineDiagnostics()`
148
- * call into a `process.env.NODE_ENV === 'production'` ternary that selects this
149
- * factory in production, dropping every `why`/`fix` string from the bundle.
150
- *
151
- * @example
152
- * ```ts
153
- * const diagnostics = defineProdDiagnostics({ docsBase: 'https://docs.example.com' })
154
- * throw diagnostics.NUXT_B2011() // Error: NUXT_B2011, docs derived from docsBase
155
- * ```
156
- */
157
- /* @__NO_SIDE_EFFECTS__ */
158
- function defineProdDiagnostics(options = {}) {
159
- const { docsBase, reporters = [] } = options;
160
- return new Proxy({}, { get(_target, code) {
161
- if (typeof code !== "string") return void 0;
162
- const handle = (params = {}, reporterOptions = {}) => {
163
- const diagnostic = new Diagnostic({
164
- why: code,
165
- docs: deriveDocs(docsBase, code),
166
- cause: params.cause,
167
- sources: params.sources
168
- }, handle);
169
- diagnostic.name = code;
170
- for (const reporter of reporters) reporter(diagnostic, reporterOptions);
171
- return diagnostic;
172
- };
173
- return handle;
174
- } });
175
- }
176
- //#endregion
177
- export { Diagnostic, createConsoleReporter, defineDiagnostics, defineProdDiagnostics, formatDiagnostic };
178
-
179
- //# sourceMappingURL=index.mjs.map
@@ -1,124 +0,0 @@
1
- {
2
- "name": "nostics",
3
- "type": "module",
4
- "version": "1.1.4",
5
- "description": "Structured diagnostic code library",
6
- "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
- "contributors": [
8
- "Eduardo San Martin Morote <posva13@gmail.com>"
9
- ],
10
- "license": "MIT",
11
- "homepage": "https://github.com/vercel-labs/nostics#readme",
12
- "repository": {
13
- "type": "git",
14
- "url": "git+https://github.com/vercel-labs/nostics.git"
15
- },
16
- "bugs": "https://github.com/vercel-labs/nostics/issues",
17
- "keywords": [],
18
- "sideEffects": false,
19
- "exports": {
20
- ".": "./dist/index.mjs",
21
- "./formatters/ansi": "./dist/formatters/ansi.mjs",
22
- "./formatters/json": "./dist/formatters/json.mjs",
23
- "./reporters/dev": "./dist/reporters/dev.mjs",
24
- "./reporters/fetch": "./dist/reporters/fetch.mjs",
25
- "./reporters/node": "./dist/reporters/node.mjs",
26
- "./package.json": "./package.json"
27
- },
28
- "types": "./dist/index.d.mts",
29
- "files": [
30
- "dist",
31
- "skills"
32
- ],
33
- "devDependencies": {
34
- "@antfu/eslint-config": "^9.0.0",
35
- "@antfu/ni": "^30.1.0",
36
- "@antfu/utils": "^9.3.0",
37
- "@posva/prompts": "^2.4.4",
38
- "@size-limit/esbuild-why": "^12.1.0",
39
- "@size-limit/preset-small-lib": "^12.1.0",
40
- "@types/node": "^25.9.3",
41
- "@types/semver": "^7.7.1",
42
- "@vitest/coverage-v8": "4.1.8",
43
- "@vitest/ui": "4.1.8",
44
- "conventional-changelog": "^7.2.0",
45
- "conventional-changelog-angular": "^8.3.1",
46
- "eslint": "^10.5.0",
47
- "lint-staged": "^17.0.7",
48
- "oxfmt": "^0.54.0",
49
- "publint": "^0.3.21",
50
- "semver": "^7.8.4",
51
- "simple-git-hooks": "^2.13.1",
52
- "size-limit": "^12.1.0",
53
- "tsdown": "^0.22.2",
54
- "tsnapi": "^0.3.3",
55
- "typescript": "^6.0.3",
56
- "vite": "^8.0.16",
57
- "vitest": "^4.1.8",
58
- "nostics": "1.1.4"
59
- },
60
- "simple-git-hooks": {
61
- "pre-commit": "pnpm i --frozen-lockfile --ignore-scripts --offline && npx lint-staged"
62
- },
63
- "lint-staged": {
64
- "*": "eslint --fix"
65
- },
66
- "size-limit": [
67
- {
68
- "name": "defineDiagnostics from source",
69
- "path": "src/index.ts",
70
- "import": "{ defineDiagnostics }"
71
- },
72
- {
73
- "name": "defineDiagnostics",
74
- "path": "dist/index.mjs",
75
- "import": "{ defineDiagnostics }"
76
- },
77
- {
78
- "name": "defineProdDiagnostics",
79
- "path": "dist/index.mjs",
80
- "import": "{ defineProdDiagnostics }"
81
- },
82
- {
83
- "name": "defineDiagnostics + createConsoleReporter",
84
- "path": "dist/index.mjs",
85
- "import": "{ defineDiagnostics, createConsoleReporter }"
86
- },
87
- {
88
- "name": "defineProdDiagnostics + createConsoleReporter",
89
- "path": "dist/index.mjs",
90
- "import": "{ defineProdDiagnostics, createConsoleReporter }"
91
- },
92
- {
93
- "name": "formatDiagnostic",
94
- "path": "dist/index.mjs",
95
- "import": "{ formatDiagnostic }"
96
- },
97
- {
98
- "name": "full root",
99
- "path": "dist/index.mjs",
100
- "import": "*"
101
- },
102
- {
103
- "name": "ansi formatter",
104
- "path": "dist/formatters/ansi.mjs",
105
- "import": "*"
106
- }
107
- ],
108
- "scripts": {
109
- "build": "tsdown && pnpm --filter \"./packages/*\" run build",
110
- "dev": "vitest",
111
- "docs": "pnpm -C docs run dev",
112
- "docs:build": "pnpm -C docs run build",
113
- "play": "pnpm -C playground run dev",
114
- "lint": "eslint",
115
- "release": "node scripts/release.ts",
116
- "size": "size-limit",
117
- "test": "pnpm run build && pnpm run \"/^test:/\"",
118
- "test:unit": "vitest run --coverage",
119
- "test:types": "pnpm run typecheck",
120
- "test:lint": "pnpm run lint",
121
- "test:demo": "pnpm -C demo-lib run build && pnpm -C demo-lib run test && pnpm -C playground run build",
122
- "typecheck": "tsc && pnpm --filter \"./packages/*\" run typecheck"
123
- }
124
- }
@@ -1,89 +0,0 @@
1
- //#region src/index.ts
2
- const DEBOUNCE_DEFAULTS = { trailing: true };
3
- /**
4
- Debounce functions
5
- @param fn - Promise-returning/async function to debounce.
6
- @param wait - Milliseconds to wait before calling `fn`. Default value is 25ms
7
- @returns A function that delays calling `fn` until after `wait` milliseconds have elapsed since the last time it was called.
8
- @example
9
- ```
10
- import { debounce } from 'perfect-debounce';
11
- const expensiveCall = async input => input;
12
- const debouncedFn = debounce(expensiveCall, 200);
13
- for (const number of [1, 2, 3]) {
14
- console.log(await debouncedFn(number));
15
- }
16
- //=> 1
17
- //=> 2
18
- //=> 3
19
- ```
20
- */
21
- function debounce(fn, wait = 25, options = {}) {
22
- options = {
23
- ...DEBOUNCE_DEFAULTS,
24
- ...options
25
- };
26
- if (!Number.isFinite(wait)) throw new TypeError("Expected `wait` to be a finite number");
27
- let leadingValue;
28
- let timeout;
29
- let resolveList = [];
30
- let currentPromise;
31
- let trailingArgs;
32
- const applyFn = (_this, args) => {
33
- currentPromise = _applyPromised(fn, _this, args);
34
- currentPromise.finally(() => {
35
- currentPromise = null;
36
- if (options.trailing && trailingArgs && !timeout) {
37
- const promise = applyFn(_this, trailingArgs);
38
- trailingArgs = null;
39
- return promise;
40
- }
41
- });
42
- return currentPromise;
43
- };
44
- const debounced = function(...args) {
45
- if (options.trailing) trailingArgs = args;
46
- if (currentPromise) return currentPromise;
47
- return new Promise((resolve) => {
48
- const shouldCallNow = !timeout && options.leading;
49
- clearTimeout(timeout);
50
- timeout = setTimeout(() => {
51
- timeout = null;
52
- const promise = options.leading ? leadingValue : applyFn(this, args);
53
- trailingArgs = null;
54
- for (const _resolve of resolveList) _resolve(promise);
55
- resolveList = [];
56
- }, wait);
57
- if (shouldCallNow) {
58
- leadingValue = applyFn(this, args);
59
- resolve(leadingValue);
60
- } else resolveList.push(resolve);
61
- });
62
- };
63
- const _clearTimeout = (timer) => {
64
- if (timer) {
65
- clearTimeout(timer);
66
- timeout = null;
67
- }
68
- };
69
- debounced.isPending = () => !!timeout;
70
- debounced.cancel = () => {
71
- _clearTimeout(timeout);
72
- resolveList = [];
73
- trailingArgs = null;
74
- };
75
- debounced.flush = () => {
76
- _clearTimeout(timeout);
77
- if (!trailingArgs || currentPromise) return;
78
- const args = trailingArgs;
79
- trailingArgs = null;
80
- return applyFn(this, args);
81
- };
82
- return debounced;
83
- }
84
- async function _applyPromised(fn, _this, args) {
85
- return await fn.apply(_this, args);
86
- }
87
-
88
- //#endregion
89
- export { debounce };