av6-core 1.6.2 → 1.6.3
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.js +2 -1
- package/dist/index.mjs +2 -1
- package/package.json +36 -35
package/dist/index.js
CHANGED
|
@@ -1589,6 +1589,7 @@ var buildJoiSchemaForOp = (cfg, op, ctx) => {
|
|
|
1589
1589
|
};
|
|
1590
1590
|
|
|
1591
1591
|
// src/utils/dynamicOperation.utils.ts
|
|
1592
|
+
var import_av6_utils = require("av6-utils");
|
|
1592
1593
|
var OP_PRECEDENCE = {
|
|
1593
1594
|
"u-": 3,
|
|
1594
1595
|
// unary minus
|
|
@@ -1782,7 +1783,7 @@ function evalRpn(rpn, rowObj) {
|
|
|
1782
1783
|
}
|
|
1783
1784
|
if (stack.length !== 1) throw new Error("Bad expression (final stack)");
|
|
1784
1785
|
const res = stack[0];
|
|
1785
|
-
return Number.isFinite(res) ? res : null;
|
|
1786
|
+
return Number.isFinite(res) ? (0, import_av6_utils.applyRound)(res, "TO_FIXED", 5) : null;
|
|
1786
1787
|
}
|
|
1787
1788
|
function getDynamicValueOrExpression(obj, accessorOrExpr) {
|
|
1788
1789
|
const s = (accessorOrExpr ?? "").trim();
|
package/dist/index.mjs
CHANGED
|
@@ -1539,6 +1539,7 @@ var buildJoiSchemaForOp = (cfg, op, ctx) => {
|
|
|
1539
1539
|
};
|
|
1540
1540
|
|
|
1541
1541
|
// src/utils/dynamicOperation.utils.ts
|
|
1542
|
+
import { applyRound } from "av6-utils";
|
|
1542
1543
|
var OP_PRECEDENCE = {
|
|
1543
1544
|
"u-": 3,
|
|
1544
1545
|
// unary minus
|
|
@@ -1732,7 +1733,7 @@ function evalRpn(rpn, rowObj) {
|
|
|
1732
1733
|
}
|
|
1733
1734
|
if (stack.length !== 1) throw new Error("Bad expression (final stack)");
|
|
1734
1735
|
const res = stack[0];
|
|
1735
|
-
return Number.isFinite(res) ? res : null;
|
|
1736
|
+
return Number.isFinite(res) ? applyRound(res, "TO_FIXED", 5) : null;
|
|
1736
1737
|
}
|
|
1737
1738
|
function getDynamicValueOrExpression(obj, accessorOrExpr) {
|
|
1738
1739
|
const s = (accessorOrExpr ?? "").trim();
|
package/package.json
CHANGED
|
@@ -1,35 +1,36 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "av6-core",
|
|
3
|
-
"version": "1.6.
|
|
4
|
-
"main": "dist/index.js",
|
|
5
|
-
"module": "dist/index.mjs",
|
|
6
|
-
"types": "dist/index.d.ts",
|
|
7
|
-
"description": "All utility function for av6 node js projects.",
|
|
8
|
-
"author": "Aniket Sarkar",
|
|
9
|
-
"license": "ISC",
|
|
10
|
-
"scripts": {
|
|
11
|
-
"build": "npm run format && tsup",
|
|
12
|
-
"p:gen": "prisma generate",
|
|
13
|
-
"format": "prettier --write **/*.ts"
|
|
14
|
-
},
|
|
15
|
-
"devDependencies": {
|
|
16
|
-
"@prisma/client": "^6.19.0",
|
|
17
|
-
"@types/nodemailer": "^7.0.3",
|
|
18
|
-
"tsup": "^8.5.0",
|
|
19
|
-
"typescript": "^5.9.2"
|
|
20
|
-
},
|
|
21
|
-
"peerDependencies": {
|
|
22
|
-
"@prisma/client": "^6.19.0",
|
|
23
|
-
"winston": "^3.17.0"
|
|
24
|
-
},
|
|
25
|
-
"dependencies": {
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
|
|
35
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "av6-core",
|
|
3
|
+
"version": "1.6.3",
|
|
4
|
+
"main": "dist/index.js",
|
|
5
|
+
"module": "dist/index.mjs",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"description": "All utility function for av6 node js projects.",
|
|
8
|
+
"author": "Aniket Sarkar",
|
|
9
|
+
"license": "ISC",
|
|
10
|
+
"scripts": {
|
|
11
|
+
"build": "npm run format && tsup",
|
|
12
|
+
"p:gen": "prisma generate",
|
|
13
|
+
"format": "prettier --write **/*.ts"
|
|
14
|
+
},
|
|
15
|
+
"devDependencies": {
|
|
16
|
+
"@prisma/client": "^6.19.0",
|
|
17
|
+
"@types/nodemailer": "^7.0.3",
|
|
18
|
+
"tsup": "^8.5.0",
|
|
19
|
+
"typescript": "^5.9.2"
|
|
20
|
+
},
|
|
21
|
+
"peerDependencies": {
|
|
22
|
+
"@prisma/client": "^6.19.0",
|
|
23
|
+
"winston": "^3.17.0"
|
|
24
|
+
},
|
|
25
|
+
"dependencies": {
|
|
26
|
+
"av6-utils": "^1.0.4",
|
|
27
|
+
"axios": "^1.11.0",
|
|
28
|
+
"exceljs": "^4.4.0",
|
|
29
|
+
"handlebars": "^4.7.8",
|
|
30
|
+
"joi": "^17.13.3",
|
|
31
|
+
"node-cron": "^4.2.1",
|
|
32
|
+
"nodemailer": "^7.0.10",
|
|
33
|
+
"prettier": "^3.6.2",
|
|
34
|
+
"prisma": "^6.19.0"
|
|
35
|
+
}
|
|
36
|
+
}
|