contentful-batch-libs
Advanced tools
Comparing version 10.0.0 to 10.1.0
@@ -35,3 +35,3 @@ /// <reference types="node" /> | ||
*/ | ||
export declare function setupLogging(log: (WarningMessage | ErrorMessage)[]): void; | ||
export declare function setupLogging(log?: (WarningMessage | ErrorMessage)[]): (WarningMessage | ErrorMessage)[]; | ||
/** | ||
@@ -38,0 +38,0 @@ * Format log message to display them as task status |
@@ -157,3 +157,3 @@ "use strict"; | ||
*/ | ||
function setupLogging(log) { | ||
function setupLogging(log = []) { | ||
function errorLogger(level, error) { | ||
@@ -173,2 +173,3 @@ const logMessage = { | ||
exports.logEmitter.addListener('error', (error) => errorLogger('error', error)); | ||
return log; | ||
} | ||
@@ -175,0 +176,0 @@ exports.setupLogging = setupLogging; |
{ | ||
"name": "contentful-batch-libs", | ||
"version": "10.0.0", | ||
"version": "10.1.0", | ||
"description": "Library modules used by contentful batch utility CLI tools.", | ||
@@ -5,0 +5,0 @@ "main": "dist/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
45934
1217