UNPKG

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) 291 B
// helper stub for temporarily replacing object methods during tests module.exports.stubMethod = function(obj, method, impl) { const original = obj[method]; //save original function obj[method] = impl; return function restore() { obj[method] = original; //restore original }; };