@fable-org/fable-library-ts 1.10.0 → 2.0.0-beta.2
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/Array.ts +1378 -1378
- package/Async.ts +13 -14
- package/BigInt.ts +48 -22
- package/CHANGELOG.md +18 -1
- package/Choice.ts +301 -301
- package/Date.ts +47 -41
- package/Decimal.ts +29 -1
- package/FSharp.Collections.ts +34 -34
- package/FSharp.Core.CompilerServices.ts +37 -37
- package/FSharp.Core.ts +184 -184
- package/Global.ts +37 -37
- package/List.ts +1417 -1417
- package/Map.ts +1552 -1552
- package/MapUtil.ts +3 -0
- package/MutableMap.ts +345 -345
- package/MutableSet.ts +249 -249
- package/Native.ts +11 -11
- package/Numeric.ts +8 -3
- package/Random.ts +181 -181
- package/Range.ts +56 -56
- package/Result.ts +196 -196
- package/Seq.ts +1525 -1525
- package/Seq2.ts +129 -129
- package/Set.ts +1955 -1955
- package/String.ts +81 -10
- package/System.Collections.Generic.ts +380 -380
- package/System.Text.ts +203 -203
- package/Types.ts +1 -1
- package/package.json +1 -1
package/MapUtil.ts
CHANGED
|
@@ -7,6 +7,7 @@ const CaseRules = {
|
|
|
7
7
|
SnakeCase: 2,
|
|
8
8
|
SnakeCaseAllCaps: 3,
|
|
9
9
|
KebabCase: 4,
|
|
10
|
+
LowerAll: 5,
|
|
10
11
|
};
|
|
11
12
|
|
|
12
13
|
function dashify(str: string, separator: string) {
|
|
@@ -25,6 +26,8 @@ function changeCase(str: string, caseRule: number) {
|
|
|
25
26
|
return dashify(str, "_").toUpperCase();
|
|
26
27
|
case CaseRules.KebabCase:
|
|
27
28
|
return dashify(str, "-");
|
|
29
|
+
case CaseRules.LowerAll:
|
|
30
|
+
return str.toLowerCase();
|
|
28
31
|
case CaseRules.None:
|
|
29
32
|
default:
|
|
30
33
|
return str;
|