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.18 to 0.4.19

8

CHANGELOG.md
# Change Log
## 0.4.19
* Support ANSI colors in the browser
## 0.4.18
* Bug fix
## 0.4.17

@@ -4,0 +12,0 @@

17

lib/client/actions.js

@@ -47,8 +47,13 @@ 'use strict';

dispatch('WATCH_OUTPUT', id);
eventSource = new EventSource(API_ROOT + '/events/output/' + id);
eventSource.onmessage = function (event) {
JSON.parse(event.data).output.split('\n').forEach(function (line) {
return dispatch('PUSH_OUTPUT', line);
});
};
if (window.EventSource) {
eventSource = new EventSource(API_ROOT + '/events/output/' + id);
eventSource.onmessage = function (event) {
JSON.parse(event.data).output.split('\n').forEach(function (line) {
return dispatch('PUSH_OUTPUT', line);
});
};
} else {
dispatch('PUSH_OUTPUT', 'Sorry, server logs aren\'t supported on this browser :(');
}
}

@@ -55,0 +60,0 @@

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

var connectSSE = require('connect-sse');
var stripAnsi = require('strip-ansi');
var sse = connectSSE();

@@ -29,3 +28,3 @@

res.json({
output: stripAnsi(data.toString())
output: data.toString()
});

@@ -32,0 +31,0 @@ }

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

@@ -67,2 +67,3 @@ "main": "lib",

"devDependencies": {
"ansi-html": "0.0.5",
"babel-cli": "^6.1.2",

@@ -78,2 +79,3 @@ "babel-core": "^6.7.4",

"es6-promise": "^3.1.2",
"escape-html": "^1.0.3",
"exports-loader": "^0.6.3",

@@ -80,0 +82,0 @@ "file-loader": "^0.8.5",

# 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)
> 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:
> No need to worry about ports, remember commands, manage terminal tabs... 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:

@@ -9,11 +9,11 @@ ![](http://i.imgur.com/dAhxGMj.gif)

* __Shortcut access__ (`http://localhost:2000/project`)
* __Local domains__ (`http://project.dev` *)
* __SSL via self-signed certificate__ (`https://project.dev` *)
* __Wildcard subdomains__ (`http://*.project.dev`)
* __Shortcut access__ - `http://localhost:2000/project`
* __Local domains__ - `http://project.dev`
* __SSL via self-signed certificate__ - `https://project.dev`
* __Wildcard subdomains__ - `http://*.project.dev`
* __Works everywhere__ - OS X, Linux and Windows
* __Works with any server__ - Node, Ruby, PHP, ...
* __System-friendly__ - no messing with `port 80`, `/etc/hosts` or `sudo`
* Servers are only started when you access them
* Works with any server (Node, Ruby, PHP, ...)
* Cross-platform (OS X, Linux and Windows)
* Plays nice with other servers (Apache, Nginx, ...)
* No port 80, /etc/hosts or admin/root privileges needed
* Random or fixed ports

@@ -20,0 +20,0 @@ * See Roadmap for upcoming features :)

Sorry, the diff of this file is not supported yet

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