@leankylin-sheet/core 2.0.24 → 3.0.0
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/index.esm.js +2 -2
- package/dist/index.js +2 -2
- package/package.json +2 -2
package/dist/index.esm.js
CHANGED
|
@@ -44935,14 +44935,14 @@ var make_ssf = function make_ssf(SSF) {
|
|
|
44935
44935
|
}
|
|
44936
44936
|
function format(fmt, v, o) {
|
|
44937
44937
|
if (fmt === null || fmt === void 0 ? void 0 : fmt.includes('leanky_n')) {
|
|
44938
|
-
if (isNaN(v)) {
|
|
44938
|
+
if (isNaN(v) || Infinity == v || -Infinity == v) {
|
|
44939
44939
|
return '#VALUE!';
|
|
44940
44940
|
}
|
|
44941
44941
|
var precision = fmt.replace('leanky_n', '');
|
|
44942
44942
|
return numberThousands(v, ',', precision);
|
|
44943
44943
|
}
|
|
44944
44944
|
if (fmt === null || fmt === void 0 ? void 0 : fmt.includes('leanky_p')) {
|
|
44945
|
-
if (isNaN(v)) {
|
|
44945
|
+
if (isNaN(v) || Infinity == v || -Infinity == v) {
|
|
44946
44946
|
return '#VALUE!';
|
|
44947
44947
|
}
|
|
44948
44948
|
var _precision = fmt.replace('leanky_p', '');
|
package/dist/index.js
CHANGED
|
@@ -44945,14 +44945,14 @@ var make_ssf = function make_ssf(SSF) {
|
|
|
44945
44945
|
}
|
|
44946
44946
|
function format(fmt, v, o) {
|
|
44947
44947
|
if (fmt === null || fmt === void 0 ? void 0 : fmt.includes('leanky_n')) {
|
|
44948
|
-
if (isNaN(v)) {
|
|
44948
|
+
if (isNaN(v) || Infinity == v || -Infinity == v) {
|
|
44949
44949
|
return '#VALUE!';
|
|
44950
44950
|
}
|
|
44951
44951
|
var precision = fmt.replace('leanky_n', '');
|
|
44952
44952
|
return numberThousands(v, ',', precision);
|
|
44953
44953
|
}
|
|
44954
44954
|
if (fmt === null || fmt === void 0 ? void 0 : fmt.includes('leanky_p')) {
|
|
44955
|
-
if (isNaN(v)) {
|
|
44955
|
+
if (isNaN(v) || Infinity == v || -Infinity == v) {
|
|
44956
44956
|
return '#VALUE!';
|
|
44957
44957
|
}
|
|
44958
44958
|
var _precision = fmt.replace('leanky_p', '');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leankylin-sheet/core",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "dist/index.esm.js",
|
|
6
6
|
"typings": "dist/index.d.ts",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"build": "father-build"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@leankylin-sheet/formula-parser": "^
|
|
16
|
+
"@leankylin-sheet/formula-parser": "^3.0.0",
|
|
17
17
|
"dayjs": "^1.11.0",
|
|
18
18
|
"immer": "^9.0.12",
|
|
19
19
|
"lodash": "^4.17.21",
|