@sockethub/platform-irc 4.0.0-alpha.3 → 4.0.0-alpha.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js CHANGED
@@ -403,8 +403,7 @@ IRC.prototype.update = function (job, credentials, done) {
403
403
  credentials.object.nick = job.target.name;
404
404
  credentials.actor.id = `${job.target.name}@${credentials.object.server}`;
405
405
  credentials.actor.name = job.target.name;
406
- this.updateActor(credentials);
407
- done();
406
+ this.updateActor(credentials).then(done);
408
407
  });
409
408
  // send nick change command
410
409
  client.raw(['NICK', job.target.name]);
package/index.test.js CHANGED
@@ -44,7 +44,7 @@ describe('Initialize IRC Platform', () => {
44
44
  beforeEach(() => {
45
45
  platform = new IRCPlatform({
46
46
  debug: function () {},
47
- updateActor: function (obj) {}
47
+ updateActor: function async() { return Promise.resolve(); }
48
48
  });
49
49
  platform.__connect = function (key, credentials, cb) {
50
50
  cb(null, {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sockethub/platform-irc",
3
3
  "description": "A sockethub platform module implementing IRC functionality",
4
- "version": "4.0.0-alpha.3",
4
+ "version": "4.0.0-alpha.4",
5
5
  "private": false,
6
6
  "author": "Nick Jennings <nick@silverbucket.net>",
7
7
  "license": "LGPL-3.0+",
@@ -22,17 +22,17 @@
22
22
  },
23
23
  "homepage": "https://github.com/sockethub/sockethub/tree/master/packages/platform-irc",
24
24
  "dependencies": {
25
- "@sockethub/irc2as": "^4.0.0-alpha.3",
25
+ "@sockethub/irc2as": "^4.0.0-alpha.4",
26
26
  "irc-socket-sasl": "4.0.0"
27
27
  },
28
28
  "devDependencies": {
29
- "@sockethub/schemas": "^3.0.0-alpha.3",
30
- "c8": "7.11.0",
29
+ "@sockethub/schemas": "^3.0.0-alpha.4",
30
+ "c8": "7.12.0",
31
31
  "chai": "4.3.6",
32
- "eslint": "8.9.0",
32
+ "eslint": "8.23.1",
33
33
  "jsdoc-to-markdown": "7.1.1",
34
34
  "proxyquire": "2.1.3",
35
- "sinon": "13.0.1"
35
+ "sinon": "14.0.0"
36
36
  },
37
37
  "peerDependencies": {
38
38
  "@sockethub/server": ">=5.0.0-alpha.2"
@@ -53,5 +53,5 @@
53
53
  "lint": "eslint \"**/*.js\"",
54
54
  "lint:fix": "eslint --fix \"**/*.js\""
55
55
  },
56
- "gitHead": "f02238a478b7ffd3f31d8deea292eb67e630a86b"
56
+ "gitHead": "c6d34ff44d2be479e4ea42c46da649612342a680"
57
57
  }