@atlaspack/reporter-dev-server 2.14.18-noselfbuild-3f2849b52.0 → 2.14.18-noselfbuild-342bd6c75.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.
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = serverErrors;
7
+ const serverErrorList = {
8
+ EACCES: "You don't have access to bind the server to port {port}.",
9
+ EADDRINUSE: 'There is already a process listening on port {port}.'
10
+ };
11
+ function serverErrors(err, port) {
12
+ let desc = `Error: ${err.code} occurred while setting up server on port ${port.toString()}.`;
13
+ if (serverErrorList[err.code]) {
14
+ desc = serverErrorList[err.code].replace(/{port}/g, port);
15
+ }
16
+ return desc;
17
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaspack/reporter-dev-server",
3
- "version": "2.14.18-noselfbuild-3f2849b52.0",
3
+ "version": "2.14.18-noselfbuild-342bd6c75.0",
4
4
  "description": "Blazing fast, zero configuration web application bundler",
5
5
  "license": "(MIT OR Apache-2.0)",
6
6
  "type": "commonjs",
@@ -25,12 +25,9 @@
25
25
  }
26
26
  },
27
27
  "dependencies": {
28
- "@atlaspack/plugin": "2.14.18-noselfbuild-3f2849b52.0",
29
- "@atlaspack/utils": "2.16.2-noselfbuild-3f2849b52.0"
30
- },
31
- "devDependencies": {
32
- "@atlaspack/babel-preset": "2.14.2-noselfbuild-3f2849b52.0",
33
- "@atlaspack/types": "2.15.8-noselfbuild-3f2849b52.0",
28
+ "@atlaspack/plugin": "2.14.18-noselfbuild-342bd6c75.0",
29
+ "@atlaspack/types": "2.15.8-noselfbuild-342bd6c75.0",
30
+ "@atlaspack/utils": "2.16.2-noselfbuild-342bd6c75.0",
34
31
  "connect": "^3.7.0",
35
32
  "ejs": "^3.1.6",
36
33
  "fresh": "^0.5.2",
@@ -41,5 +38,8 @@
41
38
  "serve-handler": "^6.0.0",
42
39
  "ws": "^7.0.0"
43
40
  },
44
- "gitHead": "3f2849b52d0a62d716f1c6cb3a92656e1e4fa18a"
41
+ "devDependencies": {
42
+ "@atlaspack/babel-preset": "2.14.2-noselfbuild-342bd6c75.0"
43
+ },
44
+ "gitHead": "342bd6c75293750e0f0a7636ddc8dfe30707efb6"
45
45
  }