@oclif/plugin-update
Advanced tools
Comparing version 1.2.1 to 1.2.2
@@ -0,1 +1,9 @@ | ||
<a name="1.2.2"></a> | ||
## [1.2.2](https://github.com/oclif/plugin-update/compare/v1.2.1...v1.2.2) (2018-05-09) | ||
### Bug Fixes | ||
* disable autoupdates entirely when env var is set ([8328b4f](https://github.com/oclif/plugin-update/commit/8328b4f)) | ||
<a name="1.2.1"></a> | ||
@@ -2,0 +10,0 @@ ## [1.2.1](https://github.com/oclif/plugin-update/compare/v1.2.0...v1.2.1) (2018-05-04) |
@@ -85,4 +85,2 @@ "use strict"; | ||
return this.config.scopedEnvVar('UPDATE_INSTRUCTIONS') || 'not updatable'; | ||
if (this.autoupdate && this.config.scopedEnvVar('DISABLE_AUTOUPDATE') === '1') | ||
return 'autoupdates disabled'; | ||
const manifest = await this.fetchManifest(); | ||
@@ -89,0 +87,0 @@ if (this.config.version === manifest.version) { |
@@ -19,2 +19,4 @@ "use strict"; | ||
return; | ||
if (opts.config.scopedEnvVarTrue('DISABLE_AUTOUPDATE')) | ||
return; | ||
cli_ux_1.default.config.errlog = opts.config.errlog; | ||
@@ -21,0 +23,0 @@ const binPath = this.config.binPath || this.config.bin; |
@@ -1,1 +0,1 @@ | ||
{"version":"1.2.1","commands":{"update":{"id":"update","description":"update the <%= config.bin %> CLI","pluginName":"@oclif/plugin-update","pluginType":"core","aliases":[],"flags":{"autoupdate":{"name":"autoupdate","type":"boolean","hidden":true}},"args":[{"name":"channel"}]}}} | ||
{"version":"1.2.2","commands":{"update":{"id":"update","description":"update the <%= config.bin %> CLI","pluginName":"@oclif/plugin-update","pluginType":"core","aliases":[],"flags":{"autoupdate":{"name":"autoupdate","type":"boolean","hidden":true}},"args":[{"name":"channel"}]}}} |
{ | ||
"name": "@oclif/plugin-update", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"author": "Jeff Dickey @jdxcode", | ||
@@ -5,0 +5,0 @@ "bugs": "https://github.com/oclif/plugin-update/issues", |
@@ -24,3 +24,3 @@ @oclif/plugin-update | ||
$ oclif-example (-v|--version|version) | ||
@oclif/plugin-update/1.2.1 linux-x64 node-v8.11.1 | ||
@oclif/plugin-update/1.2.2 linux-x64 node-v8.11.1 | ||
$ oclif-example --help [COMMAND] | ||
@@ -45,3 +45,3 @@ USAGE | ||
_See code: [src/commands/update.ts](https://github.com/oclif/plugin-update/blob/v1.2.1/src/commands/update.ts)_ | ||
_See code: [src/commands/update.ts](https://github.com/oclif/plugin-update/blob/v1.2.2/src/commands/update.ts)_ | ||
<!-- commandsstop --> |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
29653