浏览代码

fix missing export

master
nitowa 2 年前
父节点
当前提交
0291f7b85b
共有 3 个文件被更改,包括 9 次插入7 次删除
  1. 1
    1
      package.json
  2. 4
    3
      src/index.ts
  3. 4
    3
      test/primitives.ts

+ 1
- 1
package.json 查看文件

@@ -1,6 +1,6 @@
1 1
 {
2 2
   "name": "xrpio",
3
-  "version": "0.1.2",
3
+  "version": "0.1.3",
4 4
   "repository": {
5 5
     "type": "git",
6 6
     "url": "https://gitea.nitowa.xyz/npm-packages/xrpio.git"

+ 4
- 3
src/index.ts 查看文件

@@ -1,5 +1,6 @@
1
-export * from './xrpIO/ripple-binding'
1
+//export * from './xrpIO/ripple-binding'
2 2
 export * from './util/types'
3 3
 export * from './util/protocol.constants'
4
-export * from 'ripple-lib'
5
-export { RippleAPI } from 'ripple-lib'
4
+//export * from 'ripple-lib'
5
+//export { RippleAPI } from 'ripple-lib'
6
+export * from './xrpIO/xrpl-binding'

+ 4
- 3
test/primitives.ts 查看文件

@@ -89,12 +89,13 @@ describe('XRPIO', () => {
89 89
     it('treeRead XL', async function(){
90 90
 //        this.skip()  
91 91
         this.timeout(450000)
92
-        txHash = await api.treeRead([txHash])
93
-        expect(txHash).to.exist
94
-        expect(txHash).to.be.equal(htmlTxt)
92
+        const data = await api.treeRead([txHash])
93
+        expect(data).to.exist
94
+        expect(data).to.be.equal(htmlTxt)
95 95
     })
96 96
     
97 97
     it('print open handles', function(){
98 98
         wtf.dump()
99
+        console.log(txHash)
99 100
     })
100 101
 })

正在加载...
取消
保存