@oclif/plugin-update 4.4.13-dev.0 → 4.4.13-dev.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.
- package/README.md +1 -1
- package/dist/update.js +5 -2
- package/oclif.manifest.json +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -55,7 +55,7 @@ EXAMPLES
|
|
|
55
55
|
$ oclif-example update --available
|
|
56
56
|
```
|
|
57
57
|
|
|
58
|
-
_See code: [src/commands/update.ts](https://github.com/oclif/plugin-update/blob/v4.4.13-dev.
|
|
58
|
+
_See code: [src/commands/update.ts](https://github.com/oclif/plugin-update/blob/v4.4.13-dev.2/src/commands/update.ts)_
|
|
59
59
|
<!-- commandsstop -->
|
|
60
60
|
|
|
61
61
|
# Contributing
|
package/dist/update.js
CHANGED
|
@@ -327,7 +327,10 @@ const downloadAndExtract = async (output, manifest, channel, config) => {
|
|
|
327
327
|
platform: determinePlatform(config),
|
|
328
328
|
version,
|
|
329
329
|
}));
|
|
330
|
-
|
|
330
|
+
debug(`Streaming ${gzUrl} to ${output}`);
|
|
331
|
+
const stream = got.stream(gzUrl, {
|
|
332
|
+
agent: { https: new ProxyAgent() },
|
|
333
|
+
});
|
|
331
334
|
stream.pause();
|
|
332
335
|
const baseDir = manifest.baseDir ??
|
|
333
336
|
config.s3Key('baseDir', {
|
|
@@ -357,7 +360,7 @@ const determineChannel = async ({ config, version }) => {
|
|
|
357
360
|
return channel;
|
|
358
361
|
}
|
|
359
362
|
try {
|
|
360
|
-
const { body } = await httpGet(`${config.npmRegistry ?? 'https://registry.npmjs.org'}/${config.pjson.name}
|
|
363
|
+
const { body } = await httpGet(`${config.npmRegistry ?? 'https://registry.npmjs.org'}/${config.pjson.name}`);
|
|
361
364
|
const tags = body['dist-tags'];
|
|
362
365
|
const tag = Object.keys(tags).find((v) => tags[v] === version) ?? channel;
|
|
363
366
|
// convert from npm style tag defaults to OCLIF style
|
package/oclif.manifest.json
CHANGED