mockaton 13.9.9 → 13.10.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 (279) hide show
  1. package/package.json +3 -2
  2. package/src/client/app-header.js +62 -42
  3. package/src/client/app.css +22 -4
  4. package/src/client/dir/dittoSplitPaths.js +1 -1
  5. package/src/client/dir/dittoSplitPaths.test.js +9 -7
  6. package/src/server/MockBroker.js +1 -1
  7. package/src/server/cli.test.js +1 -1
  8. package/src/server/mockBrokersCollection.js +4 -2
  9. package/vite-plugin/README.md +0 -29
  10. package/vite-plugin/node_modules/.package-lock.json +0 -356
  11. package/vite-plugin/node_modules/@oxc-project/types/LICENSE +0 -22
  12. package/vite-plugin/node_modules/@oxc-project/types/README.md +0 -3
  13. package/vite-plugin/node_modules/@oxc-project/types/package.json +0 -26
  14. package/vite-plugin/node_modules/@oxc-project/types/types.d.ts +0 -1912
  15. package/vite-plugin/node_modules/@rolldown/binding-darwin-arm64/README.md +0 -3
  16. package/vite-plugin/node_modules/@rolldown/binding-darwin-arm64/package.json +0 -37
  17. package/vite-plugin/node_modules/@rolldown/binding-darwin-arm64/rolldown-binding.darwin-arm64.node +0 -0
  18. package/vite-plugin/node_modules/@rolldown/pluginutils/LICENSE +0 -25
  19. package/vite-plugin/node_modules/@rolldown/pluginutils/README.md +0 -83
  20. package/vite-plugin/node_modules/@rolldown/pluginutils/dist/filter/composable-filters.d.ts +0 -90
  21. package/vite-plugin/node_modules/@rolldown/pluginutils/dist/filter/composable-filters.js +0 -256
  22. package/vite-plugin/node_modules/@rolldown/pluginutils/dist/filter/filter-vite-plugins.d.ts +0 -28
  23. package/vite-plugin/node_modules/@rolldown/pluginutils/dist/filter/filter-vite-plugins.js +0 -75
  24. package/vite-plugin/node_modules/@rolldown/pluginutils/dist/filter/index.d.ts +0 -3
  25. package/vite-plugin/node_modules/@rolldown/pluginutils/dist/filter/index.js +0 -3
  26. package/vite-plugin/node_modules/@rolldown/pluginutils/dist/filter/simple-filters.d.ts +0 -71
  27. package/vite-plugin/node_modules/@rolldown/pluginutils/dist/filter/simple-filters.js +0 -70
  28. package/vite-plugin/node_modules/@rolldown/pluginutils/dist/index.d.ts +0 -1
  29. package/vite-plugin/node_modules/@rolldown/pluginutils/dist/index.js +0 -1
  30. package/vite-plugin/node_modules/@rolldown/pluginutils/dist/utils.d.ts +0 -2
  31. package/vite-plugin/node_modules/@rolldown/pluginutils/dist/utils.js +0 -17
  32. package/vite-plugin/node_modules/@rolldown/pluginutils/package.json +0 -37
  33. package/vite-plugin/node_modules/detect-libc/LICENSE +0 -201
  34. package/vite-plugin/node_modules/detect-libc/README.md +0 -163
  35. package/vite-plugin/node_modules/detect-libc/index.d.ts +0 -14
  36. package/vite-plugin/node_modules/detect-libc/lib/detect-libc.js +0 -313
  37. package/vite-plugin/node_modules/detect-libc/lib/elf.js +0 -39
  38. package/vite-plugin/node_modules/detect-libc/lib/filesystem.js +0 -51
  39. package/vite-plugin/node_modules/detect-libc/lib/process.js +0 -24
  40. package/vite-plugin/node_modules/detect-libc/package.json +0 -44
  41. package/vite-plugin/node_modules/fdir/LICENSE +0 -7
  42. package/vite-plugin/node_modules/fdir/README.md +0 -91
  43. package/vite-plugin/node_modules/fdir/dist/index.cjs +0 -588
  44. package/vite-plugin/node_modules/fdir/dist/index.d.cts +0 -155
  45. package/vite-plugin/node_modules/fdir/dist/index.d.mts +0 -155
  46. package/vite-plugin/node_modules/fdir/dist/index.mjs +0 -570
  47. package/vite-plugin/node_modules/fdir/package.json +0 -103
  48. package/vite-plugin/node_modules/fsevents/LICENSE +0 -22
  49. package/vite-plugin/node_modules/fsevents/README.md +0 -89
  50. package/vite-plugin/node_modules/fsevents/fsevents.d.ts +0 -46
  51. package/vite-plugin/node_modules/fsevents/fsevents.js +0 -83
  52. package/vite-plugin/node_modules/fsevents/fsevents.node +0 -0
  53. package/vite-plugin/node_modules/fsevents/package.json +0 -62
  54. package/vite-plugin/node_modules/lightningcss/LICENSE +0 -373
  55. package/vite-plugin/node_modules/lightningcss/README.md +0 -105
  56. package/vite-plugin/node_modules/lightningcss/node/ast.d.ts +0 -9892
  57. package/vite-plugin/node_modules/lightningcss/node/ast.js.flow +0 -10539
  58. package/vite-plugin/node_modules/lightningcss/node/browserslistToTargets.js +0 -48
  59. package/vite-plugin/node_modules/lightningcss/node/composeVisitors.js +0 -450
  60. package/vite-plugin/node_modules/lightningcss/node/flags.js +0 -28
  61. package/vite-plugin/node_modules/lightningcss/node/index.d.ts +0 -494
  62. package/vite-plugin/node_modules/lightningcss/node/index.js +0 -59
  63. package/vite-plugin/node_modules/lightningcss/node/index.js.flow +0 -843
  64. package/vite-plugin/node_modules/lightningcss/node/index.mjs +0 -4
  65. package/vite-plugin/node_modules/lightningcss/node/targets.d.ts +0 -40
  66. package/vite-plugin/node_modules/lightningcss/node/targets.js.flow +0 -39
  67. package/vite-plugin/node_modules/lightningcss/package.json +0 -110
  68. package/vite-plugin/node_modules/lightningcss-darwin-arm64/LICENSE +0 -373
  69. package/vite-plugin/node_modules/lightningcss-darwin-arm64/README.md +0 -1
  70. package/vite-plugin/node_modules/lightningcss-darwin-arm64/lightningcss.darwin-arm64.node +0 -0
  71. package/vite-plugin/node_modules/lightningcss-darwin-arm64/package.json +0 -34
  72. package/vite-plugin/node_modules/nanoid/LICENSE +0 -20
  73. package/vite-plugin/node_modules/nanoid/README.md +0 -39
  74. package/vite-plugin/node_modules/nanoid/async/index.browser.cjs +0 -69
  75. package/vite-plugin/node_modules/nanoid/async/index.browser.js +0 -34
  76. package/vite-plugin/node_modules/nanoid/async/index.cjs +0 -71
  77. package/vite-plugin/node_modules/nanoid/async/index.d.ts +0 -56
  78. package/vite-plugin/node_modules/nanoid/async/index.js +0 -35
  79. package/vite-plugin/node_modules/nanoid/async/index.native.js +0 -26
  80. package/vite-plugin/node_modules/nanoid/async/package.json +0 -12
  81. package/vite-plugin/node_modules/nanoid/bin/nanoid.cjs +0 -55
  82. package/vite-plugin/node_modules/nanoid/index.browser.cjs +0 -72
  83. package/vite-plugin/node_modules/nanoid/index.browser.js +0 -34
  84. package/vite-plugin/node_modules/nanoid/index.cjs +0 -85
  85. package/vite-plugin/node_modules/nanoid/index.d.cts +0 -91
  86. package/vite-plugin/node_modules/nanoid/index.d.ts +0 -91
  87. package/vite-plugin/node_modules/nanoid/index.js +0 -45
  88. package/vite-plugin/node_modules/nanoid/nanoid.js +0 -1
  89. package/vite-plugin/node_modules/nanoid/non-secure/index.cjs +0 -34
  90. package/vite-plugin/node_modules/nanoid/non-secure/index.d.ts +0 -33
  91. package/vite-plugin/node_modules/nanoid/non-secure/index.js +0 -21
  92. package/vite-plugin/node_modules/nanoid/non-secure/package.json +0 -6
  93. package/vite-plugin/node_modules/nanoid/package.json +0 -89
  94. package/vite-plugin/node_modules/nanoid/url-alphabet/index.cjs +0 -7
  95. package/vite-plugin/node_modules/nanoid/url-alphabet/index.js +0 -3
  96. package/vite-plugin/node_modules/nanoid/url-alphabet/package.json +0 -6
  97. package/vite-plugin/node_modules/picocolors/LICENSE +0 -15
  98. package/vite-plugin/node_modules/picocolors/README.md +0 -21
  99. package/vite-plugin/node_modules/picocolors/package.json +0 -25
  100. package/vite-plugin/node_modules/picocolors/picocolors.browser.js +0 -4
  101. package/vite-plugin/node_modules/picocolors/picocolors.d.ts +0 -5
  102. package/vite-plugin/node_modules/picocolors/picocolors.js +0 -75
  103. package/vite-plugin/node_modules/picocolors/types.d.ts +0 -51
  104. package/vite-plugin/node_modules/picomatch/LICENSE +0 -21
  105. package/vite-plugin/node_modules/picomatch/README.md +0 -749
  106. package/vite-plugin/node_modules/picomatch/index.js +0 -17
  107. package/vite-plugin/node_modules/picomatch/lib/constants.js +0 -184
  108. package/vite-plugin/node_modules/picomatch/lib/parse.js +0 -1386
  109. package/vite-plugin/node_modules/picomatch/lib/picomatch.js +0 -349
  110. package/vite-plugin/node_modules/picomatch/lib/scan.js +0 -391
  111. package/vite-plugin/node_modules/picomatch/lib/utils.js +0 -72
  112. package/vite-plugin/node_modules/picomatch/package.json +0 -82
  113. package/vite-plugin/node_modules/picomatch/posix.js +0 -3
  114. package/vite-plugin/node_modules/postcss/LICENSE +0 -20
  115. package/vite-plugin/node_modules/postcss/README.md +0 -28
  116. package/vite-plugin/node_modules/postcss/lib/at-rule.d.ts +0 -139
  117. package/vite-plugin/node_modules/postcss/lib/at-rule.js +0 -25
  118. package/vite-plugin/node_modules/postcss/lib/comment.d.ts +0 -67
  119. package/vite-plugin/node_modules/postcss/lib/comment.js +0 -13
  120. package/vite-plugin/node_modules/postcss/lib/container.d.ts +0 -478
  121. package/vite-plugin/node_modules/postcss/lib/container.js +0 -447
  122. package/vite-plugin/node_modules/postcss/lib/css-syntax-error.d.ts +0 -247
  123. package/vite-plugin/node_modules/postcss/lib/css-syntax-error.js +0 -133
  124. package/vite-plugin/node_modules/postcss/lib/declaration.d.ts +0 -150
  125. package/vite-plugin/node_modules/postcss/lib/declaration.js +0 -24
  126. package/vite-plugin/node_modules/postcss/lib/document.d.ts +0 -68
  127. package/vite-plugin/node_modules/postcss/lib/document.js +0 -33
  128. package/vite-plugin/node_modules/postcss/lib/fromJSON.d.ts +0 -9
  129. package/vite-plugin/node_modules/postcss/lib/fromJSON.js +0 -54
  130. package/vite-plugin/node_modules/postcss/lib/input.d.ts +0 -226
  131. package/vite-plugin/node_modules/postcss/lib/input.js +0 -273
  132. package/vite-plugin/node_modules/postcss/lib/lazy-result.d.ts +0 -189
  133. package/vite-plugin/node_modules/postcss/lib/lazy-result.js +0 -550
  134. package/vite-plugin/node_modules/postcss/lib/list.d.ts +0 -60
  135. package/vite-plugin/node_modules/postcss/lib/list.js +0 -58
  136. package/vite-plugin/node_modules/postcss/lib/map-generator.js +0 -376
  137. package/vite-plugin/node_modules/postcss/lib/no-work-result.d.ts +0 -45
  138. package/vite-plugin/node_modules/postcss/lib/no-work-result.js +0 -137
  139. package/vite-plugin/node_modules/postcss/lib/node.d.ts +0 -555
  140. package/vite-plugin/node_modules/postcss/lib/node.js +0 -449
  141. package/vite-plugin/node_modules/postcss/lib/parse.d.ts +0 -9
  142. package/vite-plugin/node_modules/postcss/lib/parse.js +0 -42
  143. package/vite-plugin/node_modules/postcss/lib/parser.js +0 -611
  144. package/vite-plugin/node_modules/postcss/lib/postcss.d.mts +0 -66
  145. package/vite-plugin/node_modules/postcss/lib/postcss.d.ts +0 -456
  146. package/vite-plugin/node_modules/postcss/lib/postcss.js +0 -101
  147. package/vite-plugin/node_modules/postcss/lib/postcss.mjs +0 -30
  148. package/vite-plugin/node_modules/postcss/lib/previous-map.d.ts +0 -80
  149. package/vite-plugin/node_modules/postcss/lib/previous-map.js +0 -145
  150. package/vite-plugin/node_modules/postcss/lib/processor.d.ts +0 -114
  151. package/vite-plugin/node_modules/postcss/lib/processor.js +0 -67
  152. package/vite-plugin/node_modules/postcss/lib/result.d.ts +0 -204
  153. package/vite-plugin/node_modules/postcss/lib/result.js +0 -42
  154. package/vite-plugin/node_modules/postcss/lib/root.d.ts +0 -86
  155. package/vite-plugin/node_modules/postcss/lib/root.js +0 -61
  156. package/vite-plugin/node_modules/postcss/lib/rule.d.ts +0 -126
  157. package/vite-plugin/node_modules/postcss/lib/rule.js +0 -27
  158. package/vite-plugin/node_modules/postcss/lib/stringifier.d.ts +0 -45
  159. package/vite-plugin/node_modules/postcss/lib/stringifier.js +0 -370
  160. package/vite-plugin/node_modules/postcss/lib/stringify.d.ts +0 -9
  161. package/vite-plugin/node_modules/postcss/lib/stringify.js +0 -11
  162. package/vite-plugin/node_modules/postcss/lib/symbols.js +0 -5
  163. package/vite-plugin/node_modules/postcss/lib/terminal-highlight.js +0 -70
  164. package/vite-plugin/node_modules/postcss/lib/tokenize.js +0 -266
  165. package/vite-plugin/node_modules/postcss/lib/warn-once.js +0 -13
  166. package/vite-plugin/node_modules/postcss/lib/warning.d.ts +0 -146
  167. package/vite-plugin/node_modules/postcss/lib/warning.js +0 -37
  168. package/vite-plugin/node_modules/postcss/package.json +0 -88
  169. package/vite-plugin/node_modules/rolldown/LICENSE +0 -25
  170. package/vite-plugin/node_modules/rolldown/README.md +0 -11
  171. package/vite-plugin/node_modules/rolldown/bin/cli.mjs +0 -2
  172. package/vite-plugin/node_modules/rolldown/dist/cli.d.mts +0 -1
  173. package/vite-plugin/node_modules/rolldown/dist/cli.mjs +0 -1191
  174. package/vite-plugin/node_modules/rolldown/dist/config.d.mts +0 -14
  175. package/vite-plugin/node_modules/rolldown/dist/config.mjs +0 -4
  176. package/vite-plugin/node_modules/rolldown/dist/experimental-index.d.mts +0 -253
  177. package/vite-plugin/node_modules/rolldown/dist/experimental-index.mjs +0 -320
  178. package/vite-plugin/node_modules/rolldown/dist/experimental-runtime-types.d.ts +0 -98
  179. package/vite-plugin/node_modules/rolldown/dist/filter-index.d.mts +0 -196
  180. package/vite-plugin/node_modules/rolldown/dist/filter-index.mjs +0 -386
  181. package/vite-plugin/node_modules/rolldown/dist/get-log-filter.d.mts +0 -3
  182. package/vite-plugin/node_modules/rolldown/dist/get-log-filter.mjs +0 -68
  183. package/vite-plugin/node_modules/rolldown/dist/index.d.mts +0 -4
  184. package/vite-plugin/node_modules/rolldown/dist/index.mjs +0 -50
  185. package/vite-plugin/node_modules/rolldown/dist/parallel-plugin-worker.d.mts +0 -1
  186. package/vite-plugin/node_modules/rolldown/dist/parallel-plugin-worker.mjs +0 -28
  187. package/vite-plugin/node_modules/rolldown/dist/parallel-plugin.d.mts +0 -13
  188. package/vite-plugin/node_modules/rolldown/dist/parallel-plugin.mjs +0 -6
  189. package/vite-plugin/node_modules/rolldown/dist/parse-ast-index.d.mts +0 -32
  190. package/vite-plugin/node_modules/rolldown/dist/parse-ast-index.mjs +0 -60
  191. package/vite-plugin/node_modules/rolldown/dist/plugins-index.d.mts +0 -33
  192. package/vite-plugin/node_modules/rolldown/dist/plugins-index.mjs +0 -40
  193. package/vite-plugin/node_modules/rolldown/dist/shared/binding-BeU_1iEk.mjs +0 -582
  194. package/vite-plugin/node_modules/rolldown/dist/shared/binding-zH1vcmbM.d.mts +0 -1899
  195. package/vite-plugin/node_modules/rolldown/dist/shared/bindingify-input-options-DbbBhzky.mjs +0 -2211
  196. package/vite-plugin/node_modules/rolldown/dist/shared/constructors-C2EWPKW3.mjs +0 -68
  197. package/vite-plugin/node_modules/rolldown/dist/shared/constructors-D0W3rNfA.d.mts +0 -37
  198. package/vite-plugin/node_modules/rolldown/dist/shared/define-config-5HJ1b9vG.d.mts +0 -3829
  199. package/vite-plugin/node_modules/rolldown/dist/shared/define-config-DJOr6Iwt.mjs +0 -6
  200. package/vite-plugin/node_modules/rolldown/dist/shared/error-DL-e8-oE.mjs +0 -85
  201. package/vite-plugin/node_modules/rolldown/dist/shared/get-log-filter-semyr3Lj.d.mts +0 -35
  202. package/vite-plugin/node_modules/rolldown/dist/shared/load-config-BoVO31Un.mjs +0 -120
  203. package/vite-plugin/node_modules/rolldown/dist/shared/logging-C6h4g8dA.d.mts +0 -50
  204. package/vite-plugin/node_modules/rolldown/dist/shared/logs-D80CXhvg.mjs +0 -180
  205. package/vite-plugin/node_modules/rolldown/dist/shared/misc-DJYbNKZX.mjs +0 -21
  206. package/vite-plugin/node_modules/rolldown/dist/shared/normalize-string-or-regex-CbQQ69gT.mjs +0 -66
  207. package/vite-plugin/node_modules/rolldown/dist/shared/parse-B_ZnWxLZ.mjs +0 -74
  208. package/vite-plugin/node_modules/rolldown/dist/shared/prompt-U5ajztzG.mjs +0 -847
  209. package/vite-plugin/node_modules/rolldown/dist/shared/resolve-tsconfig-CfYpGzid.mjs +0 -113
  210. package/vite-plugin/node_modules/rolldown/dist/shared/rolldown-D3JZ9rMt.mjs +0 -40
  211. package/vite-plugin/node_modules/rolldown/dist/shared/rolldown-build-DSxL8qiP.mjs +0 -3325
  212. package/vite-plugin/node_modules/rolldown/dist/shared/transform-DgZ3paSD.d.mts +0 -149
  213. package/vite-plugin/node_modules/rolldown/dist/shared/watch-Bd8v9ewv.mjs +0 -374
  214. package/vite-plugin/node_modules/rolldown/dist/utils-index.d.mts +0 -376
  215. package/vite-plugin/node_modules/rolldown/dist/utils-index.mjs +0 -2414
  216. package/vite-plugin/node_modules/rolldown/package.json +0 -153
  217. package/vite-plugin/node_modules/source-map-js/LICENSE +0 -28
  218. package/vite-plugin/node_modules/source-map-js/README.md +0 -765
  219. package/vite-plugin/node_modules/source-map-js/lib/array-set.js +0 -121
  220. package/vite-plugin/node_modules/source-map-js/lib/base64-vlq.js +0 -140
  221. package/vite-plugin/node_modules/source-map-js/lib/base64.js +0 -67
  222. package/vite-plugin/node_modules/source-map-js/lib/binary-search.js +0 -111
  223. package/vite-plugin/node_modules/source-map-js/lib/mapping-list.js +0 -79
  224. package/vite-plugin/node_modules/source-map-js/lib/quick-sort.js +0 -132
  225. package/vite-plugin/node_modules/source-map-js/lib/source-map-consumer.d.ts +0 -1
  226. package/vite-plugin/node_modules/source-map-js/lib/source-map-consumer.js +0 -1188
  227. package/vite-plugin/node_modules/source-map-js/lib/source-map-generator.d.ts +0 -1
  228. package/vite-plugin/node_modules/source-map-js/lib/source-map-generator.js +0 -444
  229. package/vite-plugin/node_modules/source-map-js/lib/source-node.d.ts +0 -1
  230. package/vite-plugin/node_modules/source-map-js/lib/source-node.js +0 -413
  231. package/vite-plugin/node_modules/source-map-js/lib/util.js +0 -594
  232. package/vite-plugin/node_modules/source-map-js/package.json +0 -71
  233. package/vite-plugin/node_modules/source-map-js/source-map.d.ts +0 -104
  234. package/vite-plugin/node_modules/source-map-js/source-map.js +0 -8
  235. package/vite-plugin/node_modules/tinyglobby/LICENSE +0 -21
  236. package/vite-plugin/node_modules/tinyglobby/README.md +0 -25
  237. package/vite-plugin/node_modules/tinyglobby/dist/index.cjs +0 -334
  238. package/vite-plugin/node_modules/tinyglobby/dist/index.d.cts +0 -148
  239. package/vite-plugin/node_modules/tinyglobby/dist/index.d.mts +0 -148
  240. package/vite-plugin/node_modules/tinyglobby/dist/index.mjs +0 -306
  241. package/vite-plugin/node_modules/tinyglobby/package.json +0 -73
  242. package/vite-plugin/node_modules/vite/LICENSE.md +0 -2230
  243. package/vite-plugin/node_modules/vite/README.md +0 -20
  244. package/vite-plugin/node_modules/vite/bin/openChrome.js +0 -68
  245. package/vite-plugin/node_modules/vite/bin/vite.js +0 -79
  246. package/vite-plugin/node_modules/vite/client.d.ts +0 -282
  247. package/vite-plugin/node_modules/vite/dist/client/client.mjs +0 -1237
  248. package/vite-plugin/node_modules/vite/dist/client/env.mjs +0 -18
  249. package/vite-plugin/node_modules/vite/dist/node/chunks/build.js +0 -5381
  250. package/vite-plugin/node_modules/vite/dist/node/chunks/chunk.js +0 -37
  251. package/vite-plugin/node_modules/vite/dist/node/chunks/dist.js +0 -6784
  252. package/vite-plugin/node_modules/vite/dist/node/chunks/lib.js +0 -371
  253. package/vite-plugin/node_modules/vite/dist/node/chunks/logger.js +0 -322
  254. package/vite-plugin/node_modules/vite/dist/node/chunks/moduleRunnerTransport.d.ts +0 -96
  255. package/vite-plugin/node_modules/vite/dist/node/chunks/node.js +0 -34874
  256. package/vite-plugin/node_modules/vite/dist/node/chunks/postcss-import.js +0 -467
  257. package/vite-plugin/node_modules/vite/dist/node/cli.js +0 -837
  258. package/vite-plugin/node_modules/vite/dist/node/index.d.ts +0 -3867
  259. package/vite-plugin/node_modules/vite/dist/node/index.js +0 -3
  260. package/vite-plugin/node_modules/vite/dist/node/internal.d.ts +0 -2
  261. package/vite-plugin/node_modules/vite/dist/node/internal.js +0 -2
  262. package/vite-plugin/node_modules/vite/dist/node/module-runner.d.ts +0 -315
  263. package/vite-plugin/node_modules/vite/dist/node/module-runner.js +0 -1262
  264. package/vite-plugin/node_modules/vite/misc/false.js +0 -1
  265. package/vite-plugin/node_modules/vite/misc/true.js +0 -1
  266. package/vite-plugin/node_modules/vite/package.json +0 -192
  267. package/vite-plugin/node_modules/vite/types/customEvent.d.ts +0 -79
  268. package/vite-plugin/node_modules/vite/types/hmrPayload.d.ts +0 -80
  269. package/vite-plugin/node_modules/vite/types/hot.d.ts +0 -39
  270. package/vite-plugin/node_modules/vite/types/import-meta.d.ts +0 -5
  271. package/vite-plugin/node_modules/vite/types/importGlob.d.ts +0 -89
  272. package/vite-plugin/node_modules/vite/types/importMeta.d.ts +0 -30
  273. package/vite-plugin/node_modules/vite/types/internal/cssPreprocessorOptions.d.ts +0 -44
  274. package/vite-plugin/node_modules/vite/types/internal/esbuildOptions.d.ts +0 -28
  275. package/vite-plugin/node_modules/vite/types/internal/lightningcssOptions.d.ts +0 -18
  276. package/vite-plugin/node_modules/vite/types/internal/rollupTypeCompat.d.ts +0 -24
  277. package/vite-plugin/node_modules/vite/types/internal/terserOptions.d.ts +0 -11
  278. package/vite-plugin/node_modules/vite/types/metadata.d.ts +0 -47
  279. package/vite-plugin/package.json +0 -17
@@ -1,447 +0,0 @@
1
- 'use strict'
2
-
3
- let Comment = require('./comment')
4
- let Declaration = require('./declaration')
5
- let Node = require('./node')
6
- let { isClean, my } = require('./symbols')
7
-
8
- let AtRule, parse, Root, Rule
9
-
10
- function cleanSource(nodes) {
11
- return nodes.map(i => {
12
- if (i.nodes) i.nodes = cleanSource(i.nodes)
13
- delete i.source
14
- return i
15
- })
16
- }
17
-
18
- function markTreeDirty(node) {
19
- node[isClean] = false
20
- if (node.proxyOf.nodes) {
21
- for (let i of node.proxyOf.nodes) {
22
- markTreeDirty(i)
23
- }
24
- }
25
- }
26
-
27
- class Container extends Node {
28
- get first() {
29
- if (!this.proxyOf.nodes) return undefined
30
- return this.proxyOf.nodes[0]
31
- }
32
-
33
- get last() {
34
- if (!this.proxyOf.nodes) return undefined
35
- return this.proxyOf.nodes[this.proxyOf.nodes.length - 1]
36
- }
37
-
38
- append(...children) {
39
- for (let child of children) {
40
- let nodes = this.normalize(child, this.last)
41
- for (let node of nodes) this.proxyOf.nodes.push(node)
42
- }
43
-
44
- this.markDirty()
45
-
46
- return this
47
- }
48
-
49
- cleanRaws(keepBetween) {
50
- super.cleanRaws(keepBetween)
51
- if (this.nodes) {
52
- for (let node of this.nodes) node.cleanRaws(keepBetween)
53
- }
54
- }
55
-
56
- each(callback) {
57
- if (!this.proxyOf.nodes) return undefined
58
- let iterator = this.getIterator()
59
-
60
- let index, result
61
- while (this.indexes[iterator] < this.proxyOf.nodes.length) {
62
- index = this.indexes[iterator]
63
- result = callback(this.proxyOf.nodes[index], index)
64
- if (result === false) break
65
-
66
- this.indexes[iterator] += 1
67
- }
68
-
69
- delete this.indexes[iterator]
70
- return result
71
- }
72
-
73
- every(condition) {
74
- return this.nodes.every(condition)
75
- }
76
-
77
- getIterator() {
78
- if (!this.lastEach) this.lastEach = 0
79
- if (!this.indexes) this.indexes = {}
80
-
81
- this.lastEach += 1
82
- let iterator = this.lastEach
83
- this.indexes[iterator] = 0
84
-
85
- return iterator
86
- }
87
-
88
- getProxyProcessor() {
89
- return {
90
- get(node, prop) {
91
- if (prop === 'proxyOf') {
92
- return node
93
- } else if (!node[prop]) {
94
- return node[prop]
95
- } else if (
96
- prop === 'each' ||
97
- (typeof prop === 'string' && prop.startsWith('walk'))
98
- ) {
99
- return (...args) => {
100
- return node[prop](
101
- ...args.map(i => {
102
- if (typeof i === 'function') {
103
- return (child, index) => i(child.toProxy(), index)
104
- } else {
105
- return i
106
- }
107
- })
108
- )
109
- }
110
- } else if (prop === 'every' || prop === 'some') {
111
- return cb => {
112
- return node[prop]((child, ...other) =>
113
- cb(child.toProxy(), ...other)
114
- )
115
- }
116
- } else if (prop === 'root') {
117
- return () => node.root().toProxy()
118
- } else if (prop === 'nodes') {
119
- return node.nodes.map(i => i.toProxy())
120
- } else if (prop === 'first' || prop === 'last') {
121
- return node[prop].toProxy()
122
- } else {
123
- return node[prop]
124
- }
125
- },
126
-
127
- set(node, prop, value) {
128
- if (node[prop] === value) return true
129
- node[prop] = value
130
- if (prop === 'name' || prop === 'params' || prop === 'selector') {
131
- node.markDirty()
132
- }
133
- return true
134
- }
135
- }
136
- }
137
-
138
- index(child) {
139
- if (typeof child === 'number') return child
140
- if (child.proxyOf) child = child.proxyOf
141
- return this.proxyOf.nodes.indexOf(child)
142
- }
143
-
144
- insertAfter(exist, add) {
145
- let existIndex = this.index(exist)
146
- let nodes = this.normalize(add, this.proxyOf.nodes[existIndex]).reverse()
147
- existIndex = this.index(exist)
148
- for (let node of nodes) this.proxyOf.nodes.splice(existIndex + 1, 0, node)
149
-
150
- let index
151
- for (let id in this.indexes) {
152
- index = this.indexes[id]
153
- if (existIndex < index) {
154
- this.indexes[id] = index + nodes.length
155
- }
156
- }
157
-
158
- this.markDirty()
159
-
160
- return this
161
- }
162
-
163
- insertBefore(exist, add) {
164
- let existIndex = this.index(exist)
165
- let type = existIndex === 0 ? 'prepend' : false
166
- let nodes = this.normalize(
167
- add,
168
- this.proxyOf.nodes[existIndex],
169
- type
170
- ).reverse()
171
- existIndex = this.index(exist)
172
- for (let node of nodes) this.proxyOf.nodes.splice(existIndex, 0, node)
173
-
174
- let index
175
- for (let id in this.indexes) {
176
- index = this.indexes[id]
177
- if (existIndex <= index) {
178
- this.indexes[id] = index + nodes.length
179
- }
180
- }
181
-
182
- this.markDirty()
183
-
184
- return this
185
- }
186
-
187
- normalize(nodes, sample) {
188
- if (typeof nodes === 'string') {
189
- nodes = cleanSource(parse(nodes).nodes)
190
- } else if (typeof nodes === 'undefined') {
191
- nodes = []
192
- } else if (Array.isArray(nodes)) {
193
- nodes = nodes.slice(0)
194
- for (let i of nodes) {
195
- if (i.parent) i.parent.removeChild(i, 'ignore')
196
- }
197
- } else if (nodes.type === 'root' && this.type !== 'document') {
198
- nodes = nodes.nodes.slice(0)
199
- for (let i of nodes) {
200
- if (i.parent) i.parent.removeChild(i, 'ignore')
201
- }
202
- } else if (nodes.type) {
203
- nodes = [nodes]
204
- } else if (nodes.prop) {
205
- if (typeof nodes.value === 'undefined') {
206
- throw new Error('Value field is missed in node creation')
207
- } else if (typeof nodes.value !== 'string') {
208
- nodes.value = String(nodes.value)
209
- }
210
- nodes = [new Declaration(nodes)]
211
- } else if (nodes.selector || nodes.selectors) {
212
- nodes = [new Rule(nodes)]
213
- } else if (nodes.name) {
214
- nodes = [new AtRule(nodes)]
215
- } else if (nodes.text) {
216
- nodes = [new Comment(nodes)]
217
- } else {
218
- throw new Error('Unknown node type in node creation')
219
- }
220
-
221
- let processed = nodes.map(i => {
222
- /* c8 ignore next */
223
- if (!i[my]) Container.rebuild(i)
224
- i = i.proxyOf
225
- if (i.parent) i.parent.removeChild(i)
226
- if (i[isClean]) markTreeDirty(i)
227
-
228
- if (!i.raws) i.raws = {}
229
- if (typeof i.raws.before === 'undefined') {
230
- if (sample && typeof sample.raws.before !== 'undefined') {
231
- i.raws.before = sample.raws.before.replace(/\S/g, '')
232
- }
233
- }
234
- i.parent = this.proxyOf
235
- return i
236
- })
237
-
238
- return processed
239
- }
240
-
241
- prepend(...children) {
242
- children = children.reverse()
243
- for (let child of children) {
244
- let nodes = this.normalize(child, this.first, 'prepend').reverse()
245
- for (let node of nodes) this.proxyOf.nodes.unshift(node)
246
- for (let id in this.indexes) {
247
- this.indexes[id] = this.indexes[id] + nodes.length
248
- }
249
- }
250
-
251
- this.markDirty()
252
-
253
- return this
254
- }
255
-
256
- push(child) {
257
- child.parent = this
258
- this.proxyOf.nodes.push(child)
259
- return this
260
- }
261
-
262
- removeAll() {
263
- for (let node of this.proxyOf.nodes) node.parent = undefined
264
- this.proxyOf.nodes = []
265
-
266
- this.markDirty()
267
-
268
- return this
269
- }
270
-
271
- removeChild(child) {
272
- child = this.index(child)
273
- this.proxyOf.nodes[child].parent = undefined
274
- this.proxyOf.nodes.splice(child, 1)
275
-
276
- let index
277
- for (let id in this.indexes) {
278
- index = this.indexes[id]
279
- if (index >= child) {
280
- this.indexes[id] = index - 1
281
- }
282
- }
283
-
284
- this.markDirty()
285
-
286
- return this
287
- }
288
-
289
- replaceValues(pattern, opts, callback) {
290
- if (!callback) {
291
- callback = opts
292
- opts = {}
293
- }
294
-
295
- this.walkDecls(decl => {
296
- if (opts.props && !opts.props.includes(decl.prop)) return
297
- if (opts.fast && !decl.value.includes(opts.fast)) return
298
-
299
- decl.value = decl.value.replace(pattern, callback)
300
- })
301
-
302
- this.markDirty()
303
-
304
- return this
305
- }
306
-
307
- some(condition) {
308
- return this.nodes.some(condition)
309
- }
310
-
311
- walk(callback) {
312
- return this.each((child, i) => {
313
- let result
314
- try {
315
- result = callback(child, i)
316
- } catch (e) {
317
- throw child.addToError(e)
318
- }
319
- if (result !== false && child.walk) {
320
- result = child.walk(callback)
321
- }
322
-
323
- return result
324
- })
325
- }
326
-
327
- walkAtRules(name, callback) {
328
- if (!callback) {
329
- callback = name
330
- return this.walk((child, i) => {
331
- if (child.type === 'atrule') {
332
- return callback(child, i)
333
- }
334
- })
335
- }
336
- if (name instanceof RegExp) {
337
- return this.walk((child, i) => {
338
- if (child.type === 'atrule' && name.test(child.name)) {
339
- return callback(child, i)
340
- }
341
- })
342
- }
343
- return this.walk((child, i) => {
344
- if (child.type === 'atrule' && child.name === name) {
345
- return callback(child, i)
346
- }
347
- })
348
- }
349
-
350
- walkComments(callback) {
351
- return this.walk((child, i) => {
352
- if (child.type === 'comment') {
353
- return callback(child, i)
354
- }
355
- })
356
- }
357
-
358
- walkDecls(prop, callback) {
359
- if (!callback) {
360
- callback = prop
361
- return this.walk((child, i) => {
362
- if (child.type === 'decl') {
363
- return callback(child, i)
364
- }
365
- })
366
- }
367
- if (prop instanceof RegExp) {
368
- return this.walk((child, i) => {
369
- if (child.type === 'decl' && prop.test(child.prop)) {
370
- return callback(child, i)
371
- }
372
- })
373
- }
374
- return this.walk((child, i) => {
375
- if (child.type === 'decl' && child.prop === prop) {
376
- return callback(child, i)
377
- }
378
- })
379
- }
380
-
381
- walkRules(selector, callback) {
382
- if (!callback) {
383
- callback = selector
384
-
385
- return this.walk((child, i) => {
386
- if (child.type === 'rule') {
387
- return callback(child, i)
388
- }
389
- })
390
- }
391
- if (selector instanceof RegExp) {
392
- return this.walk((child, i) => {
393
- if (child.type === 'rule' && selector.test(child.selector)) {
394
- return callback(child, i)
395
- }
396
- })
397
- }
398
- return this.walk((child, i) => {
399
- if (child.type === 'rule' && child.selector === selector) {
400
- return callback(child, i)
401
- }
402
- })
403
- }
404
- }
405
-
406
- Container.registerParse = dependant => {
407
- parse = dependant
408
- }
409
-
410
- Container.registerRule = dependant => {
411
- Rule = dependant
412
- }
413
-
414
- Container.registerAtRule = dependant => {
415
- AtRule = dependant
416
- }
417
-
418
- Container.registerRoot = dependant => {
419
- Root = dependant
420
- }
421
-
422
- module.exports = Container
423
- Container.default = Container
424
-
425
- /* c8 ignore start */
426
- Container.rebuild = node => {
427
- if (node.type === 'atrule') {
428
- Object.setPrototypeOf(node, AtRule.prototype)
429
- } else if (node.type === 'rule') {
430
- Object.setPrototypeOf(node, Rule.prototype)
431
- } else if (node.type === 'decl') {
432
- Object.setPrototypeOf(node, Declaration.prototype)
433
- } else if (node.type === 'comment') {
434
- Object.setPrototypeOf(node, Comment.prototype)
435
- } else if (node.type === 'root') {
436
- Object.setPrototypeOf(node, Root.prototype)
437
- }
438
-
439
- node[my] = true
440
-
441
- if (node.nodes) {
442
- node.nodes.forEach(child => {
443
- Container.rebuild(child)
444
- })
445
- }
446
- }
447
- /* c8 ignore stop */
@@ -1,247 +0,0 @@
1
- import { FilePosition } from './input.js'
2
-
3
- declare namespace CssSyntaxError {
4
- /**
5
- * A position that is part of a range.
6
- */
7
- export interface RangePosition {
8
- /**
9
- * The column number in the input.
10
- */
11
- column: number
12
-
13
- /**
14
- * The line number in the input.
15
- */
16
- line: number
17
- }
18
-
19
- export { CssSyntaxError_ as default }
20
- }
21
-
22
- /**
23
- * The CSS parser throws this error for broken CSS.
24
- *
25
- * Custom parsers can throw this error for broken custom syntax using
26
- * the `Node#error` method.
27
- *
28
- * PostCSS will use the input source map to detect the original error location.
29
- * If you wrote a Sass file, compiled it to CSS and then parsed it with PostCSS,
30
- * PostCSS will show the original position in the Sass file.
31
- *
32
- * If you need the position in the PostCSS input
33
- * (e.g., to debug the previous compiler), use `error.input.file`.
34
- *
35
- * ```js
36
- * // Raising error from plugin
37
- * throw node.error('Unknown variable', { plugin: 'postcss-vars' })
38
- * ```
39
- *
40
- * ```js
41
- * // Catching and checking syntax error
42
- * try {
43
- * postcss.parse('a{')
44
- * } catch (error) {
45
- * if (error.name === 'CssSyntaxError') {
46
- * error //=> CssSyntaxError
47
- * }
48
- * }
49
- * ```
50
- */
51
- declare class CssSyntaxError_ extends Error {
52
- /**
53
- * Source column of the error.
54
- *
55
- * ```js
56
- * error.column //=> 1
57
- * error.input.column //=> 4
58
- * ```
59
- *
60
- * PostCSS will use the input source map to detect the original location.
61
- * If you need the position in the PostCSS input, use `error.input.column`.
62
- */
63
- column?: number
64
-
65
- /**
66
- * Source column of the error's end, exclusive. Provided if the error pertains
67
- * to a range.
68
- *
69
- * ```js
70
- * error.endColumn //=> 1
71
- * error.input.endColumn //=> 4
72
- * ```
73
- *
74
- * PostCSS will use the input source map to detect the original location.
75
- * If you need the position in the PostCSS input, use `error.input.endColumn`.
76
- */
77
- endColumn?: number
78
-
79
- /**
80
- * Source line of the error's end, exclusive. Provided if the error pertains
81
- * to a range.
82
- *
83
- * ```js
84
- * error.endLine //=> 3
85
- * error.input.endLine //=> 4
86
- * ```
87
- *
88
- * PostCSS will use the input source map to detect the original location.
89
- * If you need the position in the PostCSS input, use `error.input.endLine`.
90
- */
91
- endLine?: number
92
-
93
- /**
94
- * Absolute path to the broken file.
95
- *
96
- * ```js
97
- * error.file //=> 'a.sass'
98
- * error.input.file //=> 'a.css'
99
- * ```
100
- *
101
- * PostCSS will use the input source map to detect the original location.
102
- * If you need the position in the PostCSS input, use `error.input.file`.
103
- */
104
- file?: string
105
-
106
- /**
107
- * Input object with PostCSS internal information
108
- * about input file. If input has source map
109
- * from previous tool, PostCSS will use origin
110
- * (for example, Sass) source. You can use this
111
- * object to get PostCSS input source.
112
- *
113
- * ```js
114
- * error.input.file //=> 'a.css'
115
- * error.file //=> 'a.sass'
116
- * ```
117
- */
118
- input?: FilePosition
119
-
120
- /**
121
- * Source line of the error.
122
- *
123
- * ```js
124
- * error.line //=> 2
125
- * error.input.line //=> 4
126
- * ```
127
- *
128
- * PostCSS will use the input source map to detect the original location.
129
- * If you need the position in the PostCSS input, use `error.input.line`.
130
- */
131
- line?: number
132
-
133
- /**
134
- * Full error text in the GNU error format
135
- * with plugin, file, line and column.
136
- *
137
- * ```js
138
- * error.message //=> 'a.css:1:1: Unclosed block'
139
- * ```
140
- */
141
- message: string
142
-
143
- /**
144
- * Always equal to `'CssSyntaxError'`. You should always check error type
145
- * by `error.name === 'CssSyntaxError'`
146
- * instead of `error instanceof CssSyntaxError`,
147
- * because npm could have several PostCSS versions.
148
- *
149
- * ```js
150
- * if (error.name === 'CssSyntaxError') {
151
- * error //=> CssSyntaxError
152
- * }
153
- * ```
154
- */
155
- name: 'CssSyntaxError'
156
-
157
- /**
158
- * Plugin name, if error came from plugin.
159
- *
160
- * ```js
161
- * error.plugin //=> 'postcss-vars'
162
- * ```
163
- */
164
- plugin?: string
165
-
166
- /**
167
- * Error message.
168
- *
169
- * ```js
170
- * error.message //=> 'Unclosed block'
171
- * ```
172
- */
173
- reason: string
174
-
175
- /**
176
- * Source code of the broken file.
177
- *
178
- * ```js
179
- * error.source //=> 'a { b {} }'
180
- * error.input.source //=> 'a b { }'
181
- * ```
182
- */
183
- source?: string
184
-
185
- stack: string
186
-
187
- /**
188
- * Instantiates a CSS syntax error. Can be instantiated for a single position
189
- * or for a range.
190
- * @param message Error message.
191
- * @param lineOrStartPos If for a single position, the line number, or if for
192
- * a range, the inclusive start position of the error.
193
- * @param columnOrEndPos If for a single position, the column number, or if for
194
- * a range, the exclusive end position of the error.
195
- * @param source Source code of the broken file.
196
- * @param file Absolute path to the broken file.
197
- * @param plugin PostCSS plugin name, if error came from plugin.
198
- */
199
- constructor(
200
- message: string,
201
- lineOrStartPos?: CssSyntaxError.RangePosition | number,
202
- columnOrEndPos?: CssSyntaxError.RangePosition | number,
203
- source?: string,
204
- file?: string,
205
- plugin?: string
206
- )
207
-
208
- /**
209
- * Returns a few lines of CSS source that caused the error.
210
- *
211
- * If the CSS has an input source map without `sourceContent`,
212
- * this method will return an empty string.
213
- *
214
- * ```js
215
- * error.showSourceCode() //=> " 4 | }
216
- * // 5 | a {
217
- * // > 6 | bad
218
- * // | ^
219
- * // 7 | }
220
- * // 8 | b {"
221
- * ```
222
- *
223
- * @param color Whether arrow will be colored red by terminal
224
- * color codes. By default, PostCSS will detect
225
- * color support by `process.stdout.isTTY`
226
- * and `process.env.NODE_DISABLE_COLORS`.
227
- * @return Few lines of CSS source that caused the error.
228
- */
229
- showSourceCode(color?: boolean): string
230
-
231
- /**
232
- * Returns error position, message and source code of the broken part.
233
- *
234
- * ```js
235
- * error.toString() //=> "CssSyntaxError: app.css:1:1: Unclosed block
236
- * // > 1 | a {
237
- * // | ^"
238
- * ```
239
- *
240
- * @return Error position, message and source code.
241
- */
242
- toString(): string
243
- }
244
-
245
- declare class CssSyntaxError extends CssSyntaxError_ {}
246
-
247
- export = CssSyntaxError