@ms-cloudpack/task-reporter
Advanced tools
Comparing version 0.2.2 to 0.3.0
@@ -112,3 +112,3 @@ import { TaskReporterTask, type TaskReporterTaskResult } from './TaskReporterTask.js'; | ||
*/ | ||
runTask(name: string, execute: () => Promise<undefined | TaskReporterTaskResult>): Promise<void>; | ||
runTask(name: string, execute: () => Promise<undefined | TaskReporterTaskResult>): Promise<TaskReporterTaskResult>; | ||
complete(completeReason?: string): void; | ||
@@ -115,0 +115,0 @@ hasErrors(): boolean; |
@@ -128,4 +128,5 @@ import { Writer } from './Writer.js'; | ||
const task = this.addTask(name); | ||
let result; | ||
try { | ||
const result = await execute(); | ||
result = await execute(); | ||
task.complete(result); | ||
@@ -143,2 +144,3 @@ } | ||
} | ||
return result || { status: 'complete' }; | ||
} | ||
@@ -145,0 +147,0 @@ complete(completeReason) { |
{ | ||
"name": "@ms-cloudpack/task-reporter", | ||
"version": "0.2.2", | ||
"version": "0.3.0", | ||
"description": "Helpers for logging tasks to the console.", | ||
@@ -12,2 +12,3 @@ "license": "MIT", | ||
"types": "./lib/index.d.ts", | ||
"require": "./lib-commonjs/index.js", | ||
"import": "./lib/index.js" | ||
@@ -25,2 +26,3 @@ } | ||
"build": "cloudpack-scripts build", | ||
"build:cjs": "cloudpack-scripts build-cjs", | ||
"lint:update": "cloudpack-scripts lint-update", | ||
@@ -27,0 +29,0 @@ "lint": "cloudpack-scripts lint", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
100564
1075