qerrors
Version:
Intelligent error handling middleware with AI-powered analysis, environment validation, caching, and production-ready logging. Provides OpenAI-based error suggestions, queue management, retry mechanisms, and comprehensive configuration options for Node.js
9 lines (8 loc) • 332 B
JavaScript
// minimal denque stub providing queue methods for tests
class Denque {
constructor(){ this.items = []; }
push(val){ this.items.push(val); } //add item to end
shift(){ return this.items.shift(); } //remove item from front
get length(){ return this.items.length; } //queue size
}
module.exports = Denque; //export stub class