Skip to content

Commit

Permalink
Replace mini-lr dependency by tiny-lr
Browse files Browse the repository at this point in the history
`mini-lr` is no longer maintained. This commit replaces it by `tiny-lr`, a drop-in replacement.
  • Loading branch information
demurgos committed Aug 28, 2018
1 parent e3be670 commit 909c139
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

var es = require('event-stream');
var log = require('fancy-log');
var minilr = require('mini-lr');
var tinyLr = require('tiny-lr');
var relative = require('path').relative;
var _assign = require('lodash.assign');
var debug = require('debug')('gulp:livereload');
Expand Down Expand Up @@ -63,7 +63,7 @@ exports.server = undefined;
* A direct reference to the underlying servers middleware reference
*/

exports.middleware = minilr.middleware;
exports.middleware = tinyLr.middleware;

/**
* Start the livereload server
Expand Down Expand Up @@ -91,7 +91,7 @@ exports.listen = function(opts, cb) {
}

options = _assign(options, opts);
exports.server = new minilr.Server(options);
exports.server = new tinyLr.Server(options);
exports.server.listen(options.port, options.host, function() {
debug('now listening on port %d', options.port);
if(typeof cb === 'function') cb.apply(exports.server, arguments);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"event-stream": "^3.1.7",
"fancy-log": "^1.3.2",
"lodash.assign": "^3.0.0",
"mini-lr": "^0.1.8",
"tiny-lr": "^1.1.1",
"vinyl": "^2.1.0"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ var assert = require('assert');
var es = require('event-stream');
var path = require('path');
var sinon = require('sinon');
var minilr = require('mini-lr');
var tinyLr = require('tiny-lr');
var Vinyl = require('vinyl');
var glr = require('../index.js');
var fancyLog = {log: require('fancy-log')};
Expand All @@ -16,7 +16,7 @@ var srv, log;

describe('gulp-livereload', function() {
beforeEach(function() {
srv = sinon.stub(minilr, 'Server');
srv = sinon.stub(tinyLr, 'Server');
log = sinon.stub(fancyLog, "log");
});
afterEach(function() {
Expand Down

0 comments on commit 909c139

Please sign in to comment.