projects
/
squeep-api-dingus
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update changelog
[squeep-api-dingus]
/
lib
/
common.js
diff --git
a/lib/common.js
b/lib/common.js
index 60e0d20a24ef7008cc189b5103e03278ce6e7302..723f922b20930355d6adc53ead1fc97f6e719597 100644
(file)
--- a/
lib/common.js
+++ b/
lib/common.js
@@
-289,6
+289,7
@@
const nullLogger = {
* Populates any absent logger level functions on a logger object.
* @param {Object} logger
* @returns {Object}
* Populates any absent logger level functions on a logger object.
* @param {Object} logger
* @returns {Object}
+ * @deprecated after v1.2.9 (this is not our responsibility)
*/
const ensureLoggerLevels = (logger = {}) => {
for (const level in nullLogger) {
*/
const ensureLoggerLevels = (logger = {}) => {
for (const level in nullLogger) {
@@
-307,7
+308,7
@@
const ensureLoggerLevels = (logger = {}) => {
const unfoldHeaderLines = (lines) => {
const foldedLineRE = /^(\t| +)(.*)$/;
if (lines) {
const unfoldHeaderLines = (lines) => {
const foldedLineRE = /^(\t| +)(.*)$/;
if (lines) {
- lines.reduceRight((_, line, idx) => {
+ lines.reduceRight((_, line, idx) => {
// NOSONAR
const result = foldedLineRE.exec(line);
if (result && idx) {
const prevIdx = idx - 1;
const result = foldedLineRE.exec(line);
if (result && idx) {
const prevIdx = idx - 1;