@oclif/plugin-update 4.2.9 → 4.2.11

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.2.9/src/commands/update.ts)_
58
+ _See code: [src/commands/update.ts](https://github.com/oclif/plugin-update/blob/v4.2.11/src/commands/update.ts)_
59
59
  <!-- commandsstop -->
60
60
 
61
61
  # Contributing
package/dist/update.js CHANGED
@@ -338,6 +338,9 @@ const determineChannel = async ({ config, version }) => {
338
338
  const channelPath = join(config.dataDir, 'channel');
339
339
  // eslint-disable-next-line unicorn/no-await-expression-member
340
340
  const channel = existsSync(channelPath) ? (await readFile(channelPath, 'utf8')).trim() : 'stable';
341
+ if (config.pjson.oclif.update?.disableNpmLookup ?? false) {
342
+ return channel;
343
+ }
341
344
  try {
342
345
  const { body } = await HTTP.get(`${config.npmRegistry ?? 'https://registry.npmjs.org'}/${config.pjson.name}`);
343
346
  const tags = body['dist-tags'];