Przeglądaj źródła

fix missing export

master
nitowa 2 lat temu
rodzic
commit
0291f7b85b
3 zmienionych plików z 9 dodań i 7 usunięć
  1. 1
    1
      package.json
  2. 4
    3
      src/index.ts
  3. 4
    3
      test/primitives.ts

+ 1
- 1
package.json Wyświetl plik

@@ -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 Wyświetl plik

@@ -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 Wyświetl plik

@@ -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
 })

Ładowanie…
Anuluj
Zapisz