Comparing version 1.2.1 to 1.2.2
@@ -80,5 +80,11 @@ const chalk = require('chalk'); | ||
Object.keys(meta).forEach(key => { | ||
const transform = achooInst.transforms[key] || logger.transforms[key]; | ||
const keyWithoutIterator = key.replace(/@[0-9]+/g, ''); | ||
const transform = | ||
achooInst.transforms[keyWithoutIterator] || | ||
logger.transforms[keyWithoutIterator]; | ||
if (transform) { | ||
output = output.replace(new RegExp(`<${key}>`, 'g'), transform(meta.dur)); | ||
output = output.replace( | ||
new RegExp(`<${key}>`, 'g'), | ||
transform(meta[key]), | ||
); | ||
} | ||
@@ -85,0 +91,0 @@ }); |
{ | ||
"name": "achoo", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"description": "A little Node.js logging tool that is easily configured via JSON.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
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
8463
214