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

@phnq/log

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@phnq/log - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

7

index.client.d.ts

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

export declare const createLogger: (category: string) => {
(...a: any[]): void;
group(label: string, fn: (l: (...a: any[]) => void) => void): void;
groupCollapsed(label: string, fn: (l: (...a: any[]) => void) => void): void;
};
import { LogFn } from './logger';
export declare const createLogger: (category: string) => LogFn;

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

export declare const createLogger: (category: string) => {
(...a: any[]): void;
group(label: string, fn: (l: (...a: any[]) => void) => void): void;
groupCollapsed(label: string, fn: (l: (...a: any[]) => void) => void): void;
};
import { LogFn } from './logger';
export declare const createLogger: (category: string) => LogFn;
export declare const matchCategory: (matcher: RegExp) => void;
export declare const createLogger: (category: string, isBrowser: boolean) => {
(...a: any[]): void;
group(label: string, fn: (l: (...a: any[]) => void) => void): void;
groupCollapsed(label: string, fn: (l: (...a: any[]) => void) => void): void;
};
export declare type LogFn = (...a: any[]) => void;
export declare const createLogger: (category: string, isBrowser: boolean) => LogFn;

@@ -6,2 +6,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
/* eslint-disable @typescript-eslint/no-explicit-any */
// tslint:disable: no-console

@@ -31,2 +32,4 @@ const chalk_1 = __importDefault(require("chalk"));

Method["Log"] = "log";
Method["Error"] = "error";
Method["Warn"] = "warn";
Method["Group"] = "group";

@@ -44,2 +47,4 @@ Method["GroupCollapsed"] = "groupCollapsed";

const logger = (...a) => logFn(Method.Log, ...a);
logger.error = (...a) => logFn(Method.Error, ...a);
logger.warn = (...a) => logFn(Method.Warn, ...a);
logger.group = (label, fn) => {

@@ -46,0 +51,0 @@ logFn(Method.Group, label);

@@ -15,3 +15,3 @@ {

},
"version": "1.1.0"
"version": "1.1.1"
}
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