@tempots/dom 9.0.0 → 9.0.2

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.
@@ -40,9 +40,9 @@ export class RepeatImpl {
40
40
  const cancel = this.times.subscribe((newCount) => {
41
41
  while (newCount < clears.length) {
42
42
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
43
- clears.pop()(true);
43
+ clears.pop()?.(true);
44
44
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
45
- positions.pop().clean();
45
+ positions.pop()?.clean();
46
46
  }
47
47
  for (let i = 0; i < positions.length; i++) {
48
48
  positions[i].set(makePosition(i, newCount));
@@ -81,14 +81,16 @@ export class RepeatImpl {
81
81
  const cancel = this.times.subscribe((newCount) => {
82
82
  while (newCount < clears.length) {
83
83
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
84
- clears.pop()(true);
84
+ clears.pop()?.(true);
85
85
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
86
- positions.pop().clean();
86
+ positions.pop()?.clean();
87
87
  if (separatorClears.length > 0) {
88
88
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
89
- separatorClears.pop()(true);
89
+ separatorClears.pop()?.(true);
90
+ }
91
+ if (separatorProps.length > 0) {
90
92
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
91
- separatorProps.pop().clean();
93
+ separatorProps.pop()?.clean();
92
94
  }
93
95
  }
94
96
  for (let i = 0; i < positions.length; i++) {
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": "9.0.0",
5
+ "version": "9.0.2",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "git+https://github.com/fponticelli/tempots-dom.git"