@modern-js/plugin 1.3.5 → 1.3.6
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 +6 -0
- package/dist/js/treeshaking/manager/async.js +3 -3
- package/dist/js/treeshaking/waterfall/async.js +3 -3
- package/dist/js/treeshaking/workflow/async.js +5 -5
- package/dist/js/treeshaking/workflow/parallel.js +3 -3
- package/dist/js/treeshaking/workflow/sync.js +3 -3
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
2
2
|
import _createForOfIteratorHelper from "@babel/runtime/helpers/esm/createForOfIteratorHelper";
|
3
|
+
import _regeneratorRuntime from "@babel/runtime/helpers/esm/regeneratorRuntime";
|
3
4
|
import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
|
4
5
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
5
|
-
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
6
6
|
import { runWithContainer, createContainer } from "../farrow-pipeline";
|
7
7
|
import { isObject, generateRunner, hasOwnProperty, DEFAULT_OPTIONS } from "./sync";
|
8
8
|
import { useRunner } from "./runner";
|
@@ -92,9 +92,9 @@ export var createAsyncManager = function createAsyncManager(hooks, api) {
|
|
92
92
|
var currentContainer = createContainer();
|
93
93
|
|
94
94
|
var init = /*#__PURE__*/function () {
|
95
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(options) {
|
95
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(options) {
|
96
96
|
var container, sortedPlugins, mergedPluginAPI, hooksList;
|
97
|
-
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
97
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
98
98
|
while (1) {
|
99
99
|
switch (_context.prev = _context.next) {
|
100
100
|
case 0:
|
@@ -1,8 +1,8 @@
|
|
1
|
+
import _regeneratorRuntime from "@babel/runtime/helpers/esm/regeneratorRuntime";
|
1
2
|
import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
|
2
3
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
3
4
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
4
5
|
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
5
|
-
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
6
6
|
import { createAsyncPipeline, useContainer } from "../farrow-pipeline";
|
7
7
|
var ASYNC_WATERFALL_SYMBOL = Symbol["for"]('MODERN_ASYNC_WATERFALL');
|
8
8
|
export var getAsyncBrook = function getAsyncBrook(input) {
|
@@ -58,8 +58,8 @@ export var isAsyncWaterfall = function isAsyncWaterfall(input) {
|
|
58
58
|
|
59
59
|
var mapAsyncBrookToAsyncMiddleware = function mapAsyncBrookToAsyncMiddleware(brook) {
|
60
60
|
return /*#__PURE__*/function () {
|
61
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(input, next) {
|
62
|
-
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
61
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(input, next) {
|
62
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
63
63
|
while (1) {
|
64
64
|
switch (_context.prev = _context.next) {
|
65
65
|
case 0:
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import _typeof from "@babel/runtime/helpers/esm/typeof";
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
3
|
+
import _regeneratorRuntime from "@babel/runtime/helpers/esm/regeneratorRuntime";
|
3
4
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
4
5
|
import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
|
5
6
|
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
6
|
-
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
7
7
|
import { createAsyncPipeline } from "../farrow-pipeline";
|
8
8
|
var ASYNC_WORKFLOW_SYMBOL = Symbol["for"]('MODERN_ASYNC_WORKFLOW');
|
9
9
|
export var isAsyncWorkflow = function isAsyncWorkflow(input) {
|
@@ -22,9 +22,9 @@ export var createAsyncWorkflow = function createAsyncWorkflow() {
|
|
22
22
|
};
|
23
23
|
|
24
24
|
var run = /*#__PURE__*/function () {
|
25
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(input, options) {
|
25
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(input, options) {
|
26
26
|
var result;
|
27
|
-
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
27
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
28
28
|
while (1) {
|
29
29
|
switch (_context.prev = _context.next) {
|
30
30
|
case 0:
|
@@ -69,8 +69,8 @@ export var createAsyncWorkflow = function createAsyncWorkflow() {
|
|
69
69
|
|
70
70
|
var mapAsyncWorkerToAsyncMiddleware = function mapAsyncWorkerToAsyncMiddleware(worker) {
|
71
71
|
return /*#__PURE__*/function () {
|
72
|
-
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(input, next) {
|
73
|
-
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
72
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(input, next) {
|
73
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
74
74
|
while (1) {
|
75
75
|
switch (_context2.prev = _context2.next) {
|
76
76
|
case 0:
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
2
|
+
import _regeneratorRuntime from "@babel/runtime/helpers/esm/regeneratorRuntime";
|
2
3
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
3
4
|
import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
|
4
5
|
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
5
|
-
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
6
6
|
import { createPipeline } from "../farrow-pipeline";
|
7
7
|
var PARALLEL_WORKFLOW_SYMBOL = Symbol["for"]('MODERN_PARALLEL_WORKFLOW');
|
8
8
|
export var isParallelWorkflow = function isParallelWorkflow(input) {
|
@@ -21,8 +21,8 @@ export var createParallelWorkflow = function createParallelWorkflow() {
|
|
21
21
|
};
|
22
22
|
|
23
23
|
var run = /*#__PURE__*/function () {
|
24
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(input, options) {
|
25
|
-
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
24
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(input, options) {
|
25
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
26
26
|
while (1) {
|
27
27
|
switch (_context.prev = _context.next) {
|
28
28
|
case 0:
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
2
|
+
import _regeneratorRuntime from "@babel/runtime/helpers/esm/regeneratorRuntime";
|
2
3
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
3
4
|
import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
|
4
5
|
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
5
|
-
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
6
6
|
import { createPipeline } from "../farrow-pipeline";
|
7
7
|
var WORKFLOW_SYMBOL = Symbol["for"]('MODERN_WORKFLOW');
|
8
8
|
export var createWorkflow = function createWorkflow() {
|
@@ -18,9 +18,9 @@ export var createWorkflow = function createWorkflow() {
|
|
18
18
|
};
|
19
19
|
|
20
20
|
var run = /*#__PURE__*/function () {
|
21
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(input, options) {
|
21
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(input, options) {
|
22
22
|
var result;
|
23
|
-
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
23
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
24
24
|
while (1) {
|
25
25
|
switch (_context.prev = _context.next) {
|
26
26
|
case 0:
|
package/package.json
CHANGED
@@ -11,7 +11,7 @@
|
|
11
11
|
"modern",
|
12
12
|
"modern.js"
|
13
13
|
],
|
14
|
-
"version": "1.3.
|
14
|
+
"version": "1.3.6",
|
15
15
|
"jsnext:source": "./src/index.ts",
|
16
16
|
"types": "./dist/types/index.d.ts",
|
17
17
|
"main": "./dist/js/node/index.js",
|
@@ -39,7 +39,7 @@
|
|
39
39
|
}
|
40
40
|
},
|
41
41
|
"dependencies": {
|
42
|
-
"@babel/runtime": "^7"
|
42
|
+
"@babel/runtime": "^7.18.0"
|
43
43
|
},
|
44
44
|
"devDependencies": {
|
45
45
|
"@types/jest": "^27",
|