@lowdefy/api 4.0.0-alpha.31 → 4.0.0-alpha.34
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.
|
@@ -51,9 +51,10 @@ async function callRequest(context, { blockId , pageId , payload , requestId })
|
|
|
51
51
|
connection,
|
|
52
52
|
requestConfig
|
|
53
53
|
});
|
|
54
|
+
const deserializedPayload = serializer.deserialize(payload);
|
|
54
55
|
const { connectionProperties , requestProperties } = evaluateOperators(context, {
|
|
55
56
|
connectionConfig,
|
|
56
|
-
payload:
|
|
57
|
+
payload: deserializedPayload,
|
|
57
58
|
requestConfig
|
|
58
59
|
});
|
|
59
60
|
checkConnectionRead(context, {
|
|
@@ -76,10 +77,12 @@ async function callRequest(context, { blockId , pageId , payload , requestId })
|
|
|
76
77
|
requestProperties
|
|
77
78
|
});
|
|
78
79
|
const response = await callRequestResolver(context, {
|
|
80
|
+
blockId,
|
|
79
81
|
connectionProperties,
|
|
82
|
+
payload: deserializedPayload,
|
|
80
83
|
requestConfig,
|
|
81
|
-
|
|
82
|
-
|
|
84
|
+
requestProperties,
|
|
85
|
+
requestResolver
|
|
83
86
|
});
|
|
84
87
|
return {
|
|
85
88
|
id: requestConfig.id,
|
|
@@ -13,11 +13,15 @@
|
|
|
13
13
|
See the License for the specific language governing permissions and
|
|
14
14
|
limitations under the License.
|
|
15
15
|
*/ import { RequestError } from '../../context/errors.js';
|
|
16
|
-
async function callRequestResolver({ logger }, { connectionProperties , requestConfig , requestProperties , requestResolver }) {
|
|
16
|
+
async function callRequestResolver({ logger }, { blockId , connectionProperties , payload , requestConfig , requestProperties , requestResolver }) {
|
|
17
17
|
try {
|
|
18
18
|
const response = await requestResolver({
|
|
19
|
+
blockId,
|
|
20
|
+
connection: connectionProperties,
|
|
21
|
+
pageId: requestConfig.pageId,
|
|
22
|
+
payload,
|
|
19
23
|
request: requestProperties,
|
|
20
|
-
|
|
24
|
+
requestId: requestConfig.requestId
|
|
21
25
|
});
|
|
22
26
|
return response;
|
|
23
27
|
} catch (error) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lowdefy/api",
|
|
3
|
-
"version": "4.0.0-alpha.
|
|
3
|
+
"version": "4.0.0-alpha.34",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "",
|
|
6
6
|
"homepage": "https://lowdefy.com",
|
|
@@ -40,12 +40,12 @@
|
|
|
40
40
|
"test": "node --experimental-vm-modules node_modules/jest/bin/jest.js"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@lowdefy/ajv": "4.0.0-alpha.
|
|
44
|
-
"@lowdefy/helpers": "4.0.0-alpha.
|
|
45
|
-
"@lowdefy/node-utils": "4.0.0-alpha.
|
|
46
|
-
"@lowdefy/nunjucks": "4.0.0-alpha.
|
|
47
|
-
"@lowdefy/operators": "4.0.0-alpha.
|
|
48
|
-
"@lowdefy/operators-js": "4.0.0-alpha.
|
|
43
|
+
"@lowdefy/ajv": "4.0.0-alpha.34",
|
|
44
|
+
"@lowdefy/helpers": "4.0.0-alpha.34",
|
|
45
|
+
"@lowdefy/node-utils": "4.0.0-alpha.34",
|
|
46
|
+
"@lowdefy/nunjucks": "4.0.0-alpha.34",
|
|
47
|
+
"@lowdefy/operators": "4.0.0-alpha.34",
|
|
48
|
+
"@lowdefy/operators-js": "4.0.0-alpha.34"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@jest/globals": "28.1.0",
|
|
@@ -57,5 +57,5 @@
|
|
|
57
57
|
"publishConfig": {
|
|
58
58
|
"access": "public"
|
|
59
59
|
},
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "5e801532cef950b947c0069a5ba1a8f5ed6bb66f"
|
|
61
61
|
}
|