@kubb/core 5.5.0 → 5.5.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.
- package/dist/index.cjs +4 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/mocks.d.ts +1 -1
- package/dist/{types-B882W-Pb.d.ts → types-8ebHH0OM.d.ts} +4 -4
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -127,7 +127,7 @@ function formatMs(ms) {
|
|
|
127
127
|
/**
|
|
128
128
|
* Docs major version, derived from the package version so the link tracks the published major.
|
|
129
129
|
*/
|
|
130
|
-
const docsMajor = "5.5.
|
|
130
|
+
const docsMajor = "5.5.1".split(".")[0] ?? "5";
|
|
131
131
|
/**
|
|
132
132
|
* Builds a type guard that narrows a {@link Diagnostic} to the variant for `kind`. A diagnostic
|
|
133
133
|
* with no `kind` is treated as a `problem`.
|
|
@@ -498,15 +498,15 @@ var Diagnostics = class Diagnostics {
|
|
|
498
498
|
}
|
|
499
499
|
/**
|
|
500
500
|
* Builds the kubb.dev docs URL for a diagnostic code, e.g.
|
|
501
|
-
* `KUBB_REF_NOT_FOUND` → `https://kubb.dev/docs/5.x/reference/diagnostics
|
|
501
|
+
* `KUBB_REF_NOT_FOUND` → `https://kubb.dev/docs/5.x/reference/diagnostics#kubb-ref-not-found`.
|
|
502
502
|
*/
|
|
503
503
|
static docsUrl(code) {
|
|
504
504
|
const slug = code.toLowerCase().replaceAll("_", "-");
|
|
505
|
-
return `https://kubb.dev/docs/${docsMajor}.x/reference/diagnostics
|
|
505
|
+
return `https://kubb.dev/docs/${docsMajor}.x/reference/diagnostics#${slug}`;
|
|
506
506
|
}
|
|
507
507
|
/**
|
|
508
508
|
* The catalog entry for a code: its title, cause, and fix. Mirrors the kubb.dev
|
|
509
|
-
* `/diagnostics
|
|
509
|
+
* `/reference/diagnostics#<slug>` section.
|
|
510
510
|
*/
|
|
511
511
|
static explain(code) {
|
|
512
512
|
return diagnosticCatalog[code];
|