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

@changesets/logger

Package Overview
Dependencies
Maintainers
4
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@changesets/logger - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

6

CHANGELOG.md
# @changesets/logger
## 0.1.1
### Patch Changes
- [#1417](https://github.com/changesets/changesets/pull/1417) [`bc75c1a`](https://github.com/changesets/changesets/commit/bc75c1a74c2d46e08620c7aa0e9f4f5ef40a9b55) Thanks [@trivikr](https://github.com/trivikr)! - Replace `chalk` with `picocolors` to reduce install size
## 0.1.0

@@ -4,0 +10,0 @@

12

dist/changesets-logger.cjs.js

@@ -5,3 +5,3 @@ 'use strict';

var chalk = require('chalk');
var pc = require('picocolors');
var util = require('util');

@@ -11,3 +11,3 @@

var chalk__default = /*#__PURE__*/_interopDefault(chalk);
var pc__default = /*#__PURE__*/_interopDefault(pc);
var util__default = /*#__PURE__*/_interopDefault(util);

@@ -23,6 +23,6 @@

function error(...args) {
console.error(format(args, chalk__default["default"].red("error")));
console.error(format(args, pc__default["default"].red("error")));
}
function info(...args) {
console.info(format(args, chalk__default["default"].cyan("info")));
console.info(format(args, pc__default["default"].cyan("info")));
}

@@ -33,6 +33,6 @@ function log(...args) {

function success(...args) {
console.log(format(args, chalk__default["default"].green("success")));
console.log(format(args, pc__default["default"].green("success")));
}
function warn(...args) {
console.warn(format(args, chalk__default["default"].yellow("warn")));
console.warn(format(args, pc__default["default"].yellow("warn")));
}

@@ -39,0 +39,0 @@

@@ -1,2 +0,2 @@

import chalk from 'chalk';
import pc from 'picocolors';
import util from 'util';

@@ -12,6 +12,6 @@

function error(...args) {
console.error(format(args, chalk.red("error")));
console.error(format(args, pc.red("error")));
}
function info(...args) {
console.info(format(args, chalk.cyan("info")));
console.info(format(args, pc.cyan("info")));
}

@@ -22,8 +22,8 @@ function log(...args) {

function success(...args) {
console.log(format(args, chalk.green("success")));
console.log(format(args, pc.green("success")));
}
function warn(...args) {
console.warn(format(args, chalk.yellow("warn")));
console.warn(format(args, pc.yellow("warn")));
}
export { error, info, log, prefix, success, warn };
{
"name": "@changesets/logger",
"version": "0.1.0",
"version": "0.1.1",
"description": "Console log alias",

@@ -22,4 +22,4 @@ "main": "dist/changesets-logger.cjs.js",

"dependencies": {
"chalk": "^2.1.0"
"picocolors": "^1.1.0"
}
}

@@ -1,2 +0,2 @@

import chalk from "chalk";
import pc from "picocolors";
import util from "util";

@@ -19,7 +19,7 @@

export function error(...args: Array<any>) {
console.error(format(args, chalk.red("error")));
console.error(format(args, pc.red("error")));
}
export function info(...args: Array<any>) {
console.info(format(args, chalk.cyan("info")));
console.info(format(args, pc.cyan("info")));
}

@@ -32,7 +32,7 @@

export function success(...args: Array<any>) {
console.log(format(args, chalk.green("success")));
console.log(format(args, pc.green("success")));
}
export function warn(...args: Array<any>) {
console.warn(format(args, chalk.yellow("warn")));
console.warn(format(args, pc.yellow("warn")));
}
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