Socket
Socket
Sign inDemoInstall

@ms-cloudpack/task-reporter

Package Overview
Dependencies
Maintainers
2
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ms-cloudpack/task-reporter - npm Package Compare versions

Comparing version 0.8.0 to 0.8.1

lib-commonjs/statusCharacter.cjs

4

lib-commonjs/index.d.ts

@@ -7,4 +7,6 @@ export { black, blue, bold, clearLine, cyan, darkGrey, gradient, green, grey, lightBlack, lightBlue, lightCyan, lightGreen, lightGrey, lightMagenta, lightRed, lightWhite, lightYellow, magenta, moveDownLines, moveUpLines, red, white, yellow, } from './ansiHelpers.js';

export { TaskReporter, type TaskReporterOptions } from './TaskReporter.js';
export { TaskReporterTask, type TaskReporterTaskResult, type TaskReporterTaskStatus } from './TaskReporterTask.js';
export { TaskReporterTask, type TaskReporterTaskResult } from './TaskReporterTask.js';
export type { TaskReporterTaskStatus } from './types/TaskReporterTaskStatus.js';
export { formatTime } from './formatTime.js';
export { statusCharacter } from './statusCharacter.js';
//# sourceMappingURL=index.d.ts.map

@@ -1,2 +0,2 @@

/// <reference types="node" resolution-mode="require"/>
/// <reference types="node" />
import { Sticky } from './Sticky.js';

@@ -3,0 +3,0 @@ export declare class SpinningSticky extends Sticky {

@@ -1,2 +0,2 @@

/// <reference types="node" resolution-mode="require"/>
/// <reference types="node" />
import { EventEmitter } from 'events';

@@ -3,0 +3,0 @@ export declare class Sticky extends EventEmitter {

@@ -113,2 +113,7 @@ import { TaskReporterTask, type TaskReporterTaskResult } from './TaskReporterTask.js';

/**
* Log a message without status prefix. This can be used for announcing
* a particular help message or status message.
*/
log(...messages: string[]): void;
/**
* Creates a task and executes it. The execute function should return a promise that

@@ -115,0 +120,0 @@ * resolves when the task is complete. If the promise resolves without a return value,

@@ -1,4 +0,4 @@

/// <reference types="node" resolution-mode="require"/>
/// <reference types="node" />
import { EventEmitter } from 'events';
export type TaskReporterTaskStatus = 'idle' | 'pending' | 'running' | 'pass' | 'complete' | 'fail' | 'abort' | 'skip' | 'log' | 'info' | 'warn' | 'error' | 'debug';
import type { TaskReporterTaskStatus } from './types/TaskReporterTaskStatus.js';
export interface TaskReporterTaskResult {

@@ -5,0 +5,0 @@ status?: TaskReporterTaskStatus;

@@ -7,4 +7,6 @@ export { black, blue, bold, clearLine, cyan, darkGrey, gradient, green, grey, lightBlack, lightBlue, lightCyan, lightGreen, lightGrey, lightMagenta, lightRed, lightWhite, lightYellow, magenta, moveDownLines, moveUpLines, red, white, yellow, } from './ansiHelpers.js';

export { TaskReporter, type TaskReporterOptions } from './TaskReporter.js';
export { TaskReporterTask, type TaskReporterTaskResult, type TaskReporterTaskStatus } from './TaskReporterTask.js';
export { TaskReporterTask, type TaskReporterTaskResult } from './TaskReporterTask.js';
export type { TaskReporterTaskStatus } from './types/TaskReporterTaskStatus.js';
export { formatTime } from './formatTime.js';
export { statusCharacter } from './statusCharacter.js';
//# sourceMappingURL=index.d.ts.map

@@ -9,2 +9,3 @@ export { black, blue, bold, clearLine, cyan, darkGrey, gradient, green, grey, lightBlack, lightBlue, lightCyan, lightGreen, lightGrey, lightMagenta, lightRed, lightWhite, lightYellow, magenta, moveDownLines, moveUpLines, red, white, yellow, } from './ansiHelpers.js';

export { formatTime } from './formatTime.js';
export { statusCharacter } from './statusCharacter.js';
//# sourceMappingURL=index.js.map

@@ -113,2 +113,7 @@ import { TaskReporterTask, type TaskReporterTaskResult } from './TaskReporterTask.js';

/**
* Log a message without status prefix. This can be used for announcing
* a particular help message or status message.
*/
log(...messages: string[]): void;
/**
* Creates a task and executes it. The execute function should return a promise that

@@ -115,0 +120,0 @@ * resolves when the task is complete. If the promise resolves without a return value,

import { Writer } from './Writer.js';
import { darkGrey, green, lightRed, red, yellow, white, bold, blue, cyan, magenta, setAnsiDisabled, gradient, } from './ansiHelpers.js';
import { TaskReporterTask } from './TaskReporterTask.js';
import {} from './types/TaskReporterTaskStatus.js';
import { makeValuesUniformLength } from './makeValuesUniformLength.js';

@@ -8,12 +9,5 @@ import { formatTime } from './formatTime.js';

import { SpinningSticky } from './SpinningSticky.js';
import { statusCharacter } from './statusCharacter.js';
/** Controls how many tasks should be displayed in the pending sticky list. */
const maxRunningTasksShown = 5;
const statusCharacter = {
running: yellow('!'),
pass: green('✓'),
complete: green('✓'),
fail: red('✗'),
abort: yellow('?'),
default: '-',
};
const statusMessage = makeValuesUniformLength({

@@ -128,2 +122,9 @@ running: 'started',

/**
* Log a message without status prefix. This can be used for announcing
* a particular help message or status message.
*/
log(...messages) {
this._writer.write(messages.join('\n'));
}
/**
* Creates a task and executes it. The execute function should return a promise that

@@ -130,0 +131,0 @@ * resolves when the task is complete. If the promise resolves without a return value,

/// <reference types="node" resolution-mode="require"/>
import { EventEmitter } from 'events';
export type TaskReporterTaskStatus = 'idle' | 'pending' | 'running' | 'pass' | 'complete' | 'fail' | 'abort' | 'skip' | 'log' | 'info' | 'warn' | 'error' | 'debug';
import type { TaskReporterTaskStatus } from './types/TaskReporterTaskStatus.js';
export interface TaskReporterTaskResult {

@@ -5,0 +5,0 @@ status?: TaskReporterTaskStatus;

{
"name": "@ms-cloudpack/task-reporter",
"version": "0.8.0",
"version": "0.8.1",
"description": "Helpers for logging tasks to the console.",

@@ -5,0 +5,0 @@ "license": "MIT",

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc