@yarnpkg/plugin-essentials 4.2.0 → 4.2.1

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.
@@ -15,7 +15,7 @@ async function getErrorCodeDetails(configuration) {
15
15
  const version = core_1.miscUtils.isTaggedYarnVersion(core_1.YarnVersion)
16
16
  ? core_1.YarnVersion
17
17
  : await (0, version_1.resolveTag)(configuration, `canary`);
18
- const errorCodesUrl = `https://repo.yarnpkg.com/${version}/packages/gatsby/content/advanced/error-codes.md`;
18
+ const errorCodesUrl = `https://repo.yarnpkg.com/${version}/packages/docusaurus/docs/advanced/01-general-reference/error-codes.mdx`;
19
19
  const raw = await core_1.httpUtils.get(errorCodesUrl, { configuration });
20
20
  return new Map(Array.from(raw.toString().matchAll(ERROR_CODE_DOC_REGEXP), ({ groups }) => {
21
21
  if (!groups)
@@ -54,7 +54,7 @@ class ExplainCommand extends cli_1.BaseCommand {
54
54
  format: this.cli.format(),
55
55
  paragraphs: true,
56
56
  }))
57
- : `This error code does not have a description.\n\nYou can help us by editing this page on GitHub 🙂:\n${core_1.formatUtils.jsonOrPretty(this.json, configuration, core_1.formatUtils.tuple(core_1.formatUtils.Type.URL, `https://github.com/yarnpkg/berry/blob/master/packages/gatsby/content/advanced/error-codes.md`))}\n`;
57
+ : `This error code does not have a description.\n\nYou can help us by editing this page on GitHub 🙂:\n${core_1.formatUtils.jsonOrPretty(this.json, configuration, core_1.formatUtils.tuple(core_1.formatUtils.Type.URL, `https://github.com/yarnpkg/berry/blob/master/packages/docusaurus/docs/advanced/01-general-reference/error-codes.mdx`))}\n`;
58
58
  if (this.json) {
59
59
  this.context.stdout.write(`${JSON.stringify({ code: this.code, name, details: content })}\n`);
60
60
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yarnpkg/plugin-essentials",
3
- "version": "4.2.0",
3
+ "version": "4.2.1",
4
4
  "license": "BSD-2-Clause",
5
5
  "main": "./lib/index.js",
6
6
  "exports": {
@@ -20,16 +20,16 @@
20
20
  "typanion": "^3.14.0"
21
21
  },
22
22
  "peerDependencies": {
23
- "@yarnpkg/cli": "^4.3.0",
24
- "@yarnpkg/core": "^4.1.0",
23
+ "@yarnpkg/cli": "^4.3.1",
24
+ "@yarnpkg/core": "^4.1.1",
25
25
  "@yarnpkg/plugin-git": "^3.0.0"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@types/lodash": "^4.14.136",
29
29
  "@types/micromatch": "^4.0.1",
30
30
  "@types/semver": "^7.1.0",
31
- "@yarnpkg/cli": "^4.3.0",
32
- "@yarnpkg/core": "^4.1.0",
31
+ "@yarnpkg/cli": "^4.3.1",
32
+ "@yarnpkg/core": "^4.1.1",
33
33
  "@yarnpkg/plugin-git": "^3.0.0"
34
34
  },
35
35
  "repository": {