browser-sync
Advanced tools
Comparing version 2.29.3 to 3.0.2
@@ -197,2 +197,5 @@ "use strict"; | ||
if (err) { | ||
if (err.code === "MODULE_NOT_FOUND") { | ||
return utils.fail(true, err, bs.cb); | ||
} | ||
return done(err); | ||
@@ -199,0 +202,0 @@ } |
@@ -61,2 +61,8 @@ "use strict"; | ||
} | ||
else if (runner.bs === "inject-html") { | ||
effects.push({ | ||
type: "inject-html", | ||
selectors: runner.selectors || [] | ||
}); | ||
} | ||
return Rx.Observable.concat(Rx.Observable.just((0, types_1.toRunnerNotification)({ | ||
@@ -63,0 +69,0 @@ status: "start", |
@@ -9,2 +9,14 @@ "use strict"; | ||
module.exports = function (bs, cb) { | ||
var localtunnel; | ||
try { | ||
localtunnel = require("localtunnel"); | ||
} | ||
catch (e) { | ||
if (e.code === "MODULE_NOT_FOUND") { | ||
var error = new Error("Could not find package `localtunnel`. From Browsersync version 3.0 you'll need to install this manually."); | ||
error.code = e.code; | ||
return cb(error); | ||
} | ||
return cb(e); | ||
} | ||
var opts = {}; | ||
@@ -18,3 +30,3 @@ var options = bs.options; | ||
bs.debug("Requesting a tunnel connection with options: {magenta:%s}", utils.inspect(opts)); | ||
require("localtunnel")(port, opts, function (err, tunnel) { | ||
localtunnel(port, opts, function (err, tunnel) { | ||
if (err) { | ||
@@ -21,0 +33,0 @@ return cb(err); |
{ | ||
"name": "browser-sync", | ||
"description": "Live CSS Reload & Browser Syncing", | ||
"version": "2.29.3", | ||
"version": "3.0.2", | ||
"homepage": "https://browsersync.io/", | ||
@@ -38,4 +38,4 @@ "author": { | ||
"dependencies": { | ||
"browser-sync-client": "^2.29.3", | ||
"browser-sync-ui": "^2.29.3", | ||
"browser-sync-client": "^3.0.2", | ||
"browser-sync-ui": "^3.0.2", | ||
"bs-recipes": "1.3.4", | ||
@@ -54,3 +54,2 @@ "chalk": "4.1.2", | ||
"immutable": "^3", | ||
"localtunnel": "^2.0.1", | ||
"micromatch": "^4.0.2", | ||
@@ -97,3 +96,3 @@ "opn": "5.3.0", | ||
], | ||
"gitHead": "02efdff2f6cf2991b87f8e8eaf7bbd21559fa612" | ||
"gitHead": "53835f7cdce168bb4c13e09f5d5125f83bd9f7e6" | ||
} |
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
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
629098
28
189
11889
+ Addedbrowser-sync-client@3.0.3(transitive)
+ Addedbrowser-sync-ui@3.0.3(transitive)
- Removedlocaltunnel@^2.0.1
- Removedaxios@0.21.4(transitive)
- Removedbrowser-sync-client@2.29.3(transitive)
- Removedbrowser-sync-ui@2.29.3(transitive)
- Removedcliui@7.0.4(transitive)
- Removeddebug@4.3.2(transitive)
- Removedlocaltunnel@2.0.2(transitive)
- Removedms@2.1.2(transitive)
- Removedopenurl@1.1.1(transitive)
- Removedyargs@17.1.1(transitive)
- Removedyargs-parser@20.2.9(transitive)
Updatedbrowser-sync-client@^3.0.2
Updatedbrowser-sync-ui@^3.0.2