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

node-debug-tool

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-debug-tool - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

2

examples/example.js

@@ -12,3 +12,3 @@ 'use strict';

worker2.warning('Bar');
worker2.log('Foo bar');
worker2.log({a:'b'});

@@ -15,0 +15,0 @@ setInterval(function () {

@@ -62,3 +62,3 @@ /**

if ( ! string instanceof Error) {
if (string instanceof Error === false) {
string = JSON.stringify(string, null, 4);

@@ -65,0 +65,0 @@ }

{
"name": "node-debug-tool",
"version": "0.1.2",
"version": "0.1.3",
"description": "Node debug tool",

@@ -5,0 +5,0 @@ "main": "./lib/node-debug-tool.js",

@@ -24,3 +24,3 @@ var chai = require('chai');

it("should return a colored red text string with [Error] prefix and time tick", function() {
expect(mockConsoleLogAndCallDebug('error', 'foo')).to.match(/\[Worker 1\] \u001b\[31m\[Error\] foo\u001b\[0m \+\d+ms/);
expect(mockConsoleLogAndCallDebug('error', 'foo')).to.match(/\[Worker 1\] \u001b\[31m\[Error\] "foo"\u001b\[0m \+\d+ms/);
});

@@ -31,3 +31,3 @@ });

it("should return a colored yellow text string with [Warning] prefix and time tick", function() {
expect(mockConsoleLogAndCallDebug('warning', 'foo')).to.match(/\[Worker 1\] \u001b\[33m\[Warning\] foo\u001b\[0m \+\d+ms/);
expect(mockConsoleLogAndCallDebug('warning', 'foo')).to.match(/\[Worker 1\] \u001b\[33m\[Warning\] "foo"\u001b\[0m \+\d+ms/);
});

@@ -38,5 +38,5 @@ });

it("should return a colored green text string with [Debug] prefix and time tick", function() {
expect(mockConsoleLogAndCallDebug('log', 'foo')).to.match(/\[Worker 1\] \u001b\[32m\[Debug\] foo\u001b\[0m \+\d+ms/);
expect(mockConsoleLogAndCallDebug('log', 'foo')).to.match(/\[Worker 1\] \u001b\[32m\[Debug\] "foo"\u001b\[0m \+\d+ms/);
});
});
});

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