Skip to content

Commit 5630b70

Browse files
committed
fix: 数值转换时最多保留两位小数,同时修复数值精确度问题
1 parent 1b99010 commit 5630b70

File tree

3 files changed

+160
-31
lines changed

3 files changed

+160
-31
lines changed

Cargo.lock

Lines changed: 125 additions & 27 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ pcre2 = "0.2.6"
2626
regex = "1.10.3"
2727
swc_core = { version = "0.90.24", features = ["__common", "ecma_transforms_typescript", "ecma_ast", "ecma_plugin_transform", "ecma_utils", "ecma_parser", "ecma_visit", "ecma_codegen", "__testing_transform"]}
2828
flatbuffers = "24.3.25"
29+
rust_decimal = "1.36.0"
30+
rust_decimal_macros = "1.36.0"
2931

3032
[build-dependencies]
3133
napi-build = "2.0.1"

0 commit comments

Comments
 (0)