mirror of
https://github.com/HeyPuter/puter.git
synced 2026-05-04 16:40:41 +00:00
chore: update our required node version (#2204)
* feat: fix broken queue bench * chore: update our required node version
This commit is contained in:
@@ -95,7 +95,7 @@
|
||||
"yargs": "^17.7.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^20.5.3",
|
||||
"@types/node": "^24.0.0",
|
||||
"chai": "^4.3.7",
|
||||
"jsdom": "^27.2.0",
|
||||
"mocha": "^10.2.0",
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
*/
|
||||
|
||||
import { bench, describe } from 'vitest';
|
||||
const { CircularQueue } = require('./CircularQueue');
|
||||
import { CircularQueue } from './CircularQueue';
|
||||
|
||||
/**
|
||||
* Naive array-based implementation for comparison (no Map optimization).
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
* Items expire when they are evicted from the queue (when the queue is full
|
||||
* and a new item is pushed).
|
||||
*/
|
||||
class CircularQueue {
|
||||
export class CircularQueue {
|
||||
/**
|
||||
* Creates a new CircularQueue instance with the specified size.
|
||||
*
|
||||
@@ -87,7 +87,3 @@ class CircularQueue {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
CircularQueue,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user