UNPKG

xypriss-security

Version:

XyPriss Security is an advanced JavaScript security library designed for enterprise applications. It provides military-grade encryption, secure data structures, quantum-resistant cryptography, and comprehensive security utilities for modern web applicatio

57 lines (55 loc) 2.07 kB
'use strict'; /** * Memory Management Types for XyPrissSecurity * * This file contains all type definitions for the memory management system */ /** * Pool strategy enumeration */ exports.PoolStrategy = void 0; (function (PoolStrategy) { PoolStrategy["LIFO"] = "lifo"; PoolStrategy["FIFO"] = "fifo"; PoolStrategy["LRU"] = "lru"; PoolStrategy["ADAPTIVE"] = "adaptive"; })(exports.PoolStrategy || (exports.PoolStrategy = {})); /** * Memory event types */ exports.MemoryEventType = void 0; (function (MemoryEventType) { MemoryEventType["GC_TRIGGERED"] = "gc_triggered"; MemoryEventType["GC_COMPLETED"] = "gc_completed"; MemoryEventType["MEMORY_PRESSURE"] = "memory_pressure"; MemoryEventType["LEAK_DETECTED"] = "leak_detected"; MemoryEventType["POOL_CREATED"] = "pool_created"; MemoryEventType["POOL_DESTROYED"] = "pool_destroyed"; MemoryEventType["OBJECT_TRACKED"] = "object_tracked"; MemoryEventType["OBJECT_RELEASED"] = "object_released"; MemoryEventType["CONFIG_UPDATED"] = "config_updated"; MemoryEventType["ERROR_OCCURRED"] = "error_occurred"; })(exports.MemoryEventType || (exports.MemoryEventType = {})); /** * Memory pressure levels */ exports.MemoryPressureLevel = void 0; (function (MemoryPressureLevel) { MemoryPressureLevel["LOW"] = "low"; MemoryPressureLevel["MEDIUM"] = "medium"; MemoryPressureLevel["HIGH"] = "high"; MemoryPressureLevel["CRITICAL"] = "critical"; })(exports.MemoryPressureLevel || (exports.MemoryPressureLevel = {})); /** * Error types for memory management */ exports.MemoryErrorType = void 0; (function (MemoryErrorType) { MemoryErrorType["ALLOCATION_FAILED"] = "allocation_failed"; MemoryErrorType["POOL_OVERFLOW"] = "pool_overflow"; MemoryErrorType["LEAK_DETECTED"] = "leak_detected"; MemoryErrorType["GC_FAILED"] = "gc_failed"; MemoryErrorType["CONFIG_INVALID"] = "config_invalid"; MemoryErrorType["TRACKER_ERROR"] = "tracker_error"; })(exports.MemoryErrorType || (exports.MemoryErrorType = {})); //# sourceMappingURL=types.js.map