Skip to content

Commit

Permalink
Merge pull request #162 from Bitcoin-com/stage
Browse files Browse the repository at this point in the history
TS Updates
  • Loading branch information
christroutner committed Nov 25, 2019
2 parents 7f4ee4b + f86ffab commit 1a975b3
Show file tree
Hide file tree
Showing 5 changed files with 247 additions and 66 deletions.
2 changes: 1 addition & 1 deletion lib/Crypto.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as randomBytes from "randombytes"
import randomBytes from "randombytes"
const Bitcoin = require("bitcoincashjs-lib")

export class Crypto {
Expand Down
2 changes: 1 addition & 1 deletion lib/Mnemonic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as BIP39 from "bip39"
import * as bcl from "bitcoincashjs-lib"
// import * as Bitcoin from "bitcoincashjs-lib"
import { Buffer } from "buffer"
import * as randomBytes from "randombytes"
import randomBytes from "randombytes"
import * as wif from "wif"
import { Address } from "./Address"
// TODO: convert "bitcoincashjs-lib" require to import
Expand Down
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@
"url": "git+https://github.com/Bitcoin-com/bitbox-sdk.git"
},
"dependencies": {
"@types/bigi": "^1.4.2",
"@types/bip39": "^2.4.2",
"@types/randombytes": "^2.0.0",
"@types/socket.io": "^2.1.2",
"@types/socket.io-client": "^1.4.32",
"@types/wif": "^2.0.1",
"assert": "^1.4.1",
"axios": "0.19.0",
"bc-bip68": "^1.0.5",
Expand All @@ -57,16 +63,10 @@
},
"devDependencies": {
"@istanbuljs/nyc-config-typescript": "^0.1.3",
"@types/bigi": "^1.4.2",
"@types/bip39": "^2.4.2",
"@types/chai": "^4.1.7",
"@types/mocha": "^5.2.6",
"@types/node": "^10.11.7",
"@types/randombytes": "^2.0.0",
"@types/sinon": "^7.0.11",
"@types/socket.io": "^2.1.2",
"@types/socket.io-client": "^1.4.32",
"@types/wif": "^2.0.1",
"chai": "^4.1.2",
"coveralls": "^3.0.2",
"eslint": "^5.16.0",
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"downlevelIteration": true,
"moduleResolution": "node",
"lib": ["es2017"],
"sourceMap": true
"sourceMap": true,
"esModuleInterop": true
},
"include": ["./lib", "./test", "./test/unit/**/*.ts"],
"files": ["index.ts"]
Expand Down
Loading

0 comments on commit 1a975b3

Please sign in to comment.