@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 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.0/src/commands/update.ts)_
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
- const stream = got.stream(gzUrl);
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}1`);
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
@@ -96,5 +96,5 @@
96
96
  ]
97
97
  }
98
98
  },
99
- "version": "4.4.13-dev.0"
99
+ "version": "4.4.13-dev.2"
100
100
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oclif/plugin-update",
3
- "version": "4.4.13-dev.0",
3
+ "version": "4.4.13-dev.2",
4
4
  "author": "Salesforce",
5
5
  "bugs": "https://github.com/oclif/plugin-update/issues",
6
6
  "dependencies": {