ionic
Advanced tools
Comparing version 5.4.15 to 5.4.16
@@ -6,2 +6,13 @@ # Change Log | ||
## [5.4.16](https://github.com/ionic-team/ionic-cli/compare/ionic@5.4.15...ionic@5.4.16) (2020-02-04) | ||
### Bug Fixes | ||
* **update:** show update message even with command error ([dee817e](https://github.com/ionic-team/ionic-cli/commit/dee817ed13c6730156224e7a2f145ed0ac8f4f81)) | ||
## [5.4.15](https://github.com/ionic-team/ionic-cli/compare/ionic@5.4.14...ionic@5.4.15) (2020-01-15) | ||
@@ -8,0 +19,0 @@ |
@@ -105,2 +105,7 @@ "use strict"; | ||
await executor.execute(location, process.env); | ||
} | ||
catch (e) { | ||
err = e; | ||
} | ||
finally { | ||
if (ienv.flags.interactive) { | ||
@@ -111,5 +116,2 @@ const { runUpdateNotify } = await Promise.resolve().then(() => require('./lib/updates')); | ||
} | ||
catch (e) { | ||
err = e; | ||
} | ||
if (err) { | ||
@@ -116,0 +118,0 @@ process.exitCode = 1; |
@@ -13,3 +13,3 @@ "use strict"; | ||
const UPDATE_NOTIFY_INTERVAL = 60 * 60 * 12 * 1000; // 12 hours | ||
const PACKAGES = ['ionic', 'native-run', 'cordova-res']; | ||
const PACKAGES = ['@ionic/cli', 'ionic', 'native-run', 'cordova-res']; | ||
async function readUpdateConfig(dir) { | ||
@@ -54,6 +54,11 @@ return utils_fs_1.readJson(path.resolve(dir, UPDATE_CONFIG_FILE)); | ||
const dir = path.dirname(env.config.p); | ||
const args = await npm_1.pkgManagerArgs(env.config.get('npmClient'), { command: 'install', pkg: pkg.name, global: true }); | ||
const uninstallArgs = await npm_1.pkgManagerArgs(env.config.get('npmClient'), { command: 'uninstall', pkg: 'ionic', global: true }); | ||
const installArgs = await npm_1.pkgManagerArgs(env.config.get('npmClient'), { command: 'install', pkg: '@ionic/cli', global: true }); | ||
const lines = [ | ||
`Ionic CLI update available: ${color_1.weak(pkg.version)} → ${color_1.success(latestVersion)}`, | ||
`Run ${color_1.input(args.join(' '))} to update`, | ||
'', | ||
`${color_1.strong(`The package name has changed from ${color_1.input('ionic')} to ${color_1.input('@ionic/cli')}!`)}`, | ||
'', | ||
`To update, run: ${color_1.input(uninstallArgs.join(' '))}`, | ||
`Then run: ${color_1.input(installArgs.join(' '))}`, | ||
]; | ||
@@ -74,3 +79,3 @@ // TODO: Pull this into utils/format | ||
async function runUpdateNotify(env, pkg) { | ||
const { name, version } = pkg; | ||
const { name, version } = { ...pkg, name: '@ionic/cli' }; // use new package name | ||
const { lastUpdate, lastNotify, packages } = await getUpdateConfig(env); | ||
@@ -77,0 +82,0 @@ const latestPkg = packages.find(pkg => pkg.name === name); |
{ | ||
"name": "ionic", | ||
"version": "5.4.15", | ||
"version": "5.4.16", | ||
"description": "A tool for creating and developing Ionic Framework mobile apps.", | ||
@@ -96,3 +96,3 @@ "homepage": "https://ionicframework.com", | ||
}, | ||
"gitHead": "0608da93ec5ad82a4210f8d1ac2361a121185084" | ||
"gitHead": "634e5dc223ce3dcd7acbb1199194afe2f5e92039" | ||
} |
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 5 instances in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
899663
19274
30