Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@remix-run/serve

Package Overview
Dependencies
Maintainers
2
Versions
1028
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@remix-run/serve - npm Package Compare versions

Comparing version 0.0.0-experimental-149e932f to 0.0.0-experimental-2ca98589

env.js

14

cli.js
#!/usr/bin/env node
/**
* @remix-run/serve v0.0.0-experimental-149e932f
* @remix-run/serve v0.0.0-experimental-2ca98589
*

@@ -16,2 +16,3 @@ * Copyright (c) Remix Software Inc.

var path = require('path');
var os = require('os');
var index = require('./index');

@@ -22,2 +23,3 @@

var path__default = /*#__PURE__*/_interopDefaultLegacy(path);
var os__default = /*#__PURE__*/_interopDefaultLegacy(os);

@@ -35,3 +37,11 @@ let port = process.env.PORT || 3000;

index.createApp(buildPath).listen(port, () => {
console.log(`Remix App Server started at http://localhost:${port}`);
var _Object$values$flat$f;
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;
if (!address) {
throw new Error("Could not find an IPv4 address.");
}
console.log(`Remix App Server started at http://${address}:${port}`);
});

2

index.js
/**
* @remix-run/serve v0.0.0-experimental-149e932f
* @remix-run/serve v0.0.0-experimental-2ca98589
*

@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc.

{
"name": "@remix-run/serve",
"description": "Production application server for Remix",
"version": "0.0.0-experimental-149e932f",
"version": "0.0.0-experimental-2ca98589",
"license": "MIT",

@@ -18,3 +18,3 @@ "repository": {

"dependencies": {
"@remix-run/express": "0.0.0-experimental-149e932f",
"@remix-run/express": "0.0.0-experimental-2ca98589",
"compression": "^1.7.4",

@@ -21,0 +21,0 @@ "express": "^4.17.1",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc