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

@storybook/node-logger

Package Overview
Dependencies
Maintainers
10
Versions
1920
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@storybook/node-logger - npm Package Compare versions

Comparing version 4.1.0-alpha.1 to 4.1.0-alpha.2

22

dist/index.js

@@ -8,11 +8,29 @@ "use strict";

});
exports.logger = void 0;
exports.logger = exports.colors = void 0;
var _npmlog = _interopRequireDefault(require("npmlog"));
var _prettyHrtime = _interopRequireDefault(require("pretty-hrtime"));
var _chalk = _interopRequireDefault(require("chalk"));
const colors = {
pink: _chalk.default.hex('F1618C'),
purple: _chalk.default.hex('B57EE5'),
orange: _chalk.default.hex('F3AD38'),
green: _chalk.default.hex('A2E05E'),
blue: _chalk.default.hex('6DABF5'),
red: _chalk.default.hex('F16161'),
gray: _chalk.default.gray
};
exports.colors = colors;
const logger = {
info: message => _npmlog.default.info('', message),
warn: message => _npmlog.default.warn('', message),
error: message => _npmlog.default.error('', message)
error: message => _npmlog.default.error('', message),
trace: ({
message,
time
}) => _npmlog.default.info(`${message} (${colors.purple((0, _prettyHrtime.default)(time))})`)
};
exports.logger = logger;

8

package.json
{
"name": "@storybook/node-logger",
"version": "4.1.0-alpha.1",
"version": "4.1.0-alpha.2",
"description": "",

@@ -27,5 +27,7 @@ "keywords": [

"@babel/runtime": "^7.1.2",
"npmlog": "^4.1.2"
"chalk": "^2.4.1",
"npmlog": "^4.1.2",
"pretty-hrtime": "^1.0.3"
},
"gitHead": "253a667e68bac7dee4d97a6bcca020b7d05617e6"
"gitHead": "cdb9e485eb85690368b1f698db9220ca7bc0298e"
}
import npmLog from 'npmlog';
import prettyTime from 'pretty-hrtime';
import chalk from 'chalk';
export const colors = {
pink: chalk.hex('F1618C'),
purple: chalk.hex('B57EE5'),
orange: chalk.hex('F3AD38'),
green: chalk.hex('A2E05E'),
blue: chalk.hex('6DABF5'),
red: chalk.hex('F16161'),
gray: chalk.gray,
};
export const logger = {

@@ -7,2 +19,3 @@ info: message => npmLog.info('', message),

error: message => npmLog.error('', message),
trace: ({ message, time }) => npmLog.info(`${message} (${colors.purple(prettyTime(time))})`),
};
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