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.8.0 to 0.8.1

19

example.js

@@ -13,20 +13,21 @@

ghostMode: {
location: true
forms: {
submit: false
}
},
open: true,
open: false,
logConnections: false,
minify: true,
debounce: 2000,
ports: {
min: 2000
},
notify: false
notify: true
};
//var clientScript = require("/Users/shakyshane/Sites/browser-sync-modules/browser-sync-client/index");
//
//browserSync.use("client:script", clientScript.middleware, function (err) {
// console.log(err);
//});
var clientScript = require("/Users/shakyshane/Sites/browser-sync-modules/browser-sync-client/index");
browserSync.use("client:script", clientScript.middleware, function (err) {
console.log(err);
});
var bs = browserSync.init(files, options, function (err, bs) {

@@ -33,0 +34,0 @@ // setTimeout(function () {

@@ -8,6 +8,11 @@ module.exports = {

codeSync: true,
timestamps: true,
ghostMode: {
clicks: true,
links: false,
forms: true,
forms: {
submit: true,
inputs: true,
toggles: true
},
scroll: true,

@@ -14,0 +19,0 @@ location: false

@@ -12,3 +12,3 @@ "use strict";

* @param proxyUrl
* @returns {*|XML|string|void}
* @returns {{match: RegExp, fn: Function}}
*/

@@ -31,5 +31,14 @@ rewriteLinks: function (userServer, proxyUrl) {

return {
match: new RegExp(string, "g"),
fn: function () {
return proxyUrl;
match: new RegExp("('|\")(.+?)?("+string+")(.+?)?('|\")", "g"),
fn: function (var1, quoteStart, before, match, after, quoteEnd) {
var suffix = "";
var prefix = "";
if (after) {
suffix = after;
}
if (before) {
prefix = before;
}
return quoteStart + prefix + proxyUrl + suffix + quoteEnd;
}

@@ -36,0 +45,0 @@ };

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

@@ -44,3 +44,3 @@ "author": {

"resp-modifier": "0.0.4",
"browser-sync-client": "0.1.4",
"browser-sync-client": "^0.1.5",
"commander": "~2.1.0",

@@ -47,0 +47,0 @@ "browser-sync-control-panel": "0.0.4"

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