@modern-js/plugin-express 2.17.0 → 2.18.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,23 @@
1
1
  # @modern-js/plugin-express
2
2
 
3
+ ## 2.18.0
4
+
5
+ ### Patch Changes
6
+
7
+ - @modern-js/bff-core@2.18.0
8
+ - @modern-js/bff-runtime@2.18.0
9
+ - @modern-js/types@2.18.0
10
+ - @modern-js/utils@2.18.0
11
+
12
+ ## 2.17.1
13
+
14
+ ### Patch Changes
15
+
16
+ - @modern-js/bff-core@2.17.1
17
+ - @modern-js/bff-runtime@2.17.1
18
+ - @modern-js/types@2.17.1
19
+ - @modern-js/utils@2.17.1
20
+
3
21
  ## 2.17.0
4
22
 
5
23
  ### Patch Changes
@@ -27,7 +27,7 @@ export default function() {
27
27
  "@modern-js/plugin-express": "@modern-js/plugin-express/server"
28
28
  });
29
29
  return {
30
- plugins
30
+ plugins: plugins
31
31
  };
32
32
  },
33
33
  addRuntimeExports: function addRuntimeExports(input) {
@@ -237,8 +237,8 @@ var initMiddlewares = function(middleware, app) {
237
237
  var useRun = function(app) {
238
238
  app.use(function(req, res, next) {
239
239
  run({
240
- req,
241
- res
240
+ req: req,
241
+ res: res
242
242
  }, next);
243
243
  });
244
244
  };
package/dist/esm/utils.js CHANGED
@@ -45,7 +45,7 @@ function _async_to_generator(fn) {
45
45
  function _define_property(obj, key, value) {
46
46
  if (key in obj) {
47
47
  Object.defineProperty(obj, key, {
48
- value,
48
+ value: value,
49
49
  enumerable: true,
50
50
  configurable: true,
51
51
  writable: true
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "2.17.0",
18
+ "version": "2.18.0",
19
19
  "jsnext:source": "./src/index.ts",
20
20
  "types": "./dist/types/cli/index.d.ts",
21
21
  "main": "./dist/cjs/cli/index.js",
@@ -49,10 +49,10 @@
49
49
  "formidable": "^1.2.2",
50
50
  "reflect-metadata": "^0.1.13",
51
51
  "type-is": "^1.6.18",
52
- "@modern-js/bff-core": "2.17.0",
53
- "@modern-js/bff-runtime": "2.17.0",
54
- "@modern-js/types": "2.17.0",
55
- "@modern-js/utils": "2.17.0"
52
+ "@modern-js/bff-core": "2.18.0",
53
+ "@modern-js/bff-runtime": "2.18.0",
54
+ "@modern-js/types": "2.18.0",
55
+ "@modern-js/utils": "2.18.0"
56
56
  },
57
57
  "devDependencies": {
58
58
  "@types/cookie-parser": "^1.4.2",
@@ -68,11 +68,11 @@
68
68
  "supertest": "^6.1.6",
69
69
  "typescript": "^4",
70
70
  "zod": "^3.17.3",
71
- "@modern-js/core": "2.17.0",
72
- "@modern-js/app-tools": "2.17.0",
73
- "@modern-js/server-core": "2.17.0",
74
- "@scripts/build": "2.17.0",
75
- "@scripts/jest-config": "2.17.0"
71
+ "@modern-js/core": "2.18.0",
72
+ "@modern-js/app-tools": "2.18.0",
73
+ "@modern-js/server-core": "2.18.0",
74
+ "@scripts/build": "2.18.0",
75
+ "@scripts/jest-config": "2.18.0"
76
76
  },
77
77
  "peerDependencies": {
78
78
  "express": "^4.17.1"