@lowdefy/engine 4.0.0-rc.7 → 4.0.0-rc.9

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/Blocks.js CHANGED
@@ -190,7 +190,7 @@ let Blocks = class Blocks {
190
190
  if (type.isUndefined(blockValue)) {
191
191
  // default null value for block type
192
192
  blockValue = type.isUndefined(block.meta.initValue) ? type.enforceType(block.meta.valueType, null) : block.meta.initValue;
193
- this.context._internal.State.set(block.blockId, block.value);
193
+ this.context._internal.State.set(block.blockId, blockValue);
194
194
  }
195
195
  if (block.meta.category === 'list') {
196
196
  // load list value into list blocks
@@ -0,0 +1,20 @@
1
+ /*
2
+ Copyright 2020-2023 Lowdefy, Inc
3
+
4
+ Licensed under the Apache License, Version 2.0 (the "License");
5
+ you may not use this file except in compliance with the License.
6
+ You may obtain a copy of the License at
7
+
8
+ http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ Unless required by applicable law or agreed to in writing, software
11
+ distributed under the License is distributed on an "AS IS" BASIS,
12
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ See the License for the specific language governing permissions and
14
+ limitations under the License.
15
+ */ function createUpdateSession({ context }) {
16
+ return function updateSession() {
17
+ return context._internal.lowdefy._internal.auth.updateSession();
18
+ };
19
+ }
20
+ export default createUpdateSession;
@@ -32,6 +32,7 @@ import createReset from './createReset.js';
32
32
  import createResetValidation from './createResetValidation.js';
33
33
  import createSetGlobal from './createSetGlobal.js';
34
34
  import createSetState from './createSetState.js';
35
+ import createUpdateSession from './createUpdateSession.js';
35
36
  import createValidate from './createValidate.js';
36
37
  function getActionMethods(props) {
37
38
  return {
@@ -55,6 +56,7 @@ function getActionMethods(props) {
55
56
  resetValidation: createResetValidation(props),
56
57
  setGlobal: createSetGlobal(props),
57
58
  setState: createSetState(props),
59
+ updateSession: createUpdateSession(props),
58
60
  validate: createValidate(props)
59
61
  };
60
62
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lowdefy/engine",
3
- "version": "4.0.0-rc.7",
3
+ "version": "4.0.0-rc.9",
4
4
  "license": "Apache-2.0",
5
5
  "description": "",
6
6
  "homepage": "https://lowdefy.com",
@@ -36,15 +36,15 @@
36
36
  "test": "node --experimental-vm-modules node_modules/jest/bin/jest.js"
37
37
  },
38
38
  "dependencies": {
39
- "@lowdefy/helpers": "4.0.0-rc.7",
40
- "@lowdefy/operators": "4.0.0-rc.7"
39
+ "@lowdefy/helpers": "4.0.0-rc.9",
40
+ "@lowdefy/operators": "4.0.0-rc.9"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@jest/globals": "28.1.0",
44
- "@lowdefy/actions-core": "4.0.0-rc.7",
45
- "@lowdefy/build": "4.0.0-rc.7",
46
- "@lowdefy/operators-js": "4.0.0-rc.7",
47
- "@lowdefy/operators-mql": "4.0.0-rc.7",
44
+ "@lowdefy/actions-core": "4.0.0-rc.9",
45
+ "@lowdefy/build": "4.0.0-rc.9",
46
+ "@lowdefy/operators-js": "4.0.0-rc.9",
47
+ "@lowdefy/operators-mql": "4.0.0-rc.9",
48
48
  "@swc/cli": "0.1.59",
49
49
  "@swc/core": "1.3.24",
50
50
  "@swc/jest": "0.2.24",
@@ -53,5 +53,5 @@
53
53
  "publishConfig": {
54
54
  "access": "public"
55
55
  },
56
- "gitHead": "0bbeceb0a73e7c8061d83829bb5066f08cacf094"
56
+ "gitHead": "d20e6ac424643feca527a732dc2b0710713c8243"
57
57
  }