xypriss 8.1.2 → 8.1.3
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.
- package/README.md +72 -48
- package/dist/cjs/mods/security/src/index.js +10 -87
- package/dist/cjs/mods/security/src/index.js.map +1 -1
- package/dist/cjs/src/index.js +32 -40
- package/dist/cjs/src/index.js.map +1 -1
- package/dist/cjs/src/plugins/PluginManager.js +389 -0
- package/dist/cjs/src/plugins/PluginManager.js.map +1 -0
- package/dist/cjs/src/plugins/modules/builtin/server-maintenance-plugin.js +588 -0
- package/dist/cjs/src/plugins/modules/builtin/server-maintenance-plugin.js.map +1 -0
- package/dist/cjs/src/plugins/modules/network/core/NetworkPluginFactory.js.map +1 -1
- package/dist/cjs/src/plugins/modules/types/PluginTypes.js.map +1 -1
- package/dist/cjs/src/plugins/modules/xems/XemsPlugin.js +159 -0
- package/dist/cjs/src/plugins/modules/xems/XemsPlugin.js.map +1 -0
- package/dist/cjs/src/plugins/plugin-manager.js +1 -1
- package/dist/cjs/src/plugins/plugin-manager.js.map +1 -1
- package/dist/cjs/src/server/FastServer.js +7 -27
- package/dist/cjs/src/server/FastServer.js.map +1 -1
- package/dist/cjs/src/server/core/HttpServer.js +6 -1
- package/dist/cjs/src/server/core/HttpServer.js.map +1 -1
- package/dist/cjs/src/server/core/XyServerCreator.js +1 -1
- package/dist/esm/mods/security/src/index.js +7 -82
- package/dist/esm/mods/security/src/index.js.map +1 -1
- package/dist/esm/src/index.js +9 -11
- package/dist/esm/src/index.js.map +1 -1
- package/dist/esm/src/plugins/PluginManager.js +387 -0
- package/dist/esm/src/plugins/PluginManager.js.map +1 -0
- package/dist/esm/src/plugins/modules/builtin/server-maintenance-plugin.js +566 -0
- package/dist/esm/src/plugins/modules/builtin/server-maintenance-plugin.js.map +1 -0
- package/dist/esm/src/plugins/modules/network/core/NetworkPluginFactory.js.map +1 -1
- package/dist/esm/src/plugins/modules/types/PluginTypes.js.map +1 -1
- package/dist/esm/src/plugins/modules/xems/XemsPlugin.js +154 -0
- package/dist/esm/src/plugins/modules/xems/XemsPlugin.js.map +1 -0
- package/dist/esm/src/plugins/plugin-manager.js +1 -1
- package/dist/esm/src/plugins/plugin-manager.js.map +1 -1
- package/dist/esm/src/server/FastServer.js +7 -27
- package/dist/esm/src/server/FastServer.js.map +1 -1
- package/dist/esm/src/server/core/HttpServer.js +6 -1
- package/dist/esm/src/server/core/HttpServer.js.map +1 -1
- package/dist/esm/src/server/core/XyServerCreator.js +1 -1
- package/dist/index.d.ts +1282 -2991
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
[](https://dll.nehonix.com/licenses/NOSL)
|
|
9
9
|
[](https://nehonix.com)
|
|
10
10
|
|
|
11
|
-
[Quick Start](
|
|
11
|
+
[Quick Start](https://xypriss.nehonix.com/docs/QUICK_START) • [Documentation](https://xypriss.nehonix.com/docs/) • [Examples](https://xypriss.nehonix.com/docs/EXAMPLES) • [API Reference](https://xypriss.nehonix.com/docs/api-reference)
|
|
12
12
|
|
|
13
13
|
</div>
|
|
14
14
|
|
|
@@ -20,6 +20,21 @@
|
|
|
20
20
|
|
|
21
21
|
XyPriss is a **Hybrid Enterprise-Grade Web Framework** that bridges the power of **Rust** with the flexibility of **TypeScript**.
|
|
22
22
|
|
|
23
|
+
### Cross-Platform Foundation
|
|
24
|
+
|
|
25
|
+
At its core, XyPriss is engineered for universal high-performance. We provide native Rust binaries (XFPM & XHSC) for:
|
|
26
|
+
|
|
27
|
+
| OS | Architecture | Status |
|
|
28
|
+
| ----------- | ----------------------- | ---------------- |
|
|
29
|
+
| **Linux** | x86_64 (AMD64) | ✅ Supported |
|
|
30
|
+
| **Linux** | aarch64 (ARM64) | ✅ Supported |
|
|
31
|
+
| **Windows** | x86_64 (AMD64) | ✅ Supported |
|
|
32
|
+
| **Windows** | aarch64 (ARM64) | ✅ Supported |
|
|
33
|
+
| **macOS** | x86_64 (Intel) | 🛠️ Source-only\* |
|
|
34
|
+
| **macOS** | aarch64 (Apple Silicon) | 🛠️ Source-only\* |
|
|
35
|
+
|
|
36
|
+
_We are committed to future-proofing our engine for emerging architectures like RISC-V._
|
|
37
|
+
|
|
23
38
|
At its heart lies **XHSC (XyPriss Hybrid Server Core)**, a high-performance Rust engine that handles low-level networking, advanced routing, and system telemetry. This unique hybrid architecture allows developers to build secure, scalable applications using TypeScript while benefiting from Rust's raw performance and multi-core efficiency.
|
|
24
39
|
|
|
25
40
|
### Architecture & Tools
|
|
@@ -28,26 +43,33 @@ XyPriss operates on a unified strategy:
|
|
|
28
43
|
|
|
29
44
|
1. **XHSC (Rust Engine):** Manages the HTTP/S stack, ultra-fast radix routing, and real-time hardware monitoring. It acts as the high-speed gateway for all incoming traffic.
|
|
30
45
|
2. **Node.js Runtime:** Provides the enterprise-ready application layer where developers manage business logic, security middlewares, and data processing using TypeScript.
|
|
31
|
-
3. **XyPriss
|
|
46
|
+
3. **XFPM (XyPriss Fast Package Manager):** Our ultra-fast, Rust-powered developer tool. **We highly recommend using `xfpm` for all operations.** It provides optimized resolution, ultra-fast extraction, and caching tailored for the XyPriss ecosystem. [Learn more about XFPM](https://xypriss.nehonix.com/docs/xfpm?kw=XFPM%20is%20the%20high-performance).
|
|
32
47
|
|
|
33
48
|
### Core Features
|
|
34
49
|
|
|
35
|
-
-
|
|
36
|
-
-
|
|
37
|
-
-
|
|
38
|
-
-
|
|
39
|
-
-
|
|
40
|
-
-
|
|
41
|
-
-
|
|
50
|
+
- **High Performance XHSC Engine** - Independent Rust server core implementation with multi-core clustering support and high-precision system telemetry.
|
|
51
|
+
- **Security-First Architecture** - 12+ built-in security middleware modules including CSRF protection, XSS prevention, and intelligent rate limiting.
|
|
52
|
+
- **Advanced Radix Routing** - Ultra-fast routing system powered by Rust, capable of handling complex path matching with microsecond latency.
|
|
53
|
+
- **File Upload Management** - Production-ready multipart/form-data handling with automatic validation and error handling.
|
|
54
|
+
- **Extensible Plugin System** - Permission-based plugin architecture with lifecycle hooks and security controls.
|
|
55
|
+
- **Native Production Integration** - Built for automated deployments and SSL management via [XyNginC](https://github.com/Nehonix-Team/xynginc).
|
|
56
|
+
- **Multi-Server Support** - Run multiple server instances with isolated configurations and security policies.
|
|
42
57
|
|
|
43
58
|
---
|
|
44
59
|
|
|
45
60
|
We strongly recommend using the **XyPriss CLI (`xyp`)** for the fastest and most reliable developer experience.
|
|
46
61
|
|
|
62
|
+
Refer to the [**Installation Guide**](https://xypriss.nehonix.com/docs/installation?q=install%20xfpm&kw=This%20document%20provides%20step-by-step%20in) for detailed platform-specific instructions.
|
|
63
|
+
|
|
64
|
+
### Quick Install (Unix)
|
|
65
|
+
|
|
47
66
|
```bash
|
|
48
|
-
|
|
49
|
-
|
|
67
|
+
curl -sL https://xypriss.nehonix.com/install.js | node
|
|
68
|
+
```
|
|
50
69
|
|
|
70
|
+
Once installed, you can manage your project dependencies with ultra-high performance:
|
|
71
|
+
|
|
72
|
+
```bash
|
|
51
73
|
# Install XyPriss in your project
|
|
52
74
|
xyp install xypriss
|
|
53
75
|
```
|
|
@@ -55,7 +77,7 @@ xyp install xypriss
|
|
|
55
77
|
Alternatively, using standard package managers:
|
|
56
78
|
|
|
57
79
|
```bash
|
|
58
|
-
|
|
80
|
+
xfpm i xypriss
|
|
59
81
|
# or
|
|
60
82
|
yarn add xypriss
|
|
61
83
|
```
|
|
@@ -63,7 +85,7 @@ yarn add xypriss
|
|
|
63
85
|
For additional security features:
|
|
64
86
|
|
|
65
87
|
```bash
|
|
66
|
-
|
|
88
|
+
xfpm install xypriss-security
|
|
67
89
|
```
|
|
68
90
|
|
|
69
91
|
---
|
|
@@ -73,9 +95,9 @@ npm install xypriss-security
|
|
|
73
95
|
### Using CLI
|
|
74
96
|
|
|
75
97
|
```bash
|
|
76
|
-
|
|
98
|
+
xfpm init
|
|
77
99
|
cd my-app
|
|
78
|
-
|
|
100
|
+
xfpm dev # or xyp dev (both are the same)
|
|
79
101
|
```
|
|
80
102
|
|
|
81
103
|
### Manual Setup
|
|
@@ -95,7 +117,7 @@ app.get("/", (req, res) => {
|
|
|
95
117
|
app.start();
|
|
96
118
|
```
|
|
97
119
|
|
|
98
|
-
**[Complete Quick Start Guide](
|
|
120
|
+
**[Complete Quick Start Guide](https://xypriss.nehonix.com/docs/QUICK_START)**
|
|
99
121
|
|
|
100
122
|
---
|
|
101
123
|
|
|
@@ -103,30 +125,31 @@ app.start();
|
|
|
103
125
|
|
|
104
126
|
### Getting Started
|
|
105
127
|
|
|
106
|
-
-
|
|
107
|
-
-
|
|
108
|
-
-
|
|
128
|
+
- [Quick Start Guide](https://xypriss.nehonix.com/docs/QUICK_START) - Installation and basic setup
|
|
129
|
+
- [XFPM Guide](https://xypriss.nehonix.com/docs/xfpm) - Using the XyPriss Fast Package Manager
|
|
130
|
+
- [Examples](https://xypriss.nehonix.com/docs/EXAMPLES) - Practical code examples
|
|
131
|
+
- [Features Overview](https://xypriss.nehonix.com/docs/FEATURES_OVERVIEW) - Comprehensive feature list
|
|
109
132
|
|
|
110
133
|
### Core Guides
|
|
111
134
|
|
|
112
|
-
-
|
|
113
|
-
-
|
|
114
|
-
-
|
|
115
|
-
-
|
|
116
|
-
-
|
|
135
|
+
- [Routing](https://xypriss.nehonix.com/docs/ROUTING) - Route configuration and middleware
|
|
136
|
+
- [Security](https://xypriss.nehonix.com/docs/SECURITY) - Security features and best practices
|
|
137
|
+
- [File Upload](./docs/FILE_UPLOAD_GUIDE.md) - File upload handling
|
|
138
|
+
- [Configuration](https://xypriss.nehonix.com/docs/CONFIGURATION) - Complete configuration reference
|
|
139
|
+
- [Multi-Server](https://xypriss.nehonix.com/docs/MULTI_SERVER) - Multi-server deployment
|
|
117
140
|
|
|
118
141
|
### Plugin System
|
|
119
142
|
|
|
120
|
-
-
|
|
121
|
-
-
|
|
122
|
-
-
|
|
123
|
-
-
|
|
143
|
+
- [Plugin Development](https://xypriss.nehonix.com/docs/PLUGIN_DEVELOPMENT_GUIDE) - Creating plugins
|
|
144
|
+
- [Plugin Hooks](https://xypriss.nehonix.com/docs/PLUGIN_CORE_HOOKS) - Available lifecycle hooks
|
|
145
|
+
- [Plugin Permissions](https://xypriss.nehonix.com/docs/PLUGIN_PERMISSIONS) - Security and permissions
|
|
146
|
+
- [Console Intercept Hook](https://xypriss.nehonix.com/docs/CONSOLE_INTERCEPT_HOOK) - Console monitoring
|
|
124
147
|
|
|
125
148
|
### Advanced Topics
|
|
126
149
|
|
|
127
|
-
-
|
|
128
|
-
-
|
|
129
|
-
-
|
|
150
|
+
- [XJson API](./docs/XJSON_API.md) - Advanced JSON serialization
|
|
151
|
+
- [Clustering](./docs/bun-clustering.md) - Multi-worker scaling
|
|
152
|
+
- [Performance Tuning](./docs/cluster-performance-tuning.md) - Optimization strategies
|
|
130
153
|
|
|
131
154
|
**[View All Documentation](./docs/)**
|
|
132
155
|
|
|
@@ -148,9 +171,9 @@ While we maintain rigorous security standards, we acknowledge that vulnerabiliti
|
|
|
148
171
|
|
|
149
172
|
We are committed to:
|
|
150
173
|
|
|
151
|
-
-
|
|
152
|
-
-
|
|
153
|
-
-
|
|
174
|
+
- Acknowledging receipt of your report within 48 hours
|
|
175
|
+
- Providing regular updates on our progress
|
|
176
|
+
- Crediting researchers who responsibly disclose vulnerabilities
|
|
154
177
|
|
|
155
178
|
Your assistance in maintaining the security of XyPriss is greatly appreciated.
|
|
156
179
|
|
|
@@ -170,11 +193,11 @@ XyPriss is an open-source project that welcomes contributions from the community
|
|
|
170
193
|
|
|
171
194
|
### Contribution Guidelines
|
|
172
195
|
|
|
173
|
-
-
|
|
174
|
-
-
|
|
175
|
-
-
|
|
176
|
-
-
|
|
177
|
-
-
|
|
196
|
+
- Follow the existing code style and conventions
|
|
197
|
+
- Include tests for new features
|
|
198
|
+
- Update documentation as needed
|
|
199
|
+
- Ensure all tests pass before submitting
|
|
200
|
+
- Write clear commit messages
|
|
178
201
|
|
|
179
202
|
**[Read the Complete Contributing Guide](./CONTRIBUTING.md)**
|
|
180
203
|
|
|
@@ -184,20 +207,21 @@ XyPriss is an open-source project that welcomes contributions from the community
|
|
|
184
207
|
|
|
185
208
|
### Resources
|
|
186
209
|
|
|
187
|
-
-
|
|
188
|
-
-
|
|
189
|
-
-
|
|
190
|
-
-
|
|
191
|
-
-
|
|
210
|
+
- **Documentation** - [Complete guides and API reference](https://xypriss.nehonix.com/docs/)
|
|
211
|
+
- **GitHub Discussions** - [Community Q&A and feature discussions](https://github.com/Nehonix-Team/XyPriss/discussions)
|
|
212
|
+
- **Issue Tracker** - [Bug reports and feature requests](https://github.com/Nehonix-Team/XyPriss/issues)
|
|
213
|
+
- **Security** - [Report vulnerabilities](mailto:support@team.nehonix.com)
|
|
214
|
+
- **Website** - [Learn more about Nehonix](https://nehonix.com)
|
|
192
215
|
|
|
193
216
|
### Support the Project
|
|
194
217
|
|
|
195
218
|
If XyPriss has been valuable for your projects, consider:
|
|
196
219
|
|
|
197
|
-
-
|
|
198
|
-
-
|
|
199
|
-
-
|
|
200
|
-
-
|
|
220
|
+
- Starring the repository on GitHub
|
|
221
|
+
- Sharing the project with your network
|
|
222
|
+
- Contributing to the codebase or documentation
|
|
223
|
+
- Providing feedback and suggestions
|
|
224
|
+
- Giving us a star on GitHub
|
|
201
225
|
|
|
202
226
|
---
|
|
203
227
|
|
|
@@ -1,14 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var crypto = require('./core/crypto.js');
|
|
4
|
-
var index$2 = require('./components/secure-object/index.js');
|
|
5
|
-
require('./utils/memory/index.js');
|
|
6
4
|
require('crypto');
|
|
7
5
|
require('./types/secure-memory.js');
|
|
8
|
-
require('./
|
|
9
|
-
require('./components/secure-string/advanced/quantum-safe.js');
|
|
10
|
-
require('./components/secure-string/advanced/performance-monitor.js');
|
|
11
|
-
require('./components/secure-array/utils/id-generator.js');
|
|
6
|
+
require('./utils/memory/index.js');
|
|
12
7
|
var hashCore = require('./core/hash/hash-core.js');
|
|
13
8
|
var hashTypes = require('./core/hash/hash-types.js');
|
|
14
9
|
var hashSecurity = require('./core/hash/hash-security.js');
|
|
@@ -19,6 +14,11 @@ var randomTypes = require('./core/random/random-types.js');
|
|
|
19
14
|
var randomSources = require('./core/random/random-sources.js');
|
|
20
15
|
require('strulink');
|
|
21
16
|
var types = require('./types.js');
|
|
17
|
+
require('./components/secure-string/advanced/entropy-analyzer.js');
|
|
18
|
+
require('./components/secure-string/advanced/quantum-safe.js');
|
|
19
|
+
require('./components/secure-string/advanced/performance-monitor.js');
|
|
20
|
+
require('nehoid');
|
|
21
|
+
require('./components/secure-array/utils/id-generator.js');
|
|
22
22
|
var passwordTypes = require('./core/password/password-types.js');
|
|
23
23
|
require('./core/keys/keys-types.js');
|
|
24
24
|
require('./core/keys/keys-logger.js');
|
|
@@ -35,10 +35,9 @@ require('./components/fortified-function/core/fortified-config.js');
|
|
|
35
35
|
require('./components/fortified-function/core/fortified-logger.js');
|
|
36
36
|
require('events');
|
|
37
37
|
require('./components/fortified-function/serializer/safe-serializer.js');
|
|
38
|
-
require('nehoid');
|
|
39
38
|
require('../../../shared/logger/Logger.js');
|
|
40
39
|
require('./components/fortified-function/UFA/ultra-fast-allocator.js');
|
|
41
|
-
var index$
|
|
40
|
+
var index$2 = require('./components/cache/index.js');
|
|
42
41
|
var passwordCore = require('./core/password/password-core.js');
|
|
43
42
|
|
|
44
43
|
/***************************************************************************
|
|
@@ -304,80 +303,6 @@ hashCore.Hash.verifyHash;
|
|
|
304
303
|
* @deprecated Consider using PasswordManager.getInstance() for explicit configuration
|
|
305
304
|
*/
|
|
306
305
|
passwordCore.PasswordManager.getInstance();
|
|
307
|
-
/**
|
|
308
|
-
* ### Create Secure Object
|
|
309
|
-
*
|
|
310
|
-
* Creates a secure object instance with encryption, metadata management,
|
|
311
|
-
* and comprehensive security features for sensitive data storage.
|
|
312
|
-
*
|
|
313
|
-
* **Key Features:**
|
|
314
|
-
* - Automatic encryption for sensitive values
|
|
315
|
-
* - Metadata tracking and management
|
|
316
|
-
* - Event-driven architecture
|
|
317
|
-
* - Secure serialization and deserialization
|
|
318
|
-
* - Memory protection and cleanup
|
|
319
|
-
*
|
|
320
|
-
* @param initialData - The initial data to store in the secure object
|
|
321
|
-
* @param options - Configuration options for encryption and security
|
|
322
|
-
* @returns A new SecureObject instance with enhanced protection
|
|
323
|
-
*
|
|
324
|
-
* @example Basic Usage
|
|
325
|
-
* ```typescript
|
|
326
|
-
* import { fObject } from "xypriss-security";
|
|
327
|
-
*
|
|
328
|
-
* // Create secure object with initial data
|
|
329
|
-
* const userCredentials = fObject({
|
|
330
|
-
* username: "john_doe",
|
|
331
|
-
* apiKey: "secret-api-key-12345",
|
|
332
|
-
* sessionToken: "session-token-abcdef"
|
|
333
|
-
* });
|
|
334
|
-
*
|
|
335
|
-
* // Access and modify data
|
|
336
|
-
* userCredentials.set("lastLogin", new Date().toISOString());
|
|
337
|
-
* const apiKey = userCredentials.get("apiKey");
|
|
338
|
-
*
|
|
339
|
-
* // Secure cleanup
|
|
340
|
-
* userCredentials.destroy();
|
|
341
|
-
* ```
|
|
342
|
-
*
|
|
343
|
-
* @example Advanced Configuration
|
|
344
|
-
* ```typescript
|
|
345
|
-
* import { fObject } from "xypriss-security";
|
|
346
|
-
*
|
|
347
|
-
* // Create with encryption and metadata tracking
|
|
348
|
-
* const secureConfig = fObject({
|
|
349
|
-
* databaseUrl: "postgresql://user:pass@localhost/db",
|
|
350
|
-
* encryptionKey: "master-encryption-key-2025",
|
|
351
|
-
* apiSecrets: {
|
|
352
|
-
* stripe: "sk_live_...",
|
|
353
|
-
* aws: "AKIA..."
|
|
354
|
-
* }
|
|
355
|
-
* }, {
|
|
356
|
-
* encryptionKey: process.env.OBJECT_ENCRYPTION_KEY,
|
|
357
|
-
* enableMetadata: true,
|
|
358
|
-
* autoCleanup: true
|
|
359
|
-
* });
|
|
360
|
-
*
|
|
361
|
-
* // Mark sensitive keys for special handling
|
|
362
|
-
* secureConfig.markSensitive("databaseUrl");
|
|
363
|
-
* secureConfig.markSensitive("encryptionKey");
|
|
364
|
-
* secureConfig.markSensitive("apiSecrets");
|
|
365
|
-
*
|
|
366
|
-
* // Export with encryption
|
|
367
|
-
* const encrypted = secureConfig.serialize({ encrypt: true });
|
|
368
|
-
*
|
|
369
|
-
* // Event handling
|
|
370
|
-
* secureConfig.on("accessed", (key) => {
|
|
371
|
-
* console.log(`Sensitive key accessed: ${key}`);
|
|
372
|
-
* });
|
|
373
|
-
* ```
|
|
374
|
-
*
|
|
375
|
-
* @author Seth Eleazar
|
|
376
|
-
* @since 1.0.0
|
|
377
|
-
*/
|
|
378
|
-
function fObject(...args) {
|
|
379
|
-
return index$2.createSecureObject(...args);
|
|
380
|
-
}
|
|
381
306
|
/**
|
|
382
307
|
* Securely encrypts data using the CryptoUtils class.
|
|
383
308
|
*
|
|
@@ -415,7 +340,6 @@ crypto.XyPrissSecurity.decrypt;
|
|
|
415
340
|
|
|
416
341
|
exports.XyPriss = crypto.XyPrissSecurity;
|
|
417
342
|
exports.XyPrissSecurity = crypto.XyPrissSecurity;
|
|
418
|
-
exports.createSecureObject = index$2.createSecureObject;
|
|
419
343
|
exports.Hash = hashCore.Hash;
|
|
420
344
|
Object.defineProperty(exports, 'HashStrength', {
|
|
421
345
|
enumerable: true,
|
|
@@ -475,9 +399,8 @@ Object.defineProperty(exports, 'LogLevel', {
|
|
|
475
399
|
get: function () { return tamperEvidentLogging.LogLevel; }
|
|
476
400
|
});
|
|
477
401
|
exports.TamperEvidentLogger = tamperEvidentLogging.TamperEvidentLogger;
|
|
478
|
-
exports.Cache = index$
|
|
479
|
-
exports.createOptimalCache = index$
|
|
480
|
-
exports.generateFilePath = index$
|
|
402
|
+
exports.Cache = index$2.Cache;
|
|
403
|
+
exports.createOptimalCache = index$2.createOptimalCache;
|
|
404
|
+
exports.generateFilePath = index$2.generateFilePath;
|
|
481
405
|
exports.PasswordManager = passwordCore.PasswordManager;
|
|
482
|
-
exports.fObject = fObject;
|
|
483
406
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../mods/security/src/index.ts"],"sourcesContent":[null],"names":["XyPrissSecurity","SecureRandom","Hash","PasswordManager"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../mods/security/src/index.ts"],"sourcesContent":[null],"names":["XyPrissSecurity","SecureRandom","Hash","PasswordManager"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2BiF;AAEjF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgKG;AAyVgCA,sBAAe,CAAC,oBAAoB;AA2KvE;;;;;;;;;;;;;;;AAeG;AAEH;AAC8BC,uBAAY,CAAC,eAAe;AAE1D;AACkCA,uBAAY,CAAC,mBAAmB;AAmBlE;;;;;;;;;;;;;;;;;;;;;;;;AAwBG;AAEH;AACgCC,aAAI,CAAC,iBAAiB;AAEtD;AACgCA,aAAI,CAAC,iBAAiB;AAEtD;AAC0BA,aAAI,CAAC,WAAW;AAyL1C;;;;;;;;;;;;;;;;;;;;AAoBG;AACeC,4BAAe,CAAC,WAAW,GAAG;AA0rB5C;;;;;;;;;;;;;;;AAeG;AACgBH,sBAAe,CAAC,QAAQ;AAE/C;;;;;;;;;;;;;;;AAeG;AACoBA,sBAAe,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/cjs/src/index.js
CHANGED
|
@@ -12,30 +12,28 @@ var CacheFactory = require('./cache/CacheFactory.js');
|
|
|
12
12
|
var securityMiddleware = require('./middleware/security-middleware.js');
|
|
13
13
|
var performanceMonitor = require('./server/optimization/performance-monitor.js');
|
|
14
14
|
var XJsonResponseHandler = require('./middleware/XJsonResponseHandler.js');
|
|
15
|
-
var index = require('./plugins/modules/index.js');
|
|
16
|
-
var PluginAPI = require('./plugins/api/PluginAPI.js');
|
|
17
|
-
var quickStart = require('./quick-start.js');
|
|
18
|
-
var trustProxy = require('./server/utils/trustProxy.js');
|
|
19
|
-
var PluginHookIds = require('./plugins/const/PluginHookIds.js');
|
|
20
|
-
var safeJsonMiddleware = require('./middleware/safe-json-middleware.js');
|
|
21
|
-
var safeSerializer = require('../mods/security/src/components/fortified-function/serializer/safe-serializer.js');
|
|
22
|
-
var FiUp = require('./FiUp.js');
|
|
23
15
|
var PluginRegistry = require('./plugins/modules/PluginRegistry.js');
|
|
24
16
|
var PluginEngine = require('./plugins/modules/PluginEngine.js');
|
|
25
17
|
var PluginTypes = require('./plugins/modules/types/PluginTypes.js');
|
|
26
|
-
var SecurityPlugin = require('./plugins/modules/core/SecurityPlugin.js');
|
|
27
18
|
var PerformancePlugin = require('./plugins/modules/core/PerformancePlugin.js');
|
|
28
19
|
var CachePlugin = require('./plugins/modules/core/CachePlugin.js');
|
|
29
|
-
var JWTAuthPlugin = require('./plugins/modules/builtin/JWTAuthPlugin.js');
|
|
30
20
|
var ResponseTimePlugin = require('./plugins/modules/builtin/ResponseTimePlugin.js');
|
|
31
21
|
var SmartCachePlugin = require('./plugins/modules/builtin/SmartCachePlugin.js');
|
|
32
22
|
var NetworkPlugin = require('./plugins/modules/network/core/NetworkPlugin.js');
|
|
23
|
+
var NetworkTypes = require('./plugins/modules/network/types/NetworkTypes.js');
|
|
33
24
|
var ConnectionPlugin = require('./plugins/modules/network/builtin/ConnectionPlugin.js');
|
|
34
25
|
var CompressionPlugin = require('./plugins/modules/network/builtin/CompressionPlugin.js');
|
|
35
26
|
var ProxyPlugin = require('./plugins/modules/network/builtin/ProxyPlugin.js');
|
|
36
|
-
var NetworkTypes = require('./plugins/modules/network/types/NetworkTypes.js');
|
|
37
27
|
var NetworkPluginFactory = require('./plugins/modules/network/core/NetworkPluginFactory.js');
|
|
38
28
|
var NetworkPluginUtils = require('./plugins/modules/network/utils/NetworkPluginUtils.js');
|
|
29
|
+
var XemsPlugin = require('./plugins/modules/xems/XemsPlugin.js');
|
|
30
|
+
var PluginAPI = require('./plugins/api/PluginAPI.js');
|
|
31
|
+
var quickStart = require('./quick-start.js');
|
|
32
|
+
var trustProxy = require('./server/utils/trustProxy.js');
|
|
33
|
+
var PluginHookIds = require('./plugins/const/PluginHookIds.js');
|
|
34
|
+
var safeJsonMiddleware = require('./middleware/safe-json-middleware.js');
|
|
35
|
+
var safeSerializer = require('../mods/security/src/components/fortified-function/serializer/safe-serializer.js');
|
|
36
|
+
var FiUp = require('./FiUp.js');
|
|
39
37
|
|
|
40
38
|
/***************************************************************************
|
|
41
39
|
* XyPrissJS - Fast And Secure
|
|
@@ -91,30 +89,6 @@ exports.createOptimalCache = CacheFactory.createOptimalCache;
|
|
|
91
89
|
exports.SecurityMiddleware = securityMiddleware.SecurityMiddleware;
|
|
92
90
|
exports.PerformanceMonitor = performanceMonitor.PerformanceMonitor;
|
|
93
91
|
exports.XJsonResponseHandler = XJsonResponseHandler.XJsonResponseHandler;
|
|
94
|
-
exports.DEFAULT_PLUGIN_CONFIG = index.DEFAULT_PLUGIN_CONFIG;
|
|
95
|
-
exports.PERFORMANCE_TARGETS = index.PERFORMANCE_TARGETS;
|
|
96
|
-
exports.PLUGIN_SYSTEM_NAME = index.PLUGIN_SYSTEM_NAME;
|
|
97
|
-
exports.PLUGIN_SYSTEM_VERSION = index.PLUGIN_SYSTEM_VERSION;
|
|
98
|
-
exports.PluginDevelopmentHelpers = index.PluginDevelopmentHelpers;
|
|
99
|
-
exports.PluginSystemFactory = index.PluginSystemFactory;
|
|
100
|
-
exports.PluginSystemUtils = index.PluginSystemUtils;
|
|
101
|
-
exports.Plugin = PluginAPI.Plugin;
|
|
102
|
-
exports.quickServer = quickStart.quickServer;
|
|
103
|
-
exports.TrustProxy = trustProxy.TrustProxy;
|
|
104
|
-
exports.PluginHookIds = PluginHookIds.PluginHookIds;
|
|
105
|
-
exports.createCircularRefDebugger = safeJsonMiddleware.createCircularRefDebugger;
|
|
106
|
-
exports.createSafeJsonMiddleware = safeJsonMiddleware.createSafeJsonMiddleware;
|
|
107
|
-
exports.safeJsonStringify = safeJsonMiddleware.safeJsonStringify;
|
|
108
|
-
exports.sendSafeJson = safeJsonMiddleware.sendSafeJson;
|
|
109
|
-
exports.setupSafeJson = safeJsonMiddleware.setupSafeJson;
|
|
110
|
-
exports.expressStringify = safeSerializer.expressStringify;
|
|
111
|
-
exports.fastStringify = safeSerializer.fastStringify;
|
|
112
|
-
exports.safeStringify = safeSerializer.safeStringify;
|
|
113
|
-
exports.initializeFileUpload = FiUp.initializeFileUpload;
|
|
114
|
-
exports.uploadAny = FiUp.uploadAny;
|
|
115
|
-
exports.uploadArray = FiUp.uploadArray;
|
|
116
|
-
exports.uploadFields = FiUp.uploadFields;
|
|
117
|
-
exports.uploadSingle = FiUp.uploadSingle;
|
|
118
92
|
exports.PluginRegistry = PluginRegistry.PluginRegistry;
|
|
119
93
|
exports.PluginEngine = PluginEngine.PluginEngine;
|
|
120
94
|
Object.defineProperty(exports, 'PluginEventType', {
|
|
@@ -129,21 +103,39 @@ Object.defineProperty(exports, 'PluginType', {
|
|
|
129
103
|
enumerable: true,
|
|
130
104
|
get: function () { return PluginTypes.PluginType; }
|
|
131
105
|
});
|
|
132
|
-
exports.SecurityPluginBase = SecurityPlugin.SecurityPlugin;
|
|
133
106
|
exports.PerformancePluginBase = PerformancePlugin.PerformancePlugin;
|
|
134
107
|
exports.CachePluginBase = CachePlugin.CachePlugin;
|
|
135
|
-
exports.JWTAuthPlugin = JWTAuthPlugin.JWTAuthPlugin;
|
|
136
108
|
exports.ResponseTimePlugin = ResponseTimePlugin.ResponseTimePlugin;
|
|
137
109
|
exports.SmartCachePlugin = SmartCachePlugin.SmartCachePlugin;
|
|
138
110
|
exports.NetworkPlugin = NetworkPlugin.NetworkPlugin;
|
|
139
|
-
exports.ConnectionPlugin = ConnectionPlugin.ConnectionPlugin;
|
|
140
|
-
exports.CompressionPlugin = CompressionPlugin.CompressionPlugin;
|
|
141
|
-
exports.ProxyPlugin = ProxyPlugin.ProxyPlugin;
|
|
142
111
|
Object.defineProperty(exports, 'NetworkCategory', {
|
|
143
112
|
enumerable: true,
|
|
144
113
|
get: function () { return NetworkTypes.NetworkCategory; }
|
|
145
114
|
});
|
|
115
|
+
exports.ConnectionPlugin = ConnectionPlugin.ConnectionPlugin;
|
|
116
|
+
exports.CompressionPlugin = CompressionPlugin.CompressionPlugin;
|
|
117
|
+
exports.ProxyPlugin = ProxyPlugin.ProxyPlugin;
|
|
146
118
|
exports.NetworkPluginFactory = NetworkPluginFactory.NetworkPluginFactory;
|
|
147
119
|
exports.NetworkPluginUtils = NetworkPluginUtils.NetworkPluginUtils;
|
|
120
|
+
exports.XemsError = XemsPlugin.XemsError;
|
|
121
|
+
exports.XemsRunner = XemsPlugin.XemsRunner;
|
|
122
|
+
exports.xems = XemsPlugin.xems;
|
|
123
|
+
exports.Plugin = PluginAPI.Plugin;
|
|
124
|
+
exports.quickServer = quickStart.quickServer;
|
|
125
|
+
exports.TrustProxy = trustProxy.TrustProxy;
|
|
126
|
+
exports.PluginHookIds = PluginHookIds.PluginHookIds;
|
|
127
|
+
exports.createCircularRefDebugger = safeJsonMiddleware.createCircularRefDebugger;
|
|
128
|
+
exports.createSafeJsonMiddleware = safeJsonMiddleware.createSafeJsonMiddleware;
|
|
129
|
+
exports.safeJsonStringify = safeJsonMiddleware.safeJsonStringify;
|
|
130
|
+
exports.sendSafeJson = safeJsonMiddleware.sendSafeJson;
|
|
131
|
+
exports.setupSafeJson = safeJsonMiddleware.setupSafeJson;
|
|
132
|
+
exports.expressStringify = safeSerializer.expressStringify;
|
|
133
|
+
exports.fastStringify = safeSerializer.fastStringify;
|
|
134
|
+
exports.safeStringify = safeSerializer.safeStringify;
|
|
135
|
+
exports.initializeFileUpload = FiUp.initializeFileUpload;
|
|
136
|
+
exports.uploadAny = FiUp.uploadAny;
|
|
137
|
+
exports.uploadArray = FiUp.uploadArray;
|
|
138
|
+
exports.uploadFields = FiUp.uploadFields;
|
|
139
|
+
exports.uploadSingle = FiUp.uploadSingle;
|
|
148
140
|
exports.Router = Router;
|
|
149
141
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/index.ts"],"sourcesContent":[null],"names":["configLoader","XyPrissRouter"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/index.ts"],"sourcesContent":[null],"names":["configLoader","XyPrissRouter"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;;;;AAsBiF;AAqBjF;AACA,IAAI,OAAO,UAAU,KAAK,WAAW,EAAE;IACnCA,yBAAY,CAAC,qBAAqB,EAAE,CAAC;AACzC,CAAC;AAwGD;;AAEG;SACa,MAAM,GAAA;IAClB,OAAO,IAAIC,sBAAa,CAAC;AACrB,QAAA,aAAa,EAAE,KAAK;AACpB,QAAA,WAAW,EAAE,KAAK;AAClB,QAAA,MAAM,EAAE,KAAK;AAChB,KAAA,CAAC,CAAC;AACP;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|