}
},
"typescript": {
- "version": "4.0.5",
- "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.0.5.tgz",
- "integrity": "sha512-ywmr/VrTVCmNTJ6iV2LwIrfG1P+lv6luD8sUJs+2eI9NLGigaN+nUQc13iHqisq7bra9lnmUSYqbJvegraBOPQ==",
+ "version": "4.1.2",
+ "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.1.2.tgz",
+ "integrity": "sha512-thGloWsGH3SOxv1SoY7QojKi0tc+8FnOmiarEGMbd/lar7QOEd3hvlx3Fp5y6FlDUGl9L+pd4n2e+oToGMmhRQ==",
"dev": true
},
"ultron": {
}
push(...items: T[]): number {
- while (this.length > this.size) {
- this.shift();
+ if (this.length + items.length > this.size) {
+ super.splice(0, (this.length + items.length) - this.size);
}
return super.push(...items);
}
unshift(...items: T[]): number {
- while (this.length > this.size) {
- this.pop();
+ if (this.length + items.length > this.size) {
+ super.splice(this.size - items.length, (this.length + items.length) - this.size);
}
return super.unshift(...items);
}