@modern-js/plugin 2.21.1 → 2.22.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/CHANGELOG.md +8 -0
- package/dist/cjs/farrow-pipeline/context.js +3 -1
- package/dist/cjs/farrow-pipeline/counter.js +3 -1
- package/dist/cjs/farrow-pipeline/index.js +12 -4
- package/dist/cjs/manager/async.js +3 -1
- package/dist/cjs/manager/shared.js +15 -5
- package/dist/cjs/manager/sync.js +15 -5
- package/dist/cjs/waterfall/async.js +9 -3
- package/dist/cjs/waterfall/sync.js +9 -3
- package/dist/cjs/workflow/async.js +6 -2
- package/dist/cjs/workflow/parallel.js +6 -2
- package/dist/cjs/workflow/sync.js +6 -2
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
@@ -4,7 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
});
|
5
5
|
Object.defineProperty(exports, "createContext", {
|
6
6
|
enumerable: true,
|
7
|
-
get: ()
|
7
|
+
get: function() {
|
8
|
+
return createContext;
|
9
|
+
}
|
8
10
|
});
|
9
11
|
const createContext = (value) => {
|
10
12
|
let currentValue = value;
|
@@ -4,7 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
});
|
5
5
|
Object.defineProperty(exports, "createCounter", {
|
6
6
|
enumerable: true,
|
7
|
-
get: ()
|
7
|
+
get: function() {
|
8
|
+
return createCounter;
|
9
|
+
}
|
8
10
|
});
|
9
11
|
const createCounter = (callback) => {
|
10
12
|
const dispatch = (index, input) => {
|
@@ -10,10 +10,18 @@ function _export(target, all) {
|
|
10
10
|
});
|
11
11
|
}
|
12
12
|
_export(exports, {
|
13
|
-
createContext: ()
|
14
|
-
|
15
|
-
|
16
|
-
|
13
|
+
createContext: function() {
|
14
|
+
return _context.createContext;
|
15
|
+
},
|
16
|
+
isPipeline: function() {
|
17
|
+
return isPipeline;
|
18
|
+
},
|
19
|
+
createPipeline: function() {
|
20
|
+
return createPipeline;
|
21
|
+
},
|
22
|
+
createAsyncPipeline: function() {
|
23
|
+
return createAsyncPipeline;
|
24
|
+
}
|
17
25
|
});
|
18
26
|
const _context = require("./context");
|
19
27
|
const _counter = require("./counter");
|
@@ -4,7 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
});
|
5
5
|
Object.defineProperty(exports, "createAsyncManager", {
|
6
6
|
enumerable: true,
|
7
|
-
get: ()
|
7
|
+
get: function() {
|
8
|
+
return createAsyncManager;
|
9
|
+
}
|
8
10
|
});
|
9
11
|
const _sync = require("./sync");
|
10
12
|
const _shared = require("./shared");
|
@@ -10,11 +10,21 @@ function _export(target, all) {
|
|
10
10
|
});
|
11
11
|
}
|
12
12
|
_export(exports, {
|
13
|
-
checkPlugins: ()
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
13
|
+
checkPlugins: function() {
|
14
|
+
return checkPlugins;
|
15
|
+
},
|
16
|
+
sortPlugins: function() {
|
17
|
+
return sortPlugins;
|
18
|
+
},
|
19
|
+
includePlugin: function() {
|
20
|
+
return includePlugin;
|
21
|
+
},
|
22
|
+
isObject: function() {
|
23
|
+
return isObject;
|
24
|
+
},
|
25
|
+
hasOwnProperty: function() {
|
26
|
+
return hasOwnProperty;
|
27
|
+
}
|
18
28
|
});
|
19
29
|
const _plugindagsort = require("@modern-js/utils/universal/plugin-dag-sort");
|
20
30
|
const checkPlugins = (plugins) => {
|
package/dist/cjs/manager/sync.js
CHANGED
@@ -10,11 +10,21 @@ function _export(target, all) {
|
|
10
10
|
});
|
11
11
|
}
|
12
12
|
_export(exports, {
|
13
|
-
DEFAULT_OPTIONS: ()
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
13
|
+
DEFAULT_OPTIONS: function() {
|
14
|
+
return DEFAULT_OPTIONS;
|
15
|
+
},
|
16
|
+
createManager: function() {
|
17
|
+
return createManager;
|
18
|
+
},
|
19
|
+
generateRunner: function() {
|
20
|
+
return generateRunner;
|
21
|
+
},
|
22
|
+
cloneHook: function() {
|
23
|
+
return cloneHook;
|
24
|
+
},
|
25
|
+
cloneHooksMap: function() {
|
26
|
+
return cloneHooksMap;
|
27
|
+
}
|
18
28
|
});
|
19
29
|
const _farrowpipeline = require("../farrow-pipeline");
|
20
30
|
const _waterfall = require("../waterfall");
|
@@ -10,9 +10,15 @@ function _export(target, all) {
|
|
10
10
|
});
|
11
11
|
}
|
12
12
|
_export(exports, {
|
13
|
-
getAsyncBrook: ()
|
14
|
-
|
15
|
-
|
13
|
+
getAsyncBrook: function() {
|
14
|
+
return getAsyncBrook;
|
15
|
+
},
|
16
|
+
createAsyncWaterfall: function() {
|
17
|
+
return createAsyncWaterfall;
|
18
|
+
},
|
19
|
+
isAsyncWaterfall: function() {
|
20
|
+
return isAsyncWaterfall;
|
21
|
+
}
|
16
22
|
});
|
17
23
|
const _farrowpipeline = require("../farrow-pipeline");
|
18
24
|
const ASYNC_WATERFALL_SYMBOL = Symbol.for("MODERN_ASYNC_WATERFALL");
|
@@ -10,9 +10,15 @@ function _export(target, all) {
|
|
10
10
|
});
|
11
11
|
}
|
12
12
|
_export(exports, {
|
13
|
-
getBrook: ()
|
14
|
-
|
15
|
-
|
13
|
+
getBrook: function() {
|
14
|
+
return getBrook;
|
15
|
+
},
|
16
|
+
createWaterfall: function() {
|
17
|
+
return createWaterfall;
|
18
|
+
},
|
19
|
+
isWaterfall: function() {
|
20
|
+
return isWaterfall;
|
21
|
+
}
|
16
22
|
});
|
17
23
|
const _farrowpipeline = require("../farrow-pipeline");
|
18
24
|
const WATERFALL_SYMBOL = Symbol.for("MODERN_WATERFALL");
|
@@ -10,8 +10,12 @@ function _export(target, all) {
|
|
10
10
|
});
|
11
11
|
}
|
12
12
|
_export(exports, {
|
13
|
-
isAsyncWorkflow: ()
|
14
|
-
|
13
|
+
isAsyncWorkflow: function() {
|
14
|
+
return isAsyncWorkflow;
|
15
|
+
},
|
16
|
+
createAsyncWorkflow: function() {
|
17
|
+
return createAsyncWorkflow;
|
18
|
+
}
|
15
19
|
});
|
16
20
|
const _farrowpipeline = require("../farrow-pipeline");
|
17
21
|
const ASYNC_WORKFLOW_SYMBOL = Symbol.for("MODERN_ASYNC_WORKFLOW");
|
@@ -10,8 +10,12 @@ function _export(target, all) {
|
|
10
10
|
});
|
11
11
|
}
|
12
12
|
_export(exports, {
|
13
|
-
isParallelWorkflow: ()
|
14
|
-
|
13
|
+
isParallelWorkflow: function() {
|
14
|
+
return isParallelWorkflow;
|
15
|
+
},
|
16
|
+
createParallelWorkflow: function() {
|
17
|
+
return createParallelWorkflow;
|
18
|
+
}
|
15
19
|
});
|
16
20
|
const _farrowpipeline = require("../farrow-pipeline");
|
17
21
|
const PARALLEL_WORKFLOW_SYMBOL = Symbol.for("MODERN_PARALLEL_WORKFLOW");
|
@@ -10,8 +10,12 @@ function _export(target, all) {
|
|
10
10
|
});
|
11
11
|
}
|
12
12
|
_export(exports, {
|
13
|
-
createWorkflow: ()
|
14
|
-
|
13
|
+
createWorkflow: function() {
|
14
|
+
return createWorkflow;
|
15
|
+
},
|
16
|
+
isWorkflow: function() {
|
17
|
+
return isWorkflow;
|
18
|
+
}
|
15
19
|
});
|
16
20
|
const _farrowpipeline = require("../farrow-pipeline");
|
17
21
|
const WORKFLOW_SYMBOL = Symbol.for("MODERN_WORKFLOW");
|
package/package.json
CHANGED
@@ -15,7 +15,7 @@
|
|
15
15
|
"modern",
|
16
16
|
"modern.js"
|
17
17
|
],
|
18
|
-
"version": "2.
|
18
|
+
"version": "2.22.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.1",
|
36
|
-
"@modern-js/utils": "2.
|
36
|
+
"@modern-js/utils": "2.22.0"
|
37
37
|
},
|
38
38
|
"devDependencies": {
|
39
39
|
"@types/jest": "^29",
|
40
40
|
"@types/node": "^14",
|
41
41
|
"typescript": "^5",
|
42
42
|
"jest": "^29",
|
43
|
-
"@scripts/build": "2.
|
44
|
-
"@scripts/jest-config": "2.
|
43
|
+
"@scripts/build": "2.22.0",
|
44
|
+
"@scripts/jest-config": "2.22.0"
|
45
45
|
},
|
46
46
|
"sideEffects": false,
|
47
47
|
"publishConfig": {
|