usage-board 3.1.0 → 3.1.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 (219) hide show
  1. package/dist/index.mjs +1 -1
  2. package/dist/public/_nuxt/{BuL2_OVR.js → B6C9KBQ4.js} +1 -1
  3. package/dist/public/_nuxt/{CbwePq4F.js → Bv6agYS5.js} +1 -1
  4. package/dist/public/_nuxt/{LYzk-FvL.js → BvRyOET7.js} +1 -1
  5. package/dist/public/_nuxt/{CF27djws.js → CMWftE4h.js} +1 -1
  6. package/dist/public/_nuxt/{CoVMsEv_.js → COIbUy5w.js} +1 -1
  7. package/dist/public/_nuxt/{DS17D0R7.js → CXLmM1yO.js} +1 -1
  8. package/dist/public/_nuxt/{Bz0aA7IQ.js → DFqWEFN4.js} +1 -1
  9. package/dist/public/_nuxt/{WjVGlVHF.js → DUoLvn3A.js} +1 -1
  10. package/dist/public/_nuxt/{Dzuxw4nD.js → D_W11Quh.js} +1 -1
  11. package/dist/public/_nuxt/{D7Qebc1i.js → DgKrPjze.js} +2 -2
  12. package/dist/public/_nuxt/{CEZpUSPI.js → DkxY2YMp.js} +1 -1
  13. package/dist/public/_nuxt/{Dr4nyTE3.js → DtbPvE6R.js} +1 -1
  14. package/dist/public/_nuxt/{BJUAqwzD.js → HiqUua3-.js} +1 -1
  15. package/dist/public/_nuxt/builds/latest.json +1 -1
  16. package/dist/public/_nuxt/builds/meta/6f98f1cb-266c-475e-a249-dad346a55f24.json +1 -0
  17. package/dist/public/_nuxt/error-404.CFBEg71j.css +1 -0
  18. package/dist/public/_nuxt/error-500.BqCnH31G.css +1 -0
  19. package/dist/public/_nuxt/{Cd5S9Sm2.js → uHQwCIHg.js} +1 -1
  20. package/dist/server/chunks/_/error-500.mjs +2 -20
  21. package/dist/server/chunks/build/client.precomputed.mjs +1 -1
  22. package/dist/server/chunks/nitro/nitro.mjs +1885 -3648
  23. package/dist/server/chunks/routes/api/analysis/agent/session.json.mjs +8 -9
  24. package/dist/server/chunks/routes/api/analysis/agent/token.json.mjs +8 -9
  25. package/dist/server/chunks/routes/api/analysis/cache.json.mjs +8 -9
  26. package/dist/server/chunks/routes/api/analysis/hot-project.json.mjs +8 -9
  27. package/dist/server/chunks/routes/api/analysis/model.json.mjs +8 -9
  28. package/dist/server/chunks/routes/api/analysis/overview-cards.json.mjs +8 -9
  29. package/dist/server/chunks/routes/api/analysis/session.json.mjs +8 -9
  30. package/dist/server/chunks/routes/api/analysis/token/daily.json.mjs +8 -9
  31. package/dist/server/chunks/routes/api/analysis/token.json.mjs +8 -9
  32. package/dist/server/chunks/routes/api/payload.json.mjs +8 -9
  33. package/dist/server/chunks/routes/api/projects/_project/modules.get.mjs +8 -9
  34. package/dist/server/chunks/routes/api/projects/catalog.get.mjs +8 -9
  35. package/dist/server/chunks/routes/renderer.mjs +17 -39183
  36. package/dist/server/chunks/routes/ws.mjs +8 -9
  37. package/dist/server/index.mjs +9 -10
  38. package/dist/server/node_modules/@babel/parser/lib/index.js +14582 -0
  39. package/dist/server/node_modules/@babel/parser/package.json +50 -0
  40. package/dist/server/node_modules/@iconify/utils/lib/colors/index.js +292 -0
  41. package/dist/server/node_modules/@iconify/utils/lib/colors/keywords.js +702 -0
  42. package/dist/server/node_modules/@iconify/utils/lib/css/common.js +76 -0
  43. package/dist/server/node_modules/@iconify/utils/lib/css/format.js +40 -0
  44. package/dist/server/node_modules/@iconify/utils/lib/css/icon.js +52 -0
  45. package/dist/server/node_modules/@iconify/utils/lib/css/icons.js +133 -0
  46. package/dist/server/node_modules/@iconify/utils/lib/customisations/bool.js +20 -0
  47. package/dist/server/node_modules/@iconify/utils/lib/customisations/defaults.js +15 -0
  48. package/dist/server/node_modules/@iconify/utils/lib/customisations/flip.js +18 -0
  49. package/dist/server/node_modules/@iconify/utils/lib/customisations/merge.js +18 -0
  50. package/dist/server/node_modules/@iconify/utils/lib/customisations/rotate.js +31 -0
  51. package/dist/server/node_modules/@iconify/utils/lib/emoji/cleanup.js +80 -0
  52. package/dist/server/node_modules/@iconify/utils/lib/emoji/convert.js +102 -0
  53. package/dist/server/node_modules/@iconify/utils/lib/emoji/data.js +29 -0
  54. package/dist/server/node_modules/@iconify/utils/lib/emoji/format.js +60 -0
  55. package/dist/server/node_modules/@iconify/utils/lib/emoji/parse.js +50 -0
  56. package/dist/server/node_modules/@iconify/utils/lib/emoji/regex/base.js +204 -0
  57. package/dist/server/node_modules/@iconify/utils/lib/emoji/regex/create.js +35 -0
  58. package/dist/server/node_modules/@iconify/utils/lib/emoji/regex/numbers.js +134 -0
  59. package/dist/server/node_modules/@iconify/utils/lib/emoji/regex/similar.js +167 -0
  60. package/dist/server/node_modules/@iconify/utils/lib/emoji/regex/tree.js +81 -0
  61. package/dist/server/node_modules/@iconify/utils/lib/emoji/replace/find.js +94 -0
  62. package/dist/server/node_modules/@iconify/utils/lib/emoji/replace/replace.js +28 -0
  63. package/dist/server/node_modules/@iconify/utils/lib/emoji/test/components.js +78 -0
  64. package/dist/server/node_modules/@iconify/utils/lib/emoji/test/missing.js +68 -0
  65. package/dist/server/node_modules/@iconify/utils/lib/emoji/test/name.js +47 -0
  66. package/dist/server/node_modules/@iconify/utils/lib/emoji/test/parse.js +105 -0
  67. package/dist/server/node_modules/@iconify/utils/lib/emoji/test/similar.js +38 -0
  68. package/dist/server/node_modules/@iconify/utils/lib/emoji/test/tree.js +94 -0
  69. package/dist/server/node_modules/@iconify/utils/lib/emoji/test/variations.js +64 -0
  70. package/dist/server/node_modules/@iconify/utils/lib/icon/defaults.js +26 -0
  71. package/dist/server/node_modules/@iconify/utils/lib/icon/merge.js +18 -0
  72. package/dist/server/node_modules/@iconify/utils/lib/icon/name.js +58 -0
  73. package/dist/server/node_modules/@iconify/utils/lib/icon/square.js +34 -0
  74. package/dist/server/node_modules/@iconify/utils/lib/icon/transformations.js +13 -0
  75. package/dist/server/node_modules/@iconify/utils/lib/icon-set/convert-info.js +126 -0
  76. package/dist/server/node_modules/@iconify/utils/lib/icon-set/expand.js +21 -0
  77. package/dist/server/node_modules/@iconify/utils/lib/icon-set/get-icon.js +27 -0
  78. package/dist/server/node_modules/@iconify/utils/lib/icon-set/get-icons.js +38 -0
  79. package/dist/server/node_modules/@iconify/utils/lib/icon-set/minify.js +93 -0
  80. package/dist/server/node_modules/@iconify/utils/lib/icon-set/parse.js +48 -0
  81. package/dist/server/node_modules/@iconify/utils/lib/icon-set/tree.js +24 -0
  82. package/dist/server/node_modules/@iconify/utils/lib/icon-set/validate-basic.js +44 -0
  83. package/dist/server/node_modules/@iconify/utils/lib/icon-set/validate.js +125 -0
  84. package/dist/server/node_modules/@iconify/utils/lib/index.js +53 -0
  85. package/dist/server/node_modules/@iconify/utils/lib/loader/custom.js +32 -0
  86. package/dist/server/node_modules/@iconify/utils/lib/loader/loader.js +28 -0
  87. package/dist/server/node_modules/@iconify/utils/lib/loader/modern.js +42 -0
  88. package/dist/server/node_modules/@iconify/utils/lib/loader/utils.js +63 -0
  89. package/dist/server/node_modules/@iconify/utils/lib/misc/objects.js +27 -0
  90. package/dist/server/node_modules/@iconify/utils/lib/misc/strings.js +27 -0
  91. package/dist/server/node_modules/@iconify/utils/lib/misc/title.js +10 -0
  92. package/dist/server/node_modules/@iconify/utils/lib/svg/build.js +115 -0
  93. package/dist/server/node_modules/@iconify/utils/lib/svg/defs.js +32 -0
  94. package/dist/server/node_modules/@iconify/utils/lib/svg/encode-svg-for-css.js +15 -0
  95. package/dist/server/node_modules/@iconify/utils/lib/svg/html.js +10 -0
  96. package/dist/server/node_modules/@iconify/utils/lib/svg/id.js +42 -0
  97. package/dist/server/node_modules/@iconify/utils/lib/svg/inner-html.js +23 -0
  98. package/dist/server/node_modules/@iconify/utils/lib/svg/parse.js +69 -0
  99. package/dist/server/node_modules/@iconify/utils/lib/svg/pretty.js +55 -0
  100. package/dist/server/node_modules/@iconify/utils/lib/svg/size.js +28 -0
  101. package/dist/server/node_modules/@iconify/utils/lib/svg/trim.js +8 -0
  102. package/dist/server/node_modules/@iconify/utils/lib/svg/url.js +23 -0
  103. package/dist/server/node_modules/@iconify/utils/lib/svg/viewbox.js +9 -0
  104. package/dist/server/node_modules/@iconify/utils/package.json +118 -0
  105. package/dist/server/node_modules/@lonewolfyx/utils/dist/index.mjs +63 -0
  106. package/dist/server/node_modules/@lonewolfyx/utils/package.json +64 -0
  107. package/dist/server/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js +6763 -0
  108. package/dist/server/node_modules/@vue/compiler-core/package.json +58 -0
  109. package/dist/server/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.js +689 -0
  110. package/dist/server/node_modules/@vue/compiler-dom/package.json +57 -0
  111. package/dist/server/node_modules/@vue/compiler-ssr/dist/compiler-ssr.cjs.js +1413 -0
  112. package/dist/server/node_modules/@vue/compiler-ssr/package.json +34 -0
  113. package/dist/server/node_modules/@vue/reactivity/dist/reactivity.cjs.prod.js +1877 -0
  114. package/dist/server/node_modules/@vue/reactivity/package.json +55 -0
  115. package/dist/server/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js +6856 -0
  116. package/dist/server/node_modules/@vue/runtime-core/package.json +52 -0
  117. package/dist/server/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.prod.js +1796 -0
  118. package/dist/server/node_modules/@vue/runtime-dom/package.json +60 -0
  119. package/dist/server/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js +883 -0
  120. package/dist/server/node_modules/@vue/server-renderer/package.json +55 -0
  121. package/dist/server/{chunks/_/shared.cjs.prod.mjs → node_modules/@vue/shared/dist/shared.cjs.prod.js} +76 -81
  122. package/dist/server/node_modules/@vue/shared/package.json +47 -0
  123. package/dist/server/node_modules/better-sqlite3/build/Release/better_sqlite3.node +0 -0
  124. package/dist/server/node_modules/better-sqlite3/lib/database.js +90 -0
  125. package/dist/server/node_modules/better-sqlite3/lib/index.js +3 -0
  126. package/dist/server/node_modules/better-sqlite3/lib/methods/aggregate.js +43 -0
  127. package/dist/server/node_modules/better-sqlite3/lib/methods/backup.js +67 -0
  128. package/dist/server/node_modules/better-sqlite3/lib/methods/function.js +31 -0
  129. package/dist/server/node_modules/better-sqlite3/lib/methods/inspect.js +7 -0
  130. package/dist/server/node_modules/better-sqlite3/lib/methods/pragma.js +12 -0
  131. package/dist/server/node_modules/better-sqlite3/lib/methods/serialize.js +16 -0
  132. package/dist/server/node_modules/better-sqlite3/lib/methods/table.js +189 -0
  133. package/dist/server/node_modules/better-sqlite3/lib/methods/transaction.js +78 -0
  134. package/dist/server/node_modules/better-sqlite3/lib/methods/wrappers.js +54 -0
  135. package/dist/server/node_modules/better-sqlite3/lib/sqlite-error.js +20 -0
  136. package/dist/server/node_modules/better-sqlite3/lib/util.js +12 -0
  137. package/dist/server/node_modules/better-sqlite3/package.json +59 -0
  138. package/dist/server/node_modules/bindings/bindings.js +221 -0
  139. package/dist/server/node_modules/bindings/package.json +28 -0
  140. package/dist/server/node_modules/chokidar/handler.js +632 -0
  141. package/dist/server/node_modules/chokidar/index.js +822 -0
  142. package/dist/server/node_modules/chokidar/package.json +63 -0
  143. package/dist/server/{chunks/_ → node_modules/consola/dist/chunks}/prompt.mjs +2 -1
  144. package/dist/server/node_modules/consola/dist/core.mjs +512 -0
  145. package/dist/server/node_modules/consola/dist/index.mjs +651 -0
  146. package/dist/server/node_modules/consola/dist/shared/consola.DRwqZj3T.mjs +72 -0
  147. package/dist/server/node_modules/consola/dist/shared/consola.DXBYu-KD.mjs +288 -0
  148. package/dist/server/node_modules/consola/package.json +136 -0
  149. package/dist/server/node_modules/devalue/index.js +4 -0
  150. package/dist/server/node_modules/devalue/package.json +40 -0
  151. package/dist/server/node_modules/devalue/src/base64.js +60 -0
  152. package/dist/server/node_modules/devalue/src/constants.js +7 -0
  153. package/dist/server/node_modules/devalue/src/parse.js +268 -0
  154. package/dist/server/node_modules/devalue/src/stringify.js +335 -0
  155. package/dist/server/node_modules/devalue/src/uneval.js +552 -0
  156. package/dist/server/node_modules/devalue/src/utils.js +144 -0
  157. package/dist/server/node_modules/entities/dist/commonjs/decode-codepoint.js +77 -0
  158. package/dist/server/node_modules/entities/dist/commonjs/decode.js +568 -0
  159. package/dist/server/node_modules/entities/dist/commonjs/generated/decode-data-html.js +7 -0
  160. package/dist/server/node_modules/entities/dist/commonjs/generated/decode-data-xml.js +7 -0
  161. package/dist/server/node_modules/entities/dist/commonjs/internal/bin-trie-flags.js +21 -0
  162. package/dist/server/node_modules/entities/dist/commonjs/internal/decode-shared.js +31 -0
  163. package/dist/server/node_modules/entities/dist/commonjs/package.json +3 -0
  164. package/dist/server/node_modules/entities/package.json +120 -0
  165. package/dist/server/node_modules/estree-walker/dist/umd/estree-walker.js +344 -0
  166. package/dist/server/node_modules/estree-walker/package.json +37 -0
  167. package/dist/server/node_modules/file-uri-to-path/index.js +66 -0
  168. package/dist/server/node_modules/file-uri-to-path/package.json +32 -0
  169. package/dist/server/node_modules/glob/dist/esm/index.min.js +4 -0
  170. package/dist/server/node_modules/glob/dist/esm/package.json +3 -0
  171. package/dist/server/node_modules/glob/package.json +98 -0
  172. package/dist/server/node_modules/hookable/dist/index.mjs +257 -0
  173. package/dist/server/node_modules/hookable/package.json +53 -0
  174. package/dist/server/node_modules/md5-typescript/dist/bundles/bundle.umd.js +208 -0
  175. package/dist/server/node_modules/md5-typescript/package.json +31 -0
  176. package/dist/server/node_modules/path-type/index.js +42 -0
  177. package/dist/server/node_modules/path-type/package.json +51 -0
  178. package/dist/server/node_modules/readdirp/index.js +272 -0
  179. package/dist/server/node_modules/readdirp/package.json +66 -0
  180. package/dist/server/node_modules/source-map-js/lib/array-set.js +121 -0
  181. package/dist/server/node_modules/source-map-js/lib/base64-vlq.js +140 -0
  182. package/dist/server/node_modules/source-map-js/lib/base64.js +67 -0
  183. package/dist/server/node_modules/source-map-js/lib/binary-search.js +111 -0
  184. package/dist/server/node_modules/source-map-js/lib/mapping-list.js +79 -0
  185. package/dist/server/node_modules/source-map-js/lib/quick-sort.js +132 -0
  186. package/dist/server/node_modules/source-map-js/lib/source-map-consumer.js +1188 -0
  187. package/dist/server/node_modules/source-map-js/lib/source-map-generator.js +444 -0
  188. package/dist/server/node_modules/source-map-js/lib/source-node.js +413 -0
  189. package/dist/server/node_modules/source-map-js/lib/util.js +594 -0
  190. package/dist/server/node_modules/source-map-js/package.json +71 -0
  191. package/dist/server/node_modules/source-map-js/source-map.js +8 -0
  192. package/dist/server/node_modules/ufo/dist/index.mjs +645 -0
  193. package/dist/server/node_modules/ufo/package.json +48 -0
  194. package/dist/server/node_modules/unhead/dist/parser.mjs +508 -0
  195. package/dist/server/node_modules/unhead/dist/plugins.mjs +101 -0
  196. package/dist/server/node_modules/unhead/dist/server.mjs +180 -0
  197. package/dist/server/node_modules/unhead/dist/shared/unhead.B5FWS6X0.mjs +207 -0
  198. package/dist/server/node_modules/unhead/dist/shared/unhead.BYvz9V1x.mjs +43 -0
  199. package/dist/server/node_modules/unhead/dist/shared/unhead.CbpEuj3y.mjs +71 -0
  200. package/dist/server/node_modules/unhead/dist/shared/unhead.Ct24BOby.mjs +182 -0
  201. package/dist/server/node_modules/unhead/dist/shared/unhead.D4vSFytZ.mjs +236 -0
  202. package/dist/server/node_modules/unhead/dist/shared/unhead.DQc16pHI.mjs +196 -0
  203. package/dist/server/node_modules/unhead/dist/shared/unhead.TxTMM7cM.mjs +166 -0
  204. package/dist/server/node_modules/unhead/dist/shared/unhead.yem5I2v_.mjs +38 -0
  205. package/dist/server/node_modules/unhead/dist/utils.mjs +5 -0
  206. package/dist/server/node_modules/unhead/package.json +105 -0
  207. package/dist/server/node_modules/vue/dist/vue.cjs.js +80 -0
  208. package/dist/server/node_modules/vue/dist/vue.cjs.prod.js +66 -0
  209. package/dist/server/node_modules/vue/index.js +7 -0
  210. package/dist/server/node_modules/vue/index.mjs +1 -0
  211. package/dist/server/node_modules/vue/package.json +112 -0
  212. package/dist/server/node_modules/vue/server-renderer/index.mjs +1 -0
  213. package/dist/server/node_modules/vue-bundle-renderer/dist/runtime.mjs +301 -0
  214. package/dist/server/node_modules/vue-bundle-renderer/package.json +55 -0
  215. package/dist/server/package.json +37 -0
  216. package/package.json +3 -1
  217. package/dist/public/_nuxt/builds/meta/5b933d30-47b4-45ca-8d5a-cba3255174fa.json +0 -1
  218. package/dist/public/_nuxt/error-404.B0EXnOcv.css +0 -1
  219. package/dist/public/_nuxt/error-500.CnSNZoEG.css +0 -1
@@ -0,0 +1,55 @@
1
+ {
2
+ "name": "@vue/server-renderer",
3
+ "version": "3.5.32",
4
+ "description": "@vue/server-renderer",
5
+ "main": "index.js",
6
+ "module": "dist/server-renderer.esm-bundler.js",
7
+ "types": "dist/server-renderer.d.ts",
8
+ "files": [
9
+ "index.js",
10
+ "dist"
11
+ ],
12
+ "exports": {
13
+ ".": {
14
+ "types": "./dist/server-renderer.d.ts",
15
+ "node": {
16
+ "production": "./dist/server-renderer.cjs.prod.js",
17
+ "development": "./dist/server-renderer.cjs.js",
18
+ "default": "./dist/server-renderer.cjs.prod.js"
19
+ },
20
+ "module": "./dist/server-renderer.esm-bundler.js",
21
+ "import": "./dist/server-renderer.esm-bundler.js",
22
+ "require": "./index.js"
23
+ },
24
+ "./*": "./*"
25
+ },
26
+ "buildOptions": {
27
+ "name": "VueServerRenderer",
28
+ "formats": [
29
+ "esm-bundler",
30
+ "esm-browser",
31
+ "cjs"
32
+ ]
33
+ },
34
+ "repository": {
35
+ "type": "git",
36
+ "url": "git+https://github.com/vuejs/core.git",
37
+ "directory": "packages/server-renderer"
38
+ },
39
+ "keywords": [
40
+ "vue"
41
+ ],
42
+ "author": "Evan You",
43
+ "license": "MIT",
44
+ "bugs": {
45
+ "url": "https://github.com/vuejs/core/issues"
46
+ },
47
+ "homepage": "https://github.com/vuejs/core/tree/main/packages/server-renderer#readme",
48
+ "peerDependencies": {
49
+ "vue": "3.5.32"
50
+ },
51
+ "dependencies": {
52
+ "@vue/compiler-ssr": "3.5.32",
53
+ "@vue/shared": "3.5.32"
54
+ }
55
+ }
@@ -1,14 +1,11 @@
1
- import { y as commonjsGlobal } from '../nitro/nitro.mjs';
2
-
3
- var shared_cjs_prod = {};
4
-
5
1
  /**
6
2
  * @vue/shared v3.5.32
7
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
8
4
  * @license MIT
9
5
  **/
6
+ 'use strict';
10
7
 
11
- Object.defineProperty(shared_cjs_prod, '__esModule', { value: true });
8
+ Object.defineProperty(exports, '__esModule', { value: true });
12
9
 
13
10
  // @__NO_SIDE_EFFECTS__
14
11
  function makeMap(str) {
@@ -110,7 +107,7 @@ const toNumber = (val) => {
110
107
  };
111
108
  let _globalThis;
112
109
  const getGlobalThis = () => {
113
- return _globalThis || (_globalThis = typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : typeof commonjsGlobal !== "undefined" ? commonjsGlobal : {});
110
+ return _globalThis || (_globalThis = typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : {});
114
111
  };
115
112
  const identRE = /^[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*$/;
116
113
  function genPropsAccessExp(name) {
@@ -532,78 +529,76 @@ function normalizeCssVarValue(value) {
532
529
  return String(value);
533
530
  }
534
531
 
535
- shared_cjs_prod.EMPTY_ARR = EMPTY_ARR;
536
- shared_cjs_prod.EMPTY_OBJ = EMPTY_OBJ;
537
- shared_cjs_prod.NO = NO;
538
- shared_cjs_prod.NOOP = NOOP;
539
- shared_cjs_prod.PatchFlagNames = PatchFlagNames;
540
- shared_cjs_prod.PatchFlags = PatchFlags;
541
- shared_cjs_prod.ShapeFlags = ShapeFlags;
542
- shared_cjs_prod.SlotFlags = SlotFlags;
543
- shared_cjs_prod.camelize = camelize;
544
- shared_cjs_prod.capitalize = capitalize;
545
- shared_cjs_prod.cssVarNameEscapeSymbolsRE = cssVarNameEscapeSymbolsRE;
546
- shared_cjs_prod.def = def;
547
- var escapeHtml_1 = shared_cjs_prod.escapeHtml = escapeHtml;
548
- shared_cjs_prod.escapeHtmlComment = escapeHtmlComment;
549
- shared_cjs_prod.extend = extend;
550
- shared_cjs_prod.genCacheKey = genCacheKey;
551
- shared_cjs_prod.genPropsAccessExp = genPropsAccessExp;
552
- shared_cjs_prod.generateCodeFrame = generateCodeFrame;
553
- shared_cjs_prod.getEscapedCssVarName = getEscapedCssVarName;
554
- shared_cjs_prod.getGlobalThis = getGlobalThis;
555
- shared_cjs_prod.hasChanged = hasChanged;
556
- shared_cjs_prod.hasOwn = hasOwn;
557
- shared_cjs_prod.hyphenate = hyphenate;
558
- shared_cjs_prod.includeBooleanAttr = includeBooleanAttr;
559
- shared_cjs_prod.invokeArrayFns = invokeArrayFns;
560
- shared_cjs_prod.isArray = isArray;
561
- shared_cjs_prod.isBooleanAttr = isBooleanAttr;
562
- shared_cjs_prod.isBuiltInDirective = isBuiltInDirective;
563
- shared_cjs_prod.isDate = isDate;
564
- shared_cjs_prod.isFunction = isFunction;
565
- shared_cjs_prod.isGloballyAllowed = isGloballyAllowed;
566
- shared_cjs_prod.isGloballyWhitelisted = isGloballyWhitelisted;
567
- shared_cjs_prod.isHTMLTag = isHTMLTag;
568
- shared_cjs_prod.isIntegerKey = isIntegerKey;
569
- shared_cjs_prod.isKnownHtmlAttr = isKnownHtmlAttr;
570
- shared_cjs_prod.isKnownMathMLAttr = isKnownMathMLAttr;
571
- shared_cjs_prod.isKnownSvgAttr = isKnownSvgAttr;
572
- shared_cjs_prod.isMap = isMap;
573
- shared_cjs_prod.isMathMLTag = isMathMLTag;
574
- shared_cjs_prod.isModelListener = isModelListener;
575
- shared_cjs_prod.isObject = isObject;
576
- shared_cjs_prod.isOn = isOn;
577
- shared_cjs_prod.isPlainObject = isPlainObject;
578
- shared_cjs_prod.isPromise = isPromise;
579
- shared_cjs_prod.isRegExp = isRegExp;
580
- shared_cjs_prod.isRenderableAttrValue = isRenderableAttrValue;
581
- shared_cjs_prod.isReservedProp = isReservedProp;
582
- shared_cjs_prod.isSSRSafeAttrName = isSSRSafeAttrName;
583
- shared_cjs_prod.isSVGTag = isSVGTag;
584
- shared_cjs_prod.isSet = isSet;
585
- shared_cjs_prod.isSpecialBooleanAttr = isSpecialBooleanAttr;
586
- shared_cjs_prod.isString = isString;
587
- shared_cjs_prod.isSymbol = isSymbol;
588
- shared_cjs_prod.isVoidTag = isVoidTag;
589
- shared_cjs_prod.looseEqual = looseEqual;
590
- shared_cjs_prod.looseIndexOf = looseIndexOf;
591
- shared_cjs_prod.looseToNumber = looseToNumber;
592
- shared_cjs_prod.makeMap = makeMap;
593
- shared_cjs_prod.normalizeClass = normalizeClass;
594
- shared_cjs_prod.normalizeCssVarValue = normalizeCssVarValue;
595
- shared_cjs_prod.normalizeProps = normalizeProps;
596
- shared_cjs_prod.normalizeStyle = normalizeStyle;
597
- shared_cjs_prod.objectToString = objectToString;
598
- shared_cjs_prod.parseStringStyle = parseStringStyle;
599
- shared_cjs_prod.propsToAttrMap = propsToAttrMap;
600
- shared_cjs_prod.remove = remove;
601
- shared_cjs_prod.slotFlagsText = slotFlagsText;
602
- shared_cjs_prod.stringifyStyle = stringifyStyle;
603
- shared_cjs_prod.toDisplayString = toDisplayString;
604
- shared_cjs_prod.toHandlerKey = toHandlerKey;
605
- shared_cjs_prod.toNumber = toNumber;
606
- shared_cjs_prod.toRawType = toRawType;
607
- shared_cjs_prod.toTypeString = toTypeString;
608
-
609
- export { escapeHtml_1 as e, shared_cjs_prod as s };
532
+ exports.EMPTY_ARR = EMPTY_ARR;
533
+ exports.EMPTY_OBJ = EMPTY_OBJ;
534
+ exports.NO = NO;
535
+ exports.NOOP = NOOP;
536
+ exports.PatchFlagNames = PatchFlagNames;
537
+ exports.PatchFlags = PatchFlags;
538
+ exports.ShapeFlags = ShapeFlags;
539
+ exports.SlotFlags = SlotFlags;
540
+ exports.camelize = camelize;
541
+ exports.capitalize = capitalize;
542
+ exports.cssVarNameEscapeSymbolsRE = cssVarNameEscapeSymbolsRE;
543
+ exports.def = def;
544
+ exports.escapeHtml = escapeHtml;
545
+ exports.escapeHtmlComment = escapeHtmlComment;
546
+ exports.extend = extend;
547
+ exports.genCacheKey = genCacheKey;
548
+ exports.genPropsAccessExp = genPropsAccessExp;
549
+ exports.generateCodeFrame = generateCodeFrame;
550
+ exports.getEscapedCssVarName = getEscapedCssVarName;
551
+ exports.getGlobalThis = getGlobalThis;
552
+ exports.hasChanged = hasChanged;
553
+ exports.hasOwn = hasOwn;
554
+ exports.hyphenate = hyphenate;
555
+ exports.includeBooleanAttr = includeBooleanAttr;
556
+ exports.invokeArrayFns = invokeArrayFns;
557
+ exports.isArray = isArray;
558
+ exports.isBooleanAttr = isBooleanAttr;
559
+ exports.isBuiltInDirective = isBuiltInDirective;
560
+ exports.isDate = isDate;
561
+ exports.isFunction = isFunction;
562
+ exports.isGloballyAllowed = isGloballyAllowed;
563
+ exports.isGloballyWhitelisted = isGloballyWhitelisted;
564
+ exports.isHTMLTag = isHTMLTag;
565
+ exports.isIntegerKey = isIntegerKey;
566
+ exports.isKnownHtmlAttr = isKnownHtmlAttr;
567
+ exports.isKnownMathMLAttr = isKnownMathMLAttr;
568
+ exports.isKnownSvgAttr = isKnownSvgAttr;
569
+ exports.isMap = isMap;
570
+ exports.isMathMLTag = isMathMLTag;
571
+ exports.isModelListener = isModelListener;
572
+ exports.isObject = isObject;
573
+ exports.isOn = isOn;
574
+ exports.isPlainObject = isPlainObject;
575
+ exports.isPromise = isPromise;
576
+ exports.isRegExp = isRegExp;
577
+ exports.isRenderableAttrValue = isRenderableAttrValue;
578
+ exports.isReservedProp = isReservedProp;
579
+ exports.isSSRSafeAttrName = isSSRSafeAttrName;
580
+ exports.isSVGTag = isSVGTag;
581
+ exports.isSet = isSet;
582
+ exports.isSpecialBooleanAttr = isSpecialBooleanAttr;
583
+ exports.isString = isString;
584
+ exports.isSymbol = isSymbol;
585
+ exports.isVoidTag = isVoidTag;
586
+ exports.looseEqual = looseEqual;
587
+ exports.looseIndexOf = looseIndexOf;
588
+ exports.looseToNumber = looseToNumber;
589
+ exports.makeMap = makeMap;
590
+ exports.normalizeClass = normalizeClass;
591
+ exports.normalizeCssVarValue = normalizeCssVarValue;
592
+ exports.normalizeProps = normalizeProps;
593
+ exports.normalizeStyle = normalizeStyle;
594
+ exports.objectToString = objectToString;
595
+ exports.parseStringStyle = parseStringStyle;
596
+ exports.propsToAttrMap = propsToAttrMap;
597
+ exports.remove = remove;
598
+ exports.slotFlagsText = slotFlagsText;
599
+ exports.stringifyStyle = stringifyStyle;
600
+ exports.toDisplayString = toDisplayString;
601
+ exports.toHandlerKey = toHandlerKey;
602
+ exports.toNumber = toNumber;
603
+ exports.toRawType = toRawType;
604
+ exports.toTypeString = toTypeString;
@@ -0,0 +1,47 @@
1
+ {
2
+ "name": "@vue/shared",
3
+ "version": "3.5.32",
4
+ "description": "internal utils shared across @vue packages",
5
+ "main": "index.js",
6
+ "module": "dist/shared.esm-bundler.js",
7
+ "types": "dist/shared.d.ts",
8
+ "files": [
9
+ "index.js",
10
+ "dist"
11
+ ],
12
+ "exports": {
13
+ ".": {
14
+ "types": "./dist/shared.d.ts",
15
+ "node": {
16
+ "production": "./dist/shared.cjs.prod.js",
17
+ "development": "./dist/shared.cjs.js",
18
+ "default": "./dist/shared.cjs.prod.js"
19
+ },
20
+ "module": "./dist/shared.esm-bundler.js",
21
+ "import": "./dist/shared.esm-bundler.js",
22
+ "require": "./index.js"
23
+ },
24
+ "./*": "./*"
25
+ },
26
+ "sideEffects": false,
27
+ "buildOptions": {
28
+ "formats": [
29
+ "esm-bundler",
30
+ "cjs"
31
+ ]
32
+ },
33
+ "repository": {
34
+ "type": "git",
35
+ "url": "git+https://github.com/vuejs/core.git",
36
+ "directory": "packages/shared"
37
+ },
38
+ "keywords": [
39
+ "vue"
40
+ ],
41
+ "author": "Evan You",
42
+ "license": "MIT",
43
+ "bugs": {
44
+ "url": "https://github.com/vuejs/core/issues"
45
+ },
46
+ "homepage": "https://github.com/vuejs/core/tree/main/packages/shared#readme"
47
+ }
@@ -0,0 +1,90 @@
1
+ 'use strict';
2
+ const fs = require('fs');
3
+ const path = require('path');
4
+ const util = require('./util');
5
+ const SqliteError = require('./sqlite-error');
6
+
7
+ let DEFAULT_ADDON;
8
+
9
+ function Database(filenameGiven, options) {
10
+ if (new.target == null) {
11
+ return new Database(filenameGiven, options);
12
+ }
13
+
14
+ // Apply defaults
15
+ let buffer;
16
+ if (Buffer.isBuffer(filenameGiven)) {
17
+ buffer = filenameGiven;
18
+ filenameGiven = ':memory:';
19
+ }
20
+ if (filenameGiven == null) filenameGiven = '';
21
+ if (options == null) options = {};
22
+
23
+ // Validate arguments
24
+ if (typeof filenameGiven !== 'string') throw new TypeError('Expected first argument to be a string');
25
+ if (typeof options !== 'object') throw new TypeError('Expected second argument to be an options object');
26
+ if ('readOnly' in options) throw new TypeError('Misspelled option "readOnly" should be "readonly"');
27
+ if ('memory' in options) throw new TypeError('Option "memory" was removed in v7.0.0 (use ":memory:" filename instead)');
28
+
29
+ // Interpret options
30
+ const filename = filenameGiven.trim();
31
+ const anonymous = filename === '' || filename === ':memory:';
32
+ const readonly = util.getBooleanOption(options, 'readonly');
33
+ const fileMustExist = util.getBooleanOption(options, 'fileMustExist');
34
+ const timeout = 'timeout' in options ? options.timeout : 5000;
35
+ const verbose = 'verbose' in options ? options.verbose : null;
36
+ const nativeBinding = 'nativeBinding' in options ? options.nativeBinding : null;
37
+
38
+ // Validate interpreted options
39
+ if (readonly && anonymous && !buffer) throw new TypeError('In-memory/temporary databases cannot be readonly');
40
+ if (!Number.isInteger(timeout) || timeout < 0) throw new TypeError('Expected the "timeout" option to be a positive integer');
41
+ if (timeout > 0x7fffffff) throw new RangeError('Option "timeout" cannot be greater than 2147483647');
42
+ if (verbose != null && typeof verbose !== 'function') throw new TypeError('Expected the "verbose" option to be a function');
43
+ if (nativeBinding != null && typeof nativeBinding !== 'string' && typeof nativeBinding !== 'object') throw new TypeError('Expected the "nativeBinding" option to be a string or addon object');
44
+
45
+ // Load the native addon
46
+ let addon;
47
+ if (nativeBinding == null) {
48
+ addon = DEFAULT_ADDON || (DEFAULT_ADDON = require('bindings')('better_sqlite3.node'));
49
+ } else if (typeof nativeBinding === 'string') {
50
+ // See <https://webpack.js.org/api/module-variables/#__non_webpack_require__-webpack-specific>
51
+ const requireFunc = typeof __non_webpack_require__ === 'function' ? __non_webpack_require__ : require;
52
+ addon = requireFunc(path.resolve(nativeBinding).replace(/(\.node)?$/, '.node'));
53
+ } else {
54
+ // See <https://github.com/WiseLibs/better-sqlite3/issues/972>
55
+ addon = nativeBinding;
56
+ }
57
+
58
+ if (!addon.isInitialized) {
59
+ addon.setErrorConstructor(SqliteError);
60
+ addon.isInitialized = true;
61
+ }
62
+
63
+ // Make sure the specified directory exists
64
+ if (!anonymous && !filename.startsWith('file:') && !fs.existsSync(path.dirname(filename))) {
65
+ throw new TypeError('Cannot open database because the directory does not exist');
66
+ }
67
+
68
+ Object.defineProperties(this, {
69
+ [util.cppdb]: { value: new addon.Database(filename, filenameGiven, anonymous, readonly, fileMustExist, timeout, verbose || null, buffer || null) },
70
+ ...wrappers.getters,
71
+ });
72
+ }
73
+
74
+ const wrappers = require('./methods/wrappers');
75
+ Database.prototype.prepare = wrappers.prepare;
76
+ Database.prototype.transaction = require('./methods/transaction');
77
+ Database.prototype.pragma = require('./methods/pragma');
78
+ Database.prototype.backup = require('./methods/backup');
79
+ Database.prototype.serialize = require('./methods/serialize');
80
+ Database.prototype.function = require('./methods/function');
81
+ Database.prototype.aggregate = require('./methods/aggregate');
82
+ Database.prototype.table = require('./methods/table');
83
+ Database.prototype.loadExtension = wrappers.loadExtension;
84
+ Database.prototype.exec = wrappers.exec;
85
+ Database.prototype.close = wrappers.close;
86
+ Database.prototype.defaultSafeIntegers = wrappers.defaultSafeIntegers;
87
+ Database.prototype.unsafeMode = wrappers.unsafeMode;
88
+ Database.prototype[util.inspect] = require('./methods/inspect');
89
+
90
+ module.exports = Database;
@@ -0,0 +1,3 @@
1
+ 'use strict';
2
+ module.exports = require('./database');
3
+ module.exports.SqliteError = require('./sqlite-error');
@@ -0,0 +1,43 @@
1
+ 'use strict';
2
+ const { getBooleanOption, cppdb } = require('../util');
3
+
4
+ module.exports = function defineAggregate(name, options) {
5
+ // Validate arguments
6
+ if (typeof name !== 'string') throw new TypeError('Expected first argument to be a string');
7
+ if (typeof options !== 'object' || options === null) throw new TypeError('Expected second argument to be an options object');
8
+ if (!name) throw new TypeError('User-defined function name cannot be an empty string');
9
+
10
+ // Interpret options
11
+ const start = 'start' in options ? options.start : null;
12
+ const step = getFunctionOption(options, 'step', true);
13
+ const inverse = getFunctionOption(options, 'inverse', false);
14
+ const result = getFunctionOption(options, 'result', false);
15
+ const safeIntegers = 'safeIntegers' in options ? +getBooleanOption(options, 'safeIntegers') : 2;
16
+ const deterministic = getBooleanOption(options, 'deterministic');
17
+ const directOnly = getBooleanOption(options, 'directOnly');
18
+ const varargs = getBooleanOption(options, 'varargs');
19
+ let argCount = -1;
20
+
21
+ // Determine argument count
22
+ if (!varargs) {
23
+ argCount = Math.max(getLength(step), inverse ? getLength(inverse) : 0);
24
+ if (argCount > 0) argCount -= 1;
25
+ if (argCount > 100) throw new RangeError('User-defined functions cannot have more than 100 arguments');
26
+ }
27
+
28
+ this[cppdb].aggregate(start, step, inverse, result, name, argCount, safeIntegers, deterministic, directOnly);
29
+ return this;
30
+ };
31
+
32
+ const getFunctionOption = (options, key, required) => {
33
+ const value = key in options ? options[key] : null;
34
+ if (typeof value === 'function') return value;
35
+ if (value != null) throw new TypeError(`Expected the "${key}" option to be a function`);
36
+ if (required) throw new TypeError(`Missing required option "${key}"`);
37
+ return null;
38
+ };
39
+
40
+ const getLength = ({ length }) => {
41
+ if (Number.isInteger(length) && length >= 0) return length;
42
+ throw new TypeError('Expected function.length to be a positive integer');
43
+ };
@@ -0,0 +1,67 @@
1
+ 'use strict';
2
+ const fs = require('fs');
3
+ const path = require('path');
4
+ const { promisify } = require('util');
5
+ const { cppdb } = require('../util');
6
+ const fsAccess = promisify(fs.access);
7
+
8
+ module.exports = async function backup(filename, options) {
9
+ if (options == null) options = {};
10
+
11
+ // Validate arguments
12
+ if (typeof filename !== 'string') throw new TypeError('Expected first argument to be a string');
13
+ if (typeof options !== 'object') throw new TypeError('Expected second argument to be an options object');
14
+
15
+ // Interpret options
16
+ filename = filename.trim();
17
+ const attachedName = 'attached' in options ? options.attached : 'main';
18
+ const handler = 'progress' in options ? options.progress : null;
19
+
20
+ // Validate interpreted options
21
+ if (!filename) throw new TypeError('Backup filename cannot be an empty string');
22
+ if (filename === ':memory:') throw new TypeError('Invalid backup filename ":memory:"');
23
+ if (typeof attachedName !== 'string') throw new TypeError('Expected the "attached" option to be a string');
24
+ if (!attachedName) throw new TypeError('The "attached" option cannot be an empty string');
25
+ if (handler != null && typeof handler !== 'function') throw new TypeError('Expected the "progress" option to be a function');
26
+
27
+ // Make sure the specified directory exists
28
+ await fsAccess(path.dirname(filename)).catch(() => {
29
+ throw new TypeError('Cannot save backup because the directory does not exist');
30
+ });
31
+
32
+ const isNewFile = await fsAccess(filename).then(() => false, () => true);
33
+ return runBackup(this[cppdb].backup(this, attachedName, filename, isNewFile), handler || null);
34
+ };
35
+
36
+ const runBackup = (backup, handler) => {
37
+ let rate = 0;
38
+ let useDefault = true;
39
+
40
+ return new Promise((resolve, reject) => {
41
+ setImmediate(function step() {
42
+ try {
43
+ const progress = backup.transfer(rate);
44
+ if (!progress.remainingPages) {
45
+ backup.close();
46
+ resolve(progress);
47
+ return;
48
+ }
49
+ if (useDefault) {
50
+ useDefault = false;
51
+ rate = 100;
52
+ }
53
+ if (handler) {
54
+ const ret = handler(progress);
55
+ if (ret !== undefined) {
56
+ if (typeof ret === 'number' && ret === ret) rate = Math.max(0, Math.min(0x7fffffff, Math.round(ret)));
57
+ else throw new TypeError('Expected progress callback to return a number or undefined');
58
+ }
59
+ }
60
+ setImmediate(step);
61
+ } catch (err) {
62
+ backup.close();
63
+ reject(err);
64
+ }
65
+ });
66
+ });
67
+ };
@@ -0,0 +1,31 @@
1
+ 'use strict';
2
+ const { getBooleanOption, cppdb } = require('../util');
3
+
4
+ module.exports = function defineFunction(name, options, fn) {
5
+ // Apply defaults
6
+ if (options == null) options = {};
7
+ if (typeof options === 'function') { fn = options; options = {}; }
8
+
9
+ // Validate arguments
10
+ if (typeof name !== 'string') throw new TypeError('Expected first argument to be a string');
11
+ if (typeof fn !== 'function') throw new TypeError('Expected last argument to be a function');
12
+ if (typeof options !== 'object') throw new TypeError('Expected second argument to be an options object');
13
+ if (!name) throw new TypeError('User-defined function name cannot be an empty string');
14
+
15
+ // Interpret options
16
+ const safeIntegers = 'safeIntegers' in options ? +getBooleanOption(options, 'safeIntegers') : 2;
17
+ const deterministic = getBooleanOption(options, 'deterministic');
18
+ const directOnly = getBooleanOption(options, 'directOnly');
19
+ const varargs = getBooleanOption(options, 'varargs');
20
+ let argCount = -1;
21
+
22
+ // Determine argument count
23
+ if (!varargs) {
24
+ argCount = fn.length;
25
+ if (!Number.isInteger(argCount) || argCount < 0) throw new TypeError('Expected function.length to be a positive integer');
26
+ if (argCount > 100) throw new RangeError('User-defined functions cannot have more than 100 arguments');
27
+ }
28
+
29
+ this[cppdb].function(fn, name, argCount, safeIntegers, deterministic, directOnly);
30
+ return this;
31
+ };
@@ -0,0 +1,7 @@
1
+ 'use strict';
2
+ const DatabaseInspection = function Database() {};
3
+
4
+ module.exports = function inspect(depth, opts) {
5
+ return Object.assign(new DatabaseInspection(), this);
6
+ };
7
+
@@ -0,0 +1,12 @@
1
+ 'use strict';
2
+ const { getBooleanOption, cppdb } = require('../util');
3
+
4
+ module.exports = function pragma(source, options) {
5
+ if (options == null) options = {};
6
+ if (typeof source !== 'string') throw new TypeError('Expected first argument to be a string');
7
+ if (typeof options !== 'object') throw new TypeError('Expected second argument to be an options object');
8
+ const simple = getBooleanOption(options, 'simple');
9
+
10
+ const stmt = this[cppdb].prepare(`PRAGMA ${source}`, this, true);
11
+ return simple ? stmt.pluck().get() : stmt.all();
12
+ };
@@ -0,0 +1,16 @@
1
+ 'use strict';
2
+ const { cppdb } = require('../util');
3
+
4
+ module.exports = function serialize(options) {
5
+ if (options == null) options = {};
6
+
7
+ // Validate arguments
8
+ if (typeof options !== 'object') throw new TypeError('Expected first argument to be an options object');
9
+
10
+ // Interpret and validate options
11
+ const attachedName = 'attached' in options ? options.attached : 'main';
12
+ if (typeof attachedName !== 'string') throw new TypeError('Expected the "attached" option to be a string');
13
+ if (!attachedName) throw new TypeError('The "attached" option cannot be an empty string');
14
+
15
+ return this[cppdb].serialize(attachedName);
16
+ };