@cyberskill/shared 1.111.0 → 1.113.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/dist/_tsup-dts-rollup.d.cts +17 -2
- package/dist/_tsup-dts-rollup.d.ts +17 -2
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -1
- package/dist/nodejs/cli/cli.util.cjs +1 -1
- package/dist/nodejs/cli/cli.util.js +1 -1
- package/dist/nodejs/cli/index.cjs +1 -1
- package/dist/nodejs/cli/index.js +1 -1
- package/dist/nodejs/express/express.util.cjs +1 -1
- package/dist/nodejs/express/express.util.d.cts +1 -0
- package/dist/nodejs/express/express.util.d.ts +1 -0
- package/dist/nodejs/express/express.util.js +1 -1
- package/dist/nodejs/express/index.cjs +1 -1
- package/dist/nodejs/express/index.d.cts +1 -0
- package/dist/nodejs/express/index.d.ts +1 -0
- package/dist/nodejs/express/index.js +1 -1
- package/dist/nodejs/index.cjs +1 -1
- package/dist/nodejs/index.d.cts +1 -0
- package/dist/nodejs/index.d.ts +1 -0
- package/dist/nodejs/index.js +1 -1
- package/package.json +2 -1
|
@@ -18,6 +18,10 @@ import type consola from 'consola';
|
|
|
18
18
|
import { Context } from 'react';
|
|
19
19
|
import type { CopySyncOptions } from 'node:fs';
|
|
20
20
|
import cors from 'cors';
|
|
21
|
+
import type { CorsOptions } from 'cors';
|
|
22
|
+
import type { CorsOptions as CorsOptions_2 } from '@nestjs/common/interfaces/external/cors-options.interface.js';
|
|
23
|
+
import type { CorsOptionsDelegate } from 'cors';
|
|
24
|
+
import type { CorsRequest } from 'cors';
|
|
21
25
|
import { Db } from 'mongodb';
|
|
22
26
|
import type { DeleteResult } from 'mongodb';
|
|
23
27
|
import { Disposable as Disposable_2 } from 'graphql-ws';
|
|
@@ -65,6 +69,7 @@ import { default as React_2 } from 'react';
|
|
|
65
69
|
import type { ReactElement } from 'react';
|
|
66
70
|
import type { ReactNode } from 'react';
|
|
67
71
|
import { Request as Request_2 } from 'express';
|
|
72
|
+
import type { RequestHandler } from 'express';
|
|
68
73
|
import { Response as Response_2 } from 'express';
|
|
69
74
|
import { Router } from 'express';
|
|
70
75
|
import type { Schema } from 'mongoose';
|
|
@@ -241,7 +246,7 @@ export { createApolloServer as createApolloServer_alias_1 }
|
|
|
241
246
|
export { createApolloServer as createApolloServer_alias_2 }
|
|
242
247
|
export { createApolloServer as createApolloServer_alias_3 }
|
|
243
248
|
|
|
244
|
-
declare function createCors(
|
|
249
|
+
declare function createCors({ isDev, whiteList, ...rest }: I_CorsOptions): (req: cors.CorsRequest, res: {
|
|
245
250
|
statusCode?: number | undefined;
|
|
246
251
|
setHeader(key: string, value: string): any;
|
|
247
252
|
end(): any;
|
|
@@ -276,6 +281,12 @@ export { createGraphqlCodegenConfig as createGraphqlCodegenConfig_alias_1 }
|
|
|
276
281
|
export { createGraphqlCodegenConfig as createGraphqlCodegenConfig_alias_2 }
|
|
277
282
|
export { createGraphqlCodegenConfig as createGraphqlCodegenConfig_alias_3 }
|
|
278
283
|
|
|
284
|
+
declare function createSession(options: SessionOptions): RequestHandler;
|
|
285
|
+
export { createSession }
|
|
286
|
+
export { createSession as createSession_alias_1 }
|
|
287
|
+
export { createSession as createSession_alias_2 }
|
|
288
|
+
export { createSession as createSession_alias_3 }
|
|
289
|
+
|
|
279
290
|
declare function createWSServer(options: I_WSOptions): WebSocketServer;
|
|
280
291
|
export { createWSServer }
|
|
281
292
|
export { createWSServer as createWSServer_alias_1 }
|
|
@@ -1768,7 +1779,7 @@ export { I_CopySyncOptions as I_CopySyncOptions_alias_1 }
|
|
|
1768
1779
|
export { I_CopySyncOptions as I_CopySyncOptions_alias_2 }
|
|
1769
1780
|
export { I_CopySyncOptions as I_CopySyncOptions_alias_3 }
|
|
1770
1781
|
|
|
1771
|
-
declare interface I_CorsOptions {
|
|
1782
|
+
declare interface I_CorsOptions extends ResolvedCorsOptions, CorsOptionsDelegate<CorsRequest> {
|
|
1772
1783
|
isDev?: boolean;
|
|
1773
1784
|
whiteList?: string[];
|
|
1774
1785
|
}
|
|
@@ -2673,6 +2684,10 @@ export { resolveCommands as resolveCommands_alias_1 }
|
|
|
2673
2684
|
export { resolveCommands as resolveCommands_alias_2 }
|
|
2674
2685
|
export { resolveCommands as resolveCommands_alias_3 }
|
|
2675
2686
|
|
|
2687
|
+
declare type ResolvedCorsOptions = Partial<CorsOptions> & Partial<CorsOptions_2> & {
|
|
2688
|
+
origin?: CorsOptions['origin'] | CorsOptions_2['origin'];
|
|
2689
|
+
};
|
|
2690
|
+
|
|
2676
2691
|
declare function resolveWorkingPath(...urls: string[]): string;
|
|
2677
2692
|
export { resolveWorkingPath }
|
|
2678
2693
|
export { resolveWorkingPath as resolveWorkingPath_alias_1 }
|
|
@@ -18,6 +18,10 @@ import type consola from 'consola';
|
|
|
18
18
|
import { Context } from 'react';
|
|
19
19
|
import type { CopySyncOptions } from 'node:fs';
|
|
20
20
|
import cors from 'cors';
|
|
21
|
+
import type { CorsOptions } from 'cors';
|
|
22
|
+
import type { CorsOptions as CorsOptions_2 } from '@nestjs/common/interfaces/external/cors-options.interface.js';
|
|
23
|
+
import type { CorsOptionsDelegate } from 'cors';
|
|
24
|
+
import type { CorsRequest } from 'cors';
|
|
21
25
|
import { Db } from 'mongodb';
|
|
22
26
|
import type { DeleteResult } from 'mongodb';
|
|
23
27
|
import { Disposable as Disposable_2 } from 'graphql-ws';
|
|
@@ -65,6 +69,7 @@ import { default as React_2 } from 'react';
|
|
|
65
69
|
import type { ReactElement } from 'react';
|
|
66
70
|
import type { ReactNode } from 'react';
|
|
67
71
|
import { Request as Request_2 } from 'express';
|
|
72
|
+
import type { RequestHandler } from 'express';
|
|
68
73
|
import { Response as Response_2 } from 'express';
|
|
69
74
|
import { Router } from 'express';
|
|
70
75
|
import type { Schema } from 'mongoose';
|
|
@@ -241,7 +246,7 @@ export { createApolloServer as createApolloServer_alias_1 }
|
|
|
241
246
|
export { createApolloServer as createApolloServer_alias_2 }
|
|
242
247
|
export { createApolloServer as createApolloServer_alias_3 }
|
|
243
248
|
|
|
244
|
-
declare function createCors(
|
|
249
|
+
declare function createCors({ isDev, whiteList, ...rest }: I_CorsOptions): (req: cors.CorsRequest, res: {
|
|
245
250
|
statusCode?: number | undefined;
|
|
246
251
|
setHeader(key: string, value: string): any;
|
|
247
252
|
end(): any;
|
|
@@ -276,6 +281,12 @@ export { createGraphqlCodegenConfig as createGraphqlCodegenConfig_alias_1 }
|
|
|
276
281
|
export { createGraphqlCodegenConfig as createGraphqlCodegenConfig_alias_2 }
|
|
277
282
|
export { createGraphqlCodegenConfig as createGraphqlCodegenConfig_alias_3 }
|
|
278
283
|
|
|
284
|
+
declare function createSession(options: SessionOptions): RequestHandler;
|
|
285
|
+
export { createSession }
|
|
286
|
+
export { createSession as createSession_alias_1 }
|
|
287
|
+
export { createSession as createSession_alias_2 }
|
|
288
|
+
export { createSession as createSession_alias_3 }
|
|
289
|
+
|
|
279
290
|
declare function createWSServer(options: I_WSOptions): WebSocketServer;
|
|
280
291
|
export { createWSServer }
|
|
281
292
|
export { createWSServer as createWSServer_alias_1 }
|
|
@@ -1768,7 +1779,7 @@ export { I_CopySyncOptions as I_CopySyncOptions_alias_1 }
|
|
|
1768
1779
|
export { I_CopySyncOptions as I_CopySyncOptions_alias_2 }
|
|
1769
1780
|
export { I_CopySyncOptions as I_CopySyncOptions_alias_3 }
|
|
1770
1781
|
|
|
1771
|
-
declare interface I_CorsOptions {
|
|
1782
|
+
declare interface I_CorsOptions extends ResolvedCorsOptions, CorsOptionsDelegate<CorsRequest> {
|
|
1772
1783
|
isDev?: boolean;
|
|
1773
1784
|
whiteList?: string[];
|
|
1774
1785
|
}
|
|
@@ -2673,6 +2684,10 @@ export { resolveCommands as resolveCommands_alias_1 }
|
|
|
2673
2684
|
export { resolveCommands as resolveCommands_alias_2 }
|
|
2674
2685
|
export { resolveCommands as resolveCommands_alias_3 }
|
|
2675
2686
|
|
|
2687
|
+
declare type ResolvedCorsOptions = Partial<CorsOptions> & Partial<CorsOptions_2> & {
|
|
2688
|
+
origin?: CorsOptions['origin'] | CorsOptions_2['origin'];
|
|
2689
|
+
};
|
|
2690
|
+
|
|
2676
2691
|
declare function resolveWorkingPath(...urls: string[]): string;
|
|
2677
2692
|
export { resolveWorkingPath }
|
|
2678
2693
|
export { resolveWorkingPath as resolveWorkingPath_alias_1 }
|