Socket
Socket
Sign inDemoInstall

@b613/utils

Package Overview
Dependencies
182
Maintainers
1
Versions
47
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0-beta21 to 1.0.0-beta22

lib/trace/AbstractTrace.js

4

lib/trace.d.ts
export declare class Trace {
constructor(name: string);
readonly prefix: string;
constructor(prefix: string);
info(msg: string, prefix?: string): void;

@@ -4,0 +6,0 @@ warn(msg: string, prefix?: string): void;

/* eslint-disable no-console */
export class Trace {
constructor(name) {
this.name = name;
}
parse(type, msg) {
const timestamp = new Date().toISOString();
return `${timestamp} ${this.name} ${type} - ${msg}`;
}
import { AbstractTrace } from './AbstractTrace';
export class Trace extends AbstractTrace {
info(msg, prefix = 'INFO') {

@@ -11,0 +5,0 @@ console.info(this.parse(prefix, msg));

@@ -6,10 +6,4 @@ "use strict";

const color_node_1 = tslib_1.__importDefault(require("../color/color.node"));
class Trace {
constructor(name) {
this.name = name;
}
parse(type, msg) {
const timestamp = new Date().toISOString();
return `${timestamp} ${this.name} ${type} - ${msg}\n`;
}
const AbstractTrace_1 = require("./AbstractTrace");
class Trace extends AbstractTrace_1.AbstractTrace {
info(msg, prefix = 'INFO') {

@@ -16,0 +10,0 @@ process.stdout.write(this.parse(prefix, msg));

{
"name": "@b613/utils",
"version": "1.0.0-beta21",
"version": "1.0.0-beta22",
"description": "Set of utility methods for common operations",

@@ -5,0 +5,0 @@ "license": "MIT",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc