Socket
Socket
Sign inDemoInstall

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.4.11 to 0.4.12

11

lib/config.js

@@ -122,2 +122,13 @@ /*

|--------------------------------------------------------------------------
| Inject Changes
|--------------------------------------------------------------------------
|
| Browser Sync will attempt to inject changes where possible (such as CSS, Images).
| If your situation requires a full page reload for css changes, change this to false
|
*/
injectChanges: true,
/*
|--------------------------------------------------------------------------
| Scroll Throttle (milliseconds)

@@ -124,0 +135,0 @@ |--------------------------------------------------------------------------

21

lib/proxy.js

@@ -8,3 +8,2 @@ "use strict";

var utils = {

@@ -24,4 +23,4 @@ /**

var string = "";
var host = userServer.host;
var port = userServer.port;
var host = userServer.host;
var port = userServer.port;
var regex;

@@ -41,2 +40,14 @@

};
},
/**
* Remove Headers from a response
* @param {Object} headers
* @param {Array} items
*/
removeHeaders: function (headers, items) {
items.forEach(function (item) {
if (headers.hasOwnProperty(item)) {
delete headers[item];
}
});
}

@@ -89,5 +100,3 @@ };

server.proxy.on("proxyResponse", function (req, res, response) {
if (response.headers.hasOwnProperty("content-length")) {
delete response.headers["content-length"];
}
utils.removeHeaders(response.headers, ["content-length", "content-encoding"]);
});

@@ -94,0 +103,0 @@

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

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

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