Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
wechaty
wechaty
提交
a6dc787e
W
wechaty
项目概览
wechaty
/
wechaty
上一次同步 大约 3 年
通知
304
Star
10499
Fork
6
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
152
列表
看板
标记
里程碑
合并请求
1
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
W
wechaty
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
152
Issue
152
列表
看板
标记
里程碑
合并请求
1
合并请求
1
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
a6dc787e
编写于
6月 07, 2018
作者:
Huan (李卓桓)
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
make new TypeScript option `esModuleInterop` happy
上级
97c7e58e
变更
32
隐藏空白更改
内联
并排
Showing
32 changed file
with
73 addition
and
73 deletion
+73
-73
src/accessory.spec.ts
src/accessory.spec.ts
+1
-1
src/config.spec.ts
src/config.spec.ts
+1
-1
src/config.ts
src/config.ts
+6
-6
src/contact.spec.ts
src/contact.spec.ts
+2
-2
src/io-client.ts
src/io-client.ts
+1
-1
src/io.ts
src/io.ts
+1
-1
src/message.ts
src/message.ts
+2
-2
src/misc.spec.ts
src/misc.spec.ts
+4
-4
src/misc.ts
src/misc.ts
+6
-6
src/puppet-mock/puppet-mock.ts
src/puppet-mock/puppet-mock.ts
+1
-1
src/puppet-padchat/puppet-padchat.ts
src/puppet-padchat/puppet-padchat.ts
+3
-3
src/puppet-padchat/pure-function-helper.spec.ts
src/puppet-padchat/pure-function-helper.spec.ts
+1
-1
src/puppet-puppeteer/bridge.spec.ts
src/puppet-puppeteer/bridge.spec.ts
+2
-2
src/puppet-puppeteer/bridge.ts
src/puppet-puppeteer/bridge.ts
+2
-2
src/puppet-puppeteer/event.spec.ts
src/puppet-puppeteer/event.spec.ts
+2
-2
src/puppet-puppeteer/firer.spec.ts
src/puppet-puppeteer/firer.spec.ts
+2
-2
src/puppet-puppeteer/firer.ts
src/puppet-puppeteer/firer.ts
+1
-1
src/puppet-puppeteer/index.spec.ts
src/puppet-puppeteer/index.spec.ts
+2
-2
src/puppet-puppeteer/puppet-puppeteer.spec.ts
src/puppet-puppeteer/puppet-puppeteer.spec.ts
+2
-2
src/puppet-puppeteer/puppet-puppeteer.ts
src/puppet-puppeteer/puppet-puppeteer.ts
+6
-6
src/puppet-puppeteer/puppeteer-contact.spec.ts
src/puppet-puppeteer/puppeteer-contact.spec.ts
+2
-2
src/puppet-puppeteer/puppeteer-friend-request.spec.ts
src/puppet-puppeteer/puppeteer-friend-request.spec.ts
+2
-2
src/puppet-puppeteer/puppeteer-message.spec.ts
src/puppet-puppeteer/puppeteer-message.spec.ts
+2
-2
src/puppet-puppeteer/puppeteer-room.spec.ts
src/puppet-puppeteer/puppeteer-room.spec.ts
+2
-2
src/puppet-wechat4u/puppet-wechat4u.ts
src/puppet-wechat4u/puppet-wechat4u.ts
+2
-2
src/puppet/puppet.spec.ts
src/puppet/puppet.spec.ts
+1
-1
src/puppet/puppet.ts
src/puppet/puppet.ts
+3
-3
src/room.ts
src/room.ts
+1
-1
src/wechaty.spec.ts
src/wechaty.spec.ts
+3
-3
src/wechaty.ts
src/wechaty.ts
+3
-3
tests/electron.spec.ts
tests/electron.spec.ts
+2
-2
tests/node.spec.ts
tests/node.spec.ts
+2
-2
未找到文件。
src/accessory.spec.ts
浏览文件 @
a6dc787e
...
...
@@ -19,7 +19,7 @@
*/
// tslint:disable:no-shadowed-variable
import
test
from
'
blue-tape
'
// import
* as
sinon from 'sinon'
// import sinon from 'sinon'
import
{
cloneClass
,
...
...
src/config.spec.ts
浏览文件 @
a6dc787e
...
...
@@ -19,7 +19,7 @@
*/
// tslint:disable:no-shadowed-variable
import
test
from
'
blue-tape
'
// import
* as
sinon from 'sinon'
// import sinon from 'sinon'
// const sinonTest = require('sinon-test')(sinon)
import
{
config
}
from
'
./config
'
...
...
src/config.ts
浏览文件 @
a6dc787e
...
...
@@ -16,13 +16,13 @@
* limitations under the License.
*
*/
import
*
as
fs
from
'
fs
'
import
*
as
os
from
'
os
'
import
*
as
path
from
'
path
'
import
fs
from
'
fs
'
import
os
from
'
os
'
import
path
from
'
path
'
import
*
as
readPkgUp
from
'
read-pkg-up
'
import
*
as
Raven
from
'
raven
'
import
*
as
qrImage
from
'
qr-image
'
import
readPkgUp
from
'
read-pkg-up
'
import
Raven
from
'
raven
'
import
qrImage
from
'
qr-image
'
import
{
log
}
from
'
brolog
'
import
{
...
...
src/contact.spec.ts
浏览文件 @
a6dc787e
#!/usr/bin/env ts-node
import
*
as
test
from
'
blue-tape
'
// import
* as
sinon from 'sinon'
import
test
from
'
blue-tape
'
// import sinon from 'sinon'
import
{
cloneClass
,
...
...
src/io-client.ts
浏览文件 @
a6dc787e
...
...
@@ -16,7 +16,7 @@
* limitations under the License.
*
*/
import
*
as
express
from
'
express
'
import
express
from
'
express
'
/**
* DO NOT use `require('../')` here!
* because it will casue a LOOP require ERROR
...
...
src/io.ts
浏览文件 @
a6dc787e
...
...
@@ -16,7 +16,7 @@
* limitations under the License.
*
*/
import
*
as
WebSocket
from
'
ws
'
import
WebSocket
from
'
ws
'
import
StateSwitch
from
'
state-switch
'
import
{
...
...
src/message.ts
浏览文件 @
a6dc787e
...
...
@@ -16,8 +16,8 @@
* limitations under the License.
* @ignore
*/
// import
* as
path from 'path'
// import
* as
cuid from 'cuid'
// import path from 'path'
// import cuid from 'cuid'
import
{
FileBox
,
...
...
src/misc.spec.ts
浏览文件 @
a6dc787e
...
...
@@ -18,12 +18,12 @@
*
*/
// tslint:disable:no-shadowed-variable
import
*
as
test
from
'
blue-tape
'
import
*
as
sinon
from
'
sinon
'
import
test
from
'
blue-tape
'
import
sinon
from
'
sinon
'
// const sinonTest = require('sinon-test')(sinon)
import
*
as
http
from
'
http
'
import
*
as
express
from
'
express
'
import
http
from
'
http
'
import
express
from
'
express
'
import
promiseRetry
=
require
(
'
promise-retry
'
)
...
...
src/misc.ts
浏览文件 @
a6dc787e
...
...
@@ -16,16 +16,16 @@
* limitations under the License.
*
*/
import
*
as
crypto
from
'
crypto
'
import
*
as
https
from
'
https
'
import
*
as
http
from
'
http
'
import
*
as
net
from
'
net
'
import
crypto
from
'
crypto
'
import
https
from
'
https
'
import
http
from
'
http
'
import
net
from
'
net
'
import
{
Readable
,
}
from
'
stream
'
import
*
as
url
from
'
url
'
import
url
from
'
url
'
import
*
as
cuid
from
'
cuid
'
import
cuid
from
'
cuid
'
import
promiseRetry
=
require
(
'
promise-retry
'
)
import
{
WrapOptions
}
from
'
retry
'
...
...
src/puppet-mock/puppet-mock.ts
浏览文件 @
a6dc787e
...
...
@@ -16,7 +16,7 @@
* limitations under the License.
*
*/
import
*
as
path
from
'
path
'
import
path
from
'
path
'
import
{
FileBox
,
...
...
src/puppet-padchat/puppet-padchat.ts
浏览文件 @
a6dc787e
...
...
@@ -17,9 +17,9 @@
*
*/
// import
* as
path from 'path'
// import
* as
fs from 'fs'
// import
* as
cuid from 'cuid'
// import path from 'path'
// import fs from 'fs'
// import cuid from 'cuid'
import
LRU
from
'
lru-cache
'
...
...
src/puppet-padchat/pure-function-helper.spec.ts
浏览文件 @
a6dc787e
#!/usr/bin/env ts-node
// tslint:disable:no-shadowed-variable
import
*
as
test
from
'
blue-tape
'
import
test
from
'
blue-tape
'
import
{
PadchatPureFunctionHelper
as
pfHelper
,
...
...
src/puppet-puppeteer/bridge.spec.ts
浏览文件 @
a6dc787e
...
...
@@ -17,10 +17,10 @@
* limitations under the License.
*
*/
import
*
as
test
from
'
blue-tape
'
import
test
from
'
blue-tape
'
// tslint:disable:no-shadowed-variable
// import
* as
sinon from 'sinon'
// import sinon from 'sinon'
// const sinonTest = require('sinon-test')(sinon)
import
{
...
...
src/puppet-puppeteer/bridge.ts
浏览文件 @
a6dc787e
...
...
@@ -17,8 +17,8 @@
*
*/
import
{
EventEmitter
}
from
'
events
'
import
*
as
fs
from
'
fs
'
import
*
as
path
from
'
path
'
import
fs
from
'
fs
'
import
path
from
'
path
'
import
{
Browser
,
...
...
src/puppet-puppeteer/event.spec.ts
浏览文件 @
a6dc787e
...
...
@@ -18,9 +18,9 @@
* limitations under the License.
*
*/
import
*
as
test
from
'
blue-tape
'
import
test
from
'
blue-tape
'
// tslint:disable:no-shadowed-variable
// import
* as
sinon from 'sinon'
// import sinon from 'sinon'
import
{
MemoryCard
,
...
...
src/puppet-puppeteer/firer.spec.ts
浏览文件 @
a6dc787e
...
...
@@ -23,8 +23,8 @@
*/
// tslint:disable:no-shadowed-variable
import
*
as
test
from
'
blue-tape
'
// import
* as
sinon from 'sinon'
import
test
from
'
blue-tape
'
// import sinon from 'sinon'
// const sinonTest = require('sinon-test')(sinon)
import
{
PuppetPuppeteer
}
from
'
./puppet-puppeteer
'
...
...
src/puppet-puppeteer/firer.ts
浏览文件 @
a6dc787e
...
...
@@ -19,7 +19,7 @@
/* tslint:disable:no-var-requires */
// const retryPromise = require('retry-promise').default
// import
* as
cuid from 'cuid'
// import cuid from 'cuid'
import
{
log
,
...
...
src/puppet-puppeteer/index.spec.ts
浏览文件 @
a6dc787e
...
...
@@ -18,8 +18,8 @@
*
*/
// tslint:disable:no-shadowed-variable
import
*
as
test
from
'
blue-tape
'
// import
* as
sinon from 'sinon'
import
test
from
'
blue-tape
'
// import sinon from 'sinon'
import
{
PuppetPuppeteer
,
...
...
src/puppet-puppeteer/puppet-puppeteer.spec.ts
浏览文件 @
a6dc787e
...
...
@@ -18,8 +18,8 @@
*
*/
// tslint:disable:no-shadowed-variable
import
*
as
test
from
'
blue-tape
'
import
*
as
sinon
from
'
sinon
'
import
test
from
'
blue-tape
'
import
sinon
from
'
sinon
'
const
sinonTest
=
require
(
'
sinon-test
'
)(
sinon
,
{
useFakeTimers
:
{
// https://github.com/sinonjs/lolex
shouldAdvanceTime
:
true
,
...
...
src/puppet-puppeteer/puppet-puppeteer.ts
浏览文件 @
a6dc787e
...
...
@@ -16,13 +16,13 @@
* limitations under the License.
*
*/
// import
* as
http from 'http'
import
*
as
path
from
'
path
'
import
*
as
nodeUrl
from
'
url
'
// import http from 'http'
import
path
from
'
path
'
import
nodeUrl
from
'
url
'
import
*
as
bl
from
'
bl
'
import
*
as
mime
from
'
mime
'
import
*
as
request
from
'
request
'
import
bl
from
'
bl
'
import
mime
from
'
mime
'
import
request
from
'
request
'
// import cloneClass from 'clone-class'
import
{
...
...
src/puppet-puppeteer/puppeteer-contact.spec.ts
浏览文件 @
a6dc787e
...
...
@@ -19,8 +19,8 @@
*
*/
// tslint:disable:no-shadowed-variable
import
*
as
test
from
'
blue-tape
'
import
*
as
sinon
from
'
sinon
'
import
test
from
'
blue-tape
'
import
sinon
from
'
sinon
'
import
{
cloneClass
,
...
...
src/puppet-puppeteer/puppeteer-friend-request.spec.ts
浏览文件 @
a6dc787e
...
...
@@ -18,8 +18,8 @@
*
*/
// tslint:disable:no-shadowed-variable
import
*
as
test
from
'
blue-tape
'
import
*
as
sinon
from
'
sinon
'
import
test
from
'
blue-tape
'
import
sinon
from
'
sinon
'
// const sinonTest = require('sinon-test')(sinon)
import
{
...
...
src/puppet-puppeteer/puppeteer-message.spec.ts
浏览文件 @
a6dc787e
...
...
@@ -18,8 +18,8 @@
*
*/
// tslint:disable:no-shadowed-variable
import
*
as
test
from
'
blue-tape
'
import
*
as
sinon
from
'
sinon
'
import
test
from
'
blue-tape
'
import
sinon
from
'
sinon
'
// const sinonTest = require('sinon-test')(sinon)
import
{
...
...
src/puppet-puppeteer/puppeteer-room.spec.ts
浏览文件 @
a6dc787e
...
...
@@ -19,8 +19,8 @@
*
*/
// tslint:disable:no-shadowed-variable
import
*
as
test
from
'
blue-tape
'
import
*
as
sinon
from
'
sinon
'
import
test
from
'
blue-tape
'
import
sinon
from
'
sinon
'
// import cloneClass from 'clone-class'
import
{
...
...
src/puppet-wechat4u/puppet-wechat4u.ts
浏览文件 @
a6dc787e
...
...
@@ -16,14 +16,14 @@
* limitations under the License.
*
*/
import
*
as
LRU
from
'
lru-cache
'
import
LRU
from
'
lru-cache
'
import
{
FileBox
,
}
from
'
file-box
'
// tslint:disable-next-line
import
*
as
Wechat4u
from
'
wechat4u
'
import
Wechat4u
from
'
wechat4u
'
import
{
Misc
}
from
'
../misc
'
...
...
src/puppet/puppet.spec.ts
浏览文件 @
a6dc787e
#!/usr/bin/env ts-node
// tslint:disable:no-shadowed-variable
import
*
as
test
from
'
blue-tape
'
import
test
from
'
blue-tape
'
import
{
FileBox
,
...
...
src/puppet/puppet.ts
浏览文件 @
a6dc787e
...
...
@@ -18,9 +18,9 @@
*/
import
{
EventEmitter
}
from
'
events
'
import
*
as
normalize
from
'
normalize-package-data
'
import
*
as
readPkgUp
from
'
read-pkg-up
'
import
*
as
LRU
from
'
lru-cache
'
import
normalize
from
'
normalize-package-data
'
import
readPkgUp
from
'
read-pkg-up
'
import
LRU
from
'
lru-cache
'
import
{
FileBox
,
...
...
src/room.ts
浏览文件 @
a6dc787e
...
...
@@ -17,7 +17,7 @@
*
* @ignore
*/
// import
* as
util from 'util'
// import util from 'util'
import
{
FileBox
,
...
...
src/wechaty.spec.ts
浏览文件 @
a6dc787e
...
...
@@ -19,10 +19,10 @@
*
*/
// tslint:disable:no-shadowed-variable
import
*
as
test
from
'
blue-tape
'
import
*
as
sinon
from
'
sinon
'
import
test
from
'
blue-tape
'
import
sinon
from
'
sinon
'
// import
* as
asyncHooks from 'async_hooks'
// import asyncHooks from 'async_hooks'
import
{
Wechaty
,
...
...
src/wechaty.ts
浏览文件 @
a6dc787e
...
...
@@ -17,9 +17,9 @@
*
* @ignore
*/
import
*
as
cuid
from
'
cuid
'
import
*
as
os
from
'
os
'
import
*
as
semver
from
'
semver
'
import
cuid
from
'
cuid
'
import
os
from
'
os
'
import
semver
from
'
semver
'
import
{
// Constructor,
...
...
tests/electron.spec.ts
浏览文件 @
a6dc787e
...
...
@@ -19,8 +19,8 @@
*
*/
// tslint:disable:no-shadowed-variable
import
*
as
test
from
'
blue-tape
'
// import
* as
sinon from 'sinon'
import
test
from
'
blue-tape
'
// import sinon from 'sinon'
// const sinonTest = require('sinon-test')(sinon)
test
(
'
Electron smoke testing
'
,
async
t
=>
{
...
...
tests/node.spec.ts
浏览文件 @
a6dc787e
...
...
@@ -19,8 +19,8 @@
*
*/
// tslint:disable:no-shadowed-variable
import
*
as
test
from
'
blue-tape
'
// import
* as
sinon from 'sinon'
import
test
from
'
blue-tape
'
// import sinon from 'sinon'
// const sinonTest = require('sinon-test')(sinon)
// import { log } from '../src/config'
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录