-
Notifications
You must be signed in to change notification settings - Fork 513
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use TypeScript project reference (#1002)
* Add *.tsbuildinfo to .gitignore * Bump versions of dependencies, nyc and yargs * Drop support for node 9 (EOL 2018-06-30) https://github.com/nodejs/Release * Add getTransaction snippet
- Loading branch information
Showing
10 changed files
with
1,126 additions
and
1,630 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,8 +2,8 @@ language: node_js | |
node_js: | ||
- 6 | ||
- 8 | ||
- 9 | ||
- 10 | ||
- 11 | ||
script: | ||
- yarn compile | ||
- yarn test | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import {RippleAPI} from '../../dist/npm' | ||
|
||
const api = new RippleAPI({ | ||
server: 'wss://s.altnet.rippletest.net:51233' | ||
}) | ||
|
||
getTransaction() | ||
|
||
async function getTransaction() { | ||
await api.connect() | ||
const ledger = await api.getLedger({includeTransactions: true}) | ||
console.log(ledger) | ||
const tx = await api.getTransaction(ledger.transactionHashes[0]) | ||
console.log(tx) | ||
console.log('deliveredAmount:', tx.outcome.deliveredAmount) | ||
process.exit(0) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"extends": "../tsconfig-base", | ||
"compilerOptions": { | ||
"outDir": "./dist", | ||
"rootDir": "./src" | ||
}, | ||
"references": [ | ||
{ "path": "../src" } | ||
], | ||
"include": [ | ||
"./src/**/*.ts" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"extends": "../tsconfig-base", | ||
"compilerOptions": { | ||
"outDir": "../dist/npm", | ||
"rootDir": ".", | ||
"composite": true | ||
}, | ||
"include": [ | ||
"**/*.ts" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"compilerOptions": { | ||
"pretty": true, | ||
"lib": [ | ||
"es2017" | ||
], | ||
"target": "es6", | ||
|
||
"declaration": true, | ||
"declarationMap": true /* Added 2019-04-13 */, | ||
"sourceMap": true, | ||
"noEmitOnError": true /* Added 2019-04-13 */, | ||
|
||
"strictNullChecks": false, | ||
"noImplicitAny": false, | ||
"noUnusedLocals": true, | ||
"noUnusedParameters": true, | ||
"removeComments": true, | ||
"strict": true /* Enable all strict type-checking options. */, | ||
"preserveConstEnums": false, | ||
|
||
"module": "commonjs", | ||
"moduleResolution": "node", | ||
"suppressImplicitAnyIndexErrors": false | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,8 @@ | ||
{ | ||
"compilerOptions": { | ||
"target": "es6", | ||
"lib": [ | ||
"es2017" | ||
], | ||
"outDir": "dist/npm", | ||
"rootDir": "src", | ||
"module": "commonjs", | ||
"moduleResolution": "node", | ||
"strictNullChecks": false, | ||
"noImplicitAny": false, | ||
"noUnusedLocals": true, | ||
"noUnusedParameters": true, | ||
"removeComments": true, | ||
"strict": true /* Enable all strict type-checking options. */, | ||
"preserveConstEnums": false, | ||
"suppressImplicitAnyIndexErrors": false, | ||
"declaration": true, | ||
"sourceMap": true | ||
}, | ||
"include": [ | ||
"src/**/*.ts" | ||
"files": [], | ||
"include": [], | ||
"references": [ | ||
{ "path": "./src" }, | ||
{ "path": "./snippets" } | ||
] | ||
} | ||
} |
Oops, something went wrong.