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

depugger

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

depugger - npm Package Compare versions

Comparing version 0.2.2 to 0.2.3

25

index.js

@@ -12,8 +12,7 @@ var util = require('util');

* @param pName context name for debugging messages
* @param pOptions options hash
* @return {Function}
*/
function depugger(pDebug, pName, pOptions) {
var debug, name, options, backend;
function depugger(pDebug, pName) {
var debug, name, backend;

@@ -32,17 +31,13 @@ if (typeof pDebug === 'object') {

var logFunction = noop;
var logFunction = function() {
var args = Array.prototype.splice.call(arguments, 0);
var message = util.format.apply(null, args);
if(debug) {
logFunction = function() {
if (!debug) {
return;
}
message = prefix + message;
var args = Array.prototype.splice.call(arguments, 0);
var message = util.format.apply(null, args);
backend.write(message);
};
message = prefix + message;
backend.write(message);
};
if(!debug) {
logFunction = noop;
}

@@ -49,0 +44,0 @@

2

package.json
{
"name": "depugger",
"version": "0.2.2",
"version": "0.2.3",
"description": "small debugging utility",

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

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