@poi/dev-utils
Advanced tools
Comparing version 12.0.3 to 12.1.0
@@ -6,2 +6,12 @@ # Change Log | ||
# [12.1.0](https://github.com/egoist/poi/compare/@poi/dev-utils@12.0.3...@poi/dev-utils@12.1.0) (2019-01-09) | ||
### Bug Fixes | ||
- **dev-utils:** refactor hotDevClient to ES5 compat ([#522](https://github.com/egoist/poi/issues/522)) ([480bce5](https://github.com/egoist/poi/commit/480bce5)), closes [#515](https://github.com/egoist/poi/issues/515) | ||
### Features | ||
- show memory usage ([75f1376](https://github.com/egoist/poi/commit/75f1376)) | ||
## [12.0.3](https://github.com/egoist/poi/compare/@poi/dev-utils@12.0.2...@poi/dev-utils@12.0.3) (2018-12-21) | ||
@@ -8,0 +18,0 @@ |
@@ -6,2 +6,3 @@ /* eslint-disable */ | ||
// Please make sure any changes are in ES5 or contribute a Babel compile step. | ||
var colors = require('./colors') | ||
@@ -11,5 +12,2 @@ // Some custom utilities to prettify Webpack output. | ||
// https://github.com/webpack/webpack/issues/2878 | ||
var chalk = require('chalk'); | ||
var friendlySyntaxErrorLabel = 'Syntax error:'; | ||
@@ -74,8 +72,8 @@ | ||
lines[0] = chalk.inverse(lines[0]); | ||
lines[0] = colors.inverse(lines[0]); | ||
// Reassemble the message. | ||
message = lines.map(line => { | ||
message = lines.map(function (line) { | ||
if (line.indexOf('vue-template-compiler must be installed as a peer dependency') > -1) { | ||
return `You need to install "vue-template-compiler" alongside "vue" in your project.` | ||
return 'You need to install "vue-template-compiler" alongside "vue" in your project.' | ||
} | ||
@@ -82,0 +80,0 @@ return line |
/* eslint-disable */ | ||
'use strict'; | ||
var chalk = require('chalk'); | ||
var execSync = require('child_process').execSync; | ||
var spawn = require('cross-spawn'); | ||
var opn = require('opn'); | ||
var colors = require('./colors'); | ||
@@ -46,7 +46,7 @@ // https://github.com/sindresorhus/opn#app | ||
console.log( | ||
chalk.red( | ||
colors.red( | ||
'The script specified as BROWSER environment variable failed.' | ||
) | ||
); | ||
console.log(chalk.cyan(scriptPath) + ' exited with code ' + code + '.'); | ||
console.log(colors.cyan(scriptPath) + ' exited with code ' + code + '.'); | ||
console.log(); | ||
@@ -53,0 +53,0 @@ return; |
{ | ||
"name": "@poi/dev-utils", | ||
"version": "12.0.3", | ||
"version": "12.1.0", | ||
"publishConfig": { | ||
@@ -14,3 +14,2 @@ "access": "public" | ||
"address": "^1.0.3", | ||
"chalk": "^2.4.1", | ||
"cross-spawn": "^6.0.5", | ||
@@ -20,6 +19,6 @@ "opn": "^5.4.0", | ||
"sockjs-client": "^1.1.5", | ||
"strip-ansi": "^4.0.0" | ||
"strip-ansi": "3.0.0" | ||
}, | ||
"xo": false, | ||
"gitHead": "51164ea16b38301ecfc369788c55e2210b3b1ef2" | ||
"gitHead": "53b53b546eba2662148e0b044b407c42f5ea162f" | ||
} |
const fs = require('fs') | ||
const path = require('path') | ||
const url = require('url') | ||
const chalk = require('chalk') | ||
const address = require('address') | ||
const colors = require('./colors') | ||
@@ -77,9 +77,9 @@ module.exports = function(proxy, appPublicFolder, debug) { | ||
console.log( | ||
chalk.red('Proxy error:') + | ||
colors.red('Proxy error:') + | ||
' Could not proxy request ' + | ||
chalk.cyan(req.url) + | ||
colors.cyan(req.url) + | ||
' from ' + | ||
chalk.cyan(host) + | ||
colors.cyan(host) + | ||
' to ' + | ||
chalk.cyan(proxy) + | ||
colors.cyan(proxy) + | ||
'.' | ||
@@ -89,3 +89,3 @@ ) | ||
'See https://nodejs.org/api/errors.html#errors_common_system_errors for more information (' + | ||
chalk.cyan(err.code) + | ||
colors.cyan(err.code) + | ||
').' | ||
@@ -92,0 +92,0 @@ ) |
@@ -1,3 +0,4 @@ | ||
const chalk = require('chalk') | ||
const address = require('address') | ||
const colors = require('./colors') | ||
const prettyBytes = require('./prettyBytes') | ||
@@ -9,7 +10,10 @@ module.exports = ({ host, port, open, isFirstBuild }) => { | ||
const prettyHost = isUnspecifiedHost ? 'localhost' : host | ||
const { heapUsed } = process.memoryUsage() | ||
console.log() | ||
console.log(`Local: http://${prettyHost}:${chalk.bold(port)}`) | ||
console.log(`On Your Network: http://${ip}:${chalk.bold(port)}`) | ||
console.log(`Local: http://${prettyHost}:${colors.bold(port)}`) | ||
console.log(`On Your Network: http://${ip}:${colors.bold(port)}`) | ||
console.log() | ||
console.log(colors.dim(`(${prettyBytes(heapUsed)} memory used)`)) | ||
console.log() | ||
@@ -16,0 +20,0 @@ if (open && isFirstBuild) { |
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
33109
6
18
831
+ Addedansi-regex@2.1.1(transitive)
+ Addedstrip-ansi@3.0.0(transitive)
- Removedchalk@^2.4.1
- Removedansi-regex@3.0.1(transitive)
- Removedansi-styles@3.2.1(transitive)
- Removedchalk@2.4.2(transitive)
- Removedcolor-convert@1.9.3(transitive)
- Removedcolor-name@1.1.3(transitive)
- Removedescape-string-regexp@1.0.5(transitive)
- Removedhas-flag@3.0.0(transitive)
- Removedstrip-ansi@4.0.0(transitive)
- Removedsupports-color@5.5.0(transitive)
Updatedstrip-ansi@3.0.0