@nuxt/devtools 0.1.1 → 0.1.3
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.
- package/README.md +23 -0
- package/dist/chunks/module-main.mjs +72 -71
- package/dist/chunks/vscode.mjs +1612 -86
- package/dist/cli.mjs +39 -16
- package/dist/client/200.html +2 -2
- package/dist/client/404.html +2 -2
- package/dist/client/__inspecting/index.html +2 -2
- package/dist/client/_nuxt/{Badge.23dc2d8f.js → Badge.e080ea4a.js} +1 -1
- package/dist/client/_nuxt/ComponentItem.c17d2931.js +1 -0
- package/dist/client/_nuxt/ComponentItem.vue.3441f37f.js +1 -0
- package/dist/client/_nuxt/ComponentsGraph.4d50b4fe.js +1 -0
- package/dist/client/_nuxt/ComponentsGraph.vue.5b3b134e.js +1 -0
- package/dist/client/_nuxt/ComponentsList.ac84bcd1.js +1 -0
- package/dist/client/_nuxt/ComponentsList.vue.c704cf24.js +1 -0
- package/dist/client/_nuxt/ComposableItem.72806cd2.js +1 -0
- package/dist/client/_nuxt/ComposableItem.vue.90cd23bc.js +1 -0
- package/dist/client/_nuxt/ComposableTree.43de28f8.js +1 -0
- package/dist/client/_nuxt/ComposableTree.vue.808503d9.js +1 -0
- package/dist/client/_nuxt/CurrentRoute.e8d5b2cb.js +1 -0
- package/dist/client/_nuxt/Drawer.583a0aa3.js +1 -0
- package/dist/client/_nuxt/Drawer.vue.30b0fc28.js +1 -0
- package/dist/client/_nuxt/DrawerItem.e2effddf.js +1 -0
- package/dist/client/_nuxt/DrawerItem.vue.8cadb3c9.js +1 -0
- package/dist/client/_nuxt/FileIcon.68b82ecb.js +1 -0
- package/dist/client/_nuxt/FileIcon.vue.3bb914bc.js +1 -0
- package/dist/client/_nuxt/FilepathItem.8049add8.js +1 -0
- package/dist/client/_nuxt/FilepathItem.vue.811409e2.js +1 -0
- package/dist/client/_nuxt/HooksTable.59d897cb.js +1 -0
- package/dist/client/_nuxt/HooksTable.vue.6b9004ef.js +1 -0
- package/dist/client/_nuxt/IconTitle.f576cbf3.js +1 -0
- package/dist/client/_nuxt/{IconTitle.vue.909d2a6b.js → IconTitle.vue.dfa8cbcf.js} +1 -1
- package/dist/client/_nuxt/IframeView.13e136bd.js +1 -0
- package/dist/client/_nuxt/IframeView.vue.6843a7fa.js +1 -0
- package/dist/client/_nuxt/LaunchPage.e39fe420.js +1 -0
- package/dist/client/_nuxt/LaunchPage.vue.6be17436.js +1 -0
- package/dist/client/_nuxt/ModuleItem.8c304e21.js +1 -0
- package/dist/client/_nuxt/ModuleItem.vue.2d131549.js +1 -0
- package/dist/client/_nuxt/ModuleTreeNode.78ca9ece.js +1 -0
- package/dist/client/_nuxt/NButton.13233a1a.js +1 -0
- package/dist/client/_nuxt/NButton.vue.e86a98c0.js +1 -0
- package/dist/client/_nuxt/NCard.7a4e503f.js +1 -0
- package/dist/client/_nuxt/NCheckbox.2da82abb.js +1 -0
- package/dist/client/_nuxt/NCheckbox.vue.f058658a.js +1 -0
- package/dist/client/_nuxt/NDarkToggle.b7397b85.js +1 -0
- package/dist/client/_nuxt/NDarkToggle.vue.104b9df7.js +1 -0
- package/dist/client/_nuxt/{NDialog.09638209.js → NDialog.ff796c22.js} +3 -3
- package/dist/client/_nuxt/NDropdown.6e99be47.js +1 -0
- package/dist/client/_nuxt/NIcon.62a6a6a2.js +1 -0
- package/dist/client/_nuxt/NIcon.vue.5c5f9ae0.js +1 -0
- package/dist/client/_nuxt/NLink.f8b21877.js +1 -0
- package/dist/client/_nuxt/NLink.vue.0f719ab9.js +1 -0
- package/dist/client/_nuxt/{NRadio.a5c0205d.js → NRadio.8c217808.js} +1 -1
- package/dist/client/_nuxt/NSwitch.ea9c119a.js +1 -0
- package/dist/client/_nuxt/NSwitch.vue.a7a200ce.js +1 -0
- package/dist/client/_nuxt/NTextInput.48fb0a25.js +1 -0
- package/dist/client/_nuxt/NTextInput.vue.5d4d2524.js +1 -0
- package/dist/client/_nuxt/NTip.d9c4666f.js +1 -0
- package/dist/client/_nuxt/Notification.287365de.js +1 -0
- package/dist/client/_nuxt/Notification.vue.dd7d98d5.js +1 -0
- package/dist/client/_nuxt/{NuxtContentLogo.1ca13565.js → NuxtContentLogo.447522e5.js} +1 -1
- package/dist/client/_nuxt/NuxtExampleLayout.06f6d250.js +1 -0
- package/dist/client/_nuxt/NuxtLogo.b27dc990.js +1 -0
- package/dist/client/_nuxt/PluginItem.6a55c130.js +1 -0
- package/dist/client/_nuxt/PluginItem.vue.6e1d1965.js +1 -0
- package/dist/client/_nuxt/RoutePathItem.b209a7cb.js +1 -0
- package/dist/client/_nuxt/RoutePathItem.vue.90d1f11a.js +1 -0
- package/dist/client/_nuxt/RoutesTable.ffa3adf9.js +1 -0
- package/dist/client/_nuxt/RoutesTable.vue.1bbafbda.js +1 -0
- package/dist/client/_nuxt/SectionBlock.082cb101.css +1 -0
- package/dist/client/_nuxt/SectionBlock.2e26af4b.js +1 -0
- package/dist/client/_nuxt/Settings.a15dbb2e.js +1 -0
- package/dist/client/_nuxt/Settings.vue.f2a6e99c.js +1 -0
- package/dist/client/_nuxt/{StateEditor.f3649b84.css → StateEditor.989cce56.css} +1 -1
- package/dist/client/_nuxt/StateEditor.fd549a9f.js +1 -0
- package/dist/client/_nuxt/StateEditor.vue.0d8adb50.js +135 -0
- package/dist/client/_nuxt/StateEditor.vue.ead0fa52.js +1 -0
- package/dist/client/_nuxt/StateGroup.bcb980bd.js +1 -0
- package/dist/client/_nuxt/{StateGroup.vue.2dd6ea33.js → StateGroup.vue.c133a773.js} +1 -1
- package/dist/client/_nuxt/TabIcon.e55b5a67.js +1 -0
- package/dist/client/_nuxt/{TabIcon.vue.8a3fdf6c.js → TabIcon.vue.adac3b56.js} +1 -1
- package/dist/client/_nuxt/{UnoIcon.58399ac9.js → UnoIcon.3132b92a.js} +1 -1
- package/dist/client/_nuxt/__inspecting.a43a7f80.js +1 -0
- package/dist/client/_nuxt/app.config.12fdda03.js +1 -0
- package/dist/client/_nuxt/asyncData.518fdb22.js +1 -0
- package/dist/client/_nuxt/client-only.f9d053f8.js +4 -0
- package/dist/client/_nuxt/client.210463dc.js +1 -0
- package/dist/client/_nuxt/component.vue3.02eb71f6.js +1 -0
- package/dist/client/_nuxt/components.4f55e0db.js +1 -0
- package/dist/client/_nuxt/components.84a4af12.js +1 -0
- package/dist/client/_nuxt/{components.client.bfee0e6a.js → components.client.e93eaead.js} +2 -2
- package/dist/client/_nuxt/composables.2b96933d.js +1 -0
- package/dist/client/_nuxt/composables.59ebbb45.js +1 -0
- package/dist/client/_nuxt/{context.dc73232e.js → context.c20dc632.js} +1 -1
- package/dist/client/_nuxt/custom-_name_.2cdb4455.js +1 -0
- package/dist/client/_nuxt/default.585c2af8.js +1 -0
- package/dist/client/_nuxt/defu.5a7c1433.js +1 -0
- package/dist/client/_nuxt/{dev-only.fb81821a.js → dev-only.32de73cb.js} +1 -1
- package/dist/client/_nuxt/{editor.f69d200c.js → editor.45ea8ca4.js} +1 -1
- package/dist/client/_nuxt/entry.6e08c3bd.css +1 -0
- package/dist/client/_nuxt/entry.fad9213c.js +1 -0
- package/dist/client/_nuxt/error-404.bf8933d3.js +1 -0
- package/dist/client/_nuxt/error-500.fe852534.js +1 -0
- package/dist/client/_nuxt/error-component.0aa3c1f1.js +3 -0
- package/dist/client/_nuxt/error.ab352ad9.js +1 -0
- package/dist/client/_nuxt/hooks.da36eba4.js +1 -0
- package/dist/client/_nuxt/imports.05a63875.js +1 -0
- package/dist/client/_nuxt/{index.7c6751e3.js → index.bf1af76f.js} +1 -1
- package/dist/client/_nuxt/index.d56af0a0.js +1 -0
- package/dist/client/_nuxt/{index.96e42b53.js → index.e1377d3f.js} +1 -1
- package/dist/client/_nuxt/index.e7819c37.js +1 -0
- package/dist/client/_nuxt/layout.f6e6e706.js +1 -0
- package/dist/client/_nuxt/layouts.ed44bf26.js +1 -0
- package/dist/client/_nuxt/middleware.42780100.js +1 -0
- package/dist/client/_nuxt/modules.58ec9d96.js +1 -0
- package/dist/client/_nuxt/none.a36fcb53.js +1 -0
- package/dist/client/_nuxt/nuxt-error-boundary.70c75848.js +1 -0
- package/dist/client/_nuxt/nuxt-link.ed65b9da.js +1 -0
- package/dist/client/_nuxt/nuxt-loading-indicator.366d3e52.js +1 -0
- package/dist/client/_nuxt/nuxt.21217109.js +1 -0
- package/dist/client/_nuxt/overview.ce599b13.js +1 -0
- package/dist/client/_nuxt/page.fb94fd70.js +1 -0
- package/dist/client/_nuxt/pages.ca7b2f77.js +1 -0
- package/dist/client/_nuxt/payload.78a6e729.js +1 -0
- package/dist/client/_nuxt/plugins.48c9acc3.js +1 -0
- package/dist/client/_nuxt/router.96f0ba10.js +1 -0
- package/dist/client/_nuxt/{rpc.990da39b.js → rpc.2e6b297d.js} +1 -1
- package/dist/client/_nuxt/runtime-configs.1c27e6f2.js +1 -0
- package/dist/client/_nuxt/{runtime-core.esm-bundler.5019e930.js → runtime-core.esm-bundler.ad888d46.js} +1 -1
- package/dist/client/_nuxt/runtime-dom.esm-bundler.c94e30c4.js +1 -0
- package/dist/client/_nuxt/{server-placeholder.735ae8e9.js → server-placeholder.ba9b9f8a.js} +1 -1
- package/dist/client/_nuxt/server-routes.de3e707e.js +1 -0
- package/dist/client/_nuxt/state.2c41a47c.js +1 -0
- package/dist/client/_nuxt/state.85e68c45.js +1 -0
- package/dist/client/_nuxt/storage.abd6f5f8.js +1 -0
- package/dist/client/_nuxt/{unocss-runtime.2da03436.js → unocss-runtime.1d429fd2.js} +1 -1
- package/dist/client/_nuxt/utils.1c789938.js +1 -0
- package/dist/client/_nuxt/{utils.3921fcc0.js → utils.8ee5a573.js} +2 -2
- package/dist/client/_nuxt/{virtual-files.8b6129f7.js → virtual-files.53d6f968.js} +8 -8
- package/dist/client/_nuxt/welcome.11fc1574.js +1 -0
- package/dist/client/index.html +2 -2
- package/dist/client/modules/components/index.html +2 -2
- package/dist/client/modules/hooks/index.html +2 -2
- package/dist/client/modules/imports/index.html +2 -2
- package/dist/client/modules/layouts/index.html +2 -2
- package/dist/client/modules/middleware/index.html +2 -2
- package/dist/client/modules/modules/index.html +2 -2
- package/dist/client/modules/overview/index.html +2 -2
- package/dist/client/modules/pages/index.html +2 -2
- package/dist/client/modules/payload/index.html +2 -2
- package/dist/client/modules/plugins/index.html +2 -2
- package/dist/client/modules/runtime-configs/index.html +2 -2
- package/dist/client/modules/server-routes/index.html +2 -2
- package/dist/client/modules/virtual-files/index.html +2 -2
- package/dist/module.json +1 -1
- package/dist/module.mjs +2 -2
- package/dist/runtime/plugins/view/Container.vue +5 -3
- package/dist/runtime/plugins/view/Frame.vue +12 -2
- package/dist/runtime/shared/hooks.mjs +4 -3
- package/dist/shared/{devtools.861712a3.mjs → devtools.38b2468f.mjs} +6 -6
- package/dist/shared/{devtools.bea56ed1.mjs → devtools.c43ddaa5.mjs} +1 -1
- package/dist/shared/{devtools.34d9e53a.mjs → devtools.cce722d0.mjs} +5 -5
- package/dist/types.d.ts +20 -2
- package/module.cjs +1 -1
- package/package.json +12 -12
- package/dist/chunks/index.mjs +0 -47749
- package/dist/client/_nuxt/ComponentItem.e70cb817.js +0 -1
- package/dist/client/_nuxt/ComponentItem.vue.b2907459.js +0 -1
- package/dist/client/_nuxt/ComponentsGraph.80197dea.js +0 -1
- package/dist/client/_nuxt/ComponentsGraph.vue.4984fec1.js +0 -1
- package/dist/client/_nuxt/ComponentsList.d795349a.js +0 -1
- package/dist/client/_nuxt/ComponentsList.vue.e6afcbfb.js +0 -1
- package/dist/client/_nuxt/ComposableItem.d63f347f.js +0 -1
- package/dist/client/_nuxt/ComposableItem.vue.63bbac89.js +0 -1
- package/dist/client/_nuxt/ComposableTree.fc74024a.js +0 -1
- package/dist/client/_nuxt/ComposableTree.vue.c7f41864.js +0 -1
- package/dist/client/_nuxt/CurrentRoute.4a32c426.js +0 -1
- package/dist/client/_nuxt/Drawer.71f7d62d.js +0 -1
- package/dist/client/_nuxt/Drawer.vue.61472665.js +0 -1
- package/dist/client/_nuxt/DrawerItem.0c4e93e1.js +0 -1
- package/dist/client/_nuxt/DrawerItem.vue.30f032f8.js +0 -1
- package/dist/client/_nuxt/FileIcon.4f6c385a.js +0 -1
- package/dist/client/_nuxt/FileIcon.vue.e650fe14.js +0 -1
- package/dist/client/_nuxt/FilepathItem.f0424391.js +0 -1
- package/dist/client/_nuxt/FilepathItem.vue.3e647321.js +0 -1
- package/dist/client/_nuxt/HooksTable.e9c5c41d.js +0 -1
- package/dist/client/_nuxt/HooksTable.vue.93af23f8.js +0 -1
- package/dist/client/_nuxt/IconTitle.576c2413.js +0 -1
- package/dist/client/_nuxt/IframeView.78e9c8e5.js +0 -1
- package/dist/client/_nuxt/IframeView.vue.54f89e7f.js +0 -1
- package/dist/client/_nuxt/LaunchPage.aef7119a.js +0 -1
- package/dist/client/_nuxt/LaunchPage.vue.520a72f3.js +0 -1
- package/dist/client/_nuxt/ModuleItem.ac19d5c9.js +0 -1
- package/dist/client/_nuxt/ModuleItem.vue.68a7fefd.js +0 -1
- package/dist/client/_nuxt/ModuleTreeNode.040f6e05.js +0 -1
- package/dist/client/_nuxt/NButton.fb93b328.js +0 -1
- package/dist/client/_nuxt/NButton.vue.e1b8a843.js +0 -1
- package/dist/client/_nuxt/NCard.47038127.js +0 -1
- package/dist/client/_nuxt/NCheckbox.ec4f225e.js +0 -1
- package/dist/client/_nuxt/NCheckbox.vue.25b386b6.js +0 -1
- package/dist/client/_nuxt/NDarkToggle.46f06112.js +0 -1
- package/dist/client/_nuxt/NDarkToggle.vue.c227b1bd.js +0 -1
- package/dist/client/_nuxt/NDropdown.3b66cf14.js +0 -1
- package/dist/client/_nuxt/NIcon.e9d8d4d5.js +0 -1
- package/dist/client/_nuxt/NIcon.vue.2481694f.js +0 -1
- package/dist/client/_nuxt/NLink.873d3d79.js +0 -1
- package/dist/client/_nuxt/NLink.vue.c3ddaba8.js +0 -1
- package/dist/client/_nuxt/NSwitch.4c2c96d6.js +0 -1
- package/dist/client/_nuxt/NSwitch.vue.36ec57ea.js +0 -1
- package/dist/client/_nuxt/NTextInput.3c1a9b08.js +0 -1
- package/dist/client/_nuxt/NTextInput.vue.2d3f9e19.js +0 -1
- package/dist/client/_nuxt/NTip.ff4fea4e.js +0 -1
- package/dist/client/_nuxt/Notification.f594eb13.js +0 -1
- package/dist/client/_nuxt/Notification.vue.b0304237.js +0 -1
- package/dist/client/_nuxt/NuxtExampleLayout.4569dcf8.js +0 -1
- package/dist/client/_nuxt/NuxtLogo.acbeec62.js +0 -1
- package/dist/client/_nuxt/PluginItem.b3be3a58.js +0 -1
- package/dist/client/_nuxt/PluginItem.vue.eaf5eab2.js +0 -1
- package/dist/client/_nuxt/RoutePathItem.8db2ae7e.js +0 -1
- package/dist/client/_nuxt/RoutePathItem.vue.04745c20.js +0 -1
- package/dist/client/_nuxt/RoutesTable.6b9eefe0.js +0 -1
- package/dist/client/_nuxt/RoutesTable.vue.af7acfb0.js +0 -1
- package/dist/client/_nuxt/SectionBlock.6bf10c9f.js +0 -1
- package/dist/client/_nuxt/SectionBlock.a75bb023.css +0 -1
- package/dist/client/_nuxt/Settings.ceefb680.js +0 -1
- package/dist/client/_nuxt/Settings.vue.6d6be237.js +0 -1
- package/dist/client/_nuxt/StateEditor.b25ca4bb.js +0 -1
- package/dist/client/_nuxt/StateEditor.vue.4c95ce8f.js +0 -135
- package/dist/client/_nuxt/StateEditor.vue.94361847.js +0 -1
- package/dist/client/_nuxt/StateGroup.03356999.js +0 -1
- package/dist/client/_nuxt/TabIcon.0eec1314.js +0 -1
- package/dist/client/_nuxt/__inspecting.06a43aaf.js +0 -1
- package/dist/client/_nuxt/app.config.a09258b3.js +0 -1
- package/dist/client/_nuxt/asyncData.0d07d609.js +0 -1
- package/dist/client/_nuxt/client-only.57dcb5bd.js +0 -4
- package/dist/client/_nuxt/client.ef9805ed.js +0 -1
- package/dist/client/_nuxt/component.vue3.70214810.js +0 -1
- package/dist/client/_nuxt/components.67fd2b98.js +0 -1
- package/dist/client/_nuxt/components.bcdd3ff8.js +0 -1
- package/dist/client/_nuxt/composables.3d6ee8a2.js +0 -1
- package/dist/client/_nuxt/composables.7fd231ea.js +0 -1
- package/dist/client/_nuxt/custom-_name_.2acc77aa.js +0 -1
- package/dist/client/_nuxt/default.7612ba66.js +0 -1
- package/dist/client/_nuxt/entry.53569115.css +0 -1
- package/dist/client/_nuxt/entry.709b2421.js +0 -1
- package/dist/client/_nuxt/error-404.f7be8ae4.js +0 -1
- package/dist/client/_nuxt/error-500.31030cf5.js +0 -1
- package/dist/client/_nuxt/error-component.2d0a1159.js +0 -3
- package/dist/client/_nuxt/error.10b092f1.js +0 -1
- package/dist/client/_nuxt/hooks.d96e987b.js +0 -1
- package/dist/client/_nuxt/imports.57b0481d.js +0 -1
- package/dist/client/_nuxt/index.0977b63e.js +0 -1
- package/dist/client/_nuxt/index.6cafd97e.js +0 -1
- package/dist/client/_nuxt/layout.27c704cb.js +0 -1
- package/dist/client/_nuxt/layouts.cd5cbb48.js +0 -1
- package/dist/client/_nuxt/middleware.8875601d.js +0 -1
- package/dist/client/_nuxt/modules.36a5839f.js +0 -1
- package/dist/client/_nuxt/none.1c37aed4.js +0 -1
- package/dist/client/_nuxt/nuxt-error-boundary.fc4d7c25.js +0 -1
- package/dist/client/_nuxt/nuxt-link.724f8a66.js +0 -1
- package/dist/client/_nuxt/nuxt-loading-indicator.494ea32c.js +0 -1
- package/dist/client/_nuxt/overview.a69ce720.js +0 -1
- package/dist/client/_nuxt/page.8df04ed4.js +0 -1
- package/dist/client/_nuxt/pages.02ef0472.js +0 -1
- package/dist/client/_nuxt/payload.8cf95895.js +0 -1
- package/dist/client/_nuxt/plugins.50899071.js +0 -1
- package/dist/client/_nuxt/runtime-configs.d1fe4f1d.js +0 -1
- package/dist/client/_nuxt/runtime-dom.esm-bundler.b0076367.js +0 -1
- package/dist/client/_nuxt/server-routes.ff745565.js +0 -1
- package/dist/client/_nuxt/state.5364a68a.js +0 -1
- package/dist/client/_nuxt/state.90201abf.js +0 -1
- package/dist/client/_nuxt/storage.82519452.js +0 -1
- package/dist/client/_nuxt/utils.c2a3506b.js +0 -1
- package/dist/client/_nuxt/welcome.432c9232.js +0 -1
- 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**.
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { resolve, join, normalize } from 'path';
|
|
2
|
-
import * as
|
|
3
|
-
import
|
|
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$
|
|
6
|
-
import require$$0
|
|
7
|
-
import require$$0$
|
|
8
|
-
import require$$
|
|
9
|
-
import require$$
|
|
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$
|
|
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$
|
|
14
|
+
import require$$0$4 from 'url';
|
|
15
15
|
import * as qs from 'querystring';
|
|
16
|
-
import require$$0$
|
|
17
|
-
import { i as isInstalledGlobally } from '../shared/devtools.
|
|
18
|
-
import { v as version } from '../shared/devtools.
|
|
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.c43ddaa5.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
|
|
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
|
|
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$
|
|
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$
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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$
|
|
2484
|
+
const EventEmitter$1 = require$$0$3;
|
|
2485
2485
|
const https = require$$2;
|
|
2486
2486
|
const http$1 = require$$1;
|
|
2487
|
-
const net = require$$
|
|
2488
|
-
const tls = require$$
|
|
2487
|
+
const net = require$$3;
|
|
2488
|
+
const tls = require$$4;
|
|
2489
2489
|
const { randomBytes, createHash: createHash$1 } = require$$5;
|
|
2490
|
-
const { URL } = require$$0$
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
2761
|
-
if (this.readyState === WebSocket
|
|
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
|
|
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
|
|
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
|
|
2813
|
-
this.readyState === WebSocket
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
2894
|
-
this.readyState === WebSocket
|
|
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
|
|
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
|
|
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
|
|
2957
|
-
if (this.readyState === WebSocket
|
|
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
|
|
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$
|
|
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) &&
|
|
4885
|
-
stats =
|
|
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
|
-
|
|
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$
|
|
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:
|
|
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 =
|
|
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 =
|
|
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 (
|
|
5239
|
+
if (fs__default.existsSync(pathPageIndex)) {
|
|
5239
5240
|
logger.warn("pages/index.vue already exists, skipping");
|
|
5240
5241
|
return;
|
|
5241
5242
|
}
|
|
5242
|
-
let appContent =
|
|
5243
|
-
await
|
|
5244
|
-
await
|
|
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
|
|
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
|
|
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
|
|
5606
|
+
if (!(other instanceof SemVer)) {
|
|
5606
5607
|
if (typeof other === 'string' && other === this.version) {
|
|
5607
5608
|
return 0
|
|
5608
5609
|
}
|
|
5609
|
-
other = new SemVer
|
|
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
|
|
5621
|
-
other = new SemVer
|
|
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
|
|
5633
|
-
other = new SemVer
|
|
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
|
|
5666
|
-
other = new SemVer
|
|
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('
|
|
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,
|
|
8425
|
+
export { LOG_PREFIX as L, moduleMain as m };
|