Skip to content

Commit

Permalink
docs: 更新文档
Browse files Browse the repository at this point in the history
  • Loading branch information
lzxb committed Dec 23, 2019
1 parent 93e9d88 commit e67e937
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion README.md
@@ -1,3 +1,5 @@
[![npm](https://img.shields.io/npm/v/e-promise.svg?style=flat-square)](https://www.npmjs.com/package/e-promise) [![npm](https://img.shields.io/npm/dt/e-promise.svg?style=flat-square)](https://www.npmjs.com/package/e-promise) [![npm](https://img.shields.io/npm/l/e-promise.svg?style=flat-square)](https://www.npmjs.com/package/e-promise)

## EventPromise

## 安装
Expand Down Expand Up @@ -37,7 +39,7 @@ class IoEventPromise extends EventPromise {
async emit (eventName, ...args) {
const client = await this.awaitPromise();
// 连接失败,则直接输出错误
if (typeof client === 'string') {
if (!client || typeof client === 'string') {
console.log(client);
return;
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,5 +1,5 @@
{
"version": "0.1.0",
"version": "0.1.1",
"license": "MIT",
"main": "dist/index.js",
"typings": "dist/index.d.ts",
Expand Down

0 comments on commit e67e937

Please sign in to comment.