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

@kitql/helpers

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kitql/helpers - npm Package Compare versions

Comparing version 0.8.7 to 0.8.8-next.0

8

CHANGELOG.md
# @kitql/helpers
## 0.8.8-next.0
### Patch Changes
- [#568](https://github.com/jycouet/kitql/pull/568)
[`2aaacce`](https://github.com/jycouet/kitql/commit/2aaacce3fc4ce0792ac8850b84d99c133d3a5997)
Thanks [@jycouet](https://github.com/jycouet)! - toolName default design update node & browser
## 0.8.7

@@ -4,0 +12,0 @@

13

cjs/Log.js

@@ -39,8 +39,15 @@ "use strict";

if (this.toolName) {
table.push(String((0, import_colors.bgCyanBright)(` ${this.toolName} `)));
const strTool = ` ${this.toolName} `;
if (withError) {
table.push((0, import_colors.bgRedBright)(strTool));
} else if (withSuccess) {
table.push((0, import_colors.bgGreen)(strTool));
} else {
table.push((0, import_colors.bgBlueBright)(strTool));
}
}
if (this.withDate === "dateTime") {
table.push(String((0, import_colors.bgCyanBright)(`${(/* @__PURE__ */ new Date()).toISOString()} `)));
table.push(String((0, import_colors.bgBlueBright)(`${(/* @__PURE__ */ new Date()).toISOString()} `)));
} else if (this.withDate === "time") {
table.push(String((0, import_colors.bgCyanBright)(`${(/* @__PURE__ */ new Date()).toISOString().split("T")[1]} `)));
table.push(String((0, import_colors.bgBlueBright)(`${(/* @__PURE__ */ new Date()).toISOString().split("T")[1]} `)));
}

@@ -47,0 +54,0 @@ if (withError) {

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

import { bgCyanBright, bold, colorProcess, greenBright, magenta, redBright, } from './colors/index.js';
import { bold, colorProcess, greenBright, redBright, bgRedBright, bgGreen, bgBlueBright, } from './colors/index.js';
export class Log {

@@ -16,11 +16,19 @@ toolName;

if (this.toolName) {
// table.push(String(magenta(`[${this.toolName}]`)))
table.push(String(bgCyanBright(` ${this.toolName} `)));
const strTool = ` ${this.toolName} `;
if (withError) {
table.push(bgRedBright(strTool));
}
else if (withSuccess) {
table.push(bgGreen(strTool));
}
else {
table.push(bgBlueBright(strTool));
}
}
// DateTime or Time or nothing
if (this.withDate === 'dateTime') {
table.push(String(bgCyanBright(`${new Date().toISOString()} `)));
table.push(String(bgBlueBright(`${new Date().toISOString()} `)));
}
else if (this.withDate === 'time') {
table.push(String(bgCyanBright(`${new Date().toISOString().split('T')[1]} `)));
table.push(String(bgBlueBright(`${new Date().toISOString().split('T')[1]} `)));
}

@@ -27,0 +35,0 @@ // Status icon or prefixEmoji

export type Prettify<T> = {
[K in keyof T]: T[K];
} & {};
} & Record<string, any>;
/**
* nice utility to stringify objects without spaces
*/
export declare function stry0(obj: Object | null | undefined): string | null | undefined;
export declare function stry0(obj: object | null | undefined): string | null | undefined;
/**

@@ -9,6 +9,6 @@ * nice utility to stringify objects (with 2 spaces by default, but you can change it)

*/
export declare function stry(obj: Object | null | undefined, space?: string | number | undefined, replacer?: (string | number)[] | null | undefined): string | null | undefined;
export declare function stry(obj: object | null | undefined, space?: string | number | undefined, replacer?: (string | number)[] | null | undefined): string | null | undefined;
/**
* Check strict equality of 2 objects
*/
export declare function stryEq(obj1: Object | null | undefined, obj2: Object | null | undefined): boolean;
export declare function stryEq(obj1: object | null | undefined, obj2: object | null | undefined): boolean;

@@ -12,3 +12,3 @@ {

],
"version": "0.8.7",
"version": "0.8.8-next.0",
"license": "MIT",

@@ -15,0 +15,0 @@ "type": "module",

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