@phenomnomnominal/debug
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -20,8 +20,8 @@ "use strict"; | ||
DebuggerΩ.prototype.shouldWrap = function (requirePath) { | ||
console.log(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); }); | ||
console.log(this._ignore); | ||
console.log(isIgnoredModule); | ||
process.stderr.write(JSON.stringify(this._ignore) + "\n"); | ||
process.stderr.write(JSON.stringify(isIgnoredModule) + "\n"); | ||
return !((isNodeModule && !isIncludedModule) || isIgnoredModule); | ||
@@ -28,0 +28,0 @@ }; |
{ | ||
"name": "@phenomnomnominal/debug", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"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
22443