@poveste/vendors 0.15.0 → 0.16.1

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 (423) hide show
  1. package/README.md +15 -1
  2. package/iconify.d.ts +5 -0
  3. package/iconify.js +5 -0
  4. package/package.json +39 -34
  5. package/pinia.d.ts +5 -0
  6. package/pinia.js +5 -0
  7. package/vue-router.d.ts +5 -0
  8. package/vue-router.js +5 -0
  9. package/vue-use.d.ts +5 -0
  10. package/vue-use.js +5 -0
  11. package/vue.d.ts +5 -0
  12. package/vue.js +9 -0
  13. package/dist/client/b-floating-vue.d.ts +0 -3
  14. package/dist/client/b-floating-vue.js +0 -3377
  15. package/dist/client/b-iconify.d.ts +0 -1
  16. package/dist/client/b-iconify.js +0 -1896
  17. package/dist/client/b-pinia.d.ts +0 -1
  18. package/dist/client/b-pinia.js +0 -1492
  19. package/dist/client/b-scroll.d.ts +0 -2
  20. package/dist/client/b-scroll.js +0 -7
  21. package/dist/client/b-vue-router.d.ts +0 -1
  22. package/dist/client/b-vue-router.js +0 -3058
  23. package/dist/client/b-vue-use.d.ts +0 -1
  24. package/dist/client/b-vue-use.js +0 -10774
  25. package/dist/client/b-vue.d.ts +0 -1
  26. package/dist/client/b-vue.js +0 -1
  27. package/dist/client/devtools-api.js +0 -6568
  28. package/dist/client/index.js +0 -185
  29. package/dist/client/node_modules/@babel/helper-string-parser/package.json +0 -31
  30. package/dist/client/node_modules/@babel/helper-validator-identifier/package.json +0 -31
  31. package/dist/client/node_modules/@babel/parser/package.json +0 -50
  32. package/dist/client/node_modules/@babel/parser/typings/babel-parser.d.ts +0 -262
  33. package/dist/client/node_modules/@babel/types/lib/index-legacy.d.ts +0 -2796
  34. package/dist/client/node_modules/@babel/types/lib/index.d.ts +0 -3616
  35. package/dist/client/node_modules/@babel/types/package.json +0 -39
  36. package/dist/client/node_modules/@floating-ui/core/dist/floating-ui.core.d.mts +0 -535
  37. package/dist/client/node_modules/@floating-ui/core/dist/floating-ui.core.d.ts +0 -535
  38. package/dist/client/node_modules/@floating-ui/core/package.json +0 -63
  39. package/dist/client/node_modules/@floating-ui/dom/index.d.ts +0 -1
  40. package/dist/client/node_modules/@floating-ui/dom/package.json +0 -74
  41. package/dist/client/node_modules/@floating-ui/dom/src/autoUpdate.d.ts +0 -31
  42. package/dist/client/node_modules/@floating-ui/dom/src/index.d.ts +0 -11
  43. package/dist/client/node_modules/@floating-ui/dom/src/platform.d.ts +0 -2
  44. package/dist/client/node_modules/@floating-ui/dom/src/types.d.ts +0 -128
  45. package/dist/client/node_modules/@floating-ui/dom/src/utils/convertOffsetParentRelativeRectToViewportRelativeRect.d.ts +0 -6
  46. package/dist/client/node_modules/@floating-ui/dom/src/utils/getBoundingClientRect.d.ts +0 -2
  47. package/dist/client/node_modules/@floating-ui/dom/src/utils/getClippingRect.d.ts +0 -12
  48. package/dist/client/node_modules/@floating-ui/dom/src/utils/getComputedStyle.d.ts +0 -1
  49. package/dist/client/node_modules/@floating-ui/dom/src/utils/getCssDimensions.d.ts +0 -4
  50. package/dist/client/node_modules/@floating-ui/dom/src/utils/getDimensions.d.ts +0 -2
  51. package/dist/client/node_modules/@floating-ui/dom/src/utils/getDocumentElement.d.ts +0 -1
  52. package/dist/client/node_modules/@floating-ui/dom/src/utils/getDocumentRect.d.ts +0 -2
  53. package/dist/client/node_modules/@floating-ui/dom/src/utils/getNearestOverflowAncestor.d.ts +0 -1
  54. package/dist/client/node_modules/@floating-ui/dom/src/utils/getNodeName.d.ts +0 -1
  55. package/dist/client/node_modules/@floating-ui/dom/src/utils/getNodeScroll.d.ts +0 -2
  56. package/dist/client/node_modules/@floating-ui/dom/src/utils/getOffsetParent.d.ts +0 -1
  57. package/dist/client/node_modules/@floating-ui/dom/src/utils/getOverflowAncestors.d.ts +0 -3
  58. package/dist/client/node_modules/@floating-ui/dom/src/utils/getParentNode.d.ts +0 -1
  59. package/dist/client/node_modules/@floating-ui/dom/src/utils/getRectRelativeToOffsetParent.d.ts +0 -2
  60. package/dist/client/node_modules/@floating-ui/dom/src/utils/getScale.d.ts +0 -7
  61. package/dist/client/node_modules/@floating-ui/dom/src/utils/getViewportRect.d.ts +0 -2
  62. package/dist/client/node_modules/@floating-ui/dom/src/utils/getWindowScrollBarX.d.ts +0 -1
  63. package/dist/client/node_modules/@floating-ui/dom/src/utils/is.d.ts +0 -17
  64. package/dist/client/node_modules/@floating-ui/dom/src/utils/math.d.ts +0 -3
  65. package/dist/client/node_modules/@floating-ui/dom/src/utils/unwrapElement.d.ts +0 -2
  66. package/dist/client/node_modules/@floating-ui/dom/src/utils/userAgent.d.ts +0 -1
  67. package/dist/client/node_modules/@floating-ui/dom/src/utils/window.d.ts +0 -1
  68. package/dist/client/node_modules/@floating-ui/utils/dist/floating-ui.utils.d.mts +0 -105
  69. package/dist/client/node_modules/@floating-ui/utils/dist/floating-ui.utils.d.ts +0 -105
  70. package/dist/client/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.d.mts +0 -47
  71. package/dist/client/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.d.ts +0 -47
  72. package/dist/client/node_modules/@floating-ui/utils/dom/floating-ui.utils.dom.d.ts +0 -47
  73. package/dist/client/node_modules/@floating-ui/utils/dom/package.json +0 -6
  74. package/dist/client/node_modules/@floating-ui/utils/package.json +0 -70
  75. package/dist/client/node_modules/@iconify/types/package.json +0 -23
  76. package/dist/client/node_modules/@iconify/types/provider.d.ts +0 -44
  77. package/dist/client/node_modules/@iconify/types/types.d.ts +0 -272
  78. package/dist/client/node_modules/@iconify/vue/dist/iconify.d.ts +0 -420
  79. package/dist/client/node_modules/@iconify/vue/dist/offline.d.ts +0 -109
  80. package/dist/client/node_modules/@iconify/vue/offline/package.json +0 -14
  81. package/dist/client/node_modules/@iconify/vue/package.json +0 -62
  82. package/dist/client/node_modules/@jridgewell/gen-mapping/dist/types/gen-mapping.d.ts +0 -88
  83. package/dist/client/node_modules/@jridgewell/gen-mapping/dist/types/set-array.d.ts +0 -32
  84. package/dist/client/node_modules/@jridgewell/gen-mapping/dist/types/sourcemap-segment.d.ts +0 -12
  85. package/dist/client/node_modules/@jridgewell/gen-mapping/dist/types/types.d.ts +0 -43
  86. package/dist/client/node_modules/@jridgewell/gen-mapping/package.json +0 -67
  87. package/dist/client/node_modules/@jridgewell/gen-mapping/types/gen-mapping.d.mts +0 -89
  88. package/dist/client/node_modules/@jridgewell/gen-mapping/types/set-array.d.mts +0 -33
  89. package/dist/client/node_modules/@jridgewell/gen-mapping/types/sourcemap-segment.d.mts +0 -13
  90. package/dist/client/node_modules/@jridgewell/gen-mapping/types/types.d.mts +0 -44
  91. package/dist/client/node_modules/@jridgewell/remapping/package.json +0 -71
  92. package/dist/client/node_modules/@jridgewell/remapping/types/build-source-map-tree.d.mts +0 -15
  93. package/dist/client/node_modules/@jridgewell/remapping/types/remapping.d.mts +0 -21
  94. package/dist/client/node_modules/@jridgewell/remapping/types/source-map-tree.d.mts +0 -46
  95. package/dist/client/node_modules/@jridgewell/remapping/types/source-map.d.mts +0 -19
  96. package/dist/client/node_modules/@jridgewell/remapping/types/types.d.mts +0 -16
  97. package/dist/client/node_modules/@jridgewell/resolve-uri/dist/types/resolve-uri.d.ts +0 -4
  98. package/dist/client/node_modules/@jridgewell/resolve-uri/package.json +0 -69
  99. package/dist/client/node_modules/@jridgewell/sourcemap-codec/package.json +0 -64
  100. package/dist/client/node_modules/@jridgewell/sourcemap-codec/types/range-mappings.d.mts +0 -5
  101. package/dist/client/node_modules/@jridgewell/sourcemap-codec/types/scopes.d.mts +0 -50
  102. package/dist/client/node_modules/@jridgewell/sourcemap-codec/types/sourcemap-codec.d.mts +0 -11
  103. package/dist/client/node_modules/@jridgewell/sourcemap-codec/types/strings.d.mts +0 -16
  104. package/dist/client/node_modules/@jridgewell/sourcemap-codec/types/vlq.d.mts +0 -9
  105. package/dist/client/node_modules/@jridgewell/trace-mapping/package.json +0 -67
  106. package/dist/client/node_modules/@jridgewell/trace-mapping/types/binary-search.d.mts +0 -33
  107. package/dist/client/node_modules/@jridgewell/trace-mapping/types/by-source.d.mts +0 -4
  108. package/dist/client/node_modules/@jridgewell/trace-mapping/types/flatten-map.d.mts +0 -9
  109. package/dist/client/node_modules/@jridgewell/trace-mapping/types/resolve.d.mts +0 -4
  110. package/dist/client/node_modules/@jridgewell/trace-mapping/types/sort.d.mts +0 -4
  111. package/dist/client/node_modules/@jridgewell/trace-mapping/types/sourcemap-segment.d.mts +0 -17
  112. package/dist/client/node_modules/@jridgewell/trace-mapping/types/strip-filename.d.mts +0 -5
  113. package/dist/client/node_modules/@jridgewell/trace-mapping/types/trace-mapping.d.mts +0 -80
  114. package/dist/client/node_modules/@jridgewell/trace-mapping/types/types.d.mts +0 -107
  115. package/dist/client/node_modules/@types/web-bluetooth/index.d.ts +0 -265
  116. package/dist/client/node_modules/@types/web-bluetooth/package.json +0 -46
  117. package/dist/client/node_modules/@vue/compiler-core/dist/compiler-core.d.ts +0 -1120
  118. package/dist/client/node_modules/@vue/compiler-core/package.json +0 -58
  119. package/dist/client/node_modules/@vue/compiler-dom/dist/compiler-dom.d.ts +0 -45
  120. package/dist/client/node_modules/@vue/compiler-dom/package.json +0 -57
  121. package/dist/client/node_modules/@vue/compiler-sfc/dist/compiler-sfc.d.ts +0 -487
  122. package/dist/client/node_modules/@vue/compiler-sfc/package.json +0 -67
  123. package/dist/client/node_modules/@vue/compiler-ssr/dist/compiler-ssr.d.ts +0 -4
  124. package/dist/client/node_modules/@vue/compiler-ssr/package.json +0 -34
  125. package/dist/client/node_modules/@vue/devtools-api/dist/index-node.d.ts +0 -11
  126. package/dist/client/node_modules/@vue/devtools-api/dist/index.d.ts +0 -2
  127. package/dist/client/node_modules/@vue/devtools-api/package.json +0 -38
  128. package/dist/client/node_modules/@vue/devtools-kit/dist/index.d.ts +0 -1170
  129. package/dist/client/node_modules/@vue/devtools-kit/global.d.ts +0 -20
  130. package/dist/client/node_modules/@vue/devtools-kit/package.json +0 -44
  131. package/dist/client/node_modules/@vue/devtools-kit/types.d.ts +0 -2
  132. package/dist/client/node_modules/@vue/devtools-shared/dist/index.d.ts +0 -40
  133. package/dist/client/node_modules/@vue/devtools-shared/package.json +0 -33
  134. package/dist/client/node_modules/@vue/reactivity/dist/reactivity.d.ts +0 -757
  135. package/dist/client/node_modules/@vue/reactivity/package.json +0 -55
  136. package/dist/client/node_modules/@vue/runtime-core/dist/runtime-core.d.ts +0 -1868
  137. package/dist/client/node_modules/@vue/runtime-core/package.json +0 -52
  138. package/dist/client/node_modules/@vue/runtime-dom/dist/runtime-dom.d.ts +0 -1452
  139. package/dist/client/node_modules/@vue/runtime-dom/package.json +0 -60
  140. package/dist/client/node_modules/@vue/server-renderer/dist/server-renderer.d.ts +0 -65
  141. package/dist/client/node_modules/@vue/server-renderer/package.json +0 -53
  142. package/dist/client/node_modules/@vue/shared/dist/shared.d.ts +0 -334
  143. package/dist/client/node_modules/@vue/shared/package.json +0 -47
  144. package/dist/client/node_modules/@vue-macros/common/dist/index.d.ts +0 -124
  145. package/dist/client/node_modules/@vue-macros/common/package.json +0 -63
  146. package/dist/client/node_modules/@vueuse/core/dist/index.d.ts +0 -5860
  147. package/dist/client/node_modules/@vueuse/core/dist/metadata.d.mts +0 -1
  148. package/dist/client/node_modules/@vueuse/core/package.json +0 -56
  149. package/dist/client/node_modules/@vueuse/metadata/dist/index.d.ts +0 -81
  150. package/dist/client/node_modules/@vueuse/metadata/package.json +0 -41
  151. package/dist/client/node_modules/@vueuse/shared/dist/index.d.ts +0 -1511
  152. package/dist/client/node_modules/@vueuse/shared/package.json +0 -45
  153. package/dist/client/node_modules/acorn/dist/acorn.d.mts +0 -897
  154. package/dist/client/node_modules/acorn/dist/acorn.d.ts +0 -897
  155. package/dist/client/node_modules/acorn/package.json +0 -50
  156. package/dist/client/node_modules/ast-kit/dist/index.d.ts +0 -380
  157. package/dist/client/node_modules/ast-kit/package.json +0 -63
  158. package/dist/client/node_modules/ast-walker-scope/dist/index.d.mts +0 -51
  159. package/dist/client/node_modules/ast-walker-scope/package.json +0 -60
  160. package/dist/client/node_modules/birpc/dist/index.d.mts +0 -215
  161. package/dist/client/node_modules/birpc/dist/index.d.ts +0 -215
  162. package/dist/client/node_modules/birpc/package.json +0 -57
  163. package/dist/client/node_modules/chokidar/handler.d.ts +0 -90
  164. package/dist/client/node_modules/chokidar/index.d.ts +0 -217
  165. package/dist/client/node_modules/chokidar/package.json +0 -63
  166. package/dist/client/node_modules/compute-scroll-into-view/dist/index.d.ts +0 -75
  167. package/dist/client/node_modules/compute-scroll-into-view/package.json +0 -82
  168. package/dist/client/node_modules/confbox/dist/_chunks/_format.d.mts +0 -25
  169. package/dist/client/node_modules/confbox/dist/index.d.mts +0 -34
  170. package/dist/client/node_modules/confbox/dist/ini.d.mts +0 -62
  171. package/dist/client/node_modules/confbox/dist/json5.d.mts +0 -59
  172. package/dist/client/node_modules/confbox/dist/jsonc.d.mts +0 -41
  173. package/dist/client/node_modules/confbox/dist/toml.d.mts +0 -23
  174. package/dist/client/node_modules/confbox/dist/yaml.d.mts +0 -96
  175. package/dist/client/node_modules/confbox/package.json +0 -67
  176. package/dist/client/node_modules/csstype/index.d.ts +0 -22569
  177. package/dist/client/node_modules/csstype/package.json +0 -70
  178. package/dist/client/node_modules/entities/decode.d.ts +0 -3
  179. package/dist/client/node_modules/entities/dist/commonjs/decode-codepoint.d.ts +0 -19
  180. package/dist/client/node_modules/entities/dist/commonjs/decode.d.ts +0 -205
  181. package/dist/client/node_modules/entities/dist/commonjs/encode.d.ts +0 -22
  182. package/dist/client/node_modules/entities/dist/commonjs/escape.d.ts +0 -46
  183. package/dist/client/node_modules/entities/dist/commonjs/generated/decode-data-html.d.ts +0 -2
  184. package/dist/client/node_modules/entities/dist/commonjs/generated/decode-data-xml.d.ts +0 -2
  185. package/dist/client/node_modules/entities/dist/commonjs/generated/encode-html.d.ts +0 -3
  186. package/dist/client/node_modules/entities/dist/commonjs/index.d.ts +0 -96
  187. package/dist/client/node_modules/entities/dist/commonjs/internal/bin-trie-flags.d.ts +0 -17
  188. package/dist/client/node_modules/entities/dist/commonjs/internal/decode-shared.d.ts +0 -2
  189. package/dist/client/node_modules/entities/dist/commonjs/internal/encode-shared.d.ts +0 -32
  190. package/dist/client/node_modules/entities/dist/commonjs/package.json +0 -3
  191. package/dist/client/node_modules/entities/dist/esm/decode-codepoint.d.ts +0 -19
  192. package/dist/client/node_modules/entities/dist/esm/decode.d.ts +0 -205
  193. package/dist/client/node_modules/entities/dist/esm/encode.d.ts +0 -22
  194. package/dist/client/node_modules/entities/dist/esm/escape.d.ts +0 -46
  195. package/dist/client/node_modules/entities/dist/esm/generated/decode-data-html.d.ts +0 -2
  196. package/dist/client/node_modules/entities/dist/esm/generated/decode-data-xml.d.ts +0 -2
  197. package/dist/client/node_modules/entities/dist/esm/generated/encode-html.d.ts +0 -3
  198. package/dist/client/node_modules/entities/dist/esm/index.d.ts +0 -96
  199. package/dist/client/node_modules/entities/dist/esm/internal/bin-trie-flags.d.ts +0 -17
  200. package/dist/client/node_modules/entities/dist/esm/internal/decode-shared.d.ts +0 -2
  201. package/dist/client/node_modules/entities/dist/esm/internal/encode-shared.d.ts +0 -32
  202. package/dist/client/node_modules/entities/dist/esm/package.json +0 -3
  203. package/dist/client/node_modules/entities/escape.d.ts +0 -3
  204. package/dist/client/node_modules/entities/package.json +0 -120
  205. package/dist/client/node_modules/estree-walker/dist/esm/package.json +0 -1
  206. package/dist/client/node_modules/estree-walker/package.json +0 -37
  207. package/dist/client/node_modules/estree-walker/src/package.json +0 -1
  208. package/dist/client/node_modules/estree-walker/types/async.d.ts +0 -53
  209. package/dist/client/node_modules/estree-walker/types/index.d.ts +0 -56
  210. package/dist/client/node_modules/estree-walker/types/sync.d.ts +0 -53
  211. package/dist/client/node_modules/estree-walker/types/walker.d.ts +0 -37
  212. package/dist/client/node_modules/exsolve/dist/index.d.mts +0 -66
  213. package/dist/client/node_modules/exsolve/package.json +0 -42
  214. package/dist/client/node_modules/fdir/dist/index.d.mts +0 -155
  215. package/dist/client/node_modules/fdir/package.json +0 -103
  216. package/dist/client/node_modules/floating-vue/dist/components/Dropdown.d.ts +0 -398
  217. package/dist/client/node_modules/floating-vue/dist/components/Menu.d.ts +0 -398
  218. package/dist/client/node_modules/floating-vue/dist/components/Popper.d.ts +0 -495
  219. package/dist/client/node_modules/floating-vue/dist/components/Popper.vue.d.ts +0 -474
  220. package/dist/client/node_modules/floating-vue/dist/components/PopperContent.vue.d.ts +0 -37
  221. package/dist/client/node_modules/floating-vue/dist/components/PopperMethods.d.ts +0 -9
  222. package/dist/client/node_modules/floating-vue/dist/components/PopperWrapper.vue.d.ts +0 -414
  223. package/dist/client/node_modules/floating-vue/dist/components/ThemeClass.d.ts +0 -6
  224. package/dist/client/node_modules/floating-vue/dist/components/Tooltip.d.ts +0 -398
  225. package/dist/client/node_modules/floating-vue/dist/components/TooltipDirective.vue.d.ts +0 -67
  226. package/dist/client/node_modules/floating-vue/dist/config.d.ts +0 -11
  227. package/dist/client/node_modules/floating-vue/dist/directives/v-close-popper.d.ts +0 -13
  228. package/dist/client/node_modules/floating-vue/dist/directives/v-tooltip.d.ts +0 -27
  229. package/dist/client/node_modules/floating-vue/dist/directives/v-tooltip.spec.d.ts +0 -1
  230. package/dist/client/node_modules/floating-vue/dist/index.d.ts +0 -2239
  231. package/dist/client/node_modules/floating-vue/dist/util/assign-deep.d.ts +0 -1
  232. package/dist/client/node_modules/floating-vue/dist/util/env.d.ts +0 -2
  233. package/dist/client/node_modules/floating-vue/dist/util/events.d.ts +0 -14
  234. package/dist/client/node_modules/floating-vue/dist/util/frame.d.ts +0 -1
  235. package/dist/client/node_modules/floating-vue/dist/util/lang.d.ts +0 -1
  236. package/dist/client/node_modules/floating-vue/dist/util/popper.d.ts +0 -3
  237. package/dist/client/node_modules/floating-vue/package.json +0 -80
  238. package/dist/client/node_modules/hookable/dist/index.d.ts +0 -103
  239. package/dist/client/node_modules/hookable/package.json +0 -49
  240. package/dist/client/node_modules/local-pkg/dist/index.d.mts +0 -42
  241. package/dist/client/node_modules/local-pkg/dist/index.d.ts +0 -42
  242. package/dist/client/node_modules/local-pkg/package.json +0 -65
  243. package/dist/client/node_modules/magic-string/dist/magic-string.cjs.d.ts +0 -289
  244. package/dist/client/node_modules/magic-string/dist/magic-string.es.d.mts +0 -289
  245. package/dist/client/node_modules/magic-string/package.json +0 -67
  246. package/dist/client/node_modules/magic-string-ast/dist/index.d.ts +0 -67
  247. package/dist/client/node_modules/magic-string-ast/package.json +0 -64
  248. package/dist/client/node_modules/mlly/dist/index.d.mts +0 -564
  249. package/dist/client/node_modules/mlly/dist/index.d.ts +0 -564
  250. package/dist/client/node_modules/mlly/node_modules/confbox/dist/index.d.mts +0 -32
  251. package/dist/client/node_modules/mlly/node_modules/confbox/dist/index.d.ts +0 -32
  252. package/dist/client/node_modules/mlly/node_modules/confbox/dist/json5.d.mts +0 -58
  253. package/dist/client/node_modules/mlly/node_modules/confbox/dist/json5.d.ts +0 -58
  254. package/dist/client/node_modules/mlly/node_modules/confbox/dist/jsonc.d.mts +0 -41
  255. package/dist/client/node_modules/mlly/node_modules/confbox/dist/jsonc.d.ts +0 -41
  256. package/dist/client/node_modules/mlly/node_modules/confbox/dist/shared/confbox.9745c98f.d.mts +0 -24
  257. package/dist/client/node_modules/mlly/node_modules/confbox/dist/shared/confbox.9745c98f.d.ts +0 -24
  258. package/dist/client/node_modules/mlly/node_modules/confbox/dist/toml.d.mts +0 -22
  259. package/dist/client/node_modules/mlly/node_modules/confbox/dist/toml.d.ts +0 -22
  260. package/dist/client/node_modules/mlly/node_modules/confbox/dist/yaml.d.mts +0 -95
  261. package/dist/client/node_modules/mlly/node_modules/confbox/dist/yaml.d.ts +0 -95
  262. package/dist/client/node_modules/mlly/node_modules/confbox/json5.d.ts +0 -2
  263. package/dist/client/node_modules/mlly/node_modules/confbox/jsonc.d.ts +0 -2
  264. package/dist/client/node_modules/mlly/node_modules/confbox/package.json +0 -86
  265. package/dist/client/node_modules/mlly/node_modules/confbox/toml.d.ts +0 -2
  266. package/dist/client/node_modules/mlly/node_modules/confbox/yaml.d.ts +0 -2
  267. package/dist/client/node_modules/mlly/node_modules/pkg-types/dist/index.d.mts +0 -411
  268. package/dist/client/node_modules/mlly/node_modules/pkg-types/dist/index.d.ts +0 -411
  269. package/dist/client/node_modules/mlly/node_modules/pkg-types/package.json +0 -47
  270. package/dist/client/node_modules/mlly/package.json +0 -55
  271. package/dist/client/node_modules/muggle-string/out/base.d.ts +0 -6
  272. package/dist/client/node_modules/muggle-string/out/basic.d.ts +0 -6
  273. package/dist/client/node_modules/muggle-string/out/binarySearch.d.ts +0 -1
  274. package/dist/client/node_modules/muggle-string/out/common.d.ts +0 -9
  275. package/dist/client/node_modules/muggle-string/out/getLength.d.ts +0 -2
  276. package/dist/client/node_modules/muggle-string/out/index.d.ts +0 -10
  277. package/dist/client/node_modules/muggle-string/out/map.d.ts +0 -3
  278. package/dist/client/node_modules/muggle-string/out/overwriteSource.d.ts +0 -3
  279. package/dist/client/node_modules/muggle-string/out/replace.d.ts +0 -3
  280. package/dist/client/node_modules/muggle-string/out/segment.d.ts +0 -6
  281. package/dist/client/node_modules/muggle-string/out/sourceBased.d.ts +0 -3
  282. package/dist/client/node_modules/muggle-string/out/toString.d.ts +0 -2
  283. package/dist/client/node_modules/muggle-string/out/track.d.ts +0 -6
  284. package/dist/client/node_modules/muggle-string/out/types.d.ts +0 -16
  285. package/dist/client/node_modules/muggle-string/package.json +0 -22
  286. package/dist/client/node_modules/nanoid/async/index.d.ts +0 -56
  287. package/dist/client/node_modules/nanoid/async/package.json +0 -12
  288. package/dist/client/node_modules/nanoid/index.d.ts +0 -91
  289. package/dist/client/node_modules/nanoid/non-secure/index.d.ts +0 -33
  290. package/dist/client/node_modules/nanoid/non-secure/package.json +0 -6
  291. package/dist/client/node_modules/nanoid/package.json +0 -89
  292. package/dist/client/node_modules/nanoid/url-alphabet/package.json +0 -6
  293. package/dist/client/node_modules/nostics/dist/diagnostic-wduO7saY.d.mts +0 -295
  294. package/dist/client/node_modules/nostics/dist/formatters/ansi.d.mts +0 -15
  295. package/dist/client/node_modules/nostics/dist/formatters/json.d.mts +0 -7
  296. package/dist/client/node_modules/nostics/dist/index.d.mts +0 -51
  297. package/dist/client/node_modules/nostics/dist/reporters/dev.d.mts +0 -13
  298. package/dist/client/node_modules/nostics/dist/reporters/fetch.d.mts +0 -11
  299. package/dist/client/node_modules/nostics/dist/reporters/node.d.mts +0 -43
  300. package/dist/client/node_modules/nostics/package.json +0 -125
  301. package/dist/client/node_modules/pathe/dist/index.d.mts +0 -47
  302. package/dist/client/node_modules/pathe/dist/index.d.ts +0 -47
  303. package/dist/client/node_modules/pathe/dist/utils.d.mts +0 -32
  304. package/dist/client/node_modules/pathe/dist/utils.d.ts +0 -32
  305. package/dist/client/node_modules/pathe/package.json +0 -61
  306. package/dist/client/node_modules/pathe/utils.d.ts +0 -1
  307. package/dist/client/node_modules/perfect-debounce/dist/index.d.mts +0 -49
  308. package/dist/client/node_modules/perfect-debounce/package.json +0 -41
  309. package/dist/client/node_modules/picocolors/package.json +0 -25
  310. package/dist/client/node_modules/picocolors/picocolors.d.ts +0 -5
  311. package/dist/client/node_modules/picocolors/types.d.ts +0 -51
  312. package/dist/client/node_modules/picomatch/package.json +0 -83
  313. package/dist/client/node_modules/pinia/dist/pinia.d.ts +0 -955
  314. package/dist/client/node_modules/pinia/package.json +0 -82
  315. package/dist/client/node_modules/pkg-types/dist/index.d.mts +0 -695
  316. package/dist/client/node_modules/pkg-types/node_modules/confbox/dist/_chunks/_format.d.mts +0 -22
  317. package/dist/client/node_modules/pkg-types/node_modules/confbox/dist/_chunks/libs/js-yaml.d.mts +0 -33
  318. package/dist/client/node_modules/pkg-types/node_modules/confbox/dist/index.d.mts +0 -7
  319. package/dist/client/node_modules/pkg-types/node_modules/confbox/dist/ini.d.mts +0 -59
  320. package/dist/client/node_modules/pkg-types/node_modules/confbox/dist/json.d.mts +0 -25
  321. package/dist/client/node_modules/pkg-types/node_modules/confbox/dist/json5.d.mts +0 -55
  322. package/dist/client/node_modules/pkg-types/node_modules/confbox/dist/jsonc.d.mts +0 -29
  323. package/dist/client/node_modules/pkg-types/node_modules/confbox/dist/toml.d.mts +0 -20
  324. package/dist/client/node_modules/pkg-types/node_modules/confbox/dist/yaml.d.mts +0 -101
  325. package/dist/client/node_modules/pkg-types/node_modules/confbox/package.json +0 -68
  326. package/dist/client/node_modules/pkg-types/package.json +0 -47
  327. package/dist/client/node_modules/postcss/lib/at-rule.d.ts +0 -139
  328. package/dist/client/node_modules/postcss/lib/comment.d.ts +0 -67
  329. package/dist/client/node_modules/postcss/lib/container.d.ts +0 -474
  330. package/dist/client/node_modules/postcss/lib/css-syntax-error.d.ts +0 -247
  331. package/dist/client/node_modules/postcss/lib/declaration.d.ts +0 -150
  332. package/dist/client/node_modules/postcss/lib/document.d.ts +0 -68
  333. package/dist/client/node_modules/postcss/lib/fromJSON.d.ts +0 -9
  334. package/dist/client/node_modules/postcss/lib/input.d.ts +0 -226
  335. package/dist/client/node_modules/postcss/lib/lazy-result.d.ts +0 -189
  336. package/dist/client/node_modules/postcss/lib/list.d.ts +0 -60
  337. package/dist/client/node_modules/postcss/lib/no-work-result.d.ts +0 -45
  338. package/dist/client/node_modules/postcss/lib/node.d.ts +0 -555
  339. package/dist/client/node_modules/postcss/lib/parse.d.ts +0 -9
  340. package/dist/client/node_modules/postcss/lib/postcss.d.mts +0 -66
  341. package/dist/client/node_modules/postcss/lib/postcss.d.ts +0 -464
  342. package/dist/client/node_modules/postcss/lib/previous-map.d.ts +0 -80
  343. package/dist/client/node_modules/postcss/lib/processor.d.ts +0 -114
  344. package/dist/client/node_modules/postcss/lib/result.d.ts +0 -204
  345. package/dist/client/node_modules/postcss/lib/root.d.ts +0 -86
  346. package/dist/client/node_modules/postcss/lib/rule.d.ts +0 -126
  347. package/dist/client/node_modules/postcss/lib/stringifier.d.ts +0 -45
  348. package/dist/client/node_modules/postcss/lib/stringify.d.ts +0 -9
  349. package/dist/client/node_modules/postcss/lib/warning.d.ts +0 -146
  350. package/dist/client/node_modules/postcss/package.json +0 -88
  351. package/dist/client/node_modules/quansync/dist/index.d.mts +0 -22
  352. package/dist/client/node_modules/quansync/dist/index.d.ts +0 -22
  353. package/dist/client/node_modules/quansync/dist/macro.d.mts +0 -18
  354. package/dist/client/node_modules/quansync/dist/macro.d.ts +0 -18
  355. package/dist/client/node_modules/quansync/dist/types.d.mts +0 -27
  356. package/dist/client/node_modules/quansync/dist/types.d.ts +0 -27
  357. package/dist/client/node_modules/quansync/package.json +0 -95
  358. package/dist/client/node_modules/readdirp/index.d.ts +0 -117
  359. package/dist/client/node_modules/readdirp/package.json +0 -62
  360. package/dist/client/node_modules/scroll-into-view-if-needed/dist/index.d.ts +0 -79
  361. package/dist/client/node_modules/scroll-into-view-if-needed/package.json +0 -80
  362. package/dist/client/node_modules/scule/dist/index.d.mts +0 -57
  363. package/dist/client/node_modules/scule/dist/index.d.ts +0 -57
  364. package/dist/client/node_modules/scule/package.json +0 -43
  365. package/dist/client/node_modules/source-map-js/lib/source-map-consumer.d.ts +0 -1
  366. package/dist/client/node_modules/source-map-js/lib/source-map-generator.d.ts +0 -1
  367. package/dist/client/node_modules/source-map-js/lib/source-node.d.ts +0 -1
  368. package/dist/client/node_modules/source-map-js/package.json +0 -71
  369. package/dist/client/node_modules/source-map-js/source-map.d.ts +0 -104
  370. package/dist/client/node_modules/tinyglobby/dist/index.d.mts +0 -148
  371. package/dist/client/node_modules/tinyglobby/package.json +0 -70
  372. package/dist/client/node_modules/ufo/dist/index.d.mts +0 -714
  373. package/dist/client/node_modules/ufo/dist/index.d.ts +0 -714
  374. package/dist/client/node_modules/ufo/package.json +0 -48
  375. package/dist/client/node_modules/unplugin/dist/index.d.mts +0 -241
  376. package/dist/client/node_modules/unplugin/dist/rspack/loaders/load.d.mts +0 -4
  377. package/dist/client/node_modules/unplugin/dist/rspack/loaders/transform.d.mts +0 -4
  378. package/dist/client/node_modules/unplugin/dist/webpack/loaders/load.d.mts +0 -4
  379. package/dist/client/node_modules/unplugin/dist/webpack/loaders/transform.d.mts +0 -4
  380. package/dist/client/node_modules/unplugin/package.json +0 -146
  381. package/dist/client/node_modules/unplugin-utils/dist/index.d.ts +0 -31
  382. package/dist/client/node_modules/unplugin-utils/package.json +0 -61
  383. package/dist/client/node_modules/vue/compiler-sfc/index.d.mts +0 -1
  384. package/dist/client/node_modules/vue/compiler-sfc/index.d.ts +0 -1
  385. package/dist/client/node_modules/vue/compiler-sfc/package.json +0 -4
  386. package/dist/client/node_modules/vue/dist/vue.d.mts +0 -7
  387. package/dist/client/node_modules/vue/dist/vue.d.ts +0 -7
  388. package/dist/client/node_modules/vue/jsx-runtime/index.d.ts +0 -25
  389. package/dist/client/node_modules/vue/jsx-runtime/package.json +0 -5
  390. package/dist/client/node_modules/vue/jsx.d.ts +0 -22
  391. package/dist/client/node_modules/vue/package.json +0 -112
  392. package/dist/client/node_modules/vue/server-renderer/index.d.mts +0 -1
  393. package/dist/client/node_modules/vue/server-renderer/index.d.ts +0 -1
  394. package/dist/client/node_modules/vue/server-renderer/package.json +0 -4
  395. package/dist/client/node_modules/vue-resize/package.json +0 -77
  396. package/dist/client/node_modules/vue-router/dist/experimental/index.d.ts +0 -7
  397. package/dist/client/node_modules/vue-router/dist/experimental/pinia-colada.d.ts +0 -151
  398. package/dist/client/node_modules/vue-router/dist/index-D7ja2BKs.d.ts +0 -3293
  399. package/dist/client/node_modules/vue-router/dist/options-CwYZKRl4.d.mts +0 -2923
  400. package/dist/client/node_modules/vue-router/dist/unplugin/esbuild.d.mts +0 -10
  401. package/dist/client/node_modules/vue-router/dist/unplugin/index.d.mts +0 -62
  402. package/dist/client/node_modules/vue-router/dist/unplugin/options.d.mts +0 -7
  403. package/dist/client/node_modules/vue-router/dist/unplugin/rolldown.d.mts +0 -10
  404. package/dist/client/node_modules/vue-router/dist/unplugin/rollup.d.mts +0 -10
  405. package/dist/client/node_modules/vue-router/dist/unplugin/types.d.mts +0 -7
  406. package/dist/client/node_modules/vue-router/dist/unplugin/vite.d.mts +0 -10
  407. package/dist/client/node_modules/vue-router/dist/unplugin/webpack.d.mts +0 -10
  408. package/dist/client/node_modules/vue-router/dist/vue-router.d.ts +0 -7
  409. package/dist/client/node_modules/vue-router/package.json +0 -211
  410. package/dist/client/node_modules/vue-router/vue-router-auto-resolver.d.mts +0 -27
  411. package/dist/client/node_modules/vue-router/vue-router-auto-routes.d.mts +0 -53
  412. package/dist/client/node_modules/vue-router/vue-router-auto.d.ts +0 -2
  413. package/dist/client/node_modules/webpack-virtual-modules/lib/index.d.ts +0 -15
  414. package/dist/client/node_modules/webpack-virtual-modules/lib/virtual-stats.d.ts +0 -11
  415. package/dist/client/node_modules/webpack-virtual-modules/package.json +0 -82
  416. package/dist/client/vue.runtime.esm-bundler.js +0 -13389
  417. package/src/client/b-floating-vue.ts +0 -5
  418. package/src/client/b-iconify.ts +0 -1
  419. package/src/client/b-pinia.ts +0 -1
  420. package/src/client/b-scroll.ts +0 -4
  421. package/src/client/b-vue-router.ts +0 -1
  422. package/src/client/b-vue-use.ts +0 -1
  423. package/src/client/b-vue.ts +0 -1
@@ -1,215 +0,0 @@
1
- type ArgumentsType<T> = T extends (...args: infer A) => any ? A : never;
2
- type ReturnType<T> = T extends (...args: any) => infer R ? R : never;
3
- type PromisifyFn<T> = ReturnType<T> extends Promise<any> ? T : (...args: ArgumentsType<T>) => Promise<Awaited<ReturnType<T>>>;
4
- type Thenable<T> = T | PromiseLike<T>;
5
- type BirpcResolver<This> = (this: This, name: string, resolved: (...args: unknown[]) => unknown) => Thenable<((...args: any[]) => any) | undefined>;
6
- interface ChannelOptions {
7
- /**
8
- * Function to post raw message
9
- */
10
- post: (data: any, ...extras: any[]) => any | Promise<any>;
11
- /**
12
- * Listener to receive raw message
13
- */
14
- on: (fn: (data: any, ...extras: any[]) => void) => any | Promise<any>;
15
- /**
16
- * Clear the listener when `$close` is called
17
- */
18
- off?: (fn: (data: any, ...extras: any[]) => void) => any | Promise<any>;
19
- /**
20
- * Custom function to serialize data
21
- *
22
- * by default it passes the data as-is
23
- */
24
- serialize?: (data: any) => any;
25
- /**
26
- * Custom function to deserialize data
27
- *
28
- * by default it passes the data as-is
29
- */
30
- deserialize?: (data: any) => any;
31
- /**
32
- * Call the methods with the RPC context or the original functions object
33
- */
34
- bind?: 'rpc' | 'functions';
35
- /**
36
- * Custom meta data to attached to the RPC instance's `$meta` property
37
- */
38
- meta?: any;
39
- }
40
- interface EventOptions<RemoteFunctions, LocalFunctions extends object = Record<string, never>> {
41
- /**
42
- * Names of remote functions that do not need response.
43
- */
44
- eventNames?: (keyof RemoteFunctions)[];
45
- /**
46
- * Maximum timeout for waiting for response, in milliseconds.
47
- *
48
- * @default 60_000
49
- */
50
- timeout?: number;
51
- /**
52
- * Custom resolver to resolve function to be called
53
- *
54
- * For advanced use cases only
55
- */
56
- resolver?: BirpcResolver<BirpcReturn<RemoteFunctions, LocalFunctions>>;
57
- /**
58
- * Hook triggered before an event is sent to the remote
59
- *
60
- * @param req - Request parameters
61
- * @param next - Function to continue the request
62
- * @param resolve - Function to resolve the response directly
63
- */
64
- onRequest?: (this: BirpcReturn<RemoteFunctions, LocalFunctions>, req: Request, next: (req?: Request) => Promise<any>, resolve: (res: any) => void) => void | Promise<void>;
65
- /**
66
- * Custom error handler
67
- *
68
- * @deprecated use `onFunctionError` and `onGeneralError` instead
69
- */
70
- onError?: (this: BirpcReturn<RemoteFunctions, LocalFunctions>, error: Error, functionName: string, args: any[]) => boolean | void;
71
- /**
72
- * Custom error handler for errors occurred in local functions being called
73
- *
74
- * @returns `true` to prevent the error from being thrown
75
- */
76
- onFunctionError?: (this: BirpcReturn<RemoteFunctions, LocalFunctions>, error: Error, functionName: string, args: any[]) => boolean | void;
77
- /**
78
- * Custom error handler for errors occurred during serialization or messsaging
79
- *
80
- * @returns `true` to prevent the error from being thrown
81
- */
82
- onGeneralError?: (this: BirpcReturn<RemoteFunctions, LocalFunctions>, error: Error, functionName?: string, args?: any[]) => boolean | void;
83
- /**
84
- * Custom error handler for timeouts
85
- *
86
- * @returns `true` to prevent the error from being thrown
87
- */
88
- onTimeoutError?: (this: BirpcReturn<RemoteFunctions, LocalFunctions>, functionName: string, args: any[]) => boolean | void;
89
- }
90
- type BirpcOptions<RemoteFunctions, LocalFunctions extends object = Record<string, never>> = EventOptions<RemoteFunctions, LocalFunctions> & ChannelOptions;
91
- type BirpcFn<T> = PromisifyFn<T> & {
92
- /**
93
- * Send event without asking for response
94
- */
95
- asEvent: (...args: ArgumentsType<T>) => Promise<void>;
96
- };
97
- interface BirpcGroupFn<T> {
98
- /**
99
- * Call the remote function and wait for the result.
100
- */
101
- (...args: ArgumentsType<T>): Promise<Awaited<ReturnType<T>>[]>;
102
- /**
103
- * Send event without asking for response
104
- */
105
- asEvent: (...args: ArgumentsType<T>) => Promise<void>;
106
- }
107
- interface BirpcReturnBuiltin<RemoteFunctions, LocalFunctions = Record<string, never>> {
108
- /**
109
- * Raw functions object
110
- */
111
- $functions: LocalFunctions;
112
- /**
113
- * Whether the RPC is closed
114
- */
115
- readonly $closed: boolean;
116
- /**
117
- * Custom meta data attached to the RPC instance
118
- */
119
- readonly $meta: any;
120
- /**
121
- * Close the RPC connection
122
- */
123
- $close: (error?: Error) => void;
124
- /**
125
- * Reject pending calls
126
- */
127
- $rejectPendingCalls: (handler?: PendingCallHandler) => Promise<void>[];
128
- /**
129
- * Call the remote function and wait for the result.
130
- * An alternative to directly calling the function
131
- */
132
- $call: <K extends keyof RemoteFunctions>(method: K, ...args: ArgumentsType<RemoteFunctions[K]>) => Promise<Awaited<ReturnType<RemoteFunctions[K]>>>;
133
- /**
134
- * Same as `$call`, but returns `undefined` if the function is not defined on the remote side.
135
- */
136
- $callOptional: <K extends keyof RemoteFunctions>(method: K, ...args: ArgumentsType<RemoteFunctions[K]>) => Promise<Awaited<ReturnType<RemoteFunctions[K]> | undefined>>;
137
- /**
138
- * Send event without asking for response
139
- */
140
- $callEvent: <K extends keyof RemoteFunctions>(method: K, ...args: ArgumentsType<RemoteFunctions[K]>) => Promise<void>;
141
- /**
142
- * Call the remote function with the raw options.
143
- */
144
- $callRaw: (options: {
145
- method: string;
146
- args: unknown[];
147
- event?: boolean;
148
- optional?: boolean;
149
- }) => Promise<Awaited<ReturnType<any>>[]>;
150
- }
151
- type BirpcReturn<RemoteFunctions, LocalFunctions = Record<string, never>> = {
152
- [K in keyof RemoteFunctions]: BirpcFn<RemoteFunctions[K]>;
153
- } & BirpcReturnBuiltin<RemoteFunctions, LocalFunctions>;
154
- type PendingCallHandler = (options: Pick<PromiseEntry, 'method' | 'reject'>) => void | Promise<void>;
155
- interface BirpcGroupReturnBuiltin<RemoteFunctions> {
156
- /**
157
- * Call the remote function and wait for the result.
158
- * An alternative to directly calling the function
159
- */
160
- $call: <K extends keyof RemoteFunctions>(method: K, ...args: ArgumentsType<RemoteFunctions[K]>) => Promise<Awaited<ReturnType<RemoteFunctions[K]>>>;
161
- /**
162
- * Same as `$call`, but returns `undefined` if the function is not defined on the remote side.
163
- */
164
- $callOptional: <K extends keyof RemoteFunctions>(method: K, ...args: ArgumentsType<RemoteFunctions[K]>) => Promise<Awaited<ReturnType<RemoteFunctions[K]> | undefined>>;
165
- /**
166
- * Send event without asking for response
167
- */
168
- $callEvent: <K extends keyof RemoteFunctions>(method: K, ...args: ArgumentsType<RemoteFunctions[K]>) => Promise<void>;
169
- }
170
- type BirpcGroupReturn<RemoteFunctions> = {
171
- [K in keyof RemoteFunctions]: BirpcGroupFn<RemoteFunctions[K]>;
172
- } & BirpcGroupReturnBuiltin<RemoteFunctions>;
173
- interface BirpcGroup<RemoteFunctions, LocalFunctions = Record<string, never>> {
174
- readonly clients: BirpcReturn<RemoteFunctions, LocalFunctions>[];
175
- readonly functions: LocalFunctions;
176
- readonly broadcast: BirpcGroupReturn<RemoteFunctions>;
177
- updateChannels: (fn?: ((channels: ChannelOptions[]) => void)) => BirpcReturn<RemoteFunctions, LocalFunctions>[];
178
- }
179
- interface PromiseEntry {
180
- resolve: (arg: any) => void;
181
- reject: (error: any) => void;
182
- method: string;
183
- timeoutId?: ReturnType<typeof setTimeout>;
184
- }
185
- declare const TYPE_REQUEST: "q";
186
- interface Request {
187
- /**
188
- * Type
189
- */
190
- t: typeof TYPE_REQUEST;
191
- /**
192
- * ID
193
- */
194
- i?: string;
195
- /**
196
- * Method
197
- */
198
- m: string;
199
- /**
200
- * Arguments
201
- */
202
- a: any[];
203
- /**
204
- * Optional
205
- */
206
- o?: boolean;
207
- }
208
- declare const DEFAULT_TIMEOUT = 60000;
209
- declare const setTimeout: typeof globalThis.setTimeout;
210
- declare function createBirpc<RemoteFunctions = Record<string, never>, LocalFunctions extends object = Record<string, never>>($functions: LocalFunctions, options: BirpcOptions<RemoteFunctions, LocalFunctions>): BirpcReturn<RemoteFunctions, LocalFunctions>;
211
- declare function cachedMap<T, R>(items: T[], fn: ((i: T) => R)): R[];
212
- declare function createBirpcGroup<RemoteFunctions = Record<string, never>, LocalFunctions extends object = Record<string, never>>(functions: LocalFunctions, channels: ChannelOptions[] | (() => ChannelOptions[]), options?: EventOptions<RemoteFunctions, LocalFunctions>): BirpcGroup<RemoteFunctions, LocalFunctions>;
213
-
214
- export { DEFAULT_TIMEOUT, cachedMap, createBirpc, createBirpcGroup };
215
- export type { ArgumentsType, BirpcFn, BirpcGroup, BirpcGroupFn, BirpcGroupReturn, BirpcGroupReturnBuiltin, BirpcOptions, BirpcResolver, BirpcReturn, BirpcReturnBuiltin, ChannelOptions, EventOptions, PromisifyFn, ReturnType, Thenable };
@@ -1,215 +0,0 @@
1
- type ArgumentsType<T> = T extends (...args: infer A) => any ? A : never;
2
- type ReturnType<T> = T extends (...args: any) => infer R ? R : never;
3
- type PromisifyFn<T> = ReturnType<T> extends Promise<any> ? T : (...args: ArgumentsType<T>) => Promise<Awaited<ReturnType<T>>>;
4
- type Thenable<T> = T | PromiseLike<T>;
5
- type BirpcResolver<This> = (this: This, name: string, resolved: (...args: unknown[]) => unknown) => Thenable<((...args: any[]) => any) | undefined>;
6
- interface ChannelOptions {
7
- /**
8
- * Function to post raw message
9
- */
10
- post: (data: any, ...extras: any[]) => any | Promise<any>;
11
- /**
12
- * Listener to receive raw message
13
- */
14
- on: (fn: (data: any, ...extras: any[]) => void) => any | Promise<any>;
15
- /**
16
- * Clear the listener when `$close` is called
17
- */
18
- off?: (fn: (data: any, ...extras: any[]) => void) => any | Promise<any>;
19
- /**
20
- * Custom function to serialize data
21
- *
22
- * by default it passes the data as-is
23
- */
24
- serialize?: (data: any) => any;
25
- /**
26
- * Custom function to deserialize data
27
- *
28
- * by default it passes the data as-is
29
- */
30
- deserialize?: (data: any) => any;
31
- /**
32
- * Call the methods with the RPC context or the original functions object
33
- */
34
- bind?: 'rpc' | 'functions';
35
- /**
36
- * Custom meta data to attached to the RPC instance's `$meta` property
37
- */
38
- meta?: any;
39
- }
40
- interface EventOptions<RemoteFunctions, LocalFunctions extends object = Record<string, never>> {
41
- /**
42
- * Names of remote functions that do not need response.
43
- */
44
- eventNames?: (keyof RemoteFunctions)[];
45
- /**
46
- * Maximum timeout for waiting for response, in milliseconds.
47
- *
48
- * @default 60_000
49
- */
50
- timeout?: number;
51
- /**
52
- * Custom resolver to resolve function to be called
53
- *
54
- * For advanced use cases only
55
- */
56
- resolver?: BirpcResolver<BirpcReturn<RemoteFunctions, LocalFunctions>>;
57
- /**
58
- * Hook triggered before an event is sent to the remote
59
- *
60
- * @param req - Request parameters
61
- * @param next - Function to continue the request
62
- * @param resolve - Function to resolve the response directly
63
- */
64
- onRequest?: (this: BirpcReturn<RemoteFunctions, LocalFunctions>, req: Request, next: (req?: Request) => Promise<any>, resolve: (res: any) => void) => void | Promise<void>;
65
- /**
66
- * Custom error handler
67
- *
68
- * @deprecated use `onFunctionError` and `onGeneralError` instead
69
- */
70
- onError?: (this: BirpcReturn<RemoteFunctions, LocalFunctions>, error: Error, functionName: string, args: any[]) => boolean | void;
71
- /**
72
- * Custom error handler for errors occurred in local functions being called
73
- *
74
- * @returns `true` to prevent the error from being thrown
75
- */
76
- onFunctionError?: (this: BirpcReturn<RemoteFunctions, LocalFunctions>, error: Error, functionName: string, args: any[]) => boolean | void;
77
- /**
78
- * Custom error handler for errors occurred during serialization or messsaging
79
- *
80
- * @returns `true` to prevent the error from being thrown
81
- */
82
- onGeneralError?: (this: BirpcReturn<RemoteFunctions, LocalFunctions>, error: Error, functionName?: string, args?: any[]) => boolean | void;
83
- /**
84
- * Custom error handler for timeouts
85
- *
86
- * @returns `true` to prevent the error from being thrown
87
- */
88
- onTimeoutError?: (this: BirpcReturn<RemoteFunctions, LocalFunctions>, functionName: string, args: any[]) => boolean | void;
89
- }
90
- type BirpcOptions<RemoteFunctions, LocalFunctions extends object = Record<string, never>> = EventOptions<RemoteFunctions, LocalFunctions> & ChannelOptions;
91
- type BirpcFn<T> = PromisifyFn<T> & {
92
- /**
93
- * Send event without asking for response
94
- */
95
- asEvent: (...args: ArgumentsType<T>) => Promise<void>;
96
- };
97
- interface BirpcGroupFn<T> {
98
- /**
99
- * Call the remote function and wait for the result.
100
- */
101
- (...args: ArgumentsType<T>): Promise<Awaited<ReturnType<T>>[]>;
102
- /**
103
- * Send event without asking for response
104
- */
105
- asEvent: (...args: ArgumentsType<T>) => Promise<void>;
106
- }
107
- interface BirpcReturnBuiltin<RemoteFunctions, LocalFunctions = Record<string, never>> {
108
- /**
109
- * Raw functions object
110
- */
111
- $functions: LocalFunctions;
112
- /**
113
- * Whether the RPC is closed
114
- */
115
- readonly $closed: boolean;
116
- /**
117
- * Custom meta data attached to the RPC instance
118
- */
119
- readonly $meta: any;
120
- /**
121
- * Close the RPC connection
122
- */
123
- $close: (error?: Error) => void;
124
- /**
125
- * Reject pending calls
126
- */
127
- $rejectPendingCalls: (handler?: PendingCallHandler) => Promise<void>[];
128
- /**
129
- * Call the remote function and wait for the result.
130
- * An alternative to directly calling the function
131
- */
132
- $call: <K extends keyof RemoteFunctions>(method: K, ...args: ArgumentsType<RemoteFunctions[K]>) => Promise<Awaited<ReturnType<RemoteFunctions[K]>>>;
133
- /**
134
- * Same as `$call`, but returns `undefined` if the function is not defined on the remote side.
135
- */
136
- $callOptional: <K extends keyof RemoteFunctions>(method: K, ...args: ArgumentsType<RemoteFunctions[K]>) => Promise<Awaited<ReturnType<RemoteFunctions[K]> | undefined>>;
137
- /**
138
- * Send event without asking for response
139
- */
140
- $callEvent: <K extends keyof RemoteFunctions>(method: K, ...args: ArgumentsType<RemoteFunctions[K]>) => Promise<void>;
141
- /**
142
- * Call the remote function with the raw options.
143
- */
144
- $callRaw: (options: {
145
- method: string;
146
- args: unknown[];
147
- event?: boolean;
148
- optional?: boolean;
149
- }) => Promise<Awaited<ReturnType<any>>[]>;
150
- }
151
- type BirpcReturn<RemoteFunctions, LocalFunctions = Record<string, never>> = {
152
- [K in keyof RemoteFunctions]: BirpcFn<RemoteFunctions[K]>;
153
- } & BirpcReturnBuiltin<RemoteFunctions, LocalFunctions>;
154
- type PendingCallHandler = (options: Pick<PromiseEntry, 'method' | 'reject'>) => void | Promise<void>;
155
- interface BirpcGroupReturnBuiltin<RemoteFunctions> {
156
- /**
157
- * Call the remote function and wait for the result.
158
- * An alternative to directly calling the function
159
- */
160
- $call: <K extends keyof RemoteFunctions>(method: K, ...args: ArgumentsType<RemoteFunctions[K]>) => Promise<Awaited<ReturnType<RemoteFunctions[K]>>>;
161
- /**
162
- * Same as `$call`, but returns `undefined` if the function is not defined on the remote side.
163
- */
164
- $callOptional: <K extends keyof RemoteFunctions>(method: K, ...args: ArgumentsType<RemoteFunctions[K]>) => Promise<Awaited<ReturnType<RemoteFunctions[K]> | undefined>>;
165
- /**
166
- * Send event without asking for response
167
- */
168
- $callEvent: <K extends keyof RemoteFunctions>(method: K, ...args: ArgumentsType<RemoteFunctions[K]>) => Promise<void>;
169
- }
170
- type BirpcGroupReturn<RemoteFunctions> = {
171
- [K in keyof RemoteFunctions]: BirpcGroupFn<RemoteFunctions[K]>;
172
- } & BirpcGroupReturnBuiltin<RemoteFunctions>;
173
- interface BirpcGroup<RemoteFunctions, LocalFunctions = Record<string, never>> {
174
- readonly clients: BirpcReturn<RemoteFunctions, LocalFunctions>[];
175
- readonly functions: LocalFunctions;
176
- readonly broadcast: BirpcGroupReturn<RemoteFunctions>;
177
- updateChannels: (fn?: ((channels: ChannelOptions[]) => void)) => BirpcReturn<RemoteFunctions, LocalFunctions>[];
178
- }
179
- interface PromiseEntry {
180
- resolve: (arg: any) => void;
181
- reject: (error: any) => void;
182
- method: string;
183
- timeoutId?: ReturnType<typeof setTimeout>;
184
- }
185
- declare const TYPE_REQUEST: "q";
186
- interface Request {
187
- /**
188
- * Type
189
- */
190
- t: typeof TYPE_REQUEST;
191
- /**
192
- * ID
193
- */
194
- i?: string;
195
- /**
196
- * Method
197
- */
198
- m: string;
199
- /**
200
- * Arguments
201
- */
202
- a: any[];
203
- /**
204
- * Optional
205
- */
206
- o?: boolean;
207
- }
208
- declare const DEFAULT_TIMEOUT = 60000;
209
- declare const setTimeout: typeof globalThis.setTimeout;
210
- declare function createBirpc<RemoteFunctions = Record<string, never>, LocalFunctions extends object = Record<string, never>>($functions: LocalFunctions, options: BirpcOptions<RemoteFunctions, LocalFunctions>): BirpcReturn<RemoteFunctions, LocalFunctions>;
211
- declare function cachedMap<T, R>(items: T[], fn: ((i: T) => R)): R[];
212
- declare function createBirpcGroup<RemoteFunctions = Record<string, never>, LocalFunctions extends object = Record<string, never>>(functions: LocalFunctions, channels: ChannelOptions[] | (() => ChannelOptions[]), options?: EventOptions<RemoteFunctions, LocalFunctions>): BirpcGroup<RemoteFunctions, LocalFunctions>;
213
-
214
- export { DEFAULT_TIMEOUT, cachedMap, createBirpc, createBirpcGroup };
215
- export type { ArgumentsType, BirpcFn, BirpcGroup, BirpcGroupFn, BirpcGroupReturn, BirpcGroupReturnBuiltin, BirpcOptions, BirpcResolver, BirpcReturn, BirpcReturnBuiltin, ChannelOptions, EventOptions, PromisifyFn, ReturnType, Thenable };
@@ -1,57 +0,0 @@
1
- {
2
- "name": "birpc",
3
- "type": "module",
4
- "version": "2.9.0",
5
- "description": "Message based Two-way remote procedure call",
6
- "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
- "license": "MIT",
8
- "funding": "https://github.com/sponsors/antfu",
9
- "homepage": "https://github.com/antfu-collective/birpc#readme",
10
- "repository": {
11
- "type": "git",
12
- "url": "git+https://github.com/antfu-collective/birpc.git"
13
- },
14
- "bugs": {
15
- "url": "https://github.com/antfu-collective/birpc/issues"
16
- },
17
- "keywords": [
18
- "rpc",
19
- "messages"
20
- ],
21
- "sideEffects": false,
22
- "exports": {
23
- ".": {
24
- "types": "./dist/index.d.ts",
25
- "import": "./dist/index.mjs",
26
- "require": "./dist/index.cjs"
27
- }
28
- },
29
- "main": "./dist/index.cjs",
30
- "module": "./dist/index.mjs",
31
- "types": "./dist/index.d.ts",
32
- "files": [
33
- "dist"
34
- ],
35
- "devDependencies": {
36
- "@antfu/eslint-config": "^6.3.0",
37
- "@antfu/ni": "^28.0.0",
38
- "@types/node": "^24.10.1",
39
- "@vitest/coverage-v8": "3.0.9",
40
- "bumpp": "^10.3.2",
41
- "eslint": "^9.39.1",
42
- "tsx": "^4.21.0",
43
- "typescript": "^5.9.3",
44
- "unbuild": "^3.6.1",
45
- "vite": "^7.2.6",
46
- "vitest": "^4.0.15"
47
- },
48
- "scripts": {
49
- "build": "unbuild",
50
- "dev": "unbuild --stub",
51
- "lint": "eslint .",
52
- "release": "bumpp",
53
- "start": "tsx src/index.ts",
54
- "typecheck": "tsc --noEmit",
55
- "test": "vitest"
56
- }
57
- }
@@ -1,90 +0,0 @@
1
- import type { FSWatcher as NativeFsWatcher, Stats, WatchEventType } from 'node:fs';
2
- import type { EntryInfo } from 'readdirp';
3
- import type { FSWatcher, Throttler, WatchHelper } from './index.js';
4
- export type Path = string;
5
- export declare const STR_DATA = "data";
6
- export declare const STR_END = "end";
7
- export declare const STR_CLOSE = "close";
8
- export declare const EMPTY_FN: () => void;
9
- export declare const IDENTITY_FN: (val: unknown) => unknown;
10
- export declare const isWindows: boolean;
11
- export declare const isMacos: boolean;
12
- export declare const isLinux: boolean;
13
- export declare const isFreeBSD: boolean;
14
- export declare const isIBMi: boolean;
15
- export declare const EVENTS: {
16
- readonly ALL: "all";
17
- readonly READY: "ready";
18
- readonly ADD: "add";
19
- readonly CHANGE: "change";
20
- readonly ADD_DIR: "addDir";
21
- readonly UNLINK: "unlink";
22
- readonly UNLINK_DIR: "unlinkDir";
23
- readonly RAW: "raw";
24
- readonly ERROR: "error";
25
- };
26
- export type EventName = (typeof EVENTS)[keyof typeof EVENTS];
27
- export type FsWatchContainer = {
28
- listeners: (path: string) => void | Set<any>;
29
- errHandlers: (err: unknown) => void | Set<any>;
30
- rawEmitters: (ev: WatchEventType, path: string, opts: unknown) => void | Set<any>;
31
- watcher: NativeFsWatcher;
32
- watcherUnusable?: boolean;
33
- };
34
- export interface WatchHandlers {
35
- listener: (path: string) => void;
36
- errHandler: (err: unknown) => void;
37
- rawEmitter: (ev: WatchEventType, path: string, opts: unknown) => void;
38
- }
39
- /**
40
- * @mixin
41
- */
42
- export declare class NodeFsHandler {
43
- fsw: FSWatcher;
44
- _boundHandleError: (error: unknown) => void;
45
- constructor(fsW: FSWatcher);
46
- /**
47
- * Watch file for changes with fs_watchFile or fs_watch.
48
- * @param path to file or dir
49
- * @param listener on fs change
50
- * @returns closer for the watcher instance
51
- */
52
- _watchWithNodeFs(path: string, listener: (path: string, newStats?: any) => void | Promise<void>): (() => void) | undefined;
53
- /**
54
- * Watch a file and emit add event if warranted.
55
- * @returns closer for the watcher instance
56
- */
57
- _handleFile(file: Path, stats: Stats, initialAdd: boolean): (() => void) | undefined;
58
- /**
59
- * Handle symlinks encountered while reading a dir.
60
- * @param entry returned by readdirp
61
- * @param directory path of dir being read
62
- * @param path of this item
63
- * @param item basename of this item
64
- * @returns true if no more processing is needed for this entry.
65
- */
66
- _handleSymlink(entry: EntryInfo, directory: string, path: Path, item: string): Promise<boolean | undefined>;
67
- _handleRead(directory: string, initialAdd: boolean, wh: WatchHelper, target: Path | undefined, dir: Path, depth: number, throttler: Throttler): Promise<unknown> | undefined;
68
- /**
69
- * Read directory to add / remove files from `@watched` list and re-read it on change.
70
- * @param dir fs path
71
- * @param stats
72
- * @param initialAdd
73
- * @param depth relative to user-supplied path
74
- * @param target child path targeted for watch
75
- * @param wh Common watch helpers for this path
76
- * @param realpath
77
- * @returns closer for the watcher instance.
78
- */
79
- _handleDir(dir: string, stats: Stats, initialAdd: boolean, depth: number, target: string | undefined, wh: WatchHelper, realpath: string): Promise<(() => void) | undefined>;
80
- /**
81
- * Handle added file, directory, or glob pattern.
82
- * Delegates call to _handleFile / _handleDir after checks.
83
- * @param path to file or ir
84
- * @param initialAdd was the file added at watch instantiation?
85
- * @param priorWh depth relative to user-supplied path
86
- * @param depth Child path actually targeted for watch
87
- * @param target Child path actually targeted for watch
88
- */
89
- _addToNodeFs(path: string, initialAdd: boolean, priorWh: WatchHelper | undefined, depth: number, target?: string): Promise<string | false | undefined>;
90
- }