@betterer/logger
Advanced tools
Comparing version 0.1.3 to 0.1.4
@@ -12,18 +12,11 @@ "use strict"; | ||
var npmlog = require("npmlog"); | ||
// HACK: | ||
// This assertion is necessary to overwriting "readonly". | ||
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion | ||
npmlog.heading = '☀️ betterer'; | ||
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion | ||
npmlog.headingStyle = { | ||
assign(npmlog, 'heading', '☀️ betterer'); | ||
assign(npmlog, 'headingStyle', { | ||
fg: 'yellow' | ||
}; | ||
}); | ||
npmlog_1.enableColor(); | ||
npmlog_1.enableUnicode(); | ||
function mute() { | ||
assign(npmlog, 'level', 'silent'); | ||
// HACK: | ||
// This assertion is necessary to overwriting "readonly". | ||
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion | ||
npmlog.level = 'silent'; | ||
// HACK: | ||
// There seems to be an issue with this lint rule for *assigning*. | ||
@@ -89,2 +82,5 @@ // Should file an issue... | ||
}; | ||
function assign(object, property, value) { | ||
object[property] = value; | ||
} | ||
//# sourceMappingURL=logger.js.map |
{ | ||
"name": "@betterer/logger", | ||
"description": "logger for @betterer/betterer", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"license": "MIT", | ||
@@ -10,2 +10,3 @@ "publishConfig": { | ||
"main": "dist/index.js", | ||
"types": "dist/index.d.ts", | ||
"files": [ | ||
@@ -36,3 +37,3 @@ "dist" | ||
}, | ||
"gitHead": "9e0a0b1501bec7e1791f6bdac0e4ad8b1f4b2492" | ||
"gitHead": "c131906cf8ec699fa792db0245bae1121dec0bb8" | ||
} |
Sorry, the diff of this file is not supported yet
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
8192
104