@cyberskill/shared 1.134.0 → 1.137.0
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 +10 -8
- package/dist/_tsup-dts-rollup.d.cts +101 -85
- package/dist/_tsup-dts-rollup.d.ts +101 -85
- package/dist/configs/config.util.cjs +1 -1
- package/dist/configs/config.util.js +1 -1
- package/dist/configs/index.cjs +1 -1
- package/dist/configs/index.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +10 -6
- package/dist/index.d.ts +10 -6
- package/dist/index.js +1 -1
- package/dist/node/apollo-server/apollo-server.util.js +1 -1
- package/dist/node/cli/cli.util.cjs +1 -1
- package/dist/node/cli/cli.util.js +1 -1
- package/dist/node/cli/index.cjs +1 -1
- package/dist/node/cli/index.js +1 -1
- package/dist/node/command/command.util.cjs +1 -1
- package/dist/node/command/command.util.js +1 -1
- package/dist/node/command/index.cjs +1 -1
- package/dist/node/command/index.js +1 -1
- package/dist/node/index.cjs +1 -1
- package/dist/node/index.d.cts +5 -6
- package/dist/node/index.d.ts +5 -6
- package/dist/node/index.js +1 -1
- package/dist/node/log/index.cjs +1 -1
- package/dist/node/log/index.d.cts +4 -2
- package/dist/node/log/index.d.ts +4 -2
- package/dist/node/log/index.js +1 -1
- package/dist/node/log/log.type.d.cts +2 -1
- package/dist/node/log/log.type.d.ts +2 -1
- package/dist/node/log/log.util.cjs +1 -1
- package/dist/node/log/log.util.d.cts +2 -1
- package/dist/node/log/log.util.d.ts +2 -1
- package/dist/node/log/log.util.js +1 -1
- package/dist/node/mongo/index.cjs +1 -1
- package/dist/node/mongo/index.d.cts +0 -3
- package/dist/node/mongo/index.d.ts +0 -3
- package/dist/node/mongo/index.js +1 -1
- package/dist/node/mongo/mongo.type.d.cts +0 -3
- package/dist/node/mongo/mongo.type.d.ts +0 -3
- package/dist/node/mongo/mongo.util.cjs +1 -1
- package/dist/node/mongo/mongo.util.js +1 -1
- package/dist/node/package/index.cjs +1 -1
- package/dist/node/package/index.js +1 -1
- package/dist/node/package/package.util.cjs +1 -1
- package/dist/node/package/package.util.js +1 -1
- package/dist/node/path/index.cjs +1 -1
- package/dist/node/path/index.js +1 -1
- package/dist/node/path/path.constant.cjs +1 -1
- package/dist/node/path/path.constant.js +1 -1
- package/dist/node/storage/index.cjs +1 -1
- package/dist/node/storage/index.d.cts +1 -1
- package/dist/node/storage/index.d.ts +1 -1
- package/dist/node/storage/index.js +1 -1
- package/dist/node/storage/storage.util.cjs +1 -1
- package/dist/node/storage/storage.util.d.cts +1 -1
- package/dist/node/storage/storage.util.d.ts +1 -1
- package/dist/node/storage/storage.util.js +1 -1
- package/dist/react/apollo-client/apollo-client.component.cjs +1 -1
- package/dist/react/apollo-client/apollo-client.component.js +1 -1
- package/dist/react/apollo-client/index.cjs +1 -1
- package/dist/react/apollo-client/index.js +1 -1
- package/dist/react/index.cjs +1 -1
- package/dist/react/index.d.cts +2 -0
- package/dist/react/index.d.ts +2 -0
- package/dist/react/index.js +1 -1
- package/dist/react/log/index.cjs +1 -1
- package/dist/react/log/index.d.cts +2 -0
- package/dist/react/log/index.d.ts +2 -0
- package/dist/react/log/index.js +1 -1
- package/dist/react/log/log.type.d.cts +1 -0
- package/dist/react/log/log.type.d.ts +1 -0
- package/dist/react/log/log.util.cjs +1 -1
- package/dist/react/log/log.util.d.cts +1 -0
- package/dist/react/log/log.util.d.ts +1 -0
- package/dist/react/log/log.util.js +1 -1
- package/dist/react/next-intl/index.cjs +1 -1
- package/dist/react/next-intl/index.js +1 -1
- package/dist/react/next-intl/next-intl.hoc.cjs +1 -1
- package/dist/react/next-intl/next-intl.provider.cjs +1 -1
- package/dist/react/next-intl/next-intl.provider.js +1 -1
- package/dist/react/storage/index.cjs +1 -1
- package/dist/react/storage/index.js +1 -1
- package/dist/react/storage/storage.hook.cjs +1 -1
- package/dist/react/storage/storage.hook.js +1 -1
- package/dist/react/storage/storage.util.cjs +1 -1
- package/dist/react/storage/storage.util.js +1 -1
- package/dist/react/vitest/index.cjs +1 -1
- package/dist/react/vitest/index.js +1 -1
- package/dist/react/vitest/vitest.unit.cjs +1 -1
- package/dist/react/vitest/vitest.unit.js +1 -1
- package/dist/typescript/common.d.cts +3 -0
- package/dist/typescript/common.d.ts +3 -0
- package/dist/typescript/index.d.cts +3 -0
- package/dist/typescript/index.d.ts +3 -0
- package/package.json +5 -6
package/README.md
CHANGED
|
@@ -51,14 +51,16 @@ pnpm install @cyberskill/shared
|
|
|
51
51
|
|
|
52
52
|
| Command | Description |
|
|
53
53
|
| ----------------------- | ----------------------------------- |
|
|
54
|
-
| `pnpm run dev` | Start development mode
|
|
55
|
-
| `pnpm run build` | Build for production
|
|
56
|
-
| `pnpm run lint` | Check for linting issues
|
|
57
|
-
| `pnpm run lint:fix` | Fix linting issues
|
|
58
|
-
| `pnpm run lint:inspect` | Inspect linting config
|
|
59
|
-
| `pnpm run prepare` | Project prepare
|
|
60
|
-
| `pnpm run reset` | Reset the project
|
|
61
|
-
| `pnpm run inspect` | Inspect the project dependencies
|
|
54
|
+
| `pnpm run dev` | 🚧 Start development mode |
|
|
55
|
+
| `pnpm run build` | 🚀 Build for production |
|
|
56
|
+
| `pnpm run lint` | ✅ Check for linting issues |
|
|
57
|
+
| `pnpm run lint:fix` | 🔧 Fix linting issues |
|
|
58
|
+
| `pnpm run lint:inspect` | 🧐 Inspect linting config |
|
|
59
|
+
| `pnpm run prepare` | 🏗️ Project prepare |
|
|
60
|
+
| `pnpm run reset` | ♻️ Reset the project |
|
|
61
|
+
| `pnpm run inspect` | 🔍 Inspect the project dependencies |
|
|
62
|
+
| `pnpm run test:unit` | 🔬 Run unit tests |
|
|
63
|
+
| `pnpm run test:e2e` | 🧪 Run end-to-end tests |
|
|
62
64
|
|
|
63
65
|
---
|
|
64
66
|
|
|
@@ -57,7 +57,7 @@ import type { OptionalUnlessRequiredId } from 'mongodb';
|
|
|
57
57
|
import type { PaginateModel } from 'mongoose';
|
|
58
58
|
import type { PaginateOptions } from 'mongoose';
|
|
59
59
|
import type { PaginateResult } from 'mongoose';
|
|
60
|
-
import
|
|
60
|
+
import pathNode from 'node:path';
|
|
61
61
|
import type { PipelineStage } from 'mongoose';
|
|
62
62
|
import type { PopulateOption } from 'mongoose';
|
|
63
63
|
import type { PopulateOptions } from 'mongoose';
|
|
@@ -184,6 +184,26 @@ export { C_Model as C_Model_alias_1 }
|
|
|
184
184
|
export { C_Model as C_Model_alias_2 }
|
|
185
185
|
export { C_Model as C_Model_alias_3 }
|
|
186
186
|
|
|
187
|
+
declare function catchError<T = unknown>(errorInput: unknown, options: I_CatchErrorOptions & {
|
|
188
|
+
returnValue: T;
|
|
189
|
+
}): T;
|
|
190
|
+
|
|
191
|
+
declare function catchError<T = unknown>(errorInput: unknown, options?: I_CatchErrorOptions): I_Return_2<T>;
|
|
192
|
+
export { catchError }
|
|
193
|
+
export { catchError as catchError_alias_1 }
|
|
194
|
+
export { catchError as catchError_alias_2 }
|
|
195
|
+
export { catchError as catchError_alias_3 }
|
|
196
|
+
|
|
197
|
+
declare function catchErrorNode<T = unknown>(errorInput: unknown, options: I_CatchErrorOptionsNode & {
|
|
198
|
+
returnValue: T;
|
|
199
|
+
}): T;
|
|
200
|
+
|
|
201
|
+
declare function catchErrorNode<T = unknown>(errorInput: unknown, options?: I_CatchErrorOptionsNode): I_Return_2<T>;
|
|
202
|
+
export { catchErrorNode }
|
|
203
|
+
export { catchErrorNode as catchErrorNode_alias_1 }
|
|
204
|
+
export { catchErrorNode as catchErrorNode_alias_2 }
|
|
205
|
+
export { catchErrorNode as catchErrorNode_alias_3 }
|
|
206
|
+
|
|
187
207
|
declare function clearAllErrorLists(): Promise<void>;
|
|
188
208
|
export { clearAllErrorLists }
|
|
189
209
|
export { clearAllErrorLists as clearAllErrorLists_alias_1 }
|
|
@@ -1666,13 +1686,13 @@ export { getFileName as getFileName_alias_1 }
|
|
|
1666
1686
|
export { getFileName as getFileName_alias_2 }
|
|
1667
1687
|
export { getFileName as getFileName_alias_3 }
|
|
1668
1688
|
|
|
1669
|
-
declare function getLatestPackageVersion(packageName: string): Promise<string
|
|
1689
|
+
declare function getLatestPackageVersion(packageName: string): Promise<I_Return_2<string>>;
|
|
1670
1690
|
export { getLatestPackageVersion }
|
|
1671
1691
|
export { getLatestPackageVersion as getLatestPackageVersion_alias_1 }
|
|
1672
1692
|
export { getLatestPackageVersion as getLatestPackageVersion_alias_2 }
|
|
1673
1693
|
export { getLatestPackageVersion as getLatestPackageVersion_alias_3 }
|
|
1674
1694
|
|
|
1675
|
-
declare function getPackage(inputPackage: I_PackageInput): Promise<I_PackageInfo
|
|
1695
|
+
declare function getPackage(inputPackage: I_PackageInput): Promise<I_Return_2<I_PackageInfo>>;
|
|
1676
1696
|
export { getPackage }
|
|
1677
1697
|
export { getPackage as getPackage_alias_1 }
|
|
1678
1698
|
export { getPackage as getPackage_alias_2 }
|
|
@@ -1765,6 +1785,26 @@ declare interface I_BaseCorsOptions {
|
|
|
1765
1785
|
whiteList?: string[];
|
|
1766
1786
|
}
|
|
1767
1787
|
|
|
1788
|
+
declare interface I_CatchErrorOptions {
|
|
1789
|
+
shouldLog?: boolean;
|
|
1790
|
+
returnValue?: unknown;
|
|
1791
|
+
callback?: (error: Error) => void;
|
|
1792
|
+
}
|
|
1793
|
+
export { I_CatchErrorOptions }
|
|
1794
|
+
export { I_CatchErrorOptions as I_CatchErrorOptions_alias_1 }
|
|
1795
|
+
export { I_CatchErrorOptions as I_CatchErrorOptions_alias_2 }
|
|
1796
|
+
export { I_CatchErrorOptions as I_CatchErrorOptions_alias_3 }
|
|
1797
|
+
|
|
1798
|
+
declare interface I_CatchErrorOptionsNode {
|
|
1799
|
+
shouldLog?: boolean;
|
|
1800
|
+
returnValue?: unknown;
|
|
1801
|
+
callback?: (error: Error) => void;
|
|
1802
|
+
}
|
|
1803
|
+
export { I_CatchErrorOptionsNode }
|
|
1804
|
+
export { I_CatchErrorOptionsNode as I_CatchErrorOptionsNode_alias_1 }
|
|
1805
|
+
export { I_CatchErrorOptionsNode as I_CatchErrorOptionsNode_alias_2 }
|
|
1806
|
+
export { I_CatchErrorOptionsNode as I_CatchErrorOptionsNode_alias_3 }
|
|
1807
|
+
|
|
1768
1808
|
declare interface I_Children {
|
|
1769
1809
|
children: T_Children;
|
|
1770
1810
|
}
|
|
@@ -1801,10 +1841,10 @@ export { I_CopySyncOptions as I_CopySyncOptions_alias_1 }
|
|
|
1801
1841
|
export { I_CopySyncOptions as I_CopySyncOptions_alias_2 }
|
|
1802
1842
|
export { I_CopySyncOptions as I_CopySyncOptions_alias_3 }
|
|
1803
1843
|
|
|
1804
|
-
declare interface
|
|
1844
|
+
declare interface I_CorsOptionsNest extends I_BaseCorsOptions, CorsOptions_2 {
|
|
1805
1845
|
}
|
|
1806
1846
|
|
|
1807
|
-
declare interface
|
|
1847
|
+
declare interface I_CorsOptionsNode extends I_BaseCorsOptions, CorsOptions, CorsOptionsDelegate<CorsRequest> {
|
|
1808
1848
|
}
|
|
1809
1849
|
|
|
1810
1850
|
declare interface I_CreateModelOptions<T extends Partial<C_Document>> extends I_MongooseOptions<T> {
|
|
@@ -2071,13 +2111,13 @@ declare interface I_Log_2 {
|
|
|
2071
2111
|
verbose: typeof consola['verbose'];
|
|
2072
2112
|
}
|
|
2073
2113
|
|
|
2074
|
-
declare interface
|
|
2114
|
+
declare interface I_LogNode extends I_Log_2 {
|
|
2075
2115
|
printBoxedLog: (title: string, issues: I_IssueEntry[], color?: string) => void;
|
|
2076
2116
|
}
|
|
2077
|
-
export {
|
|
2078
|
-
export {
|
|
2079
|
-
export {
|
|
2080
|
-
export {
|
|
2117
|
+
export { I_LogNode }
|
|
2118
|
+
export { I_LogNode as I_LogNode_alias_1 }
|
|
2119
|
+
export { I_LogNode as I_LogNode_alias_2 }
|
|
2120
|
+
export { I_LogNode as I_LogNode_alias_3 }
|
|
2081
2121
|
|
|
2082
2122
|
declare interface I_MongooseModelMiddleware<T extends Partial<C_Document>> {
|
|
2083
2123
|
method: T_MongooseMiddlewareMethod;
|
|
@@ -2179,7 +2219,8 @@ declare type I_Return<T = void, E = unknown> = I_ReturnSuccess<T, E> | I_ReturnF
|
|
|
2179
2219
|
export { I_Return }
|
|
2180
2220
|
export { I_Return as I_Return_alias_1 }
|
|
2181
2221
|
export { I_Return as I_Return_alias_2 }
|
|
2182
|
-
|
|
2222
|
+
|
|
2223
|
+
declare type I_Return_2<T = void, E = unknown> = I_ReturnSuccess_2<T, E> | I_ReturnFailure_2;
|
|
2183
2224
|
|
|
2184
2225
|
declare interface I_ReturnFailure {
|
|
2185
2226
|
success: false;
|
|
@@ -2189,7 +2230,12 @@ declare interface I_ReturnFailure {
|
|
|
2189
2230
|
export { I_ReturnFailure }
|
|
2190
2231
|
export { I_ReturnFailure as I_ReturnFailure_alias_1 }
|
|
2191
2232
|
export { I_ReturnFailure as I_ReturnFailure_alias_2 }
|
|
2192
|
-
|
|
2233
|
+
|
|
2234
|
+
declare interface I_ReturnFailure_2 {
|
|
2235
|
+
success: false;
|
|
2236
|
+
message: string;
|
|
2237
|
+
code: number | string;
|
|
2238
|
+
}
|
|
2193
2239
|
|
|
2194
2240
|
declare interface I_ReturnSuccess<T, E = unknown> {
|
|
2195
2241
|
success: true;
|
|
@@ -2200,7 +2246,13 @@ declare interface I_ReturnSuccess<T, E = unknown> {
|
|
|
2200
2246
|
export { I_ReturnSuccess }
|
|
2201
2247
|
export { I_ReturnSuccess as I_ReturnSuccess_alias_1 }
|
|
2202
2248
|
export { I_ReturnSuccess as I_ReturnSuccess_alias_2 }
|
|
2203
|
-
|
|
2249
|
+
|
|
2250
|
+
declare interface I_ReturnSuccess_2<T, E = unknown> {
|
|
2251
|
+
success: true;
|
|
2252
|
+
result: T & E;
|
|
2253
|
+
message?: string;
|
|
2254
|
+
code?: number | string;
|
|
2255
|
+
}
|
|
2204
2256
|
|
|
2205
2257
|
declare interface I_Serializer<T = unknown> {
|
|
2206
2258
|
serialize: (value: T) => string;
|
|
@@ -2362,11 +2414,11 @@ export { log as log_alias_1 }
|
|
|
2362
2414
|
export { log as log_alias_2 }
|
|
2363
2415
|
export { log as log_alias_3 }
|
|
2364
2416
|
|
|
2365
|
-
declare const
|
|
2366
|
-
export {
|
|
2367
|
-
export {
|
|
2368
|
-
export {
|
|
2369
|
-
export {
|
|
2417
|
+
declare const logNode: I_LogNode;
|
|
2418
|
+
export { logNode }
|
|
2419
|
+
export { logNode as logNode_alias_1 }
|
|
2420
|
+
export { logNode as logNode_alias_2 }
|
|
2421
|
+
export { logNode as logNode_alias_3 }
|
|
2370
2422
|
|
|
2371
2423
|
declare const lstatSync: fsExtra.StatSyncFn;
|
|
2372
2424
|
export { lstatSync }
|
|
@@ -2455,51 +2507,15 @@ export { MONGO_MIGRATE_OPTIONS as MONGO_MIGRATE_OPTIONS_alias_3 }
|
|
|
2455
2507
|
declare class MongoController<D extends Partial<C_Document>> {
|
|
2456
2508
|
private collection;
|
|
2457
2509
|
constructor(db: C_Db, collectionName: string);
|
|
2458
|
-
createOne(document: D): Promise<
|
|
2459
|
-
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
|
|
2466
|
-
|
|
2467
|
-
}>;
|
|
2468
|
-
findOne(filter: T_Filter<D>): Promise<{
|
|
2469
|
-
success: boolean;
|
|
2470
|
-
message: string;
|
|
2471
|
-
result?: T_WithId<D> | null;
|
|
2472
|
-
}>;
|
|
2473
|
-
findAll(filter?: T_Filter<D>): Promise<{
|
|
2474
|
-
success: boolean;
|
|
2475
|
-
message: string;
|
|
2476
|
-
result?: T_WithId<D>[];
|
|
2477
|
-
}>;
|
|
2478
|
-
count(filter?: T_Filter<D>): Promise<{
|
|
2479
|
-
success: boolean;
|
|
2480
|
-
message: string;
|
|
2481
|
-
result?: number;
|
|
2482
|
-
}>;
|
|
2483
|
-
updateOne(filter: T_Filter<D>, update: Partial<D>): Promise<{
|
|
2484
|
-
success: boolean;
|
|
2485
|
-
message: string;
|
|
2486
|
-
result?: T_UpdateResult;
|
|
2487
|
-
}>;
|
|
2488
|
-
updateMany(filter: T_Filter<D>, update: Partial<D>): Promise<{
|
|
2489
|
-
success: boolean;
|
|
2490
|
-
message: string;
|
|
2491
|
-
result?: T_UpdateResult;
|
|
2492
|
-
}>;
|
|
2493
|
-
deleteOne(filter: T_Filter<D>): Promise<{
|
|
2494
|
-
success: boolean;
|
|
2495
|
-
message: string;
|
|
2496
|
-
result?: T_DeleteResult;
|
|
2497
|
-
}>;
|
|
2498
|
-
deleteMany(filter: T_Filter<D>): Promise<{
|
|
2499
|
-
success: boolean;
|
|
2500
|
-
message: string;
|
|
2501
|
-
result?: T_DeleteResult;
|
|
2502
|
-
}>;
|
|
2510
|
+
createOne(document: D): Promise<I_Return_2<T_InsertOneResult<D>>>;
|
|
2511
|
+
createMany(documents: D[]): Promise<I_Return_2<T_InsertManyResult<D>>>;
|
|
2512
|
+
findOne(filter: T_Filter<D>): Promise<I_Return_2<T_WithId<D>>>;
|
|
2513
|
+
findAll(filter?: T_Filter<D>): Promise<I_Return_2<T_WithId<D>[]>>;
|
|
2514
|
+
count(filter?: T_Filter<D>): Promise<I_Return_2<number>>;
|
|
2515
|
+
updateOne(filter: T_Filter<D>, update: Partial<D>): Promise<I_Return_2<T_UpdateResult>>;
|
|
2516
|
+
updateMany(filter: T_Filter<D>, update: Partial<D>): Promise<I_Return_2<T_UpdateResult>>;
|
|
2517
|
+
deleteOne(filter: T_Filter<D>): Promise<I_Return_2<T_DeleteResult>>;
|
|
2518
|
+
deleteMany(filter: T_Filter<D>): Promise<I_Return_2<T_DeleteResult>>;
|
|
2503
2519
|
}
|
|
2504
2520
|
export { MongoController }
|
|
2505
2521
|
export { MongoController as MongoController_alias_1 }
|
|
@@ -2510,20 +2526,20 @@ declare class MongooseController<T extends Partial<C_Document>> {
|
|
|
2510
2526
|
private model;
|
|
2511
2527
|
constructor(model: I_ExtendedModel<T>);
|
|
2512
2528
|
private getModelName;
|
|
2513
|
-
findOne(filter?: T_FilterQuery<T>, projection?: T_ProjectionType<T>, options?: T_QueryOptions<T>, populate?: T_Input_Populate): Promise<
|
|
2514
|
-
findAll(filter?: T_FilterQuery<T>, projection?: T_ProjectionType<T>, options?: T_QueryOptions<T>, populate?: T_Input_Populate): Promise<
|
|
2515
|
-
findPaging(filter?: T_FilterQuery<T>, options?: T_PaginateOptionsWithPopulate): Promise<
|
|
2516
|
-
findPagingAggregate(pipeline: T_PipelineStage[], options?: T_PaginateOptionsWithPopulate): Promise<
|
|
2517
|
-
count(filter?: T_FilterQuery<T>): Promise<
|
|
2518
|
-
createOne(doc: T | Partial<T>): Promise<
|
|
2519
|
-
createMany(docs: (T | Partial<T>)[], options?: T_InsertManyOptions): Promise<
|
|
2520
|
-
updateOne(filter?: T_FilterQuery<T>, update?: T_UpdateQuery<T>, options?: I_UpdateOptionsExtended): Promise<
|
|
2521
|
-
updateMany(filter?: T_FilterQuery<T>, update?: T_UpdateQuery<T>, options?: I_UpdateOptionsExtended): Promise<
|
|
2522
|
-
deleteOne(filter?: T_FilterQuery<T>, options?: I_DeleteOptionsExtended): Promise<
|
|
2523
|
-
deleteMany(filter?: T_FilterQuery<T>, options?: I_DeleteOptionsExtended): Promise<
|
|
2524
|
-
createShortId(id: string, length?: number): Promise<
|
|
2525
|
-
createSlug<R = string>(fieldName: string, fields: T, filters?: T_FilterQuery<T>): Promise<
|
|
2526
|
-
aggregate(pipeline: T_PipelineStage[]): Promise<
|
|
2529
|
+
findOne(filter?: T_FilterQuery<T>, projection?: T_ProjectionType<T>, options?: T_QueryOptions<T>, populate?: T_Input_Populate): Promise<I_Return_2<T>>;
|
|
2530
|
+
findAll(filter?: T_FilterQuery<T>, projection?: T_ProjectionType<T>, options?: T_QueryOptions<T>, populate?: T_Input_Populate): Promise<I_Return_2<T[]>>;
|
|
2531
|
+
findPaging(filter?: T_FilterQuery<T>, options?: T_PaginateOptionsWithPopulate): Promise<I_Return_2<T_PaginateResult<T>>>;
|
|
2532
|
+
findPagingAggregate(pipeline: T_PipelineStage[], options?: T_PaginateOptionsWithPopulate): Promise<I_Return_2<T_AggregatePaginateResult<T>>>;
|
|
2533
|
+
count(filter?: T_FilterQuery<T>): Promise<I_Return_2<number>>;
|
|
2534
|
+
createOne(doc: T | Partial<T>): Promise<I_Return_2<T>>;
|
|
2535
|
+
createMany(docs: (T | Partial<T>)[], options?: T_InsertManyOptions): Promise<I_Return_2<T[]>>;
|
|
2536
|
+
updateOne(filter?: T_FilterQuery<T>, update?: T_UpdateQuery<T>, options?: I_UpdateOptionsExtended): Promise<I_Return_2<T>>;
|
|
2537
|
+
updateMany(filter?: T_FilterQuery<T>, update?: T_UpdateQuery<T>, options?: I_UpdateOptionsExtended): Promise<I_Return_2<T_UpdateResult>>;
|
|
2538
|
+
deleteOne(filter?: T_FilterQuery<T>, options?: I_DeleteOptionsExtended): Promise<I_Return_2<T>>;
|
|
2539
|
+
deleteMany(filter?: T_FilterQuery<T>, options?: I_DeleteOptionsExtended): Promise<I_Return_2<T_DeleteResult>>;
|
|
2540
|
+
createShortId(id: string, length?: number): Promise<I_Return_2<string>>;
|
|
2541
|
+
createSlug<R = string>(fieldName: string, fields: T, filters?: T_FilterQuery<T>): Promise<I_Return_2<R>>;
|
|
2542
|
+
aggregate(pipeline: T_PipelineStage[]): Promise<I_Return_2<T[]>>;
|
|
2527
2543
|
}
|
|
2528
2544
|
export { MongooseController }
|
|
2529
2545
|
export { MongooseController as MongooseController_alias_1 }
|
|
@@ -2623,7 +2639,7 @@ export { PATH as PATH_alias_1 }
|
|
|
2623
2639
|
export { PATH as PATH_alias_2 }
|
|
2624
2640
|
export { PATH as PATH_alias_3 }
|
|
2625
2641
|
|
|
2626
|
-
declare const path:
|
|
2642
|
+
declare const path: pathNode.PlatformPath;
|
|
2627
2643
|
export { path }
|
|
2628
2644
|
export { path as path_alias_1 }
|
|
2629
2645
|
export { path as path_alias_2 }
|
|
@@ -2727,7 +2743,7 @@ export { resolve as resolve_alias_3 }
|
|
|
2727
2743
|
|
|
2728
2744
|
declare function resolveCommands(input: T_CommandMapInput): Promise<{
|
|
2729
2745
|
[k: string]: string | I_Command_2;
|
|
2730
|
-
}>;
|
|
2746
|
+
} | undefined>;
|
|
2731
2747
|
export { resolveCommands }
|
|
2732
2748
|
export { resolveCommands as resolveCommands_alias_1 }
|
|
2733
2749
|
export { resolveCommands as resolveCommands_alias_2 }
|
|
@@ -3071,17 +3087,17 @@ export { storage as storage_alias_1 }
|
|
|
3071
3087
|
export { storage as storage_alias_2 }
|
|
3072
3088
|
export { storage as storage_alias_3 }
|
|
3073
3089
|
|
|
3074
|
-
declare const
|
|
3090
|
+
declare const storageNode: {
|
|
3075
3091
|
get<T = unknown>(key: string): Promise<T | null>;
|
|
3076
3092
|
set<T = unknown>(key: string, value: T): Promise<void>;
|
|
3077
3093
|
remove(key: string): Promise<void>;
|
|
3078
3094
|
keys(): Promise<string[]>;
|
|
3079
3095
|
getLogLink(key: string): Promise<string | null>;
|
|
3080
3096
|
};
|
|
3081
|
-
export {
|
|
3082
|
-
export {
|
|
3083
|
-
export {
|
|
3084
|
-
export {
|
|
3097
|
+
export { storageNode }
|
|
3098
|
+
export { storageNode as storageNode_alias_1 }
|
|
3099
|
+
export { storageNode as storageNode_alias_2 }
|
|
3100
|
+
export { storageNode as storageNode_alias_3 }
|
|
3085
3101
|
|
|
3086
3102
|
/**
|
|
3087
3103
|
* Extracts a substring between two strings.
|
|
@@ -3143,7 +3159,7 @@ export { T_ConfigType }
|
|
|
3143
3159
|
export { T_ConfigType as T_ConfigType_alias_1 }
|
|
3144
3160
|
export { T_ConfigType as T_ConfigType_alias_2 }
|
|
3145
3161
|
|
|
3146
|
-
declare type T_CorsOptions<T extends T_CorsType> = T extends 'node' ?
|
|
3162
|
+
declare type T_CorsOptions<T extends T_CorsType> = T extends 'node' ? I_CorsOptionsNode : I_CorsOptionsNest;
|
|
3147
3163
|
export { T_CorsOptions }
|
|
3148
3164
|
export { T_CorsOptions as T_CorsOptions_alias_1 }
|
|
3149
3165
|
export { T_CorsOptions as T_CorsOptions_alias_2 }
|
|
@@ -57,7 +57,7 @@ import type { OptionalUnlessRequiredId } from 'mongodb';
|
|
|
57
57
|
import type { PaginateModel } from 'mongoose';
|
|
58
58
|
import type { PaginateOptions } from 'mongoose';
|
|
59
59
|
import type { PaginateResult } from 'mongoose';
|
|
60
|
-
import
|
|
60
|
+
import pathNode from 'node:path';
|
|
61
61
|
import type { PipelineStage } from 'mongoose';
|
|
62
62
|
import type { PopulateOption } from 'mongoose';
|
|
63
63
|
import type { PopulateOptions } from 'mongoose';
|
|
@@ -184,6 +184,26 @@ export { C_Model as C_Model_alias_1 }
|
|
|
184
184
|
export { C_Model as C_Model_alias_2 }
|
|
185
185
|
export { C_Model as C_Model_alias_3 }
|
|
186
186
|
|
|
187
|
+
declare function catchError<T = unknown>(errorInput: unknown, options: I_CatchErrorOptions & {
|
|
188
|
+
returnValue: T;
|
|
189
|
+
}): T;
|
|
190
|
+
|
|
191
|
+
declare function catchError<T = unknown>(errorInput: unknown, options?: I_CatchErrorOptions): I_Return_2<T>;
|
|
192
|
+
export { catchError }
|
|
193
|
+
export { catchError as catchError_alias_1 }
|
|
194
|
+
export { catchError as catchError_alias_2 }
|
|
195
|
+
export { catchError as catchError_alias_3 }
|
|
196
|
+
|
|
197
|
+
declare function catchErrorNode<T = unknown>(errorInput: unknown, options: I_CatchErrorOptionsNode & {
|
|
198
|
+
returnValue: T;
|
|
199
|
+
}): T;
|
|
200
|
+
|
|
201
|
+
declare function catchErrorNode<T = unknown>(errorInput: unknown, options?: I_CatchErrorOptionsNode): I_Return_2<T>;
|
|
202
|
+
export { catchErrorNode }
|
|
203
|
+
export { catchErrorNode as catchErrorNode_alias_1 }
|
|
204
|
+
export { catchErrorNode as catchErrorNode_alias_2 }
|
|
205
|
+
export { catchErrorNode as catchErrorNode_alias_3 }
|
|
206
|
+
|
|
187
207
|
declare function clearAllErrorLists(): Promise<void>;
|
|
188
208
|
export { clearAllErrorLists }
|
|
189
209
|
export { clearAllErrorLists as clearAllErrorLists_alias_1 }
|
|
@@ -1666,13 +1686,13 @@ export { getFileName as getFileName_alias_1 }
|
|
|
1666
1686
|
export { getFileName as getFileName_alias_2 }
|
|
1667
1687
|
export { getFileName as getFileName_alias_3 }
|
|
1668
1688
|
|
|
1669
|
-
declare function getLatestPackageVersion(packageName: string): Promise<string
|
|
1689
|
+
declare function getLatestPackageVersion(packageName: string): Promise<I_Return_2<string>>;
|
|
1670
1690
|
export { getLatestPackageVersion }
|
|
1671
1691
|
export { getLatestPackageVersion as getLatestPackageVersion_alias_1 }
|
|
1672
1692
|
export { getLatestPackageVersion as getLatestPackageVersion_alias_2 }
|
|
1673
1693
|
export { getLatestPackageVersion as getLatestPackageVersion_alias_3 }
|
|
1674
1694
|
|
|
1675
|
-
declare function getPackage(inputPackage: I_PackageInput): Promise<I_PackageInfo
|
|
1695
|
+
declare function getPackage(inputPackage: I_PackageInput): Promise<I_Return_2<I_PackageInfo>>;
|
|
1676
1696
|
export { getPackage }
|
|
1677
1697
|
export { getPackage as getPackage_alias_1 }
|
|
1678
1698
|
export { getPackage as getPackage_alias_2 }
|
|
@@ -1765,6 +1785,26 @@ declare interface I_BaseCorsOptions {
|
|
|
1765
1785
|
whiteList?: string[];
|
|
1766
1786
|
}
|
|
1767
1787
|
|
|
1788
|
+
declare interface I_CatchErrorOptions {
|
|
1789
|
+
shouldLog?: boolean;
|
|
1790
|
+
returnValue?: unknown;
|
|
1791
|
+
callback?: (error: Error) => void;
|
|
1792
|
+
}
|
|
1793
|
+
export { I_CatchErrorOptions }
|
|
1794
|
+
export { I_CatchErrorOptions as I_CatchErrorOptions_alias_1 }
|
|
1795
|
+
export { I_CatchErrorOptions as I_CatchErrorOptions_alias_2 }
|
|
1796
|
+
export { I_CatchErrorOptions as I_CatchErrorOptions_alias_3 }
|
|
1797
|
+
|
|
1798
|
+
declare interface I_CatchErrorOptionsNode {
|
|
1799
|
+
shouldLog?: boolean;
|
|
1800
|
+
returnValue?: unknown;
|
|
1801
|
+
callback?: (error: Error) => void;
|
|
1802
|
+
}
|
|
1803
|
+
export { I_CatchErrorOptionsNode }
|
|
1804
|
+
export { I_CatchErrorOptionsNode as I_CatchErrorOptionsNode_alias_1 }
|
|
1805
|
+
export { I_CatchErrorOptionsNode as I_CatchErrorOptionsNode_alias_2 }
|
|
1806
|
+
export { I_CatchErrorOptionsNode as I_CatchErrorOptionsNode_alias_3 }
|
|
1807
|
+
|
|
1768
1808
|
declare interface I_Children {
|
|
1769
1809
|
children: T_Children;
|
|
1770
1810
|
}
|
|
@@ -1801,10 +1841,10 @@ export { I_CopySyncOptions as I_CopySyncOptions_alias_1 }
|
|
|
1801
1841
|
export { I_CopySyncOptions as I_CopySyncOptions_alias_2 }
|
|
1802
1842
|
export { I_CopySyncOptions as I_CopySyncOptions_alias_3 }
|
|
1803
1843
|
|
|
1804
|
-
declare interface
|
|
1844
|
+
declare interface I_CorsOptionsNest extends I_BaseCorsOptions, CorsOptions_2 {
|
|
1805
1845
|
}
|
|
1806
1846
|
|
|
1807
|
-
declare interface
|
|
1847
|
+
declare interface I_CorsOptionsNode extends I_BaseCorsOptions, CorsOptions, CorsOptionsDelegate<CorsRequest> {
|
|
1808
1848
|
}
|
|
1809
1849
|
|
|
1810
1850
|
declare interface I_CreateModelOptions<T extends Partial<C_Document>> extends I_MongooseOptions<T> {
|
|
@@ -2071,13 +2111,13 @@ declare interface I_Log_2 {
|
|
|
2071
2111
|
verbose: typeof consola['verbose'];
|
|
2072
2112
|
}
|
|
2073
2113
|
|
|
2074
|
-
declare interface
|
|
2114
|
+
declare interface I_LogNode extends I_Log_2 {
|
|
2075
2115
|
printBoxedLog: (title: string, issues: I_IssueEntry[], color?: string) => void;
|
|
2076
2116
|
}
|
|
2077
|
-
export {
|
|
2078
|
-
export {
|
|
2079
|
-
export {
|
|
2080
|
-
export {
|
|
2117
|
+
export { I_LogNode }
|
|
2118
|
+
export { I_LogNode as I_LogNode_alias_1 }
|
|
2119
|
+
export { I_LogNode as I_LogNode_alias_2 }
|
|
2120
|
+
export { I_LogNode as I_LogNode_alias_3 }
|
|
2081
2121
|
|
|
2082
2122
|
declare interface I_MongooseModelMiddleware<T extends Partial<C_Document>> {
|
|
2083
2123
|
method: T_MongooseMiddlewareMethod;
|
|
@@ -2179,7 +2219,8 @@ declare type I_Return<T = void, E = unknown> = I_ReturnSuccess<T, E> | I_ReturnF
|
|
|
2179
2219
|
export { I_Return }
|
|
2180
2220
|
export { I_Return as I_Return_alias_1 }
|
|
2181
2221
|
export { I_Return as I_Return_alias_2 }
|
|
2182
|
-
|
|
2222
|
+
|
|
2223
|
+
declare type I_Return_2<T = void, E = unknown> = I_ReturnSuccess_2<T, E> | I_ReturnFailure_2;
|
|
2183
2224
|
|
|
2184
2225
|
declare interface I_ReturnFailure {
|
|
2185
2226
|
success: false;
|
|
@@ -2189,7 +2230,12 @@ declare interface I_ReturnFailure {
|
|
|
2189
2230
|
export { I_ReturnFailure }
|
|
2190
2231
|
export { I_ReturnFailure as I_ReturnFailure_alias_1 }
|
|
2191
2232
|
export { I_ReturnFailure as I_ReturnFailure_alias_2 }
|
|
2192
|
-
|
|
2233
|
+
|
|
2234
|
+
declare interface I_ReturnFailure_2 {
|
|
2235
|
+
success: false;
|
|
2236
|
+
message: string;
|
|
2237
|
+
code: number | string;
|
|
2238
|
+
}
|
|
2193
2239
|
|
|
2194
2240
|
declare interface I_ReturnSuccess<T, E = unknown> {
|
|
2195
2241
|
success: true;
|
|
@@ -2200,7 +2246,13 @@ declare interface I_ReturnSuccess<T, E = unknown> {
|
|
|
2200
2246
|
export { I_ReturnSuccess }
|
|
2201
2247
|
export { I_ReturnSuccess as I_ReturnSuccess_alias_1 }
|
|
2202
2248
|
export { I_ReturnSuccess as I_ReturnSuccess_alias_2 }
|
|
2203
|
-
|
|
2249
|
+
|
|
2250
|
+
declare interface I_ReturnSuccess_2<T, E = unknown> {
|
|
2251
|
+
success: true;
|
|
2252
|
+
result: T & E;
|
|
2253
|
+
message?: string;
|
|
2254
|
+
code?: number | string;
|
|
2255
|
+
}
|
|
2204
2256
|
|
|
2205
2257
|
declare interface I_Serializer<T = unknown> {
|
|
2206
2258
|
serialize: (value: T) => string;
|
|
@@ -2362,11 +2414,11 @@ export { log as log_alias_1 }
|
|
|
2362
2414
|
export { log as log_alias_2 }
|
|
2363
2415
|
export { log as log_alias_3 }
|
|
2364
2416
|
|
|
2365
|
-
declare const
|
|
2366
|
-
export {
|
|
2367
|
-
export {
|
|
2368
|
-
export {
|
|
2369
|
-
export {
|
|
2417
|
+
declare const logNode: I_LogNode;
|
|
2418
|
+
export { logNode }
|
|
2419
|
+
export { logNode as logNode_alias_1 }
|
|
2420
|
+
export { logNode as logNode_alias_2 }
|
|
2421
|
+
export { logNode as logNode_alias_3 }
|
|
2370
2422
|
|
|
2371
2423
|
declare const lstatSync: fsExtra.StatSyncFn;
|
|
2372
2424
|
export { lstatSync }
|
|
@@ -2455,51 +2507,15 @@ export { MONGO_MIGRATE_OPTIONS as MONGO_MIGRATE_OPTIONS_alias_3 }
|
|
|
2455
2507
|
declare class MongoController<D extends Partial<C_Document>> {
|
|
2456
2508
|
private collection;
|
|
2457
2509
|
constructor(db: C_Db, collectionName: string);
|
|
2458
|
-
createOne(document: D): Promise<
|
|
2459
|
-
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
|
|
2466
|
-
|
|
2467
|
-
}>;
|
|
2468
|
-
findOne(filter: T_Filter<D>): Promise<{
|
|
2469
|
-
success: boolean;
|
|
2470
|
-
message: string;
|
|
2471
|
-
result?: T_WithId<D> | null;
|
|
2472
|
-
}>;
|
|
2473
|
-
findAll(filter?: T_Filter<D>): Promise<{
|
|
2474
|
-
success: boolean;
|
|
2475
|
-
message: string;
|
|
2476
|
-
result?: T_WithId<D>[];
|
|
2477
|
-
}>;
|
|
2478
|
-
count(filter?: T_Filter<D>): Promise<{
|
|
2479
|
-
success: boolean;
|
|
2480
|
-
message: string;
|
|
2481
|
-
result?: number;
|
|
2482
|
-
}>;
|
|
2483
|
-
updateOne(filter: T_Filter<D>, update: Partial<D>): Promise<{
|
|
2484
|
-
success: boolean;
|
|
2485
|
-
message: string;
|
|
2486
|
-
result?: T_UpdateResult;
|
|
2487
|
-
}>;
|
|
2488
|
-
updateMany(filter: T_Filter<D>, update: Partial<D>): Promise<{
|
|
2489
|
-
success: boolean;
|
|
2490
|
-
message: string;
|
|
2491
|
-
result?: T_UpdateResult;
|
|
2492
|
-
}>;
|
|
2493
|
-
deleteOne(filter: T_Filter<D>): Promise<{
|
|
2494
|
-
success: boolean;
|
|
2495
|
-
message: string;
|
|
2496
|
-
result?: T_DeleteResult;
|
|
2497
|
-
}>;
|
|
2498
|
-
deleteMany(filter: T_Filter<D>): Promise<{
|
|
2499
|
-
success: boolean;
|
|
2500
|
-
message: string;
|
|
2501
|
-
result?: T_DeleteResult;
|
|
2502
|
-
}>;
|
|
2510
|
+
createOne(document: D): Promise<I_Return_2<T_InsertOneResult<D>>>;
|
|
2511
|
+
createMany(documents: D[]): Promise<I_Return_2<T_InsertManyResult<D>>>;
|
|
2512
|
+
findOne(filter: T_Filter<D>): Promise<I_Return_2<T_WithId<D>>>;
|
|
2513
|
+
findAll(filter?: T_Filter<D>): Promise<I_Return_2<T_WithId<D>[]>>;
|
|
2514
|
+
count(filter?: T_Filter<D>): Promise<I_Return_2<number>>;
|
|
2515
|
+
updateOne(filter: T_Filter<D>, update: Partial<D>): Promise<I_Return_2<T_UpdateResult>>;
|
|
2516
|
+
updateMany(filter: T_Filter<D>, update: Partial<D>): Promise<I_Return_2<T_UpdateResult>>;
|
|
2517
|
+
deleteOne(filter: T_Filter<D>): Promise<I_Return_2<T_DeleteResult>>;
|
|
2518
|
+
deleteMany(filter: T_Filter<D>): Promise<I_Return_2<T_DeleteResult>>;
|
|
2503
2519
|
}
|
|
2504
2520
|
export { MongoController }
|
|
2505
2521
|
export { MongoController as MongoController_alias_1 }
|
|
@@ -2510,20 +2526,20 @@ declare class MongooseController<T extends Partial<C_Document>> {
|
|
|
2510
2526
|
private model;
|
|
2511
2527
|
constructor(model: I_ExtendedModel<T>);
|
|
2512
2528
|
private getModelName;
|
|
2513
|
-
findOne(filter?: T_FilterQuery<T>, projection?: T_ProjectionType<T>, options?: T_QueryOptions<T>, populate?: T_Input_Populate): Promise<
|
|
2514
|
-
findAll(filter?: T_FilterQuery<T>, projection?: T_ProjectionType<T>, options?: T_QueryOptions<T>, populate?: T_Input_Populate): Promise<
|
|
2515
|
-
findPaging(filter?: T_FilterQuery<T>, options?: T_PaginateOptionsWithPopulate): Promise<
|
|
2516
|
-
findPagingAggregate(pipeline: T_PipelineStage[], options?: T_PaginateOptionsWithPopulate): Promise<
|
|
2517
|
-
count(filter?: T_FilterQuery<T>): Promise<
|
|
2518
|
-
createOne(doc: T | Partial<T>): Promise<
|
|
2519
|
-
createMany(docs: (T | Partial<T>)[], options?: T_InsertManyOptions): Promise<
|
|
2520
|
-
updateOne(filter?: T_FilterQuery<T>, update?: T_UpdateQuery<T>, options?: I_UpdateOptionsExtended): Promise<
|
|
2521
|
-
updateMany(filter?: T_FilterQuery<T>, update?: T_UpdateQuery<T>, options?: I_UpdateOptionsExtended): Promise<
|
|
2522
|
-
deleteOne(filter?: T_FilterQuery<T>, options?: I_DeleteOptionsExtended): Promise<
|
|
2523
|
-
deleteMany(filter?: T_FilterQuery<T>, options?: I_DeleteOptionsExtended): Promise<
|
|
2524
|
-
createShortId(id: string, length?: number): Promise<
|
|
2525
|
-
createSlug<R = string>(fieldName: string, fields: T, filters?: T_FilterQuery<T>): Promise<
|
|
2526
|
-
aggregate(pipeline: T_PipelineStage[]): Promise<
|
|
2529
|
+
findOne(filter?: T_FilterQuery<T>, projection?: T_ProjectionType<T>, options?: T_QueryOptions<T>, populate?: T_Input_Populate): Promise<I_Return_2<T>>;
|
|
2530
|
+
findAll(filter?: T_FilterQuery<T>, projection?: T_ProjectionType<T>, options?: T_QueryOptions<T>, populate?: T_Input_Populate): Promise<I_Return_2<T[]>>;
|
|
2531
|
+
findPaging(filter?: T_FilterQuery<T>, options?: T_PaginateOptionsWithPopulate): Promise<I_Return_2<T_PaginateResult<T>>>;
|
|
2532
|
+
findPagingAggregate(pipeline: T_PipelineStage[], options?: T_PaginateOptionsWithPopulate): Promise<I_Return_2<T_AggregatePaginateResult<T>>>;
|
|
2533
|
+
count(filter?: T_FilterQuery<T>): Promise<I_Return_2<number>>;
|
|
2534
|
+
createOne(doc: T | Partial<T>): Promise<I_Return_2<T>>;
|
|
2535
|
+
createMany(docs: (T | Partial<T>)[], options?: T_InsertManyOptions): Promise<I_Return_2<T[]>>;
|
|
2536
|
+
updateOne(filter?: T_FilterQuery<T>, update?: T_UpdateQuery<T>, options?: I_UpdateOptionsExtended): Promise<I_Return_2<T>>;
|
|
2537
|
+
updateMany(filter?: T_FilterQuery<T>, update?: T_UpdateQuery<T>, options?: I_UpdateOptionsExtended): Promise<I_Return_2<T_UpdateResult>>;
|
|
2538
|
+
deleteOne(filter?: T_FilterQuery<T>, options?: I_DeleteOptionsExtended): Promise<I_Return_2<T>>;
|
|
2539
|
+
deleteMany(filter?: T_FilterQuery<T>, options?: I_DeleteOptionsExtended): Promise<I_Return_2<T_DeleteResult>>;
|
|
2540
|
+
createShortId(id: string, length?: number): Promise<I_Return_2<string>>;
|
|
2541
|
+
createSlug<R = string>(fieldName: string, fields: T, filters?: T_FilterQuery<T>): Promise<I_Return_2<R>>;
|
|
2542
|
+
aggregate(pipeline: T_PipelineStage[]): Promise<I_Return_2<T[]>>;
|
|
2527
2543
|
}
|
|
2528
2544
|
export { MongooseController }
|
|
2529
2545
|
export { MongooseController as MongooseController_alias_1 }
|
|
@@ -2623,7 +2639,7 @@ export { PATH as PATH_alias_1 }
|
|
|
2623
2639
|
export { PATH as PATH_alias_2 }
|
|
2624
2640
|
export { PATH as PATH_alias_3 }
|
|
2625
2641
|
|
|
2626
|
-
declare const path:
|
|
2642
|
+
declare const path: pathNode.PlatformPath;
|
|
2627
2643
|
export { path }
|
|
2628
2644
|
export { path as path_alias_1 }
|
|
2629
2645
|
export { path as path_alias_2 }
|
|
@@ -2727,7 +2743,7 @@ export { resolve as resolve_alias_3 }
|
|
|
2727
2743
|
|
|
2728
2744
|
declare function resolveCommands(input: T_CommandMapInput): Promise<{
|
|
2729
2745
|
[k: string]: string | I_Command_2;
|
|
2730
|
-
}>;
|
|
2746
|
+
} | undefined>;
|
|
2731
2747
|
export { resolveCommands }
|
|
2732
2748
|
export { resolveCommands as resolveCommands_alias_1 }
|
|
2733
2749
|
export { resolveCommands as resolveCommands_alias_2 }
|
|
@@ -3071,17 +3087,17 @@ export { storage as storage_alias_1 }
|
|
|
3071
3087
|
export { storage as storage_alias_2 }
|
|
3072
3088
|
export { storage as storage_alias_3 }
|
|
3073
3089
|
|
|
3074
|
-
declare const
|
|
3090
|
+
declare const storageNode: {
|
|
3075
3091
|
get<T = unknown>(key: string): Promise<T | null>;
|
|
3076
3092
|
set<T = unknown>(key: string, value: T): Promise<void>;
|
|
3077
3093
|
remove(key: string): Promise<void>;
|
|
3078
3094
|
keys(): Promise<string[]>;
|
|
3079
3095
|
getLogLink(key: string): Promise<string | null>;
|
|
3080
3096
|
};
|
|
3081
|
-
export {
|
|
3082
|
-
export {
|
|
3083
|
-
export {
|
|
3084
|
-
export {
|
|
3097
|
+
export { storageNode }
|
|
3098
|
+
export { storageNode as storageNode_alias_1 }
|
|
3099
|
+
export { storageNode as storageNode_alias_2 }
|
|
3100
|
+
export { storageNode as storageNode_alias_3 }
|
|
3085
3101
|
|
|
3086
3102
|
/**
|
|
3087
3103
|
* Extracts a substring between two strings.
|
|
@@ -3143,7 +3159,7 @@ export { T_ConfigType }
|
|
|
3143
3159
|
export { T_ConfigType as T_ConfigType_alias_1 }
|
|
3144
3160
|
export { T_ConfigType as T_ConfigType_alias_2 }
|
|
3145
3161
|
|
|
3146
|
-
declare type T_CorsOptions<T extends T_CorsType> = T extends 'node' ?
|
|
3162
|
+
declare type T_CorsOptions<T extends T_CorsType> = T extends 'node' ? I_CorsOptionsNode : I_CorsOptionsNest;
|
|
3147
3163
|
export { T_CorsOptions }
|
|
3148
3164
|
export { T_CorsOptions as T_CorsOptions_alias_1 }
|
|
3149
3165
|
export { T_CorsOptions as T_CorsOptions_alias_2 }
|