tally-simple 1.8.2 → 1.8.4
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/package.json +4 -4
- package/src/v8/engine/index.js +2 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tally-simple",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.4",
|
|
4
4
|
"description": "A small, typed JavaScript client and CLI for querying Tally through TDL definitions.",
|
|
5
5
|
"homepage": "https://keshavsoft.github.io/tally-simple/",
|
|
6
6
|
"repository": {
|
|
@@ -54,8 +54,8 @@
|
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
56
|
"@keshavsoft/api-tree": "^11.1.1",
|
|
57
|
-
"@keshavsoft/json-transformer": "^1.
|
|
58
|
-
"tally-simple-json": "^1.16.
|
|
59
|
-
"tally-spec": "^1.2.
|
|
57
|
+
"@keshavsoft/json-transformer": "^1.9.2",
|
|
58
|
+
"tally-simple-json": "^1.16.6",
|
|
59
|
+
"tally-spec": "^1.2.3"
|
|
60
60
|
}
|
|
61
61
|
}
|
package/src/v8/engine/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { call } from "tally-simple-json";
|
|
2
2
|
import transform from "@keshavsoft/json-transformer";
|
|
3
|
+
const showLog = false;
|
|
3
4
|
|
|
4
5
|
const startFunc = async ({ inRoutePath, inParam, inSource, inLeafSpec }) => {
|
|
5
6
|
const localRoutePath = inRoutePath;
|
|
@@ -11,7 +12,7 @@ const startFunc = async ({ inRoutePath, inParam, inSource, inLeafSpec }) => {
|
|
|
11
12
|
localParam);
|
|
12
13
|
const jsonNeeded = rawResponse?.ENVELOPE?.BODY?.DATA?.COLLECTION;
|
|
13
14
|
const transformedResponse = transform(jsonNeeded, localLeafSpec?.transform?.instructions);
|
|
14
|
-
|
|
15
|
+
if (showLog) console.log("localSource: ", localLeafSpec);
|
|
15
16
|
return transformedResponse;
|
|
16
17
|
};
|
|
17
18
|
|