Socket
Socket
Sign inDemoInstall

hotel

Package Overview
Dependencies
Maintainers
1
Versions
81
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hotel - npm Package Compare versions

Comparing version 0.4.13 to 0.4.14

lib/daemon/vhosts/tld.js

14

CHANGELOG.md
# Change Log
## 0.4.14
* Fix UI issues.
## 0.4.13
* Fix issue with Node 0.12
* Fix issue with Node 0.12.
## 0.4.12
* Add wildcard subdomains `http://*.app.dev`
* Add wildcard subdomains `http://*.app.dev`.
## 0.4.11
* Strip ANSI when viewing logs in the browser
* Strip ANSI when viewing logs in the browser.
## 0.4.10
* Fix IE and Safari issue (added fetch polyfill)
* Fix IE and Safari issue (added fetch polyfill).

@@ -23,3 +27,3 @@ ## 0.4.9

* Bundle icons to make them available without network access.
* Bug fixes
* Bug fixes.

@@ -26,0 +30,0 @@ ## 0.4.8

@@ -18,4 +18,3 @@ 'use strict';

var Events = require('./events');
var HotelHost = require('./vhosts/hotel-dev');
var DevHost = require('./vhosts/dev');
var TLDHost = require('./vhosts/tld');

@@ -48,4 +47,3 @@ var API_ROOT = '/_';

var events = Events(servers);
var hotelHost = HotelHost(servers);
var devHost = DevHost(servers);
var tldHost = TLDHost(servers);

@@ -61,5 +59,4 @@ // requests timeout

// .dev hosts
app.use(vhost('hotel.' + conf.tld, hotelHost));
app.use(vhost(new RegExp('.*.' + conf.tld), devHost));
// .tld host
app.use(vhost(new RegExp('.*.' + conf.tld), tldHost));

@@ -69,3 +66,3 @@ // public

// Server router
// localhost router
app.use(indexRouter);

@@ -72,0 +69,0 @@

@@ -35,2 +35,3 @@ 'use strict';

// See https://github.com/typicode/hotel/pull/61
proxy.on('proxyReq', function (proxyReq, req) {

@@ -37,0 +38,0 @@ req._proxyReq = proxyReq;

{
"name": "hotel",
"version": "0.4.13",
"version": "0.4.14",
"description": "Easily start, stop and access your servers from the browser",

@@ -5,0 +5,0 @@ "main": "lib",

@@ -1,2 +0,2 @@

# hotel [![Mac/Linux Build Status](https://img.shields.io/travis/typicode/hotel/master.svg?label=Mac%20OSX%20%26%20Linux)](https://travis-ci.org/typicode/hotel) [![Windows Build status](https://img.shields.io/appveyor/ci/typicode/hotel/master.svg?label=Windows)](https://ci.appveyor.com/project/typicode/hotel/branch/master) [![](https://badge.fury.io/js/hotel.svg)](https://www.npmjs.com/package/hotel)
# hotel [![Mac/Linux Build Status](https://img.shields.io/travis/typicode/hotel/master.svg)](https://travis-ci.org/typicode/hotel) [![](https://badge.fury.io/js/hotel.svg)](https://www.npmjs.com/package/hotel)

@@ -33,3 +33,3 @@ > No need to worry about ports, remember commands, manage terminal tabs, modify /etc/hosts ... access and start your servers from the browser. You can even use local `.dev` domains or any other tld, and it works everywhere (OS X, Linux, Windows) :+1:

1. Add your servers commands.
Add your servers commands.

@@ -41,5 +41,5 @@ ```bash

2. Go to [localhost:2000](http://localhost:2000) or [hotel.dev](http://hotel.dev).
Go to [localhost:2000](http://localhost:2000) or [hotel.dev](http://hotel.dev).
3. Alternatively you can directly go to:
Alternatively you can directly go to:

@@ -65,3 +65,3 @@ ```

hotel add 'jekyll --port $PORT'
hotel add 'rails server --port $PORT'
hotel add 'rails server -p $PORT -b 127.0.0.1'
hotel add 'python -m SimpleHTTPServer $PORT'

@@ -133,4 +133,6 @@ hotel add 'php -S 127.0.0.1:$PORT'

- [X] In-browser logs
- [X] Wildcard domains support
- [X] Add in-browser logs
- [X] Add Wildcard domains support
- [ ] Add colors to in-browser logs
- [ ] Add Domain redirection

@@ -137,0 +139,0 @@ ## License

@@ -27,3 +27,3 @@ const fs = require('fs')

// Needed to avoid 404
[path.join(__dirname, '../../src/daemon/public/index.html')]: 'hello world',
[path.join(__dirname, '../../src/daemon/public/index.html')]: 'index.html content',
[serverKey]: fs.readFileSync(serverKey),

@@ -30,0 +30,0 @@ [serverCrt]: fs.readFileSync(serverCrt)

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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