@modern-js/plugin 2.58.2 → 2.59.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/cjs/manager/async.js +1 -1
- package/dist/esm-node/manager/async.js +4 -4
- package/dist/esm-node/manager/sync.js +3 -3
- package/dist/types/farrow-pipeline/index.d.ts +1 -1
- package/dist/types/manager/async.d.ts +1 -1
- package/dist/types/manager/sync.d.ts +1 -1
- package/dist/types/manager/types.d.ts +3 -3
- package/package.json +4 -4
@@ -21,8 +21,8 @@ __export(async_exports, {
|
|
21
21
|
createAsyncManager: () => createAsyncManager
|
22
22
|
});
|
23
23
|
module.exports = __toCommonJS(async_exports);
|
24
|
-
var import_sync = require("./sync");
|
25
24
|
var import_shared = require("./shared");
|
25
|
+
var import_sync = require("./sync");
|
26
26
|
const ASYNC_PLUGIN_SYMBOL = "ASYNC_PLUGIN_SYMBOL";
|
27
27
|
const createAsyncManager = (hooks, api) => {
|
28
28
|
let index = 0;
|
@@ -1,11 +1,11 @@
|
|
1
|
-
import { generateRunner, DEFAULT_OPTIONS } from "./sync";
|
2
1
|
import {
|
3
2
|
checkPlugins,
|
4
|
-
isObject,
|
5
3
|
hasOwnProperty,
|
6
|
-
|
7
|
-
|
4
|
+
includePlugin,
|
5
|
+
isObject,
|
6
|
+
sortPlugins
|
8
7
|
} from "./shared";
|
8
|
+
import { DEFAULT_OPTIONS, generateRunner } from "./sync";
|
9
9
|
const ASYNC_PLUGIN_SYMBOL = "ASYNC_PLUGIN_SYMBOL";
|
10
10
|
const createAsyncManager = (hooks, api) => {
|
11
11
|
let index = 0;
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import {
|
2
|
-
import {
|
3
|
-
import {
|
1
|
+
import { createPipeline, isPipeline } from "../farrow-pipeline";
|
2
|
+
import { createAsyncWaterfall, createWaterfall, isAsyncWaterfall, isWaterfall } from "../waterfall";
|
3
|
+
import { createAsyncInterruptWorkflow, createAsyncWorkflow, createParallelWorkflow, createSyncParallelWorkflow, createWorkflow, isAsyncInterruptWorkflow, isAsyncWorkflow, isParallelWorkflow, isSyncParallelWorkflow, isWorkflow } from "../workflow";
|
4
4
|
import {
|
5
5
|
checkPlugins,
|
6
6
|
hasOwnProperty,
|
@@ -2,7 +2,7 @@
|
|
2
2
|
* modified from https://github.com/farrow-js/farrow/tree/master/packages/farrow-pipeline
|
3
3
|
* license at https://github.com/farrow-js/farrow/blob/master/LICENSE
|
4
4
|
*/
|
5
|
-
import {
|
5
|
+
import { type Context, createContext } from './context';
|
6
6
|
import { type Next } from './counter';
|
7
7
|
export type { Next };
|
8
8
|
export { createContext };
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type {
|
1
|
+
import type { CommonAPI, PluginOptions, ToRunners, ToThreads } from './types';
|
2
2
|
/** Setup function of async plugin. */
|
3
3
|
export type AsyncSetup<Hooks, API = Record<string, never>> = (api: API & CommonAPI<Hooks>) => Partial<ToThreads<Hooks>> | Promise<Partial<ToThreads<Hooks>> | void> | void;
|
4
4
|
declare const ASYNC_PLUGIN_SYMBOL = "ASYNC_PLUGIN_SYMBOL";
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { Hook,
|
1
|
+
import type { CommonAPI, Hook, PluginOptions, ToRunners, ToThreads } from './types';
|
2
2
|
/** Setup function of sync plugin. */
|
3
3
|
export type Setup<Hooks, API = Record<string, never>> = (api: API) => Partial<ToThreads<Hooks>> | void;
|
4
4
|
declare const SYNC_PLUGIN_SYMBOL = "SYNC_PLUGIN_SYMBOL";
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import type {
|
2
|
-
import type {
|
3
|
-
import type {
|
1
|
+
import type { AsyncPipeline, MaybeAsync, Middleware, Pipeline } from '../farrow-pipeline';
|
2
|
+
import type { AsyncBrook, AsyncWaterfall, Brook, Waterfall } from '../waterfall';
|
3
|
+
import type { AsyncInterruptWorker, AsyncInterruptWorkflow, AsyncWorker, AsyncWorkflow, ParallelWorkflow, SyncParallelWorkflow, Worker, Workflow } from '../workflow';
|
4
4
|
/** All hook types. */
|
5
5
|
export type Hook = Waterfall<any> | AsyncWaterfall<any> | Workflow<any, any> | AsyncWorkflow<any, any> | ParallelWorkflow<any> | SyncParallelWorkflow<any> | Pipeline<any, any> | AsyncPipeline<any, any> | AsyncInterruptWorkflow<any, any>;
|
6
6
|
export type HooksMap = Record<string, Hook>;
|
package/package.json
CHANGED
@@ -15,7 +15,7 @@
|
|
15
15
|
"modern",
|
16
16
|
"modern.js"
|
17
17
|
],
|
18
|
-
"version": "2.
|
18
|
+
"version": "2.59.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.3",
|
36
|
-
"@modern-js/utils": "2.
|
36
|
+
"@modern-js/utils": "2.59.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.59.0",
|
44
|
+
"@scripts/jest-config": "2.59.0"
|
45
45
|
},
|
46
46
|
"sideEffects": false,
|
47
47
|
"publishConfig": {
|