@modern-js/server 1.2.1-beta.2 → 1.2.1-rc.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,19 @@
1
1
  # @modern-js/server
2
2
 
3
+ ## 1.2.1-rc.0
4
+
5
+ ### Patch Changes
6
+
7
+ - e51b1db3: feat: support custom sdk, interceptor, headers for bff request
8
+ - Updated dependencies [e51b1db3]
9
+ - Updated dependencies [b7fb82ec]
10
+ - @modern-js/server-plugin@1.1.4-rc.0
11
+ - @modern-js/utils@1.1.6-rc.0
12
+ - @modern-js/core@1.2.1-rc.0
13
+ - @modern-js/bff-utils@1.1.2-rc.0
14
+ - @modern-js/hmr-client@1.1.2-rc.0
15
+ - @modern-js/server-utils@1.1.3-rc.0
16
+
3
17
  ## 1.2.0
4
18
 
5
19
  ### Minor Changes
@@ -53,7 +53,7 @@ export class Server {
53
53
  }
54
54
 
55
55
  listen(port = 8080, listener) {
56
- this.app.listen(process.env.PORT || port, () => {
56
+ this.app.listen(port, () => {
57
57
  if (listener) {
58
58
  listener();
59
59
  }
@@ -69,7 +69,7 @@ class Server {
69
69
  }
70
70
 
71
71
  listen(port = 8080, listener) {
72
- this.app.listen(process.env.PORT || port, () => {
72
+ this.app.listen(port, () => {
73
73
  if (listener) {
74
74
  listener();
75
75
  }
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "1.2.1-beta.2",
14
+ "version": "1.2.1-rc.0",
15
15
  "jsnext:source": "./src/index.ts",
16
16
  "types": "./dist/types/index.d.ts",
17
17
  "main": "./dist/js/node/index.js",
@@ -33,12 +33,12 @@
33
33
  "@babel/preset-typescript": "^7.15.0",
34
34
  "@babel/register": "^7.15.3",
35
35
  "@babel/runtime": "^7",
36
- "@modern-js/core": "^1.2.0",
37
- "@modern-js/hmr-client": "^1.1.1",
38
- "@modern-js/server-plugin": "^1.1.3",
39
- "@modern-js/server-utils": "^1.1.2",
40
- "@modern-js/bff-utils": "^1.1.1",
41
- "@modern-js/utils": "^1.1.5",
36
+ "@modern-js/core": "^1.2.1-rc.0",
37
+ "@modern-js/hmr-client": "^1.1.2-rc.0",
38
+ "@modern-js/server-plugin": "^1.1.4-rc.0",
39
+ "@modern-js/server-utils": "^1.1.3-rc.0",
40
+ "@modern-js/bff-utils": "^1.1.2-rc.0",
41
+ "@modern-js/utils": "^1.1.6-rc.0",
42
42
  "axios": "^0.21.4",
43
43
  "babel-plugin-module-resolver": "^4.1.0",
44
44
  "chokidar": "^3.5.2",
@@ -61,9 +61,9 @@
61
61
  "ws": "^8.2.0"
62
62
  },
63
63
  "devDependencies": {
64
- "@modern-js/module-tools": "^1.1.3",
65
- "@modern-js/plugin-testing": "^1.2.0",
66
- "@modern-js/types": "^1.1.4",
64
+ "@modern-js/module-tools": "^1.1.4",
65
+ "@modern-js/plugin-testing": "^1.2.2",
66
+ "@modern-js/types": "^1.1.5-rc.0",
67
67
  "@types/jest": "^26",
68
68
  "@types/lru-cache": "^5.1.1",
69
69
  "@types/mime-types": "^2.1.0",
@@ -68,7 +68,7 @@ export class Server {
68
68
  }
69
69
 
70
70
  public listen(port = 8080, listener: any) {
71
- this.app.listen(process.env.PORT || port, () => {
71
+ this.app.listen(port, () => {
72
72
  if (listener) {
73
73
  listener();
74
74
  }