Skip to content

Commit 7f5d1b4

Browse files
chore(release): 1.22.1 [skip ci]
## [1.22.1](v1.22.0...v1.22.1) (2022-04-22) ### Bug Fixes * fix description ([#220](#220)) ([b28f5b5](b28f5b5)) * fix doctoc in deps ([78f3384](78f3384)) * **readme:** Add notice about Ukraine ([d288e70](d288e70))
1 parent 898a5b3 commit 7f5d1b4

File tree

3 files changed

+13
-15
lines changed

3 files changed

+13
-15
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "wtfjs",
3-
"version": "1.22.0",
3+
"version": "1.22.1",
44
"description": "A list of funny and tricky JavaScript examples",
55
"bin": {
66
"wtfjs": "wtfjs.js"

wtfjs.js

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -21,33 +21,33 @@ const cli = meow(
2121
"",
2222
"Examples",
2323
" wtfjs",
24-
" wtfjs --lang pt-br"
24+
" wtfjs --lang pt-br",
2525
],
2626
{
2727
string: ["lang"],
2828
alias: {
2929
l: "lang",
30-
h: "help"
30+
h: "help",
3131
},
3232
default: {
33-
lang: ""
34-
}
33+
lang: "",
34+
},
3535
}
3636
);
3737

3838
const boxenOpts = {
3939
borderColor: "yellow",
4040
margin: {
41-
bottom: 1
41+
bottom: 1,
4242
},
4343
padding: {
4444
right: 1,
45-
left: 1
46-
}
45+
left: 1,
46+
},
4747
};
4848

4949
const mseeOpts = {
50-
paragraphEnd: "\n\n"
50+
paragraphEnd: "\n\n",
5151
};
5252

5353
const notifier = updateNotifier({ pkg });
@@ -66,22 +66,20 @@ const translation = join(
6666
!lang ? "./README.md" : `./README-${lang}.md`
6767
);
6868

69-
fs.stat(translation, function(err, stats) {
69+
fs.stat(translation, function (err, stats) {
7070
if (err) {
7171
console.log("The %s translation does not exist", chalk.bold(lang));
7272
return;
7373
}
7474

7575
fs.createReadStream(translation)
7676
.pipe(
77-
obj(function(chunk, enc, cb) {
77+
obj(function (chunk, enc, cb) {
7878
const message = [];
7979

8080
if (notifier.update) {
8181
message.push(
82-
`Update available: {green.bold ${
83-
notifier.update.latest
84-
}} {dim current: ${notifier.update.current}}`
82+
`Update available: {green.bold ${notifier.update.latest}} {dim current: ${notifier.update.current}}`
8583
);
8684
message.push(`Run {blue npm install -g ${pkg.name}} to update.`);
8785
this.push(boxen(message.join("\n"), boxenOpts));

0 commit comments

Comments
 (0)