@modern-js/server 1.4.12 → 1.4.13

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,20 @@
1
1
  # @modern-js/server
2
2
 
3
+ ## 1.4.13
4
+
5
+ ### Patch Changes
6
+
7
+ - 0e0537005: fix: unlock @babel/core version
8
+ - 69a728375: fix: remove exports.jsnext:source after publish
9
+ - Updated dependencies [cd7346b0d]
10
+ - Updated dependencies [0e0537005]
11
+ - Updated dependencies [69a728375]
12
+ - @modern-js/utils@1.7.2
13
+ - @modern-js/server-utils@1.2.5
14
+ - @modern-js/bff-utils@1.2.5
15
+ - @modern-js/hmr-client@1.2.6
16
+ - @modern-js/prod-server@1.1.4
17
+
3
18
  ## 1.4.12
4
19
 
5
20
  ### Patch Changes
@@ -56,10 +56,10 @@ const _blank = ' ';
56
56
 
57
57
  const parseKey = key => {
58
58
  // 'Method /pathname' | '/pathname'
59
- const splited = key.split(_blank).filter(Boolean);
59
+ const splitted = key.split(_blank).filter(Boolean);
60
60
 
61
- if (splited.length > 1) {
62
- const [method, pathname] = splited;
61
+ if (splitted.length > 1) {
62
+ const [method, pathname] = splitted;
63
63
  return {
64
64
  method: method.toLowerCase(),
65
65
  path: pathname
@@ -150,7 +150,7 @@ export default class SocketServer {
150
150
 
151
151
 
152
152
  sendStats(force = false) {
153
- const stats = this.getStats(); // this should never happend
153
+ const stats = this.getStats(); // this should never happened
154
154
 
155
155
  if (!stats) {
156
156
  return null;
@@ -80,7 +80,7 @@ export class ModernDevServer extends ModernServer {
80
80
 
81
81
  if (compiler) {
82
82
  // init socket server
83
- this.socketServer = new SocketServer(dev); // open file in edtor.
83
+ this.socketServer = new SocketServer(dev); // open file in editor.
84
84
 
85
85
  this.addHandler(createLaunchEditorHandler()); // setup compiler in server, also add dev-middleware to handler static file in memory
86
86
 
@@ -65,10 +65,10 @@ const _blank = ' ';
65
65
 
66
66
  const parseKey = key => {
67
67
  // 'Method /pathname' | '/pathname'
68
- const splited = key.split(_blank).filter(Boolean);
68
+ const splitted = key.split(_blank).filter(Boolean);
69
69
 
70
- if (splited.length > 1) {
71
- const [method, pathname] = splited;
70
+ if (splitted.length > 1) {
71
+ const [method, pathname] = splitted;
72
72
  return {
73
73
  method: method.toLowerCase(),
74
74
  path: pathname
@@ -161,7 +161,7 @@ class SocketServer {
161
161
 
162
162
 
163
163
  sendStats(force = false) {
164
- const stats = this.getStats(); // this should never happend
164
+ const stats = this.getStats(); // this should never happened
165
165
 
166
166
  if (!stats) {
167
167
  return null;
@@ -102,7 +102,7 @@ class ModernDevServer extends _prodServer.ModernServer {
102
102
 
103
103
  if (compiler) {
104
104
  // init socket server
105
- this.socketServer = new _socketServer.default(dev); // open file in edtor.
105
+ this.socketServer = new _socketServer.default(dev); // open file in editor.
106
106
 
107
107
  this.addHandler((0, _launchEditor.createLaunchEditorHandler)()); // setup compiler in server, also add dev-middleware to handler static file in memory
108
108
 
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "1.4.12",
14
+ "version": "1.4.13",
15
15
  "jsnext:source": "./src/index.ts",
16
16
  "types": "./dist/types/index.d.ts",
17
17
  "main": "./dist/js/node/index.js",
@@ -28,13 +28,13 @@
28
28
  }
29
29
  },
30
30
  "dependencies": {
31
- "@babel/core": "7.16.7",
31
+ "@babel/core": "^7.17.0",
32
32
  "@babel/register": "^7.15.3",
33
- "@modern-js/bff-utils": "^1.2.4",
34
- "@modern-js/hmr-client": "^1.2.5",
35
- "@modern-js/prod-server": "^1.1.3",
36
- "@modern-js/server-utils": "^1.2.4",
37
- "@modern-js/utils": "^1.7.0",
33
+ "@modern-js/bff-utils": "^1.2.5",
34
+ "@modern-js/hmr-client": "^1.2.6",
35
+ "@modern-js/prod-server": "^1.1.4",
36
+ "@modern-js/server-utils": "^1.2.5",
37
+ "@modern-js/utils": "^1.7.2",
38
38
  "devcert": "^1.1.3",
39
39
  "launch-editor": "^2.2.1",
40
40
  "minimatch": "^3.0.4",
@@ -44,8 +44,8 @@
44
44
  "ws": "^8.2.0"
45
45
  },
46
46
  "devDependencies": {
47
- "@modern-js/core": "1.10.0",
48
- "@modern-js/server-core": "1.3.3",
47
+ "@modern-js/core": "1.10.1",
48
+ "@modern-js/server-core": "1.3.4",
49
49
  "@modern-js/types": "1.5.2",
50
50
  "@scripts/build": "0.0.0",
51
51
  "@scripts/jest-config": "0.0.0",