@modern-js/plugin 1.0.0-alpha.3 → 1.0.0-rc.11

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,6 +1,63 @@
1
1
  # @modern-js/plugin
2
2
 
3
- ## 1.0.0-alpha.3
3
+ ## 1.0.0-rc.11
4
+
5
+ ### Patch Changes
6
+
7
+ - 224f7fe: fix server route match
8
+ - 204c626: feat: initial
9
+
10
+ ## 1.0.0-rc.10
11
+
12
+ ### Patch Changes
13
+
14
+ - 224f7fe: fix server route match
15
+ - 204c626: feat: initial
16
+
17
+ ## 1.0.0-rc.9
18
+
19
+ ### Patch Changes
20
+
21
+ - 224f7fe: fix server route match
22
+ - 204c626: feat: initial
23
+
24
+ ## 1.0.0-rc.8
25
+
26
+ ### Patch Changes
27
+
28
+ - 224f7fe: fix server route match
29
+ - 204c626: feat: initial
30
+
31
+ ## 1.0.0-rc.7
32
+
33
+ ### Patch Changes
34
+
35
+ - 224f7fe: fix server route match
36
+ - 204c626: feat: initial
37
+
38
+ ## 1.0.0-rc.6
39
+
40
+ ### Patch Changes
41
+
42
+ - 224f7fe: fix server route match
43
+ - 204c626: feat: initial
44
+
45
+ ## 1.0.0-rc.5
46
+
47
+ ### Patch Changes
48
+
49
+ - 224f7fe: fix server route match
50
+ - 204c626: feat: initial
51
+
52
+ ## 1.0.0-rc.4
53
+
54
+ ### Patch Changes
55
+
56
+ - fix server route match
57
+ - 204c626: feat: initial
58
+
59
+ ## 1.0.0-rc.3
60
+
4
61
  ### Patch Changes
5
62
 
6
63
  - feat: initial
@@ -1,3 +1,5 @@
1
+ import _regeneratorRuntime from "@babel/runtime/regenerator";
2
+
1
3
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
2
4
 
3
5
  function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
@@ -35,9 +37,9 @@ export var createCounter = function createCounter(callback) {
35
37
 
36
38
  export var createAsyncCounter = function createAsyncCounter(callback) {
37
39
  var dispatch = /*#__PURE__*/function () {
38
- var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(index, input) {
40
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(index, input) {
39
41
  var next;
40
- return regeneratorRuntime.wrap(function _callee$(_context) {
42
+ return _regeneratorRuntime.wrap(function _callee$(_context) {
41
43
  while (1) {
42
44
  switch (_context.prev = _context.next) {
43
45
  case 0:
@@ -12,6 +12,8 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
12
12
 
13
13
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
14
14
 
15
+ import _regeneratorRuntime from "@babel/runtime/regenerator";
16
+
15
17
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
16
18
 
17
19
  function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
@@ -83,9 +85,9 @@ export var createAsyncManager = function createAsyncManager(processes) {
83
85
  var currentContainer = createContainer();
84
86
 
85
87
  var init = /*#__PURE__*/function () {
86
- var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(options) {
88
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(options) {
87
89
  var container, sortedPlugins, hooksList;
88
- return regeneratorRuntime.wrap(function _callee$(_context) {
90
+ return _regeneratorRuntime.wrap(function _callee$(_context) {
89
91
  while (1) {
90
92
  switch (_context.prev = _context.next) {
91
93
  case 0:
@@ -1,3 +1,5 @@
1
+ import _regeneratorRuntime from "@babel/runtime/regenerator";
2
+
1
3
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
2
4
 
3
5
  function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
@@ -62,9 +64,9 @@ export var createAsyncPipeline = function createAsyncPipeline(options) {
62
64
 
63
65
  var createCurrentCounter = function createCurrentCounter(hooks, onLast) {
64
66
  return createAsyncCounter( /*#__PURE__*/function () {
65
- var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2(index, input, next) {
67
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(index, input, next) {
66
68
  var middleware, result;
67
- return regeneratorRuntime.wrap(function _callee2$(_context2) {
69
+ return _regeneratorRuntime.wrap(function _callee2$(_context2) {
68
70
  while (1) {
69
71
  switch (_context2.prev = _context2.next) {
70
72
  case 0:
@@ -86,8 +88,8 @@ export var createAsyncPipeline = function createAsyncPipeline(options) {
86
88
  case 4:
87
89
  middleware = middlewares[index];
88
90
  _context2.next = 7;
89
- return runHooks( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
90
- return regeneratorRuntime.wrap(function _callee$(_context) {
91
+ return runHooks( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
92
+ return _regeneratorRuntime.wrap(function _callee$(_context) {
91
93
  while (1) {
92
94
  switch (_context.prev = _context.next) {
93
95
  case 0:
@@ -12,6 +12,8 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
12
12
 
13
13
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
14
14
 
15
+ import _regeneratorRuntime from "@babel/runtime/regenerator";
16
+
15
17
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
16
18
 
17
19
  function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
@@ -35,8 +37,8 @@ export var createAsyncWaterfall = function createAsyncWaterfall() {
35
37
 
36
38
  var createCurrentRunner = function createCurrentRunner(hooks) {
37
39
  return createAsyncCounter( /*#__PURE__*/function () {
38
- var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2(index, input, next) {
39
- return regeneratorRuntime.wrap(function _callee2$(_context2) {
40
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(index, input, next) {
41
+ return _regeneratorRuntime.wrap(function _callee2$(_context2) {
40
42
  while (1) {
41
43
  switch (_context2.prev = _context2.next) {
42
44
  case 0:
@@ -48,8 +50,8 @@ export var createAsyncWaterfall = function createAsyncWaterfall() {
48
50
  return _context2.abrupt("return", input);
49
51
 
50
52
  case 2:
51
- return _context2.abrupt("return", runHooks( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
52
- return regeneratorRuntime.wrap(function _callee$(_context) {
53
+ return _context2.abrupt("return", runHooks( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
54
+ return _regeneratorRuntime.wrap(function _callee$(_context) {
53
55
  while (1) {
54
56
  switch (_context.prev = _context.next) {
55
57
  case 0:
@@ -107,11 +109,11 @@ export var createAsyncWaterfall = function createAsyncWaterfall() {
107
109
  };
108
110
 
109
111
  var run = /*#__PURE__*/function () {
110
- var _ref3 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3(input, options) {
112
+ var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3(input, options) {
111
113
  var _options$container;
112
114
 
113
115
  var container, hooks, runner;
114
- return regeneratorRuntime.wrap(function _callee3$(_context3) {
116
+ return _regeneratorRuntime.wrap(function _callee3$(_context3) {
115
117
  while (1) {
116
118
  switch (_context3.prev = _context3.next) {
117
119
  case 0:
@@ -1,5 +1,7 @@
1
1
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
2
2
 
3
+ import _regeneratorRuntime from "@babel/runtime/regenerator";
4
+
3
5
  function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
4
6
 
5
7
  function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
@@ -28,9 +30,9 @@ export var createAsyncWorkflow = function createAsyncWorkflow() {
28
30
 
29
31
  var createCurrentRunner = function createCurrentRunner(hooks) {
30
32
  return createAsyncCounter( /*#__PURE__*/function () {
31
- var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2(index, input, next) {
33
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(index, input, next) {
32
34
  var middleware;
33
- return regeneratorRuntime.wrap(function _callee2$(_context2) {
35
+ return _regeneratorRuntime.wrap(function _callee2$(_context2) {
34
36
  while (1) {
35
37
  switch (_context2.prev = _context2.next) {
36
38
  case 0:
@@ -43,9 +45,9 @@ export var createAsyncWorkflow = function createAsyncWorkflow() {
43
45
 
44
46
  case 2:
45
47
  middleware = middlewares[index];
46
- return _context2.abrupt("return", runHooks( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
48
+ return _context2.abrupt("return", runHooks( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
47
49
  var result, rest;
48
- return regeneratorRuntime.wrap(function _callee$(_context) {
50
+ return _regeneratorRuntime.wrap(function _callee$(_context) {
49
51
  while (1) {
50
52
  switch (_context.prev = _context.next) {
51
53
  case 0:
@@ -93,11 +95,11 @@ export var createAsyncWorkflow = function createAsyncWorkflow() {
93
95
  };
94
96
 
95
97
  var run = /*#__PURE__*/function () {
96
- var _ref3 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3(input, options) {
98
+ var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3(input, options) {
97
99
  var _options$container;
98
100
 
99
101
  var container, hooks, runner;
100
- return regeneratorRuntime.wrap(function _callee3$(_context3) {
102
+ return _regeneratorRuntime.wrap(function _callee3$(_context3) {
101
103
  while (1) {
102
104
  switch (_context3.prev = _context3.next) {
103
105
  case 0:
@@ -1,5 +1,7 @@
1
1
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
2
2
 
3
+ import _regeneratorRuntime from "@babel/runtime/regenerator";
4
+
3
5
  function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
4
6
 
5
7
  function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
@@ -32,8 +34,8 @@ export var createParallelWorkflow = function createParallelWorkflow() {
32
34
  }
33
35
 
34
36
  var middleware = middlewares[index];
35
- return runHooks( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
36
- return regeneratorRuntime.wrap(function _callee$(_context) {
37
+ return runHooks( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
38
+ return _regeneratorRuntime.wrap(function _callee$(_context) {
37
39
  while (1) {
38
40
  switch (_context.prev = _context.next) {
39
41
  case 0:
@@ -69,11 +71,11 @@ export var createParallelWorkflow = function createParallelWorkflow() {
69
71
  };
70
72
 
71
73
  var run = /*#__PURE__*/function () {
72
- var _ref2 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2(input, options) {
74
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(input, options) {
73
75
  var _options$container;
74
76
 
75
77
  var container, hooks, runner;
76
- return regeneratorRuntime.wrap(function _callee2$(_context2) {
78
+ return _regeneratorRuntime.wrap(function _callee2$(_context2) {
77
79
  while (1) {
78
80
  switch (_context2.prev = _context2.next) {
79
81
  case 0:
package/package.json CHANGED
@@ -1,37 +1,41 @@
1
1
  {
2
- "name": "@modern-js/plugin",
3
- "version": "1.0.0-alpha.3",
4
- "jsnext:source": "./src/index.ts",
5
- "types": "./dist/types/index.d.ts",
6
- "main": "./dist/js/node/index.js",
7
- "module": "./dist/js/treeshaking/index.js",
8
- "jsnext:modern": "./dist/js/modern/index.js",
9
- "exports": {
10
- ".": {
11
- "node": {
12
- "import": "./dist/js/modern/index.js",
13
- "require": "./dist/js/node/index.js"
14
- },
15
- "default": "./dist/js/treeshaking/index.js"
16
- },
17
- "./node": {
18
- "default": "./node.js"
19
- }
20
- },
21
- "dependencies": {
22
- "@babel/runtime": "^7"
23
- },
24
- "devDependencies": {
25
- "@types/jest": "^26",
26
- "@types/node": "^14",
27
- "typescript": "^4",
28
- "@modern-js/plugin-testing": "^1.0.0-alpha.3",
29
- "@modern-js/module-tools": "^1.0.0-alpha.3"
30
- },
31
- "sideEffects": false,
32
- "scripts": {
33
- "new": "modern new",
34
- "build": "modern build",
35
- "test": "modern test --passWithNoTests"
36
- }
37
- }
2
+ "name": "@modern-js/plugin",
3
+ "version": "1.0.0-rc.11",
4
+ "jsnext:source": "./src/index.ts",
5
+ "types": "./dist/types/index.d.ts",
6
+ "main": "./dist/js/node/index.js",
7
+ "module": "./dist/js/treeshaking/index.js",
8
+ "jsnext:modern": "./dist/js/modern/index.js",
9
+ "exports": {
10
+ ".": {
11
+ "node": {
12
+ "import": "./dist/js/modern/index.js",
13
+ "require": "./dist/js/node/index.js"
14
+ },
15
+ "default": "./dist/js/treeshaking/index.js"
16
+ },
17
+ "./node": {
18
+ "default": "./node.js"
19
+ }
20
+ },
21
+ "dependencies": {
22
+ "@babel/runtime": "^7"
23
+ },
24
+ "devDependencies": {
25
+ "@types/jest": "^26",
26
+ "@types/node": "^14",
27
+ "typescript": "^4",
28
+ "@modern-js/plugin-testing": "^1.0.0-rc.11",
29
+ "@modern-js/module-tools": "^1.0.0-rc.11"
30
+ },
31
+ "sideEffects": false,
32
+ "publishConfig": {
33
+ "registry": "https://registry.npmjs.org/",
34
+ "access": "public"
35
+ },
36
+ "scripts": {
37
+ "new": "modern new",
38
+ "build": "modern build",
39
+ "test": "modern test --passWithNoTests"
40
+ }
41
+ }