@stalfh233/omc-cli 0.6.55 → 0.6.56
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/field-families.js +4 -2
- package/package.json +3 -3
package/dist/field-families.js
CHANGED
|
@@ -548,7 +548,7 @@ const NUMERICAL_DECIMALS_BY_LOWER = new Map(Object.entries(NUMERICAL_FORMAT_DECI
|
|
|
548
548
|
function numericalAliasFamily(value) {
|
|
549
549
|
if (value === "percent" || value === "percentage" || value === "ratio" || value === "%" || value === "percentile")
|
|
550
550
|
return undefined; // `percentile` alone = 2-decimals, handled below
|
|
551
|
-
if (value === "currency" || value === "rmb" || value === "cny" || value === "¥" || value === "¥")
|
|
551
|
+
if (value === "currency" || value === "rmb" || value === "cny" || value === "¥" || value === "¥" || value === "人民币" || value === "货币")
|
|
552
552
|
return "rmb";
|
|
553
553
|
if (value === "dollar" || value === "usd" || value === "$")
|
|
554
554
|
return "dollar";
|
|
@@ -603,7 +603,9 @@ export function canonicalNumericalFormat(format, scale) {
|
|
|
603
603
|
if (bare !== undefined)
|
|
604
604
|
return bare.word;
|
|
605
605
|
// Semantic aliases.
|
|
606
|
-
|
|
606
|
+
// r64b:中文别名(真机复验发现「百分比」原样落库——别名表只有英文)。
|
|
607
|
+
const PERCENT_WORDS = new Set(["percent", "percentage", "ratio", "%", "百分比", "按百分号", "百分号", "占比", "比率"]);
|
|
608
|
+
if (PERCENT_WORDS.has(lower) || PERCENT_WORDS.has(raw)) {
|
|
607
609
|
return RATIO_DECIMALS_FORMAT[Math.min(decimals, 2)];
|
|
608
610
|
}
|
|
609
611
|
const alias = numericalAliasFamily(lower);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stalfh233/omc-cli",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.56",
|
|
4
4
|
"description": "CloudPivot 8.6 configuration capability CLI — governed, fail-closed, coverage-manifest bounded.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
58
|
"commander": "14.0.3",
|
|
59
|
-
"omc-core": "0.6.
|
|
59
|
+
"omc-core": "0.6.56",
|
|
60
60
|
"proper-lockfile": "4.1.2",
|
|
61
61
|
"write-file-atomic": "6.0.0",
|
|
62
62
|
"zod": "^3.23.8",
|
|
@@ -74,6 +74,6 @@
|
|
|
74
74
|
"directory": "packages/omc-cli"
|
|
75
75
|
},
|
|
76
76
|
"optionalDependencies": {
|
|
77
|
-
"@stalfh233/omc-fake-platform": "0.6.
|
|
77
|
+
"@stalfh233/omc-fake-platform": "0.6.56"
|
|
78
78
|
}
|
|
79
79
|
}
|