@adonisjs/assembler
Advanced tools
Comparing version 6.1.3-24 to 6.1.3-25
@@ -413,2 +413,3 @@ // src/bundler.ts | ||
// src/dev_server.ts | ||
import prettyHrtime from "pretty-hrtime"; | ||
var ui3 = cliui3(); | ||
@@ -462,2 +463,3 @@ var DevServer = class { | ||
#startHTTPServer(port, mode) { | ||
let initialTime = process.hrtime(); | ||
this.#httpServer = runNode(this.#cwd, { | ||
@@ -471,2 +473,3 @@ script: this.#scriptFile, | ||
if (this.#isAdonisJSReadyMessage(message)) { | ||
const readyAt = process.hrtime(initialTime); | ||
ui3.sticker().useColors(this.#colors).useRenderer(this.#logger.getRenderer()).add(`Server address: ${this.#colors.cyan(`http://${message.host}:${message.port}`)}`).add( | ||
@@ -476,3 +479,3 @@ `File system watcher: ${this.#colors.cyan( | ||
)}` | ||
).render(); | ||
).add(`Ready in: ${this.#colors.cyan(prettyHrtime(readyAt))}`).render(); | ||
} | ||
@@ -485,2 +488,4 @@ }); | ||
this.#assetsServer?.stop(); | ||
} else { | ||
this.#logger.info("Underlying HTTP server closed. Still watching for changes"); | ||
} | ||
@@ -492,2 +497,4 @@ }).catch((error) => { | ||
this.#assetsServer?.stop(); | ||
} else { | ||
this.#logger.info("Underlying HTTP server died. Still watching for changes"); | ||
} | ||
@@ -494,0 +501,0 @@ }); |
{ | ||
"name": "@adonisjs/assembler", | ||
"description": "Provides utilities to run AdonisJS development server and build project for production", | ||
"version": "6.1.3-24", | ||
"version": "6.1.3-25", | ||
"engines": { | ||
@@ -47,2 +47,3 @@ "node": ">=18.16.0" | ||
"@types/picomatch": "^2.3.0", | ||
"@types/pretty-hrtime": "^1.0.1", | ||
"c8": "^8.0.1", | ||
@@ -72,2 +73,3 @@ "cross-env": "^7.0.3", | ||
"picomatch": "^2.3.1", | ||
"pretty-hrtime": "^1.0.3", | ||
"slash": "^5.1.0", | ||
@@ -74,0 +76,0 @@ "ts-morph": "^20.0.0" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
55400
1620
0
13
27
+ Addedpretty-hrtime@^1.0.3