Socket
Socket
Sign inDemoInstall

@squared-functions/types

Package Overview
Dependencies
Maintainers
1
Versions
367
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@squared-functions/types - npm Package Compare versions

Comparing version 4.8.78 to 4.8.79

24

lib/logger.d.ts

@@ -5,3 +5,3 @@ /// <reference path="type.d.ts" />

import type { BackgroundColor, ForegroundColor } from 'chalk';
import type { BackgroundColor as IBackgroundColor, ForegroundColor as IForegroundColor } from 'chalk';

@@ -24,13 +24,13 @@ import type { LOG_TYPE, STATUS_TYPE } from '../index.d';

export interface LoggerColor {
titleColor?: typeof ForegroundColor | HexColor;
titleBgColor?: typeof BackgroundColor | HexColor;
titleColor?: ForegroundColor;
titleBgColor?: BackgroundColor;
titleBold?: boolean;
valueColor?: typeof ForegroundColor | HexColor;
valueBgColor?: typeof BackgroundColor | HexColor;
valueColor?: ForegroundColor;
valueBgColor?: BackgroundColor;
valueBold?: boolean;
hintColor?: typeof ForegroundColor | HexColor;
hintBgColor?: typeof BackgroundColor | HexColor;
hintColor?: ForegroundColor;
hintBgColor?: BackgroundColor;
hintBold?: boolean;
messageColor?: typeof ForegroundColor | HexColor;
messageBgColor?: typeof BackgroundColor | HexColor;
messageColor?: ForegroundColor;
messageBgColor?: BackgroundColor;
messageBold?: boolean;

@@ -41,4 +41,4 @@ }

width?: T;
color?: typeof ForegroundColor | HexColor;
bgColor?: typeof BackgroundColor | HexColor;
color?: ForegroundColor;
bg_color?: BackgroundColor;
bold?: boolean;

@@ -116,2 +116,4 @@ justify?: TextAlign;

export type LogComponent = Partial<Pick<LogStatus<StatusType>, "type" | "value" | "timeStamp" | "duration" | "from">>;
export type BackgroundColor = typeof IBackgroundColor | HexColor;
export type ForegroundColor = typeof IForegroundColor | HexColor;
export type TextAlign = "left" | "center" | "right";

@@ -118,0 +120,0 @@ export type ErrorOutMethod = (err: Error, data: LogTypeValue, require?: NodeRequire) => void;

@@ -296,11 +296,13 @@ import type { PermissionAction, PermissionSettings, PermittedDirectories } from './core';

export interface LoggerModule<T = NumString, U = boolean | T> {
export interface LoggerModule<T = NumString, U = boolean | T, V = LoggerFormat<T>> {
enabled?: boolean;
level?: NumString;
production?: string[];
format?: {
title?: LoggerFormat<T>;
value?: LoggerFormat<T>;
hint?: LoggerFormat<T> & { unit?: "auto" | "s" | "ms" };
session_id?: LoggerFormat<T>;
message?: LoggerFormat<T>;
meter?: LoggerFormat<T>;
title?: V;
value?: V;
hint?: V & { unit?: "auto" | "s" | "ms" };
session_id?: V;
message?: V;
meter?: V;
};

@@ -307,0 +309,0 @@ meter?: {

{
"name": "@squared-functions/types",
"version": "4.8.78",
"version": "4.8.79",
"description": "Type definitions for squared-functions",

@@ -5,0 +5,0 @@ "types": "index.d.ts",

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