@tempots/dom 7.1.1 → 7.1.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.
@@ -58,7 +58,7 @@ export function OneOfLiteral(props) {
58
58
  }
59
59
  export function OneOfUnion(props) {
60
60
  const { match, using, ...cases } = props;
61
- return new OneOfImpl(match.map(t => ({ [t[using]]: t })), cases);
61
+ return new OneOfImpl(match.map(t => ({ [t != null ? t[using] : '']: t })), cases);
62
62
  }
63
63
  export function OneOfUnionType(props) {
64
64
  return OneOfUnion({ ...props, using: 'type' });
@@ -101,7 +101,7 @@ export class RepeatImpl {
101
101
  index: i
102
102
  });
103
103
  }
104
- for (let i = clears.length; i < newCount; i++) {
104
+ for (let i = clears.length - 1; i < newCount; i++) {
105
105
  positions[i] = new Prop(makePosition(i, count));
106
106
  clears[i] = makeRenderable(this.children(positions[i])).appendTo(newCtx);
107
107
  if (i < newCount - 1) {
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@tempots/dom",
3
3
  "main": "index.js",
4
4
  "types": "index.d.ts",
5
- "version": "7.1.1",
5
+ "version": "7.1.3",
6
6
  "scripts": {
7
7
  "watch": "tsc --watch",
8
8
  "build": "tsc",