提交 ea0cc8fc 编写于 作者: Huan (李卓桓)'s avatar Huan (李卓桓)

Upgrade deps

上级 60429744
......@@ -86,7 +86,7 @@
"brolog": "^1.12.4",
"clone-class": "^0.7.3",
"cuid": "^2.1.8",
"dotenv": "^8.2.0",
"dotenv": "^10.0.0",
"in-gfw": "^1.2.0",
"json-rpc-peer": "^0.17.0",
"npm-programmatic": "0.0.12",
......@@ -101,18 +101,18 @@
"state-switch": "^0.9.9",
"typed-emitter": "^1.3.1",
"watchdog": "^0.8.17",
"wechaty-puppet": "^0.35.1",
"wechaty-puppet-service": "^0.19.4",
"ws": "^7.4.4"
"wechaty-puppet": "^0.39.1",
"wechaty-puppet-service": "^0.21.1",
"ws": "^7.4.6"
},
"devDependencies": {
"@babel/core": "^7.13.10",
"@babel/node": "^7.13.10",
"@babel/preset-env": "^7.13.10",
"@babel/core": "^7.14.3",
"@babel/node": "^7.14.2",
"@babel/preset-env": "^7.14.4",
"@chatie/eslint-config": "^0.12.3",
"@chatie/git-scripts": "^0.6.2",
"@chatie/semver": "^0.4.7",
"@chatie/tsconfig": "^0.11.4",
"@chatie/tsconfig": "^0.16.2",
"@types/cuid": "^1.3.1",
"@types/dotenv": "^8.2.0",
"@types/glob": "^7.1.3",
......@@ -120,14 +120,14 @@
"@types/promise-retry": "^1.1.3",
"@types/raven": "^2.5.3",
"@types/retry": "^0.12.0",
"@types/ws": "^7.4.0",
"@types/ws": "^7.4.4",
"apiai": "^4.0.3",
"check-node-version": "^4.1.0",
"coveralls": "^3.1.0",
"cross-env": "^7.0.3",
"finis": "^0.4.4",
"glob": "^7.1.6",
"jsdoc-to-markdown": "^7.0.0",
"glob": "^7.1.7",
"jsdoc-to-markdown": "^7.0.1",
"markdownlint-cli": "^0.27.1",
"npm-run-all": "^4.1.5",
"nyc": "^15.1.0",
......@@ -136,8 +136,8 @@
"shx": "^0.3.3",
"sloc": "^0.2.1",
"tstest": "^0.4.10",
"typedoc": "^0.20.30",
"typescript": "3.9",
"typedoc": "^0.20.36",
"typescript": "^4.2",
"wechaty-puppet-mock": "^0.28.3"
},
"files_comment__whitelist_npm_publish": "http://stackoverflow.com/a/8617868/1123955",
......
......@@ -44,7 +44,7 @@ export const PUPPET_DEPENDENCIES = {
/**
* Wechaty Internal Puppets: dependency by package.json
*/
'wechaty-puppet-service' : '*', // https://www.npmjs.com/package/wechaty-puppet-service
'wechaty-puppet-service' : '>=0.21', // https://www.npmjs.com/package/wechaty-puppet-service
'wechaty-puppet-mock' : '*', // https://www.npmjs.com/package/wechaty-puppet-mock
/**
......
......@@ -99,10 +99,12 @@ export class PuppetManager {
*/
/**
* Huan(20210313)
* Huan(20210313) Issue #2151 - https://github.com/wechaty/wechaty/issues/2151
* error TS2511: Cannot create an instance of an abstract class.
*
* Huan(20210530): workaround by "as any"
*/
puppetInstance = new MyPuppet(options.puppetOptions)
puppetInstance = new (MyPuppet as any)(options.puppetOptions)
}
return puppetInstance
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册