@poveste/vendors 0.14.0 → 0.15.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 (224) hide show
  1. package/dist/client/b-floating-vue.js +1 -1
  2. package/dist/client/b-iconify.js +1429 -1416
  3. package/dist/client/b-pinia.js +1359 -1936
  4. package/dist/client/b-vue-router.js +787 -502
  5. package/dist/client/b-vue-use.js +497 -367
  6. package/dist/client/b-vue.js +1 -1
  7. package/dist/client/devtools-api.js +6568 -0
  8. package/dist/client/index.js +178 -162
  9. package/dist/client/node_modules/@iconify/vue/dist/iconify.d.ts +17 -72
  10. package/dist/client/node_modules/@iconify/vue/dist/offline.d.ts +7 -12
  11. package/dist/client/node_modules/@iconify/vue/offline/package.json +2 -2
  12. package/dist/client/node_modules/@iconify/vue/package.json +13 -16
  13. package/dist/client/node_modules/@jridgewell/gen-mapping/dist/types/gen-mapping.d.ts +88 -0
  14. package/dist/client/node_modules/@jridgewell/gen-mapping/dist/types/set-array.d.ts +32 -0
  15. package/dist/client/node_modules/@jridgewell/gen-mapping/dist/types/sourcemap-segment.d.ts +12 -0
  16. package/dist/client/node_modules/@jridgewell/gen-mapping/dist/types/types.d.ts +43 -0
  17. package/dist/client/node_modules/@jridgewell/gen-mapping/package.json +67 -0
  18. package/dist/client/node_modules/@jridgewell/gen-mapping/types/gen-mapping.d.mts +89 -0
  19. package/dist/client/node_modules/@jridgewell/gen-mapping/types/set-array.d.mts +33 -0
  20. package/dist/client/node_modules/@jridgewell/gen-mapping/types/sourcemap-segment.d.mts +13 -0
  21. package/dist/client/node_modules/@jridgewell/gen-mapping/types/types.d.mts +44 -0
  22. package/dist/client/node_modules/@jridgewell/remapping/package.json +71 -0
  23. package/dist/client/node_modules/@jridgewell/remapping/types/build-source-map-tree.d.mts +15 -0
  24. package/dist/client/node_modules/@jridgewell/remapping/types/remapping.d.mts +21 -0
  25. package/dist/client/node_modules/@jridgewell/remapping/types/source-map-tree.d.mts +46 -0
  26. package/dist/client/node_modules/@jridgewell/remapping/types/source-map.d.mts +19 -0
  27. package/dist/client/node_modules/@jridgewell/remapping/types/types.d.mts +16 -0
  28. package/dist/client/node_modules/@jridgewell/resolve-uri/dist/types/resolve-uri.d.ts +4 -0
  29. package/dist/client/node_modules/@jridgewell/resolve-uri/package.json +69 -0
  30. package/dist/client/node_modules/@jridgewell/trace-mapping/package.json +67 -0
  31. package/dist/client/node_modules/@jridgewell/trace-mapping/types/binary-search.d.mts +33 -0
  32. package/dist/client/node_modules/@jridgewell/trace-mapping/types/by-source.d.mts +4 -0
  33. package/dist/client/node_modules/@jridgewell/trace-mapping/types/flatten-map.d.mts +9 -0
  34. package/dist/client/node_modules/@jridgewell/trace-mapping/types/resolve.d.mts +4 -0
  35. package/dist/client/node_modules/@jridgewell/trace-mapping/types/sort.d.mts +4 -0
  36. package/dist/client/node_modules/@jridgewell/trace-mapping/types/sourcemap-segment.d.mts +17 -0
  37. package/dist/client/node_modules/@jridgewell/trace-mapping/types/strip-filename.d.mts +5 -0
  38. package/dist/client/node_modules/@jridgewell/trace-mapping/types/trace-mapping.d.mts +80 -0
  39. package/dist/client/node_modules/@jridgewell/trace-mapping/types/types.d.mts +107 -0
  40. package/dist/client/node_modules/@vue/devtools-api/dist/index-node.d.ts +11 -0
  41. package/dist/client/node_modules/@vue/devtools-api/dist/index.d.ts +2 -0
  42. package/dist/client/node_modules/@vue/devtools-api/package.json +25 -24
  43. package/dist/client/node_modules/@vue/devtools-kit/dist/index.d.ts +1170 -0
  44. package/dist/client/node_modules/@vue/devtools-kit/global.d.ts +20 -0
  45. package/dist/client/node_modules/@vue/devtools-kit/package.json +44 -0
  46. package/dist/client/node_modules/@vue/devtools-kit/types.d.ts +2 -0
  47. package/dist/client/node_modules/@vue/devtools-shared/dist/index.d.ts +40 -0
  48. package/dist/client/node_modules/@vue/devtools-shared/package.json +33 -0
  49. package/dist/client/node_modules/@vue-macros/common/dist/index.d.ts +124 -0
  50. package/dist/client/node_modules/@vue-macros/common/package.json +63 -0
  51. package/dist/client/node_modules/@vueuse/core/dist/index.d.ts +223 -111
  52. package/dist/client/node_modules/@vueuse/core/package.json +10 -3
  53. package/dist/client/node_modules/@vueuse/metadata/package.json +4 -1
  54. package/dist/client/node_modules/@vueuse/shared/dist/index.d.ts +2 -2
  55. package/dist/client/node_modules/@vueuse/shared/package.json +4 -1
  56. package/dist/client/node_modules/acorn/dist/acorn.d.mts +897 -0
  57. package/dist/client/node_modules/acorn/dist/acorn.d.ts +897 -0
  58. package/dist/client/node_modules/acorn/package.json +50 -0
  59. package/dist/client/node_modules/ast-kit/dist/index.d.ts +380 -0
  60. package/dist/client/node_modules/ast-kit/package.json +63 -0
  61. package/dist/client/node_modules/ast-walker-scope/dist/index.d.mts +51 -0
  62. package/dist/client/node_modules/ast-walker-scope/package.json +60 -0
  63. package/dist/client/node_modules/birpc/dist/index.d.mts +215 -0
  64. package/dist/client/node_modules/birpc/dist/index.d.ts +215 -0
  65. package/dist/client/node_modules/birpc/package.json +57 -0
  66. package/dist/client/node_modules/chokidar/handler.d.ts +90 -0
  67. package/dist/client/node_modules/chokidar/index.d.ts +217 -0
  68. package/dist/client/node_modules/chokidar/package.json +63 -0
  69. package/dist/client/node_modules/confbox/dist/_chunks/_format.d.mts +25 -0
  70. package/dist/client/node_modules/confbox/dist/index.d.mts +34 -0
  71. package/dist/client/node_modules/confbox/dist/ini.d.mts +62 -0
  72. package/dist/client/node_modules/confbox/dist/json5.d.mts +59 -0
  73. package/dist/client/node_modules/confbox/dist/jsonc.d.mts +41 -0
  74. package/dist/client/node_modules/confbox/dist/toml.d.mts +23 -0
  75. package/dist/client/node_modules/confbox/dist/yaml.d.mts +96 -0
  76. package/dist/client/node_modules/confbox/package.json +67 -0
  77. package/dist/client/node_modules/exsolve/dist/index.d.mts +66 -0
  78. package/dist/client/node_modules/exsolve/package.json +42 -0
  79. package/dist/client/node_modules/fdir/dist/index.d.mts +155 -0
  80. package/dist/client/node_modules/fdir/package.json +103 -0
  81. package/dist/client/node_modules/hookable/dist/index.d.ts +103 -0
  82. package/dist/client/node_modules/hookable/package.json +49 -0
  83. package/dist/client/node_modules/local-pkg/dist/index.d.mts +42 -0
  84. package/dist/client/node_modules/local-pkg/dist/index.d.ts +42 -0
  85. package/dist/client/node_modules/local-pkg/package.json +65 -0
  86. package/dist/client/node_modules/magic-string-ast/dist/index.d.ts +67 -0
  87. package/dist/client/node_modules/magic-string-ast/package.json +64 -0
  88. package/dist/client/node_modules/mlly/dist/index.d.mts +564 -0
  89. package/dist/client/node_modules/mlly/dist/index.d.ts +564 -0
  90. package/dist/client/node_modules/mlly/node_modules/confbox/dist/index.d.mts +32 -0
  91. package/dist/client/node_modules/mlly/node_modules/confbox/dist/index.d.ts +32 -0
  92. package/dist/client/node_modules/mlly/node_modules/confbox/dist/json5.d.mts +58 -0
  93. package/dist/client/node_modules/mlly/node_modules/confbox/dist/json5.d.ts +58 -0
  94. package/dist/client/node_modules/mlly/node_modules/confbox/dist/jsonc.d.mts +41 -0
  95. package/dist/client/node_modules/mlly/node_modules/confbox/dist/jsonc.d.ts +41 -0
  96. package/dist/client/node_modules/mlly/node_modules/confbox/dist/shared/confbox.9745c98f.d.mts +24 -0
  97. package/dist/client/node_modules/mlly/node_modules/confbox/dist/shared/confbox.9745c98f.d.ts +24 -0
  98. package/dist/client/node_modules/mlly/node_modules/confbox/dist/toml.d.mts +22 -0
  99. package/dist/client/node_modules/mlly/node_modules/confbox/dist/toml.d.ts +22 -0
  100. package/dist/client/node_modules/mlly/node_modules/confbox/dist/yaml.d.mts +95 -0
  101. package/dist/client/node_modules/mlly/node_modules/confbox/dist/yaml.d.ts +95 -0
  102. package/dist/client/node_modules/mlly/node_modules/confbox/json5.d.ts +2 -0
  103. package/dist/client/node_modules/mlly/node_modules/confbox/jsonc.d.ts +2 -0
  104. package/dist/client/node_modules/mlly/node_modules/confbox/package.json +86 -0
  105. package/dist/client/node_modules/mlly/node_modules/confbox/toml.d.ts +2 -0
  106. package/dist/client/node_modules/mlly/node_modules/confbox/yaml.d.ts +2 -0
  107. package/dist/client/node_modules/mlly/node_modules/pkg-types/dist/index.d.mts +411 -0
  108. package/dist/client/node_modules/mlly/node_modules/pkg-types/dist/index.d.ts +411 -0
  109. package/dist/client/node_modules/mlly/node_modules/pkg-types/package.json +47 -0
  110. package/dist/client/node_modules/mlly/package.json +55 -0
  111. package/dist/client/node_modules/muggle-string/out/base.d.ts +6 -0
  112. package/dist/client/node_modules/muggle-string/out/basic.d.ts +6 -0
  113. package/dist/client/node_modules/muggle-string/out/binarySearch.d.ts +1 -0
  114. package/dist/client/node_modules/muggle-string/out/common.d.ts +9 -0
  115. package/dist/client/node_modules/muggle-string/out/getLength.d.ts +2 -0
  116. package/dist/client/node_modules/muggle-string/out/index.d.ts +10 -0
  117. package/dist/client/node_modules/muggle-string/out/map.d.ts +3 -0
  118. package/dist/client/node_modules/muggle-string/out/overwriteSource.d.ts +3 -0
  119. package/dist/client/node_modules/muggle-string/out/replace.d.ts +3 -0
  120. package/dist/client/node_modules/muggle-string/out/segment.d.ts +6 -0
  121. package/dist/client/node_modules/muggle-string/out/sourceBased.d.ts +3 -0
  122. package/dist/client/node_modules/muggle-string/out/toString.d.ts +2 -0
  123. package/dist/client/node_modules/muggle-string/out/track.d.ts +6 -0
  124. package/dist/client/node_modules/muggle-string/out/types.d.ts +16 -0
  125. package/dist/client/node_modules/muggle-string/package.json +22 -0
  126. package/dist/client/node_modules/nostics/dist/diagnostic-wduO7saY.d.mts +295 -0
  127. package/dist/client/node_modules/nostics/dist/formatters/ansi.d.mts +15 -0
  128. package/dist/client/node_modules/nostics/dist/formatters/json.d.mts +7 -0
  129. package/dist/client/node_modules/nostics/dist/index.d.mts +51 -0
  130. package/dist/client/node_modules/nostics/dist/reporters/dev.d.mts +13 -0
  131. package/dist/client/node_modules/nostics/dist/reporters/fetch.d.mts +11 -0
  132. package/dist/client/node_modules/nostics/dist/reporters/node.d.mts +43 -0
  133. package/dist/client/node_modules/nostics/package.json +125 -0
  134. package/dist/client/node_modules/pathe/dist/index.d.mts +47 -0
  135. package/dist/client/node_modules/pathe/dist/index.d.ts +47 -0
  136. package/dist/client/node_modules/pathe/dist/utils.d.mts +32 -0
  137. package/dist/client/node_modules/pathe/dist/utils.d.ts +32 -0
  138. package/dist/client/node_modules/pathe/package.json +61 -0
  139. package/dist/client/node_modules/pathe/utils.d.ts +1 -0
  140. package/dist/client/node_modules/perfect-debounce/dist/index.d.mts +49 -0
  141. package/dist/client/node_modules/perfect-debounce/package.json +41 -0
  142. package/dist/client/node_modules/picomatch/package.json +83 -0
  143. package/dist/client/node_modules/pinia/dist/pinia.d.ts +937 -1056
  144. package/dist/client/node_modules/pinia/package.json +53 -67
  145. package/dist/client/node_modules/pkg-types/dist/index.d.mts +695 -0
  146. package/dist/client/node_modules/pkg-types/node_modules/confbox/dist/_chunks/_format.d.mts +22 -0
  147. package/dist/client/node_modules/pkg-types/node_modules/confbox/dist/_chunks/libs/js-yaml.d.mts +33 -0
  148. package/dist/client/node_modules/pkg-types/node_modules/confbox/dist/index.d.mts +7 -0
  149. package/dist/client/node_modules/pkg-types/node_modules/confbox/dist/ini.d.mts +59 -0
  150. package/dist/client/node_modules/pkg-types/node_modules/confbox/dist/json.d.mts +25 -0
  151. package/dist/client/node_modules/pkg-types/node_modules/confbox/dist/json5.d.mts +55 -0
  152. package/dist/client/node_modules/pkg-types/node_modules/confbox/dist/jsonc.d.mts +29 -0
  153. package/dist/client/node_modules/pkg-types/node_modules/confbox/dist/toml.d.mts +20 -0
  154. package/dist/client/node_modules/pkg-types/node_modules/confbox/dist/yaml.d.mts +101 -0
  155. package/dist/client/node_modules/pkg-types/node_modules/confbox/package.json +68 -0
  156. package/dist/client/node_modules/pkg-types/package.json +47 -0
  157. package/dist/client/node_modules/quansync/dist/index.d.mts +22 -0
  158. package/dist/client/node_modules/quansync/dist/index.d.ts +22 -0
  159. package/dist/client/node_modules/quansync/dist/macro.d.mts +18 -0
  160. package/dist/client/node_modules/quansync/dist/macro.d.ts +18 -0
  161. package/dist/client/node_modules/quansync/dist/types.d.mts +27 -0
  162. package/dist/client/node_modules/quansync/dist/types.d.ts +27 -0
  163. package/dist/client/node_modules/quansync/package.json +95 -0
  164. package/dist/client/node_modules/readdirp/index.d.ts +117 -0
  165. package/dist/client/node_modules/readdirp/package.json +62 -0
  166. package/dist/client/node_modules/scule/dist/index.d.mts +57 -0
  167. package/dist/client/node_modules/scule/dist/index.d.ts +57 -0
  168. package/dist/client/node_modules/scule/package.json +43 -0
  169. package/dist/client/node_modules/tinyglobby/dist/index.d.mts +148 -0
  170. package/dist/client/node_modules/tinyglobby/package.json +70 -0
  171. package/dist/client/node_modules/ufo/dist/index.d.mts +714 -0
  172. package/dist/client/node_modules/ufo/dist/index.d.ts +714 -0
  173. package/dist/client/node_modules/ufo/package.json +48 -0
  174. package/dist/client/node_modules/unplugin/dist/index.d.mts +241 -0
  175. package/dist/client/node_modules/unplugin/dist/rspack/loaders/load.d.mts +4 -0
  176. package/dist/client/node_modules/unplugin/dist/rspack/loaders/transform.d.mts +4 -0
  177. package/dist/client/node_modules/unplugin/dist/webpack/loaders/load.d.mts +4 -0
  178. package/dist/client/node_modules/unplugin/dist/webpack/loaders/transform.d.mts +4 -0
  179. package/dist/client/node_modules/unplugin/package.json +146 -0
  180. package/dist/client/node_modules/unplugin-utils/dist/index.d.ts +31 -0
  181. package/dist/client/node_modules/unplugin-utils/package.json +61 -0
  182. package/dist/client/node_modules/vue-router/dist/experimental/index.d.ts +7 -0
  183. package/dist/client/node_modules/vue-router/dist/experimental/pinia-colada.d.ts +151 -0
  184. package/dist/client/node_modules/vue-router/dist/{router-CWoNjPRp.d.mts → index-D7ja2BKs.d.ts} +2480 -1160
  185. package/dist/client/node_modules/vue-router/dist/options-CwYZKRl4.d.mts +2923 -0
  186. package/dist/client/node_modules/vue-router/dist/unplugin/esbuild.d.mts +10 -0
  187. package/dist/client/node_modules/vue-router/dist/unplugin/index.d.mts +62 -0
  188. package/dist/client/node_modules/vue-router/dist/unplugin/options.d.mts +7 -0
  189. package/dist/client/node_modules/vue-router/dist/unplugin/rolldown.d.mts +10 -0
  190. package/dist/client/node_modules/vue-router/dist/unplugin/rollup.d.mts +10 -0
  191. package/dist/client/node_modules/vue-router/dist/unplugin/types.d.mts +7 -0
  192. package/dist/client/node_modules/vue-router/dist/unplugin/vite.d.mts +10 -0
  193. package/dist/client/node_modules/vue-router/dist/unplugin/webpack.d.mts +10 -0
  194. package/dist/client/node_modules/vue-router/dist/vue-router.d.ts +7 -0
  195. package/dist/client/node_modules/vue-router/package.json +153 -95
  196. package/dist/client/node_modules/vue-router/vue-router-auto-resolver.d.mts +22 -17
  197. package/dist/client/node_modules/vue-router/vue-router-auto-routes.d.mts +53 -0
  198. package/dist/client/node_modules/vue-router/vue-router-auto.d.ts +2 -1
  199. package/dist/client/node_modules/webpack-virtual-modules/lib/index.d.ts +15 -0
  200. package/dist/client/node_modules/webpack-virtual-modules/lib/virtual-stats.d.ts +11 -0
  201. package/dist/client/node_modules/webpack-virtual-modules/package.json +82 -0
  202. package/dist/client/vue.runtime.esm-bundler.js +1 -176
  203. package/package.json +8 -7
  204. package/dist/client/node_modules/@vue/devtools-api/lib/esm/api/api.d.ts +0 -108
  205. package/dist/client/node_modules/@vue/devtools-api/lib/esm/api/app.d.ts +0 -1
  206. package/dist/client/node_modules/@vue/devtools-api/lib/esm/api/component.d.ts +0 -78
  207. package/dist/client/node_modules/@vue/devtools-api/lib/esm/api/context.d.ts +0 -5
  208. package/dist/client/node_modules/@vue/devtools-api/lib/esm/api/hooks.d.ts +0 -180
  209. package/dist/client/node_modules/@vue/devtools-api/lib/esm/api/index.d.ts +0 -6
  210. package/dist/client/node_modules/@vue/devtools-api/lib/esm/api/util.d.ts +0 -4
  211. package/dist/client/node_modules/@vue/devtools-api/lib/esm/const.d.ts +0 -2
  212. package/dist/client/node_modules/@vue/devtools-api/lib/esm/env.d.ts +0 -15
  213. package/dist/client/node_modules/@vue/devtools-api/lib/esm/index.d.ts +0 -18
  214. package/dist/client/node_modules/@vue/devtools-api/lib/esm/plugin.d.ts +0 -47
  215. package/dist/client/node_modules/@vue/devtools-api/lib/esm/proxy.d.ts +0 -20
  216. package/dist/client/node_modules/@vue/devtools-api/lib/esm/time.d.ts +0 -2
  217. package/dist/client/node_modules/pinia/node_modules/vue-demi/lib/index.d.ts +0 -22
  218. package/dist/client/node_modules/pinia/node_modules/vue-demi/lib/v2/index.d.ts +0 -33
  219. package/dist/client/node_modules/pinia/node_modules/vue-demi/lib/v2.7/index.d.ts +0 -38
  220. package/dist/client/node_modules/pinia/node_modules/vue-demi/lib/v3/index.d.ts +0 -22
  221. package/dist/client/node_modules/pinia/node_modules/vue-demi/package.json +0 -47
  222. package/dist/client/node_modules/vue-router/dist/experimental/index.d.mts +0 -38
  223. package/dist/client/node_modules/vue-router/dist/vue-router.d.mts +0 -361
  224. package/dist/client/node_modules/vue-router/vue-router-auto-routes.d.ts +0 -4
@@ -0,0 +1,58 @@
1
+ import { F as FormatOptions } from './shared/confbox.9745c98f.js';
2
+
3
+ /**
4
+ * Converts a [JSON5](https://json5.org/) string into an object.
5
+ *
6
+ * @template T The type of the return value.
7
+ * @param text The string to parse as JSON5.
8
+ * @param options Parsing options.
9
+ * @returns The JavaScript value converted from the JSON5 string.
10
+ */
11
+ declare function parseJSON5<T = unknown>(text: string, options?: JSON5ParseOptions): T;
12
+ /**
13
+ * Converts a JavaScript value to a [JSON5](https://json5.org/) string.
14
+ *
15
+ * @param value
16
+ * @param options
17
+ * @returns The JSON string converted from the JavaScript value.
18
+ */
19
+ declare function stringifyJSON5(value: any, options?: JSON5StringifyOptions): string;
20
+ interface JSON5ParseOptions extends FormatOptions {
21
+ /**
22
+ * A function that alters the behavior of the parsing process, or an array of
23
+ * String and Number objects that serve as a allowlist for selecting/filtering
24
+ * the properties of the value object to be included in the resulting
25
+ * JavaScript object. If this value is null or not provided, all properties of
26
+ * the object are included in the resulting JavaScript object.
27
+ */
28
+ reviver?: (this: any, key: string, value: any) => any;
29
+ }
30
+ interface JSON5StringifyOptions extends FormatOptions {
31
+ /**
32
+ * A function that alters the behavior of the stringification process, or an
33
+ * array of String and Number objects that serve as a allowlist for
34
+ * selecting/filtering the properties of the value object to be included in
35
+ * the JSON5 string. If this value is null or not provided, all properties
36
+ * of the object are included in the resulting JSON5 string.
37
+ */
38
+ replacer?: ((this: any, key: string, value: any) => any) | null;
39
+ /**
40
+ * A String or Number object that's used to insert white space into the
41
+ * output JSON5 string for readability purposes. If this is a Number, it
42
+ * indicates the number of space characters to use as white space; this
43
+ * number is capped at 10 (if it is greater, the value is just 10). Values
44
+ * less than 1 indicate that no space should be used. If this is a String,
45
+ * the string (or the first 10 characters of the string, if it's longer than
46
+ * that) is used as white space. If this parameter is not provided (or is
47
+ * null), no white space is used. If white space is used, trailing commas
48
+ * will be used in objects and arrays.
49
+ */
50
+ space?: string | number | null;
51
+ /**
52
+ * A String representing the quote character to use when serializing
53
+ * strings.
54
+ */
55
+ quote?: string | null;
56
+ }
57
+
58
+ export { type JSON5ParseOptions, type JSON5StringifyOptions, parseJSON5, stringifyJSON5 };
@@ -0,0 +1,41 @@
1
+ import { F as FormatOptions } from './shared/confbox.9745c98f.mjs';
2
+
3
+ /**
4
+ *
5
+ * Converts a [JSONC](https://github.com/microsoft/node-jsonc-parser) string into an object.
6
+ *
7
+ * @NOTE On invalid input, the parser tries to be as fault tolerant as possible, but still return a result.
8
+ *
9
+ * @NOTE Comments and trailing commas are not preserved after parsing.
10
+ *
11
+ * @template T The type of the return value.
12
+ * @param text The string to parse as JSONC.
13
+ * @param options Parsing options.
14
+ * @returns The JavaScript value converted from the JSONC string.
15
+ */
16
+ declare function parseJSONC<T = unknown>(text: string, options?: JSONCParseOptions): T;
17
+ /**
18
+ * Converts a JavaScript value to a [JSONC](https://github.com/microsoft/node-jsonc-parser) string.
19
+ *
20
+ * @NOTE Comments and trailing commas are not preserved in the output.
21
+ *
22
+ * @param value
23
+ * @param options
24
+ * @returns The JSON string converted from the JavaScript value.
25
+ */
26
+ declare function stringifyJSONC(value: any, options?: JSONCStringifyOptions): string;
27
+ interface JSONCParseOptions extends FormatOptions {
28
+ disallowComments?: boolean;
29
+ allowTrailingComma?: boolean;
30
+ allowEmptyContent?: boolean;
31
+ errors?: JSONCParseError[];
32
+ }
33
+ interface JSONCStringifyOptions extends FormatOptions {
34
+ }
35
+ interface JSONCParseError {
36
+ error: number;
37
+ offset: number;
38
+ length: number;
39
+ }
40
+
41
+ export { type JSONCParseError, type JSONCParseOptions, type JSONCStringifyOptions, parseJSONC, stringifyJSONC };
@@ -0,0 +1,41 @@
1
+ import { F as FormatOptions } from './shared/confbox.9745c98f.js';
2
+
3
+ /**
4
+ *
5
+ * Converts a [JSONC](https://github.com/microsoft/node-jsonc-parser) string into an object.
6
+ *
7
+ * @NOTE On invalid input, the parser tries to be as fault tolerant as possible, but still return a result.
8
+ *
9
+ * @NOTE Comments and trailing commas are not preserved after parsing.
10
+ *
11
+ * @template T The type of the return value.
12
+ * @param text The string to parse as JSONC.
13
+ * @param options Parsing options.
14
+ * @returns The JavaScript value converted from the JSONC string.
15
+ */
16
+ declare function parseJSONC<T = unknown>(text: string, options?: JSONCParseOptions): T;
17
+ /**
18
+ * Converts a JavaScript value to a [JSONC](https://github.com/microsoft/node-jsonc-parser) string.
19
+ *
20
+ * @NOTE Comments and trailing commas are not preserved in the output.
21
+ *
22
+ * @param value
23
+ * @param options
24
+ * @returns The JSON string converted from the JavaScript value.
25
+ */
26
+ declare function stringifyJSONC(value: any, options?: JSONCStringifyOptions): string;
27
+ interface JSONCParseOptions extends FormatOptions {
28
+ disallowComments?: boolean;
29
+ allowTrailingComma?: boolean;
30
+ allowEmptyContent?: boolean;
31
+ errors?: JSONCParseError[];
32
+ }
33
+ interface JSONCStringifyOptions extends FormatOptions {
34
+ }
35
+ interface JSONCParseError {
36
+ error: number;
37
+ offset: number;
38
+ length: number;
39
+ }
40
+
41
+ export { type JSONCParseError, type JSONCParseOptions, type JSONCStringifyOptions, parseJSONC, stringifyJSONC };
@@ -0,0 +1,24 @@
1
+ interface FormatOptions {
2
+ /**
3
+ * A String or Number object that's used to insert white space into the output JSON string for readability purposes.
4
+ *
5
+ * When provided, identation won't be auto detected anymore.
6
+ */
7
+ indent?: string | number;
8
+ /**
9
+ * Set to `false` to skip indentation preservation.
10
+ */
11
+ preserveIndentation?: boolean;
12
+ /**
13
+ * Set to `false` to skip whitespace preservation.
14
+ */
15
+ preserveWhitespace?: boolean;
16
+ /**
17
+ * The number of characters to sample from the start of the text.
18
+ *
19
+ * Default: 1024
20
+ */
21
+ sampleSize?: number;
22
+ }
23
+
24
+ export type { FormatOptions as F };
@@ -0,0 +1,24 @@
1
+ interface FormatOptions {
2
+ /**
3
+ * A String or Number object that's used to insert white space into the output JSON string for readability purposes.
4
+ *
5
+ * When provided, identation won't be auto detected anymore.
6
+ */
7
+ indent?: string | number;
8
+ /**
9
+ * Set to `false` to skip indentation preservation.
10
+ */
11
+ preserveIndentation?: boolean;
12
+ /**
13
+ * Set to `false` to skip whitespace preservation.
14
+ */
15
+ preserveWhitespace?: boolean;
16
+ /**
17
+ * The number of characters to sample from the start of the text.
18
+ *
19
+ * Default: 1024
20
+ */
21
+ sampleSize?: number;
22
+ }
23
+
24
+ export type { FormatOptions as F };
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Converts a [TOML](https://toml.io/) string into an object.
3
+ *
4
+ * @NOTE Comments and indentation is not preserved after parsing.
5
+ *
6
+ * @template T The type of the return value.
7
+ * @param text The TOML string to parse.
8
+ * @returns The JavaScript value converted from the TOML string.
9
+ */
10
+ declare function parseTOML<T = unknown>(text: string): T;
11
+ /**
12
+ * Converts a JavaScript value to a [TOML](https://toml.io/) string.
13
+ *
14
+ * @NOTE Comments and indentation is not preserved in the output.
15
+ *
16
+ * @param value
17
+ * @param options
18
+ * @returns The YAML string converted from the JavaScript value.
19
+ */
20
+ declare function stringifyTOML(value: any): string;
21
+
22
+ export { parseTOML, stringifyTOML };
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Converts a [TOML](https://toml.io/) string into an object.
3
+ *
4
+ * @NOTE Comments and indentation is not preserved after parsing.
5
+ *
6
+ * @template T The type of the return value.
7
+ * @param text The TOML string to parse.
8
+ * @returns The JavaScript value converted from the TOML string.
9
+ */
10
+ declare function parseTOML<T = unknown>(text: string): T;
11
+ /**
12
+ * Converts a JavaScript value to a [TOML](https://toml.io/) string.
13
+ *
14
+ * @NOTE Comments and indentation is not preserved in the output.
15
+ *
16
+ * @param value
17
+ * @param options
18
+ * @returns The YAML string converted from the JavaScript value.
19
+ */
20
+ declare function stringifyTOML(value: any): string;
21
+
22
+ export { parseTOML, stringifyTOML };
@@ -0,0 +1,95 @@
1
+ import { F as FormatOptions } from './shared/confbox.9745c98f.mjs';
2
+
3
+ /**
4
+ * Converts a [YAML](https://yaml.org/) string into an object.
5
+ *
6
+ * @NOTE This function does **not** understand multi-document sources, it throws exception on those.
7
+ *
8
+ * @NOTE Comments are not preserved after parsing.
9
+ *
10
+ * @NOTE This function does **not** support schema-specific tag resolution restrictions.
11
+ * So, the JSON schema is not as strictly defined in the YAML specification.
12
+ * It allows numbers in any notation, use `Null` and `NULL` as `null`, etc.
13
+ * The core schema also has no such restrictions. It allows binary notation for integers.
14
+ *
15
+ * @template T The type of the return value.
16
+ * @param text The YAML string to parse.
17
+ * @param options Parsing options.
18
+ * @returns The JavaScript value converted from the YAML string.
19
+ */
20
+ declare function parseYAML<T = unknown>(text: string, options?: YAMLParseOptions): T;
21
+ /**
22
+ * Converts a JavaScript value to a [YAML](https://yaml.org/) string.
23
+ *
24
+ * @NOTE Comments are not preserved in the output.
25
+ *
26
+ * @param value
27
+ * @param options
28
+ * @returns The YAML string converted from the JavaScript value.
29
+ */
30
+ declare function stringifyYAML(value: any, options?: YAMLStringifyOptions): string;
31
+ interface YAMLParseOptions extends FormatOptions {
32
+ /** string to be used as a file path in error/warning messages. */
33
+ filename?: string | undefined;
34
+ /** function to call on warning messages. */
35
+ onWarning?(this: null, e: YAMLException): void;
36
+ /** specifies a schema to use. */
37
+ schema?: any | undefined;
38
+ /** compatibility with JSON.parse behaviour. */
39
+ json?: boolean | undefined;
40
+ /** listener for parse events */
41
+ listener?(this: any, eventType: any, state: any): void;
42
+ }
43
+ interface YAMLStringifyOptions extends FormatOptions {
44
+ /** indentation width to use (in spaces). */
45
+ indent?: number | undefined;
46
+ /** when true, will not add an indentation level to array elements */
47
+ noArrayIndent?: boolean | undefined;
48
+ /** do not throw on invalid types (like function in the safe schema) and skip pairs and single values with such types. */
49
+ skipInvalid?: boolean | undefined;
50
+ /** specifies level of nesting, when to switch from block to flow style for collections. -1 means block style everwhere */
51
+ flowLevel?: number | undefined;
52
+ /** Each tag may have own set of styles. - "tag" => "style" map. */
53
+ styles?: {
54
+ [x: string]: any;
55
+ } | undefined;
56
+ /** specifies a schema to use. */
57
+ schema?: any | undefined;
58
+ /** if true, sort keys when dumping YAML. If a function, use the function to sort the keys. (default: false) */
59
+ sortKeys?: boolean | ((a: any, b: any) => number) | undefined;
60
+ /** set max line width. (default: 80) */
61
+ lineWidth?: number | undefined;
62
+ /** if true, don't convert duplicate objects into references (default: false) */
63
+ noRefs?: boolean | undefined;
64
+ /** if true don't try to be compatible with older yaml versions. Currently: don't quote "yes", "no" and so on, as required for YAML 1.1 (default: false) */
65
+ noCompatMode?: boolean | undefined;
66
+ /**
67
+ * if true flow sequences will be condensed, omitting the space between `key: value` or `a, b`. Eg. `'[a,b]'` or `{a:{b:c}}`.
68
+ * Can be useful when using yaml for pretty URL query params as spaces are %-encoded. (default: false).
69
+ */
70
+ condenseFlow?: boolean | undefined;
71
+ /** strings will be quoted using this quoting style. If you specify single quotes, double quotes will still be used for non-printable characters. (default: `'`) */
72
+ quotingType?: "'" | '"' | undefined;
73
+ /** if true, all non-key strings will be quoted even if they normally don't need to. (default: false) */
74
+ forceQuotes?: boolean | undefined;
75
+ /** callback `function (key, value)` called recursively on each key/value in source object (see `replacer` docs for `JSON.stringify`). */
76
+ replacer?: ((key: string, value: any) => any) | undefined;
77
+ }
78
+ interface Mark {
79
+ buffer: string;
80
+ column: number;
81
+ line: number;
82
+ name: string;
83
+ position: number;
84
+ snippet: string;
85
+ }
86
+ declare class YAMLException extends Error {
87
+ constructor(reason?: string, mark?: Mark);
88
+ toString(compact?: boolean): string;
89
+ name: string;
90
+ reason: string;
91
+ message: string;
92
+ mark: Mark;
93
+ }
94
+
95
+ export { type YAMLParseOptions, type YAMLStringifyOptions, parseYAML, stringifyYAML };
@@ -0,0 +1,95 @@
1
+ import { F as FormatOptions } from './shared/confbox.9745c98f.js';
2
+
3
+ /**
4
+ * Converts a [YAML](https://yaml.org/) string into an object.
5
+ *
6
+ * @NOTE This function does **not** understand multi-document sources, it throws exception on those.
7
+ *
8
+ * @NOTE Comments are not preserved after parsing.
9
+ *
10
+ * @NOTE This function does **not** support schema-specific tag resolution restrictions.
11
+ * So, the JSON schema is not as strictly defined in the YAML specification.
12
+ * It allows numbers in any notation, use `Null` and `NULL` as `null`, etc.
13
+ * The core schema also has no such restrictions. It allows binary notation for integers.
14
+ *
15
+ * @template T The type of the return value.
16
+ * @param text The YAML string to parse.
17
+ * @param options Parsing options.
18
+ * @returns The JavaScript value converted from the YAML string.
19
+ */
20
+ declare function parseYAML<T = unknown>(text: string, options?: YAMLParseOptions): T;
21
+ /**
22
+ * Converts a JavaScript value to a [YAML](https://yaml.org/) string.
23
+ *
24
+ * @NOTE Comments are not preserved in the output.
25
+ *
26
+ * @param value
27
+ * @param options
28
+ * @returns The YAML string converted from the JavaScript value.
29
+ */
30
+ declare function stringifyYAML(value: any, options?: YAMLStringifyOptions): string;
31
+ interface YAMLParseOptions extends FormatOptions {
32
+ /** string to be used as a file path in error/warning messages. */
33
+ filename?: string | undefined;
34
+ /** function to call on warning messages. */
35
+ onWarning?(this: null, e: YAMLException): void;
36
+ /** specifies a schema to use. */
37
+ schema?: any | undefined;
38
+ /** compatibility with JSON.parse behaviour. */
39
+ json?: boolean | undefined;
40
+ /** listener for parse events */
41
+ listener?(this: any, eventType: any, state: any): void;
42
+ }
43
+ interface YAMLStringifyOptions extends FormatOptions {
44
+ /** indentation width to use (in spaces). */
45
+ indent?: number | undefined;
46
+ /** when true, will not add an indentation level to array elements */
47
+ noArrayIndent?: boolean | undefined;
48
+ /** do not throw on invalid types (like function in the safe schema) and skip pairs and single values with such types. */
49
+ skipInvalid?: boolean | undefined;
50
+ /** specifies level of nesting, when to switch from block to flow style for collections. -1 means block style everwhere */
51
+ flowLevel?: number | undefined;
52
+ /** Each tag may have own set of styles. - "tag" => "style" map. */
53
+ styles?: {
54
+ [x: string]: any;
55
+ } | undefined;
56
+ /** specifies a schema to use. */
57
+ schema?: any | undefined;
58
+ /** if true, sort keys when dumping YAML. If a function, use the function to sort the keys. (default: false) */
59
+ sortKeys?: boolean | ((a: any, b: any) => number) | undefined;
60
+ /** set max line width. (default: 80) */
61
+ lineWidth?: number | undefined;
62
+ /** if true, don't convert duplicate objects into references (default: false) */
63
+ noRefs?: boolean | undefined;
64
+ /** if true don't try to be compatible with older yaml versions. Currently: don't quote "yes", "no" and so on, as required for YAML 1.1 (default: false) */
65
+ noCompatMode?: boolean | undefined;
66
+ /**
67
+ * if true flow sequences will be condensed, omitting the space between `key: value` or `a, b`. Eg. `'[a,b]'` or `{a:{b:c}}`.
68
+ * Can be useful when using yaml for pretty URL query params as spaces are %-encoded. (default: false).
69
+ */
70
+ condenseFlow?: boolean | undefined;
71
+ /** strings will be quoted using this quoting style. If you specify single quotes, double quotes will still be used for non-printable characters. (default: `'`) */
72
+ quotingType?: "'" | '"' | undefined;
73
+ /** if true, all non-key strings will be quoted even if they normally don't need to. (default: false) */
74
+ forceQuotes?: boolean | undefined;
75
+ /** callback `function (key, value)` called recursively on each key/value in source object (see `replacer` docs for `JSON.stringify`). */
76
+ replacer?: ((key: string, value: any) => any) | undefined;
77
+ }
78
+ interface Mark {
79
+ buffer: string;
80
+ column: number;
81
+ line: number;
82
+ name: string;
83
+ position: number;
84
+ snippet: string;
85
+ }
86
+ declare class YAMLException extends Error {
87
+ constructor(reason?: string, mark?: Mark);
88
+ toString(compact?: boolean): string;
89
+ name: string;
90
+ reason: string;
91
+ message: string;
92
+ mark: Mark;
93
+ }
94
+
95
+ export { type YAMLParseOptions, type YAMLStringifyOptions, parseYAML, stringifyYAML };
@@ -0,0 +1,2 @@
1
+ export * from "./dist/json5";
2
+ export { default } from "./dist/json5";
@@ -0,0 +1,2 @@
1
+ export * from "./dist/jsonc";
2
+ export { default } from "./dist/jsonc";
@@ -0,0 +1,86 @@
1
+ {
2
+ "name": "confbox",
3
+ "version": "0.1.8",
4
+ "description": "Compact and high quality YAML, TOML, JSONC and JSON5 parsers",
5
+ "keywords": [
6
+ "yaml",
7
+ "toml",
8
+ "jsonc",
9
+ "json5",
10
+ "unjs",
11
+ "config"
12
+ ],
13
+ "repository": "unjs/confbox",
14
+ "license": "MIT",
15
+ "sideEffects": false,
16
+ "type": "module",
17
+ "exports": {
18
+ ".": {
19
+ "types": "./dist/index.d.ts",
20
+ "import": "./dist/index.mjs",
21
+ "require": "./dist/index.cjs"
22
+ },
23
+ "./json5": {
24
+ "types": "./dist/json5.d.ts",
25
+ "import": "./dist/json5.mjs",
26
+ "require": "./dist/json5.cjs"
27
+ },
28
+ "./jsonc": {
29
+ "types": "./dist/jsonc.d.ts",
30
+ "import": "./dist/jsonc.mjs",
31
+ "require": "./dist/jsonc.cjs"
32
+ },
33
+ "./toml": {
34
+ "types": "./dist/toml.d.ts",
35
+ "import": "./dist/toml.mjs",
36
+ "require": "./dist/toml.cjs"
37
+ },
38
+ "./yaml": {
39
+ "types": "./dist/yaml.d.ts",
40
+ "import": "./dist/yaml.mjs",
41
+ "require": "./dist/yaml.cjs"
42
+ }
43
+ },
44
+ "main": "./dist/index.cjs",
45
+ "module": "./dist/index.mjs",
46
+ "types": "./dist/index.d.ts",
47
+ "files": [
48
+ "dist",
49
+ "*.d.ts"
50
+ ],
51
+ "scripts": {
52
+ "build": "unbuild",
53
+ "dev": "vitest dev --coverage",
54
+ "bench": "pnpm build && node test/bench.mjs",
55
+ "lint": "eslint && prettier -c src test",
56
+ "lint:fix": "eslint --fix && prettier -c src test -w",
57
+ "prepack": "pnpm build",
58
+ "release": "pnpm test && changelogen --release && npm publish && git push --follow-tags",
59
+ "test": "pnpm lint && pnpm test:types && vitest run --coverage",
60
+ "test:types": "tsc --noEmit --skipLibCheck"
61
+ },
62
+ "devDependencies": {
63
+ "@types/js-yaml": "^4.0.9",
64
+ "@types/node": "^22.7.4",
65
+ "@vitest/coverage-v8": "^2.1.2",
66
+ "automd": "^0.3.10",
67
+ "changelogen": "^0.5.7",
68
+ "detect-indent": "^7.0.1",
69
+ "eslint": "^9.12.0",
70
+ "eslint-config-unjs": "^0.4.1",
71
+ "jiti": "^2.3.1",
72
+ "js-toml": "^1.0.0",
73
+ "js-yaml": "^4.1.0",
74
+ "json5": "^2.2.3",
75
+ "jsonc-parser": "^3.3.1",
76
+ "mitata": "^1.0.10",
77
+ "prettier": "^3.3.3",
78
+ "smol-toml": "^1.3.0",
79
+ "toml": "^3.0.0",
80
+ "typescript": "^5.6.2",
81
+ "unbuild": "^2.0.0",
82
+ "vitest": "^2.1.2",
83
+ "yaml": "^2.5.1"
84
+ },
85
+ "packageManager": "pnpm@9.12.0"
86
+ }
@@ -0,0 +1,2 @@
1
+ export * from "./dist/toml";
2
+ export { default } from "./dist/toml";
@@ -0,0 +1,2 @@
1
+ export * from "./dist/yaml";
2
+ export { default } from "./dist/yaml";