@remix-run/serve 1.1.3 → 1.2.1

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.
Files changed (4) hide show
  1. package/cli.js +2 -2
  2. package/env.js +1 -1
  3. package/index.js +2 -1
  4. package/package.json +2 -2
package/cli.js CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  /**
3
- * @remix-run/serve v1.1.3
3
+ * @remix-run/serve v1.2.1
4
4
  *
5
5
  * Copyright (c) Remix Software Inc.
6
6
  *
@@ -37,7 +37,7 @@ index.createApp(buildPath).listen(port, () => {
37
37
  let address = (_Object$values$flat$f = Object.values(os__default["default"].networkInterfaces()).flat().find(ip => (ip === null || ip === void 0 ? void 0 : ip.family) == "IPv4" && !ip.internal)) === null || _Object$values$flat$f === void 0 ? void 0 : _Object$values$flat$f.address;
38
38
 
39
39
  if (!address) {
40
- throw new Error("Could not find an IPv4 address.");
40
+ address = "localhost";
41
41
  }
42
42
 
43
43
  console.log(`Remix App Server started at http://${address}:${port}`);
package/env.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @remix-run/serve v1.1.3
2
+ * @remix-run/serve v1.2.1
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @remix-run/serve v1.1.3
2
+ * @remix-run/serve v1.2.1
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -25,6 +25,7 @@ var morgan__default = /*#__PURE__*/_interopDefaultLegacy(morgan);
25
25
 
26
26
  function createApp(buildPath, mode = "production") {
27
27
  let app = express__default["default"]();
28
+ app.disable("x-powered-by");
28
29
  app.use(compression__default["default"]());
29
30
  app.use(express__default["default"].static("public", {
30
31
  immutable: true,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@remix-run/serve",
3
3
  "description": "Production application server for Remix",
4
- "version": "1.1.3",
4
+ "version": "1.2.1",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",
@@ -15,7 +15,7 @@
15
15
  "remix-serve": "cli.js"
16
16
  },
17
17
  "dependencies": {
18
- "@remix-run/express": "1.1.3",
18
+ "@remix-run/express": "1.2.1",
19
19
  "compression": "^1.7.4",
20
20
  "express": "^4.17.1",
21
21
  "morgan": "^1.10.0"