@changesets/logger
Advanced tools
Comparing version 0.1.0 to 0.1.1
# @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 @@ |
@@ -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"))); | ||
} |
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
10081
+ Addedpicocolors@^1.1.0
+ Addedpicocolors@1.1.1(transitive)
- Removedchalk@^2.1.0
- 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)
- Removedsupports-color@5.5.0(transitive)