mirror of
https://github.com/denysdovhan/wtfjs.git
synced 2025-08-26 13:22:11 +08:00
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](b28f5b58bb
)) * fix doctoc in deps ([78f3384](78f33844b0
)) * **readme:** Add notice about Ukraine ([d288e70](d288e70b38
))
This commit is contained in:
2
package-lock.json
generated
2
package-lock.json
generated
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "wtfjs",
|
"name": "wtfjs",
|
||||||
"version": "1.22.0",
|
"version": "1.22.1",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "wtfjs",
|
"name": "wtfjs",
|
||||||
"version": "1.22.0",
|
"version": "1.22.1",
|
||||||
"description": "A list of funny and tricky JavaScript examples",
|
"description": "A list of funny and tricky JavaScript examples",
|
||||||
"bin": {
|
"bin": {
|
||||||
"wtfjs": "wtfjs.js"
|
"wtfjs": "wtfjs.js"
|
||||||
|
20
wtfjs.js
20
wtfjs.js
@ -21,33 +21,33 @@ const cli = meow(
|
|||||||
"",
|
"",
|
||||||
"Examples",
|
"Examples",
|
||||||
" wtfjs",
|
" wtfjs",
|
||||||
" wtfjs --lang pt-br"
|
" wtfjs --lang pt-br",
|
||||||
],
|
],
|
||||||
{
|
{
|
||||||
string: ["lang"],
|
string: ["lang"],
|
||||||
alias: {
|
alias: {
|
||||||
l: "lang",
|
l: "lang",
|
||||||
h: "help"
|
h: "help",
|
||||||
},
|
},
|
||||||
default: {
|
default: {
|
||||||
lang: ""
|
lang: "",
|
||||||
}
|
},
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
const boxenOpts = {
|
const boxenOpts = {
|
||||||
borderColor: "yellow",
|
borderColor: "yellow",
|
||||||
margin: {
|
margin: {
|
||||||
bottom: 1
|
bottom: 1,
|
||||||
},
|
},
|
||||||
padding: {
|
padding: {
|
||||||
right: 1,
|
right: 1,
|
||||||
left: 1
|
left: 1,
|
||||||
}
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
const mseeOpts = {
|
const mseeOpts = {
|
||||||
paragraphEnd: "\n\n"
|
paragraphEnd: "\n\n",
|
||||||
};
|
};
|
||||||
|
|
||||||
const notifier = updateNotifier({ pkg });
|
const notifier = updateNotifier({ pkg });
|
||||||
@ -79,9 +79,7 @@ fs.stat(translation, function(err, stats) {
|
|||||||
|
|
||||||
if (notifier.update) {
|
if (notifier.update) {
|
||||||
message.push(
|
message.push(
|
||||||
`Update available: {green.bold ${
|
`Update available: {green.bold ${notifier.update.latest}} {dim current: ${notifier.update.current}}`
|
||||||
notifier.update.latest
|
|
||||||
}} {dim current: ${notifier.update.current}}`
|
|
||||||
);
|
);
|
||||||
message.push(`Run {blue npm install -g ${pkg.name}} to update.`);
|
message.push(`Run {blue npm install -g ${pkg.name}} to update.`);
|
||||||
this.push(boxen(message.join("\n"), boxenOpts));
|
this.push(boxen(message.join("\n"), boxenOpts));
|
||||||
|
Reference in New Issue
Block a user