xypriss 1.2.0 → 1.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/dist/cjs/mods/security/src/index.js +7 -0
  2. package/dist/cjs/mods/security/src/index.js.map +1 -1
  3. package/dist/cjs/src/plugins/modules/PluginRegistry.js +6 -38
  4. package/dist/cjs/src/plugins/modules/PluginRegistry.js.map +1 -1
  5. package/dist/cjs/src/plugins/modules/builtin/JWTAuthPlugin.js +1 -1
  6. package/dist/cjs/src/plugins/modules/builtin/JWTAuthPlugin.js.map +1 -1
  7. package/dist/cjs/src/plugins/modules/builtin/SmartCachePlugin.js +1 -1
  8. package/dist/cjs/src/plugins/modules/builtin/SmartCachePlugin.js.map +1 -1
  9. package/dist/cjs/src/plugins/modules/core/CachePlugin.js +4 -4
  10. package/dist/cjs/src/plugins/modules/core/CachePlugin.js.map +1 -1
  11. package/dist/cjs/src/plugins/modules/core/PerformancePlugin.js +2 -2
  12. package/dist/cjs/src/plugins/modules/core/PerformancePlugin.js.map +1 -1
  13. package/dist/cjs/src/plugins/modules/core/SecurityPlugin.js +2 -2
  14. package/dist/cjs/src/plugins/modules/core/SecurityPlugin.js.map +1 -1
  15. package/dist/cjs/src/plugins/modules/index.js.map +1 -1
  16. package/dist/cjs/src/plugins/modules/network/builtin/RateLimitPlugin.js +1 -1
  17. package/dist/cjs/src/plugins/modules/network/builtin/RateLimitPlugin.js.map +1 -1
  18. package/dist/cjs/src/plugins/modules/types/PluginTypes.js.map +1 -1
  19. package/dist/cjs/src/server/handlers/templates/notFoundTemp.js +1 -1
  20. package/dist/esm/mods/security/src/index.js +1 -0
  21. package/dist/esm/mods/security/src/index.js.map +1 -1
  22. package/dist/esm/src/plugins/modules/PluginRegistry.js +6 -38
  23. package/dist/esm/src/plugins/modules/PluginRegistry.js.map +1 -1
  24. package/dist/esm/src/plugins/modules/builtin/JWTAuthPlugin.js +1 -1
  25. package/dist/esm/src/plugins/modules/builtin/JWTAuthPlugin.js.map +1 -1
  26. package/dist/esm/src/plugins/modules/builtin/SmartCachePlugin.js +1 -1
  27. package/dist/esm/src/plugins/modules/builtin/SmartCachePlugin.js.map +1 -1
  28. package/dist/esm/src/plugins/modules/core/CachePlugin.js +4 -4
  29. package/dist/esm/src/plugins/modules/core/CachePlugin.js.map +1 -1
  30. package/dist/esm/src/plugins/modules/core/PerformancePlugin.js +2 -2
  31. package/dist/esm/src/plugins/modules/core/PerformancePlugin.js.map +1 -1
  32. package/dist/esm/src/plugins/modules/core/SecurityPlugin.js +2 -2
  33. package/dist/esm/src/plugins/modules/core/SecurityPlugin.js.map +1 -1
  34. package/dist/esm/src/plugins/modules/index.js.map +1 -1
  35. package/dist/esm/src/plugins/modules/network/builtin/RateLimitPlugin.js +1 -1
  36. package/dist/esm/src/plugins/modules/network/builtin/RateLimitPlugin.js.map +1 -1
  37. package/dist/esm/src/plugins/modules/types/PluginTypes.js.map +1 -1
  38. package/dist/esm/src/server/handlers/templates/notFoundTemp.js +1 -1
  39. package/dist/index.d.ts +3 -17
  40. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"PluginTypes.js","sources":["../../../../../../src/plugins/modules/types/PluginTypes.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAA;;;;;AAKG;AAMH;AAEA;;AAEG;IACS,WASX;AATD,CAAA,UAAY,UAAU,EAAA;AAClB,IAAA,UAAA,CAAA,aAAA,CAAA,GAAA,aAA2B,CAAA;AAC3B,IAAA,UAAA,CAAA,UAAA,CAAA,GAAA,UAAqB,CAAA;AACrB,IAAA,UAAA,CAAA,SAAA,CAAA,GAAA,SAAmB,CAAA;AACnB,IAAA,UAAA,CAAA,OAAA,CAAA,GAAA,OAAe,CAAA;AACf,IAAA,UAAA,CAAA,aAAA,CAAA,GAAA,aAA2B,CAAA;AAC3B,IAAA,UAAA,CAAA,eAAA,CAAA,GAAA,eAA+B,CAAA;AAC/B,IAAA,UAAA,CAAA,YAAA,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A,CAAA,GAAA,mBAAuC,CAAA;AACvC,IAAA,eAAA,CAAA,qBAAA,CAAA,GAAA,qBAA2C,CAAA;AAC3C,IAAA,eAAA,CAAA,iBAAA,CAAA,GAAA,iBAAmC,CAAA;AACnC,IAAA,eAAA,CAAA,cAAA,CAAA,GAAA,cAA6B,CAAA;AAC7B,IAAA,eAAA,CAAA,gBAAA,CAAA,GAAA,gBAAiC,CAAA;AACjC,IAAA,eAAA,CAAA,gCAAA,CAAA,GAAA,gCAAiE,CAAA;AACrE,CAAC,EAPW,eAAe,KAAf,eAAe,GAO1B,EAAA,CAAA,CAAA;;;;"}
@@ -42,8 +42,8 @@ const notFoundTempHtml = (data) => {
42
42
  * { margin: 0; padding: 0; box-sizing: border-box; }
43
43
  body {
44
44
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
45
- background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
46
45
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
46
+ background: rgb(238, 243, 244);
47
47
  padding: 20px; color: var(--text-primary);
48
48
  }
49
49
  .container {
package/dist/index.d.ts CHANGED
@@ -5416,7 +5416,7 @@ interface PluginInitializationContext {
5416
5416
  cache: SecureCacheAdapter;
5417
5417
  cluster?: ClusterManager;
5418
5418
  config: PluginConfiguration;
5419
- logger: PluginLogger;
5419
+ logger: Logger;
5420
5420
  }
5421
5421
  /**
5422
5422
  * Plugin configuration interface
@@ -5430,16 +5430,6 @@ interface PluginConfiguration {
5430
5430
  securityLevel: "basic" | "enhanced" | "maximum";
5431
5431
  customSettings: Record<string, any>;
5432
5432
  }
5433
- /**
5434
- * Plugin logger interface
5435
- */
5436
- interface PluginLogger {
5437
- debug(message: string, data?: any): void;
5438
- info(message: string, data?: any): void;
5439
- warn(message: string, data?: any): void;
5440
- error(message: string, error?: Error): void;
5441
- performance(pluginId: string, executionTime: number): void;
5442
- }
5443
5433
  /**
5444
5434
  * Performance metrics interface
5445
5435
  */
@@ -11151,10 +11141,6 @@ declare class PluginRegistry extends EventEmitter {
11151
11141
  * Initialize plugin type maps for ultra-fast lookups
11152
11142
  */
11153
11143
  private initializePluginTypes;
11154
- /**
11155
- * Create optimized logger for plugin operations
11156
- */
11157
- private createLogger;
11158
11144
  /**
11159
11145
  * Register a plugin with ultra-fast registration (<0.1ms)
11160
11146
  */
@@ -12074,7 +12060,7 @@ declare class ProxyPlugin extends NetworkPlugin {
12074
12060
  * Advanced rate limiting plugin with Redis support
12075
12061
  */
12076
12062
  declare class RateLimitPlugin extends NetworkPlugin {
12077
- readonly id = "xypriss.network.ratelimit";
12063
+ readonly id = "nehonix.xypriss.network.ratelimit";
12078
12064
  readonly name = "XyPriss Rate Limiting Plugin (XPRL)";
12079
12065
  readonly version = "1.0.0";
12080
12066
  readonly networkCategory = NetworkCategory.RATE_LIMIT;
@@ -12339,4 +12325,4 @@ declare class PluginDevelopmentHelpers {
12339
12325
  declare function quickServer(port?: number): UltraFastApp;
12340
12326
 
12341
12327
  export { AutoScaler, CachePlugin as CachePluginBase, ClusterBuilderFactoryImpl, ClusterConfigBuilder, ClusterFactory, ClusterManager, CompressionPlugin, ConnectionPlugin, DEFAULT_PLUGIN_CONFIG, HealthMonitor, IPCManager, JWTAuthPlugin, LoadBalancer, MetricsCollector, NetworkCategory, NetworkPlugin, NetworkPluginFactory, NetworkPluginUtils, PERFORMANCE_TARGETS, PLUGIN_SYSTEM_NAME, PLUGIN_SYSTEM_VERSION, PerformanceMonitor, PerformancePlugin as PerformancePluginBase, PluginDevelopmentHelpers, PluginEngine, PluginEventType, PluginPriority, PluginRegistry, PluginSystemFactory, PluginSystemUtils, PluginType, ProxyPlugin, RateLimitPlugin, ResponseTimePlugin, Route, SecurityMiddleware, SecurityPlugin as SecurityPluginBase, SmartCachePlugin, UFSMiddleware, WorkerManager, buildCluster, clusterBuilder, clusterBuilderFactory, clusterFactory, createApiCluster, createCacheMiddleware, createCircularRefDebugger, createCluster, createClusterForEnvironment, createClusterMiddleware, createDevelopmentCluster, createMicroserviceCluster, createOptimalCache, createProductionCluster, createSafeJsonMiddleware, createServer, createServerInstance, createTestCluster, createWebCluster, createWorkerCluster, expressStringify, fastStringify, getRecommendedConfig, mergeClusterConfigs, quickServer, safeJsonStringify, safeStringify, sendSafeJson, setClusterDefaults, setupSafeJson, validateClusterConfig, withClusterSupport };
12342
- export type { AutoScaler$1 as AutoScalerInterface, BasePlugin, CacheConfig, CachePlugin$1 as CachePlugin, ClusterBuilder, ClusterBuilderFactory, ClusterConfig, ClusterConfiguration, ClusterEvents, ClusterFactory$1 as ClusterFactoryInterface, ClusterMetrics, ClusterMiddleware, ClusterServerOptions, ClusterState, CompressionAlgorithm, CompressionConfig, ConnectionConfig, FailoverConfig, HTTPCacheConfig, HealthCheckConfig, HealthChecker, CachePlugin$1 as ICachePlugin, PerformancePlugin$1 as IPerformancePlugin, SecurityPlugin$1 as ISecurityPlugin, LoadBalancer$1 as LoadBalancerInterface, LoadBalancingStrategy, NativePlugin, NetworkExecutionContext, NetworkExecutionResult, NetworkHealthStatus, NetworkPluginConfig, NetworkSecurityConfig, PerformanceConfig, PerformanceMetrics, PerformancePlugin$1 as PerformancePlugin, PluginConfiguration, PluginEvent, PluginExecutionContext, PluginExecutionResult, PluginExecutionStats, PluginInitializationContext, PluginLogger, PluginRegistryConfig, ProxyConfig, RateLimitConfig, RateLimitRule, RateLimitStrategy, RedisConfig, RobustClusterManager, RouteConfig, RouteOptions, SecurityConfig, SecurityPlugin$1 as SecurityPlugin, ServerConfig, ServerOptions, SmartRouteConfig, UltraFastApp, UpstreamServer, WebSocketConfig, WorkerMetrics, WorkerPool };
12328
+ export type { AutoScaler$1 as AutoScalerInterface, BasePlugin, CacheConfig, CachePlugin$1 as CachePlugin, ClusterBuilder, ClusterBuilderFactory, ClusterConfig, ClusterConfiguration, ClusterEvents, ClusterFactory$1 as ClusterFactoryInterface, ClusterMetrics, ClusterMiddleware, ClusterServerOptions, ClusterState, CompressionAlgorithm, CompressionConfig, ConnectionConfig, FailoverConfig, HTTPCacheConfig, HealthCheckConfig, HealthChecker, CachePlugin$1 as ICachePlugin, PerformancePlugin$1 as IPerformancePlugin, SecurityPlugin$1 as ISecurityPlugin, LoadBalancer$1 as LoadBalancerInterface, LoadBalancingStrategy, NativePlugin, NetworkExecutionContext, NetworkExecutionResult, NetworkHealthStatus, NetworkPluginConfig, NetworkSecurityConfig, PerformanceConfig, PerformanceMetrics, PerformancePlugin$1 as PerformancePlugin, PluginConfiguration, PluginEvent, PluginExecutionContext, PluginExecutionResult, PluginExecutionStats, PluginInitializationContext, PluginRegistryConfig, ProxyConfig, RateLimitConfig, RateLimitRule, RateLimitStrategy, RedisConfig, RobustClusterManager, RouteConfig, RouteOptions, SecurityConfig, SecurityPlugin$1 as SecurityPlugin, ServerConfig, ServerOptions, SmartRouteConfig, UltraFastApp, UpstreamServer, WebSocketConfig, WorkerMetrics, WorkerPool };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xypriss",
3
- "version": "1.2.0",
3
+ "version": "1.2.2",
4
4
  "description": "XyPriss is a Node.js framework that extends Express.js with additional performance, security, and scalability features. Built with TypeScript, it maintains full Express.js compatibility while adding enterprise-level capabilities for production applications.",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -249,6 +249,6 @@
249
249
  "typescript": "^5.8.3",
250
250
  "ws": "^8.18.2",
251
251
  "xypriss": "^1.0.0",
252
- "xypriss-security": "^1.0.6"
252
+ "xypriss-security": "^1.0.8"
253
253
  }
254
254
  }