Comparing version 1.2.2 to 1.2.3
@@ -85,6 +85,4 @@ const chalk = require('chalk'); | ||
if (transform) { | ||
output = output.replace( | ||
new RegExp(`<${key}>`, 'g'), | ||
transform(meta[key]), | ||
); | ||
const args = !Array.isArray(meta[key]) ? [meta[key]] : [...meta[key]]; | ||
output = output.replace(new RegExp(`<${key}>`, 'g'), transform(...args)); | ||
} | ||
@@ -91,0 +89,0 @@ }); |
{ | ||
"name": "achoo", | ||
"version": "1.2.2", | ||
"version": "1.2.3", | ||
"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
8513
212