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

browser-sync

Package Overview
Dependencies
Maintainers
1
Versions
300
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

browser-sync - npm Package Compare versions

Comparing version 0.5.0 to 0.5.1

4

lib/browser-sync.js

@@ -41,3 +41,5 @@ "use strict";

var minPorts = (options.server || options.proxy) ? 3 : this.options.minPorts;
var portRange = portScanner.getPortRange(minPorts, options);
var minPortRange = options.ports && options.ports.min;
var maxPortRange = options.ports && options.ports.max;
var portRange = portScanner.getPortRange(minPorts, minPortRange, maxPortRange);
var callback = this.getPortsCallback(files, options);

@@ -44,0 +46,0 @@

@@ -70,2 +70,5 @@ "use strict";

// Alter accept-encoding header to ensure plain-text response
req.headers["accept-encoding"] = "*;q=1,gzip=0";
var next = function () {

@@ -83,5 +86,2 @@ proxy.proxyRequest(req, res, {

// Alter accept-encoding header to ensure plain-text response
req.headers["accept-encoding"] = "*;q=1,gzip=0";
var tags = messages.scriptTags(host, ports);

@@ -88,0 +88,0 @@

{
"name": "browser-sync",
"description": "Live CSS Reload & Browser Syncing",
"version": "0.5.0",
"version": "0.5.1",
"homepage": "https://github.com/shakyshane/browser-sync",

@@ -6,0 +6,0 @@ "author": {

@@ -6,2 +6,3 @@ # browser-sync [![Build Status](https://travis-ci.org/shakyShane/browser-sync.png?branch=master)](https://travis-ci.org/shakyShane/browser-sync) [![NPM version](https://badge.fury.io/js/browser-sync.png)](http://badge.fury.io/js/browser-sync) [![Built with Grunt](https://cdn.gruntjs.com/builtwith.png)](http://gruntjs.com/)

Follow [@browserSync](http://www.twitter.com/browserSync) for news & updates.
Check out the [website](http://www.browsersync.io) too.

@@ -11,6 +12,6 @@ ##Features

2. **Forms** - You fill out a form in one browser, I'll copy the data to all the others.
3. **Links** - I'll watch your clicks and make all the browser follow you.
3. **Links** - I'll watch your clicks & and make all the other browsers follow you.
4. **CSS injecting** - I can even watch your CSS files & inject them when they change.
5. **Live Reload** - I can also watch files like HTML and PHP & when they change I can reload all browsers for you.
6. **Built-in Server** - Yep, I can serve static files too if you need me to
6. **Built-in Server** - Yep, I can serve static files too if you need me to (uses Connect).
7. **Use with any back-end setup** - Browser-sync includes a proxy option so that it can be used with any existing PHP, Rails, Python, Node or ASP.net setup.

@@ -22,8 +23,5 @@

##Install
Using **Grunt**? There's a [separate plugin](https://github.com/shakyShane/grunt-browser-sync) for that
```
npm install -g browser-sync
```
##How to use it

@@ -35,3 +33,8 @@ There are currently 2 ways to use browser-sync - **with** a config file & **without** a config file. Both options are explained on the following pages.

## Using Grunt?
There's a [separate plugin](https://github.com/shakyShane/grunt-browser-sync) for that
## Using Gulp?
No problem, here's a [setup guide](https://github.com/shakyShane/gulp-browser-sync)
##Screencasts ( < 3 min each )

@@ -38,0 +41,0 @@ 1. [Using the Static Server with css injecting](http://quick.as/klaqfq7e)

Sorry, the diff of this file is not supported yet

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