diff --git a/example/ding-dong-bot.ts b/example/ding-dong-bot.ts index 556f646a08688821a8cdc76c52a6c4b4fdb19995..795d23d61bb2cf00807b90ca5c48c9dc764aa795 100644 --- a/example/ding-dong-bot.ts +++ b/example/ding-dong-bot.ts @@ -9,7 +9,7 @@ /* tslint:disable:variable-name */ const QrcodeTerminal = require('qrcode-terminal') -const nodeCleanup = require('node-cleanup') +const finis = require('finis') import { Wechaty @@ -81,7 +81,7 @@ bot.init() process.exit(-1) }) -nodeCleanup((reason, code) => { +finis((code, reason) => { const exitMsg = `Wechaty exit ${code} because of ${reason} ` console.log(exitMsg) bot.say(exitMsg) diff --git a/package.json b/package.json index 38383fc0c1d221d15ff451e10ccf0a801f4d167b..cfbce29f270515a4af0bb2d0454158f1e361ab4e 100644 --- a/package.json +++ b/package.json @@ -106,16 +106,16 @@ "ws": "^1.1.1" }, "devDependencies": { - "@types/body-parser": "0.0.33", + "@types/body-parser": "^0.0.33", "@types/express": "^4.0.33", - "@types/fluent-ffmpeg": "0.0.2", - "@types/mime": "0.0.29", + "@types/fluent-ffmpeg": "^0.0.2", + "@types/mime": "^0.0.29", "@types/node": "^6.0.45", - "@types/request": "0.0.34", + "@types/request": "^0.0.34", "@types/selenium-webdriver": "^2.53.34", "@types/sinon": "^1.16.31", "@types/socket.io": "^1.4.27", - "@types/ws": "0.0.34", + "@types/ws": "^0.0.34", "apiai": "^2.0.7", "ava": "^0.16.0", "babel-eslint": "^6.1.2", @@ -125,7 +125,7 @@ "eslint": "^3.4.0", "eslint-plugin-ava": "^3.1.1", "fluent-ffmpeg": "^2.1.0", - "node-cleanup": "^1.0.1", + "finis": "^0.0.2", "nyc": "^8.3.2", "qrcode-terminal": "^0.10.0", "request": "^2.79.0", @@ -134,7 +134,7 @@ "sloc": "^0.1.11", "ts-node": "^1.4.1", "tslint": "^3.15.1", - "tuling123-client": "0.0.1", + "tuling123-client": "^0.0.1", "typescript": "^2.0.3", "yarn": "^0.16.1" },