verstak 0.23.123 → 0.23.124

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.
@@ -33,11 +33,11 @@ export class Verstak {
33
33
  let ex = undefined;
34
34
  const children = owner.node.children;
35
35
  if (driver.isSeparator) {
36
- const last = children.lastSpecifiedItem();
36
+ const last = children.lastMergedItem();
37
37
  if (((_a = last === null || last === void 0 ? void 0 : last.instance) === null || _a === void 0 ? void 0 : _a.node.driver) === driver)
38
38
  ex = last;
39
39
  }
40
- ex !== null && ex !== void 0 ? ex : (ex = children.specify(key = key || generateKey(owner), undefined, "nested elements can be declared inside update function only"));
40
+ ex !== null && ex !== void 0 ? ex : (ex = children.tryMergeAsExisting(key = key || generateKey(owner), undefined, "nested elements can be declared inside update function only"));
41
41
  if (ex) {
42
42
  result = ex.instance;
43
43
  const node = result.node;
@@ -50,7 +50,7 @@ export class Verstak {
50
50
  }
51
51
  else {
52
52
  result = new ElImpl(key || generateKey(owner), driver, owner, spec);
53
- result.node.slot = children.add(result);
53
+ result.node.slot = children.mergeAsAdded(result);
54
54
  }
55
55
  }
56
56
  else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "verstak",
3
- "version": "0.23.123",
3
+ "version": "0.23.124",
4
4
  "description": "Verstak - Front-End Library",
5
5
  "publisher": "Nezaboodka Software",
6
6
  "license": "Apache-2.0",
@@ -31,7 +31,7 @@
31
31
  },
32
32
  "homepage": "https://github.com/nezaboodka/verstak/blob/master/README.md#readme",
33
33
  "dependencies": {
34
- "reactronic": "^0.23.113"
34
+ "reactronic": "^0.23.114"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@types/node": "20.10.4",