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

@phenomnomnominal/debug

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@phenomnomnominal/debug - npm Package Compare versions

Comparing version 0.1.4 to 0.2.0

5

dist/debugger.js

@@ -20,8 +20,5 @@ "use strict";

DebuggerΩ.prototype.shouldWrap = function (requirePath) {
process.stderr.write(requirePath + "\n");
var isNodeModule = module_1.default.builtinModules.includes(requirePath) || requirePath.includes('node_modules');
var isIncludedModule = this._include.some(function (regexp) { return regexp.test(requirePath); });
var isIgnoredModule = this._ignore.some(function (regexp) { return regexp.test(requirePath); });
process.stderr.write(JSON.stringify(this._ignore.map(function (a) { return a.source; })) + "\n");
process.stderr.write(JSON.stringify(isIgnoredModule) + "\n");
var isIgnoredModule = this._ignore.some(function (ignore) { return ignore === requirePath; });
return !((isNodeModule && !isIncludedModule) || isIgnoredModule);

@@ -28,0 +25,0 @@ };

2

dist/types.d.ts

@@ -10,3 +10,3 @@ /// <reference types="node" />

export declare type DebugIncludes = Array<RegExp>;
export declare type DebugIgnores = Array<RegExp>;
export declare type DebugIgnores = Array<string>;
export declare type DebugLogger = (logString: string) => void;

@@ -13,0 +13,0 @@ export declare type DebugOptions = {

{
"name": "@phenomnomnominal/debug",
"version": "0.1.4",
"version": "0.2.0",
"description": "Very lazy tool for adding debug logging",

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

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