fix exporting and doc generation missing types
This commit is contained in:
Generated
+129
-1168
File diff suppressed because it is too large
Load Diff
+16
-10
@@ -1,8 +1,17 @@
|
|||||||
{
|
{
|
||||||
"name": "xrpio",
|
"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",
|
"description": "XRP arbitrary data writer and reader",
|
||||||
"main": "lib/src/xrpIO/ripple-bindings.js",
|
"main": "lib/src/index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"clean": "rm -rf gui/main.js gui/index.html gateway/main.js build lib docs",
|
"clean": "rm -rf gui/main.js gui/index.html gateway/main.js build lib docs",
|
||||||
"start": "npm run build && npm run launch",
|
"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",
|
"webpack-gateway": "webpack --config webpack.gateway.js --progress && cp build/gateway/main.js gateway",
|
||||||
"test": "npm run build && mocha --bail=true ./lib/test/*.js",
|
"test": "npm run build && mocha --bail=true ./lib/test/*.js",
|
||||||
"deploy": "node ./lib/Deploy.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",
|
"author": "nitowa",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
@@ -29,16 +38,13 @@
|
|||||||
"browserify-zlib": "^0.2.0",
|
"browserify-zlib": "^0.2.0",
|
||||||
"chai": "^4.3.4",
|
"chai": "^4.3.4",
|
||||||
"crypto-browserify": "^3.12.0",
|
"crypto-browserify": "^3.12.0",
|
||||||
"mocha": "^8.3.2",
|
"mocha": "^9.2.0",
|
||||||
"node-fetch": "^2.6.1",
|
"node-fetch": "^2.6.2",
|
||||||
"process": "^0.11.10",
|
"process": "^0.11.10",
|
||||||
"ts-loader": "^8.1.0",
|
"ts-loader": "^8.1.0",
|
||||||
"typedoc": "^0.22.11",
|
"typedoc": "^0.22.11",
|
||||||
"typedoc-plugin-markdown": "^3.11.12",
|
"typedoc-plugin-markdown": "^3.11.12",
|
||||||
"typescript": "^3.9.5",
|
"typescript": "^4.5.0",
|
||||||
"utf8": "^3.0.0",
|
"utf8": "^3.0.0"
|
||||||
"webpack": "^5.30.0",
|
|
||||||
"webpack-bundle-analyzer": "^4.4.0",
|
|
||||||
"webpack-cli": "^4.6.0"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,3 @@
|
|||||||
|
export * from './xrpIO/ripple-binding'
|
||||||
|
export * from './util/types'
|
||||||
|
export * from './util/protocol.constants'
|
||||||
+2
-2
@@ -5,7 +5,7 @@ export const TEST_CONFIG = {
|
|||||||
}
|
}
|
||||||
export const TEST_DATA = "test123123"
|
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', {
|
export const makeTestnetWallet = () : Promise<Wallet> => fetch('https://faucet.altnet.rippletest.net/accounts', {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
@@ -13,7 +13,7 @@ export const makeTestnetWallet = () : Promise<Wallet> => fetch('https://faucet.a
|
|||||||
'Accept': 'application/json',
|
'Accept': 'application/json',
|
||||||
'Content-Type': 'application/json'
|
'Content-Type': 'application/json'
|
||||||
},
|
},
|
||||||
}).then(raw => {
|
}).then((raw:any) => {
|
||||||
return raw.json().then(content => {
|
return raw.json().then(content => {
|
||||||
return({
|
return({
|
||||||
secret: content.account.secret,
|
secret: content.account.secret,
|
||||||
|
|||||||
Reference in New Issue
Block a user