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

@josecarlosrz/logger

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@josecarlosrz/logger - npm Package Compare versions

Comparing version 1.0.23 to 1.0.24

17

index.js

@@ -77,3 +77,3 @@ const nodeConsole = require('console');

args.forEach(arg => console.log(arg));
args.forEach(console.log);

@@ -89,8 +89,7 @@ console.groupEnd();

static sleep(seconds)
static sleep(milliseconds)
{
return new Promise((resolve, reject) => {
setTimeout(resolve, seconds * 1000);
});
return new Promise((resolve, reject) =>
setTimeout(resolve, milliseconds));

@@ -112,7 +111,7 @@ }

static async sleep(seconds)
static async sleep(milliseconds)
{
if (!Logger.isSleepDisabled())
await TmpLogger.sleep(seconds);
await TmpLogger.sleep(milliseconds);

@@ -129,7 +128,7 @@ }

static async devSleep(seconds)
static async devSleep(milliseconds)
{
if (!Logger.isSleepDisabled() && Logger.isDev())
await TmpLogger.sleep(seconds);
await TmpLogger.sleep(milliseconds);

@@ -136,0 +135,0 @@ }

{
"name": "@josecarlosrz/logger",
"version": "1.0.23",
"version": "1.0.24",
"description": "Function to log each component of our application",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -5,2 +5,4 @@ const Logger = require('./');

Logger.log('Hello!');
Logger.sleep(5000).then(() => Logger.log('World'));
Logger.log('Hello');
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