xypriss 9.7.6 → 9.7.8
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 +22 -0
- package/dist/cjs/src/plugins/api/PluginAPI.js +136 -81
- package/dist/cjs/src/plugins/api/PluginAPI.js.map +1 -1
- package/dist/cjs/src/server/FastServer/index.js +4 -4
- package/dist/cjs/src/server/FastServer/index.js.map +1 -1
- package/dist/cjs/src/server/components/fastapi/console/ConsoleInterceptor.js +365 -14
- package/dist/cjs/src/server/components/fastapi/console/ConsoleInterceptor.js.map +1 -1
- package/dist/cjs/src/server/components/fastapi/console/types.js +6 -0
- package/dist/cjs/src/server/components/fastapi/console/types.js.map +1 -1
- package/dist/cjs/src/server/core/XyLifecycleManager.js +4 -1
- package/dist/cjs/src/server/core/XyLifecycleManager.js.map +1 -1
- package/dist/cjs/src/server/utils/internalFlagsFunctions.js +26 -10
- package/dist/cjs/src/server/utils/internalFlagsFunctions.js.map +1 -1
- package/dist/cjs/src/xhsc/OSApi.js +4 -0
- package/dist/cjs/src/xhsc/OSApi.js.map +1 -1
- package/dist/cjs/src/xhsc/fs/FSExtended.js +13 -0
- package/dist/cjs/src/xhsc/fs/FSExtended.js.map +1 -1
- package/dist/esm/src/plugins/api/PluginAPI.js +136 -81
- package/dist/esm/src/plugins/api/PluginAPI.js.map +1 -1
- package/dist/esm/src/server/FastServer/index.js +4 -4
- package/dist/esm/src/server/FastServer/index.js.map +1 -1
- package/dist/esm/src/server/components/fastapi/console/ConsoleInterceptor.js +365 -14
- package/dist/esm/src/server/components/fastapi/console/ConsoleInterceptor.js.map +1 -1
- package/dist/esm/src/server/components/fastapi/console/types.js +6 -0
- package/dist/esm/src/server/components/fastapi/console/types.js.map +1 -1
- package/dist/esm/src/server/core/XyLifecycleManager.js +4 -1
- package/dist/esm/src/server/core/XyLifecycleManager.js.map +1 -1
- package/dist/esm/src/server/utils/internalFlagsFunctions.js +26 -10
- package/dist/esm/src/server/utils/internalFlagsFunctions.js.map +1 -1
- package/dist/esm/src/xhsc/OSApi.js +4 -0
- package/dist/esm/src/xhsc/OSApi.js.map +1 -1
- package/dist/esm/src/xhsc/fs/FSExtended.js +13 -0
- package/dist/esm/src/xhsc/fs/FSExtended.js.map +1 -1
- package/dist/index.d.ts +122 -40
- package/package.json +74 -74
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FSExtended.js","sources":["../../../../../src/xhsc/fs/FSExtended.ts"],"sourcesContent":[null],"names":[],"mappings":";;;AAGA;;AAEG;AACG,MAAO,UAAW,SAAQ,OAAO,CAAA;AAAvC,IAAA,WAAA,GAAA;;AACI;;;;;;;;AAQG;QACI,IAAA,CAAA,WAAW,GAAG,OACjB,CAAS,EACT,IAAS,EACT,OAAA,GAAoC,EAAE,KACvB;YACf,IAAI,SAAS,GAAQ,EAAE;AACvB,YAAA,IAAI,OAAO,MAAM,KAAK,WAAW,IAAI,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE;gBACxD,SAAS,GAAG,IAAI;YACpB;iBAAO,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,EAAE;AAClD,gBAAA,SAAS,GAAG,UAAU,CAAC,IAAI,CAAC;YAChC;iBAAO;AACH,gBAAA,SAAS,GAAG,MAAM,CAAC,IAAI,CAAC;YAC5B;AACA,YAAA,MAAM,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,EAAE,cAAc,EAAE,CAAC,CAAC,CAAC,EAAE;AAClD,gBAAA,GAAG,OAAO;AACV,gBAAA,KAAK,EAAE,SAAS;AACnB,aAAA,CAAC;AACN,QAAA,CAAC;AAED;;AAEG;QACI,IAAA,CAAA,eAAe,GAAG,CACrB,CAAS,EACT,IAAS,EACT,OAAA,GAAoC,EAAE,KAChC;YACN,IAAI,SAAS,GAAQ,EAAE;AACvB,YAAA,IAAI,OAAO,MAAM,KAAK,WAAW,IAAI,MAAM,CAAC,QAAQ,CAAC,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AAM,CAAC,OAAO,CAAC,IAAI,EAAE,eAAe,EAAE,CAAC,GAAG,CAAC,EAAE;gBACrD,KAAK;AACR,aAAA,CAAU;AACf,QAAA,CAAC;IACL;AAAC;;;;"}
|
package/dist/index.d.ts
CHANGED
|
@@ -3497,6 +3497,10 @@ declare class OSApi extends BaseApi {
|
|
|
3497
3497
|
* **Get Operating System Platform**
|
|
3498
3498
|
*/
|
|
3499
3499
|
platform: () => string;
|
|
3500
|
+
/**
|
|
3501
|
+
* **Get User Home Directory**
|
|
3502
|
+
*/
|
|
3503
|
+
homeDir: () => string;
|
|
3500
3504
|
}
|
|
3501
3505
|
|
|
3502
3506
|
/**
|
|
@@ -4275,6 +4279,15 @@ declare class FSExtended extends FSWatch {
|
|
|
4275
4279
|
* ```
|
|
4276
4280
|
*/
|
|
4277
4281
|
decryptFile: (p: string, key: string) => Promise<void>;
|
|
4282
|
+
/**
|
|
4283
|
+
* **Hardware-Linked Encryption**
|
|
4284
|
+
* Ties encryption to this specific machine's hardware ID.
|
|
4285
|
+
*/
|
|
4286
|
+
hardwareEncryptFile: (p: string, key: string) => Promise<void>;
|
|
4287
|
+
/**
|
|
4288
|
+
* **Hardware-Linked Decryption**
|
|
4289
|
+
*/
|
|
4290
|
+
hardwareDecryptFile: (p: string, key: string) => Promise<void>;
|
|
4278
4291
|
/**
|
|
4279
4292
|
* **Diff Files**
|
|
4280
4293
|
*/
|
|
@@ -6656,10 +6669,67 @@ interface ConsoleInterceptionConfig {
|
|
|
6656
6669
|
filters?: {
|
|
6657
6670
|
minLevel?: "debug" | "info" | "warn" | "error";
|
|
6658
6671
|
maxLength?: number;
|
|
6659
|
-
includePatterns?: string[];
|
|
6660
|
-
excludePatterns?: string[];
|
|
6661
|
-
userAppPatterns?: string[];
|
|
6662
|
-
systemPatterns?: string[];
|
|
6672
|
+
includePatterns?: (string | RegExp)[];
|
|
6673
|
+
excludePatterns?: (string | RegExp)[];
|
|
6674
|
+
userAppPatterns?: (string | RegExp)[];
|
|
6675
|
+
systemPatterns?: (string | RegExp)[];
|
|
6676
|
+
};
|
|
6677
|
+
/**
|
|
6678
|
+
* Custom callback hook to receive intercepted logs synchronously.
|
|
6679
|
+
*
|
|
6680
|
+
* The second parameter `filtered` indicates whether `log.message` has been
|
|
6681
|
+
* processed through the full XCI pipeline (XHSC filtering, prefix stripping,
|
|
6682
|
+
* etc.) mirroring exactly what is displayed in the terminal.
|
|
6683
|
+
*
|
|
6684
|
+
* Controlled by `filteredOnLog`:
|
|
6685
|
+
* - `filteredOnLog: false` (default) — fires before XHSC delegation with the
|
|
6686
|
+
* raw message. `filtered` is `false`.
|
|
6687
|
+
* - `filteredOnLog: true` — fires after XHSC processing with the formatted
|
|
6688
|
+
* message. `filtered` is `true`. Logs filtered out by XHSC are not delivered.
|
|
6689
|
+
*/
|
|
6690
|
+
onLog?: (log: {
|
|
6691
|
+
level: string;
|
|
6692
|
+
method: string;
|
|
6693
|
+
message: string;
|
|
6694
|
+
args: any[];
|
|
6695
|
+
}, filtered: boolean) => void;
|
|
6696
|
+
/**
|
|
6697
|
+
* When `true`, the `onLog` callback receives the XHSC-processed message
|
|
6698
|
+
* (same string displayed in the terminal) instead of the raw intercepted value.
|
|
6699
|
+
* Defaults to `false`.
|
|
6700
|
+
*/
|
|
6701
|
+
filteredOnLog?: boolean;
|
|
6702
|
+
/** Performance-optimized mode */
|
|
6703
|
+
performanceMode?: boolean;
|
|
6704
|
+
/** Whether to include source mapping (file/line) */
|
|
6705
|
+
sourceMapping?: boolean;
|
|
6706
|
+
/** Whether to preserve original console output and in what mode */
|
|
6707
|
+
preserveOriginal?: boolean | {
|
|
6708
|
+
enabled: boolean;
|
|
6709
|
+
mode?: "original" | "intercepted" | "both" | "none";
|
|
6710
|
+
showPrefix?: boolean;
|
|
6711
|
+
customPrefix?: string;
|
|
6712
|
+
colorize?: boolean;
|
|
6713
|
+
allowDuplication?: boolean;
|
|
6714
|
+
separateStreams?: boolean;
|
|
6715
|
+
onlyUserApp?: boolean;
|
|
6716
|
+
/**
|
|
6717
|
+
* Limit the number of log lines displayed in the terminal.
|
|
6718
|
+
* Inspired by the Linux `head`/`tail` commands.
|
|
6719
|
+
*
|
|
6720
|
+
* - `head`: display only the first N logs then stop (like `head -n N`).
|
|
6721
|
+
* - `tail`: always keep the last N logs visible in memory;
|
|
6722
|
+
* each new log evicts the oldest (circular buffer).
|
|
6723
|
+
*
|
|
6724
|
+
* @example
|
|
6725
|
+
* displayLimit: { mode: "tail", maxLines: 50 }
|
|
6726
|
+
*/
|
|
6727
|
+
displayLimit?: {
|
|
6728
|
+
/** Limiting strategy. Defaults to "tail". */
|
|
6729
|
+
mode?: "head" | "tail";
|
|
6730
|
+
/** Maximum number of log lines to display. */
|
|
6731
|
+
maxLines: number;
|
|
6732
|
+
};
|
|
6663
6733
|
};
|
|
6664
6734
|
}
|
|
6665
6735
|
interface InterceptedConsoleCall {
|
|
@@ -10182,30 +10252,32 @@ declare class XJsonResponseHandler {
|
|
|
10182
10252
|
* Public API for plugin management as documented in PLUGIN_SYSTEM_GUIDE.md
|
|
10183
10253
|
*/
|
|
10184
10254
|
|
|
10185
|
-
|
|
10186
|
-
* Plugin API
|
|
10187
|
-
* Provides imperative methods for plugin management
|
|
10188
|
-
*/
|
|
10189
|
-
declare const Plugin: {
|
|
10255
|
+
declare class PluginAPI {
|
|
10190
10256
|
/**
|
|
10191
|
-
*
|
|
10192
|
-
*
|
|
10193
|
-
*
|
|
10257
|
+
* Reads and returns the project manifest (`package.json`) associated with the provided system core.
|
|
10258
|
+
*
|
|
10259
|
+
* This method is cryptographically and logically bound to the system instance to ensure
|
|
10260
|
+
* that plugins only access the metadata of their authorized environment.
|
|
10261
|
+
*
|
|
10262
|
+
* @template T - The expected structure of the manifest file.
|
|
10263
|
+
* @param sys - The XyPriss Hyper-System Core (`__sys__`) instance.
|
|
10264
|
+
* @returns The parsed JSON content of the `package.json` file.
|
|
10265
|
+
* @throws {Error} If the system instance is invalid, lacks a root path, or the manifest cannot be read.
|
|
10194
10266
|
*
|
|
10195
10267
|
* @example
|
|
10196
10268
|
* ```typescript
|
|
10197
|
-
* Plugin.
|
|
10198
|
-
*
|
|
10199
|
-
* version: "1.0.0",
|
|
10200
|
-
* onServerStart: () => console.log("Started!")
|
|
10201
|
-
* });
|
|
10269
|
+
* const pkg = Plugin.manifest<MyPackageJson>(__sys__);
|
|
10270
|
+
* console.log(`Running in ${pkg.name}@${pkg.version}`);
|
|
10202
10271
|
* ```
|
|
10203
10272
|
*/
|
|
10204
|
-
|
|
10273
|
+
manifest<T>(sys: XyPrissXHSC): T;
|
|
10205
10274
|
/**
|
|
10206
|
-
*
|
|
10207
|
-
*
|
|
10208
|
-
|
|
10275
|
+
* @private — Internal registration. Never call this directly.
|
|
10276
|
+
* Use `exec()` instead.
|
|
10277
|
+
*/
|
|
10278
|
+
private register;
|
|
10279
|
+
/**
|
|
10280
|
+
* Register a plugin — the sole public entry point for plugin registration.
|
|
10209
10281
|
*
|
|
10210
10282
|
* @example
|
|
10211
10283
|
* ```typescript
|
|
@@ -10213,16 +10285,14 @@ declare const Plugin: {
|
|
|
10213
10285
|
* name: "test",
|
|
10214
10286
|
* version: "1.0.0",
|
|
10215
10287
|
* onServerStart(server) {
|
|
10216
|
-
*
|
|
10288
|
+
* console.log("Server started");
|
|
10217
10289
|
* },
|
|
10218
|
-
* });
|
|
10290
|
+
* }, __sys__.__root__));
|
|
10219
10291
|
* ```
|
|
10220
10292
|
*/
|
|
10221
10293
|
exec(plugin: XyPrissPlugin | PluginCreator, config?: any): void;
|
|
10222
10294
|
/**
|
|
10223
|
-
* Get a registered plugin by name
|
|
10224
|
-
* @param name - Plugin name
|
|
10225
|
-
* @returns Plugin instance or undefined if not found
|
|
10295
|
+
* Get a registered plugin by name.
|
|
10226
10296
|
*
|
|
10227
10297
|
* @example
|
|
10228
10298
|
* ```typescript
|
|
@@ -10232,33 +10302,45 @@ declare const Plugin: {
|
|
|
10232
10302
|
* }
|
|
10233
10303
|
* ```
|
|
10234
10304
|
*/
|
|
10235
|
-
get(name: string):
|
|
10305
|
+
get(name: string): {
|
|
10306
|
+
name: string;
|
|
10307
|
+
version: string;
|
|
10308
|
+
__root__: string;
|
|
10309
|
+
} | undefined;
|
|
10236
10310
|
/**
|
|
10237
|
-
* Create a plugin
|
|
10238
|
-
* This is just a type-safe identity function that helps with TypeScript inference
|
|
10239
|
-
* @param plugin - Plugin definition
|
|
10240
|
-
* @returns The same plugin instance
|
|
10311
|
+
* Create a type-safe plugin instance with a validated root.
|
|
10241
10312
|
*
|
|
10242
10313
|
* @example
|
|
10243
10314
|
* ```typescript
|
|
10244
10315
|
* const myPlugin = Plugin.create({
|
|
10245
10316
|
* name: "my-plugin",
|
|
10246
10317
|
* version: "1.0.0",
|
|
10247
|
-
* onServerStart: (server) =>
|
|
10248
|
-
*
|
|
10249
|
-
* }
|
|
10250
|
-
* });
|
|
10318
|
+
* onServerStart: (server) => console.log("Plugin started!"),
|
|
10319
|
+
* }, __sys__.__root__);
|
|
10251
10320
|
* ```
|
|
10252
10321
|
*/
|
|
10253
10322
|
create(plugin: XyPrissPlugin, Sys: string): XyPrissPlugin;
|
|
10254
|
-
factory<TConfig = any>(creator: (config: TConfig) => XyPrissPlugin, rootOrSys: any): PluginCreator;
|
|
10255
10323
|
/**
|
|
10256
|
-
* Create
|
|
10257
|
-
*
|
|
10258
|
-
* @
|
|
10324
|
+
* Create a typed plugin factory with a pre-assigned root.
|
|
10325
|
+
*
|
|
10326
|
+
* @example
|
|
10327
|
+
* ```typescript
|
|
10328
|
+
* const myFactory = Plugin.factory(
|
|
10329
|
+
* (config: MyConfig) => ({ name: "my-plugin", version: "1.0.0" }),
|
|
10330
|
+
* __sys__.__root__
|
|
10331
|
+
* );
|
|
10332
|
+
* ```
|
|
10333
|
+
*/
|
|
10334
|
+
factory<TConfig = any>(creator: (config: TConfig) => XyPrissPlugin, rootOrSys: string | {
|
|
10335
|
+
__root__: string;
|
|
10336
|
+
}): PluginCreator;
|
|
10337
|
+
/**
|
|
10338
|
+
* Create a no-op placeholder plugin.
|
|
10339
|
+
* Useful for testing or conditional plugin slots.
|
|
10259
10340
|
*/
|
|
10260
10341
|
void(): XyPrissPlugin;
|
|
10261
|
-
}
|
|
10342
|
+
}
|
|
10343
|
+
declare const Plugin: Readonly<Omit<PluginAPI, "register">>;
|
|
10262
10344
|
|
|
10263
10345
|
/**
|
|
10264
10346
|
* XyPrissJS Quick Start
|
package/package.json
CHANGED
|
@@ -1,76 +1,76 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
2
|
+
"name": "xypriss",
|
|
3
|
+
"version": "9.7.8",
|
|
4
|
+
"description": "XyPriss is a high-performance, TypeScript-first hyper-system web framework powered by a native Go core (XHSC), featuring robust multi-tenant sandboxing, secure native file streaming, and zero Express dependencies.",
|
|
5
|
+
"author": {
|
|
6
|
+
"name": "Nehonix",
|
|
7
|
+
"url": "https://nehonix.com",
|
|
8
|
+
"whatsapp": "https://s.nehonix.com/QBo0KpCl"
|
|
9
|
+
},
|
|
10
|
+
"type": "module",
|
|
11
|
+
"main": "./dist/cjs/src/index.js",
|
|
12
|
+
"module": "./dist/esm/src/index.js",
|
|
13
|
+
"types": "./dist/index.d.ts",
|
|
14
|
+
"exports": {
|
|
15
|
+
".": {
|
|
16
|
+
"import": "./dist/esm/src/index.js",
|
|
17
|
+
"require": "./dist/cjs/src/index.js",
|
|
18
|
+
"types": "./dist/index.d.ts"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"files": [
|
|
22
|
+
"dist/",
|
|
23
|
+
"shared/",
|
|
24
|
+
"scripts/",
|
|
25
|
+
"README.md",
|
|
26
|
+
"LICENSE",
|
|
27
|
+
"CONTRIBUTING.md"
|
|
28
|
+
],
|
|
29
|
+
"scripts": {
|
|
30
|
+
"benchmark": "node benchmarks/index.js",
|
|
31
|
+
"build": "NODE_OPTIONS='--max-old-space-size=4096' xfpm exec rollup -c rollup.config.js",
|
|
32
|
+
"build:memory": "NODE_OPTIONS='--max-old-space-size=6144' xfpm exec rollup -c rollup.config.js",
|
|
33
|
+
"install-memory-cli": "node scripts/install-memory-cli.js",
|
|
34
|
+
"install-xhsc": "node scripts/postinstall-xhsc.js",
|
|
35
|
+
"postinstall": "node scripts/postinstall.js",
|
|
36
|
+
"prepublishOnly": "xfpm run build",
|
|
37
|
+
"test": "jest",
|
|
38
|
+
"test:coverage": "jest --coverage",
|
|
39
|
+
"test:watch": "jest --watch"
|
|
40
|
+
},
|
|
41
|
+
"dependencies": {
|
|
42
|
+
"csrf-csrf": "^4.0.3",
|
|
43
|
+
"helmet": "^8.1.0",
|
|
44
|
+
"ioredis": "^5.10.0",
|
|
45
|
+
"morgan": "^1.10.1",
|
|
46
|
+
"nehoid": "^2.2.1",
|
|
47
|
+
"node-fetch": "^3.3.2",
|
|
48
|
+
"redis": "^5.11.0",
|
|
49
|
+
"reliant-type": "^2.1.5",
|
|
50
|
+
"strulink": "^1.2.0",
|
|
51
|
+
"xss": "^1.0.15",
|
|
52
|
+
"xypriss-compression": "^1.0.6",
|
|
53
|
+
"xypriss-security": "^2.1.16",
|
|
54
|
+
"xypriss-swagger": "workspace:*"
|
|
55
|
+
},
|
|
56
|
+
"devDependencies": {
|
|
57
|
+
"@rollup/plugin-commonjs": "^25.0.8",
|
|
58
|
+
"@rollup/plugin-json": "^6.1.0",
|
|
59
|
+
"@rollup/plugin-node-resolve": "^15.3.1",
|
|
60
|
+
"@rollup/plugin-terser": "^1.0.0",
|
|
61
|
+
"@rollup/plugin-typescript": "^11.1.6",
|
|
62
|
+
"@types/morgan": "^1.9.10",
|
|
63
|
+
"@types/node": "^25.3.3",
|
|
64
|
+
"@typescript-eslint/eslint-plugin": "^5.62.0",
|
|
65
|
+
"@typescript-eslint/parser": "^5.62.0",
|
|
66
|
+
"eslint": "^8.57.1",
|
|
67
|
+
"rimraf": "^4.4.1",
|
|
68
|
+
"rollup": "^4.59.0",
|
|
69
|
+
"rollup-plugin-dts": "^6.3.0",
|
|
70
|
+
"ts-node": "^10.9.2",
|
|
71
|
+
"typedoc": "^0.25.13"
|
|
72
|
+
},
|
|
73
|
+
"peerDependencies": {
|
|
74
|
+
"react": ">=16.8.0"
|
|
19
75
|
}
|
|
20
|
-
|
|
21
|
-
"files": [
|
|
22
|
-
"dist/",
|
|
23
|
-
"shared/",
|
|
24
|
-
"scripts/",
|
|
25
|
-
"README.md",
|
|
26
|
-
"LICENSE",
|
|
27
|
-
"CONTRIBUTING.md"
|
|
28
|
-
],
|
|
29
|
-
"scripts": {
|
|
30
|
-
"benchmark": "node benchmarks/index.js",
|
|
31
|
-
"build": "NODE_OPTIONS='--max-old-space-size=4096' npx rollup -c rollup.config.js",
|
|
32
|
-
"build:memory": "NODE_OPTIONS='--max-old-space-size=6144' npx rollup -c rollup.config.js",
|
|
33
|
-
"install-memory-cli": "node scripts/install-memory-cli.js",
|
|
34
|
-
"install-xhsc": "node scripts/postinstall-xhsc.js",
|
|
35
|
-
"postinstall": "node scripts/postinstall.js",
|
|
36
|
-
"prepublishOnly": "npm run build",
|
|
37
|
-
"test": "jest",
|
|
38
|
-
"test:coverage": "jest --coverage",
|
|
39
|
-
"test:watch": "jest --watch"
|
|
40
|
-
},
|
|
41
|
-
"dependencies": {
|
|
42
|
-
"csrf-csrf": "^4.0.3",
|
|
43
|
-
"helmet": "^8.1.0",
|
|
44
|
-
"ioredis": "^5.10.0",
|
|
45
|
-
"morgan": "^1.10.1",
|
|
46
|
-
"nehoid": "^2.2.1",
|
|
47
|
-
"node-fetch": "^3.3.2",
|
|
48
|
-
"redis": "^5.11.0",
|
|
49
|
-
"reliant-type": "^2.1.5",
|
|
50
|
-
"strulink": "^1.2.0",
|
|
51
|
-
"xss": "^1.0.15",
|
|
52
|
-
"xypriss-compression": "^1.0.6",
|
|
53
|
-
"xypriss-security": "^2.1.16",
|
|
54
|
-
"xypriss-swagger": "workspace:*"
|
|
55
|
-
},
|
|
56
|
-
"devDependencies": {
|
|
57
|
-
"@rollup/plugin-commonjs": "^25.0.8",
|
|
58
|
-
"@rollup/plugin-json": "^6.1.0",
|
|
59
|
-
"@rollup/plugin-node-resolve": "^15.3.1",
|
|
60
|
-
"@rollup/plugin-terser": "^1.0.0",
|
|
61
|
-
"@rollup/plugin-typescript": "^11.1.6",
|
|
62
|
-
"@types/morgan": "^1.9.10",
|
|
63
|
-
"@types/node": "^25.3.3",
|
|
64
|
-
"@typescript-eslint/eslint-plugin": "^5.62.0",
|
|
65
|
-
"@typescript-eslint/parser": "^5.62.0",
|
|
66
|
-
"eslint": "^8.57.1",
|
|
67
|
-
"rimraf": "^4.4.1",
|
|
68
|
-
"rollup": "^4.59.0",
|
|
69
|
-
"rollup-plugin-dts": "^6.3.0",
|
|
70
|
-
"ts-node": "^10.9.2",
|
|
71
|
-
"typedoc": "^0.25.13"
|
|
72
|
-
},
|
|
73
|
-
"peerDependencies": {
|
|
74
|
-
"react": "\u003e=16.8.0"
|
|
75
|
-
}
|
|
76
|
-
}
|
|
76
|
+
}
|