@geek/logger
Advanced tools
Comparing version 0.0.11 to 0.0.12
@@ -14,2 +14,3 @@ 'use strict'; | ||
const picomatch = require('picomatch'); | ||
const micromatch = require('./micromatch'); | ||
const _ = require('lodash'); | ||
@@ -326,10 +327,12 @@ | ||
// console.trace(`📌 you are here → Logger.applyFilters()`); | ||
for (const filter of namespace_filters) { | ||
// console.debug(`🦠 Logger.namespaces: ${JSON.stringify(Logger.namespaces, null, 2)}`); | ||
// console.debug(`🦠 namespace_filters: ${JSON.stringify(namespace_filters, null, 2)}`); | ||
const isMatch = picomatch(filter); | ||
// const matches = micromatch(Logger.namespaces, namespace_filters); | ||
// console.debug(`🦠 matches: ${JSON.stringify(matches, null, 2)}`); | ||
for (const namespace of Logger.namespaces) { | ||
all_namespaces.set(namespace, isMatch(namespace)); | ||
} | ||
for (const namespace of Logger.namespaces) { | ||
// console.debug(`🦠 namespace: ${JSON.stringify(namespace, null, 2)}`); | ||
// console.debug(`🦠 micromatch.all(namespace, namespace_filters): ${JSON.stringify(micromatch.all(namespace, namespace_filters), null, 2)}`); | ||
all_namespaces.set(namespace, micromatch.all(namespace, namespace_filters)); | ||
} | ||
@@ -336,0 +339,0 @@ }; |
{ | ||
"name": "@geek/logger", | ||
"version": "0.0.11", | ||
"version": "0.0.12", | ||
"description": "Logging module for Node.js and Axway Titanium", | ||
@@ -10,2 +10,3 @@ "main": "Logger.js", | ||
"prepublishOnly": "git pull && bump", | ||
"lint": "eslint --fix .", | ||
"test": "echo \"no test specified\" && exit 0" | ||
@@ -53,2 +54,5 @@ }, | ||
"eslint": "^7.9.0", | ||
"eslint-plugin-import": "^2.22.0", | ||
"eslint-plugin-jsdoc": "^30.5.1", | ||
"eslint-plugin-promise": "^4.2.1", | ||
"fs-extra": "^9.0.1", | ||
@@ -55,0 +59,0 @@ "lodash": "^4.17.20" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
72989
15
672
7
3
3