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