Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

listr2

Package Overview
Dependencies
Maintainers
1
Versions
235
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

listr2 - npm Package Compare versions

Comparing version 3.11.0 to 3.11.1

31

CHANGELOG.md

@@ -0,43 +1,44 @@

## [3.11.1](https://github.com/cenk1cenk2/listr2/compare/v3.11.0...v3.11.1) (2021-08-31)
### Bug Fixes
- git hook ([5e5c111](https://github.com/cenk1cenk2/listr2/commit/5e5c111255a6bfb5f19bde0dae331ef7e883ba10))
- node 16 try/catch type changes ([a5e29f4](https://github.com/cenk1cenk2/listr2/commit/a5e29f412f8412002546657275030927146dae25))
# [3.11.0](https://github.com/cenk1cenk2/listr2/compare/v3.10.1...v3.11.0) (2021-07-22)
### Bug Fixes
* fix the tests and errors with the simple renderer ([ae4319b](https://github.com/cenk1cenk2/listr2/commit/ae4319be1797f029165c3fd2772abc5aae1e6b46))
* tiny bug with sending output through channel ([cce9eee](https://github.com/cenk1cenk2/listr2/commit/cce9eeeec4d3c8370b22d6da72d61fe25c13b6c5)), closes [#437](https://github.com/cenk1cenk2/listr2/issues/437)
- fix the tests and errors with the simple renderer ([ae4319b](https://github.com/cenk1cenk2/listr2/commit/ae4319be1797f029165c3fd2772abc5aae1e6b46))
- tiny bug with sending output through channel ([cce9eee](https://github.com/cenk1cenk2/listr2/commit/cce9eeeec4d3c8370b22d6da72d61fe25c13b6c5)), closes [#437](https://github.com/cenk1cenk2/listr2/issues/437)
### Features
* **renderer:** adds simple renderer which is neither updating nor verbose ([04a6858](https://github.com/cenk1cenk2/listr2/commit/04a6858fa8ce8c0b30bc24d81d9cef99ab5d6381))
- **renderer:** adds simple renderer which is neither updating nor verbose ([04a6858](https://github.com/cenk1cenk2/listr2/commit/04a6858fa8ce8c0b30bc24d81d9cef99ab5d6381))
## [3.10.1](https://github.com/cenk1cenk2/listr2/compare/v3.10.0...v3.10.1) (2021-07-22)
### Bug Fixes
* update deps ([84f3529](https://github.com/cenk1cenk2/listr2/commit/84f3529270637d04341aacbc5039ed8b52237b2e))
- update deps ([84f3529](https://github.com/cenk1cenk2/listr2/commit/84f3529270637d04341aacbc5039ed8b52237b2e))
# [3.10.0](https://github.com/cenk1cenk2/listr2/compare/v3.9.0...v3.10.0) (2021-06-07)
### Features
* add context to the class itself for outside access ([98ea144](https://github.com/cenk1cenk2/listr2/commit/98ea14453257f9aec93932890e4c8c8d8ac53ead))
- add context to the class itself for outside access ([98ea144](https://github.com/cenk1cenk2/listr2/commit/98ea14453257f9aec93932890e4c8c8d8ac53ead))
# [3.9.0](https://github.com/cenk1cenk2/listr2/compare/v3.8.6...v3.9.0) (2021-05-27)
### Features
* dependency cleaning merge ([07cc724](https://github.com/cenk1cenk2/listr2/commit/07cc72434db8c1ec743a9556890a572be9cd474d))
* export figures ([f7377d2](https://github.com/cenk1cenk2/listr2/commit/f7377d2fa771bc3ef05b4aa496f0a1c0a1ca8eec))
- dependency cleaning merge ([07cc724](https://github.com/cenk1cenk2/listr2/commit/07cc72434db8c1ec743a9556890a572be9cd474d))
- export figures ([f7377d2](https://github.com/cenk1cenk2/listr2/commit/f7377d2fa771bc3ef05b4aa496f0a1c0a1ca8eec))
## [3.8.6](https://github.com/cenk1cenk2/listr2/compare/v3.8.5...v3.8.6) (2021-05-27)
### Bug Fixes
* add the missing test case ([b630e57](https://github.com/cenk1cenk2/listr2/commit/b630e5702b7d17dd802e7fb6a3d08d6d649e564a)), closes [#411](https://github.com/cenk1cenk2/listr2/issues/411)
* allow async skip boolean or string ([2289f3a](https://github.com/cenk1cenk2/listr2/commit/2289f3ab8b53a54adfdf76f2b64b802018c596fc))
- add the missing test case ([b630e57](https://github.com/cenk1cenk2/listr2/commit/b630e5702b7d17dd802e7fb6a3d08d6d649e564a)), closes [#411](https://github.com/cenk1cenk2/listr2/issues/411)
- allow async skip boolean or string ([2289f3a](https://github.com/cenk1cenk2/listr2/commit/2289f3ab8b53a54adfdf76f2b64b802018c596fc))

@@ -44,0 +45,0 @@ ## [3.8.5](https://github.com/cenk1cenk2/listr2/compare/v3.8.4...v3.8.5) (2021-05-27)

@@ -31,3 +31,3 @@ "use strict";

// this kind of randomness is enough for task ids
this.id = uuid_1.generateUUID();
this.id = (0, uuid_1.generateUUID)();
this.title = (_a = this.tasks) === null || _a === void 0 ? void 0 : _a.title;

@@ -88,3 +88,3 @@ this.initialTitle = (_b = this.tasks) === null || _b === void 0 ? void 0 : _b.title;

if (this.state === undefined) {
this.enabled = await assert_1.assertFunctionOrSelf(this.enabledFn, ctx);
this.enabled = await (0, assert_1.assertFunctionOrSelf)(this.enabledFn, ctx);
this.next({

@@ -150,3 +150,3 @@ type: event_constants_1.ListrEventType.ENABLED,

// switch to silent renderer since already rendering
const rendererClass = renderer_1.getRenderer('silent');
const rendererClass = (0, renderer_1.getRenderer)('silent');
result.rendererClass = rendererClass.renderer;

@@ -196,3 +196,3 @@ result.renderHook$.subscribe(() => {

// check if this function wants to be skipped
const skipped = await assert_1.assertFunctionOrSelf(this.skip, context);
const skipped = await (0, assert_1.assertFunctionOrSelf)(this.skip, context);
if (skipped) {

@@ -220,13 +220,13 @@ if (typeof skipped === 'string') {

}
catch (e) {
catch (err) {
if (retries !== retryCount) {
this.retry = { count: retries, withError: e };
this.retry = { count: retries, withError: err };
this.message$ = { retry: this.retry };
this.title$ = this.initialTitle;
this.output = undefined;
wrapper.report(e);
wrapper.report(err);
this.state$ = state_constants_1.ListrTaskState.RETRY;
}
else {
throw e;
throw err;
}

@@ -274,3 +274,3 @@ }

wrapper.report(error);
if (this.listr.options.exitOnError !== false && await assert_1.assertFunctionOrSelf((_e = this.tasks) === null || _e === void 0 ? void 0 : _e.exitOnError, context) !== false) {
if (this.listr.options.exitOnError !== false && await (0, assert_1.assertFunctionOrSelf)((_e = this.tasks) === null || _e === void 0 ? void 0 : _e.exitOnError, context) !== false) {
// Do not exit when explicitly set to `false`

@@ -277,0 +277,0 @@ throw error;

@@ -40,3 +40,3 @@ "use strict";

// get renderer class
const renderer = renderer_1.getRenderer(this.options.renderer, this.options.nonTTYRenderer, (_a = this.options) === null || _a === void 0 ? void 0 : _a.rendererFallback, (_b = this.options) === null || _b === void 0 ? void 0 : _b.rendererSilent);
const renderer = (0, renderer_1.getRenderer)(this.options.renderer, this.options.nonTTYRenderer, (_a = this.options) === null || _a === void 0 ? void 0 : _a.rendererFallback, (_b = this.options) === null || _b === void 0 ? void 0 : _b.rendererSilent);
this.rendererClass = renderer.renderer;

@@ -106,8 +106,8 @@ // depending on the result pass the given options in

}
catch (error) {
this.err.push(new listr_error_interface_1.ListrError(typeof (error === null || error === void 0 ? void 0 : error.message) === 'string' ? error.message : error, [error], this.ctx));
catch (err) {
this.err.push(new listr_error_interface_1.ListrError(typeof (err === null || err === void 0 ? void 0 : err.message) === 'string' ? err.message : err, [err], this.ctx));
if (this.options.exitOnError !== false) {
this.renderer.end(error);
this.renderer.end(err);
// Do not exit when explicitly set to `false`
throw error;
throw err;
}

@@ -114,0 +114,0 @@ }

@@ -20,3 +20,3 @@ "use strict";

this.bottomBar = {};
this.spinner = !is_unicode_supported_1.isUnicodeSupported() ? ['-', '\\', '|', '/'] : ['⠋', '⠙', '⠹', '⠸', '⠼', '⠴', '⠦', '⠧', '⠇', '⠏'];
this.spinner = !(0, is_unicode_supported_1.isUnicodeSupported)() ? ['-', '\\', '|', '/'] : ['⠋', '⠙', '⠹', '⠸', '⠼', '⠴', '⠦', '⠧', '⠇', '⠏'];
this.spinnerPosition = 0;

@@ -44,3 +44,3 @@ this.options = { ...DefaultRenderer.rendererOptions, ...this.options };

getTaskTime(task) {
return colorette_1.default.dim(`[${parse_time_1.parseTaskTime(task.message.duration)}]`);
return colorette_1.default.dim(`[${(0, parse_time_1.parseTaskTime)(task.message.duration)}]`);
}

@@ -306,6 +306,6 @@ createRender(options) {

}
return indent_string_1.indentString(parsedStr.join(os_1.EOL), level * this.options.indentation);
return (0, indent_string_1.indentString)(parsedStr.join(os_1.EOL), level * this.options.indentation);
}
indentMultilineOutput(str, i) {
return i > 0 ? indent_string_1.indentString(str.trim(), 2) : str.trim();
return i > 0 ? (0, indent_string_1.indentString)(str.trim(), 2) : str.trim();
}

@@ -312,0 +312,0 @@ // eslint-disable-next-line complexity

@@ -41,3 +41,3 @@ "use strict";

if (task.isPrompt() && !String(event.data).match(/^\n$/)) {
log_update_1.stderr(`${event.data}`);
(0, log_update_1.stderr)(`${event.data}`);
}

@@ -44,0 +44,0 @@ else {

@@ -45,3 +45,3 @@ "use strict";

else if (task.isCompleted()) {
this.logger.success(taskTitle + (((_b = this.options) === null || _b === void 0 ? void 0 : _b.showTimer) && ((_c = task.message) === null || _c === void 0 ? void 0 : _c.duration) ? ` [${parse_time_1.parseTaskTime(task.message.duration)}]` : ''));
this.logger.success(taskTitle + (((_b = this.options) === null || _b === void 0 ? void 0 : _b.showTimer) && ((_c = task.message) === null || _c === void 0 ? void 0 : _c.duration) ? ` [${(0, parse_time_1.parseTaskTime)(task.message.duration)}]` : ''));
}

@@ -48,0 +48,0 @@ }

@@ -28,4 +28,4 @@ "use strict";

returnValue = { renderer: ret, nonTTY: false };
const evaluateSilent = assert_1.assertFunctionOrSelf(silentCondition);
const evaluateFallback = assert_1.assertFunctionOrSelf(fallbackCondition);
const evaluateSilent = (0, assert_1.assertFunctionOrSelf)(silentCondition);
const evaluateFallback = (0, assert_1.assertFunctionOrSelf)(fallbackCondition);
if (evaluateSilent) {

@@ -32,0 +32,0 @@ ret = getRendererClass('silent');

{
"name": "listr2",
"version": "3.11.0",
"version": "3.11.1",
"description": "Terminal task list reborn! Create beautiful CLI interfaces via easy and logical to implement task lists that feel alive and interactive.",

@@ -33,8 +33,6 @@ "license": "MIT",

},
"husky": {
"hooks": {
"pre-commit": "lint-staged",
"prepare-commit-msg": "exec < /dev/tty && git cz --hook || true",
"pre-push": "yarn test && yarn api-extractor"
}
"simple-git-hooks": {
"pre-commit": "yarn exec lint-staged",
"prepare-commit-msg": "[ -t 1 ] && exec < /dev/tty && git cz --hook || true",
"pre-push": "yarn test && yarn api-extractor"
},

@@ -78,7 +76,7 @@ "lint-staged": {

"devDependencies": {
"@cenk1cenk2/cz-cc": "^1.4.0",
"@cenk1cenk2/eslint-config": "^0.4.42",
"@microsoft/api-extractor": "^7.18.4",
"@types/jest": "^26.0.24",
"@types/node": "^16.4.0",
"@cenk1cenk2/cz-cc": "^1.4.2",
"@cenk1cenk2/eslint-config": "^0.4.45",
"@microsoft/api-extractor": "^7.18.7",
"@types/jest": "^27.0.1",
"@types/node": "^16.7.8",
"@types/rewire": "^2.5.28",

@@ -89,18 +87,18 @@ "@types/through": "^0.0.30",

"enquirer": "^2.3.6",
"eslint": "^7.28.0",
"husky-v4": "^4.3.8",
"jest": "^27.0.4",
"eslint": "^7.32.0",
"jest": "^27.1.0",
"jest-mock-process": "^1.4.1",
"lint-staged": "^11.1.0",
"prettier": "^2.3.1",
"lint-staged": "^11.1.2",
"prettier": "^2.3.2",
"rewire": "^5.0.0",
"rimraf": "^3.0.2",
"ts-jest": "^27.0.3",
"ts-node": "^10.1.0",
"tsc-watch": "^4.4.0",
"tsconfig-paths": "^3.10.1",
"simple-git-hooks": "^2.6.1",
"ts-jest": "^27.0.4",
"ts-node": "^10.2.1",
"tsc-watch": "^4.5.0",
"tsconfig-paths": "^3.11.0",
"tscpaths": "^0.0.9",
"typedoc": "^0.21.4",
"typedoc": "^0.21.9",
"typedoc-plugin-markdown": "^3.10.4",
"typescript": "^4.3.5"
"typescript": "^4.4.2"
},

@@ -107,0 +105,0 @@ "peerDependencies": {

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