stentor-response 1.47.0 → 1.48.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/CHANGELOG.md +35 -0
- package/lib/compileResponse.js +69 -1
- package/lib/compileResponse.js.map +1 -1
- package/lib/compileSegments.js +6 -7
- package/lib/compileSegments.js.map +1 -1
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,41 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [1.48.3](https://github.com/stentorium/stentor/compare/v1.48.2...v1.48.3) (2021-10-29)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package stentor-response
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [1.48.2](https://github.com/stentorium/stentor/compare/v1.48.1...v1.48.2) (2021-10-28)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package stentor-response
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
## [1.48.1](https://github.com/stentorium/stentor/compare/v1.48.0...v1.48.1) (2021-10-28)
|
|
23
|
+
|
|
24
|
+
**Note:** Version bump only for package stentor-response
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
# [1.48.0](https://github.com/stentorium/stentor/compare/v1.47.0...v1.48.0) (2021-10-28)
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
### Features
|
|
34
|
+
|
|
35
|
+
* List Template ([#1200](https://github.com/stentorium/stentor/issues/1200)) ([6dc854a](https://github.com/stentorium/stentor/commit/6dc854ae810be1f752eea31160759427e768715e))
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
6
41
|
# [1.47.0](https://github.com/stentorium/stentor/compare/v1.46.8...v1.47.0) (2021-10-26)
|
|
7
42
|
|
|
8
43
|
|
package/lib/compileResponse.js
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.compileResponse = void 0;
|
|
4
4
|
/*! Copyright (c) 2019, XAPPmedia */
|
|
5
|
+
const stentor_constants_1 = require("stentor-constants");
|
|
6
|
+
const stentor_guards_1 = require("stentor-guards");
|
|
5
7
|
const stentor_locales_1 = require("stentor-locales");
|
|
6
8
|
const stentor_utils_1 = require("stentor-utils");
|
|
7
9
|
const compileSegments_1 = require("./compileSegments");
|
|
@@ -22,6 +24,7 @@ const compileSegments_1 = require("./compileSegments");
|
|
|
22
24
|
* @param additionalContext - Additional, optional, context to pull information from for compilation
|
|
23
25
|
*/
|
|
24
26
|
function compileResponse(response, request, context, additionalContext, macros) {
|
|
27
|
+
var _a, _b;
|
|
25
28
|
// fast fail
|
|
26
29
|
if (!response) {
|
|
27
30
|
return response;
|
|
@@ -52,7 +55,72 @@ function compileResponse(response, request, context, additionalContext, macros)
|
|
|
52
55
|
});
|
|
53
56
|
// Displays!
|
|
54
57
|
if (Array.isArray(compiledResponse.displays) && compiledResponse.displays.length > 0) {
|
|
55
|
-
//
|
|
58
|
+
// We want to first check to see if they have the itemObject feature
|
|
59
|
+
// Note, just care about the first one here.
|
|
60
|
+
const firstDisplay = compiledResponse.displays[0];
|
|
61
|
+
if ((0, stentor_guards_1.isTemplatedList)(firstDisplay)) {
|
|
62
|
+
// This is what we will replace the items on firstDisplay with
|
|
63
|
+
const compiledItems = [];
|
|
64
|
+
// Defaults to "items"
|
|
65
|
+
const itemsName = firstDisplay.itemsName || "items";
|
|
66
|
+
// The collection variable. The regex is just for the syntactical similarity. ex "${ $.session.storeList }"
|
|
67
|
+
const itemsObject = firstDisplay.itemsObject;
|
|
68
|
+
// If dynamic no reason to give more
|
|
69
|
+
if (firstDisplay.items.length !== 1) {
|
|
70
|
+
throw new Error("Templated Lists must only have 1 item");
|
|
71
|
+
}
|
|
72
|
+
const itemTemplate = firstDisplay.items[0];
|
|
73
|
+
const itemsObjectResult = new RegExp(stentor_constants_1.TEMPLATE_REGEX).exec(itemsObject);
|
|
74
|
+
if (!itemsObjectResult) {
|
|
75
|
+
throw new Error(`Unable to determine JSON path for ${itemsObject}, which is required for compilation.`);
|
|
76
|
+
}
|
|
77
|
+
const itemsObjectResultPath = itemsObjectResult[1].trim();
|
|
78
|
+
// Now, find the object.
|
|
79
|
+
// try just the session variables first
|
|
80
|
+
let sessionValue;
|
|
81
|
+
const sessionPathResult = (0, stentor_utils_1.getJSONPath)(itemsObjectResultPath, (_b = (_a = context === null || context === void 0 ? void 0 : context.storage) === null || _a === void 0 ? void 0 : _a.sessionStore) === null || _b === void 0 ? void 0 : _b.data);
|
|
82
|
+
if ((0, stentor_utils_1.existsAndNotEmpty)(sessionPathResult) && sessionPathResult[0]) {
|
|
83
|
+
sessionValue = sessionPathResult[0];
|
|
84
|
+
}
|
|
85
|
+
// Last, we just try a JSON path
|
|
86
|
+
let pathValue;
|
|
87
|
+
const pathResult = (0, stentor_utils_1.getJSONPath)(itemsObjectResultPath, Object.assign(Object.assign({}, additionalContext), { request,
|
|
88
|
+
context, storage: context.storage, session: context.session }));
|
|
89
|
+
if ((0, stentor_utils_1.existsAndNotEmpty)(pathResult) && pathResult[0]) {
|
|
90
|
+
pathValue = pathResult[0];
|
|
91
|
+
}
|
|
92
|
+
// Prefer the session over the path one
|
|
93
|
+
let itemsObjectArray = sessionValue || pathValue;
|
|
94
|
+
if (!Array.isArray(itemsObjectArray)) {
|
|
95
|
+
throw new Error(`Item found at JSONPath for itemsObject was not an array.`);
|
|
96
|
+
}
|
|
97
|
+
// if a range exists, trim to the range
|
|
98
|
+
itemsObjectArray = firstDisplay.range ? itemsObjectArray.slice(firstDisplay.range.from, firstDisplay.range.length) : itemsObjectArray;
|
|
99
|
+
// Time to iterate and do replacements
|
|
100
|
+
itemsObjectArray.forEach((item, index) => {
|
|
101
|
+
// Stringify
|
|
102
|
+
const itemString = JSON.stringify(itemTemplate, undefined, 2);
|
|
103
|
+
let compiledItemString = (0, compileSegments_1.compileSegments)(itemString, compiledResponse.segments, request, context);
|
|
104
|
+
// New compiler
|
|
105
|
+
const itemCompiler = new stentor_utils_1.Compiler({
|
|
106
|
+
macros: Object.assign(Object.assign({}, stentor_utils_1.DEFAULT_MARCOS), macros),
|
|
107
|
+
additionalContext: Object.assign(Object.assign({}, additionalContext), { [`${itemsName}`]: item, index }),
|
|
108
|
+
replaceWhenUndefined: true
|
|
109
|
+
});
|
|
110
|
+
compiledItemString = itemCompiler.compile(compiledItemString, request, context);
|
|
111
|
+
try {
|
|
112
|
+
const compiledItem = JSON.parse(compiledItemString);
|
|
113
|
+
// Only update if it doesn't explode
|
|
114
|
+
compiledItems.push(compiledItem);
|
|
115
|
+
}
|
|
116
|
+
catch (e) {
|
|
117
|
+
console.info("Could not parse compiled displays");
|
|
118
|
+
}
|
|
119
|
+
// ok, time to update the items.
|
|
120
|
+
firstDisplay.items = compiledItems;
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
// Then pass it through as a string convert it to a string
|
|
56
124
|
const displaysString = JSON.stringify(compiledResponse.displays, undefined, 2);
|
|
57
125
|
// Compile the segments
|
|
58
126
|
let compiledDisplayString = (0, compileSegments_1.compileSegments)(displaysString, compiledResponse.segments, request, context);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compileResponse.js","sourceRoot":"","sources":["../src/compileResponse.ts"],"names":[],"mappings":";;;AAAA,oCAAoC;AACpC,qDAA2C;AAE3C,
|
|
1
|
+
{"version":3,"file":"compileResponse.js","sourceRoot":"","sources":["../src/compileResponse.ts"],"names":[],"mappings":";;;AAAA,oCAAoC;AACpC,yDAAmD;AACnD,mDAAiD;AACjD,qDAA2C;AAE3C,iDAAmG;AAEnG,uDAAoD;AAEpD;;;;;;;;;;;;;;;GAeG;AACH,S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 +9,9 @@ const determineSegment_1 = require("./determineSegment");
|
|
|
9
9
|
/* private */
|
|
10
10
|
function compileString(value, segmentsMap, request, context, responseKey) {
|
|
11
11
|
let compiledValue = value;
|
|
12
|
-
let result
|
|
13
|
-
|
|
12
|
+
let result;
|
|
13
|
+
const reg = new RegExp(stentor_constants_1.TEMPLATE_REGEX);
|
|
14
|
+
while ((result = reg.exec(value)) !== null) {
|
|
14
15
|
// Pull the first key out
|
|
15
16
|
const key = result[1] ? result[1].trim() : undefined;
|
|
16
17
|
const foundSegment = segmentsMap[key];
|
|
@@ -32,21 +33,19 @@ function compileString(value, segmentsMap, request, context, responseKey) {
|
|
|
32
33
|
compiledValue = compiledValue.replace(result[0], cleanSegment);
|
|
33
34
|
}
|
|
34
35
|
}
|
|
35
|
-
// Run the value back through until we have replaced all the templates
|
|
36
|
-
result = stentor_constants_1.TEMPLATE_REGEX.exec(compiledValue);
|
|
37
36
|
}
|
|
38
37
|
return compiledValue;
|
|
39
38
|
}
|
|
40
39
|
/* private */
|
|
41
40
|
function findSegments(value, segmentsMap, request, context) {
|
|
42
41
|
const foundSegments = {};
|
|
43
|
-
let result
|
|
44
|
-
|
|
42
|
+
let result;
|
|
43
|
+
const reg = new RegExp(stentor_constants_1.TEMPLATE_REGEX);
|
|
44
|
+
while ((result = reg.exec(value)) !== null) {
|
|
45
45
|
const key = result[1] ? result[1].trim() : undefined;
|
|
46
46
|
const segments = segmentsMap[key] || [];
|
|
47
47
|
const matchedSegment = (0, determineSegment_1.determineSegment)(segments, request, context);
|
|
48
48
|
foundSegments[key] = matchedSegment;
|
|
49
|
-
result = stentor_constants_1.TEMPLATE_REGEX.exec(value);
|
|
50
49
|
}
|
|
51
50
|
return foundSegments;
|
|
52
51
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compileSegments.js","sourceRoot":"","sources":["../src/compileSegments.ts"],"names":[],"mappings":";;;AAAA,oCAAoC;AACpC,yDAAmD;AACnD,qDAA2C;AAE3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version": "1.48.3",
|
|
8
8
|
"description": "Response for stentor",
|
|
9
9
|
"types": "lib/index",
|
|
10
10
|
"main": "lib/index",
|
|
@@ -17,25 +17,25 @@
|
|
|
17
17
|
"devDependencies": {
|
|
18
18
|
"@types/chai": "4.2.22",
|
|
19
19
|
"@types/lodash.template": "4.5.0",
|
|
20
|
-
"@types/sinon": "10.0.
|
|
20
|
+
"@types/sinon": "10.0.6",
|
|
21
21
|
"@types/sinon-chai": "3.2.5",
|
|
22
22
|
"@xapp/config": "0.2.3",
|
|
23
23
|
"chai": "4.3.4",
|
|
24
24
|
"mocha": "9.1.3",
|
|
25
25
|
"sinon": "10.0.0",
|
|
26
26
|
"sinon-chai": "3.7.0",
|
|
27
|
-
"stentor-models": "1.
|
|
27
|
+
"stentor-models": "1.48.3",
|
|
28
28
|
"ts-node": "9.1.1",
|
|
29
29
|
"typescript": "4.4.4"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@xapp/patterns": "1.37.29",
|
|
33
33
|
"lodash.template": "4.5.0",
|
|
34
|
-
"stentor-determiner": "1.
|
|
35
|
-
"stentor-locales": "1.
|
|
36
|
-
"stentor-media": "1.
|
|
37
|
-
"stentor-request": "1.
|
|
38
|
-
"stentor-utils": "1.
|
|
34
|
+
"stentor-determiner": "1.48.3",
|
|
35
|
+
"stentor-locales": "1.48.3",
|
|
36
|
+
"stentor-media": "1.48.3",
|
|
37
|
+
"stentor-request": "1.48.3",
|
|
38
|
+
"stentor-utils": "1.48.3"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
41
|
"stentor-models": "1.x"
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"clean": "rm -rf ./lib/* ",
|
|
46
46
|
"test": "mocha --recursive -r ts-node/register \"./src/**/*.test.ts\""
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "4a7fd8d39aac1833e8fdac3b3a36d8ec513714d2"
|
|
49
49
|
}
|