mirror of
https://github.com/plantroon/mx-puppet-xmpp.git
synced 2024-12-27 00:51:41 +00:00
big update of dependency
This commit is contained in:
parent
49d0132f6f
commit
ecda05d366
2037
package-lock.json
generated
2037
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -11,6 +11,7 @@
|
||||
},
|
||||
"author": "Sorunome",
|
||||
"dependencies": {
|
||||
"@sorunome/skype-http": "^1.5.0",
|
||||
"cheerio": "^1.0.0-rc.3",
|
||||
"command-line-args": "^5.1.1",
|
||||
"command-line-usage": "^5.0.5",
|
||||
@ -22,7 +23,6 @@
|
||||
"mx-puppet-bridge": "0.0.38-1",
|
||||
"node-emoji": "^1.10.0",
|
||||
"node-html-parser": "^1.2.13",
|
||||
"skype-http": "git://github.com/Sorunome/skype-http#8f1c71e7654ac5e04c31c552eff847f4ff63b8fa",
|
||||
"tslint": "^5.17.0",
|
||||
"typescript": "^3.7.4"
|
||||
},
|
||||
|
@ -13,10 +13,10 @@ limitations under the License.
|
||||
|
||||
import { Log, IRemoteRoom, Util } from "mx-puppet-bridge";
|
||||
import { EventEmitter } from "events";
|
||||
import * as skypeHttp from "skype-http";
|
||||
import { Contact as SkypeContact } from "skype-http/dist/lib/types/contact";
|
||||
import { NewMediaMessage as SkypeNewMediaMessage } from "skype-http/dist/lib/interfaces/api/api";
|
||||
import { Context as SkypeContext } from "skype-http/dist/lib/interfaces/api/context";
|
||||
import * as skypeHttp from "@sorunome/skype-http";
|
||||
import { Contact as SkypeContact } from "@sorunome/skype-http/dist/lib/types/contact";
|
||||
import { NewMediaMessage as SkypeNewMediaMessage } from "@sorunome/skype-http/dist/lib/interfaces/api/api";
|
||||
import { Context as SkypeContext } from "@sorunome/skype-http/dist/lib/interfaces/api/context";
|
||||
import ExpireSet from "expire-set";
|
||||
|
||||
const log = new Log("SkypePuppet:client");
|
||||
|
10
src/skype.ts
10
src/skype.ts
@ -16,10 +16,10 @@ import {
|
||||
IRetList,
|
||||
} from "mx-puppet-bridge";
|
||||
import { Client } from "./client";
|
||||
import * as skypeHttp from "skype-http";
|
||||
import { Contact as SkypeContact } from "skype-http/dist/lib/types/contact";
|
||||
import { NewMediaMessage as SkypeNewMediaMessage } from "skype-http/dist/lib/interfaces/api/api";
|
||||
import { UnexpectedHttpStatusError } from "skype-http/dist/lib/errors";
|
||||
import * as skypeHttp from "@sorunome/skype-http";
|
||||
import { Contact as SkypeContact } from "@sorunome/skype-http/dist/lib/types/contact";
|
||||
import { NewMediaMessage as SkypeNewMediaMessage } from "@sorunome/skype-http/dist/lib/interfaces/api/api";
|
||||
import { UnexpectedHttpStatusError } from "@sorunome/skype-http/dist/lib/errors";
|
||||
import * as decodeHtml from "decode-html";
|
||||
import * as escapeHtml from "escape-html";
|
||||
import { MatrixMessageParser } from "./matrixmessageparser";
|
||||
@ -228,7 +228,7 @@ export class Skype {
|
||||
await this.puppet.setPuppetData(puppetId, p.data);
|
||||
await this.puppet.sendStatusMessage(puppetId, "connected");
|
||||
} catch (err) {
|
||||
log.error("Failed to connect", err);
|
||||
log.error("Failed to connect", err.body || err);
|
||||
await this.puppet.sendStatusMessage(puppetId, "Failed to connect, reconnecting in a minute... " + err);
|
||||
setTimeout(async () => {
|
||||
await this.startClient(puppetId);
|
||||
|
Loading…
Reference in New Issue
Block a user