@kirchdev/duxt 0.3.0 → 0.3.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/package.json +1 -1
- package/sources-git.ts +4 -4
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://www.schemastore.org/package.json",
|
|
3
3
|
"name": "@kirchdev/duxt",
|
|
4
|
-
"version": "0.3.
|
|
4
|
+
"version": "0.3.1",
|
|
5
5
|
"description": "Nuxt documentation layer on Content v3 — multi-repo, versioned docs from one compact source list.",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"content-v3",
|
package/sources-git.ts
CHANGED
|
@@ -108,10 +108,10 @@ export function resolveLatestRefs(sources: DuxtSource[]): DuxtSource[] {
|
|
|
108
108
|
if (isLatestRef(ref)) {
|
|
109
109
|
return {
|
|
110
110
|
tag: newest,
|
|
111
|
-
// The
|
|
112
|
-
//
|
|
113
|
-
//
|
|
114
|
-
label: typeof ref === 'object' ?
|
|
111
|
+
// The resolved tag is the switcher's normal label: `latest` says
|
|
112
|
+
// how the source was selected, not which release a reader sees.
|
|
113
|
+
// A caller may still deliberately supply a custom label.
|
|
114
|
+
label: typeof ref === 'object' ? ref.label : undefined,
|
|
115
115
|
// `latest` stops being distinguishable from an ordinary tag after
|
|
116
116
|
// resolution, so settle its source-level default while that fact
|
|
117
117
|
// still exists. An explicit ref or all-refs source status wins.
|