@modern-js/plugin 2.65.5 → 2.67.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.
@@ -9,7 +9,7 @@ export { createContext };
|
|
9
9
|
export type { Context };
|
10
10
|
export type Middleware<I = unknown, O = unknown> = (input: I, next: Next<I, O>) => O;
|
11
11
|
export type Middlewares<I = unknown, O = unknown> = Middleware<I, O>[];
|
12
|
-
export declare const isPipeline: (input: any) => input is Pipeline
|
12
|
+
export declare const isPipeline: (input: any) => input is Pipeline;
|
13
13
|
declare const PipelineSymbol: unique symbol;
|
14
14
|
export type RunPipelineOptions<I = unknown, O = unknown> = {
|
15
15
|
onLast?: (input: I) => O;
|
@@ -50,5 +50,5 @@ export type AsyncManager<Hooks, API> = {
|
|
50
50
|
*/
|
51
51
|
useRunner: () => ToRunners<Hooks>;
|
52
52
|
};
|
53
|
-
export declare const createAsyncManager: <Hooks extends Record<string, any>, API extends Record<string, any> = Record<string, never>>(hooks?: Partial<Hooks
|
53
|
+
export declare const createAsyncManager: <Hooks extends Record<string, any>, API extends Record<string, any> = Record<string, never>>(hooks?: Partial<Hooks>, api?: API) => AsyncManager<Hooks, API>;
|
54
54
|
export {};
|
@@ -59,8 +59,8 @@ export declare const DEFAULT_OPTIONS: {
|
|
59
59
|
usePlugins: never[];
|
60
60
|
registerHook: {};
|
61
61
|
};
|
62
|
-
export declare const createManager: <Hooks extends Record<string, any>, API extends Record<string, any> = Record<string, never>>(hooks?: Partial<Hooks
|
63
|
-
export declare const generateRunner: <Hooks extends Record<string, any>>(hooksList: (void | Partial<ToThreads<Hooks>>)[], hooksMap?: Hooks
|
62
|
+
export declare const createManager: <Hooks extends Record<string, any>, API extends Record<string, any> = Record<string, never>>(hooks?: Partial<Hooks>, api?: API) => Manager<Hooks, API>;
|
63
|
+
export declare const generateRunner: <Hooks extends Record<string, any>>(hooksList: (void | Partial<ToThreads<Hooks>>)[], hooksMap?: Hooks) => ToRunners<Hooks>;
|
64
64
|
export declare const cloneHook: (hook: Hook) => Hook;
|
65
65
|
export declare const cloneHooksMap: <Hooks>(record: Hooks) => Hooks;
|
66
66
|
export {};
|
@@ -5,6 +5,6 @@ export type ParallelWorkflow<I, O = any> = {
|
|
5
5
|
use: (...I: AsyncWorkers<I, O>) => ParallelWorkflow<I, O>;
|
6
6
|
[PARALLEL_WORKFLOW_SYMBOL]: true;
|
7
7
|
};
|
8
|
-
export declare const isParallelWorkflow: (input: any) => input is ParallelWorkflow<any
|
8
|
+
export declare const isParallelWorkflow: (input: any) => input is ParallelWorkflow<any>;
|
9
9
|
export declare const createParallelWorkflow: <I = void, O = unknown>() => ParallelWorkflow<I, O>;
|
10
10
|
export {};
|
@@ -5,6 +5,6 @@ export type SyncParallelWorkflow<I, O = any> = {
|
|
5
5
|
use: (...I: Workers<I, O>) => SyncParallelWorkflow<I, O>;
|
6
6
|
[SYNC_PARALLEL_WORKFLOW_SYMBOL]: true;
|
7
7
|
};
|
8
|
-
export declare const isSyncParallelWorkflow: (input: any) => input is SyncParallelWorkflow<any
|
8
|
+
export declare const isSyncParallelWorkflow: (input: any) => input is SyncParallelWorkflow<any>;
|
9
9
|
export declare const createSyncParallelWorkflow: <I = void, O = unknown>() => SyncParallelWorkflow<I, O>;
|
10
10
|
export {};
|
package/package.json
CHANGED
@@ -15,7 +15,7 @@
|
|
15
15
|
"modern",
|
16
16
|
"modern.js"
|
17
17
|
],
|
18
|
-
"version": "2.
|
18
|
+
"version": "2.67.0",
|
19
19
|
"jsnext:source": "./src/index.ts",
|
20
20
|
"types": "./dist/types/index.d.ts",
|
21
21
|
"main": "./dist/cjs/index.js",
|
@@ -33,15 +33,15 @@
|
|
33
33
|
},
|
34
34
|
"dependencies": {
|
35
35
|
"@swc/helpers": "0.5.13",
|
36
|
-
"@modern-js/utils": "2.
|
36
|
+
"@modern-js/utils": "2.67.0"
|
37
37
|
},
|
38
38
|
"devDependencies": {
|
39
39
|
"@types/jest": "^29",
|
40
40
|
"@types/node": "^14",
|
41
41
|
"jest": "^29",
|
42
42
|
"typescript": "^5",
|
43
|
-
"@scripts/
|
44
|
-
"@scripts/
|
43
|
+
"@scripts/build": "2.66.0",
|
44
|
+
"@scripts/jest-config": "2.66.0"
|
45
45
|
},
|
46
46
|
"sideEffects": false,
|
47
47
|
"publishConfig": {
|