@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 CHANGED
@@ -1,5 +1,13 @@
1
1
  # @modern-js/plugin
2
2
 
3
+ ## 2.22.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [3d48836]
8
+ - Updated dependencies [5050e8e]
9
+ - @modern-js/utils@2.22.0
10
+
3
11
  ## 2.21.1
4
12
 
5
13
  ### Patch Changes
@@ -4,7 +4,9 @@ Object.defineProperty(exports, "__esModule", {
4
4
  });
5
5
  Object.defineProperty(exports, "createContext", {
6
6
  enumerable: true,
7
- get: () => createContext
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: () => createCounter
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: () => _context.createContext,
14
- isPipeline: () => isPipeline,
15
- createPipeline: () => createPipeline,
16
- createAsyncPipeline: () => createAsyncPipeline
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: () => createAsyncManager
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: () => checkPlugins,
14
- sortPlugins: () => sortPlugins,
15
- includePlugin: () => includePlugin,
16
- isObject: () => isObject,
17
- hasOwnProperty: () => hasOwnProperty
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) => {
@@ -10,11 +10,21 @@ function _export(target, all) {
10
10
  });
11
11
  }
12
12
  _export(exports, {
13
- DEFAULT_OPTIONS: () => DEFAULT_OPTIONS,
14
- createManager: () => createManager,
15
- generateRunner: () => generateRunner,
16
- cloneHook: () => cloneHook,
17
- cloneHooksMap: () => cloneHooksMap
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: () => getAsyncBrook,
14
- createAsyncWaterfall: () => createAsyncWaterfall,
15
- isAsyncWaterfall: () => isAsyncWaterfall
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: () => getBrook,
14
- createWaterfall: () => createWaterfall,
15
- isWaterfall: () => isWaterfall
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: () => isAsyncWorkflow,
14
- createAsyncWorkflow: () => createAsyncWorkflow
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: () => isParallelWorkflow,
14
- createParallelWorkflow: () => createParallelWorkflow
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: () => createWorkflow,
14
- isWorkflow: () => isWorkflow
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.21.1",
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.21.1"
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.21.1",
44
- "@scripts/jest-config": "2.21.1"
43
+ "@scripts/build": "2.22.0",
44
+ "@scripts/jest-config": "2.22.0"
45
45
  },
46
46
  "sideEffects": false,
47
47
  "publishConfig": {