pake-cli 2.1.9 โ†’ 2.1.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/cli.js +11 -4
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -20,7 +20,7 @@ import isUrl from 'is-url';
20
20
  import fs from 'fs';
21
21
 
22
22
  var name = "pake-cli";
23
- var version = "2.1.9";
23
+ var version = "2.1.10";
24
24
  var description = "๐Ÿคฑ๐Ÿป Turn any webpage into a desktop app with Rust. ๐Ÿคฑ๐Ÿป ๅพˆ็ฎ€ๅ•็š„็”จ Rust ๆ‰“ๅŒ…็ฝ‘้กต็”Ÿๆˆๅพˆๅฐ็š„ๆกŒ้ข Appใ€‚";
25
25
  var engines = {
26
26
  node: ">=16.0.0"
@@ -786,7 +786,7 @@ const DEFAULT_PAKE_OPTIONS = {
786
786
  };
787
787
 
788
788
  async function checkUpdateTips() {
789
- updateNotifier({ pkg: packageJson, updateCheckInterval: 1000 * 60 }).notify();
789
+ updateNotifier({ pkg: packageJson, updateCheckInterval: 1000 * 60 }).notify({ isGlobal: true });
790
790
  }
791
791
 
792
792
  async function handleIcon(options) {
@@ -939,9 +939,16 @@ function validateUrlInput(url) {
939
939
  return url;
940
940
  }
941
941
 
942
+ const { green, yellow } = chalk;
943
+ const logo = `${chalk.green(' ____ _')}
944
+ ${green('| _ \\ __ _| | _____')}
945
+ ${green('| |_) / _` | |/ / _ \\')}
946
+ ${green('| __/ (_| | < __/')} ${yellow('https://dub.sh/pake')}
947
+ ${green('|_| \\__,_|_|\\_\\___| can turn any webpage into a desktop app with Rust.')}
948
+ `;
942
949
  program
943
- .description(chalk.green('Pake can turn any webpage into a desktop app with Rust.'))
944
- .usage('[url] [options]')
950
+ .addHelpText('beforeAll', logo)
951
+ .usage(`[url] [options]`)
945
952
  .showHelpAfterError();
946
953
  program
947
954
  .argument('[url]', 'The web URL you want to package', validateUrlInput)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pake-cli",
3
- "version": "2.1.9",
3
+ "version": "2.1.10",
4
4
  "description": "๐Ÿคฑ๐Ÿป Turn any webpage into a desktop app with Rust. ๐Ÿคฑ๐Ÿป ๅพˆ็ฎ€ๅ•็š„็”จ Rust ๆ‰“ๅŒ…็ฝ‘้กต็”Ÿๆˆๅพˆๅฐ็š„ๆกŒ้ข Appใ€‚",
5
5
  "engines": {
6
6
  "node": ">=16.0.0"