microboard-temp 0.13.82 → 0.13.83
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/cjs/browser.js +4 -1
- package/dist/cjs/index.js +4 -1
- package/dist/cjs/node.js +4 -1
- package/dist/esm/browser.js +4 -1
- package/dist/esm/index.js +4 -1
- package/dist/esm/node.js +4 -1
- package/package.json +1 -1
package/dist/cjs/browser.js
CHANGED
|
@@ -13221,7 +13221,7 @@ var init_BaseItem = __esm(() => {
|
|
|
13221
13221
|
return this.index.items.listAll().map((item) => item.getId());
|
|
13222
13222
|
}
|
|
13223
13223
|
addChildItems(children) {
|
|
13224
|
-
if (!this.index) {
|
|
13224
|
+
if (!this.index || children.length === 0) {
|
|
13225
13225
|
return;
|
|
13226
13226
|
}
|
|
13227
13227
|
this.emit({
|
|
@@ -13236,6 +13236,9 @@ var init_BaseItem = __esm(() => {
|
|
|
13236
13236
|
return;
|
|
13237
13237
|
}
|
|
13238
13238
|
const childrenArr = Array.isArray(children) ? children : [children];
|
|
13239
|
+
if (childrenArr.length === 0) {
|
|
13240
|
+
return;
|
|
13241
|
+
}
|
|
13239
13242
|
this.emit({
|
|
13240
13243
|
class: this.itemType,
|
|
13241
13244
|
method: "removeChildren",
|
package/dist/cjs/index.js
CHANGED
|
@@ -13221,7 +13221,7 @@ var init_BaseItem = __esm(() => {
|
|
|
13221
13221
|
return this.index.items.listAll().map((item) => item.getId());
|
|
13222
13222
|
}
|
|
13223
13223
|
addChildItems(children) {
|
|
13224
|
-
if (!this.index) {
|
|
13224
|
+
if (!this.index || children.length === 0) {
|
|
13225
13225
|
return;
|
|
13226
13226
|
}
|
|
13227
13227
|
this.emit({
|
|
@@ -13236,6 +13236,9 @@ var init_BaseItem = __esm(() => {
|
|
|
13236
13236
|
return;
|
|
13237
13237
|
}
|
|
13238
13238
|
const childrenArr = Array.isArray(children) ? children : [children];
|
|
13239
|
+
if (childrenArr.length === 0) {
|
|
13240
|
+
return;
|
|
13241
|
+
}
|
|
13239
13242
|
this.emit({
|
|
13240
13243
|
class: this.itemType,
|
|
13241
13244
|
method: "removeChildren",
|
package/dist/cjs/node.js
CHANGED
|
@@ -13241,7 +13241,7 @@ var init_BaseItem = __esm(() => {
|
|
|
13241
13241
|
return this.index.items.listAll().map((item) => item.getId());
|
|
13242
13242
|
}
|
|
13243
13243
|
addChildItems(children) {
|
|
13244
|
-
if (!this.index) {
|
|
13244
|
+
if (!this.index || children.length === 0) {
|
|
13245
13245
|
return;
|
|
13246
13246
|
}
|
|
13247
13247
|
this.emit({
|
|
@@ -13256,6 +13256,9 @@ var init_BaseItem = __esm(() => {
|
|
|
13256
13256
|
return;
|
|
13257
13257
|
}
|
|
13258
13258
|
const childrenArr = Array.isArray(children) ? children : [children];
|
|
13259
|
+
if (childrenArr.length === 0) {
|
|
13260
|
+
return;
|
|
13261
|
+
}
|
|
13259
13262
|
this.emit({
|
|
13260
13263
|
class: this.itemType,
|
|
13261
13264
|
method: "removeChildren",
|
package/dist/esm/browser.js
CHANGED
|
@@ -13193,7 +13193,7 @@ var init_BaseItem = __esm(() => {
|
|
|
13193
13193
|
return this.index.items.listAll().map((item) => item.getId());
|
|
13194
13194
|
}
|
|
13195
13195
|
addChildItems(children) {
|
|
13196
|
-
if (!this.index) {
|
|
13196
|
+
if (!this.index || children.length === 0) {
|
|
13197
13197
|
return;
|
|
13198
13198
|
}
|
|
13199
13199
|
this.emit({
|
|
@@ -13208,6 +13208,9 @@ var init_BaseItem = __esm(() => {
|
|
|
13208
13208
|
return;
|
|
13209
13209
|
}
|
|
13210
13210
|
const childrenArr = Array.isArray(children) ? children : [children];
|
|
13211
|
+
if (childrenArr.length === 0) {
|
|
13212
|
+
return;
|
|
13213
|
+
}
|
|
13211
13214
|
this.emit({
|
|
13212
13215
|
class: this.itemType,
|
|
13213
13216
|
method: "removeChildren",
|
package/dist/esm/index.js
CHANGED
|
@@ -13186,7 +13186,7 @@ var init_BaseItem = __esm(() => {
|
|
|
13186
13186
|
return this.index.items.listAll().map((item) => item.getId());
|
|
13187
13187
|
}
|
|
13188
13188
|
addChildItems(children) {
|
|
13189
|
-
if (!this.index) {
|
|
13189
|
+
if (!this.index || children.length === 0) {
|
|
13190
13190
|
return;
|
|
13191
13191
|
}
|
|
13192
13192
|
this.emit({
|
|
@@ -13201,6 +13201,9 @@ var init_BaseItem = __esm(() => {
|
|
|
13201
13201
|
return;
|
|
13202
13202
|
}
|
|
13203
13203
|
const childrenArr = Array.isArray(children) ? children : [children];
|
|
13204
|
+
if (childrenArr.length === 0) {
|
|
13205
|
+
return;
|
|
13206
|
+
}
|
|
13204
13207
|
this.emit({
|
|
13205
13208
|
class: this.itemType,
|
|
13206
13209
|
method: "removeChildren",
|
package/dist/esm/node.js
CHANGED
|
@@ -13208,7 +13208,7 @@ var init_BaseItem = __esm(() => {
|
|
|
13208
13208
|
return this.index.items.listAll().map((item) => item.getId());
|
|
13209
13209
|
}
|
|
13210
13210
|
addChildItems(children) {
|
|
13211
|
-
if (!this.index) {
|
|
13211
|
+
if (!this.index || children.length === 0) {
|
|
13212
13212
|
return;
|
|
13213
13213
|
}
|
|
13214
13214
|
this.emit({
|
|
@@ -13223,6 +13223,9 @@ var init_BaseItem = __esm(() => {
|
|
|
13223
13223
|
return;
|
|
13224
13224
|
}
|
|
13225
13225
|
const childrenArr = Array.isArray(children) ? children : [children];
|
|
13226
|
+
if (childrenArr.length === 0) {
|
|
13227
|
+
return;
|
|
13228
|
+
}
|
|
13226
13229
|
this.emit({
|
|
13227
13230
|
class: this.itemType,
|
|
13228
13231
|
method: "removeChildren",
|