You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
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

to
0.1.2

1

examples/example.js

@@ -18,2 +18,1 @@ 'use strict';

worker1.log(new Error('abc'));

2

package.json
{
"name": "node-debug-tool",
"version": "0.1.1",
"version": "0.1.2",
"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