@k3000/store 0.3.0 → 0.3.1
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/architect.mjs +6 -12
- package/package.json +1 -1
package/architect.mjs
CHANGED
@@ -452,9 +452,7 @@ export class Entities extends Array {
|
|
452
452
|
this.#storage.needSave = true
|
453
453
|
}
|
454
454
|
|
455
|
-
|
456
|
-
|
457
|
-
for (const item of items) {
|
455
|
+
return items.map(item => {
|
458
456
|
|
459
457
|
let position
|
460
458
|
|
@@ -471,10 +469,8 @@ export class Entities extends Array {
|
|
471
469
|
|
472
470
|
this.#record.push(position)
|
473
471
|
|
474
|
-
|
475
|
-
}
|
476
|
-
|
477
|
-
return result
|
472
|
+
return this.#assign(position, item)
|
473
|
+
})
|
478
474
|
}
|
479
475
|
|
480
476
|
pop() {
|
@@ -500,7 +496,7 @@ export class Entities extends Array {
|
|
500
496
|
this.#storage.needSave = true
|
501
497
|
}
|
502
498
|
|
503
|
-
|
499
|
+
return items.map(item => {
|
504
500
|
|
505
501
|
let position
|
506
502
|
|
@@ -517,10 +513,8 @@ export class Entities extends Array {
|
|
517
513
|
|
518
514
|
this.#record.unshift(position)
|
519
515
|
|
520
|
-
this.#assign(position, item)
|
521
|
-
}
|
522
|
-
|
523
|
-
return items.length
|
516
|
+
return this.#assign(position, item)
|
517
|
+
})
|
524
518
|
}
|
525
519
|
|
526
520
|
shift() {
|