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

@smallstack/common

Package Overview
Dependencies
Maintainers
3
Versions
150
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@smallstack/common - npm Package Compare versions

Comparing version 0.7.104 to 0.7.105

23

dist/bundle/dts/Logger.d.ts
export declare type LoggerLevel = "info" | "debug" | "error" | "warn";
export declare class Logger {
static debugMode: boolean;
static instance(): Logger;
static on(level: LoggerLevel, callback: (moduleName: string, message: string, stacktrace?: any) => void): void;
static log(level: LoggerLevel, moduleName: string, message: string, stacktrace?: any): void;

@@ -13,4 +14,24 @@ static info(moduleName: string, message: string, stacktrace?: any): void;

static getDebugModules(): string[];
static resetDebugModules(): void;
static getLoggerMaxLength(): number;
static setLoggerMaxLength(maxLength: number): void;
debugMode: boolean;
loggerDebugModules: string[];
loggerMaxLength: number;
loggerCallbacks: {
[level: string]: Array<(moduleName: string, message: string, stacktrace?: any) => void>;
};
on(level: LoggerLevel, callback: (moduleName: string, message: string, stacktrace?: any) => void): void;
log(level: LoggerLevel, moduleName: string, message: string, stacktrace?: any): void;
info(moduleName: string, message: string, stacktrace?: any): void;
warning(moduleName: string, message: string, stacktrace?: any): void;
error(moduleName: string, message: string, stacktrace?: any): void;
debug(moduleName: string, message: string, stacktrace?: any): void;
loggingModule(level: LoggerLevel, moduleName: string): boolean;
printSmallstackLogo(): void;
addDebugModule(debugModuleName: string): void;
getDebugModules(): string[];
resetDebugModules(): void;
getLoggerMaxLength(): number;
setLoggerMaxLength(maxLength: number): void;
}

5

package.json
{
"name": "@smallstack/common",
"version": "0.7.104",
"version": "0.7.105",
"description": "common functionality for smallstack projects",

@@ -28,3 +28,3 @@ "main": "dist/bundle/smallstack_common.umd.js",

"devDependencies": {
"@smallstack/testing": "^0.1.14",
"@smallstack/testing": "^0.1.15",
"@types/chai": "^4.0.4",

@@ -41,2 +41,3 @@ "@types/mocha": "^2.2.43",

"karma-mocha": "^1.3.0",
"karma-spec-reporter": "0.0.32",
"karma-typescript": "^3.0.12",

@@ -43,0 +44,0 @@ "minimongo": "^4.8.0",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

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