@oclif/plugin-update
Advanced tools
Comparing version 1.1.5 to 1.1.6
@@ -0,1 +1,11 @@ | ||
<a name="1.1.6"></a> | ||
## [1.1.6](https://github.com/oclif/plugin-update/compare/v1.1.5...v1.1.6) (2018-04-10) | ||
### Bug Fixes | ||
* updated dev-cli ([06b455d](https://github.com/oclif/plugin-update/commit/06b455d)) | ||
* updated dev-cli ([0fd606b](https://github.com/oclif/plugin-update/commit/0fd606b)) | ||
* use target tarball ([701e8c7](https://github.com/oclif/plugin-update/commit/701e8c7)) | ||
<a name="1.1.5"></a> | ||
@@ -2,0 +12,0 @@ ## [1.1.5](https://github.com/oclif/plugin-update/compare/v1.1.4...v1.1.5) (2018-04-09) |
@@ -27,3 +27,2 @@ import Command from '@oclif/command'; | ||
private readonly clientBin; | ||
private readonly s3Host; | ||
run(): Promise<void>; | ||
@@ -30,0 +29,0 @@ private fetchManifest(); |
@@ -10,3 +10,2 @@ "use strict"; | ||
const path = require("path"); | ||
const url_1 = require("url"); | ||
const tar_1 = require("../tar"); | ||
@@ -19,3 +18,2 @@ const util_1 = require("../util"); | ||
this.clientBin = path.join(this.clientRoot, 'bin', this.config.windows ? `${this.config.bin}.cmd` : this.config.bin); | ||
this.s3Host = this.config.pjson.oclif.update.s3.host; | ||
} | ||
@@ -42,10 +40,10 @@ async run() { | ||
async fetchManifest() { | ||
if (!this.s3Host) | ||
throw new Error('S3 host not defined'); | ||
const http = require('http-call').HTTP; | ||
try { | ||
const key = _.template(this.config.pjson.oclif.update.s3.templates.platformManifest)(Object.assign({}, this.config, { channel: this.channel })); | ||
const url = new url_1.URL(this.s3Host); | ||
url.pathname = path.join(url.pathname, key); | ||
let { body } = await http.get(url.toString()); | ||
const url = this.config.s3Url(this.config.s3Key('manifest', { | ||
channel: this.channel, | ||
platform: this.config.platform, | ||
arch: this.config.arch | ||
})); | ||
let { body } = await http.get(url); | ||
return body; | ||
@@ -52,0 +50,0 @@ } |
{ | ||
"name": "@oclif/plugin-update", | ||
"version": "1.1.5", | ||
"version": "1.1.6", | ||
"author": "Jeff Dickey @jdxcode", | ||
@@ -9,3 +9,3 @@ "bugs": "https://github.com/oclif/plugin-update/issues", | ||
"@oclif/command": "^1.4.13", | ||
"@oclif/config": "^1.4.12", | ||
"@oclif/config": "^1.6.0", | ||
"@oclif/errors": "^1.0.4", | ||
@@ -25,3 +25,3 @@ "@types/semver": "^5.5.0", | ||
"devDependencies": { | ||
"@oclif/dev-cli": "^1.9.19", | ||
"@oclif/dev-cli": "^1.10.1", | ||
"@oclif/plugin-help": "^1.2.3", | ||
@@ -28,0 +28,0 @@ "@oclif/test": "^1.0.4", |
@@ -24,3 +24,3 @@ @oclif/plugin-update | ||
$ oclif-example (-v|--version|version) | ||
@oclif/plugin-update/1.1.5 linux-x64 node-v9.11.1 | ||
@oclif/plugin-update/1.1.6 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.1.5/src/commands/update.ts)_ | ||
_See code: [src/commands/update.ts](https://github.com/oclif/plugin-update/blob/v1.1.6/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
24342
447
Updated@oclif/config@^1.6.0