From 7f5d1b4cba4cf072489107ca4798f9653bb348bd Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Fri, 22 Apr 2022 13:24:46 +0000 Subject: [PATCH] chore(release): 1.22.1 [skip ci] ## [1.22.1](https://github.com/denysdovhan/wtfjs/compare/v1.22.0...v1.22.1) (2022-04-22) ### Bug Fixes * fix description ([#220](https://github.com/denysdovhan/wtfjs/issues/220)) ([b28f5b5](https://github.com/denysdovhan/wtfjs/commit/b28f5b58bb208b6233d42d13674c04be21f4241a)) * fix doctoc in deps ([78f3384](https://github.com/denysdovhan/wtfjs/commit/78f33844b0b198d0a3d670a4976ee920bc53deaa)) * **readme:** Add notice about Ukraine ([d288e70](https://github.com/denysdovhan/wtfjs/commit/d288e70b388fddf4aa418cf267b248501a742913)) --- package-lock.json | 2 +- package.json | 2 +- wtfjs.js | 24 +++++++++++------------- 3 files changed, 13 insertions(+), 15 deletions(-) diff --git a/package-lock.json b/package-lock.json index d1ae9e5e..226ff13f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "wtfjs", - "version": "1.22.0", + "version": "1.22.1", "lockfileVersion": 2, "requires": true, "packages": { diff --git a/package.json b/package.json index 5f4f09c2..b3dcb9d0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "wtfjs", - "version": "1.22.0", + "version": "1.22.1", "description": "A list of funny and tricky JavaScript examples", "bin": { "wtfjs": "wtfjs.js" diff --git a/wtfjs.js b/wtfjs.js index b1db9199..a748d257 100755 --- a/wtfjs.js +++ b/wtfjs.js @@ -21,33 +21,33 @@ const cli = meow( "", "Examples", " wtfjs", - " wtfjs --lang pt-br" + " wtfjs --lang pt-br", ], { string: ["lang"], alias: { l: "lang", - h: "help" + h: "help", }, default: { - lang: "" - } + lang: "", + }, } ); const boxenOpts = { borderColor: "yellow", margin: { - bottom: 1 + bottom: 1, }, padding: { right: 1, - left: 1 - } + left: 1, + }, }; const mseeOpts = { - paragraphEnd: "\n\n" + paragraphEnd: "\n\n", }; const notifier = updateNotifier({ pkg }); @@ -66,7 +66,7 @@ const translation = join( !lang ? "./README.md" : `./README-${lang}.md` ); -fs.stat(translation, function(err, stats) { +fs.stat(translation, function (err, stats) { if (err) { console.log("The %s translation does not exist", chalk.bold(lang)); return; @@ -74,14 +74,12 @@ fs.stat(translation, function(err, stats) { fs.createReadStream(translation) .pipe( - obj(function(chunk, enc, cb) { + obj(function (chunk, enc, cb) { const message = []; if (notifier.update) { message.push( - `Update available: {green.bold ${ - notifier.update.latest - }} {dim current: ${notifier.update.current}}` + `Update available: {green.bold ${notifier.update.latest}} {dim current: ${notifier.update.current}}` ); message.push(`Run {blue npm install -g ${pkg.name}} to update.`); this.push(boxen(message.join("\n"), boxenOpts));