browser-sync
Advanced tools
Comparing version 0.8.0 to 0.8.1
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
254775
2261
+ Addedbrowser-sync-client@0.1.9(transitive)
- Removedbrowser-sync-client@0.1.4(transitive)
Updatedbrowser-sync-client@^0.1.5