fix exporting and doc generation missing types

This commit is contained in:
nitowa
2022-02-01 19:00:22 +01:00
parent 865e4f991e
commit b78a1ca6bc
4 changed files with 150 additions and 1180 deletions
+129 -1168
View File
File diff suppressed because it is too large Load Diff
+16 -10
View File
@@ -1,8 +1,17 @@
{
"name": "xrpio",
"version": "0.0.1",
"version": "0.0.2",
"repository": {
"type": "git",
"url": "https://gitea.nitowa.xyz/npm-packages/xrpio.git"
},
"bugs": {
"url": "https://gitea.nitowa.xyz/npm-packages/xrpio/issues",
"email": "peter.millauer@gmail.com"
},
"homepage": "https://gitea.nitowa.xyz/docs/xrpio",
"description": "XRP arbitrary data writer and reader",
"main": "lib/src/xrpIO/ripple-bindings.js",
"main": "lib/src/index.js",
"scripts": {
"clean": "rm -rf gui/main.js gui/index.html gateway/main.js build lib docs",
"start": "npm run build && npm run launch",
@@ -14,7 +23,7 @@
"webpack-gateway": "webpack --config webpack.gateway.js --progress && cp build/gateway/main.js gateway",
"test": "npm run build && mocha --bail=true ./lib/test/*.js",
"deploy": "node ./lib/Deploy.js",
"docs": "typedoc --out docs --readme ./README.md --plugin typedoc-plugin-markdown --hideBreadcrumbs ./src/xrpIO/ripple-binding.ts"
"docs": "typedoc --out docs --readme ./README.md --plugin typedoc-plugin-markdown --hideBreadcrumbs ./src/index.ts"
},
"author": "nitowa",
"license": "MIT",
@@ -29,16 +38,13 @@
"browserify-zlib": "^0.2.0",
"chai": "^4.3.4",
"crypto-browserify": "^3.12.0",
"mocha": "^8.3.2",
"node-fetch": "^2.6.1",
"mocha": "^9.2.0",
"node-fetch": "^2.6.2",
"process": "^0.11.10",
"ts-loader": "^8.1.0",
"typedoc": "^0.22.11",
"typedoc-plugin-markdown": "^3.11.12",
"typescript": "^3.9.5",
"utf8": "^3.0.0",
"webpack": "^5.30.0",
"webpack-bundle-analyzer": "^4.4.0",
"webpack-cli": "^4.6.0"
"typescript": "^4.5.0",
"utf8": "^3.0.0"
}
}
+3
View File
@@ -0,0 +1,3 @@
export * from './xrpIO/ripple-binding'
export * from './util/types'
export * from './util/protocol.constants'
+2 -2
View File
@@ -5,7 +5,7 @@ export const TEST_CONFIG = {
}
export const TEST_DATA = "test123123"
const fetch = require('node-fetch')
import fetch from 'node-fetch';
export const makeTestnetWallet = () : Promise<Wallet> => fetch('https://faucet.altnet.rippletest.net/accounts', {
method: 'POST',
@@ -13,7 +13,7 @@ export const makeTestnetWallet = () : Promise<Wallet> => fetch('https://faucet.a
'Accept': 'application/json',
'Content-Type': 'application/json'
},
}).then(raw => {
}).then((raw:any) => {
return raw.json().then(content => {
return({
secret: content.account.secret,