New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

@kokkoro/utils

Package Overview
Dependencies
Maintainers
2
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kokkoro/utils - npm Package Compare versions

Comparing version
0.8.0
to
0.8.1
+4
-4
lib/colorful.d.ts

@@ -11,9 +11,9 @@ declare enum Color {

/**
* 彩色字体
* 生成彩色字体
*
* @param color - 字体颜色
* @param type - 颜色
* @param text - 文本
* @returns 文本内容
* @returns 彩色字体
*/
export declare function colorful(color: keyof typeof Color, text: string): string;
export declare function colorful(type: keyof typeof Color, text: string): string;
export {};

@@ -12,10 +12,10 @@ var Color;

/**
* 彩色字体
* 生成彩色字体
*
* @param color - 字体颜色
* @param type - 颜色
* @param text - 文本
* @returns 文本内容
* @returns 彩色字体
*/
export function colorful(color, text) {
return `\u001b[${color}m${text}\u001b[0m`;
export function colorful(type, text) {
return `\u001b[${Color[type]}m${text}\u001b[0m`;
}
{
"name": "@kokkoro/utils",
"version": "0.8.0",
"version": "0.8.1",
"description": "Utilities for kokkoro.",

@@ -5,0 +5,0 @@ "engines": {