Merge pull request #9 from finwo/remove-bluebird

Removed all bluebird references
This commit is contained in:
Mark Nadal
2020-09-23 17:56:16 -07:00
committed by GitHub
5 changed files with 2 additions and 7 deletions

View File

@@ -28,7 +28,6 @@
},
"homepage": "https://github.com/gundb/panic-server#readme",
"dependencies": {
"bluebird": "^3.3.5",
"panic-client": "^1.0.0",
"socket.io": "^1.4.5"
},

View File

@@ -1,6 +1,5 @@
'use strict';
var Promise = require('bluebird');
var matches = require('./matcher');
/**

View File

@@ -1,6 +1,5 @@
'use strict';
var Emitter = require('events');
var Promise = require('bluebird');
/**
* Creates reactive lists of clients.
@@ -176,7 +175,7 @@ API.excluding = function (exclude) {
if(exclude instanceof Array){
exclude = new ClientList(exclude);
}
var list = this.filter(function (client) {
var excluded = exclude.get(client.socket.id);

View File

@@ -3,7 +3,6 @@
'use strict';
var Client = require('../src/Client');
var Emitter = require('events');
var Promise = require('bluebird');
var expect = require('expect');
describe('A client', function () {
@@ -99,7 +98,7 @@ describe('A client', function () {
expect(args[2]).toBe(props);
});
it('should return a bluebird promise', function () {
it('should return a promise', function () {
var job = client.run(function () {});
expect(job).toBeA(Promise);
});

View File

@@ -4,7 +4,6 @@
var mock = require('./mock');
var Client = mock.Client;
var ClientList = require('../src/ClientList');
var Promise = require('bluebird');
var expect = require('chai').expect;