@appsemble/utils 0.32.1-test.16 → 0.32.1-test.17
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/README.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
#  Appsemble Utilities
|
|
2
2
|
|
|
3
3
|
> Internal utility functions used across multiple Appsemble projects.
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/@appsemble/utils)
|
|
6
|
-
[](https://gitlab.com/appsemble/appsemble/-/releases/0.32.1-test.17)
|
|
7
7
|
[](https://prettier.io)
|
|
8
8
|
|
|
9
9
|
## Table of Contents
|
|
@@ -26,5 +26,5 @@ not guaranteed.
|
|
|
26
26
|
|
|
27
27
|
## License
|
|
28
28
|
|
|
29
|
-
[LGPL-3.0-only](https://gitlab.com/appsemble/appsemble/-/blob/0.32.1-test.
|
|
29
|
+
[LGPL-3.0-only](https://gitlab.com/appsemble/appsemble/-/blob/0.32.1-test.17/LICENSE.md) ©
|
|
30
30
|
[Appsemble](https://appsemble.com)
|
|
@@ -14,6 +14,10 @@ export const FlowPageActionsDefinition = {
|
|
|
14
14
|
A flow is finished when \`flow.finish\` gets called, or when \`flow.next\` gets called on the final
|
|
15
15
|
subpage. This action has a special property in which the cumulative input data from each previous subpage gets sent, instead of the individual block that triggered this action.`,
|
|
16
16
|
},
|
|
17
|
+
onLoad: {
|
|
18
|
+
$ref: '#/components/schemas/ActionDefinition',
|
|
19
|
+
description: 'This action is fired when a page loads, highly helpful in loading data for the page',
|
|
20
|
+
},
|
|
17
21
|
},
|
|
18
22
|
};
|
|
19
23
|
//# sourceMappingURL=FlowPageActionsDefinition.js.map
|
package/iterApp.js
CHANGED
|
@@ -19,8 +19,8 @@ export function iterAction(action, callbacks, prefix = []) {
|
|
|
19
19
|
return true;
|
|
20
20
|
}
|
|
21
21
|
if (action.type === 'condition') {
|
|
22
|
-
return Boolean(iterAction(action.then, callbacks, [...prefix, 'then']) ||
|
|
23
|
-
iterAction(action.else, callbacks, [...prefix, 'else']));
|
|
22
|
+
return Boolean(iterAction(action.then ?? { type: 'noop' }, callbacks, [...prefix, 'then']) ||
|
|
23
|
+
iterAction(action.else ?? { type: 'noop' }, callbacks, [...prefix, 'else']));
|
|
24
24
|
}
|
|
25
25
|
if (action.type === 'each') {
|
|
26
26
|
return iterAction(action.do, callbacks, [...prefix, 'do']);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@appsemble/utils",
|
|
3
|
-
"version": "0.32.1-test.
|
|
3
|
+
"version": "0.32.1-test.17",
|
|
4
4
|
"description": "Utility functions used in Appsemble internally",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"app",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"test": "vitest"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@appsemble/types": "0.32.1-test.
|
|
42
|
+
"@appsemble/types": "0.32.1-test.17",
|
|
43
43
|
"@odata/parser": "^0.2.14",
|
|
44
44
|
"axios": "^1.0.0",
|
|
45
45
|
"cron-parser": "^4.0.0",
|