u2a 3.5.1 → 3.5.2

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.
@@ -0,0 +1,33 @@
1
+ name: Node.js Package
2
+
3
+ on:
4
+ push:
5
+ paths:
6
+ - 'package.json'
7
+ branches:
8
+ - main
9
+
10
+ jobs:
11
+ build:
12
+ runs-on: ubuntu-latest
13
+ steps:
14
+ - uses: actions/checkout@v4
15
+ - uses: actions/setup-node@v4
16
+ with:
17
+ node-version: 20
18
+ - run: npm ci
19
+ - run: npm test
20
+
21
+ publish-npm:
22
+ needs: build
23
+ runs-on: ubuntu-latest
24
+ steps:
25
+ - uses: actions/checkout@v4
26
+ - uses: actions/setup-node@v4
27
+ with:
28
+ node-version: 20
29
+ registry-url: https://registry.npmjs.org/
30
+ - run: npm ci
31
+ - run: npm publish
32
+ env:
33
+ NODE_AUTH_TOKEN: ${{ secrets.npm_token }}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "u2a",
3
- "version": "3.5.1",
3
+ "version": "3.5.2",
4
4
  "description": "URL to App - Turn any URL into a desktop application",
5
5
  "main": "src/index.js",
6
6
  "bin": {
@@ -2,6 +2,7 @@ const axios = require('axios');
2
2
  const { version } = require('../../package.json');
3
3
  const Logger = require('./logger');
4
4
  const { getSetting } = require('./settings');
5
+ const chalk = require('chalk');
5
6
 
6
7
  const logger = new Logger('version-check');
7
8
 
@@ -60,7 +61,7 @@ async function checkVersion(silent = false, forceCheck = false) {
60
61
  }
61
62
 
62
63
  logger.warn(`Current version: ${version}`);
63
- logger.warn(`Update u2a with: npm install -g u2a@${latestVersion}`);
64
+ logger.warn(`Update u2a with: ${chalk.underline(`npm install -g u2a@${latestVersion}`)}`);
64
65
 
65
66
  if (updateType === UPDATE_TYPES.SECURITY) {
66
67
  logger.error('This update fixes SECURITY VULNERABILITIES and should be installed immediately!');