Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@poi/dev-utils

Package Overview
Dependencies
Maintainers
3
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@poi/dev-utils - npm Package Compare versions

Comparing version 12.0.3 to 12.1.0

colors.js

10

CHANGELOG.md

@@ -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 @@

10

formatWebpackMessages.js

@@ -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

6

openBrowser.js
/* 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) {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc