@vope/utils 1.4.8 → 1.4.9
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/cjs/index.js +3 -3
- package/lib/memory/basic.js +3 -3
- package/package.json +1 -1
package/cjs/index.js
CHANGED
|
@@ -397,9 +397,9 @@ var MemoryBasic = class {
|
|
|
397
397
|
return this;
|
|
398
398
|
for (const [type, target] of memorys) {
|
|
399
399
|
const memory = this.#reflex(target);
|
|
400
|
-
memory.forEach((value,
|
|
401
|
-
if (value >=
|
|
402
|
-
memory[
|
|
400
|
+
memory.forEach((value, i) => {
|
|
401
|
+
if (value >= index) {
|
|
402
|
+
memory[i] = value - 1;
|
|
403
403
|
}
|
|
404
404
|
});
|
|
405
405
|
if (memory !== target) {
|
package/lib/memory/basic.js
CHANGED
|
@@ -93,9 +93,9 @@ class MemoryBasic {
|
|
|
93
93
|
return this;
|
|
94
94
|
for (const [type, target] of memorys) {
|
|
95
95
|
const memory = this.#reflex(target);
|
|
96
|
-
memory.forEach((value,
|
|
97
|
-
if (value >=
|
|
98
|
-
memory[
|
|
96
|
+
memory.forEach((value, i) => {
|
|
97
|
+
if (value >= index) {
|
|
98
|
+
memory[i] = value - 1;
|
|
99
99
|
}
|
|
100
100
|
});
|
|
101
101
|
if (memory !== target) {
|