@hagicode/hagilight-core 0.8.1-dev.88.1.80b3713 → 0.8.1-dev.92.1.85649f3
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/promotions.js +1 -1
- package/package.json +10 -1
package/dist/promotions.js
CHANGED
|
@@ -148,7 +148,7 @@ function localeCandidates(locale) {
|
|
|
148
148
|
candidates.push('zh-cn', 'zh-hant', 'zh');
|
|
149
149
|
}
|
|
150
150
|
candidates.push('en-us', 'en');
|
|
151
|
-
return
|
|
151
|
+
return Array.from(new Set(candidates));
|
|
152
152
|
}
|
|
153
153
|
function localized(value, locale) {
|
|
154
154
|
const values = new Map(Object.entries(value).map(([key, text]) => [key.toLowerCase(), text]));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hagicode/hagilight-core",
|
|
3
|
-
"version": "0.8.1-dev.
|
|
3
|
+
"version": "0.8.1-dev.92.1.85649f3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Shared TypeScript utilities, components, and assets for HagiCode Astro and Starlight sites",
|
|
6
6
|
"repository": {
|
|
@@ -46,6 +46,10 @@
|
|
|
46
46
|
"types": "./dist/promotions.d.ts",
|
|
47
47
|
"default": "./dist/promotions.js"
|
|
48
48
|
},
|
|
49
|
+
"./promoto-banner": {
|
|
50
|
+
"types": "./dist/promoto-banner.d.ts",
|
|
51
|
+
"default": "./dist/promoto-banner.js"
|
|
52
|
+
},
|
|
49
53
|
"./analytics-events": {
|
|
50
54
|
"types": "./dist/analytics-events.d.ts",
|
|
51
55
|
"default": "./dist/analytics-events.js"
|
|
@@ -73,6 +77,11 @@
|
|
|
73
77
|
"peerDependencies": {
|
|
74
78
|
"astro": "^6.0.7 || ^7.3.5"
|
|
75
79
|
},
|
|
80
|
+
"peerDependenciesMeta": {
|
|
81
|
+
"astro": {
|
|
82
|
+
"optional": true
|
|
83
|
+
}
|
|
84
|
+
},
|
|
76
85
|
"devDependencies": {
|
|
77
86
|
"astro": "^7.3.5"
|
|
78
87
|
},
|