browser-sync
Advanced tools
Comparing version 2.26.13 to 2.26.14-y.1
@@ -257,3 +257,3 @@ "use strict"; | ||
var opts = uiOpts.update(function (uiOpts) { | ||
var listen = bs.options.get('listen'); | ||
var listen = bs.options.get("listen"); | ||
if (listen) { | ||
@@ -260,0 +260,0 @@ return uiOpts.set("listen", listen); |
@@ -156,3 +156,3 @@ #!/usr/bin/env node | ||
.example("$0 start -p www.bbc.co.uk", "- Proxy an existing website") | ||
.default('cwd', function () { return process.cwd(); }) | ||
.default("cwd", function () { return process.cwd(); }) | ||
.help().argv; | ||
@@ -174,3 +174,3 @@ } | ||
.example("$0 init") | ||
.default('cwd', function () { return process.cwd(); }) | ||
.default("cwd", function () { return process.cwd(); }) | ||
.help().argv; | ||
@@ -184,3 +184,3 @@ } | ||
.example("$0 reload --port 4000") | ||
.default('cwd', function () { return process.cwd(); }) | ||
.default("cwd", function () { return process.cwd(); }) | ||
.help().argv; | ||
@@ -194,3 +194,3 @@ } | ||
.example("$0 recipe gulp.sass", "use the gulp.sass recipe") | ||
.default('cwd', function () { return process.cwd(); }) | ||
.default("cwd", function () { return process.cwd(); }) | ||
.help().argv; | ||
@@ -197,0 +197,0 @@ } |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
function addCwdToWatchOptions(incoming) { | ||
var output = incoming.updateIn(['watchOptions', 'cwd'], function (watchCwd) { | ||
return watchCwd || incoming.get('cwd'); | ||
var output = incoming.updateIn(["watchOptions", "cwd"], function (watchCwd) { | ||
return watchCwd || incoming.get("cwd"); | ||
}); | ||
@@ -7,0 +7,0 @@ return [output, []]; |
@@ -7,6 +7,6 @@ "use strict"; | ||
/bower_components/, | ||
'.sass-cache', | ||
'.vscode', | ||
'.git', | ||
'.idea', | ||
".sass-cache", | ||
".vscode", | ||
".git", | ||
".idea" | ||
]; | ||
@@ -24,3 +24,3 @@ function addDefaultIgnorePatterns(incoming) { | ||
return watchOptions.merge({ | ||
ignored: merged.toList(), | ||
ignored: merged.toList() | ||
}); | ||
@@ -27,0 +27,0 @@ }); |
@@ -9,7 +9,4 @@ "use strict"; | ||
var serverPaths = []; | ||
var fromServeStatic = incoming | ||
.get("serveStatic", immutable_1.List([])) | ||
.toArray(); | ||
var ssPaths = fromServeStatic | ||
.reduce(function (acc, ss) { | ||
var fromServeStatic = incoming.get("serveStatic", immutable_1.List([])).toArray(); | ||
var ssPaths = fromServeStatic.reduce(function (acc, ss) { | ||
if (typeof ss === "string") { | ||
@@ -32,4 +29,3 @@ return acc.concat(ss); | ||
} | ||
if (immutable_1.List.isList(server) && | ||
server.every(function (x) { return typeof x === "string"; })) { | ||
if (immutable_1.List.isList(server) && server.every(function (x) { return typeof x === "string"; })) { | ||
server.forEach(function (s) { return serverPaths.push(s); }); | ||
@@ -39,3 +35,5 @@ } | ||
var baseDirProp = server.get("baseDir"); | ||
var baseDirs = immutable_1.List([]).concat(baseDirProp).filter(Boolean); | ||
var baseDirs = immutable_1.List([]) | ||
.concat(baseDirProp) | ||
.filter(Boolean); | ||
baseDirs.forEach(function (s) { return serverPaths.push(s); }); | ||
@@ -42,0 +40,0 @@ } |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
function appendServerDirectoryOption(incoming) { | ||
if (!incoming.get('server')) | ||
if (!incoming.get("server")) | ||
return [incoming, []]; | ||
if (incoming.get('directory')) { | ||
return [incoming.setIn(['server', 'directory'], incoming.has('directory')), []]; | ||
if (incoming.get("directory")) { | ||
return [ | ||
incoming.setIn(["server", "directory"], incoming.has("directory")), | ||
[] | ||
]; | ||
} | ||
@@ -9,0 +12,0 @@ return [incoming, []]; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
function appendServerIndexOption(incoming) { | ||
if (!incoming.get('server')) | ||
if (!incoming.get("server")) | ||
return [incoming, []]; | ||
var value = incoming.get('index'); | ||
var value = incoming.get("index"); | ||
if (value) { | ||
return [incoming.setIn(['server', 'index'], value), []]; | ||
return [incoming.setIn(["server", "index"], value), []]; | ||
} | ||
@@ -10,0 +10,0 @@ return [incoming, []]; |
@@ -7,11 +7,11 @@ "use strict"; | ||
function handleExtensionsOption(incoming) { | ||
var value = incoming.get('extensions'); | ||
var value = incoming.get("extensions"); | ||
if (_.isString(value)) { | ||
var split = cli_options_1.explodeFilesArg(value); | ||
if (split.length) { | ||
return [incoming.set('extensions', immutable_1.List(split)), []]; | ||
return [incoming.set("extensions", immutable_1.List(split)), []]; | ||
} | ||
} | ||
if (immutable_1.List.isList(value)) { | ||
return [incoming.set('extensions', value), []]; | ||
return [incoming.set("extensions", value), []]; | ||
} | ||
@@ -18,0 +18,0 @@ return [incoming, []]; |
@@ -6,3 +6,3 @@ "use strict"; | ||
function handleFilesOption(incoming) { | ||
var value = incoming.get('files'); | ||
var value = incoming.get("files"); | ||
var namespaces = { | ||
@@ -21,5 +21,5 @@ core: { | ||
} | ||
return [incoming.set('files', immutable_1.fromJS(namespaces)), []]; | ||
return [incoming.set("files", immutable_1.fromJS(namespaces)), []]; | ||
} | ||
exports.handleFilesOption = handleFilesOption; | ||
//# sourceMappingURL=handleFilesOption.js.map |
@@ -5,3 +5,3 @@ "use strict"; | ||
function handleGhostModeOption(incoming) { | ||
var value = incoming.get('ghostMode'); | ||
var value = incoming.get("ghostMode"); | ||
var trueAll = { | ||
@@ -25,12 +25,11 @@ clicks: true, | ||
}; | ||
if (value === false || | ||
value === "false") { | ||
return [incoming.set('ghostMode', immutable_1.fromJS(falseAll)), []]; | ||
if (value === false || value === "false") { | ||
return [incoming.set("ghostMode", immutable_1.fromJS(falseAll)), []]; | ||
} | ||
if (value === true || | ||
value === "true") { | ||
return [incoming.set('ghostMode', immutable_1.fromJS(trueAll)), []]; | ||
if (value === true || value === "true") { | ||
return [incoming.set("ghostMode", immutable_1.fromJS(trueAll)), []]; | ||
} | ||
if (value.get("forms") === false) { | ||
return [incoming.set('ghostMode', value.withMutations(function (map) { | ||
return [ | ||
incoming.set("ghostMode", value.withMutations(function (map) { | ||
map.set("forms", immutable_1.fromJS({ | ||
@@ -41,6 +40,9 @@ submit: false, | ||
})); | ||
})), []]; | ||
})), | ||
[] | ||
]; | ||
} | ||
if (value.get("forms") === true) { | ||
return [incoming.set('ghostMode', value.withMutations(function (map) { | ||
return [ | ||
incoming.set("ghostMode", value.withMutations(function (map) { | ||
map.set("forms", immutable_1.fromJS({ | ||
@@ -51,3 +53,5 @@ submit: true, | ||
})); | ||
})), []]; | ||
})), | ||
[] | ||
]; | ||
} | ||
@@ -54,0 +58,0 @@ return [incoming, []]; |
@@ -9,3 +9,6 @@ "use strict"; | ||
if (host !== listen) { | ||
return [incoming, [{ | ||
return [ | ||
incoming, | ||
[ | ||
{ | ||
errors: [ | ||
@@ -17,3 +20,3 @@ { | ||
"", | ||
"Tip: Use just the `listen` option *only* if you want to bind only to a particular host.", | ||
"Tip: Use just the `listen` option *only* if you want to bind only to a particular host." | ||
]; | ||
@@ -25,10 +28,9 @@ } | ||
type: bin_1.BsErrorTypes.HostAndListenIncompatible | ||
}]]; | ||
} | ||
] | ||
]; | ||
} | ||
// whenever we have have both `host` + `listen` options, | ||
// we remove the 'host' to prevent complication further down the line | ||
return [ | ||
incoming.delete('host'), | ||
[] | ||
]; | ||
return [incoming.delete("host"), []]; | ||
} | ||
@@ -35,0 +37,0 @@ return [incoming, []]; |
@@ -5,3 +5,3 @@ "use strict"; | ||
function handlePortsOption(incoming) { | ||
var value = incoming.get('ports'); | ||
var value = incoming.get("ports"); | ||
if (!value) | ||
@@ -25,5 +25,5 @@ return [incoming, []]; | ||
} | ||
return [incoming.set('ports', immutable_1.Map(obj)), []]; | ||
return [incoming.set("ports", immutable_1.Map(obj)), []]; | ||
} | ||
exports.handlePortsOption = handlePortsOption; | ||
//# sourceMappingURL=handlePortsOption.js.map |
@@ -6,3 +6,3 @@ "use strict"; | ||
function handleProxyOption(incoming) { | ||
var value = incoming.get('proxy'); | ||
var value = incoming.get("proxy"); | ||
var mw; | ||
@@ -36,5 +36,5 @@ var target; | ||
var proxyOutput = value.mergeDeep(out); | ||
return [incoming.set('proxy', proxyOutput), []]; | ||
return [incoming.set("proxy", proxyOutput), []]; | ||
} | ||
exports.handleProxyOption = handleProxyOption; | ||
//# sourceMappingURL=handleProxyOption.js.map |
@@ -5,3 +5,3 @@ "use strict"; | ||
function handleServerOption(incoming) { | ||
var value = incoming.get('server'); | ||
var value = incoming.get("server"); | ||
if (value === false) { | ||
@@ -15,3 +15,3 @@ return [incoming, []]; | ||
}; | ||
return [incoming.set('server', immutable_1.fromJS(obj)), []]; | ||
return [incoming.set("server", immutable_1.fromJS(obj)), []]; | ||
} | ||
@@ -23,3 +23,3 @@ // server: "./app" | ||
}; | ||
return [incoming.set('server', immutable_1.fromJS(obj)), []]; | ||
return [incoming.set("server", immutable_1.fromJS(obj)), []]; | ||
} | ||
@@ -30,3 +30,3 @@ if (immutable_1.List.isList(value)) { | ||
}; | ||
return [incoming.set('server', immutable_1.fromJS(obj)), []]; | ||
return [incoming.set("server", immutable_1.fromJS(obj)), []]; | ||
} | ||
@@ -38,3 +38,3 @@ if (immutable_1.Map.isMap(value)) { | ||
var merged = value.merge({ baseDir: dirs }); | ||
return [incoming.set('server', merged), []]; | ||
return [incoming.set("server", merged), []]; | ||
} | ||
@@ -41,0 +41,0 @@ return [incoming, []]; |
@@ -24,4 +24,3 @@ var utils = require("./utils"); | ||
var initial = getAggregatedDebouncedStream(subject, options, scheduler); | ||
return applyOperators(operators, initial, options, scheduler) | ||
.map(function (items) { | ||
return applyOperators(operators, initial, options, scheduler).map(function (items) { | ||
var paths = items.map(function (x) { return x.path; }); | ||
@@ -28,0 +27,0 @@ if (utils.willCauseReload(paths, options.get("injectFileTypes").toJS())) { |
@@ -5,3 +5,3 @@ "use strict"; | ||
var instanceMethods = ["exit", "notify", "pause", "resume"]; | ||
var getBody = require('raw-body'); | ||
var getBody = require("raw-body"); | ||
var permittedSocketEvents = [ | ||
@@ -50,8 +50,6 @@ "file:reload", | ||
return function (req, res) { | ||
if (req.method === 'POST') { | ||
if (req.method === "POST") { | ||
return getBody(req, function (err, body) { | ||
if (err) { | ||
var output_1 = [ | ||
"Error: could not parse JSON.", | ||
]; | ||
var output_1 = ["Error: could not parse JSON."]; | ||
res.writeHead(500, { "Content-Type": "text/plain" }); | ||
@@ -66,5 +64,3 @@ return res.end(output_1.join("\n")); | ||
catch (e) { | ||
var output_2 = [ | ||
"Error: " + e.message, | ||
]; | ||
var output_2 = ["Error: " + e.message]; | ||
res.writeHead(500, { "Content-Type": "text/plain" }); | ||
@@ -71,0 +67,0 @@ return res.end(output_2.join("\n")); |
@@ -102,6 +102,6 @@ "use strict"; | ||
var type = data.type; | ||
if (bs.options.get('json')) { | ||
if (bs.options.get("json")) { | ||
return console.log(JSON.stringify({ | ||
"service:running": { | ||
"options": bs.options.toJS() | ||
options: bs.options.toJS() | ||
} | ||
@@ -108,0 +108,0 @@ })); |
@@ -22,3 +22,4 @@ "use strict"; | ||
function setOpen(incoming) { | ||
return [incoming.update('open', function (open) { | ||
return [ | ||
incoming.update("open", function (open) { | ||
if (incoming.get("mode") === "snippet") { | ||
@@ -30,3 +31,5 @@ if (open !== "ui" && open !== "ui-external") { | ||
return open; | ||
}), []]; | ||
}), | ||
[] | ||
]; | ||
} | ||
@@ -89,3 +92,6 @@ exports.setOpen = setOpen; | ||
if (_.isFunction(namespace)) { | ||
return [incoming.setIn(["socket", "namespace"], namespace(defaultConfig.socket.namespace)), []]; | ||
return [ | ||
incoming.setIn(["socket", "namespace"], namespace(defaultConfig.socket.namespace)), | ||
[] | ||
]; | ||
} | ||
@@ -102,9 +108,11 @@ return [incoming, []]; | ||
} | ||
var indexarg = incoming.getIn(["server", "index"]) || | ||
"index.html"; | ||
var indexarg = incoming.getIn(["server", "index"]) || "index.html"; | ||
var optPath = ["server", "serveStaticOptions"]; | ||
if (!incoming.getIn(optPath)) { | ||
return [incoming.setIn(optPath, Immutable.Map({ | ||
return [ | ||
incoming.setIn(optPath, Immutable.Map({ | ||
index: indexarg | ||
})), []]; | ||
})), | ||
[] | ||
]; | ||
} | ||
@@ -121,3 +129,6 @@ if (!incoming.hasIn(optPath.concat(["index"]))) { | ||
if (incoming.get("extensions")) { | ||
return [incoming.setIn(optPath.concat(["extensions"]), incoming.get("extensions")), []]; | ||
return [ | ||
incoming.setIn(optPath.concat(["extensions"]), incoming.get("extensions")), | ||
[] | ||
]; | ||
} | ||
@@ -131,7 +142,10 @@ return [incoming, []]; | ||
function fixRewriteRules(incoming) { | ||
return [incoming.update("rewriteRules", function (rr) { | ||
return [ | ||
incoming.update("rewriteRules", function (rr) { | ||
return Immutable.List([]) | ||
.concat(rr) | ||
.filter(Boolean); | ||
}), []]; | ||
}), | ||
[] | ||
]; | ||
} | ||
@@ -146,3 +160,6 @@ exports.fixRewriteRules = fixRewriteRules; | ||
ignorePaths = ignorePaths.map(ensureSlash); | ||
return [incoming.setIn(["snippetOptions", "blacklist"], Immutable.List(ignorePaths)), []]; | ||
return [ | ||
incoming.setIn(["snippetOptions", "blacklist"], Immutable.List(ignorePaths)), | ||
[] | ||
]; | ||
} | ||
@@ -156,3 +173,6 @@ return [incoming, []]; | ||
includePaths = includePaths.map(ensureSlash); | ||
return [incoming.setIn(["snippetOptions", "whitelist"], Immutable.List(includePaths)), []]; | ||
return [ | ||
incoming.setIn(["snippetOptions", "whitelist"], Immutable.List(includePaths)), | ||
[] | ||
]; | ||
} | ||
@@ -159,0 +179,0 @@ return [incoming, []]; |
@@ -33,2 +33,6 @@ "use strict"; | ||
io.set("heartbeat interval", socketConfig.clients.heartbeatTimeout); | ||
// Breaking change was introduced https://socket.io/blog/socket-io-2-4-0/ | ||
io.origins(function (_, callback) { | ||
callback(null, true); | ||
}); | ||
/** | ||
@@ -35,0 +39,0 @@ * Listen for new connections |
@@ -265,4 +265,3 @@ "use strict"; | ||
function eachSeries(arr, iterator, callback) { | ||
callback = callback || function () { | ||
}; | ||
callback = callback || function () { }; | ||
var completed = 0; | ||
@@ -273,4 +272,3 @@ var iterate = function () { | ||
callback(err); | ||
callback = function () { | ||
}; | ||
callback = function () { }; | ||
} | ||
@@ -277,0 +275,0 @@ else { |
185
package.json
{ | ||
"name": "browser-sync", | ||
"description": "Live CSS Reload & Browser Syncing", | ||
"version": "2.26.13", | ||
"homepage": "https://browsersync.io/", | ||
"author": { | ||
"name": "Shane Osbourne" | ||
}, | ||
"repository": "BrowserSync/browser-sync", | ||
"license": "Apache-2.0", | ||
"main": "dist/index.js", | ||
"bin": "dist/bin.js", | ||
"files": [ | ||
"dist", | ||
"certs", | ||
"templates", | ||
"cli-options", | ||
"client/dist" | ||
], | ||
"engines": { | ||
"node": ">= 8.0.0" | ||
}, | ||
"scripts": { | ||
"env": "node ./test/env.js", | ||
"test": "cb build-all && npm run env && npm run unit", | ||
"lint": "prettier 'lib/**/*' 'examples/*' 'test/specs/**/*' 'test/specs/*.js' --write --tab-width 4", | ||
"pro": "protractor test/protractor/config.single.js", | ||
"pro-local": "node test/protractor/setup.js", | ||
"unit": "mocha --recursive test/specs --timeout 10000 --bail --exit", | ||
"pre-release": "npm test && npm run pro-local && npm run pro", | ||
"lodash": "lodash include=isUndefined,isFunction,toArray,includes,union,each,isString,merge,isObject,set exports=node", | ||
"prepublishOnly": "cb build-all", | ||
"build-all": "cb build-all" | ||
}, | ||
"dependencies": { | ||
"browser-sync-client": "^2.26.13", | ||
"browser-sync-ui": "^2.26.13", | ||
"bs-recipes": "1.3.4", | ||
"bs-snippet-injector": "^2.0.1", | ||
"chokidar": "^3.4.1", | ||
"connect": "3.6.6", | ||
"connect-history-api-fallback": "^1", | ||
"dev-ip": "^1.0.1", | ||
"easy-extender": "^2.3.4", | ||
"eazy-logger": "3.1.0", | ||
"etag": "^1.8.1", | ||
"fresh": "^0.5.2", | ||
"fs-extra": "3.0.1", | ||
"http-proxy": "^1.18.1", | ||
"immutable": "^3", | ||
"localtunnel": "^2.0.0", | ||
"micromatch": "^4.0.2", | ||
"opn": "5.3.0", | ||
"portscanner": "2.1.1", | ||
"qs": "6.2.3", | ||
"raw-body": "^2.3.2", | ||
"resp-modifier": "6.0.2", | ||
"rx": "4.1.0", | ||
"send": "0.16.2", | ||
"serve-index": "1.9.1", | ||
"serve-static": "1.13.2", | ||
"server-destroy": "1.0.1", | ||
"socket.io": "2.1.1", | ||
"ua-parser-js": "^0.7.18", | ||
"yargs": "^15.4.1" | ||
}, | ||
"devDependencies": { | ||
"@types/node": "^8", | ||
"chai": "^3", | ||
"chalk": "1.1.3", | ||
"crossbow": "^4.6.0", | ||
"generate-changelog": "^1.7.0", | ||
"graceful-fs": "4.1.9", | ||
"http2": "^3.3.6", | ||
"mocha": "^8.2.0", | ||
"prettier": "^1.9.2", | ||
"q": "1.4.1", | ||
"request": "^2", | ||
"requirejs": "^2.3.5", | ||
"rimraf": "2.5.4", | ||
"sinon": "^1", | ||
"socket.io-client": "^2.0.4", | ||
"source-map-support": "^0.5.0", | ||
"supertest": "^3", | ||
"typescript": "3.0.3", | ||
"vinyl": "1.2.0" | ||
}, | ||
"keywords": [ | ||
"browser sync", | ||
"css", | ||
"live reload", | ||
"sync" | ||
], | ||
"gitHead": "0cbdfd147614bf3da52bf0b4559feadf470ae1a0" | ||
"name": "browser-sync", | ||
"description": "Live CSS Reload & Browser Syncing", | ||
"version": "2.26.14-y.1", | ||
"homepage": "https://browsersync.io/", | ||
"author": { | ||
"name": "Shane Osbourne" | ||
}, | ||
"repository": "BrowserSync/browser-sync", | ||
"license": "Apache-2.0", | ||
"main": "dist/index.js", | ||
"bin": "dist/bin.js", | ||
"files": [ | ||
"dist", | ||
"certs", | ||
"templates", | ||
"cli-options", | ||
"client/dist" | ||
], | ||
"engines": { | ||
"node": ">= 8.0.0" | ||
}, | ||
"scripts": { | ||
"build": "npm run build:server", | ||
"build:server": "tsc", | ||
"env": "node ./test/env.js", | ||
"lodash": "lodash include=isUndefined,isFunction,toArray,includes,union,each,isString,merge,isObject,set exports=node", | ||
"prepublishOnly": "npm run build", | ||
"prettier": "prettier 'lib/**/*' 'examples/*' 'test/specs/**/*.js' --tab-width 4", | ||
"prettier:fix": "npm run prettier -- --write", | ||
"test": "npm run build && npm run env && npm run unit", | ||
"unit": "mocha --recursive test/specs --timeout 10000 --bail --exit" | ||
}, | ||
"dependencies": { | ||
"browser-sync-client": "^2.26.14-y.1", | ||
"browser-sync-ui": "^2.26.14-y.1", | ||
"bs-recipes": "1.3.4", | ||
"bs-snippet-injector": "^2.0.1", | ||
"chokidar": "^3.5.1", | ||
"connect": "3.6.6", | ||
"connect-history-api-fallback": "^1", | ||
"dev-ip": "^1.0.1", | ||
"easy-extender": "^2.3.4", | ||
"eazy-logger": "3.1.0", | ||
"etag": "^1.8.1", | ||
"fresh": "^0.5.2", | ||
"fs-extra": "3.0.1", | ||
"http-proxy": "^1.18.1", | ||
"immutable": "^3", | ||
"localtunnel": "^2.0.0", | ||
"micromatch": "^4.0.2", | ||
"opn": "5.3.0", | ||
"portscanner": "2.1.1", | ||
"qs": "6.2.3", | ||
"raw-body": "^2.3.2", | ||
"resp-modifier": "6.0.2", | ||
"rx": "4.1.0", | ||
"send": "0.16.2", | ||
"serve-index": "1.9.1", | ||
"serve-static": "1.13.2", | ||
"server-destroy": "1.0.1", | ||
"socket.io": "2.4.0", | ||
"ua-parser-js": "^0.7.18", | ||
"yargs": "^15.4.1" | ||
}, | ||
"devDependencies": { | ||
"@types/node": "^8", | ||
"bs-snippet-injector": "^2.0.1", | ||
"chai": "^3", | ||
"chalk": "1.1.3", | ||
"generate-changelog": "^1.7.0", | ||
"graceful-fs": "4.1.9", | ||
"http2": "^3.3.6", | ||
"mocha": "^8.2.0", | ||
"prettier": "^1.9.2", | ||
"q": "1.4.1", | ||
"request": "^2", | ||
"requirejs": "^2.3.5", | ||
"rimraf": "2.5.4", | ||
"sinon": "^1", | ||
"socket.io-client": "^2.4.0", | ||
"source-map-support": "^0.5.0", | ||
"supertest": "^3", | ||
"typescript": "3.0.3", | ||
"vinyl": "1.2.0" | ||
}, | ||
"keywords": [ | ||
"browser sync", | ||
"css", | ||
"live reload", | ||
"sync" | ||
], | ||
"gitHead": "cbd2f3441d9e01f4d419d88ba43306c531163b54" | ||
} |
@@ -1,72 +0,1 @@ | ||
<p align="center"> | ||
<a href="https://ci.appveyor.com/project/shakyShane/browser-sync" title="AppVeyor branch"> | ||
<img src="https://img.shields.io/appveyor/ci/shakyshane/browser-sync/master.svg?style=flat-square&label=windows" /> | ||
</a><a href="https://travis-ci.org/BrowserSync/browser-sync" title="Travis branch"> | ||
<img src="https://img.shields.io/travis/BrowserSync/browser-sync/master.svg?style=flat-square&label=linux" /> | ||
</a><a href="https://www.npmjs.com/package/browser-sync"> | ||
<img src="https://img.shields.io/npm/dm/browser-sync.svg?style=flat-square" /> | ||
</a> | ||
</p> | ||
<p align="center"> | ||
<a href="https://www.npmjs.com/package/browser-sync" title="NPM version"> | ||
<img src="https://img.shields.io/npm/v/browser-sync.svg?style=flat-square" /> | ||
</a><a href="https://david-dm.org/Browsersync/browser-sync" title="Dependency Status"> | ||
<img src="https://img.shields.io/david/Browsersync/browser-sync.svg?style=flat-square&label=deps" /> | ||
</a> | ||
<a href="https://david-dm.org/Browsersync/browser-sync#info=devDependencies" title="devDependency Status"> | ||
<img src="https://img.shields.io/david/dev/Browsersync/browser-sync.svg?style=flat-square&label=devDeps" /> | ||
</a> | ||
</p> | ||
<p align="center"><a href="https://www.browsersync.io"><img src="https://raw.githubusercontent.com/BrowserSync/browsersync.github.io/master/public/img/logo-gh.png" /></a></p> | ||
<p align="center">Keep multiple browsers & devices in sync when building websites.</p> | ||
<p align="center">Browsersync is developed and maintained internally at <a href="http://www.wearejh.com">JH</a></p> | ||
<p align="center">Follow <a href="https://twitter.com/browsersync">@Browsersync</a> on twitter for news & updates.</p> | ||
<p align="center">Community <a href="https://browsersync.herokuapp.com"><img src="https://browsersync.herokuapp.com/badge.svg" /></a></p> | ||
## Features | ||
Please visit [browsersync.io](https://browsersync.io) for a full run-down of features | ||
## Requirements | ||
Browsersync works by injecting an asynchronous script tag (`<script async>...</script>`) right after the `<body>` tag | ||
during initial request. In order for this to work properly the `<body>` tag must be present. Alternatively you | ||
can provide a custom rule for the snippet using [snippetOptions](https://www.browsersync.io/docs/options/#option-snippetOptions) | ||
## Upgrading from 1.x to 2.x ? | ||
Providing you haven't accessed any internal properties, everything will just work as | ||
there are no breaking changes to the public API. Internally however, we now use an | ||
immutable data structure for storing/retrieving options. So whereas before you could access urls like this... | ||
```js | ||
browserSync({server: true}, function(err, bs) { | ||
console.log(bs.options.urls.local); | ||
}); | ||
``` | ||
... you now access them in the following way: | ||
```js | ||
browserSync({server: true}, function(err, bs) { | ||
console.log(bs.options.getIn(["urls", "local"])); | ||
}); | ||
``` | ||
## Install and trouble shooting | ||
[browsersync.io docs](https://browsersync.io) | ||
## Integrations / recipes | ||
[Browsersync recipes](https://github.com/Browsersync/recipes) | ||
## Support | ||
If you've found Browser-sync useful and would like to contribute to its continued development & support, please feel free to send a donation of any size - it would be greatly appreciated! | ||
[![Support via PayPal](https://rawgithub.com/chris---/Donation-Badges/master/paypal.jpeg)](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=shakyshane%40gmail%2ecom&lc=US&item_name=browser%2dsync) | ||
Apache 2 | ||
Copyright (c) 2019 Shane Osbourne | ||
# browser-sync |
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 not supported yet
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 not supported yet
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 not supported yet
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 not supported yet
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 not supported yet
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 not supported yet
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
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 not supported yet
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 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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
10373
571794
1
2
+ Addedbase64-arraybuffer@0.1.4(transitive)
+ Addedbase64id@2.0.0(transitive)
+ Addedcomponent-emitter@1.3.1(transitive)
+ Addedcookie@0.4.2(transitive)
+ Addeddebug@4.1.1(transitive)
+ Addedengine.io@3.5.0(transitive)
+ Addedengine.io-client@3.5.4(transitive)
+ Addedengine.io-parser@2.2.1(transitive)
+ Addedparseqs@0.0.6(transitive)
+ Addedparseuri@0.0.6(transitive)
+ Addedsocket.io@2.4.0(transitive)
+ Addedsocket.io-client@2.4.0(transitive)
+ Addedsocket.io-parser@3.3.4(transitive)
+ Addedws@7.4.67.5.10(transitive)
+ Addedxmlhttprequest-ssl@1.6.3(transitive)
- Removedasync-limiter@1.0.1(transitive)
- Removedbase64-arraybuffer@0.1.5(transitive)
- Removedbase64id@1.0.0(transitive)
- Removedbetter-assert@1.0.2(transitive)
- Removedcallsite@1.0.0(transitive)
- Removedcomponent-emitter@1.2.1(transitive)
- Removedcookie@0.3.1(transitive)
- Removedengine.io@3.2.1(transitive)
- Removedengine.io-client@3.2.1(transitive)
- Removedengine.io-parser@2.1.3(transitive)
- Removedobject-component@0.0.3(transitive)
- Removedparseqs@0.0.5(transitive)
- Removedparseuri@0.0.5(transitive)
- Removedsafe-buffer@5.1.2(transitive)
- Removedsocket.io@2.1.1(transitive)
- Removedsocket.io-client@2.1.1(transitive)
- Removedsocket.io-parser@3.2.0(transitive)
- Removedultron@1.1.1(transitive)
- Removedws@3.3.3(transitive)
- Removedxmlhttprequest-ssl@1.5.5(transitive)
Updatedbrowser-sync-ui@^2.26.14-y.1
Updatedchokidar@^3.5.1
Updatedsocket.io@2.4.0