@nuxt/devtools 0.1.2 → 0.1.4

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 (273) hide show
  1. package/README.md +24 -1
  2. package/dist/chunks/module-main.mjs +72 -71
  3. package/dist/chunks/vscode.mjs +1613 -87
  4. package/dist/cli.mjs +45 -18
  5. package/dist/client/200.html +2 -2
  6. package/dist/client/404.html +2 -2
  7. package/dist/client/__inspecting/index.html +2 -2
  8. package/dist/client/_nuxt/{Badge.23dc2d8f.js → Badge.e080ea4a.js} +1 -1
  9. package/dist/client/_nuxt/ComponentItem.c17d2931.js +1 -0
  10. package/dist/client/_nuxt/ComponentItem.vue.3441f37f.js +1 -0
  11. package/dist/client/_nuxt/ComponentsGraph.4d50b4fe.js +1 -0
  12. package/dist/client/_nuxt/ComponentsGraph.vue.5b3b134e.js +1 -0
  13. package/dist/client/_nuxt/ComponentsList.ac84bcd1.js +1 -0
  14. package/dist/client/_nuxt/ComponentsList.vue.c704cf24.js +1 -0
  15. package/dist/client/_nuxt/ComposableItem.72806cd2.js +1 -0
  16. package/dist/client/_nuxt/ComposableItem.vue.90cd23bc.js +1 -0
  17. package/dist/client/_nuxt/ComposableTree.43de28f8.js +1 -0
  18. package/dist/client/_nuxt/ComposableTree.vue.808503d9.js +1 -0
  19. package/dist/client/_nuxt/CurrentRoute.e8d5b2cb.js +1 -0
  20. package/dist/client/_nuxt/Drawer.583a0aa3.js +1 -0
  21. package/dist/client/_nuxt/Drawer.vue.30b0fc28.js +1 -0
  22. package/dist/client/_nuxt/DrawerItem.e2effddf.js +1 -0
  23. package/dist/client/_nuxt/DrawerItem.vue.8cadb3c9.js +1 -0
  24. package/dist/client/_nuxt/FileIcon.68b82ecb.js +1 -0
  25. package/dist/client/_nuxt/FileIcon.vue.3bb914bc.js +1 -0
  26. package/dist/client/_nuxt/FilepathItem.8049add8.js +1 -0
  27. package/dist/client/_nuxt/FilepathItem.vue.811409e2.js +1 -0
  28. package/dist/client/_nuxt/HooksTable.59d897cb.js +1 -0
  29. package/dist/client/_nuxt/HooksTable.vue.6b9004ef.js +1 -0
  30. package/dist/client/_nuxt/IconTitle.f576cbf3.js +1 -0
  31. package/dist/client/_nuxt/{IconTitle.vue.909d2a6b.js → IconTitle.vue.dfa8cbcf.js} +1 -1
  32. package/dist/client/_nuxt/IframeView.13e136bd.js +1 -0
  33. package/dist/client/_nuxt/IframeView.vue.6843a7fa.js +1 -0
  34. package/dist/client/_nuxt/LaunchPage.e39fe420.js +1 -0
  35. package/dist/client/_nuxt/LaunchPage.vue.6be17436.js +1 -0
  36. package/dist/client/_nuxt/ModuleItem.8c304e21.js +1 -0
  37. package/dist/client/_nuxt/ModuleItem.vue.2d131549.js +1 -0
  38. package/dist/client/_nuxt/ModuleTreeNode.78ca9ece.js +1 -0
  39. package/dist/client/_nuxt/NButton.13233a1a.js +1 -0
  40. package/dist/client/_nuxt/NButton.vue.e86a98c0.js +1 -0
  41. package/dist/client/_nuxt/NCard.7a4e503f.js +1 -0
  42. package/dist/client/_nuxt/NCheckbox.2da82abb.js +1 -0
  43. package/dist/client/_nuxt/NCheckbox.vue.f058658a.js +1 -0
  44. package/dist/client/_nuxt/NDarkToggle.b7397b85.js +1 -0
  45. package/dist/client/_nuxt/NDarkToggle.vue.104b9df7.js +1 -0
  46. package/dist/client/_nuxt/{NDialog.09638209.js → NDialog.ff796c22.js} +3 -3
  47. package/dist/client/_nuxt/NDropdown.6e99be47.js +1 -0
  48. package/dist/client/_nuxt/NIcon.62a6a6a2.js +1 -0
  49. package/dist/client/_nuxt/NIcon.vue.5c5f9ae0.js +1 -0
  50. package/dist/client/_nuxt/NLink.f8b21877.js +1 -0
  51. package/dist/client/_nuxt/NLink.vue.0f719ab9.js +1 -0
  52. package/dist/client/_nuxt/{NRadio.a5c0205d.js → NRadio.8c217808.js} +1 -1
  53. package/dist/client/_nuxt/NSwitch.ea9c119a.js +1 -0
  54. package/dist/client/_nuxt/NSwitch.vue.a7a200ce.js +1 -0
  55. package/dist/client/_nuxt/NTextInput.48fb0a25.js +1 -0
  56. package/dist/client/_nuxt/NTextInput.vue.5d4d2524.js +1 -0
  57. package/dist/client/_nuxt/NTip.d9c4666f.js +1 -0
  58. package/dist/client/_nuxt/Notification.287365de.js +1 -0
  59. package/dist/client/_nuxt/Notification.vue.dd7d98d5.js +1 -0
  60. package/dist/client/_nuxt/{NuxtContentLogo.1ca13565.js → NuxtContentLogo.447522e5.js} +1 -1
  61. package/dist/client/_nuxt/NuxtExampleLayout.06f6d250.js +1 -0
  62. package/dist/client/_nuxt/NuxtLogo.b27dc990.js +1 -0
  63. package/dist/client/_nuxt/PluginItem.6a55c130.js +1 -0
  64. package/dist/client/_nuxt/PluginItem.vue.6e1d1965.js +1 -0
  65. package/dist/client/_nuxt/RoutePathItem.b209a7cb.js +1 -0
  66. package/dist/client/_nuxt/RoutePathItem.vue.90d1f11a.js +1 -0
  67. package/dist/client/_nuxt/RoutesTable.ffa3adf9.js +1 -0
  68. package/dist/client/_nuxt/RoutesTable.vue.1bbafbda.js +1 -0
  69. package/dist/client/_nuxt/SectionBlock.082cb101.css +1 -0
  70. package/dist/client/_nuxt/SectionBlock.2e26af4b.js +1 -0
  71. package/dist/client/_nuxt/Settings.a15dbb2e.js +1 -0
  72. package/dist/client/_nuxt/Settings.vue.f2a6e99c.js +1 -0
  73. package/dist/client/_nuxt/{StateEditor.f3649b84.css → StateEditor.989cce56.css} +1 -1
  74. package/dist/client/_nuxt/StateEditor.fd549a9f.js +1 -0
  75. package/dist/client/_nuxt/StateEditor.vue.0d8adb50.js +135 -0
  76. package/dist/client/_nuxt/StateEditor.vue.ead0fa52.js +1 -0
  77. package/dist/client/_nuxt/StateGroup.bcb980bd.js +1 -0
  78. package/dist/client/_nuxt/{StateGroup.vue.2dd6ea33.js → StateGroup.vue.c133a773.js} +1 -1
  79. package/dist/client/_nuxt/TabIcon.e55b5a67.js +1 -0
  80. package/dist/client/_nuxt/{TabIcon.vue.8a3fdf6c.js → TabIcon.vue.adac3b56.js} +1 -1
  81. package/dist/client/_nuxt/{UnoIcon.58399ac9.js → UnoIcon.3132b92a.js} +1 -1
  82. package/dist/client/_nuxt/__inspecting.a43a7f80.js +1 -0
  83. package/dist/client/_nuxt/app.config.12fdda03.js +1 -0
  84. package/dist/client/_nuxt/asyncData.518fdb22.js +1 -0
  85. package/dist/client/_nuxt/client-only.f9d053f8.js +4 -0
  86. package/dist/client/_nuxt/client.210463dc.js +1 -0
  87. package/dist/client/_nuxt/component.vue3.02eb71f6.js +1 -0
  88. package/dist/client/_nuxt/components.4f55e0db.js +1 -0
  89. package/dist/client/_nuxt/components.84a4af12.js +1 -0
  90. package/dist/client/_nuxt/{components.client.bfee0e6a.js → components.client.e93eaead.js} +2 -2
  91. package/dist/client/_nuxt/composables.2b96933d.js +1 -0
  92. package/dist/client/_nuxt/composables.59ebbb45.js +1 -0
  93. package/dist/client/_nuxt/{context.dc73232e.js → context.c20dc632.js} +1 -1
  94. package/dist/client/_nuxt/custom-_name_.2cdb4455.js +1 -0
  95. package/dist/client/_nuxt/default.585c2af8.js +1 -0
  96. package/dist/client/_nuxt/defu.5a7c1433.js +1 -0
  97. package/dist/client/_nuxt/{dev-only.fb81821a.js → dev-only.32de73cb.js} +1 -1
  98. package/dist/client/_nuxt/{editor.f69d200c.js → editor.45ea8ca4.js} +1 -1
  99. package/dist/client/_nuxt/entry.6e08c3bd.css +1 -0
  100. package/dist/client/_nuxt/entry.72ee2736.js +1 -0
  101. package/dist/client/_nuxt/error-404.bf8933d3.js +1 -0
  102. package/dist/client/_nuxt/error-500.fe852534.js +1 -0
  103. package/dist/client/_nuxt/error-component.0aa3c1f1.js +3 -0
  104. package/dist/client/_nuxt/error.ab352ad9.js +1 -0
  105. package/dist/client/_nuxt/hooks.da36eba4.js +1 -0
  106. package/dist/client/_nuxt/imports.05a63875.js +1 -0
  107. package/dist/client/_nuxt/{index.7c6751e3.js → index.bf1af76f.js} +1 -1
  108. package/dist/client/_nuxt/index.d56af0a0.js +1 -0
  109. package/dist/client/_nuxt/{index.96e42b53.js → index.e1377d3f.js} +1 -1
  110. package/dist/client/_nuxt/index.e7819c37.js +1 -0
  111. package/dist/client/_nuxt/layout.f6e6e706.js +1 -0
  112. package/dist/client/_nuxt/layouts.ed44bf26.js +1 -0
  113. package/dist/client/_nuxt/middleware.42780100.js +1 -0
  114. package/dist/client/_nuxt/modules.58ec9d96.js +1 -0
  115. package/dist/client/_nuxt/none.a36fcb53.js +1 -0
  116. package/dist/client/_nuxt/nuxt-error-boundary.70c75848.js +1 -0
  117. package/dist/client/_nuxt/nuxt-link.ed65b9da.js +1 -0
  118. package/dist/client/_nuxt/nuxt-loading-indicator.366d3e52.js +1 -0
  119. package/dist/client/_nuxt/nuxt.21217109.js +1 -0
  120. package/dist/client/_nuxt/overview.c0a9db52.js +1 -0
  121. package/dist/client/_nuxt/page.fb94fd70.js +1 -0
  122. package/dist/client/_nuxt/pages.ca7b2f77.js +1 -0
  123. package/dist/client/_nuxt/payload.78a6e729.js +1 -0
  124. package/dist/client/_nuxt/plugins.48c9acc3.js +1 -0
  125. package/dist/client/_nuxt/router.96f0ba10.js +1 -0
  126. package/dist/client/_nuxt/{rpc.990da39b.js → rpc.2e6b297d.js} +1 -1
  127. package/dist/client/_nuxt/runtime-configs.1c27e6f2.js +1 -0
  128. package/dist/client/_nuxt/{runtime-core.esm-bundler.5019e930.js → runtime-core.esm-bundler.ad888d46.js} +1 -1
  129. package/dist/client/_nuxt/runtime-dom.esm-bundler.c94e30c4.js +1 -0
  130. package/dist/client/_nuxt/{server-placeholder.735ae8e9.js → server-placeholder.ba9b9f8a.js} +1 -1
  131. package/dist/client/_nuxt/server-routes.de3e707e.js +1 -0
  132. package/dist/client/_nuxt/state.2c41a47c.js +1 -0
  133. package/dist/client/_nuxt/state.85e68c45.js +1 -0
  134. package/dist/client/_nuxt/storage.abd6f5f8.js +1 -0
  135. package/dist/client/_nuxt/{unocss-runtime.2da03436.js → unocss-runtime.1d429fd2.js} +1 -1
  136. package/dist/client/_nuxt/utils.1c789938.js +1 -0
  137. package/dist/client/_nuxt/{utils.3921fcc0.js → utils.8ee5a573.js} +2 -2
  138. package/dist/client/_nuxt/{virtual-files.8b6129f7.js → virtual-files.53d6f968.js} +8 -8
  139. package/dist/client/_nuxt/welcome.11fc1574.js +1 -0
  140. package/dist/client/index.html +2 -2
  141. package/dist/client/modules/components/index.html +2 -2
  142. package/dist/client/modules/hooks/index.html +2 -2
  143. package/dist/client/modules/imports/index.html +2 -2
  144. package/dist/client/modules/layouts/index.html +2 -2
  145. package/dist/client/modules/middleware/index.html +2 -2
  146. package/dist/client/modules/modules/index.html +2 -2
  147. package/dist/client/modules/overview/index.html +2 -2
  148. package/dist/client/modules/pages/index.html +2 -2
  149. package/dist/client/modules/payload/index.html +2 -2
  150. package/dist/client/modules/plugins/index.html +2 -2
  151. package/dist/client/modules/runtime-configs/index.html +2 -2
  152. package/dist/client/modules/server-routes/index.html +2 -2
  153. package/dist/client/modules/virtual-files/index.html +2 -2
  154. package/dist/module.json +1 -1
  155. package/dist/module.mjs +2 -2
  156. package/dist/runtime/plugins/view/Container.vue +5 -3
  157. package/dist/runtime/plugins/view/Frame.vue +12 -2
  158. package/dist/runtime/shared/hooks.mjs +4 -3
  159. package/dist/shared/{devtools.861712a3.mjs → devtools.38b2468f.mjs} +6 -6
  160. package/dist/shared/{devtools.210fc042.mjs → devtools.b5fb0de8.mjs} +1 -1
  161. package/dist/shared/{devtools.34d9e53a.mjs → devtools.cce722d0.mjs} +5 -5
  162. package/dist/types.d.ts +20 -2
  163. package/package.json +26 -27
  164. package/dist/chunks/index.mjs +0 -47749
  165. package/dist/client/_nuxt/ComponentItem.e70cb817.js +0 -1
  166. package/dist/client/_nuxt/ComponentItem.vue.b2907459.js +0 -1
  167. package/dist/client/_nuxt/ComponentsGraph.80197dea.js +0 -1
  168. package/dist/client/_nuxt/ComponentsGraph.vue.4984fec1.js +0 -1
  169. package/dist/client/_nuxt/ComponentsList.d795349a.js +0 -1
  170. package/dist/client/_nuxt/ComponentsList.vue.e6afcbfb.js +0 -1
  171. package/dist/client/_nuxt/ComposableItem.d63f347f.js +0 -1
  172. package/dist/client/_nuxt/ComposableItem.vue.63bbac89.js +0 -1
  173. package/dist/client/_nuxt/ComposableTree.fc74024a.js +0 -1
  174. package/dist/client/_nuxt/ComposableTree.vue.c7f41864.js +0 -1
  175. package/dist/client/_nuxt/CurrentRoute.4a32c426.js +0 -1
  176. package/dist/client/_nuxt/Drawer.71f7d62d.js +0 -1
  177. package/dist/client/_nuxt/Drawer.vue.61472665.js +0 -1
  178. package/dist/client/_nuxt/DrawerItem.0c4e93e1.js +0 -1
  179. package/dist/client/_nuxt/DrawerItem.vue.30f032f8.js +0 -1
  180. package/dist/client/_nuxt/FileIcon.4f6c385a.js +0 -1
  181. package/dist/client/_nuxt/FileIcon.vue.e650fe14.js +0 -1
  182. package/dist/client/_nuxt/FilepathItem.f0424391.js +0 -1
  183. package/dist/client/_nuxt/FilepathItem.vue.3e647321.js +0 -1
  184. package/dist/client/_nuxt/HooksTable.e9c5c41d.js +0 -1
  185. package/dist/client/_nuxt/HooksTable.vue.93af23f8.js +0 -1
  186. package/dist/client/_nuxt/IconTitle.576c2413.js +0 -1
  187. package/dist/client/_nuxt/IframeView.78e9c8e5.js +0 -1
  188. package/dist/client/_nuxt/IframeView.vue.54f89e7f.js +0 -1
  189. package/dist/client/_nuxt/LaunchPage.aef7119a.js +0 -1
  190. package/dist/client/_nuxt/LaunchPage.vue.520a72f3.js +0 -1
  191. package/dist/client/_nuxt/ModuleItem.ac19d5c9.js +0 -1
  192. package/dist/client/_nuxt/ModuleItem.vue.68a7fefd.js +0 -1
  193. package/dist/client/_nuxt/ModuleTreeNode.040f6e05.js +0 -1
  194. package/dist/client/_nuxt/NButton.fb93b328.js +0 -1
  195. package/dist/client/_nuxt/NButton.vue.e1b8a843.js +0 -1
  196. package/dist/client/_nuxt/NCard.47038127.js +0 -1
  197. package/dist/client/_nuxt/NCheckbox.ec4f225e.js +0 -1
  198. package/dist/client/_nuxt/NCheckbox.vue.25b386b6.js +0 -1
  199. package/dist/client/_nuxt/NDarkToggle.46f06112.js +0 -1
  200. package/dist/client/_nuxt/NDarkToggle.vue.c227b1bd.js +0 -1
  201. package/dist/client/_nuxt/NDropdown.3b66cf14.js +0 -1
  202. package/dist/client/_nuxt/NIcon.e9d8d4d5.js +0 -1
  203. package/dist/client/_nuxt/NIcon.vue.2481694f.js +0 -1
  204. package/dist/client/_nuxt/NLink.873d3d79.js +0 -1
  205. package/dist/client/_nuxt/NLink.vue.c3ddaba8.js +0 -1
  206. package/dist/client/_nuxt/NSwitch.4c2c96d6.js +0 -1
  207. package/dist/client/_nuxt/NSwitch.vue.36ec57ea.js +0 -1
  208. package/dist/client/_nuxt/NTextInput.3c1a9b08.js +0 -1
  209. package/dist/client/_nuxt/NTextInput.vue.2d3f9e19.js +0 -1
  210. package/dist/client/_nuxt/NTip.ff4fea4e.js +0 -1
  211. package/dist/client/_nuxt/Notification.f594eb13.js +0 -1
  212. package/dist/client/_nuxt/Notification.vue.b0304237.js +0 -1
  213. package/dist/client/_nuxt/NuxtExampleLayout.4569dcf8.js +0 -1
  214. package/dist/client/_nuxt/NuxtLogo.acbeec62.js +0 -1
  215. package/dist/client/_nuxt/PluginItem.b3be3a58.js +0 -1
  216. package/dist/client/_nuxt/PluginItem.vue.eaf5eab2.js +0 -1
  217. package/dist/client/_nuxt/RoutePathItem.8db2ae7e.js +0 -1
  218. package/dist/client/_nuxt/RoutePathItem.vue.04745c20.js +0 -1
  219. package/dist/client/_nuxt/RoutesTable.6b9eefe0.js +0 -1
  220. package/dist/client/_nuxt/RoutesTable.vue.af7acfb0.js +0 -1
  221. package/dist/client/_nuxt/SectionBlock.6bf10c9f.js +0 -1
  222. package/dist/client/_nuxt/SectionBlock.a75bb023.css +0 -1
  223. package/dist/client/_nuxt/Settings.ceefb680.js +0 -1
  224. package/dist/client/_nuxt/Settings.vue.6d6be237.js +0 -1
  225. package/dist/client/_nuxt/StateEditor.b25ca4bb.js +0 -1
  226. package/dist/client/_nuxt/StateEditor.vue.4c95ce8f.js +0 -135
  227. package/dist/client/_nuxt/StateEditor.vue.94361847.js +0 -1
  228. package/dist/client/_nuxt/StateGroup.03356999.js +0 -1
  229. package/dist/client/_nuxt/TabIcon.0eec1314.js +0 -1
  230. package/dist/client/_nuxt/__inspecting.06a43aaf.js +0 -1
  231. package/dist/client/_nuxt/app.config.a09258b3.js +0 -1
  232. package/dist/client/_nuxt/asyncData.0d07d609.js +0 -1
  233. package/dist/client/_nuxt/client-only.57dcb5bd.js +0 -4
  234. package/dist/client/_nuxt/client.ef9805ed.js +0 -1
  235. package/dist/client/_nuxt/component.vue3.70214810.js +0 -1
  236. package/dist/client/_nuxt/components.67fd2b98.js +0 -1
  237. package/dist/client/_nuxt/components.bcdd3ff8.js +0 -1
  238. package/dist/client/_nuxt/composables.3d6ee8a2.js +0 -1
  239. package/dist/client/_nuxt/composables.7fd231ea.js +0 -1
  240. package/dist/client/_nuxt/custom-_name_.2acc77aa.js +0 -1
  241. package/dist/client/_nuxt/default.7612ba66.js +0 -1
  242. package/dist/client/_nuxt/entry.53569115.css +0 -1
  243. package/dist/client/_nuxt/entry.d7169bac.js +0 -1
  244. package/dist/client/_nuxt/error-404.f7be8ae4.js +0 -1
  245. package/dist/client/_nuxt/error-500.31030cf5.js +0 -1
  246. package/dist/client/_nuxt/error-component.2d0a1159.js +0 -3
  247. package/dist/client/_nuxt/error.10b092f1.js +0 -1
  248. package/dist/client/_nuxt/hooks.d96e987b.js +0 -1
  249. package/dist/client/_nuxt/imports.57b0481d.js +0 -1
  250. package/dist/client/_nuxt/index.0977b63e.js +0 -1
  251. package/dist/client/_nuxt/index.6cafd97e.js +0 -1
  252. package/dist/client/_nuxt/layout.27c704cb.js +0 -1
  253. package/dist/client/_nuxt/layouts.cd5cbb48.js +0 -1
  254. package/dist/client/_nuxt/middleware.8875601d.js +0 -1
  255. package/dist/client/_nuxt/modules.36a5839f.js +0 -1
  256. package/dist/client/_nuxt/none.1c37aed4.js +0 -1
  257. package/dist/client/_nuxt/nuxt-error-boundary.fc4d7c25.js +0 -1
  258. package/dist/client/_nuxt/nuxt-link.724f8a66.js +0 -1
  259. package/dist/client/_nuxt/nuxt-loading-indicator.494ea32c.js +0 -1
  260. package/dist/client/_nuxt/overview.7473aa92.js +0 -1
  261. package/dist/client/_nuxt/page.8df04ed4.js +0 -1
  262. package/dist/client/_nuxt/pages.02ef0472.js +0 -1
  263. package/dist/client/_nuxt/payload.8cf95895.js +0 -1
  264. package/dist/client/_nuxt/plugins.50899071.js +0 -1
  265. package/dist/client/_nuxt/runtime-configs.d1fe4f1d.js +0 -1
  266. package/dist/client/_nuxt/runtime-dom.esm-bundler.b0076367.js +0 -1
  267. package/dist/client/_nuxt/server-routes.ff745565.js +0 -1
  268. package/dist/client/_nuxt/state.5364a68a.js +0 -1
  269. package/dist/client/_nuxt/state.90201abf.js +0 -1
  270. package/dist/client/_nuxt/storage.82519452.js +0 -1
  271. package/dist/client/_nuxt/utils.c2a3506b.js +0 -1
  272. package/dist/client/_nuxt/welcome.432c9232.js +0 -1
  273. package/dist/shared/devtools.8467d016.mjs +0 -1504
package/README.md CHANGED
@@ -77,6 +77,29 @@ You can opt-in to the edge release channel by running:
77
77
 
78
78
  Remove lockfile (`package-lock.json`, `yarn.lock`, or `pnpm-lock.yaml`) and reinstall dependencies.
79
79
 
80
+
81
+ ### Module Options
82
+
83
+ To configure Nuxt DevTools, you can pass the `devtools` options.
84
+
85
+ ```ts
86
+ // nuxt.config.ts
87
+ export default defineNuxtConfig({
88
+ modules: [
89
+ '@nuxt/devtools',
90
+ ],
91
+ devtools: {
92
+ // Enable devtools (default: true)
93
+ enabled: true,
94
+ // VS Code Server options
95
+ vscode: {},
96
+ // ...other options
97
+ }
98
+ })
99
+ ```
100
+
101
+ For all options available, please refer to TSDocs in your IDE, or the [type definition file](https://github.com/nuxt/devtools/blob/main/src/types.ts#L11).
102
+
80
103
  ## Features
81
104
 
82
105
  Nuxt DevTools is a set of visual tools available **right inside your app**.
@@ -233,7 +256,7 @@ const router = computed(() => devtoolsClient.value?.host?.nuxt.vueApp.config.glo
233
256
  ### Examples
234
257
 
235
258
  - Built-in VS Code integration with lazy initialize: https://github.com/nuxt/devtools/blob/main/src/integrations/vscode.ts.
236
- - VueUse adds a docs tab: https://github.com/vueuse/vueuse/blob/6158e660367b4417896926984670c5b91133c7c3/packages/nuxt/index.ts#L89-L99.
259
+ - VueUse adds a docs tab: https://github.com/vueuse/vueuse/blob/ce28cef154489c73abe308104bef8568594a9bcd/packages/nuxt/index.ts#L89-L99.
237
260
  - UnoCSS Inspector: https://github.com/unocss/unocss/blob/25021a751494e99e85cfd82cca3855cdf78f6a12/packages/nuxt/src/index.ts#L81-L94
238
261
  - Nuxt Vitest runner: https://github.com/danielroe/nuxt-vitest/blob/7bac68d96f27dea6c30c198b7caaaf0b495574ab/packages/nuxt-vitest/src/module.ts#L139-L181
239
262
  - Nuxt OG Image Playground: https://github.com/harlan-zw/nuxt-og-image/blob/main/src/module.ts#L136
@@ -1,25 +1,25 @@
1
1
  import { resolve, join, normalize } from 'path';
2
- import * as require$$0 from 'fs';
3
- import require$$0__default, { readdirSync, statSync, existsSync } from 'fs';
2
+ import * as fs from 'fs';
3
+ import fs__default, { readdirSync, statSync, existsSync } from 'fs';
4
4
  import { logger, getNuxtVersion, addPlugin } from '@nuxt/kit';
5
- import require$$0$3 from 'stream';
6
- import require$$0$1 from 'zlib';
7
- import require$$0$2 from 'buffer';
8
- import require$$0$5 from 'net';
9
- import require$$1$1 from 'tls';
5
+ import require$$0$2 from 'stream';
6
+ import require$$0 from 'zlib';
7
+ import require$$0$1 from 'buffer';
8
+ import require$$3 from 'net';
9
+ import require$$4 from 'tls';
10
10
  import require$$5 from 'crypto';
11
- import require$$0$4 from 'events';
11
+ import require$$0$3 from 'events';
12
12
  import require$$2 from 'https';
13
13
  import require$$1 from 'http';
14
- import require$$0$6 from 'url';
14
+ import require$$0$4 from 'url';
15
15
  import * as qs from 'querystring';
16
- import require$$0$7 from 'tty';
17
- import { i as isInstalledGlobally } from '../shared/devtools.34d9e53a.mjs';
18
- import { v as version } from '../shared/devtools.210fc042.mjs';
16
+ import require$$0$5 from 'tty';
17
+ import { i as isInstalledGlobally } from '../shared/devtools.cce722d0.mjs';
18
+ import { v as version } from '../shared/devtools.b5fb0de8.mjs';
19
19
  import { createBirpcGroup } from 'birpc';
20
20
  import { resolvePreset } from 'unimport';
21
21
  import { join as join$1, dirname, resolve as resolve$1 } from 'pathe';
22
- import require$$0$8 from 'fs/promises';
22
+ import fsp from 'fs/promises';
23
23
  import 'pkg-types';
24
24
  import { runtimeDir, clientDir, packageDir } from '../dirs.mjs';
25
25
 
@@ -236,7 +236,7 @@ let Limiter$1 = class Limiter {
236
236
 
237
237
  var limiter = Limiter$1;
238
238
 
239
- const zlib = require$$0$1;
239
+ const zlib = require$$0;
240
240
 
241
241
  const bufferUtil = bufferUtilExports;
242
242
  const Limiter = limiter;
@@ -757,7 +757,7 @@ var validation = {
757
757
 
758
758
  var isValidUTF8_1;
759
759
 
760
- const { isUtf8 } = require$$0$2;
760
+ const { isUtf8 } = require$$0$1;
761
761
 
762
762
  //
763
763
  // Allowed token characters:
@@ -886,7 +886,7 @@ if (isUtf8) {
886
886
  }
887
887
  }
888
888
 
889
- const { Writable } = require$$0$3;
889
+ const { Writable } = require$$0$2;
890
890
 
891
891
  const PerMessageDeflate$3 = permessageDeflate;
892
892
  const {
@@ -1703,7 +1703,7 @@ let Sender$1 = class Sender {
1703
1703
  if (this._deflating) {
1704
1704
  this.enqueue([this.dispatch, buf, false, options, cb]);
1705
1705
  } else {
1706
- this.sendFrame(Sender$1.frame(buf, options), cb);
1706
+ this.sendFrame(Sender.frame(buf, options), cb);
1707
1707
  }
1708
1708
  }
1709
1709
 
@@ -1746,7 +1746,7 @@ let Sender$1 = class Sender {
1746
1746
  if (this._deflating) {
1747
1747
  this.enqueue([this.dispatch, data, false, options, cb]);
1748
1748
  } else {
1749
- this.sendFrame(Sender$1.frame(data, options), cb);
1749
+ this.sendFrame(Sender.frame(data, options), cb);
1750
1750
  }
1751
1751
  }
1752
1752
 
@@ -1789,7 +1789,7 @@ let Sender$1 = class Sender {
1789
1789
  if (this._deflating) {
1790
1790
  this.enqueue([this.dispatch, data, false, options, cb]);
1791
1791
  } else {
1792
- this.sendFrame(Sender$1.frame(data, options), cb);
1792
+ this.sendFrame(Sender.frame(data, options), cb);
1793
1793
  }
1794
1794
  }
1795
1795
 
@@ -1866,7 +1866,7 @@ let Sender$1 = class Sender {
1866
1866
  }
1867
1867
  } else {
1868
1868
  this.sendFrame(
1869
- Sender$1.frame(data, {
1869
+ Sender.frame(data, {
1870
1870
  [kByteLength]: byteLength,
1871
1871
  fin: options.fin,
1872
1872
  generateMask: this._generateMask,
@@ -1906,7 +1906,7 @@ let Sender$1 = class Sender {
1906
1906
  */
1907
1907
  dispatch(data, compress, options, cb) {
1908
1908
  if (!compress) {
1909
- this.sendFrame(Sender$1.frame(data, options), cb);
1909
+ this.sendFrame(Sender.frame(data, options), cb);
1910
1910
  return;
1911
1911
  }
1912
1912
 
@@ -1935,7 +1935,7 @@ let Sender$1 = class Sender {
1935
1935
  this._bufferedBytes -= options[kByteLength];
1936
1936
  this._deflating = false;
1937
1937
  options.readOnly = false;
1938
- this.sendFrame(Sender$1.frame(buf, options), cb);
1938
+ this.sendFrame(Sender.frame(buf, options), cb);
1939
1939
  this.dequeue();
1940
1940
  });
1941
1941
  }
@@ -2481,13 +2481,13 @@ var extension$1 = { format: format$1, parse: parse$b };
2481
2481
 
2482
2482
  /* eslint no-unused-vars: ["error", { "varsIgnorePattern": "^Readable$" }] */
2483
2483
 
2484
- const EventEmitter$1 = require$$0$4;
2484
+ const EventEmitter$1 = require$$0$3;
2485
2485
  const https = require$$2;
2486
2486
  const http$1 = require$$1;
2487
- const net = require$$0$5;
2488
- const tls = require$$1$1;
2487
+ const net = require$$3;
2488
+ const tls = require$$4;
2489
2489
  const { randomBytes, createHash: createHash$1 } = require$$5;
2490
- const { URL } = require$$0$6;
2490
+ const { URL } = require$$0$4;
2491
2491
 
2492
2492
  const PerMessageDeflate$1 = permessageDeflate;
2493
2493
  const Receiver = receiver;
@@ -2539,7 +2539,7 @@ let WebSocket$1 = class WebSocket extends EventEmitter$1 {
2539
2539
  this._extensions = {};
2540
2540
  this._paused = false;
2541
2541
  this._protocol = '';
2542
- this._readyState = WebSocket$1.CONNECTING;
2542
+ this._readyState = WebSocket.CONNECTING;
2543
2543
  this._receiver = null;
2544
2544
  this._sender = null;
2545
2545
  this._socket = null;
@@ -2711,7 +2711,7 @@ let WebSocket$1 = class WebSocket extends EventEmitter$1 {
2711
2711
  socket.on('end', socketOnEnd);
2712
2712
  socket.on('error', socketOnError$1);
2713
2713
 
2714
- this._readyState = WebSocket$1.OPEN;
2714
+ this._readyState = WebSocket.OPEN;
2715
2715
  this.emit('open');
2716
2716
  }
2717
2717
 
@@ -2722,7 +2722,7 @@ let WebSocket$1 = class WebSocket extends EventEmitter$1 {
2722
2722
  */
2723
2723
  emitClose() {
2724
2724
  if (!this._socket) {
2725
- this._readyState = WebSocket$1.CLOSED;
2725
+ this._readyState = WebSocket.CLOSED;
2726
2726
  this.emit('close', this._closeCode, this._closeMessage);
2727
2727
  return;
2728
2728
  }
@@ -2732,7 +2732,7 @@ let WebSocket$1 = class WebSocket extends EventEmitter$1 {
2732
2732
  }
2733
2733
 
2734
2734
  this._receiver.removeAllListeners();
2735
- this._readyState = WebSocket$1.CLOSED;
2735
+ this._readyState = WebSocket.CLOSED;
2736
2736
  this.emit('close', this._closeCode, this._closeMessage);
2737
2737
  }
2738
2738
 
@@ -2757,14 +2757,14 @@ let WebSocket$1 = class WebSocket extends EventEmitter$1 {
2757
2757
  * @public
2758
2758
  */
2759
2759
  close(code, data) {
2760
- if (this.readyState === WebSocket$1.CLOSED) return;
2761
- if (this.readyState === WebSocket$1.CONNECTING) {
2760
+ if (this.readyState === WebSocket.CLOSED) return;
2761
+ if (this.readyState === WebSocket.CONNECTING) {
2762
2762
  const msg = 'WebSocket was closed before the connection was established';
2763
2763
  abortHandshake$1(this, this._req, msg);
2764
2764
  return;
2765
2765
  }
2766
2766
 
2767
- if (this.readyState === WebSocket$1.CLOSING) {
2767
+ if (this.readyState === WebSocket.CLOSING) {
2768
2768
  if (
2769
2769
  this._closeFrameSent &&
2770
2770
  (this._closeFrameReceived || this._receiver._writableState.errorEmitted)
@@ -2775,7 +2775,7 @@ let WebSocket$1 = class WebSocket extends EventEmitter$1 {
2775
2775
  return;
2776
2776
  }
2777
2777
 
2778
- this._readyState = WebSocket$1.CLOSING;
2778
+ this._readyState = WebSocket.CLOSING;
2779
2779
  this._sender.close(code, data, !this._isServer, (err) => {
2780
2780
  //
2781
2781
  // This error is handled by the `'error'` listener on the socket. We only
@@ -2809,8 +2809,8 @@ let WebSocket$1 = class WebSocket extends EventEmitter$1 {
2809
2809
  */
2810
2810
  pause() {
2811
2811
  if (
2812
- this.readyState === WebSocket$1.CONNECTING ||
2813
- this.readyState === WebSocket$1.CLOSED
2812
+ this.readyState === WebSocket.CONNECTING ||
2813
+ this.readyState === WebSocket.CLOSED
2814
2814
  ) {
2815
2815
  return;
2816
2816
  }
@@ -2828,7 +2828,7 @@ let WebSocket$1 = class WebSocket extends EventEmitter$1 {
2828
2828
  * @public
2829
2829
  */
2830
2830
  ping(data, mask, cb) {
2831
- if (this.readyState === WebSocket$1.CONNECTING) {
2831
+ if (this.readyState === WebSocket.CONNECTING) {
2832
2832
  throw new Error('WebSocket is not open: readyState 0 (CONNECTING)');
2833
2833
  }
2834
2834
 
@@ -2842,7 +2842,7 @@ let WebSocket$1 = class WebSocket extends EventEmitter$1 {
2842
2842
 
2843
2843
  if (typeof data === 'number') data = data.toString();
2844
2844
 
2845
- if (this.readyState !== WebSocket$1.OPEN) {
2845
+ if (this.readyState !== WebSocket.OPEN) {
2846
2846
  sendAfterClose(this, data, cb);
2847
2847
  return;
2848
2848
  }
@@ -2860,7 +2860,7 @@ let WebSocket$1 = class WebSocket extends EventEmitter$1 {
2860
2860
  * @public
2861
2861
  */
2862
2862
  pong(data, mask, cb) {
2863
- if (this.readyState === WebSocket$1.CONNECTING) {
2863
+ if (this.readyState === WebSocket.CONNECTING) {
2864
2864
  throw new Error('WebSocket is not open: readyState 0 (CONNECTING)');
2865
2865
  }
2866
2866
 
@@ -2874,7 +2874,7 @@ let WebSocket$1 = class WebSocket extends EventEmitter$1 {
2874
2874
 
2875
2875
  if (typeof data === 'number') data = data.toString();
2876
2876
 
2877
- if (this.readyState !== WebSocket$1.OPEN) {
2877
+ if (this.readyState !== WebSocket.OPEN) {
2878
2878
  sendAfterClose(this, data, cb);
2879
2879
  return;
2880
2880
  }
@@ -2890,8 +2890,8 @@ let WebSocket$1 = class WebSocket extends EventEmitter$1 {
2890
2890
  */
2891
2891
  resume() {
2892
2892
  if (
2893
- this.readyState === WebSocket$1.CONNECTING ||
2894
- this.readyState === WebSocket$1.CLOSED
2893
+ this.readyState === WebSocket.CONNECTING ||
2894
+ this.readyState === WebSocket.CLOSED
2895
2895
  ) {
2896
2896
  return;
2897
2897
  }
@@ -2916,7 +2916,7 @@ let WebSocket$1 = class WebSocket extends EventEmitter$1 {
2916
2916
  * @public
2917
2917
  */
2918
2918
  send(data, options, cb) {
2919
- if (this.readyState === WebSocket$1.CONNECTING) {
2919
+ if (this.readyState === WebSocket.CONNECTING) {
2920
2920
  throw new Error('WebSocket is not open: readyState 0 (CONNECTING)');
2921
2921
  }
2922
2922
 
@@ -2927,7 +2927,7 @@ let WebSocket$1 = class WebSocket extends EventEmitter$1 {
2927
2927
 
2928
2928
  if (typeof data === 'number') data = data.toString();
2929
2929
 
2930
- if (this.readyState !== WebSocket$1.OPEN) {
2930
+ if (this.readyState !== WebSocket.OPEN) {
2931
2931
  sendAfterClose(this, data, cb);
2932
2932
  return;
2933
2933
  }
@@ -2953,15 +2953,15 @@ let WebSocket$1 = class WebSocket extends EventEmitter$1 {
2953
2953
  * @public
2954
2954
  */
2955
2955
  terminate() {
2956
- if (this.readyState === WebSocket$1.CLOSED) return;
2957
- if (this.readyState === WebSocket$1.CONNECTING) {
2956
+ if (this.readyState === WebSocket.CLOSED) return;
2957
+ if (this.readyState === WebSocket.CONNECTING) {
2958
2958
  const msg = 'WebSocket was closed before the connection was established';
2959
2959
  abortHandshake$1(this, this._req, msg);
2960
2960
  return;
2961
2961
  }
2962
2962
 
2963
2963
  if (this._socket) {
2964
- this._readyState = WebSocket$1.CLOSING;
2964
+ this._readyState = WebSocket.CLOSING;
2965
2965
  this._socket.destroy();
2966
2966
  }
2967
2967
  }
@@ -3847,7 +3847,7 @@ var subprotocol$1 = { parse: parse$9 };
3847
3847
 
3848
3848
  /* eslint no-unused-vars: ["error", { "varsIgnorePattern": "^net|tls|https$" }] */
3849
3849
 
3850
- const EventEmitter = require$$0$4;
3850
+ const EventEmitter = require$$0$3;
3851
3851
  const http = require$$1;
3852
3852
  const { createHash } = require$$5;
3853
3853
 
@@ -4881,8 +4881,8 @@ function viaLocal(dir, isEtag, uri, extns) {
4881
4881
  let abs, stats, name, headers;
4882
4882
  for (; i < arr.length; i++) {
4883
4883
  abs = normalize(join(dir, name=arr[i]));
4884
- if (abs.startsWith(dir) && require$$0.existsSync(abs)) {
4885
- stats = require$$0.statSync(abs);
4884
+ if (abs.startsWith(dir) && fs.existsSync(abs)) {
4885
+ stats = fs.statSync(abs);
4886
4886
  if (stats.isDirectory()) continue;
4887
4887
  headers = toHeaders(name, stats, isEtag);
4888
4888
  headers['Cache-Control'] = isEtag ? 'no-cache' : 'no-store';
@@ -4926,7 +4926,7 @@ function send(req, res, file, stats, headers) {
4926
4926
  }
4927
4927
 
4928
4928
  res.writeHead(code, headers);
4929
- require$$0.createReadStream(file, opts).pipe(res);
4929
+ fs.createReadStream(file, opts).pipe(res);
4930
4930
  }
4931
4931
 
4932
4932
  const ENCODING = {
@@ -5036,7 +5036,7 @@ var picocolors = {
5036
5036
  set exports(v){ picocolorsExports = v; },
5037
5037
  };
5038
5038
 
5039
- let tty = require$$0$7;
5039
+ let tty = require$$0$5;
5040
5040
 
5041
5041
  let isColorSupported =
5042
5042
  !("NO_COLOR" in process.env || process.argv.includes("--no-color")) &&
@@ -5189,11 +5189,12 @@ const stringify = (value, replacer, space) => {
5189
5189
 
5190
5190
  function setupHooksDebug(hooks) {
5191
5191
  const serverHooks = {};
5192
+ const now = typeof globalThis.performance === "undefined" ? () => Date.now() : () => performance.now();
5192
5193
  hooks.beforeEach((event) => {
5193
5194
  if (!serverHooks[event.name]) {
5194
5195
  serverHooks[event.name] = {
5195
5196
  name: event.name,
5196
- start: performance.now(),
5197
+ start: now(),
5197
5198
  // @ts-expect-error private field
5198
5199
  listeners: hooks._hooks[event.name]?.length || 0,
5199
5200
  executions: []
@@ -5202,7 +5203,7 @@ function setupHooksDebug(hooks) {
5202
5203
  const hook = serverHooks[event.name];
5203
5204
  if (hook.duration != null)
5204
5205
  hook.executions.push(hook.duration);
5205
- hook.start = performance.now();
5206
+ hook.start = now();
5206
5207
  hook.end = void 0;
5207
5208
  hook.duration = void 0;
5208
5209
  }
@@ -5211,7 +5212,7 @@ function setupHooksDebug(hooks) {
5211
5212
  const hook = serverHooks[event.name];
5212
5213
  if (!hook)
5213
5214
  return;
5214
- hook.end = performance.now();
5215
+ hook.end = now();
5215
5216
  hook.duration = hook.end - hook.start;
5216
5217
  const listeners = hooks._hooks[event.name]?.length;
5217
5218
  if (listeners != null)
@@ -5235,16 +5236,16 @@ const route = useRoute()
5235
5236
  async function enablePages(nuxt) {
5236
5237
  const pathApp = join$1(nuxt.options.srcDir, "app.vue");
5237
5238
  const pathPageIndex = join$1(nuxt.options.srcDir, "pages/index.vue");
5238
- if (require$$0__default.existsSync(pathPageIndex)) {
5239
+ if (fs__default.existsSync(pathPageIndex)) {
5239
5240
  logger.warn("pages/index.vue already exists, skipping");
5240
5241
  return;
5241
5242
  }
5242
- let appContent = require$$0__default.existsSync(pathApp) ? await require$$0$8.readFile(pathApp, "utf-8") : void 0;
5243
- await require$$0$8.mkdir(dirname(pathPageIndex), { recursive: true });
5244
- await require$$0$8.writeFile(pathPageIndex, pagesIndexTemplate, "utf-8");
5243
+ let appContent = fs__default.existsSync(pathApp) ? await fsp.readFile(pathApp, "utf-8") : void 0;
5244
+ await fsp.mkdir(dirname(pathPageIndex), { recursive: true });
5245
+ await fsp.writeFile(pathPageIndex, pagesIndexTemplate, "utf-8");
5245
5246
  if (appContent && !appContent.includes("<NuxtPage")) {
5246
5247
  appContent = appContent.replace("</template>", " <NuxtPage />\n</template>").replace(/<NuxtWelcome\s*\/>/, "");
5247
- await require$$0$8.writeFile(pathApp, appContent, "utf-8");
5248
+ await fsp.writeFile(pathApp, appContent, "utf-8");
5248
5249
  }
5249
5250
  logger.success("Routing creation wizard completed");
5250
5251
  }
@@ -5520,7 +5521,7 @@ let SemVer$d = class SemVer {
5520
5521
  constructor (version, options) {
5521
5522
  options = parseOptions$1(options);
5522
5523
 
5523
- if (version instanceof SemVer$d) {
5524
+ if (version instanceof SemVer) {
5524
5525
  if (version.loose === !!options.loose &&
5525
5526
  version.includePrerelease === !!options.includePrerelease) {
5526
5527
  return version
@@ -5602,11 +5603,11 @@ let SemVer$d = class SemVer {
5602
5603
 
5603
5604
  compare (other) {
5604
5605
  debug('SemVer.compare', this.version, this.options, other);
5605
- if (!(other instanceof SemVer$d)) {
5606
+ if (!(other instanceof SemVer)) {
5606
5607
  if (typeof other === 'string' && other === this.version) {
5607
5608
  return 0
5608
5609
  }
5609
- other = new SemVer$d(other, this.options);
5610
+ other = new SemVer(other, this.options);
5610
5611
  }
5611
5612
 
5612
5613
  if (other.version === this.version) {
@@ -5617,8 +5618,8 @@ let SemVer$d = class SemVer {
5617
5618
  }
5618
5619
 
5619
5620
  compareMain (other) {
5620
- if (!(other instanceof SemVer$d)) {
5621
- other = new SemVer$d(other, this.options);
5621
+ if (!(other instanceof SemVer)) {
5622
+ other = new SemVer(other, this.options);
5622
5623
  }
5623
5624
 
5624
5625
  return (
@@ -5629,8 +5630,8 @@ let SemVer$d = class SemVer {
5629
5630
  }
5630
5631
 
5631
5632
  comparePre (other) {
5632
- if (!(other instanceof SemVer$d)) {
5633
- other = new SemVer$d(other, this.options);
5633
+ if (!(other instanceof SemVer)) {
5634
+ other = new SemVer(other, this.options);
5634
5635
  }
5635
5636
 
5636
5637
  // NOT having a prerelease is > having one
@@ -5662,8 +5663,8 @@ let SemVer$d = class SemVer {
5662
5663
  }
5663
5664
 
5664
5665
  compareBuild (other) {
5665
- if (!(other instanceof SemVer$d)) {
5666
- other = new SemVer$d(other, this.options);
5666
+ if (!(other instanceof SemVer)) {
5667
+ other = new SemVer(other, this.options);
5667
5668
  }
5668
5669
 
5669
5670
  let i = 0;
@@ -8163,7 +8164,7 @@ var semver = {
8163
8164
  };
8164
8165
 
8165
8166
  async function checkForUpdateOf(info) {
8166
- const packument = await import('./index.mjs').then(function (n) { return n.i; }).then((r) => r.default?.packument || r.packument);
8167
+ const packument = await import('pacote').then((r) => r.default?.packument || r.packument);
8167
8168
  const manifest = await packument(info.name);
8168
8169
  const latest = manifest["dist-tags"].latest;
8169
8170
  const needsUpdate = latest !== info.current && semver.lt(info.current, latest);
@@ -8421,4 +8422,4 @@ const moduleMain = {
8421
8422
  enableModule: enableModule
8422
8423
  };
8423
8424
 
8424
- export { LOG_PREFIX as L, clean_1 as c, moduleMain as m, requireYallist as r, semver as s, valid_1 as v };
8425
+ export { LOG_PREFIX as L, moduleMain as m };