@magidoc/cli
Advanced tools
Comparing version 0.12.2 to 0.12.3
@@ -55,5 +55,4 @@ import http from 'http'; | ||
const address = server.address(); | ||
const host = address.address === '127.0.0.1' ? 'localhost' : address.address; | ||
console.log(); | ||
console.log(`Server listening on ${chalk.cyan(`http://${host}:${address.port}`)}`); | ||
console.log(`Server listening on ${chalk.cyan(`http://localhost:${address.port}`)}`); | ||
}); | ||
@@ -60,0 +59,0 @@ } |
@@ -5,3 +5,3 @@ { | ||
"private": false, | ||
"version": "0.12.2", | ||
"version": "0.12.3", | ||
"type": "module", | ||
@@ -20,5 +20,5 @@ "license": "MIT", | ||
"dependencies": { | ||
"@magidoc/plugin-starter-variables": "^0.12.2", | ||
"@magidoc/rollup-plugin-fetch-gql-schema": "^0.12.2", | ||
"@magidoc/rollup-plugin-parse-gql-schema": "^0.12.2", | ||
"@magidoc/plugin-starter-variables": "^0.12.3", | ||
"@magidoc/rollup-plugin-fetch-gql-schema": "^0.12.3", | ||
"@magidoc/rollup-plugin-parse-gql-schema": "^0.12.3", | ||
"axios": "^0.27.2", | ||
@@ -25,0 +25,0 @@ "chalk": "^5.0.1", |
@@ -72,10 +72,8 @@ import type { PreviewConfig } from './config' | ||
const address = server.address() as AddressInfo | ||
const host = address.address === '127.0.0.1' ? 'localhost' : address.address | ||
console.log() | ||
console.log( | ||
`Server listening on ${chalk.cyan(`http://${host}:${address.port}`)}`, | ||
`Server listening on ${chalk.cyan(`http://localhost:${address.port}`)}`, | ||
) | ||
}) | ||
} |
Sorry, the diff of this file is not supported yet
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
130866
2632