From 05ee451abc9d09485d1e848713bbe61743832697 Mon Sep 17 00:00:00 2001 From: Josh Stevens Date: Tue, 15 Oct 2019 12:03:22 +0100 Subject: [PATCH 001/124] docs: update readme to contain TS usage --- README.md | 57 ++++++++++++++++++++++++++----------------------------- 1 file changed, 27 insertions(+), 30 deletions(-) diff --git a/README.md b/README.md index b2ba7cb34cb..a4b6c2574a5 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,6 @@ This is the Ethereum [JavaScript API][docs] which connects to the [Generic JSON RPC](https://github.com/ethereum/wiki/wiki/JSON-RPC) spec. - You need to run a local or remote [Ethereum](https://www.ethereum.org/) node to use this library. Please read the [documentation][docs] for more. @@ -31,7 +30,7 @@ yarn add web3 ### Meteor -*Note*: works only in the Browser for now. (PR welcome). +_Note_: works only in the Browser for now. (PR welcome). ```bash meteor add ethereum:web3 @@ -39,7 +38,7 @@ meteor add ethereum:web3 ### In the Browser -Use the prebuild ``dist/web3.min.js``, or +Use the prebuild `dist/web3.min.js`, or build using the [web3.js][repo] repository: ```bash @@ -76,40 +75,39 @@ web3.setProvider(new Web3.providers.WebsocketProvider('ws://localhost:8546')); There you go, now you can use it: ```js -web3.eth.getAccounts() -.then(console.log); +web3.eth.getAccounts().then(console.log); ``` ### Usage with TypeScript -Type definitions are maintained at [DefinitelyTyped](https://github.com/DefinitelyTyped/DefinitelyTyped) by others. You can install them with: - -```bash -npm install --dev @types/web3.js -``` - -You might need to install type definitions for `bignumber.js` and `lodash` too. +We support types within the repo itself. Please open an issue here if you find any wrong types. -And then use `web3.js` as follows: +You can use `web3.js` as follows: ```typescript -import Web3 = require("web3"); // Note the special syntax! Copy this line when in doubt! -const web3 = new Web3("ws://localhost:8546"); +import Web3 from 'web3'; +const web3 = new Web3('ws://localhost:8546'); ``` -**Please note:** We do not support TypeScript ourselves. If you have any issue with TypeScript and `web3.js` do not create an issue here. Go over to DefinitelyTyped and do it there. +If you are using the types in a `commonjs` module like for example a node app you just have to enable `esModuleInterop` in your `tsconfig` compile option, also enable `allowSyntheticDefaultImports` for typesystem compatibility: + +```js +"compilerOptions": { + "allowSyntheticDefaultImports": true, + "esModuleInterop": true, + .... +``` ## Documentation Documentation can be found at [read the docs][docs]. - ## Building ### Requirements -* [Node.js](https://nodejs.org) -* [npm](https://www.npmjs.com/) +- [Node.js](https://nodejs.org) +- [npm](https://www.npmjs.com/) ```bash sudo apt-get update @@ -133,7 +131,6 @@ npm run-script build-all This will put all the browser build files into the `dist` folder. - ### Testing (mocha) ```bash @@ -142,22 +139,22 @@ npm test ### Contributing -- All contributions have to go into develop, or the 1.0 branch -- Please follow the code style of the other files, we use 4 spaces as tabs. +- All contributions have to go into develop, or the 1.0 branch +- Please follow the code style of the other files, we use 4 spaces as tabs. ### Community - - [Gitter](https://gitter.im/ethereum/web3.js?source=orgpage) - - [Forum](https://forum.ethereum.org/categories/ethereum-js) +- [Gitter](https://gitter.im/ethereum/web3.js?source=orgpage) +- [Forum](https://forum.ethereum.org/categories/ethereum-js) ### Similar libraries in other languages - - Python - [Web3.py](https://github.com/ethereum/web3.py) - - Haskell - [hs-web3](https://github.com/airalab/hs-web3) - - Java - [web3j](https://github.com/web3j/web3j) - - Scala - [web3j-scala](https://github.com/mslinn/web3j-scala) - - Purescript - [purescript-web3](https://github.com/f-o-a-m/purescript-web3) - - PHP - [web3.php](https://github.com/sc0Vu/web3.php) +- Python - [Web3.py](https://github.com/ethereum/web3.py) +- Haskell - [hs-web3](https://github.com/airalab/hs-web3) +- Java - [web3j](https://github.com/web3j/web3j) +- Scala - [web3j-scala](https://github.com/mslinn/web3j-scala) +- Purescript - [purescript-web3](https://github.com/f-o-a-m/purescript-web3) +- PHP - [web3.php](https://github.com/sc0Vu/web3.php) [repo]: https://github.com/ethereum/web3.js [docs]: http://web3js.readthedocs.io/ From 5e58e55dfa72a0d80465bc5f55e7f51874b010fc Mon Sep 17 00:00:00 2001 From: Josh Stevens Date: Tue, 15 Oct 2019 12:04:26 +0100 Subject: [PATCH 002/124] feat: learna dtslint --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index 73846d56d54..4700db1be8d 100644 --- a/package.json +++ b/package.json @@ -23,6 +23,7 @@ "lint": "jshint *.js packages", "test": "mocha --grep E2E --invert; jshint *.js packages", "test:unit": "istanbul cover _mocha -- -R spec --grep E2E --invert", + "dtslint": "lerna run dtslint", "test:e2e:ganache": "./scripts/e2e.ganache.sh", "test:e2e:geth:auto": "./scripts/e2e.geth.automine.sh", "test:e2e:geth:insta": "./scripts/e2e.geth.instamine.sh", From 9bf6bdd40cedf886cb510b69a84f992056e4d13b Mon Sep 17 00:00:00 2001 From: Josh Stevens Date: Tue, 15 Oct 2019 12:08:44 +0100 Subject: [PATCH 003/124] feat: types for `web3` module --- packages/web3/types/index.d.ts | 50 ++++++++++++++++++++++++++ packages/web3/types/tests/web3-test.ts | 49 +++++++++++++++++++++++++ packages/web3/types/tsconfig.json | 17 +++++++++ packages/web3/types/tslint.json | 11 ++++++ 4 files changed, 127 insertions(+) create mode 100644 packages/web3/types/index.d.ts create mode 100644 packages/web3/types/tests/web3-test.ts create mode 100644 packages/web3/types/tsconfig.json create mode 100644 packages/web3/types/tslint.json diff --git a/packages/web3/types/index.d.ts b/packages/web3/types/index.d.ts new file mode 100644 index 00000000000..93610852d31 --- /dev/null +++ b/packages/web3/types/index.d.ts @@ -0,0 +1,50 @@ +/* + This file is part of web3.js. + web3.js is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + web3.js is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + You should have received a copy of the GNU Lesser General Public License + along with web3.js. If not, see . +*/ +/** + * @file index.d.ts + * @author Josh Stevens , Samuel Furter + * @date 2018 + */ + +import {AbstractWeb3Module, Web3ModuleOptions} from 'web3-core'; +import {Utils} from 'web3-utils'; +import * as net from 'net'; +import {provider} from 'web3-providers'; +import {Eth} from 'web3-eth'; +import {Network} from 'web3-net'; +import {Shh} from 'web3-shh'; +import {Personal} from 'web3-eth-personal'; + +export default class Web3 extends AbstractWeb3Module { + constructor( + provider: provider, + net?: net.Socket, + options?: Web3ModuleOptions + ); + + static modules: Modules; + static readonly givenProvider: any; + + utils: Utils; + eth: Eth; + shh: Shh; + version: string; +} + +export interface Modules { + Eth: new (provider: provider, net: net.Socket) => Eth; + Net: new (provider: provider, net: net.Socket) => Network; + Personal: new (provider: provider, net: net.Socket) => Personal; + Shh: new (provider: provider, net: net.Socket) => Shh; +} diff --git a/packages/web3/types/tests/web3-test.ts b/packages/web3/types/tests/web3-test.ts new file mode 100644 index 00000000000..0bb49622a17 --- /dev/null +++ b/packages/web3/types/tests/web3-test.ts @@ -0,0 +1,49 @@ +/* + This file is part of web3.js. + web3.js is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + web3.js is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + You should have received a copy of the GNU Lesser General Public License + along with web3.js. If not, see . +*/ +/** + * @file web3-test.ts + * @author Josh Stevens , Samuel Furter + * @date 2018 + */ + +import Web3 from 'web3'; + +// $ExpectType Modules +Web3.modules; + +// $ExpectType any +Web3.givenProvider; + +// $ExpectType Providers +Web3.providers; + +const web3 = new Web3('https://localhost:5000/'); + +// $ExpectType HttpProvider | IpcProvider | WebsocketProvider | Web3EthereumProvider | CustomProvider +web3.currentProvider; + +// $ExpectType Utils +web3.utils; + +// $ExpectType string +web3.version; + +// $ExpectType Eth +web3.eth; + +// $ExpectType Shh +web3.shh; + +// $ExpectType BatchRequest +new web3.BatchRequest(); diff --git a/packages/web3/types/tsconfig.json b/packages/web3/types/tsconfig.json new file mode 100644 index 00000000000..b82402012fa --- /dev/null +++ b/packages/web3/types/tsconfig.json @@ -0,0 +1,17 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": ["es6"], + "target": "es6", + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "strictFunctionTypes": true, + "noEmit": true, + "allowSyntheticDefaultImports": false, + "baseUrl": ".", + "paths": { + "web3": ["."] + } + } +} diff --git a/packages/web3/types/tslint.json b/packages/web3/types/tslint.json new file mode 100644 index 00000000000..871d605704b --- /dev/null +++ b/packages/web3/types/tslint.json @@ -0,0 +1,11 @@ +{ + "extends": "dtslint/dtslint.json", + "rules": { + "semicolon": false, + "no-import-default-of-export-equals": false, + "file-name-casing": [true, "kebab-case"], + "whitespace": false, + "no-unnecessary-class": false, + "unified-signatures": false + } +} From e62daffd187817643b11e4715c888d89c1c3e3c5 Mon Sep 17 00:00:00 2001 From: Josh Stevens Date: Tue, 15 Oct 2019 12:08:57 +0100 Subject: [PATCH 004/124] feat: `web3` module install dtslint --- packages/web3/package.json | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/web3/package.json b/packages/web3/package.json index 1fe2c2ea0c1..b458b9e9ff2 100644 --- a/packages/web3/package.json +++ b/packages/web3/package.json @@ -44,6 +44,7 @@ } ], "dependencies": { + "@types/node": "^12.6.1", "web3-bzz": "1.2.1", "web3-core": "1.2.1", "web3-eth": "1.2.1", @@ -51,5 +52,9 @@ "web3-net": "1.2.1", "web3-shh": "1.2.1", "web3-utils": "1.2.1" + }, + "devDependencies": { + "definitelytyped-header-parser": "^1.0.1", + "dtslint": "0.4.2" } } From 321fc591106faa25c499971e07317b05510ade35 Mon Sep 17 00:00:00 2001 From: Josh Stevens Date: Tue, 15 Oct 2019 12:09:09 +0100 Subject: [PATCH 005/124] docs: readme web3 module types --- packages/web3/README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packages/web3/README.md b/packages/web3/README.md index c2eb8d07df9..7efbf2a1860 100644 --- a/packages/web3/README.md +++ b/packages/web3/README.md @@ -11,3 +11,10 @@ Please read the main [readme](https://github.com/ethereum/web3.js) and [document ```bash npm install web3 ``` + +## Types + +All the typescript typings are placed in the types folder. + +[docs]: http://web3js.readthedocs.io/en/1.0/ +[repo]: https://github.com/ethereum/web3.js From 073d11226b6666a400ef5233be7419e644d83d43 Mon Sep 17 00:00:00 2001 From: Josh Stevens Date: Tue, 15 Oct 2019 12:09:45 +0100 Subject: [PATCH 006/124] feat: `web3-core` types --- packages/web3-core/types/index.d.ts | 250 ++++++++++++++++++ .../types/tests/abstract-web3-module-test.ts | 82 ++++++ packages/web3-core/types/tsconfig.json | 17 ++ packages/web3-core/types/tslint.json | 10 + 4 files changed, 359 insertions(+) create mode 100644 packages/web3-core/types/index.d.ts create mode 100644 packages/web3-core/types/tests/abstract-web3-module-test.ts create mode 100644 packages/web3-core/types/tsconfig.json create mode 100644 packages/web3-core/types/tslint.json diff --git a/packages/web3-core/types/index.d.ts b/packages/web3-core/types/index.d.ts new file mode 100644 index 00000000000..c19feebbdf1 --- /dev/null +++ b/packages/web3-core/types/index.d.ts @@ -0,0 +1,250 @@ +/* + This file is part of web3.js. + web3.js is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + web3.js is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + You should have received a copy of the GNU Lesser General Public License + along with web3.js. If not, see . +*/ +/** + * @file index.d.ts + * @author Josh Stevens + * @author Prince Sinha + * @date 2018 + */ + +import * as net from 'net'; +import BN = require('bn.js'); +import {AbstractMethodFactory} from 'web3-core-method'; +import { + BatchRequest, + Web3EthereumProvider, + HttpProvider, + HttpProviderOptions, + IpcProvider, + provider, + WebsocketProvider, + CustomProvider, + WebsocketProviderOptions +} from 'web3-providers'; + +export class AbstractWeb3Module { + constructor( + provider: provider, + options?: Web3ModuleOptions, + methodFactory?: AbstractMethodFactory, + net?: net.Socket | null + ); + + BatchRequest: new () => BatchRequest; + defaultBlock: string | number; + transactionBlockTimeout: number; + transactionConfirmationBlocks: number; + transactionPollingTimeout: number; + defaultGasPrice: string; + defaultGas: number; + static readonly providers: Providers; + defaultAccount: string | null; + readonly currentProvider: Web3EthereumProvider | HttpProvider | IpcProvider | WebsocketProvider | CustomProvider; + readonly givenProvider: any; + + setProvider(provider: provider, net?: net.Socket): boolean; + + isSameProvider(provider: provider): boolean; + + clearSubscriptions(subscriptionType: string): Promise; +} + +export interface TransactionSigner { + sign(transactionConfig: TransactionConfig): Promise; +} + +export interface SignedTransaction { + messageHash?: string; + r: string; + s: string; + v: string; + rawTransaction?: string; + transactionHash?: string; +} + +export interface Web3ModuleOptions { + defaultAccount?: string; + defaultBlock?: string | number; + transactionBlockTimeout?: number; + transactionConfirmationBlocks?: number; + transactionPollingTimeout?: number; + defaultGasPrice?: string; + defaultGas?: number; + transactionSigner?: TransactionSigner; +} + +export interface Providers { + HttpProvider: new (host: string, options?: HttpProviderOptions) => HttpProvider; + WebsocketProvider: new (host: string, options?: WebsocketProviderOptions) => WebsocketProvider; + IpcProvider: new (path: string, net: any) => IpcProvider; +} + +export interface PromiEvent extends Promise { + once(type: 'transactionHash', handler: (receipt: string) => void): PromiEvent; + + once(type: 'receipt', handler: (receipt: TransactionReceipt) => void): PromiEvent; + + once(type: 'confirmation', handler: (confNumber: number, receipt: TransactionReceipt) => void): PromiEvent; + + once(type: 'error', handler: (error: Error) => void): PromiEvent; + + once( + type: 'error' | 'confirmation' | 'receipt' | 'transactionHash', + handler: (error: Error | TransactionReceipt | string) => void + ): PromiEvent; + + on(type: 'transactionHash', handler: (receipt: string) => void): PromiEvent; + + on(type: 'receipt', handler: (receipt: TransactionReceipt) => void): PromiEvent; + + on(type: 'confirmation', handler: (confNumber: number, receipt: TransactionReceipt) => void): PromiEvent; + + on(type: 'error', handler: (error: Error) => void): PromiEvent; + + on( + type: 'error' | 'confirmation' | 'receipt' | 'transactionHash', + handler: (error: Error | TransactionReceipt | string) => void + ): PromiEvent; +} + +export interface Transaction { + hash: string; + nonce: number; + blockHash: string | null; + blockNumber: number | null; + transactionIndex: number | null; + from: string; + to: string | null; + value: string; + gasPrice: string; + gas: number; + input: string; +} + +export interface TransactionConfig { + from?: string | number; + to?: string; + value?: number | string | BN; + gas?: number | string; + gasPrice?: number | string | BN; + data?: string; + nonce?: number; + chainId?: number; +} + +export interface RLPEncodedTransaction { + raw: string; + tx: { + nonce: string; + gasPrice: string; + gas: string; + to: string; + value: string; + input: string; + r: string; + s: string; + v: string; + hash: string; + } +} + +export interface TransactionReceipt { + status: boolean; + transactionHash: string; + transactionIndex: number; + blockHash: string; + blockNumber: number; + from: string; + to: string; + contractAddress?: string; + cumulativeGasUsed: number; + gasUsed: number; + logs: Log[]; + logsBloom: string; + events?: { + [eventName: string]: EventLog; + }; +} + +export interface EventLog { + event: string; + address: string; + returnValues: any; + logIndex: number; + transactionIndex: number; + transactionHash: string; + blockHash: string; + blockNumber: number; + raw?: {data: string; topics: any[]}; +} + +export interface Log { + address: string; + data: string; + topics: Array; + logIndex: number; + transactionIndex: number; + transactionHash: string; + blockHash: string; + blockNumber: number; +} + +export interface TxPoolContent { + pending: TxPool; + queued: TxPool; +} + +export interface TxPoolInspect { + pending: TxPool; + queued: TxPool; +} + +export interface TxPool { + [address: string]: { + [nonce: number]: string[] | Transaction[]; + }; +} + +export interface TxPoolStatus { + pending: number; + queued: number; +} + +export interface NodeInfo { + enode: string; + id: string; + ip: string; + listenAddr: string; + name: string; + ports: { + discovery: string | number; + listener: string | number; + }; + protocols: any // Any because it's not documented what each protocol (eth, shh etc.) is defining here +} + +export interface PeerInfo { + caps: string[]; + id: string; + name: string; + network: { + localAddress: string; + remoteAddress: string; + }; + protocols: any; // Any because it's not documented what each protocol (eth, shh etc.) is defining here +} + +export interface TransactionSigner { + sign(txObject: TransactionConfig): Promise +} diff --git a/packages/web3-core/types/tests/abstract-web3-module-test.ts b/packages/web3-core/types/tests/abstract-web3-module-test.ts new file mode 100644 index 00000000000..5ce20d0ab6c --- /dev/null +++ b/packages/web3-core/types/tests/abstract-web3-module-test.ts @@ -0,0 +1,82 @@ +/* + This file is part of web3.js. + web3.js is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + web3.js is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + You should have received a copy of the GNU Lesser General Public License + along with web3.js. If not, see . +*/ +/** + * @file abstract-web3-module-test.ts + * @author Josh Stevens + * @date 2018 + */ +import * as net from 'net'; +import {HttpProvider, IpcProvider, WebsocketProvider} from 'web3-providers'; +import {AbstractWeb3Module, Web3ModuleOptions} from 'web3-core'; + +const options = { + timeout: 20000, + headers: [ + { + name: 'Access-Control-Allow-Origin', + value: '*' + } + ] +}; +const httpProvider = new HttpProvider('http://localhost:8545', options); +const ipcProvider = new IpcProvider('/Users/myuser/Library/Ethereum/geth.ipc', new net.Server()); +const abstractWeb3Module = new AbstractWeb3Module(httpProvider); + +// $ExpectType BatchRequest +new abstractWeb3Module.BatchRequest(); + +// $ExpectType string | number +abstractWeb3Module.defaultBlock; + +// $ExpectType number +abstractWeb3Module.transactionBlockTimeout; + +// $ExpectType number +abstractWeb3Module.transactionConfirmationBlocks; + +// $ExpectType number +abstractWeb3Module.transactionPollingTimeout; + +// $ExpectType string +abstractWeb3Module.defaultGasPrice; + +// $ExpectType number +abstractWeb3Module.defaultGas; + +// $ExpectType Providers +AbstractWeb3Module.providers; + +// $ExpectType any +abstractWeb3Module.givenProvider; + +// $ExpectType string | null +abstractWeb3Module.defaultAccount; + +// $ExpectType HttpProvider | IpcProvider | WebsocketProvider | Web3EthereumProvider | CustomProvider +abstractWeb3Module.currentProvider; + +// $ExpectType boolean +abstractWeb3Module.setProvider(httpProvider); + +// $ExpectType boolean +abstractWeb3Module.setProvider('http://localhost:8545'); + +// $ExpectType boolean +abstractWeb3Module.isSameProvider('http://localhost:8545'); + +// $ExpectType boolean +abstractWeb3Module.isSameProvider(httpProvider); + +// $ExpectType Promise +abstractWeb3Module.clearSubscriptions('eth_unsubscribe'); diff --git a/packages/web3-core/types/tsconfig.json b/packages/web3-core/types/tsconfig.json new file mode 100644 index 00000000000..9db422ea462 --- /dev/null +++ b/packages/web3-core/types/tsconfig.json @@ -0,0 +1,17 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": ["es6"], + "target": "es6", + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "strictFunctionTypes": true, + "noEmit": true, + "allowSyntheticDefaultImports": false, + "baseUrl": ".", + "paths": { + "web3-core": ["."] + } + } +} diff --git a/packages/web3-core/types/tslint.json b/packages/web3-core/types/tslint.json new file mode 100644 index 00000000000..6429b0c446e --- /dev/null +++ b/packages/web3-core/types/tslint.json @@ -0,0 +1,10 @@ +{ + "extends": "dtslint/dtslint.json", + "rules": { + "semicolon": false, + "no-import-default-of-export-equals": false, + "file-name-casing": [true, "kebab-case"], + "whitespace": false, + "no-unnecessary-class": false + } +} From 943fe2945e48c8dab877e165859c4709003b2fed Mon Sep 17 00:00:00 2001 From: Josh Stevens Date: Tue, 15 Oct 2019 12:10:03 +0100 Subject: [PATCH 007/124] docs: update readme for `web3-core` for types --- packages/web3-core/README.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/packages/web3-core/README.md b/packages/web3-core/README.md index e559912882d..7163f00c1e5 100644 --- a/packages/web3-core/README.md +++ b/packages/web3-core/README.md @@ -13,7 +13,6 @@ Please read the [documentation][docs] for more. npm install web3-core ``` - ## Usage ```js @@ -24,7 +23,7 @@ var CoolLib = function CoolLib() { // sets _requestmanager and adds basic functions core.packageInit(this, arguments); - + }; @@ -36,8 +35,12 @@ CoolLib.extend(); ... ``` - [docs]: http://web3js.readthedocs.io/en/1.0/ [repo]: https://github.com/ethereum/web3.js +## Types +All the typescript typings are placed in the types folder. + +[docs]: http://web3js.readthedocs.io/en/1.0/ +[repo]: https://github.com/ethereum/web3.js From 7cfd476f48ff295700373a3287c387dbb9f2d877 Mon Sep 17 00:00:00 2001 From: Josh Stevens Date: Tue, 15 Oct 2019 12:10:16 +0100 Subject: [PATCH 008/124] feat: install type dependencies for `web3-core` --- packages/web3-core/package.json | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/web3-core/package.json b/packages/web3-core/package.json index 01017fbc8d9..f055e650110 100644 --- a/packages/web3-core/package.json +++ b/packages/web3-core/package.json @@ -9,9 +9,15 @@ }, "main": "src/index.js", "dependencies": { + "@types/bn.js": "^4.11.4", + "@types/node": "^12.6.1", "web3-core-helpers": "1.2.1", "web3-core-method": "1.2.1", "web3-core-requestmanager": "1.2.1", "web3-utils": "1.2.1" + }, + "devDependencies": { + "definitelytyped-header-parser": "^1.0.1", + "dtslint": "0.4.2" } } From ba0849521fa4f4874a4a52e6fda6eebd12408014 Mon Sep 17 00:00:00 2001 From: Josh Stevens Date: Tue, 15 Oct 2019 12:12:32 +0100 Subject: [PATCH 009/124] feat: `web3-core-helper` types --- packages/web3-core-helpers/types/index.d.ts | 56 +++++++++++++++ .../types/tests/formatters-test.ts | 72 +++++++++++++++++++ .../web3-core-helpers/types/tsconfig.json | 17 +++++ packages/web3-core-helpers/types/tslint.json | 10 +++ 4 files changed, 155 insertions(+) create mode 100644 packages/web3-core-helpers/types/index.d.ts create mode 100644 packages/web3-core-helpers/types/tests/formatters-test.ts create mode 100644 packages/web3-core-helpers/types/tsconfig.json create mode 100644 packages/web3-core-helpers/types/tslint.json diff --git a/packages/web3-core-helpers/types/index.d.ts b/packages/web3-core-helpers/types/index.d.ts new file mode 100644 index 00000000000..d941fb0f1b7 --- /dev/null +++ b/packages/web3-core-helpers/types/index.d.ts @@ -0,0 +1,56 @@ +/* + This file is part of web3.js. + web3.js is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + web3.js is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + You should have received a copy of the GNU Lesser General Public License + along with web3.js. If not, see . +*/ +/** + * @file index.d.ts + * @author Samuel Furter + * @date 2018 + */ + +import {AbstractWeb3Module} from 'web3-core'; + +export class formatters { + static outputBigNumberFormatter(number: number): number; + + static inputSignFormatter(data: string): string; + + static inputAddressFormatter(address: string): string; + + static isPredefinedBlockNumber(blockNumber: string): boolean; + + static inputDefaultBlockNumberFormatter(blockNumber: string, moduleInstance: AbstractWeb3Module): string; + + static inputBlockNumberFormatter(blockNumber: string | number): string | number; + + static outputBlockFormatter(block: object): object; // TODO: Create Block interface + + static txInputFormatter(txObject: object): object; + + static inputCallFormatter(txObject: object): object; + + static inputTransactionFormatter(txObject: object): object; + + static outputTransactionFormatter(receipt: object): object; + + static outputTransactionReceiptFormatter(receipt: object): object; + + static inputLogFormatter(log: object): object; + + static outputLogFormatter(log: object): object; + + static inputPostFormatter(post: object): object; // TODO: Create Post interface + + static outputPostFormatter(post: object): object; // TODO: Create Post interface + + static outputSyncingFormatter(result: object): object; // TODO: Create SyncLog interface +} diff --git a/packages/web3-core-helpers/types/tests/formatters-test.ts b/packages/web3-core-helpers/types/tests/formatters-test.ts new file mode 100644 index 00000000000..8e695470b31 --- /dev/null +++ b/packages/web3-core-helpers/types/tests/formatters-test.ts @@ -0,0 +1,72 @@ +/* + This file is part of web3.js. + web3.js is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + web3.js is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + You should have received a copy of the GNU Lesser General Public License + along with web3.js. If not, see . +*/ +/** + * @file formatters-test.ts + * @author Samuel Furter + * @date 2018 + */ + +import {AbstractWeb3Module} from 'web3-core'; +import {formatters} from 'web3-core-helpers'; + +// $ExpectType number +formatters.outputBigNumberFormatter(100); + +// $ExpectType string +formatters.inputSignFormatter('0x0'); + +// $ExpectType string +formatters.inputAddressFormatter('0x0'); + +// $ExpectType boolean +formatters.isPredefinedBlockNumber('latest'); + +// $ExpectType string +formatters.inputDefaultBlockNumberFormatter('0x0', new AbstractWeb3Module('http://localhost:8545')); + +// $ExpectType string | number +formatters.inputBlockNumberFormatter('0x0'); + +// $ExpectType object +formatters.outputBlockFormatter({}); + +// $ExpectType object +formatters.txInputFormatter({}); + +// $ExpectType object +formatters.inputCallFormatter({}); + +// $ExpectType object +formatters.inputTransactionFormatter({}); + +// $ExpectType object +formatters.outputTransactionFormatter({}); + +// $ExpectType object +formatters.outputTransactionReceiptFormatter({}); + +// $ExpectType object +formatters.inputLogFormatter({}); + +// $ExpectType object +formatters.outputLogFormatter({}); + +// $ExpectType object +formatters.inputPostFormatter({}); + +// $ExpectType object +formatters.outputPostFormatter({}); + +// $ExpectType object +formatters.outputSyncingFormatter({}); diff --git a/packages/web3-core-helpers/types/tsconfig.json b/packages/web3-core-helpers/types/tsconfig.json new file mode 100644 index 00000000000..fd847a8cabb --- /dev/null +++ b/packages/web3-core-helpers/types/tsconfig.json @@ -0,0 +1,17 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": ["es6"], + "target": "es6", + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "strictFunctionTypes": true, + "noEmit": true, + "allowSyntheticDefaultImports": false, + "baseUrl": ".", + "paths": { + "web3-core-helpers": ["."] + } + } +} diff --git a/packages/web3-core-helpers/types/tslint.json b/packages/web3-core-helpers/types/tslint.json new file mode 100644 index 00000000000..6429b0c446e --- /dev/null +++ b/packages/web3-core-helpers/types/tslint.json @@ -0,0 +1,10 @@ +{ + "extends": "dtslint/dtslint.json", + "rules": { + "semicolon": false, + "no-import-default-of-export-equals": false, + "file-name-casing": [true, "kebab-case"], + "whitespace": false, + "no-unnecessary-class": false + } +} From a49b021c4e1c81597be497e18e6e8afa9b1535a4 Mon Sep 17 00:00:00 2001 From: Josh Stevens Date: Tue, 15 Oct 2019 12:12:50 +0100 Subject: [PATCH 010/124] feat: install type dependency for `web3-core-helpers` --- packages/web3-core-helpers/package.json | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/web3-core-helpers/package.json b/packages/web3-core-helpers/package.json index 263e3d58529..e16f6065bad 100644 --- a/packages/web3-core-helpers/package.json +++ b/packages/web3-core-helpers/package.json @@ -9,8 +9,13 @@ }, "main": "src/index.js", "dependencies": { + "@types/node": "^12.6.1", "underscore": "1.9.1", "web3-eth-iban": "1.2.1", "web3-utils": "1.2.1" + }, + "devDependencies": { + "definitelytyped-header-parser": "^1.0.1", + "dtslint": "0.4.2" } } From 44dc1e900cb6d61d946a7796a141c29ef9381325 Mon Sep 17 00:00:00 2001 From: Josh Stevens Date: Tue, 15 Oct 2019 12:12:58 +0100 Subject: [PATCH 011/124] docs: update readme for typings --- packages/web3-core-helpers/README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/web3-core-helpers/README.md b/packages/web3-core-helpers/README.md index 0d973edff3d..d5a251ce88c 100644 --- a/packages/web3-core-helpers/README.md +++ b/packages/web3-core-helpers/README.md @@ -24,8 +24,9 @@ helpers.errors; ... ``` +## Types + +All the typescript typings are placed in the types folder. [docs]: http://web3js.readthedocs.io/en/1.0/ [repo]: https://github.com/ethereum/web3.js - - From 02299850842fba153a22c6fd02d3e5753c9c62a2 Mon Sep 17 00:00:00 2001 From: Josh Stevens Date: Tue, 15 Oct 2019 12:13:47 +0100 Subject: [PATCH 012/124] fix: remove @types/node from `web3-core-helpers` --- packages/web3-core-helpers/package.json | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/web3-core-helpers/package.json b/packages/web3-core-helpers/package.json index e16f6065bad..80e8feef4e6 100644 --- a/packages/web3-core-helpers/package.json +++ b/packages/web3-core-helpers/package.json @@ -9,7 +9,6 @@ }, "main": "src/index.js", "dependencies": { - "@types/node": "^12.6.1", "underscore": "1.9.1", "web3-eth-iban": "1.2.1", "web3-utils": "1.2.1" From f6d7888f30cc472d42ca20c671c8f43a696275e2 Mon Sep 17 00:00:00 2001 From: Josh Stevens Date: Tue, 15 Oct 2019 12:14:28 +0100 Subject: [PATCH 013/124] feat: `web3-core-method` types --- packages/web3-core-method/types/index.d.ts | 64 +++++++++++++++++ .../types/tests/abstract-method-tests.ts | 68 +++++++++++++++++++ packages/web3-core-method/types/tsconfig.json | 17 +++++ packages/web3-core-method/types/tslint.json | 10 +++ 4 files changed, 159 insertions(+) create mode 100644 packages/web3-core-method/types/index.d.ts create mode 100644 packages/web3-core-method/types/tests/abstract-method-tests.ts create mode 100644 packages/web3-core-method/types/tsconfig.json create mode 100644 packages/web3-core-method/types/tslint.json diff --git a/packages/web3-core-method/types/index.d.ts b/packages/web3-core-method/types/index.d.ts new file mode 100644 index 00000000000..5dc2901a814 --- /dev/null +++ b/packages/web3-core-method/types/index.d.ts @@ -0,0 +1,64 @@ +/* + This file is part of web3.js. + web3.js is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + web3.js is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + You should have received a copy of the GNU Lesser General Public License + along with web3.js. If not, see . +*/ +/** + * @file index.d.ts + * @author Samuel Furter + * @date 2018 + */ + +import {Utils} from 'web3-utils'; +import {AbstractWeb3Module, PromiEvent} from 'web3-core'; +import {formatters} from 'web3-core-helpers'; + +export class AbstractMethod { + constructor( + rpcMethod: string, + parametersAmount: number, + utils: Utils, + formatters: formatters, + moduleInstance: AbstractWeb3Module + ); + + utils: Utils; + formatters: formatters; + promiEvent: PromiEvent; + rpcMethod: string; + parametersAmount: number; + parameters: any[]; + + getArguments(): any; + + setArguments(args: any[]): void; + + isHash(parameter: string): boolean; + + hasWallets(): boolean; + + callback(error: string | Error, response: any): void; + + beforeExecution(moduleInstance: AbstractWeb3Module): void; + + afterExecution(response: any): any; + + execute(): Promise | PromiEvent | string; +} + +export class AbstractMethodFactory { + constructor(utils: Utils, formatters: formatters); + + methods: null | object; + hasMethod: boolean; + + createMethod(name: string, moduleInstance: AbstractWeb3Module): AbstractMethod; +} diff --git a/packages/web3-core-method/types/tests/abstract-method-tests.ts b/packages/web3-core-method/types/tests/abstract-method-tests.ts new file mode 100644 index 00000000000..e045599b72d --- /dev/null +++ b/packages/web3-core-method/types/tests/abstract-method-tests.ts @@ -0,0 +1,68 @@ +/* + This file is part of web3.js. + web3.js is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + web3.js is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + You should have received a copy of the GNU Lesser General Public License + along with web3.js. If not, see . +*/ +/** + * @file abstract-web3-module-test.ts + * @author Josh Stevens + * @date 2018 + */ + +import {AbstractMethod} from 'web3-core-method'; +import * as Utils from 'web3-utils'; +import {formatters} from 'web3-core-helpers'; +import {AbstractWeb3Module} from 'web3-core'; + +const abstractWeb3Module = new AbstractWeb3Module('http://localhost:8545'); +const abstractMethod = new AbstractMethod('rpc_method', 1, Utils, formatters, abstractWeb3Module); + +// $ExpectType Utils +abstractMethod.utils; + +// $ExpectType formatters +abstractMethod.formatters; + +// $ExpectType PromiEvent +abstractMethod.promiEvent; + +// $ExpectType string +abstractMethod.rpcMethod; + +// $ExpectType number +abstractMethod.parametersAmount; + +// $ExpectType any[] +abstractMethod.parameters; + +// $ExpectType any +abstractMethod.getArguments(); + +// $ExpectType boolean +abstractMethod.isHash('string'); + +// $ExpectType void +abstractMethod.setArguments([]); + +// $ExpectType boolean +abstractMethod.hasWallets(); + +// $ExpectType void +abstractMethod.callback('error', 'response'); + +// $ExpectType void +abstractMethod.beforeExecution(abstractWeb3Module); + +// $ExpectType any +abstractMethod.afterExecution('response'); + +// $ExpectType string | PromiEvent | Promise +abstractMethod.execute(); diff --git a/packages/web3-core-method/types/tsconfig.json b/packages/web3-core-method/types/tsconfig.json new file mode 100644 index 00000000000..17889c4b6ce --- /dev/null +++ b/packages/web3-core-method/types/tsconfig.json @@ -0,0 +1,17 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": ["es6"], + "target": "es6", + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "strictFunctionTypes": true, + "noEmit": true, + "allowSyntheticDefaultImports": false, + "baseUrl": ".", + "paths": { + "web3-core-method": ["."] + } + } +} diff --git a/packages/web3-core-method/types/tslint.json b/packages/web3-core-method/types/tslint.json new file mode 100644 index 00000000000..6429b0c446e --- /dev/null +++ b/packages/web3-core-method/types/tslint.json @@ -0,0 +1,10 @@ +{ + "extends": "dtslint/dtslint.json", + "rules": { + "semicolon": false, + "no-import-default-of-export-equals": false, + "file-name-casing": [true, "kebab-case"], + "whitespace": false, + "no-unnecessary-class": false + } +} From 64b74ecc38d927710f05292e9eac9a43b7cd6262 Mon Sep 17 00:00:00 2001 From: Josh Stevens Date: Tue, 15 Oct 2019 12:15:28 +0100 Subject: [PATCH 014/124] feat: install type dependencies for `web3-core-method` --- packages/web3-core-method/package.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/web3-core-method/package.json b/packages/web3-core-method/package.json index 5e2f63f9c2d..dfb38881e48 100644 --- a/packages/web3-core-method/package.json +++ b/packages/web3-core-method/package.json @@ -14,5 +14,9 @@ "web3-core-promievent": "1.2.1", "web3-core-subscriptions": "1.2.1", "web3-utils": "1.2.1" + }, + "devDependencies": { + "definitelytyped-header-parser": "^1.0.1", + "dtslint": "0.4.2" } } From e1d37acac8b495a00195811c3e977ae1a82cc524 Mon Sep 17 00:00:00 2001 From: Josh Stevens Date: Tue, 15 Oct 2019 12:15:42 +0100 Subject: [PATCH 015/124] docs: update types for `web3-core-method` in readme --- packages/web3-core-method/README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/web3-core-method/README.md b/packages/web3-core-method/README.md index 01c5dd4e761..ef4a8899061 100644 --- a/packages/web3-core-method/README.md +++ b/packages/web3-core-method/README.md @@ -24,7 +24,6 @@ npm run-script build-all Then include `dist/web3-core-method.js` in your html file. This will expose the `Web3Method` object on the window object. - ## Usage ```js @@ -42,8 +41,9 @@ method.attachToObject(myCoolLib); myCoolLib.sendTransaction({...}, function(){ ... }); ``` +## Types + +All the typescript typings are placed in the types folder. [docs]: http://web3js.readthedocs.io/en/1.0/ [repo]: https://github.com/ethereum/web3.js - - From 4ca1cf803f7b8f25f204ea94cbb127ed8542cf74 Mon Sep 17 00:00:00 2001 From: Josh Stevens Date: Tue, 15 Oct 2019 12:16:54 +0100 Subject: [PATCH 016/124] feat: `web3-eth` typings --- packages/web3-eth/types/index.d.ts | 246 ++++++++++ packages/web3-eth/types/tests/eth.tests.ts | 493 +++++++++++++++++++++ packages/web3-eth/types/tsconfig.json | 17 + packages/web3-eth/types/tslint.json | 11 + 4 files changed, 767 insertions(+) create mode 100644 packages/web3-eth/types/index.d.ts create mode 100644 packages/web3-eth/types/tests/eth.tests.ts create mode 100644 packages/web3-eth/types/tsconfig.json create mode 100644 packages/web3-eth/types/tslint.json diff --git a/packages/web3-eth/types/index.d.ts b/packages/web3-eth/types/index.d.ts new file mode 100644 index 00000000000..f8bcecb986f --- /dev/null +++ b/packages/web3-eth/types/index.d.ts @@ -0,0 +1,246 @@ +/* + This file is part of web3.js. + web3.js is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + web3.js is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + You should have received a copy of the GNU Lesser General Public License + along with web3.js. If not, see . +*/ +/** + * @file index.d.ts + * @author Josh Stevens + * @author Samuel Furter + * @author Prince Sinha + * @date 2018 + */ + +import {provider} from 'web3-providers'; +import { + AbstractWeb3Module, + Log, + PromiEvent, + RLPEncodedTransaction, + Transaction, + TransactionConfig, + TransactionReceipt, + Web3ModuleOptions, + TransactionSigner +} from 'web3-core'; +import {Contract, ContractOptions} from 'web3-eth-contract'; +import {Iban} from 'web3-eth-iban'; +import {Accounts} from 'web3-eth-accounts'; +import {AbiCoder} from 'web3-eth-abi'; +import {Network} from 'web3-net'; +import {Personal} from 'web3-eth-personal'; +import {AbiItem} from 'web3-utils'; +import {Ens} from 'web3-eth-ens'; +import * as net from 'net'; + +export class Eth extends AbstractWeb3Module { + constructor( + provider: provider, + net?: net.Socket | null, + options?: Web3ModuleOptions + ); + + Contract: new (jsonInterface: AbiItem[] | AbiItem, address?: string, options?: ContractOptions) => Contract; + Iban: new(iban: string) => Iban; + personal: Personal; + accounts: Accounts; + ens: Ens; + abi: AbiCoder; + net: Network; + transactionSigner: TransactionSigner; + + clearSubscriptions(): Promise; + + subscribe(type: 'logs', options?: LogsOptions, callback?: (error: Error, log: Log) => void): Subscription; + subscribe(type: 'syncing', options?: null, callback?: (error: Error, result: Syncing) => void): Subscription; + subscribe(type: 'newBlockHeaders', options?: null, callback?: (error: Error, blockHeader: BlockHeader) => void): Subscription; + subscribe(type: 'pendingTransactions', options?: null, callback?: (error: Error, transactionHash: string) => void): Subscription; + subscribe( + type: 'pendingTransactions' | 'logs' | 'syncing' | 'newBlockHeaders', + options?: null | LogsOptions, + callback?: (error: Error, item: Log | Syncing | BlockHeader | string) => void + ): Subscription; + + getProtocolVersion(callback?: (error: Error, protocolVersion: string) => void): Promise; + + isSyncing(callback?: (error: Error, syncing: Syncing) => void): Promise; + + getCoinbase(callback?: (error: Error, coinbaseAddress: string) => void): Promise; + + isMining(callback?: (error: Error, mining: boolean) => void): Promise; + + getHashrate(callback?: (error: Error, hashes: number) => void): Promise; + + getGasPrice(callback?: (error: Error, gasPrice: string) => void): Promise; + + getAccounts(callback?: (error: Error, accounts: string[]) => void): Promise; + + getBlockNumber(callback?: (error: Error, blockNumber: number) => void): Promise; + + getBalance(address: string): Promise; + getBalance(address: string, defaultBlock: string | number): Promise; + getBalance(address: string, callback?: (error: Error, balance: string) => void): Promise; + getBalance(address: string, defaultBlock: string | number, callback?: (error: Error, balance: string) => void): Promise; + + getStorageAt(address: string, position: number): Promise; + getStorageAt(address: string, position: number, defaultBlock: number | string): Promise; + getStorageAt(address: string, position: number, callback?: (error: Error, storageAt: string) => void): Promise; + getStorageAt(address: string, position: number, defaultBlock: number | string, callback?: (error: Error, storageAt: string) => void): Promise; + + getCode(address: string): Promise; + getCode(address: string, defaultBlock: string | number): Promise; + getCode(address: string, callback?: (error: Error, code: string) => void): Promise; + getCode(address: string, defaultBlock: string | number, callback?: (error: Error, code: string) => void): Promise; + + getBlock(blockHashOrBlockNumber: string | number): Promise; + getBlock(blockHashOrBlockNumber: string | number, returnTransactionObjects: boolean): Promise; + getBlock(blockHashOrBlockNumber: string | number, callback?: (error: Error, block: Block) => void): Promise; + getBlock(blockHashOrBlockNumber: string | number, returnTransactionObjects: boolean, callback?: (error: Error, block: Block) => void): Promise; + + getBlockTransactionCount(blockHashOrBlockNumber: string | number, callback?: (error: Error, numberOfTransactions: number) => void): Promise; + + getUncle(blockHashOrBlockNumber: string | number, uncleIndex: number): Promise + getUncle(blockHashOrBlockNumber: string | number, uncleIndex: number, returnTransactionObjects: boolean): Promise + getUncle(blockHashOrBlockNumber: string | number, uncleIndex: number, callback?: (error: Error, uncle: {}) => void): Promise + getUncle(blockHashOrBlockNumber: string | number, uncleIndex: number, returnTransactionObjects: boolean, callback?: (error: Error, uncle: {}) => void): Promise + + getTransaction(transactionHash: string, callback?: (error: Error, transaction: Transaction) => void): Promise; + + getPendingTransactions(callback?: (error: Error, result: Transaction[]) => void): Promise; + + getTransactionFromBlock(hashStringOrNumber: string | number, indexNumber: number, callback?: (error: Error, transaction: Transaction) => void): Promise; + + getTransactionReceipt(hash: string, callback?: (error: Error, transactionReceipt: TransactionReceipt) => void): Promise; + + getTransactionCount(address: string): Promise; + getTransactionCount(address: string, defaultBlock: number | string): Promise; + getTransactionCount(address: string, callback?: (error: Error, count: number) => void): Promise; + getTransactionCount(address: string, defaultBlock: number | string, callback?: (error: Error, count: number) => void): Promise; + + sendTransaction(transactionConfig: TransactionConfig, callback?: (error: Error, hash: string) => void): PromiEvent; + + sendSignedTransaction(signedTransactionData: string, callback?: (error: Error, hash: string) => void): PromiEvent + + sign(dataToSign: string, address: string | number, callback?: (error: Error, signature: string) => void): Promise; + + signTransaction(transactionConfig: TransactionConfig, callback?: (error: Error, signedTransaction: RLPEncodedTransaction) => void): Promise; + signTransaction(transactionConfig: TransactionConfig, address: string): Promise; + signTransaction(transactionConfig: TransactionConfig, address: string, callback: (error: Error, signedTransaction: RLPEncodedTransaction) => void): Promise; + + call(transactionConfig: TransactionConfig): Promise; + call(transactionConfig: TransactionConfig, defaultBlock?: number | string): Promise; + call(transactionConfig: TransactionConfig, callback?: (error: Error, data: string) => void): Promise; + call(transactionConfig: TransactionConfig, defaultBlock: number | string, callback: (error: Error, data: string) => void): Promise; + + estimateGas(transactionConfig: TransactionConfig, callback?: (error: Error, gas: number) => void): Promise; + + getPastLogs(options: PastLogsOptions, callback?: (error: Error, logs: Log[]) => void): Promise; + + getWork(callback?: (error: Error, result: string[]) => void): Promise; + + submitWork(data: [string, string, string], callback?: (error: Error, result: boolean) => void): Promise; + + getProof(address: string, storageKey: string[], blockNumber: number | string | "latest" | "earliest", callback?: (error: Error, result: GetProof) => void): Promise; +} + +export interface Methods { + property?: string; + methods: Method[]; +} + +export interface Method { + name: string; + call: string; + params?: number; + inputFormatter?: Array<(() => void) | null>; + outputFormatter?: () => void; +} + +export interface Syncing { + StartingBlock: number; + CurrentBlock: number; + HighestBlock: number; + KnownStates: number; + PulledStates: number; +} + +export interface BlockHeader { + number: number + hash: string + parentHash: string + nonce: string + sha3Uncles: string + logsBloom: string + transactionRoot: string + stateRoot: string + receiptRoot: string + miner: string + extraData: string + gasLimit: number + gasUsed: number + timestamp: number | string +} + +export interface Block extends BlockHeader { + transactions: Transaction[] | string[]; + size: number + difficulty: number + totalDifficulty: number + uncles: string[]; +} + +export interface PastLogsOptions { + fromBlock?: number | string; + toBlock?: number | string; + address?: string | string[]; + topics?: Array; +} + +export interface LogsOptions { + fromBlock?: number | string; + address?: string | string[]; + topics?: Array +} + +export interface Subscription { + id: string; + options: {}; + + subscribe(callback?: (error: Error, result: T) => void): Subscription; + + unsubscribe(callback?: (error: Error, result: boolean) => void): Promise; + + on(type: 'data', handler: (data: T) => void): Subscription + + on(type: 'changed', handler: (data: T) => void): Subscription + + on(type: 'error', handler: (data: Error) => void): Subscription +} + +export interface GetProof { + jsonrpc: string; + id: number; + result: { + address: string; + accountProof: string[]; + balance: string; + codeHash: string; + nonce: string; + storageHash: string; + storageProof: StorageProof[]; + }; +} + +export interface StorageProof { + key: string; + value: string; + proof: string[]; +} diff --git a/packages/web3-eth/types/tests/eth.tests.ts b/packages/web3-eth/types/tests/eth.tests.ts new file mode 100644 index 00000000000..e4428400a55 --- /dev/null +++ b/packages/web3-eth/types/tests/eth.tests.ts @@ -0,0 +1,493 @@ +/* + This file is part of web3.js. + web3.js is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + web3.js is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + You should have received a copy of the GNU Lesser General Public License + along with web3.js. If not, see . +*/ +/** + * @file eth-tests.ts + * @author Josh Stevens + * @author Prince Sinha + * @date 2018 + */ + +import {Log, Transaction, TransactionReceipt, RLPEncodedTransaction} from 'web3-core'; +import {Eth, BlockHeader, Syncing, Block, GetProof} from 'web3-eth'; + +const eth = new Eth('http://localhost:8545'); + +// $ExpectType new (jsonInterface: AbiItem | AbiItem[], address?: string | undefined, options?: ContractOptions | undefined) => Contract +eth.Contract; + +// $ExpectType new (iban: string) => Iban +eth.Iban; + +// $ExpectType Personal +eth.personal; + +// $ExpectType Accounts +eth.accounts; + +// $ExpectType Ens +eth.ens; + +// $ExpectType AbiCoder +eth.abi; + +// $ExpectType Network +eth.net; + +// $ExpectType TransactionSigner +eth.transactionSigner; + +eth.clearSubscriptions(); + +// $ExpectType Subscription +eth.subscribe('logs'); + +// $ExpectType Subscription +eth.subscribe('logs', {}); +// $ExpectType Subscription +eth.subscribe('logs', {}, (error: Error, log: Log) => {}); + +// $ExpectType Subscription +eth.subscribe('syncing'); +// $ExpectType Subscription +eth.subscribe('syncing', null, (error: Error, result: Syncing) => {}); + +// $ExpectType Subscription +eth.subscribe('newBlockHeaders'); +// $ExpectType Subscription +eth.subscribe('newBlockHeaders', null, (error: Error, blockHeader: BlockHeader) => {}); + +// $ExpectType Subscription +eth.subscribe('pendingTransactions'); +// $ExpectType Subscription +eth.subscribe('pendingTransactions', null, (error: Error, transactionHash: string) => {}); + +// $ExpectType Providers +Eth.providers; + +// $ExpectType any +eth.givenProvider; + +// $ExpectType BatchRequest +new eth.BatchRequest(); + +// $ExpectType string | null +eth.defaultAccount; + +// $ExpectType string | number +eth.defaultBlock; + +// $ExpectType HttpProvider | IpcProvider | WebsocketProvider | Web3EthereumProvider | CustomProvider +eth.currentProvider; + +// $ExpectType Promise +eth.getProtocolVersion(); +// $ExpectType Promise +eth.getProtocolVersion((error: Error, protocolVersion: string) => {}); + +// $ExpectType Promise +eth.isSyncing(); +// $ExpectType Promise +eth.isSyncing((error: Error, syncing: Syncing) => {}); + +// $ExpectType Promise +eth.getCoinbase(); +// $ExpectType Promise +eth.getCoinbase((error: Error, coinbaseAddress: string) => {}); + +// $ExpectType Promise +eth.isMining(); +// $ExpectType Promise +eth.isMining((error: Error, mining: boolean) => {}); + +// $ExpectType Promise +eth.getHashrate(); +// $ExpectType Promise +eth.getHashrate((error: Error, hashes: number) => {}); + +// $ExpectType Promise +eth.getGasPrice(); +// $ExpectType Promise +eth.getGasPrice((error: Error, gasPrice: string) => {}); + +// $ExpectType Promise +eth.getAccounts(); +// $ExpectType Promise +eth.getAccounts((error: Error, accounts: string[]) => {}); + +// $ExpectType Promise +eth.getBlockNumber(); +// $ExpectType Promise +eth.getBlockNumber((error: Error, blockNumber: number) => {}); + +// $ExpectType Promise +eth.getBalance('0x407d73d8a49eeb85d32cf465507dd71d507100c1'); +// $ExpectType Promise +eth.getBalance('0x407d73d8a49eeb85d32cf465507dd71d507100c1', '1000'); +// $ExpectType Promise +eth.getBalance('0x407d73d8a49eeb85d32cf465507dd71d507100c1', '1000', (error: Error, balance: string) => {}); +// $ExpectType Promise +eth.getBalance('0x407d73d8a49eeb85d32cf465507dd71d507100c1', 1000); +// $ExpectType Promise +eth.getBalance('0x407d73d8a49eeb85d32cf465507dd71d507100c1', 1000, (error: Error, balance: string) => {}); + +// $ExpectType Promise +eth.getStorageAt('0x407d73d8a49eeb85d32cf465507dd71d507100c1', 2); +// $ExpectType Promise +eth.getStorageAt('0x407d73d8a49eeb85d32cf465507dd71d507100c1', 2, '1000'); +// $ExpectType Promise +eth.getStorageAt('0x407d73d8a49eeb85d32cf465507dd71d507100c1', 2, '1000', (error: Error, balance: string) => {}); +// $ExpectType Promise +eth.getStorageAt('0x407d73d8a49eeb85d32cf465507dd71d507100c1', 2, 1000); +// $ExpectType Promise +eth.getStorageAt('0x407d73d8a49eeb85d32cf465507dd71d507100c1', 2, 1000, (error: Error, balance: string) => {}); + +// $ExpectType Promise +eth.getCode('0x407d73d8a49eeb85d32cf465507dd71d507100c1'); +// $ExpectType Promise +eth.getCode('0x407d73d8a49eeb85d32cf465507dd71d507100c1', '1000'); +// $ExpectType Promise +eth.getCode('0x407d73d8a49eeb85d32cf465507dd71d507100c1', '1000', (error: Error, balance: string) => {}); +// $ExpectType Promise +eth.getCode('0x407d73d8a49eeb85d32cf465507dd71d507100c1', 1000); +// $ExpectType Promise +eth.getCode('0x407d73d8a49eeb85d32cf465507dd71d507100c1', 1000, (error: Error, balance: string) => {}); + +// $ExpectType Promise +eth.getBlock('0x407d73d8a49eeb85d32cf465507dd71d507100c1'); +// $ExpectType Promise +eth.getBlock(345); +// $ExpectType Promise +eth.getBlock('0x407d73d8a49eeb85d32cf465507dd71d507100c1', true); +// $ExpectType Promise +eth.getBlock('0x407d73d8a49eeb85d32cf465507dd71d507100c1', false); +// $ExpectType Promise +eth.getBlock(345); +// $ExpectType Promise +eth.getBlock(345, true); +// $ExpectType Promise +eth.getBlock(345, false); +// $ExpectType Promise +eth.getBlock('0x407d73d8a49eeb85d32cf465507dd71d507100c1', (error: Error, block: Block) => {}); +// $ExpectType Promise +eth.getBlock(345, (error: Error, block: Block) => {}); +// $ExpectType Promise +eth.getBlock(345, true, (error: Error, block: Block) => {}); +// $ExpectType Promise +eth.getBlock(345, false, (error: Error, block: Block) => {}); +// $ExpectType Promise +eth.getBlock('0x407d73d8a49eeb85d32cf465507dd71d507100c1', true, (error: Error, block: Block) => {}); +// $ExpectType Promise +eth.getBlock('0x407d73d8a49eeb85d32cf465507dd71d507100c1', false, (error: Error, block: Block) => {}); + +// $ExpectType Promise +eth.getBlockTransactionCount( + '0x407d73d8a49eeb85d32cf465507dd71d507100c1', + (error: Error, numberOfTransactions: number) => {} +); +// $ExpectType Promise +eth.getBlockTransactionCount(345); +// $ExpectType Promise +eth.getBlockTransactionCount( + '0x407d73d8a49eeb85d32cf465507dd71d507100c1', + (error: Error, numberOfTransactions: number) => {} +); +// $ExpectType Promise +eth.getBlockTransactionCount(345); + +// $ExpectType Promise +eth.getUncle('0x407d73d8a49eeb85d32cf465507dd71d507100c1', 4); +// $ExpectType Promise +eth.getUncle(345, 4); +// $ExpectType Promise +eth.getUncle('0x407d73d8a49eeb85d32cf465507dd71d507100c1', 4, true); +// $ExpectType Promise +eth.getUncle('0x407d73d8a49eeb85d32cf465507dd71d507100c1', 4, false); +// $ExpectType Promise +eth.getUncle('0x407d73d8a49eeb85d32cf465507dd71d507100c1', 4, (error: Error, uncle: {}) => {}); +// $ExpectType Promise +eth.getUncle(345, 4, (error: Error, uncle: {}) => {}); +// $ExpectType Promise +eth.getUncle(345, 4, true); +// $ExpectType Promise +eth.getUncle(345, 4, false); +// $ExpectType Promise +eth.getUncle('0x407d73d8a49eeb85d32cf465507dd71d507100c1', 4, true, (error: Error, uncle: {}) => {}); +// $ExpectType Promise +eth.getUncle('0x407d73d8a49eeb85d32cf465507dd71d507100c1', 4, false, (error: Error, uncle: {}) => {}); +// $ExpectType Promise +eth.getUncle(345, 4, true, (error: Error, uncle: {}) => {}); +// $ExpectType Promise +eth.getUncle(345, 4, false, (error: Error, uncle: {}) => {}); + +// $ExpectType Promise +eth.getTransaction('0x407d73d8a49eeb85d32cf465507dd71d507100c1'); +// $ExpectType Promise +eth.getTransaction('0x407d73d8a49eeb85d32cf465507dd71d507100c1', (error: Error, transaction: Transaction) => {}); + +// $ExpectType Promise +eth.getTransactionFromBlock('0x407d73d8a49eeb85d32cf465507dd71d507100c1', 2); +// $ExpectType Promise +eth.getTransactionFromBlock(345, 2); +// $ExpectType Promise +eth.getTransactionFromBlock( + '0x407d73d8a49eeb85d32cf465507dd71d507100c1', + 2, + (error: Error, transaction: Transaction) => {} +); +// $ExpectType Promise +eth.getTransactionFromBlock(345, 2, (error: Error, transaction: Transaction) => {}); + +// $ExpectType Promise +eth.getTransactionReceipt('0x407d73d8a49eeb85d32cf465507dd71d507100c1'); +// $ExpectType Promise +eth.getTransactionReceipt( + '0x407d73d8a49eeb85d32cf465507dd71d507100c1', + (error: Error, transactionReceipt: TransactionReceipt) => {} +); + +// $ExpectType Promise +eth.getTransactionCount('0x407d73d8a49eeb85d32cf465507dd71d507100c1'); +// $ExpectType Promise +eth.getTransactionCount('0x407d73d8a49eeb85d32cf465507dd71d507100c1', 1000); +// $ExpectType Promise +eth.getTransactionCount('0x407d73d8a49eeb85d32cf465507dd71d507100c1', '1000'); +// $ExpectType Promise +eth.getTransactionCount('0x407d73d8a49eeb85d32cf465507dd71d507100c1', (error: Error, count: number) => {}); +// $ExpectType Promise +eth.getTransactionCount('0x407d73d8a49eeb85d32cf465507dd71d507100c1', (error: Error, count: number) => {}); +// $ExpectType Promise +eth.getTransactionCount('0x407d73d8a49eeb85d32cf465507dd71d507100c1', 1000, (error: Error, count: number) => {}); +// $ExpectType Promise +eth.getTransactionCount('0x407d73d8a49eeb85d32cf465507dd71d507100c1', '1000', (error: Error, count: number) => {}); + +const code = '603d80600c6000396000f3007c0'; + +// $ExpectType PromiEvent +eth.sendTransaction({ + from: '0xde0B295669a9FD93d5F28D9Ec85E40f4cb697BAe', + data: 'code' +}); +// $ExpectType PromiEvent +eth.sendTransaction( + { + from: '0xde0B295669a9FD93d5F28D9Ec85E40f4cb697BAe', + data: 'code' + }, + (error: Error, hash: string) => {} +); + +// $ExpectType PromiEvent +eth.sendSignedTransaction('0xf889808609184e72a0008227109'); +// $ExpectType PromiEvent +eth.sendSignedTransaction('0xf889808609184e72a0008227109', (error: Error, hash: string) => {}); + +// $ExpectType Promise +eth.sign('Hello world', '0x11f4d0A3c12e86B4b5F39B213F7E19D048276DAe'); +// $ExpectType Promise +eth.sign('Hello world', 3); +// $ExpectType Promise +eth.sign('Hello world', '0x11f4d0A3c12e86B4b5F39B213F7E19D048276DAe', (error: Error, signature: string) => {}); +// $ExpectType Promise +eth.sign('Hello world', 3, (error: Error, signature: string) => {}); + +// $ExpectType Promise +eth.signTransaction({ + from: '0xEB014f8c8B418Db6b45774c326A0E64C78914dC0', + gasPrice: '20000000000', + gas: '21000', + to: '0x3535353535353535353535353535353535353535', + value: '1000000000000000000', + data: '' +}); +// $ExpectType Promise +eth.signTransaction( + { + from: '0xEB014f8c8B418Db6b45774c326A0E64C78914dC0', + gasPrice: '20000000000', + gas: '21000', + to: '0x3535353535353535353535353535353535353535', + value: '1000000000000000000', + data: '' + }, + '0xEB014f8c8B418Db6b45774c326A0E64C78914dC0' +); +// $ExpectType Promise +eth.signTransaction( + { + from: '0xEB014f8c8B418Db6b45774c326A0E64C78914dC0', + gasPrice: '20000000000', + gas: '21000', + to: '0x3535353535353535353535353535353535353535', + value: '1000000000000000000', + data: '' + }, + (error: Error, signedTransaction: RLPEncodedTransaction) => {} +); +// $ExpectType Promise +eth.signTransaction( + { + from: '0xEB014f8c8B418Db6b45774c326A0E64C78914dC0', + gasPrice: '20000000000', + gas: '21000', + to: '0x3535353535353535353535353535353535353535', + value: '1000000000000000000', + data: '' + }, + '0xEB014f8c8B418Db6b45774c326A0E64C78914dC0', + (error: Error, signedTransaction: RLPEncodedTransaction) => {} +); + +// $ExpectType Promise +eth.call({ + to: '0x11f4d0A3c12e86B4b5F39B213F7E19D048276DAe', // contract address + data: '0xc6888fa10000000000000000000000000000000000000000000000000000000000000003' +}); +// $ExpectType Promise +eth.call( + { + to: '0x11f4d0A3c12e86B4b5F39B213F7E19D048276DAe', // contract address + data: '0xc6888fa10000000000000000000000000000000000000000000000000000000000000003' + }, + 100 +); +// $ExpectType Promise +eth.call( + { + to: '0x11f4d0A3c12e86B4b5F39B213F7E19D048276DAe', // contract address + data: '0xc6888fa10000000000000000000000000000000000000000000000000000000000000003' + }, + '100' +); +// $ExpectType Promise +eth.call( + { + to: '0x11f4d0A3c12e86B4b5F39B213F7E19D048276DAe', // contract address + data: '0xc6888fa10000000000000000000000000000000000000000000000000000000000000003' + }, + (error: Error, data: string) => {} +); +// $ExpectType Promise +eth.call( + { + to: '0x11f4d0A3c12e86B4b5F39B213F7E19D048276DAe', // contract address + data: '0xc6888fa10000000000000000000000000000000000000000000000000000000000000003' + }, + '100', + (error: Error, data: string) => {} +); +// $ExpectType Promise +eth.call( + { + to: '0x11f4d0A3c12e86B4b5F39B213F7E19D048276DAe', // contract address + data: '0xc6888fa10000000000000000000000000000000000000000000000000000000000000003' + }, + 100, + (error: Error, data: string) => {} +); + +// $ExpectType Promise +eth.call( + { + to: '0x11f4d0A3c12e86B4b5F39B213F7E19D048276DAe', // contract address + data: '0xc6888fa10000000000000000000000000000000000000000000000000000000000000003' + }, + 100, + (error: Error, data: string) => {} +); + +// $ExpectType Promise +eth.estimateGas({ + to: '0x11f4d0A3c12e86B4b5F39B213F7E19D048276DAe', + data: '0xc6888fa10000000000000000000000000000000000000000000000000000000000000003' +}); +// $ExpectType Promise +eth.estimateGas( + { + to: '0x11f4d0A3c12e86B4b5F39B213F7E19D048276DAe', + data: '0xc6888fa10000000000000000000000000000000000000000000000000000000000000003' + }, + (error: Error, gas: number) => {} +); + +// $ExpectType Promise +eth.getPastLogs({ + address: '0x11f4d0A3c12e86B4b5F39B213F7E19D048276DAe', + topics: ['0x033456732123ffff2342342dd12342434324234234fd234fd23fd4f23d4234'] +}); +// $ExpectType Promise +eth.getPastLogs( + { + address: '0x11f4d0A3c12e86B4b5F39B213F7E19D048276DAe', + topics: ['0x033456732123ffff2342342dd12342434324234234fd234fd23fd4f23d4234'] + }, + (error: Error, logs: Log[]) => {} +); + +// $ExpectType Promise +eth.getWork(); +// $ExpectType Promise +eth.getWork((error: Error, result: string[]) => {}); + +// $ExpectType Promise +eth.submitWork([ + '0x0000000000000001', + '0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef', + '0xD1FE5700000000000000000000000000D1FE5700000000000000000000000000' +]); + +// $ExpectType Promise +eth.submitWork( + [ + '0x0000000000000001', + '0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef', + '0xD1FE5700000000000000000000000000D1FE5700000000000000000000000000' + ], + (error: Error, result: boolean) => {} +); + +// $ExpectType Promise +eth.getPendingTransactions(); + +// $ExpectType Promise +eth.getPendingTransactions((error: Error, result: Transaction[]) => {}); + +// $ExpectType Promise +eth.getProof( + "0x1234567890123456789012345678901234567890", + ["0x0000000000000000000000000000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000000000000000000000000001"], + "latest" +); + +// $ExpectType Promise +eth.getProof( + "0x1234567890123456789012345678901234567890", + ["0x0000000000000000000000000000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000000000000000000000000001"], + "latest", + (error: Error, result: GetProof) => {} +); + +// $ExpectType Promise +eth.getProof( + "0x1234567890123456789012345678901234567890", + ["0x0000000000000000000000000000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000000000000000000000000001"], + 10 +); + +// $ExpectType Promise +eth.getProof( + "0x1234567890123456789012345678901234567890", + ["0x0000000000000000000000000000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000000000000000000000000001"], + 10, + (error: Error, result: GetProof) => {} +); diff --git a/packages/web3-eth/types/tsconfig.json b/packages/web3-eth/types/tsconfig.json new file mode 100644 index 00000000000..e9ea79fb47a --- /dev/null +++ b/packages/web3-eth/types/tsconfig.json @@ -0,0 +1,17 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": ["es6"], + "target": "es6", + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "strictFunctionTypes": true, + "noEmit": true, + "allowSyntheticDefaultImports": false, + "baseUrl": ".", + "paths": { + "web3-eth": ["."] + } + } +} diff --git a/packages/web3-eth/types/tslint.json b/packages/web3-eth/types/tslint.json new file mode 100644 index 00000000000..871d605704b --- /dev/null +++ b/packages/web3-eth/types/tslint.json @@ -0,0 +1,11 @@ +{ + "extends": "dtslint/dtslint.json", + "rules": { + "semicolon": false, + "no-import-default-of-export-equals": false, + "file-name-casing": [true, "kebab-case"], + "whitespace": false, + "no-unnecessary-class": false, + "unified-signatures": false + } +} From eb9b819ca55592889c053be4baf540856e806b1f Mon Sep 17 00:00:00 2001 From: Josh Stevens Date: Tue, 15 Oct 2019 12:17:04 +0100 Subject: [PATCH 017/124] feat: install type dependencies for `web3-eth` --- packages/web3-eth/package.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/web3-eth/package.json b/packages/web3-eth/package.json index 5c2f79bf40d..91e3bae910f 100644 --- a/packages/web3-eth/package.json +++ b/packages/web3-eth/package.json @@ -22,5 +22,9 @@ "web3-eth-personal": "1.2.1", "web3-net": "1.2.1", "web3-utils": "1.2.1" + }, + "devDependencies": { + "definitelytyped-header-parser": "^1.0.1", + "dtslint": "0.4.2" } } From 6a34aafbe132a0878ab683bc171185dfa2b75aa7 Mon Sep 17 00:00:00 2001 From: Josh Stevens Date: Tue, 15 Oct 2019 12:17:16 +0100 Subject: [PATCH 018/124] docs: update readme for `web3-eth` --- packages/web3-eth/README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/web3-eth/README.md b/packages/web3-eth/README.md index ac3ec3ff0f6..a62b62bdded 100644 --- a/packages/web3-eth/README.md +++ b/packages/web3-eth/README.md @@ -24,7 +24,6 @@ npm run-script build-all Then include `dist/web3-eth.js` in your html file. This will expose the `Web3Eth` object on the window object. - ## Usage ```js @@ -34,8 +33,9 @@ var Web3Eth = require('web3-eth'); var eth = new Web3Eth('ws://localhost:8546'); ``` +## Types + +All the typescript typings are placed in the types folder. [docs]: http://web3js.readthedocs.io/en/1.0/ [repo]: https://github.com/ethereum/web3.js - - From e4f085f4852aa3390cc0095cd19d2206804ee3ca Mon Sep 17 00:00:00 2001 From: Josh Stevens Date: Tue, 15 Oct 2019 12:18:11 +0100 Subject: [PATCH 019/124] feat: `web3-eth-abi` typings --- packages/web3-eth-abi/types/index.d.ts | 38 ++ .../types/tests/abi-coder-test.ts | 587 ++++++++++++++++++ packages/web3-eth-abi/types/tsconfig.json | 17 + packages/web3-eth-abi/types/tslint.json | 10 + 4 files changed, 652 insertions(+) create mode 100644 packages/web3-eth-abi/types/index.d.ts create mode 100644 packages/web3-eth-abi/types/tests/abi-coder-test.ts create mode 100644 packages/web3-eth-abi/types/tsconfig.json create mode 100644 packages/web3-eth-abi/types/tslint.json diff --git a/packages/web3-eth-abi/types/index.d.ts b/packages/web3-eth-abi/types/index.d.ts new file mode 100644 index 00000000000..f25d5034494 --- /dev/null +++ b/packages/web3-eth-abi/types/index.d.ts @@ -0,0 +1,38 @@ +/* + This file is part of web3.js. + web3.js is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + web3.js is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + You should have received a copy of the GNU Lesser General Public License + along with web3.js. If not, see . +*/ +/** + * @file index.d.ts + * @author Josh Stevens + * @date 2018 + */ + +import {AbiInput, AbiItem} from 'web3-utils'; + +export class AbiCoder { + encodeFunctionSignature(functionName: string | AbiItem): string; + + encodeEventSignature(functionName: string | AbiItem): string; + + encodeParameter(type: string | {}, parameter: any): string; + + encodeParameters(types: Array, paramaters: any[]): string; + + encodeFunctionCall(abiItem: AbiItem, params: string[]): string; + + decodeParameter(type: string | {}, hex: string): {[key: string]: any;}; + + decodeParameters(types: Array, hex: string): {[key: string]: any;}; + + decodeLog(inputs: AbiInput[], hex: string, topics: string[]): {[key: string]: string;}; +} diff --git a/packages/web3-eth-abi/types/tests/abi-coder-test.ts b/packages/web3-eth-abi/types/tests/abi-coder-test.ts new file mode 100644 index 00000000000..ce4294aa318 --- /dev/null +++ b/packages/web3-eth-abi/types/tests/abi-coder-test.ts @@ -0,0 +1,587 @@ +/* + This file is part of web3.js. + + web3.js is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + web3.js is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License + along with web3.js. If not, see . +*/ +/** + * @file abi-coder-test.ts + * @author Josh Stevens + * @date 2018 + */ + +import {AbiCoder} from 'web3-eth-abi'; + +const abiCoder = new AbiCoder(); + +// $ExpectType string +abiCoder.encodeFunctionSignature('myMethod(uint256,string)'); +// $ExpectType string +abiCoder.encodeFunctionSignature({ + name: 'myMethod', + type: 'function', + inputs: [{ + type: 'uint256', + name: 'myNumber' + }, { + type: 'string', + name: 'myString' + }] +}); + +// $ExpectError +abiCoder.encodeFunctionSignature(345); +// $ExpectError +abiCoder.encodeFunctionSignature({}); +// $ExpectError +abiCoder.encodeFunctionSignature(true); +// $ExpectError +abiCoder.encodeFunctionSignature(['string']); +// $ExpectError +abiCoder.encodeFunctionSignature([4]); +// $ExpectError +abiCoder.encodeFunctionSignature(null); +// $ExpectError +abiCoder.encodeFunctionSignature(undefined); +// $ExpectError +abiCoder.encodeFunctionSignature('myMethod(uint256,string)', { + name: 'myMethod' +}); + +// $ExpectType string +abiCoder.encodeEventSignature('myEvent(uint256,bytes32)'); +// $ExpectType string +abiCoder.encodeFunctionSignature({ + name: 'myEvent', + type: 'event', + inputs: [{ + type: 'uint256', + name: 'myNumber' + }, { + type: 'bytes32', + name: 'myBytes' + }] +}); + +// $ExpectError +abiCoder.encodeFunctionSignature(345); +// $ExpectError +abiCoder.encodeFunctionSignature({}); +// $ExpectError +abiCoder.encodeFunctionSignature(true); +// $ExpectError +abiCoder.encodeFunctionSignature(['string']); +// $ExpectError +abiCoder.encodeFunctionSignature([4]); +// $ExpectError +abiCoder.encodeFunctionSignature(null); +// $ExpectError +abiCoder.encodeFunctionSignature(undefined); +// $ExpectError +abiCoder.encodeFunctionSignature('myEvent(uint256,bytes32)', { + name: 'myEvent' +}); + +// $ExpectType string +abiCoder.encodeParameter('uint256', '2345675643'); +// $ExpectType string +abiCoder.encodeParameter('uint256', ['0xdf3234', '0xfdfd']); +// $ExpectType string +abiCoder.encodeParameter( + { + ParentStruct: { + propertyOne: 'uint256', + propertyTwo: 'uint256', + childStruct: { + propertyOne: 'uint256', + propertyTwo: 'uint256' + } + } + }, + { + propertyOne: 42, + propertyTwo: 56, + childStruct: { + propertyOne: 45, + propertyTwo: 78 + } + } +); + +// $ExpectError +abiCoder.encodeParameter(null, ['0xdf3234', '0xfdfd']); +// $ExpectError +abiCoder.encodeParameter(undefined, ['0xdf3234', '0xfdfd']); + +// $ExpectType string +abiCoder.encodeParameters(['uint256', 'string'], ['2345675643', 'Hello!%']); +// $ExpectType string +abiCoder.encodeParameters(['uint8[]', 'bytes32'], [['34', '434'], '0x324567fff']); +// $ExpectType string +abiCoder.encodeParameters( + [ + 'uint8[]', + { + ParentStruct: { + propertyOne: 'uint256', + propertyTwo: 'uint256', + ChildStruct: { + propertyOne: 'uint256', + propertyTwo: 'uint256' + } + } + } + ], + [ + ['34', '434'], + { + propertyOne: '42', + propertyTwo: '56', + ChildStruct: { + propertyOne: '45', + propertyTwo: '78' + } + } + ] +); + +// $ExpectError +abiCoder.encodeParameters(345, ['2345675643', 'Hello!%']); +// $ExpectError +abiCoder.encodeParameters(true, ['2345675643', 'Hello!%']); +// $ExpectError +abiCoder.encodeParameters(null, ['2345675643', 'Hello!%']); +// $ExpectError +abiCoder.encodeParameters(undefined, ['2345675643', 'Hello!%']); + +// $ExpectType string +abiCoder.encodeFunctionCall({ + name: 'myMethod', + type: 'function', + inputs: [{ + type: 'uint256', + name: 'myNumber' + }, { + type: 'string', + name: 'myString' + }] +}, ['2345675643', 'Hello!%']); + +// $ExpectError +abiCoder.encodeFunctionCall([345], ['2345675643', 'Hello!%']); +// $ExpectError +abiCoder.encodeFunctionCall(['string'], ['2345675643', 'Hello!%']); +// $ExpectError +abiCoder.encodeFunctionCall(345, ['2345675643', 'Hello!%']); +// $ExpectError +abiCoder.encodeFunctionCall(true, ['2345675643', 'Hello!%']); +// $ExpectError +abiCoder.encodeFunctionCall(null, ['2345675643', 'Hello!%']); +// $ExpectError +abiCoder.encodeFunctionCall(undefined, ['2345675643', 'Hello!%']); + +abiCoder.encodeFunctionCall({ + name: 'myMethod', + type: 'function', + inputs: [{ + type: 'uint256', + name: 'myNumber' + }, { + type: 'string', + name: 'myString' + }] + // $ExpectError +}, 345); + +abiCoder.encodeFunctionCall({ + name: 'myMethod', + type: 'function', + inputs: [{ + type: 'uint256', + name: 'myNumber' + }, { + type: 'string', + name: 'myString' + }] + // $ExpectError +}, [345]); + +abiCoder.encodeFunctionCall({ + name: 'myMethod', + type: 'function', + inputs: [{ + type: 'uint256', + name: 'myNumber' + }, { + type: 'string', + name: 'myString' + }] + // $ExpectError +}, true); + +abiCoder.encodeFunctionCall({ + name: 'myMethod', + type: 'function', + inputs: [{ + type: 'uint256', + name: 'myNumber' + }, { + type: 'string', + name: 'myString' + }] + // $ExpectError +}, null); + +abiCoder.encodeFunctionCall({ + name: 'myMethod', + type: 'function', + inputs: [{ + type: 'uint256', + name: 'myNumber' + }, { + type: 'string', + name: 'myString' + }] + // $ExpectError +}, undefined); + +// $ExpectType { [key: string]: any; } +abiCoder.decodeParameter('uint256', '0x0000000000000000000000000000000000000000000000000000000000000010'); +// $ExpectType { [key: string]: any; } +abiCoder.decodeParameter('uint256', '0x0000000000000000000000000000000000000000000000000000000000000010'); +// $ExpectType { [key: string]: any; } +abiCoder.decodeParameter('uint256', '0x0000000000000000000000000000000000000000000000000000000000000010'); +// $ExpectType { [key: string]: any; } +abiCoder.decodeParameter({ + ParentStruct: { + propertyOne: 'uint256', + propertyTwo: 'uint256', + childStruct: { + propertyOne: 'uint256', + propertyTwo: 'uint256' + } + } +}, `0x000000000000000000000000000000000000000000000000000000000000002a00000000000000000000000000000000000000000000000000 + 00000000000038000000000000000000000000000000000000000000000000000000000000002d00000000000000000000000000000000000000 + 0000000000000000000000004e`); + +// $ExpectError +abiCoder.decodeParameter('uint256', [345]); +// $ExpectError +abiCoder.decodeParameter('uint256', ['string']); +// $ExpectError +abiCoder.decodeParameter('uint256', 345); +// $ExpectError +abiCoder.decodeParameter('uint256', true); +// $ExpectError +abiCoder.decodeParameter('uint256', null); +// $ExpectError +abiCoder.decodeParameter('uint256', undefined); + +// $ExpectType { [key: string]: any; } +abiCoder.decodeParameters(['string', 'uint256'], '0x0000000000000000000000000000000000000000000000000000000000000010'); +// $ExpectType { [key: string]: any; } +abiCoder.decodeParameters([{ + type: 'string', + name: 'myString' +}, { + type: 'uint256', + name: 'myNumber' +}], '0x0000000000000000000000000000000000000000000000000000000000000010'); +// $ExpectType { [key: string]: any; } +abiCoder.decodeParameters([ + 'uint8[]', + { + ParentStruct: { + propertyOne: 'uint256', + propertyTwo: 'uint256', + childStruct: { + propertyOne: 'uint256', + propertyTwo: 'uint256' + } + } + } +], '0x0000000000000000000000000000000000000000000000000000000000000010'); + +// $ExpectError +abiCoder.decodeParameters('uint256', '0x0000000000000000000000000000000000000000000000000000000000000010'); +// $ExpectError +abiCoder.decodeParameters(453, '0x0000000000000000000000000000000000000000000000000000000000000010'); +// $ExpectError +abiCoder.decodeParameters(true, '0x0000000000000000000000000000000000000000000000000000000000000010'); +// $ExpectError +abiCoder.decodeParameters(null, '0x0000000000000000000000000000000000000000000000000000000000000010'); +// $ExpectError +abiCoder.decodeParameters(undefined, '0x0000000000000000000000000000000000000000000000000000000000000010'); +// $ExpectError +abiCoder.decodeParameters(['string', 'uint256'], 345); +// $ExpectError +abiCoder.decodeParameters(['string', 'uint256'], ['string']); +// $ExpectError +abiCoder.decodeParameters(['string', 'uint256'], [345]); +// $ExpectError +abiCoder.decodeParameters(['string', 'uint256'], true); +// $ExpectError +abiCoder.decodeParameters(['string', 'uint256'], null); +// $ExpectError +abiCoder.decodeParameters(['string', 'uint256'], undefined); + +// $ExpectType { [key: string]: string; } +abiCoder.decodeLog( + [ + { + type: 'string', + name: 'myString' + }, { + type: 'uint256', + name: 'myNumber', + indexed: true + }, { + type: 'uint8', + name: 'mySmallNumber', + indexed: true + } + ], + `0x0000000000000000000000000000000000000000000000000000000000000020000000000000000 + 000000000000000000000000000000000000000000000000748656c6c6f2521000000000000000000 + 00000000000000000000000000000000`, + ['0x000000000000000000000000000000000000000000000000000000000000f310', '0x0000000000000000000000000000000000000000000000000000000000000010']); + +// $ExpectError +abiCoder.decodeLog(['string'], + `0x0000000000000000000000000000000000000000000000000000000000000020000000000000000 + 000000000000000000000000000000000000000000000000748656c6c6f2521000000000000000000 + 00000000000000000000000000000000`, + ['0x000000000000000000000000000000000000000000000000000000000000f310', '0x0000000000000000000000000000000000000000000000000000000000000010']); +// $ExpectError +abiCoder.decodeLog([345], + `0x0000000000000000000000000000000000000000000000000000000000000020000000000000000 + 000000000000000000000000000000000000000000000000748656c6c6f2521000000000000000000 + 00000000000000000000000000000000`, + ['0x000000000000000000000000000000000000000000000000000000000000f310', '0x0000000000000000000000000000000000000000000000000000000000000010']); +// $ExpectError +abiCoder.decodeLog(true, + `0x0000000000000000000000000000000000000000000000000000000000000020000000000000000 + 000000000000000000000000000000000000000000000000748656c6c6f2521000000000000000000 + 00000000000000000000000000000000`, + ['0x000000000000000000000000000000000000000000000000000000000000f310', '0x0000000000000000000000000000000000000000000000000000000000000010']); +// $ExpectError +abiCoder.decodeLog([undefined], + `0x0000000000000000000000000000000000000000000000000000000000000020000000000000000 + 000000000000000000000000000000000000000000000000748656c6c6f2521000000000000000000 + 00000000000000000000000000000000`, + ['0x000000000000000000000000000000000000000000000000000000000000f310', '0x0000000000000000000000000000000000000000000000000000000000000010']); +// $ExpectError +abiCoder.decodeLog([null], + `0x0000000000000000000000000000000000000000000000000000000000000020000000000000000 + 000000000000000000000000000000000000000000000000748656c6c6f2521000000000000000000 + 00000000000000000000000000000000`, + ['0x000000000000000000000000000000000000000000000000000000000000f310', '0x0000000000000000000000000000000000000000000000000000000000000010']); + +abiCoder.decodeLog( + [ + { + type: 'string', + name: 'myString' + }, { + type: 'uint256', + name: 'myNumber', + indexed: true + }, { + type: 'uint8', + name: 'mySmallNumber', + indexed: true + } + ], + // $ExpectError + 345, + ['0x000000000000000000000000000000000000000000000000000000000000f310', '0x0000000000000000000000000000000000000000000000000000000000000010']); + +abiCoder.decodeLog( + [ + { + type: 'string', + name: 'myString' + }, { + type: 'uint256', + name: 'myNumber', + indexed: true + }, { + type: 'uint8', + name: 'mySmallNumber', + indexed: true + } + ], + // $ExpectError + [345], + ['0x000000000000000000000000000000000000000000000000000000000000f310', '0x0000000000000000000000000000000000000000000000000000000000000010']); + +abiCoder.decodeLog( + [ + { + type: 'string', + name: 'myString' + }, { + type: 'uint256', + name: 'myNumber', + indexed: true + }, { + type: 'uint8', + name: 'mySmallNumber', + indexed: true + } + ], + // $ExpectError + ['string'], + ['0x000000000000000000000000000000000000000000000000000000000000f310', '0x0000000000000000000000000000000000000000000000000000000000000010']); + +abiCoder.decodeLog( + [ + { + type: 'string', + name: 'myString' + }, { + type: 'uint256', + name: 'myNumber', + indexed: true + }, { + type: 'uint8', + name: 'mySmallNumber', + indexed: true + } + ], + // $ExpectError + true, + ['0x000000000000000000000000000000000000000000000000000000000000f310', '0x0000000000000000000000000000000000000000000000000000000000000010']); + +abiCoder.decodeLog( + [ + { + type: 'string', + name: 'myString' + }, { + type: 'uint256', + name: 'myNumber', + indexed: true + }, { + type: 'uint8', + name: 'mySmallNumber', + indexed: true + } + ], + // $ExpectError + null, + ['0x000000000000000000000000000000000000000000000000000000000000f310', '0x0000000000000000000000000000000000000000000000000000000000000010']); + +abiCoder.decodeLog( + [ + { + type: 'string', + name: 'myString' + }, { + type: 'uint256', + name: 'myNumber', + indexed: true + }, { + type: 'uint8', + name: 'mySmallNumber', + indexed: true + } + ], + // $ExpectError + undefined, + ['0x000000000000000000000000000000000000000000000000000000000000f310', '0x0000000000000000000000000000000000000000000000000000000000000010']); + +abiCoder.decodeLog( + [ + { + type: 'string', + name: 'myString' + }, { + type: 'uint256', + name: 'myNumber', + indexed: true + }, { + type: 'uint8', + name: 'mySmallNumber', + indexed: true + } + ], + `0x0000000000000000000000000000000000000000000000000000000000000020000000000000000 + 000000000000000000000000000000000000000000000000748656c6c6f2521000000000000000000 + 00000000000000000000000000000000`, + // $ExpectError + 345); + +abiCoder.decodeLog( + [ + { + type: 'string', + name: 'myString' + }, { + type: 'uint256', + name: 'myNumber', + indexed: true + }, { + type: 'uint8', + name: 'mySmallNumber', + indexed: true + } + ], + `0x0000000000000000000000000000000000000000000000000000000000000020000000000000000 + 000000000000000000000000000000000000000000000000748656c6c6f2521000000000000000000 + 00000000000000000000000000000000`, + // $ExpectError + [345]); + +abiCoder.decodeLog( + [ + { + type: 'string', + name: 'myString' + }, { + type: 'uint256', + name: 'myNumber', + indexed: true + }, { + type: 'uint8', + name: 'mySmallNumber', + indexed: true + } + ], + `0x0000000000000000000000000000000000000000000000000000000000000020000000000000000 + 000000000000000000000000000000000000000000000000748656c6c6f2521000000000000000000 + 00000000000000000000000000000000`, + // $ExpectError + null); + +abiCoder.decodeLog( + [ + { + type: 'string', + name: 'myString' + }, { + type: 'uint256', + name: 'myNumber', + indexed: true + }, { + type: 'uint8', + name: 'mySmallNumber', + indexed: true + } + ], + `0x0000000000000000000000000000000000000000000000000000000000000020000000000000000 + 000000000000000000000000000000000000000000000000748656c6c6f2521000000000000000000 + 00000000000000000000000000000000`, + // $ExpectError + undefined); diff --git a/packages/web3-eth-abi/types/tsconfig.json b/packages/web3-eth-abi/types/tsconfig.json new file mode 100644 index 00000000000..4e08e726c5b --- /dev/null +++ b/packages/web3-eth-abi/types/tsconfig.json @@ -0,0 +1,17 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": ["es6"], + "target": "es6", + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "strictFunctionTypes": true, + "noEmit": true, + "allowSyntheticDefaultImports": false, + "baseUrl": ".", + "paths": { + "web3-eth-abi": ["."] + } + } +} diff --git a/packages/web3-eth-abi/types/tslint.json b/packages/web3-eth-abi/types/tslint.json new file mode 100644 index 00000000000..2b3d7bd5fb1 --- /dev/null +++ b/packages/web3-eth-abi/types/tslint.json @@ -0,0 +1,10 @@ +{ + "extends": "dtslint/dtslint.json", + "rules": { + "semicolon": false, + "no-import-default-of-export-equals": false, + "file-name-casing": [true, "kebab-case"], + "whitespace": false, + "typedef-whitespace": false + } +} From 7800a02b1ccbb1831b16739318ccdb927963d5d5 Mon Sep 17 00:00:00 2001 From: Josh Stevens Date: Tue, 15 Oct 2019 12:18:24 +0100 Subject: [PATCH 020/124] feat: install type dependencies for `web3-eth-abi` --- packages/web3-eth-abi/package.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/web3-eth-abi/package.json b/packages/web3-eth-abi/package.json index acc3b63e260..46b6fafb470 100644 --- a/packages/web3-eth-abi/package.json +++ b/packages/web3-eth-abi/package.json @@ -12,5 +12,9 @@ "ethers": "4.0.0-beta.3", "underscore": "1.9.1", "web3-utils": "1.2.1" + }, + "devDependencies": { + "definitelytyped-header-parser": "^1.0.1", + "dtslint": "0.4.2" } } From 06245fafb59a29a64e28230215773e5e71ae747b Mon Sep 17 00:00:00 2001 From: Josh Stevens Date: Tue, 15 Oct 2019 12:18:36 +0100 Subject: [PATCH 021/124] docs: update readme for `web3-eth-abi` --- packages/web3-eth-abi/README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/web3-eth-abi/README.md b/packages/web3-eth-abi/README.md index 0cb883cffe5..9a42822ab11 100644 --- a/packages/web3-eth-abi/README.md +++ b/packages/web3-eth-abi/README.md @@ -24,7 +24,6 @@ npm run-script build-all Then include `dist/web3-eth-abi.js` in your html file. This will expose the `Web3EthAbi` object on the window object. - ## Usage ```js @@ -35,8 +34,9 @@ Web3EthAbi.encodeFunctionSignature('myMethod(uint256,string)'); > '0x24ee0097' ``` +## Types + +All the typescript typings are placed in the types folder. [docs]: http://web3js.readthedocs.io/en/1.0/ [repo]: https://github.com/ethereum/web3.js - - From 4af77815d94c747e48c2233054e682753cc5cf14 Mon Sep 17 00:00:00 2001 From: Josh Stevens Date: Tue, 15 Oct 2019 12:19:22 +0100 Subject: [PATCH 022/124] feat: `web3-eth-accounts` typings --- packages/web3-eth-accounts/types/index.d.ts | 126 ++++++++++++ .../types/tests/accounts-tests.ts | 194 ++++++++++++++++++ .../web3-eth-accounts/types/tsconfig.json | 17 ++ packages/web3-eth-accounts/types/tslint.json | 10 + 4 files changed, 347 insertions(+) create mode 100644 packages/web3-eth-accounts/types/index.d.ts create mode 100644 packages/web3-eth-accounts/types/tests/accounts-tests.ts create mode 100644 packages/web3-eth-accounts/types/tsconfig.json create mode 100644 packages/web3-eth-accounts/types/tslint.json diff --git a/packages/web3-eth-accounts/types/index.d.ts b/packages/web3-eth-accounts/types/index.d.ts new file mode 100644 index 00000000000..87dd1fb7ea7 --- /dev/null +++ b/packages/web3-eth-accounts/types/index.d.ts @@ -0,0 +1,126 @@ +/* + This file is part of web3.js. + web3.js is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + web3.js is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + You should have received a copy of the GNU Lesser General Public License + along with web3.js. If not, see . +*/ +/** + * @file index.d.ts + * @author Josh Stevens , Samuel Furter + * @date 2018 + */ + +import {AbstractWeb3Module, SignedTransaction, TransactionConfig, Web3ModuleOptions} from 'web3-core'; +import {provider} from 'web3-providers'; +import * as net from 'net'; + +export class Accounts extends AbstractWeb3Module { + constructor(provider: provider, net?: net.Socket | null, options?: Web3ModuleOptions); + + create(entropy?: string): Account; + + privateKeyToAccount(privateKey: string): Account; + + signTransaction(transactionConfig: TransactionConfig, privateKey: string, callback?: () => void): Promise; + + recoverTransaction(signature: string): string; + + hashMessage(message: string): string; + + sign(data: string, privateKey: string): Sign; + + recover(signatureObject: SignatureObject): string; + recover(message: string, signature: string, preFixed?: boolean): string; + recover(message: string, v: string, r: string, s: string, preFixed?: boolean): string; + + encrypt(privateKey: string, password: string): EncryptedKeystoreV3Json; + + decrypt(keystoreJsonV3: EncryptedKeystoreV3Json, password: string): Account; + + wallet: Wallet; +} + +export class Wallet { + constructor(accounts: Accounts); + + accountsIndex: number; + length: number; + defaultKeyName: string; + + [key: number]: Account; + + create(numberOfAccounts: number, entropy?: string): Wallet; + + add(account: string | AddAccount): AddedAccount; + + remove(account: string | number): boolean; + + clear(): Wallet; + + encrypt(password: string): EncryptedKeystoreV3Json[]; + + decrypt(keystoreArray: EncryptedKeystoreV3Json[], password: string): Wallet; + + save(password: string, keyName?: string): boolean; + + load(password: string, keyName?: string): Wallet; +} + +export interface AddAccount { + address: string; + privateKey: string; +} + +export interface Account { + address: string; + privateKey: string; + signTransaction: ( + transactionConfig: TransactionConfig, + callback?: (signTransaction: SignedTransaction) => void + ) => Promise; + sign: (data: string) => Sign; + encrypt: (password: string) => EncryptedKeystoreV3Json; +} + +export interface AddedAccount extends Account { + index: number; +} + +export interface EncryptedKeystoreV3Json { + version: number; + id: string; + address: string; + crypto: { + ciphertext: string; + cipherparams: {iv: string}; + cipher: string; + kdf: string; + kdfparams: { + dklen: number; + salt: string; + n: number; + r: number; + p: number; + }; + mac: string; + }; +} + +export interface Sign extends SignedTransaction { + message: string; + signature: string; +} + +export interface SignatureObject { + messageHash: string; + r: string; + s: string; + v: string; +} diff --git a/packages/web3-eth-accounts/types/tests/accounts-tests.ts b/packages/web3-eth-accounts/types/tests/accounts-tests.ts new file mode 100644 index 00000000000..54487abb407 --- /dev/null +++ b/packages/web3-eth-accounts/types/tests/accounts-tests.ts @@ -0,0 +1,194 @@ +/* + This file is part of web3.js. + web3.js is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + web3.js is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + You should have received a copy of the GNU Lesser General Public License + along with web3.js. If not, see . +*/ +/** + * @file accounts-tests.ts + * @author Josh Stevens + * @date 2018 + */ +import {Accounts} from 'web3-eth-accounts'; + +const accounts = new Accounts('http://localhost:8545'); + +// $ExpectType Account +accounts.create(); +// $ExpectType Account +accounts.create('2435@#@#@±±±±!!!!678543213456764321§34567543213456785432134567'); + +// $ExpectType Account +accounts.privateKeyToAccount('0x348ce564d427a3311b6536bbcff9390d69395b06ed6c486954e971d960fe8709'); + +// $ExpectType Promise +accounts.signTransaction( + { + to: '0xF0109fC8DF283027b6285cc889F5aA624EaC1F55', + value: '1000000000', + gas: 2000000 + }, + '0x4c0883a69102937d6231471b5dbb6204fe5129617082792ae468d01a3f362318' +); + +// $ExpectType Promise +accounts.signTransaction( + { + to: '0xF0109fC8DF283027b6285cc889F5aA624EaC1F55', + value: '1000000000', + gas: 2000000 + }, + '0x4c0883a69102937d6231471b5dbb6204fe5129617082792ae468d01a3f362318', + () => { + console.log('hey'); + } +); + +// $ExpectType string +accounts.recoverTransaction('0xf861808084aefcdfa08e7d2ee3f0b9d9ae184b2001fe0aff07603d9'); + +// $ExpectType string +accounts.hashMessage('hello world'); + +// $ExpectType Sign +accounts.sign('Some data', '0x4c0883a69102937d6231471b5dbb6204fe5129617082792ae468d01a3f362318'); + +// $ExpectType string +accounts.recover({ + messageHash: '0x1da44b586eb0729ff70a73c326926f6ed5a25f5b056e7f47fbc6e58d86871655', + v: '0x1c', + r: '0xb91467e570a6466aa9e9876cbcd013baba02900b8979d43fe208a4a4f339f5fd', + s: '0x6007e74cd82e037b800186422fc2da167c747ef045e5d18a5f5d4300f8e1a029' +}); + +// $ExpectType string +accounts.recover( + 'Some data', + '0xb91467e570a6466aa9e9876cbcd013baba02900b8979d43fe208a4a4f339f5fd6007e74cd82e037b800186422fc2da167c747ef045e5d18a5f5d4300f8e1a0291c' +); + +// $ExpectType string +accounts.recover( + 'Some data', + '0x1c', + '0xb91467e570a6466aa9e9876cbcd013baba02900b8979d43fe208a4a4f339f5fd', + '0x6007e74cd82e037b800186422fc2da167c747ef045e5d18a5f5d4300f8e1a029' +); + +// $ExpectType EncryptedKeystoreV3Json +accounts.encrypt('0x4c0883a69102937d6231471b5dbb6204fe5129617082792ae468d01a3f362318', 'test!'); + +// $ExpectType Account +accounts.decrypt( + { + version: 3, + id: '04e9bcbb-96fa-497b-94d1-14df4cd20af6', + address: '2c7536e3605d9c16a7a3d7b1898e529396a65c23', + crypto: { + ciphertext: 'a1c25da3ecde4e6a24f3697251dd15d6208520efc84ad97397e906e6df24d251', + cipherparams: {iv: '2885df2b63f7ef247d753c82fa20038a'}, + cipher: 'aes-128-ctr', + kdf: 'scrypt', + kdfparams: { + dklen: 32, + salt: '4531b3c174cc3ff32a6a7a85d6761b410db674807b2d216d022318ceee50be10', + n: 262144, + r: 8, + p: 1 + }, + mac: 'b8b010fff37f9ae5559a352a185e86f9b9c1d7f7a9f1bd4e82a5dd35468fc7f6' + } + }, + 'test!' +); + +// $ExpectType Wallet +accounts.wallet.create(2); + +// $ExpectType Account +accounts.wallet[0]; + +// $ExpectType Wallet +accounts.wallet.create(2, '54674321§3456764321§345674321§3453647544±±±§±±±!!!43534534534534'); + +// $ExpectType AddedAccount +accounts.wallet.add('0x4c0883a69102937d6231471b5dbb6204fe5129617082792ae468d01a3f362318'); + +// $ExpectType AddedAccount +accounts.wallet.add({ + privateKey: '0x348ce564d427a3311b6536bbcff9390d69395b06ed6c486954e971d960fe8709', + address: '0xb8CE9ab6943e0eCED004cDe8e3bBed6568B2Fa01' +}); + +// $ExpectType boolean +accounts.wallet.remove('0xF0109fC8DF283027b6285cc889F5aA624EaC1F55'); + +// $ExpectType boolean +accounts.wallet.remove(3); + +// $ExpectType Wallet +accounts.wallet.clear(); + +// $ExpectType EncryptedKeystoreV3Json[] +accounts.wallet.encrypt('test'); + +// $ExpectType Wallet +accounts.wallet.decrypt( + [ + { + version: 3, + id: '83191a81-aaca-451f-b63d-0c5f3b849289', + address: '06f702337909c06c82b09b7a22f0a2f0855d1f68', + crypto: { + ciphertext: '7d34deae112841fba86e3e6cf08f5398dda323a8e4d29332621534e2c4069e8d', + cipherparams: {iv: '497f4d26997a84d570778eae874b2333'}, + cipher: 'aes-128-ctr', + kdf: 'scrypt', + kdfparams: { + dklen: 32, + salt: '208dd732a27aa4803bb760228dff18515d5313fd085bbce60594a3919ae2d88d', + n: 262144, + r: 8, + p: 1 + }, + mac: '0062a853de302513c57bfe3108ab493733034bf3cb313326f42cf26ea2619cf9' + } + }, + { + version: 3, + id: '7d6b91fa-3611-407b-b16b-396efb28f97e', + address: 'b5d89661b59a9af0b34f58d19138baa2de48baaf', + crypto: { + ciphertext: 'cb9712d1982ff89f571fa5dbef447f14b7e5f142232bd2a913aac833730eeb43', + cipherparams: {iv: '8cccb91cb84e435437f7282ec2ffd2db'}, + cipher: 'aes-128-ctr', + kdf: 'scrypt', + kdfparams: { + dklen: 32, + salt: '08ba6736363c5586434cd5b895e6fe41ea7db4785bd9b901dedce77a1514e8b8', + n: 262144, + r: 8, + p: 1 + }, + mac: 'd2eb068b37e2df55f56fa97a2bf4f55e072bef0dd703bfd917717d9dc54510f0' + } + } + ], + 'test' +); + +// $ExpectType boolean +accounts.wallet.save('test#!$'); + +// $ExpectType Wallet +accounts.wallet.load('test#!$'); + +// $ExpectType Wallet +accounts.wallet.load('test#!$', 'myWalletKey'); diff --git a/packages/web3-eth-accounts/types/tsconfig.json b/packages/web3-eth-accounts/types/tsconfig.json new file mode 100644 index 00000000000..8cc88bbb8cc --- /dev/null +++ b/packages/web3-eth-accounts/types/tsconfig.json @@ -0,0 +1,17 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": ["es6"], + "target": "es6", + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "strictFunctionTypes": true, + "noEmit": true, + "allowSyntheticDefaultImports": false, + "baseUrl": ".", + "paths": { + "web3-eth-accounts": ["."] + } + } +} diff --git a/packages/web3-eth-accounts/types/tslint.json b/packages/web3-eth-accounts/types/tslint.json new file mode 100644 index 00000000000..6429b0c446e --- /dev/null +++ b/packages/web3-eth-accounts/types/tslint.json @@ -0,0 +1,10 @@ +{ + "extends": "dtslint/dtslint.json", + "rules": { + "semicolon": false, + "no-import-default-of-export-equals": false, + "file-name-casing": [true, "kebab-case"], + "whitespace": false, + "no-unnecessary-class": false + } +} From 27fe1d0fe3f7153823059a7e35248a4a6f70f2ca Mon Sep 17 00:00:00 2001 From: Josh Stevens Date: Tue, 15 Oct 2019 12:19:40 +0100 Subject: [PATCH 023/124] feat: install type dependencies for `web3-eth-accounts` --- packages/web3-eth-accounts/package.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/web3-eth-accounts/package.json b/packages/web3-eth-accounts/package.json index df892a7293e..6495257db62 100644 --- a/packages/web3-eth-accounts/package.json +++ b/packages/web3-eth-accounts/package.json @@ -20,5 +20,9 @@ "web3-core-method": "1.2.1", "web3-utils": "1.2.1", "ethereumjs-tx": "^2.1.1" + }, + "devDependencies": { + "definitelytyped-header-parser": "^1.0.1", + "dtslint": "0.4.2" } } From 704d7e29af9ea0f099d729697b927dd017e771f5 Mon Sep 17 00:00:00 2001 From: Josh Stevens Date: Tue, 15 Oct 2019 12:19:57 +0100 Subject: [PATCH 024/124] docs: update readme for `web3-eth-accounts` --- packages/web3-eth-accounts/README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/web3-eth-accounts/README.md b/packages/web3-eth-accounts/README.md index 94c31e8151a..a0b6cf81ce9 100644 --- a/packages/web3-eth-accounts/README.md +++ b/packages/web3-eth-accounts/README.md @@ -24,7 +24,6 @@ npm run-script build-all Then include `dist/web3-eth-accounts.js` in your html file. This will expose the `Web3EthAccounts` object on the window object. - ## Usage ```js @@ -42,8 +41,9 @@ account.create(); } ``` +## Types + +All the typescript typings are placed in the types folder. [docs]: http://web3js.readthedocs.io/en/1.0/ [repo]: https://github.com/ethereum/web3.js - - From c3b750f30b4a6c7fa683c064290fb711f1724855 Mon Sep 17 00:00:00 2001 From: Josh Stevens Date: Tue, 15 Oct 2019 12:20:48 +0100 Subject: [PATCH 025/124] feat: `web3-eth-contract` typings --- packages/web3-eth-contract/types/index.d.ts | 165 ++++++++++++++++++ .../web3-eth-contract/types/tsconfig.json | 17 ++ packages/web3-eth-contract/types/tslint.json | 12 ++ 3 files changed, 194 insertions(+) create mode 100644 packages/web3-eth-contract/types/index.d.ts create mode 100644 packages/web3-eth-contract/types/tsconfig.json create mode 100644 packages/web3-eth-contract/types/tslint.json diff --git a/packages/web3-eth-contract/types/index.d.ts b/packages/web3-eth-contract/types/index.d.ts new file mode 100644 index 00000000000..0b567ee39ed --- /dev/null +++ b/packages/web3-eth-contract/types/index.d.ts @@ -0,0 +1,165 @@ +/* + This file is part of web3.js. + web3.js is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + web3.js is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + You should have received a copy of the GNU Lesser General Public License + along with web3.js. If not, see . +*/ +/** + * @file index.d.ts + * @author Josh Stevens + * @date 2018 + */ + +import BN = require('bn.js'); +import {provider} from 'web3-providers'; +import {AbiInput, AbiOutput, AbiItem} from 'web3-utils'; +import {PromiEvent, Web3ModuleOptions, TransactionSigner} from 'web3-core'; + +export class Contract { + constructor( + provider: provider, + abi: AbiItem[], + address?: string, + options?: ContractOptions + ) + + address: string; + jsonInterface: AbiModel; + transactionSigner: TransactionSigner; + + options: Options; + + clone(): Contract; + + deploy(options: DeployOptions): ContractSendMethod; + + methods: any; + + once(event: string, callback: (error: Error, event: EventData) => void): void; + once(event: string, options: EventOptions, callback: (error: Error, event: EventData) => void): void; + + events: any; + + getPastEvents(event: string): Promise; + getPastEvents(event: string, options: EventOptions, callback: (error: Error, event: EventData) => void): Promise; + getPastEvents(event: string, options: EventOptions): Promise; + getPastEvents(event: string, callback: (error: Error, event: EventData) => void): Promise; +} + +export class ContractModuleFactory { +} // TODO: Define methods + +export interface Options { + address: string; + data: string; +} + +export interface DeployOptions { + data: string; + arguments?: any[]; +} + +export interface ContractSendMethod { + send(options: SendOptions, callback?: (err: Error, transactionHash: string) => void): PromiEvent; + + estimateGas(options: EstimateGasOptions, callback?: (err: Error, gas: number) => void): Promise; + + estimateGas(callback: (err: Error, gas: number) => void): Promise; + + estimateGas(options: EstimateGasOptions, callback: (err: Error, gas: number) => void): Promise; + + estimateGas(options: EstimateGasOptions): Promise; + + estimateGas(): Promise; + + encodeABI(): string; +} + +export interface SendOptions { + from: string; + gasPrice?: string; + gas?: number; + value?: number | string | BN; +} + +export interface EstimateGasOptions { + from?: string; + gas?: number; + value?: number | string | BN; +} + +export interface ContractOptions extends Web3ModuleOptions { + // Sender to use for contract calls + from?: string; + // Gas price to use for contract calls + gasPrice?: string; + // Gas to use for contract calls + gas?: number; + // Contract code + data?: string; +} + +export interface EventOptions { + filter?: {}; + fromBlock?: number; + toBlock?: string | number; + topics?: any[]; +} + +export interface EventData { + returnValues: { + [key: string]: any; + }, + raw: { + data: string; + topics: string[]; + }, + event: string; + signature: string; + logIndex: number; + transactionIndex: number; + transactionHash: string; + blockHash: string; + blockNumber: number; + address: string; +} + +export interface AbiModel { + getMethod(name: string): AbiItemModel | false; + + getMethods(): AbiItemModel[]; + + hasMethod(name: string): boolean; + + getEvent(name: string): AbiItemModel | false; + + getEvents(): AbiItemModel[]; + + getEventBySignature(signature: string): AbiItemModel; + + hasEvent(name: string): boolean; +} + +export interface AbiItemModel { + signature: string; + name: string; + payable: boolean; + anonymous: boolean; + + getInputLength(): number; + + getInputs(): AbiInput[]; + + getIndexedInputs(): AbiInput[]; + + getOutputs(): AbiOutput[]; + + isOfType(): boolean; +} diff --git a/packages/web3-eth-contract/types/tsconfig.json b/packages/web3-eth-contract/types/tsconfig.json new file mode 100644 index 00000000000..906dd3fd159 --- /dev/null +++ b/packages/web3-eth-contract/types/tsconfig.json @@ -0,0 +1,17 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": ["es6"], + "target": "es6", + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "strictFunctionTypes": true, + "noEmit": true, + "allowSyntheticDefaultImports": false, + "baseUrl": ".", + "paths": { + "web3-eth-contract": ["."] + } + } +} diff --git a/packages/web3-eth-contract/types/tslint.json b/packages/web3-eth-contract/types/tslint.json new file mode 100644 index 00000000000..30e95b7bca5 --- /dev/null +++ b/packages/web3-eth-contract/types/tslint.json @@ -0,0 +1,12 @@ +{ + "extends": "dtslint/dtslint.json", + "rules": { + "semicolon": false, + "no-import-default-of-export-equals": false, + "file-name-casing": [true, "kebab-case"], + "whitespace": false, + "no-unnecessary-class": false, + "no-empty-interface": false, + "unified-signatures": false + } +} From 261dbd84427d445979681b6d63b08c8330944ca8 Mon Sep 17 00:00:00 2001 From: Josh Stevens Date: Tue, 15 Oct 2019 12:20:59 +0100 Subject: [PATCH 026/124] feat: `web3-eth-contract` tests --- .../types/tests/contract-test.ts | 114 ++++++++++++++++++ 1 file changed, 114 insertions(+) create mode 100644 packages/web3-eth-contract/types/tests/contract-test.ts diff --git a/packages/web3-eth-contract/types/tests/contract-test.ts b/packages/web3-eth-contract/types/tests/contract-test.ts new file mode 100644 index 00000000000..9dd468eb80c --- /dev/null +++ b/packages/web3-eth-contract/types/tests/contract-test.ts @@ -0,0 +1,114 @@ +/* + This file is part of web3.js. + web3.js is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + web3.js is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + You should have received a copy of the GNU Lesser General Public License + along with web3.js. If not, see . +*/ +/** + * @file contract-tests.ts + * @author Josh Stevens , Samuel Furter + * @date 2018 + */ + +import {Contract} from 'web3-eth-contract'; + +const contract = new Contract('http://localhost:500', []); + +// $ExpectType string +contract.address; + +// $ExpectType TransactionSigner +contract.transactionSigner; + +// $ExpectType string +contract.options.address; + +// $ExpectType string +contract.options.data; + +// $ExpectType AbiModel +contract.jsonInterface; + +// $ExpectType Contract +contract.clone(); + +// $ExpectType ContractSendMethod +contract.deploy({ + data: '0x12345...', + arguments: [123, 'My String'] +}); + +// $ExpectType void +contract.once('MyEvent', { + filter: {myIndexedParam: [20,23], myOtherIndexedParam: '0x123456789...'}, + fromBlock: 0 +}, (error, event) => { console.log(event); }); + +// $ExpectType void +contract.once('MyEvent', (error, event) => { console.log(event); }); + +// $ExpectType Promise +contract.getPastEvents('MyEvent'); + +// $ExpectType Promise +contract.getPastEvents('MyEvent', { + filter: {myIndexedParam: [20,23], myOtherIndexedParam: '0x123456789...'}, + fromBlock: 0, + toBlock: 'latest' +}); + +// $ExpectType Promise +contract.getPastEvents('MyEvent', {}); + +// $ExpectType Promise +contract.getPastEvents('MyEvent', { + filter: {myIndexedParam: [20,23], myOtherIndexedParam: '0x123456789...'}, + fromBlock: 0, + toBlock: 'latest' +}, (error, events) => { console.log(events); }); + +// $ExpectType Promise +contract.getPastEvents('MyEvent', (error, events) => { console.log(events); }); + +// $ExpectType Promise +contract.deploy({ + data: '0x12345...', + arguments: [123, 'My String'] +}).estimateGas(); + +// $ExpectType Promise +contract.deploy({ + data: '0x12345...', + arguments: [123, 'My String'] +}).estimateGas({from: '0xde0B295669a9FD93d5F28D9Ec85E40f4cb697BAe'}); + +// $ExpectType Promise +contract.deploy({ + data: '0x12345...', + arguments: [123, 'My String'] +}).estimateGas((err: Error, gas: number) => { console.log(gas) }); + +// $ExpectType string +contract.deploy({ + data: '0x12345...', + arguments: [123, 'My String'] +}).encodeABI(); + +// $ExpectType PromiEvent +contract.deploy({ + data: '0x12345...', + arguments: [123, 'My String'] +}).send({from: '0xde0B295669a9FD93d5F28D9Ec85E40f4cb697BAe'}); + +// $ExpectType PromiEvent +contract.deploy({ + data: '0x12345...', + arguments: [123, 'My String'] +}).send({from: '0xde0B295669a9FD93d5F28D9Ec85E40f4cb697BAe'}, (err: Error, transactionHash: string) => { console.log(transactionHash) }); From 136378a6c7c0f0f8240b07399cac0c0141371add Mon Sep 17 00:00:00 2001 From: Josh Stevens Date: Tue, 15 Oct 2019 12:21:22 +0100 Subject: [PATCH 027/124] feat: install types dependencies for `web3-eth-contract` --- packages/web3-eth-contract/package.json | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/web3-eth-contract/package.json b/packages/web3-eth-contract/package.json index 5ed08725eb7..41d131f33f0 100644 --- a/packages/web3-eth-contract/package.json +++ b/packages/web3-eth-contract/package.json @@ -9,6 +9,7 @@ }, "main": "src/index.js", "dependencies": { + "@types/bn.js": "^4.11.4", "underscore": "1.9.1", "web3-core": "1.2.1", "web3-core-helpers": "1.2.1", @@ -17,5 +18,9 @@ "web3-core-subscriptions": "1.2.1", "web3-eth-abi": "1.2.1", "web3-utils": "1.2.1" + }, + "devDependencies": { + "definitelytyped-header-parser": "^1.0.1", + "dtslint": "0.4.2" } } From c224ed3158ad46d39b7141564b3de5c3aa41408c Mon Sep 17 00:00:00 2001 From: Josh Stevens Date: Tue, 15 Oct 2019 12:21:35 +0100 Subject: [PATCH 028/124] docs: update readme for `web3-eth-contract` --- packages/web3-eth-contract/README.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/web3-eth-contract/README.md b/packages/web3-eth-contract/README.md index f32b9a1ae60..11608a7d16b 100644 --- a/packages/web3-eth-contract/README.md +++ b/packages/web3-eth-contract/README.md @@ -24,7 +24,6 @@ npm run-script build-all Then include `dist/web3-eth-contract.js` in your html file. This will expose the `Web3EthContract` object on the window object. - ## Usage ```js @@ -41,8 +40,12 @@ contract.methods.somFunc().send({from: ....}) }); ``` - [docs]: http://web3js.readthedocs.io/en/1.0/ [repo]: https://github.com/ethereum/web3.js +## Types + +All the typescript typings are placed in the types folder. +[docs]: http://web3js.readthedocs.io/en/1.0/ +[repo]: https://github.com/ethereum/web3.js From ff8fadb7f1ae0015bf39638560e513b56c381ffb Mon Sep 17 00:00:00 2001 From: Josh Stevens Date: Tue, 15 Oct 2019 12:22:13 +0100 Subject: [PATCH 029/124] feat: `web3-eth-ens` typings --- packages/web3-eth-ens/types/index.d.ts | 132 ++++++++++++++++++++++ packages/web3-eth-ens/types/tsconfig.json | 17 +++ packages/web3-eth-ens/types/tslint.json | 12 ++ 3 files changed, 161 insertions(+) create mode 100644 packages/web3-eth-ens/types/index.d.ts create mode 100644 packages/web3-eth-ens/types/tsconfig.json create mode 100644 packages/web3-eth-ens/types/tslint.json diff --git a/packages/web3-eth-ens/types/index.d.ts b/packages/web3-eth-ens/types/index.d.ts new file mode 100644 index 00000000000..7ed5247e109 --- /dev/null +++ b/packages/web3-eth-ens/types/index.d.ts @@ -0,0 +1,132 @@ +/* + This file is part of web3.js. + web3.js is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + web3.js is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + You should have received a copy of the GNU Lesser General Public License + along with web3.js. If not, see . +*/ +/** + * @file index.d.ts + * @author Samuel Furter , Josh Stevens + * @date 2018 + */ + +import {Accounts} from 'web3-eth-accounts'; +import {AbiCoder} from 'web3-eth-abi'; +import {Contract, ContractModuleFactory} from 'web3-eth-contract'; +import {provider} from 'web3-providers'; +import {AbstractWeb3Module, PromiEvent, Web3ModuleOptions, TransactionConfig, TransactionSigner} from 'web3-core'; +import {formatters} from 'web3-core-helpers'; +import {Network} from 'web3-net'; +import {Utils} from 'web3-utils'; +import * as net from 'net'; + +export class Ens extends AbstractWeb3Module { + constructor( + provider: provider, + net?: net.Socket|null, + accounts?: Accounts|null, + options?: Web3ModuleOptions + ); + + registry: Registry; + transactionSigner: TransactionSigner; + + resolver(name: string): Promise; + + supportsInterface( + name: string, + interfaceId: string, + callback?: (error: Error, supportsInterface: boolean) => void + ): Promise; + + getAddress(name: string, callback?: (error: Error, address: string) => void): Promise; + + setAddress( + name: string, + address: string, + sendOptions: TransactionConfig, + callback?: (error: Error, result: any) => void + ): PromiEvent; + + getPubkey( + name: string, + callback?: (error: Error, result: {[x: string]: string}) => void + ): Promise<{[x: string]: string}>; + + setPubkey( + name: string, + x: string, + y: string, + sendOptions: TransactionConfig, + callback?: (error: Error, result: any) => void + ): PromiEvent; + + getText(name: string, key: string, callback?: (error: Error, ensName: string) => void): Promise; + + setText( + name: string, + key: string, + value: string, + sendOptions: TransactionConfig, + callback?: (error: Error, result: any) => void + ): PromiEvent; + + getContent(name: string, callback?: (error: Error, contentHash: string) => void): Promise; + + setContent( + name: string, + hash: string, + sendOptions: TransactionConfig, + callback?: (error: Error, result: any) => void + ): PromiEvent; + + getMultihash(name: string, callback?: (error: Error, multihash: string) => void): Promise; + + setMultihash( + name: string, + hash: string, + sendOptions: TransactionConfig, + callback?: (error: Error, result: any) => void + ): PromiEvent; + + getContenthash(name: string, callback?: (error: Error, contenthash: string) => void): Promise; + + setContenthash( + name: string, + hash: string, + sendOptions: TransactionConfig, + callback?: (error: Error, result: any) => void + ): PromiEvent; +} + +export class Registry { + constructor( + provider: provider, + contractModuleFactory: ContractModuleFactory, + accounts: Accounts, + abiCoder: AbiCoder, + utils: Utils, + formatters: formatters, + options: Web3ModuleOptions, + net: Network + ); + + ens: Ens; + + resolverContract: Contract | null; + + setProvider(provider: provider, net?: net.Socket): boolean; + + owner(name: string, callback?: (error: Error, address: string) => void): Promise; + + resolver(name: string): Promise; + + checkNetwork(): Promise; +} diff --git a/packages/web3-eth-ens/types/tsconfig.json b/packages/web3-eth-ens/types/tsconfig.json new file mode 100644 index 00000000000..212c71253ba --- /dev/null +++ b/packages/web3-eth-ens/types/tsconfig.json @@ -0,0 +1,17 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": ["es6"], + "target": "es6", + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "strictFunctionTypes": true, + "noEmit": true, + "allowSyntheticDefaultImports": false, + "baseUrl": ".", + "paths": { + "web3-eth-ens": ["."] + } + } +} diff --git a/packages/web3-eth-ens/types/tslint.json b/packages/web3-eth-ens/types/tslint.json new file mode 100644 index 00000000000..30e95b7bca5 --- /dev/null +++ b/packages/web3-eth-ens/types/tslint.json @@ -0,0 +1,12 @@ +{ + "extends": "dtslint/dtslint.json", + "rules": { + "semicolon": false, + "no-import-default-of-export-equals": false, + "file-name-casing": [true, "kebab-case"], + "whitespace": false, + "no-unnecessary-class": false, + "no-empty-interface": false, + "unified-signatures": false + } +} From dc87499f87b8a61381812b71c12978e48b87b517 Mon Sep 17 00:00:00 2001 From: Josh Stevens Date: Tue, 15 Oct 2019 12:22:25 +0100 Subject: [PATCH 030/124] test: `web3-eth-ens` tests --- packages/web3-eth-ens/types/tests/ens-test.ts | 97 +++++++++++++++++++ 1 file changed, 97 insertions(+) create mode 100644 packages/web3-eth-ens/types/tests/ens-test.ts diff --git a/packages/web3-eth-ens/types/tests/ens-test.ts b/packages/web3-eth-ens/types/tests/ens-test.ts new file mode 100644 index 00000000000..8e75c843356 --- /dev/null +++ b/packages/web3-eth-ens/types/tests/ens-test.ts @@ -0,0 +1,97 @@ +/* + This file is part of web3.js. + web3.js is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + web3.js is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + You should have received a copy of the GNU Lesser General Public License + along with web3.js. If not, see . +*/ +/** + * @file ens-test.ts + * @author Samuel Furter , Josh Stevens + * @date 2018 + */ + +import {Accounts} from 'web3-eth-accounts'; +import {Ens} from 'web3-eth-ens'; + +const ens = new Ens('http://localhost:7545', null, new Accounts('http://localhost:7545')); + +// $ExpectType Registry +ens.registry; + +// $ExpectType TransactionSigner +ens.transactionSigner; + +// $ExpectType Promise +ens.resolver('name'); + +// $ExpectType Promise +ens.supportsInterface('name', 'interfaceId'); +// $ExpectType Promise +ens.supportsInterface('name', 'interfaceId', (error: Error, supportsInterface: boolean) => {}); + +// $ExpectType Promise +ens.getAddress('name'); +// $ExpectType Promise +ens.getAddress('name', (error: Error, address: string) => {}); + +// $ExpectType PromiEvent +ens.setAddress('name', 'address', {}); +// $ExpectType PromiEvent +ens.setAddress('name', 'address', {}, (error: Error, result: any) => {}); + +// $ExpectType Promise<{ [x: string]: string; }> +ens.getPubkey('name'); +// $ExpectType Promise<{ [x: string]: string; }> +ens.getPubkey('name', (error: Error, result: {[x: string]: string}) => {}); + +// $ExpectType PromiEvent +ens.setPubkey('name', 'x', 'y', {}); +// $ExpectType PromiEvent +ens.setPubkey('name', 'x', 'y', {}, (error: Error, result: any) => {}); + +// $ExpectType Promise +ens.getText('name', 'key'); +// $ExpectType Promise +ens.getText('name', 'key', (error: Error, ensName: string) => {}); + +// $ExpectType PromiEvent +ens.setText('name', 'key', 'value', {}); +// $ExpectType PromiEvent +ens.setText('name', 'key', 'value', {}, (error: Error, result: any) => {}); + +// $ExpectType Promise +ens.getContent('name'); +// $ExpectType Promise +ens.getContent('name', (error: Error, contentHash: string) => {}); + +// $ExpectType PromiEvent +ens.setContent('name', 'hash', {}); +// $ExpectType PromiEvent +ens.setContent('name', 'hash', {}, (error: Error, result: any) => {}); + +// $ExpectType Promise +ens.getMultihash('name'); +// $ExpectType Promise +ens.getMultihash('name', (error: Error, multihash: string) => {}); + +// $ExpectType PromiEvent +ens.setMultihash('name', 'hash', {}); +// $ExpectType PromiEvent +ens.setMultihash('name', 'hash', {}, (error: Error, result: any) => {}); + +// $ExpectType Promise +ens.getContenthash('name'); +// $ExpectType Promise +ens.getContenthash('name', (error: Error, contenthash: string) => {}); + +// $ExpectType PromiEvent +ens.setContenthash('name', 'hash', {}); +// $ExpectType PromiEvent +ens.setContenthash('name', 'hash', {}, (error: Error, result: any) => {}); From 44ed5b545a89568dc65b4ed7a66b3304daf451eb Mon Sep 17 00:00:00 2001 From: Josh Stevens Date: Tue, 15 Oct 2019 12:22:45 +0100 Subject: [PATCH 031/124] feat: install type dependencies for `web3-eth-ens` --- packages/web3-eth-ens/package.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/web3-eth-ens/package.json b/packages/web3-eth-ens/package.json index f7404df6479..c8603c3207a 100644 --- a/packages/web3-eth-ens/package.json +++ b/packages/web3-eth-ens/package.json @@ -17,5 +17,9 @@ "web3-eth-abi": "1.2.1", "web3-eth-contract": "1.2.1", "web3-utils": "1.2.1" + }, + "devDependencies": { + "definitelytyped-header-parser": "^1.0.1", + "dtslint": "0.4.2" } } From 9e5b7ddb19e4748cb705beb678348742891061c0 Mon Sep 17 00:00:00 2001 From: Josh Stevens Date: Tue, 15 Oct 2019 12:22:58 +0100 Subject: [PATCH 032/124] docs: update readme for `web3-eth-ens` --- packages/web3-eth-ens/README.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/web3-eth-ens/README.md b/packages/web3-eth-ens/README.md index cf4ab13fe75..e5801dc789c 100644 --- a/packages/web3-eth-ens/README.md +++ b/packages/web3-eth-ens/README.md @@ -27,17 +27,17 @@ This will expose the `EthEns` object on the window object. ## Usage ```js - var eth = new Web3Eth(web3.currentProvider); - var ens = new EthEns(eth); - - ens.getAddress('ethereum.eth').then(function (result) { - console.log(result); - }); +var eth = new Web3Eth(web3.currentProvider); +var ens = new EthEns(eth); + +ens.getAddress('ethereum.eth').then(function(result) { + console.log(result); +}); ``` +## Types +All the typescript typings are placed in the types folder. [docs]: http://web3js.readthedocs.io/en/1.0/ [repo]: https://github.com/ethereum/web3.js - - From 7c29e8c5290d4b1a8d6c7adb634ffa763f4e8afc Mon Sep 17 00:00:00 2001 From: Josh Stevens Date: Tue, 15 Oct 2019 12:23:38 +0100 Subject: [PATCH 033/124] feat: `web3-eth-iban` typings --- packages/web3-eth-iban/types/index.d.ts | 60 ++++++++++++++++++++++ packages/web3-eth-iban/types/tsconfig.json | 17 ++++++ packages/web3-eth-iban/types/tslint.json | 9 ++++ 3 files changed, 86 insertions(+) create mode 100644 packages/web3-eth-iban/types/index.d.ts create mode 100644 packages/web3-eth-iban/types/tsconfig.json create mode 100644 packages/web3-eth-iban/types/tslint.json diff --git a/packages/web3-eth-iban/types/index.d.ts b/packages/web3-eth-iban/types/index.d.ts new file mode 100644 index 00000000000..6890787f65a --- /dev/null +++ b/packages/web3-eth-iban/types/index.d.ts @@ -0,0 +1,60 @@ +/* + This file is part of web3.js. + + web3.js is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + web3.js is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License + along with web3.js. If not, see . +*/ +/** + * @file index.d.ts + * @author Josh Stevens + * @date 2018 + */ + +export class Iban { + constructor( + iban: string + ) + + static toAddress(iban: string): string; + + static toIban(address: string): string; + + static fromAddress(address: string): Iban; + + static fromBban(bban: string): Iban; + + static createIndirect(options: IndirectOptions): Iban; + + static isValid(iban: string): boolean; + + isValid(): boolean; + + isDirect(): boolean; + + isIndirect(): boolean; + + checksum(): string; + + institution(): string; + + client(): string; + + toAddress(): string; + + toString(): string; +} + +export interface IndirectOptions { + institution: string; + identifier: string; +} diff --git a/packages/web3-eth-iban/types/tsconfig.json b/packages/web3-eth-iban/types/tsconfig.json new file mode 100644 index 00000000000..306c438b694 --- /dev/null +++ b/packages/web3-eth-iban/types/tsconfig.json @@ -0,0 +1,17 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": ["es6"], + "target": "es6", + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "strictFunctionTypes": true, + "noEmit": true, + "allowSyntheticDefaultImports": false, + "baseUrl": ".", + "paths": { + "web3-eth-iban": ["."] + } + } +} diff --git a/packages/web3-eth-iban/types/tslint.json b/packages/web3-eth-iban/types/tslint.json new file mode 100644 index 00000000000..dc95ea202b8 --- /dev/null +++ b/packages/web3-eth-iban/types/tslint.json @@ -0,0 +1,9 @@ +{ + "extends": "dtslint/dtslint.json", + "rules": { + "semicolon": false, + "no-import-default-of-export-equals": false, + "file-name-casing": [true, "kebab-case"], + "whitespace": false + } +} From be660429c212531aa0550d2b146d7bf13e40e557 Mon Sep 17 00:00:00 2001 From: Josh Stevens Date: Tue, 15 Oct 2019 12:23:49 +0100 Subject: [PATCH 034/124] test: `web3-eth-iban` typing tests --- .../web3-eth-iban/types/tests/iban-tests.ts | 154 ++++++++++++++++++ 1 file changed, 154 insertions(+) create mode 100644 packages/web3-eth-iban/types/tests/iban-tests.ts diff --git a/packages/web3-eth-iban/types/tests/iban-tests.ts b/packages/web3-eth-iban/types/tests/iban-tests.ts new file mode 100644 index 00000000000..57a0a252b53 --- /dev/null +++ b/packages/web3-eth-iban/types/tests/iban-tests.ts @@ -0,0 +1,154 @@ +/* + This file is part of web3.js. + + web3.js is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + web3.js is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License + along with web3.js. If not, see . +*/ +/** + * @file iban-tests.ts + * @author Josh Stevens + * @date 2018 + */ + +import {Iban, IndirectOptions} from 'web3-eth-iban'; + +const iban = 'XE7338O073KYGTWWZN0F2WZ0R8PX5ZPPZS'; +const address = '0x45cd08334aeedd8a06265b2ae302e3597d8faa28'; + +// $ExpectType Iban +const ibanClass = new Iban(iban); + +// $ExpectType boolean +ibanClass.isDirect(); +// $ExpectType boolean +ibanClass.isIndirect(); +// $ExpectType string +ibanClass.checksum(); +// $ExpectType string +ibanClass.institution(); +// $ExpectType string +ibanClass.client(); +// $ExpectType string +ibanClass.toAddress(); +// $ExpectType string +Iban.toAddress(iban); + +// $ExpectError +Iban.toAddress(345); +// $ExpectError +Iban.toAddress({}); +// $ExpectError +Iban.toAddress(true); +// $ExpectError +Iban.toAddress(['string']); +// $ExpectError +Iban.toAddress([4]); +// $ExpectError +Iban.toAddress(null); +// $ExpectError +Iban.toAddress(undefined); + +// $ExpectType string +Iban.toIban(address); + +// $ExpectError +Iban.toIban(345); +// $ExpectError +Iban.toIban({}); +// $ExpectError +Iban.toIban(true); +// $ExpectError +Iban.toIban(['string']); +// $ExpectError +Iban.toIban([4]); +// $ExpectError +Iban.toIban(null); +// $ExpectError +Iban.toIban(undefined); + +// $ExpectType Iban +Iban.fromAddress(address); + +// $ExpectError +Iban.fromAddress(345); +// $ExpectError +Iban.fromAddress({}); +// $ExpectError +Iban.fromAddress(true); +// $ExpectError +Iban.fromAddress(['string']); +// $ExpectError +Iban.fromAddress([4]); +// $ExpectError +Iban.fromAddress(null); +// $ExpectError +Iban.fromAddress(undefined); + +// $ExpectType Iban +Iban.fromBban('ETHXREGGAVOFYORK'); + +// $ExpectError +Iban.fromBban(345); +// $ExpectError +Iban.fromBban({}); +// $ExpectError +Iban.fromBban(true); +// $ExpectError +Iban.fromBban(['string']); +// $ExpectError +Iban.fromBban([4]); +// $ExpectError +Iban.fromBban(null); +// $ExpectError +Iban.fromBban(undefined); + +const indirectOptions: IndirectOptions = { + institution: "XREG", + identifier: "GAVOFYORK" +} + +// $ExpectType Iban +Iban.createIndirect(indirectOptions); + +// $ExpectError +Iban.createIndirect(345); +// $ExpectError +Iban.createIndirect('string'); +// $ExpectError +Iban.createIndirect(true); +// $ExpectError +Iban.createIndirect(['string']); +// $ExpectError +Iban.createIndirect([4]); +// $ExpectError +Iban.createIndirect(null); +// $ExpectError +Iban.createIndirect(undefined); + +// $ExpectType boolean +Iban.isValid(iban); + +// $ExpectError +Iban.isValid(345); +// $ExpectError +Iban.isValid({}); +// $ExpectError +Iban.isValid(true); +// $ExpectError +Iban.isValid(['string']); +// $ExpectError +Iban.isValid([4]); +// $ExpectError +Iban.isValid(null); +// $ExpectError +Iban.isValid(undefined); From 6c4a5e79247680f8968e13f99fcac314f962f62f Mon Sep 17 00:00:00 2001 From: Josh Stevens Date: Tue, 15 Oct 2019 12:24:10 +0100 Subject: [PATCH 035/124] feat: install `web3-eth-iban` typings dependencies --- packages/web3-eth-iban/package.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/web3-eth-iban/package.json b/packages/web3-eth-iban/package.json index 9d6d6e1641f..374fe4881e1 100644 --- a/packages/web3-eth-iban/package.json +++ b/packages/web3-eth-iban/package.json @@ -11,5 +11,9 @@ "dependencies": { "bn.js": "4.11.8", "web3-utils": "1.2.1" + }, + "devDependencies": { + "definitelytyped-header-parser": "^1.0.1", + "dtslint": "0.4.2" } } From 9f582de7cdb7a3c7c38b902ee8e9ad201f600ab8 Mon Sep 17 00:00:00 2001 From: Josh Stevens Date: Tue, 15 Oct 2019 12:24:22 +0100 Subject: [PATCH 036/124] docs: update readme for `web3-eth-iban` --- packages/web3-eth-iban/README.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/packages/web3-eth-iban/README.md b/packages/web3-eth-iban/README.md index d287cfbf65c..922e72a7052 100644 --- a/packages/web3-eth-iban/README.md +++ b/packages/web3-eth-iban/README.md @@ -24,7 +24,6 @@ npm run-script build-all Then include `dist/web3-eth-iban.js` in your html file. This will expose the `Web3EthIban` object on the window object. - ## Usage ```js @@ -32,12 +31,15 @@ This will expose the `Web3EthIban` object on the window object. var Web3EthIban = require('web3-eth-iban'); var iban = new Web3EthIban('XE75JRZCTTLBSYEQBGAS7GID8DKR7QY0QA3'); -iban.toAddress() -> '0xa94f5374Fce5edBC8E2a8697C15331677e6EbF0B' +iban.toAddress() > '0xa94f5374Fce5edBC8E2a8697C15331677e6EbF0B'; ``` - [docs]: http://web3js.readthedocs.io/en/1.0/ [repo]: https://github.com/ethereum/web3.js +## Types + +All the typescript typings are placed in the types folder. +[docs]: http://web3js.readthedocs.io/en/1.0/ +[repo]: https://github.com/ethereum/web3.js From d0eede13135694122e011a401f2c4038e7509c10 Mon Sep 17 00:00:00 2001 From: Josh Stevens Date: Tue, 15 Oct 2019 12:26:10 +0100 Subject: [PATCH 037/124] feat: `web3-eth-personal` typings --- packages/web3-eth-personal/types/index.d.ts | 68 +++++++++++++++++++ .../web3-eth-personal/types/tsconfig.json | 17 +++++ packages/web3-eth-personal/types/tslint.json | 10 +++ 3 files changed, 95 insertions(+) create mode 100644 packages/web3-eth-personal/types/index.d.ts create mode 100644 packages/web3-eth-personal/types/tsconfig.json create mode 100644 packages/web3-eth-personal/types/tslint.json diff --git a/packages/web3-eth-personal/types/index.d.ts b/packages/web3-eth-personal/types/index.d.ts new file mode 100644 index 00000000000..e7c85e36f1a --- /dev/null +++ b/packages/web3-eth-personal/types/index.d.ts @@ -0,0 +1,68 @@ +/* + This file is part of web3.js. + web3.js is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + web3.js is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + You should have received a copy of the GNU Lesser General Public License + along with web3.js. If not, see . +*/ +/** + * @file index.d.ts + * @author Huan Zhang , + * @author Josh Stevens + * @date 2018 + */ + +import {Accounts} from 'web3-eth-accounts'; +import {provider} from 'web3-providers'; +import {AbstractWeb3Module, RLPEncodedTransaction, TransactionConfig, Web3ModuleOptions} from 'web3-core'; +import * as net from 'net'; + +export class Personal extends AbstractWeb3Module { + constructor(provider: provider, net?: net.Socket|null, options?: Web3ModuleOptions, accounts?: Accounts|null); + + newAccount(password: string, callback?: (error: Error, address: string) => void): Promise; + + sign( + dataToSign: string, + address: string, + password: string, + callback?: (error: Error, signature: string) => void + ): Promise; + + ecRecover( + dataThatWasSigned: string, + signature: string, + callback?: (error: Error, address: string) => void + ): Promise; + + signTransaction( + transactionConfig: TransactionConfig, + password: string, + callback?: (error: Error, RLPEncodedTransaction: RLPEncodedTransaction) => void + ): Promise; + + sendTransaction( + transactionConfig: TransactionConfig, + password: string, + callback?: (error: Error, transactionHash: string) => void + ): Promise; + + unlockAccount( + address: string, + password: string, + unlockDuration: number, + callback?: (error: Error) => void + ): Promise; + + lockAccount(address: string, callback?: (error: Error, success: boolean) => void): Promise; + + getAccounts(callback?: (error: Error, accounts: string[]) => void): Promise; + + importRawKey(privateKey: string, password: string): Promise; +} diff --git a/packages/web3-eth-personal/types/tsconfig.json b/packages/web3-eth-personal/types/tsconfig.json new file mode 100644 index 00000000000..8d56df7eb4f --- /dev/null +++ b/packages/web3-eth-personal/types/tsconfig.json @@ -0,0 +1,17 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": ["es6"], + "target": "es6", + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "strictFunctionTypes": true, + "noEmit": true, + "allowSyntheticDefaultImports": false, + "baseUrl": ".", + "paths": { + "web3-eth-personal": ["."] + } + } +} diff --git a/packages/web3-eth-personal/types/tslint.json b/packages/web3-eth-personal/types/tslint.json new file mode 100644 index 00000000000..6429b0c446e --- /dev/null +++ b/packages/web3-eth-personal/types/tslint.json @@ -0,0 +1,10 @@ +{ + "extends": "dtslint/dtslint.json", + "rules": { + "semicolon": false, + "no-import-default-of-export-equals": false, + "file-name-casing": [true, "kebab-case"], + "whitespace": false, + "no-unnecessary-class": false + } +} From f99498635d10c6d0c331a16ec8a6f4aea258cd67 Mon Sep 17 00:00:00 2001 From: Josh Stevens Date: Tue, 15 Oct 2019 12:26:24 +0100 Subject: [PATCH 038/124] test: `web3-eth-personal` typings tests --- .../types/tests/personal-tests.ts | 117 ++++++++++++++++++ 1 file changed, 117 insertions(+) create mode 100644 packages/web3-eth-personal/types/tests/personal-tests.ts diff --git a/packages/web3-eth-personal/types/tests/personal-tests.ts b/packages/web3-eth-personal/types/tests/personal-tests.ts new file mode 100644 index 00000000000..1e675a5dad6 --- /dev/null +++ b/packages/web3-eth-personal/types/tests/personal-tests.ts @@ -0,0 +1,117 @@ +/* + This file is part of web3.js. + web3.js is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + web3.js is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + You should have received a copy of the GNU Lesser General Public License + along with web3.js. If not, see . +*/ +/** + * @file personal-tests.ts + * @author Huan Zhang + * @author Samuel Furter + * @author Josh Stevens + * @date 2018 + */ + +import {RLPEncodedTransaction} from 'web3-core'; +import {Personal} from 'web3-eth-personal'; +import {Accounts} from 'web3-eth-accounts'; + +const personal = new Personal('http://localhost:7545'); + +// $ExpectType Promise +personal.newAccount('test password'); +// $ExpectType Promise +personal.newAccount('test password', (error: Error, address: string) => {}); + +// $ExpectType Promise +personal.sign('Hello world', '0x11f4d0A3c12e86B4b5F39B213F7E19D048276DAe', 'test password!'); +// $ExpectType Promise +personal.sign( + 'Hello world', + '0x11f4d0A3c12e86B4b5F39B213F7E19D048276DAe', + 'test password!', + (error: Error, signature: string) => {} +); + +// $ExpectType Promise +personal.ecRecover('Hello world', '0x30755ed65396facf86c53e6217c52b4daebe72aa'); +// $ExpectType Promise +personal.ecRecover('Hello world', '0x30755ed65396facf86c53e6217c52b4daebe72aa', (error: Error, address: string) => {}); + +// $ExpectType Promise +personal.signTransaction( + { + from: '0xEB014f8c8B418Db6b45774c326A0E64C78914dC0', + gasPrice: '20000000000', + gas: '21000', + to: '0x3535353535353535353535353535353535353535', + value: '1000000000000000000', + data: '' + }, + 'test password' +); +// $ExpectType Promise +personal.signTransaction( + { + from: '0xEB014f8c8B418Db6b45774c326A0E64C78914dC0', + gasPrice: '20000000000', + gas: '21000', + to: '0x3535353535353535353535353535353535353535', + value: '1000000000000000000', + data: '' + }, + 'test password', + (error: Error, RLPEncodedTransaction: RLPEncodedTransaction) => {} +); + +// $ExpectType Promise +personal.sendTransaction( + { + from: '0xEB014f8c8B418Db6b45774c326A0E64C78914dC0', + gasPrice: '20000000000', + gas: '21000', + to: '0x3535353535353535353535353535353535353535', + value: '1000000000000000000', + data: '' + }, + 'test password' +); + +// $ExpectType Promise +personal.sendTransaction( + { + from: '0xEB014f8c8B418Db6b45774c326A0E64C78914dC0', + gasPrice: '20000000000', + gas: '21000', + to: '0x3535353535353535353535353535353535353535', + value: '1000000000000000000', + data: '' + }, + 'test password', + (error: Error, transactionHash: string) => {} +); + +// $ExpectType Promise +personal.unlockAccount('0x11f4d0A3c12e86B4b5F39B213F7E19D048276DAe', 'test password!', 600); +// $ExpectType Promise +personal.unlockAccount('0x11f4d0A3c12e86B4b5F39B213F7E19D048276DAe', 'test password!', 600, (error: Error) => {}); + +// $ExpectType Promise +personal.lockAccount('0x11f4d0A3c12e86B4b5F39B213F7E19D048276DAe'); +// $ExpectType Promise +personal.lockAccount('0x11f4d0A3c12e86B4b5F39B213F7E19D048276DAe', (error: Error, sucess: boolean) => {}); + +// $ExpectType Promise +personal.getAccounts(); +// $ExpectType Promise +personal.getAccounts((error: Error, accounts: string[]) => {}); + +// $ExpectType Promise +personal.importRawKey('privateKey', 'blah2'); From b8fca8e60c17fac152bbf240367362a7c8f9b281 Mon Sep 17 00:00:00 2001 From: Josh Stevens Date: Tue, 15 Oct 2019 12:26:53 +0100 Subject: [PATCH 039/124] feat: install dependencies for `web3-eth-personal` --- packages/web3-eth-personal/package.json | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packages/web3-eth-personal/package.json b/packages/web3-eth-personal/package.json index cfe8716706a..8d7d54f1417 100644 --- a/packages/web3-eth-personal/package.json +++ b/packages/web3-eth-personal/package.json @@ -9,10 +9,17 @@ }, "main": "src/index.js", "dependencies": { + "@types/node": "^12.6.1", "web3-core": "1.2.1", "web3-core-helpers": "1.2.1", "web3-core-method": "1.2.1", "web3-net": "1.2.1", "web3-utils": "1.2.1" + }, + "devDependencies": { + "definitelytyped-header-parser": "^1.0.1", + "dtslint": "0.4.2", + "web3-eth-accounts": "1.2.1", + "web3-providers": "1.2.1" } } From 6465b1347cb4b22cd2250d773e5b5fc1e23b6ad4 Mon Sep 17 00:00:00 2001 From: Josh Stevens Date: Tue, 15 Oct 2019 12:27:03 +0100 Subject: [PATCH 040/124] docs: update readme `web3-eth-personal` --- packages/web3-eth-personal/README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/web3-eth-personal/README.md b/packages/web3-eth-personal/README.md index f64f9688dbc..2576abe9b71 100644 --- a/packages/web3-eth-personal/README.md +++ b/packages/web3-eth-personal/README.md @@ -24,7 +24,6 @@ npm run-script build-all Then include `dist/web3-eth-personal.js` in your html file. This will expose the `Web3EthPersonal` object on the window object. - ## Usage ```js @@ -34,8 +33,9 @@ var Web3EthPersonal = require('web3-eth-personal'); var personal = new Web3EthPersonal('ws://localhost:8546'); ``` +## Types + +All the typescript typings are placed in the types folder. [docs]: http://web3js.readthedocs.io/en/1.0/ [repo]: https://github.com/ethereum/web3.js - - From fdc8f252508c9d0efbf91a7e6949fbf735e8a0b1 Mon Sep 17 00:00:00 2001 From: Josh Stevens Date: Tue, 15 Oct 2019 12:29:24 +0100 Subject: [PATCH 041/124] feat: `web3-net` typings --- packages/web3-net/types/index.d.ts | 38 +++++++++++++++++++++++++++ packages/web3-net/types/tsconfig.json | 17 ++++++++++++ packages/web3-net/types/tslint.json | 10 +++++++ 3 files changed, 65 insertions(+) create mode 100644 packages/web3-net/types/index.d.ts create mode 100644 packages/web3-net/types/tsconfig.json create mode 100644 packages/web3-net/types/tslint.json diff --git a/packages/web3-net/types/index.d.ts b/packages/web3-net/types/index.d.ts new file mode 100644 index 00000000000..0fad78abf6c --- /dev/null +++ b/packages/web3-net/types/index.d.ts @@ -0,0 +1,38 @@ +/* + This file is part of web3.js. + web3.js is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + web3.js is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + You should have received a copy of the GNU Lesser General Public License + along with web3.js. If not, see . +*/ +/** + * @file index.d.ts + * @author Josh Stevens + * @date 2018 + */ + +import {provider} from 'web3-providers'; +import {AbstractWeb3Module, Web3ModuleOptions} from 'web3-core'; +import * as net from 'net'; + +export class Network extends AbstractWeb3Module { + constructor( + provider: provider, + net?: net.Socket|null, + options?: Web3ModuleOptions + ); + + getNetworkType(callback?: (error: Error, returnValue: string) => void): Promise; + + getId(callback?: (error: Error, id: number) => void): Promise; + + isListening(callback?: (error: Error, listening: boolean) => void): Promise; + + getPeerCount(callback?: (error: Error, peerCount: number) => void): Promise; +} diff --git a/packages/web3-net/types/tsconfig.json b/packages/web3-net/types/tsconfig.json new file mode 100644 index 00000000000..1c940eabc19 --- /dev/null +++ b/packages/web3-net/types/tsconfig.json @@ -0,0 +1,17 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": ["es6"], + "target": "es6", + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "strictFunctionTypes": true, + "noEmit": true, + "allowSyntheticDefaultImports": false, + "baseUrl": ".", + "paths": { + "web3-net": ["."] + } + } +} diff --git a/packages/web3-net/types/tslint.json b/packages/web3-net/types/tslint.json new file mode 100644 index 00000000000..6429b0c446e --- /dev/null +++ b/packages/web3-net/types/tslint.json @@ -0,0 +1,10 @@ +{ + "extends": "dtslint/dtslint.json", + "rules": { + "semicolon": false, + "no-import-default-of-export-equals": false, + "file-name-casing": [true, "kebab-case"], + "whitespace": false, + "no-unnecessary-class": false + } +} From 578db9e1c4e9b12756f814955540b4bd251e8282 Mon Sep 17 00:00:00 2001 From: Josh Stevens Date: Tue, 15 Oct 2019 12:29:37 +0100 Subject: [PATCH 042/124] fix: remove dev dependencies which are not relavant --- packages/web3-eth-personal/package.json | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/web3-eth-personal/package.json b/packages/web3-eth-personal/package.json index 8d7d54f1417..1c4a98e83ac 100644 --- a/packages/web3-eth-personal/package.json +++ b/packages/web3-eth-personal/package.json @@ -18,8 +18,6 @@ }, "devDependencies": { "definitelytyped-header-parser": "^1.0.1", - "dtslint": "0.4.2", - "web3-eth-accounts": "1.2.1", - "web3-providers": "1.2.1" + "dtslint": "0.4.2" } } From 025cf2ba4fa2e05da350ec7396e3115b5526d260 Mon Sep 17 00:00:00 2001 From: Josh Stevens Date: Tue, 15 Oct 2019 12:29:48 +0100 Subject: [PATCH 043/124] test: `web3-net` typings tests --- packages/web3-net/types/tests/network-test.ts | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 packages/web3-net/types/tests/network-test.ts diff --git a/packages/web3-net/types/tests/network-test.ts b/packages/web3-net/types/tests/network-test.ts new file mode 100644 index 00000000000..ffc10abbc17 --- /dev/null +++ b/packages/web3-net/types/tests/network-test.ts @@ -0,0 +1,40 @@ +/* + This file is part of web3.js. + web3.js is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + web3.js is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + You should have received a copy of the GNU Lesser General Public License + along with web3.js. If not, see . +*/ +/** + * @file network-test.ts + * @author Josh Stevens + * @date 2018 + */ + +import {Network} from 'web3-net'; + +const network = new Network('http://localhost:5000'); + +// $ExpectType Promise +network.getNetworkType((error, returnValue) => { console.log(returnValue) }); + +// $ExpectType Promise +network.getId(); +// $ExpectType Promise +network.getId((error: Error, id: number) => { console.log(id) }); + +// $ExpectType Promise +network.isListening(); +// $ExpectType Promise +network.isListening((error: Error, listening: boolean) => { console.log(listening) }); + +// $ExpectType Promise +network.getPeerCount(); +// $ExpectType Promise +network.getPeerCount((error: Error, peerCount: number) => { console.log(peerCount) }); From 83db6d7d994d571352568b3ffb5c149ceb60075a Mon Sep 17 00:00:00 2001 From: Josh Stevens Date: Tue, 15 Oct 2019 12:30:06 +0100 Subject: [PATCH 044/124] docs: update readme for `web3-net` --- packages/web3-net/README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/web3-net/README.md b/packages/web3-net/README.md index a8160c25b2f..82c3726ddde 100644 --- a/packages/web3-net/README.md +++ b/packages/web3-net/README.md @@ -24,7 +24,6 @@ npm run-script build-all Then include `dist/web3-net.js` in your html file. This will expose the `Web3Net` object on the window object. - ## Usage ```js @@ -34,8 +33,9 @@ var Web3Net = require('web3-net'); var net = new Web3Net('ws://localhost:8546'); ``` +## Types + +All the typescript typings are placed in the types folder. [docs]: http://web3js.readthedocs.io/en/1.0/ [repo]: https://github.com/ethereum/web3.js - - From 5d239fc3a27f45f9631aa81ca0f9d8a996afb449 Mon Sep 17 00:00:00 2001 From: Josh Stevens Date: Tue, 15 Oct 2019 12:30:26 +0100 Subject: [PATCH 045/124] feat: install dev dependencies for `web3-net` --- packages/web3-net/package.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/web3-net/package.json b/packages/web3-net/package.json index a6512e7025f..486b218b0af 100644 --- a/packages/web3-net/package.json +++ b/packages/web3-net/package.json @@ -12,5 +12,9 @@ "web3-core": "1.2.1", "web3-core-method": "1.2.1", "web3-utils": "1.2.1" + }, + "devDependencies": { + "definitelytyped-header-parser": "^1.0.1", + "dtslint": "0.4.2" } } From 03af50fbf0f9f5a39988bbab8e722b2ba3323dd9 Mon Sep 17 00:00:00 2001 From: Josh Stevens Date: Tue, 15 Oct 2019 12:31:45 +0100 Subject: [PATCH 046/124] feat: `web3-shh` typings --- packages/web3-shh/types/index.d.ts | 131 ++++++++++++++++++++++++++ packages/web3-shh/types/tsconfig.json | 17 ++++ packages/web3-shh/types/tslint.json | 11 +++ 3 files changed, 159 insertions(+) create mode 100644 packages/web3-shh/types/index.d.ts create mode 100644 packages/web3-shh/types/tsconfig.json create mode 100644 packages/web3-shh/types/tslint.json diff --git a/packages/web3-shh/types/index.d.ts b/packages/web3-shh/types/index.d.ts new file mode 100644 index 00000000000..bf48986283c --- /dev/null +++ b/packages/web3-shh/types/index.d.ts @@ -0,0 +1,131 @@ +/* + This file is part of web3.js. + web3.js is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + web3.js is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + You should have received a copy of the GNU Lesser General Public License + along with web3.js. If not, see . +*/ +/** + * @file index.d.ts + * @author Josh Stevens , Samuel Furter + * @date 2018 + */ + +import {AbstractWeb3Module, Web3ModuleOptions} from 'web3-core'; +import {provider} from 'web3-providers'; +import {Network} from 'web3-net'; +import * as net from 'net'; + +export class Shh extends AbstractWeb3Module { + constructor( + provider: provider, + net?: net.Socket|null, + options?: Web3ModuleOptions + ); + + net: Network; + + getVersion(callback?: (error: Error, version: string) => void): Promise; + + getInfo(callback?: (error: Error, info: Info) => void): Promise; + + setMaxMessageSize(size: number, callback?: (error: Error, result: boolean) => void): Promise; + + setMinPoW(pow: number, callback?: (error: Error, result: boolean) => void): Promise; + + markTrustedPeer(enode: string, callback?: (error: Error, result: boolean) => void): Promise + + newKeyPair(callback?: (error: Error, key: string) => void): Promise; + + addPrivateKey(privateKey: string, callback?: (error: Error, privateKey: string) => void): Promise; + + deleteKeyPair(id: string, callback?: (error: Error, result: boolean) => void): Promise; + + hasKeyPair(id: string, callback?: (error: Error, result: boolean) => void): Promise; + + getPublicKey(id: string, callback?: (error: Error, publicKey: string) => void): Promise; + + getPrivateKey(id: string, callback?: (error: Error, privateKey: string) => void): Promise; + + newSymKey(callback?: (error: Error, key: string) => void): Promise; + + addSymKey(symKey: string, callback?: (error: Error, key: string) => void): Promise; + + generateSymKeyFromPassword(password: string, callback?: (error: Error, key: string) => void): Promise; + + hasSymKey(id: string, callback?: (error: Error, result: boolean) => void): Promise; + + getSymKey(id: string, callback?: (error: Error, key: string) => void): Promise; + + deleteSymKey(id: string, callback?: (error: Error, result: boolean) => void): Promise + + post(object: PostWithSymKey | PostWithPubKey, callback?: (error: Error, result: string) => void): Promise; + + subscribe(string: 'messages', options: SubscriptionOptions, callback?: (error: Error, message: Notification, subscription: any) => void): Subscribe; + + newMessageFilter(options?: SubscriptionOptions): Promise; + + deleteMessageFilter(id: string): Promise; + + getFilterMessages(id: string): Promise; +} + +export interface Info { + messages: number; + maxMessageSize: number; + memory: number; + minPow: number; +} + +export interface PostBase { + sig?: string; + ttl: number; + topic: string; + payload: string; + padding?: number; + powTime?: number; + powTarget?: number; + targetPeer?: number; +} + +export interface PostWithSymKey extends PostBase { + symKeyID: string; +} + +export interface PostWithPubKey extends PostBase { + pubKey: string; +} + +export interface SubscriptionOptions { + symKeyID?: string; + privateKeyID?: string; + sig?: string; + topics?: string[]; + minPow?: number; + allowP2P?: boolean; + ttl?: number; +} + +export interface Notification { + hash: string; + sig?: string; + recipientPublicKey?: string; + timestamp: string; + ttl: number; + topic: string; + payload: string; + padding: number; + pow: number; +} + +export interface Subscribe { + on(type: 'data', handler: (data: Notification) => void): void; + + on(type: 'error', handler: (data: Error) => void): void; +} diff --git a/packages/web3-shh/types/tsconfig.json b/packages/web3-shh/types/tsconfig.json new file mode 100644 index 00000000000..5129cd82394 --- /dev/null +++ b/packages/web3-shh/types/tsconfig.json @@ -0,0 +1,17 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": ["es6"], + "target": "es6", + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "strictFunctionTypes": true, + "noEmit": true, + "allowSyntheticDefaultImports": false, + "baseUrl": ".", + "paths": { + "web3-shh": ["."] + } + } +} diff --git a/packages/web3-shh/types/tslint.json b/packages/web3-shh/types/tslint.json new file mode 100644 index 00000000000..871d605704b --- /dev/null +++ b/packages/web3-shh/types/tslint.json @@ -0,0 +1,11 @@ +{ + "extends": "dtslint/dtslint.json", + "rules": { + "semicolon": false, + "no-import-default-of-export-equals": false, + "file-name-casing": [true, "kebab-case"], + "whitespace": false, + "no-unnecessary-class": false, + "unified-signatures": false + } +} From a7ac6a2912ae2ee02a9b544fc1c190ccaac3e54d Mon Sep 17 00:00:00 2001 From: Josh Stevens Date: Tue, 15 Oct 2019 12:31:56 +0100 Subject: [PATCH 047/124] test: `web3-shh` typings tests --- packages/web3-shh/types/tests/shh-test.ts | 214 ++++++++++++++++++++++ 1 file changed, 214 insertions(+) create mode 100644 packages/web3-shh/types/tests/shh-test.ts diff --git a/packages/web3-shh/types/tests/shh-test.ts b/packages/web3-shh/types/tests/shh-test.ts new file mode 100644 index 00000000000..7a08cbc2431 --- /dev/null +++ b/packages/web3-shh/types/tests/shh-test.ts @@ -0,0 +1,214 @@ +/* + This file is part of web3.js. + web3.js is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + web3.js is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + You should have received a copy of the GNU Lesser General Public License + along with web3.js. If not, see . +*/ +/** + * @file shh-tests.ts + * @author Josh Stevens + * @date 2018 + */ + +import {Shh, Info, Notification} from 'web3-shh'; + +const shh = new Shh('https://localhost:5000'); + +// $ExpectType boolean +shh.setProvider('https://localhost:3000'); + +// $ExpectType Providers +Shh.providers; + +// $ExpectType any +shh.givenProvider; + +// $ExpectType HttpProvider | IpcProvider | WebsocketProvider | Web3EthereumProvider | CustomProvider +shh.currentProvider; + +// $ExpectType BatchRequest +new shh.BatchRequest(); + +// $ExpectType Promise +shh.net.getId(); +// $ExpectType Promise +shh.net.getId((error: Error, id: number) => {}); + +// $ExpectType Promise +shh.net.isListening(); +// $ExpectType Promise +shh.net.isListening((error: Error, listening: boolean) => {}); + +// $ExpectType Promise +shh.net.getPeerCount(); +// $ExpectType Promise +shh.net.getPeerCount((error: Error, peerCount: number) => {}); + +// $ExpectType Promise +shh.getVersion(); +// $ExpectType Promise +shh.getVersion((error: Error, version: string) => {}); + +// $ExpectType Promise +shh.getInfo(); +// $ExpectType Promise +shh.getInfo((error: Error, info: Info) => {}); + +// $ExpectType Promise +shh.setMaxMessageSize(1234565); +// $ExpectType Promise +shh.setMaxMessageSize(1234565, (error: Error, result: boolean) => {}); + +// $ExpectType Promise +shh.setMinPoW(0.9); +// $ExpectType Promise +shh.setMinPoW(0.9, (error: Error, result: boolean) => {}); + +// $ExpectType Promise +shh.markTrustedPeer('test'); +// $ExpectType Promise +shh.markTrustedPeer('test', (error: Error, result: boolean) => {}); + +// $ExpectType Promise +shh.newKeyPair(); +// $ExpectType Promise +shh.newKeyPair((error: Error, key: string) => {}); + +// $ExpectType Promise +shh.addPrivateKey('0x8bda3abeb454847b515fa9b404cede50b1cc63cfdeddd4999d074284b4c21e15'); +// $ExpectType Promise +shh.addPrivateKey( + '0x8bda3abeb454847b515fa9b404cede50b1cc63cfdeddd4999d074284b4c21e15', + (error: Error, privateKey: string) => {} +); + +// $ExpectType Promise +shh.deleteKeyPair('3e22b9ffc2387e18636e0a3d0c56b023264c16e78a2adcba1303cefc685e610f'); +// $ExpectType Promise +shh.deleteKeyPair( + '3e22b9ffc2387e18636e0a3d0c56b023264c16e78a2adcba1303cefc685e610f', + (error: Error, result: boolean) => {} +); + +// $ExpectType Promise +shh.hasKeyPair('fe22b9ffc2387e18636e0a3d0c56b023264c16e78a2adcba1303cefc685e610f'); +// $ExpectType Promise +shh.hasKeyPair( + 'fe22b9ffc2387e18636e0a3d0c56b023264c16e78a2adcba1303cefc685e610f', + (error: Error, result: boolean) => {} +); + +// $ExpectType Promise +shh.getPublicKey('3e22b9ffc2387e18636e0a3d0c56b023264c16e78a2adcba1303cefc685e610f'); +// $ExpectType Promise +shh.getPublicKey( + '3e22b9ffc2387e18636e0a3d0c56b023264c16e78a2adcba1303cefc685e610f', + (error: Error, publicKey: string) => {} +); + +// $ExpectType Promise +shh.getPrivateKey('3e22b9ffc2387e18636e0a3d0c56b023264c16e78a2adcba1303cefc685e610f'); +// $ExpectType Promise +shh.getPrivateKey( + '3e22b9ffc2387e18636e0a3d0c56b023264c16e78a2adcba1303cefc685e610f', + (error: Error, privateKey: string) => {} +); + +// $ExpectType Promise +shh.newSymKey(); +// $ExpectType Promise +shh.newSymKey((error: Error, key: string) => {}); + +// $ExpectType Promise +shh.addSymKey('0x5e11b9ffc2387e18636e0a3d0c56b023264c16e78a2adcba1303cefc685e610f'); +// $ExpectType Promise +shh.addSymKey('0x5e11b9ffc2387e18636e0a3d0c56b023264c16e78a2adcba1303cefc685e610f', (error: Error, key: string) => {}); + +// $ExpectType Promise +shh.generateSymKeyFromPassword('Never use this password - password!'); +// $ExpectType Promise +shh.generateSymKeyFromPassword('Never use this password - password!', (error: Error, key: string) => {}); + +// $ExpectType Promise +shh.hasSymKey('f6dcf21ed6a17bd78d8c4c63195ab997b3b65ea683705501eae82d32667adc92'); +// $ExpectType Promise +shh.hasSymKey( + 'f6dcf21ed6a17bd78d8c4c63195ab997b3b65ea683705501eae82d32667adc92', + (error: Error, result: boolean) => {} +); + +// $ExpectType Promise +shh.getSymKey('af33b9ffc2387e18636e0a3d0c56b023264c16e78a2adcba1303cefc685e610f'); +// $ExpectType Promise +shh.getSymKey('af33b9ffc2387e18636e0a3d0c56b023264c16e78a2adcba1303cefc685e610f', (error: Error, key: string) => {}); + +// $ExpectType Promise +shh.deleteSymKey('bf31b9ffc2387e18636e0a3d0c56b023264c16e78a2adcba1303cefc685e610f'); +// $ExpectType Promise +shh.deleteSymKey( + 'bf31b9ffc2387e18636e0a3d0c56b023264c16e78a2adcba1303cefc685e610f', + (error: Error, result: boolean) => {} +); + +// $ExpectType Promise +shh.post({ + symKeyID: 'sd3', + sig: 'sds5', + ttl: 10, + topic: '0xffaadd11', + payload: '0xffffffdddddd1122', + powTime: 3, + powTarget: 0.5 +}); +// $ExpectType Promise +shh.post( + { + symKeyID: 'sd3', + sig: 'sds5', + ttl: 10, + topic: '0xffaadd11', + payload: '0xffffffdddddd1122', + powTime: 3, + powTarget: 0.5 + }, + (error: Error, result: string) => {} +); + +// $ExpectType Subscribe +shh.subscribe('messages', { + symKeyID: 'bf31b9ffc2387e18636e0a3d0c56b023264c16e78a2adcba1303cefc685e610f', + sig: + '0x04d1574d4eab8f3dde4d2dc7ed2c4d699d77cbbdd09167b8fffa099652ce4df00c4c6e0263eafe05007a46fdf0c8d32b11aeabcd3abbc7b2bc2bb967368a68e9c6', + ttl: 20, + topics: ['0xffddaa11'], + minPow: 0.8 +}); +// $ExpectType Subscribe +shh.subscribe( + 'messages', + { + symKeyID: 'bf31b9ffc2387e18636e0a3d0c56b023264c16e78a2adcba1303cefc685e610f', + sig: + '0x04d1574d4eab8f3dde4d2dc7ed2c4d699d77cbbdd09167b8fffa099652ce4df00c4c6e0263eafe05007a46fdf0c8d32b11aeabcd3abbc7b2bc2bb967368a68e9c6', + ttl: 20, + topics: ['0xffddaa11'], + minPow: 0.8 + }, + (error: Error, message: Notification, subscription: any) => {} +); + +// $ExpectType Promise +shh.newMessageFilter(); + +// $ExpectType Promise +shh.deleteMessageFilter('2b47fbafb3cce24570812a82e6e93cd9e2551bbc4823f6548ff0d82d2206b326'); + +// $ExpectType Promise +shh.getFilterMessages('2b47fbafb3cce24570812a82e6e93cd9e2551bbc4823f6548ff0d82d2206b326'); From ab79404dc20675edd49b9dd2a6c30e533652a690 Mon Sep 17 00:00:00 2001 From: Josh Stevens Date: Tue, 15 Oct 2019 12:32:11 +0100 Subject: [PATCH 048/124] docs: update `web3-shh` readme --- packages/web3-shh/README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/web3-shh/README.md b/packages/web3-shh/README.md index 7b2bf688fc8..7958b153b1a 100644 --- a/packages/web3-shh/README.md +++ b/packages/web3-shh/README.md @@ -2,7 +2,7 @@ This is a sub package of [web3.js][repo] -This is the whisper v5 package. +This is the whisper v5 package. Please read the [documentation][docs] for more. ## Installation @@ -24,7 +24,6 @@ npm run-script build-all Then include `dist/web3-shh.js` in your html file. This will expose the `Web3Personal` object on the window object. - ## Usage ```js @@ -34,8 +33,9 @@ var Web3Personal = require('web3-shh'); var shh = new Web3Personal('ws://localhost:8546'); ``` +## Types + +All the typescript typings are placed in the types folder. [docs]: http://web3js.readthedocs.io/en/1.0/ [repo]: https://github.com/ethereum/web3.js - - From 0ddfc9d84f5e930e7621d24ac0916fb63e16c796 Mon Sep 17 00:00:00 2001 From: Josh Stevens Date: Tue, 15 Oct 2019 12:32:21 +0100 Subject: [PATCH 049/124] feat: install dev dependencies in `web3-shh` --- packages/web3-shh/package.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/web3-shh/package.json b/packages/web3-shh/package.json index 4c4e6294abc..655e6c1838c 100644 --- a/packages/web3-shh/package.json +++ b/packages/web3-shh/package.json @@ -13,5 +13,9 @@ "web3-core-method": "1.2.1", "web3-core-subscriptions": "1.2.1", "web3-net": "1.2.1" + }, + "devDependencies": { + "definitelytyped-header-parser": "^1.0.1", + "dtslint": "0.4.2" } } From e4bf89a4bd809a80f241dc2396a209351ebe2dc4 Mon Sep 17 00:00:00 2001 From: Josh Stevens Date: Tue, 15 Oct 2019 12:33:20 +0100 Subject: [PATCH 050/124] feat: web3-utils type config files --- packages/web3-utils/README.md | 8 +- packages/web3-utils/package.json | 4 + packages/web3-utils/types/index.d.ts | 226 ++++++++++++++++++++++++ packages/web3-utils/types/tsconfig.json | 17 ++ packages/web3-utils/types/tslint.json | 9 + 5 files changed, 260 insertions(+), 4 deletions(-) create mode 100644 packages/web3-utils/types/index.d.ts create mode 100644 packages/web3-utils/types/tsconfig.json create mode 100644 packages/web3-utils/types/tslint.json diff --git a/packages/web3-utils/README.md b/packages/web3-utils/README.md index 11c1b8103df..accc1924bbd 100644 --- a/packages/web3-utils/README.md +++ b/packages/web3-utils/README.md @@ -2,7 +2,7 @@ This is a sub package of [web3.js][repo] -This contains useful utility functions for Dapp developers. +This contains useful utility functions for Dapp developers. Please read the [documentation][docs] for more. ## Installation @@ -24,7 +24,6 @@ npm run-script build-all Then include `dist/web3-utils.js` in your html file. This will expose the `Web3Utils` object on the window object. - ## Usage ```js @@ -39,8 +38,9 @@ console.log(Web3Utils); } ``` +## Types + +All the typescript typings are placed in the types folder. [docs]: http://web3js.readthedocs.io/en/1.0/ [repo]: https://github.com/ethereum/web3.js - - diff --git a/packages/web3-utils/package.json b/packages/web3-utils/package.json index a4389340440..1decdac2b11 100644 --- a/packages/web3-utils/package.json +++ b/packages/web3-utils/package.json @@ -16,5 +16,9 @@ "randombytes": "^2.1.0", "underscore": "1.9.1", "utf8": "3.0.0" + }, + "devDependencies": { + "definitelytyped-header-parser": "^1.0.1", + "dtslint": "0.4.2" } } diff --git a/packages/web3-utils/types/index.d.ts b/packages/web3-utils/types/index.d.ts new file mode 100644 index 00000000000..d3a1104131f --- /dev/null +++ b/packages/web3-utils/types/index.d.ts @@ -0,0 +1,226 @@ +/* + This file is part of web3.js. + + web3.js is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + web3.js is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License + along with web3.js. If not, see . +*/ +/** + * @file index.d.ts + * @author Josh Stevens + * @date 2018 + */ + +import BN = require('bn.js'); +import {Buffer} from 'buffer'; + +export type Unit = + | 'noether' + | 'wei' + | 'kwei' + | 'Kwei' + | 'babbage' + | 'femtoether' + | 'mwei' + | 'Mwei' + | 'lovelace' + | 'picoether' + | 'gwei' + | 'Gwei' + | 'shannon' + | 'nanoether' + | 'nano' + | 'szabo' + | 'microether' + | 'micro' + | 'finney' + | 'milliether' + | 'milli' + | 'ether' + | 'kether' + | 'grand' + | 'mether' + | 'gether' + | 'tether'; + +export type Mixed = + | string + | number + | BN + | { + type: string; + value: string; + } + | { + t: string; + v: string | BN | number; + } + | boolean; + +export type Hex = string | number; + +// utils types +export function isBN(value: string | number): boolean; +export function isBigNumber(value: BN): boolean; +export function toBN(value: number | string): BN; +export function toTwosComplement(value: number | string | BN): string; +export function isAddress(address: string, chainId?: number): boolean; +export function isHex(hex: Hex): boolean; +export function isHexStrict(hex: Hex): boolean; +export function asciiToHex(string: string, length?: number): string; +export function hexToAscii(string: string): string; +export function toAscii(string: string): string; +export function bytesToHex(bytes: number[]): string; +export function numberToHex(value: number | string | BN): string; +export function checkAddressChecksum(address: string, chainId?: number): boolean; +export function fromAscii(string: string): string; +export function fromDecimal(value: string | number): string; +export function fromUtf8(string: string): string; +export function fromWei(value: string | BN, unit?: Unit): string; +export function hexToBytes(hex: Hex): number[]; +export function hexToNumber(hex: Hex): number; +export function hexToNumberString(hex: Hex): string; +export function hexToString(hex: Hex): string; +export function hexToUtf8(string: string): string; +export function keccak256(value: string | BN): string; +export function padLeft(value: string | number, characterAmount: number, sign?: string): string; +export function leftPad(string: string | number, characterAmount: number, sign?: string): string; +export function rightPad(string: string | number, characterAmount: number, sign?: string): string; +export function padRight(string: string | number, characterAmount: number, sign?: string): string; +export function sha3(value: string | BN): string; +export function randomHex(bytesSize: number): string; +export function utf8ToHex(string: string): string; +export function stringToHex(string: string): string; +export function toChecksumAddress(address: string, chainId?: number): string; +export function toDecimal(hex: Hex): number; +export function toHex(value: number | string | BN): string; +export function toUtf8(string: string): string; +export function toWei(val: BN, unit?: Unit): BN; +export function toWei(val: string, unit?: Unit): string; +export function isBloom(bloom: string): boolean; +export function isTopic(topic: string): boolean; +export function jsonInterfaceMethodToString(abiItem: AbiItem): string; +export function soliditySha3(...val: Mixed[]): string; +export function getUnitValue(unit: Unit): string; +export function unitMap(): Units; +export function testAddress(bloom: string, address: string): boolean; +export function testTopic(bloom: string, topic: string): boolean; +export function getSignatureParameters(signature: string): {r: string; s: string; v: number}; +export function stripHexPrefix(str: string): string; + +// interfaces +export interface Utils { + isBN(value: string | number): boolean; + isBigNumber(value: BN): boolean; + toBN(value: number | string): BN; + toTwosComplement(value: number | string | BN): string; + isAddress(address: string, chainId?: number): boolean; + isHex(hex: Hex): boolean; + isHexStrict(hex: Hex): boolean; + asciiToHex(string: string, length?: number): string; + hexToAscii(string: string): string; + toAscii(string: string): string; + bytesToHex(bytes: number[]): string; + numberToHex(value: number | string | BN): string; + checkAddressChecksum(address: string, chainId?: number): boolean; + fromAscii(string: string): string; + fromDecimal(value: string | number): string; + fromUtf8(string: string): string; + fromWei(value: string | BN, unit?: Unit): string; + hexToBytes(hex: Hex): number[]; + hexToNumber(hex: Hex): number; + hexToNumberString(hex: Hex): string; + hexToString(hex: Hex): string; + hexToUtf8(string: string): string; + keccak256(value: string | BN): string; + padLeft(value: string | number, characterAmount: number, sign?: string): string; + leftPad(string: string | number, characterAmount: number, sign?: string): string; + rightPad(string: string | number, characterAmount: number, sign?: string): string; + padRight(string: string | number, characterAmount: number, sign?: string): string; + sha3(value: string | BN): string; + randomHex(bytesSize: number): string; + utf8ToHex(string: string): string; + stringToHex(string: string): string; + toChecksumAddress(address: string, chainId?: number): string; + toDecimal(hex: Hex): number; + toHex(value: number | string | BN): string; + toUtf8(string: string): string; + toWei(val: BN, unit?: Unit): BN; + toWei(val: string, unit?: Unit): string; + isBloom(bloom: string): boolean; + isTopic(topic: string): boolean; + jsonInterfaceMethodToString(abiItem: AbiItem): string; + soliditySha3(...val: Mixed[]): string; + getUnitValue(unit: Unit): string; + unitMap(): Units; + testAddress(bloom: string, address: string): boolean; + testTopic(bloom: string, topic: string): boolean; + getSignatureParameters(signature: string): {r: string; s: string; v: number}; + stripHexPrefix(str: string): string; +} + +export interface Units { + noether: string; + wei: string; + kwei: string; + Kwei: string; + babbage: string; + femtoether: string; + mwei: string; + Mwei: string; + lovelace: string; + picoether: string; + gwei: string; + Gwei: string; + shannon: string; + nanoether: string; + nano: string; + szabo: string; + microether: string; + micro: string; + finney: string; + milliether: string; + milli: string; + ether: string; + kether: string; + grand: string; + mether: string; + gether: string; + tether: string; +} + +export type AbiType = 'function' | 'constructor' | 'event' | 'fallback'; +export type StateMutabilityType = 'pure' | 'view' | 'nonpayable' | 'payable'; + +export interface AbiItem { + anonymous?: boolean; + constant?: boolean; + inputs?: AbiInput[]; + name?: string; + outputs?: AbiOutput[]; + payable?: boolean; + stateMutability?: StateMutabilityType; + type: AbiType; +} + +export interface AbiInput { + name: string; + type: string; + indexed?: boolean; + components?: AbiInput[]; +} + +export interface AbiOutput { + name: string; + type: string; + components?: AbiOutput[]; +} diff --git a/packages/web3-utils/types/tsconfig.json b/packages/web3-utils/types/tsconfig.json new file mode 100644 index 00000000000..e0200c80d27 --- /dev/null +++ b/packages/web3-utils/types/tsconfig.json @@ -0,0 +1,17 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": ["es6"], + "target": "es6", + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "strictFunctionTypes": true, + "noEmit": true, + "allowSyntheticDefaultImports": false, + "baseUrl": ".", + "paths": { + "web3-utils": ["."] + } + } +} diff --git a/packages/web3-utils/types/tslint.json b/packages/web3-utils/types/tslint.json new file mode 100644 index 00000000000..dc95ea202b8 --- /dev/null +++ b/packages/web3-utils/types/tslint.json @@ -0,0 +1,9 @@ +{ + "extends": "dtslint/dtslint.json", + "rules": { + "semicolon": false, + "no-import-default-of-export-equals": false, + "file-name-casing": [true, "kebab-case"], + "whitespace": false + } +} From ac81f79d44ff668349910f85806a4f535000e944 Mon Sep 17 00:00:00 2001 From: Josh Stevens Date: Tue, 15 Oct 2019 12:33:36 +0100 Subject: [PATCH 051/124] feat: ascii to hex typings test --- .../types/tests/ascii-to-hex-test.ts | 47 +++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 packages/web3-utils/types/tests/ascii-to-hex-test.ts diff --git a/packages/web3-utils/types/tests/ascii-to-hex-test.ts b/packages/web3-utils/types/tests/ascii-to-hex-test.ts new file mode 100644 index 00000000000..0f2f750ce85 --- /dev/null +++ b/packages/web3-utils/types/tests/ascii-to-hex-test.ts @@ -0,0 +1,47 @@ +/* + This file is part of web3.js. + + web3.js is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + web3.js is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License + along with web3.js. If not, see . +*/ +/** + * @file ascii-to-hex-test.ts + * @author Josh Stevens + * @date 2018 + */ + +import BN = require('bn.js'); +import {asciiToHex} from 'web3-utils'; + +// $ExpectType string +asciiToHex('I have 100!'); + +// $ExpectType string +asciiToHex('I have 100!', 32); + +// $ExpectError +asciiToHex(345); +// $ExpectError +asciiToHex(new BN(3)); +// $ExpectError +asciiToHex({}); +// $ExpectError +asciiToHex(true); +// $ExpectError +asciiToHex(['string']); +// $ExpectError +asciiToHex([4]); +// $ExpectError +asciiToHex(null); +// $ExpectError +asciiToHex(undefined); From f12487108d3a046bff6932180ce8bb8370e16352 Mon Sep 17 00:00:00 2001 From: Josh Stevens Date: Tue, 15 Oct 2019 12:33:42 +0100 Subject: [PATCH 052/124] feat: bytes to hex typings test --- .../types/tests/bytes-to-hex-test.ts | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 packages/web3-utils/types/tests/bytes-to-hex-test.ts diff --git a/packages/web3-utils/types/tests/bytes-to-hex-test.ts b/packages/web3-utils/types/tests/bytes-to-hex-test.ts new file mode 100644 index 00000000000..af7253c352f --- /dev/null +++ b/packages/web3-utils/types/tests/bytes-to-hex-test.ts @@ -0,0 +1,44 @@ +/* + This file is part of web3.js. + + web3.js is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + web3.js is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License + along with web3.js. If not, see . +*/ +/** + * @file bytes-to-hex-test.ts + * @author Josh Stevens + * @date 2018 + */ + +import BN = require('bn.js'); +import {bytesToHex} from 'web3-utils'; + +// $ExpectType string +bytesToHex([72]); + +// $ExpectError +bytesToHex(['string']); +// $ExpectError +bytesToHex(345); +// $ExpectError +bytesToHex(new BN(3)); +// $ExpectError +bytesToHex({}); +// $ExpectError +bytesToHex(true); +// $ExpectError +bytesToHex(['string']); +// $ExpectError +bytesToHex(null); +// $ExpectError +bytesToHex(undefined); From 95665dee3c4dbeab2c9a452a60703e3615f6bb2a Mon Sep 17 00:00:00 2001 From: Josh Stevens Date: Tue, 15 Oct 2019 12:33:52 +0100 Subject: [PATCH 053/124] feat: check address checksum typings test --- .../tests/check-address-checksum-test.ts | 60 +++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 packages/web3-utils/types/tests/check-address-checksum-test.ts diff --git a/packages/web3-utils/types/tests/check-address-checksum-test.ts b/packages/web3-utils/types/tests/check-address-checksum-test.ts new file mode 100644 index 00000000000..0ed905dc55b --- /dev/null +++ b/packages/web3-utils/types/tests/check-address-checksum-test.ts @@ -0,0 +1,60 @@ +/* + This file is part of web3.js. + + web3.js is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + web3.js is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License + along with web3.js. If not, see . +*/ +/** + * @file check-address-checksum-test.ts + * @author Josh Stevens + * @date 2018 + */ + +import BN = require('bn.js'); +import {checkAddressChecksum} from 'web3-utils'; + +// $ExpectType boolean +checkAddressChecksum('0x8ee7f17bb3f88b01247c21ab6603880b64ae53e811f5e01138822e558cf1ab51'); +// $ExpectType boolean +checkAddressChecksum('0xFb6916095CA1dF60bb79CE92ce3Ea74C37c5D359', 31); +// $ExpectType boolean +checkAddressChecksum('0xFb6916095CA1dF60bb79CE92ce3Ea74C37c5D359', undefined); + +// $ExpectError +checkAddressChecksum([4]); +// $ExpectError +checkAddressChecksum(['string']); +// $ExpectError +checkAddressChecksum(345); +// $ExpectError +checkAddressChecksum(new BN(3)); +// $ExpectError +checkAddressChecksum({}); +// $ExpectError +checkAddressChecksum(true); +// $ExpectError +checkAddressChecksum(null); +// $ExpectError +checkAddressChecksum(undefined); +// $ExpectError +checkAddressChecksum('0xd1220a0cf47c7b9be7a2e6ba89f429762e7b9adb', 'string'); +// $ExpectError +checkAddressChecksum('0xd1220a0cf47c7b9be7a2e6ba89f429762e7b9adb', [4]); +// $ExpectError +checkAddressChecksum('0xd1220a0cf47c7b9be7a2e6ba89f429762e7b9adb', new BN(3)); +// $ExpectError +checkAddressChecksum('0xd1220a0cf47c7b9be7a2e6ba89f429762e7b9adb', {}); +// $ExpectError +checkAddressChecksum('0xd1220a0cf47c7b9be7a2e6ba89f429762e7b9adb', true); +// $ExpectError +checkAddressChecksum('0xd1220a0cf47c7b9be7a2e6ba89f429762e7b9adb', null); From 49f224cb89d8e3009113a01458d715fcf34757ea Mon Sep 17 00:00:00 2001 From: Josh Stevens Date: Tue, 15 Oct 2019 12:34:01 +0100 Subject: [PATCH 054/124] feat: from ascii typings test --- .../web3-utils/types/tests/from-ascii-test.ts | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 packages/web3-utils/types/tests/from-ascii-test.ts diff --git a/packages/web3-utils/types/tests/from-ascii-test.ts b/packages/web3-utils/types/tests/from-ascii-test.ts new file mode 100644 index 00000000000..504c6ee2698 --- /dev/null +++ b/packages/web3-utils/types/tests/from-ascii-test.ts @@ -0,0 +1,44 @@ +/* + This file is part of web3.js. + + web3.js is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + web3.js is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License + along with web3.js. If not, see . +*/ +/** + * @file from-ascii-test.ts + * @author Josh Stevens + * @date 2018 + */ + +import BN = require('bn.js'); +import {fromAscii} from 'web3-utils'; + +// $ExpectType string +fromAscii('I have 100!'); + +// $ExpectError +fromAscii(345); +// $ExpectError +fromAscii(new BN(3)); +// $ExpectError +fromAscii({}); +// $ExpectError +fromAscii(true); +// $ExpectError +fromAscii(['string']); +// $ExpectError +fromAscii([4]); +// $ExpectError +fromAscii(null); +// $ExpectError +fromAscii(undefined); From 1c8ae3be690277365184160420d4b8ff62ef1282 Mon Sep 17 00:00:00 2001 From: Josh Stevens Date: Tue, 15 Oct 2019 12:34:09 +0100 Subject: [PATCH 055/124] feat: from decimal typings test --- .../types/tests/from-decimal-test.ts | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 packages/web3-utils/types/tests/from-decimal-test.ts diff --git a/packages/web3-utils/types/tests/from-decimal-test.ts b/packages/web3-utils/types/tests/from-decimal-test.ts new file mode 100644 index 00000000000..3870aa3e701 --- /dev/null +++ b/packages/web3-utils/types/tests/from-decimal-test.ts @@ -0,0 +1,44 @@ +/* + This file is part of web3.js. + + web3.js is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + web3.js is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License + along with web3.js. If not, see . +*/ +/** + * @file from-decimal-test.ts + * @author Josh Stevens + * @date 2018 + */ + +import BN = require('bn.js'); +import {fromDecimal} from 'web3-utils'; + +// $ExpectType string +fromDecimal('232'); +// $ExpectType string +fromDecimal(232); + +// $ExpectError +fromDecimal(new BN(3)); +// $ExpectError +fromDecimal(['string']); +// $ExpectError +fromDecimal([4]); +// $ExpectError +fromDecimal({}); +// $ExpectError +fromDecimal(true); +// $ExpectError +fromDecimal(null); +// $ExpectError +fromDecimal(undefined); From d253427ff77ba4770256ecf5a4101e62249332e0 Mon Sep 17 00:00:00 2001 From: Josh Stevens Date: Tue, 15 Oct 2019 12:34:17 +0100 Subject: [PATCH 056/124] feat: from utf8 typings test --- .../web3-utils/types/tests/from-utf8-test.ts | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 packages/web3-utils/types/tests/from-utf8-test.ts diff --git a/packages/web3-utils/types/tests/from-utf8-test.ts b/packages/web3-utils/types/tests/from-utf8-test.ts new file mode 100644 index 00000000000..8ab06f87dd3 --- /dev/null +++ b/packages/web3-utils/types/tests/from-utf8-test.ts @@ -0,0 +1,44 @@ +/* + This file is part of web3.js. + + web3.js is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + web3.js is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License + along with web3.js. If not, see . +*/ +/** + * @file from-utf8-test.ts + * @author Josh Stevens + * @date 2018 + */ + +import BN = require('bn.js'); +import {fromUtf8} from 'web3-utils'; + +// $ExpectType string +fromUtf8('I have 100£'); + +// $ExpectError +fromUtf8(232); +// $ExpectError +fromUtf8(new BN(3)); +// $ExpectError +fromUtf8(['string']); +// $ExpectError +fromUtf8([4]); +// $ExpectError +fromUtf8({}); +// $ExpectError +fromUtf8(true); +// $ExpectError +fromUtf8(null); +// $ExpectError +fromUtf8(undefined); From b4e61b8881e1747d3b71a23b857e0d5a5455751f Mon Sep 17 00:00:00 2001 From: Josh Stevens Date: Tue, 15 Oct 2019 12:34:23 +0100 Subject: [PATCH 057/124] feat: from wei typings test --- .../web3-utils/types/tests/from-wei-test.ts | 52 +++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 packages/web3-utils/types/tests/from-wei-test.ts diff --git a/packages/web3-utils/types/tests/from-wei-test.ts b/packages/web3-utils/types/tests/from-wei-test.ts new file mode 100644 index 00000000000..852616f6881 --- /dev/null +++ b/packages/web3-utils/types/tests/from-wei-test.ts @@ -0,0 +1,52 @@ +/* + This file is part of web3.js. + + web3.js is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + web3.js is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License + along with web3.js. If not, see . +*/ +/** + * @file from-wei-test.ts + * @author Josh Stevens + * @date 2018 + */ + +import BN = require('bn.js'); +import {fromWei} from 'web3-utils'; + +const bigNumber = new BN(3); + +// $ExpectType string +fromWei(bigNumber); +// $ExpectType string +fromWei('1'); +// $ExpectType string +fromWei(bigNumber, 'ether'); +// $ExpectType string +fromWei('1', 'ether'); + +// $ExpectError +fromWei(232); +// $ExpectError +fromWei(['string']); +// $ExpectError +fromWei([4]); +// $ExpectError +fromWei({}); +// $ExpectError +fromWei(true); +// $ExpectError +fromWei(null); +// $ExpectError +fromWei(undefined); +// $ExpectError +fromWei(new BN(3), 'blah'); From 7330ea7299e5192a96f80690c016cbe8477fc58a Mon Sep 17 00:00:00 2001 From: Josh Stevens Date: Tue, 15 Oct 2019 12:34:33 +0100 Subject: [PATCH 058/124] feat: get signature params typings test --- .../types/tests/get-signature-params-test.ts | 45 +++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 packages/web3-utils/types/tests/get-signature-params-test.ts diff --git a/packages/web3-utils/types/tests/get-signature-params-test.ts b/packages/web3-utils/types/tests/get-signature-params-test.ts new file mode 100644 index 00000000000..e1f442239c0 --- /dev/null +++ b/packages/web3-utils/types/tests/get-signature-params-test.ts @@ -0,0 +1,45 @@ +/* + This file is part of web3.js. + + web3.js is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + web3.js is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License + along with web3.js. If not, see . +*/ +/** + * @file get-signature-params-tests.ts + * @author Aalok Singh + * @date 2018 + */ + +import BN = require('bn.js'); +import {getSignatureParameters} from 'web3-utils'; + +// $ExpectType { r: string; s: string; v: number; } +getSignatureParameters( + '0x90dc0e49b5a80eef86fcedcb863dcc727aeae5c11187c001fd3d18780ead2cc7701ba1986099a49164702f3d8b2c8dbbd45a6d1beb37d212d21fb1be4bb762a400' +); +// $ExpectError +getSignatureParameters(345); +// $ExpectError +getSignatureParameters(new BN(3)); +// $ExpectError +getSignatureParameters({}); +// $ExpectError +getSignatureParameters(true); +// $ExpectError +getSignatureParameters(['string']); +// $ExpectError +getSignatureParameters([4]); +// $ExpectError +getSignatureParameters(null); +// $ExpectError +getSignatureParameters(undefined); From 1baf6ca695147ac43af0864374a039153bb7672f Mon Sep 17 00:00:00 2001 From: Josh Stevens Date: Tue, 15 Oct 2019 12:34:45 +0100 Subject: [PATCH 059/124] feat: get unit value typings test --- .../types/tests/get-unit-value-test.ts | 46 +++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 packages/web3-utils/types/tests/get-unit-value-test.ts diff --git a/packages/web3-utils/types/tests/get-unit-value-test.ts b/packages/web3-utils/types/tests/get-unit-value-test.ts new file mode 100644 index 00000000000..27ffc9ac857 --- /dev/null +++ b/packages/web3-utils/types/tests/get-unit-value-test.ts @@ -0,0 +1,46 @@ +/* + This file is part of web3.js. + + web3.js is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + web3.js is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License + along with web3.js. If not, see . +*/ +/** + * @file get-unit-value-test.ts + * @author Josh Stevens + * @date 2018 + */ + +import BN = require('bn.js'); +import {getUnitValue} from 'web3-utils'; + +// $ExpectType string +getUnitValue('ether'); + +// $ExpectError +getUnitValue('fake'); +// $ExpectError +getUnitValue(656); +// $ExpectError +getUnitValue(new BN(3)); +// $ExpectError +getUnitValue(['string']); +// $ExpectError +getUnitValue([4]); +// $ExpectError +getUnitValue({}); +// $ExpectError +getUnitValue(true); +// $ExpectError +getUnitValue(null); +// $ExpectError +getUnitValue(undefined); From ea4887b18cfa1616a9ad83233e83bdeba78c4495 Mon Sep 17 00:00:00 2001 From: Josh Stevens Date: Tue, 15 Oct 2019 12:34:56 +0100 Subject: [PATCH 060/124] feat: hex to ascii typings test --- .../types/tests/hex-to-ascii-test.ts | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 packages/web3-utils/types/tests/hex-to-ascii-test.ts diff --git a/packages/web3-utils/types/tests/hex-to-ascii-test.ts b/packages/web3-utils/types/tests/hex-to-ascii-test.ts new file mode 100644 index 00000000000..991e44ca461 --- /dev/null +++ b/packages/web3-utils/types/tests/hex-to-ascii-test.ts @@ -0,0 +1,44 @@ +/* + This file is part of web3.js. + + web3.js is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + web3.js is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License + along with web3.js. If not, see . +*/ +/** + * @file hex-to-ascii-test.ts + * @author Josh Stevens + * @date 2018 + */ + +import BN = require('bn.js'); +import {hexToAscii} from 'web3-utils'; + +// $ExpectType string +hexToAscii('0x4920686176652031303021'); + +// $ExpectError +hexToAscii(345); +// $ExpectError +hexToAscii(new BN(3)); +// $ExpectError +hexToAscii({}); +// $ExpectError +hexToAscii(true); +// $ExpectError +hexToAscii(['string']); +// $ExpectError +hexToAscii([4]); +// $ExpectError +hexToAscii(null); +// $ExpectError +hexToAscii(undefined); From 2b9ccd6bbfc8219449db6e00ab4514f403ef1345 Mon Sep 17 00:00:00 2001 From: Josh Stevens Date: Tue, 15 Oct 2019 12:35:04 +0100 Subject: [PATCH 061/124] feat: hex to bytes typings test --- .../types/tests/hex-to-bytes-test.ts | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 packages/web3-utils/types/tests/hex-to-bytes-test.ts diff --git a/packages/web3-utils/types/tests/hex-to-bytes-test.ts b/packages/web3-utils/types/tests/hex-to-bytes-test.ts new file mode 100644 index 00000000000..9a57e3559a8 --- /dev/null +++ b/packages/web3-utils/types/tests/hex-to-bytes-test.ts @@ -0,0 +1,44 @@ +/* + This file is part of web3.js. + + web3.js is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + web3.js is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License + along with web3.js. If not, see . +*/ +/** + * @file hex-to-bytes-test.ts + * @author Josh Stevens + * @date 2018 + */ + +import BN = require('bn.js'); +import {hexToBytes} from 'web3-utils'; + +// $ExpectType number[] +hexToBytes('0x000000ea'); +// $ExpectType number[] +hexToBytes(0x000000ea); + +// $ExpectError +hexToBytes([4]); +// $ExpectError +hexToBytes(['string']); +// $ExpectError +hexToBytes(new BN(3)); +// $ExpectError +hexToBytes({}); +// $ExpectError +hexToBytes(true); +// $ExpectError +hexToBytes(null); +// $ExpectError +hexToBytes(undefined); From 176c71cd608d0cc67359d1a6be8749afa0882b9e Mon Sep 17 00:00:00 2001 From: Josh Stevens Date: Tue, 15 Oct 2019 12:35:12 +0100 Subject: [PATCH 062/124] feat: hex to number string typings test --- .../types/tests/hex-to-number-string-test.ts | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 packages/web3-utils/types/tests/hex-to-number-string-test.ts diff --git a/packages/web3-utils/types/tests/hex-to-number-string-test.ts b/packages/web3-utils/types/tests/hex-to-number-string-test.ts new file mode 100644 index 00000000000..10d80d03912 --- /dev/null +++ b/packages/web3-utils/types/tests/hex-to-number-string-test.ts @@ -0,0 +1,44 @@ +/* + This file is part of web3.js. + + web3.js is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + web3.js is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License + along with web3.js. If not, see . +*/ +/** + * @file hex-to-number-string-test.ts + * @author Josh Stevens + * @date 2018 + */ + +import BN = require('bn.js'); +import {hexToNumberString} from 'web3-utils'; + +// $ExpectType string +hexToNumberString('0xea'); +// $ExpectType string +hexToNumberString(0xea); + +// $ExpectError +hexToNumberString(new BN(3); +// $ExpectError +hexToNumberString(['string']); +// $ExpectError +hexToNumberString([4]); +// $ExpectError +hexToNumberString({}); +// $ExpectError +hexToNumberString(true); +// $ExpectError +hexToNumberString(null); +// $ExpectError +hexToNumberString(undefined); From 77b24b3bc028b4cbe7a66cf5cd0e128caf868244 Mon Sep 17 00:00:00 2001 From: Josh Stevens Date: Tue, 15 Oct 2019 12:35:21 +0100 Subject: [PATCH 063/124] feat: hex to number typings test --- .../types/tests/hex-to-number-test.ts | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 packages/web3-utils/types/tests/hex-to-number-test.ts diff --git a/packages/web3-utils/types/tests/hex-to-number-test.ts b/packages/web3-utils/types/tests/hex-to-number-test.ts new file mode 100644 index 00000000000..597a65bfe5f --- /dev/null +++ b/packages/web3-utils/types/tests/hex-to-number-test.ts @@ -0,0 +1,44 @@ +/* + This file is part of web3.js. + + web3.js is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + web3.js is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License + along with web3.js. If not, see . +*/ +/** + * @file hex-to-number-test.ts + * @author Josh Stevens + * @date 2018 + */ + +import BN = require('bn.js'); +import {hexToNumber} from 'web3-utils'; + +// $ExpectType number +hexToNumber('232'); +// $ExpectType number +hexToNumber(232); + +// $ExpectError +hexToNumber(new BN(3)); +// $ExpectError +hexToNumber(['string']); +// $ExpectError +hexToNumber([4]); +// $ExpectError +hexToNumber({}); +// $ExpectError +hexToNumber(true); +// $ExpectError +hexToNumber(null); +// $ExpectError +hexToNumber(undefined); From 99b4d5a2b62b0243ff2793d1d415f65c87297f1f Mon Sep 17 00:00:00 2001 From: Josh Stevens Date: Tue, 15 Oct 2019 12:35:27 +0100 Subject: [PATCH 064/124] feat: hex to string typings test --- .../types/tests/hex-to-string-test.ts | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 packages/web3-utils/types/tests/hex-to-string-test.ts diff --git a/packages/web3-utils/types/tests/hex-to-string-test.ts b/packages/web3-utils/types/tests/hex-to-string-test.ts new file mode 100644 index 00000000000..000464e7968 --- /dev/null +++ b/packages/web3-utils/types/tests/hex-to-string-test.ts @@ -0,0 +1,44 @@ +/* + This file is part of web3.js. + + web3.js is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + web3.js is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License + along with web3.js. If not, see . +*/ +/** + * @file hex-to-string-test.ts + * @author Josh Stevens + * @date 2018 + */ + +import BN = require('bn.js'); +import {hexToString} from 'web3-utils'; + +// $ExpectType string +hexToString('0x49206861766520313030e282ac'); +// $ExpectType string +hexToString(0x49206861766520313030e282ac); + +// $ExpectError +hexToString(new BN(3)); +// $ExpectError +hexToString(['string']); +// $ExpectError +hexToString([4]); +// $ExpectError +hexToString({}); +// $ExpectError +hexToString(true); +// $ExpectError +hexToString(null); +// $ExpectError +hexToString(undefined); From a7fb673a904e82e663892c98ddb4996a0ccfa175 Mon Sep 17 00:00:00 2001 From: Josh Stevens Date: Tue, 15 Oct 2019 12:35:33 +0100 Subject: [PATCH 065/124] feat: hex to utf8 typings test --- .../types/tests/hex-to-utf8-test.ts | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 packages/web3-utils/types/tests/hex-to-utf8-test.ts diff --git a/packages/web3-utils/types/tests/hex-to-utf8-test.ts b/packages/web3-utils/types/tests/hex-to-utf8-test.ts new file mode 100644 index 00000000000..021fe0fc6f1 --- /dev/null +++ b/packages/web3-utils/types/tests/hex-to-utf8-test.ts @@ -0,0 +1,44 @@ +/* + This file is part of web3.js. + + web3.js is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + web3.js is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License + along with web3.js. If not, see . +*/ +/** + * @file hex-to-utf8-test.ts + * @author Josh Stevens + * @date 2018 + */ + +import BN = require('bn.js'); +import {hexToUtf8} from 'web3-utils'; + +// $ExpectType string +hexToUtf8('0x49206861766520313030e282ac'); + +// $ExpectError +hexToUtf8(656); +// $ExpectError +hexToUtf8(new BN(3)); +// $ExpectError +hexToUtf8(['string']); +// $ExpectError +hexToUtf8([4]); +// $ExpectError +hexToUtf8({}); +// $ExpectError +hexToUtf8(true); +// $ExpectError +hexToUtf8(null); +// $ExpectError +hexToUtf8(undefined); From a1b076d0b2498fd946d6808e3e61f44076c5d2ac Mon Sep 17 00:00:00 2001 From: Josh Stevens Date: Tue, 15 Oct 2019 12:35:41 +0100 Subject: [PATCH 066/124] feat: is address typings test --- .../web3-utils/types/tests/is-address-test.ts | 60 +++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 packages/web3-utils/types/tests/is-address-test.ts diff --git a/packages/web3-utils/types/tests/is-address-test.ts b/packages/web3-utils/types/tests/is-address-test.ts new file mode 100644 index 00000000000..6c2847c9cfc --- /dev/null +++ b/packages/web3-utils/types/tests/is-address-test.ts @@ -0,0 +1,60 @@ +/* + This file is part of web3.js. + + web3.js is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + web3.js is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License + along with web3.js. If not, see . +*/ +/** + * @file is-address-test.ts + * @author Josh Stevens + * @date 2018 + */ + +import BN = require('bn.js'); +import {isAddress} from 'web3-utils'; + +// $ExpectType boolean +isAddress('0x8ee7f17bb3f88b01247c21ab6603880b64ae53e811f5e01138822e558cf1ab51'); +// $ExpectType boolean +isAddress('0x8ee7f17bb3f88b01247c21ab6603880b64ae53e811f5e01138822e558cf1ab51', 30); +// $ExpectType boolean +isAddress('0x8ee7f17bb3f88b01247c21ab6603880b64ae53e811f5e01138822e558cf1ab51', undefined); + +// $ExpectError +isAddress(4); +// $ExpectError +isAddress(new BN(3)); +// $ExpectError +isAddress({}); +// $ExpectError +isAddress(true); +// $ExpectError +isAddress(['string']); +// $ExpectError +isAddress([4]); +// $ExpectError +isAddress(null); +// $ExpectError +isAddress(undefined); +// $ExpectError +isAddress('0x8ee7f17bb3f88b01247c21ab6603880b64ae53e811f5e01138822e558cf1ab51', new BN(3)); +// $ExpectError +isAddress('0x8ee7f17bb3f88b01247c21ab6603880b64ae53e811f5e01138822e558cf1ab51', {}); +// $ExpectError +isAddress('0x8ee7f17bb3f88b01247c21ab6603880b64ae53e811f5e01138822e558cf1ab51', true); +// $ExpectError +isAddress('0x8ee7f17bb3f88b01247c21ab6603880b64ae53e811f5e01138822e558cf1ab51', ['string']); +// $ExpectError +isAddress('0x8ee7f17bb3f88b01247c21ab6603880b64ae53e811f5e01138822e558cf1ab51', [4]); +// $ExpectError +isAddress('0x8ee7f17bb3f88b01247c21ab6603880b64ae53e811f5e01138822e558cf1ab51', null); From f133c65c7cef590fa72351d481d923805555c618 Mon Sep 17 00:00:00 2001 From: Josh Stevens Date: Tue, 15 Oct 2019 12:35:49 +0100 Subject: [PATCH 067/124] feat: is big number typings test --- .../types/tests/is-big-number-test.ts | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 packages/web3-utils/types/tests/is-big-number-test.ts diff --git a/packages/web3-utils/types/tests/is-big-number-test.ts b/packages/web3-utils/types/tests/is-big-number-test.ts new file mode 100644 index 00000000000..99968cf8ff2 --- /dev/null +++ b/packages/web3-utils/types/tests/is-big-number-test.ts @@ -0,0 +1,44 @@ +/* + This file is part of web3.js. + + web3.js is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + web3.js is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License + along with web3.js. If not, see . +*/ +/** + * @file is-big-number-test.ts + * @author Josh Stevens + * @date 2018 + */ + +import BN = require('bn.js'); +import {isBigNumber} from 'web3-utils'; + +// $ExpectType boolean +isBigNumber(new BN(3)); + +// $ExpectError +isBigNumber(7); +// $ExpectError +isBigNumber('4325'); +// $ExpectError +isBigNumber({}); +// $ExpectError +isBigNumber(true); +// $ExpectError +isBigNumber(['string']); +// $ExpectError +isBigNumber([4]); +// $ExpectError +isBigNumber(null); +// $ExpectError +isBigNumber(undefined); From f3b166912f5af05dd9350ded0dd96bad54c10748 Mon Sep 17 00:00:00 2001 From: Josh Stevens Date: Tue, 15 Oct 2019 12:35:56 +0100 Subject: [PATCH 068/124] feat: is bloom typings test --- .../web3-utils/types/tests/is-bloom-test.ts | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 packages/web3-utils/types/tests/is-bloom-test.ts diff --git a/packages/web3-utils/types/tests/is-bloom-test.ts b/packages/web3-utils/types/tests/is-bloom-test.ts new file mode 100644 index 00000000000..e0256e92fc8 --- /dev/null +++ b/packages/web3-utils/types/tests/is-bloom-test.ts @@ -0,0 +1,44 @@ +/* + This file is part of web3.js. + + web3.js is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + web3.js is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License + along with web3.js. If not, see . +*/ +/** + * @file is-bloom-tests.ts + * @author Josh Stevens + * @date 2018 + */ + +import BN = require('bn.js'); +import {isBloom} from 'web3-utils'; + +// $ExpectType boolean +isBloom('0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef'); + +// $ExpectError +isBloom(656); +// $ExpectError +isBloom(new BN(3)); +// $ExpectError +isBloom(['string']); +// $ExpectError +isBloom([4]); +// $ExpectError +isBloom({}); +// $ExpectError +isBloom(true); +// $ExpectError +isBloom(null); +// $ExpectError +isBloom(undefined); From e10127a286476f2b56a9dd2d68f666fb7b11b688 Mon Sep 17 00:00:00 2001 From: Josh Stevens Date: Tue, 15 Oct 2019 12:36:08 +0100 Subject: [PATCH 069/124] feat: is bn typings test --- packages/web3-utils/types/tests/is-bn-test.ts | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 packages/web3-utils/types/tests/is-bn-test.ts diff --git a/packages/web3-utils/types/tests/is-bn-test.ts b/packages/web3-utils/types/tests/is-bn-test.ts new file mode 100644 index 00000000000..1a4c9d1efe7 --- /dev/null +++ b/packages/web3-utils/types/tests/is-bn-test.ts @@ -0,0 +1,44 @@ +/* + This file is part of web3.js. + + web3.js is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + web3.js is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License + along with web3.js. If not, see . +*/ +/** + * @file is-bn-test.ts + * @author Josh Stevens + * @date 2018 + */ + +import BN = require('bn.js'); +import {isBN} from 'web3-utils'; + +// $ExpectType boolean +isBN(7); +// $ExpectType boolean +isBN('4325'); + +// $ExpectError +isBN({}); +// $ExpectError +isBN(true); +// $ExpectError +isBN(new BN(3)); +// $ExpectError +isBN(['string']); +// $ExpectError +isBN([4]); +// $ExpectError +isBN(null); +// $ExpectError +isBN(undefined); From be485db6cb3e7f4a49641053d9188b2b88e1cd36 Mon Sep 17 00:00:00 2001 From: Josh Stevens Date: Tue, 15 Oct 2019 12:36:16 +0100 Subject: [PATCH 070/124] feat: is hex strict typings test --- .../types/tests/is-hex-strict-test.ts | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 packages/web3-utils/types/tests/is-hex-strict-test.ts diff --git a/packages/web3-utils/types/tests/is-hex-strict-test.ts b/packages/web3-utils/types/tests/is-hex-strict-test.ts new file mode 100644 index 00000000000..70c7c469f48 --- /dev/null +++ b/packages/web3-utils/types/tests/is-hex-strict-test.ts @@ -0,0 +1,44 @@ +/* + This file is part of web3.js. + + web3.js is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + web3.js is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License + along with web3.js. If not, see . +*/ +/** + * @file is-hex-strict-test.ts + * @author Josh Stevens + * @date 2018 + */ + +import BN = require('bn.js'); +import {isHexStrict} from 'web3-utils'; + +// $ExpectType boolean +isHexStrict('0xc1912'); +// $ExpectType boolean +isHexStrict(345); + +// $ExpectError +isHexStrict(new BN(3)); +// $ExpectError +isHexStrict({}); +// $ExpectError +isHexStrict(true); +// $ExpectError +isHexStrict(['string']); +// $ExpectError +isHexStrict([4]); +// $ExpectError +isHexStrict(null); +// $ExpectError +isHexStrict(undefined); From c31dabeba827f29b64bbf4cf62629a97a0741c25 Mon Sep 17 00:00:00 2001 From: Josh Stevens Date: Tue, 15 Oct 2019 12:36:21 +0100 Subject: [PATCH 071/124] feat: is hex typings test --- .../web3-utils/types/tests/is-hex-test.ts | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 packages/web3-utils/types/tests/is-hex-test.ts diff --git a/packages/web3-utils/types/tests/is-hex-test.ts b/packages/web3-utils/types/tests/is-hex-test.ts new file mode 100644 index 00000000000..64ffa687ce9 --- /dev/null +++ b/packages/web3-utils/types/tests/is-hex-test.ts @@ -0,0 +1,44 @@ +/* + This file is part of web3.js. + + web3.js is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + web3.js is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License + along with web3.js. If not, see . +*/ +/** + * @file is-hex-test.ts + * @author Josh Stevens + * @date 2018 + */ + +import BN = require('bn.js'); +import {isHex} from 'web3-utils'; + +// $ExpectType boolean +isHex('0xc1912'); +// $ExpectType boolean +isHex(345); + +// $ExpectError +isHex(new BN(3)); +// $ExpectError +isHex({}); +// $ExpectError +isHex(true); +// $ExpectError +isHex(['string']); +// $ExpectError +isHex([4]); +// $ExpectError +isHex(null); +// $ExpectError +isHex(undefined); From 47157b03d69493fa684da7146b83a1db638774f2 Mon Sep 17 00:00:00 2001 From: Josh Stevens Date: Tue, 15 Oct 2019 12:36:28 +0100 Subject: [PATCH 072/124] feat: is topic typings test --- .../web3-utils/types/tests/is-topic-test.ts | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 packages/web3-utils/types/tests/is-topic-test.ts diff --git a/packages/web3-utils/types/tests/is-topic-test.ts b/packages/web3-utils/types/tests/is-topic-test.ts new file mode 100644 index 00000000000..bb600827c60 --- /dev/null +++ b/packages/web3-utils/types/tests/is-topic-test.ts @@ -0,0 +1,44 @@ +/* + This file is part of web3.js. + + web3.js is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + web3.js is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License + along with web3.js. If not, see . +*/ +/** + * @file is-topic-test.ts + * @author Josh Stevens + * @date 2018 + */ + +import BN = require('bn.js'); +import {isTopic} from 'web3-utils'; + +// $ExpectType boolean +isTopic('0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef'); + +// $ExpectError +isTopic(656); +// $ExpectError +isTopic(new BN(3)); +// $ExpectError +isTopic(['string']); +// $ExpectError +isTopic([4]); +// $ExpectError +isTopic({}); +// $ExpectError +isTopic(true); +// $ExpectError +isTopic(null); +// $ExpectError +isTopic(undefined); From ba3720d1f2468dff2dae9977bcd7e81b4f03e6bb Mon Sep 17 00:00:00 2001 From: Josh Stevens Date: Tue, 15 Oct 2019 12:36:39 +0100 Subject: [PATCH 073/124] feat: json interface method to string typings test --- .../json-interface-method-to-string-test.ts | 120 ++++++++++++++++++ 1 file changed, 120 insertions(+) create mode 100644 packages/web3-utils/types/tests/json-interface-method-to-string-test.ts diff --git a/packages/web3-utils/types/tests/json-interface-method-to-string-test.ts b/packages/web3-utils/types/tests/json-interface-method-to-string-test.ts new file mode 100644 index 00000000000..649b6609c6a --- /dev/null +++ b/packages/web3-utils/types/tests/json-interface-method-to-string-test.ts @@ -0,0 +1,120 @@ +/* + This file is part of web3.js. + + web3.js is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + web3.js is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License + along with web3.js. If not, see . +*/ +/** + * @file json-interface-method-to-string-test.ts + * @author Josh Stevens + * @date 2018 + */ + +import {jsonInterfaceMethodToString, AbiItem} from 'web3-utils'; + +const abiItem: AbiItem = { + anonymous: false, + constant: true, + inputs: [ + { + name: 'testMe', + type: 'uint256[3]' + }, + { + name: 'inputA', + type: 'tuple', + components: [ + { + name: 'a', + type: 'uint8' + }, + { + name: 'b', + type: 'uint8' + } + ] + }, + { + name: 'inputB', + type: 'tuple[]', + components: [ + { + name: 'a1', + type: 'uint256' + }, + { + name: 'a2', + type: 'uint256' + } + ] + }, + { + name: 'inputC', + type: 'uint8', + indexed: false + } + ], + name: "testName", + outputs: [ + { + name: "test", + type: "uint256" + }, + { + name: 'outputA', + type: 'tuple', + components: [ + { + name: 'a', + type: 'uint8' + }, + { + name: 'b', + type: 'uint8' + } + ] + }, + { + name: 'outputB', + type: 'tuple[]', + components: [ + { + name: 'a1', + type: 'uint256' + }, + { + name: 'a2', + type: 'uint256' + } + ] + } + ], + payable: false, + stateMutability: "pure", + type: "function" +}; +// $ExpectType string +jsonInterfaceMethodToString(abiItem); + +// $ExpectError +jsonInterfaceMethodToString(['string']); +// $ExpectError +jsonInterfaceMethodToString(234); +// $ExpectError +jsonInterfaceMethodToString([4]); +// $ExpectError +jsonInterfaceMethodToString(true); +// $ExpectError +jsonInterfaceMethodToString(null); +// $ExpectError +jsonInterfaceMethodToString(undefined); From a7f6daca7a1c6a0e250820025da48cd53c221963 Mon Sep 17 00:00:00 2001 From: Josh Stevens Date: Tue, 15 Oct 2019 12:36:49 +0100 Subject: [PATCH 074/124] feat: keccak256 typings test --- .../web3-utils/types/tests/keccak256-test.ts | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 packages/web3-utils/types/tests/keccak256-test.ts diff --git a/packages/web3-utils/types/tests/keccak256-test.ts b/packages/web3-utils/types/tests/keccak256-test.ts new file mode 100644 index 00000000000..7f3f571e19a --- /dev/null +++ b/packages/web3-utils/types/tests/keccak256-test.ts @@ -0,0 +1,44 @@ +/* + This file is part of web3.js. + + web3.js is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + web3.js is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License + along with web3.js. If not, see . +*/ +/** + * @file keccak256-test.ts + * @author Josh Stevens + * @date 2018 + */ + +import BN = require('bn.js'); +import {keccak256} from 'web3-utils'; + +// $ExpectType string +keccak256('234'); +// $ExpectType string +keccak256(new BN(3)); + +// $ExpectError +keccak256(['string']); +// $ExpectError +keccak256(234); +// $ExpectError +keccak256([4]); +// $ExpectError +keccak256({}); +// $ExpectError +keccak256(true); +// $ExpectError +keccak256(null); +// $ExpectError +keccak256(undefined); From 4cddce2a19fb1dcbefc5a3958a3bcd640376751d Mon Sep 17 00:00:00 2001 From: Josh Stevens Date: Tue, 15 Oct 2019 12:36:57 +0100 Subject: [PATCH 075/124] feat: left pad typings test --- .../web3-utils/types/tests/left-pad-test.ts | 73 +++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 packages/web3-utils/types/tests/left-pad-test.ts diff --git a/packages/web3-utils/types/tests/left-pad-test.ts b/packages/web3-utils/types/tests/left-pad-test.ts new file mode 100644 index 00000000000..936f198ea4c --- /dev/null +++ b/packages/web3-utils/types/tests/left-pad-test.ts @@ -0,0 +1,73 @@ +/* + This file is part of web3.js. + + web3.js is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + web3.js is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License + along with web3.js. If not, see . +*/ +/** + * @file left-pad-test.ts + * @author Josh Stevens + * @date 2018 + */ + +import BN = require('bn.js'); +import {leftPad} from 'web3-utils'; + +const bigNumber = new BN(3); +// $ExpectType string +leftPad('0x3456ff', 20); +// $ExpectType string +leftPad(0x3456ff, 20); +// $ExpectType string +leftPad('Hello', 20, 'x'); + +// $ExpectError +leftPad(bigNumber, 20); +// $ExpectError +leftPad(['string'], 20); +// $ExpectError +leftPad([4], 20); +// $ExpectError +leftPad({}, 20); +// $ExpectError +leftPad(true, 20); +// $ExpectError +leftPad(null, 20); +// $ExpectError +leftPad(undefined, 20); +// $ExpectError +leftPad('0x3456ff', bigNumber); +// $ExpectError +leftPad('0x3456ff', ['string']); +// $ExpectError +leftPad('0x3456ff', [4]); +// $ExpectError +leftPad('0x3456ff', {}); +// $ExpectError +leftPad('0x3456ff', true); +// $ExpectError +leftPad('0x3456ff', null); +// $ExpectError +leftPad('0x3456ff', undefined); +// $ExpectError +leftPad('Hello', 20, bigNumber); +// $ExpectError +leftPad('Hello', 20, ['string']); +// $ExpectError +leftPad('Hello', 20, [4]); +// $ExpectError +leftPad('Hello', 20, {}); +// $ExpectError +leftPad('Hello', 20, true); +// $ExpectError +leftPad('Hello', 20, null); From 5b54cd0589e1cde793b3c7d542f576af62280291 Mon Sep 17 00:00:00 2001 From: Josh Stevens Date: Tue, 15 Oct 2019 12:37:05 +0100 Subject: [PATCH 076/124] feat: number to hex typings test --- .../types/tests/number-to-hex-test.ts | 46 +++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 packages/web3-utils/types/tests/number-to-hex-test.ts diff --git a/packages/web3-utils/types/tests/number-to-hex-test.ts b/packages/web3-utils/types/tests/number-to-hex-test.ts new file mode 100644 index 00000000000..102e22f7518 --- /dev/null +++ b/packages/web3-utils/types/tests/number-to-hex-test.ts @@ -0,0 +1,46 @@ +/* + This file is part of web3.js. + + web3.js is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + web3.js is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License + along with web3.js. If not, see . +*/ +/** + * @file number-to-hex-test.ts + * @author Josh Stevens + * @date 2018 + */ + +import BN = require('bn.js'); +import {numberToHex} from 'web3-utils'; + +// $ExpectType string +numberToHex('232'); +// $ExpectType string +numberToHex(232); +// $ExpectType string +numberToHex(new BN(3)); + +// $ExpectError +numberToHex(['72']); +// $ExpectError +numberToHex([4]); +// $ExpectError +numberToHex([ 36 ]); +// $ExpectError +numberToHex({}); +// $ExpectError +numberToHex(true); +// $ExpectError +numberToHex(null); +// $ExpectError +numberToHex(undefined); From 235a586b324d95951060c170cf19cdb187f9293e Mon Sep 17 00:00:00 2001 From: Josh Stevens Date: Tue, 15 Oct 2019 12:37:19 +0100 Subject: [PATCH 077/124] feat: utils type tests --- .../web3-utils/types/tests/pad-left-test.ts | 74 +++++++++++++++++++ .../web3-utils/types/tests/pad-right-test.ts | 74 +++++++++++++++++++ .../web3-utils/types/tests/random-hex-test.ts | 44 +++++++++++ .../web3-utils/types/tests/right-pad-test.ts | 74 +++++++++++++++++++ packages/web3-utils/types/tests/sha3-test.ts | 44 +++++++++++ .../types/tests/solidity-sha3-test.ts | 52 +++++++++++++ .../types/tests/string-to-hex-test.ts | 44 +++++++++++ .../types/tests/strip-hex-prefix-test.ts | 44 +++++++++++ .../types/tests/test-address-test.ts | 62 ++++++++++++++++ .../web3-utils/types/tests/test-topic-test.ts | 62 ++++++++++++++++ .../web3-utils/types/tests/to-ascii-test.ts | 44 +++++++++++ packages/web3-utils/types/tests/to-bn-test.ts | 41 ++++++++++ .../types/tests/to-check-sum-address-test.ts | 60 +++++++++++++++ .../web3-utils/types/tests/to-decimal-test.ts | 44 +++++++++++ .../web3-utils/types/tests/to-hex-test.ts | 44 +++++++++++ .../types/tests/to-twos-compement-test.ts | 44 +++++++++++ .../web3-utils/types/tests/to-utf8-test.ts | 44 +++++++++++ .../web3-utils/types/tests/to-wei-test.ts | 50 +++++++++++++ .../web3-utils/types/tests/unit-map-test.ts | 26 +++++++ .../types/tests/utf8-to-hex-test.ts | 44 +++++++++++ 20 files changed, 1015 insertions(+) create mode 100644 packages/web3-utils/types/tests/pad-left-test.ts create mode 100644 packages/web3-utils/types/tests/pad-right-test.ts create mode 100644 packages/web3-utils/types/tests/random-hex-test.ts create mode 100644 packages/web3-utils/types/tests/right-pad-test.ts create mode 100644 packages/web3-utils/types/tests/sha3-test.ts create mode 100644 packages/web3-utils/types/tests/solidity-sha3-test.ts create mode 100644 packages/web3-utils/types/tests/string-to-hex-test.ts create mode 100644 packages/web3-utils/types/tests/strip-hex-prefix-test.ts create mode 100644 packages/web3-utils/types/tests/test-address-test.ts create mode 100644 packages/web3-utils/types/tests/test-topic-test.ts create mode 100644 packages/web3-utils/types/tests/to-ascii-test.ts create mode 100644 packages/web3-utils/types/tests/to-bn-test.ts create mode 100644 packages/web3-utils/types/tests/to-check-sum-address-test.ts create mode 100644 packages/web3-utils/types/tests/to-decimal-test.ts create mode 100644 packages/web3-utils/types/tests/to-hex-test.ts create mode 100644 packages/web3-utils/types/tests/to-twos-compement-test.ts create mode 100644 packages/web3-utils/types/tests/to-utf8-test.ts create mode 100644 packages/web3-utils/types/tests/to-wei-test.ts create mode 100644 packages/web3-utils/types/tests/unit-map-test.ts create mode 100644 packages/web3-utils/types/tests/utf8-to-hex-test.ts diff --git a/packages/web3-utils/types/tests/pad-left-test.ts b/packages/web3-utils/types/tests/pad-left-test.ts new file mode 100644 index 00000000000..e763df68fdf --- /dev/null +++ b/packages/web3-utils/types/tests/pad-left-test.ts @@ -0,0 +1,74 @@ +/* + This file is part of web3.js. + + web3.js is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + web3.js is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License + along with web3.js. If not, see . +*/ +/** + * @file pad-left-test.ts + * @author Josh Stevens + * @date 2018 + */ + +import BN = require('bn.js'); +import {padLeft} from 'web3-utils'; + +const bigNumber = new BN(3); + +// $ExpectType string +padLeft('0x3456ff', 20); +// $ExpectType string +padLeft(0x3456ff, 20); +// $ExpectType string +padLeft('Hello', 20, 'x'); + +// $ExpectError +padLeft(bigNumber, 20); +// $ExpectError +padLeft(['string'], 20); +// $ExpectError +padLeft([4], 20); +// $ExpectError +padLeft({}, 20); +// $ExpectError +padLeft(true, 20); +// $ExpectError +padLeft(null, 20); +// $ExpectError +padLeft(undefined, 20); +// $ExpectError +padLeft('0x3456ff', bigNumber); +// $ExpectError +padLeft('0x3456ff', ['string']); +// $ExpectError +padLeft('0x3456ff', [4]); +// $ExpectError +padLeft('0x3456ff', {}); +// $ExpectError +padLeft('0x3456ff', true); +// $ExpectError +padLeft('0x3456ff', null); +// $ExpectError +padLeft('0x3456ff', undefined); +// $ExpectError +padLeft('Hello', 20, bigNumber); +// $ExpectError +padLeft('Hello', 20, ['string']); +// $ExpectError +padLeft('Hello', 20, [4]); +// $ExpectError +padLeft('Hello', 20, {}); +// $ExpectError +padLeft('Hello', 20, true); +// $ExpectError +padLeft('Hello', 20, null); diff --git a/packages/web3-utils/types/tests/pad-right-test.ts b/packages/web3-utils/types/tests/pad-right-test.ts new file mode 100644 index 00000000000..97202a820b3 --- /dev/null +++ b/packages/web3-utils/types/tests/pad-right-test.ts @@ -0,0 +1,74 @@ +/* + This file is part of web3.js. + + web3.js is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + web3.js is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License + along with web3.js. If not, see . +*/ +/** + * @file pad-right-test.ts + * @author Josh Stevens + * @date 2018 + */ + +import BN = require('bn.js'); +import {padRight} from 'web3-utils'; + +const bigNumber = new BN(3); + +// $ExpectType string +padRight('0x3456ff', 20); +// $ExpectType string +padRight(0x3456ff, 20); +// $ExpectType string +padRight('Hello', 20, 'x'); + +// $ExpectError +padRight(bigNumber, 20); +// $ExpectError +padRight(['string'], 20); +// $ExpectError +padRight([4], 20); +// $ExpectError +padRight({}, 20); +// $ExpectError +padRight(true, 20); +// $ExpectError +padRight(null, 20); +// $ExpectError +padRight(undefined, 20); +// $ExpectError +padRight('0x3456ff', bigNumber); +// $ExpectError +padRight('0x3456ff', ['string']); +// $ExpectError +padRight('0x3456ff', [4]); +// $ExpectError +padRight('0x3456ff', {}); +// $ExpectError +padRight('0x3456ff', true); +// $ExpectError +padRight('0x3456ff', null); +// $ExpectError +padRight('0x3456ff', undefined); +// $ExpectError +padRight('Hello', 20, bigNumber); +// $ExpectError +padRight('Hello', 20, ['string']); +// $ExpectError +padRight('Hello', 20, [4]); +// $ExpectError +padRight('Hello', 20, {}); +// $ExpectError +padRight('Hello', 20, true); +// $ExpectError +padRight('Hello', 20, null); diff --git a/packages/web3-utils/types/tests/random-hex-test.ts b/packages/web3-utils/types/tests/random-hex-test.ts new file mode 100644 index 00000000000..64465afb93e --- /dev/null +++ b/packages/web3-utils/types/tests/random-hex-test.ts @@ -0,0 +1,44 @@ +/* + This file is part of web3.js. + + web3.js is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + web3.js is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License + along with web3.js. If not, see . +*/ +/** + * @file random-hex-test.ts + * @author Josh Stevens + * @date 2018 + */ + +import BN = require('bn.js'); +import {randomHex} from 'web3-utils'; + +// $ExpectType string +randomHex(32); + +// $ExpectError +randomHex('234'); +// $ExpectError +randomHex(new BN(3)); +// $ExpectError +randomHex(['string']); +// $ExpectError +randomHex([4]); +// $ExpectError +randomHex({}); +// $ExpectError +randomHex(true); +// $ExpectError +randomHex(null); +// $ExpectError +randomHex(undefined); diff --git a/packages/web3-utils/types/tests/right-pad-test.ts b/packages/web3-utils/types/tests/right-pad-test.ts new file mode 100644 index 00000000000..f81ace7dc72 --- /dev/null +++ b/packages/web3-utils/types/tests/right-pad-test.ts @@ -0,0 +1,74 @@ +/* + This file is part of web3.js. + + web3.js is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + web3.js is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License + along with web3.js. If not, see . +*/ +/** + * @file right-pad-test.ts + * @author Josh Stevens + * @date 2018 + */ + +import BN = require('bn.js'); +import {rightPad} from 'web3-utils'; + +const bigNumber = new BN(3); + +// $ExpectType string +rightPad('0x3456ff', 20); +// $ExpectType string +rightPad(0x3456ff, 20); +// $ExpectType string +rightPad('Hello', 20, 'x'); + +// $ExpectError +rightPad(bigNumber, 20); +// $ExpectError +rightPad(['string'], 20); +// $ExpectError +rightPad([4], 20); +// $ExpectError +rightPad({}, 20); +// $ExpectError +rightPad(true, 20); +// $ExpectError +rightPad(null, 20); +// $ExpectError +rightPad(undefined, 20); +// $ExpectError +rightPad('0x3456ff', bigNumber); +// $ExpectError +rightPad('0x3456ff', ['string']); +// $ExpectError +rightPad('0x3456ff', [4]); +// $ExpectError +rightPad('0x3456ff', {}); +// $ExpectError +rightPad('0x3456ff', true); +// $ExpectError +rightPad('0x3456ff', null); +// $ExpectError +rightPad('0x3456ff', undefined); +// $ExpectError +rightPad('Hello', 20, bigNumber); +// $ExpectError +rightPad('Hello', 20, ['string']); +// $ExpectError +rightPad('Hello', 20, [4]); +// $ExpectError +rightPad('Hello', 20, {}); +// $ExpectError +rightPad('Hello', 20, true); +// $ExpectError +rightPad('Hello', 20, null); diff --git a/packages/web3-utils/types/tests/sha3-test.ts b/packages/web3-utils/types/tests/sha3-test.ts new file mode 100644 index 00000000000..a92330aa5d4 --- /dev/null +++ b/packages/web3-utils/types/tests/sha3-test.ts @@ -0,0 +1,44 @@ +/* + This file is part of web3.js. + + web3.js is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + web3.js is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License + along with web3.js. If not, see . +*/ +/** + * @file sha3-tests.ts + * @author Josh Stevens + * @date 2018 + */ + +import BN = require('bn.js'); +import {sha3} from 'web3-utils'; + +// $ExpectType string +sha3('234'); +// $ExpectType string +sha3(new BN(3)); + +// $ExpectError +sha3(['string']); +// $ExpectError +sha3(234); +// $ExpectError +sha3([4]); +// $ExpectError +sha3({}); +// $ExpectError +sha3(true); +// $ExpectError +sha3(null); +// $ExpectError +sha3(undefined); diff --git a/packages/web3-utils/types/tests/solidity-sha3-test.ts b/packages/web3-utils/types/tests/solidity-sha3-test.ts new file mode 100644 index 00000000000..89a5b0e8f21 --- /dev/null +++ b/packages/web3-utils/types/tests/solidity-sha3-test.ts @@ -0,0 +1,52 @@ +/* + This file is part of web3.js. + + web3.js is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + web3.js is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License + along with web3.js. If not, see . +*/ +/** + * @file solidity-sha3-test.ts + * @author Josh Stevens + * @date 2018 + */ + +import BN = require('bn.js'); +import {soliditySha3} from 'web3-utils'; + +// $ExpectType string +soliditySha3('234564535', '0xfff23243', true, -10); +// $ExpectType string +soliditySha3('Hello!%'); +// $ExpectType string +soliditySha3('234'); +// $ExpectType string +soliditySha3(0xea); +// $ExpectType string +soliditySha3(new BN(3)); +// $ExpectType string +soliditySha3({type: 'uint256', value: '234'}); +// $ExpectType string +soliditySha3({t: 'uint', v: new BN('234')}); +// $ExpectType string +soliditySha3({t: 'string', v: 'Hello!%'}, {t: 'int8', v: -23}, {t: 'address', v: '0x85F43D8a49eeB85d32Cf465507DD71d507100C1d'}); +// $ExpectType string +soliditySha3('0x407D73d8a49eeb85D32Cf465507dd71d507100c1'); + +// $ExpectError +soliditySha3(['hey']); +// $ExpectError +soliditySha3([34]); +// $ExpectError +soliditySha3(null); +// $ExpectError +soliditySha3(undefined); diff --git a/packages/web3-utils/types/tests/string-to-hex-test.ts b/packages/web3-utils/types/tests/string-to-hex-test.ts new file mode 100644 index 00000000000..a8c4370d344 --- /dev/null +++ b/packages/web3-utils/types/tests/string-to-hex-test.ts @@ -0,0 +1,44 @@ +/* + This file is part of web3.js. + + web3.js is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + web3.js is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License + along with web3.js. If not, see . +*/ +/** + * @file string-to-hex-test.ts + * @author Josh Stevens + * @date 2018 + */ + +import BN = require('bn.js'); +import {stringToHex} from 'web3-utils'; + +// $ExpectType string +stringToHex('I have 100£'); + +// $ExpectError +stringToHex(232); +// $ExpectError +stringToHex(new BN(3)); +// $ExpectError +stringToHex(['string']); +// $ExpectError +stringToHex([4]); +// $ExpectError +stringToHex({}); +// $ExpectError +stringToHex(true); +// $ExpectError +stringToHex(null); +// $ExpectError +stringToHex(undefined); diff --git a/packages/web3-utils/types/tests/strip-hex-prefix-test.ts b/packages/web3-utils/types/tests/strip-hex-prefix-test.ts new file mode 100644 index 00000000000..84a54c5ab04 --- /dev/null +++ b/packages/web3-utils/types/tests/strip-hex-prefix-test.ts @@ -0,0 +1,44 @@ +/* + This file is part of web3.js. + + web3.js is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + web3.js is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License + along with web3.js. If not, see . +*/ +/** + * @file strip-hex-prefix-test.ts + * @author Alejandro Cavallero + * @date 2019 + */ + +import BN = require('bn.js'); +import {stripHexPrefix} from 'web3-utils'; + +// $ExpectType string +stripHexPrefix('0xd1220a0cf47c7b9be7a2e6ba89f429762e7b9adb'); + +// $ExpectError +stripHexPrefix(123); +// $ExpectError +stripHexPrefix(new BN(3)); +// $ExpectError +stripHexPrefix(['string']); +// $ExpectError +stripHexPrefix([4]); +// $ExpectError +stripHexPrefix({}); +// $ExpectError +stripHexPrefix(true); +// $ExpectError +stripHexPrefix(null); +// $ExpectError +stripHexPrefix(undefined); diff --git a/packages/web3-utils/types/tests/test-address-test.ts b/packages/web3-utils/types/tests/test-address-test.ts new file mode 100644 index 00000000000..8c47a1c91ac --- /dev/null +++ b/packages/web3-utils/types/tests/test-address-test.ts @@ -0,0 +1,62 @@ +/* + This file is part of web3.js. + + web3.js is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + web3.js is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License + along with web3.js. If not, see . +*/ +/** + * @file test-address-test.ts + * @author Josh Stevens + * @date 2018 + */ + +import BN = require('bn.js'); +import {testAddress} from 'web3-utils'; + +const bigNumber = new BN(3); + +// $ExpectType boolean +testAddress('0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef', '0x8ee7f17bb3f88b01247c21ab6603880b64ae53e811f5e01138822e558cf1ab51'); + +// $ExpectError +testAddress(656, '0x8ee7f17bb3f88b01247c21ab6603880b64ae53e811f5e01138822e558cf1ab51'); +// $ExpectError +testAddress(bigNumber, '0x8ee7f17bb3f88b01247c21ab6603880b64ae53e811f5e01138822e558cf1ab51'); +// $ExpectError +testAddress(['string'], '0x8ee7f17bb3f88b01247c21ab6603880b64ae53e811f5e01138822e558cf1ab51'); +// $ExpectError +testAddress([4], '0x8ee7f17bb3f88b01247c21ab6603880b64ae53e811f5e01138822e558cf1ab51'); +// $ExpectError +testAddress({}, '0x8ee7f17bb3f88b01247c21ab6603880b64ae53e811f5e01138822e558cf1ab51'); +// $ExpectError +testAddress(true, '0x8ee7f17bb3f88b01247c21ab6603880b64ae53e811f5e01138822e558cf1ab51'); +// $ExpectError +testAddress(null, '0x8ee7f17bb3f88b01247c21ab6603880b64ae53e811f5e01138822e558cf1ab51'); +// $ExpectError +testAddress(undefined, '0x8ee7f17bb3f88b01247c21ab6603880b64ae53e811f5e01138822e558cf1ab51'); +// $ExpectError +testAddress('0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef', 656); +// $ExpectError +testAddress('0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef', bigNumber); +// $ExpectError +testAddress('0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef', ['string']); +// $ExpectError +testAddress('0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef', [4]); +// $ExpectError +testAddress('0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef', {}); +// $ExpectError +testAddress('0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef', true); +// $ExpectError +testAddress('0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef', null); +// $ExpectError +testAddress('0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef', undefined); diff --git a/packages/web3-utils/types/tests/test-topic-test.ts b/packages/web3-utils/types/tests/test-topic-test.ts new file mode 100644 index 00000000000..5c306083ed8 --- /dev/null +++ b/packages/web3-utils/types/tests/test-topic-test.ts @@ -0,0 +1,62 @@ +/* + This file is part of web3.js. + + web3.js is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + web3.js is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License + along with web3.js. If not, see . +*/ +/** + * @file test-topic-test.ts + * @author Josh Stevens + * @date 2018 + */ + +import BN = require('bn.js'); +import {testTopic} from 'web3-utils'; + +const bigNumber = new BN(3); + +// $ExpectType boolean +testTopic('0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef', '0x8ee7f17bb3f88b01247c21ab6603880b64ae53e811f5e01138822e558cf1ab51'); + +// $ExpectError +testTopic(656, '0x8ee7f17bb3f88b01247c21ab6603880b64ae53e811f5e01138822e558cf1ab51'); +// $ExpectError +testTopic(bigNumber, '0x8ee7f17bb3f88b01247c21ab6603880b64ae53e811f5e01138822e558cf1ab51'); +// $ExpectError +testTopic(['string'], '0x8ee7f17bb3f88b01247c21ab6603880b64ae53e811f5e01138822e558cf1ab51'); +// $ExpectError +testTopic([4], '0x8ee7f17bb3f88b01247c21ab6603880b64ae53e811f5e01138822e558cf1ab51'); +// $ExpectError +testTopic({}, '0x8ee7f17bb3f88b01247c21ab6603880b64ae53e811f5e01138822e558cf1ab51'); +// $ExpectError +testTopic(true, '0x8ee7f17bb3f88b01247c21ab6603880b64ae53e811f5e01138822e558cf1ab51'); +// $ExpectError +testTopic(null, '0x8ee7f17bb3f88b01247c21ab6603880b64ae53e811f5e01138822e558cf1ab51'); +// $ExpectError +testTopic(undefined, '0x8ee7f17bb3f88b01247c21ab6603880b64ae53e811f5e01138822e558cf1ab51'); +// $ExpectError +testTopic('0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef', 656); +// $ExpectError +testTopic('0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef', bigNumber); +// $ExpectError +testTopic('0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef', ['string']); +// $ExpectError +testTopic('0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef', [4]); +// $ExpectError +testTopic('0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef', {}); +// $ExpectError +testTopic('0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef', true); +// $ExpectError +testTopic('0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef', null); +// $ExpectError +testTopic('0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef', undefined); diff --git a/packages/web3-utils/types/tests/to-ascii-test.ts b/packages/web3-utils/types/tests/to-ascii-test.ts new file mode 100644 index 00000000000..9d086a2394a --- /dev/null +++ b/packages/web3-utils/types/tests/to-ascii-test.ts @@ -0,0 +1,44 @@ +/* + This file is part of web3.js. + + web3.js is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + web3.js is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License + along with web3.js. If not, see . +*/ +/** + * @file to-ascii-tests.ts + * @author Josh Stevens + * @date 2018 + */ + +import BN = require('bn.js'); +import {toAscii} from 'web3-utils'; + +// $ExpectType string +toAscii('0x4920686176652031303021'); + +// $ExpectError +toAscii(345); +// $ExpectError +toAscii(new BN(3)); +// $ExpectError +toAscii({}); +// $ExpectError +toAscii(true); +// $ExpectError +toAscii(['string']); +// $ExpectError +toAscii([4]); +// $ExpectError +toAscii(null); +// $ExpectError +toAscii(undefined); diff --git a/packages/web3-utils/types/tests/to-bn-test.ts b/packages/web3-utils/types/tests/to-bn-test.ts new file mode 100644 index 00000000000..0df148d7333 --- /dev/null +++ b/packages/web3-utils/types/tests/to-bn-test.ts @@ -0,0 +1,41 @@ +/* + This file is part of web3.js. + + web3.js is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + web3.js is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License + along with web3.js. If not, see . +*/ +/** + * @file to-bn-test.ts + * @author Josh Stevens + * @date 2018 + */ + +import {toBN} from 'web3-utils'; + +// $ExpectType BN +toBN(4); +// $ExpectType BN +toBN('443'); + +// $ExpectError +toBN({}); +// $ExpectError +toBN(true); +// $ExpectError +toBN(['string']); +// $ExpectError +toBN([4]); +// $ExpectError +toBN(null); +// $ExpectError +toBN(undefined); diff --git a/packages/web3-utils/types/tests/to-check-sum-address-test.ts b/packages/web3-utils/types/tests/to-check-sum-address-test.ts new file mode 100644 index 00000000000..a43aa7a8f80 --- /dev/null +++ b/packages/web3-utils/types/tests/to-check-sum-address-test.ts @@ -0,0 +1,60 @@ +/* + This file is part of web3.js. + + web3.js is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + web3.js is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License + along with web3.js. If not, see . +*/ +/** + * @file to-check-sum-address-test.ts + * @author Josh Stevens + * @date 2018 + */ + +import BN = require('bn.js'); +import {toChecksumAddress} from 'web3-utils'; + +// $ExpectType string +toChecksumAddress('0x8ee7f17bb3f88b01247c21ab6603880b64ae53e811f5e01138822e558cf1ab51'); +// $ExpectType string +toChecksumAddress('0x8ee7f17bb3f88b01247c21ab6603880b64ae53e811f5e01138822e558cf1ab51', 31); +// $ExpectType string +toChecksumAddress('0x8ee7f17bb3f88b01247c21ab6603880b64ae53e811f5e01138822e558cf1ab51', undefined); + +// $ExpectError +toChecksumAddress([4]); +// $ExpectError +toChecksumAddress(['string']); +// $ExpectError +toChecksumAddress(345); +// $ExpectError +toChecksumAddress(new BN(3)); +// $ExpectError +toChecksumAddress({}); +// $ExpectError +toChecksumAddress(true); +// $ExpectError +toChecksumAddress(null); +// $ExpectError +toChecksumAddress(undefined); +// $ExpectError +toChecksumAddress('0x8ee7f17bb3f88b01247c21ab6603880b64ae53e811f5e01138822e558cf1ab51', [4]); +// $ExpectError +toChecksumAddress('0x8ee7f17bb3f88b01247c21ab6603880b64ae53e811f5e01138822e558cf1ab51', ['string']); +// $ExpectError +toChecksumAddress('0x8ee7f17bb3f88b01247c21ab6603880b64ae53e811f5e01138822e558cf1ab51', new BN(3)); +// $ExpectError +toChecksumAddress('0x8ee7f17bb3f88b01247c21ab6603880b64ae53e811f5e01138822e558cf1ab51', {}); +// $ExpectError +toChecksumAddress('0x8ee7f17bb3f88b01247c21ab6603880b64ae53e811f5e01138822e558cf1ab51', true); +// $ExpectError +toChecksumAddress('0x8ee7f17bb3f88b01247c21ab6603880b64ae53e811f5e01138822e558cf1ab51', null); diff --git a/packages/web3-utils/types/tests/to-decimal-test.ts b/packages/web3-utils/types/tests/to-decimal-test.ts new file mode 100644 index 00000000000..77793f81165 --- /dev/null +++ b/packages/web3-utils/types/tests/to-decimal-test.ts @@ -0,0 +1,44 @@ +/* + This file is part of web3.js. + + web3.js is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + web3.js is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License + along with web3.js. If not, see . +*/ +/** + * @file to-decimal-test.ts + * @author Josh Stevens + * @date 2018 + */ + +import BN = require('bn.js'); +import {toDecimal} from 'web3-utils'; + +// $ExpectType number +toDecimal('232'); +// $ExpectType number +toDecimal(232); + +// $ExpectError +toDecimal(new BN(3)); +// $ExpectError +toDecimal(['string']); +// $ExpectError +toDecimal([4]); +// $ExpectError +toDecimal({}); +// $ExpectError +toDecimal(true); +// $ExpectError +toDecimal(null); +// $ExpectError +toDecimal(undefined); diff --git a/packages/web3-utils/types/tests/to-hex-test.ts b/packages/web3-utils/types/tests/to-hex-test.ts new file mode 100644 index 00000000000..0c2be5b9709 --- /dev/null +++ b/packages/web3-utils/types/tests/to-hex-test.ts @@ -0,0 +1,44 @@ +/* + This file is part of web3.js. + + web3.js is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + web3.js is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License + along with web3.js. If not, see . +*/ +/** + * @file to-hex-test.ts + * @author Josh Stevens + * @date 2018 + */ + +import BN = require('bn.js'); +import {toHex} from 'web3-utils'; + +// $ExpectType string +toHex('234'); +// $ExpectType string +toHex(234); +// $ExpectType string +toHex(new BN(3)); + +// $ExpectError +toHex(['string']); +// $ExpectError +toHex(true); +// $ExpectError +toHex([4]); +// $ExpectError +toHex({}); +// $ExpectError +toHex(null); +// $ExpectError +toHex(undefined); diff --git a/packages/web3-utils/types/tests/to-twos-compement-test.ts b/packages/web3-utils/types/tests/to-twos-compement-test.ts new file mode 100644 index 00000000000..1162976b26f --- /dev/null +++ b/packages/web3-utils/types/tests/to-twos-compement-test.ts @@ -0,0 +1,44 @@ +/* + This file is part of web3.js. + + web3.js is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + web3.js is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License + along with web3.js. If not, see . +*/ +/** + * @file to-twos-compement-test.ts + * @author Josh Stevens + * @date 2018 + */ + +import BN = require('bn.js'); +import {toTwosComplement} from 'web3-utils'; + +// $ExpectType string +toTwosComplement(4); +// $ExpectType string +toTwosComplement('443'); +// $ExpectType string +toTwosComplement(new BN(3)); + +// $ExpectError +toTwosComplement({}); +// $ExpectError +toTwosComplement(true); +// $ExpectError +toTwosComplement(['string']); +// $ExpectError +toTwosComplement([4]); +// $ExpectError +toTwosComplement(null); +// $ExpectError +toTwosComplement(undefined); diff --git a/packages/web3-utils/types/tests/to-utf8-test.ts b/packages/web3-utils/types/tests/to-utf8-test.ts new file mode 100644 index 00000000000..54c10748f96 --- /dev/null +++ b/packages/web3-utils/types/tests/to-utf8-test.ts @@ -0,0 +1,44 @@ +/* + This file is part of web3.js. + + web3.js is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + web3.js is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License + along with web3.js. If not, see . +*/ +/** + * @file to-utf8-test.ts + * @author Josh Stevens + * @date 2018 + */ + +import BN = require('bn.js'); +import {toUtf8} from 'web3-utils'; + +// $ExpectType string +toUtf8('0x49206861766520313030e282ac'); + +// $ExpectError +toUtf8(656); +// $ExpectError +toUtf8(new BN(3)); +// $ExpectError +toUtf8(['string']); +// $ExpectError +toUtf8([4]); +// $ExpectError +toUtf8({}); +// $ExpectError +toUtf8(true); +// $ExpectError +toUtf8(null); +// $ExpectError +toUtf8(undefined); diff --git a/packages/web3-utils/types/tests/to-wei-test.ts b/packages/web3-utils/types/tests/to-wei-test.ts new file mode 100644 index 00000000000..ee725b53c04 --- /dev/null +++ b/packages/web3-utils/types/tests/to-wei-test.ts @@ -0,0 +1,50 @@ +/* + This file is part of web3.js. + + web3.js is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + web3.js is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License + along with web3.js. If not, see . +*/ +/** + * @file to-wei-test.ts + * @author Josh Stevens + * @date 2018 + */ + +import BN = require('bn.js'); +import {toWei} from 'web3-utils'; + +const bigNumber = new BN(3); + +// $ExpectType string +toWei('1'); +// $ExpectType BN +toWei(bigNumber); +// $ExpectType string +toWei('1', 'finney'); +// $ExpectType BN +toWei(bigNumber, 'finney'); + +// $ExpectError +toWei(['string']); +// $ExpectError +toWei([4]); +// $ExpectError +toWei({}); +// $ExpectError +toWei(true); +// $ExpectError +toWei(null); +// $ExpectError +toWei(undefined); +// $ExpectError +toWei(1, 'blah'); diff --git a/packages/web3-utils/types/tests/unit-map-test.ts b/packages/web3-utils/types/tests/unit-map-test.ts new file mode 100644 index 00000000000..ab75ed97cc5 --- /dev/null +++ b/packages/web3-utils/types/tests/unit-map-test.ts @@ -0,0 +1,26 @@ +/* + This file is part of web3.js. + + web3.js is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + web3.js is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License + along with web3.js. If not, see . +*/ +/** + * @file unit-map-test.ts + * @author Josh Stevens + * @date 2018 + */ + +import {unitMap} from 'web3-utils'; + +// $ExpectType Units +unitMap(); diff --git a/packages/web3-utils/types/tests/utf8-to-hex-test.ts b/packages/web3-utils/types/tests/utf8-to-hex-test.ts new file mode 100644 index 00000000000..116551bc63b --- /dev/null +++ b/packages/web3-utils/types/tests/utf8-to-hex-test.ts @@ -0,0 +1,44 @@ +/* + This file is part of web3.js. + + web3.js is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + web3.js is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License + along with web3.js. If not, see . +*/ +/** + * @file utf8-to-hex-test.ts + * @author Josh Stevens + * @date 2018 + */ + +import BN = require('bn.js'); +import {utf8ToHex} from 'web3-utils'; + +// $ExpectType string +utf8ToHex('I have 100£'); + +// $ExpectError +utf8ToHex(232); +// $ExpectError +utf8ToHex(new BN(3)); +// $ExpectError +utf8ToHex(['string']); +// $ExpectError +utf8ToHex([4]); +// $ExpectError +utf8ToHex({}); +// $ExpectError +utf8ToHex(true); +// $ExpectError +utf8ToHex(null); +// $ExpectError +utf8ToHex(undefined); From 1047a11030025f5cfed743d2a111c78f9f8bc3d2 Mon Sep 17 00:00:00 2001 From: Josh Stevens Date: Tue, 15 Oct 2019 12:39:25 +0100 Subject: [PATCH 078/124] feat: add types in package.json --- package.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/package.json b/package.json index 4700db1be8d..eba43afc178 100644 --- a/package.json +++ b/package.json @@ -76,6 +76,8 @@ "@babel/preset-env": "^7.6.0", "@types/bignumber.js": "^4.0.2", "@types/underscore": "^1.8.0", + "@types/bn.js": "^4.11.5", + "@types/node": "^12.6.1", "bignumber.js": "^4.0.0", "bluebird": "3.3.1", "bn.js": "^4.11.8", From 549dc7c5383d561ded9dba1dc88f068ec96e919a Mon Sep 17 00:00:00 2001 From: Josh Stevens Date: Tue, 15 Oct 2019 12:39:36 +0100 Subject: [PATCH 079/124] feat: new lock files for all packages --- packages/web3-bzz/package-lock.json | 4 +- packages/web3-core-helpers/package-lock.json | 391 ++++++++++++++++- packages/web3-core-method/package-lock.json | 391 ++++++++++++++++- .../web3-core-promievent/package-lock.json | 4 +- .../package-lock.json | 4 +- .../web3-core-subscriptions/package-lock.json | 4 +- packages/web3-core/package-lock.json | 408 ++++++++++++++++++ packages/web3-eth-abi/package-lock.json | 385 ++++++++++++++++- packages/web3-eth-accounts/package-lock.json | 370 +++++++++++++++- packages/web3-eth-contract/package-lock.json | 404 ++++++++++++++++- packages/web3-eth-ens/package-lock.json | 391 ++++++++++++++++- packages/web3-eth-iban/package-lock.json | 391 ++++++++++++++++- packages/web3-eth-personal/package-lock.json | 400 +++++++++++++++++ packages/web3-eth/package-lock.json | 391 ++++++++++++++++- packages/web3-net/package-lock.json | 395 +++++++++++++++++ .../web3-providers-http/package-lock.json | 4 +- packages/web3-providers-ipc/package-lock.json | 4 +- packages/web3-providers-ws/package-lock.json | 4 +- packages/web3-shh/package-lock.json | 395 +++++++++++++++++ packages/web3-utils/package-lock.json | 370 +++++++++++++++- packages/web3/package-lock.json | 400 +++++++++++++++++ 21 files changed, 5494 insertions(+), 16 deletions(-) create mode 100644 packages/web3-core/package-lock.json create mode 100644 packages/web3-eth-personal/package-lock.json create mode 100644 packages/web3-net/package-lock.json create mode 100644 packages/web3-shh/package-lock.json create mode 100644 packages/web3/package-lock.json diff --git a/packages/web3-bzz/package-lock.json b/packages/web3-bzz/package-lock.json index 4c1dbdc4cd6..d97a94d54fb 100644 --- a/packages/web3-bzz/package-lock.json +++ b/packages/web3-bzz/package-lock.json @@ -1,6 +1,8 @@ { - "requires": true, + "name": "web3-bzz", + "version": "1.2.1", "lockfileVersion": 1, + "requires": true, "dependencies": { "@sindresorhus/is": { "version": "0.14.0", diff --git a/packages/web3-core-helpers/package-lock.json b/packages/web3-core-helpers/package-lock.json index d8f894cdc17..420b4874a05 100644 --- a/packages/web3-core-helpers/package-lock.json +++ b/packages/web3-core-helpers/package-lock.json @@ -1,11 +1,400 @@ { - "requires": true, + "name": "web3-core-helpers", + "version": "1.2.1", "lockfileVersion": 1, + "requires": true, "dependencies": { + "@babel/code-frame": { + "version": "7.5.5", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.5.5.tgz", + "integrity": "sha512-27d4lZoomVyo51VegxI20xZPuSHusqbQag/ztrBC7wegWoQ1nLREPVSKSW8byhTlzTKyNE4ifaTA6lCp7JjpFw==", + "dev": true, + "requires": { + "@babel/highlight": "^7.0.0" + } + }, + "@babel/highlight": { + "version": "7.5.0", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.5.0.tgz", + "integrity": "sha512-7dV4eu9gBxoM0dAnj/BCFDW9LFU0zvTrkq0ugM7pnHEgguOEeOz1so2ZghEdzviYzQEED0r4EAgpsBChKy1TRQ==", + "dev": true, + "requires": { + "chalk": "^2.0.0", + "esutils": "^2.0.2", + "js-tokens": "^4.0.0" + } + }, + "@types/parsimmon": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/@types/parsimmon/-/parsimmon-1.10.0.tgz", + "integrity": "sha512-bsTIJFVQv7jnvNiC42ld2pQW2KRI+pAG243L+iATvqzy3X6+NH1obz2itRKDZZ8VVhN3wjwYax/VBGCcXzgTqQ==", + "dev": true + }, + "ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, + "requires": { + "color-convert": "^1.9.0" + } + }, + "argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "dev": true, + "requires": { + "sprintf-js": "~1.0.2" + } + }, + "balanced-match": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", + "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", + "dev": true + }, + "brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "requires": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "builtin-modules": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-1.1.1.tgz", + "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=", + "dev": true + }, + "chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dev": true, + "requires": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + } + }, + "color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dev": true, + "requires": { + "color-name": "1.1.3" + } + }, + "color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", + "dev": true + }, + "commander": { + "version": "2.20.3", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", + "dev": true + }, + "concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", + "dev": true + }, + "definitelytyped-header-parser": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/definitelytyped-header-parser/-/definitelytyped-header-parser-1.2.0.tgz", + "integrity": "sha512-xpg8uu/2YD/reaVsZV4oJ4g7UDYFqQGWvT1W9Tsj6q4VtWBSaig38Qgah0ZMnQGF9kAsAim08EXDO1nSi0+Nog==", + "dev": true, + "requires": { + "@types/parsimmon": "^1.3.0", + "parsimmon": "^1.2.0" + } + }, + "diff": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.1.tgz", + "integrity": "sha512-s2+XdvhPCOF01LRQBC8hf4vhbVmI2CGS5aZnxLJlT5FtdhPCDFq80q++zK2KlrVorVDdL5BOGZ/VfLrVtYNF+Q==", + "dev": true + }, + "dtslint": { + "version": "0.4.2", + "resolved": "https://registry.npmjs.org/dtslint/-/dtslint-0.4.2.tgz", + "integrity": "sha512-ph4GXLw3HYzlQMJOFcpCqWHuL3MxJ/344OR7wn0wlQGchQGTIVNsSUl8iKEMatpy2geNMysgA9fQa6xVhHOkTQ==", + "dev": true, + "requires": { + "definitelytyped-header-parser": "github:Microsoft/definitelytyped-header-parser#production", + "fs-extra": "^6.0.1", + "strip-json-comments": "^2.0.1", + "tslint": "^5.12.0", + "typescript": "^3.7.0-dev.20191015" + }, + "dependencies": { + "definitelytyped-header-parser": { + "version": "github:Microsoft/definitelytyped-header-parser#d957ad0bb2f4ecb60ac04f734e0b38fbc8e70b8a", + "from": "github:Microsoft/definitelytyped-header-parser#production", + "dev": true, + "requires": { + "@types/parsimmon": "^1.3.0", + "parsimmon": "^1.2.0" + } + } + } + }, + "escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", + "dev": true + }, + "esprima": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "dev": true + }, + "esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true + }, + "fs-extra": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-6.0.1.tgz", + "integrity": "sha512-GnyIkKhhzXZUWFCaJzvyDLEEgDkPfb4/TPvJCJVuS8MWZgoSsErf++QpiAlDnKFcqhRlm+tIOcencCjyJE6ZCA==", + "dev": true, + "requires": { + "graceful-fs": "^4.1.2", + "jsonfile": "^4.0.0", + "universalify": "^0.1.0" + } + }, + "fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", + "dev": true + }, + "glob": { + "version": "7.1.4", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.4.tgz", + "integrity": "sha512-hkLPepehmnKk41pUGm3sYxoFs/umurYfYJCerbXEyFIWcAzvpipAgVkBqqT9RBKMGjnq6kMuyYwha6csxbiM1A==", + "dev": true, + "requires": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.0.4", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + } + }, + "graceful-fs": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.2.tgz", + "integrity": "sha512-IItsdsea19BoLC7ELy13q1iJFNmd7ofZH5+X/pJr90/nRoPEX0DJo1dHDbgtYWOhJhcCgMDTOw84RZ72q6lB+Q==", + "dev": true + }, + "has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", + "dev": true + }, + "inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", + "dev": true, + "requires": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "dev": true + }, + "js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "dev": true + }, + "js-yaml": { + "version": "3.13.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.13.1.tgz", + "integrity": "sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw==", + "dev": true, + "requires": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + } + }, + "jsonfile": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", + "integrity": "sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss=", + "dev": true, + "requires": { + "graceful-fs": "^4.1.6" + } + }, + "minimatch": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", + "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", + "dev": true, + "requires": { + "brace-expansion": "^1.1.7" + } + }, + "minimist": { + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", + "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=", + "dev": true + }, + "mkdirp": { + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", + "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", + "dev": true, + "requires": { + "minimist": "0.0.8" + } + }, + "once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", + "dev": true, + "requires": { + "wrappy": "1" + } + }, + "parsimmon": { + "version": "1.13.0", + "resolved": "https://registry.npmjs.org/parsimmon/-/parsimmon-1.13.0.tgz", + "integrity": "sha512-5UIrOCW+gjbILkjKPgTgmq8LKf8TT3Iy7kN2VD7OtQ81facKn8B4gG1X94jWqXYZsxG2KbJhrv/Yq/5H6BQn7A==", + "dev": true + }, + "path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", + "dev": true + }, + "path-parse": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz", + "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==", + "dev": true + }, + "resolve": { + "version": "1.12.0", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.12.0.tgz", + "integrity": "sha512-B/dOmuoAik5bKcD6s6nXDCjzUKnaDvdkRyAk6rsmsKLipWj4797iothd7jmmUhWTfinVMU+wc56rYKsit2Qy4w==", + "dev": true, + "requires": { + "path-parse": "^1.0.6" + } + }, + "semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "dev": true + }, + "sprintf-js": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", + "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", + "dev": true + }, + "strip-json-comments": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", + "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=", + "dev": true + }, + "supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, + "requires": { + "has-flag": "^3.0.0" + } + }, + "tslib": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.10.0.tgz", + "integrity": "sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==", + "dev": true + }, + "tslint": { + "version": "5.20.0", + "resolved": "https://registry.npmjs.org/tslint/-/tslint-5.20.0.tgz", + "integrity": "sha512-2vqIvkMHbnx8acMogAERQ/IuINOq6DFqgF8/VDvhEkBqQh/x6SP0Y+OHnKth9/ZcHQSroOZwUQSN18v8KKF0/g==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.0.0", + "builtin-modules": "^1.1.1", + "chalk": "^2.3.0", + "commander": "^2.12.1", + "diff": "^4.0.1", + "glob": "^7.1.1", + "js-yaml": "^3.13.1", + "minimatch": "^3.0.4", + "mkdirp": "^0.5.1", + "resolve": "^1.3.2", + "semver": "^5.3.0", + "tslib": "^1.8.0", + "tsutils": "^2.29.0" + } + }, + "tsutils": { + "version": "2.29.0", + "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-2.29.0.tgz", + "integrity": "sha512-g5JVHCIJwzfISaXpXE1qvNalca5Jwob6FjI4AoPlqMusJ6ftFE7IkkFoMhVLRgK+4Kx3gkzb8UZK5t5yTTvEmA==", + "dev": true, + "requires": { + "tslib": "^1.8.1" + } + }, + "typescript": { + "version": "3.7.0-dev.20191015", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.7.0-dev.20191015.tgz", + "integrity": "sha512-Cpfj1n4pEUVKL+jtS0mkZodJffyMmf3Wk/UjyZMGX4fsjK5KBPJf3NUlyXij8I8p1E2CAomdS5NPFrAR+z8pKw==", + "dev": true + }, "underscore": { "version": "1.9.1", "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.9.1.tgz", "integrity": "sha512-5/4etnCkd9c8gwgowi5/om/mYO5ajCaOgdzj/oW+0eQV9WxKBDZw5+ycmKmeaTXjInS/W0BzpGLo2xR2aBwZdg==" + }, + "universalify": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", + "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", + "dev": true + }, + "wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", + "dev": true } } } diff --git a/packages/web3-core-method/package-lock.json b/packages/web3-core-method/package-lock.json index d8f894cdc17..0fc123f981f 100644 --- a/packages/web3-core-method/package-lock.json +++ b/packages/web3-core-method/package-lock.json @@ -1,11 +1,400 @@ { - "requires": true, + "name": "web3-core-method", + "version": "1.2.1", "lockfileVersion": 1, + "requires": true, "dependencies": { + "@babel/code-frame": { + "version": "7.5.5", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.5.5.tgz", + "integrity": "sha512-27d4lZoomVyo51VegxI20xZPuSHusqbQag/ztrBC7wegWoQ1nLREPVSKSW8byhTlzTKyNE4ifaTA6lCp7JjpFw==", + "dev": true, + "requires": { + "@babel/highlight": "^7.0.0" + } + }, + "@babel/highlight": { + "version": "7.5.0", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.5.0.tgz", + "integrity": "sha512-7dV4eu9gBxoM0dAnj/BCFDW9LFU0zvTrkq0ugM7pnHEgguOEeOz1so2ZghEdzviYzQEED0r4EAgpsBChKy1TRQ==", + "dev": true, + "requires": { + "chalk": "^2.0.0", + "esutils": "^2.0.2", + "js-tokens": "^4.0.0" + } + }, + "@types/parsimmon": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/@types/parsimmon/-/parsimmon-1.10.0.tgz", + "integrity": "sha512-bsTIJFVQv7jnvNiC42ld2pQW2KRI+pAG243L+iATvqzy3X6+NH1obz2itRKDZZ8VVhN3wjwYax/VBGCcXzgTqQ==", + "dev": true + }, + "ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, + "requires": { + "color-convert": "^1.9.0" + } + }, + "argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "dev": true, + "requires": { + "sprintf-js": "~1.0.2" + } + }, + "balanced-match": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", + "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", + "dev": true + }, + "brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "requires": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "builtin-modules": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-1.1.1.tgz", + "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=", + "dev": true + }, + "chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dev": true, + "requires": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + } + }, + "color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dev": true, + "requires": { + "color-name": "1.1.3" + } + }, + "color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", + "dev": true + }, + "commander": { + "version": "2.20.3", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", + "dev": true + }, + "concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", + "dev": true + }, + "definitelytyped-header-parser": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/definitelytyped-header-parser/-/definitelytyped-header-parser-1.2.0.tgz", + "integrity": "sha512-xpg8uu/2YD/reaVsZV4oJ4g7UDYFqQGWvT1W9Tsj6q4VtWBSaig38Qgah0ZMnQGF9kAsAim08EXDO1nSi0+Nog==", + "dev": true, + "requires": { + "@types/parsimmon": "^1.3.0", + "parsimmon": "^1.2.0" + } + }, + "diff": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.1.tgz", + "integrity": "sha512-s2+XdvhPCOF01LRQBC8hf4vhbVmI2CGS5aZnxLJlT5FtdhPCDFq80q++zK2KlrVorVDdL5BOGZ/VfLrVtYNF+Q==", + "dev": true + }, + "dtslint": { + "version": "0.4.2", + "resolved": "https://registry.npmjs.org/dtslint/-/dtslint-0.4.2.tgz", + "integrity": "sha512-ph4GXLw3HYzlQMJOFcpCqWHuL3MxJ/344OR7wn0wlQGchQGTIVNsSUl8iKEMatpy2geNMysgA9fQa6xVhHOkTQ==", + "dev": true, + "requires": { + "definitelytyped-header-parser": "github:Microsoft/definitelytyped-header-parser#production", + "fs-extra": "^6.0.1", + "strip-json-comments": "^2.0.1", + "tslint": "^5.12.0", + "typescript": "^3.7.0-dev.20191015" + }, + "dependencies": { + "definitelytyped-header-parser": { + "version": "github:Microsoft/definitelytyped-header-parser#d957ad0bb2f4ecb60ac04f734e0b38fbc8e70b8a", + "from": "github:Microsoft/definitelytyped-header-parser#production", + "dev": true, + "requires": { + "@types/parsimmon": "^1.3.0", + "parsimmon": "^1.2.0" + } + } + } + }, + "escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", + "dev": true + }, + "esprima": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "dev": true + }, + "esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true + }, + "fs-extra": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-6.0.1.tgz", + "integrity": "sha512-GnyIkKhhzXZUWFCaJzvyDLEEgDkPfb4/TPvJCJVuS8MWZgoSsErf++QpiAlDnKFcqhRlm+tIOcencCjyJE6ZCA==", + "dev": true, + "requires": { + "graceful-fs": "^4.1.2", + "jsonfile": "^4.0.0", + "universalify": "^0.1.0" + } + }, + "fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", + "dev": true + }, + "glob": { + "version": "7.1.4", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.4.tgz", + "integrity": "sha512-hkLPepehmnKk41pUGm3sYxoFs/umurYfYJCerbXEyFIWcAzvpipAgVkBqqT9RBKMGjnq6kMuyYwha6csxbiM1A==", + "dev": true, + "requires": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.0.4", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + } + }, + "graceful-fs": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.2.tgz", + "integrity": "sha512-IItsdsea19BoLC7ELy13q1iJFNmd7ofZH5+X/pJr90/nRoPEX0DJo1dHDbgtYWOhJhcCgMDTOw84RZ72q6lB+Q==", + "dev": true + }, + "has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", + "dev": true + }, + "inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", + "dev": true, + "requires": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "dev": true + }, + "js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "dev": true + }, + "js-yaml": { + "version": "3.13.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.13.1.tgz", + "integrity": "sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw==", + "dev": true, + "requires": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + } + }, + "jsonfile": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", + "integrity": "sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss=", + "dev": true, + "requires": { + "graceful-fs": "^4.1.6" + } + }, + "minimatch": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", + "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", + "dev": true, + "requires": { + "brace-expansion": "^1.1.7" + } + }, + "minimist": { + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", + "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=", + "dev": true + }, + "mkdirp": { + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", + "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", + "dev": true, + "requires": { + "minimist": "0.0.8" + } + }, + "once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", + "dev": true, + "requires": { + "wrappy": "1" + } + }, + "parsimmon": { + "version": "1.13.0", + "resolved": "https://registry.npmjs.org/parsimmon/-/parsimmon-1.13.0.tgz", + "integrity": "sha512-5UIrOCW+gjbILkjKPgTgmq8LKf8TT3Iy7kN2VD7OtQ81facKn8B4gG1X94jWqXYZsxG2KbJhrv/Yq/5H6BQn7A==", + "dev": true + }, + "path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", + "dev": true + }, + "path-parse": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz", + "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==", + "dev": true + }, + "resolve": { + "version": "1.12.0", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.12.0.tgz", + "integrity": "sha512-B/dOmuoAik5bKcD6s6nXDCjzUKnaDvdkRyAk6rsmsKLipWj4797iothd7jmmUhWTfinVMU+wc56rYKsit2Qy4w==", + "dev": true, + "requires": { + "path-parse": "^1.0.6" + } + }, + "semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "dev": true + }, + "sprintf-js": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", + "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", + "dev": true + }, + "strip-json-comments": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", + "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=", + "dev": true + }, + "supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, + "requires": { + "has-flag": "^3.0.0" + } + }, + "tslib": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.10.0.tgz", + "integrity": "sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==", + "dev": true + }, + "tslint": { + "version": "5.20.0", + "resolved": "https://registry.npmjs.org/tslint/-/tslint-5.20.0.tgz", + "integrity": "sha512-2vqIvkMHbnx8acMogAERQ/IuINOq6DFqgF8/VDvhEkBqQh/x6SP0Y+OHnKth9/ZcHQSroOZwUQSN18v8KKF0/g==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.0.0", + "builtin-modules": "^1.1.1", + "chalk": "^2.3.0", + "commander": "^2.12.1", + "diff": "^4.0.1", + "glob": "^7.1.1", + "js-yaml": "^3.13.1", + "minimatch": "^3.0.4", + "mkdirp": "^0.5.1", + "resolve": "^1.3.2", + "semver": "^5.3.0", + "tslib": "^1.8.0", + "tsutils": "^2.29.0" + } + }, + "tsutils": { + "version": "2.29.0", + "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-2.29.0.tgz", + "integrity": "sha512-g5JVHCIJwzfISaXpXE1qvNalca5Jwob6FjI4AoPlqMusJ6ftFE7IkkFoMhVLRgK+4Kx3gkzb8UZK5t5yTTvEmA==", + "dev": true, + "requires": { + "tslib": "^1.8.1" + } + }, + "typescript": { + "version": "3.7.0-dev.20191015", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.7.0-dev.20191015.tgz", + "integrity": "sha512-Cpfj1n4pEUVKL+jtS0mkZodJffyMmf3Wk/UjyZMGX4fsjK5KBPJf3NUlyXij8I8p1E2CAomdS5NPFrAR+z8pKw==", + "dev": true + }, "underscore": { "version": "1.9.1", "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.9.1.tgz", "integrity": "sha512-5/4etnCkd9c8gwgowi5/om/mYO5ajCaOgdzj/oW+0eQV9WxKBDZw5+ycmKmeaTXjInS/W0BzpGLo2xR2aBwZdg==" + }, + "universalify": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", + "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", + "dev": true + }, + "wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", + "dev": true } } } diff --git a/packages/web3-core-promievent/package-lock.json b/packages/web3-core-promievent/package-lock.json index 61451624d12..5ccb0948073 100644 --- a/packages/web3-core-promievent/package-lock.json +++ b/packages/web3-core-promievent/package-lock.json @@ -1,6 +1,8 @@ { - "requires": true, + "name": "web3-core-promievent", + "version": "1.2.1", "lockfileVersion": 1, + "requires": true, "dependencies": { "any-promise": { "version": "1.3.0", diff --git a/packages/web3-core-requestmanager/package-lock.json b/packages/web3-core-requestmanager/package-lock.json index d8f894cdc17..3c66d673aeb 100644 --- a/packages/web3-core-requestmanager/package-lock.json +++ b/packages/web3-core-requestmanager/package-lock.json @@ -1,6 +1,8 @@ { - "requires": true, + "name": "web3-core-requestmanager", + "version": "1.2.1", "lockfileVersion": 1, + "requires": true, "dependencies": { "underscore": { "version": "1.9.1", diff --git a/packages/web3-core-subscriptions/package-lock.json b/packages/web3-core-subscriptions/package-lock.json index 02979441fb1..7f79d7a6496 100644 --- a/packages/web3-core-subscriptions/package-lock.json +++ b/packages/web3-core-subscriptions/package-lock.json @@ -1,6 +1,8 @@ { - "requires": true, + "name": "web3-core-subscriptions", + "version": "1.2.1", "lockfileVersion": 1, + "requires": true, "dependencies": { "eventemitter3": { "version": "3.1.2", diff --git a/packages/web3-core/package-lock.json b/packages/web3-core/package-lock.json new file mode 100644 index 00000000000..52364589f45 --- /dev/null +++ b/packages/web3-core/package-lock.json @@ -0,0 +1,408 @@ +{ + "name": "web3-core", + "version": "1.2.1", + "lockfileVersion": 1, + "requires": true, + "dependencies": { + "@babel/code-frame": { + "version": "7.5.5", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.5.5.tgz", + "integrity": "sha512-27d4lZoomVyo51VegxI20xZPuSHusqbQag/ztrBC7wegWoQ1nLREPVSKSW8byhTlzTKyNE4ifaTA6lCp7JjpFw==", + "dev": true, + "requires": { + "@babel/highlight": "^7.0.0" + } + }, + "@babel/highlight": { + "version": "7.5.0", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.5.0.tgz", + "integrity": "sha512-7dV4eu9gBxoM0dAnj/BCFDW9LFU0zvTrkq0ugM7pnHEgguOEeOz1so2ZghEdzviYzQEED0r4EAgpsBChKy1TRQ==", + "dev": true, + "requires": { + "chalk": "^2.0.0", + "esutils": "^2.0.2", + "js-tokens": "^4.0.0" + } + }, + "@types/bn.js": { + "version": "4.11.5", + "resolved": "https://registry.npmjs.org/@types/bn.js/-/bn.js-4.11.5.tgz", + "integrity": "sha512-AEAZcIZga0JgVMHNtl1CprA/hXX7/wPt79AgR4XqaDt7jyj3QWYw6LPoOiznPtugDmlubUnAahMs2PFxGcQrng==", + "requires": { + "@types/node": "*" + } + }, + "@types/node": { + "version": "12.7.12", + "resolved": "https://registry.npmjs.org/@types/node/-/node-12.7.12.tgz", + "integrity": "sha512-KPYGmfD0/b1eXurQ59fXD1GBzhSQfz6/lKBxkaHX9dKTzjXbK68Zt7yGUxUsCS1jeTy/8aL+d9JEr+S54mpkWQ==" + }, + "@types/parsimmon": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/@types/parsimmon/-/parsimmon-1.10.0.tgz", + "integrity": "sha512-bsTIJFVQv7jnvNiC42ld2pQW2KRI+pAG243L+iATvqzy3X6+NH1obz2itRKDZZ8VVhN3wjwYax/VBGCcXzgTqQ==", + "dev": true + }, + "ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, + "requires": { + "color-convert": "^1.9.0" + } + }, + "argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "dev": true, + "requires": { + "sprintf-js": "~1.0.2" + } + }, + "balanced-match": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", + "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", + "dev": true + }, + "brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "requires": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "builtin-modules": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-1.1.1.tgz", + "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=", + "dev": true + }, + "chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dev": true, + "requires": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + } + }, + "color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dev": true, + "requires": { + "color-name": "1.1.3" + } + }, + "color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", + "dev": true + }, + "commander": { + "version": "2.20.3", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", + "dev": true + }, + "concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", + "dev": true + }, + "definitelytyped-header-parser": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/definitelytyped-header-parser/-/definitelytyped-header-parser-1.2.0.tgz", + "integrity": "sha512-xpg8uu/2YD/reaVsZV4oJ4g7UDYFqQGWvT1W9Tsj6q4VtWBSaig38Qgah0ZMnQGF9kAsAim08EXDO1nSi0+Nog==", + "dev": true, + "requires": { + "@types/parsimmon": "^1.3.0", + "parsimmon": "^1.2.0" + } + }, + "diff": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.1.tgz", + "integrity": "sha512-s2+XdvhPCOF01LRQBC8hf4vhbVmI2CGS5aZnxLJlT5FtdhPCDFq80q++zK2KlrVorVDdL5BOGZ/VfLrVtYNF+Q==", + "dev": true + }, + "dtslint": { + "version": "0.4.2", + "resolved": "https://registry.npmjs.org/dtslint/-/dtslint-0.4.2.tgz", + "integrity": "sha512-ph4GXLw3HYzlQMJOFcpCqWHuL3MxJ/344OR7wn0wlQGchQGTIVNsSUl8iKEMatpy2geNMysgA9fQa6xVhHOkTQ==", + "dev": true, + "requires": { + "definitelytyped-header-parser": "github:Microsoft/definitelytyped-header-parser#production", + "fs-extra": "^6.0.1", + "strip-json-comments": "^2.0.1", + "tslint": "^5.12.0", + "typescript": "^3.7.0-dev.20191015" + }, + "dependencies": { + "definitelytyped-header-parser": { + "version": "github:Microsoft/definitelytyped-header-parser#d957ad0bb2f4ecb60ac04f734e0b38fbc8e70b8a", + "from": "github:Microsoft/definitelytyped-header-parser#production", + "dev": true, + "requires": { + "@types/parsimmon": "^1.3.0", + "parsimmon": "^1.2.0" + } + } + } + }, + "escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", + "dev": true + }, + "esprima": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "dev": true + }, + "esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true + }, + "fs-extra": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-6.0.1.tgz", + "integrity": "sha512-GnyIkKhhzXZUWFCaJzvyDLEEgDkPfb4/TPvJCJVuS8MWZgoSsErf++QpiAlDnKFcqhRlm+tIOcencCjyJE6ZCA==", + "dev": true, + "requires": { + "graceful-fs": "^4.1.2", + "jsonfile": "^4.0.0", + "universalify": "^0.1.0" + } + }, + "fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", + "dev": true + }, + "glob": { + "version": "7.1.4", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.4.tgz", + "integrity": "sha512-hkLPepehmnKk41pUGm3sYxoFs/umurYfYJCerbXEyFIWcAzvpipAgVkBqqT9RBKMGjnq6kMuyYwha6csxbiM1A==", + "dev": true, + "requires": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.0.4", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + } + }, + "graceful-fs": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.2.tgz", + "integrity": "sha512-IItsdsea19BoLC7ELy13q1iJFNmd7ofZH5+X/pJr90/nRoPEX0DJo1dHDbgtYWOhJhcCgMDTOw84RZ72q6lB+Q==", + "dev": true + }, + "has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", + "dev": true + }, + "inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", + "dev": true, + "requires": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "dev": true + }, + "js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "dev": true + }, + "js-yaml": { + "version": "3.13.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.13.1.tgz", + "integrity": "sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw==", + "dev": true, + "requires": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + } + }, + "jsonfile": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", + "integrity": "sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss=", + "dev": true, + "requires": { + "graceful-fs": "^4.1.6" + } + }, + "minimatch": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", + "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", + "dev": true, + "requires": { + "brace-expansion": "^1.1.7" + } + }, + "minimist": { + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", + "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=", + "dev": true + }, + "mkdirp": { + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", + "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", + "dev": true, + "requires": { + "minimist": "0.0.8" + } + }, + "once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", + "dev": true, + "requires": { + "wrappy": "1" + } + }, + "parsimmon": { + "version": "1.13.0", + "resolved": "https://registry.npmjs.org/parsimmon/-/parsimmon-1.13.0.tgz", + "integrity": "sha512-5UIrOCW+gjbILkjKPgTgmq8LKf8TT3Iy7kN2VD7OtQ81facKn8B4gG1X94jWqXYZsxG2KbJhrv/Yq/5H6BQn7A==", + "dev": true + }, + "path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", + "dev": true + }, + "path-parse": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz", + "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==", + "dev": true + }, + "resolve": { + "version": "1.12.0", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.12.0.tgz", + "integrity": "sha512-B/dOmuoAik5bKcD6s6nXDCjzUKnaDvdkRyAk6rsmsKLipWj4797iothd7jmmUhWTfinVMU+wc56rYKsit2Qy4w==", + "dev": true, + "requires": { + "path-parse": "^1.0.6" + } + }, + "semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "dev": true + }, + "sprintf-js": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", + "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", + "dev": true + }, + "strip-json-comments": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", + "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=", + "dev": true + }, + "supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, + "requires": { + "has-flag": "^3.0.0" + } + }, + "tslib": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.10.0.tgz", + "integrity": "sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==", + "dev": true + }, + "tslint": { + "version": "5.20.0", + "resolved": "https://registry.npmjs.org/tslint/-/tslint-5.20.0.tgz", + "integrity": "sha512-2vqIvkMHbnx8acMogAERQ/IuINOq6DFqgF8/VDvhEkBqQh/x6SP0Y+OHnKth9/ZcHQSroOZwUQSN18v8KKF0/g==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.0.0", + "builtin-modules": "^1.1.1", + "chalk": "^2.3.0", + "commander": "^2.12.1", + "diff": "^4.0.1", + "glob": "^7.1.1", + "js-yaml": "^3.13.1", + "minimatch": "^3.0.4", + "mkdirp": "^0.5.1", + "resolve": "^1.3.2", + "semver": "^5.3.0", + "tslib": "^1.8.0", + "tsutils": "^2.29.0" + } + }, + "tsutils": { + "version": "2.29.0", + "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-2.29.0.tgz", + "integrity": "sha512-g5JVHCIJwzfISaXpXE1qvNalca5Jwob6FjI4AoPlqMusJ6ftFE7IkkFoMhVLRgK+4Kx3gkzb8UZK5t5yTTvEmA==", + "dev": true, + "requires": { + "tslib": "^1.8.1" + } + }, + "typescript": { + "version": "3.7.0-dev.20191015", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.7.0-dev.20191015.tgz", + "integrity": "sha512-Cpfj1n4pEUVKL+jtS0mkZodJffyMmf3Wk/UjyZMGX4fsjK5KBPJf3NUlyXij8I8p1E2CAomdS5NPFrAR+z8pKw==", + "dev": true + }, + "universalify": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", + "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", + "dev": true + }, + "wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", + "dev": true + } + } +} diff --git a/packages/web3-eth-abi/package-lock.json b/packages/web3-eth-abi/package-lock.json index df5ba50b07e..c71a08137d8 100644 --- a/packages/web3-eth-abi/package-lock.json +++ b/packages/web3-eth-abi/package-lock.json @@ -1,27 +1,173 @@ { - "requires": true, + "name": "web3-eth-abi", + "version": "1.2.1", "lockfileVersion": 1, + "requires": true, "dependencies": { + "@babel/code-frame": { + "version": "7.5.5", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.5.5.tgz", + "integrity": "sha512-27d4lZoomVyo51VegxI20xZPuSHusqbQag/ztrBC7wegWoQ1nLREPVSKSW8byhTlzTKyNE4ifaTA6lCp7JjpFw==", + "dev": true, + "requires": { + "@babel/highlight": "^7.0.0" + } + }, + "@babel/highlight": { + "version": "7.5.0", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.5.0.tgz", + "integrity": "sha512-7dV4eu9gBxoM0dAnj/BCFDW9LFU0zvTrkq0ugM7pnHEgguOEeOz1so2ZghEdzviYzQEED0r4EAgpsBChKy1TRQ==", + "dev": true, + "requires": { + "chalk": "^2.0.0", + "esutils": "^2.0.2", + "js-tokens": "^4.0.0" + } + }, "@types/node": { "version": "10.14.9", "resolved": "https://registry.npmjs.org/@types/node/-/node-10.14.9.tgz", "integrity": "sha512-NelG/dSahlXYtSoVPErrp06tYFrvzj8XLWmKA+X8x0W//4MqbUyZu++giUG/v0bjAT6/Qxa8IjodrfdACyb0Fg==" }, + "@types/parsimmon": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/@types/parsimmon/-/parsimmon-1.10.0.tgz", + "integrity": "sha512-bsTIJFVQv7jnvNiC42ld2pQW2KRI+pAG243L+iATvqzy3X6+NH1obz2itRKDZZ8VVhN3wjwYax/VBGCcXzgTqQ==", + "dev": true + }, "aes-js": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/aes-js/-/aes-js-3.0.0.tgz", "integrity": "sha1-4h3xCtbCBTKVvLuNq0Cwnb6ofk0=" }, + "ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, + "requires": { + "color-convert": "^1.9.0" + } + }, + "argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "dev": true, + "requires": { + "sprintf-js": "~1.0.2" + } + }, + "balanced-match": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", + "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", + "dev": true + }, "bn.js": { "version": "4.11.8", "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.11.8.tgz", "integrity": "sha512-ItfYfPLkWHUjckQCk8xC+LwxgK8NYcXywGigJgSwOP8Y2iyWT4f2vsZnoOXTTbo+o5yXmIUJ4gn5538SO5S3gA==" }, + "brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "requires": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, "brorand": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/brorand/-/brorand-1.1.0.tgz", "integrity": "sha1-EsJe/kCkXjwyPrhnWgoM5XsiNx8=" }, + "builtin-modules": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-1.1.1.tgz", + "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=", + "dev": true + }, + "chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dev": true, + "requires": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + } + }, + "color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dev": true, + "requires": { + "color-name": "1.1.3" + } + }, + "color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", + "dev": true + }, + "commander": { + "version": "2.20.3", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", + "dev": true + }, + "concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", + "dev": true + }, + "definitelytyped-header-parser": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/definitelytyped-header-parser/-/definitelytyped-header-parser-1.2.0.tgz", + "integrity": "sha512-xpg8uu/2YD/reaVsZV4oJ4g7UDYFqQGWvT1W9Tsj6q4VtWBSaig38Qgah0ZMnQGF9kAsAim08EXDO1nSi0+Nog==", + "dev": true, + "requires": { + "@types/parsimmon": "^1.3.0", + "parsimmon": "^1.2.0" + } + }, + "diff": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.1.tgz", + "integrity": "sha512-s2+XdvhPCOF01LRQBC8hf4vhbVmI2CGS5aZnxLJlT5FtdhPCDFq80q++zK2KlrVorVDdL5BOGZ/VfLrVtYNF+Q==", + "dev": true + }, + "dtslint": { + "version": "0.4.2", + "resolved": "https://registry.npmjs.org/dtslint/-/dtslint-0.4.2.tgz", + "integrity": "sha512-ph4GXLw3HYzlQMJOFcpCqWHuL3MxJ/344OR7wn0wlQGchQGTIVNsSUl8iKEMatpy2geNMysgA9fQa6xVhHOkTQ==", + "dev": true, + "requires": { + "definitelytyped-header-parser": "github:Microsoft/definitelytyped-header-parser#production", + "fs-extra": "^6.0.1", + "strip-json-comments": "^2.0.1", + "tslint": "^5.12.0", + "typescript": "^3.7.0-dev.20191015" + }, + "dependencies": { + "definitelytyped-header-parser": { + "version": "github:Microsoft/definitelytyped-header-parser#d957ad0bb2f4ecb60ac04f734e0b38fbc8e70b8a", + "from": "github:Microsoft/definitelytyped-header-parser#production", + "dev": true, + "requires": { + "@types/parsimmon": "^1.3.0", + "parsimmon": "^1.2.0" + } + } + } + }, "elliptic": { "version": "6.3.3", "resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.3.3.tgz", @@ -33,6 +179,24 @@ "inherits": "^2.0.1" } }, + "escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", + "dev": true + }, + "esprima": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "dev": true + }, + "esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true + }, "ethers": { "version": "4.0.0-beta.3", "resolved": "https://registry.npmjs.org/ethers/-/ethers-4.0.0-beta.3.tgz", @@ -50,6 +214,49 @@ "xmlhttprequest": "1.8.0" } }, + "fs-extra": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-6.0.1.tgz", + "integrity": "sha512-GnyIkKhhzXZUWFCaJzvyDLEEgDkPfb4/TPvJCJVuS8MWZgoSsErf++QpiAlDnKFcqhRlm+tIOcencCjyJE6ZCA==", + "dev": true, + "requires": { + "graceful-fs": "^4.1.2", + "jsonfile": "^4.0.0", + "universalify": "^0.1.0" + } + }, + "fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", + "dev": true + }, + "glob": { + "version": "7.1.4", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.4.tgz", + "integrity": "sha512-hkLPepehmnKk41pUGm3sYxoFs/umurYfYJCerbXEyFIWcAzvpipAgVkBqqT9RBKMGjnq6kMuyYwha6csxbiM1A==", + "dev": true, + "requires": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.0.4", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + } + }, + "graceful-fs": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.2.tgz", + "integrity": "sha512-IItsdsea19BoLC7ELy13q1iJFNmd7ofZH5+X/pJr90/nRoPEX0DJo1dHDbgtYWOhJhcCgMDTOw84RZ72q6lB+Q==", + "dev": true + }, + "has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", + "dev": true + }, "hash.js": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/hash.js/-/hash.js-1.1.3.tgz", @@ -59,6 +266,16 @@ "minimalistic-assert": "^1.0.0" } }, + "inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", + "dev": true, + "requires": { + "once": "^1.3.0", + "wrappy": "1" + } + }, "inherits": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", @@ -69,31 +286,197 @@ "resolved": "https://registry.npmjs.org/js-sha3/-/js-sha3-0.5.7.tgz", "integrity": "sha1-DU/9gALVMzqrr0oj7tL2N0yfKOc=" }, + "js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "dev": true + }, + "js-yaml": { + "version": "3.13.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.13.1.tgz", + "integrity": "sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw==", + "dev": true, + "requires": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + } + }, + "jsonfile": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", + "integrity": "sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss=", + "dev": true, + "requires": { + "graceful-fs": "^4.1.6" + } + }, "minimalistic-assert": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz", "integrity": "sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A==" }, + "minimatch": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", + "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", + "dev": true, + "requires": { + "brace-expansion": "^1.1.7" + } + }, + "minimist": { + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", + "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=", + "dev": true + }, + "mkdirp": { + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", + "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", + "dev": true, + "requires": { + "minimist": "0.0.8" + } + }, + "once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", + "dev": true, + "requires": { + "wrappy": "1" + } + }, + "parsimmon": { + "version": "1.13.0", + "resolved": "https://registry.npmjs.org/parsimmon/-/parsimmon-1.13.0.tgz", + "integrity": "sha512-5UIrOCW+gjbILkjKPgTgmq8LKf8TT3Iy7kN2VD7OtQ81facKn8B4gG1X94jWqXYZsxG2KbJhrv/Yq/5H6BQn7A==", + "dev": true + }, + "path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", + "dev": true + }, + "path-parse": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz", + "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==", + "dev": true + }, + "resolve": { + "version": "1.12.0", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.12.0.tgz", + "integrity": "sha512-B/dOmuoAik5bKcD6s6nXDCjzUKnaDvdkRyAk6rsmsKLipWj4797iothd7jmmUhWTfinVMU+wc56rYKsit2Qy4w==", + "dev": true, + "requires": { + "path-parse": "^1.0.6" + } + }, "scrypt-js": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/scrypt-js/-/scrypt-js-2.0.3.tgz", "integrity": "sha1-uwBAvgMEPamgEqLOqfyfhSz8h9Q=" }, + "semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "dev": true + }, "setimmediate": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/setimmediate/-/setimmediate-1.0.4.tgz", "integrity": "sha1-IOgd5iLUoCWIzgyNqJc8vPHTE48=" }, + "sprintf-js": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", + "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", + "dev": true + }, + "strip-json-comments": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", + "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=", + "dev": true + }, + "supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, + "requires": { + "has-flag": "^3.0.0" + } + }, + "tslib": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.10.0.tgz", + "integrity": "sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==", + "dev": true + }, + "tslint": { + "version": "5.20.0", + "resolved": "https://registry.npmjs.org/tslint/-/tslint-5.20.0.tgz", + "integrity": "sha512-2vqIvkMHbnx8acMogAERQ/IuINOq6DFqgF8/VDvhEkBqQh/x6SP0Y+OHnKth9/ZcHQSroOZwUQSN18v8KKF0/g==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.0.0", + "builtin-modules": "^1.1.1", + "chalk": "^2.3.0", + "commander": "^2.12.1", + "diff": "^4.0.1", + "glob": "^7.1.1", + "js-yaml": "^3.13.1", + "minimatch": "^3.0.4", + "mkdirp": "^0.5.1", + "resolve": "^1.3.2", + "semver": "^5.3.0", + "tslib": "^1.8.0", + "tsutils": "^2.29.0" + } + }, + "tsutils": { + "version": "2.29.0", + "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-2.29.0.tgz", + "integrity": "sha512-g5JVHCIJwzfISaXpXE1qvNalca5Jwob6FjI4AoPlqMusJ6ftFE7IkkFoMhVLRgK+4Kx3gkzb8UZK5t5yTTvEmA==", + "dev": true, + "requires": { + "tslib": "^1.8.1" + } + }, + "typescript": { + "version": "3.7.0-dev.20191015", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.7.0-dev.20191015.tgz", + "integrity": "sha512-Cpfj1n4pEUVKL+jtS0mkZodJffyMmf3Wk/UjyZMGX4fsjK5KBPJf3NUlyXij8I8p1E2CAomdS5NPFrAR+z8pKw==", + "dev": true + }, "underscore": { "version": "1.9.1", "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.9.1.tgz", "integrity": "sha512-5/4etnCkd9c8gwgowi5/om/mYO5ajCaOgdzj/oW+0eQV9WxKBDZw5+ycmKmeaTXjInS/W0BzpGLo2xR2aBwZdg==" }, + "universalify": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", + "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", + "dev": true + }, "uuid": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/uuid/-/uuid-2.0.1.tgz", "integrity": "sha1-wqMN7bPlNdcsz4LjQ5QaULqFM6w=" }, + "wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", + "dev": true + }, "xmlhttprequest": { "version": "1.8.0", "resolved": "https://registry.npmjs.org/xmlhttprequest/-/xmlhttprequest-1.8.0.tgz", diff --git a/packages/web3-eth-accounts/package-lock.json b/packages/web3-eth-accounts/package-lock.json index 29a025ac480..1e4741fb9e1 100644 --- a/packages/web3-eth-accounts/package-lock.json +++ b/packages/web3-eth-accounts/package-lock.json @@ -1,12 +1,58 @@ { - "requires": true, + "name": "web3-eth-accounts", + "version": "1.2.1", "lockfileVersion": 1, + "requires": true, "dependencies": { + "@babel/code-frame": { + "version": "7.5.5", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.5.5.tgz", + "integrity": "sha512-27d4lZoomVyo51VegxI20xZPuSHusqbQag/ztrBC7wegWoQ1nLREPVSKSW8byhTlzTKyNE4ifaTA6lCp7JjpFw==", + "dev": true, + "requires": { + "@babel/highlight": "^7.0.0" + } + }, + "@babel/highlight": { + "version": "7.5.0", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.5.0.tgz", + "integrity": "sha512-7dV4eu9gBxoM0dAnj/BCFDW9LFU0zvTrkq0ugM7pnHEgguOEeOz1so2ZghEdzviYzQEED0r4EAgpsBChKy1TRQ==", + "dev": true, + "requires": { + "chalk": "^2.0.0", + "esutils": "^2.0.2", + "js-tokens": "^4.0.0" + } + }, + "@types/parsimmon": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/@types/parsimmon/-/parsimmon-1.10.0.tgz", + "integrity": "sha512-bsTIJFVQv7jnvNiC42ld2pQW2KRI+pAG243L+iATvqzy3X6+NH1obz2itRKDZZ8VVhN3wjwYax/VBGCcXzgTqQ==", + "dev": true + }, + "ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, + "requires": { + "color-convert": "^1.9.0" + } + }, "any-promise": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/any-promise/-/any-promise-1.3.0.tgz", "integrity": "sha1-q8av7tzqUugJzcA3au0845Y10X8=" }, + "argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "dev": true, + "requires": { + "sprintf-js": "~1.0.2" + } + }, "asn1.js": { "version": "4.10.1", "resolved": "https://registry.npmjs.org/asn1.js/-/asn1.js-4.10.1.tgz", @@ -17,6 +63,12 @@ "minimalistic-assert": "^1.0.0" } }, + "balanced-match": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", + "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", + "dev": true + }, "bindings": { "version": "1.5.0", "resolved": "https://registry.npmjs.org/bindings/-/bindings-1.5.0.tgz", @@ -38,6 +90,16 @@ "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.11.8.tgz", "integrity": "sha1-LN4J617jQfSEdGuwMJsyU7GxRC8=" }, + "brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "requires": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, "brorand": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/brorand/-/brorand-1.1.0.tgz", @@ -110,6 +172,23 @@ "resolved": "https://registry.npmjs.org/buffer-xor/-/buffer-xor-1.0.3.tgz", "integrity": "sha1-JuYe0UIvtw3ULm42cp7VHYVf6Nk=" }, + "builtin-modules": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-1.1.1.tgz", + "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=", + "dev": true + }, + "chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dev": true, + "requires": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + } + }, "cipher-base": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/cipher-base/-/cipher-base-1.0.4.tgz", @@ -119,6 +198,33 @@ "safe-buffer": "^5.0.1" } }, + "color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dev": true, + "requires": { + "color-name": "1.1.3" + } + }, + "color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", + "dev": true + }, + "commander": { + "version": "2.20.3", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", + "dev": true + }, + "concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", + "dev": true + }, "create-ecdh": { "version": "4.0.3", "resolved": "https://registry.npmjs.org/create-ecdh/-/create-ecdh-4.0.3.tgz", @@ -192,6 +298,16 @@ "object-keys": "^1.0.12" } }, + "definitelytyped-header-parser": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/definitelytyped-header-parser/-/definitelytyped-header-parser-1.2.0.tgz", + "integrity": "sha512-xpg8uu/2YD/reaVsZV4oJ4g7UDYFqQGWvT1W9Tsj6q4VtWBSaig38Qgah0ZMnQGF9kAsAim08EXDO1nSi0+Nog==", + "dev": true, + "requires": { + "@types/parsimmon": "^1.3.0", + "parsimmon": "^1.2.0" + } + }, "des.js": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/des.js/-/des.js-1.0.0.tgz", @@ -201,6 +317,12 @@ "minimalistic-assert": "^1.0.0" } }, + "diff": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.1.tgz", + "integrity": "sha512-s2+XdvhPCOF01LRQBC8hf4vhbVmI2CGS5aZnxLJlT5FtdhPCDFq80q++zK2KlrVorVDdL5BOGZ/VfLrVtYNF+Q==", + "dev": true + }, "diffie-hellman": { "version": "5.0.3", "resolved": "http://registry.npmjs.org/diffie-hellman/-/diffie-hellman-5.0.3.tgz", @@ -226,6 +348,30 @@ "create-hmac": "^1.1.4" } }, + "dtslint": { + "version": "0.4.2", + "resolved": "https://registry.npmjs.org/dtslint/-/dtslint-0.4.2.tgz", + "integrity": "sha512-ph4GXLw3HYzlQMJOFcpCqWHuL3MxJ/344OR7wn0wlQGchQGTIVNsSUl8iKEMatpy2geNMysgA9fQa6xVhHOkTQ==", + "dev": true, + "requires": { + "definitelytyped-header-parser": "github:Microsoft/definitelytyped-header-parser#production", + "fs-extra": "^6.0.1", + "strip-json-comments": "^2.0.1", + "tslint": "^5.12.0", + "typescript": "^3.7.0-dev.20191015" + }, + "dependencies": { + "definitelytyped-header-parser": { + "version": "github:Microsoft/definitelytyped-header-parser#d957ad0bb2f4ecb60ac04f734e0b38fbc8e70b8a", + "from": "github:Microsoft/definitelytyped-header-parser#production", + "dev": true, + "requires": { + "@types/parsimmon": "^1.3.0", + "parsimmon": "^1.2.0" + } + } + } + }, "elliptic": { "version": "6.4.1", "resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.4.1.tgz", @@ -263,6 +409,24 @@ "is-symbol": "^1.0.2" } }, + "escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", + "dev": true + }, + "esprima": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "dev": true + }, + "esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true + }, "eth-lib": { "version": "0.2.7", "resolved": "https://registry.npmjs.org/eth-lib/-/eth-lib-0.2.7.tgz", @@ -332,11 +496,42 @@ "is-callable": "^1.1.3" } }, + "fs-extra": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-6.0.1.tgz", + "integrity": "sha512-GnyIkKhhzXZUWFCaJzvyDLEEgDkPfb4/TPvJCJVuS8MWZgoSsErf++QpiAlDnKFcqhRlm+tIOcencCjyJE6ZCA==", + "dev": true, + "requires": { + "graceful-fs": "^4.1.2", + "jsonfile": "^4.0.0", + "universalify": "^0.1.0" + } + }, + "fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", + "dev": true + }, "function-bind": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==" }, + "glob": { + "version": "7.1.4", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.4.tgz", + "integrity": "sha512-hkLPepehmnKk41pUGm3sYxoFs/umurYfYJCerbXEyFIWcAzvpipAgVkBqqT9RBKMGjnq6kMuyYwha6csxbiM1A==", + "dev": true, + "requires": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.0.4", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + } + }, "global": { "version": "4.3.2", "resolved": "https://registry.npmjs.org/global/-/global-4.3.2.tgz", @@ -346,6 +541,12 @@ "process": "~0.5.1" } }, + "graceful-fs": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.2.tgz", + "integrity": "sha512-IItsdsea19BoLC7ELy13q1iJFNmd7ofZH5+X/pJr90/nRoPEX0DJo1dHDbgtYWOhJhcCgMDTOw84RZ72q6lB+Q==", + "dev": true + }, "has": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", @@ -354,6 +555,12 @@ "function-bind": "^1.1.1" } }, + "has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", + "dev": true + }, "has-symbols": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.0.tgz", @@ -387,6 +594,16 @@ "minimalistic-crypto-utils": "^1.0.1" } }, + "inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", + "dev": true, + "requires": { + "once": "^1.3.0", + "wrappy": "1" + } + }, "inherits": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", @@ -428,6 +645,31 @@ "has-symbols": "^1.0.0" } }, + "js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "dev": true + }, + "js-yaml": { + "version": "3.13.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.13.1.tgz", + "integrity": "sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw==", + "dev": true, + "requires": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + } + }, + "jsonfile": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", + "integrity": "sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss=", + "dev": true, + "requires": { + "graceful-fs": "^4.1.6" + } + }, "keccak": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/keccak/-/keccak-1.4.0.tgz", @@ -481,6 +723,30 @@ "resolved": "https://registry.npmjs.org/minimalistic-crypto-utils/-/minimalistic-crypto-utils-1.0.1.tgz", "integrity": "sha1-9sAMHAsIIkblxNmd+4x8CDsrWCo=" }, + "minimatch": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", + "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", + "dev": true, + "requires": { + "brace-expansion": "^1.1.7" + } + }, + "minimist": { + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", + "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=", + "dev": true + }, + "mkdirp": { + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", + "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", + "dev": true, + "requires": { + "minimist": "0.0.8" + } + }, "nan": { "version": "2.14.0", "resolved": "https://registry.npmjs.org/nan/-/nan-2.14.0.tgz", @@ -525,6 +791,24 @@ "string.prototype.trim": "^1.1.2" } }, + "parsimmon": { + "version": "1.13.0", + "resolved": "https://registry.npmjs.org/parsimmon/-/parsimmon-1.13.0.tgz", + "integrity": "sha512-5UIrOCW+gjbILkjKPgTgmq8LKf8TT3Iy7kN2VD7OtQ81facKn8B4gG1X94jWqXYZsxG2KbJhrv/Yq/5H6BQn7A==", + "dev": true + }, + "path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", + "dev": true + }, + "path-parse": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz", + "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==", + "dev": true + }, "pbkdf2": { "version": "3.0.17", "resolved": "https://registry.npmjs.org/pbkdf2/-/pbkdf2-3.0.17.tgz", @@ -582,6 +866,15 @@ "safe-buffer": "^5.1.0" } }, + "resolve": { + "version": "1.12.0", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.12.0.tgz", + "integrity": "sha512-B/dOmuoAik5bKcD6s6nXDCjzUKnaDvdkRyAk6rsmsKLipWj4797iothd7jmmUhWTfinVMU+wc56rYKsit2Qy4w==", + "dev": true, + "requires": { + "path-parse": "^1.0.6" + } + }, "ripemd160": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/ripemd160/-/ripemd160-2.0.2.tgz", @@ -640,6 +933,12 @@ "safe-buffer": "^5.1.2" } }, + "semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "dev": true + }, "sha.js": { "version": "2.4.11", "resolved": "https://registry.npmjs.org/sha.js/-/sha.js-2.4.11.tgz", @@ -664,6 +963,12 @@ "simple-concat": "^1.0.0" } }, + "sprintf-js": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", + "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", + "dev": true + }, "strict-uri-encode": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/strict-uri-encode/-/strict-uri-encode-1.1.0.tgz", @@ -687,16 +992,79 @@ "is-hex-prefixed": "1.0.0" } }, + "strip-json-comments": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", + "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=", + "dev": true + }, + "supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, + "requires": { + "has-flag": "^3.0.0" + } + }, "timed-out": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/timed-out/-/timed-out-4.0.1.tgz", "integrity": "sha1-8y6srFoXW+ol1/q1Zas+2HQe9W8=" }, + "tslib": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.10.0.tgz", + "integrity": "sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==", + "dev": true + }, + "tslint": { + "version": "5.20.0", + "resolved": "https://registry.npmjs.org/tslint/-/tslint-5.20.0.tgz", + "integrity": "sha512-2vqIvkMHbnx8acMogAERQ/IuINOq6DFqgF8/VDvhEkBqQh/x6SP0Y+OHnKth9/ZcHQSroOZwUQSN18v8KKF0/g==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.0.0", + "builtin-modules": "^1.1.1", + "chalk": "^2.3.0", + "commander": "^2.12.1", + "diff": "^4.0.1", + "glob": "^7.1.1", + "js-yaml": "^3.13.1", + "minimatch": "^3.0.4", + "mkdirp": "^0.5.1", + "resolve": "^1.3.2", + "semver": "^5.3.0", + "tslib": "^1.8.0", + "tsutils": "^2.29.0" + } + }, + "tsutils": { + "version": "2.29.0", + "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-2.29.0.tgz", + "integrity": "sha512-g5JVHCIJwzfISaXpXE1qvNalca5Jwob6FjI4AoPlqMusJ6ftFE7IkkFoMhVLRgK+4Kx3gkzb8UZK5t5yTTvEmA==", + "dev": true, + "requires": { + "tslib": "^1.8.1" + } + }, + "typescript": { + "version": "3.7.0-dev.20191015", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.7.0-dev.20191015.tgz", + "integrity": "sha512-Cpfj1n4pEUVKL+jtS0mkZodJffyMmf3Wk/UjyZMGX4fsjK5KBPJf3NUlyXij8I8p1E2CAomdS5NPFrAR+z8pKw==", + "dev": true + }, "underscore": { "version": "1.9.1", "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.9.1.tgz", "integrity": "sha512-5/4etnCkd9c8gwgowi5/om/mYO5ajCaOgdzj/oW+0eQV9WxKBDZw5+ycmKmeaTXjInS/W0BzpGLo2xR2aBwZdg==" }, + "universalify": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", + "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", + "dev": true + }, "url-set-query": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/url-set-query/-/url-set-query-1.0.0.tgz", diff --git a/packages/web3-eth-contract/package-lock.json b/packages/web3-eth-contract/package-lock.json index d8f894cdc17..e5103e3e17f 100644 --- a/packages/web3-eth-contract/package-lock.json +++ b/packages/web3-eth-contract/package-lock.json @@ -1,11 +1,413 @@ { - "requires": true, + "name": "web3-eth-contract", + "version": "1.2.1", "lockfileVersion": 1, + "requires": true, "dependencies": { + "@babel/code-frame": { + "version": "7.5.5", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.5.5.tgz", + "integrity": "sha512-27d4lZoomVyo51VegxI20xZPuSHusqbQag/ztrBC7wegWoQ1nLREPVSKSW8byhTlzTKyNE4ifaTA6lCp7JjpFw==", + "dev": true, + "requires": { + "@babel/highlight": "^7.0.0" + } + }, + "@babel/highlight": { + "version": "7.5.0", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.5.0.tgz", + "integrity": "sha512-7dV4eu9gBxoM0dAnj/BCFDW9LFU0zvTrkq0ugM7pnHEgguOEeOz1so2ZghEdzviYzQEED0r4EAgpsBChKy1TRQ==", + "dev": true, + "requires": { + "chalk": "^2.0.0", + "esutils": "^2.0.2", + "js-tokens": "^4.0.0" + } + }, + "@types/bn.js": { + "version": "4.11.5", + "resolved": "https://registry.npmjs.org/@types/bn.js/-/bn.js-4.11.5.tgz", + "integrity": "sha512-AEAZcIZga0JgVMHNtl1CprA/hXX7/wPt79AgR4XqaDt7jyj3QWYw6LPoOiznPtugDmlubUnAahMs2PFxGcQrng==", + "requires": { + "@types/node": "*" + } + }, + "@types/node": { + "version": "12.7.12", + "resolved": "https://registry.npmjs.org/@types/node/-/node-12.7.12.tgz", + "integrity": "sha512-KPYGmfD0/b1eXurQ59fXD1GBzhSQfz6/lKBxkaHX9dKTzjXbK68Zt7yGUxUsCS1jeTy/8aL+d9JEr+S54mpkWQ==" + }, + "@types/parsimmon": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/@types/parsimmon/-/parsimmon-1.10.0.tgz", + "integrity": "sha512-bsTIJFVQv7jnvNiC42ld2pQW2KRI+pAG243L+iATvqzy3X6+NH1obz2itRKDZZ8VVhN3wjwYax/VBGCcXzgTqQ==", + "dev": true + }, + "ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, + "requires": { + "color-convert": "^1.9.0" + } + }, + "argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "dev": true, + "requires": { + "sprintf-js": "~1.0.2" + } + }, + "balanced-match": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", + "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", + "dev": true + }, + "brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "requires": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "builtin-modules": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-1.1.1.tgz", + "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=", + "dev": true + }, + "chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dev": true, + "requires": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + } + }, + "color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dev": true, + "requires": { + "color-name": "1.1.3" + } + }, + "color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", + "dev": true + }, + "commander": { + "version": "2.20.3", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", + "dev": true + }, + "concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", + "dev": true + }, + "definitelytyped-header-parser": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/definitelytyped-header-parser/-/definitelytyped-header-parser-1.2.0.tgz", + "integrity": "sha512-xpg8uu/2YD/reaVsZV4oJ4g7UDYFqQGWvT1W9Tsj6q4VtWBSaig38Qgah0ZMnQGF9kAsAim08EXDO1nSi0+Nog==", + "dev": true, + "requires": { + "@types/parsimmon": "^1.3.0", + "parsimmon": "^1.2.0" + } + }, + "diff": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.1.tgz", + "integrity": "sha512-s2+XdvhPCOF01LRQBC8hf4vhbVmI2CGS5aZnxLJlT5FtdhPCDFq80q++zK2KlrVorVDdL5BOGZ/VfLrVtYNF+Q==", + "dev": true + }, + "dtslint": { + "version": "0.4.2", + "resolved": "https://registry.npmjs.org/dtslint/-/dtslint-0.4.2.tgz", + "integrity": "sha512-ph4GXLw3HYzlQMJOFcpCqWHuL3MxJ/344OR7wn0wlQGchQGTIVNsSUl8iKEMatpy2geNMysgA9fQa6xVhHOkTQ==", + "dev": true, + "requires": { + "definitelytyped-header-parser": "github:Microsoft/definitelytyped-header-parser#production", + "fs-extra": "^6.0.1", + "strip-json-comments": "^2.0.1", + "tslint": "^5.12.0", + "typescript": "^3.7.0-dev.20191015" + }, + "dependencies": { + "definitelytyped-header-parser": { + "version": "github:Microsoft/definitelytyped-header-parser#d957ad0bb2f4ecb60ac04f734e0b38fbc8e70b8a", + "from": "github:Microsoft/definitelytyped-header-parser#production", + "dev": true, + "requires": { + "@types/parsimmon": "^1.3.0", + "parsimmon": "^1.2.0" + } + } + } + }, + "escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", + "dev": true + }, + "esprima": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "dev": true + }, + "esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true + }, + "fs-extra": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-6.0.1.tgz", + "integrity": "sha512-GnyIkKhhzXZUWFCaJzvyDLEEgDkPfb4/TPvJCJVuS8MWZgoSsErf++QpiAlDnKFcqhRlm+tIOcencCjyJE6ZCA==", + "dev": true, + "requires": { + "graceful-fs": "^4.1.2", + "jsonfile": "^4.0.0", + "universalify": "^0.1.0" + } + }, + "fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", + "dev": true + }, + "glob": { + "version": "7.1.4", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.4.tgz", + "integrity": "sha512-hkLPepehmnKk41pUGm3sYxoFs/umurYfYJCerbXEyFIWcAzvpipAgVkBqqT9RBKMGjnq6kMuyYwha6csxbiM1A==", + "dev": true, + "requires": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.0.4", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + } + }, + "graceful-fs": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.2.tgz", + "integrity": "sha512-IItsdsea19BoLC7ELy13q1iJFNmd7ofZH5+X/pJr90/nRoPEX0DJo1dHDbgtYWOhJhcCgMDTOw84RZ72q6lB+Q==", + "dev": true + }, + "has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", + "dev": true + }, + "inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", + "dev": true, + "requires": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "dev": true + }, + "js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "dev": true + }, + "js-yaml": { + "version": "3.13.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.13.1.tgz", + "integrity": "sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw==", + "dev": true, + "requires": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + } + }, + "jsonfile": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", + "integrity": "sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss=", + "dev": true, + "requires": { + "graceful-fs": "^4.1.6" + } + }, + "minimatch": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", + "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", + "dev": true, + "requires": { + "brace-expansion": "^1.1.7" + } + }, + "minimist": { + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", + "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=", + "dev": true + }, + "mkdirp": { + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", + "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", + "dev": true, + "requires": { + "minimist": "0.0.8" + } + }, + "once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", + "dev": true, + "requires": { + "wrappy": "1" + } + }, + "parsimmon": { + "version": "1.13.0", + "resolved": "https://registry.npmjs.org/parsimmon/-/parsimmon-1.13.0.tgz", + "integrity": "sha512-5UIrOCW+gjbILkjKPgTgmq8LKf8TT3Iy7kN2VD7OtQ81facKn8B4gG1X94jWqXYZsxG2KbJhrv/Yq/5H6BQn7A==", + "dev": true + }, + "path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", + "dev": true + }, + "path-parse": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz", + "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==", + "dev": true + }, + "resolve": { + "version": "1.12.0", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.12.0.tgz", + "integrity": "sha512-B/dOmuoAik5bKcD6s6nXDCjzUKnaDvdkRyAk6rsmsKLipWj4797iothd7jmmUhWTfinVMU+wc56rYKsit2Qy4w==", + "dev": true, + "requires": { + "path-parse": "^1.0.6" + } + }, + "semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "dev": true + }, + "sprintf-js": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", + "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", + "dev": true + }, + "strip-json-comments": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", + "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=", + "dev": true + }, + "supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, + "requires": { + "has-flag": "^3.0.0" + } + }, + "tslib": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.10.0.tgz", + "integrity": "sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==", + "dev": true + }, + "tslint": { + "version": "5.20.0", + "resolved": "https://registry.npmjs.org/tslint/-/tslint-5.20.0.tgz", + "integrity": "sha512-2vqIvkMHbnx8acMogAERQ/IuINOq6DFqgF8/VDvhEkBqQh/x6SP0Y+OHnKth9/ZcHQSroOZwUQSN18v8KKF0/g==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.0.0", + "builtin-modules": "^1.1.1", + "chalk": "^2.3.0", + "commander": "^2.12.1", + "diff": "^4.0.1", + "glob": "^7.1.1", + "js-yaml": "^3.13.1", + "minimatch": "^3.0.4", + "mkdirp": "^0.5.1", + "resolve": "^1.3.2", + "semver": "^5.3.0", + "tslib": "^1.8.0", + "tsutils": "^2.29.0" + } + }, + "tsutils": { + "version": "2.29.0", + "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-2.29.0.tgz", + "integrity": "sha512-g5JVHCIJwzfISaXpXE1qvNalca5Jwob6FjI4AoPlqMusJ6ftFE7IkkFoMhVLRgK+4Kx3gkzb8UZK5t5yTTvEmA==", + "dev": true, + "requires": { + "tslib": "^1.8.1" + } + }, + "typescript": { + "version": "3.7.0-dev.20191015", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.7.0-dev.20191015.tgz", + "integrity": "sha512-Cpfj1n4pEUVKL+jtS0mkZodJffyMmf3Wk/UjyZMGX4fsjK5KBPJf3NUlyXij8I8p1E2CAomdS5NPFrAR+z8pKw==", + "dev": true + }, "underscore": { "version": "1.9.1", "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.9.1.tgz", "integrity": "sha512-5/4etnCkd9c8gwgowi5/om/mYO5ajCaOgdzj/oW+0eQV9WxKBDZw5+ycmKmeaTXjInS/W0BzpGLo2xR2aBwZdg==" + }, + "universalify": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", + "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", + "dev": true + }, + "wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", + "dev": true } } } diff --git a/packages/web3-eth-ens/package-lock.json b/packages/web3-eth-ens/package-lock.json index f9bbe7d1488..f05b8b6d617 100644 --- a/packages/web3-eth-ens/package-lock.json +++ b/packages/web3-eth-ens/package-lock.json @@ -1,7 +1,171 @@ { - "requires": true, + "name": "web3-eth-ens", + "version": "1.2.1", "lockfileVersion": 1, + "requires": true, "dependencies": { + "@babel/code-frame": { + "version": "7.5.5", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.5.5.tgz", + "integrity": "sha512-27d4lZoomVyo51VegxI20xZPuSHusqbQag/ztrBC7wegWoQ1nLREPVSKSW8byhTlzTKyNE4ifaTA6lCp7JjpFw==", + "dev": true, + "requires": { + "@babel/highlight": "^7.0.0" + } + }, + "@babel/highlight": { + "version": "7.5.0", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.5.0.tgz", + "integrity": "sha512-7dV4eu9gBxoM0dAnj/BCFDW9LFU0zvTrkq0ugM7pnHEgguOEeOz1so2ZghEdzviYzQEED0r4EAgpsBChKy1TRQ==", + "dev": true, + "requires": { + "chalk": "^2.0.0", + "esutils": "^2.0.2", + "js-tokens": "^4.0.0" + } + }, + "@types/parsimmon": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/@types/parsimmon/-/parsimmon-1.10.0.tgz", + "integrity": "sha512-bsTIJFVQv7jnvNiC42ld2pQW2KRI+pAG243L+iATvqzy3X6+NH1obz2itRKDZZ8VVhN3wjwYax/VBGCcXzgTqQ==", + "dev": true + }, + "ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, + "requires": { + "color-convert": "^1.9.0" + } + }, + "argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "dev": true, + "requires": { + "sprintf-js": "~1.0.2" + } + }, + "balanced-match": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", + "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", + "dev": true + }, + "brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "requires": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "builtin-modules": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-1.1.1.tgz", + "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=", + "dev": true + }, + "chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dev": true, + "requires": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + } + }, + "color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dev": true, + "requires": { + "color-name": "1.1.3" + } + }, + "color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", + "dev": true + }, + "commander": { + "version": "2.20.3", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", + "dev": true + }, + "concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", + "dev": true + }, + "definitelytyped-header-parser": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/definitelytyped-header-parser/-/definitelytyped-header-parser-1.2.0.tgz", + "integrity": "sha512-xpg8uu/2YD/reaVsZV4oJ4g7UDYFqQGWvT1W9Tsj6q4VtWBSaig38Qgah0ZMnQGF9kAsAim08EXDO1nSi0+Nog==", + "dev": true, + "requires": { + "@types/parsimmon": "^1.3.0", + "parsimmon": "^1.2.0" + } + }, + "diff": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.1.tgz", + "integrity": "sha512-s2+XdvhPCOF01LRQBC8hf4vhbVmI2CGS5aZnxLJlT5FtdhPCDFq80q++zK2KlrVorVDdL5BOGZ/VfLrVtYNF+Q==", + "dev": true + }, + "dtslint": { + "version": "0.4.2", + "resolved": "https://registry.npmjs.org/dtslint/-/dtslint-0.4.2.tgz", + "integrity": "sha512-ph4GXLw3HYzlQMJOFcpCqWHuL3MxJ/344OR7wn0wlQGchQGTIVNsSUl8iKEMatpy2geNMysgA9fQa6xVhHOkTQ==", + "dev": true, + "requires": { + "definitelytyped-header-parser": "github:Microsoft/definitelytyped-header-parser#production", + "fs-extra": "^6.0.1", + "strip-json-comments": "^2.0.1", + "tslint": "^5.12.0", + "typescript": "^3.7.0-dev.20191015" + }, + "dependencies": { + "definitelytyped-header-parser": { + "version": "github:Microsoft/definitelytyped-header-parser#d957ad0bb2f4ecb60ac04f734e0b38fbc8e70b8a", + "from": "github:Microsoft/definitelytyped-header-parser#production", + "dev": true, + "requires": { + "@types/parsimmon": "^1.3.0", + "parsimmon": "^1.2.0" + } + } + } + }, + "escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", + "dev": true + }, + "esprima": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "dev": true + }, + "esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true + }, "eth-ens-namehash": { "version": "2.0.8", "resolved": "https://registry.npmjs.org/eth-ens-namehash/-/eth-ens-namehash-2.0.8.tgz", @@ -11,6 +175,49 @@ "js-sha3": "^0.5.7" } }, + "fs-extra": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-6.0.1.tgz", + "integrity": "sha512-GnyIkKhhzXZUWFCaJzvyDLEEgDkPfb4/TPvJCJVuS8MWZgoSsErf++QpiAlDnKFcqhRlm+tIOcencCjyJE6ZCA==", + "dev": true, + "requires": { + "graceful-fs": "^4.1.2", + "jsonfile": "^4.0.0", + "universalify": "^0.1.0" + } + }, + "fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", + "dev": true + }, + "glob": { + "version": "7.1.4", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.4.tgz", + "integrity": "sha512-hkLPepehmnKk41pUGm3sYxoFs/umurYfYJCerbXEyFIWcAzvpipAgVkBqqT9RBKMGjnq6kMuyYwha6csxbiM1A==", + "dev": true, + "requires": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.0.4", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + } + }, + "graceful-fs": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.2.tgz", + "integrity": "sha512-IItsdsea19BoLC7ELy13q1iJFNmd7ofZH5+X/pJr90/nRoPEX0DJo1dHDbgtYWOhJhcCgMDTOw84RZ72q6lB+Q==", + "dev": true + }, + "has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", + "dev": true + }, "idna-uts46-hx": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/idna-uts46-hx/-/idna-uts46-hx-2.3.1.tgz", @@ -19,20 +226,202 @@ "punycode": "2.1.0" } }, + "inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", + "dev": true, + "requires": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "dev": true + }, "js-sha3": { "version": "0.5.7", "resolved": "https://registry.npmjs.org/js-sha3/-/js-sha3-0.5.7.tgz", "integrity": "sha1-DU/9gALVMzqrr0oj7tL2N0yfKOc=" }, + "js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "dev": true + }, + "js-yaml": { + "version": "3.13.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.13.1.tgz", + "integrity": "sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw==", + "dev": true, + "requires": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + } + }, + "jsonfile": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", + "integrity": "sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss=", + "dev": true, + "requires": { + "graceful-fs": "^4.1.6" + } + }, + "minimatch": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", + "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", + "dev": true, + "requires": { + "brace-expansion": "^1.1.7" + } + }, + "minimist": { + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", + "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=", + "dev": true + }, + "mkdirp": { + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", + "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", + "dev": true, + "requires": { + "minimist": "0.0.8" + } + }, + "once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", + "dev": true, + "requires": { + "wrappy": "1" + } + }, + "parsimmon": { + "version": "1.13.0", + "resolved": "https://registry.npmjs.org/parsimmon/-/parsimmon-1.13.0.tgz", + "integrity": "sha512-5UIrOCW+gjbILkjKPgTgmq8LKf8TT3Iy7kN2VD7OtQ81facKn8B4gG1X94jWqXYZsxG2KbJhrv/Yq/5H6BQn7A==", + "dev": true + }, + "path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", + "dev": true + }, + "path-parse": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz", + "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==", + "dev": true + }, "punycode": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.0.tgz", "integrity": "sha1-X4Y+3Im5bbCQdLrXlHvwkFbKTn0=" }, + "resolve": { + "version": "1.12.0", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.12.0.tgz", + "integrity": "sha512-B/dOmuoAik5bKcD6s6nXDCjzUKnaDvdkRyAk6rsmsKLipWj4797iothd7jmmUhWTfinVMU+wc56rYKsit2Qy4w==", + "dev": true, + "requires": { + "path-parse": "^1.0.6" + } + }, + "semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "dev": true + }, + "sprintf-js": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", + "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", + "dev": true + }, + "strip-json-comments": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", + "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=", + "dev": true + }, + "supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, + "requires": { + "has-flag": "^3.0.0" + } + }, + "tslib": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.10.0.tgz", + "integrity": "sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==", + "dev": true + }, + "tslint": { + "version": "5.20.0", + "resolved": "https://registry.npmjs.org/tslint/-/tslint-5.20.0.tgz", + "integrity": "sha512-2vqIvkMHbnx8acMogAERQ/IuINOq6DFqgF8/VDvhEkBqQh/x6SP0Y+OHnKth9/ZcHQSroOZwUQSN18v8KKF0/g==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.0.0", + "builtin-modules": "^1.1.1", + "chalk": "^2.3.0", + "commander": "^2.12.1", + "diff": "^4.0.1", + "glob": "^7.1.1", + "js-yaml": "^3.13.1", + "minimatch": "^3.0.4", + "mkdirp": "^0.5.1", + "resolve": "^1.3.2", + "semver": "^5.3.0", + "tslib": "^1.8.0", + "tsutils": "^2.29.0" + } + }, + "tsutils": { + "version": "2.29.0", + "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-2.29.0.tgz", + "integrity": "sha512-g5JVHCIJwzfISaXpXE1qvNalca5Jwob6FjI4AoPlqMusJ6ftFE7IkkFoMhVLRgK+4Kx3gkzb8UZK5t5yTTvEmA==", + "dev": true, + "requires": { + "tslib": "^1.8.1" + } + }, + "typescript": { + "version": "3.7.0-dev.20191015", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.7.0-dev.20191015.tgz", + "integrity": "sha512-Cpfj1n4pEUVKL+jtS0mkZodJffyMmf3Wk/UjyZMGX4fsjK5KBPJf3NUlyXij8I8p1E2CAomdS5NPFrAR+z8pKw==", + "dev": true + }, "underscore": { "version": "1.9.1", "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.9.1.tgz", "integrity": "sha512-5/4etnCkd9c8gwgowi5/om/mYO5ajCaOgdzj/oW+0eQV9WxKBDZw5+ycmKmeaTXjInS/W0BzpGLo2xR2aBwZdg==" + }, + "universalify": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", + "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", + "dev": true + }, + "wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", + "dev": true } } } diff --git a/packages/web3-eth-iban/package-lock.json b/packages/web3-eth-iban/package-lock.json index 429bc93b4e5..8faea10461d 100644 --- a/packages/web3-eth-iban/package-lock.json +++ b/packages/web3-eth-iban/package-lock.json @@ -1,11 +1,400 @@ { - "requires": true, + "name": "web3-eth-iban", + "version": "1.2.1", "lockfileVersion": 1, + "requires": true, "dependencies": { + "@babel/code-frame": { + "version": "7.5.5", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.5.5.tgz", + "integrity": "sha512-27d4lZoomVyo51VegxI20xZPuSHusqbQag/ztrBC7wegWoQ1nLREPVSKSW8byhTlzTKyNE4ifaTA6lCp7JjpFw==", + "dev": true, + "requires": { + "@babel/highlight": "^7.0.0" + } + }, + "@babel/highlight": { + "version": "7.5.0", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.5.0.tgz", + "integrity": "sha512-7dV4eu9gBxoM0dAnj/BCFDW9LFU0zvTrkq0ugM7pnHEgguOEeOz1so2ZghEdzviYzQEED0r4EAgpsBChKy1TRQ==", + "dev": true, + "requires": { + "chalk": "^2.0.0", + "esutils": "^2.0.2", + "js-tokens": "^4.0.0" + } + }, + "@types/parsimmon": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/@types/parsimmon/-/parsimmon-1.10.0.tgz", + "integrity": "sha512-bsTIJFVQv7jnvNiC42ld2pQW2KRI+pAG243L+iATvqzy3X6+NH1obz2itRKDZZ8VVhN3wjwYax/VBGCcXzgTqQ==", + "dev": true + }, + "ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, + "requires": { + "color-convert": "^1.9.0" + } + }, + "argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "dev": true, + "requires": { + "sprintf-js": "~1.0.2" + } + }, + "balanced-match": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", + "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", + "dev": true + }, "bn.js": { "version": "4.11.8", "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.11.8.tgz", "integrity": "sha512-ItfYfPLkWHUjckQCk8xC+LwxgK8NYcXywGigJgSwOP8Y2iyWT4f2vsZnoOXTTbo+o5yXmIUJ4gn5538SO5S3gA==" + }, + "brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "requires": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "builtin-modules": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-1.1.1.tgz", + "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=", + "dev": true + }, + "chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dev": true, + "requires": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + } + }, + "color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dev": true, + "requires": { + "color-name": "1.1.3" + } + }, + "color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", + "dev": true + }, + "commander": { + "version": "2.20.3", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", + "dev": true + }, + "concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", + "dev": true + }, + "definitelytyped-header-parser": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/definitelytyped-header-parser/-/definitelytyped-header-parser-1.2.0.tgz", + "integrity": "sha512-xpg8uu/2YD/reaVsZV4oJ4g7UDYFqQGWvT1W9Tsj6q4VtWBSaig38Qgah0ZMnQGF9kAsAim08EXDO1nSi0+Nog==", + "dev": true, + "requires": { + "@types/parsimmon": "^1.3.0", + "parsimmon": "^1.2.0" + } + }, + "diff": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.1.tgz", + "integrity": "sha512-s2+XdvhPCOF01LRQBC8hf4vhbVmI2CGS5aZnxLJlT5FtdhPCDFq80q++zK2KlrVorVDdL5BOGZ/VfLrVtYNF+Q==", + "dev": true + }, + "dtslint": { + "version": "0.4.2", + "resolved": "https://registry.npmjs.org/dtslint/-/dtslint-0.4.2.tgz", + "integrity": "sha512-ph4GXLw3HYzlQMJOFcpCqWHuL3MxJ/344OR7wn0wlQGchQGTIVNsSUl8iKEMatpy2geNMysgA9fQa6xVhHOkTQ==", + "dev": true, + "requires": { + "definitelytyped-header-parser": "github:Microsoft/definitelytyped-header-parser#production", + "fs-extra": "^6.0.1", + "strip-json-comments": "^2.0.1", + "tslint": "^5.12.0", + "typescript": "^3.7.0-dev.20191015" + }, + "dependencies": { + "definitelytyped-header-parser": { + "version": "github:Microsoft/definitelytyped-header-parser#d957ad0bb2f4ecb60ac04f734e0b38fbc8e70b8a", + "from": "github:Microsoft/definitelytyped-header-parser#production", + "dev": true, + "requires": { + "@types/parsimmon": "^1.3.0", + "parsimmon": "^1.2.0" + } + } + } + }, + "escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", + "dev": true + }, + "esprima": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "dev": true + }, + "esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true + }, + "fs-extra": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-6.0.1.tgz", + "integrity": "sha512-GnyIkKhhzXZUWFCaJzvyDLEEgDkPfb4/TPvJCJVuS8MWZgoSsErf++QpiAlDnKFcqhRlm+tIOcencCjyJE6ZCA==", + "dev": true, + "requires": { + "graceful-fs": "^4.1.2", + "jsonfile": "^4.0.0", + "universalify": "^0.1.0" + } + }, + "fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", + "dev": true + }, + "glob": { + "version": "7.1.4", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.4.tgz", + "integrity": "sha512-hkLPepehmnKk41pUGm3sYxoFs/umurYfYJCerbXEyFIWcAzvpipAgVkBqqT9RBKMGjnq6kMuyYwha6csxbiM1A==", + "dev": true, + "requires": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.0.4", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + } + }, + "graceful-fs": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.2.tgz", + "integrity": "sha512-IItsdsea19BoLC7ELy13q1iJFNmd7ofZH5+X/pJr90/nRoPEX0DJo1dHDbgtYWOhJhcCgMDTOw84RZ72q6lB+Q==", + "dev": true + }, + "has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", + "dev": true + }, + "inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", + "dev": true, + "requires": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "dev": true + }, + "js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "dev": true + }, + "js-yaml": { + "version": "3.13.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.13.1.tgz", + "integrity": "sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw==", + "dev": true, + "requires": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + } + }, + "jsonfile": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", + "integrity": "sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss=", + "dev": true, + "requires": { + "graceful-fs": "^4.1.6" + } + }, + "minimatch": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", + "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", + "dev": true, + "requires": { + "brace-expansion": "^1.1.7" + } + }, + "minimist": { + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", + "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=", + "dev": true + }, + "mkdirp": { + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", + "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", + "dev": true, + "requires": { + "minimist": "0.0.8" + } + }, + "once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", + "dev": true, + "requires": { + "wrappy": "1" + } + }, + "parsimmon": { + "version": "1.13.0", + "resolved": "https://registry.npmjs.org/parsimmon/-/parsimmon-1.13.0.tgz", + "integrity": "sha512-5UIrOCW+gjbILkjKPgTgmq8LKf8TT3Iy7kN2VD7OtQ81facKn8B4gG1X94jWqXYZsxG2KbJhrv/Yq/5H6BQn7A==", + "dev": true + }, + "path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", + "dev": true + }, + "path-parse": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz", + "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==", + "dev": true + }, + "resolve": { + "version": "1.12.0", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.12.0.tgz", + "integrity": "sha512-B/dOmuoAik5bKcD6s6nXDCjzUKnaDvdkRyAk6rsmsKLipWj4797iothd7jmmUhWTfinVMU+wc56rYKsit2Qy4w==", + "dev": true, + "requires": { + "path-parse": "^1.0.6" + } + }, + "semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "dev": true + }, + "sprintf-js": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", + "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", + "dev": true + }, + "strip-json-comments": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", + "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=", + "dev": true + }, + "supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, + "requires": { + "has-flag": "^3.0.0" + } + }, + "tslib": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.10.0.tgz", + "integrity": "sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==", + "dev": true + }, + "tslint": { + "version": "5.20.0", + "resolved": "https://registry.npmjs.org/tslint/-/tslint-5.20.0.tgz", + "integrity": "sha512-2vqIvkMHbnx8acMogAERQ/IuINOq6DFqgF8/VDvhEkBqQh/x6SP0Y+OHnKth9/ZcHQSroOZwUQSN18v8KKF0/g==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.0.0", + "builtin-modules": "^1.1.1", + "chalk": "^2.3.0", + "commander": "^2.12.1", + "diff": "^4.0.1", + "glob": "^7.1.1", + "js-yaml": "^3.13.1", + "minimatch": "^3.0.4", + "mkdirp": "^0.5.1", + "resolve": "^1.3.2", + "semver": "^5.3.0", + "tslib": "^1.8.0", + "tsutils": "^2.29.0" + } + }, + "tsutils": { + "version": "2.29.0", + "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-2.29.0.tgz", + "integrity": "sha512-g5JVHCIJwzfISaXpXE1qvNalca5Jwob6FjI4AoPlqMusJ6ftFE7IkkFoMhVLRgK+4Kx3gkzb8UZK5t5yTTvEmA==", + "dev": true, + "requires": { + "tslib": "^1.8.1" + } + }, + "typescript": { + "version": "3.7.0-dev.20191015", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.7.0-dev.20191015.tgz", + "integrity": "sha512-Cpfj1n4pEUVKL+jtS0mkZodJffyMmf3Wk/UjyZMGX4fsjK5KBPJf3NUlyXij8I8p1E2CAomdS5NPFrAR+z8pKw==", + "dev": true + }, + "universalify": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", + "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", + "dev": true + }, + "wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", + "dev": true } } } diff --git a/packages/web3-eth-personal/package-lock.json b/packages/web3-eth-personal/package-lock.json new file mode 100644 index 00000000000..8f7e6b72c60 --- /dev/null +++ b/packages/web3-eth-personal/package-lock.json @@ -0,0 +1,400 @@ +{ + "name": "web3-eth-personal", + "version": "1.2.1", + "lockfileVersion": 1, + "requires": true, + "dependencies": { + "@babel/code-frame": { + "version": "7.5.5", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.5.5.tgz", + "integrity": "sha512-27d4lZoomVyo51VegxI20xZPuSHusqbQag/ztrBC7wegWoQ1nLREPVSKSW8byhTlzTKyNE4ifaTA6lCp7JjpFw==", + "dev": true, + "requires": { + "@babel/highlight": "^7.0.0" + } + }, + "@babel/highlight": { + "version": "7.5.0", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.5.0.tgz", + "integrity": "sha512-7dV4eu9gBxoM0dAnj/BCFDW9LFU0zvTrkq0ugM7pnHEgguOEeOz1so2ZghEdzviYzQEED0r4EAgpsBChKy1TRQ==", + "dev": true, + "requires": { + "chalk": "^2.0.0", + "esutils": "^2.0.2", + "js-tokens": "^4.0.0" + } + }, + "@types/node": { + "version": "12.7.12", + "resolved": "https://registry.npmjs.org/@types/node/-/node-12.7.12.tgz", + "integrity": "sha512-KPYGmfD0/b1eXurQ59fXD1GBzhSQfz6/lKBxkaHX9dKTzjXbK68Zt7yGUxUsCS1jeTy/8aL+d9JEr+S54mpkWQ==" + }, + "@types/parsimmon": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/@types/parsimmon/-/parsimmon-1.10.0.tgz", + "integrity": "sha512-bsTIJFVQv7jnvNiC42ld2pQW2KRI+pAG243L+iATvqzy3X6+NH1obz2itRKDZZ8VVhN3wjwYax/VBGCcXzgTqQ==", + "dev": true + }, + "ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, + "requires": { + "color-convert": "^1.9.0" + } + }, + "argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "dev": true, + "requires": { + "sprintf-js": "~1.0.2" + } + }, + "balanced-match": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", + "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", + "dev": true + }, + "brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "requires": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "builtin-modules": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-1.1.1.tgz", + "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=", + "dev": true + }, + "chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dev": true, + "requires": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + } + }, + "color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dev": true, + "requires": { + "color-name": "1.1.3" + } + }, + "color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", + "dev": true + }, + "commander": { + "version": "2.20.3", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", + "dev": true + }, + "concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", + "dev": true + }, + "definitelytyped-header-parser": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/definitelytyped-header-parser/-/definitelytyped-header-parser-1.2.0.tgz", + "integrity": "sha512-xpg8uu/2YD/reaVsZV4oJ4g7UDYFqQGWvT1W9Tsj6q4VtWBSaig38Qgah0ZMnQGF9kAsAim08EXDO1nSi0+Nog==", + "dev": true, + "requires": { + "@types/parsimmon": "^1.3.0", + "parsimmon": "^1.2.0" + } + }, + "diff": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.1.tgz", + "integrity": "sha512-s2+XdvhPCOF01LRQBC8hf4vhbVmI2CGS5aZnxLJlT5FtdhPCDFq80q++zK2KlrVorVDdL5BOGZ/VfLrVtYNF+Q==", + "dev": true + }, + "dtslint": { + "version": "0.4.2", + "resolved": "https://registry.npmjs.org/dtslint/-/dtslint-0.4.2.tgz", + "integrity": "sha512-ph4GXLw3HYzlQMJOFcpCqWHuL3MxJ/344OR7wn0wlQGchQGTIVNsSUl8iKEMatpy2geNMysgA9fQa6xVhHOkTQ==", + "dev": true, + "requires": { + "definitelytyped-header-parser": "github:Microsoft/definitelytyped-header-parser#production", + "fs-extra": "^6.0.1", + "strip-json-comments": "^2.0.1", + "tslint": "^5.12.0", + "typescript": "^3.7.0-dev.20191015" + }, + "dependencies": { + "definitelytyped-header-parser": { + "version": "github:Microsoft/definitelytyped-header-parser#d957ad0bb2f4ecb60ac04f734e0b38fbc8e70b8a", + "from": "github:Microsoft/definitelytyped-header-parser#production", + "dev": true, + "requires": { + "@types/parsimmon": "^1.3.0", + "parsimmon": "^1.2.0" + } + } + } + }, + "escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", + "dev": true + }, + "esprima": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "dev": true + }, + "esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true + }, + "fs-extra": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-6.0.1.tgz", + "integrity": "sha512-GnyIkKhhzXZUWFCaJzvyDLEEgDkPfb4/TPvJCJVuS8MWZgoSsErf++QpiAlDnKFcqhRlm+tIOcencCjyJE6ZCA==", + "dev": true, + "requires": { + "graceful-fs": "^4.1.2", + "jsonfile": "^4.0.0", + "universalify": "^0.1.0" + } + }, + "fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", + "dev": true + }, + "glob": { + "version": "7.1.4", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.4.tgz", + "integrity": "sha512-hkLPepehmnKk41pUGm3sYxoFs/umurYfYJCerbXEyFIWcAzvpipAgVkBqqT9RBKMGjnq6kMuyYwha6csxbiM1A==", + "dev": true, + "requires": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.0.4", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + } + }, + "graceful-fs": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.2.tgz", + "integrity": "sha512-IItsdsea19BoLC7ELy13q1iJFNmd7ofZH5+X/pJr90/nRoPEX0DJo1dHDbgtYWOhJhcCgMDTOw84RZ72q6lB+Q==", + "dev": true + }, + "has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", + "dev": true + }, + "inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", + "dev": true, + "requires": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "dev": true + }, + "js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "dev": true + }, + "js-yaml": { + "version": "3.13.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.13.1.tgz", + "integrity": "sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw==", + "dev": true, + "requires": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + } + }, + "jsonfile": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", + "integrity": "sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss=", + "dev": true, + "requires": { + "graceful-fs": "^4.1.6" + } + }, + "minimatch": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", + "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", + "dev": true, + "requires": { + "brace-expansion": "^1.1.7" + } + }, + "minimist": { + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", + "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=", + "dev": true + }, + "mkdirp": { + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", + "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", + "dev": true, + "requires": { + "minimist": "0.0.8" + } + }, + "once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", + "dev": true, + "requires": { + "wrappy": "1" + } + }, + "parsimmon": { + "version": "1.13.0", + "resolved": "https://registry.npmjs.org/parsimmon/-/parsimmon-1.13.0.tgz", + "integrity": "sha512-5UIrOCW+gjbILkjKPgTgmq8LKf8TT3Iy7kN2VD7OtQ81facKn8B4gG1X94jWqXYZsxG2KbJhrv/Yq/5H6BQn7A==", + "dev": true + }, + "path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", + "dev": true + }, + "path-parse": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz", + "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==", + "dev": true + }, + "resolve": { + "version": "1.12.0", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.12.0.tgz", + "integrity": "sha512-B/dOmuoAik5bKcD6s6nXDCjzUKnaDvdkRyAk6rsmsKLipWj4797iothd7jmmUhWTfinVMU+wc56rYKsit2Qy4w==", + "dev": true, + "requires": { + "path-parse": "^1.0.6" + } + }, + "semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "dev": true + }, + "sprintf-js": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", + "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", + "dev": true + }, + "strip-json-comments": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", + "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=", + "dev": true + }, + "supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, + "requires": { + "has-flag": "^3.0.0" + } + }, + "tslib": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.10.0.tgz", + "integrity": "sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==", + "dev": true + }, + "tslint": { + "version": "5.20.0", + "resolved": "https://registry.npmjs.org/tslint/-/tslint-5.20.0.tgz", + "integrity": "sha512-2vqIvkMHbnx8acMogAERQ/IuINOq6DFqgF8/VDvhEkBqQh/x6SP0Y+OHnKth9/ZcHQSroOZwUQSN18v8KKF0/g==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.0.0", + "builtin-modules": "^1.1.1", + "chalk": "^2.3.0", + "commander": "^2.12.1", + "diff": "^4.0.1", + "glob": "^7.1.1", + "js-yaml": "^3.13.1", + "minimatch": "^3.0.4", + "mkdirp": "^0.5.1", + "resolve": "^1.3.2", + "semver": "^5.3.0", + "tslib": "^1.8.0", + "tsutils": "^2.29.0" + } + }, + "tsutils": { + "version": "2.29.0", + "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-2.29.0.tgz", + "integrity": "sha512-g5JVHCIJwzfISaXpXE1qvNalca5Jwob6FjI4AoPlqMusJ6ftFE7IkkFoMhVLRgK+4Kx3gkzb8UZK5t5yTTvEmA==", + "dev": true, + "requires": { + "tslib": "^1.8.1" + } + }, + "typescript": { + "version": "3.7.0-dev.20191015", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.7.0-dev.20191015.tgz", + "integrity": "sha512-Cpfj1n4pEUVKL+jtS0mkZodJffyMmf3Wk/UjyZMGX4fsjK5KBPJf3NUlyXij8I8p1E2CAomdS5NPFrAR+z8pKw==", + "dev": true + }, + "universalify": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", + "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", + "dev": true + }, + "wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", + "dev": true + } + } +} diff --git a/packages/web3-eth/package-lock.json b/packages/web3-eth/package-lock.json index d8f894cdc17..bfcb5258044 100644 --- a/packages/web3-eth/package-lock.json +++ b/packages/web3-eth/package-lock.json @@ -1,11 +1,400 @@ { - "requires": true, + "name": "web3-eth", + "version": "1.2.1", "lockfileVersion": 1, + "requires": true, "dependencies": { + "@babel/code-frame": { + "version": "7.5.5", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.5.5.tgz", + "integrity": "sha512-27d4lZoomVyo51VegxI20xZPuSHusqbQag/ztrBC7wegWoQ1nLREPVSKSW8byhTlzTKyNE4ifaTA6lCp7JjpFw==", + "dev": true, + "requires": { + "@babel/highlight": "^7.0.0" + } + }, + "@babel/highlight": { + "version": "7.5.0", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.5.0.tgz", + "integrity": "sha512-7dV4eu9gBxoM0dAnj/BCFDW9LFU0zvTrkq0ugM7pnHEgguOEeOz1so2ZghEdzviYzQEED0r4EAgpsBChKy1TRQ==", + "dev": true, + "requires": { + "chalk": "^2.0.0", + "esutils": "^2.0.2", + "js-tokens": "^4.0.0" + } + }, + "@types/parsimmon": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/@types/parsimmon/-/parsimmon-1.10.0.tgz", + "integrity": "sha512-bsTIJFVQv7jnvNiC42ld2pQW2KRI+pAG243L+iATvqzy3X6+NH1obz2itRKDZZ8VVhN3wjwYax/VBGCcXzgTqQ==", + "dev": true + }, + "ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, + "requires": { + "color-convert": "^1.9.0" + } + }, + "argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "dev": true, + "requires": { + "sprintf-js": "~1.0.2" + } + }, + "balanced-match": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", + "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", + "dev": true + }, + "brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "requires": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "builtin-modules": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-1.1.1.tgz", + "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=", + "dev": true + }, + "chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dev": true, + "requires": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + } + }, + "color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dev": true, + "requires": { + "color-name": "1.1.3" + } + }, + "color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", + "dev": true + }, + "commander": { + "version": "2.20.3", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", + "dev": true + }, + "concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", + "dev": true + }, + "definitelytyped-header-parser": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/definitelytyped-header-parser/-/definitelytyped-header-parser-1.2.0.tgz", + "integrity": "sha512-xpg8uu/2YD/reaVsZV4oJ4g7UDYFqQGWvT1W9Tsj6q4VtWBSaig38Qgah0ZMnQGF9kAsAim08EXDO1nSi0+Nog==", + "dev": true, + "requires": { + "@types/parsimmon": "^1.3.0", + "parsimmon": "^1.2.0" + } + }, + "diff": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.1.tgz", + "integrity": "sha512-s2+XdvhPCOF01LRQBC8hf4vhbVmI2CGS5aZnxLJlT5FtdhPCDFq80q++zK2KlrVorVDdL5BOGZ/VfLrVtYNF+Q==", + "dev": true + }, + "dtslint": { + "version": "0.4.2", + "resolved": "https://registry.npmjs.org/dtslint/-/dtslint-0.4.2.tgz", + "integrity": "sha512-ph4GXLw3HYzlQMJOFcpCqWHuL3MxJ/344OR7wn0wlQGchQGTIVNsSUl8iKEMatpy2geNMysgA9fQa6xVhHOkTQ==", + "dev": true, + "requires": { + "definitelytyped-header-parser": "github:Microsoft/definitelytyped-header-parser#production", + "fs-extra": "^6.0.1", + "strip-json-comments": "^2.0.1", + "tslint": "^5.12.0", + "typescript": "^3.7.0-dev.20191015" + }, + "dependencies": { + "definitelytyped-header-parser": { + "version": "github:Microsoft/definitelytyped-header-parser#d957ad0bb2f4ecb60ac04f734e0b38fbc8e70b8a", + "from": "github:Microsoft/definitelytyped-header-parser#production", + "dev": true, + "requires": { + "@types/parsimmon": "^1.3.0", + "parsimmon": "^1.2.0" + } + } + } + }, + "escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", + "dev": true + }, + "esprima": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "dev": true + }, + "esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true + }, + "fs-extra": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-6.0.1.tgz", + "integrity": "sha512-GnyIkKhhzXZUWFCaJzvyDLEEgDkPfb4/TPvJCJVuS8MWZgoSsErf++QpiAlDnKFcqhRlm+tIOcencCjyJE6ZCA==", + "dev": true, + "requires": { + "graceful-fs": "^4.1.2", + "jsonfile": "^4.0.0", + "universalify": "^0.1.0" + } + }, + "fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", + "dev": true + }, + "glob": { + "version": "7.1.4", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.4.tgz", + "integrity": "sha512-hkLPepehmnKk41pUGm3sYxoFs/umurYfYJCerbXEyFIWcAzvpipAgVkBqqT9RBKMGjnq6kMuyYwha6csxbiM1A==", + "dev": true, + "requires": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.0.4", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + } + }, + "graceful-fs": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.2.tgz", + "integrity": "sha512-IItsdsea19BoLC7ELy13q1iJFNmd7ofZH5+X/pJr90/nRoPEX0DJo1dHDbgtYWOhJhcCgMDTOw84RZ72q6lB+Q==", + "dev": true + }, + "has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", + "dev": true + }, + "inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", + "dev": true, + "requires": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "dev": true + }, + "js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "dev": true + }, + "js-yaml": { + "version": "3.13.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.13.1.tgz", + "integrity": "sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw==", + "dev": true, + "requires": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + } + }, + "jsonfile": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", + "integrity": "sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss=", + "dev": true, + "requires": { + "graceful-fs": "^4.1.6" + } + }, + "minimatch": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", + "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", + "dev": true, + "requires": { + "brace-expansion": "^1.1.7" + } + }, + "minimist": { + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", + "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=", + "dev": true + }, + "mkdirp": { + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", + "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", + "dev": true, + "requires": { + "minimist": "0.0.8" + } + }, + "once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", + "dev": true, + "requires": { + "wrappy": "1" + } + }, + "parsimmon": { + "version": "1.13.0", + "resolved": "https://registry.npmjs.org/parsimmon/-/parsimmon-1.13.0.tgz", + "integrity": "sha512-5UIrOCW+gjbILkjKPgTgmq8LKf8TT3Iy7kN2VD7OtQ81facKn8B4gG1X94jWqXYZsxG2KbJhrv/Yq/5H6BQn7A==", + "dev": true + }, + "path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", + "dev": true + }, + "path-parse": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz", + "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==", + "dev": true + }, + "resolve": { + "version": "1.12.0", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.12.0.tgz", + "integrity": "sha512-B/dOmuoAik5bKcD6s6nXDCjzUKnaDvdkRyAk6rsmsKLipWj4797iothd7jmmUhWTfinVMU+wc56rYKsit2Qy4w==", + "dev": true, + "requires": { + "path-parse": "^1.0.6" + } + }, + "semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "dev": true + }, + "sprintf-js": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", + "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", + "dev": true + }, + "strip-json-comments": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", + "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=", + "dev": true + }, + "supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, + "requires": { + "has-flag": "^3.0.0" + } + }, + "tslib": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.10.0.tgz", + "integrity": "sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==", + "dev": true + }, + "tslint": { + "version": "5.20.0", + "resolved": "https://registry.npmjs.org/tslint/-/tslint-5.20.0.tgz", + "integrity": "sha512-2vqIvkMHbnx8acMogAERQ/IuINOq6DFqgF8/VDvhEkBqQh/x6SP0Y+OHnKth9/ZcHQSroOZwUQSN18v8KKF0/g==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.0.0", + "builtin-modules": "^1.1.1", + "chalk": "^2.3.0", + "commander": "^2.12.1", + "diff": "^4.0.1", + "glob": "^7.1.1", + "js-yaml": "^3.13.1", + "minimatch": "^3.0.4", + "mkdirp": "^0.5.1", + "resolve": "^1.3.2", + "semver": "^5.3.0", + "tslib": "^1.8.0", + "tsutils": "^2.29.0" + } + }, + "tsutils": { + "version": "2.29.0", + "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-2.29.0.tgz", + "integrity": "sha512-g5JVHCIJwzfISaXpXE1qvNalca5Jwob6FjI4AoPlqMusJ6ftFE7IkkFoMhVLRgK+4Kx3gkzb8UZK5t5yTTvEmA==", + "dev": true, + "requires": { + "tslib": "^1.8.1" + } + }, + "typescript": { + "version": "3.7.0-dev.20191015", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.7.0-dev.20191015.tgz", + "integrity": "sha512-Cpfj1n4pEUVKL+jtS0mkZodJffyMmf3Wk/UjyZMGX4fsjK5KBPJf3NUlyXij8I8p1E2CAomdS5NPFrAR+z8pKw==", + "dev": true + }, "underscore": { "version": "1.9.1", "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.9.1.tgz", "integrity": "sha512-5/4etnCkd9c8gwgowi5/om/mYO5ajCaOgdzj/oW+0eQV9WxKBDZw5+ycmKmeaTXjInS/W0BzpGLo2xR2aBwZdg==" + }, + "universalify": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", + "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", + "dev": true + }, + "wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", + "dev": true } } } diff --git a/packages/web3-net/package-lock.json b/packages/web3-net/package-lock.json new file mode 100644 index 00000000000..b445748be24 --- /dev/null +++ b/packages/web3-net/package-lock.json @@ -0,0 +1,395 @@ +{ + "name": "web3-net", + "version": "1.2.1", + "lockfileVersion": 1, + "requires": true, + "dependencies": { + "@babel/code-frame": { + "version": "7.5.5", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.5.5.tgz", + "integrity": "sha512-27d4lZoomVyo51VegxI20xZPuSHusqbQag/ztrBC7wegWoQ1nLREPVSKSW8byhTlzTKyNE4ifaTA6lCp7JjpFw==", + "dev": true, + "requires": { + "@babel/highlight": "^7.0.0" + } + }, + "@babel/highlight": { + "version": "7.5.0", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.5.0.tgz", + "integrity": "sha512-7dV4eu9gBxoM0dAnj/BCFDW9LFU0zvTrkq0ugM7pnHEgguOEeOz1so2ZghEdzviYzQEED0r4EAgpsBChKy1TRQ==", + "dev": true, + "requires": { + "chalk": "^2.0.0", + "esutils": "^2.0.2", + "js-tokens": "^4.0.0" + } + }, + "@types/parsimmon": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/@types/parsimmon/-/parsimmon-1.10.0.tgz", + "integrity": "sha512-bsTIJFVQv7jnvNiC42ld2pQW2KRI+pAG243L+iATvqzy3X6+NH1obz2itRKDZZ8VVhN3wjwYax/VBGCcXzgTqQ==", + "dev": true + }, + "ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, + "requires": { + "color-convert": "^1.9.0" + } + }, + "argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "dev": true, + "requires": { + "sprintf-js": "~1.0.2" + } + }, + "balanced-match": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", + "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", + "dev": true + }, + "brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "requires": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "builtin-modules": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-1.1.1.tgz", + "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=", + "dev": true + }, + "chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dev": true, + "requires": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + } + }, + "color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dev": true, + "requires": { + "color-name": "1.1.3" + } + }, + "color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", + "dev": true + }, + "commander": { + "version": "2.20.3", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", + "dev": true + }, + "concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", + "dev": true + }, + "definitelytyped-header-parser": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/definitelytyped-header-parser/-/definitelytyped-header-parser-1.2.0.tgz", + "integrity": "sha512-xpg8uu/2YD/reaVsZV4oJ4g7UDYFqQGWvT1W9Tsj6q4VtWBSaig38Qgah0ZMnQGF9kAsAim08EXDO1nSi0+Nog==", + "dev": true, + "requires": { + "@types/parsimmon": "^1.3.0", + "parsimmon": "^1.2.0" + } + }, + "diff": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.1.tgz", + "integrity": "sha512-s2+XdvhPCOF01LRQBC8hf4vhbVmI2CGS5aZnxLJlT5FtdhPCDFq80q++zK2KlrVorVDdL5BOGZ/VfLrVtYNF+Q==", + "dev": true + }, + "dtslint": { + "version": "0.4.2", + "resolved": "https://registry.npmjs.org/dtslint/-/dtslint-0.4.2.tgz", + "integrity": "sha512-ph4GXLw3HYzlQMJOFcpCqWHuL3MxJ/344OR7wn0wlQGchQGTIVNsSUl8iKEMatpy2geNMysgA9fQa6xVhHOkTQ==", + "dev": true, + "requires": { + "definitelytyped-header-parser": "github:Microsoft/definitelytyped-header-parser#production", + "fs-extra": "^6.0.1", + "strip-json-comments": "^2.0.1", + "tslint": "^5.12.0", + "typescript": "^3.7.0-dev.20191015" + }, + "dependencies": { + "definitelytyped-header-parser": { + "version": "github:Microsoft/definitelytyped-header-parser#d957ad0bb2f4ecb60ac04f734e0b38fbc8e70b8a", + "from": "github:Microsoft/definitelytyped-header-parser#production", + "dev": true, + "requires": { + "@types/parsimmon": "^1.3.0", + "parsimmon": "^1.2.0" + } + } + } + }, + "escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", + "dev": true + }, + "esprima": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "dev": true + }, + "esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true + }, + "fs-extra": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-6.0.1.tgz", + "integrity": "sha512-GnyIkKhhzXZUWFCaJzvyDLEEgDkPfb4/TPvJCJVuS8MWZgoSsErf++QpiAlDnKFcqhRlm+tIOcencCjyJE6ZCA==", + "dev": true, + "requires": { + "graceful-fs": "^4.1.2", + "jsonfile": "^4.0.0", + "universalify": "^0.1.0" + } + }, + "fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", + "dev": true + }, + "glob": { + "version": "7.1.4", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.4.tgz", + "integrity": "sha512-hkLPepehmnKk41pUGm3sYxoFs/umurYfYJCerbXEyFIWcAzvpipAgVkBqqT9RBKMGjnq6kMuyYwha6csxbiM1A==", + "dev": true, + "requires": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.0.4", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + } + }, + "graceful-fs": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.2.tgz", + "integrity": "sha512-IItsdsea19BoLC7ELy13q1iJFNmd7ofZH5+X/pJr90/nRoPEX0DJo1dHDbgtYWOhJhcCgMDTOw84RZ72q6lB+Q==", + "dev": true + }, + "has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", + "dev": true + }, + "inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", + "dev": true, + "requires": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "dev": true + }, + "js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "dev": true + }, + "js-yaml": { + "version": "3.13.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.13.1.tgz", + "integrity": "sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw==", + "dev": true, + "requires": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + } + }, + "jsonfile": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", + "integrity": "sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss=", + "dev": true, + "requires": { + "graceful-fs": "^4.1.6" + } + }, + "minimatch": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", + "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", + "dev": true, + "requires": { + "brace-expansion": "^1.1.7" + } + }, + "minimist": { + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", + "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=", + "dev": true + }, + "mkdirp": { + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", + "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", + "dev": true, + "requires": { + "minimist": "0.0.8" + } + }, + "once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", + "dev": true, + "requires": { + "wrappy": "1" + } + }, + "parsimmon": { + "version": "1.13.0", + "resolved": "https://registry.npmjs.org/parsimmon/-/parsimmon-1.13.0.tgz", + "integrity": "sha512-5UIrOCW+gjbILkjKPgTgmq8LKf8TT3Iy7kN2VD7OtQ81facKn8B4gG1X94jWqXYZsxG2KbJhrv/Yq/5H6BQn7A==", + "dev": true + }, + "path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", + "dev": true + }, + "path-parse": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz", + "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==", + "dev": true + }, + "resolve": { + "version": "1.12.0", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.12.0.tgz", + "integrity": "sha512-B/dOmuoAik5bKcD6s6nXDCjzUKnaDvdkRyAk6rsmsKLipWj4797iothd7jmmUhWTfinVMU+wc56rYKsit2Qy4w==", + "dev": true, + "requires": { + "path-parse": "^1.0.6" + } + }, + "semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "dev": true + }, + "sprintf-js": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", + "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", + "dev": true + }, + "strip-json-comments": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", + "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=", + "dev": true + }, + "supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, + "requires": { + "has-flag": "^3.0.0" + } + }, + "tslib": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.10.0.tgz", + "integrity": "sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==", + "dev": true + }, + "tslint": { + "version": "5.20.0", + "resolved": "https://registry.npmjs.org/tslint/-/tslint-5.20.0.tgz", + "integrity": "sha512-2vqIvkMHbnx8acMogAERQ/IuINOq6DFqgF8/VDvhEkBqQh/x6SP0Y+OHnKth9/ZcHQSroOZwUQSN18v8KKF0/g==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.0.0", + "builtin-modules": "^1.1.1", + "chalk": "^2.3.0", + "commander": "^2.12.1", + "diff": "^4.0.1", + "glob": "^7.1.1", + "js-yaml": "^3.13.1", + "minimatch": "^3.0.4", + "mkdirp": "^0.5.1", + "resolve": "^1.3.2", + "semver": "^5.3.0", + "tslib": "^1.8.0", + "tsutils": "^2.29.0" + } + }, + "tsutils": { + "version": "2.29.0", + "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-2.29.0.tgz", + "integrity": "sha512-g5JVHCIJwzfISaXpXE1qvNalca5Jwob6FjI4AoPlqMusJ6ftFE7IkkFoMhVLRgK+4Kx3gkzb8UZK5t5yTTvEmA==", + "dev": true, + "requires": { + "tslib": "^1.8.1" + } + }, + "typescript": { + "version": "3.7.0-dev.20191015", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.7.0-dev.20191015.tgz", + "integrity": "sha512-Cpfj1n4pEUVKL+jtS0mkZodJffyMmf3Wk/UjyZMGX4fsjK5KBPJf3NUlyXij8I8p1E2CAomdS5NPFrAR+z8pKw==", + "dev": true + }, + "universalify": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", + "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", + "dev": true + }, + "wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", + "dev": true + } + } +} diff --git a/packages/web3-providers-http/package-lock.json b/packages/web3-providers-http/package-lock.json index 598587c4f91..99c530a6e97 100644 --- a/packages/web3-providers-http/package-lock.json +++ b/packages/web3-providers-http/package-lock.json @@ -1,6 +1,8 @@ { - "requires": true, + "name": "web3-providers-http", + "version": "1.2.1", "lockfileVersion": 1, + "requires": true, "dependencies": { "cookiejar": { "version": "2.1.2", diff --git a/packages/web3-providers-ipc/package-lock.json b/packages/web3-providers-ipc/package-lock.json index e62ca0fdaca..1c71a2d29d5 100644 --- a/packages/web3-providers-ipc/package-lock.json +++ b/packages/web3-providers-ipc/package-lock.json @@ -1,6 +1,8 @@ { - "requires": true, + "name": "web3-providers-ipc", + "version": "1.2.1", "lockfileVersion": 1, + "requires": true, "dependencies": { "http-https": { "version": "1.0.0", diff --git a/packages/web3-providers-ws/package-lock.json b/packages/web3-providers-ws/package-lock.json index a1777555880..14f0c515006 100644 --- a/packages/web3-providers-ws/package-lock.json +++ b/packages/web3-providers-ws/package-lock.json @@ -1,6 +1,8 @@ { - "requires": true, + "name": "web3-providers-ws", + "version": "1.2.1", "lockfileVersion": 1, + "requires": true, "dependencies": { "d": { "version": "1.0.1", diff --git a/packages/web3-shh/package-lock.json b/packages/web3-shh/package-lock.json new file mode 100644 index 00000000000..c103dda3cf5 --- /dev/null +++ b/packages/web3-shh/package-lock.json @@ -0,0 +1,395 @@ +{ + "name": "web3-shh", + "version": "1.2.1", + "lockfileVersion": 1, + "requires": true, + "dependencies": { + "@babel/code-frame": { + "version": "7.5.5", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.5.5.tgz", + "integrity": "sha512-27d4lZoomVyo51VegxI20xZPuSHusqbQag/ztrBC7wegWoQ1nLREPVSKSW8byhTlzTKyNE4ifaTA6lCp7JjpFw==", + "dev": true, + "requires": { + "@babel/highlight": "^7.0.0" + } + }, + "@babel/highlight": { + "version": "7.5.0", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.5.0.tgz", + "integrity": "sha512-7dV4eu9gBxoM0dAnj/BCFDW9LFU0zvTrkq0ugM7pnHEgguOEeOz1so2ZghEdzviYzQEED0r4EAgpsBChKy1TRQ==", + "dev": true, + "requires": { + "chalk": "^2.0.0", + "esutils": "^2.0.2", + "js-tokens": "^4.0.0" + } + }, + "@types/parsimmon": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/@types/parsimmon/-/parsimmon-1.10.0.tgz", + "integrity": "sha512-bsTIJFVQv7jnvNiC42ld2pQW2KRI+pAG243L+iATvqzy3X6+NH1obz2itRKDZZ8VVhN3wjwYax/VBGCcXzgTqQ==", + "dev": true + }, + "ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, + "requires": { + "color-convert": "^1.9.0" + } + }, + "argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "dev": true, + "requires": { + "sprintf-js": "~1.0.2" + } + }, + "balanced-match": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", + "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", + "dev": true + }, + "brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "requires": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "builtin-modules": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-1.1.1.tgz", + "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=", + "dev": true + }, + "chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dev": true, + "requires": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + } + }, + "color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dev": true, + "requires": { + "color-name": "1.1.3" + } + }, + "color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", + "dev": true + }, + "commander": { + "version": "2.20.3", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", + "dev": true + }, + "concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", + "dev": true + }, + "definitelytyped-header-parser": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/definitelytyped-header-parser/-/definitelytyped-header-parser-1.2.0.tgz", + "integrity": "sha512-xpg8uu/2YD/reaVsZV4oJ4g7UDYFqQGWvT1W9Tsj6q4VtWBSaig38Qgah0ZMnQGF9kAsAim08EXDO1nSi0+Nog==", + "dev": true, + "requires": { + "@types/parsimmon": "^1.3.0", + "parsimmon": "^1.2.0" + } + }, + "diff": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.1.tgz", + "integrity": "sha512-s2+XdvhPCOF01LRQBC8hf4vhbVmI2CGS5aZnxLJlT5FtdhPCDFq80q++zK2KlrVorVDdL5BOGZ/VfLrVtYNF+Q==", + "dev": true + }, + "dtslint": { + "version": "0.4.2", + "resolved": "https://registry.npmjs.org/dtslint/-/dtslint-0.4.2.tgz", + "integrity": "sha512-ph4GXLw3HYzlQMJOFcpCqWHuL3MxJ/344OR7wn0wlQGchQGTIVNsSUl8iKEMatpy2geNMysgA9fQa6xVhHOkTQ==", + "dev": true, + "requires": { + "definitelytyped-header-parser": "github:Microsoft/definitelytyped-header-parser#production", + "fs-extra": "^6.0.1", + "strip-json-comments": "^2.0.1", + "tslint": "^5.12.0", + "typescript": "^3.7.0-dev.20191015" + }, + "dependencies": { + "definitelytyped-header-parser": { + "version": "github:Microsoft/definitelytyped-header-parser#d957ad0bb2f4ecb60ac04f734e0b38fbc8e70b8a", + "from": "github:Microsoft/definitelytyped-header-parser#production", + "dev": true, + "requires": { + "@types/parsimmon": "^1.3.0", + "parsimmon": "^1.2.0" + } + } + } + }, + "escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", + "dev": true + }, + "esprima": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "dev": true + }, + "esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true + }, + "fs-extra": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-6.0.1.tgz", + "integrity": "sha512-GnyIkKhhzXZUWFCaJzvyDLEEgDkPfb4/TPvJCJVuS8MWZgoSsErf++QpiAlDnKFcqhRlm+tIOcencCjyJE6ZCA==", + "dev": true, + "requires": { + "graceful-fs": "^4.1.2", + "jsonfile": "^4.0.0", + "universalify": "^0.1.0" + } + }, + "fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", + "dev": true + }, + "glob": { + "version": "7.1.4", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.4.tgz", + "integrity": "sha512-hkLPepehmnKk41pUGm3sYxoFs/umurYfYJCerbXEyFIWcAzvpipAgVkBqqT9RBKMGjnq6kMuyYwha6csxbiM1A==", + "dev": true, + "requires": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.0.4", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + } + }, + "graceful-fs": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.2.tgz", + "integrity": "sha512-IItsdsea19BoLC7ELy13q1iJFNmd7ofZH5+X/pJr90/nRoPEX0DJo1dHDbgtYWOhJhcCgMDTOw84RZ72q6lB+Q==", + "dev": true + }, + "has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", + "dev": true + }, + "inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", + "dev": true, + "requires": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "dev": true + }, + "js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "dev": true + }, + "js-yaml": { + "version": "3.13.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.13.1.tgz", + "integrity": "sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw==", + "dev": true, + "requires": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + } + }, + "jsonfile": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", + "integrity": "sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss=", + "dev": true, + "requires": { + "graceful-fs": "^4.1.6" + } + }, + "minimatch": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", + "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", + "dev": true, + "requires": { + "brace-expansion": "^1.1.7" + } + }, + "minimist": { + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", + "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=", + "dev": true + }, + "mkdirp": { + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", + "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", + "dev": true, + "requires": { + "minimist": "0.0.8" + } + }, + "once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", + "dev": true, + "requires": { + "wrappy": "1" + } + }, + "parsimmon": { + "version": "1.13.0", + "resolved": "https://registry.npmjs.org/parsimmon/-/parsimmon-1.13.0.tgz", + "integrity": "sha512-5UIrOCW+gjbILkjKPgTgmq8LKf8TT3Iy7kN2VD7OtQ81facKn8B4gG1X94jWqXYZsxG2KbJhrv/Yq/5H6BQn7A==", + "dev": true + }, + "path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", + "dev": true + }, + "path-parse": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz", + "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==", + "dev": true + }, + "resolve": { + "version": "1.12.0", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.12.0.tgz", + "integrity": "sha512-B/dOmuoAik5bKcD6s6nXDCjzUKnaDvdkRyAk6rsmsKLipWj4797iothd7jmmUhWTfinVMU+wc56rYKsit2Qy4w==", + "dev": true, + "requires": { + "path-parse": "^1.0.6" + } + }, + "semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "dev": true + }, + "sprintf-js": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", + "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", + "dev": true + }, + "strip-json-comments": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", + "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=", + "dev": true + }, + "supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, + "requires": { + "has-flag": "^3.0.0" + } + }, + "tslib": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.10.0.tgz", + "integrity": "sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==", + "dev": true + }, + "tslint": { + "version": "5.20.0", + "resolved": "https://registry.npmjs.org/tslint/-/tslint-5.20.0.tgz", + "integrity": "sha512-2vqIvkMHbnx8acMogAERQ/IuINOq6DFqgF8/VDvhEkBqQh/x6SP0Y+OHnKth9/ZcHQSroOZwUQSN18v8KKF0/g==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.0.0", + "builtin-modules": "^1.1.1", + "chalk": "^2.3.0", + "commander": "^2.12.1", + "diff": "^4.0.1", + "glob": "^7.1.1", + "js-yaml": "^3.13.1", + "minimatch": "^3.0.4", + "mkdirp": "^0.5.1", + "resolve": "^1.3.2", + "semver": "^5.3.0", + "tslib": "^1.8.0", + "tsutils": "^2.29.0" + } + }, + "tsutils": { + "version": "2.29.0", + "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-2.29.0.tgz", + "integrity": "sha512-g5JVHCIJwzfISaXpXE1qvNalca5Jwob6FjI4AoPlqMusJ6ftFE7IkkFoMhVLRgK+4Kx3gkzb8UZK5t5yTTvEmA==", + "dev": true, + "requires": { + "tslib": "^1.8.1" + } + }, + "typescript": { + "version": "3.7.0-dev.20191015", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.7.0-dev.20191015.tgz", + "integrity": "sha512-Cpfj1n4pEUVKL+jtS0mkZodJffyMmf3Wk/UjyZMGX4fsjK5KBPJf3NUlyXij8I8p1E2CAomdS5NPFrAR+z8pKw==", + "dev": true + }, + "universalify": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", + "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", + "dev": true + }, + "wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", + "dev": true + } + } +} diff --git a/packages/web3-utils/package-lock.json b/packages/web3-utils/package-lock.json index 1f26c73a510..79b5dc045fa 100644 --- a/packages/web3-utils/package-lock.json +++ b/packages/web3-utils/package-lock.json @@ -1,12 +1,74 @@ { - "requires": true, + "name": "web3-utils", + "version": "1.2.1", "lockfileVersion": 1, + "requires": true, "dependencies": { + "@babel/code-frame": { + "version": "7.5.5", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.5.5.tgz", + "integrity": "sha512-27d4lZoomVyo51VegxI20xZPuSHusqbQag/ztrBC7wegWoQ1nLREPVSKSW8byhTlzTKyNE4ifaTA6lCp7JjpFw==", + "dev": true, + "requires": { + "@babel/highlight": "^7.0.0" + } + }, + "@babel/highlight": { + "version": "7.5.0", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.5.0.tgz", + "integrity": "sha512-7dV4eu9gBxoM0dAnj/BCFDW9LFU0zvTrkq0ugM7pnHEgguOEeOz1so2ZghEdzviYzQEED0r4EAgpsBChKy1TRQ==", + "dev": true, + "requires": { + "chalk": "^2.0.0", + "esutils": "^2.0.2", + "js-tokens": "^4.0.0" + } + }, + "@types/parsimmon": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/@types/parsimmon/-/parsimmon-1.10.0.tgz", + "integrity": "sha512-bsTIJFVQv7jnvNiC42ld2pQW2KRI+pAG243L+iATvqzy3X6+NH1obz2itRKDZZ8VVhN3wjwYax/VBGCcXzgTqQ==", + "dev": true + }, + "ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, + "requires": { + "color-convert": "^1.9.0" + } + }, + "argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "dev": true, + "requires": { + "sprintf-js": "~1.0.2" + } + }, + "balanced-match": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", + "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", + "dev": true + }, "bn.js": { "version": "4.11.8", "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.11.8.tgz", "integrity": "sha512-ItfYfPLkWHUjckQCk8xC+LwxgK8NYcXywGigJgSwOP8Y2iyWT4f2vsZnoOXTTbo+o5yXmIUJ4gn5538SO5S3gA==" }, + "brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "requires": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, "brorand": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/brorand/-/brorand-1.1.0.tgz", @@ -17,6 +79,50 @@ "resolved": "https://registry.npmjs.org/buffer-to-arraybuffer/-/buffer-to-arraybuffer-0.0.5.tgz", "integrity": "sha1-YGSkD6dutDxyOrqe+PbhIW0QURo=" }, + "builtin-modules": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-1.1.1.tgz", + "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=", + "dev": true + }, + "chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dev": true, + "requires": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + } + }, + "color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dev": true, + "requires": { + "color-name": "1.1.3" + } + }, + "color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", + "dev": true + }, + "commander": { + "version": "2.20.3", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", + "dev": true + }, + "concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", + "dev": true + }, "decode-uri-component": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/decode-uri-component/-/decode-uri-component-0.2.0.tgz", @@ -38,11 +144,51 @@ "object-keys": "^1.0.12" } }, + "definitelytyped-header-parser": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/definitelytyped-header-parser/-/definitelytyped-header-parser-1.2.0.tgz", + "integrity": "sha512-xpg8uu/2YD/reaVsZV4oJ4g7UDYFqQGWvT1W9Tsj6q4VtWBSaig38Qgah0ZMnQGF9kAsAim08EXDO1nSi0+Nog==", + "dev": true, + "requires": { + "@types/parsimmon": "^1.3.0", + "parsimmon": "^1.2.0" + } + }, + "diff": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.1.tgz", + "integrity": "sha512-s2+XdvhPCOF01LRQBC8hf4vhbVmI2CGS5aZnxLJlT5FtdhPCDFq80q++zK2KlrVorVDdL5BOGZ/VfLrVtYNF+Q==", + "dev": true + }, "dom-walk": { "version": "0.1.1", "resolved": "https://registry.npmjs.org/dom-walk/-/dom-walk-0.1.1.tgz", "integrity": "sha1-ZyIm3HTI95mtNTB9+TaroRrNYBg=" }, + "dtslint": { + "version": "0.4.2", + "resolved": "https://registry.npmjs.org/dtslint/-/dtslint-0.4.2.tgz", + "integrity": "sha512-ph4GXLw3HYzlQMJOFcpCqWHuL3MxJ/344OR7wn0wlQGchQGTIVNsSUl8iKEMatpy2geNMysgA9fQa6xVhHOkTQ==", + "dev": true, + "requires": { + "definitelytyped-header-parser": "github:Microsoft/definitelytyped-header-parser#production", + "fs-extra": "^6.0.1", + "strip-json-comments": "^2.0.1", + "tslint": "^5.12.0", + "typescript": "^3.7.0-dev.20191015" + }, + "dependencies": { + "definitelytyped-header-parser": { + "version": "github:Microsoft/definitelytyped-header-parser#d957ad0bb2f4ecb60ac04f734e0b38fbc8e70b8a", + "from": "github:Microsoft/definitelytyped-header-parser#production", + "dev": true, + "requires": { + "@types/parsimmon": "^1.3.0", + "parsimmon": "^1.2.0" + } + } + } + }, "elliptic": { "version": "6.4.1", "resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.4.1.tgz", @@ -80,6 +226,24 @@ "is-symbol": "^1.0.2" } }, + "escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", + "dev": true + }, + "esprima": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "dev": true + }, + "esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true + }, "eth-lib": { "version": "0.2.7", "resolved": "https://registry.npmjs.org/eth-lib/-/eth-lib-0.2.7.tgz", @@ -114,11 +278,42 @@ "is-callable": "^1.1.3" } }, + "fs-extra": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-6.0.1.tgz", + "integrity": "sha512-GnyIkKhhzXZUWFCaJzvyDLEEgDkPfb4/TPvJCJVuS8MWZgoSsErf++QpiAlDnKFcqhRlm+tIOcencCjyJE6ZCA==", + "dev": true, + "requires": { + "graceful-fs": "^4.1.2", + "jsonfile": "^4.0.0", + "universalify": "^0.1.0" + } + }, + "fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", + "dev": true + }, "function-bind": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==" }, + "glob": { + "version": "7.1.4", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.4.tgz", + "integrity": "sha512-hkLPepehmnKk41pUGm3sYxoFs/umurYfYJCerbXEyFIWcAzvpipAgVkBqqT9RBKMGjnq6kMuyYwha6csxbiM1A==", + "dev": true, + "requires": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.0.4", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + } + }, "global": { "version": "4.3.2", "resolved": "https://registry.npmjs.org/global/-/global-4.3.2.tgz", @@ -128,6 +323,12 @@ "process": "~0.5.1" } }, + "graceful-fs": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.2.tgz", + "integrity": "sha512-IItsdsea19BoLC7ELy13q1iJFNmd7ofZH5+X/pJr90/nRoPEX0DJo1dHDbgtYWOhJhcCgMDTOw84RZ72q6lB+Q==", + "dev": true + }, "has": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", @@ -136,6 +337,12 @@ "function-bind": "^1.1.1" } }, + "has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", + "dev": true + }, "has-symbols": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.0.tgz", @@ -160,6 +367,16 @@ "minimalistic-crypto-utils": "^1.0.1" } }, + "inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", + "dev": true, + "requires": { + "once": "^1.3.0", + "wrappy": "1" + } + }, "inherits": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", @@ -201,6 +418,31 @@ "has-symbols": "^1.0.0" } }, + "js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "dev": true + }, + "js-yaml": { + "version": "3.13.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.13.1.tgz", + "integrity": "sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw==", + "dev": true, + "requires": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + } + }, + "jsonfile": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", + "integrity": "sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss=", + "dev": true, + "requires": { + "graceful-fs": "^4.1.6" + } + }, "mimic-response": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-1.0.1.tgz", @@ -224,6 +466,30 @@ "resolved": "https://registry.npmjs.org/minimalistic-crypto-utils/-/minimalistic-crypto-utils-1.0.1.tgz", "integrity": "sha1-9sAMHAsIIkblxNmd+4x8CDsrWCo=" }, + "minimatch": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", + "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", + "dev": true, + "requires": { + "brace-expansion": "^1.1.7" + } + }, + "minimist": { + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", + "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=", + "dev": true + }, + "mkdirp": { + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", + "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", + "dev": true, + "requires": { + "minimist": "0.0.8" + } + }, "number-to-bn": { "version": "1.7.0", "resolved": "https://registry.npmjs.org/number-to-bn/-/number-to-bn-1.7.0.tgz", @@ -267,6 +533,24 @@ "string.prototype.trim": "^1.1.2" } }, + "parsimmon": { + "version": "1.13.0", + "resolved": "https://registry.npmjs.org/parsimmon/-/parsimmon-1.13.0.tgz", + "integrity": "sha512-5UIrOCW+gjbILkjKPgTgmq8LKf8TT3Iy7kN2VD7OtQ81facKn8B4gG1X94jWqXYZsxG2KbJhrv/Yq/5H6BQn7A==", + "dev": true + }, + "path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", + "dev": true + }, + "path-parse": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz", + "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==", + "dev": true + }, "process": { "version": "0.5.2", "resolved": "https://registry.npmjs.org/process/-/process-0.5.2.tgz", @@ -290,11 +574,26 @@ "safe-buffer": "^5.1.0" } }, + "resolve": { + "version": "1.12.0", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.12.0.tgz", + "integrity": "sha512-B/dOmuoAik5bKcD6s6nXDCjzUKnaDvdkRyAk6rsmsKLipWj4797iothd7jmmUhWTfinVMU+wc56rYKsit2Qy4w==", + "dev": true, + "requires": { + "path-parse": "^1.0.6" + } + }, "safe-buffer": { "version": "5.2.0", "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.0.tgz", "integrity": "sha512-fZEwUGbVl7kouZs1jCdMLdt95hdIv0ZeHg6L7qPeciMZhZ+/gdesW4wgTARkrFWEpspjEATAzUGPG8N2jJiwbg==" }, + "semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "dev": true + }, "simple-concat": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/simple-concat/-/simple-concat-1.0.0.tgz", @@ -310,6 +609,12 @@ "simple-concat": "^1.0.0" } }, + "sprintf-js": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", + "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", + "dev": true + }, "strict-uri-encode": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/strict-uri-encode/-/strict-uri-encode-1.1.0.tgz", @@ -333,16 +638,79 @@ "is-hex-prefixed": "1.0.0" } }, + "strip-json-comments": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", + "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=", + "dev": true + }, + "supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, + "requires": { + "has-flag": "^3.0.0" + } + }, "timed-out": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/timed-out/-/timed-out-4.0.1.tgz", "integrity": "sha1-8y6srFoXW+ol1/q1Zas+2HQe9W8=" }, + "tslib": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.10.0.tgz", + "integrity": "sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==", + "dev": true + }, + "tslint": { + "version": "5.20.0", + "resolved": "https://registry.npmjs.org/tslint/-/tslint-5.20.0.tgz", + "integrity": "sha512-2vqIvkMHbnx8acMogAERQ/IuINOq6DFqgF8/VDvhEkBqQh/x6SP0Y+OHnKth9/ZcHQSroOZwUQSN18v8KKF0/g==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.0.0", + "builtin-modules": "^1.1.1", + "chalk": "^2.3.0", + "commander": "^2.12.1", + "diff": "^4.0.1", + "glob": "^7.1.1", + "js-yaml": "^3.13.1", + "minimatch": "^3.0.4", + "mkdirp": "^0.5.1", + "resolve": "^1.3.2", + "semver": "^5.3.0", + "tslib": "^1.8.0", + "tsutils": "^2.29.0" + } + }, + "tsutils": { + "version": "2.29.0", + "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-2.29.0.tgz", + "integrity": "sha512-g5JVHCIJwzfISaXpXE1qvNalca5Jwob6FjI4AoPlqMusJ6ftFE7IkkFoMhVLRgK+4Kx3gkzb8UZK5t5yTTvEmA==", + "dev": true, + "requires": { + "tslib": "^1.8.1" + } + }, + "typescript": { + "version": "3.7.0-dev.20191015", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.7.0-dev.20191015.tgz", + "integrity": "sha512-Cpfj1n4pEUVKL+jtS0mkZodJffyMmf3Wk/UjyZMGX4fsjK5KBPJf3NUlyXij8I8p1E2CAomdS5NPFrAR+z8pKw==", + "dev": true + }, "underscore": { "version": "1.9.1", "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.9.1.tgz", "integrity": "sha512-5/4etnCkd9c8gwgowi5/om/mYO5ajCaOgdzj/oW+0eQV9WxKBDZw5+ycmKmeaTXjInS/W0BzpGLo2xR2aBwZdg==" }, + "universalify": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", + "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", + "dev": true + }, "url-set-query": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/url-set-query/-/url-set-query-1.0.0.tgz", diff --git a/packages/web3/package-lock.json b/packages/web3/package-lock.json new file mode 100644 index 00000000000..8cd93300877 --- /dev/null +++ b/packages/web3/package-lock.json @@ -0,0 +1,400 @@ +{ + "name": "web3", + "version": "1.2.1", + "lockfileVersion": 1, + "requires": true, + "dependencies": { + "@babel/code-frame": { + "version": "7.5.5", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.5.5.tgz", + "integrity": "sha512-27d4lZoomVyo51VegxI20xZPuSHusqbQag/ztrBC7wegWoQ1nLREPVSKSW8byhTlzTKyNE4ifaTA6lCp7JjpFw==", + "dev": true, + "requires": { + "@babel/highlight": "^7.0.0" + } + }, + "@babel/highlight": { + "version": "7.5.0", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.5.0.tgz", + "integrity": "sha512-7dV4eu9gBxoM0dAnj/BCFDW9LFU0zvTrkq0ugM7pnHEgguOEeOz1so2ZghEdzviYzQEED0r4EAgpsBChKy1TRQ==", + "dev": true, + "requires": { + "chalk": "^2.0.0", + "esutils": "^2.0.2", + "js-tokens": "^4.0.0" + } + }, + "@types/node": { + "version": "12.7.12", + "resolved": "https://registry.npmjs.org/@types/node/-/node-12.7.12.tgz", + "integrity": "sha512-KPYGmfD0/b1eXurQ59fXD1GBzhSQfz6/lKBxkaHX9dKTzjXbK68Zt7yGUxUsCS1jeTy/8aL+d9JEr+S54mpkWQ==" + }, + "@types/parsimmon": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/@types/parsimmon/-/parsimmon-1.10.0.tgz", + "integrity": "sha512-bsTIJFVQv7jnvNiC42ld2pQW2KRI+pAG243L+iATvqzy3X6+NH1obz2itRKDZZ8VVhN3wjwYax/VBGCcXzgTqQ==", + "dev": true + }, + "ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, + "requires": { + "color-convert": "^1.9.0" + } + }, + "argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "dev": true, + "requires": { + "sprintf-js": "~1.0.2" + } + }, + "balanced-match": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", + "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", + "dev": true + }, + "brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "requires": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "builtin-modules": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-1.1.1.tgz", + "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=", + "dev": true + }, + "chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dev": true, + "requires": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + } + }, + "color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dev": true, + "requires": { + "color-name": "1.1.3" + } + }, + "color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", + "dev": true + }, + "commander": { + "version": "2.20.3", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", + "dev": true + }, + "concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", + "dev": true + }, + "definitelytyped-header-parser": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/definitelytyped-header-parser/-/definitelytyped-header-parser-1.2.0.tgz", + "integrity": "sha512-xpg8uu/2YD/reaVsZV4oJ4g7UDYFqQGWvT1W9Tsj6q4VtWBSaig38Qgah0ZMnQGF9kAsAim08EXDO1nSi0+Nog==", + "dev": true, + "requires": { + "@types/parsimmon": "^1.3.0", + "parsimmon": "^1.2.0" + } + }, + "diff": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.1.tgz", + "integrity": "sha512-s2+XdvhPCOF01LRQBC8hf4vhbVmI2CGS5aZnxLJlT5FtdhPCDFq80q++zK2KlrVorVDdL5BOGZ/VfLrVtYNF+Q==", + "dev": true + }, + "dtslint": { + "version": "0.4.2", + "resolved": "https://registry.npmjs.org/dtslint/-/dtslint-0.4.2.tgz", + "integrity": "sha512-ph4GXLw3HYzlQMJOFcpCqWHuL3MxJ/344OR7wn0wlQGchQGTIVNsSUl8iKEMatpy2geNMysgA9fQa6xVhHOkTQ==", + "dev": true, + "requires": { + "definitelytyped-header-parser": "github:Microsoft/definitelytyped-header-parser#production", + "fs-extra": "^6.0.1", + "strip-json-comments": "^2.0.1", + "tslint": "^5.12.0", + "typescript": "^3.7.0-dev.20191015" + }, + "dependencies": { + "definitelytyped-header-parser": { + "version": "github:Microsoft/definitelytyped-header-parser#d957ad0bb2f4ecb60ac04f734e0b38fbc8e70b8a", + "from": "github:Microsoft/definitelytyped-header-parser#production", + "dev": true, + "requires": { + "@types/parsimmon": "^1.3.0", + "parsimmon": "^1.2.0" + } + } + } + }, + "escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", + "dev": true + }, + "esprima": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "dev": true + }, + "esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true + }, + "fs-extra": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-6.0.1.tgz", + "integrity": "sha512-GnyIkKhhzXZUWFCaJzvyDLEEgDkPfb4/TPvJCJVuS8MWZgoSsErf++QpiAlDnKFcqhRlm+tIOcencCjyJE6ZCA==", + "dev": true, + "requires": { + "graceful-fs": "^4.1.2", + "jsonfile": "^4.0.0", + "universalify": "^0.1.0" + } + }, + "fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", + "dev": true + }, + "glob": { + "version": "7.1.4", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.4.tgz", + "integrity": "sha512-hkLPepehmnKk41pUGm3sYxoFs/umurYfYJCerbXEyFIWcAzvpipAgVkBqqT9RBKMGjnq6kMuyYwha6csxbiM1A==", + "dev": true, + "requires": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.0.4", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + } + }, + "graceful-fs": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.2.tgz", + "integrity": "sha512-IItsdsea19BoLC7ELy13q1iJFNmd7ofZH5+X/pJr90/nRoPEX0DJo1dHDbgtYWOhJhcCgMDTOw84RZ72q6lB+Q==", + "dev": true + }, + "has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", + "dev": true + }, + "inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", + "dev": true, + "requires": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "dev": true + }, + "js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "dev": true + }, + "js-yaml": { + "version": "3.13.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.13.1.tgz", + "integrity": "sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw==", + "dev": true, + "requires": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + } + }, + "jsonfile": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", + "integrity": "sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss=", + "dev": true, + "requires": { + "graceful-fs": "^4.1.6" + } + }, + "minimatch": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", + "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", + "dev": true, + "requires": { + "brace-expansion": "^1.1.7" + } + }, + "minimist": { + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", + "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=", + "dev": true + }, + "mkdirp": { + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", + "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", + "dev": true, + "requires": { + "minimist": "0.0.8" + } + }, + "once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", + "dev": true, + "requires": { + "wrappy": "1" + } + }, + "parsimmon": { + "version": "1.13.0", + "resolved": "https://registry.npmjs.org/parsimmon/-/parsimmon-1.13.0.tgz", + "integrity": "sha512-5UIrOCW+gjbILkjKPgTgmq8LKf8TT3Iy7kN2VD7OtQ81facKn8B4gG1X94jWqXYZsxG2KbJhrv/Yq/5H6BQn7A==", + "dev": true + }, + "path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", + "dev": true + }, + "path-parse": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz", + "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==", + "dev": true + }, + "resolve": { + "version": "1.12.0", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.12.0.tgz", + "integrity": "sha512-B/dOmuoAik5bKcD6s6nXDCjzUKnaDvdkRyAk6rsmsKLipWj4797iothd7jmmUhWTfinVMU+wc56rYKsit2Qy4w==", + "dev": true, + "requires": { + "path-parse": "^1.0.6" + } + }, + "semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "dev": true + }, + "sprintf-js": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", + "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", + "dev": true + }, + "strip-json-comments": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", + "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=", + "dev": true + }, + "supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, + "requires": { + "has-flag": "^3.0.0" + } + }, + "tslib": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.10.0.tgz", + "integrity": "sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==", + "dev": true + }, + "tslint": { + "version": "5.20.0", + "resolved": "https://registry.npmjs.org/tslint/-/tslint-5.20.0.tgz", + "integrity": "sha512-2vqIvkMHbnx8acMogAERQ/IuINOq6DFqgF8/VDvhEkBqQh/x6SP0Y+OHnKth9/ZcHQSroOZwUQSN18v8KKF0/g==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.0.0", + "builtin-modules": "^1.1.1", + "chalk": "^2.3.0", + "commander": "^2.12.1", + "diff": "^4.0.1", + "glob": "^7.1.1", + "js-yaml": "^3.13.1", + "minimatch": "^3.0.4", + "mkdirp": "^0.5.1", + "resolve": "^1.3.2", + "semver": "^5.3.0", + "tslib": "^1.8.0", + "tsutils": "^2.29.0" + } + }, + "tsutils": { + "version": "2.29.0", + "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-2.29.0.tgz", + "integrity": "sha512-g5JVHCIJwzfISaXpXE1qvNalca5Jwob6FjI4AoPlqMusJ6ftFE7IkkFoMhVLRgK+4Kx3gkzb8UZK5t5yTTvEmA==", + "dev": true, + "requires": { + "tslib": "^1.8.1" + } + }, + "typescript": { + "version": "3.7.0-dev.20191015", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.7.0-dev.20191015.tgz", + "integrity": "sha512-Cpfj1n4pEUVKL+jtS0mkZodJffyMmf3Wk/UjyZMGX4fsjK5KBPJf3NUlyXij8I8p1E2CAomdS5NPFrAR+z8pKw==", + "dev": true + }, + "universalify": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", + "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", + "dev": true + }, + "wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", + "dev": true + } + } +} From c64df7a82958f7fecb413c56fa3dd53e931e3b81 Mon Sep 17 00:00:00 2001 From: Josh Stevens Date: Tue, 15 Oct 2019 12:43:22 +0100 Subject: [PATCH 080/124] feat: new lock files for web3-eth-account --- packages/web3-eth-accounts/package-lock.json | 97 +++++--------------- 1 file changed, 25 insertions(+), 72 deletions(-) diff --git a/packages/web3-eth-accounts/package-lock.json b/packages/web3-eth-accounts/package-lock.json index 1e4741fb9e1..0221d7b9c19 100644 --- a/packages/web3-eth-accounts/package-lock.json +++ b/packages/web3-eth-accounts/package-lock.json @@ -1,14 +1,11 @@ { - "name": "web3-eth-accounts", - "version": "1.2.1", - "lockfileVersion": 1, "requires": true, + "lockfileVersion": 1, "dependencies": { "@babel/code-frame": { "version": "7.5.5", "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.5.5.tgz", "integrity": "sha512-27d4lZoomVyo51VegxI20xZPuSHusqbQag/ztrBC7wegWoQ1nLREPVSKSW8byhTlzTKyNE4ifaTA6lCp7JjpFw==", - "dev": true, "requires": { "@babel/highlight": "^7.0.0" } @@ -17,7 +14,6 @@ "version": "7.5.0", "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.5.0.tgz", "integrity": "sha512-7dV4eu9gBxoM0dAnj/BCFDW9LFU0zvTrkq0ugM7pnHEgguOEeOz1so2ZghEdzviYzQEED0r4EAgpsBChKy1TRQ==", - "dev": true, "requires": { "chalk": "^2.0.0", "esutils": "^2.0.2", @@ -27,14 +23,12 @@ "@types/parsimmon": { "version": "1.10.0", "resolved": "https://registry.npmjs.org/@types/parsimmon/-/parsimmon-1.10.0.tgz", - "integrity": "sha512-bsTIJFVQv7jnvNiC42ld2pQW2KRI+pAG243L+iATvqzy3X6+NH1obz2itRKDZZ8VVhN3wjwYax/VBGCcXzgTqQ==", - "dev": true + "integrity": "sha512-bsTIJFVQv7jnvNiC42ld2pQW2KRI+pAG243L+iATvqzy3X6+NH1obz2itRKDZZ8VVhN3wjwYax/VBGCcXzgTqQ==" }, "ansi-styles": { "version": "3.2.1", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, "requires": { "color-convert": "^1.9.0" } @@ -48,7 +42,6 @@ "version": "1.0.10", "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", - "dev": true, "requires": { "sprintf-js": "~1.0.2" } @@ -66,8 +59,7 @@ "balanced-match": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", - "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", - "dev": true + "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=" }, "bindings": { "version": "1.5.0", @@ -94,7 +86,6 @@ "version": "1.1.11", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "dev": true, "requires": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" @@ -175,14 +166,12 @@ "builtin-modules": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-1.1.1.tgz", - "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=", - "dev": true + "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=" }, "chalk": { "version": "2.4.2", "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", - "dev": true, "requires": { "ansi-styles": "^3.2.1", "escape-string-regexp": "^1.0.5", @@ -202,7 +191,6 @@ "version": "1.9.3", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", - "dev": true, "requires": { "color-name": "1.1.3" } @@ -210,20 +198,17 @@ "color-name": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", - "dev": true + "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=" }, "commander": { "version": "2.20.3", "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", - "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", - "dev": true + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==" }, "concat-map": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", - "dev": true + "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=" }, "create-ecdh": { "version": "4.0.3", @@ -302,7 +287,6 @@ "version": "1.2.0", "resolved": "https://registry.npmjs.org/definitelytyped-header-parser/-/definitelytyped-header-parser-1.2.0.tgz", "integrity": "sha512-xpg8uu/2YD/reaVsZV4oJ4g7UDYFqQGWvT1W9Tsj6q4VtWBSaig38Qgah0ZMnQGF9kAsAim08EXDO1nSi0+Nog==", - "dev": true, "requires": { "@types/parsimmon": "^1.3.0", "parsimmon": "^1.2.0" @@ -320,8 +304,7 @@ "diff": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.1.tgz", - "integrity": "sha512-s2+XdvhPCOF01LRQBC8hf4vhbVmI2CGS5aZnxLJlT5FtdhPCDFq80q++zK2KlrVorVDdL5BOGZ/VfLrVtYNF+Q==", - "dev": true + "integrity": "sha512-s2+XdvhPCOF01LRQBC8hf4vhbVmI2CGS5aZnxLJlT5FtdhPCDFq80q++zK2KlrVorVDdL5BOGZ/VfLrVtYNF+Q==" }, "diffie-hellman": { "version": "5.0.3", @@ -352,7 +335,6 @@ "version": "0.4.2", "resolved": "https://registry.npmjs.org/dtslint/-/dtslint-0.4.2.tgz", "integrity": "sha512-ph4GXLw3HYzlQMJOFcpCqWHuL3MxJ/344OR7wn0wlQGchQGTIVNsSUl8iKEMatpy2geNMysgA9fQa6xVhHOkTQ==", - "dev": true, "requires": { "definitelytyped-header-parser": "github:Microsoft/definitelytyped-header-parser#production", "fs-extra": "^6.0.1", @@ -364,7 +346,6 @@ "definitelytyped-header-parser": { "version": "github:Microsoft/definitelytyped-header-parser#d957ad0bb2f4ecb60ac04f734e0b38fbc8e70b8a", "from": "github:Microsoft/definitelytyped-header-parser#production", - "dev": true, "requires": { "@types/parsimmon": "^1.3.0", "parsimmon": "^1.2.0" @@ -412,20 +393,17 @@ "escape-string-regexp": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", - "dev": true + "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=" }, "esprima": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", - "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", - "dev": true + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==" }, "esutils": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", - "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", - "dev": true + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==" }, "eth-lib": { "version": "0.2.7", @@ -500,7 +478,6 @@ "version": "6.0.1", "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-6.0.1.tgz", "integrity": "sha512-GnyIkKhhzXZUWFCaJzvyDLEEgDkPfb4/TPvJCJVuS8MWZgoSsErf++QpiAlDnKFcqhRlm+tIOcencCjyJE6ZCA==", - "dev": true, "requires": { "graceful-fs": "^4.1.2", "jsonfile": "^4.0.0", @@ -510,8 +487,7 @@ "fs.realpath": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", - "dev": true + "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=" }, "function-bind": { "version": "1.1.1", @@ -522,7 +498,6 @@ "version": "7.1.4", "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.4.tgz", "integrity": "sha512-hkLPepehmnKk41pUGm3sYxoFs/umurYfYJCerbXEyFIWcAzvpipAgVkBqqT9RBKMGjnq6kMuyYwha6csxbiM1A==", - "dev": true, "requires": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", @@ -544,8 +519,7 @@ "graceful-fs": { "version": "4.2.2", "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.2.tgz", - "integrity": "sha512-IItsdsea19BoLC7ELy13q1iJFNmd7ofZH5+X/pJr90/nRoPEX0DJo1dHDbgtYWOhJhcCgMDTOw84RZ72q6lB+Q==", - "dev": true + "integrity": "sha512-IItsdsea19BoLC7ELy13q1iJFNmd7ofZH5+X/pJr90/nRoPEX0DJo1dHDbgtYWOhJhcCgMDTOw84RZ72q6lB+Q==" }, "has": { "version": "1.0.3", @@ -558,8 +532,7 @@ "has-flag": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", - "dev": true + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=" }, "has-symbols": { "version": "1.0.0", @@ -598,7 +571,6 @@ "version": "1.0.6", "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", - "dev": true, "requires": { "once": "^1.3.0", "wrappy": "1" @@ -648,14 +620,12 @@ "js-tokens": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", - "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", - "dev": true + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==" }, "js-yaml": { "version": "3.13.1", "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.13.1.tgz", "integrity": "sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw==", - "dev": true, "requires": { "argparse": "^1.0.7", "esprima": "^4.0.0" @@ -665,7 +635,6 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", "integrity": "sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss=", - "dev": true, "requires": { "graceful-fs": "^4.1.6" } @@ -727,7 +696,6 @@ "version": "3.0.4", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", - "dev": true, "requires": { "brace-expansion": "^1.1.7" } @@ -735,14 +703,12 @@ "minimist": { "version": "0.0.8", "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", - "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=", - "dev": true + "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=" }, "mkdirp": { "version": "0.5.1", "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", - "dev": true, "requires": { "minimist": "0.0.8" } @@ -794,20 +760,17 @@ "parsimmon": { "version": "1.13.0", "resolved": "https://registry.npmjs.org/parsimmon/-/parsimmon-1.13.0.tgz", - "integrity": "sha512-5UIrOCW+gjbILkjKPgTgmq8LKf8TT3Iy7kN2VD7OtQ81facKn8B4gG1X94jWqXYZsxG2KbJhrv/Yq/5H6BQn7A==", - "dev": true + "integrity": "sha512-5UIrOCW+gjbILkjKPgTgmq8LKf8TT3Iy7kN2VD7OtQ81facKn8B4gG1X94jWqXYZsxG2KbJhrv/Yq/5H6BQn7A==" }, "path-is-absolute": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", - "dev": true + "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=" }, "path-parse": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz", - "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==", - "dev": true + "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==" }, "pbkdf2": { "version": "3.0.17", @@ -870,7 +833,6 @@ "version": "1.12.0", "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.12.0.tgz", "integrity": "sha512-B/dOmuoAik5bKcD6s6nXDCjzUKnaDvdkRyAk6rsmsKLipWj4797iothd7jmmUhWTfinVMU+wc56rYKsit2Qy4w==", - "dev": true, "requires": { "path-parse": "^1.0.6" } @@ -936,8 +898,7 @@ "semver": { "version": "5.7.1", "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", - "dev": true + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==" }, "sha.js": { "version": "2.4.11", @@ -966,8 +927,7 @@ "sprintf-js": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", - "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", - "dev": true + "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=" }, "strict-uri-encode": { "version": "1.1.0", @@ -995,14 +955,12 @@ "strip-json-comments": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", - "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=", - "dev": true + "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=" }, "supports-color": { "version": "5.5.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "dev": true, "requires": { "has-flag": "^3.0.0" } @@ -1015,14 +973,12 @@ "tslib": { "version": "1.10.0", "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.10.0.tgz", - "integrity": "sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==", - "dev": true + "integrity": "sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==" }, "tslint": { "version": "5.20.0", "resolved": "https://registry.npmjs.org/tslint/-/tslint-5.20.0.tgz", "integrity": "sha512-2vqIvkMHbnx8acMogAERQ/IuINOq6DFqgF8/VDvhEkBqQh/x6SP0Y+OHnKth9/ZcHQSroOZwUQSN18v8KKF0/g==", - "dev": true, "requires": { "@babel/code-frame": "^7.0.0", "builtin-modules": "^1.1.1", @@ -1043,7 +999,6 @@ "version": "2.29.0", "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-2.29.0.tgz", "integrity": "sha512-g5JVHCIJwzfISaXpXE1qvNalca5Jwob6FjI4AoPlqMusJ6ftFE7IkkFoMhVLRgK+4Kx3gkzb8UZK5t5yTTvEmA==", - "dev": true, "requires": { "tslib": "^1.8.1" } @@ -1051,8 +1006,7 @@ "typescript": { "version": "3.7.0-dev.20191015", "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.7.0-dev.20191015.tgz", - "integrity": "sha512-Cpfj1n4pEUVKL+jtS0mkZodJffyMmf3Wk/UjyZMGX4fsjK5KBPJf3NUlyXij8I8p1E2CAomdS5NPFrAR+z8pKw==", - "dev": true + "integrity": "sha512-Cpfj1n4pEUVKL+jtS0mkZodJffyMmf3Wk/UjyZMGX4fsjK5KBPJf3NUlyXij8I8p1E2CAomdS5NPFrAR+z8pKw==" }, "underscore": { "version": "1.9.1", @@ -1062,8 +1016,7 @@ "universalify": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", - "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", - "dev": true + "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==" }, "url-set-query": { "version": "1.0.0", From 83be2a40f04c73d09df602195cd8fc56ecba76d6 Mon Sep 17 00:00:00 2001 From: Josh Stevens Date: Tue, 15 Oct 2019 12:43:35 +0100 Subject: [PATCH 081/124] feat: new lock file for web3-provider.ws --- packages/web3-providers-ws/package-lock.json | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/web3-providers-ws/package-lock.json b/packages/web3-providers-ws/package-lock.json index 14f0c515006..a1777555880 100644 --- a/packages/web3-providers-ws/package-lock.json +++ b/packages/web3-providers-ws/package-lock.json @@ -1,8 +1,6 @@ { - "name": "web3-providers-ws", - "version": "1.2.1", - "lockfileVersion": 1, "requires": true, + "lockfileVersion": 1, "dependencies": { "d": { "version": "1.0.1", From 147e1fb1594e9e124f318f47dbeb698f378e12b6 Mon Sep 17 00:00:00 2001 From: Josh Stevens Date: Tue, 15 Oct 2019 12:43:47 +0100 Subject: [PATCH 082/124] feat: install new dev dependencies for typings on root --- package-lock.json | 86 +++++++++++++++++++++++------------------------ 1 file changed, 43 insertions(+), 43 deletions(-) diff --git a/package-lock.json b/package-lock.json index d9f460f0ead..fbb9ada2b7b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -895,6 +895,15 @@ "integrity": "sha512-KoJPKjhlWBry4fk8qcIufXFOU+zcZBfkHQWKbnAMQTMoe2GDeLpjSQHS+22gv+dg7gKdTP2WCjSeCVnfj8e+Gw==", "dev": true }, + "@types/bn.js": { + "version": "4.11.5", + "resolved": "https://registry.npmjs.org/@types/bn.js/-/bn.js-4.11.5.tgz", + "integrity": "sha512-AEAZcIZga0JgVMHNtl1CprA/hXX7/wPt79AgR4XqaDt7jyj3QWYw6LPoOiznPtugDmlubUnAahMs2PFxGcQrng==", + "dev": true, + "requires": { + "@types/node": "*" + } + }, "@types/events": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/@types/events/-/events-3.0.0.tgz", @@ -919,9 +928,9 @@ "dev": true }, "@types/node": { - "version": "12.0.8", - "resolved": "https://registry.npmjs.org/@types/node/-/node-12.0.8.tgz", - "integrity": "sha512-b8bbUOTwzIY3V5vDTY1fIJ+ePKDUBqt2hC2woVGotdQQhG/2Sh62HOKHrT7ab+VerXAcPyAiTEipPu/FsreUtg==", + "version": "12.7.12", + "resolved": "https://registry.npmjs.org/@types/node/-/node-12.7.12.tgz", + "integrity": "sha512-KPYGmfD0/b1eXurQ59fXD1GBzhSQfz6/lKBxkaHX9dKTzjXbK68Zt7yGUxUsCS1jeTy/8aL+d9JEr+S54mpkWQ==", "dev": true }, "@types/underscore": { @@ -4424,7 +4433,8 @@ "version": "2.1.1", "resolved": false, "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", - "dev": true + "dev": true, + "optional": true }, "aproba": { "version": "1.2.0", @@ -4448,13 +4458,15 @@ "version": "1.0.0", "resolved": false, "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", - "dev": true + "dev": true, + "optional": true }, "brace-expansion": { "version": "1.1.11", "resolved": false, "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", "dev": true, + "optional": true, "requires": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" @@ -4471,19 +4483,22 @@ "version": "1.1.0", "resolved": false, "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=", - "dev": true + "dev": true, + "optional": true }, "concat-map": { "version": "0.0.1", "resolved": false, "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", - "dev": true + "dev": true, + "optional": true }, "console-control-strings": { "version": "1.1.0", "resolved": false, "integrity": "sha1-PXz0Rk22RG6mRL9LOVB/mFEAjo4=", - "dev": true + "dev": true, + "optional": true }, "core-util-is": { "version": "1.0.2", @@ -4614,7 +4629,8 @@ "version": "2.0.3", "resolved": false, "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=", - "dev": true + "dev": true, + "optional": true }, "ini": { "version": "1.3.5", @@ -4628,6 +4644,7 @@ "resolved": false, "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=", "dev": true, + "optional": true, "requires": { "number-is-nan": "^1.0.0" } @@ -4644,6 +4661,7 @@ "resolved": false, "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", "dev": true, + "optional": true, "requires": { "brace-expansion": "^1.1.7" } @@ -4652,13 +4670,15 @@ "version": "0.0.8", "resolved": false, "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=", - "dev": true + "dev": true, + "optional": true }, "minipass": { "version": "2.3.5", "resolved": false, "integrity": "sha512-Gi1W4k059gyRbyVUZQ4mEqLm0YIUiGYfvxhF6SIlk3ui1WVxMTGfGdQ2SInh3PDrRTVvPKgULkpJtT4RH10+VA==", "dev": true, + "optional": true, "requires": { "safe-buffer": "^5.1.2", "yallist": "^3.0.0" @@ -4679,6 +4699,7 @@ "resolved": false, "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", "dev": true, + "optional": true, "requires": { "minimist": "0.0.8" } @@ -4767,7 +4788,8 @@ "version": "1.0.1", "resolved": false, "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=", - "dev": true + "dev": true, + "optional": true }, "object-assign": { "version": "4.1.1", @@ -4781,6 +4803,7 @@ "resolved": false, "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", "dev": true, + "optional": true, "requires": { "wrappy": "1" } @@ -4876,7 +4899,8 @@ "version": "5.1.2", "resolved": false, "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", - "dev": true + "dev": true, + "optional": true }, "safer-buffer": { "version": "2.1.2", @@ -4918,6 +4942,7 @@ "resolved": false, "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", "dev": true, + "optional": true, "requires": { "code-point-at": "^1.0.0", "is-fullwidth-code-point": "^1.0.0", @@ -4939,6 +4964,7 @@ "resolved": false, "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", "dev": true, + "optional": true, "requires": { "ansi-regex": "^2.0.0" } @@ -4987,13 +5013,15 @@ "version": "1.0.2", "resolved": false, "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", - "dev": true + "dev": true, + "optional": true }, "yallist": { "version": "3.0.3", "resolved": false, "integrity": "sha512-S+Zk8DEWE6oKpV+vI3qWkaK+jSbIK86pCwe2IF/xwIpQ8jEuxpw9NyaGjmp9+BoJv5FV2piqCDcoCtStppiq2A==", - "dev": true + "dev": true, + "optional": true } } }, @@ -11623,15 +11651,6 @@ "integrity": "sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=", "dev": true }, - "typedarray-to-buffer": { - "version": "3.1.5", - "resolved": "https://registry.npmjs.org/typedarray-to-buffer/-/typedarray-to-buffer-3.1.5.tgz", - "integrity": "sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q==", - "dev": true, - "requires": { - "is-typedarray": "^1.0.0" - } - }, "uglify-js": { "version": "3.4.9", "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.4.9.tgz", @@ -12514,8 +12533,7 @@ "dev": true, "requires": { "underscore": "1.9.1", - "web3-core-helpers": "1.2.1", - "websocket": "github:web3-js/WebSocket-Node#905deb4812572b344f5801f8c9ce8bb02799d82e" + "web3-core-helpers": "1.2.1" } }, "web3-shh": { @@ -12576,18 +12594,6 @@ } } }, - "websocket": { - "version": "github:web3-js/WebSocket-Node#905deb4812572b344f5801f8c9ce8bb02799d82e", - "from": "github:web3-js/WebSocket-Node#polyfill/globalThis", - "dev": true, - "requires": { - "debug": "^2.2.0", - "es5-ext": "^0.10.50", - "nan": "^2.14.0", - "typedarray-to-buffer": "^3.1.5", - "yaeti": "^0.0.6" - } - }, "which": { "version": "1.3.1", "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", @@ -12751,12 +12757,6 @@ "integrity": "sha1-bRX7qITAhnnA136I53WegR4H+kE=", "dev": true }, - "yaeti": { - "version": "0.0.6", - "resolved": "https://registry.npmjs.org/yaeti/-/yaeti-0.0.6.tgz", - "integrity": "sha1-8m9ITXJoTPQr7ft2lwqhYI+/lXc=", - "dev": true - }, "yallist": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/yallist/-/yallist-2.1.2.tgz", From 1e9724639e5a8053ca4b22f470114f18c9b8b1fd Mon Sep 17 00:00:00 2001 From: Josh Stevens Date: Tue, 15 Oct 2019 12:52:29 +0100 Subject: [PATCH 083/124] feat: export the typings in the package.json --- packages/web3-core-helpers/package.json | 4 + packages/web3-core-method/package.json | 4 + packages/web3-core/package.json | 4 + packages/web3-eth-abi/package.json | 4 + packages/web3-eth-accounts/package-lock.json | 97 +++++++++++++++----- packages/web3-eth-accounts/package.json | 4 + packages/web3-eth-contract/package.json | 4 + packages/web3-eth-ens/package.json | 4 + packages/web3-eth-iban/package.json | 4 + packages/web3-eth-personal/package.json | 4 + packages/web3-eth/package.json | 4 + packages/web3-net/package.json | 4 + packages/web3-providers-ws/package-lock.json | 4 +- packages/web3-shh/package.json | 4 + packages/web3-utils/package.json | 4 + packages/web3/package.json | 4 + 16 files changed, 131 insertions(+), 26 deletions(-) diff --git a/packages/web3-core-helpers/package.json b/packages/web3-core-helpers/package.json index 80e8feef4e6..a2e2dc28258 100644 --- a/packages/web3-core-helpers/package.json +++ b/packages/web3-core-helpers/package.json @@ -7,6 +7,10 @@ "engines": { "node": ">=8.0.0" }, + "types": "types/index.d.ts", + "scripts": { + "dtslint": "dtslint types --onlyTestTsNext" + }, "main": "src/index.js", "dependencies": { "underscore": "1.9.1", diff --git a/packages/web3-core-method/package.json b/packages/web3-core-method/package.json index dfb38881e48..90bc0654f8e 100644 --- a/packages/web3-core-method/package.json +++ b/packages/web3-core-method/package.json @@ -7,6 +7,10 @@ "engines": { "node": ">=8.0.0" }, + "types": "types/index.d.ts", + "scripts": { + "dtslint": "dtslint types --onlyTestTsNext" + }, "main": "src/index.js", "dependencies": { "underscore": "1.9.1", diff --git a/packages/web3-core/package.json b/packages/web3-core/package.json index f055e650110..95d3f951a13 100644 --- a/packages/web3-core/package.json +++ b/packages/web3-core/package.json @@ -7,6 +7,10 @@ "engines": { "node": ">=8.0.0" }, + "types": "types/index.d.ts", + "scripts": { + "dtslint": "dtslint types --onlyTestTsNext" + }, "main": "src/index.js", "dependencies": { "@types/bn.js": "^4.11.4", diff --git a/packages/web3-eth-abi/package.json b/packages/web3-eth-abi/package.json index 46b6fafb470..5c6600df154 100644 --- a/packages/web3-eth-abi/package.json +++ b/packages/web3-eth-abi/package.json @@ -7,6 +7,10 @@ "engines": { "node": ">=8.0.0" }, + "types": "types/index.d.ts", + "scripts": { + "dtslint": "dtslint types --onlyTestTsNext" + }, "main": "src/index.js", "dependencies": { "ethers": "4.0.0-beta.3", diff --git a/packages/web3-eth-accounts/package-lock.json b/packages/web3-eth-accounts/package-lock.json index 0221d7b9c19..1e4741fb9e1 100644 --- a/packages/web3-eth-accounts/package-lock.json +++ b/packages/web3-eth-accounts/package-lock.json @@ -1,11 +1,14 @@ { - "requires": true, + "name": "web3-eth-accounts", + "version": "1.2.1", "lockfileVersion": 1, + "requires": true, "dependencies": { "@babel/code-frame": { "version": "7.5.5", "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.5.5.tgz", "integrity": "sha512-27d4lZoomVyo51VegxI20xZPuSHusqbQag/ztrBC7wegWoQ1nLREPVSKSW8byhTlzTKyNE4ifaTA6lCp7JjpFw==", + "dev": true, "requires": { "@babel/highlight": "^7.0.0" } @@ -14,6 +17,7 @@ "version": "7.5.0", "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.5.0.tgz", "integrity": "sha512-7dV4eu9gBxoM0dAnj/BCFDW9LFU0zvTrkq0ugM7pnHEgguOEeOz1so2ZghEdzviYzQEED0r4EAgpsBChKy1TRQ==", + "dev": true, "requires": { "chalk": "^2.0.0", "esutils": "^2.0.2", @@ -23,12 +27,14 @@ "@types/parsimmon": { "version": "1.10.0", "resolved": "https://registry.npmjs.org/@types/parsimmon/-/parsimmon-1.10.0.tgz", - "integrity": "sha512-bsTIJFVQv7jnvNiC42ld2pQW2KRI+pAG243L+iATvqzy3X6+NH1obz2itRKDZZ8VVhN3wjwYax/VBGCcXzgTqQ==" + "integrity": "sha512-bsTIJFVQv7jnvNiC42ld2pQW2KRI+pAG243L+iATvqzy3X6+NH1obz2itRKDZZ8VVhN3wjwYax/VBGCcXzgTqQ==", + "dev": true }, "ansi-styles": { "version": "3.2.1", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, "requires": { "color-convert": "^1.9.0" } @@ -42,6 +48,7 @@ "version": "1.0.10", "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "dev": true, "requires": { "sprintf-js": "~1.0.2" } @@ -59,7 +66,8 @@ "balanced-match": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", - "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=" + "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", + "dev": true }, "bindings": { "version": "1.5.0", @@ -86,6 +94,7 @@ "version": "1.1.11", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, "requires": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" @@ -166,12 +175,14 @@ "builtin-modules": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-1.1.1.tgz", - "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=" + "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=", + "dev": true }, "chalk": { "version": "2.4.2", "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dev": true, "requires": { "ansi-styles": "^3.2.1", "escape-string-regexp": "^1.0.5", @@ -191,6 +202,7 @@ "version": "1.9.3", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dev": true, "requires": { "color-name": "1.1.3" } @@ -198,17 +210,20 @@ "color-name": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=" + "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", + "dev": true }, "commander": { "version": "2.20.3", "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", - "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==" + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", + "dev": true }, "concat-map": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=" + "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", + "dev": true }, "create-ecdh": { "version": "4.0.3", @@ -287,6 +302,7 @@ "version": "1.2.0", "resolved": "https://registry.npmjs.org/definitelytyped-header-parser/-/definitelytyped-header-parser-1.2.0.tgz", "integrity": "sha512-xpg8uu/2YD/reaVsZV4oJ4g7UDYFqQGWvT1W9Tsj6q4VtWBSaig38Qgah0ZMnQGF9kAsAim08EXDO1nSi0+Nog==", + "dev": true, "requires": { "@types/parsimmon": "^1.3.0", "parsimmon": "^1.2.0" @@ -304,7 +320,8 @@ "diff": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.1.tgz", - "integrity": "sha512-s2+XdvhPCOF01LRQBC8hf4vhbVmI2CGS5aZnxLJlT5FtdhPCDFq80q++zK2KlrVorVDdL5BOGZ/VfLrVtYNF+Q==" + "integrity": "sha512-s2+XdvhPCOF01LRQBC8hf4vhbVmI2CGS5aZnxLJlT5FtdhPCDFq80q++zK2KlrVorVDdL5BOGZ/VfLrVtYNF+Q==", + "dev": true }, "diffie-hellman": { "version": "5.0.3", @@ -335,6 +352,7 @@ "version": "0.4.2", "resolved": "https://registry.npmjs.org/dtslint/-/dtslint-0.4.2.tgz", "integrity": "sha512-ph4GXLw3HYzlQMJOFcpCqWHuL3MxJ/344OR7wn0wlQGchQGTIVNsSUl8iKEMatpy2geNMysgA9fQa6xVhHOkTQ==", + "dev": true, "requires": { "definitelytyped-header-parser": "github:Microsoft/definitelytyped-header-parser#production", "fs-extra": "^6.0.1", @@ -346,6 +364,7 @@ "definitelytyped-header-parser": { "version": "github:Microsoft/definitelytyped-header-parser#d957ad0bb2f4ecb60ac04f734e0b38fbc8e70b8a", "from": "github:Microsoft/definitelytyped-header-parser#production", + "dev": true, "requires": { "@types/parsimmon": "^1.3.0", "parsimmon": "^1.2.0" @@ -393,17 +412,20 @@ "escape-string-regexp": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=" + "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", + "dev": true }, "esprima": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", - "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==" + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "dev": true }, "esutils": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", - "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==" + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true }, "eth-lib": { "version": "0.2.7", @@ -478,6 +500,7 @@ "version": "6.0.1", "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-6.0.1.tgz", "integrity": "sha512-GnyIkKhhzXZUWFCaJzvyDLEEgDkPfb4/TPvJCJVuS8MWZgoSsErf++QpiAlDnKFcqhRlm+tIOcencCjyJE6ZCA==", + "dev": true, "requires": { "graceful-fs": "^4.1.2", "jsonfile": "^4.0.0", @@ -487,7 +510,8 @@ "fs.realpath": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=" + "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", + "dev": true }, "function-bind": { "version": "1.1.1", @@ -498,6 +522,7 @@ "version": "7.1.4", "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.4.tgz", "integrity": "sha512-hkLPepehmnKk41pUGm3sYxoFs/umurYfYJCerbXEyFIWcAzvpipAgVkBqqT9RBKMGjnq6kMuyYwha6csxbiM1A==", + "dev": true, "requires": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", @@ -519,7 +544,8 @@ "graceful-fs": { "version": "4.2.2", "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.2.tgz", - "integrity": "sha512-IItsdsea19BoLC7ELy13q1iJFNmd7ofZH5+X/pJr90/nRoPEX0DJo1dHDbgtYWOhJhcCgMDTOw84RZ72q6lB+Q==" + "integrity": "sha512-IItsdsea19BoLC7ELy13q1iJFNmd7ofZH5+X/pJr90/nRoPEX0DJo1dHDbgtYWOhJhcCgMDTOw84RZ72q6lB+Q==", + "dev": true }, "has": { "version": "1.0.3", @@ -532,7 +558,8 @@ "has-flag": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=" + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", + "dev": true }, "has-symbols": { "version": "1.0.0", @@ -571,6 +598,7 @@ "version": "1.0.6", "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", + "dev": true, "requires": { "once": "^1.3.0", "wrappy": "1" @@ -620,12 +648,14 @@ "js-tokens": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", - "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==" + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "dev": true }, "js-yaml": { "version": "3.13.1", "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.13.1.tgz", "integrity": "sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw==", + "dev": true, "requires": { "argparse": "^1.0.7", "esprima": "^4.0.0" @@ -635,6 +665,7 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", "integrity": "sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss=", + "dev": true, "requires": { "graceful-fs": "^4.1.6" } @@ -696,6 +727,7 @@ "version": "3.0.4", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", + "dev": true, "requires": { "brace-expansion": "^1.1.7" } @@ -703,12 +735,14 @@ "minimist": { "version": "0.0.8", "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", - "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=" + "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=", + "dev": true }, "mkdirp": { "version": "0.5.1", "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", + "dev": true, "requires": { "minimist": "0.0.8" } @@ -760,17 +794,20 @@ "parsimmon": { "version": "1.13.0", "resolved": "https://registry.npmjs.org/parsimmon/-/parsimmon-1.13.0.tgz", - "integrity": "sha512-5UIrOCW+gjbILkjKPgTgmq8LKf8TT3Iy7kN2VD7OtQ81facKn8B4gG1X94jWqXYZsxG2KbJhrv/Yq/5H6BQn7A==" + "integrity": "sha512-5UIrOCW+gjbILkjKPgTgmq8LKf8TT3Iy7kN2VD7OtQ81facKn8B4gG1X94jWqXYZsxG2KbJhrv/Yq/5H6BQn7A==", + "dev": true }, "path-is-absolute": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=" + "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", + "dev": true }, "path-parse": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz", - "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==" + "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==", + "dev": true }, "pbkdf2": { "version": "3.0.17", @@ -833,6 +870,7 @@ "version": "1.12.0", "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.12.0.tgz", "integrity": "sha512-B/dOmuoAik5bKcD6s6nXDCjzUKnaDvdkRyAk6rsmsKLipWj4797iothd7jmmUhWTfinVMU+wc56rYKsit2Qy4w==", + "dev": true, "requires": { "path-parse": "^1.0.6" } @@ -898,7 +936,8 @@ "semver": { "version": "5.7.1", "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==" + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "dev": true }, "sha.js": { "version": "2.4.11", @@ -927,7 +966,8 @@ "sprintf-js": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", - "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=" + "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", + "dev": true }, "strict-uri-encode": { "version": "1.1.0", @@ -955,12 +995,14 @@ "strip-json-comments": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", - "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=" + "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=", + "dev": true }, "supports-color": { "version": "5.5.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, "requires": { "has-flag": "^3.0.0" } @@ -973,12 +1015,14 @@ "tslib": { "version": "1.10.0", "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.10.0.tgz", - "integrity": "sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==" + "integrity": "sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==", + "dev": true }, "tslint": { "version": "5.20.0", "resolved": "https://registry.npmjs.org/tslint/-/tslint-5.20.0.tgz", "integrity": "sha512-2vqIvkMHbnx8acMogAERQ/IuINOq6DFqgF8/VDvhEkBqQh/x6SP0Y+OHnKth9/ZcHQSroOZwUQSN18v8KKF0/g==", + "dev": true, "requires": { "@babel/code-frame": "^7.0.0", "builtin-modules": "^1.1.1", @@ -999,6 +1043,7 @@ "version": "2.29.0", "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-2.29.0.tgz", "integrity": "sha512-g5JVHCIJwzfISaXpXE1qvNalca5Jwob6FjI4AoPlqMusJ6ftFE7IkkFoMhVLRgK+4Kx3gkzb8UZK5t5yTTvEmA==", + "dev": true, "requires": { "tslib": "^1.8.1" } @@ -1006,7 +1051,8 @@ "typescript": { "version": "3.7.0-dev.20191015", "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.7.0-dev.20191015.tgz", - "integrity": "sha512-Cpfj1n4pEUVKL+jtS0mkZodJffyMmf3Wk/UjyZMGX4fsjK5KBPJf3NUlyXij8I8p1E2CAomdS5NPFrAR+z8pKw==" + "integrity": "sha512-Cpfj1n4pEUVKL+jtS0mkZodJffyMmf3Wk/UjyZMGX4fsjK5KBPJf3NUlyXij8I8p1E2CAomdS5NPFrAR+z8pKw==", + "dev": true }, "underscore": { "version": "1.9.1", @@ -1016,7 +1062,8 @@ "universalify": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", - "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==" + "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", + "dev": true }, "url-set-query": { "version": "1.0.0", diff --git a/packages/web3-eth-accounts/package.json b/packages/web3-eth-accounts/package.json index 6495257db62..043ce47243f 100644 --- a/packages/web3-eth-accounts/package.json +++ b/packages/web3-eth-accounts/package.json @@ -7,6 +7,10 @@ "engines": { "node": ">=8.0.0" }, + "types": "types/index.d.ts", + "scripts": { + "dtslint": "dtslint types --onlyTestTsNext" + }, "main": "src/index.js", "dependencies": { "any-promise": "1.3.0", diff --git a/packages/web3-eth-contract/package.json b/packages/web3-eth-contract/package.json index 41d131f33f0..5db279ea73e 100644 --- a/packages/web3-eth-contract/package.json +++ b/packages/web3-eth-contract/package.json @@ -7,6 +7,10 @@ "engines": { "node": ">=8.0.0" }, + "types": "types/index.d.ts", + "scripts": { + "dtslint": "dtslint types --onlyTestTsNext" + }, "main": "src/index.js", "dependencies": { "@types/bn.js": "^4.11.4", diff --git a/packages/web3-eth-ens/package.json b/packages/web3-eth-ens/package.json index c8603c3207a..1f1dd8899bd 100644 --- a/packages/web3-eth-ens/package.json +++ b/packages/web3-eth-ens/package.json @@ -7,6 +7,10 @@ "engines": { "node": ">=8.0.0" }, + "types": "types/index.d.ts", + "scripts": { + "dtslint": "dtslint types --onlyTestTsNext" + }, "main": "src/index.js", "dependencies": { "eth-ens-namehash": "2.0.8", diff --git a/packages/web3-eth-iban/package.json b/packages/web3-eth-iban/package.json index 374fe4881e1..40e61f1091b 100644 --- a/packages/web3-eth-iban/package.json +++ b/packages/web3-eth-iban/package.json @@ -7,6 +7,10 @@ "engines": { "node": ">=8.0.0" }, + "types": "types/index.d.ts", + "scripts": { + "dtslint": "dtslint types --onlyTestTsNext" + }, "main": "src/index.js", "dependencies": { "bn.js": "4.11.8", diff --git a/packages/web3-eth-personal/package.json b/packages/web3-eth-personal/package.json index 1c4a98e83ac..42b4d0aaec6 100644 --- a/packages/web3-eth-personal/package.json +++ b/packages/web3-eth-personal/package.json @@ -7,6 +7,10 @@ "engines": { "node": ">=8.0.0" }, + "types": "types/index.d.ts", + "scripts": { + "dtslint": "dtslint types --onlyTestTsNext" + }, "main": "src/index.js", "dependencies": { "@types/node": "^12.6.1", diff --git a/packages/web3-eth/package.json b/packages/web3-eth/package.json index 91e3bae910f..fbb28b74bd4 100644 --- a/packages/web3-eth/package.json +++ b/packages/web3-eth/package.json @@ -7,6 +7,10 @@ "engines": { "node": ">=8.0.0" }, + "types": "types/index.d.ts", + "scripts": { + "dtslint": "dtslint types --onlyTestTsNext" + }, "main": "src/index.js", "dependencies": { "underscore": "1.9.1", diff --git a/packages/web3-net/package.json b/packages/web3-net/package.json index 486b218b0af..7649d6609f5 100644 --- a/packages/web3-net/package.json +++ b/packages/web3-net/package.json @@ -7,6 +7,10 @@ "engines": { "node": ">=8.0.0" }, + "types": "types/index.d.ts", + "scripts": { + "dtslint": "dtslint types --onlyTestTsNext" + }, "main": "src/index.js", "dependencies": { "web3-core": "1.2.1", diff --git a/packages/web3-providers-ws/package-lock.json b/packages/web3-providers-ws/package-lock.json index a1777555880..14f0c515006 100644 --- a/packages/web3-providers-ws/package-lock.json +++ b/packages/web3-providers-ws/package-lock.json @@ -1,6 +1,8 @@ { - "requires": true, + "name": "web3-providers-ws", + "version": "1.2.1", "lockfileVersion": 1, + "requires": true, "dependencies": { "d": { "version": "1.0.1", diff --git a/packages/web3-shh/package.json b/packages/web3-shh/package.json index 655e6c1838c..0c05a795957 100644 --- a/packages/web3-shh/package.json +++ b/packages/web3-shh/package.json @@ -7,6 +7,10 @@ "engines": { "node": ">=8.0.0" }, + "types": "types/index.d.ts", + "scripts": { + "dtslint": "dtslint types --onlyTestTsNext" + }, "main": "src/index.js", "dependencies": { "web3-core": "1.2.1", diff --git a/packages/web3-utils/package.json b/packages/web3-utils/package.json index 1decdac2b11..ffa2bc41960 100644 --- a/packages/web3-utils/package.json +++ b/packages/web3-utils/package.json @@ -7,6 +7,10 @@ "engines": { "node": ">=8.0.0" }, + "types": "types/index.d.ts", + "scripts": { + "dtslint": "dtslint types --onlyTestTsNext" + }, "main": "src/index.js", "dependencies": { "bn.js": "4.11.8", diff --git a/packages/web3/package.json b/packages/web3/package.json index b458b9e9ff2..67bd79a834a 100644 --- a/packages/web3/package.json +++ b/packages/web3/package.json @@ -17,6 +17,10 @@ "API" ], "author": "ethereum.org", + "types": "types/index.d.ts", + "scripts": { + "dtslint": "dtslint types --onlyTestTsNext" + }, "authors": [ { "name": "Fabian Vogelsteller", From 4787389b63e06ef90e912bd65e0b2633d80a9426 Mon Sep 17 00:00:00 2001 From: Josh Stevens Date: Tue, 15 Oct 2019 13:00:11 +0100 Subject: [PATCH 084/124] feat: web3 typings tests to reference web3-core --- packages/web3/types/index.d.ts | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/packages/web3/types/index.d.ts b/packages/web3/types/index.d.ts index 93610852d31..d4da3d64da2 100644 --- a/packages/web3/types/index.d.ts +++ b/packages/web3/types/index.d.ts @@ -17,14 +17,13 @@ * @date 2018 */ -import {AbstractWeb3Module, Web3ModuleOptions} from 'web3-core'; -import {Utils} from 'web3-utils'; import * as net from 'net'; -import {provider} from 'web3-providers'; -import {Eth} from 'web3-eth'; -import {Network} from 'web3-net'; -import {Shh} from 'web3-shh'; -import {Personal} from 'web3-eth-personal'; +import { AbstractWeb3Module, provider, Web3ModuleOptions } from 'web3-core'; +import { Eth } from 'web3-eth'; +import { Personal } from 'web3-eth-personal'; +import { Network } from 'web3-net'; +import { Shh } from 'web3-shh'; +import { Utils } from 'web3-utils'; export default class Web3 extends AbstractWeb3Module { constructor( From 217649a0b1f01b65f5145f65b4b417e5ded12437 Mon Sep 17 00:00:00 2001 From: Josh Stevens Date: Tue, 15 Oct 2019 13:00:26 +0100 Subject: [PATCH 085/124] feat: reference web3-core over web3-providers --- packages/web3-core/types/index.d.ts | 261 ++++++++++++++++-- .../types/tests/abstract-web3-module-test.ts | 8 +- 2 files changed, 239 insertions(+), 30 deletions(-) diff --git a/packages/web3-core/types/index.d.ts b/packages/web3-core/types/index.d.ts index c19feebbdf1..92926d7f6e2 100644 --- a/packages/web3-core/types/index.d.ts +++ b/packages/web3-core/types/index.d.ts @@ -19,19 +19,8 @@ */ import * as net from 'net'; +import { AbstractMethod, AbstractMethodFactory } from 'web3-core-method'; import BN = require('bn.js'); -import {AbstractMethodFactory} from 'web3-core-method'; -import { - BatchRequest, - Web3EthereumProvider, - HttpProvider, - HttpProviderOptions, - IpcProvider, - provider, - WebsocketProvider, - CustomProvider, - WebsocketProviderOptions -} from 'web3-providers'; export class AbstractWeb3Module { constructor( @@ -50,7 +39,12 @@ export class AbstractWeb3Module { defaultGas: number; static readonly providers: Providers; defaultAccount: string | null; - readonly currentProvider: Web3EthereumProvider | HttpProvider | IpcProvider | WebsocketProvider | CustomProvider; + readonly currentProvider: + | Web3EthereumProvider + | HttpProvider + | IpcProvider + | WebsocketProvider + | CustomProvider; readonly givenProvider: any; setProvider(provider: provider, net?: net.Socket): boolean; @@ -85,17 +79,32 @@ export interface Web3ModuleOptions { } export interface Providers { - HttpProvider: new (host: string, options?: HttpProviderOptions) => HttpProvider; - WebsocketProvider: new (host: string, options?: WebsocketProviderOptions) => WebsocketProvider; + HttpProvider: new ( + host: string, + options?: HttpProviderOptions + ) => HttpProvider; + WebsocketProvider: new ( + host: string, + options?: WebsocketProviderOptions + ) => WebsocketProvider; IpcProvider: new (path: string, net: any) => IpcProvider; } export interface PromiEvent extends Promise { - once(type: 'transactionHash', handler: (receipt: string) => void): PromiEvent; + once( + type: 'transactionHash', + handler: (receipt: string) => void + ): PromiEvent; - once(type: 'receipt', handler: (receipt: TransactionReceipt) => void): PromiEvent; + once( + type: 'receipt', + handler: (receipt: TransactionReceipt) => void + ): PromiEvent; - once(type: 'confirmation', handler: (confNumber: number, receipt: TransactionReceipt) => void): PromiEvent; + once( + type: 'confirmation', + handler: (confNumber: number, receipt: TransactionReceipt) => void + ): PromiEvent; once(type: 'error', handler: (error: Error) => void): PromiEvent; @@ -104,11 +113,20 @@ export interface PromiEvent extends Promise { handler: (error: Error | TransactionReceipt | string) => void ): PromiEvent; - on(type: 'transactionHash', handler: (receipt: string) => void): PromiEvent; + on( + type: 'transactionHash', + handler: (receipt: string) => void + ): PromiEvent; - on(type: 'receipt', handler: (receipt: TransactionReceipt) => void): PromiEvent; + on( + type: 'receipt', + handler: (receipt: TransactionReceipt) => void + ): PromiEvent; - on(type: 'confirmation', handler: (confNumber: number, receipt: TransactionReceipt) => void): PromiEvent; + on( + type: 'confirmation', + handler: (confNumber: number, receipt: TransactionReceipt) => void + ): PromiEvent; on(type: 'error', handler: (error: Error) => void): PromiEvent; @@ -156,7 +174,7 @@ export interface RLPEncodedTransaction { s: string; v: string; hash: string; - } + }; } export interface TransactionReceipt { @@ -186,7 +204,7 @@ export interface EventLog { transactionHash: string; blockHash: string; blockNumber: number; - raw?: {data: string; topics: any[]}; + raw?: { data: string; topics: any[] }; } export interface Log { @@ -228,10 +246,10 @@ export interface NodeInfo { listenAddr: string; name: string; ports: { - discovery: string | number; - listener: string | number; + discovery: string | number; + listener: string | number; }; - protocols: any // Any because it's not documented what each protocol (eth, shh etc.) is defining here + protocols: any; // Any because it's not documented what each protocol (eth, shh etc.) is defining here } export interface PeerInfo { @@ -246,5 +264,194 @@ export interface PeerInfo { } export interface TransactionSigner { - sign(txObject: TransactionConfig): Promise + sign(txObject: TransactionConfig): Promise; +} + +// put all the `web3-provider` typings in here so we can get to them everywhere as this module does not exist in 1.x + +export class BatchRequest { + constructor(moduleInstance: AbstractWeb3Module); + + add(method: AbstractMethod): void; + + execute(): Promise; +} + +export interface BatchError { + errors: BatchErrorItem[]; + response: any[]; +} + +export interface BatchErrorItem { + error: Error; + method: AbstractMethod; +} + +export interface BatchResponse { + methods: AbstractMethod[]; + response: any[]; +} + +export class ProviderDetector { + static detect(): provider | undefined; +} + +export class ProvidersModuleFactory { + createBatchRequest(moduleInstance: AbstractWeb3Module): BatchRequest; + + createProviderResolver(): ProviderResolver; + + createHttpProvider(url: string): HttpProvider; + + createWebsocketProvider(url: string): WebsocketProvider; + + createIpcProvider(path: string, net: net.Server): IpcProvider; + + createWeb3EthereumProvider(connection: object): Web3EthereumProvider; +} + +export class HttpProvider { + constructor(host: string, options?: HttpProviderOptions); + + host: string; + connected: boolean; + + supportsSubscriptions(): boolean; + + send(method: string, parameters: any[]): Promise; + + sendBatch( + methods: AbstractMethod[], + moduleInstance: AbstractWeb3Module + ): Promise; + + disconnect(): boolean; +} + +export class CustomProvider { + constructor(injectedProvider: any); + + host: string; + + supportsSubscriptions(): boolean; + + send(method: string, parameters: any[]): Promise; + + sendBatch( + methods: AbstractMethod[], + moduleInstance: AbstractWeb3Module + ): Promise; +} + +export class AbstractSocketProvider { + constructor(connection: any, timeout?: number); + + host: string; + connected: boolean; + + supportsSubscriptions(): boolean; + + registerEventListeners(): void; + + send(method: string, parameters: any[]): Promise; + + sendBatch( + methods: AbstractMethod[], + moduleInstance: AbstractWeb3Module + ): Promise; + + subscribe( + subscribeMethod: string, + subscriptionMethod: string, + parameters: any[] + ): Promise; + + unsubscribe( + subscriptionId: string, + unsubscribeMethod: string + ): Promise; + + clearSubscriptions(unsubscribeMethod: string): Promise; + + on(type: string, callback: () => void): void; + + removeListener(type: string, callback: () => void): void; + + removeAllListeners(type: string): void; + + reset(): void; + + reconnect(): void; + + disconnect(code: number, reason: string): void; +} + +export class IpcProvider extends AbstractSocketProvider { + constructor(path: string, net: net.Server); +} + +export class WebsocketProvider extends AbstractSocketProvider { + constructor(host: string, options?: WebsocketProviderOptions); + + isConnecting(): boolean; +} + +export class Web3EthereumProvider extends AbstractSocketProvider { + constructor(ethereumProvider: any); +} + +export class JsonRpcMapper { + static toPayload(method: string, params: any[]): JsonRpcPayload; +} + +export class ProviderResolver { + resolve(provider: provider, net: net.Socket): provider; +} + +export class JsonRpcResponseValidator { + static validate( + response: JsonRpcPayload[] | JsonRpcPayload, + payload?: object + ): boolean; + + static isResponseItemValid(response: JsonRpcPayload): boolean; +} + +export type provider = + | HttpProvider + | IpcProvider + | WebsocketProvider + | Web3EthereumProvider + | CustomProvider + | string + | null; + +export interface JsonRpcPayload { + jsonrpc: string; + method: string; + params: any[]; + id?: string | number; +} + +export interface HttpHeader { + name: string; + value: string; +} + +export interface HttpProviderOptions { + host?: string; + timeout?: number; + headers?: HttpHeader[]; + withCredentials?: boolean; +} + +export interface WebsocketProviderOptions { + host?: string; + timeout?: number; + reconnectDelay?: number; + headers?: {}; + protocol?: string; + clientConfig?: string; + requestOptions?: object; + origin?: string; } diff --git a/packages/web3-core/types/tests/abstract-web3-module-test.ts b/packages/web3-core/types/tests/abstract-web3-module-test.ts index 5ce20d0ab6c..8dc2874b4b3 100644 --- a/packages/web3-core/types/tests/abstract-web3-module-test.ts +++ b/packages/web3-core/types/tests/abstract-web3-module-test.ts @@ -17,8 +17,7 @@ * @date 2018 */ import * as net from 'net'; -import {HttpProvider, IpcProvider, WebsocketProvider} from 'web3-providers'; -import {AbstractWeb3Module, Web3ModuleOptions} from 'web3-core'; +import { AbstractWeb3Module, HttpProvider, IpcProvider } from 'web3-core'; const options = { timeout: 20000, @@ -30,7 +29,10 @@ const options = { ] }; const httpProvider = new HttpProvider('http://localhost:8545', options); -const ipcProvider = new IpcProvider('/Users/myuser/Library/Ethereum/geth.ipc', new net.Server()); +const ipcProvider = new IpcProvider( + '/Users/myuser/Library/Ethereum/geth.ipc', + new net.Server() +); const abstractWeb3Module = new AbstractWeb3Module(httpProvider); // $ExpectType BatchRequest From cd2468f547ecf1b25404e02d07fc203f27356997 Mon Sep 17 00:00:00 2001 From: Josh Stevens Date: Tue, 15 Oct 2019 13:27:30 +0100 Subject: [PATCH 086/124] feat: typings moved around due to different approach in 2.x --- packages/web3-core-helpers/types/index.d.ts | 11 +- .../types/tests/formatters-test.ts | 6 +- packages/web3-core-method/types/index.d.ts | 15 +- .../types/tests/abstract-method-tests.ts | 16 +- packages/web3-core/types/index.d.ts | 147 ++++++ .../types/tests/abi-coder-test.ts | 493 ++++++++++++------ packages/web3-eth-accounts/types/index.d.ts | 63 +-- .../types/tests/accounts-tests.ts | 72 ++- packages/web3-eth-contract/types/index.d.ts | 56 +- packages/web3-eth-ens/types/index.d.ts | 65 ++- packages/web3-eth-ens/types/tests/ens-test.ts | 18 +- .../web3-eth-iban/types/tests/iban-tests.ts | 8 +- packages/web3-eth-personal/types/index.d.ts | 37 +- .../types/tests/personal-tests.ts | 35 +- packages/web3-eth/types/index.d.ts | 29 +- packages/web3-eth/types/tests/eth.tests.ts | 203 ++++++-- packages/web3-net/types/index.d.ts | 20 +- packages/web3-net/types/tests/network-test.ts | 18 +- packages/web3-shh/types/index.d.ts | 5 +- packages/web3-shh/types/tests/shh-test.ts | 67 ++- packages/web3-utils/types/index.d.ts | 1 - 21 files changed, 953 insertions(+), 432 deletions(-) diff --git a/packages/web3-core-helpers/types/index.d.ts b/packages/web3-core-helpers/types/index.d.ts index d941fb0f1b7..8cee9c0354e 100644 --- a/packages/web3-core-helpers/types/index.d.ts +++ b/packages/web3-core-helpers/types/index.d.ts @@ -17,8 +17,6 @@ * @date 2018 */ -import {AbstractWeb3Module} from 'web3-core'; - export class formatters { static outputBigNumberFormatter(number: number): number; @@ -28,9 +26,14 @@ export class formatters { static isPredefinedBlockNumber(blockNumber: string): boolean; - static inputDefaultBlockNumberFormatter(blockNumber: string, moduleInstance: AbstractWeb3Module): string; + static inputDefaultBlockNumberFormatter( + blockNumber: string, + moduleInstance: any + ): string; - static inputBlockNumberFormatter(blockNumber: string | number): string | number; + static inputBlockNumberFormatter( + blockNumber: string | number + ): string | number; static outputBlockFormatter(block: object): object; // TODO: Create Block interface diff --git a/packages/web3-core-helpers/types/tests/formatters-test.ts b/packages/web3-core-helpers/types/tests/formatters-test.ts index 8e695470b31..476ab8a814f 100644 --- a/packages/web3-core-helpers/types/tests/formatters-test.ts +++ b/packages/web3-core-helpers/types/tests/formatters-test.ts @@ -17,8 +17,7 @@ * @date 2018 */ -import {AbstractWeb3Module} from 'web3-core'; -import {formatters} from 'web3-core-helpers'; +import { formatters } from 'web3-core-helpers'; // $ExpectType number formatters.outputBigNumberFormatter(100); @@ -32,9 +31,6 @@ formatters.inputAddressFormatter('0x0'); // $ExpectType boolean formatters.isPredefinedBlockNumber('latest'); -// $ExpectType string -formatters.inputDefaultBlockNumberFormatter('0x0', new AbstractWeb3Module('http://localhost:8545')); - // $ExpectType string | number formatters.inputBlockNumberFormatter('0x0'); diff --git a/packages/web3-core-method/types/index.d.ts b/packages/web3-core-method/types/index.d.ts index 5dc2901a814..23b683d5010 100644 --- a/packages/web3-core-method/types/index.d.ts +++ b/packages/web3-core-method/types/index.d.ts @@ -17,9 +17,8 @@ * @date 2018 */ -import {Utils} from 'web3-utils'; -import {AbstractWeb3Module, PromiEvent} from 'web3-core'; -import {formatters} from 'web3-core-helpers'; +import { formatters } from 'web3-core-helpers'; +import { Utils } from 'web3-utils'; export class AbstractMethod { constructor( @@ -27,12 +26,12 @@ export class AbstractMethod { parametersAmount: number, utils: Utils, formatters: formatters, - moduleInstance: AbstractWeb3Module + moduleInstance: any ); utils: Utils; formatters: formatters; - promiEvent: PromiEvent; + promiEvent: any; rpcMethod: string; parametersAmount: number; parameters: any[]; @@ -47,11 +46,11 @@ export class AbstractMethod { callback(error: string | Error, response: any): void; - beforeExecution(moduleInstance: AbstractWeb3Module): void; + beforeExecution(moduleInstance: any): void; afterExecution(response: any): any; - execute(): Promise | PromiEvent | string; + execute(): Promise | any | string; } export class AbstractMethodFactory { @@ -60,5 +59,5 @@ export class AbstractMethodFactory { methods: null | object; hasMethod: boolean; - createMethod(name: string, moduleInstance: AbstractWeb3Module): AbstractMethod; + createMethod(name: string, moduleInstance: any): AbstractMethod; } diff --git a/packages/web3-core-method/types/tests/abstract-method-tests.ts b/packages/web3-core-method/types/tests/abstract-method-tests.ts index e045599b72d..469fa8a479e 100644 --- a/packages/web3-core-method/types/tests/abstract-method-tests.ts +++ b/packages/web3-core-method/types/tests/abstract-method-tests.ts @@ -17,13 +17,17 @@ * @date 2018 */ -import {AbstractMethod} from 'web3-core-method'; +import { formatters } from 'web3-core-helpers'; +import { AbstractMethod } from 'web3-core-method'; import * as Utils from 'web3-utils'; -import {formatters} from 'web3-core-helpers'; -import {AbstractWeb3Module} from 'web3-core'; -const abstractWeb3Module = new AbstractWeb3Module('http://localhost:8545'); -const abstractMethod = new AbstractMethod('rpc_method', 1, Utils, formatters, abstractWeb3Module); +const abstractMethod = new AbstractMethod( + 'rpc_method', + 1, + Utils, + formatters, + {} +); // $ExpectType Utils abstractMethod.utils; @@ -59,7 +63,7 @@ abstractMethod.hasWallets(); abstractMethod.callback('error', 'response'); // $ExpectType void -abstractMethod.beforeExecution(abstractWeb3Module); +abstractMethod.beforeExecution({}); // $ExpectType any abstractMethod.afterExecution('response'); diff --git a/packages/web3-core/types/index.d.ts b/packages/web3-core/types/index.d.ts index 92926d7f6e2..9727bf0a5d5 100644 --- a/packages/web3-core/types/index.d.ts +++ b/packages/web3-core/types/index.d.ts @@ -267,6 +267,153 @@ export interface TransactionSigner { sign(txObject: TransactionConfig): Promise; } +// had to move `web3-net` due to other modules in `1.x` not referencing + +export class NetworkBase extends AbstractWeb3Module { + constructor( + provider: provider, + net?: net.Socket | null, + options?: Web3ModuleOptions + ); + + getNetworkType( + callback?: (error: Error, returnValue: string) => void + ): Promise; + + getId(callback?: (error: Error, id: number) => void): Promise; + + isListening( + callback?: (error: Error, listening: boolean) => void + ): Promise; + + getPeerCount( + callback?: (error: Error, peerCount: number) => void + ): Promise; +} + +// had to move accounts from web3-eth-accounts due to other modules in 1.x not referencing + +export class AccountsBase extends AbstractWeb3Module { + constructor( + provider: provider, + net?: net.Socket | null, + options?: Web3ModuleOptions + ); + + create(entropy?: string): Account; + + privateKeyToAccount(privateKey: string): Account; + + signTransaction( + transactionConfig: TransactionConfig, + privateKey: string, + callback?: () => void + ): Promise; + + recoverTransaction(signature: string): string; + + hashMessage(message: string): string; + + sign(data: string, privateKey: string): Sign; + + recover(signatureObject: SignatureObject): string; + recover(message: string, signature: string, preFixed?: boolean): string; + recover( + message: string, + v: string, + r: string, + s: string, + preFixed?: boolean + ): string; + + encrypt(privateKey: string, password: string): EncryptedKeystoreV3Json; + + decrypt(keystoreJsonV3: EncryptedKeystoreV3Json, password: string): Account; + + wallet: WalletBase; +} + +export class WalletBase { + constructor(accounts: AccountsBase); + + accountsIndex: number; + length: number; + defaultKeyName: string; + + [key: number]: Account; + + create(numberOfAccounts: number, entropy?: string): WalletBase; + + add(account: string | AddAccount): AddedAccount; + + remove(account: string | number): boolean; + + clear(): WalletBase; + + encrypt(password: string): EncryptedKeystoreV3Json[]; + + decrypt( + keystoreArray: EncryptedKeystoreV3Json[], + password: string + ): WalletBase; + + save(password: string, keyName?: string): boolean; + + load(password: string, keyName?: string): WalletBase; +} + +export interface AddAccount { + address: string; + privateKey: string; +} + +export interface AddedAccount extends Account { + index: number; +} + +export interface Account { + address: string; + privateKey: string; + signTransaction: ( + transactionConfig: TransactionConfig, + callback?: (signTransaction: SignedTransaction) => void + ) => Promise; + sign: (data: string) => Sign; + encrypt: (password: string) => EncryptedKeystoreV3Json; +} + +export interface EncryptedKeystoreV3Json { + version: number; + id: string; + address: string; + crypto: { + ciphertext: string; + cipherparams: { iv: string }; + cipher: string; + kdf: string; + kdfparams: { + dklen: number; + salt: string; + n: number; + r: number; + p: number; + }; + mac: string; + }; +} + +export interface Sign extends SignedTransaction { + message: string; + signature: string; +} + +export interface SignatureObject { + messageHash: string; + r: string; + s: string; + v: string; +} + // put all the `web3-provider` typings in here so we can get to them everywhere as this module does not exist in 1.x export class BatchRequest { diff --git a/packages/web3-eth-abi/types/tests/abi-coder-test.ts b/packages/web3-eth-abi/types/tests/abi-coder-test.ts index ce4294aa318..6fe4abc7798 100644 --- a/packages/web3-eth-abi/types/tests/abi-coder-test.ts +++ b/packages/web3-eth-abi/types/tests/abi-coder-test.ts @@ -20,7 +20,7 @@ * @date 2018 */ -import {AbiCoder} from 'web3-eth-abi'; +import { AbiCoder } from 'web3-eth-abi'; const abiCoder = new AbiCoder(); @@ -30,13 +30,16 @@ abiCoder.encodeFunctionSignature('myMethod(uint256,string)'); abiCoder.encodeFunctionSignature({ name: 'myMethod', type: 'function', - inputs: [{ - type: 'uint256', - name: 'myNumber' - }, { - type: 'string', - name: 'myString' - }] + inputs: [ + { + type: 'uint256', + name: 'myNumber' + }, + { + type: 'string', + name: 'myString' + } + ] }); // $ExpectError @@ -64,13 +67,16 @@ abiCoder.encodeEventSignature('myEvent(uint256,bytes32)'); abiCoder.encodeFunctionSignature({ name: 'myEvent', type: 'event', - inputs: [{ - type: 'uint256', - name: 'myNumber' - }, { - type: 'bytes32', - name: 'myBytes' - }] + inputs: [ + { + type: 'uint256', + name: 'myNumber' + }, + { + type: 'bytes32', + name: 'myBytes' + } + ] }); // $ExpectError @@ -126,7 +132,10 @@ abiCoder.encodeParameter(undefined, ['0xdf3234', '0xfdfd']); // $ExpectType string abiCoder.encodeParameters(['uint256', 'string'], ['2345675643', 'Hello!%']); // $ExpectType string -abiCoder.encodeParameters(['uint8[]', 'bytes32'], [['34', '434'], '0x324567fff']); +abiCoder.encodeParameters( + ['uint8[]', 'bytes32'], + [['34', '434'], '0x324567fff'] +); // $ExpectType string abiCoder.encodeParameters( [ @@ -165,17 +174,23 @@ abiCoder.encodeParameters(null, ['2345675643', 'Hello!%']); abiCoder.encodeParameters(undefined, ['2345675643', 'Hello!%']); // $ExpectType string -abiCoder.encodeFunctionCall({ - name: 'myMethod', - type: 'function', - inputs: [{ - type: 'uint256', - name: 'myNumber' - }, { - type: 'string', - name: 'myString' - }] -}, ['2345675643', 'Hello!%']); +abiCoder.encodeFunctionCall( + { + name: 'myMethod', + type: 'function', + inputs: [ + { + type: 'uint256', + name: 'myNumber' + }, + { + type: 'string', + name: 'myString' + } + ] + }, + ['2345675643', 'Hello!%'] +); // $ExpectError abiCoder.encodeFunctionCall([345], ['2345675643', 'Hello!%']); @@ -190,90 +205,132 @@ abiCoder.encodeFunctionCall(null, ['2345675643', 'Hello!%']); // $ExpectError abiCoder.encodeFunctionCall(undefined, ['2345675643', 'Hello!%']); -abiCoder.encodeFunctionCall({ - name: 'myMethod', - type: 'function', - inputs: [{ - type: 'uint256', - name: 'myNumber' - }, { - type: 'string', - name: 'myString' - }] - // $ExpectError -}, 345); +abiCoder.encodeFunctionCall( + { + name: 'myMethod', + type: 'function', + inputs: [ + { + type: 'uint256', + name: 'myNumber' + }, + { + type: 'string', + name: 'myString' + } + ] + // $ExpectError + }, + 345 +); -abiCoder.encodeFunctionCall({ - name: 'myMethod', - type: 'function', - inputs: [{ - type: 'uint256', - name: 'myNumber' - }, { - type: 'string', - name: 'myString' - }] - // $ExpectError -}, [345]); +abiCoder.encodeFunctionCall( + { + name: 'myMethod', + type: 'function', + inputs: [ + { + type: 'uint256', + name: 'myNumber' + }, + { + type: 'string', + name: 'myString' + } + ] + // $ExpectError + }, + [345] +); -abiCoder.encodeFunctionCall({ - name: 'myMethod', - type: 'function', - inputs: [{ - type: 'uint256', - name: 'myNumber' - }, { - type: 'string', - name: 'myString' - }] - // $ExpectError -}, true); +abiCoder.encodeFunctionCall( + { + name: 'myMethod', + type: 'function', + inputs: [ + { + type: 'uint256', + name: 'myNumber' + }, + { + type: 'string', + name: 'myString' + } + ] + // $ExpectError + }, + true +); -abiCoder.encodeFunctionCall({ - name: 'myMethod', - type: 'function', - inputs: [{ - type: 'uint256', - name: 'myNumber' - }, { - type: 'string', - name: 'myString' - }] - // $ExpectError -}, null); +abiCoder.encodeFunctionCall( + { + name: 'myMethod', + type: 'function', + inputs: [ + { + type: 'uint256', + name: 'myNumber' + }, + { + type: 'string', + name: 'myString' + } + ] + // $ExpectError + }, + null +); -abiCoder.encodeFunctionCall({ - name: 'myMethod', - type: 'function', - inputs: [{ - type: 'uint256', - name: 'myNumber' - }, { - type: 'string', - name: 'myString' - }] - // $ExpectError -}, undefined); +abiCoder.encodeFunctionCall( + { + name: 'myMethod', + type: 'function', + inputs: [ + { + type: 'uint256', + name: 'myNumber' + }, + { + type: 'string', + name: 'myString' + } + ] + // $ExpectError + }, + undefined +); // $ExpectType { [key: string]: any; } -abiCoder.decodeParameter('uint256', '0x0000000000000000000000000000000000000000000000000000000000000010'); +abiCoder.decodeParameter( + 'uint256', + '0x0000000000000000000000000000000000000000000000000000000000000010' +); // $ExpectType { [key: string]: any; } -abiCoder.decodeParameter('uint256', '0x0000000000000000000000000000000000000000000000000000000000000010'); +abiCoder.decodeParameter( + 'uint256', + '0x0000000000000000000000000000000000000000000000000000000000000010' +); // $ExpectType { [key: string]: any; } -abiCoder.decodeParameter('uint256', '0x0000000000000000000000000000000000000000000000000000000000000010'); +abiCoder.decodeParameter( + 'uint256', + '0x0000000000000000000000000000000000000000000000000000000000000010' +); // $ExpectType { [key: string]: any; } -abiCoder.decodeParameter({ - ParentStruct: { - propertyOne: 'uint256', - propertyTwo: 'uint256', - childStruct: { +abiCoder.decodeParameter( + { + ParentStruct: { propertyOne: 'uint256', - propertyTwo: 'uint256' + propertyTwo: 'uint256', + childStruct: { + propertyOne: 'uint256', + propertyTwo: 'uint256' + } } - } -}, `0x000000000000000000000000000000000000000000000000000000000000002a00000000000000000000000000000000000000000000000000 + }, + `0x000000000000000000000000000000000000000000000000000000000000002a00000000000000000000000000000000000000000000000000 00000000000038000000000000000000000000000000000000000000000000000000000000002d00000000000000000000000000000000000000 - 0000000000000000000000004e`); + 0000000000000000000000004e` +); // $ExpectError abiCoder.decodeParameter('uint256', [345]); @@ -289,40 +346,67 @@ abiCoder.decodeParameter('uint256', null); abiCoder.decodeParameter('uint256', undefined); // $ExpectType { [key: string]: any; } -abiCoder.decodeParameters(['string', 'uint256'], '0x0000000000000000000000000000000000000000000000000000000000000010'); +abiCoder.decodeParameters( + ['string', 'uint256'], + '0x0000000000000000000000000000000000000000000000000000000000000010' +); // $ExpectType { [key: string]: any; } -abiCoder.decodeParameters([{ - type: 'string', - name: 'myString' -}, { - type: 'uint256', - name: 'myNumber' -}], '0x0000000000000000000000000000000000000000000000000000000000000010'); +abiCoder.decodeParameters( + [ + { + type: 'string', + name: 'myString' + }, + { + type: 'uint256', + name: 'myNumber' + } + ], + '0x0000000000000000000000000000000000000000000000000000000000000010' +); // $ExpectType { [key: string]: any; } -abiCoder.decodeParameters([ - 'uint8[]', - { - ParentStruct: { - propertyOne: 'uint256', - propertyTwo: 'uint256', - childStruct: { +abiCoder.decodeParameters( + [ + 'uint8[]', + { + ParentStruct: { propertyOne: 'uint256', - propertyTwo: 'uint256' + propertyTwo: 'uint256', + childStruct: { + propertyOne: 'uint256', + propertyTwo: 'uint256' + } } } - } -], '0x0000000000000000000000000000000000000000000000000000000000000010'); + ], + '0x0000000000000000000000000000000000000000000000000000000000000010' +); // $ExpectError -abiCoder.decodeParameters('uint256', '0x0000000000000000000000000000000000000000000000000000000000000010'); +abiCoder.decodeParameters( + 'uint256', + '0x0000000000000000000000000000000000000000000000000000000000000010' +); // $ExpectError -abiCoder.decodeParameters(453, '0x0000000000000000000000000000000000000000000000000000000000000010'); +abiCoder.decodeParameters( + 453, + '0x0000000000000000000000000000000000000000000000000000000000000010' +); // $ExpectError -abiCoder.decodeParameters(true, '0x0000000000000000000000000000000000000000000000000000000000000010'); +abiCoder.decodeParameters( + true, + '0x0000000000000000000000000000000000000000000000000000000000000010' +); // $ExpectError -abiCoder.decodeParameters(null, '0x0000000000000000000000000000000000000000000000000000000000000010'); +abiCoder.decodeParameters( + null, + '0x0000000000000000000000000000000000000000000000000000000000000010' +); // $ExpectError -abiCoder.decodeParameters(undefined, '0x0000000000000000000000000000000000000000000000000000000000000010'); +abiCoder.decodeParameters( + undefined, + '0x0000000000000000000000000000000000000000000000000000000000000010' +); // $ExpectError abiCoder.decodeParameters(['string', 'uint256'], 345); // $ExpectError @@ -342,11 +426,13 @@ abiCoder.decodeLog( { type: 'string', name: 'myString' - }, { + }, + { type: 'uint256', name: 'myNumber', indexed: true - }, { + }, + { type: 'uint8', name: 'mySmallNumber', indexed: true @@ -355,49 +441,80 @@ abiCoder.decodeLog( `0x0000000000000000000000000000000000000000000000000000000000000020000000000000000 000000000000000000000000000000000000000000000000748656c6c6f2521000000000000000000 00000000000000000000000000000000`, - ['0x000000000000000000000000000000000000000000000000000000000000f310', '0x0000000000000000000000000000000000000000000000000000000000000010']); + [ + '0x000000000000000000000000000000000000000000000000000000000000f310', + '0x0000000000000000000000000000000000000000000000000000000000000010' + ] +); // $ExpectError -abiCoder.decodeLog(['string'], +abiCoder.decodeLog( + ['string'], `0x0000000000000000000000000000000000000000000000000000000000000020000000000000000 000000000000000000000000000000000000000000000000748656c6c6f2521000000000000000000 00000000000000000000000000000000`, - ['0x000000000000000000000000000000000000000000000000000000000000f310', '0x0000000000000000000000000000000000000000000000000000000000000010']); + [ + '0x000000000000000000000000000000000000000000000000000000000000f310', + '0x0000000000000000000000000000000000000000000000000000000000000010' + ] +); // $ExpectError -abiCoder.decodeLog([345], +abiCoder.decodeLog( + [345], `0x0000000000000000000000000000000000000000000000000000000000000020000000000000000 000000000000000000000000000000000000000000000000748656c6c6f2521000000000000000000 00000000000000000000000000000000`, - ['0x000000000000000000000000000000000000000000000000000000000000f310', '0x0000000000000000000000000000000000000000000000000000000000000010']); + [ + '0x000000000000000000000000000000000000000000000000000000000000f310', + '0x0000000000000000000000000000000000000000000000000000000000000010' + ] +); // $ExpectError -abiCoder.decodeLog(true, +abiCoder.decodeLog( + true, `0x0000000000000000000000000000000000000000000000000000000000000020000000000000000 000000000000000000000000000000000000000000000000748656c6c6f2521000000000000000000 00000000000000000000000000000000`, - ['0x000000000000000000000000000000000000000000000000000000000000f310', '0x0000000000000000000000000000000000000000000000000000000000000010']); + [ + '0x000000000000000000000000000000000000000000000000000000000000f310', + '0x0000000000000000000000000000000000000000000000000000000000000010' + ] +); // $ExpectError -abiCoder.decodeLog([undefined], +abiCoder.decodeLog( + [undefined], `0x0000000000000000000000000000000000000000000000000000000000000020000000000000000 000000000000000000000000000000000000000000000000748656c6c6f2521000000000000000000 00000000000000000000000000000000`, - ['0x000000000000000000000000000000000000000000000000000000000000f310', '0x0000000000000000000000000000000000000000000000000000000000000010']); + [ + '0x000000000000000000000000000000000000000000000000000000000000f310', + '0x0000000000000000000000000000000000000000000000000000000000000010' + ] +); // $ExpectError -abiCoder.decodeLog([null], +abiCoder.decodeLog( + [null], `0x0000000000000000000000000000000000000000000000000000000000000020000000000000000 000000000000000000000000000000000000000000000000748656c6c6f2521000000000000000000 00000000000000000000000000000000`, - ['0x000000000000000000000000000000000000000000000000000000000000f310', '0x0000000000000000000000000000000000000000000000000000000000000010']); + [ + '0x000000000000000000000000000000000000000000000000000000000000f310', + '0x0000000000000000000000000000000000000000000000000000000000000010' + ] +); abiCoder.decodeLog( [ { type: 'string', name: 'myString' - }, { + }, + { type: 'uint256', name: 'myNumber', indexed: true - }, { + }, + { type: 'uint8', name: 'mySmallNumber', indexed: true @@ -405,18 +522,24 @@ abiCoder.decodeLog( ], // $ExpectError 345, - ['0x000000000000000000000000000000000000000000000000000000000000f310', '0x0000000000000000000000000000000000000000000000000000000000000010']); + [ + '0x000000000000000000000000000000000000000000000000000000000000f310', + '0x0000000000000000000000000000000000000000000000000000000000000010' + ] +); abiCoder.decodeLog( [ { type: 'string', name: 'myString' - }, { + }, + { type: 'uint256', name: 'myNumber', indexed: true - }, { + }, + { type: 'uint8', name: 'mySmallNumber', indexed: true @@ -424,18 +547,24 @@ abiCoder.decodeLog( ], // $ExpectError [345], - ['0x000000000000000000000000000000000000000000000000000000000000f310', '0x0000000000000000000000000000000000000000000000000000000000000010']); + [ + '0x000000000000000000000000000000000000000000000000000000000000f310', + '0x0000000000000000000000000000000000000000000000000000000000000010' + ] +); abiCoder.decodeLog( [ { type: 'string', name: 'myString' - }, { + }, + { type: 'uint256', name: 'myNumber', indexed: true - }, { + }, + { type: 'uint8', name: 'mySmallNumber', indexed: true @@ -443,18 +572,24 @@ abiCoder.decodeLog( ], // $ExpectError ['string'], - ['0x000000000000000000000000000000000000000000000000000000000000f310', '0x0000000000000000000000000000000000000000000000000000000000000010']); + [ + '0x000000000000000000000000000000000000000000000000000000000000f310', + '0x0000000000000000000000000000000000000000000000000000000000000010' + ] +); abiCoder.decodeLog( [ { type: 'string', name: 'myString' - }, { + }, + { type: 'uint256', name: 'myNumber', indexed: true - }, { + }, + { type: 'uint8', name: 'mySmallNumber', indexed: true @@ -462,18 +597,24 @@ abiCoder.decodeLog( ], // $ExpectError true, - ['0x000000000000000000000000000000000000000000000000000000000000f310', '0x0000000000000000000000000000000000000000000000000000000000000010']); + [ + '0x000000000000000000000000000000000000000000000000000000000000f310', + '0x0000000000000000000000000000000000000000000000000000000000000010' + ] +); abiCoder.decodeLog( [ { type: 'string', name: 'myString' - }, { + }, + { type: 'uint256', name: 'myNumber', indexed: true - }, { + }, + { type: 'uint8', name: 'mySmallNumber', indexed: true @@ -481,18 +622,24 @@ abiCoder.decodeLog( ], // $ExpectError null, - ['0x000000000000000000000000000000000000000000000000000000000000f310', '0x0000000000000000000000000000000000000000000000000000000000000010']); + [ + '0x000000000000000000000000000000000000000000000000000000000000f310', + '0x0000000000000000000000000000000000000000000000000000000000000010' + ] +); abiCoder.decodeLog( [ { type: 'string', name: 'myString' - }, { + }, + { type: 'uint256', name: 'myNumber', indexed: true - }, { + }, + { type: 'uint8', name: 'mySmallNumber', indexed: true @@ -500,18 +647,24 @@ abiCoder.decodeLog( ], // $ExpectError undefined, - ['0x000000000000000000000000000000000000000000000000000000000000f310', '0x0000000000000000000000000000000000000000000000000000000000000010']); + [ + '0x000000000000000000000000000000000000000000000000000000000000f310', + '0x0000000000000000000000000000000000000000000000000000000000000010' + ] +); abiCoder.decodeLog( [ { type: 'string', name: 'myString' - }, { + }, + { type: 'uint256', name: 'myNumber', indexed: true - }, { + }, + { type: 'uint8', name: 'mySmallNumber', indexed: true @@ -521,18 +674,21 @@ abiCoder.decodeLog( 000000000000000000000000000000000000000000000000748656c6c6f2521000000000000000000 00000000000000000000000000000000`, // $ExpectError - 345); + 345 +); abiCoder.decodeLog( [ { type: 'string', name: 'myString' - }, { + }, + { type: 'uint256', name: 'myNumber', indexed: true - }, { + }, + { type: 'uint8', name: 'mySmallNumber', indexed: true @@ -542,18 +698,21 @@ abiCoder.decodeLog( 000000000000000000000000000000000000000000000000748656c6c6f2521000000000000000000 00000000000000000000000000000000`, // $ExpectError - [345]); + [345] +); abiCoder.decodeLog( [ { type: 'string', name: 'myString' - }, { + }, + { type: 'uint256', name: 'myNumber', indexed: true - }, { + }, + { type: 'uint8', name: 'mySmallNumber', indexed: true @@ -563,18 +722,21 @@ abiCoder.decodeLog( 000000000000000000000000000000000000000000000000748656c6c6f2521000000000000000000 00000000000000000000000000000000`, // $ExpectError - null); + null +); abiCoder.decodeLog( [ { type: 'string', name: 'myString' - }, { + }, + { type: 'uint256', name: 'myNumber', indexed: true - }, { + }, + { type: 'uint8', name: 'mySmallNumber', indexed: true @@ -584,4 +746,5 @@ abiCoder.decodeLog( 000000000000000000000000000000000000000000000000748656c6c6f2521000000000000000000 00000000000000000000000000000000`, // $ExpectError - undefined); + undefined +); diff --git a/packages/web3-eth-accounts/types/index.d.ts b/packages/web3-eth-accounts/types/index.d.ts index 87dd1fb7ea7..cd15ce398be 100644 --- a/packages/web3-eth-accounts/types/index.d.ts +++ b/packages/web3-eth-accounts/types/index.d.ts @@ -17,61 +17,16 @@ * @date 2018 */ -import {AbstractWeb3Module, SignedTransaction, TransactionConfig, Web3ModuleOptions} from 'web3-core'; -import {provider} from 'web3-providers'; -import * as net from 'net'; +import { + AccountsBase, + SignedTransaction, + TransactionConfig, + WalletBase +} from 'web3-core'; -export class Accounts extends AbstractWeb3Module { - constructor(provider: provider, net?: net.Socket | null, options?: Web3ModuleOptions); +export class Accounts extends AccountsBase {} - create(entropy?: string): Account; - - privateKeyToAccount(privateKey: string): Account; - - signTransaction(transactionConfig: TransactionConfig, privateKey: string, callback?: () => void): Promise; - - recoverTransaction(signature: string): string; - - hashMessage(message: string): string; - - sign(data: string, privateKey: string): Sign; - - recover(signatureObject: SignatureObject): string; - recover(message: string, signature: string, preFixed?: boolean): string; - recover(message: string, v: string, r: string, s: string, preFixed?: boolean): string; - - encrypt(privateKey: string, password: string): EncryptedKeystoreV3Json; - - decrypt(keystoreJsonV3: EncryptedKeystoreV3Json, password: string): Account; - - wallet: Wallet; -} - -export class Wallet { - constructor(accounts: Accounts); - - accountsIndex: number; - length: number; - defaultKeyName: string; - - [key: number]: Account; - - create(numberOfAccounts: number, entropy?: string): Wallet; - - add(account: string | AddAccount): AddedAccount; - - remove(account: string | number): boolean; - - clear(): Wallet; - - encrypt(password: string): EncryptedKeystoreV3Json[]; - - decrypt(keystoreArray: EncryptedKeystoreV3Json[], password: string): Wallet; - - save(password: string, keyName?: string): boolean; - - load(password: string, keyName?: string): Wallet; -} +export class Wallet extends WalletBase {} export interface AddAccount { address: string; @@ -99,7 +54,7 @@ export interface EncryptedKeystoreV3Json { address: string; crypto: { ciphertext: string; - cipherparams: {iv: string}; + cipherparams: { iv: string }; cipher: string; kdf: string; kdfparams: { diff --git a/packages/web3-eth-accounts/types/tests/accounts-tests.ts b/packages/web3-eth-accounts/types/tests/accounts-tests.ts index 54487abb407..6b5c4886f70 100644 --- a/packages/web3-eth-accounts/types/tests/accounts-tests.ts +++ b/packages/web3-eth-accounts/types/tests/accounts-tests.ts @@ -16,17 +16,21 @@ * @author Josh Stevens * @date 2018 */ -import {Accounts} from 'web3-eth-accounts'; +import { Accounts } from 'web3-eth-accounts'; const accounts = new Accounts('http://localhost:8545'); // $ExpectType Account accounts.create(); // $ExpectType Account -accounts.create('2435@#@#@±±±±!!!!678543213456764321§34567543213456785432134567'); +accounts.create( + '2435@#@#@±±±±!!!!678543213456764321§34567543213456785432134567' +); // $ExpectType Account -accounts.privateKeyToAccount('0x348ce564d427a3311b6536bbcff9390d69395b06ed6c486954e971d960fe8709'); +accounts.privateKeyToAccount( + '0x348ce564d427a3311b6536bbcff9390d69395b06ed6c486954e971d960fe8709' +); // $ExpectType Promise accounts.signTransaction( @@ -52,17 +56,23 @@ accounts.signTransaction( ); // $ExpectType string -accounts.recoverTransaction('0xf861808084aefcdfa08e7d2ee3f0b9d9ae184b2001fe0aff07603d9'); +accounts.recoverTransaction( + '0xf861808084aefcdfa08e7d2ee3f0b9d9ae184b2001fe0aff07603d9' +); // $ExpectType string accounts.hashMessage('hello world'); // $ExpectType Sign -accounts.sign('Some data', '0x4c0883a69102937d6231471b5dbb6204fe5129617082792ae468d01a3f362318'); +accounts.sign( + 'Some data', + '0x4c0883a69102937d6231471b5dbb6204fe5129617082792ae468d01a3f362318' +); // $ExpectType string accounts.recover({ - messageHash: '0x1da44b586eb0729ff70a73c326926f6ed5a25f5b056e7f47fbc6e58d86871655', + messageHash: + '0x1da44b586eb0729ff70a73c326926f6ed5a25f5b056e7f47fbc6e58d86871655', v: '0x1c', r: '0xb91467e570a6466aa9e9876cbcd013baba02900b8979d43fe208a4a4f339f5fd', s: '0x6007e74cd82e037b800186422fc2da167c747ef045e5d18a5f5d4300f8e1a029' @@ -83,7 +93,10 @@ accounts.recover( ); // $ExpectType EncryptedKeystoreV3Json -accounts.encrypt('0x4c0883a69102937d6231471b5dbb6204fe5129617082792ae468d01a3f362318', 'test!'); +accounts.encrypt( + '0x4c0883a69102937d6231471b5dbb6204fe5129617082792ae468d01a3f362318', + 'test!' +); // $ExpectType Account accounts.decrypt( @@ -92,18 +105,21 @@ accounts.decrypt( id: '04e9bcbb-96fa-497b-94d1-14df4cd20af6', address: '2c7536e3605d9c16a7a3d7b1898e529396a65c23', crypto: { - ciphertext: 'a1c25da3ecde4e6a24f3697251dd15d6208520efc84ad97397e906e6df24d251', - cipherparams: {iv: '2885df2b63f7ef247d753c82fa20038a'}, + ciphertext: + 'a1c25da3ecde4e6a24f3697251dd15d6208520efc84ad97397e906e6df24d251', + cipherparams: { iv: '2885df2b63f7ef247d753c82fa20038a' }, cipher: 'aes-128-ctr', kdf: 'scrypt', kdfparams: { dklen: 32, - salt: '4531b3c174cc3ff32a6a7a85d6761b410db674807b2d216d022318ceee50be10', + salt: + '4531b3c174cc3ff32a6a7a85d6761b410db674807b2d216d022318ceee50be10', n: 262144, r: 8, p: 1 }, - mac: 'b8b010fff37f9ae5559a352a185e86f9b9c1d7f7a9f1bd4e82a5dd35468fc7f6' + mac: + 'b8b010fff37f9ae5559a352a185e86f9b9c1d7f7a9f1bd4e82a5dd35468fc7f6' } }, 'test!' @@ -116,14 +132,20 @@ accounts.wallet.create(2); accounts.wallet[0]; // $ExpectType Wallet -accounts.wallet.create(2, '54674321§3456764321§345674321§3453647544±±±§±±±!!!43534534534534'); +accounts.wallet.create( + 2, + '54674321§3456764321§345674321§3453647544±±±§±±±!!!43534534534534' +); // $ExpectType AddedAccount -accounts.wallet.add('0x4c0883a69102937d6231471b5dbb6204fe5129617082792ae468d01a3f362318'); +accounts.wallet.add( + '0x4c0883a69102937d6231471b5dbb6204fe5129617082792ae468d01a3f362318' +); // $ExpectType AddedAccount accounts.wallet.add({ - privateKey: '0x348ce564d427a3311b6536bbcff9390d69395b06ed6c486954e971d960fe8709', + privateKey: + '0x348ce564d427a3311b6536bbcff9390d69395b06ed6c486954e971d960fe8709', address: '0xb8CE9ab6943e0eCED004cDe8e3bBed6568B2Fa01' }); @@ -147,18 +169,21 @@ accounts.wallet.decrypt( id: '83191a81-aaca-451f-b63d-0c5f3b849289', address: '06f702337909c06c82b09b7a22f0a2f0855d1f68', crypto: { - ciphertext: '7d34deae112841fba86e3e6cf08f5398dda323a8e4d29332621534e2c4069e8d', - cipherparams: {iv: '497f4d26997a84d570778eae874b2333'}, + ciphertext: + '7d34deae112841fba86e3e6cf08f5398dda323a8e4d29332621534e2c4069e8d', + cipherparams: { iv: '497f4d26997a84d570778eae874b2333' }, cipher: 'aes-128-ctr', kdf: 'scrypt', kdfparams: { dklen: 32, - salt: '208dd732a27aa4803bb760228dff18515d5313fd085bbce60594a3919ae2d88d', + salt: + '208dd732a27aa4803bb760228dff18515d5313fd085bbce60594a3919ae2d88d', n: 262144, r: 8, p: 1 }, - mac: '0062a853de302513c57bfe3108ab493733034bf3cb313326f42cf26ea2619cf9' + mac: + '0062a853de302513c57bfe3108ab493733034bf3cb313326f42cf26ea2619cf9' } }, { @@ -166,18 +191,21 @@ accounts.wallet.decrypt( id: '7d6b91fa-3611-407b-b16b-396efb28f97e', address: 'b5d89661b59a9af0b34f58d19138baa2de48baaf', crypto: { - ciphertext: 'cb9712d1982ff89f571fa5dbef447f14b7e5f142232bd2a913aac833730eeb43', - cipherparams: {iv: '8cccb91cb84e435437f7282ec2ffd2db'}, + ciphertext: + 'cb9712d1982ff89f571fa5dbef447f14b7e5f142232bd2a913aac833730eeb43', + cipherparams: { iv: '8cccb91cb84e435437f7282ec2ffd2db' }, cipher: 'aes-128-ctr', kdf: 'scrypt', kdfparams: { dklen: 32, - salt: '08ba6736363c5586434cd5b895e6fe41ea7db4785bd9b901dedce77a1514e8b8', + salt: + '08ba6736363c5586434cd5b895e6fe41ea7db4785bd9b901dedce77a1514e8b8', n: 262144, r: 8, p: 1 }, - mac: 'd2eb068b37e2df55f56fa97a2bf4f55e072bef0dd703bfd917717d9dc54510f0' + mac: + 'd2eb068b37e2df55f56fa97a2bf4f55e072bef0dd703bfd917717d9dc54510f0' } } ], diff --git a/packages/web3-eth-contract/types/index.d.ts b/packages/web3-eth-contract/types/index.d.ts index 0b567ee39ed..48a29e5db3e 100644 --- a/packages/web3-eth-contract/types/index.d.ts +++ b/packages/web3-eth-contract/types/index.d.ts @@ -18,9 +18,13 @@ */ import BN = require('bn.js'); -import {provider} from 'web3-providers'; -import {AbiInput, AbiOutput, AbiItem} from 'web3-utils'; -import {PromiEvent, Web3ModuleOptions, TransactionSigner} from 'web3-core'; +import { + PromiEvent, + provider, + TransactionSigner, + Web3ModuleOptions +} from 'web3-core'; +import { AbiInput, AbiItem, AbiOutput } from 'web3-utils'; export class Contract { constructor( @@ -28,7 +32,7 @@ export class Contract { abi: AbiItem[], address?: string, options?: ContractOptions - ) + ); address: string; jsonInterface: AbiModel; @@ -42,19 +46,32 @@ export class Contract { methods: any; - once(event: string, callback: (error: Error, event: EventData) => void): void; - once(event: string, options: EventOptions, callback: (error: Error, event: EventData) => void): void; + once( + event: string, + callback: (error: Error, event: EventData) => void + ): void; + once( + event: string, + options: EventOptions, + callback: (error: Error, event: EventData) => void + ): void; events: any; getPastEvents(event: string): Promise; - getPastEvents(event: string, options: EventOptions, callback: (error: Error, event: EventData) => void): Promise; + getPastEvents( + event: string, + options: EventOptions, + callback: (error: Error, event: EventData) => void + ): Promise; getPastEvents(event: string, options: EventOptions): Promise; - getPastEvents(event: string, callback: (error: Error, event: EventData) => void): Promise; + getPastEvents( + event: string, + callback: (error: Error, event: EventData) => void + ): Promise; } -export class ContractModuleFactory { -} // TODO: Define methods +export class ContractModuleFactory {} // TODO: Define methods export interface Options { address: string; @@ -67,13 +84,22 @@ export interface DeployOptions { } export interface ContractSendMethod { - send(options: SendOptions, callback?: (err: Error, transactionHash: string) => void): PromiEvent; + send( + options: SendOptions, + callback?: (err: Error, transactionHash: string) => void + ): PromiEvent; - estimateGas(options: EstimateGasOptions, callback?: (err: Error, gas: number) => void): Promise; + estimateGas( + options: EstimateGasOptions, + callback?: (err: Error, gas: number) => void + ): Promise; estimateGas(callback: (err: Error, gas: number) => void): Promise; - estimateGas(options: EstimateGasOptions, callback: (err: Error, gas: number) => void): Promise; + estimateGas( + options: EstimateGasOptions, + callback: (err: Error, gas: number) => void + ): Promise; estimateGas(options: EstimateGasOptions): Promise; @@ -116,11 +142,11 @@ export interface EventOptions { export interface EventData { returnValues: { [key: string]: any; - }, + }; raw: { data: string; topics: string[]; - }, + }; event: string; signature: string; logIndex: number; diff --git a/packages/web3-eth-ens/types/index.d.ts b/packages/web3-eth-ens/types/index.d.ts index 7ed5247e109..4b2a2920419 100644 --- a/packages/web3-eth-ens/types/index.d.ts +++ b/packages/web3-eth-ens/types/index.d.ts @@ -17,21 +17,27 @@ * @date 2018 */ -import {Accounts} from 'web3-eth-accounts'; -import {AbiCoder} from 'web3-eth-abi'; -import {Contract, ContractModuleFactory} from 'web3-eth-contract'; -import {provider} from 'web3-providers'; -import {AbstractWeb3Module, PromiEvent, Web3ModuleOptions, TransactionConfig, TransactionSigner} from 'web3-core'; -import {formatters} from 'web3-core-helpers'; -import {Network} from 'web3-net'; -import {Utils} from 'web3-utils'; import * as net from 'net'; +import { + AbstractWeb3Module, + AccountsBase, + NetworkBase, + PromiEvent, + provider, + TransactionConfig, + TransactionSigner, + Web3ModuleOptions +} from 'web3-core'; +import { formatters } from 'web3-core-helpers'; +import { AbiCoder } from 'web3-eth-abi'; +import { Contract, ContractModuleFactory } from 'web3-eth-contract'; +import { Utils } from 'web3-utils'; export class Ens extends AbstractWeb3Module { constructor( provider: provider, - net?: net.Socket|null, - accounts?: Accounts|null, + net?: net.Socket | null, + accounts?: AccountsBase | null, options?: Web3ModuleOptions ); @@ -46,7 +52,10 @@ export class Ens extends AbstractWeb3Module { callback?: (error: Error, supportsInterface: boolean) => void ): Promise; - getAddress(name: string, callback?: (error: Error, address: string) => void): Promise; + getAddress( + name: string, + callback?: (error: Error, address: string) => void + ): Promise; setAddress( name: string, @@ -57,8 +66,8 @@ export class Ens extends AbstractWeb3Module { getPubkey( name: string, - callback?: (error: Error, result: {[x: string]: string}) => void - ): Promise<{[x: string]: string}>; + callback?: (error: Error, result: { [x: string]: string }) => void + ): Promise<{ [x: string]: string }>; setPubkey( name: string, @@ -68,7 +77,11 @@ export class Ens extends AbstractWeb3Module { callback?: (error: Error, result: any) => void ): PromiEvent; - getText(name: string, key: string, callback?: (error: Error, ensName: string) => void): Promise; + getText( + name: string, + key: string, + callback?: (error: Error, ensName: string) => void + ): Promise; setText( name: string, @@ -78,7 +91,10 @@ export class Ens extends AbstractWeb3Module { callback?: (error: Error, result: any) => void ): PromiEvent; - getContent(name: string, callback?: (error: Error, contentHash: string) => void): Promise; + getContent( + name: string, + callback?: (error: Error, contentHash: string) => void + ): Promise; setContent( name: string, @@ -87,7 +103,10 @@ export class Ens extends AbstractWeb3Module { callback?: (error: Error, result: any) => void ): PromiEvent; - getMultihash(name: string, callback?: (error: Error, multihash: string) => void): Promise; + getMultihash( + name: string, + callback?: (error: Error, multihash: string) => void + ): Promise; setMultihash( name: string, @@ -96,7 +115,10 @@ export class Ens extends AbstractWeb3Module { callback?: (error: Error, result: any) => void ): PromiEvent; - getContenthash(name: string, callback?: (error: Error, contenthash: string) => void): Promise; + getContenthash( + name: string, + callback?: (error: Error, contenthash: string) => void + ): Promise; setContenthash( name: string, @@ -110,12 +132,12 @@ export class Registry { constructor( provider: provider, contractModuleFactory: ContractModuleFactory, - accounts: Accounts, + accounts: AccountsBase, abiCoder: AbiCoder, utils: Utils, formatters: formatters, options: Web3ModuleOptions, - net: Network + net: NetworkBase ); ens: Ens; @@ -124,7 +146,10 @@ export class Registry { setProvider(provider: provider, net?: net.Socket): boolean; - owner(name: string, callback?: (error: Error, address: string) => void): Promise; + owner( + name: string, + callback?: (error: Error, address: string) => void + ): Promise; resolver(name: string): Promise; diff --git a/packages/web3-eth-ens/types/tests/ens-test.ts b/packages/web3-eth-ens/types/tests/ens-test.ts index 8e75c843356..e0b50ce7116 100644 --- a/packages/web3-eth-ens/types/tests/ens-test.ts +++ b/packages/web3-eth-ens/types/tests/ens-test.ts @@ -17,10 +17,14 @@ * @date 2018 */ -import {Accounts} from 'web3-eth-accounts'; -import {Ens} from 'web3-eth-ens'; +import { AccountsBase } from 'web3-core'; +import { Ens } from 'web3-eth-ens'; -const ens = new Ens('http://localhost:7545', null, new Accounts('http://localhost:7545')); +const ens = new Ens( + 'http://localhost:7545', + null, + new AccountsBase('http://localhost:7545') +); // $ExpectType Registry ens.registry; @@ -34,7 +38,11 @@ ens.resolver('name'); // $ExpectType Promise ens.supportsInterface('name', 'interfaceId'); // $ExpectType Promise -ens.supportsInterface('name', 'interfaceId', (error: Error, supportsInterface: boolean) => {}); +ens.supportsInterface( + 'name', + 'interfaceId', + (error: Error, supportsInterface: boolean) => {} +); // $ExpectType Promise ens.getAddress('name'); @@ -49,7 +57,7 @@ ens.setAddress('name', 'address', {}, (error: Error, result: any) => {}); // $ExpectType Promise<{ [x: string]: string; }> ens.getPubkey('name'); // $ExpectType Promise<{ [x: string]: string; }> -ens.getPubkey('name', (error: Error, result: {[x: string]: string}) => {}); +ens.getPubkey('name', (error: Error, result: { [x: string]: string }) => {}); // $ExpectType PromiEvent ens.setPubkey('name', 'x', 'y', {}); diff --git a/packages/web3-eth-iban/types/tests/iban-tests.ts b/packages/web3-eth-iban/types/tests/iban-tests.ts index 57a0a252b53..41c921d900b 100644 --- a/packages/web3-eth-iban/types/tests/iban-tests.ts +++ b/packages/web3-eth-iban/types/tests/iban-tests.ts @@ -20,7 +20,7 @@ * @date 2018 */ -import {Iban, IndirectOptions} from 'web3-eth-iban'; +import { Iban, IndirectOptions } from 'web3-eth-iban'; const iban = 'XE7338O073KYGTWWZN0F2WZ0R8PX5ZPPZS'; const address = '0x45cd08334aeedd8a06265b2ae302e3597d8faa28'; @@ -113,9 +113,9 @@ Iban.fromBban(null); Iban.fromBban(undefined); const indirectOptions: IndirectOptions = { - institution: "XREG", - identifier: "GAVOFYORK" -} + institution: 'XREG', + identifier: 'GAVOFYORK' +}; // $ExpectType Iban Iban.createIndirect(indirectOptions); diff --git a/packages/web3-eth-personal/types/index.d.ts b/packages/web3-eth-personal/types/index.d.ts index e7c85e36f1a..802dc9d8508 100644 --- a/packages/web3-eth-personal/types/index.d.ts +++ b/packages/web3-eth-personal/types/index.d.ts @@ -18,15 +18,28 @@ * @date 2018 */ -import {Accounts} from 'web3-eth-accounts'; -import {provider} from 'web3-providers'; -import {AbstractWeb3Module, RLPEncodedTransaction, TransactionConfig, Web3ModuleOptions} from 'web3-core'; import * as net from 'net'; +import { + AbstractWeb3Module, + AccountsBase, + provider, + RLPEncodedTransaction, + TransactionConfig, + Web3ModuleOptions +} from 'web3-core'; export class Personal extends AbstractWeb3Module { - constructor(provider: provider, net?: net.Socket|null, options?: Web3ModuleOptions, accounts?: Accounts|null); + constructor( + provider: provider, + net?: net.Socket | null, + options?: Web3ModuleOptions, + accounts?: AccountsBase | null + ); - newAccount(password: string, callback?: (error: Error, address: string) => void): Promise; + newAccount( + password: string, + callback?: (error: Error, address: string) => void + ): Promise; sign( dataToSign: string, @@ -44,7 +57,10 @@ export class Personal extends AbstractWeb3Module { signTransaction( transactionConfig: TransactionConfig, password: string, - callback?: (error: Error, RLPEncodedTransaction: RLPEncodedTransaction) => void + callback?: ( + error: Error, + RLPEncodedTransaction: RLPEncodedTransaction + ) => void ): Promise; sendTransaction( @@ -60,9 +76,14 @@ export class Personal extends AbstractWeb3Module { callback?: (error: Error) => void ): Promise; - lockAccount(address: string, callback?: (error: Error, success: boolean) => void): Promise; + lockAccount( + address: string, + callback?: (error: Error, success: boolean) => void + ): Promise; - getAccounts(callback?: (error: Error, accounts: string[]) => void): Promise; + getAccounts( + callback?: (error: Error, accounts: string[]) => void + ): Promise; importRawKey(privateKey: string, password: string): Promise; } diff --git a/packages/web3-eth-personal/types/tests/personal-tests.ts b/packages/web3-eth-personal/types/tests/personal-tests.ts index 1e675a5dad6..2a46f856ea2 100644 --- a/packages/web3-eth-personal/types/tests/personal-tests.ts +++ b/packages/web3-eth-personal/types/tests/personal-tests.ts @@ -19,9 +19,8 @@ * @date 2018 */ -import {RLPEncodedTransaction} from 'web3-core'; -import {Personal} from 'web3-eth-personal'; -import {Accounts} from 'web3-eth-accounts'; +import { RLPEncodedTransaction } from 'web3-core'; +import { Personal } from 'web3-eth-personal'; const personal = new Personal('http://localhost:7545'); @@ -31,7 +30,11 @@ personal.newAccount('test password'); personal.newAccount('test password', (error: Error, address: string) => {}); // $ExpectType Promise -personal.sign('Hello world', '0x11f4d0A3c12e86B4b5F39B213F7E19D048276DAe', 'test password!'); +personal.sign( + 'Hello world', + '0x11f4d0A3c12e86B4b5F39B213F7E19D048276DAe', + 'test password!' +); // $ExpectType Promise personal.sign( 'Hello world', @@ -43,7 +46,11 @@ personal.sign( // $ExpectType Promise personal.ecRecover('Hello world', '0x30755ed65396facf86c53e6217c52b4daebe72aa'); // $ExpectType Promise -personal.ecRecover('Hello world', '0x30755ed65396facf86c53e6217c52b4daebe72aa', (error: Error, address: string) => {}); +personal.ecRecover( + 'Hello world', + '0x30755ed65396facf86c53e6217c52b4daebe72aa', + (error: Error, address: string) => {} +); // $ExpectType Promise personal.signTransaction( @@ -99,14 +106,26 @@ personal.sendTransaction( ); // $ExpectType Promise -personal.unlockAccount('0x11f4d0A3c12e86B4b5F39B213F7E19D048276DAe', 'test password!', 600); +personal.unlockAccount( + '0x11f4d0A3c12e86B4b5F39B213F7E19D048276DAe', + 'test password!', + 600 +); // $ExpectType Promise -personal.unlockAccount('0x11f4d0A3c12e86B4b5F39B213F7E19D048276DAe', 'test password!', 600, (error: Error) => {}); +personal.unlockAccount( + '0x11f4d0A3c12e86B4b5F39B213F7E19D048276DAe', + 'test password!', + 600, + (error: Error) => {} +); // $ExpectType Promise personal.lockAccount('0x11f4d0A3c12e86B4b5F39B213F7E19D048276DAe'); // $ExpectType Promise -personal.lockAccount('0x11f4d0A3c12e86B4b5F39B213F7E19D048276DAe', (error: Error, sucess: boolean) => {}); +personal.lockAccount( + '0x11f4d0A3c12e86B4b5F39B213F7E19D048276DAe', + (error: Error, sucess: boolean) => {} +); // $ExpectType Promise personal.getAccounts(); diff --git a/packages/web3-eth/types/index.d.ts b/packages/web3-eth/types/index.d.ts index f8bcecb986f..d7cd9a75ea7 100644 --- a/packages/web3-eth/types/index.d.ts +++ b/packages/web3-eth/types/index.d.ts @@ -19,27 +19,16 @@ * @date 2018 */ -import {provider} from 'web3-providers'; -import { - AbstractWeb3Module, - Log, - PromiEvent, - RLPEncodedTransaction, - Transaction, - TransactionConfig, - TransactionReceipt, - Web3ModuleOptions, - TransactionSigner -} from 'web3-core'; -import {Contract, ContractOptions} from 'web3-eth-contract'; -import {Iban} from 'web3-eth-iban'; -import {Accounts} from 'web3-eth-accounts'; -import {AbiCoder} from 'web3-eth-abi'; -import {Network} from 'web3-net'; -import {Personal} from 'web3-eth-personal'; -import {AbiItem} from 'web3-utils'; -import {Ens} from 'web3-eth-ens'; import * as net from 'net'; +import { AbstractWeb3Module, Log, PromiEvent, provider, RLPEncodedTransaction, Transaction, TransactionConfig, TransactionReceipt, TransactionSigner, Web3ModuleOptions } from 'web3-core'; +import { AbiCoder } from 'web3-eth-abi'; +import { Accounts } from 'web3-eth-accounts'; +import { Contract, ContractOptions } from 'web3-eth-contract'; +import { Ens } from 'web3-eth-ens'; +import { Iban } from 'web3-eth-iban'; +import { Personal } from 'web3-eth-personal'; +import { Network } from 'web3-net'; +import { AbiItem } from 'web3-utils'; export class Eth extends AbstractWeb3Module { constructor( diff --git a/packages/web3-eth/types/tests/eth.tests.ts b/packages/web3-eth/types/tests/eth.tests.ts index e4428400a55..0471e17713c 100644 --- a/packages/web3-eth/types/tests/eth.tests.ts +++ b/packages/web3-eth/types/tests/eth.tests.ts @@ -18,8 +18,13 @@ * @date 2018 */ -import {Log, Transaction, TransactionReceipt, RLPEncodedTransaction} from 'web3-core'; -import {Eth, BlockHeader, Syncing, Block, GetProof} from 'web3-eth'; +import { + Log, + RLPEncodedTransaction, + Transaction, + TransactionReceipt +} from 'web3-core'; +import { Block, BlockHeader, Eth, GetProof, Syncing } from 'web3-eth'; const eth = new Eth('http://localhost:8545'); @@ -65,12 +70,20 @@ eth.subscribe('syncing', null, (error: Error, result: Syncing) => {}); // $ExpectType Subscription eth.subscribe('newBlockHeaders'); // $ExpectType Subscription -eth.subscribe('newBlockHeaders', null, (error: Error, blockHeader: BlockHeader) => {}); +eth.subscribe( + 'newBlockHeaders', + null, + (error: Error, blockHeader: BlockHeader) => {} +); // $ExpectType Subscription eth.subscribe('pendingTransactions'); // $ExpectType Subscription -eth.subscribe('pendingTransactions', null, (error: Error, transactionHash: string) => {}); +eth.subscribe( + 'pendingTransactions', + null, + (error: Error, transactionHash: string) => {} +); // $ExpectType Providers Eth.providers; @@ -135,33 +148,59 @@ eth.getBalance('0x407d73d8a49eeb85d32cf465507dd71d507100c1'); // $ExpectType Promise eth.getBalance('0x407d73d8a49eeb85d32cf465507dd71d507100c1', '1000'); // $ExpectType Promise -eth.getBalance('0x407d73d8a49eeb85d32cf465507dd71d507100c1', '1000', (error: Error, balance: string) => {}); +eth.getBalance( + '0x407d73d8a49eeb85d32cf465507dd71d507100c1', + '1000', + (error: Error, balance: string) => {} +); // $ExpectType Promise eth.getBalance('0x407d73d8a49eeb85d32cf465507dd71d507100c1', 1000); // $ExpectType Promise -eth.getBalance('0x407d73d8a49eeb85d32cf465507dd71d507100c1', 1000, (error: Error, balance: string) => {}); +eth.getBalance( + '0x407d73d8a49eeb85d32cf465507dd71d507100c1', + 1000, + (error: Error, balance: string) => {} +); // $ExpectType Promise eth.getStorageAt('0x407d73d8a49eeb85d32cf465507dd71d507100c1', 2); // $ExpectType Promise eth.getStorageAt('0x407d73d8a49eeb85d32cf465507dd71d507100c1', 2, '1000'); // $ExpectType Promise -eth.getStorageAt('0x407d73d8a49eeb85d32cf465507dd71d507100c1', 2, '1000', (error: Error, balance: string) => {}); +eth.getStorageAt( + '0x407d73d8a49eeb85d32cf465507dd71d507100c1', + 2, + '1000', + (error: Error, balance: string) => {} +); // $ExpectType Promise eth.getStorageAt('0x407d73d8a49eeb85d32cf465507dd71d507100c1', 2, 1000); // $ExpectType Promise -eth.getStorageAt('0x407d73d8a49eeb85d32cf465507dd71d507100c1', 2, 1000, (error: Error, balance: string) => {}); +eth.getStorageAt( + '0x407d73d8a49eeb85d32cf465507dd71d507100c1', + 2, + 1000, + (error: Error, balance: string) => {} +); // $ExpectType Promise eth.getCode('0x407d73d8a49eeb85d32cf465507dd71d507100c1'); // $ExpectType Promise eth.getCode('0x407d73d8a49eeb85d32cf465507dd71d507100c1', '1000'); // $ExpectType Promise -eth.getCode('0x407d73d8a49eeb85d32cf465507dd71d507100c1', '1000', (error: Error, balance: string) => {}); +eth.getCode( + '0x407d73d8a49eeb85d32cf465507dd71d507100c1', + '1000', + (error: Error, balance: string) => {} +); // $ExpectType Promise eth.getCode('0x407d73d8a49eeb85d32cf465507dd71d507100c1', 1000); // $ExpectType Promise -eth.getCode('0x407d73d8a49eeb85d32cf465507dd71d507100c1', 1000, (error: Error, balance: string) => {}); +eth.getCode( + '0x407d73d8a49eeb85d32cf465507dd71d507100c1', + 1000, + (error: Error, balance: string) => {} +); // $ExpectType Promise eth.getBlock('0x407d73d8a49eeb85d32cf465507dd71d507100c1'); @@ -178,7 +217,10 @@ eth.getBlock(345, true); // $ExpectType Promise eth.getBlock(345, false); // $ExpectType Promise -eth.getBlock('0x407d73d8a49eeb85d32cf465507dd71d507100c1', (error: Error, block: Block) => {}); +eth.getBlock( + '0x407d73d8a49eeb85d32cf465507dd71d507100c1', + (error: Error, block: Block) => {} +); // $ExpectType Promise eth.getBlock(345, (error: Error, block: Block) => {}); // $ExpectType Promise @@ -186,9 +228,17 @@ eth.getBlock(345, true, (error: Error, block: Block) => {}); // $ExpectType Promise eth.getBlock(345, false, (error: Error, block: Block) => {}); // $ExpectType Promise -eth.getBlock('0x407d73d8a49eeb85d32cf465507dd71d507100c1', true, (error: Error, block: Block) => {}); +eth.getBlock( + '0x407d73d8a49eeb85d32cf465507dd71d507100c1', + true, + (error: Error, block: Block) => {} +); // $ExpectType Promise -eth.getBlock('0x407d73d8a49eeb85d32cf465507dd71d507100c1', false, (error: Error, block: Block) => {}); +eth.getBlock( + '0x407d73d8a49eeb85d32cf465507dd71d507100c1', + false, + (error: Error, block: Block) => {} +); // $ExpectType Promise eth.getBlockTransactionCount( @@ -214,7 +264,11 @@ eth.getUncle('0x407d73d8a49eeb85d32cf465507dd71d507100c1', 4, true); // $ExpectType Promise eth.getUncle('0x407d73d8a49eeb85d32cf465507dd71d507100c1', 4, false); // $ExpectType Promise -eth.getUncle('0x407d73d8a49eeb85d32cf465507dd71d507100c1', 4, (error: Error, uncle: {}) => {}); +eth.getUncle( + '0x407d73d8a49eeb85d32cf465507dd71d507100c1', + 4, + (error: Error, uncle: {}) => {} +); // $ExpectType Promise eth.getUncle(345, 4, (error: Error, uncle: {}) => {}); // $ExpectType Promise @@ -222,9 +276,19 @@ eth.getUncle(345, 4, true); // $ExpectType Promise eth.getUncle(345, 4, false); // $ExpectType Promise -eth.getUncle('0x407d73d8a49eeb85d32cf465507dd71d507100c1', 4, true, (error: Error, uncle: {}) => {}); +eth.getUncle( + '0x407d73d8a49eeb85d32cf465507dd71d507100c1', + 4, + true, + (error: Error, uncle: {}) => {} +); // $ExpectType Promise -eth.getUncle('0x407d73d8a49eeb85d32cf465507dd71d507100c1', 4, false, (error: Error, uncle: {}) => {}); +eth.getUncle( + '0x407d73d8a49eeb85d32cf465507dd71d507100c1', + 4, + false, + (error: Error, uncle: {}) => {} +); // $ExpectType Promise eth.getUncle(345, 4, true, (error: Error, uncle: {}) => {}); // $ExpectType Promise @@ -233,7 +297,10 @@ eth.getUncle(345, 4, false, (error: Error, uncle: {}) => {}); // $ExpectType Promise eth.getTransaction('0x407d73d8a49eeb85d32cf465507dd71d507100c1'); // $ExpectType Promise -eth.getTransaction('0x407d73d8a49eeb85d32cf465507dd71d507100c1', (error: Error, transaction: Transaction) => {}); +eth.getTransaction( + '0x407d73d8a49eeb85d32cf465507dd71d507100c1', + (error: Error, transaction: Transaction) => {} +); // $ExpectType Promise eth.getTransactionFromBlock('0x407d73d8a49eeb85d32cf465507dd71d507100c1', 2); @@ -246,7 +313,11 @@ eth.getTransactionFromBlock( (error: Error, transaction: Transaction) => {} ); // $ExpectType Promise -eth.getTransactionFromBlock(345, 2, (error: Error, transaction: Transaction) => {}); +eth.getTransactionFromBlock( + 345, + 2, + (error: Error, transaction: Transaction) => {} +); // $ExpectType Promise eth.getTransactionReceipt('0x407d73d8a49eeb85d32cf465507dd71d507100c1'); @@ -263,13 +334,27 @@ eth.getTransactionCount('0x407d73d8a49eeb85d32cf465507dd71d507100c1', 1000); // $ExpectType Promise eth.getTransactionCount('0x407d73d8a49eeb85d32cf465507dd71d507100c1', '1000'); // $ExpectType Promise -eth.getTransactionCount('0x407d73d8a49eeb85d32cf465507dd71d507100c1', (error: Error, count: number) => {}); +eth.getTransactionCount( + '0x407d73d8a49eeb85d32cf465507dd71d507100c1', + (error: Error, count: number) => {} +); // $ExpectType Promise -eth.getTransactionCount('0x407d73d8a49eeb85d32cf465507dd71d507100c1', (error: Error, count: number) => {}); +eth.getTransactionCount( + '0x407d73d8a49eeb85d32cf465507dd71d507100c1', + (error: Error, count: number) => {} +); // $ExpectType Promise -eth.getTransactionCount('0x407d73d8a49eeb85d32cf465507dd71d507100c1', 1000, (error: Error, count: number) => {}); +eth.getTransactionCount( + '0x407d73d8a49eeb85d32cf465507dd71d507100c1', + 1000, + (error: Error, count: number) => {} +); // $ExpectType Promise -eth.getTransactionCount('0x407d73d8a49eeb85d32cf465507dd71d507100c1', '1000', (error: Error, count: number) => {}); +eth.getTransactionCount( + '0x407d73d8a49eeb85d32cf465507dd71d507100c1', + '1000', + (error: Error, count: number) => {} +); const code = '603d80600c6000396000f3007c0'; @@ -290,14 +375,21 @@ eth.sendTransaction( // $ExpectType PromiEvent eth.sendSignedTransaction('0xf889808609184e72a0008227109'); // $ExpectType PromiEvent -eth.sendSignedTransaction('0xf889808609184e72a0008227109', (error: Error, hash: string) => {}); +eth.sendSignedTransaction( + '0xf889808609184e72a0008227109', + (error: Error, hash: string) => {} +); // $ExpectType Promise eth.sign('Hello world', '0x11f4d0A3c12e86B4b5F39B213F7E19D048276DAe'); // $ExpectType Promise eth.sign('Hello world', 3); // $ExpectType Promise -eth.sign('Hello world', '0x11f4d0A3c12e86B4b5F39B213F7E19D048276DAe', (error: Error, signature: string) => {}); +eth.sign( + 'Hello world', + '0x11f4d0A3c12e86B4b5F39B213F7E19D048276DAe', + (error: Error, signature: string) => {} +); // $ExpectType Promise eth.sign('Hello world', 3, (error: Error, signature: string) => {}); @@ -351,13 +443,15 @@ eth.signTransaction( // $ExpectType Promise eth.call({ to: '0x11f4d0A3c12e86B4b5F39B213F7E19D048276DAe', // contract address - data: '0xc6888fa10000000000000000000000000000000000000000000000000000000000000003' + data: + '0xc6888fa10000000000000000000000000000000000000000000000000000000000000003' }); // $ExpectType Promise eth.call( { to: '0x11f4d0A3c12e86B4b5F39B213F7E19D048276DAe', // contract address - data: '0xc6888fa10000000000000000000000000000000000000000000000000000000000000003' + data: + '0xc6888fa10000000000000000000000000000000000000000000000000000000000000003' }, 100 ); @@ -365,7 +459,8 @@ eth.call( eth.call( { to: '0x11f4d0A3c12e86B4b5F39B213F7E19D048276DAe', // contract address - data: '0xc6888fa10000000000000000000000000000000000000000000000000000000000000003' + data: + '0xc6888fa10000000000000000000000000000000000000000000000000000000000000003' }, '100' ); @@ -373,7 +468,8 @@ eth.call( eth.call( { to: '0x11f4d0A3c12e86B4b5F39B213F7E19D048276DAe', // contract address - data: '0xc6888fa10000000000000000000000000000000000000000000000000000000000000003' + data: + '0xc6888fa10000000000000000000000000000000000000000000000000000000000000003' }, (error: Error, data: string) => {} ); @@ -381,7 +477,8 @@ eth.call( eth.call( { to: '0x11f4d0A3c12e86B4b5F39B213F7E19D048276DAe', // contract address - data: '0xc6888fa10000000000000000000000000000000000000000000000000000000000000003' + data: + '0xc6888fa10000000000000000000000000000000000000000000000000000000000000003' }, '100', (error: Error, data: string) => {} @@ -390,7 +487,8 @@ eth.call( eth.call( { to: '0x11f4d0A3c12e86B4b5F39B213F7E19D048276DAe', // contract address - data: '0xc6888fa10000000000000000000000000000000000000000000000000000000000000003' + data: + '0xc6888fa10000000000000000000000000000000000000000000000000000000000000003' }, 100, (error: Error, data: string) => {} @@ -400,7 +498,8 @@ eth.call( eth.call( { to: '0x11f4d0A3c12e86B4b5F39B213F7E19D048276DAe', // contract address - data: '0xc6888fa10000000000000000000000000000000000000000000000000000000000000003' + data: + '0xc6888fa10000000000000000000000000000000000000000000000000000000000000003' }, 100, (error: Error, data: string) => {} @@ -409,13 +508,15 @@ eth.call( // $ExpectType Promise eth.estimateGas({ to: '0x11f4d0A3c12e86B4b5F39B213F7E19D048276DAe', - data: '0xc6888fa10000000000000000000000000000000000000000000000000000000000000003' + data: + '0xc6888fa10000000000000000000000000000000000000000000000000000000000000003' }); // $ExpectType Promise eth.estimateGas( { to: '0x11f4d0A3c12e86B4b5F39B213F7E19D048276DAe', - data: '0xc6888fa10000000000000000000000000000000000000000000000000000000000000003' + data: + '0xc6888fa10000000000000000000000000000000000000000000000000000000000000003' }, (error: Error, gas: number) => {} ); @@ -429,7 +530,9 @@ eth.getPastLogs({ eth.getPastLogs( { address: '0x11f4d0A3c12e86B4b5F39B213F7E19D048276DAe', - topics: ['0x033456732123ffff2342342dd12342434324234234fd234fd23fd4f23d4234'] + topics: [ + '0x033456732123ffff2342342dd12342434324234234fd234fd23fd4f23d4234' + ] }, (error: Error, logs: Log[]) => {} ); @@ -464,30 +567,42 @@ eth.getPendingTransactions((error: Error, result: Transaction[]) => {}); // $ExpectType Promise eth.getProof( - "0x1234567890123456789012345678901234567890", - ["0x0000000000000000000000000000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000000000000000000000000001"], - "latest" + '0x1234567890123456789012345678901234567890', + [ + '0x0000000000000000000000000000000000000000000000000000000000000000', + '0x0000000000000000000000000000000000000000000000000000000000000001' + ], + 'latest' ); // $ExpectType Promise eth.getProof( - "0x1234567890123456789012345678901234567890", - ["0x0000000000000000000000000000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000000000000000000000000001"], - "latest", + '0x1234567890123456789012345678901234567890', + [ + '0x0000000000000000000000000000000000000000000000000000000000000000', + '0x0000000000000000000000000000000000000000000000000000000000000001' + ], + 'latest', (error: Error, result: GetProof) => {} ); // $ExpectType Promise eth.getProof( - "0x1234567890123456789012345678901234567890", - ["0x0000000000000000000000000000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000000000000000000000000001"], + '0x1234567890123456789012345678901234567890', + [ + '0x0000000000000000000000000000000000000000000000000000000000000000', + '0x0000000000000000000000000000000000000000000000000000000000000001' + ], 10 ); // $ExpectType Promise eth.getProof( - "0x1234567890123456789012345678901234567890", - ["0x0000000000000000000000000000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000000000000000000000000001"], + '0x1234567890123456789012345678901234567890', + [ + '0x0000000000000000000000000000000000000000000000000000000000000000', + '0x0000000000000000000000000000000000000000000000000000000000000001' + ], 10, (error: Error, result: GetProof) => {} ); diff --git a/packages/web3-net/types/index.d.ts b/packages/web3-net/types/index.d.ts index 0fad78abf6c..0ebdd612c06 100644 --- a/packages/web3-net/types/index.d.ts +++ b/packages/web3-net/types/index.d.ts @@ -17,22 +17,6 @@ * @date 2018 */ -import {provider} from 'web3-providers'; -import {AbstractWeb3Module, Web3ModuleOptions} from 'web3-core'; -import * as net from 'net'; +import { NetworkBase } from 'web3-core'; -export class Network extends AbstractWeb3Module { - constructor( - provider: provider, - net?: net.Socket|null, - options?: Web3ModuleOptions - ); - - getNetworkType(callback?: (error: Error, returnValue: string) => void): Promise; - - getId(callback?: (error: Error, id: number) => void): Promise; - - isListening(callback?: (error: Error, listening: boolean) => void): Promise; - - getPeerCount(callback?: (error: Error, peerCount: number) => void): Promise; -} +export class Network extends NetworkBase {} diff --git a/packages/web3-net/types/tests/network-test.ts b/packages/web3-net/types/tests/network-test.ts index ffc10abbc17..d43efeccb0e 100644 --- a/packages/web3-net/types/tests/network-test.ts +++ b/packages/web3-net/types/tests/network-test.ts @@ -17,24 +17,32 @@ * @date 2018 */ -import {Network} from 'web3-net'; +import { Network } from 'web3-net'; const network = new Network('http://localhost:5000'); // $ExpectType Promise -network.getNetworkType((error, returnValue) => { console.log(returnValue) }); +network.getNetworkType((error, returnValue) => { + console.log(returnValue); +}); // $ExpectType Promise network.getId(); // $ExpectType Promise -network.getId((error: Error, id: number) => { console.log(id) }); +network.getId((error: Error, id: number) => { + console.log(id); +}); // $ExpectType Promise network.isListening(); // $ExpectType Promise -network.isListening((error: Error, listening: boolean) => { console.log(listening) }); +network.isListening((error: Error, listening: boolean) => { + console.log(listening); +}); // $ExpectType Promise network.getPeerCount(); // $ExpectType Promise -network.getPeerCount((error: Error, peerCount: number) => { console.log(peerCount) }); +network.getPeerCount((error: Error, peerCount: number) => { + console.log(peerCount); +}); diff --git a/packages/web3-shh/types/index.d.ts b/packages/web3-shh/types/index.d.ts index bf48986283c..db0ce8a8737 100644 --- a/packages/web3-shh/types/index.d.ts +++ b/packages/web3-shh/types/index.d.ts @@ -17,10 +17,9 @@ * @date 2018 */ -import {AbstractWeb3Module, Web3ModuleOptions} from 'web3-core'; -import {provider} from 'web3-providers'; -import {Network} from 'web3-net'; import * as net from 'net'; +import { AbstractWeb3Module, provider, Web3ModuleOptions } from 'web3-core'; +import { Network } from 'web3-net'; export class Shh extends AbstractWeb3Module { constructor( diff --git a/packages/web3-shh/types/tests/shh-test.ts b/packages/web3-shh/types/tests/shh-test.ts index 7a08cbc2431..106c2cb62af 100644 --- a/packages/web3-shh/types/tests/shh-test.ts +++ b/packages/web3-shh/types/tests/shh-test.ts @@ -17,7 +17,7 @@ * @date 2018 */ -import {Shh, Info, Notification} from 'web3-shh'; +import { Info, Notification, Shh } from 'web3-shh'; const shh = new Shh('https://localhost:5000'); @@ -82,7 +82,9 @@ shh.newKeyPair(); shh.newKeyPair((error: Error, key: string) => {}); // $ExpectType Promise -shh.addPrivateKey('0x8bda3abeb454847b515fa9b404cede50b1cc63cfdeddd4999d074284b4c21e15'); +shh.addPrivateKey( + '0x8bda3abeb454847b515fa9b404cede50b1cc63cfdeddd4999d074284b4c21e15' +); // $ExpectType Promise shh.addPrivateKey( '0x8bda3abeb454847b515fa9b404cede50b1cc63cfdeddd4999d074284b4c21e15', @@ -90,7 +92,9 @@ shh.addPrivateKey( ); // $ExpectType Promise -shh.deleteKeyPair('3e22b9ffc2387e18636e0a3d0c56b023264c16e78a2adcba1303cefc685e610f'); +shh.deleteKeyPair( + '3e22b9ffc2387e18636e0a3d0c56b023264c16e78a2adcba1303cefc685e610f' +); // $ExpectType Promise shh.deleteKeyPair( '3e22b9ffc2387e18636e0a3d0c56b023264c16e78a2adcba1303cefc685e610f', @@ -98,7 +102,9 @@ shh.deleteKeyPair( ); // $ExpectType Promise -shh.hasKeyPair('fe22b9ffc2387e18636e0a3d0c56b023264c16e78a2adcba1303cefc685e610f'); +shh.hasKeyPair( + 'fe22b9ffc2387e18636e0a3d0c56b023264c16e78a2adcba1303cefc685e610f' +); // $ExpectType Promise shh.hasKeyPair( 'fe22b9ffc2387e18636e0a3d0c56b023264c16e78a2adcba1303cefc685e610f', @@ -106,7 +112,9 @@ shh.hasKeyPair( ); // $ExpectType Promise -shh.getPublicKey('3e22b9ffc2387e18636e0a3d0c56b023264c16e78a2adcba1303cefc685e610f'); +shh.getPublicKey( + '3e22b9ffc2387e18636e0a3d0c56b023264c16e78a2adcba1303cefc685e610f' +); // $ExpectType Promise shh.getPublicKey( '3e22b9ffc2387e18636e0a3d0c56b023264c16e78a2adcba1303cefc685e610f', @@ -114,7 +122,9 @@ shh.getPublicKey( ); // $ExpectType Promise -shh.getPrivateKey('3e22b9ffc2387e18636e0a3d0c56b023264c16e78a2adcba1303cefc685e610f'); +shh.getPrivateKey( + '3e22b9ffc2387e18636e0a3d0c56b023264c16e78a2adcba1303cefc685e610f' +); // $ExpectType Promise shh.getPrivateKey( '3e22b9ffc2387e18636e0a3d0c56b023264c16e78a2adcba1303cefc685e610f', @@ -127,17 +137,27 @@ shh.newSymKey(); shh.newSymKey((error: Error, key: string) => {}); // $ExpectType Promise -shh.addSymKey('0x5e11b9ffc2387e18636e0a3d0c56b023264c16e78a2adcba1303cefc685e610f'); +shh.addSymKey( + '0x5e11b9ffc2387e18636e0a3d0c56b023264c16e78a2adcba1303cefc685e610f' +); // $ExpectType Promise -shh.addSymKey('0x5e11b9ffc2387e18636e0a3d0c56b023264c16e78a2adcba1303cefc685e610f', (error: Error, key: string) => {}); +shh.addSymKey( + '0x5e11b9ffc2387e18636e0a3d0c56b023264c16e78a2adcba1303cefc685e610f', + (error: Error, key: string) => {} +); // $ExpectType Promise shh.generateSymKeyFromPassword('Never use this password - password!'); // $ExpectType Promise -shh.generateSymKeyFromPassword('Never use this password - password!', (error: Error, key: string) => {}); +shh.generateSymKeyFromPassword( + 'Never use this password - password!', + (error: Error, key: string) => {} +); // $ExpectType Promise -shh.hasSymKey('f6dcf21ed6a17bd78d8c4c63195ab997b3b65ea683705501eae82d32667adc92'); +shh.hasSymKey( + 'f6dcf21ed6a17bd78d8c4c63195ab997b3b65ea683705501eae82d32667adc92' +); // $ExpectType Promise shh.hasSymKey( 'f6dcf21ed6a17bd78d8c4c63195ab997b3b65ea683705501eae82d32667adc92', @@ -145,12 +165,19 @@ shh.hasSymKey( ); // $ExpectType Promise -shh.getSymKey('af33b9ffc2387e18636e0a3d0c56b023264c16e78a2adcba1303cefc685e610f'); +shh.getSymKey( + 'af33b9ffc2387e18636e0a3d0c56b023264c16e78a2adcba1303cefc685e610f' +); // $ExpectType Promise -shh.getSymKey('af33b9ffc2387e18636e0a3d0c56b023264c16e78a2adcba1303cefc685e610f', (error: Error, key: string) => {}); +shh.getSymKey( + 'af33b9ffc2387e18636e0a3d0c56b023264c16e78a2adcba1303cefc685e610f', + (error: Error, key: string) => {} +); // $ExpectType Promise -shh.deleteSymKey('bf31b9ffc2387e18636e0a3d0c56b023264c16e78a2adcba1303cefc685e610f'); +shh.deleteSymKey( + 'bf31b9ffc2387e18636e0a3d0c56b023264c16e78a2adcba1303cefc685e610f' +); // $ExpectType Promise shh.deleteSymKey( 'bf31b9ffc2387e18636e0a3d0c56b023264c16e78a2adcba1303cefc685e610f', @@ -183,7 +210,8 @@ shh.post( // $ExpectType Subscribe shh.subscribe('messages', { - symKeyID: 'bf31b9ffc2387e18636e0a3d0c56b023264c16e78a2adcba1303cefc685e610f', + symKeyID: + 'bf31b9ffc2387e18636e0a3d0c56b023264c16e78a2adcba1303cefc685e610f', sig: '0x04d1574d4eab8f3dde4d2dc7ed2c4d699d77cbbdd09167b8fffa099652ce4df00c4c6e0263eafe05007a46fdf0c8d32b11aeabcd3abbc7b2bc2bb967368a68e9c6', ttl: 20, @@ -194,7 +222,8 @@ shh.subscribe('messages', { shh.subscribe( 'messages', { - symKeyID: 'bf31b9ffc2387e18636e0a3d0c56b023264c16e78a2adcba1303cefc685e610f', + symKeyID: + 'bf31b9ffc2387e18636e0a3d0c56b023264c16e78a2adcba1303cefc685e610f', sig: '0x04d1574d4eab8f3dde4d2dc7ed2c4d699d77cbbdd09167b8fffa099652ce4df00c4c6e0263eafe05007a46fdf0c8d32b11aeabcd3abbc7b2bc2bb967368a68e9c6', ttl: 20, @@ -208,7 +237,11 @@ shh.subscribe( shh.newMessageFilter(); // $ExpectType Promise -shh.deleteMessageFilter('2b47fbafb3cce24570812a82e6e93cd9e2551bbc4823f6548ff0d82d2206b326'); +shh.deleteMessageFilter( + '2b47fbafb3cce24570812a82e6e93cd9e2551bbc4823f6548ff0d82d2206b326' +); // $ExpectType Promise -shh.getFilterMessages('2b47fbafb3cce24570812a82e6e93cd9e2551bbc4823f6548ff0d82d2206b326'); +shh.getFilterMessages( + '2b47fbafb3cce24570812a82e6e93cd9e2551bbc4823f6548ff0d82d2206b326' +); diff --git a/packages/web3-utils/types/index.d.ts b/packages/web3-utils/types/index.d.ts index d3a1104131f..afdb12d385f 100644 --- a/packages/web3-utils/types/index.d.ts +++ b/packages/web3-utils/types/index.d.ts @@ -21,7 +21,6 @@ */ import BN = require('bn.js'); -import {Buffer} from 'buffer'; export type Unit = | 'noether' From a6f20de3921c0f50db18b1c57129da9e810cc6c4 Mon Sep 17 00:00:00 2001 From: Josh Stevens Date: Tue, 15 Oct 2019 14:02:58 +0100 Subject: [PATCH 087/124] feat: web3-bzz types --- packages/web3-bzz/types/index.d.ts | 40 +++++++++++++++++++++++++++ packages/web3-bzz/types/tsconfig.json | 17 ++++++++++++ packages/web3-bzz/types/tslint.json | 11 ++++++++ 3 files changed, 68 insertions(+) create mode 100644 packages/web3-bzz/types/index.d.ts create mode 100644 packages/web3-bzz/types/tsconfig.json create mode 100644 packages/web3-bzz/types/tslint.json diff --git a/packages/web3-bzz/types/index.d.ts b/packages/web3-bzz/types/index.d.ts new file mode 100644 index 00000000000..a15722313a6 --- /dev/null +++ b/packages/web3-bzz/types/index.d.ts @@ -0,0 +1,40 @@ +/* + This file is part of web3.js. + web3.js is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + web3.js is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + You should have received a copy of the GNU Lesser General Public License + along with web3.js. If not, see . +*/ +/** + * @file index.d.ts + * @author Josh Stevens + * @date 2018 + */ + +export class Bzz { + constructor(provider: any); + + setProvider(provider: any): boolean; + + givenProvider: any; + currentProvider: string | null; + + upload(data: any): Promise; + + download(bzzHash: string, localPath?: string): Promise; + + pick: Pick; + BatchRequest: new () => any; +} + +export interface Pick { + file: () => Promise; + directory: () => Promise; + data: () => Promise; +} diff --git a/packages/web3-bzz/types/tsconfig.json b/packages/web3-bzz/types/tsconfig.json new file mode 100644 index 00000000000..bf0cfa6d681 --- /dev/null +++ b/packages/web3-bzz/types/tsconfig.json @@ -0,0 +1,17 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": ["es6"], + "target": "es6", + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "strictFunctionTypes": true, + "noEmit": true, + "allowSyntheticDefaultImports": false, + "baseUrl": ".", + "paths": { + "web3-bzz": ["."] + } + } +} diff --git a/packages/web3-bzz/types/tslint.json b/packages/web3-bzz/types/tslint.json new file mode 100644 index 00000000000..871d605704b --- /dev/null +++ b/packages/web3-bzz/types/tslint.json @@ -0,0 +1,11 @@ +{ + "extends": "dtslint/dtslint.json", + "rules": { + "semicolon": false, + "no-import-default-of-export-equals": false, + "file-name-casing": [true, "kebab-case"], + "whitespace": false, + "no-unnecessary-class": false, + "unified-signatures": false + } +} From b46a13f970aefebf68fa239e235a579dea1b56f3 Mon Sep 17 00:00:00 2001 From: Josh Stevens Date: Tue, 15 Oct 2019 14:03:09 +0100 Subject: [PATCH 088/124] feat: web3-bzz dependencies --- packages/web3-bzz/README.md | 8 +- packages/web3-bzz/package-lock.json | 337 ++++++++++++++++++++++++++++ packages/web3-bzz/package.json | 9 + 3 files changed, 350 insertions(+), 4 deletions(-) diff --git a/packages/web3-bzz/README.md b/packages/web3-bzz/README.md index b52b05fec61..766be66f0ff 100644 --- a/packages/web3-bzz/README.md +++ b/packages/web3-bzz/README.md @@ -2,7 +2,7 @@ This is a sub package of [web3.js][repo] -This is the swarm package. +This is the swarm package. Please read the [documentation][docs] for more. ## Installation @@ -24,7 +24,6 @@ npm run-script build-all Then include `dist/web3-bzz.js` in your html file. This will expose the `Web3Personal` object on the window object. - ## Usage ```js @@ -34,8 +33,9 @@ var Web3Bzz = require('web3-bzz'); var bzz = new Web3Bzz('http://swarm-gateways.net'); ``` +## Types + +All the typescript typings are placed in the types folder. [docs]: http://web3js.readthedocs.io/en/1.0/ [repo]: https://github.com/ethereum/web3.js - - diff --git a/packages/web3-bzz/package-lock.json b/packages/web3-bzz/package-lock.json index d97a94d54fb..81ccaf69816 100644 --- a/packages/web3-bzz/package-lock.json +++ b/packages/web3-bzz/package-lock.json @@ -4,6 +4,26 @@ "lockfileVersion": 1, "requires": true, "dependencies": { + "@babel/code-frame": { + "version": "7.5.5", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.5.5.tgz", + "integrity": "sha512-27d4lZoomVyo51VegxI20xZPuSHusqbQag/ztrBC7wegWoQ1nLREPVSKSW8byhTlzTKyNE4ifaTA6lCp7JjpFw==", + "dev": true, + "requires": { + "@babel/highlight": "^7.0.0" + } + }, + "@babel/highlight": { + "version": "7.5.0", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.5.0.tgz", + "integrity": "sha512-7dV4eu9gBxoM0dAnj/BCFDW9LFU0zvTrkq0ugM7pnHEgguOEeOz1so2ZghEdzviYzQEED0r4EAgpsBChKy1TRQ==", + "dev": true, + "requires": { + "chalk": "^2.0.0", + "esutils": "^2.0.2", + "js-tokens": "^4.0.0" + } + }, "@sindresorhus/is": { "version": "0.14.0", "resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-0.14.0.tgz", @@ -17,6 +37,17 @@ "defer-to-connect": "^1.0.1" } }, + "@types/node": { + "version": "10.14.21", + "resolved": "https://registry.npmjs.org/@types/node/-/node-10.14.21.tgz", + "integrity": "sha512-nuFlRdBiqbF+PJIEVxm2jLFcQWN7q7iWEJGsBV4n7v1dbI9qXB8im2pMMKMCUZe092sQb5SQft2DHfuQGK5hqQ==" + }, + "@types/parsimmon": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/@types/parsimmon/-/parsimmon-1.10.0.tgz", + "integrity": "sha512-bsTIJFVQv7jnvNiC42ld2pQW2KRI+pAG243L+iATvqzy3X6+NH1obz2itRKDZZ8VVhN3wjwYax/VBGCcXzgTqQ==", + "dev": true + }, "accepts": { "version": "1.3.7", "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.7.tgz", @@ -37,6 +68,24 @@ "uri-js": "^4.2.2" } }, + "ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, + "requires": { + "color-convert": "^1.9.0" + } + }, + "argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "dev": true, + "requires": { + "sprintf-js": "~1.0.2" + } + }, "array-flatten": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", @@ -75,6 +124,12 @@ "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.8.0.tgz", "integrity": "sha512-ReZxvNHIOv88FlT7rxcXIIC0fPt4KZqZbOlivyWtXLt8ESx84zd3kMC6iK5jVeS2qt+g7ftS7ye4fi06X5rtRQ==" }, + "balanced-match": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", + "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", + "dev": true + }, "base64-js": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.3.0.tgz", @@ -124,6 +179,16 @@ "type-is": "~1.6.17" } }, + "brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "requires": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, "brorand": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/brorand/-/brorand-1.1.0.tgz", @@ -176,6 +241,12 @@ "resolved": "https://registry.npmjs.org/buffer-to-arraybuffer/-/buffer-to-arraybuffer-0.0.5.tgz", "integrity": "sha1-YGSkD6dutDxyOrqe+PbhIW0QURo=" }, + "builtin-modules": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-1.1.1.tgz", + "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=", + "dev": true + }, "bytes": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.0.tgz", @@ -215,6 +286,17 @@ "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz", "integrity": "sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw=" }, + "chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dev": true, + "requires": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + } + }, "chownr": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/chownr/-/chownr-1.1.1.tgz", @@ -228,6 +310,21 @@ "mimic-response": "^1.0.0" } }, + "color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dev": true, + "requires": { + "color-name": "1.1.3" + } + }, + "color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", + "dev": true + }, "combined-stream": { "version": "1.0.8", "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", @@ -244,6 +341,12 @@ "graceful-readlink": ">= 1.0.0" } }, + "concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", + "dev": true + }, "content-disposition": { "version": "0.5.3", "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.3.tgz", @@ -404,6 +507,16 @@ "object-keys": "^1.0.12" } }, + "definitelytyped-header-parser": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/definitelytyped-header-parser/-/definitelytyped-header-parser-1.2.0.tgz", + "integrity": "sha512-xpg8uu/2YD/reaVsZV4oJ4g7UDYFqQGWvT1W9Tsj6q4VtWBSaig38Qgah0ZMnQGF9kAsAim08EXDO1nSi0+Nog==", + "dev": true, + "requires": { + "@types/parsimmon": "^1.3.0", + "parsimmon": "^1.2.0" + } + }, "delayed-stream": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", @@ -419,11 +532,52 @@ "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.0.4.tgz", "integrity": "sha1-l4hXRCxEdJ5CBmE+N5RiBYJqvYA=" }, + "diff": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.1.tgz", + "integrity": "sha512-s2+XdvhPCOF01LRQBC8hf4vhbVmI2CGS5aZnxLJlT5FtdhPCDFq80q++zK2KlrVorVDdL5BOGZ/VfLrVtYNF+Q==", + "dev": true + }, "dom-walk": { "version": "0.1.1", "resolved": "https://registry.npmjs.org/dom-walk/-/dom-walk-0.1.1.tgz", "integrity": "sha1-ZyIm3HTI95mtNTB9+TaroRrNYBg=" }, + "dtslint": { + "version": "0.4.2", + "resolved": "https://registry.npmjs.org/dtslint/-/dtslint-0.4.2.tgz", + "integrity": "sha512-ph4GXLw3HYzlQMJOFcpCqWHuL3MxJ/344OR7wn0wlQGchQGTIVNsSUl8iKEMatpy2geNMysgA9fQa6xVhHOkTQ==", + "dev": true, + "requires": { + "definitelytyped-header-parser": "github:Microsoft/definitelytyped-header-parser#production", + "fs-extra": "^6.0.1", + "strip-json-comments": "^2.0.1", + "tslint": "^5.12.0", + "typescript": "^3.7.0-dev.20191015" + }, + "dependencies": { + "definitelytyped-header-parser": { + "version": "github:Microsoft/definitelytyped-header-parser#d957ad0bb2f4ecb60ac04f734e0b38fbc8e70b8a", + "from": "github:Microsoft/definitelytyped-header-parser#production", + "dev": true, + "requires": { + "@types/parsimmon": "^1.3.0", + "parsimmon": "^1.2.0" + } + }, + "fs-extra": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-6.0.1.tgz", + "integrity": "sha512-GnyIkKhhzXZUWFCaJzvyDLEEgDkPfb4/TPvJCJVuS8MWZgoSsErf++QpiAlDnKFcqhRlm+tIOcencCjyJE6ZCA==", + "dev": true, + "requires": { + "graceful-fs": "^4.1.2", + "jsonfile": "^4.0.0", + "universalify": "^0.1.0" + } + } + } + }, "duplexer3": { "version": "0.1.4", "resolved": "https://registry.npmjs.org/duplexer3/-/duplexer3-0.1.4.tgz", @@ -498,6 +652,24 @@ "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", "integrity": "sha1-Aljq5NPQwJdN4cFpGI7wBR0dGYg=" }, + "escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", + "dev": true + }, + "esprima": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "dev": true + }, + "esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true + }, "etag": { "version": "1.8.1", "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", @@ -657,6 +829,12 @@ "minipass": "^2.2.1" } }, + "fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", + "dev": true + }, "function-bind": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", @@ -678,6 +856,20 @@ "assert-plus": "^1.0.0" } }, + "glob": { + "version": "7.1.4", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.4.tgz", + "integrity": "sha512-hkLPepehmnKk41pUGm3sYxoFs/umurYfYJCerbXEyFIWcAzvpipAgVkBqqT9RBKMGjnq6kMuyYwha6csxbiM1A==", + "dev": true, + "requires": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.0.4", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + } + }, "global": { "version": "4.3.2", "resolved": "https://registry.npmjs.org/global/-/global-4.3.2.tgz", @@ -737,6 +929,12 @@ "function-bind": "^1.1.1" } }, + "has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", + "dev": true + }, "has-symbol-support-x": { "version": "1.4.2", "resolved": "https://registry.npmjs.org/has-symbol-support-x/-/has-symbol-support-x-1.4.2.tgz", @@ -814,6 +1012,16 @@ "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.1.13.tgz", "integrity": "sha512-4vf7I2LYV/HaWerSo3XmlMkp5eZ83i+/CDluXi/IGTs/O1sejBNhTtnxzmRZfvOUqj7lZjqHkeTvpgSFDlWZTg==" }, + "inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", + "dev": true, + "requires": { + "once": "^1.3.0", + "wrappy": "1" + } + }, "inherits": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", @@ -909,6 +1117,22 @@ "resolved": "https://registry.npmjs.org/js-sha3/-/js-sha3-0.6.1.tgz", "integrity": "sha1-W4n3enR3Z5h39YxKB1JAk0sflcA=" }, + "js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "dev": true + }, + "js-yaml": { + "version": "3.13.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.13.1.tgz", + "integrity": "sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw==", + "dev": true, + "requires": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + } + }, "jsbn": { "version": "0.1.1", "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz", @@ -1046,6 +1270,15 @@ "resolved": "https://registry.npmjs.org/minimalistic-crypto-utils/-/minimalistic-crypto-utils-1.0.1.tgz", "integrity": "sha1-9sAMHAsIIkblxNmd+4x8CDsrWCo=" }, + "minimatch": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", + "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", + "dev": true, + "requires": { + "brace-expansion": "^1.1.7" + } + }, "minimist": { "version": "0.0.8", "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", @@ -1177,6 +1410,24 @@ "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==" }, + "parsimmon": { + "version": "1.13.0", + "resolved": "https://registry.npmjs.org/parsimmon/-/parsimmon-1.13.0.tgz", + "integrity": "sha512-5UIrOCW+gjbILkjKPgTgmq8LKf8TT3Iy7kN2VD7OtQ81facKn8B4gG1X94jWqXYZsxG2KbJhrv/Yq/5H6BQn7A==", + "dev": true + }, + "path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", + "dev": true + }, + "path-parse": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz", + "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==", + "dev": true + }, "path-to-regexp": { "version": "0.1.7", "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz", @@ -1332,6 +1583,15 @@ } } }, + "resolve": { + "version": "1.12.0", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.12.0.tgz", + "integrity": "sha512-B/dOmuoAik5bKcD6s6nXDCjzUKnaDvdkRyAk6rsmsKLipWj4797iothd7jmmUhWTfinVMU+wc56rYKsit2Qy4w==", + "dev": true, + "requires": { + "path-parse": "^1.0.6" + } + }, "responselike": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/responselike/-/responselike-1.0.2.tgz", @@ -1358,6 +1618,12 @@ "commander": "~2.8.1" } }, + "semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "dev": true + }, "send": { "version": "0.17.1", "resolved": "https://registry.npmjs.org/send/-/send-0.17.1.tgz", @@ -1441,6 +1707,12 @@ "simple-concat": "^1.0.0" } }, + "sprintf-js": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", + "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", + "dev": true + }, "sshpk": { "version": "1.16.1", "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.16.1.tgz", @@ -1493,6 +1765,21 @@ "is-natural-number": "^4.0.1" } }, + "strip-json-comments": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", + "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=", + "dev": true + }, + "supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, + "requires": { + "has-flag": "^3.0.0" + } + }, "swarm-js": { "version": "0.1.39", "resolved": "https://registry.npmjs.org/swarm-js/-/swarm-js-0.1.39.tgz", @@ -1627,6 +1914,50 @@ } } }, + "tslib": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.10.0.tgz", + "integrity": "sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==", + "dev": true + }, + "tslint": { + "version": "5.20.0", + "resolved": "https://registry.npmjs.org/tslint/-/tslint-5.20.0.tgz", + "integrity": "sha512-2vqIvkMHbnx8acMogAERQ/IuINOq6DFqgF8/VDvhEkBqQh/x6SP0Y+OHnKth9/ZcHQSroOZwUQSN18v8KKF0/g==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.0.0", + "builtin-modules": "^1.1.1", + "chalk": "^2.3.0", + "commander": "^2.12.1", + "diff": "^4.0.1", + "glob": "^7.1.1", + "js-yaml": "^3.13.1", + "minimatch": "^3.0.4", + "mkdirp": "^0.5.1", + "resolve": "^1.3.2", + "semver": "^5.3.0", + "tslib": "^1.8.0", + "tsutils": "^2.29.0" + }, + "dependencies": { + "commander": { + "version": "2.20.3", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", + "dev": true + } + } + }, + "tsutils": { + "version": "2.29.0", + "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-2.29.0.tgz", + "integrity": "sha512-g5JVHCIJwzfISaXpXE1qvNalca5Jwob6FjI4AoPlqMusJ6ftFE7IkkFoMhVLRgK+4Kx3gkzb8UZK5t5yTTvEmA==", + "dev": true, + "requires": { + "tslib": "^1.8.1" + } + }, "tunnel-agent": { "version": "0.6.0", "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", @@ -1649,6 +1980,12 @@ "mime-types": "~2.1.24" } }, + "typescript": { + "version": "3.7.0-dev.20191015", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.7.0-dev.20191015.tgz", + "integrity": "sha512-Cpfj1n4pEUVKL+jtS0mkZodJffyMmf3Wk/UjyZMGX4fsjK5KBPJf3NUlyXij8I8p1E2CAomdS5NPFrAR+z8pKw==", + "dev": true + }, "ultron": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/ultron/-/ultron-1.1.1.tgz", diff --git a/packages/web3-bzz/package.json b/packages/web3-bzz/package.json index 894f1648833..264ea0f5d8b 100644 --- a/packages/web3-bzz/package.json +++ b/packages/web3-bzz/package.json @@ -7,10 +7,19 @@ "engines": { "node": ">=8.0.0" }, + "types": "types/index.d.ts", + "scripts": { + "dtslint": "dtslint types --onlyTestTsNext" + }, "main": "src/index.js", "dependencies": { + "@types/node": "^10.12.18", "got": "9.6.0", "swarm-js": "0.1.39", "underscore": "1.9.1" + }, + "devDependencies": { + "definitelytyped-header-parser": "^1.0.1", + "dtslint": "0.4.2" } } From adad8a1f2f98c7d54b9350bf5ffde2937bd52cab Mon Sep 17 00:00:00 2001 From: Josh Stevens Date: Tue, 15 Oct 2019 14:03:16 +0100 Subject: [PATCH 089/124] test: web3 bzz types --- packages/web3-bzz/types/tests/bzz-test.ts | 63 +++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 packages/web3-bzz/types/tests/bzz-test.ts diff --git a/packages/web3-bzz/types/tests/bzz-test.ts b/packages/web3-bzz/types/tests/bzz-test.ts new file mode 100644 index 00000000000..0657edf5b78 --- /dev/null +++ b/packages/web3-bzz/types/tests/bzz-test.ts @@ -0,0 +1,63 @@ +/* + This file is part of web3.js. + web3.js is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + web3.js is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + You should have received a copy of the GNU Lesser General Public License + along with web3.js. If not, see . +*/ +/** + * @file bzz-tests.ts + * @author Josh Stevens + * @date 2018 + */ + +import { Bzz } from 'web3-bzz'; + +const bzz = new Bzz('http://swarm-gateways.net'); + +// $ExpectType boolean +bzz.setProvider('test.com'); + +// $ExpectType boolean +bzz.setProvider({}); + +// $ExpectType any +bzz.givenProvider; + +// $ExpectType string | null +bzz.currentProvider; + +// $ExpectType Promise +bzz.upload('test file'); + +const dir = { + '/foo.txt': { type: 'text/plain', data: 'sample file' }, + '/bar.txt': { type: 'text/plain', data: 'another file' } +}; + +// $ExpectType Promise +bzz.upload(dir); +// $ExpectType Promise +bzz.upload({ + path: '/path/to/thing', + kind: 'directory', + defaultFile: '/index.html' +}); + +// $ExpectType Promise +bzz.pick.file(); + +// $ExpectType Promise +bzz.pick.directory(); + +// $ExpectType Promise +bzz.pick.data(); + +// $ExpectType any +new bzz.BatchRequest(); From d384e91a0c8cacc0c29dfdea7df4493204d7553b Mon Sep 17 00:00:00 2001 From: Josh Stevens Date: Tue, 15 Oct 2019 14:03:34 +0100 Subject: [PATCH 090/124] fix: resolve dtslint typing tests fails --- packages/web3-core-helpers/types/index.d.ts | 24 +- .../types/tests/formatters-test.ts | 22 +- packages/web3-core-method/types/index.d.ts | 4 +- .../types/tests/abstract-method-tests.ts | 4 +- packages/web3-core/types/index.d.ts | 10 +- packages/web3-eth-abi/types/index.d.ts | 16 +- .../types/tests/abi-coder-test.ts | 43 +- .../types/tests/accounts-tests.ts | 12 +- packages/web3-eth-contract/types/index.d.ts | 2 +- packages/web3-eth/types/index.d.ts | 379 +++++++++++++----- 10 files changed, 354 insertions(+), 162 deletions(-) diff --git a/packages/web3-core-helpers/types/index.d.ts b/packages/web3-core-helpers/types/index.d.ts index 8cee9c0354e..23e7bbfc586 100644 --- a/packages/web3-core-helpers/types/index.d.ts +++ b/packages/web3-core-helpers/types/index.d.ts @@ -13,7 +13,7 @@ */ /** * @file index.d.ts - * @author Samuel Furter + * @author Josh Stevens * @date 2018 */ @@ -35,25 +35,25 @@ export class formatters { blockNumber: string | number ): string | number; - static outputBlockFormatter(block: object): object; // TODO: Create Block interface + static outputBlockFormatter(block: any): any; // TODO: Create Block interface - static txInputFormatter(txObject: object): object; + static txInputFormatter(txObject: any): any; - static inputCallFormatter(txObject: object): object; + static inputCallFormatter(txObject: any): any; - static inputTransactionFormatter(txObject: object): object; + static inputTransactionFormatter(txObject: any): any; - static outputTransactionFormatter(receipt: object): object; + static outputTransactionFormatter(receipt: any): any; - static outputTransactionReceiptFormatter(receipt: object): object; + static outputTransactionReceiptFormatter(receipt: any): any; - static inputLogFormatter(log: object): object; + static inputLogFormatter(log: any): any; - static outputLogFormatter(log: object): object; + static outputLogFormatter(log: any): any; - static inputPostFormatter(post: object): object; // TODO: Create Post interface + static inputPostFormatter(post: any): any; // TODO: Create Post interface - static outputPostFormatter(post: object): object; // TODO: Create Post interface + static outputPostFormatter(post: any): any; // TODO: Create Post interface - static outputSyncingFormatter(result: object): object; // TODO: Create SyncLog interface + static outputSyncingFormatter(result: any): any; // TODO: Create SyncLog interface } diff --git a/packages/web3-core-helpers/types/tests/formatters-test.ts b/packages/web3-core-helpers/types/tests/formatters-test.ts index 476ab8a814f..90c57c20a41 100644 --- a/packages/web3-core-helpers/types/tests/formatters-test.ts +++ b/packages/web3-core-helpers/types/tests/formatters-test.ts @@ -34,35 +34,35 @@ formatters.isPredefinedBlockNumber('latest'); // $ExpectType string | number formatters.inputBlockNumberFormatter('0x0'); -// $ExpectType object +// $ExpectType any formatters.outputBlockFormatter({}); -// $ExpectType object +// $ExpectType any formatters.txInputFormatter({}); -// $ExpectType object +// $ExpectType any formatters.inputCallFormatter({}); -// $ExpectType object +// $ExpectType any formatters.inputTransactionFormatter({}); -// $ExpectType object +// $ExpectType any formatters.outputTransactionFormatter({}); -// $ExpectType object +// $ExpectType any formatters.outputTransactionReceiptFormatter({}); -// $ExpectType object +// $ExpectType any formatters.inputLogFormatter({}); -// $ExpectType object +// $ExpectType any formatters.outputLogFormatter({}); -// $ExpectType object +// $ExpectType any formatters.inputPostFormatter({}); -// $ExpectType object +// $ExpectType any formatters.outputPostFormatter({}); -// $ExpectType object +// $ExpectType any formatters.outputSyncingFormatter({}); diff --git a/packages/web3-core-method/types/index.d.ts b/packages/web3-core-method/types/index.d.ts index 23b683d5010..8c68dbc0b37 100644 --- a/packages/web3-core-method/types/index.d.ts +++ b/packages/web3-core-method/types/index.d.ts @@ -50,13 +50,13 @@ export class AbstractMethod { afterExecution(response: any): any; - execute(): Promise | any | string; + execute(): Promise | string; } export class AbstractMethodFactory { constructor(utils: Utils, formatters: formatters); - methods: null | object; + methods: any; hasMethod: boolean; createMethod(name: string, moduleInstance: any): AbstractMethod; diff --git a/packages/web3-core-method/types/tests/abstract-method-tests.ts b/packages/web3-core-method/types/tests/abstract-method-tests.ts index 469fa8a479e..70e2f385148 100644 --- a/packages/web3-core-method/types/tests/abstract-method-tests.ts +++ b/packages/web3-core-method/types/tests/abstract-method-tests.ts @@ -35,7 +35,7 @@ abstractMethod.utils; // $ExpectType formatters abstractMethod.formatters; -// $ExpectType PromiEvent +// $ExpectType any abstractMethod.promiEvent; // $ExpectType string @@ -68,5 +68,5 @@ abstractMethod.beforeExecution({}); // $ExpectType any abstractMethod.afterExecution('response'); -// $ExpectType string | PromiEvent | Promise +// $ExpectType string | Promise abstractMethod.execute(); diff --git a/packages/web3-core/types/index.d.ts b/packages/web3-core/types/index.d.ts index 9727bf0a5d5..c1a32d7f39a 100644 --- a/packages/web3-core/types/index.d.ts +++ b/packages/web3-core/types/index.d.ts @@ -440,7 +440,7 @@ export interface BatchResponse { } export class ProviderDetector { - static detect(): provider | undefined; + static detect(): provider; } export class ProvidersModuleFactory { @@ -454,7 +454,7 @@ export class ProvidersModuleFactory { createIpcProvider(path: string, net: net.Server): IpcProvider; - createWeb3EthereumProvider(connection: object): Web3EthereumProvider; + createWeb3EthereumProvider(connection: any): Web3EthereumProvider; } export class HttpProvider { @@ -558,7 +558,7 @@ export class ProviderResolver { export class JsonRpcResponseValidator { static validate( response: JsonRpcPayload[] | JsonRpcPayload, - payload?: object + payload?: any ): boolean; static isResponseItemValid(response: JsonRpcPayload): boolean; @@ -596,9 +596,9 @@ export interface WebsocketProviderOptions { host?: string; timeout?: number; reconnectDelay?: number; - headers?: {}; + headers?: any; protocol?: string; clientConfig?: string; - requestOptions?: object; + requestOptions?: any; origin?: string; } diff --git a/packages/web3-eth-abi/types/index.d.ts b/packages/web3-eth-abi/types/index.d.ts index f25d5034494..4343b578967 100644 --- a/packages/web3-eth-abi/types/index.d.ts +++ b/packages/web3-eth-abi/types/index.d.ts @@ -17,22 +17,26 @@ * @date 2018 */ -import {AbiInput, AbiItem} from 'web3-utils'; +import { AbiInput, AbiItem } from 'web3-utils'; export class AbiCoder { encodeFunctionSignature(functionName: string | AbiItem): string; encodeEventSignature(functionName: string | AbiItem): string; - encodeParameter(type: string | {}, parameter: any): string; + encodeParameter(type: any, parameter: any): string; - encodeParameters(types: Array, paramaters: any[]): string; + encodeParameters(types: any[], paramaters: any[]): string; encodeFunctionCall(abiItem: AbiItem, params: string[]): string; - decodeParameter(type: string | {}, hex: string): {[key: string]: any;}; + decodeParameter(type: any, hex: string): { [key: string]: any }; - decodeParameters(types: Array, hex: string): {[key: string]: any;}; + decodeParameters(types: any[], hex: string): { [key: string]: any }; - decodeLog(inputs: AbiInput[], hex: string, topics: string[]): {[key: string]: string;}; + decodeLog( + inputs: AbiInput[], + hex: string, + topics: string[] + ): { [key: string]: string }; } diff --git a/packages/web3-eth-abi/types/tests/abi-coder-test.ts b/packages/web3-eth-abi/types/tests/abi-coder-test.ts index 6fe4abc7798..0ed89e58c0a 100644 --- a/packages/web3-eth-abi/types/tests/abi-coder-test.ts +++ b/packages/web3-eth-abi/types/tests/abi-coder-test.ts @@ -124,11 +124,6 @@ abiCoder.encodeParameter( } ); -// $ExpectError -abiCoder.encodeParameter(null, ['0xdf3234', '0xfdfd']); -// $ExpectError -abiCoder.encodeParameter(undefined, ['0xdf3234', '0xfdfd']); - // $ExpectType string abiCoder.encodeParameters(['uint256', 'string'], ['2345675643', 'Hello!%']); // $ExpectType string @@ -219,8 +214,8 @@ abiCoder.encodeFunctionCall( name: 'myString' } ] - // $ExpectError }, + // $ExpectError 345 ); @@ -238,8 +233,8 @@ abiCoder.encodeFunctionCall( name: 'myString' } ] - // $ExpectError }, + // $ExpectError [345] ); @@ -257,8 +252,8 @@ abiCoder.encodeFunctionCall( name: 'myString' } ] - // $ExpectError }, + // $ExpectError true ); @@ -276,8 +271,8 @@ abiCoder.encodeFunctionCall( name: 'myString' } ] - // $ExpectError }, + // $ExpectError null ); @@ -295,8 +290,8 @@ abiCoder.encodeFunctionCall( name: 'myString' } ] - // $ExpectError }, + // $ExpectError undefined ); @@ -382,28 +377,32 @@ abiCoder.decodeParameters( '0x0000000000000000000000000000000000000000000000000000000000000010' ); -// $ExpectError abiCoder.decodeParameters( + // $ExpectError 'uint256', '0x0000000000000000000000000000000000000000000000000000000000000010' ); -// $ExpectError + abiCoder.decodeParameters( + // $ExpectError 453, '0x0000000000000000000000000000000000000000000000000000000000000010' ); -// $ExpectError + abiCoder.decodeParameters( + // $ExpectError true, '0x0000000000000000000000000000000000000000000000000000000000000010' ); -// $ExpectError + abiCoder.decodeParameters( + // $ExpectError null, '0x0000000000000000000000000000000000000000000000000000000000000010' ); -// $ExpectError + abiCoder.decodeParameters( + // $ExpectError undefined, '0x0000000000000000000000000000000000000000000000000000000000000010' ); @@ -447,8 +446,8 @@ abiCoder.decodeLog( ] ); -// $ExpectError abiCoder.decodeLog( + // $ExpectError ['string'], `0x0000000000000000000000000000000000000000000000000000000000000020000000000000000 000000000000000000000000000000000000000000000000748656c6c6f2521000000000000000000 @@ -458,8 +457,9 @@ abiCoder.decodeLog( '0x0000000000000000000000000000000000000000000000000000000000000010' ] ); -// $ExpectError + abiCoder.decodeLog( + // $ExpectError [345], `0x0000000000000000000000000000000000000000000000000000000000000020000000000000000 000000000000000000000000000000000000000000000000748656c6c6f2521000000000000000000 @@ -469,8 +469,9 @@ abiCoder.decodeLog( '0x0000000000000000000000000000000000000000000000000000000000000010' ] ); -// $ExpectError + abiCoder.decodeLog( + // $ExpectError true, `0x0000000000000000000000000000000000000000000000000000000000000020000000000000000 000000000000000000000000000000000000000000000000748656c6c6f2521000000000000000000 @@ -480,8 +481,9 @@ abiCoder.decodeLog( '0x0000000000000000000000000000000000000000000000000000000000000010' ] ); -// $ExpectError + abiCoder.decodeLog( + // $ExpectError [undefined], `0x0000000000000000000000000000000000000000000000000000000000000020000000000000000 000000000000000000000000000000000000000000000000748656c6c6f2521000000000000000000 @@ -491,8 +493,9 @@ abiCoder.decodeLog( '0x0000000000000000000000000000000000000000000000000000000000000010' ] ); -// $ExpectError + abiCoder.decodeLog( + // $ExpectError [null], `0x0000000000000000000000000000000000000000000000000000000000000020000000000000000 000000000000000000000000000000000000000000000000748656c6c6f2521000000000000000000 diff --git a/packages/web3-eth-accounts/types/tests/accounts-tests.ts b/packages/web3-eth-accounts/types/tests/accounts-tests.ts index 6b5c4886f70..88c8cda8bb4 100644 --- a/packages/web3-eth-accounts/types/tests/accounts-tests.ts +++ b/packages/web3-eth-accounts/types/tests/accounts-tests.ts @@ -125,13 +125,13 @@ accounts.decrypt( 'test!' ); -// $ExpectType Wallet +// $ExpectType WalletBase accounts.wallet.create(2); // $ExpectType Account accounts.wallet[0]; -// $ExpectType Wallet +// $ExpectType WalletBase accounts.wallet.create( 2, '54674321§3456764321§345674321§3453647544±±±§±±±!!!43534534534534' @@ -155,13 +155,13 @@ accounts.wallet.remove('0xF0109fC8DF283027b6285cc889F5aA624EaC1F55'); // $ExpectType boolean accounts.wallet.remove(3); -// $ExpectType Wallet +// $ExpectType WalletBase accounts.wallet.clear(); // $ExpectType EncryptedKeystoreV3Json[] accounts.wallet.encrypt('test'); -// $ExpectType Wallet +// $ExpectType WalletBase accounts.wallet.decrypt( [ { @@ -215,8 +215,8 @@ accounts.wallet.decrypt( // $ExpectType boolean accounts.wallet.save('test#!$'); -// $ExpectType Wallet +// $ExpectType WalletBase accounts.wallet.load('test#!$'); -// $ExpectType Wallet +// $ExpectType WalletBase accounts.wallet.load('test#!$', 'myWalletKey'); diff --git a/packages/web3-eth-contract/types/index.d.ts b/packages/web3-eth-contract/types/index.d.ts index 48a29e5db3e..d0890815e4c 100644 --- a/packages/web3-eth-contract/types/index.d.ts +++ b/packages/web3-eth-contract/types/index.d.ts @@ -133,7 +133,7 @@ export interface ContractOptions extends Web3ModuleOptions { } export interface EventOptions { - filter?: {}; + filter?: any; fromBlock?: number; toBlock?: string | number; topics?: any[]; diff --git a/packages/web3-eth/types/index.d.ts b/packages/web3-eth/types/index.d.ts index d7cd9a75ea7..c31bf4389c2 100644 --- a/packages/web3-eth/types/index.d.ts +++ b/packages/web3-eth/types/index.d.ts @@ -20,7 +20,18 @@ */ import * as net from 'net'; -import { AbstractWeb3Module, Log, PromiEvent, provider, RLPEncodedTransaction, Transaction, TransactionConfig, TransactionReceipt, TransactionSigner, Web3ModuleOptions } from 'web3-core'; +import { + AbstractWeb3Module, + Log, + PromiEvent, + provider, + RLPEncodedTransaction, + Transaction, + TransactionConfig, + TransactionReceipt, + TransactionSigner, + Web3ModuleOptions +} from 'web3-core'; import { AbiCoder } from 'web3-eth-abi'; import { Accounts } from 'web3-eth-accounts'; import { Contract, ContractOptions } from 'web3-eth-contract'; @@ -37,8 +48,12 @@ export class Eth extends AbstractWeb3Module { options?: Web3ModuleOptions ); - Contract: new (jsonInterface: AbiItem[] | AbiItem, address?: string, options?: ContractOptions) => Contract; - Iban: new(iban: string) => Iban; + Contract: new ( + jsonInterface: AbiItem[] | AbiItem, + address?: string, + options?: ContractOptions + ) => Contract; + Iban: new (iban: string) => Iban; personal: Personal; accounts: Accounts; ens: Ens; @@ -48,96 +63,264 @@ export class Eth extends AbstractWeb3Module { clearSubscriptions(): Promise; - subscribe(type: 'logs', options?: LogsOptions, callback?: (error: Error, log: Log) => void): Subscription; - subscribe(type: 'syncing', options?: null, callback?: (error: Error, result: Syncing) => void): Subscription; - subscribe(type: 'newBlockHeaders', options?: null, callback?: (error: Error, blockHeader: BlockHeader) => void): Subscription; - subscribe(type: 'pendingTransactions', options?: null, callback?: (error: Error, transactionHash: string) => void): Subscription; + subscribe( + type: 'logs', + options?: LogsOptions, + callback?: (error: Error, log: Log) => void + ): Subscription; + subscribe( + type: 'syncing', + options?: null, + callback?: (error: Error, result: Syncing) => void + ): Subscription; + subscribe( + type: 'newBlockHeaders', + options?: null, + callback?: (error: Error, blockHeader: BlockHeader) => void + ): Subscription; + subscribe( + type: 'pendingTransactions', + options?: null, + callback?: (error: Error, transactionHash: string) => void + ): Subscription; subscribe( type: 'pendingTransactions' | 'logs' | 'syncing' | 'newBlockHeaders', options?: null | LogsOptions, - callback?: (error: Error, item: Log | Syncing | BlockHeader | string) => void + callback?: ( + error: Error, + item: Log | Syncing | BlockHeader | string + ) => void ): Subscription; - getProtocolVersion(callback?: (error: Error, protocolVersion: string) => void): Promise; + getProtocolVersion( + callback?: (error: Error, protocolVersion: string) => void + ): Promise; - isSyncing(callback?: (error: Error, syncing: Syncing) => void): Promise; + isSyncing( + callback?: (error: Error, syncing: Syncing) => void + ): Promise; - getCoinbase(callback?: (error: Error, coinbaseAddress: string) => void): Promise; + getCoinbase( + callback?: (error: Error, coinbaseAddress: string) => void + ): Promise; - isMining(callback?: (error: Error, mining: boolean) => void): Promise; + isMining( + callback?: (error: Error, mining: boolean) => void + ): Promise; - getHashrate(callback?: (error: Error, hashes: number) => void): Promise; + getHashrate( + callback?: (error: Error, hashes: number) => void + ): Promise; - getGasPrice(callback?: (error: Error, gasPrice: string) => void): Promise; + getGasPrice( + callback?: (error: Error, gasPrice: string) => void + ): Promise; - getAccounts(callback?: (error: Error, accounts: string[]) => void): Promise; + getAccounts( + callback?: (error: Error, accounts: string[]) => void + ): Promise; - getBlockNumber(callback?: (error: Error, blockNumber: number) => void): Promise; + getBlockNumber( + callback?: (error: Error, blockNumber: number) => void + ): Promise; getBalance(address: string): Promise; getBalance(address: string, defaultBlock: string | number): Promise; - getBalance(address: string, callback?: (error: Error, balance: string) => void): Promise; - getBalance(address: string, defaultBlock: string | number, callback?: (error: Error, balance: string) => void): Promise; + getBalance( + address: string, + callback?: (error: Error, balance: string) => void + ): Promise; + getBalance( + address: string, + defaultBlock: string | number, + callback?: (error: Error, balance: string) => void + ): Promise; getStorageAt(address: string, position: number): Promise; - getStorageAt(address: string, position: number, defaultBlock: number | string): Promise; - getStorageAt(address: string, position: number, callback?: (error: Error, storageAt: string) => void): Promise; - getStorageAt(address: string, position: number, defaultBlock: number | string, callback?: (error: Error, storageAt: string) => void): Promise; + getStorageAt( + address: string, + position: number, + defaultBlock: number | string + ): Promise; + getStorageAt( + address: string, + position: number, + callback?: (error: Error, storageAt: string) => void + ): Promise; + getStorageAt( + address: string, + position: number, + defaultBlock: number | string, + callback?: (error: Error, storageAt: string) => void + ): Promise; getCode(address: string): Promise; getCode(address: string, defaultBlock: string | number): Promise; - getCode(address: string, callback?: (error: Error, code: string) => void): Promise; - getCode(address: string, defaultBlock: string | number, callback?: (error: Error, code: string) => void): Promise; + getCode( + address: string, + callback?: (error: Error, code: string) => void + ): Promise; + getCode( + address: string, + defaultBlock: string | number, + callback?: (error: Error, code: string) => void + ): Promise; getBlock(blockHashOrBlockNumber: string | number): Promise; - getBlock(blockHashOrBlockNumber: string | number, returnTransactionObjects: boolean): Promise; - getBlock(blockHashOrBlockNumber: string | number, callback?: (error: Error, block: Block) => void): Promise; - getBlock(blockHashOrBlockNumber: string | number, returnTransactionObjects: boolean, callback?: (error: Error, block: Block) => void): Promise; - - getBlockTransactionCount(blockHashOrBlockNumber: string | number, callback?: (error: Error, numberOfTransactions: number) => void): Promise; - - getUncle(blockHashOrBlockNumber: string | number, uncleIndex: number): Promise - getUncle(blockHashOrBlockNumber: string | number, uncleIndex: number, returnTransactionObjects: boolean): Promise - getUncle(blockHashOrBlockNumber: string | number, uncleIndex: number, callback?: (error: Error, uncle: {}) => void): Promise - getUncle(blockHashOrBlockNumber: string | number, uncleIndex: number, returnTransactionObjects: boolean, callback?: (error: Error, uncle: {}) => void): Promise - - getTransaction(transactionHash: string, callback?: (error: Error, transaction: Transaction) => void): Promise; - - getPendingTransactions(callback?: (error: Error, result: Transaction[]) => void): Promise; - - getTransactionFromBlock(hashStringOrNumber: string | number, indexNumber: number, callback?: (error: Error, transaction: Transaction) => void): Promise; - - getTransactionReceipt(hash: string, callback?: (error: Error, transactionReceipt: TransactionReceipt) => void): Promise; + getBlock( + blockHashOrBlockNumber: string | number, + returnTransactionObjects: boolean + ): Promise; + getBlock( + blockHashOrBlockNumber: string | number, + callback?: (error: Error, block: Block) => void + ): Promise; + getBlock( + blockHashOrBlockNumber: string | number, + returnTransactionObjects: boolean, + callback?: (error: Error, block: Block) => void + ): Promise; + + getBlockTransactionCount( + blockHashOrBlockNumber: string | number, + callback?: (error: Error, numberOfTransactions: number) => void + ): Promise; + + getUncle( + blockHashOrBlockNumber: string | number, + uncleIndex: number + ): Promise; + getUncle( + blockHashOrBlockNumber: string | number, + uncleIndex: number, + returnTransactionObjects: boolean + ): Promise; + getUncle( + blockHashOrBlockNumber: string | number, + uncleIndex: number, + callback?: (error: Error, uncle: any) => void + ): Promise; + getUncle( + blockHashOrBlockNumber: string | number, + uncleIndex: number, + returnTransactionObjects: boolean, + callback?: (error: Error, uncle: any) => void + ): Promise; + + getTransaction( + transactionHash: string, + callback?: (error: Error, transaction: Transaction) => void + ): Promise; + + getPendingTransactions( + callback?: (error: Error, result: Transaction[]) => void + ): Promise; + + getTransactionFromBlock( + hashStringOrNumber: string | number, + indexNumber: number, + callback?: (error: Error, transaction: Transaction) => void + ): Promise; + + getTransactionReceipt( + hash: string, + callback?: ( + error: Error, + transactionReceipt: TransactionReceipt + ) => void + ): Promise; getTransactionCount(address: string): Promise; - getTransactionCount(address: string, defaultBlock: number | string): Promise; - getTransactionCount(address: string, callback?: (error: Error, count: number) => void): Promise; - getTransactionCount(address: string, defaultBlock: number | string, callback?: (error: Error, count: number) => void): Promise; - - sendTransaction(transactionConfig: TransactionConfig, callback?: (error: Error, hash: string) => void): PromiEvent; - - sendSignedTransaction(signedTransactionData: string, callback?: (error: Error, hash: string) => void): PromiEvent - - sign(dataToSign: string, address: string | number, callback?: (error: Error, signature: string) => void): Promise; - - signTransaction(transactionConfig: TransactionConfig, callback?: (error: Error, signedTransaction: RLPEncodedTransaction) => void): Promise; - signTransaction(transactionConfig: TransactionConfig, address: string): Promise; - signTransaction(transactionConfig: TransactionConfig, address: string, callback: (error: Error, signedTransaction: RLPEncodedTransaction) => void): Promise; + getTransactionCount( + address: string, + defaultBlock: number | string + ): Promise; + getTransactionCount( + address: string, + callback?: (error: Error, count: number) => void + ): Promise; + getTransactionCount( + address: string, + defaultBlock: number | string, + callback?: (error: Error, count: number) => void + ): Promise; + + sendTransaction( + transactionConfig: TransactionConfig, + callback?: (error: Error, hash: string) => void + ): PromiEvent; + + sendSignedTransaction( + signedTransactionData: string, + callback?: (error: Error, hash: string) => void + ): PromiEvent; + + sign( + dataToSign: string, + address: string | number, + callback?: (error: Error, signature: string) => void + ): Promise; + + signTransaction( + transactionConfig: TransactionConfig, + callback?: ( + error: Error, + signedTransaction: RLPEncodedTransaction + ) => void + ): Promise; + signTransaction( + transactionConfig: TransactionConfig, + address: string + ): Promise; + signTransaction( + transactionConfig: TransactionConfig, + address: string, + callback: ( + error: Error, + signedTransaction: RLPEncodedTransaction + ) => void + ): Promise; call(transactionConfig: TransactionConfig): Promise; - call(transactionConfig: TransactionConfig, defaultBlock?: number | string): Promise; - call(transactionConfig: TransactionConfig, callback?: (error: Error, data: string) => void): Promise; - call(transactionConfig: TransactionConfig, defaultBlock: number | string, callback: (error: Error, data: string) => void): Promise; - - estimateGas(transactionConfig: TransactionConfig, callback?: (error: Error, gas: number) => void): Promise; - - getPastLogs(options: PastLogsOptions, callback?: (error: Error, logs: Log[]) => void): Promise; - - getWork(callback?: (error: Error, result: string[]) => void): Promise; - - submitWork(data: [string, string, string], callback?: (error: Error, result: boolean) => void): Promise; - - getProof(address: string, storageKey: string[], blockNumber: number | string | "latest" | "earliest", callback?: (error: Error, result: GetProof) => void): Promise; + call( + transactionConfig: TransactionConfig, + defaultBlock?: number | string + ): Promise; + call( + transactionConfig: TransactionConfig, + callback?: (error: Error, data: string) => void + ): Promise; + call( + transactionConfig: TransactionConfig, + defaultBlock: number | string, + callback: (error: Error, data: string) => void + ): Promise; + + estimateGas( + transactionConfig: TransactionConfig, + callback?: (error: Error, gas: number) => void + ): Promise; + + getPastLogs( + options: PastLogsOptions, + callback?: (error: Error, logs: Log[]) => void + ): Promise; + + getWork( + callback?: (error: Error, result: string[]) => void + ): Promise; + + submitWork( + data: [string, string, string], + callback?: (error: Error, result: boolean) => void + ): Promise; + + getProof( + address: string, + storageKey: string[], + blockNumber: number | string | 'latest' | 'earliest', + callback?: (error: Error, result: GetProof) => void + ): Promise; } export interface Methods { @@ -162,27 +345,27 @@ export interface Syncing { } export interface BlockHeader { - number: number - hash: string - parentHash: string - nonce: string - sha3Uncles: string - logsBloom: string - transactionRoot: string - stateRoot: string - receiptRoot: string - miner: string - extraData: string - gasLimit: number - gasUsed: number - timestamp: number | string + number: number; + hash: string; + parentHash: string; + nonce: string; + sha3Uncles: string; + logsBloom: string; + transactionRoot: string; + stateRoot: string; + receiptRoot: string; + miner: string; + extraData: string; + gasLimit: number; + gasUsed: number; + timestamp: number | string; } export interface Block extends BlockHeader { transactions: Transaction[] | string[]; - size: number - difficulty: number - totalDifficulty: number + size: number; + difficulty: number; + totalDifficulty: number; uncles: string[]; } @@ -196,35 +379,37 @@ export interface PastLogsOptions { export interface LogsOptions { fromBlock?: number | string; address?: string | string[]; - topics?: Array + topics?: Array; } export interface Subscription { id: string; - options: {}; + options: any; subscribe(callback?: (error: Error, result: T) => void): Subscription; - unsubscribe(callback?: (error: Error, result: boolean) => void): Promise; + unsubscribe( + callback?: (error: Error, result: boolean) => void + ): Promise; - on(type: 'data', handler: (data: T) => void): Subscription + on(type: 'data', handler: (data: T) => void): Subscription; - on(type: 'changed', handler: (data: T) => void): Subscription + on(type: 'changed', handler: (data: T) => void): Subscription; - on(type: 'error', handler: (data: Error) => void): Subscription + on(type: 'error', handler: (data: Error) => void): Subscription; } export interface GetProof { jsonrpc: string; id: number; result: { - address: string; - accountProof: string[]; - balance: string; - codeHash: string; - nonce: string; - storageHash: string; - storageProof: StorageProof[]; + address: string; + accountProof: string[]; + balance: string; + codeHash: string; + nonce: string; + storageHash: string; + storageProof: StorageProof[]; }; } From e1eb225b62d89fdc19ce8f68252783d911b4e815 Mon Sep 17 00:00:00 2001 From: Josh Stevens Date: Tue, 15 Oct 2019 14:25:03 +0100 Subject: [PATCH 091/124] feat: web3-provider-http types --- packages/web3-providers-http/README.md | 10 +- .../web3-providers-http/package-lock.json | 387 ++++++++++++++++++ packages/web3-providers-http/package.json | 8 + packages/web3-providers-http/types/index.d.ts | 26 ++ .../web3-providers-http/types/tsconfig.json | 17 + .../web3-providers-http/types/tslint.json | 10 + 6 files changed, 453 insertions(+), 5 deletions(-) create mode 100644 packages/web3-providers-http/types/index.d.ts create mode 100644 packages/web3-providers-http/types/tsconfig.json create mode 100644 packages/web3-providers-http/types/tslint.json diff --git a/packages/web3-providers-http/README.md b/packages/web3-providers-http/README.md index ac46853390c..5c9a0a52087 100644 --- a/packages/web3-providers-http/README.md +++ b/packages/web3-providers-http/README.md @@ -1,8 +1,8 @@ # web3-providers-http -*This is a sub package of [web3.js][repo]* +_This is a sub package of [web3.js][repo]_ -This is a HTTP provider for [web3.js][repo]. +This is a HTTP provider for [web3.js][repo]. Please read the [documentation][docs] for more. ## Installation @@ -24,7 +24,6 @@ npm run-script build-all Then include `dist/web3-providers-http.js` in your html file. This will expose the `Web3HttpProvider` object on the window object. - ## Usage ```js @@ -38,8 +37,9 @@ var options = { var http = new Web3HttpProvider('http://localhost:8545', options); ``` +## Types + +All the typescript typings are placed in the types folder. [docs]: http://web3js.readthedocs.io/en/1.0/ [repo]: https://github.com/ethereum/web3.js - - diff --git a/packages/web3-providers-http/package-lock.json b/packages/web3-providers-http/package-lock.json index 99c530a6e97..5e981a422c2 100644 --- a/packages/web3-providers-http/package-lock.json +++ b/packages/web3-providers-http/package-lock.json @@ -4,11 +4,398 @@ "lockfileVersion": 1, "requires": true, "dependencies": { + "@babel/code-frame": { + "version": "7.5.5", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.5.5.tgz", + "integrity": "sha512-27d4lZoomVyo51VegxI20xZPuSHusqbQag/ztrBC7wegWoQ1nLREPVSKSW8byhTlzTKyNE4ifaTA6lCp7JjpFw==", + "dev": true, + "requires": { + "@babel/highlight": "^7.0.0" + } + }, + "@babel/highlight": { + "version": "7.5.0", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.5.0.tgz", + "integrity": "sha512-7dV4eu9gBxoM0dAnj/BCFDW9LFU0zvTrkq0ugM7pnHEgguOEeOz1so2ZghEdzviYzQEED0r4EAgpsBChKy1TRQ==", + "dev": true, + "requires": { + "chalk": "^2.0.0", + "esutils": "^2.0.2", + "js-tokens": "^4.0.0" + } + }, + "@types/parsimmon": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/@types/parsimmon/-/parsimmon-1.10.0.tgz", + "integrity": "sha512-bsTIJFVQv7jnvNiC42ld2pQW2KRI+pAG243L+iATvqzy3X6+NH1obz2itRKDZZ8VVhN3wjwYax/VBGCcXzgTqQ==", + "dev": true + }, + "ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, + "requires": { + "color-convert": "^1.9.0" + } + }, + "argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "dev": true, + "requires": { + "sprintf-js": "~1.0.2" + } + }, + "balanced-match": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", + "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", + "dev": true + }, + "brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "requires": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "builtin-modules": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-1.1.1.tgz", + "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=", + "dev": true + }, + "chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dev": true, + "requires": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + } + }, + "color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dev": true, + "requires": { + "color-name": "1.1.3" + } + }, + "color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", + "dev": true + }, + "commander": { + "version": "2.20.3", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", + "dev": true + }, + "concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", + "dev": true + }, "cookiejar": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/cookiejar/-/cookiejar-2.1.2.tgz", "integrity": "sha512-Mw+adcfzPxcPeI+0WlvRrr/3lGVO0bD75SxX6811cxSh1Wbxx7xZBGK1eVtDf6si8rg2lhnUjsVLMFMfbRIuwA==" }, + "definitelytyped-header-parser": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/definitelytyped-header-parser/-/definitelytyped-header-parser-1.2.0.tgz", + "integrity": "sha512-xpg8uu/2YD/reaVsZV4oJ4g7UDYFqQGWvT1W9Tsj6q4VtWBSaig38Qgah0ZMnQGF9kAsAim08EXDO1nSi0+Nog==", + "dev": true, + "requires": { + "@types/parsimmon": "^1.3.0", + "parsimmon": "^1.2.0" + } + }, + "diff": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.1.tgz", + "integrity": "sha512-s2+XdvhPCOF01LRQBC8hf4vhbVmI2CGS5aZnxLJlT5FtdhPCDFq80q++zK2KlrVorVDdL5BOGZ/VfLrVtYNF+Q==", + "dev": true + }, + "dtslint": { + "version": "0.4.2", + "resolved": "https://registry.npmjs.org/dtslint/-/dtslint-0.4.2.tgz", + "integrity": "sha512-ph4GXLw3HYzlQMJOFcpCqWHuL3MxJ/344OR7wn0wlQGchQGTIVNsSUl8iKEMatpy2geNMysgA9fQa6xVhHOkTQ==", + "dev": true, + "requires": { + "definitelytyped-header-parser": "github:Microsoft/definitelytyped-header-parser#production", + "fs-extra": "^6.0.1", + "strip-json-comments": "^2.0.1", + "tslint": "^5.12.0", + "typescript": "^3.7.0-dev.20191015" + }, + "dependencies": { + "definitelytyped-header-parser": { + "version": "github:Microsoft/definitelytyped-header-parser#d957ad0bb2f4ecb60ac04f734e0b38fbc8e70b8a", + "from": "github:Microsoft/definitelytyped-header-parser#production", + "dev": true, + "requires": { + "@types/parsimmon": "^1.3.0", + "parsimmon": "^1.2.0" + } + } + } + }, + "escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", + "dev": true + }, + "esprima": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "dev": true + }, + "esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true + }, + "fs-extra": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-6.0.1.tgz", + "integrity": "sha512-GnyIkKhhzXZUWFCaJzvyDLEEgDkPfb4/TPvJCJVuS8MWZgoSsErf++QpiAlDnKFcqhRlm+tIOcencCjyJE6ZCA==", + "dev": true, + "requires": { + "graceful-fs": "^4.1.2", + "jsonfile": "^4.0.0", + "universalify": "^0.1.0" + } + }, + "fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", + "dev": true + }, + "glob": { + "version": "7.1.4", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.4.tgz", + "integrity": "sha512-hkLPepehmnKk41pUGm3sYxoFs/umurYfYJCerbXEyFIWcAzvpipAgVkBqqT9RBKMGjnq6kMuyYwha6csxbiM1A==", + "dev": true, + "requires": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.0.4", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + } + }, + "graceful-fs": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.2.tgz", + "integrity": "sha512-IItsdsea19BoLC7ELy13q1iJFNmd7ofZH5+X/pJr90/nRoPEX0DJo1dHDbgtYWOhJhcCgMDTOw84RZ72q6lB+Q==", + "dev": true + }, + "has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", + "dev": true + }, + "inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", + "dev": true, + "requires": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "dev": true + }, + "js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "dev": true + }, + "js-yaml": { + "version": "3.13.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.13.1.tgz", + "integrity": "sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw==", + "dev": true, + "requires": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + } + }, + "jsonfile": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", + "integrity": "sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss=", + "dev": true, + "requires": { + "graceful-fs": "^4.1.6" + } + }, + "minimatch": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", + "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", + "dev": true, + "requires": { + "brace-expansion": "^1.1.7" + } + }, + "minimist": { + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", + "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=", + "dev": true + }, + "mkdirp": { + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", + "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", + "dev": true, + "requires": { + "minimist": "0.0.8" + } + }, + "once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", + "dev": true, + "requires": { + "wrappy": "1" + } + }, + "parsimmon": { + "version": "1.13.0", + "resolved": "https://registry.npmjs.org/parsimmon/-/parsimmon-1.13.0.tgz", + "integrity": "sha512-5UIrOCW+gjbILkjKPgTgmq8LKf8TT3Iy7kN2VD7OtQ81facKn8B4gG1X94jWqXYZsxG2KbJhrv/Yq/5H6BQn7A==", + "dev": true + }, + "path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", + "dev": true + }, + "path-parse": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz", + "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==", + "dev": true + }, + "resolve": { + "version": "1.12.0", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.12.0.tgz", + "integrity": "sha512-B/dOmuoAik5bKcD6s6nXDCjzUKnaDvdkRyAk6rsmsKLipWj4797iothd7jmmUhWTfinVMU+wc56rYKsit2Qy4w==", + "dev": true, + "requires": { + "path-parse": "^1.0.6" + } + }, + "semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "dev": true + }, + "sprintf-js": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", + "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", + "dev": true + }, + "strip-json-comments": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", + "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=", + "dev": true + }, + "supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, + "requires": { + "has-flag": "^3.0.0" + } + }, + "tslib": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.10.0.tgz", + "integrity": "sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==", + "dev": true + }, + "tslint": { + "version": "5.20.0", + "resolved": "https://registry.npmjs.org/tslint/-/tslint-5.20.0.tgz", + "integrity": "sha512-2vqIvkMHbnx8acMogAERQ/IuINOq6DFqgF8/VDvhEkBqQh/x6SP0Y+OHnKth9/ZcHQSroOZwUQSN18v8KKF0/g==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.0.0", + "builtin-modules": "^1.1.1", + "chalk": "^2.3.0", + "commander": "^2.12.1", + "diff": "^4.0.1", + "glob": "^7.1.1", + "js-yaml": "^3.13.1", + "minimatch": "^3.0.4", + "mkdirp": "^0.5.1", + "resolve": "^1.3.2", + "semver": "^5.3.0", + "tslib": "^1.8.0", + "tsutils": "^2.29.0" + } + }, + "tsutils": { + "version": "2.29.0", + "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-2.29.0.tgz", + "integrity": "sha512-g5JVHCIJwzfISaXpXE1qvNalca5Jwob6FjI4AoPlqMusJ6ftFE7IkkFoMhVLRgK+4Kx3gkzb8UZK5t5yTTvEmA==", + "dev": true, + "requires": { + "tslib": "^1.8.1" + } + }, + "typescript": { + "version": "3.7.0-dev.20191015", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.7.0-dev.20191015.tgz", + "integrity": "sha512-Cpfj1n4pEUVKL+jtS0mkZodJffyMmf3Wk/UjyZMGX4fsjK5KBPJf3NUlyXij8I8p1E2CAomdS5NPFrAR+z8pKw==", + "dev": true + }, + "universalify": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", + "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", + "dev": true + }, + "wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", + "dev": true + }, "xhr2-cookies": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/xhr2-cookies/-/xhr2-cookies-1.1.0.tgz", diff --git a/packages/web3-providers-http/package.json b/packages/web3-providers-http/package.json index 5d6542f0c95..684d678ccd9 100644 --- a/packages/web3-providers-http/package.json +++ b/packages/web3-providers-http/package.json @@ -7,9 +7,17 @@ "engines": { "node": ">=8.0.0" }, + "scripts": { + "dtslint": "dtslint types --onlyTestTsNext" + }, + "types": "types/index.d.ts", "main": "src/index.js", "dependencies": { "web3-core-helpers": "1.2.1", "xhr2-cookies": "1.1.0" + }, + "devDependencies": { + "definitelytyped-header-parser": "^1.0.1", + "dtslint": "^0.4.2" } } diff --git a/packages/web3-providers-http/types/index.d.ts b/packages/web3-providers-http/types/index.d.ts new file mode 100644 index 00000000000..3abae4f3a90 --- /dev/null +++ b/packages/web3-providers-http/types/index.d.ts @@ -0,0 +1,26 @@ +export class HttpProvider { + constructor(host: string, options?: HttpProviderOptions); + + host: string; + connected: boolean; + + supportsSubscriptions(): boolean; + + send(method: string, parameters: any[]): Promise; + + sendBatch(methods: any, moduleInstance: any): Promise; + + disconnect(): boolean; +} + +export interface HttpProviderOptions { + host?: string; + timeout?: number; + headers?: HttpHeader[]; + withCredentials?: boolean; +} + +export interface HttpHeader { + name: string; + value: string; +} diff --git a/packages/web3-providers-http/types/tsconfig.json b/packages/web3-providers-http/types/tsconfig.json new file mode 100644 index 00000000000..74e0aeeb3a8 --- /dev/null +++ b/packages/web3-providers-http/types/tsconfig.json @@ -0,0 +1,17 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": ["es6"], + "target": "es6", + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "strictFunctionTypes": true, + "noEmit": true, + "allowSyntheticDefaultImports": false, + "baseUrl": ".", + "paths": { + "web3-providers": ["."] + } + } +} diff --git a/packages/web3-providers-http/types/tslint.json b/packages/web3-providers-http/types/tslint.json new file mode 100644 index 00000000000..6429b0c446e --- /dev/null +++ b/packages/web3-providers-http/types/tslint.json @@ -0,0 +1,10 @@ +{ + "extends": "dtslint/dtslint.json", + "rules": { + "semicolon": false, + "no-import-default-of-export-equals": false, + "file-name-casing": [true, "kebab-case"], + "whitespace": false, + "no-unnecessary-class": false + } +} From 39c469ef63d8aa332e241079f408a0da7ec6e3c0 Mon Sep 17 00:00:00 2001 From: Josh Stevens Date: Tue, 15 Oct 2019 14:25:11 +0100 Subject: [PATCH 092/124] test: web3-provider-http tests --- .../types/tests/web3-provider-http-test.ts | 43 +++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 packages/web3-providers-http/types/tests/web3-provider-http-test.ts diff --git a/packages/web3-providers-http/types/tests/web3-provider-http-test.ts b/packages/web3-providers-http/types/tests/web3-provider-http-test.ts new file mode 100644 index 00000000000..f097d20d86c --- /dev/null +++ b/packages/web3-providers-http/types/tests/web3-provider-http-test.ts @@ -0,0 +1,43 @@ +/* + This file is part of web3.js. + + web3.js is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + web3.js is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License + along with web3.js. If not, see . +*/ +/** + * @file http-provider-test.ts + * @author Josh Stevens , Samuel Furter + * @date 2018 + */ + +import { HttpProvider } from 'web3-providers'; + +const httpProvider = new HttpProvider('http://localhost:8545', { + timeout: 20000, + headers: [ + { + name: 'Access-Control-Allow-Origin', + value: '*' + } + ], + withCredentials: false +}); + +// $ExpectType Promise +httpProvider.send('rpc_method', []); + +// $ExpectType Promise +httpProvider.sendBatch([], {}); + +// $ExpectType boolean +httpProvider.disconnect(); From 4d337cdd495da87265bf3b573ba1182b08c5028f Mon Sep 17 00:00:00 2001 From: Josh Stevens Date: Tue, 15 Oct 2019 14:25:39 +0100 Subject: [PATCH 093/124] refactor: rename to `tests` --- .../{web3-provider-http-test.ts => web3-provider-http-tests.ts} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename packages/web3-providers-http/types/tests/{web3-provider-http-test.ts => web3-provider-http-tests.ts} (100%) diff --git a/packages/web3-providers-http/types/tests/web3-provider-http-test.ts b/packages/web3-providers-http/types/tests/web3-provider-http-tests.ts similarity index 100% rename from packages/web3-providers-http/types/tests/web3-provider-http-test.ts rename to packages/web3-providers-http/types/tests/web3-provider-http-tests.ts From efb3157399a7e4ddc15218f1b7a94d8530081caa Mon Sep 17 00:00:00 2001 From: Josh Stevens Date: Tue, 15 Oct 2019 14:32:39 +0100 Subject: [PATCH 094/124] docs: add author to the http provider --- packages/web3-providers-http/types/index.d.ts | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/packages/web3-providers-http/types/index.d.ts b/packages/web3-providers-http/types/index.d.ts index 3abae4f3a90..6d417f78a6b 100644 --- a/packages/web3-providers-http/types/index.d.ts +++ b/packages/web3-providers-http/types/index.d.ts @@ -1,3 +1,25 @@ +/* + This file is part of web3.js. + + web3.js is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + web3.js is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License + along with web3.js. If not, see . +*/ +/** + * @file http-provider-test.ts + * @author Josh Stevens + * @date 2018 + */ + export class HttpProvider { constructor(host: string, options?: HttpProviderOptions); From c68ae46ee65f9f653c8d3ffeb9b9a463360f587c Mon Sep 17 00:00:00 2001 From: Josh Stevens Date: Tue, 15 Oct 2019 14:32:57 +0100 Subject: [PATCH 095/124] feat: install web3-provider-ipc new dev dependencies --- packages/web3-providers-ipc/package-lock.json | 1204 +++++++++++++++++ packages/web3-providers-ipc/package.json | 8 + 2 files changed, 1212 insertions(+) diff --git a/packages/web3-providers-ipc/package-lock.json b/packages/web3-providers-ipc/package-lock.json index 1c71a2d29d5..1c536a5f7db 100644 --- a/packages/web3-providers-ipc/package-lock.json +++ b/packages/web3-providers-ipc/package-lock.json @@ -4,11 +4,721 @@ "lockfileVersion": 1, "requires": true, "dependencies": { + "@babel/code-frame": { + "version": "7.5.5", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.5.5.tgz", + "integrity": "sha512-27d4lZoomVyo51VegxI20xZPuSHusqbQag/ztrBC7wegWoQ1nLREPVSKSW8byhTlzTKyNE4ifaTA6lCp7JjpFw==", + "dev": true, + "requires": { + "@babel/highlight": "^7.0.0" + } + }, + "@babel/highlight": { + "version": "7.5.0", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.5.0.tgz", + "integrity": "sha512-7dV4eu9gBxoM0dAnj/BCFDW9LFU0zvTrkq0ugM7pnHEgguOEeOz1so2ZghEdzviYzQEED0r4EAgpsBChKy1TRQ==", + "dev": true, + "requires": { + "chalk": "^2.0.0", + "esutils": "^2.0.2", + "js-tokens": "^4.0.0" + } + }, + "@types/parsimmon": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/@types/parsimmon/-/parsimmon-1.10.0.tgz", + "integrity": "sha512-bsTIJFVQv7jnvNiC42ld2pQW2KRI+pAG243L+iATvqzy3X6+NH1obz2itRKDZZ8VVhN3wjwYax/VBGCcXzgTqQ==", + "dev": true + }, + "ajv": { + "version": "6.10.2", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.10.2.tgz", + "integrity": "sha512-TXtUUEYHuaTEbLZWIKUr5pmBuhDLy+8KYtPYdcV8qC+pOZL+NKqYwvWSRrVXHn+ZmRRAu8vJTAznH7Oag6RVRw==", + "dev": true, + "requires": { + "fast-deep-equal": "^2.0.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + } + }, + "ansi-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", + "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", + "dev": true + }, + "ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, + "requires": { + "color-convert": "^1.9.0" + } + }, + "argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "dev": true, + "requires": { + "sprintf-js": "~1.0.2" + } + }, + "asn1": { + "version": "0.2.4", + "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.4.tgz", + "integrity": "sha512-jxwzQpLQjSmWXgwaCZE9Nz+glAG01yF1QnWgbhGwHI5A6FRIEY6IVqtHhIepHqI7/kyEyQEagBC5mBEFlIYvdg==", + "dev": true, + "requires": { + "safer-buffer": "~2.1.0" + } + }, + "assert-plus": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", + "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=", + "dev": true + }, + "asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=", + "dev": true + }, + "aws-sign2": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz", + "integrity": "sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg=", + "dev": true + }, + "aws4": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.8.0.tgz", + "integrity": "sha512-ReZxvNHIOv88FlT7rxcXIIC0fPt4KZqZbOlivyWtXLt8ESx84zd3kMC6iK5jVeS2qt+g7ftS7ye4fi06X5rtRQ==", + "dev": true + }, + "balanced-match": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", + "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", + "dev": true + }, + "bcrypt-pbkdf": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz", + "integrity": "sha1-pDAdOJtqQ/m2f/PKEaP2Y342Dp4=", + "dev": true, + "requires": { + "tweetnacl": "^0.14.3" + } + }, + "brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "requires": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "builtin-modules": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-1.1.1.tgz", + "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=", + "dev": true + }, + "camelcase": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", + "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", + "dev": true + }, + "caseless": { + "version": "0.12.0", + "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz", + "integrity": "sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw=", + "dev": true + }, + "chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dev": true, + "requires": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + } + }, + "cliui": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-4.1.0.tgz", + "integrity": "sha512-4FG+RSG9DL7uEwRUZXZn3SS34DiDPfzP0VOiEwtUWlE+AR2EIg+hSyvrIgUUfhdgR/UkAeW2QHgeP+hWrXs7jQ==", + "dev": true, + "requires": { + "string-width": "^2.1.1", + "strip-ansi": "^4.0.0", + "wrap-ansi": "^2.0.0" + } + }, + "code-point-at": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz", + "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=", + "dev": true + }, + "color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dev": true, + "requires": { + "color-name": "1.1.3" + } + }, + "color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", + "dev": true + }, + "combined-stream": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", + "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", + "dev": true, + "requires": { + "delayed-stream": "~1.0.0" + } + }, + "commander": { + "version": "2.20.3", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", + "dev": true + }, + "concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", + "dev": true + }, + "core-util-is": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", + "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=", + "dev": true + }, + "cross-spawn": { + "version": "6.0.5", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz", + "integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==", + "dev": true, + "requires": { + "nice-try": "^1.0.4", + "path-key": "^2.0.1", + "semver": "^5.5.0", + "shebang-command": "^1.2.0", + "which": "^1.2.9" + } + }, + "dashdash": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz", + "integrity": "sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA=", + "dev": true, + "requires": { + "assert-plus": "^1.0.0" + } + }, + "decamelize": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", + "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=", + "dev": true + }, + "definitelytyped-header-parser": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/definitelytyped-header-parser/-/definitelytyped-header-parser-1.2.0.tgz", + "integrity": "sha512-xpg8uu/2YD/reaVsZV4oJ4g7UDYFqQGWvT1W9Tsj6q4VtWBSaig38Qgah0ZMnQGF9kAsAim08EXDO1nSi0+Nog==", + "dev": true, + "requires": { + "@types/parsimmon": "^1.3.0", + "parsimmon": "^1.2.0" + } + }, + "delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=", + "dev": true + }, + "diff": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.1.tgz", + "integrity": "sha512-s2+XdvhPCOF01LRQBC8hf4vhbVmI2CGS5aZnxLJlT5FtdhPCDFq80q++zK2KlrVorVDdL5BOGZ/VfLrVtYNF+Q==", + "dev": true + }, + "download-file-sync": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/download-file-sync/-/download-file-sync-1.0.4.tgz", + "integrity": "sha1-0+PFQ/g29BA5RVuQNMcuNVsDYBk=", + "dev": true + }, + "dts-critic": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/dts-critic/-/dts-critic-1.2.0.tgz", + "integrity": "sha512-z6VI1Sz7xxy0BgN6YsWuG9hbRIfph3U9hwrfNHLnLzsq865VYyjo5xKKUgXPuqMgJ04BUF1LGYQJ+kWyWwvUvQ==", + "dev": true, + "requires": { + "definitelytyped-header-parser": "^1.2.0", + "download-file-sync": "^1.0.4", + "yargs": "^12.0.5" + } + }, + "dtslint": { + "version": "0.4.9", + "resolved": "https://registry.npmjs.org/dtslint/-/dtslint-0.4.9.tgz", + "integrity": "sha512-QKOfpKIcpJi38gXWQ1uzm/jFU+1xqPVjrow8PSgs1N7CeY819A0Lm1VvYdM4GD1i964B2QKUyJAAjWiK8YPzlA==", + "dev": true, + "requires": { + "definitelytyped-header-parser": "^1.0.1", + "dts-critic": "^1.0.1", + "fs-extra": "^6.0.1", + "request": "^2.88.0", + "strip-json-comments": "^2.0.1", + "tslint": "^5.12.0", + "typescript": "^3.7.0-dev.20191015" + } + }, + "ecc-jsbn": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz", + "integrity": "sha1-OoOpBOVDUyh4dMVkt1SThoSamMk=", + "dev": true, + "requires": { + "jsbn": "~0.1.0", + "safer-buffer": "^2.1.0" + } + }, + "end-of-stream": { + "version": "1.4.4", + "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", + "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", + "dev": true, + "requires": { + "once": "^1.4.0" + } + }, + "escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", + "dev": true + }, + "esprima": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "dev": true + }, + "esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true + }, + "execa": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/execa/-/execa-1.0.0.tgz", + "integrity": "sha512-adbxcyWV46qiHyvSp50TKt05tB4tK3HcmF7/nxfAdhnox83seTDbwnaqKO4sXRy7roHAIFqJP/Rw/AuEbX61LA==", + "dev": true, + "requires": { + "cross-spawn": "^6.0.0", + "get-stream": "^4.0.0", + "is-stream": "^1.1.0", + "npm-run-path": "^2.0.0", + "p-finally": "^1.0.0", + "signal-exit": "^3.0.0", + "strip-eof": "^1.0.0" + } + }, + "extend": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", + "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==", + "dev": true + }, + "extsprintf": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz", + "integrity": "sha1-lpGEQOMEGnpBT4xS48V06zw+HgU=", + "dev": true + }, + "fast-deep-equal": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-2.0.1.tgz", + "integrity": "sha1-ewUhjd+WZ79/Nwv3/bLLFf3Qqkk=", + "dev": true + }, + "fast-json-stable-stringify": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.0.0.tgz", + "integrity": "sha1-1RQsDK7msRifh9OnYREGT4bIu/I=", + "dev": true + }, + "find-up": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz", + "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==", + "dev": true, + "requires": { + "locate-path": "^3.0.0" + } + }, + "forever-agent": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz", + "integrity": "sha1-+8cfDEGt6zf5bFd60e1C2P2sypE=", + "dev": true + }, + "form-data": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.3.tgz", + "integrity": "sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ==", + "dev": true, + "requires": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.6", + "mime-types": "^2.1.12" + } + }, + "fs-extra": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-6.0.1.tgz", + "integrity": "sha512-GnyIkKhhzXZUWFCaJzvyDLEEgDkPfb4/TPvJCJVuS8MWZgoSsErf++QpiAlDnKFcqhRlm+tIOcencCjyJE6ZCA==", + "dev": true, + "requires": { + "graceful-fs": "^4.1.2", + "jsonfile": "^4.0.0", + "universalify": "^0.1.0" + } + }, + "fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", + "dev": true + }, + "get-caller-file": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-1.0.3.tgz", + "integrity": "sha512-3t6rVToeoZfYSGd8YoLFR2DJkiQrIiUrGcjvFX2mDw3bn6k2OtwHN0TNCLbBO+w8qTvimhDkv+LSscbJY1vE6w==", + "dev": true + }, + "get-stream": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-4.1.0.tgz", + "integrity": "sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w==", + "dev": true, + "requires": { + "pump": "^3.0.0" + } + }, + "getpass": { + "version": "0.1.7", + "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz", + "integrity": "sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo=", + "dev": true, + "requires": { + "assert-plus": "^1.0.0" + } + }, + "glob": { + "version": "7.1.4", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.4.tgz", + "integrity": "sha512-hkLPepehmnKk41pUGm3sYxoFs/umurYfYJCerbXEyFIWcAzvpipAgVkBqqT9RBKMGjnq6kMuyYwha6csxbiM1A==", + "dev": true, + "requires": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.0.4", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + } + }, + "graceful-fs": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.2.tgz", + "integrity": "sha512-IItsdsea19BoLC7ELy13q1iJFNmd7ofZH5+X/pJr90/nRoPEX0DJo1dHDbgtYWOhJhcCgMDTOw84RZ72q6lB+Q==", + "dev": true + }, + "har-schema": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz", + "integrity": "sha1-qUwiJOvKwEeCoNkDVSHyRzW37JI=", + "dev": true + }, + "har-validator": { + "version": "5.1.3", + "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.1.3.tgz", + "integrity": "sha512-sNvOCzEQNr/qrvJgc3UG/kD4QtlHycrzwS+6mfTrrSq97BvaYcPZZI1ZSqGSPR73Cxn4LKTD4PttRwfU7jWq5g==", + "dev": true, + "requires": { + "ajv": "^6.5.5", + "har-schema": "^2.0.0" + } + }, + "has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", + "dev": true + }, "http-https": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/http-https/-/http-https-1.0.0.tgz", "integrity": "sha1-L5CN1fHbQGjAWM1ubUzjkskTOJs=" }, + "http-signature": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz", + "integrity": "sha1-muzZJRFHcvPZW2WmCruPfBj7rOE=", + "dev": true, + "requires": { + "assert-plus": "^1.0.0", + "jsprim": "^1.2.2", + "sshpk": "^1.7.0" + } + }, + "inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", + "dev": true, + "requires": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "dev": true + }, + "invert-kv": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/invert-kv/-/invert-kv-2.0.0.tgz", + "integrity": "sha512-wPVv/y/QQ/Uiirj/vh3oP+1Ww+AWehmi1g5fFWGPF6IpCBCDVrhgHRMvrLfdYcwDh3QJbGXDW4JAuzxElLSqKA==", + "dev": true + }, + "is-fullwidth-code-point": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", + "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", + "dev": true + }, + "is-stream": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", + "integrity": "sha1-EtSj3U5o4Lec6428hBc66A2RykQ=", + "dev": true + }, + "is-typedarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", + "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=", + "dev": true + }, + "isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=", + "dev": true + }, + "isstream": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz", + "integrity": "sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo=", + "dev": true + }, + "js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "dev": true + }, + "js-yaml": { + "version": "3.13.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.13.1.tgz", + "integrity": "sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw==", + "dev": true, + "requires": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + } + }, + "jsbn": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz", + "integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM=", + "dev": true + }, + "json-schema": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.2.3.tgz", + "integrity": "sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM=", + "dev": true + }, + "json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true + }, + "json-stringify-safe": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", + "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=", + "dev": true + }, + "jsonfile": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", + "integrity": "sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss=", + "dev": true, + "requires": { + "graceful-fs": "^4.1.6" + } + }, + "jsprim": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.1.tgz", + "integrity": "sha1-MT5mvB5cwG5Di8G3SZwuXFastqI=", + "dev": true, + "requires": { + "assert-plus": "1.0.0", + "extsprintf": "1.3.0", + "json-schema": "0.2.3", + "verror": "1.10.0" + } + }, + "lcid": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/lcid/-/lcid-2.0.0.tgz", + "integrity": "sha512-avPEb8P8EGnwXKClwsNUgryVjllcRqtMYa49NTsbQagYuT1DcXnl1915oxWjoyGrXR6zH/Y0Zc96xWsPcoDKeA==", + "dev": true, + "requires": { + "invert-kv": "^2.0.0" + } + }, + "locate-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz", + "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==", + "dev": true, + "requires": { + "p-locate": "^3.0.0", + "path-exists": "^3.0.0" + } + }, + "map-age-cleaner": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/map-age-cleaner/-/map-age-cleaner-0.1.3.tgz", + "integrity": "sha512-bJzx6nMoP6PDLPBFmg7+xRKeFZvFboMrGlxmNj9ClvX53KrmvM5bXFXEWjbz4cz1AFn+jWJ9z/DJSz7hrs0w3w==", + "dev": true, + "requires": { + "p-defer": "^1.0.0" + } + }, + "mem": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/mem/-/mem-4.3.0.tgz", + "integrity": "sha512-qX2bG48pTqYRVmDB37rn/6PT7LcR8T7oAX3bf99u1Tt1nzxYfxkgqDwUwolPlXweM0XzBOBFzSx4kfp7KP1s/w==", + "dev": true, + "requires": { + "map-age-cleaner": "^0.1.1", + "mimic-fn": "^2.0.0", + "p-is-promise": "^2.0.0" + } + }, + "mime-db": { + "version": "1.40.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.40.0.tgz", + "integrity": "sha512-jYdeOMPy9vnxEqFRRo6ZvTZ8d9oPb+k18PKoYNYUe2stVEBPPwsln/qWzdbmaIvnhZ9v2P+CuecK+fpUfsV2mA==", + "dev": true + }, + "mime-types": { + "version": "2.1.24", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.24.tgz", + "integrity": "sha512-WaFHS3MCl5fapm3oLxU4eYDw77IQM2ACcxQ9RIxfaC3ooc6PFuBMGZZsYpvoXS5D5QTWPieo1jjLdAm3TBP3cQ==", + "dev": true, + "requires": { + "mime-db": "1.40.0" + } + }, + "mimic-fn": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", + "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", + "dev": true + }, + "minimatch": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", + "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", + "dev": true, + "requires": { + "brace-expansion": "^1.1.7" + } + }, + "minimist": { + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", + "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=", + "dev": true + }, + "mkdirp": { + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", + "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", + "dev": true, + "requires": { + "minimist": "0.0.8" + } + }, + "nice-try": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/nice-try/-/nice-try-1.0.5.tgz", + "integrity": "sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==", + "dev": true + }, + "npm-run-path": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-2.0.2.tgz", + "integrity": "sha1-NakjLfo11wZ7TLLd8jV7GHFTbF8=", + "dev": true, + "requires": { + "path-key": "^2.0.0" + } + }, + "number-is-nan": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz", + "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=", + "dev": true + }, + "oauth-sign": { + "version": "0.9.0", + "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.9.0.tgz", + "integrity": "sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ==", + "dev": true + }, "oboe": { "version": "2.1.4", "resolved": "https://registry.npmjs.org/oboe/-/oboe-2.1.4.tgz", @@ -17,10 +727,504 @@ "http-https": "^1.0.0" } }, + "once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", + "dev": true, + "requires": { + "wrappy": "1" + } + }, + "os-locale": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/os-locale/-/os-locale-3.1.0.tgz", + "integrity": "sha512-Z8l3R4wYWM40/52Z+S265okfFj8Kt2cC2MKY+xNi3kFs+XGI7WXu/I309QQQYbRW4ijiZ+yxs9pqEhJh0DqW3Q==", + "dev": true, + "requires": { + "execa": "^1.0.0", + "lcid": "^2.0.0", + "mem": "^4.0.0" + } + }, + "p-defer": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/p-defer/-/p-defer-1.0.0.tgz", + "integrity": "sha1-n26xgvbJqozXQwBKfU+WsZaw+ww=", + "dev": true + }, + "p-finally": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz", + "integrity": "sha1-P7z7FbiZpEEjs0ttzBi3JDNqLK4=", + "dev": true + }, + "p-is-promise": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/p-is-promise/-/p-is-promise-2.1.0.tgz", + "integrity": "sha512-Y3W0wlRPK8ZMRbNq97l4M5otioeA5lm1z7bkNkxCka8HSPjR0xRWmpCmc9utiaLP9Jb1eD8BgeIxTW4AIF45Pg==", + "dev": true + }, + "p-limit": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.2.1.tgz", + "integrity": "sha512-85Tk+90UCVWvbDavCLKPOLC9vvY8OwEX/RtKF+/1OADJMVlFfEHOiMTPVyxg7mk/dKa+ipdHm0OUkTvCpMTuwg==", + "dev": true, + "requires": { + "p-try": "^2.0.0" + } + }, + "p-locate": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz", + "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==", + "dev": true, + "requires": { + "p-limit": "^2.0.0" + } + }, + "p-try": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", + "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", + "dev": true + }, + "parsimmon": { + "version": "1.13.0", + "resolved": "https://registry.npmjs.org/parsimmon/-/parsimmon-1.13.0.tgz", + "integrity": "sha512-5UIrOCW+gjbILkjKPgTgmq8LKf8TT3Iy7kN2VD7OtQ81facKn8B4gG1X94jWqXYZsxG2KbJhrv/Yq/5H6BQn7A==", + "dev": true + }, + "path-exists": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", + "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=", + "dev": true + }, + "path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", + "dev": true + }, + "path-key": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz", + "integrity": "sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A=", + "dev": true + }, + "path-parse": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz", + "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==", + "dev": true + }, + "performance-now": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz", + "integrity": "sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns=", + "dev": true + }, + "psl": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/psl/-/psl-1.4.0.tgz", + "integrity": "sha512-HZzqCGPecFLyoRj5HLfuDSKYTJkAfB5thKBIkRHtGjWwY7p1dAyveIbXIq4tO0KYfDF2tHqPUgY9SDnGm00uFw==", + "dev": true + }, + "pump": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", + "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", + "dev": true, + "requires": { + "end-of-stream": "^1.1.0", + "once": "^1.3.1" + } + }, + "punycode": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", + "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", + "dev": true + }, + "qs": { + "version": "6.5.2", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.2.tgz", + "integrity": "sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA==", + "dev": true + }, + "request": { + "version": "2.88.0", + "resolved": "https://registry.npmjs.org/request/-/request-2.88.0.tgz", + "integrity": "sha512-NAqBSrijGLZdM0WZNsInLJpkJokL72XYjUpnB0iwsRgxh7dB6COrHnTBNwN0E+lHDAJzu7kLAkDeY08z2/A0hg==", + "dev": true, + "requires": { + "aws-sign2": "~0.7.0", + "aws4": "^1.8.0", + "caseless": "~0.12.0", + "combined-stream": "~1.0.6", + "extend": "~3.0.2", + "forever-agent": "~0.6.1", + "form-data": "~2.3.2", + "har-validator": "~5.1.0", + "http-signature": "~1.2.0", + "is-typedarray": "~1.0.0", + "isstream": "~0.1.2", + "json-stringify-safe": "~5.0.1", + "mime-types": "~2.1.19", + "oauth-sign": "~0.9.0", + "performance-now": "^2.1.0", + "qs": "~6.5.2", + "safe-buffer": "^5.1.2", + "tough-cookie": "~2.4.3", + "tunnel-agent": "^0.6.0", + "uuid": "^3.3.2" + } + }, + "require-directory": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", + "integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I=", + "dev": true + }, + "require-main-filename": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-1.0.1.tgz", + "integrity": "sha1-l/cXtp1IeE9fUmpsWqj/3aBVpNE=", + "dev": true + }, + "resolve": { + "version": "1.12.0", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.12.0.tgz", + "integrity": "sha512-B/dOmuoAik5bKcD6s6nXDCjzUKnaDvdkRyAk6rsmsKLipWj4797iothd7jmmUhWTfinVMU+wc56rYKsit2Qy4w==", + "dev": true, + "requires": { + "path-parse": "^1.0.6" + } + }, + "safe-buffer": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.0.tgz", + "integrity": "sha512-fZEwUGbVl7kouZs1jCdMLdt95hdIv0ZeHg6L7qPeciMZhZ+/gdesW4wgTARkrFWEpspjEATAzUGPG8N2jJiwbg==", + "dev": true + }, + "safer-buffer": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", + "dev": true + }, + "semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "dev": true + }, + "set-blocking": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", + "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=", + "dev": true + }, + "shebang-command": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", + "integrity": "sha1-RKrGW2lbAzmJaMOfNj/uXer98eo=", + "dev": true, + "requires": { + "shebang-regex": "^1.0.0" + } + }, + "shebang-regex": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz", + "integrity": "sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM=", + "dev": true + }, + "signal-exit": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.2.tgz", + "integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=", + "dev": true + }, + "sprintf-js": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", + "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", + "dev": true + }, + "sshpk": { + "version": "1.16.1", + "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.16.1.tgz", + "integrity": "sha512-HXXqVUq7+pcKeLqqZj6mHFUMvXtOJt1uoUx09pFW6011inTMxqI8BA8PM95myrIyyKwdnzjdFjLiE6KBPVtJIg==", + "dev": true, + "requires": { + "asn1": "~0.2.3", + "assert-plus": "^1.0.0", + "bcrypt-pbkdf": "^1.0.0", + "dashdash": "^1.12.0", + "ecc-jsbn": "~0.1.1", + "getpass": "^0.1.1", + "jsbn": "~0.1.0", + "safer-buffer": "^2.0.2", + "tweetnacl": "~0.14.0" + } + }, + "string-width": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", + "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", + "dev": true, + "requires": { + "is-fullwidth-code-point": "^2.0.0", + "strip-ansi": "^4.0.0" + } + }, + "strip-ansi": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", + "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", + "dev": true, + "requires": { + "ansi-regex": "^3.0.0" + } + }, + "strip-eof": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/strip-eof/-/strip-eof-1.0.0.tgz", + "integrity": "sha1-u0P/VZim6wXYm1n80SnJgzE2Br8=", + "dev": true + }, + "strip-json-comments": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", + "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=", + "dev": true + }, + "supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, + "requires": { + "has-flag": "^3.0.0" + } + }, + "tough-cookie": { + "version": "2.4.3", + "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.4.3.tgz", + "integrity": "sha512-Q5srk/4vDM54WJsJio3XNn6K2sCG+CQ8G5Wz6bZhRZoAe/+TxjWB/GlFAnYEbkYVlON9FMk/fE3h2RLpPXo4lQ==", + "dev": true, + "requires": { + "psl": "^1.1.24", + "punycode": "^1.4.1" + }, + "dependencies": { + "punycode": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz", + "integrity": "sha1-wNWmOycYgArY4esPpSachN1BhF4=", + "dev": true + } + } + }, + "tslib": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.10.0.tgz", + "integrity": "sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==", + "dev": true + }, + "tslint": { + "version": "5.20.0", + "resolved": "https://registry.npmjs.org/tslint/-/tslint-5.20.0.tgz", + "integrity": "sha512-2vqIvkMHbnx8acMogAERQ/IuINOq6DFqgF8/VDvhEkBqQh/x6SP0Y+OHnKth9/ZcHQSroOZwUQSN18v8KKF0/g==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.0.0", + "builtin-modules": "^1.1.1", + "chalk": "^2.3.0", + "commander": "^2.12.1", + "diff": "^4.0.1", + "glob": "^7.1.1", + "js-yaml": "^3.13.1", + "minimatch": "^3.0.4", + "mkdirp": "^0.5.1", + "resolve": "^1.3.2", + "semver": "^5.3.0", + "tslib": "^1.8.0", + "tsutils": "^2.29.0" + } + }, + "tsutils": { + "version": "2.29.0", + "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-2.29.0.tgz", + "integrity": "sha512-g5JVHCIJwzfISaXpXE1qvNalca5Jwob6FjI4AoPlqMusJ6ftFE7IkkFoMhVLRgK+4Kx3gkzb8UZK5t5yTTvEmA==", + "dev": true, + "requires": { + "tslib": "^1.8.1" + } + }, + "tunnel-agent": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", + "integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=", + "dev": true, + "requires": { + "safe-buffer": "^5.0.1" + } + }, + "tweetnacl": { + "version": "0.14.5", + "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz", + "integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q=", + "dev": true + }, + "typescript": { + "version": "3.7.0-dev.20191015", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.7.0-dev.20191015.tgz", + "integrity": "sha512-Cpfj1n4pEUVKL+jtS0mkZodJffyMmf3Wk/UjyZMGX4fsjK5KBPJf3NUlyXij8I8p1E2CAomdS5NPFrAR+z8pKw==", + "dev": true + }, "underscore": { "version": "1.9.1", "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.9.1.tgz", "integrity": "sha512-5/4etnCkd9c8gwgowi5/om/mYO5ajCaOgdzj/oW+0eQV9WxKBDZw5+ycmKmeaTXjInS/W0BzpGLo2xR2aBwZdg==" + }, + "universalify": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", + "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", + "dev": true + }, + "uri-js": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.2.2.tgz", + "integrity": "sha512-KY9Frmirql91X2Qgjry0Wd4Y+YTdrdZheS8TFwvkbLWf/G5KNJDCh6pKL5OZctEW4+0Baa5idK2ZQuELRwPznQ==", + "dev": true, + "requires": { + "punycode": "^2.1.0" + } + }, + "uuid": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.3.3.tgz", + "integrity": "sha512-pW0No1RGHgzlpHJO1nsVrHKpOEIxkGg1xB+v0ZmdNH5OAeAwzAVrCnI2/6Mtx+Uys6iaylxa+D3g4j63IKKjSQ==", + "dev": true + }, + "verror": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz", + "integrity": "sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA=", + "dev": true, + "requires": { + "assert-plus": "^1.0.0", + "core-util-is": "1.0.2", + "extsprintf": "^1.2.0" + } + }, + "which": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", + "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", + "dev": true, + "requires": { + "isexe": "^2.0.0" + } + }, + "which-module": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.0.tgz", + "integrity": "sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=", + "dev": true + }, + "wrap-ansi": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-2.1.0.tgz", + "integrity": "sha1-2Pw9KE3QV5T+hJc8rs3Rz4JP3YU=", + "dev": true, + "requires": { + "string-width": "^1.0.1", + "strip-ansi": "^3.0.1" + }, + "dependencies": { + "ansi-regex": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", + "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", + "dev": true + }, + "is-fullwidth-code-point": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz", + "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=", + "dev": true, + "requires": { + "number-is-nan": "^1.0.0" + } + }, + "string-width": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", + "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", + "dev": true, + "requires": { + "code-point-at": "^1.0.0", + "is-fullwidth-code-point": "^1.0.0", + "strip-ansi": "^3.0.0" + } + }, + "strip-ansi": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", + "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", + "dev": true, + "requires": { + "ansi-regex": "^2.0.0" + } + } + } + }, + "wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", + "dev": true + }, + "y18n": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.0.tgz", + "integrity": "sha512-r9S/ZyXu/Xu9q1tYlpsLIsa3EeLXXk0VwlxqTcFRfg9EhMW+17kbt9G0NrgCmhGb5vT2hyhJZLfDGx+7+5Uj/w==", + "dev": true + }, + "yargs": { + "version": "12.0.5", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-12.0.5.tgz", + "integrity": "sha512-Lhz8TLaYnxq/2ObqHDql8dX8CJi97oHxrjUcYtzKbbykPtVW9WB+poxI+NM2UIzsMgNCZTIf0AQwsjK5yMAqZw==", + "dev": true, + "requires": { + "cliui": "^4.0.0", + "decamelize": "^1.2.0", + "find-up": "^3.0.0", + "get-caller-file": "^1.0.1", + "os-locale": "^3.0.0", + "require-directory": "^2.1.1", + "require-main-filename": "^1.0.1", + "set-blocking": "^2.0.0", + "string-width": "^2.0.0", + "which-module": "^2.0.0", + "y18n": "^3.2.1 || ^4.0.0", + "yargs-parser": "^11.1.1" + } + }, + "yargs-parser": { + "version": "11.1.1", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-11.1.1.tgz", + "integrity": "sha512-C6kB/WJDiaxONLJQnF8ccx9SEeoTTLek8RVbaOIsrAUS8VrBEXfmeSnCZxygc+XC2sNMBIwOOnfcxiynjHsVSQ==", + "dev": true, + "requires": { + "camelcase": "^5.0.0", + "decamelize": "^1.2.0" + } } } } diff --git a/packages/web3-providers-ipc/package.json b/packages/web3-providers-ipc/package.json index 2eeed919d53..71e727686fd 100644 --- a/packages/web3-providers-ipc/package.json +++ b/packages/web3-providers-ipc/package.json @@ -7,10 +7,18 @@ "engines": { "node": ">=8.0.0" }, + "scripts": { + "dtslint": "dtslint types --onlyTestTsNext" + }, + "types": "types/index.d.ts", "main": "src/index.js", "dependencies": { "oboe": "2.1.4", "underscore": "1.9.1", "web3-core-helpers": "1.2.1" + }, + "devDependencies": { + "definitelytyped-header-parser": "^1.0.1", + "dtslint": "^0.4.2" } } From 2e087c3f449885cd0a68af0a1d477156db724261 Mon Sep 17 00:00:00 2001 From: Josh Stevens Date: Tue, 15 Oct 2019 14:33:09 +0100 Subject: [PATCH 096/124] docs: update readme for web3-provider-ipc --- packages/web3-providers-ipc/README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/web3-providers-ipc/README.md b/packages/web3-providers-ipc/README.md index 03a329ea00c..3ddce3577d4 100644 --- a/packages/web3-providers-ipc/README.md +++ b/packages/web3-providers-ipc/README.md @@ -2,7 +2,7 @@ This is a sub package of [web3.js][repo] -This is a IPC provider for [web3.js][repo]. +This is a IPC provider for [web3.js][repo]. Please read the [documentation][docs] for more. ## Installation @@ -24,7 +24,6 @@ npm run-script build-all Then include `dist/web3-providers-ipc.js` in your html file. This will expose the `Web3IpcProvider` object on the window object. - ## Usage ```js @@ -35,8 +34,9 @@ var net = require(net); var ipc = new Web3IpcProvider('/Users/me/Library/Ethereum/geth.ipc', net); ``` +## Types + +All the typescript typings are placed in the types folder. [docs]: http://web3js.readthedocs.io/en/1.0/ [repo]: https://github.com/ethereum/web3.js - - From 22d2b0dfa287a2843e150f3b4ba532df4e4a33cf Mon Sep 17 00:00:00 2001 From: Josh Stevens Date: Tue, 15 Oct 2019 14:34:18 +0100 Subject: [PATCH 097/124] feat: `web3-providers-ipc` typings --- .../types/tests/web3-provider-ipc-tests.ts | 71 +++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 packages/web3-providers-ipc/types/tests/web3-provider-ipc-tests.ts diff --git a/packages/web3-providers-ipc/types/tests/web3-provider-ipc-tests.ts b/packages/web3-providers-ipc/types/tests/web3-provider-ipc-tests.ts new file mode 100644 index 00000000000..0bfb09d4c0e --- /dev/null +++ b/packages/web3-providers-ipc/types/tests/web3-provider-ipc-tests.ts @@ -0,0 +1,71 @@ +/* + This file is part of web3.js. + + web3.js is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + web3.js is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License + along with web3.js. If not, see . +*/ +/** + * @file http-provider-test.ts + * @author Josh Stevens + * @date 2018 + */ + +import * as net from 'net'; +import { IpcProvider } from 'web3-providers'; + +const ipcProvider = new IpcProvider( + '/Users/myuser/Library/Ethereum/geth.ipc', + new net.Server() +); + +// $ExpectType string +ipcProvider.host; + +// $ExpectType boolean +ipcProvider.connected; + +// $ExpectType void +ipcProvider.registerEventListeners(); + +// $ExpectType Promise +ipcProvider.send('rpc_method', []); + +// $ExpectType Promise +ipcProvider.sendBatch([], {}); + +// $ExpectType Promise +ipcProvider.subscribe('eth_subscribe', 'logs', []); + +// $ExpectType Promise +ipcProvider.unsubscribe('subId', 'eth_unsubscribe'); + +// $ExpectType Promise +ipcProvider.clearSubscriptions('eth_unsubscribe'); + +// $ExpectType void +ipcProvider.on('type', () => {}); + +// $ExpectType void +ipcProvider.removeListener('type', () => {}); + +// $ExpectType void +ipcProvider.removeAllListeners('type'); + +// $ExpectType void +ipcProvider.reset(); + +// $ExpectType void +ipcProvider.reconnect(); + +// $ExpectType void +ipcProvider.disconnect(100, 'reason'); From 1f770f33d2b41b3e2f0117e555222b7c2b1f6543 Mon Sep 17 00:00:00 2001 From: Josh Stevens Date: Tue, 15 Oct 2019 14:34:33 +0100 Subject: [PATCH 098/124] test: web3-provider-ipc test typings --- .../web3-providers-ipc/types/tests/web3-provider-ipc-tests.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/web3-providers-ipc/types/tests/web3-provider-ipc-tests.ts b/packages/web3-providers-ipc/types/tests/web3-provider-ipc-tests.ts index 0bfb09d4c0e..7d291dbb465 100644 --- a/packages/web3-providers-ipc/types/tests/web3-provider-ipc-tests.ts +++ b/packages/web3-providers-ipc/types/tests/web3-provider-ipc-tests.ts @@ -15,7 +15,7 @@ along with web3.js. If not, see . */ /** - * @file http-provider-test.ts + * @file web3-provider-ipc-tests.ts * @author Josh Stevens * @date 2018 */ From 68ecb1537a9556d1b5b539d847784187aae2c4a1 Mon Sep 17 00:00:00 2001 From: Josh Stevens Date: Tue, 15 Oct 2019 14:34:48 +0100 Subject: [PATCH 099/124] feat: typings for web3-providers-ipc --- packages/web3-providers-ipc/types/index.d.ts | 66 +++++++++++++++++++ .../web3-providers-ipc/types/tsconfig.json | 17 +++++ packages/web3-providers-ipc/types/tslint.json | 10 +++ 3 files changed, 93 insertions(+) create mode 100644 packages/web3-providers-ipc/types/index.d.ts create mode 100644 packages/web3-providers-ipc/types/tsconfig.json create mode 100644 packages/web3-providers-ipc/types/tslint.json diff --git a/packages/web3-providers-ipc/types/index.d.ts b/packages/web3-providers-ipc/types/index.d.ts new file mode 100644 index 00000000000..46acb535823 --- /dev/null +++ b/packages/web3-providers-ipc/types/index.d.ts @@ -0,0 +1,66 @@ +import * as net from 'net'; + +/* + This file is part of web3.js. + + web3.js is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + web3.js is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License + along with web3.js. If not, see . +*/ +/** + * @file http-provider-test.ts + * @author Josh Stevens + * @date 2018 + */ +export class AbstractSocketProvider { + constructor(connection: any, timeout?: number); + + host: string; + connected: boolean; + + supportsSubscriptions(): boolean; + + registerEventListeners(): void; + + send(method: string, parameters: any[]): Promise; + + sendBatch(methods: any[], moduleInstance: any): Promise; + + subscribe( + subscribeMethod: string, + subscriptionMethod: string, + parameters: any[] + ): Promise; + + unsubscribe( + subscriptionId: string, + unsubscribeMethod: string + ): Promise; + + clearSubscriptions(unsubscribeMethod: string): Promise; + + on(type: string, callback: () => void): void; + + removeListener(type: string, callback: () => void): void; + + removeAllListeners(type: string): void; + + reset(): void; + + reconnect(): void; + + disconnect(code: number, reason: string): void; +} + +export class IpcProvider extends AbstractSocketProvider { + constructor(path: string, net: net.Server); +} diff --git a/packages/web3-providers-ipc/types/tsconfig.json b/packages/web3-providers-ipc/types/tsconfig.json new file mode 100644 index 00000000000..74e0aeeb3a8 --- /dev/null +++ b/packages/web3-providers-ipc/types/tsconfig.json @@ -0,0 +1,17 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": ["es6"], + "target": "es6", + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "strictFunctionTypes": true, + "noEmit": true, + "allowSyntheticDefaultImports": false, + "baseUrl": ".", + "paths": { + "web3-providers": ["."] + } + } +} diff --git a/packages/web3-providers-ipc/types/tslint.json b/packages/web3-providers-ipc/types/tslint.json new file mode 100644 index 00000000000..6429b0c446e --- /dev/null +++ b/packages/web3-providers-ipc/types/tslint.json @@ -0,0 +1,10 @@ +{ + "extends": "dtslint/dtslint.json", + "rules": { + "semicolon": false, + "no-import-default-of-export-equals": false, + "file-name-casing": [true, "kebab-case"], + "whitespace": false, + "no-unnecessary-class": false + } +} From cf826c4077b713797e3a8ee5a2ac02aad2de2391 Mon Sep 17 00:00:00 2001 From: Josh Stevens Date: Tue, 15 Oct 2019 14:34:58 +0100 Subject: [PATCH 100/124] fix: remove file comment --- .../web3-providers-http/types/tests/web3-provider-http-tests.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/web3-providers-http/types/tests/web3-provider-http-tests.ts b/packages/web3-providers-http/types/tests/web3-provider-http-tests.ts index f097d20d86c..df8486d5624 100644 --- a/packages/web3-providers-http/types/tests/web3-provider-http-tests.ts +++ b/packages/web3-providers-http/types/tests/web3-provider-http-tests.ts @@ -15,7 +15,7 @@ along with web3.js. If not, see . */ /** - * @file http-provider-test.ts + * @file web3-provider-http-tests.ts * @author Josh Stevens , Samuel Furter * @date 2018 */ From 6637cf6cc964a276e2568bbf97f0756eeb42679c Mon Sep 17 00:00:00 2001 From: Josh Stevens Date: Tue, 15 Oct 2019 14:40:53 +0100 Subject: [PATCH 101/124] fix: resolve index.d.ts file --- packages/web3-providers-http/types/index.d.ts | 2 +- packages/web3-providers-ipc/types/index.d.ts | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/packages/web3-providers-http/types/index.d.ts b/packages/web3-providers-http/types/index.d.ts index 6d417f78a6b..36de25201e8 100644 --- a/packages/web3-providers-http/types/index.d.ts +++ b/packages/web3-providers-http/types/index.d.ts @@ -15,7 +15,7 @@ along with web3.js. If not, see . */ /** - * @file http-provider-test.ts + * @file index.d.ts * @author Josh Stevens * @date 2018 */ diff --git a/packages/web3-providers-ipc/types/index.d.ts b/packages/web3-providers-ipc/types/index.d.ts index 46acb535823..a53776f3b68 100644 --- a/packages/web3-providers-ipc/types/index.d.ts +++ b/packages/web3-providers-ipc/types/index.d.ts @@ -1,5 +1,3 @@ -import * as net from 'net'; - /* This file is part of web3.js. @@ -17,10 +15,13 @@ import * as net from 'net'; along with web3.js. If not, see . */ /** - * @file http-provider-test.ts + * @file index.d.ts * @author Josh Stevens * @date 2018 */ + +import * as net from 'net'; + export class AbstractSocketProvider { constructor(connection: any, timeout?: number); From 72539d01b2e3a3491b532f684b39a6480919d4c8 Mon Sep 17 00:00:00 2001 From: Josh Stevens Date: Tue, 15 Oct 2019 14:41:06 +0100 Subject: [PATCH 102/124] feat: install type dependencies for web3-provider-ws --- packages/web3-providers-ws/package-lock.json | 1198 ++++++++++++++++++ packages/web3-providers-ws/package.json | 8 + 2 files changed, 1206 insertions(+) diff --git a/packages/web3-providers-ws/package-lock.json b/packages/web3-providers-ws/package-lock.json index 14f0c515006..b1de2e3bc44 100644 --- a/packages/web3-providers-ws/package-lock.json +++ b/packages/web3-providers-ws/package-lock.json @@ -4,6 +4,227 @@ "lockfileVersion": 1, "requires": true, "dependencies": { + "@babel/code-frame": { + "version": "7.5.5", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.5.5.tgz", + "integrity": "sha512-27d4lZoomVyo51VegxI20xZPuSHusqbQag/ztrBC7wegWoQ1nLREPVSKSW8byhTlzTKyNE4ifaTA6lCp7JjpFw==", + "dev": true, + "requires": { + "@babel/highlight": "^7.0.0" + } + }, + "@babel/highlight": { + "version": "7.5.0", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.5.0.tgz", + "integrity": "sha512-7dV4eu9gBxoM0dAnj/BCFDW9LFU0zvTrkq0ugM7pnHEgguOEeOz1so2ZghEdzviYzQEED0r4EAgpsBChKy1TRQ==", + "dev": true, + "requires": { + "chalk": "^2.0.0", + "esutils": "^2.0.2", + "js-tokens": "^4.0.0" + } + }, + "@types/parsimmon": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/@types/parsimmon/-/parsimmon-1.10.0.tgz", + "integrity": "sha512-bsTIJFVQv7jnvNiC42ld2pQW2KRI+pAG243L+iATvqzy3X6+NH1obz2itRKDZZ8VVhN3wjwYax/VBGCcXzgTqQ==", + "dev": true + }, + "ajv": { + "version": "6.10.2", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.10.2.tgz", + "integrity": "sha512-TXtUUEYHuaTEbLZWIKUr5pmBuhDLy+8KYtPYdcV8qC+pOZL+NKqYwvWSRrVXHn+ZmRRAu8vJTAznH7Oag6RVRw==", + "dev": true, + "requires": { + "fast-deep-equal": "^2.0.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + } + }, + "ansi-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", + "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", + "dev": true + }, + "ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, + "requires": { + "color-convert": "^1.9.0" + } + }, + "argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "dev": true, + "requires": { + "sprintf-js": "~1.0.2" + } + }, + "asn1": { + "version": "0.2.4", + "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.4.tgz", + "integrity": "sha512-jxwzQpLQjSmWXgwaCZE9Nz+glAG01yF1QnWgbhGwHI5A6FRIEY6IVqtHhIepHqI7/kyEyQEagBC5mBEFlIYvdg==", + "dev": true, + "requires": { + "safer-buffer": "~2.1.0" + } + }, + "assert-plus": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", + "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=", + "dev": true + }, + "asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=", + "dev": true + }, + "aws-sign2": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz", + "integrity": "sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg=", + "dev": true + }, + "aws4": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.8.0.tgz", + "integrity": "sha512-ReZxvNHIOv88FlT7rxcXIIC0fPt4KZqZbOlivyWtXLt8ESx84zd3kMC6iK5jVeS2qt+g7ftS7ye4fi06X5rtRQ==", + "dev": true + }, + "balanced-match": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", + "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", + "dev": true + }, + "bcrypt-pbkdf": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz", + "integrity": "sha1-pDAdOJtqQ/m2f/PKEaP2Y342Dp4=", + "dev": true, + "requires": { + "tweetnacl": "^0.14.3" + } + }, + "brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "requires": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "builtin-modules": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-1.1.1.tgz", + "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=", + "dev": true + }, + "camelcase": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", + "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", + "dev": true + }, + "caseless": { + "version": "0.12.0", + "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz", + "integrity": "sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw=", + "dev": true + }, + "chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dev": true, + "requires": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + } + }, + "cliui": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-4.1.0.tgz", + "integrity": "sha512-4FG+RSG9DL7uEwRUZXZn3SS34DiDPfzP0VOiEwtUWlE+AR2EIg+hSyvrIgUUfhdgR/UkAeW2QHgeP+hWrXs7jQ==", + "dev": true, + "requires": { + "string-width": "^2.1.1", + "strip-ansi": "^4.0.0", + "wrap-ansi": "^2.0.0" + } + }, + "code-point-at": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz", + "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=", + "dev": true + }, + "color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dev": true, + "requires": { + "color-name": "1.1.3" + } + }, + "color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", + "dev": true + }, + "combined-stream": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", + "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", + "dev": true, + "requires": { + "delayed-stream": "~1.0.0" + } + }, + "commander": { + "version": "2.20.3", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", + "dev": true + }, + "concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", + "dev": true + }, + "core-util-is": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", + "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=", + "dev": true + }, + "cross-spawn": { + "version": "6.0.5", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz", + "integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==", + "dev": true, + "requires": { + "nice-try": "^1.0.4", + "path-key": "^2.0.1", + "semver": "^5.5.0", + "shebang-command": "^1.2.0", + "which": "^1.2.9" + } + }, "d": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/d/-/d-1.0.1.tgz", @@ -13,6 +234,15 @@ "type": "^1.0.1" } }, + "dashdash": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz", + "integrity": "sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA=", + "dev": true, + "requires": { + "assert-plus": "^1.0.0" + } + }, "debug": { "version": "2.6.9", "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", @@ -21,6 +251,85 @@ "ms": "2.0.0" } }, + "decamelize": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", + "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=", + "dev": true + }, + "definitelytyped-header-parser": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/definitelytyped-header-parser/-/definitelytyped-header-parser-1.2.0.tgz", + "integrity": "sha512-xpg8uu/2YD/reaVsZV4oJ4g7UDYFqQGWvT1W9Tsj6q4VtWBSaig38Qgah0ZMnQGF9kAsAim08EXDO1nSi0+Nog==", + "dev": true, + "requires": { + "@types/parsimmon": "^1.3.0", + "parsimmon": "^1.2.0" + } + }, + "delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=", + "dev": true + }, + "diff": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.1.tgz", + "integrity": "sha512-s2+XdvhPCOF01LRQBC8hf4vhbVmI2CGS5aZnxLJlT5FtdhPCDFq80q++zK2KlrVorVDdL5BOGZ/VfLrVtYNF+Q==", + "dev": true + }, + "download-file-sync": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/download-file-sync/-/download-file-sync-1.0.4.tgz", + "integrity": "sha1-0+PFQ/g29BA5RVuQNMcuNVsDYBk=", + "dev": true + }, + "dts-critic": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/dts-critic/-/dts-critic-1.2.0.tgz", + "integrity": "sha512-z6VI1Sz7xxy0BgN6YsWuG9hbRIfph3U9hwrfNHLnLzsq865VYyjo5xKKUgXPuqMgJ04BUF1LGYQJ+kWyWwvUvQ==", + "dev": true, + "requires": { + "definitelytyped-header-parser": "^1.2.0", + "download-file-sync": "^1.0.4", + "yargs": "^12.0.5" + } + }, + "dtslint": { + "version": "0.4.9", + "resolved": "https://registry.npmjs.org/dtslint/-/dtslint-0.4.9.tgz", + "integrity": "sha512-QKOfpKIcpJi38gXWQ1uzm/jFU+1xqPVjrow8PSgs1N7CeY819A0Lm1VvYdM4GD1i964B2QKUyJAAjWiK8YPzlA==", + "dev": true, + "requires": { + "definitelytyped-header-parser": "^1.0.1", + "dts-critic": "^1.0.1", + "fs-extra": "^6.0.1", + "request": "^2.88.0", + "strip-json-comments": "^2.0.1", + "tslint": "^5.12.0", + "typescript": "^3.7.0-dev.20191015" + } + }, + "ecc-jsbn": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz", + "integrity": "sha1-OoOpBOVDUyh4dMVkt1SThoSamMk=", + "dev": true, + "requires": { + "jsbn": "~0.1.0", + "safer-buffer": "^2.1.0" + } + }, + "end-of-stream": { + "version": "1.4.4", + "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", + "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", + "dev": true, + "requires": { + "once": "^1.4.0" + } + }, "es5-ext": { "version": "0.10.50", "resolved": "https://registry.npmjs.org/es5-ext/-/es5-ext-0.10.50.tgz", @@ -50,11 +359,379 @@ "es5-ext": "~0.10.14" } }, + "escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", + "dev": true + }, + "esprima": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "dev": true + }, + "esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true + }, + "execa": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/execa/-/execa-1.0.0.tgz", + "integrity": "sha512-adbxcyWV46qiHyvSp50TKt05tB4tK3HcmF7/nxfAdhnox83seTDbwnaqKO4sXRy7roHAIFqJP/Rw/AuEbX61LA==", + "dev": true, + "requires": { + "cross-spawn": "^6.0.0", + "get-stream": "^4.0.0", + "is-stream": "^1.1.0", + "npm-run-path": "^2.0.0", + "p-finally": "^1.0.0", + "signal-exit": "^3.0.0", + "strip-eof": "^1.0.0" + } + }, + "extend": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", + "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==", + "dev": true + }, + "extsprintf": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz", + "integrity": "sha1-lpGEQOMEGnpBT4xS48V06zw+HgU=", + "dev": true + }, + "fast-deep-equal": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-2.0.1.tgz", + "integrity": "sha1-ewUhjd+WZ79/Nwv3/bLLFf3Qqkk=", + "dev": true + }, + "fast-json-stable-stringify": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.0.0.tgz", + "integrity": "sha1-1RQsDK7msRifh9OnYREGT4bIu/I=", + "dev": true + }, + "find-up": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz", + "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==", + "dev": true, + "requires": { + "locate-path": "^3.0.0" + } + }, + "forever-agent": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz", + "integrity": "sha1-+8cfDEGt6zf5bFd60e1C2P2sypE=", + "dev": true + }, + "form-data": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.3.tgz", + "integrity": "sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ==", + "dev": true, + "requires": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.6", + "mime-types": "^2.1.12" + } + }, + "fs-extra": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-6.0.1.tgz", + "integrity": "sha512-GnyIkKhhzXZUWFCaJzvyDLEEgDkPfb4/TPvJCJVuS8MWZgoSsErf++QpiAlDnKFcqhRlm+tIOcencCjyJE6ZCA==", + "dev": true, + "requires": { + "graceful-fs": "^4.1.2", + "jsonfile": "^4.0.0", + "universalify": "^0.1.0" + } + }, + "fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", + "dev": true + }, + "get-caller-file": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-1.0.3.tgz", + "integrity": "sha512-3t6rVToeoZfYSGd8YoLFR2DJkiQrIiUrGcjvFX2mDw3bn6k2OtwHN0TNCLbBO+w8qTvimhDkv+LSscbJY1vE6w==", + "dev": true + }, + "get-stream": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-4.1.0.tgz", + "integrity": "sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w==", + "dev": true, + "requires": { + "pump": "^3.0.0" + } + }, + "getpass": { + "version": "0.1.7", + "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz", + "integrity": "sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo=", + "dev": true, + "requires": { + "assert-plus": "^1.0.0" + } + }, + "glob": { + "version": "7.1.4", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.4.tgz", + "integrity": "sha512-hkLPepehmnKk41pUGm3sYxoFs/umurYfYJCerbXEyFIWcAzvpipAgVkBqqT9RBKMGjnq6kMuyYwha6csxbiM1A==", + "dev": true, + "requires": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.0.4", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + } + }, + "graceful-fs": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.2.tgz", + "integrity": "sha512-IItsdsea19BoLC7ELy13q1iJFNmd7ofZH5+X/pJr90/nRoPEX0DJo1dHDbgtYWOhJhcCgMDTOw84RZ72q6lB+Q==", + "dev": true + }, + "har-schema": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz", + "integrity": "sha1-qUwiJOvKwEeCoNkDVSHyRzW37JI=", + "dev": true + }, + "har-validator": { + "version": "5.1.3", + "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.1.3.tgz", + "integrity": "sha512-sNvOCzEQNr/qrvJgc3UG/kD4QtlHycrzwS+6mfTrrSq97BvaYcPZZI1ZSqGSPR73Cxn4LKTD4PttRwfU7jWq5g==", + "dev": true, + "requires": { + "ajv": "^6.5.5", + "har-schema": "^2.0.0" + } + }, + "has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", + "dev": true + }, + "http-signature": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz", + "integrity": "sha1-muzZJRFHcvPZW2WmCruPfBj7rOE=", + "dev": true, + "requires": { + "assert-plus": "^1.0.0", + "jsprim": "^1.2.2", + "sshpk": "^1.7.0" + } + }, + "inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", + "dev": true, + "requires": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "dev": true + }, + "invert-kv": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/invert-kv/-/invert-kv-2.0.0.tgz", + "integrity": "sha512-wPVv/y/QQ/Uiirj/vh3oP+1Ww+AWehmi1g5fFWGPF6IpCBCDVrhgHRMvrLfdYcwDh3QJbGXDW4JAuzxElLSqKA==", + "dev": true + }, + "is-fullwidth-code-point": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", + "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", + "dev": true + }, + "is-stream": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", + "integrity": "sha1-EtSj3U5o4Lec6428hBc66A2RykQ=", + "dev": true + }, "is-typedarray": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=" }, + "isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=", + "dev": true + }, + "isstream": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz", + "integrity": "sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo=", + "dev": true + }, + "js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "dev": true + }, + "js-yaml": { + "version": "3.13.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.13.1.tgz", + "integrity": "sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw==", + "dev": true, + "requires": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + } + }, + "jsbn": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz", + "integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM=", + "dev": true + }, + "json-schema": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.2.3.tgz", + "integrity": "sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM=", + "dev": true + }, + "json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true + }, + "json-stringify-safe": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", + "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=", + "dev": true + }, + "jsonfile": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", + "integrity": "sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss=", + "dev": true, + "requires": { + "graceful-fs": "^4.1.6" + } + }, + "jsprim": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.1.tgz", + "integrity": "sha1-MT5mvB5cwG5Di8G3SZwuXFastqI=", + "dev": true, + "requires": { + "assert-plus": "1.0.0", + "extsprintf": "1.3.0", + "json-schema": "0.2.3", + "verror": "1.10.0" + } + }, + "lcid": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/lcid/-/lcid-2.0.0.tgz", + "integrity": "sha512-avPEb8P8EGnwXKClwsNUgryVjllcRqtMYa49NTsbQagYuT1DcXnl1915oxWjoyGrXR6zH/Y0Zc96xWsPcoDKeA==", + "dev": true, + "requires": { + "invert-kv": "^2.0.0" + } + }, + "locate-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz", + "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==", + "dev": true, + "requires": { + "p-locate": "^3.0.0", + "path-exists": "^3.0.0" + } + }, + "map-age-cleaner": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/map-age-cleaner/-/map-age-cleaner-0.1.3.tgz", + "integrity": "sha512-bJzx6nMoP6PDLPBFmg7+xRKeFZvFboMrGlxmNj9ClvX53KrmvM5bXFXEWjbz4cz1AFn+jWJ9z/DJSz7hrs0w3w==", + "dev": true, + "requires": { + "p-defer": "^1.0.0" + } + }, + "mem": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/mem/-/mem-4.3.0.tgz", + "integrity": "sha512-qX2bG48pTqYRVmDB37rn/6PT7LcR8T7oAX3bf99u1Tt1nzxYfxkgqDwUwolPlXweM0XzBOBFzSx4kfp7KP1s/w==", + "dev": true, + "requires": { + "map-age-cleaner": "^0.1.1", + "mimic-fn": "^2.0.0", + "p-is-promise": "^2.0.0" + } + }, + "mime-db": { + "version": "1.40.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.40.0.tgz", + "integrity": "sha512-jYdeOMPy9vnxEqFRRo6ZvTZ8d9oPb+k18PKoYNYUe2stVEBPPwsln/qWzdbmaIvnhZ9v2P+CuecK+fpUfsV2mA==", + "dev": true + }, + "mime-types": { + "version": "2.1.24", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.24.tgz", + "integrity": "sha512-WaFHS3MCl5fapm3oLxU4eYDw77IQM2ACcxQ9RIxfaC3ooc6PFuBMGZZsYpvoXS5D5QTWPieo1jjLdAm3TBP3cQ==", + "dev": true, + "requires": { + "mime-db": "1.40.0" + } + }, + "mimic-fn": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", + "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", + "dev": true + }, + "minimatch": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", + "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", + "dev": true, + "requires": { + "brace-expansion": "^1.1.7" + } + }, + "minimist": { + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", + "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=", + "dev": true + }, + "mkdirp": { + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", + "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", + "dev": true, + "requires": { + "minimist": "0.0.8" + } + }, "ms": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", @@ -70,6 +747,385 @@ "resolved": "https://registry.npmjs.org/next-tick/-/next-tick-1.0.0.tgz", "integrity": "sha1-yobR/ogoFpsBICCOPchCS524NCw=" }, + "nice-try": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/nice-try/-/nice-try-1.0.5.tgz", + "integrity": "sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==", + "dev": true + }, + "npm-run-path": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-2.0.2.tgz", + "integrity": "sha1-NakjLfo11wZ7TLLd8jV7GHFTbF8=", + "dev": true, + "requires": { + "path-key": "^2.0.0" + } + }, + "number-is-nan": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz", + "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=", + "dev": true + }, + "oauth-sign": { + "version": "0.9.0", + "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.9.0.tgz", + "integrity": "sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ==", + "dev": true + }, + "once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", + "dev": true, + "requires": { + "wrappy": "1" + } + }, + "os-locale": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/os-locale/-/os-locale-3.1.0.tgz", + "integrity": "sha512-Z8l3R4wYWM40/52Z+S265okfFj8Kt2cC2MKY+xNi3kFs+XGI7WXu/I309QQQYbRW4ijiZ+yxs9pqEhJh0DqW3Q==", + "dev": true, + "requires": { + "execa": "^1.0.0", + "lcid": "^2.0.0", + "mem": "^4.0.0" + } + }, + "p-defer": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/p-defer/-/p-defer-1.0.0.tgz", + "integrity": "sha1-n26xgvbJqozXQwBKfU+WsZaw+ww=", + "dev": true + }, + "p-finally": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz", + "integrity": "sha1-P7z7FbiZpEEjs0ttzBi3JDNqLK4=", + "dev": true + }, + "p-is-promise": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/p-is-promise/-/p-is-promise-2.1.0.tgz", + "integrity": "sha512-Y3W0wlRPK8ZMRbNq97l4M5otioeA5lm1z7bkNkxCka8HSPjR0xRWmpCmc9utiaLP9Jb1eD8BgeIxTW4AIF45Pg==", + "dev": true + }, + "p-limit": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.2.1.tgz", + "integrity": "sha512-85Tk+90UCVWvbDavCLKPOLC9vvY8OwEX/RtKF+/1OADJMVlFfEHOiMTPVyxg7mk/dKa+ipdHm0OUkTvCpMTuwg==", + "dev": true, + "requires": { + "p-try": "^2.0.0" + } + }, + "p-locate": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz", + "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==", + "dev": true, + "requires": { + "p-limit": "^2.0.0" + } + }, + "p-try": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", + "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", + "dev": true + }, + "parsimmon": { + "version": "1.13.0", + "resolved": "https://registry.npmjs.org/parsimmon/-/parsimmon-1.13.0.tgz", + "integrity": "sha512-5UIrOCW+gjbILkjKPgTgmq8LKf8TT3Iy7kN2VD7OtQ81facKn8B4gG1X94jWqXYZsxG2KbJhrv/Yq/5H6BQn7A==", + "dev": true + }, + "path-exists": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", + "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=", + "dev": true + }, + "path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", + "dev": true + }, + "path-key": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz", + "integrity": "sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A=", + "dev": true + }, + "path-parse": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz", + "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==", + "dev": true + }, + "performance-now": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz", + "integrity": "sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns=", + "dev": true + }, + "psl": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/psl/-/psl-1.4.0.tgz", + "integrity": "sha512-HZzqCGPecFLyoRj5HLfuDSKYTJkAfB5thKBIkRHtGjWwY7p1dAyveIbXIq4tO0KYfDF2tHqPUgY9SDnGm00uFw==", + "dev": true + }, + "pump": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", + "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", + "dev": true, + "requires": { + "end-of-stream": "^1.1.0", + "once": "^1.3.1" + } + }, + "punycode": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", + "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", + "dev": true + }, + "qs": { + "version": "6.5.2", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.2.tgz", + "integrity": "sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA==", + "dev": true + }, + "request": { + "version": "2.88.0", + "resolved": "https://registry.npmjs.org/request/-/request-2.88.0.tgz", + "integrity": "sha512-NAqBSrijGLZdM0WZNsInLJpkJokL72XYjUpnB0iwsRgxh7dB6COrHnTBNwN0E+lHDAJzu7kLAkDeY08z2/A0hg==", + "dev": true, + "requires": { + "aws-sign2": "~0.7.0", + "aws4": "^1.8.0", + "caseless": "~0.12.0", + "combined-stream": "~1.0.6", + "extend": "~3.0.2", + "forever-agent": "~0.6.1", + "form-data": "~2.3.2", + "har-validator": "~5.1.0", + "http-signature": "~1.2.0", + "is-typedarray": "~1.0.0", + "isstream": "~0.1.2", + "json-stringify-safe": "~5.0.1", + "mime-types": "~2.1.19", + "oauth-sign": "~0.9.0", + "performance-now": "^2.1.0", + "qs": "~6.5.2", + "safe-buffer": "^5.1.2", + "tough-cookie": "~2.4.3", + "tunnel-agent": "^0.6.0", + "uuid": "^3.3.2" + } + }, + "require-directory": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", + "integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I=", + "dev": true + }, + "require-main-filename": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-1.0.1.tgz", + "integrity": "sha1-l/cXtp1IeE9fUmpsWqj/3aBVpNE=", + "dev": true + }, + "resolve": { + "version": "1.12.0", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.12.0.tgz", + "integrity": "sha512-B/dOmuoAik5bKcD6s6nXDCjzUKnaDvdkRyAk6rsmsKLipWj4797iothd7jmmUhWTfinVMU+wc56rYKsit2Qy4w==", + "dev": true, + "requires": { + "path-parse": "^1.0.6" + } + }, + "safe-buffer": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.0.tgz", + "integrity": "sha512-fZEwUGbVl7kouZs1jCdMLdt95hdIv0ZeHg6L7qPeciMZhZ+/gdesW4wgTARkrFWEpspjEATAzUGPG8N2jJiwbg==", + "dev": true + }, + "safer-buffer": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", + "dev": true + }, + "semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "dev": true + }, + "set-blocking": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", + "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=", + "dev": true + }, + "shebang-command": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", + "integrity": "sha1-RKrGW2lbAzmJaMOfNj/uXer98eo=", + "dev": true, + "requires": { + "shebang-regex": "^1.0.0" + } + }, + "shebang-regex": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz", + "integrity": "sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM=", + "dev": true + }, + "signal-exit": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.2.tgz", + "integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=", + "dev": true + }, + "sprintf-js": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", + "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", + "dev": true + }, + "sshpk": { + "version": "1.16.1", + "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.16.1.tgz", + "integrity": "sha512-HXXqVUq7+pcKeLqqZj6mHFUMvXtOJt1uoUx09pFW6011inTMxqI8BA8PM95myrIyyKwdnzjdFjLiE6KBPVtJIg==", + "dev": true, + "requires": { + "asn1": "~0.2.3", + "assert-plus": "^1.0.0", + "bcrypt-pbkdf": "^1.0.0", + "dashdash": "^1.12.0", + "ecc-jsbn": "~0.1.1", + "getpass": "^0.1.1", + "jsbn": "~0.1.0", + "safer-buffer": "^2.0.2", + "tweetnacl": "~0.14.0" + } + }, + "string-width": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", + "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", + "dev": true, + "requires": { + "is-fullwidth-code-point": "^2.0.0", + "strip-ansi": "^4.0.0" + } + }, + "strip-ansi": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", + "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", + "dev": true, + "requires": { + "ansi-regex": "^3.0.0" + } + }, + "strip-eof": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/strip-eof/-/strip-eof-1.0.0.tgz", + "integrity": "sha1-u0P/VZim6wXYm1n80SnJgzE2Br8=", + "dev": true + }, + "strip-json-comments": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", + "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=", + "dev": true + }, + "supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, + "requires": { + "has-flag": "^3.0.0" + } + }, + "tough-cookie": { + "version": "2.4.3", + "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.4.3.tgz", + "integrity": "sha512-Q5srk/4vDM54WJsJio3XNn6K2sCG+CQ8G5Wz6bZhRZoAe/+TxjWB/GlFAnYEbkYVlON9FMk/fE3h2RLpPXo4lQ==", + "dev": true, + "requires": { + "psl": "^1.1.24", + "punycode": "^1.4.1" + }, + "dependencies": { + "punycode": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz", + "integrity": "sha1-wNWmOycYgArY4esPpSachN1BhF4=", + "dev": true + } + } + }, + "tslib": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.10.0.tgz", + "integrity": "sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==", + "dev": true + }, + "tslint": { + "version": "5.20.0", + "resolved": "https://registry.npmjs.org/tslint/-/tslint-5.20.0.tgz", + "integrity": "sha512-2vqIvkMHbnx8acMogAERQ/IuINOq6DFqgF8/VDvhEkBqQh/x6SP0Y+OHnKth9/ZcHQSroOZwUQSN18v8KKF0/g==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.0.0", + "builtin-modules": "^1.1.1", + "chalk": "^2.3.0", + "commander": "^2.12.1", + "diff": "^4.0.1", + "glob": "^7.1.1", + "js-yaml": "^3.13.1", + "minimatch": "^3.0.4", + "mkdirp": "^0.5.1", + "resolve": "^1.3.2", + "semver": "^5.3.0", + "tslib": "^1.8.0", + "tsutils": "^2.29.0" + } + }, + "tsutils": { + "version": "2.29.0", + "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-2.29.0.tgz", + "integrity": "sha512-g5JVHCIJwzfISaXpXE1qvNalca5Jwob6FjI4AoPlqMusJ6ftFE7IkkFoMhVLRgK+4Kx3gkzb8UZK5t5yTTvEmA==", + "dev": true, + "requires": { + "tslib": "^1.8.1" + } + }, + "tunnel-agent": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", + "integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=", + "dev": true, + "requires": { + "safe-buffer": "^5.0.1" + } + }, + "tweetnacl": { + "version": "0.14.5", + "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz", + "integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q=", + "dev": true + }, "type": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/type/-/type-1.0.1.tgz", @@ -83,11 +1139,49 @@ "is-typedarray": "^1.0.0" } }, + "typescript": { + "version": "3.7.0-dev.20191015", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.7.0-dev.20191015.tgz", + "integrity": "sha512-Cpfj1n4pEUVKL+jtS0mkZodJffyMmf3Wk/UjyZMGX4fsjK5KBPJf3NUlyXij8I8p1E2CAomdS5NPFrAR+z8pKw==", + "dev": true + }, "underscore": { "version": "1.9.1", "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.9.1.tgz", "integrity": "sha512-5/4etnCkd9c8gwgowi5/om/mYO5ajCaOgdzj/oW+0eQV9WxKBDZw5+ycmKmeaTXjInS/W0BzpGLo2xR2aBwZdg==" }, + "universalify": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", + "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", + "dev": true + }, + "uri-js": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.2.2.tgz", + "integrity": "sha512-KY9Frmirql91X2Qgjry0Wd4Y+YTdrdZheS8TFwvkbLWf/G5KNJDCh6pKL5OZctEW4+0Baa5idK2ZQuELRwPznQ==", + "dev": true, + "requires": { + "punycode": "^2.1.0" + } + }, + "uuid": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.3.3.tgz", + "integrity": "sha512-pW0No1RGHgzlpHJO1nsVrHKpOEIxkGg1xB+v0ZmdNH5OAeAwzAVrCnI2/6Mtx+Uys6iaylxa+D3g4j63IKKjSQ==", + "dev": true + }, + "verror": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz", + "integrity": "sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA=", + "dev": true, + "requires": { + "assert-plus": "^1.0.0", + "core-util-is": "1.0.2", + "extsprintf": "^1.2.0" + } + }, "websocket": { "version": "github:web3-js/WebSocket-Node#b134a75541b5db59668df81c03e926cd5f325077", "from": "github:web3-js/WebSocket-Node#polyfill/globalThis", @@ -99,10 +1193,114 @@ "yaeti": "^0.0.6" } }, + "which": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", + "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", + "dev": true, + "requires": { + "isexe": "^2.0.0" + } + }, + "which-module": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.0.tgz", + "integrity": "sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=", + "dev": true + }, + "wrap-ansi": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-2.1.0.tgz", + "integrity": "sha1-2Pw9KE3QV5T+hJc8rs3Rz4JP3YU=", + "dev": true, + "requires": { + "string-width": "^1.0.1", + "strip-ansi": "^3.0.1" + }, + "dependencies": { + "ansi-regex": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", + "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", + "dev": true + }, + "is-fullwidth-code-point": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz", + "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=", + "dev": true, + "requires": { + "number-is-nan": "^1.0.0" + } + }, + "string-width": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", + "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", + "dev": true, + "requires": { + "code-point-at": "^1.0.0", + "is-fullwidth-code-point": "^1.0.0", + "strip-ansi": "^3.0.0" + } + }, + "strip-ansi": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", + "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", + "dev": true, + "requires": { + "ansi-regex": "^2.0.0" + } + } + } + }, + "wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", + "dev": true + }, + "y18n": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.0.tgz", + "integrity": "sha512-r9S/ZyXu/Xu9q1tYlpsLIsa3EeLXXk0VwlxqTcFRfg9EhMW+17kbt9G0NrgCmhGb5vT2hyhJZLfDGx+7+5Uj/w==", + "dev": true + }, "yaeti": { "version": "0.0.6", "resolved": "https://registry.npmjs.org/yaeti/-/yaeti-0.0.6.tgz", "integrity": "sha1-8m9ITXJoTPQr7ft2lwqhYI+/lXc=" + }, + "yargs": { + "version": "12.0.5", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-12.0.5.tgz", + "integrity": "sha512-Lhz8TLaYnxq/2ObqHDql8dX8CJi97oHxrjUcYtzKbbykPtVW9WB+poxI+NM2UIzsMgNCZTIf0AQwsjK5yMAqZw==", + "dev": true, + "requires": { + "cliui": "^4.0.0", + "decamelize": "^1.2.0", + "find-up": "^3.0.0", + "get-caller-file": "^1.0.1", + "os-locale": "^3.0.0", + "require-directory": "^2.1.1", + "require-main-filename": "^1.0.1", + "set-blocking": "^2.0.0", + "string-width": "^2.0.0", + "which-module": "^2.0.0", + "y18n": "^3.2.1 || ^4.0.0", + "yargs-parser": "^11.1.1" + } + }, + "yargs-parser": { + "version": "11.1.1", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-11.1.1.tgz", + "integrity": "sha512-C6kB/WJDiaxONLJQnF8ccx9SEeoTTLek8RVbaOIsrAUS8VrBEXfmeSnCZxygc+XC2sNMBIwOOnfcxiynjHsVSQ==", + "dev": true, + "requires": { + "camelcase": "^5.0.0", + "decamelize": "^1.2.0" + } } } } diff --git a/packages/web3-providers-ws/package.json b/packages/web3-providers-ws/package.json index f760aad1eb4..90f36930791 100644 --- a/packages/web3-providers-ws/package.json +++ b/packages/web3-providers-ws/package.json @@ -7,10 +7,18 @@ "engines": { "node": ">=8.0.0" }, + "scripts": { + "dtslint": "dtslint types --onlyTestTsNext" + }, + "types": "types/index.d.ts", "main": "src/index.js", "dependencies": { "underscore": "1.9.1", "web3-core-helpers": "1.2.1", "websocket": "github:web3-js/WebSocket-Node#polyfill/globalThis" + }, + "devDependencies": { + "definitelytyped-header-parser": "^1.0.1", + "dtslint": "^0.4.2" } } From 0d90928e254192e3db7c164d6a478ee3dee50557 Mon Sep 17 00:00:00 2001 From: Josh Stevens Date: Tue, 15 Oct 2019 14:41:22 +0100 Subject: [PATCH 103/124] feat: `web-providers-ws` typings --- packages/web3-providers-ws/types/index.d.ts | 78 +++++++++++++++++++++ 1 file changed, 78 insertions(+) create mode 100644 packages/web3-providers-ws/types/index.d.ts diff --git a/packages/web3-providers-ws/types/index.d.ts b/packages/web3-providers-ws/types/index.d.ts new file mode 100644 index 00000000000..7c39a80a24e --- /dev/null +++ b/packages/web3-providers-ws/types/index.d.ts @@ -0,0 +1,78 @@ +/* + This file is part of web3.js. + + web3.js is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + web3.js is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License + along with web3.js. If not, see . +*/ +/** + * @file index.d.ts + * @author Josh Stevens + * @date 2018 + */ + +export class AbstractSocketProvider { + constructor(connection: any, timeout?: number); + + host: string; + connected: boolean; + + supportsSubscriptions(): boolean; + + registerEventListeners(): void; + + send(method: string, parameters: any[]): Promise; + + sendBatch(methods: any[], moduleInstance: any): Promise; + + subscribe( + subscribeMethod: string, + subscriptionMethod: string, + parameters: any[] + ): Promise; + + unsubscribe( + subscriptionId: string, + unsubscribeMethod: string + ): Promise; + + clearSubscriptions(unsubscribeMethod: string): Promise; + + on(type: string, callback: () => void): void; + + removeListener(type: string, callback: () => void): void; + + removeAllListeners(type: string): void; + + reset(): void; + + reconnect(): void; + + disconnect(code: number, reason: string): void; +} + +export class WebsocketProvider extends AbstractSocketProvider { + constructor(host: string, options?: WebsocketProviderOptions); + + isConnecting(): boolean; +} + +export interface WebsocketProviderOptions { + host?: string; + timeout?: number; + reconnectDelay?: number; + headers?: any; + protocol?: string; + clientConfig?: string; + requestOptions?: any; + origin?: string; +} From 5b76c0a2e80e6b5f2390708b7d41c320f05df981 Mon Sep 17 00:00:00 2001 From: Josh Stevens Date: Tue, 15 Oct 2019 14:41:41 +0100 Subject: [PATCH 104/124] feat: web3-providers-ws ts files --- packages/web3-providers-ws/README.md | 11 ++++++++--- packages/web3-providers-ws/types/tsconfig.json | 17 +++++++++++++++++ packages/web3-providers-ws/types/tslint.json | 10 ++++++++++ 3 files changed, 35 insertions(+), 3 deletions(-) create mode 100644 packages/web3-providers-ws/types/tsconfig.json create mode 100644 packages/web3-providers-ws/types/tslint.json diff --git a/packages/web3-providers-ws/README.md b/packages/web3-providers-ws/README.md index 72553c48e17..4be274764be 100644 --- a/packages/web3-providers-ws/README.md +++ b/packages/web3-providers-ws/README.md @@ -2,7 +2,7 @@ This is a sub package of [web3.js][repo] -This is a websocket provider for [web3.js][repo]. +This is a websocket provider for [web3.js][repo]. Please read the [documentation][docs] for more. ## Installation @@ -24,17 +24,22 @@ npm run-script build-all Then include `dist/web3-providers-ws.js` in your html file. This will expose the `Web3WsProvider` object on the window object. - ## Usage ```js // in node.js var Web3WsProvider = require('web3-providers-ws'); -var options = { timeout: 30000, headers: {authorization: 'Basic username:password'} } // set a custom timeout at 30 seconds, and credentials (you can also add the credentials to the URL: ws://username:password@localhost:8546) +var options = { + timeout: 30000, + headers: { authorization: 'Basic username:password' } +}; // set a custom timeout at 30 seconds, and credentials (you can also add the credentials to the URL: ws://username:password@localhost:8546) var ws = new Web3WsProvider('ws://localhost:8546', options); ``` +## Types + +All the typescript typings are placed in the types folder. [docs]: http://web3js.readthedocs.io/en/1.0/ [repo]: https://github.com/ethereum/web3.js diff --git a/packages/web3-providers-ws/types/tsconfig.json b/packages/web3-providers-ws/types/tsconfig.json new file mode 100644 index 00000000000..74e0aeeb3a8 --- /dev/null +++ b/packages/web3-providers-ws/types/tsconfig.json @@ -0,0 +1,17 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": ["es6"], + "target": "es6", + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "strictFunctionTypes": true, + "noEmit": true, + "allowSyntheticDefaultImports": false, + "baseUrl": ".", + "paths": { + "web3-providers": ["."] + } + } +} diff --git a/packages/web3-providers-ws/types/tslint.json b/packages/web3-providers-ws/types/tslint.json new file mode 100644 index 00000000000..6429b0c446e --- /dev/null +++ b/packages/web3-providers-ws/types/tslint.json @@ -0,0 +1,10 @@ +{ + "extends": "dtslint/dtslint.json", + "rules": { + "semicolon": false, + "no-import-default-of-export-equals": false, + "file-name-casing": [true, "kebab-case"], + "whitespace": false, + "no-unnecessary-class": false + } +} From eaf43d3c2808d5ef8ce3b98064a1ec830856892f Mon Sep 17 00:00:00 2001 From: Josh Stevens Date: Tue, 15 Oct 2019 14:41:55 +0100 Subject: [PATCH 105/124] test: web3-provider-ws-tests --- .../types/tests/web3-provider-ws-tests.ts | 77 +++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 packages/web3-providers-ws/types/tests/web3-provider-ws-tests.ts diff --git a/packages/web3-providers-ws/types/tests/web3-provider-ws-tests.ts b/packages/web3-providers-ws/types/tests/web3-provider-ws-tests.ts new file mode 100644 index 00000000000..d2830bede3d --- /dev/null +++ b/packages/web3-providers-ws/types/tests/web3-provider-ws-tests.ts @@ -0,0 +1,77 @@ +/* + This file is part of web3.js. + + web3.js is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + web3.js is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License + along with web3.js. If not, see . +*/ +/** + * @file web3-provider-ws-tests.ts + * @author Josh Stevens + * @date 2018 + */ + +import { WebsocketProvider, WebsocketProviderOptions } from 'web3-providers'; + +const options: WebsocketProviderOptions = { + timeout: 30000, + headers: { + authorization: 'Basic username:password' + } +}; + +const wsProvider = new WebsocketProvider('ws://localhost:8545', options); + +// $ExpectType boolean +wsProvider.isConnecting(); + +// $ExpectType string +wsProvider.host; + +// $ExpectType boolean +wsProvider.connected; + +// $ExpectType void +wsProvider.registerEventListeners(); + +// $ExpectType Promise +wsProvider.send('rpc_method', []); + +// $ExpectType Promise +wsProvider.sendBatch([], {}); + +// $ExpectType Promise +wsProvider.subscribe('eth_subscribe', 'logs', []); + +// $ExpectType Promise +wsProvider.unsubscribe('subId', 'eth_unsubscribe'); + +// $ExpectType Promise +wsProvider.clearSubscriptions('eth_unsubscribe'); + +// $ExpectType void +wsProvider.on('type', () => {}); + +// $ExpectType void +wsProvider.removeListener('type', () => {}); + +// $ExpectType void +wsProvider.removeAllListeners('type'); + +// $ExpectType void +wsProvider.reset(); + +// $ExpectType void +wsProvider.reconnect(); + +// $ExpectType void +wsProvider.disconnect(100, 'reason'); From 82e69d7db235a0a849af24da24a113f862e28f3d Mon Sep 17 00:00:00 2001 From: Josh Stevens Date: Tue, 15 Oct 2019 15:54:11 +0100 Subject: [PATCH 106/124] fix: remove batch request from web3-bzz --- packages/web3-bzz/types/index.d.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/web3-bzz/types/index.d.ts b/packages/web3-bzz/types/index.d.ts index a15722313a6..92c4c11f1b6 100644 --- a/packages/web3-bzz/types/index.d.ts +++ b/packages/web3-bzz/types/index.d.ts @@ -30,7 +30,6 @@ export class Bzz { download(bzzHash: string, localPath?: string): Promise; pick: Pick; - BatchRequest: new () => any; } export interface Pick { From 68d46e76aba0dc9b277a1144d389fb1b83aafc5b Mon Sep 17 00:00:00 2001 From: Josh Stevens Date: Tue, 15 Oct 2019 15:54:24 +0100 Subject: [PATCH 107/124] feat: export errors from web3-core-helpers --- packages/web3-core-helpers/types/index.d.ts | 13 +++++++ .../types/tests/errors-test.ts | 38 +++++++++++++++++++ 2 files changed, 51 insertions(+) create mode 100644 packages/web3-core-helpers/types/tests/errors-test.ts diff --git a/packages/web3-core-helpers/types/index.d.ts b/packages/web3-core-helpers/types/index.d.ts index 23e7bbfc586..ad205713e6a 100644 --- a/packages/web3-core-helpers/types/index.d.ts +++ b/packages/web3-core-helpers/types/index.d.ts @@ -57,3 +57,16 @@ export class formatters { static outputSyncingFormatter(result: any): any; // TODO: Create SyncLog interface } + +export class errors { + static ErrorResponse(result: Error): Error; + static InvalidNumberOfParams( + got: number, + expected: number, + method: string + ): Error; + static InvalidConnection(host: string): Error; + static InvalidProvider(): Error; + static InvalidResponse(result: Error): Error; + static ConnectionTimeout(ms: string): Error; +} diff --git a/packages/web3-core-helpers/types/tests/errors-test.ts b/packages/web3-core-helpers/types/tests/errors-test.ts new file mode 100644 index 00000000000..1cc503fafc0 --- /dev/null +++ b/packages/web3-core-helpers/types/tests/errors-test.ts @@ -0,0 +1,38 @@ +/* + This file is part of web3.js. + web3.js is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + web3.js is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + You should have received a copy of the GNU Lesser General Public License + along with web3.js. If not, see . +*/ +/** + * @file errors-test.ts + * @author Josh Stevens + * @date 2019 + */ + +import { errors } from 'web3-core-helpers'; + +// $ExpectType Error +errors.ErrorResponse(new Error('hey')); + +// $ExpectType Error +errors.InvalidNumberOfParams(1, 3, 'method'); + +// $ExpectType Error +errors.InvalidConnection('https://localhost:2345432'); + +// $ExpectType Error +errors.InvalidProvider(); + +// $ExpectType Error +errors.InvalidResponse(new Error('hey')); + +// $ExpectType Error +errors.ConnectionTimeout('timeout'); From 77c02bd9f31e3a466c4145fc10799b02e3ac474c Mon Sep 17 00:00:00 2001 From: Josh Stevens Date: Tue, 15 Oct 2019 16:04:19 +0100 Subject: [PATCH 108/124] fix: remove options from `web3.shh` --- packages/web3-shh/types/index.d.ts | 104 +++++++++++++++++++++-------- 1 file changed, 76 insertions(+), 28 deletions(-) diff --git a/packages/web3-shh/types/index.d.ts b/packages/web3-shh/types/index.d.ts index db0ce8a8737..1e7a11f4e8c 100644 --- a/packages/web3-shh/types/index.d.ts +++ b/packages/web3-shh/types/index.d.ts @@ -18,55 +18,103 @@ */ import * as net from 'net'; -import { AbstractWeb3Module, provider, Web3ModuleOptions } from 'web3-core'; +import { AbstractWeb3Module, provider } from 'web3-core'; import { Network } from 'web3-net'; export class Shh extends AbstractWeb3Module { - constructor( - provider: provider, - net?: net.Socket|null, - options?: Web3ModuleOptions - ); + constructor(provider: provider, net?: net.Socket | null); net: Network; - getVersion(callback?: (error: Error, version: string) => void): Promise; + getVersion( + callback?: (error: Error, version: string) => void + ): Promise; getInfo(callback?: (error: Error, info: Info) => void): Promise; - setMaxMessageSize(size: number, callback?: (error: Error, result: boolean) => void): Promise; + setMaxMessageSize( + size: number, + callback?: (error: Error, result: boolean) => void + ): Promise; - setMinPoW(pow: number, callback?: (error: Error, result: boolean) => void): Promise; + setMinPoW( + pow: number, + callback?: (error: Error, result: boolean) => void + ): Promise; - markTrustedPeer(enode: string, callback?: (error: Error, result: boolean) => void): Promise + markTrustedPeer( + enode: string, + callback?: (error: Error, result: boolean) => void + ): Promise; newKeyPair(callback?: (error: Error, key: string) => void): Promise; - addPrivateKey(privateKey: string, callback?: (error: Error, privateKey: string) => void): Promise; + addPrivateKey( + privateKey: string, + callback?: (error: Error, privateKey: string) => void + ): Promise; - deleteKeyPair(id: string, callback?: (error: Error, result: boolean) => void): Promise; + deleteKeyPair( + id: string, + callback?: (error: Error, result: boolean) => void + ): Promise; - hasKeyPair(id: string, callback?: (error: Error, result: boolean) => void): Promise; + hasKeyPair( + id: string, + callback?: (error: Error, result: boolean) => void + ): Promise; - getPublicKey(id: string, callback?: (error: Error, publicKey: string) => void): Promise; + getPublicKey( + id: string, + callback?: (error: Error, publicKey: string) => void + ): Promise; - getPrivateKey(id: string, callback?: (error: Error, privateKey: string) => void): Promise; + getPrivateKey( + id: string, + callback?: (error: Error, privateKey: string) => void + ): Promise; newSymKey(callback?: (error: Error, key: string) => void): Promise; - addSymKey(symKey: string, callback?: (error: Error, key: string) => void): Promise; - - generateSymKeyFromPassword(password: string, callback?: (error: Error, key: string) => void): Promise; - - hasSymKey(id: string, callback?: (error: Error, result: boolean) => void): Promise; - - getSymKey(id: string, callback?: (error: Error, key: string) => void): Promise; - - deleteSymKey(id: string, callback?: (error: Error, result: boolean) => void): Promise - - post(object: PostWithSymKey | PostWithPubKey, callback?: (error: Error, result: string) => void): Promise; - - subscribe(string: 'messages', options: SubscriptionOptions, callback?: (error: Error, message: Notification, subscription: any) => void): Subscribe; + addSymKey( + symKey: string, + callback?: (error: Error, key: string) => void + ): Promise; + + generateSymKeyFromPassword( + password: string, + callback?: (error: Error, key: string) => void + ): Promise; + + hasSymKey( + id: string, + callback?: (error: Error, result: boolean) => void + ): Promise; + + getSymKey( + id: string, + callback?: (error: Error, key: string) => void + ): Promise; + + deleteSymKey( + id: string, + callback?: (error: Error, result: boolean) => void + ): Promise; + + post( + object: PostWithSymKey | PostWithPubKey, + callback?: (error: Error, result: string) => void + ): Promise; + + subscribe( + string: 'messages', + options: SubscriptionOptions, + callback?: ( + error: Error, + message: Notification, + subscription: any + ) => void + ): Subscribe; newMessageFilter(options?: SubscriptionOptions): Promise; From 10b423e135602ab633d7e396a57dddcf19f274bd Mon Sep 17 00:00:00 2001 From: Josh Stevens Date: Tue, 15 Oct 2019 16:06:07 +0100 Subject: [PATCH 109/124] fix: define callback in the filter methods --- packages/web3-shh/types/index.d.ts | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/packages/web3-shh/types/index.d.ts b/packages/web3-shh/types/index.d.ts index 1e7a11f4e8c..052027a0347 100644 --- a/packages/web3-shh/types/index.d.ts +++ b/packages/web3-shh/types/index.d.ts @@ -116,11 +116,20 @@ export class Shh extends AbstractWeb3Module { ) => void ): Subscribe; - newMessageFilter(options?: SubscriptionOptions): Promise; + newMessageFilter( + options?: SubscriptionOptions, + callback?: (error: Error, result: string) => void + ): Promise; - deleteMessageFilter(id: string): Promise; + deleteMessageFilter( + id: string, + callback?: (error: Error, result: string) => void + ): Promise; - getFilterMessages(id: string): Promise; + getFilterMessages( + id: string, + callback?: (error: Error, result: string) => void + ): Promise; } export interface Info { From 4b9712253e51ac1575c75a7bec1f41ecfc84755b Mon Sep 17 00:00:00 2001 From: Josh Stevens Date: Tue, 15 Oct 2019 16:11:35 +0100 Subject: [PATCH 110/124] feat: remove `TransactionSigner` --- packages/web3-core/types/index.d.ts | 9 -- packages/web3-eth-contract/types/index.d.ts | 8 +- .../types/tests/contract-test.ts | 118 ++++++++++++------ packages/web3-eth-ens/types/index.d.ts | 2 - packages/web3-eth-ens/types/tests/ens-test.ts | 3 - packages/web3-eth/types/index.d.ts | 2 - packages/web3-eth/types/tests/eth.tests.ts | 3 - packages/web3/types/index.d.ts | 8 +- 8 files changed, 81 insertions(+), 72 deletions(-) diff --git a/packages/web3-core/types/index.d.ts b/packages/web3-core/types/index.d.ts index c1a32d7f39a..f599c1906d3 100644 --- a/packages/web3-core/types/index.d.ts +++ b/packages/web3-core/types/index.d.ts @@ -54,10 +54,6 @@ export class AbstractWeb3Module { clearSubscriptions(subscriptionType: string): Promise; } -export interface TransactionSigner { - sign(transactionConfig: TransactionConfig): Promise; -} - export interface SignedTransaction { messageHash?: string; r: string; @@ -75,7 +71,6 @@ export interface Web3ModuleOptions { transactionPollingTimeout?: number; defaultGasPrice?: string; defaultGas?: number; - transactionSigner?: TransactionSigner; } export interface Providers { @@ -263,10 +258,6 @@ export interface PeerInfo { protocols: any; // Any because it's not documented what each protocol (eth, shh etc.) is defining here } -export interface TransactionSigner { - sign(txObject: TransactionConfig): Promise; -} - // had to move `web3-net` due to other modules in `1.x` not referencing export class NetworkBase extends AbstractWeb3Module { diff --git a/packages/web3-eth-contract/types/index.d.ts b/packages/web3-eth-contract/types/index.d.ts index d0890815e4c..db2d432516b 100644 --- a/packages/web3-eth-contract/types/index.d.ts +++ b/packages/web3-eth-contract/types/index.d.ts @@ -18,12 +18,7 @@ */ import BN = require('bn.js'); -import { - PromiEvent, - provider, - TransactionSigner, - Web3ModuleOptions -} from 'web3-core'; +import { PromiEvent, provider, Web3ModuleOptions } from 'web3-core'; import { AbiInput, AbiItem, AbiOutput } from 'web3-utils'; export class Contract { @@ -36,7 +31,6 @@ export class Contract { address: string; jsonInterface: AbiModel; - transactionSigner: TransactionSigner; options: Options; diff --git a/packages/web3-eth-contract/types/tests/contract-test.ts b/packages/web3-eth-contract/types/tests/contract-test.ts index 9dd468eb80c..8b1838361f4 100644 --- a/packages/web3-eth-contract/types/tests/contract-test.ts +++ b/packages/web3-eth-contract/types/tests/contract-test.ts @@ -17,16 +17,13 @@ * @date 2018 */ -import {Contract} from 'web3-eth-contract'; +import { Contract } from 'web3-eth-contract'; const contract = new Contract('http://localhost:500', []); // $ExpectType string contract.address; -// $ExpectType TransactionSigner -contract.transactionSigner; - // $ExpectType string contract.options.address; @@ -46,20 +43,31 @@ contract.deploy({ }); // $ExpectType void -contract.once('MyEvent', { - filter: {myIndexedParam: [20,23], myOtherIndexedParam: '0x123456789...'}, - fromBlock: 0 -}, (error, event) => { console.log(event); }); +contract.once( + 'MyEvent', + { + filter: { + myIndexedParam: [20, 23], + myOtherIndexedParam: '0x123456789...' + }, + fromBlock: 0 + }, + (error, event) => { + console.log(event); + } +); // $ExpectType void -contract.once('MyEvent', (error, event) => { console.log(event); }); +contract.once('MyEvent', (error, event) => { + console.log(event); +}); // $ExpectType Promise contract.getPastEvents('MyEvent'); // $ExpectType Promise contract.getPastEvents('MyEvent', { - filter: {myIndexedParam: [20,23], myOtherIndexedParam: '0x123456789...'}, + filter: { myIndexedParam: [20, 23], myOtherIndexedParam: '0x123456789...' }, fromBlock: 0, toBlock: 'latest' }); @@ -68,47 +76,77 @@ contract.getPastEvents('MyEvent', { contract.getPastEvents('MyEvent', {}); // $ExpectType Promise -contract.getPastEvents('MyEvent', { - filter: {myIndexedParam: [20,23], myOtherIndexedParam: '0x123456789...'}, - fromBlock: 0, - toBlock: 'latest' -}, (error, events) => { console.log(events); }); +contract.getPastEvents( + 'MyEvent', + { + filter: { + myIndexedParam: [20, 23], + myOtherIndexedParam: '0x123456789...' + }, + fromBlock: 0, + toBlock: 'latest' + }, + (error, events) => { + console.log(events); + } +); // $ExpectType Promise -contract.getPastEvents('MyEvent', (error, events) => { console.log(events); }); +contract.getPastEvents('MyEvent', (error, events) => { + console.log(events); +}); // $ExpectType Promise -contract.deploy({ - data: '0x12345...', - arguments: [123, 'My String'] -}).estimateGas(); +contract + .deploy({ + data: '0x12345...', + arguments: [123, 'My String'] + }) + .estimateGas(); // $ExpectType Promise -contract.deploy({ - data: '0x12345...', - arguments: [123, 'My String'] -}).estimateGas({from: '0xde0B295669a9FD93d5F28D9Ec85E40f4cb697BAe'}); +contract + .deploy({ + data: '0x12345...', + arguments: [123, 'My String'] + }) + .estimateGas({ from: '0xde0B295669a9FD93d5F28D9Ec85E40f4cb697BAe' }); // $ExpectType Promise -contract.deploy({ - data: '0x12345...', - arguments: [123, 'My String'] -}).estimateGas((err: Error, gas: number) => { console.log(gas) }); +contract + .deploy({ + data: '0x12345...', + arguments: [123, 'My String'] + }) + .estimateGas((err: Error, gas: number) => { + console.log(gas); + }); // $ExpectType string -contract.deploy({ - data: '0x12345...', - arguments: [123, 'My String'] -}).encodeABI(); +contract + .deploy({ + data: '0x12345...', + arguments: [123, 'My String'] + }) + .encodeABI(); // $ExpectType PromiEvent -contract.deploy({ - data: '0x12345...', - arguments: [123, 'My String'] -}).send({from: '0xde0B295669a9FD93d5F28D9Ec85E40f4cb697BAe'}); +contract + .deploy({ + data: '0x12345...', + arguments: [123, 'My String'] + }) + .send({ from: '0xde0B295669a9FD93d5F28D9Ec85E40f4cb697BAe' }); // $ExpectType PromiEvent -contract.deploy({ - data: '0x12345...', - arguments: [123, 'My String'] -}).send({from: '0xde0B295669a9FD93d5F28D9Ec85E40f4cb697BAe'}, (err: Error, transactionHash: string) => { console.log(transactionHash) }); +contract + .deploy({ + data: '0x12345...', + arguments: [123, 'My String'] + }) + .send( + { from: '0xde0B295669a9FD93d5F28D9Ec85E40f4cb697BAe' }, + (err: Error, transactionHash: string) => { + console.log(transactionHash); + } + ); diff --git a/packages/web3-eth-ens/types/index.d.ts b/packages/web3-eth-ens/types/index.d.ts index 4b2a2920419..11ab0e8ed94 100644 --- a/packages/web3-eth-ens/types/index.d.ts +++ b/packages/web3-eth-ens/types/index.d.ts @@ -25,7 +25,6 @@ import { PromiEvent, provider, TransactionConfig, - TransactionSigner, Web3ModuleOptions } from 'web3-core'; import { formatters } from 'web3-core-helpers'; @@ -42,7 +41,6 @@ export class Ens extends AbstractWeb3Module { ); registry: Registry; - transactionSigner: TransactionSigner; resolver(name: string): Promise; diff --git a/packages/web3-eth-ens/types/tests/ens-test.ts b/packages/web3-eth-ens/types/tests/ens-test.ts index e0b50ce7116..f1720c702a1 100644 --- a/packages/web3-eth-ens/types/tests/ens-test.ts +++ b/packages/web3-eth-ens/types/tests/ens-test.ts @@ -29,9 +29,6 @@ const ens = new Ens( // $ExpectType Registry ens.registry; -// $ExpectType TransactionSigner -ens.transactionSigner; - // $ExpectType Promise ens.resolver('name'); diff --git a/packages/web3-eth/types/index.d.ts b/packages/web3-eth/types/index.d.ts index c31bf4389c2..c852a88883d 100644 --- a/packages/web3-eth/types/index.d.ts +++ b/packages/web3-eth/types/index.d.ts @@ -29,7 +29,6 @@ import { Transaction, TransactionConfig, TransactionReceipt, - TransactionSigner, Web3ModuleOptions } from 'web3-core'; import { AbiCoder } from 'web3-eth-abi'; @@ -59,7 +58,6 @@ export class Eth extends AbstractWeb3Module { ens: Ens; abi: AbiCoder; net: Network; - transactionSigner: TransactionSigner; clearSubscriptions(): Promise; diff --git a/packages/web3-eth/types/tests/eth.tests.ts b/packages/web3-eth/types/tests/eth.tests.ts index 0471e17713c..1009575d29f 100644 --- a/packages/web3-eth/types/tests/eth.tests.ts +++ b/packages/web3-eth/types/tests/eth.tests.ts @@ -49,9 +49,6 @@ eth.abi; // $ExpectType Network eth.net; -// $ExpectType TransactionSigner -eth.transactionSigner; - eth.clearSubscriptions(); // $ExpectType Subscription diff --git a/packages/web3/types/index.d.ts b/packages/web3/types/index.d.ts index d4da3d64da2..55eb4fa4058 100644 --- a/packages/web3/types/index.d.ts +++ b/packages/web3/types/index.d.ts @@ -18,7 +18,7 @@ */ import * as net from 'net'; -import { AbstractWeb3Module, provider, Web3ModuleOptions } from 'web3-core'; +import { AbstractWeb3Module, provider } from 'web3-core'; import { Eth } from 'web3-eth'; import { Personal } from 'web3-eth-personal'; import { Network } from 'web3-net'; @@ -26,11 +26,7 @@ import { Shh } from 'web3-shh'; import { Utils } from 'web3-utils'; export default class Web3 extends AbstractWeb3Module { - constructor( - provider: provider, - net?: net.Socket, - options?: Web3ModuleOptions - ); + constructor(provider: provider, net?: net.Socket); static modules: Modules; static readonly givenProvider: any; From d79226841d8451f6071ee10fdd40a907a954efdc Mon Sep 17 00:00:00 2001 From: Josh Stevens Date: Tue, 15 Oct 2019 17:11:29 +0100 Subject: [PATCH 111/124] docs: add web3-eth-personal docs --- docs/web3-eth-personal.rst | 170 ++++++++++++++++++++++++++++++++++++- 1 file changed, 168 insertions(+), 2 deletions(-) diff --git a/docs/web3-eth-personal.rst b/docs/web3-eth-personal.rst index 3314fb5926f..1af7bfa116a 100644 --- a/docs/web3-eth-personal.rst +++ b/docs/web3-eth-personal.rst @@ -239,6 +239,54 @@ Example ------------------------------------------------------------------------------ +sendTransaction +===================== + +.. code-block:: javascript + + web3.eth.personal.sendTransaction(transactionOptions, password [, callback]) + +This method sends a transaction over the management API. + +.. note:: Sending your account password over an unsecured HTTP RPC connection is highly unsecure. + +---------- +Parameters +---------- + + +1. ``Object`` - The transaction options +2. ``String`` - The passphrase for the current account +3. ``Function`` - (optional) Optional callback, returns an error object as first parameter and the result as second. + + +------- +Returns +------- + + +``Promise`` - The transaction hash. + + +------- +Example +------- + + +.. code-block:: javascript + + web3.eth.sendTransaction({ + from: "0xEB014f8c8B418Db6b45774c326A0E64C78914dC0", + gasPrice: "20000000000", + gas: "21000", + to: '0x3535353535353535353535353535353535353535', + value: "1000000000000000000", + data: "" + }, 'MyPassword!').then(console.log); + > '0xda3be87732110de6c1354c83770aae630ede9ac308d9f7b399ecfba23d923384' + +------------------------------------------------------------------------------ + unlockAccount ===================== @@ -271,6 +319,124 @@ Example .then(console.log('Account unlocked!')); > "Account unlocked!" -// TODO +------------------------------------------------------------------------------ + +lockAccount +===================== + +.. code-block:: javascript + + web3.eth.personal.lockAccount(address [, callback]) + +Locks the given account. + +.. note:: Sending your account password over an unsecured HTTP RPC connection is highly unsecure. + +---------- +Parameters +---------- + + +1. ``address`` - ``String``: The account address. +4. ``Function`` - (optional) Optional callback, returns an error object as first parameter and the result as second. + + +------- +Returns +------- + + +``Promise`` + + +------- +Example +------- + + +.. code-block:: javascript + + web3.eth.personal.lockAccount("0x11f4d0A3c12e86B4b5F39B213F7E19D048276DAe") + .then(console.log('Account locked!')); + > "Account locked!" + +------------------------------------------------------------------------------ + +.. _personal-getaccounts: + +getAccounts +===================== + +.. code-block:: javascript + + web3.eth.personal.getAccounts([callback]) + +Returns a list of accounts the node controls by using the provider and calling +the RPC method ``personal_listAccounts``. Using :ref:`web3.eth.accounts.create() ` +will not add accounts into this list. For that use +:ref:`web3.eth.personal.newAccount() `. + +The results are the same as :ref:`web3.eth.getAccounts() ` except that calls +the RPC method ``eth_accounts``. + +------- +Returns +------- + + +``Promise`` - An array of addresses controlled by node. + +------- +Example +------- + + +.. code-block:: javascript + + web3.eth.personal.getAccounts() + .then(console.log); + > ["0x11f4d0A3c12e86B4b5F39B213F7E19D048276DAe", "0xDCc6960376d6C6dEa93647383FfB245CfCed97Cf"] + +------------------------------------------------------------------------------ + +importRawKey +===================== + +.. code-block:: javascript + + web3.eth.personal.importRawKey(privateKey, password) + +Imports the given private key into the key store, encrypting it with the passphrase. + +Returns the address of the new account. + +.. note:: Sending your account password over an unsecured HTTP RPC connection is highly unsecure. + +---------- +Parameters +---------- + + +1. ``privateKey`` - ``String`` - An unencrypted private key (hex string). +2. ``password`` - ``String`` - The password of the account. + + +------- +Returns +------- + + +``Promise`` - The address of the account. + +------- +Example +------- + + +.. code-block:: javascript + + web3.eth.personal.importRawKey("cd3376bb711cb332ee3fb2ca04c6a8b9f70c316fcdf7a1f44ef4c7999483295e", "password1234") + .then(console.log); + > "0x8f337bf484b2fc75e4b0436645dcc226ee2ac531" + -getAccounts, lockAccount, sendTransaction From 79e98c990c2a5108c09398076e10be8c06895aef Mon Sep 17 00:00:00 2001 From: Josh Stevens Date: Tue, 15 Oct 2019 18:20:09 +0100 Subject: [PATCH 112/124] fix: resolve typings 1.0 from pr comments --- packages/web3-bzz/types/index.d.ts | 9 +- packages/web3-bzz/types/tests/bzz-test.ts | 18 +- packages/web3-core-helpers/types/index.d.ts | 119 +++++++++ packages/web3-core-method/package.json | 2 +- .../types/tests/abstract-method-tests.ts | 72 ------ packages/web3-core/types/index.d.ts | 237 ++---------------- .../types/tests/abstract-web3-module-test.ts | 84 ------- packages/web3-eth-contract/types/index.d.ts | 41 +-- .../types/tests/contract-test.ts | 34 +-- packages/web3-eth-ens/types/index.d.ts | 44 +--- packages/web3-eth-ens/types/tests/ens-test.ts | 7 +- packages/web3-eth-personal/types/index.d.ts | 25 +- packages/web3-eth/types/index.d.ts | 31 ++- packages/web3-eth/types/tests/eth.tests.ts | 17 +- packages/web3-providers-http/types/index.d.ts | 27 +- .../types/tests/web3-provider-http-tests.ts | 7 +- packages/web3-providers-ipc/types/index.d.ts | 41 ++- .../types/tests/web3-provider-ipc-tests.ts | 35 ++- packages/web3-providers-ws/types/index.d.ts | 59 ++--- .../types/tests/web3-provider-ws-tests.ts | 43 ++-- packages/web3-shh/types/index.d.ts | 12 +- packages/web3-shh/types/tests/shh-test.ts | 17 +- packages/web3/types/index.d.ts | 14 +- packages/web3/types/tests/web3-test.ts | 24 +- 24 files changed, 344 insertions(+), 675 deletions(-) delete mode 100644 packages/web3-core-method/types/tests/abstract-method-tests.ts delete mode 100644 packages/web3-core/types/tests/abstract-web3-module-test.ts diff --git a/packages/web3-bzz/types/index.d.ts b/packages/web3-bzz/types/index.d.ts index 92c4c11f1b6..be5a890e3c6 100644 --- a/packages/web3-bzz/types/index.d.ts +++ b/packages/web3-bzz/types/index.d.ts @@ -20,10 +20,13 @@ export class Bzz { constructor(provider: any); + readonly givenProvider: any; + defaultAccount: string | null; + defaultBlock: string | number; + readonly currentProvider: any; setProvider(provider: any): boolean; - - givenProvider: any; - currentProvider: string | null; + BatchRequest: new () => any; + static readonly providers: any; upload(data: any): Promise; diff --git a/packages/web3-bzz/types/tests/bzz-test.ts b/packages/web3-bzz/types/tests/bzz-test.ts index 0657edf5b78..1a18af9b6bb 100644 --- a/packages/web3-bzz/types/tests/bzz-test.ts +++ b/packages/web3-bzz/types/tests/bzz-test.ts @@ -24,14 +24,23 @@ const bzz = new Bzz('http://swarm-gateways.net'); // $ExpectType boolean bzz.setProvider('test.com'); -// $ExpectType boolean -bzz.setProvider({}); +// $ExpectType any +bzz.currentProvider; // $ExpectType any bzz.givenProvider; // $ExpectType string | null -bzz.currentProvider; +bzz.defaultAccount; + +// $ExpectType string | number +bzz.defaultBlock; + +// $ExpectType boolean +bzz.setProvider('https://localhost:2100'); + +// $ExpectType any +new bzz.BatchRequest(); // $ExpectType Promise bzz.upload('test file'); @@ -58,6 +67,3 @@ bzz.pick.directory(); // $ExpectType Promise bzz.pick.data(); - -// $ExpectType any -new bzz.BatchRequest(); diff --git a/packages/web3-core-helpers/types/index.d.ts b/packages/web3-core-helpers/types/index.d.ts index ad205713e6a..aa31018215a 100644 --- a/packages/web3-core-helpers/types/index.d.ts +++ b/packages/web3-core-helpers/types/index.d.ts @@ -17,6 +17,8 @@ * @date 2018 */ +import * as net from 'net'; + export class formatters { static outputBigNumberFormatter(number: number): number; @@ -70,3 +72,120 @@ export class errors { static InvalidResponse(result: Error): Error; static ConnectionTimeout(ms: string): Error; } + +export interface Method { + name: string; + call: string; + params?: number; + inputFormatter?: Array<(() => void) | null>; + outputFormatter?: () => void; + extraFormatters?: any; +} + +export class WebsocketProviderBase { + constructor(host: string, options?: WebsocketProviderOptions); + + isConnecting(): boolean; + + responseCallbacks: any; + notificationCallbacks: any; + connected: boolean; + connection: any; + + addDefaultEvents(): void; + + supportsSubscriptions(): boolean; + + send( + payload: JsonRpcPayload, + callback: (error: Error, result: any) => void + ): void; + + on(type: string, callback: () => void): void; + + once(type: string, callback: () => void): void; + + removeListener(type: string, callback: () => void): void; + + removeAllListeners(type: string): void; + + reset(): void; + + disconnect(code: number, reason: string): void; +} + +export class IpcProviderBase { + constructor(path: string, net: net.Server); + + responseCallbacks: any; + notificationCallbacks: any; + connected: boolean; + connection: any; + + addDefaultEvents(): void; + + supportsSubscriptions(): boolean; + + send( + payload: JsonRpcPayload, + callback: (error: Error, result: any) => void + ): void; + + on(type: string, callback: () => void): void; + + once(type: string, callback: () => void): void; + + removeListener(type: string, callback: () => void): void; + + removeAllListeners(type: string): void; + + reset(): void; + + reconnect(): void; +} + +export class HttpProviderBase { + constructor(host: string, options?: HttpProviderOptions); + + host: string; + connected: boolean; + + supportsSubscriptions(): boolean; + + send( + payload: JsonRpcPayload, + callback: (error: Error, result: any) => void + ): void; + + disconnect(): boolean; +} + +export interface HttpProviderOptions { + keepAlive?: boolean; + timeout?: number; + headers?: HttpHeader[]; + withCredentials?: boolean; +} + +export interface HttpHeader { + name: string; + value: string; +} + +export interface WebsocketProviderOptions { + host?: string; + timeout?: number; + reconnectDelay?: number; + headers?: any; + protocol?: string; + clientConfig?: string; + requestOptions?: any; + origin?: string; +} + +export interface JsonRpcPayload { + jsonrpc: string; + method: string; + params: any[]; + id?: string | number; +} diff --git a/packages/web3-core-method/package.json b/packages/web3-core-method/package.json index 90bc0654f8e..46e6ee3605c 100644 --- a/packages/web3-core-method/package.json +++ b/packages/web3-core-method/package.json @@ -9,7 +9,7 @@ }, "types": "types/index.d.ts", "scripts": { - "dtslint": "dtslint types --onlyTestTsNext" + "ignore_dtslint": "dtslint types --onlyTestTsNext" }, "main": "src/index.js", "dependencies": { diff --git a/packages/web3-core-method/types/tests/abstract-method-tests.ts b/packages/web3-core-method/types/tests/abstract-method-tests.ts deleted file mode 100644 index 70e2f385148..00000000000 --- a/packages/web3-core-method/types/tests/abstract-method-tests.ts +++ /dev/null @@ -1,72 +0,0 @@ -/* - This file is part of web3.js. - web3.js is free software: you can redistribute it and/or modify - it under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - web3.js is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Lesser General Public License for more details. - You should have received a copy of the GNU Lesser General Public License - along with web3.js. If not, see . -*/ -/** - * @file abstract-web3-module-test.ts - * @author Josh Stevens - * @date 2018 - */ - -import { formatters } from 'web3-core-helpers'; -import { AbstractMethod } from 'web3-core-method'; -import * as Utils from 'web3-utils'; - -const abstractMethod = new AbstractMethod( - 'rpc_method', - 1, - Utils, - formatters, - {} -); - -// $ExpectType Utils -abstractMethod.utils; - -// $ExpectType formatters -abstractMethod.formatters; - -// $ExpectType any -abstractMethod.promiEvent; - -// $ExpectType string -abstractMethod.rpcMethod; - -// $ExpectType number -abstractMethod.parametersAmount; - -// $ExpectType any[] -abstractMethod.parameters; - -// $ExpectType any -abstractMethod.getArguments(); - -// $ExpectType boolean -abstractMethod.isHash('string'); - -// $ExpectType void -abstractMethod.setArguments([]); - -// $ExpectType boolean -abstractMethod.hasWallets(); - -// $ExpectType void -abstractMethod.callback('error', 'response'); - -// $ExpectType void -abstractMethod.beforeExecution({}); - -// $ExpectType any -abstractMethod.afterExecution('response'); - -// $ExpectType string | Promise -abstractMethod.execute(); diff --git a/packages/web3-core/types/index.d.ts b/packages/web3-core/types/index.d.ts index f599c1906d3..01343aff77c 100644 --- a/packages/web3-core/types/index.d.ts +++ b/packages/web3-core/types/index.d.ts @@ -19,41 +19,16 @@ */ import * as net from 'net'; -import { AbstractMethod, AbstractMethodFactory } from 'web3-core-method'; +import { + HttpProviderBase, + HttpProviderOptions, + IpcProviderBase, + Method, + WebsocketProviderBase, + WebsocketProviderOptions +} from 'web3-core-helpers'; import BN = require('bn.js'); -export class AbstractWeb3Module { - constructor( - provider: provider, - options?: Web3ModuleOptions, - methodFactory?: AbstractMethodFactory, - net?: net.Socket | null - ); - - BatchRequest: new () => BatchRequest; - defaultBlock: string | number; - transactionBlockTimeout: number; - transactionConfirmationBlocks: number; - transactionPollingTimeout: number; - defaultGasPrice: string; - defaultGas: number; - static readonly providers: Providers; - defaultAccount: string | null; - readonly currentProvider: - | Web3EthereumProvider - | HttpProvider - | IpcProvider - | WebsocketProvider - | CustomProvider; - readonly givenProvider: any; - - setProvider(provider: provider, net?: net.Socket): boolean; - - isSameProvider(provider: provider): boolean; - - clearSubscriptions(subscriptionType: string): Promise; -} - export interface SignedTransaction { messageHash?: string; r: string; @@ -63,16 +38,6 @@ export interface SignedTransaction { transactionHash?: string; } -export interface Web3ModuleOptions { - defaultAccount?: string; - defaultBlock?: string | number; - transactionBlockTimeout?: number; - transactionConfirmationBlocks?: number; - transactionPollingTimeout?: number; - defaultGasPrice?: string; - defaultGas?: number; -} - export interface Providers { HttpProvider: new ( host: string, @@ -260,12 +225,8 @@ export interface PeerInfo { // had to move `web3-net` due to other modules in `1.x` not referencing -export class NetworkBase extends AbstractWeb3Module { - constructor( - provider: provider, - net?: net.Socket | null, - options?: Web3ModuleOptions - ); +export class NetworkBase { + constructor(provider: provider, net?: net.Socket | null); getNetworkType( callback?: (error: Error, returnValue: string) => void @@ -284,12 +245,8 @@ export class NetworkBase extends AbstractWeb3Module { // had to move accounts from web3-eth-accounts due to other modules in 1.x not referencing -export class AccountsBase extends AbstractWeb3Module { - constructor( - provider: provider, - net?: net.Socket | null, - options?: Web3ModuleOptions - ); +export class AccountsBase { + constructor(provider: provider, net?: net.Socket | null); create(entropy?: string): Account; @@ -408,188 +365,30 @@ export interface SignatureObject { // put all the `web3-provider` typings in here so we can get to them everywhere as this module does not exist in 1.x export class BatchRequest { - constructor(moduleInstance: AbstractWeb3Module); - - add(method: AbstractMethod): void; - - execute(): Promise; -} - -export interface BatchError { - errors: BatchErrorItem[]; - response: any[]; -} - -export interface BatchErrorItem { - error: Error; - method: AbstractMethod; -} - -export interface BatchResponse { - methods: AbstractMethod[]; - response: any[]; -} - -export class ProviderDetector { - static detect(): provider; -} - -export class ProvidersModuleFactory { - createBatchRequest(moduleInstance: AbstractWeb3Module): BatchRequest; - - createProviderResolver(): ProviderResolver; + constructor(); - createHttpProvider(url: string): HttpProvider; + add(method: Method): void; - createWebsocketProvider(url: string): WebsocketProvider; - - createIpcProvider(path: string, net: net.Server): IpcProvider; - - createWeb3EthereumProvider(connection: any): Web3EthereumProvider; + execute(): void; } -export class HttpProvider { +export class HttpProvider extends HttpProviderBase { constructor(host: string, options?: HttpProviderOptions); - - host: string; - connected: boolean; - - supportsSubscriptions(): boolean; - - send(method: string, parameters: any[]): Promise; - - sendBatch( - methods: AbstractMethod[], - moduleInstance: AbstractWeb3Module - ): Promise; - - disconnect(): boolean; } -export class CustomProvider { - constructor(injectedProvider: any); - - host: string; - - supportsSubscriptions(): boolean; - - send(method: string, parameters: any[]): Promise; - - sendBatch( - methods: AbstractMethod[], - moduleInstance: AbstractWeb3Module - ): Promise; -} - -export class AbstractSocketProvider { - constructor(connection: any, timeout?: number); - - host: string; - connected: boolean; - - supportsSubscriptions(): boolean; - - registerEventListeners(): void; - - send(method: string, parameters: any[]): Promise; - - sendBatch( - methods: AbstractMethod[], - moduleInstance: AbstractWeb3Module - ): Promise; - - subscribe( - subscribeMethod: string, - subscriptionMethod: string, - parameters: any[] - ): Promise; - - unsubscribe( - subscriptionId: string, - unsubscribeMethod: string - ): Promise; - - clearSubscriptions(unsubscribeMethod: string): Promise; - - on(type: string, callback: () => void): void; - - removeListener(type: string, callback: () => void): void; - - removeAllListeners(type: string): void; - - reset(): void; - - reconnect(): void; - - disconnect(code: number, reason: string): void; -} - -export class IpcProvider extends AbstractSocketProvider { +export class IpcProvider extends IpcProviderBase { constructor(path: string, net: net.Server); } -export class WebsocketProvider extends AbstractSocketProvider { +export class WebsocketProvider extends WebsocketProviderBase { constructor(host: string, options?: WebsocketProviderOptions); isConnecting(): boolean; } -export class Web3EthereumProvider extends AbstractSocketProvider { - constructor(ethereumProvider: any); -} - -export class JsonRpcMapper { - static toPayload(method: string, params: any[]): JsonRpcPayload; -} - -export class ProviderResolver { - resolve(provider: provider, net: net.Socket): provider; -} - -export class JsonRpcResponseValidator { - static validate( - response: JsonRpcPayload[] | JsonRpcPayload, - payload?: any - ): boolean; - - static isResponseItemValid(response: JsonRpcPayload): boolean; -} - export type provider = | HttpProvider | IpcProvider | WebsocketProvider - | Web3EthereumProvider - | CustomProvider | string | null; - -export interface JsonRpcPayload { - jsonrpc: string; - method: string; - params: any[]; - id?: string | number; -} - -export interface HttpHeader { - name: string; - value: string; -} - -export interface HttpProviderOptions { - host?: string; - timeout?: number; - headers?: HttpHeader[]; - withCredentials?: boolean; -} - -export interface WebsocketProviderOptions { - host?: string; - timeout?: number; - reconnectDelay?: number; - headers?: any; - protocol?: string; - clientConfig?: string; - requestOptions?: any; - origin?: string; -} diff --git a/packages/web3-core/types/tests/abstract-web3-module-test.ts b/packages/web3-core/types/tests/abstract-web3-module-test.ts deleted file mode 100644 index 8dc2874b4b3..00000000000 --- a/packages/web3-core/types/tests/abstract-web3-module-test.ts +++ /dev/null @@ -1,84 +0,0 @@ -/* - This file is part of web3.js. - web3.js is free software: you can redistribute it and/or modify - it under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - web3.js is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Lesser General Public License for more details. - You should have received a copy of the GNU Lesser General Public License - along with web3.js. If not, see . -*/ -/** - * @file abstract-web3-module-test.ts - * @author Josh Stevens - * @date 2018 - */ -import * as net from 'net'; -import { AbstractWeb3Module, HttpProvider, IpcProvider } from 'web3-core'; - -const options = { - timeout: 20000, - headers: [ - { - name: 'Access-Control-Allow-Origin', - value: '*' - } - ] -}; -const httpProvider = new HttpProvider('http://localhost:8545', options); -const ipcProvider = new IpcProvider( - '/Users/myuser/Library/Ethereum/geth.ipc', - new net.Server() -); -const abstractWeb3Module = new AbstractWeb3Module(httpProvider); - -// $ExpectType BatchRequest -new abstractWeb3Module.BatchRequest(); - -// $ExpectType string | number -abstractWeb3Module.defaultBlock; - -// $ExpectType number -abstractWeb3Module.transactionBlockTimeout; - -// $ExpectType number -abstractWeb3Module.transactionConfirmationBlocks; - -// $ExpectType number -abstractWeb3Module.transactionPollingTimeout; - -// $ExpectType string -abstractWeb3Module.defaultGasPrice; - -// $ExpectType number -abstractWeb3Module.defaultGas; - -// $ExpectType Providers -AbstractWeb3Module.providers; - -// $ExpectType any -abstractWeb3Module.givenProvider; - -// $ExpectType string | null -abstractWeb3Module.defaultAccount; - -// $ExpectType HttpProvider | IpcProvider | WebsocketProvider | Web3EthereumProvider | CustomProvider -abstractWeb3Module.currentProvider; - -// $ExpectType boolean -abstractWeb3Module.setProvider(httpProvider); - -// $ExpectType boolean -abstractWeb3Module.setProvider('http://localhost:8545'); - -// $ExpectType boolean -abstractWeb3Module.isSameProvider('http://localhost:8545'); - -// $ExpectType boolean -abstractWeb3Module.isSameProvider(httpProvider); - -// $ExpectType Promise -abstractWeb3Module.clearSubscriptions('eth_unsubscribe'); diff --git a/packages/web3-eth-contract/types/index.d.ts b/packages/web3-eth-contract/types/index.d.ts index db2d432516b..02d0f443383 100644 --- a/packages/web3-eth-contract/types/index.d.ts +++ b/packages/web3-eth-contract/types/index.d.ts @@ -18,8 +18,8 @@ */ import BN = require('bn.js'); -import { PromiEvent, provider, Web3ModuleOptions } from 'web3-core'; -import { AbiInput, AbiItem, AbiOutput } from 'web3-utils'; +import { PromiEvent, provider } from 'web3-core'; +import { AbiItem } from 'web3-utils'; export class Contract { constructor( @@ -29,8 +29,8 @@ export class Contract { options?: ContractOptions ); - address: string; - jsonInterface: AbiModel; + private _address: string; + private _jsonInterface: AbiItemModel[]; options: Options; @@ -65,11 +65,9 @@ export class Contract { ): Promise; } -export class ContractModuleFactory {} // TODO: Define methods - export interface Options { address: string; - data: string; + jsonInterface: AbiItemModel[]; } export interface DeployOptions { @@ -115,7 +113,7 @@ export interface EstimateGasOptions { value?: number | string | BN; } -export interface ContractOptions extends Web3ModuleOptions { +export interface ContractOptions { // Sender to use for contract calls from?: string; // Gas price to use for contract calls @@ -151,35 +149,8 @@ export interface EventData { address: string; } -export interface AbiModel { - getMethod(name: string): AbiItemModel | false; - - getMethods(): AbiItemModel[]; - - hasMethod(name: string): boolean; - - getEvent(name: string): AbiItemModel | false; - - getEvents(): AbiItemModel[]; - - getEventBySignature(signature: string): AbiItemModel; - - hasEvent(name: string): boolean; -} - export interface AbiItemModel { signature: string; name: string; payable: boolean; - anonymous: boolean; - - getInputLength(): number; - - getInputs(): AbiInput[]; - - getIndexedInputs(): AbiInput[]; - - getOutputs(): AbiOutput[]; - - isOfType(): boolean; } diff --git a/packages/web3-eth-contract/types/tests/contract-test.ts b/packages/web3-eth-contract/types/tests/contract-test.ts index 8b1838361f4..205242cd795 100644 --- a/packages/web3-eth-contract/types/tests/contract-test.ts +++ b/packages/web3-eth-contract/types/tests/contract-test.ts @@ -21,17 +21,11 @@ import { Contract } from 'web3-eth-contract'; const contract = new Contract('http://localhost:500', []); -// $ExpectType string -contract.address; - // $ExpectType string contract.options.address; -// $ExpectType string -contract.options.data; - -// $ExpectType AbiModel -contract.jsonInterface; +// $ExpectType AbiItemModel[] +contract.options.jsonInterface; // $ExpectType Contract contract.clone(); @@ -52,15 +46,11 @@ contract.once( }, fromBlock: 0 }, - (error, event) => { - console.log(event); - } + (error, event) => {} ); // $ExpectType void -contract.once('MyEvent', (error, event) => { - console.log(event); -}); +contract.once('MyEvent', (error, event) => {}); // $ExpectType Promise contract.getPastEvents('MyEvent'); @@ -86,15 +76,11 @@ contract.getPastEvents( fromBlock: 0, toBlock: 'latest' }, - (error, events) => { - console.log(events); - } + (error, events) => {} ); // $ExpectType Promise -contract.getPastEvents('MyEvent', (error, events) => { - console.log(events); -}); +contract.getPastEvents('MyEvent', (error, events) => {}); // $ExpectType Promise contract @@ -118,9 +104,7 @@ contract data: '0x12345...', arguments: [123, 'My String'] }) - .estimateGas((err: Error, gas: number) => { - console.log(gas); - }); + .estimateGas((err: Error, gas: number) => {}); // $ExpectType string contract @@ -146,7 +130,5 @@ contract }) .send( { from: '0xde0B295669a9FD93d5F28D9Ec85E40f4cb697BAe' }, - (err: Error, transactionHash: string) => { - console.log(transactionHash); - } + (err: Error, transactionHash: string) => {} ); diff --git a/packages/web3-eth-ens/types/index.d.ts b/packages/web3-eth-ens/types/index.d.ts index 11ab0e8ed94..02481f33400 100644 --- a/packages/web3-eth-ens/types/index.d.ts +++ b/packages/web3-eth-ens/types/index.d.ts @@ -17,28 +17,11 @@ * @date 2018 */ -import * as net from 'net'; -import { - AbstractWeb3Module, - AccountsBase, - NetworkBase, - PromiEvent, - provider, - TransactionConfig, - Web3ModuleOptions -} from 'web3-core'; -import { formatters } from 'web3-core-helpers'; -import { AbiCoder } from 'web3-eth-abi'; -import { Contract, ContractModuleFactory } from 'web3-eth-contract'; -import { Utils } from 'web3-utils'; - -export class Ens extends AbstractWeb3Module { - constructor( - provider: provider, - net?: net.Socket | null, - accounts?: AccountsBase | null, - options?: Web3ModuleOptions - ); +import { PromiEvent, TransactionConfig } from 'web3-core'; +import { Contract } from 'web3-eth-contract'; + +export class Ens { + constructor(eth: any); registry: Registry; @@ -127,22 +110,11 @@ export class Ens extends AbstractWeb3Module { } export class Registry { - constructor( - provider: provider, - contractModuleFactory: ContractModuleFactory, - accounts: AccountsBase, - abiCoder: AbiCoder, - utils: Utils, - formatters: formatters, - options: Web3ModuleOptions, - net: NetworkBase - ); + constructor(ens: Ens); ens: Ens; - resolverContract: Contract | null; - - setProvider(provider: provider, net?: net.Socket): boolean; + contract: Contract | null; owner( name: string, @@ -150,6 +122,4 @@ export class Registry { ): Promise; resolver(name: string): Promise; - - checkNetwork(): Promise; } diff --git a/packages/web3-eth-ens/types/tests/ens-test.ts b/packages/web3-eth-ens/types/tests/ens-test.ts index f1720c702a1..7ee977658fa 100644 --- a/packages/web3-eth-ens/types/tests/ens-test.ts +++ b/packages/web3-eth-ens/types/tests/ens-test.ts @@ -17,14 +17,9 @@ * @date 2018 */ -import { AccountsBase } from 'web3-core'; import { Ens } from 'web3-eth-ens'; -const ens = new Ens( - 'http://localhost:7545', - null, - new AccountsBase('http://localhost:7545') -); +const ens = new Ens('http://localhost:7545'); // $ExpectType Registry ens.registry; diff --git a/packages/web3-eth-personal/types/index.d.ts b/packages/web3-eth-personal/types/index.d.ts index 802dc9d8508..15c439265be 100644 --- a/packages/web3-eth-personal/types/index.d.ts +++ b/packages/web3-eth-personal/types/index.d.ts @@ -18,23 +18,10 @@ * @date 2018 */ -import * as net from 'net'; -import { - AbstractWeb3Module, - AccountsBase, - provider, - RLPEncodedTransaction, - TransactionConfig, - Web3ModuleOptions -} from 'web3-core'; +import { provider, RLPEncodedTransaction, TransactionConfig } from 'web3-core'; -export class Personal extends AbstractWeb3Module { - constructor( - provider: provider, - net?: net.Socket | null, - options?: Web3ModuleOptions, - accounts?: AccountsBase | null - ); +export class Personal { + constructor(currentProvider: provider); newAccount( password: string, @@ -85,5 +72,9 @@ export class Personal extends AbstractWeb3Module { callback?: (error: Error, accounts: string[]) => void ): Promise; - importRawKey(privateKey: string, password: string): Promise; + importRawKey( + privateKey: string, + password: string, + callback?: (error: Error, result: string) => void + ): Promise; } diff --git a/packages/web3-eth/types/index.d.ts b/packages/web3-eth/types/index.d.ts index c852a88883d..255859d0f12 100644 --- a/packages/web3-eth/types/index.d.ts +++ b/packages/web3-eth/types/index.d.ts @@ -19,17 +19,16 @@ * @date 2018 */ -import * as net from 'net'; import { - AbstractWeb3Module, + BatchRequest, Log, PromiEvent, provider, + Providers, RLPEncodedTransaction, Transaction, TransactionConfig, - TransactionReceipt, - Web3ModuleOptions + TransactionReceipt } from 'web3-core'; import { AbiCoder } from 'web3-eth-abi'; import { Accounts } from 'web3-eth-accounts'; @@ -40,12 +39,8 @@ import { Personal } from 'web3-eth-personal'; import { Network } from 'web3-net'; import { AbiItem } from 'web3-utils'; -export class Eth extends AbstractWeb3Module { - constructor( - provider: provider, - net?: net.Socket | null, - options?: Web3ModuleOptions - ); +export class Eth { + constructor(currentProvider: provider); Contract: new ( jsonInterface: AbiItem[] | AbiItem, @@ -59,7 +54,15 @@ export class Eth extends AbstractWeb3Module { abi: AbiCoder; net: Network; - clearSubscriptions(): Promise; + readonly givenProvider: any; + defaultAccount: string | null; + defaultBlock: string | number; + readonly currentProvider: provider; + setProvider(provider: provider): boolean; + BatchRequest: new () => BatchRequest; + static readonly providers: Providers; + + clearSubscriptions(callback: (error: Error, result: boolean) => void): void; subscribe( type: 'logs', @@ -321,11 +324,6 @@ export class Eth extends AbstractWeb3Module { ): Promise; } -export interface Methods { - property?: string; - methods: Method[]; -} - export interface Method { name: string; call: string; @@ -383,6 +381,7 @@ export interface LogsOptions { export interface Subscription { id: string; options: any; + callback: any; subscribe(callback?: (error: Error, result: T) => void): Subscription; diff --git a/packages/web3-eth/types/tests/eth.tests.ts b/packages/web3-eth/types/tests/eth.tests.ts index 1009575d29f..ca2f14ecb13 100644 --- a/packages/web3-eth/types/tests/eth.tests.ts +++ b/packages/web3-eth/types/tests/eth.tests.ts @@ -49,7 +49,8 @@ eth.abi; // $ExpectType Network eth.net; -eth.clearSubscriptions(); +// $ExpectType void +eth.clearSubscriptions(() => {}); // $ExpectType Subscription eth.subscribe('logs'); @@ -82,23 +83,23 @@ eth.subscribe( (error: Error, transactionHash: string) => {} ); -// $ExpectType Providers -Eth.providers; +// $ExpectType provider +eth.currentProvider; // $ExpectType any eth.givenProvider; -// $ExpectType BatchRequest -new eth.BatchRequest(); - // $ExpectType string | null eth.defaultAccount; // $ExpectType string | number eth.defaultBlock; -// $ExpectType HttpProvider | IpcProvider | WebsocketProvider | Web3EthereumProvider | CustomProvider -eth.currentProvider; +// $ExpectType boolean +eth.setProvider('https://localhost:2100'); + +// $ExpectType BatchRequest +new eth.BatchRequest(); // $ExpectType Promise eth.getProtocolVersion(); diff --git a/packages/web3-providers-http/types/index.d.ts b/packages/web3-providers-http/types/index.d.ts index 36de25201e8..ee2004771db 100644 --- a/packages/web3-providers-http/types/index.d.ts +++ b/packages/web3-providers-http/types/index.d.ts @@ -20,7 +20,13 @@ * @date 2018 */ -export class HttpProvider { +import { + HttpProviderBase, + HttpProviderOptions, + JsonRpcPayload +} from 'web3-core-helpers'; + +export class HttpProvider extends HttpProviderBase { constructor(host: string, options?: HttpProviderOptions); host: string; @@ -28,21 +34,10 @@ export class HttpProvider { supportsSubscriptions(): boolean; - send(method: string, parameters: any[]): Promise; - - sendBatch(methods: any, moduleInstance: any): Promise; + send( + payload: JsonRpcPayload, + callback: (error: Error, result: any) => void + ): void; disconnect(): boolean; } - -export interface HttpProviderOptions { - host?: string; - timeout?: number; - headers?: HttpHeader[]; - withCredentials?: boolean; -} - -export interface HttpHeader { - name: string; - value: string; -} diff --git a/packages/web3-providers-http/types/tests/web3-provider-http-tests.ts b/packages/web3-providers-http/types/tests/web3-provider-http-tests.ts index df8486d5624..853c75c20a4 100644 --- a/packages/web3-providers-http/types/tests/web3-provider-http-tests.ts +++ b/packages/web3-providers-http/types/tests/web3-provider-http-tests.ts @@ -33,11 +33,8 @@ const httpProvider = new HttpProvider('http://localhost:8545', { withCredentials: false }); -// $ExpectType Promise -httpProvider.send('rpc_method', []); - -// $ExpectType Promise -httpProvider.sendBatch([], {}); +// $ExpectType void +httpProvider.send({} as any, () => {}); // $ExpectType boolean httpProvider.disconnect(); diff --git a/packages/web3-providers-ipc/types/index.d.ts b/packages/web3-providers-ipc/types/index.d.ts index a53776f3b68..3e61857afdc 100644 --- a/packages/web3-providers-ipc/types/index.d.ts +++ b/packages/web3-providers-ipc/types/index.d.ts @@ -21,36 +21,29 @@ */ import * as net from 'net'; +import { IpcProviderBase, JsonRpcPayload } from 'web3-core-helpers'; -export class AbstractSocketProvider { - constructor(connection: any, timeout?: number); +export class IpcProvider extends IpcProviderBase { + constructor(path: string, net: net.Server); - host: string; + responseCallbacks: any; + notificationCallbacks: any; connected: boolean; + connection: any; - supportsSubscriptions(): boolean; - - registerEventListeners(): void; - - send(method: string, parameters: any[]): Promise; - - sendBatch(methods: any[], moduleInstance: any): Promise; - - subscribe( - subscribeMethod: string, - subscriptionMethod: string, - parameters: any[] - ): Promise; + addDefaultEvents(): void; - unsubscribe( - subscriptionId: string, - unsubscribeMethod: string - ): Promise; + supportsSubscriptions(): boolean; - clearSubscriptions(unsubscribeMethod: string): Promise; + send( + payload: JsonRpcPayload, + callback: (error: Error, result: any) => void + ): void; on(type: string, callback: () => void): void; + once(type: string, callback: () => void): void; + removeListener(type: string, callback: () => void): void; removeAllListeners(type: string): void; @@ -58,10 +51,4 @@ export class AbstractSocketProvider { reset(): void; reconnect(): void; - - disconnect(code: number, reason: string): void; -} - -export class IpcProvider extends AbstractSocketProvider { - constructor(path: string, net: net.Server); } diff --git a/packages/web3-providers-ipc/types/tests/web3-provider-ipc-tests.ts b/packages/web3-providers-ipc/types/tests/web3-provider-ipc-tests.ts index 7d291dbb465..6174533c0f1 100644 --- a/packages/web3-providers-ipc/types/tests/web3-provider-ipc-tests.ts +++ b/packages/web3-providers-ipc/types/tests/web3-provider-ipc-tests.ts @@ -28,33 +28,33 @@ const ipcProvider = new IpcProvider( new net.Server() ); -// $ExpectType string -ipcProvider.host; +// $ExpectType any +ipcProvider.responseCallbacks; + +// $ExpectType any +ipcProvider.notificationCallbacks; + +// $ExpectType any +ipcProvider.connection; // $ExpectType boolean ipcProvider.connected; // $ExpectType void -ipcProvider.registerEventListeners(); - -// $ExpectType Promise -ipcProvider.send('rpc_method', []); +ipcProvider.addDefaultEvents(); -// $ExpectType Promise -ipcProvider.sendBatch([], {}); - -// $ExpectType Promise -ipcProvider.subscribe('eth_subscribe', 'logs', []); - -// $ExpectType Promise -ipcProvider.unsubscribe('subId', 'eth_unsubscribe'); +// $ExpectType boolean +ipcProvider.supportsSubscriptions(); -// $ExpectType Promise -ipcProvider.clearSubscriptions('eth_unsubscribe'); +// $ExpectType void +ipcProvider.send({} as any, () => {}); // $ExpectType void ipcProvider.on('type', () => {}); +// $ExpectType void +ipcProvider.once('type', () => {}); + // $ExpectType void ipcProvider.removeListener('type', () => {}); @@ -66,6 +66,3 @@ ipcProvider.reset(); // $ExpectType void ipcProvider.reconnect(); - -// $ExpectType void -ipcProvider.disconnect(100, 'reason'); diff --git a/packages/web3-providers-ws/types/index.d.ts b/packages/web3-providers-ws/types/index.d.ts index 7c39a80a24e..0e817a886de 100644 --- a/packages/web3-providers-ws/types/index.d.ts +++ b/packages/web3-providers-ws/types/index.d.ts @@ -20,59 +20,40 @@ * @date 2018 */ -export class AbstractSocketProvider { - constructor(connection: any, timeout?: number); +import { + JsonRpcPayload, + WebsocketProviderBase, + WebsocketProviderOptions +} from 'web3-core-helpers'; - host: string; - connected: boolean; - - supportsSubscriptions(): boolean; - - registerEventListeners(): void; +export class WebsocketProvider extends WebsocketProviderBase { + constructor(host: string, options?: WebsocketProviderOptions); - send(method: string, parameters: any[]): Promise; + isConnecting(): boolean; - sendBatch(methods: any[], moduleInstance: any): Promise; + responseCallbacks: any; + notificationCallbacks: any; + connected: boolean; + connection: any; - subscribe( - subscribeMethod: string, - subscriptionMethod: string, - parameters: any[] - ): Promise; + addDefaultEvents(): void; - unsubscribe( - subscriptionId: string, - unsubscribeMethod: string - ): Promise; + supportsSubscriptions(): boolean; - clearSubscriptions(unsubscribeMethod: string): Promise; + send( + payload: JsonRpcPayload, + callback: (error: Error, result: any) => void + ): void; on(type: string, callback: () => void): void; + once(type: string, callback: () => void): void; + removeListener(type: string, callback: () => void): void; removeAllListeners(type: string): void; reset(): void; - reconnect(): void; - disconnect(code: number, reason: string): void; } - -export class WebsocketProvider extends AbstractSocketProvider { - constructor(host: string, options?: WebsocketProviderOptions); - - isConnecting(): boolean; -} - -export interface WebsocketProviderOptions { - host?: string; - timeout?: number; - reconnectDelay?: number; - headers?: any; - protocol?: string; - clientConfig?: string; - requestOptions?: any; - origin?: string; -} diff --git a/packages/web3-providers-ws/types/tests/web3-provider-ws-tests.ts b/packages/web3-providers-ws/types/tests/web3-provider-ws-tests.ts index d2830bede3d..7fae3ac40bd 100644 --- a/packages/web3-providers-ws/types/tests/web3-provider-ws-tests.ts +++ b/packages/web3-providers-ws/types/tests/web3-provider-ws-tests.ts @@ -20,7 +20,8 @@ * @date 2018 */ -import { WebsocketProvider, WebsocketProviderOptions } from 'web3-providers'; +import { WebsocketProviderOptions } from 'web3-core-helpers'; +import { WebsocketProvider } from 'web3-providers'; const options: WebsocketProviderOptions = { timeout: 30000, @@ -34,44 +35,44 @@ const wsProvider = new WebsocketProvider('ws://localhost:8545', options); // $ExpectType boolean wsProvider.isConnecting(); -// $ExpectType string -wsProvider.host; - // $ExpectType boolean wsProvider.connected; // $ExpectType void -wsProvider.registerEventListeners(); +wsProvider.disconnect(100, 'reason'); -// $ExpectType Promise -wsProvider.send('rpc_method', []); +// $ExpectType any +wsProvider.responseCallbacks; -// $ExpectType Promise -wsProvider.sendBatch([], {}); +// $ExpectType any +wsProvider.notificationCallbacks; -// $ExpectType Promise -wsProvider.subscribe('eth_subscribe', 'logs', []); +// $ExpectType any +wsProvider.connection; + +// $ExpectType boolean +wsProvider.connected; -// $ExpectType Promise -wsProvider.unsubscribe('subId', 'eth_unsubscribe'); +// $ExpectType void +wsProvider.addDefaultEvents(); -// $ExpectType Promise -wsProvider.clearSubscriptions('eth_unsubscribe'); +// $ExpectType boolean +wsProvider.supportsSubscriptions(); // $ExpectType void -wsProvider.on('type', () => {}); +wsProvider.send({} as any, () => {}); // $ExpectType void -wsProvider.removeListener('type', () => {}); +wsProvider.on('type', () => {}); // $ExpectType void -wsProvider.removeAllListeners('type'); +wsProvider.once('type', () => {}); // $ExpectType void -wsProvider.reset(); +wsProvider.removeListener('type', () => {}); // $ExpectType void -wsProvider.reconnect(); +wsProvider.removeAllListeners('type'); // $ExpectType void -wsProvider.disconnect(100, 'reason'); +wsProvider.reset(); diff --git a/packages/web3-shh/types/index.d.ts b/packages/web3-shh/types/index.d.ts index 052027a0347..ddf750e83fc 100644 --- a/packages/web3-shh/types/index.d.ts +++ b/packages/web3-shh/types/index.d.ts @@ -18,14 +18,22 @@ */ import * as net from 'net'; -import { AbstractWeb3Module, provider } from 'web3-core'; +import { BatchRequest, provider, Providers } from 'web3-core'; import { Network } from 'web3-net'; -export class Shh extends AbstractWeb3Module { +export class Shh { constructor(provider: provider, net?: net.Socket | null); net: Network; + readonly givenProvider: any; + defaultAccount: string | null; + defaultBlock: string | number; + readonly currentProvider: provider; + setProvider(provider: provider): boolean; + BatchRequest: new () => BatchRequest; + static readonly providers: Providers; + getVersion( callback?: (error: Error, version: string) => void ): Promise; diff --git a/packages/web3-shh/types/tests/shh-test.ts b/packages/web3-shh/types/tests/shh-test.ts index 106c2cb62af..5f451cc50ed 100644 --- a/packages/web3-shh/types/tests/shh-test.ts +++ b/packages/web3-shh/types/tests/shh-test.ts @@ -21,17 +21,20 @@ import { Info, Notification, Shh } from 'web3-shh'; const shh = new Shh('https://localhost:5000'); -// $ExpectType boolean -shh.setProvider('https://localhost:3000'); - -// $ExpectType Providers -Shh.providers; +// $ExpectType provider +shh.currentProvider; // $ExpectType any shh.givenProvider; -// $ExpectType HttpProvider | IpcProvider | WebsocketProvider | Web3EthereumProvider | CustomProvider -shh.currentProvider; +// $ExpectType string | null +shh.defaultAccount; + +// $ExpectType string | number +shh.defaultBlock; + +// $ExpectType boolean +shh.setProvider('https://localhost:2100'); // $ExpectType BatchRequest new shh.BatchRequest(); diff --git a/packages/web3/types/index.d.ts b/packages/web3/types/index.d.ts index 55eb4fa4058..06fe46de9d4 100644 --- a/packages/web3/types/index.d.ts +++ b/packages/web3/types/index.d.ts @@ -18,22 +18,30 @@ */ import * as net from 'net'; -import { AbstractWeb3Module, provider } from 'web3-core'; +import { Bzz } from 'web3-bzz'; +import { BatchRequest, provider, Providers } from 'web3-core'; import { Eth } from 'web3-eth'; import { Personal } from 'web3-eth-personal'; import { Network } from 'web3-net'; import { Shh } from 'web3-shh'; import { Utils } from 'web3-utils'; -export default class Web3 extends AbstractWeb3Module { +export default class Web3 { constructor(provider: provider, net?: net.Socket); static modules: Modules; - static readonly givenProvider: any; + readonly givenProvider: any; + defaultAccount: string | null; + defaultBlock: string | number; + readonly currentProvider: provider; + setProvider(provider: provider): boolean; + BatchRequest: new () => BatchRequest; + static readonly providers: Providers; utils: Utils; eth: Eth; shh: Shh; + bzz: Bzz; version: string; } diff --git a/packages/web3/types/tests/web3-test.ts b/packages/web3/types/tests/web3-test.ts index 0bb49622a17..b46664d5f83 100644 --- a/packages/web3/types/tests/web3-test.ts +++ b/packages/web3/types/tests/web3-test.ts @@ -22,17 +22,29 @@ import Web3 from 'web3'; // $ExpectType Modules Web3.modules; -// $ExpectType any -Web3.givenProvider; - // $ExpectType Providers Web3.providers; const web3 = new Web3('https://localhost:5000/'); -// $ExpectType HttpProvider | IpcProvider | WebsocketProvider | Web3EthereumProvider | CustomProvider +// $ExpectType provider web3.currentProvider; +// $ExpectType any +web3.givenProvider; + +// $ExpectType string | null +web3.defaultAccount; + +// $ExpectType string | number +web3.defaultBlock; + +// $ExpectType boolean +web3.setProvider('https://localhost:2100'); + +// $ExpectType BatchRequest +new web3.BatchRequest(); + // $ExpectType Utils web3.utils; @@ -45,5 +57,5 @@ web3.eth; // $ExpectType Shh web3.shh; -// $ExpectType BatchRequest -new web3.BatchRequest(); +// $ExpectType Bzz +web3.bzz; From 849f4e60c5c32efa5e9bd9077c7e0f7976af2bd0 Mon Sep 17 00:00:00 2001 From: nivida Date: Wed, 16 Oct 2019 11:58:35 +0200 Subject: [PATCH 113/124] types updated --- lerna-debug.log | 2125 +---------------- package-lock.json | 30 +- packages/web3-bzz/package-lock.json | 86 +- packages/web3-core-helpers/package-lock.json | 104 +- packages/web3-core-helpers/types/index.d.ts | 18 +- packages/web3-core-method/package-lock.json | 104 +- packages/web3-core-method/package.json | 2 +- packages/web3-core-method/types/index.d.ts | 55 +- .../web3-core-promievent/package-lock.json | 4 +- .../package-lock.json | 4 +- .../web3-core-subscriptions/package-lock.json | 343 ++- packages/web3-core-subscriptions/package.json | 8 + .../src/subscription.js | 2 +- .../web3-core-subscriptions/types/index.d.ts | 78 + .../types/tests/subscriptions.tests.ts | 85 + .../types/tsconfig.json | 17 + .../web3-core-subscriptions/types/tslint.json | 12 + packages/web3-core/package-lock.json | 104 +- packages/web3-core/types/index.d.ts | 75 +- packages/web3-eth-abi/package-lock.json | 101 +- packages/web3-eth-accounts/package-lock.json | 97 +- .../types/tests/accounts-tests.ts | 15 + packages/web3-eth-contract/package-lock.json | 104 +- packages/web3-eth-contract/types/index.d.ts | 16 +- .../types/tests/contract-test.ts | 14 +- packages/web3-eth-ens/package-lock.json | 104 +- packages/web3-eth-iban/package-lock.json | 104 +- packages/web3-eth-personal/package-lock.json | 104 +- packages/web3-eth-personal/types/index.d.ts | 2 +- packages/web3-eth/package-lock.json | 104 +- packages/web3-eth/types/index.d.ts | 29 +- packages/web3-eth/types/tests/eth.tests.ts | 3 + packages/web3-net/package-lock.json | 104 +- packages/web3-net/types/tests/network-test.ts | 15 + .../web3-providers-http/package-lock.json | 104 +- packages/web3-providers-ipc/package-lock.json | 321 +-- packages/web3-providers-ws/package-lock.json | 318 +-- packages/web3-shh/package-lock.json | 104 +- packages/web3-shh/types/index.d.ts | 7 +- packages/web3-shh/types/tests/shh-test.ts | 6 - packages/web3-utils/package-lock.json | 97 +- packages/web3/package-lock.json | 104 +- packages/web3/types/index.d.ts | 6 +- packages/web3/types/tests/web3-test.ts | 9 + 44 files changed, 1375 insertions(+), 3873 deletions(-) create mode 100644 packages/web3-core-subscriptions/types/index.d.ts create mode 100644 packages/web3-core-subscriptions/types/tests/subscriptions.tests.ts create mode 100644 packages/web3-core-subscriptions/types/tsconfig.json create mode 100644 packages/web3-core-subscriptions/types/tslint.json diff --git a/lerna-debug.log b/lerna-debug.log index 9eff98d44c3..04dcdf32a36 100644 --- a/lerna-debug.log +++ b/lerna-debug.log @@ -1,2027 +1,100 @@ -0 silly input [ 'publish' ] -1 silly flags { _: [ 'publish' ], 'reject-cycles': false, rejectCycles: false } -2 verbose rootPath /Users/work/Development/foundation/web3.js +0 silly input [ 'dtslint' ] +1 silly flags { +1 silly flags _: [ 'run' ], +1 silly flags 'reject-cycles': false, +1 silly flags rejectCycles: false, +1 silly flags script: 'dtslint', +1 silly flags args: [] +1 silly flags } +2 verbose rootPath /Users/work/Development/foundation/josh 3 info version 2.11.0 -4 silly isInitialized -5 silly isInitialized true -6 silly existsSync /Users/work/Development/foundation/web3.js/VERSION -7 silly initialize attempt -8 info current version 1.2.0 -9 silly getUpdates -10 info Checking for updated packages... -11 silly hasTags -12 verbose hasTags true -13 silly getLastTag -14 verbose getLastTag v1.2.0 -15 info Comparing with v1.2.0. -16 silly diffSinceIn v1.2.0 packages/web3-bzz -17 silly diff packages/web3-bzz/package.json -18 silly diffSinceIn v1.2.0 packages/web3-core-helpers -19 silly diff packages/web3-core-helpers/package.json -20 silly diffSinceIn v1.2.0 packages/web3-core-method -21 silly diff packages/web3-core-method/package.json -22 silly diffSinceIn v1.2.0 packages/web3-core-promievent -23 silly diff packages/web3-core-promievent/package.json -24 silly diffSinceIn v1.2.0 packages/web3-core-requestmanager -25 silly diff packages/web3-core-requestmanager/package.json -26 silly diffSinceIn v1.2.0 packages/web3-core-subscriptions -27 silly diff packages/web3-core-subscriptions/package.json -28 silly diffSinceIn v1.2.0 packages/web3-core -29 silly diff packages/web3-core/package.json -30 silly diffSinceIn v1.2.0 packages/web3-eth-abi -31 silly diff packages/web3-eth-abi/package.json -32 silly diffSinceIn v1.2.0 packages/web3-eth-accounts -33 silly diff packages/web3-eth-accounts/package-lock.json -33 silly diff packages/web3-eth-accounts/package.json -33 silly diff packages/web3-eth-accounts/src/index.js -33 silly diff packages/web3-eth-accounts/src/scrypt.js -34 silly diffSinceIn v1.2.0 packages/web3-eth-contract -35 silly diff packages/web3-eth-contract/package.json -36 silly diffSinceIn v1.2.0 packages/web3-eth-ens -37 silly diff packages/web3-eth-ens/package.json -38 silly diffSinceIn v1.2.0 packages/web3-eth-iban -39 silly diff packages/web3-eth-iban/package.json -40 silly diffSinceIn v1.2.0 packages/web3-eth-personal -41 silly diff packages/web3-eth-personal/package.json -42 silly diffSinceIn v1.2.0 packages/web3-eth -43 silly diff packages/web3-eth/package.json -44 silly diffSinceIn v1.2.0 packages/web3-net -45 silly diff packages/web3-net/package.json -46 silly diffSinceIn v1.2.0 packages/web3-providers-http -47 silly diff packages/web3-providers-http/package.json -48 silly diffSinceIn v1.2.0 packages/web3-providers-ipc -49 silly diff packages/web3-providers-ipc/package.json -50 silly diffSinceIn v1.2.0 packages/web3-providers-ws -51 silly diff packages/web3-providers-ws/package-lock.json -51 silly diff packages/web3-providers-ws/package.json -51 silly diff packages/web3-providers-ws/src/index.js -52 silly diffSinceIn v1.2.0 packages/web3-shh -53 silly diff packages/web3-shh/package.json -54 silly diffSinceIn v1.2.0 packages/web3-utils -55 silly diff packages/web3-utils/package.json -56 silly diffSinceIn v1.2.0 packages/web3 -57 silly diff packages/web3/README.md -57 silly diff packages/web3/package.json -58 verbose updated web3-bzz -59 verbose updated web3-core-helpers -60 verbose updated web3-core-method -61 verbose updated web3-core-promievent -62 verbose updated web3-core-requestmanager -63 verbose updated web3-core-subscriptions -64 verbose updated web3-core -65 verbose updated web3-eth-abi -66 verbose updated web3-eth-accounts -67 verbose updated web3-eth-contract -68 verbose updated web3-eth-ens -69 verbose updated web3-eth-iban -70 verbose updated web3-eth-personal -71 verbose updated web3-eth -72 verbose updated web3-net -73 verbose updated web3-providers-http -74 verbose updated web3-providers-ipc -75 verbose updated web3-providers-ws -76 verbose updated web3-shh -77 verbose updated web3-utils -78 verbose updated web3 -79 info Checking for prereleased packages... -80 silly collectDependents -81 silly isPackageDependentOf web3-bzz web3-bzz -82 silly isPackageDependentOf web3-bzz web3-core-helpers -83 silly isPackageDependentOf web3-bzz web3-core-method -84 silly isPackageDependentOf web3-bzz web3-core-promievent -85 silly isPackageDependentOf web3-bzz web3-core-requestmanager -86 silly isPackageDependentOf web3-bzz web3-core-subscriptions -87 silly isPackageDependentOf web3-bzz web3-core -88 silly isPackageDependentOf web3-bzz web3-eth-abi -89 silly isPackageDependentOf web3-bzz web3-eth-accounts -90 silly isPackageDependentOf web3-bzz web3-eth-contract -91 silly isPackageDependentOf web3-bzz web3-eth-ens -92 silly isPackageDependentOf web3-bzz web3-eth-iban -93 silly isPackageDependentOf web3-bzz web3-eth-personal -94 silly isPackageDependentOf web3-bzz web3-eth -95 silly isPackageDependentOf web3-bzz web3-net -96 silly isPackageDependentOf web3-bzz web3-providers-http -97 silly isPackageDependentOf web3-bzz web3-providers-ipc -98 silly isPackageDependentOf web3-bzz web3-providers-ws -99 silly isPackageDependentOf web3-bzz web3-shh -100 silly isPackageDependentOf web3-bzz web3-utils -101 silly isPackageDependentOf web3-bzz web3 -102 silly isPackageDependentOf web3-core-helpers web3-bzz -103 silly isPackageDependentOf web3-eth-iban web3-bzz -104 silly isPackageDependentOf web3-utils web3-bzz -105 silly isPackageDependentOf web3-utils web3-bzz -106 silly isPackageDependentOf web3-core-helpers web3-core-helpers -107 silly isPackageDependentOf web3-eth-iban web3-core-helpers -108 silly isPackageDependentOf web3-utils web3-core-helpers -109 silly isPackageDependentOf web3-utils web3-core-helpers -110 silly isPackageDependentOf web3-core-helpers web3-core-method -111 silly isPackageDependentOf web3-eth-iban web3-core-method -112 silly isPackageDependentOf web3-utils web3-core-method -113 silly isPackageDependentOf web3-utils web3-core-method -114 silly isPackageDependentOf web3-core-helpers web3-core-promievent -115 silly isPackageDependentOf web3-eth-iban web3-core-promievent -116 silly isPackageDependentOf web3-utils web3-core-promievent -117 silly isPackageDependentOf web3-utils web3-core-promievent -118 silly isPackageDependentOf web3-core-helpers web3-core-requestmanager -119 silly isPackageDependentOf web3-eth-iban web3-core-requestmanager -120 silly isPackageDependentOf web3-utils web3-core-requestmanager -121 silly isPackageDependentOf web3-utils web3-core-requestmanager -122 silly isPackageDependentOf web3-core-helpers web3-core-subscriptions -123 silly isPackageDependentOf web3-eth-iban web3-core-subscriptions -124 silly isPackageDependentOf web3-utils web3-core-subscriptions -125 silly isPackageDependentOf web3-utils web3-core-subscriptions -126 silly isPackageDependentOf web3-core-helpers web3-core -127 silly isPackageDependentOf web3-eth-iban web3-core -128 silly isPackageDependentOf web3-utils web3-core -129 silly isPackageDependentOf web3-utils web3-core -130 silly isPackageDependentOf web3-core-helpers web3-eth-abi -131 silly isPackageDependentOf web3-eth-iban web3-eth-abi -132 silly isPackageDependentOf web3-utils web3-eth-abi -133 silly isPackageDependentOf web3-utils web3-eth-abi -134 silly isPackageDependentOf web3-core-helpers web3-eth-accounts -135 silly isPackageDependentOf web3-eth-iban web3-eth-accounts -136 silly isPackageDependentOf web3-utils web3-eth-accounts -137 silly isPackageDependentOf web3-utils web3-eth-accounts -138 silly isPackageDependentOf web3-core-helpers web3-eth-contract -139 silly isPackageDependentOf web3-eth-iban web3-eth-contract -140 silly isPackageDependentOf web3-utils web3-eth-contract -141 silly isPackageDependentOf web3-utils web3-eth-contract -142 silly isPackageDependentOf web3-core-helpers web3-eth-ens -143 silly isPackageDependentOf web3-eth-iban web3-eth-ens -144 silly isPackageDependentOf web3-utils web3-eth-ens -145 silly isPackageDependentOf web3-utils web3-eth-ens -146 silly isPackageDependentOf web3-core-helpers web3-eth-iban -147 verbose dependent web3-core-helpers depends on web3-eth-iban -148 silly isPackageDependentOf web3-core-helpers web3-eth-personal -149 silly isPackageDependentOf web3-eth-iban web3-eth-personal -150 silly isPackageDependentOf web3-utils web3-eth-personal -151 silly isPackageDependentOf web3-utils web3-eth-personal -152 silly isPackageDependentOf web3-core-helpers web3-eth -153 silly isPackageDependentOf web3-eth-iban web3-eth -154 silly isPackageDependentOf web3-utils web3-eth -155 silly isPackageDependentOf web3-utils web3-eth -156 silly isPackageDependentOf web3-core-helpers web3-net -157 silly isPackageDependentOf web3-eth-iban web3-net -158 silly isPackageDependentOf web3-utils web3-net -159 silly isPackageDependentOf web3-utils web3-net -160 silly isPackageDependentOf web3-core-helpers web3-providers-http -161 silly isPackageDependentOf web3-eth-iban web3-providers-http -162 silly isPackageDependentOf web3-utils web3-providers-http -163 silly isPackageDependentOf web3-utils web3-providers-http -164 silly isPackageDependentOf web3-core-helpers web3-providers-ipc -165 silly isPackageDependentOf web3-eth-iban web3-providers-ipc -166 silly isPackageDependentOf web3-utils web3-providers-ipc -167 silly isPackageDependentOf web3-utils web3-providers-ipc -168 silly isPackageDependentOf web3-core-helpers web3-providers-ws -169 silly isPackageDependentOf web3-eth-iban web3-providers-ws -170 silly isPackageDependentOf web3-utils web3-providers-ws -171 silly isPackageDependentOf web3-utils web3-providers-ws -172 silly isPackageDependentOf web3-core-helpers web3-shh -173 silly isPackageDependentOf web3-eth-iban web3-shh -174 silly isPackageDependentOf web3-utils web3-shh -175 silly isPackageDependentOf web3-utils web3-shh -176 silly isPackageDependentOf web3-core-helpers web3-utils -177 verbose dependent web3-core-helpers depends on web3-utils -178 silly isPackageDependentOf web3-core-helpers web3 -179 silly isPackageDependentOf web3-eth-iban web3 -180 silly isPackageDependentOf web3-utils web3 -181 silly isPackageDependentOf web3-utils web3 -182 silly isPackageDependentOf web3-core-method web3-bzz -183 silly isPackageDependentOf web3-core-helpers web3-bzz -184 silly isPackageDependentOf web3-core-promievent web3-bzz -185 silly isPackageDependentOf web3-core-subscriptions web3-bzz -186 silly isPackageDependentOf web3-core-helpers web3-bzz -187 silly isPackageDependentOf web3-utils web3-bzz -188 silly isPackageDependentOf web3-core-method web3-core-helpers -189 verbose dependent web3-core-method depends on web3-core-helpers -190 silly isPackageDependentOf web3-core-method web3-core-method -191 silly isPackageDependentOf web3-core-helpers web3-core-method -192 silly isPackageDependentOf web3-core-promievent web3-core-method -193 silly isPackageDependentOf web3-core-subscriptions web3-core-method -194 silly isPackageDependentOf web3-core-helpers web3-core-method -195 silly isPackageDependentOf web3-utils web3-core-method -196 silly isPackageDependentOf web3-core-method web3-core-promievent -197 verbose dependent web3-core-method depends on web3-core-promievent -198 silly isPackageDependentOf web3-core-method web3-core-requestmanager -199 silly isPackageDependentOf web3-core-helpers web3-core-requestmanager -200 silly isPackageDependentOf web3-core-promievent web3-core-requestmanager -201 silly isPackageDependentOf web3-core-subscriptions web3-core-requestmanager -202 silly isPackageDependentOf web3-core-helpers web3-core-requestmanager -203 silly isPackageDependentOf web3-utils web3-core-requestmanager -204 silly isPackageDependentOf web3-core-method web3-core-subscriptions -205 verbose dependent web3-core-method depends on web3-core-subscriptions -206 silly isPackageDependentOf web3-core-method web3-core -207 silly isPackageDependentOf web3-core-helpers web3-core -208 silly isPackageDependentOf web3-core-promievent web3-core -209 silly isPackageDependentOf web3-core-subscriptions web3-core -210 silly isPackageDependentOf web3-core-helpers web3-core -211 silly isPackageDependentOf web3-utils web3-core -212 silly isPackageDependentOf web3-core-method web3-eth-abi -213 silly isPackageDependentOf web3-core-helpers web3-eth-abi -214 silly isPackageDependentOf web3-core-promievent web3-eth-abi -215 silly isPackageDependentOf web3-core-subscriptions web3-eth-abi -216 silly isPackageDependentOf web3-core-helpers web3-eth-abi -217 silly isPackageDependentOf web3-utils web3-eth-abi -218 silly isPackageDependentOf web3-core-method web3-eth-accounts -219 silly isPackageDependentOf web3-core-helpers web3-eth-accounts -220 silly isPackageDependentOf web3-core-promievent web3-eth-accounts -221 silly isPackageDependentOf web3-core-subscriptions web3-eth-accounts -222 silly isPackageDependentOf web3-core-helpers web3-eth-accounts -223 silly isPackageDependentOf web3-utils web3-eth-accounts -224 silly isPackageDependentOf web3-core-method web3-eth-contract -225 silly isPackageDependentOf web3-core-helpers web3-eth-contract -226 silly isPackageDependentOf web3-core-promievent web3-eth-contract -227 silly isPackageDependentOf web3-core-subscriptions web3-eth-contract -228 silly isPackageDependentOf web3-core-helpers web3-eth-contract -229 silly isPackageDependentOf web3-utils web3-eth-contract -230 silly isPackageDependentOf web3-core-method web3-eth-ens -231 silly isPackageDependentOf web3-core-helpers web3-eth-ens -232 silly isPackageDependentOf web3-core-promievent web3-eth-ens -233 silly isPackageDependentOf web3-core-subscriptions web3-eth-ens -234 silly isPackageDependentOf web3-core-helpers web3-eth-ens -235 silly isPackageDependentOf web3-utils web3-eth-ens -236 silly isPackageDependentOf web3-core-method web3-eth-iban -237 silly isPackageDependentOf web3-core-helpers web3-eth-iban -238 silly isPackageDependentOf web3-core-promievent web3-eth-iban -239 silly isPackageDependentOf web3-core-subscriptions web3-eth-iban -240 silly isPackageDependentOf web3-core-helpers web3-eth-iban -241 silly isPackageDependentOf web3-utils web3-eth-iban -242 verbose dependent web3-core-method depends on web3-eth-iban -243 silly isPackageDependentOf web3-core-method web3-eth-personal -244 silly isPackageDependentOf web3-core-helpers web3-eth-personal -245 silly isPackageDependentOf web3-core-promievent web3-eth-personal -246 silly isPackageDependentOf web3-core-subscriptions web3-eth-personal -247 silly isPackageDependentOf web3-core-helpers web3-eth-personal -248 silly isPackageDependentOf web3-utils web3-eth-personal -249 silly isPackageDependentOf web3-core-method web3-eth -250 silly isPackageDependentOf web3-core-helpers web3-eth -251 silly isPackageDependentOf web3-core-promievent web3-eth -252 silly isPackageDependentOf web3-core-subscriptions web3-eth -253 silly isPackageDependentOf web3-core-helpers web3-eth -254 silly isPackageDependentOf web3-utils web3-eth -255 silly isPackageDependentOf web3-core-method web3-net -256 silly isPackageDependentOf web3-core-helpers web3-net -257 silly isPackageDependentOf web3-core-promievent web3-net -258 silly isPackageDependentOf web3-core-subscriptions web3-net -259 silly isPackageDependentOf web3-core-helpers web3-net -260 silly isPackageDependentOf web3-utils web3-net -261 silly isPackageDependentOf web3-core-method web3-providers-http -262 silly isPackageDependentOf web3-core-helpers web3-providers-http -263 silly isPackageDependentOf web3-core-promievent web3-providers-http -264 silly isPackageDependentOf web3-core-subscriptions web3-providers-http -265 silly isPackageDependentOf web3-core-helpers web3-providers-http -266 silly isPackageDependentOf web3-utils web3-providers-http -267 silly isPackageDependentOf web3-core-method web3-providers-ipc -268 silly isPackageDependentOf web3-core-helpers web3-providers-ipc -269 silly isPackageDependentOf web3-core-promievent web3-providers-ipc -270 silly isPackageDependentOf web3-core-subscriptions web3-providers-ipc -271 silly isPackageDependentOf web3-core-helpers web3-providers-ipc -272 silly isPackageDependentOf web3-utils web3-providers-ipc -273 silly isPackageDependentOf web3-core-method web3-providers-ws -274 silly isPackageDependentOf web3-core-helpers web3-providers-ws -275 silly isPackageDependentOf web3-core-promievent web3-providers-ws -276 silly isPackageDependentOf web3-core-subscriptions web3-providers-ws -277 silly isPackageDependentOf web3-core-helpers web3-providers-ws -278 silly isPackageDependentOf web3-utils web3-providers-ws -279 silly isPackageDependentOf web3-core-method web3-shh -280 silly isPackageDependentOf web3-core-helpers web3-shh -281 silly isPackageDependentOf web3-core-promievent web3-shh -282 silly isPackageDependentOf web3-core-subscriptions web3-shh -283 silly isPackageDependentOf web3-core-helpers web3-shh -284 silly isPackageDependentOf web3-utils web3-shh -285 silly isPackageDependentOf web3-core-method web3-utils -286 verbose dependent web3-core-method depends on web3-utils -287 silly isPackageDependentOf web3-core-method web3 -288 silly isPackageDependentOf web3-core-helpers web3 -289 silly isPackageDependentOf web3-core-promievent web3 -290 silly isPackageDependentOf web3-core-subscriptions web3 -291 silly isPackageDependentOf web3-core-helpers web3 -292 silly isPackageDependentOf web3-utils web3 -293 silly isPackageDependentOf web3-core-promievent web3-bzz -294 silly isPackageDependentOf web3-core-promievent web3-core-helpers -295 silly isPackageDependentOf web3-core-promievent web3-core-method -296 silly isPackageDependentOf web3-core-promievent web3-core-promievent -297 silly isPackageDependentOf web3-core-promievent web3-core-requestmanager -298 silly isPackageDependentOf web3-core-promievent web3-core-subscriptions -299 silly isPackageDependentOf web3-core-promievent web3-core -300 silly isPackageDependentOf web3-core-promievent web3-eth-abi -301 silly isPackageDependentOf web3-core-promievent web3-eth-accounts -302 silly isPackageDependentOf web3-core-promievent web3-eth-contract -303 silly isPackageDependentOf web3-core-promievent web3-eth-ens -304 silly isPackageDependentOf web3-core-promievent web3-eth-iban -305 silly isPackageDependentOf web3-core-promievent web3-eth-personal -306 silly isPackageDependentOf web3-core-promievent web3-eth -307 silly isPackageDependentOf web3-core-promievent web3-net -308 silly isPackageDependentOf web3-core-promievent web3-providers-http -309 silly isPackageDependentOf web3-core-promievent web3-providers-ipc -310 silly isPackageDependentOf web3-core-promievent web3-providers-ws -311 silly isPackageDependentOf web3-core-promievent web3-shh -312 silly isPackageDependentOf web3-core-promievent web3-utils -313 silly isPackageDependentOf web3-core-promievent web3 -314 silly isPackageDependentOf web3-core-requestmanager web3-bzz -315 silly isPackageDependentOf web3-core-helpers web3-bzz -316 silly isPackageDependentOf web3-providers-http web3-bzz -317 silly isPackageDependentOf web3-core-helpers web3-bzz -318 silly isPackageDependentOf web3-providers-ipc web3-bzz -319 silly isPackageDependentOf web3-core-helpers web3-bzz -320 silly isPackageDependentOf web3-providers-ws web3-bzz -321 silly isPackageDependentOf web3-core-helpers web3-bzz -322 silly isPackageDependentOf web3-core-requestmanager web3-core-helpers -323 verbose dependent web3-core-requestmanager depends on web3-core-helpers -324 silly isPackageDependentOf web3-core-requestmanager web3-core-method -325 silly isPackageDependentOf web3-core-helpers web3-core-method -326 silly isPackageDependentOf web3-providers-http web3-core-method -327 silly isPackageDependentOf web3-core-helpers web3-core-method -328 silly isPackageDependentOf web3-providers-ipc web3-core-method -329 silly isPackageDependentOf web3-core-helpers web3-core-method -330 silly isPackageDependentOf web3-providers-ws web3-core-method -331 silly isPackageDependentOf web3-core-helpers web3-core-method -332 silly isPackageDependentOf web3-core-requestmanager web3-core-promievent -333 silly isPackageDependentOf web3-core-helpers web3-core-promievent -334 silly isPackageDependentOf web3-providers-http web3-core-promievent -335 silly isPackageDependentOf web3-core-helpers web3-core-promievent -336 silly isPackageDependentOf web3-providers-ipc web3-core-promievent -337 silly isPackageDependentOf web3-core-helpers web3-core-promievent -338 silly isPackageDependentOf web3-providers-ws web3-core-promievent -339 silly isPackageDependentOf web3-core-helpers web3-core-promievent -340 silly isPackageDependentOf web3-core-requestmanager web3-core-requestmanager -341 silly isPackageDependentOf web3-core-helpers web3-core-requestmanager -342 silly isPackageDependentOf web3-providers-http web3-core-requestmanager -343 silly isPackageDependentOf web3-core-helpers web3-core-requestmanager -344 silly isPackageDependentOf web3-providers-ipc web3-core-requestmanager -345 silly isPackageDependentOf web3-core-helpers web3-core-requestmanager -346 silly isPackageDependentOf web3-providers-ws web3-core-requestmanager -347 silly isPackageDependentOf web3-core-helpers web3-core-requestmanager -348 silly isPackageDependentOf web3-core-requestmanager web3-core-subscriptions -349 silly isPackageDependentOf web3-core-helpers web3-core-subscriptions -350 silly isPackageDependentOf web3-providers-http web3-core-subscriptions -351 silly isPackageDependentOf web3-core-helpers web3-core-subscriptions -352 silly isPackageDependentOf web3-providers-ipc web3-core-subscriptions -353 silly isPackageDependentOf web3-core-helpers web3-core-subscriptions -354 silly isPackageDependentOf web3-providers-ws web3-core-subscriptions -355 silly isPackageDependentOf web3-core-helpers web3-core-subscriptions -356 silly isPackageDependentOf web3-core-requestmanager web3-core -357 silly isPackageDependentOf web3-core-helpers web3-core -358 silly isPackageDependentOf web3-providers-http web3-core -359 silly isPackageDependentOf web3-core-helpers web3-core -360 silly isPackageDependentOf web3-providers-ipc web3-core -361 silly isPackageDependentOf web3-core-helpers web3-core -362 silly isPackageDependentOf web3-providers-ws web3-core -363 silly isPackageDependentOf web3-core-helpers web3-core -364 silly isPackageDependentOf web3-core-requestmanager web3-eth-abi -365 silly isPackageDependentOf web3-core-helpers web3-eth-abi -366 silly isPackageDependentOf web3-providers-http web3-eth-abi -367 silly isPackageDependentOf web3-core-helpers web3-eth-abi -368 silly isPackageDependentOf web3-providers-ipc web3-eth-abi -369 silly isPackageDependentOf web3-core-helpers web3-eth-abi -370 silly isPackageDependentOf web3-providers-ws web3-eth-abi -371 silly isPackageDependentOf web3-core-helpers web3-eth-abi -372 silly isPackageDependentOf web3-core-requestmanager web3-eth-accounts -373 silly isPackageDependentOf web3-core-helpers web3-eth-accounts -374 silly isPackageDependentOf web3-providers-http web3-eth-accounts -375 silly isPackageDependentOf web3-core-helpers web3-eth-accounts -376 silly isPackageDependentOf web3-providers-ipc web3-eth-accounts -377 silly isPackageDependentOf web3-core-helpers web3-eth-accounts -378 silly isPackageDependentOf web3-providers-ws web3-eth-accounts -379 silly isPackageDependentOf web3-core-helpers web3-eth-accounts -380 silly isPackageDependentOf web3-core-requestmanager web3-eth-contract -381 silly isPackageDependentOf web3-core-helpers web3-eth-contract -382 silly isPackageDependentOf web3-providers-http web3-eth-contract -383 silly isPackageDependentOf web3-core-helpers web3-eth-contract -384 silly isPackageDependentOf web3-providers-ipc web3-eth-contract -385 silly isPackageDependentOf web3-core-helpers web3-eth-contract -386 silly isPackageDependentOf web3-providers-ws web3-eth-contract -387 silly isPackageDependentOf web3-core-helpers web3-eth-contract -388 silly isPackageDependentOf web3-core-requestmanager web3-eth-ens -389 silly isPackageDependentOf web3-core-helpers web3-eth-ens -390 silly isPackageDependentOf web3-providers-http web3-eth-ens -391 silly isPackageDependentOf web3-core-helpers web3-eth-ens -392 silly isPackageDependentOf web3-providers-ipc web3-eth-ens -393 silly isPackageDependentOf web3-core-helpers web3-eth-ens -394 silly isPackageDependentOf web3-providers-ws web3-eth-ens -395 silly isPackageDependentOf web3-core-helpers web3-eth-ens -396 silly isPackageDependentOf web3-core-requestmanager web3-eth-iban -397 silly isPackageDependentOf web3-core-helpers web3-eth-iban -398 silly isPackageDependentOf web3-providers-http web3-eth-iban -399 silly isPackageDependentOf web3-core-helpers web3-eth-iban -400 silly isPackageDependentOf web3-providers-ipc web3-eth-iban -401 silly isPackageDependentOf web3-core-helpers web3-eth-iban -402 silly isPackageDependentOf web3-providers-ws web3-eth-iban -403 silly isPackageDependentOf web3-core-helpers web3-eth-iban -404 verbose dependent web3-core-requestmanager depends on web3-eth-iban -405 silly isPackageDependentOf web3-core-requestmanager web3-eth-personal -406 silly isPackageDependentOf web3-core-helpers web3-eth-personal -407 silly isPackageDependentOf web3-providers-http web3-eth-personal -408 silly isPackageDependentOf web3-core-helpers web3-eth-personal -409 silly isPackageDependentOf web3-providers-ipc web3-eth-personal -410 silly isPackageDependentOf web3-core-helpers web3-eth-personal -411 silly isPackageDependentOf web3-providers-ws web3-eth-personal -412 silly isPackageDependentOf web3-core-helpers web3-eth-personal -413 silly isPackageDependentOf web3-core-requestmanager web3-eth -414 silly isPackageDependentOf web3-core-helpers web3-eth -415 silly isPackageDependentOf web3-providers-http web3-eth -416 silly isPackageDependentOf web3-core-helpers web3-eth -417 silly isPackageDependentOf web3-providers-ipc web3-eth -418 silly isPackageDependentOf web3-core-helpers web3-eth -419 silly isPackageDependentOf web3-providers-ws web3-eth -420 silly isPackageDependentOf web3-core-helpers web3-eth -421 silly isPackageDependentOf web3-core-requestmanager web3-net -422 silly isPackageDependentOf web3-core-helpers web3-net -423 silly isPackageDependentOf web3-providers-http web3-net -424 silly isPackageDependentOf web3-core-helpers web3-net -425 silly isPackageDependentOf web3-providers-ipc web3-net -426 silly isPackageDependentOf web3-core-helpers web3-net -427 silly isPackageDependentOf web3-providers-ws web3-net -428 silly isPackageDependentOf web3-core-helpers web3-net -429 silly isPackageDependentOf web3-core-requestmanager web3-providers-http -430 verbose dependent web3-core-requestmanager depends on web3-providers-http -431 silly isPackageDependentOf web3-core-requestmanager web3-providers-ipc -432 verbose dependent web3-core-requestmanager depends on web3-providers-ipc -433 silly isPackageDependentOf web3-core-requestmanager web3-providers-ws -434 verbose dependent web3-core-requestmanager depends on web3-providers-ws -435 silly isPackageDependentOf web3-core-requestmanager web3-shh -436 silly isPackageDependentOf web3-core-helpers web3-shh -437 silly isPackageDependentOf web3-providers-http web3-shh -438 silly isPackageDependentOf web3-core-helpers web3-shh -439 silly isPackageDependentOf web3-providers-ipc web3-shh -440 silly isPackageDependentOf web3-core-helpers web3-shh -441 silly isPackageDependentOf web3-providers-ws web3-shh -442 silly isPackageDependentOf web3-core-helpers web3-shh -443 silly isPackageDependentOf web3-core-requestmanager web3-utils -444 silly isPackageDependentOf web3-core-helpers web3-utils -445 silly isPackageDependentOf web3-providers-http web3-utils -446 silly isPackageDependentOf web3-core-helpers web3-utils -447 silly isPackageDependentOf web3-providers-ipc web3-utils -448 silly isPackageDependentOf web3-core-helpers web3-utils -449 silly isPackageDependentOf web3-providers-ws web3-utils -450 silly isPackageDependentOf web3-core-helpers web3-utils -451 verbose dependent web3-core-requestmanager depends on web3-utils -452 silly isPackageDependentOf web3-core-requestmanager web3 -453 silly isPackageDependentOf web3-core-helpers web3 -454 silly isPackageDependentOf web3-providers-http web3 -455 silly isPackageDependentOf web3-core-helpers web3 -456 silly isPackageDependentOf web3-providers-ipc web3 -457 silly isPackageDependentOf web3-core-helpers web3 -458 silly isPackageDependentOf web3-providers-ws web3 -459 silly isPackageDependentOf web3-core-helpers web3 -460 silly isPackageDependentOf web3-core-subscriptions web3-bzz -461 silly isPackageDependentOf web3-core-subscriptions web3-core-helpers -462 verbose dependent web3-core-subscriptions depends on web3-core-helpers -463 silly isPackageDependentOf web3-core-subscriptions web3-core-method -464 silly isPackageDependentOf web3-core-subscriptions web3-core-promievent -465 silly isPackageDependentOf web3-core-helpers web3-core-promievent -466 silly isPackageDependentOf web3-core-subscriptions web3-core-requestmanager -467 silly isPackageDependentOf web3-core-subscriptions web3-core-subscriptions -468 silly isPackageDependentOf web3-core-helpers web3-core-subscriptions -469 silly isPackageDependentOf web3-core-subscriptions web3-core -470 silly isPackageDependentOf web3-core-subscriptions web3-eth-abi -471 silly isPackageDependentOf web3-core-subscriptions web3-eth-accounts -472 silly isPackageDependentOf web3-core-subscriptions web3-eth-contract -473 silly isPackageDependentOf web3-core-subscriptions web3-eth-ens -474 silly isPackageDependentOf web3-core-subscriptions web3-eth-iban -475 verbose dependent web3-core-subscriptions depends on web3-eth-iban -476 silly isPackageDependentOf web3-core-subscriptions web3-eth-personal -477 silly isPackageDependentOf web3-core-subscriptions web3-eth -478 silly isPackageDependentOf web3-core-subscriptions web3-net -479 silly isPackageDependentOf web3-core-subscriptions web3-providers-http -480 silly isPackageDependentOf web3-core-subscriptions web3-providers-ipc -481 silly isPackageDependentOf web3-core-subscriptions web3-providers-ws -482 silly isPackageDependentOf web3-core-subscriptions web3-shh -483 silly isPackageDependentOf web3-core-subscriptions web3-utils -484 silly isPackageDependentOf web3-core-helpers web3-utils -485 verbose dependent web3-core-subscriptions depends on web3-utils -486 silly isPackageDependentOf web3-core-subscriptions web3 -487 silly isPackageDependentOf web3-core web3-bzz -488 silly isPackageDependentOf web3-core-helpers web3-bzz -489 silly isPackageDependentOf web3-core-method web3-bzz -490 silly isPackageDependentOf web3-core-requestmanager web3-bzz -491 silly isPackageDependentOf web3-utils web3-bzz -492 silly isPackageDependentOf web3-core web3-core-helpers -493 verbose dependent web3-core depends on web3-core-helpers -494 silly isPackageDependentOf web3-core web3-core-method -495 verbose dependent web3-core depends on web3-core-method -496 silly isPackageDependentOf web3-core web3-core-promievent -497 silly isPackageDependentOf web3-core-helpers web3-core-promievent -498 silly isPackageDependentOf web3-core-method web3-core-promievent -499 silly isPackageDependentOf web3-core-requestmanager web3-core-promievent -500 silly isPackageDependentOf web3-utils web3-core-promievent -501 verbose dependent web3-core depends on web3-core-promievent -502 silly isPackageDependentOf web3-core web3-core-requestmanager -503 verbose dependent web3-core depends on web3-core-requestmanager -504 silly isPackageDependentOf web3-core web3-core-subscriptions -505 silly isPackageDependentOf web3-core-helpers web3-core-subscriptions -506 silly isPackageDependentOf web3-core-method web3-core-subscriptions -507 silly isPackageDependentOf web3-core-requestmanager web3-core-subscriptions -508 silly isPackageDependentOf web3-utils web3-core-subscriptions -509 verbose dependent web3-core depends on web3-core-subscriptions -510 silly isPackageDependentOf web3-core web3-core -511 silly isPackageDependentOf web3-core-helpers web3-core -512 silly isPackageDependentOf web3-core-method web3-core -513 silly isPackageDependentOf web3-core-requestmanager web3-core -514 silly isPackageDependentOf web3-utils web3-core -515 silly isPackageDependentOf web3-core web3-eth-abi -516 silly isPackageDependentOf web3-core-helpers web3-eth-abi -517 silly isPackageDependentOf web3-core-method web3-eth-abi -518 silly isPackageDependentOf web3-core-requestmanager web3-eth-abi -519 silly isPackageDependentOf web3-utils web3-eth-abi -520 silly isPackageDependentOf web3-core web3-eth-accounts -521 silly isPackageDependentOf web3-core-helpers web3-eth-accounts -522 silly isPackageDependentOf web3-core-method web3-eth-accounts -523 silly isPackageDependentOf web3-core-requestmanager web3-eth-accounts -524 silly isPackageDependentOf web3-utils web3-eth-accounts -525 silly isPackageDependentOf web3-core web3-eth-contract -526 silly isPackageDependentOf web3-core-helpers web3-eth-contract -527 silly isPackageDependentOf web3-core-method web3-eth-contract -528 silly isPackageDependentOf web3-core-requestmanager web3-eth-contract -529 silly isPackageDependentOf web3-utils web3-eth-contract -530 silly isPackageDependentOf web3-core web3-eth-ens -531 silly isPackageDependentOf web3-core-helpers web3-eth-ens -532 silly isPackageDependentOf web3-core-method web3-eth-ens -533 silly isPackageDependentOf web3-core-requestmanager web3-eth-ens -534 silly isPackageDependentOf web3-utils web3-eth-ens -535 silly isPackageDependentOf web3-core web3-eth-iban -536 silly isPackageDependentOf web3-core-helpers web3-eth-iban -537 silly isPackageDependentOf web3-core-method web3-eth-iban -538 silly isPackageDependentOf web3-core-requestmanager web3-eth-iban -539 silly isPackageDependentOf web3-utils web3-eth-iban -540 verbose dependent web3-core depends on web3-eth-iban -541 silly isPackageDependentOf web3-core web3-eth-personal -542 silly isPackageDependentOf web3-core-helpers web3-eth-personal -543 silly isPackageDependentOf web3-core-method web3-eth-personal -544 silly isPackageDependentOf web3-core-requestmanager web3-eth-personal -545 silly isPackageDependentOf web3-utils web3-eth-personal -546 silly isPackageDependentOf web3-core web3-eth -547 silly isPackageDependentOf web3-core-helpers web3-eth -548 silly isPackageDependentOf web3-core-method web3-eth -549 silly isPackageDependentOf web3-core-requestmanager web3-eth -550 silly isPackageDependentOf web3-utils web3-eth -551 silly isPackageDependentOf web3-core web3-net -552 silly isPackageDependentOf web3-core-helpers web3-net -553 silly isPackageDependentOf web3-core-method web3-net -554 silly isPackageDependentOf web3-core-requestmanager web3-net -555 silly isPackageDependentOf web3-utils web3-net -556 silly isPackageDependentOf web3-core web3-providers-http -557 silly isPackageDependentOf web3-core-helpers web3-providers-http -558 silly isPackageDependentOf web3-core-method web3-providers-http -559 silly isPackageDependentOf web3-core-requestmanager web3-providers-http -560 silly isPackageDependentOf web3-utils web3-providers-http -561 verbose dependent web3-core depends on web3-providers-http -562 silly isPackageDependentOf web3-core web3-providers-ipc -563 silly isPackageDependentOf web3-core-helpers web3-providers-ipc -564 silly isPackageDependentOf web3-core-method web3-providers-ipc -565 silly isPackageDependentOf web3-core-requestmanager web3-providers-ipc -566 silly isPackageDependentOf web3-utils web3-providers-ipc -567 verbose dependent web3-core depends on web3-providers-ipc -568 silly isPackageDependentOf web3-core web3-providers-ws -569 silly isPackageDependentOf web3-core-helpers web3-providers-ws -570 silly isPackageDependentOf web3-core-method web3-providers-ws -571 silly isPackageDependentOf web3-core-requestmanager web3-providers-ws -572 silly isPackageDependentOf web3-utils web3-providers-ws -573 verbose dependent web3-core depends on web3-providers-ws -574 silly isPackageDependentOf web3-core web3-shh -575 silly isPackageDependentOf web3-core-helpers web3-shh -576 silly isPackageDependentOf web3-core-method web3-shh -577 silly isPackageDependentOf web3-core-requestmanager web3-shh -578 silly isPackageDependentOf web3-utils web3-shh -579 silly isPackageDependentOf web3-core web3-utils -580 verbose dependent web3-core depends on web3-utils -581 silly isPackageDependentOf web3-core web3 -582 silly isPackageDependentOf web3-core-helpers web3 -583 silly isPackageDependentOf web3-core-method web3 -584 silly isPackageDependentOf web3-core-requestmanager web3 -585 silly isPackageDependentOf web3-utils web3 -586 silly isPackageDependentOf web3-eth-abi web3-bzz -587 silly isPackageDependentOf web3-utils web3-bzz -588 silly isPackageDependentOf web3-eth-abi web3-core-helpers -589 silly isPackageDependentOf web3-utils web3-core-helpers -590 silly isPackageDependentOf web3-eth-abi web3-core-method -591 silly isPackageDependentOf web3-utils web3-core-method -592 silly isPackageDependentOf web3-eth-abi web3-core-promievent -593 silly isPackageDependentOf web3-utils web3-core-promievent -594 silly isPackageDependentOf web3-eth-abi web3-core-requestmanager -595 silly isPackageDependentOf web3-utils web3-core-requestmanager -596 silly isPackageDependentOf web3-eth-abi web3-core-subscriptions -597 silly isPackageDependentOf web3-utils web3-core-subscriptions -598 silly isPackageDependentOf web3-eth-abi web3-core -599 silly isPackageDependentOf web3-utils web3-core -600 silly isPackageDependentOf web3-eth-abi web3-eth-abi -601 silly isPackageDependentOf web3-utils web3-eth-abi -602 silly isPackageDependentOf web3-eth-abi web3-eth-accounts -603 silly isPackageDependentOf web3-utils web3-eth-accounts -604 silly isPackageDependentOf web3-eth-abi web3-eth-contract -605 silly isPackageDependentOf web3-utils web3-eth-contract -606 silly isPackageDependentOf web3-eth-abi web3-eth-ens -607 silly isPackageDependentOf web3-utils web3-eth-ens -608 silly isPackageDependentOf web3-eth-abi web3-eth-iban -609 silly isPackageDependentOf web3-utils web3-eth-iban -610 silly isPackageDependentOf web3-eth-abi web3-eth-personal -611 silly isPackageDependentOf web3-utils web3-eth-personal -612 silly isPackageDependentOf web3-eth-abi web3-eth -613 silly isPackageDependentOf web3-utils web3-eth -614 silly isPackageDependentOf web3-eth-abi web3-net -615 silly isPackageDependentOf web3-utils web3-net -616 silly isPackageDependentOf web3-eth-abi web3-providers-http -617 silly isPackageDependentOf web3-utils web3-providers-http -618 silly isPackageDependentOf web3-eth-abi web3-providers-ipc -619 silly isPackageDependentOf web3-utils web3-providers-ipc -620 silly isPackageDependentOf web3-eth-abi web3-providers-ws -621 silly isPackageDependentOf web3-utils web3-providers-ws -622 silly isPackageDependentOf web3-eth-abi web3-shh -623 silly isPackageDependentOf web3-utils web3-shh -624 silly isPackageDependentOf web3-eth-abi web3-utils -625 verbose dependent web3-eth-abi depends on web3-utils -626 silly isPackageDependentOf web3-eth-abi web3 -627 silly isPackageDependentOf web3-utils web3 -628 silly isPackageDependentOf web3-eth-accounts web3-bzz -629 silly isPackageDependentOf web3-core web3-bzz -630 silly isPackageDependentOf web3-core-helpers web3-bzz -631 silly isPackageDependentOf web3-core-method web3-bzz -632 silly isPackageDependentOf web3-utils web3-bzz -633 silly isPackageDependentOf web3-eth-accounts web3-core-helpers -634 verbose dependent web3-eth-accounts depends on web3-core-helpers -635 silly isPackageDependentOf web3-eth-accounts web3-core-method -636 verbose dependent web3-eth-accounts depends on web3-core-method -637 silly isPackageDependentOf web3-eth-accounts web3-core-promievent -638 silly isPackageDependentOf web3-core web3-core-promievent -639 silly isPackageDependentOf web3-core-helpers web3-core-promievent -640 silly isPackageDependentOf web3-core-method web3-core-promievent -641 silly isPackageDependentOf web3-utils web3-core-promievent -642 verbose dependent web3-eth-accounts depends on web3-core-promievent -643 silly isPackageDependentOf web3-eth-accounts web3-core-requestmanager -644 silly isPackageDependentOf web3-core web3-core-requestmanager -645 silly isPackageDependentOf web3-core-helpers web3-core-requestmanager -646 silly isPackageDependentOf web3-core-method web3-core-requestmanager -647 silly isPackageDependentOf web3-utils web3-core-requestmanager -648 verbose dependent web3-eth-accounts depends on web3-core-requestmanager -649 silly isPackageDependentOf web3-eth-accounts web3-core-subscriptions -650 silly isPackageDependentOf web3-core web3-core-subscriptions -651 silly isPackageDependentOf web3-core-helpers web3-core-subscriptions -652 silly isPackageDependentOf web3-core-method web3-core-subscriptions -653 silly isPackageDependentOf web3-utils web3-core-subscriptions -654 verbose dependent web3-eth-accounts depends on web3-core-subscriptions -655 silly isPackageDependentOf web3-eth-accounts web3-core -656 verbose dependent web3-eth-accounts depends on web3-core -657 silly isPackageDependentOf web3-eth-accounts web3-eth-abi -658 silly isPackageDependentOf web3-core web3-eth-abi -659 silly isPackageDependentOf web3-core-helpers web3-eth-abi -660 silly isPackageDependentOf web3-core-method web3-eth-abi -661 silly isPackageDependentOf web3-utils web3-eth-abi -662 silly isPackageDependentOf web3-eth-accounts web3-eth-accounts -663 silly isPackageDependentOf web3-core web3-eth-accounts -664 silly isPackageDependentOf web3-core-helpers web3-eth-accounts -665 silly isPackageDependentOf web3-core-method web3-eth-accounts -666 silly isPackageDependentOf web3-utils web3-eth-accounts -667 silly isPackageDependentOf web3-eth-accounts web3-eth-contract -668 silly isPackageDependentOf web3-core web3-eth-contract -669 silly isPackageDependentOf web3-core-helpers web3-eth-contract -670 silly isPackageDependentOf web3-core-method web3-eth-contract -671 silly isPackageDependentOf web3-utils web3-eth-contract -672 silly isPackageDependentOf web3-eth-accounts web3-eth-ens -673 silly isPackageDependentOf web3-core web3-eth-ens -674 silly isPackageDependentOf web3-core-helpers web3-eth-ens -675 silly isPackageDependentOf web3-core-method web3-eth-ens -676 silly isPackageDependentOf web3-utils web3-eth-ens -677 silly isPackageDependentOf web3-eth-accounts web3-eth-iban -678 silly isPackageDependentOf web3-core web3-eth-iban -679 silly isPackageDependentOf web3-core-helpers web3-eth-iban -680 silly isPackageDependentOf web3-core-method web3-eth-iban -681 silly isPackageDependentOf web3-utils web3-eth-iban -682 verbose dependent web3-eth-accounts depends on web3-eth-iban -683 silly isPackageDependentOf web3-eth-accounts web3-eth-personal -684 silly isPackageDependentOf web3-core web3-eth-personal -685 silly isPackageDependentOf web3-core-helpers web3-eth-personal -686 silly isPackageDependentOf web3-core-method web3-eth-personal -687 silly isPackageDependentOf web3-utils web3-eth-personal -688 silly isPackageDependentOf web3-eth-accounts web3-eth -689 silly isPackageDependentOf web3-core web3-eth -690 silly isPackageDependentOf web3-core-helpers web3-eth -691 silly isPackageDependentOf web3-core-method web3-eth -692 silly isPackageDependentOf web3-utils web3-eth -693 silly isPackageDependentOf web3-eth-accounts web3-net -694 silly isPackageDependentOf web3-core web3-net -695 silly isPackageDependentOf web3-core-helpers web3-net -696 silly isPackageDependentOf web3-core-method web3-net -697 silly isPackageDependentOf web3-utils web3-net -698 silly isPackageDependentOf web3-eth-accounts web3-providers-http -699 silly isPackageDependentOf web3-core web3-providers-http -700 silly isPackageDependentOf web3-core-helpers web3-providers-http -701 silly isPackageDependentOf web3-core-method web3-providers-http -702 silly isPackageDependentOf web3-utils web3-providers-http -703 verbose dependent web3-eth-accounts depends on web3-providers-http -704 silly isPackageDependentOf web3-eth-accounts web3-providers-ipc -705 silly isPackageDependentOf web3-core web3-providers-ipc -706 silly isPackageDependentOf web3-core-helpers web3-providers-ipc -707 silly isPackageDependentOf web3-core-method web3-providers-ipc -708 silly isPackageDependentOf web3-utils web3-providers-ipc -709 verbose dependent web3-eth-accounts depends on web3-providers-ipc -710 silly isPackageDependentOf web3-eth-accounts web3-providers-ws -711 silly isPackageDependentOf web3-core web3-providers-ws -712 silly isPackageDependentOf web3-core-helpers web3-providers-ws -713 silly isPackageDependentOf web3-core-method web3-providers-ws -714 silly isPackageDependentOf web3-utils web3-providers-ws -715 verbose dependent web3-eth-accounts depends on web3-providers-ws -716 silly isPackageDependentOf web3-eth-accounts web3-shh -717 silly isPackageDependentOf web3-core web3-shh -718 silly isPackageDependentOf web3-core-helpers web3-shh -719 silly isPackageDependentOf web3-core-method web3-shh -720 silly isPackageDependentOf web3-utils web3-shh -721 silly isPackageDependentOf web3-eth-accounts web3-utils -722 verbose dependent web3-eth-accounts depends on web3-utils -723 silly isPackageDependentOf web3-eth-accounts web3 -724 silly isPackageDependentOf web3-core web3 -725 silly isPackageDependentOf web3-core-helpers web3 -726 silly isPackageDependentOf web3-core-method web3 -727 silly isPackageDependentOf web3-utils web3 -728 silly isPackageDependentOf web3-eth-contract web3-bzz -729 silly isPackageDependentOf web3-core web3-bzz -730 silly isPackageDependentOf web3-core-helpers web3-bzz -731 silly isPackageDependentOf web3-core-method web3-bzz -732 silly isPackageDependentOf web3-core-promievent web3-bzz -733 silly isPackageDependentOf web3-core-subscriptions web3-bzz -734 silly isPackageDependentOf web3-eth-abi web3-bzz -735 silly isPackageDependentOf web3-utils web3-bzz -736 silly isPackageDependentOf web3-eth-contract web3-core-helpers -737 verbose dependent web3-eth-contract depends on web3-core-helpers -738 silly isPackageDependentOf web3-eth-contract web3-core-method -739 verbose dependent web3-eth-contract depends on web3-core-method -740 silly isPackageDependentOf web3-eth-contract web3-core-promievent -741 verbose dependent web3-eth-contract depends on web3-core-promievent -742 silly isPackageDependentOf web3-eth-contract web3-core-requestmanager -743 silly isPackageDependentOf web3-core web3-core-requestmanager -744 silly isPackageDependentOf web3-core-helpers web3-core-requestmanager -745 silly isPackageDependentOf web3-core-method web3-core-requestmanager -746 silly isPackageDependentOf web3-core-promievent web3-core-requestmanager -747 silly isPackageDependentOf web3-core-subscriptions web3-core-requestmanager -748 silly isPackageDependentOf web3-eth-abi web3-core-requestmanager -749 silly isPackageDependentOf web3-utils web3-core-requestmanager -750 verbose dependent web3-eth-contract depends on web3-core-requestmanager -751 silly isPackageDependentOf web3-eth-contract web3-core-subscriptions -752 verbose dependent web3-eth-contract depends on web3-core-subscriptions -753 silly isPackageDependentOf web3-eth-contract web3-core -754 verbose dependent web3-eth-contract depends on web3-core -755 silly isPackageDependentOf web3-eth-contract web3-eth-abi -756 verbose dependent web3-eth-contract depends on web3-eth-abi -757 silly isPackageDependentOf web3-eth-contract web3-eth-accounts -758 silly isPackageDependentOf web3-core web3-eth-accounts -759 silly isPackageDependentOf web3-core-helpers web3-eth-accounts -760 silly isPackageDependentOf web3-core-method web3-eth-accounts -761 silly isPackageDependentOf web3-core-promievent web3-eth-accounts -762 silly isPackageDependentOf web3-core-subscriptions web3-eth-accounts -763 silly isPackageDependentOf web3-eth-abi web3-eth-accounts -764 silly isPackageDependentOf web3-utils web3-eth-accounts -765 silly isPackageDependentOf web3-eth-contract web3-eth-contract -766 silly isPackageDependentOf web3-core web3-eth-contract -767 silly isPackageDependentOf web3-core-helpers web3-eth-contract -768 silly isPackageDependentOf web3-core-method web3-eth-contract -769 silly isPackageDependentOf web3-core-promievent web3-eth-contract -770 silly isPackageDependentOf web3-core-subscriptions web3-eth-contract -771 silly isPackageDependentOf web3-eth-abi web3-eth-contract -772 silly isPackageDependentOf web3-utils web3-eth-contract -773 silly isPackageDependentOf web3-eth-contract web3-eth-ens -774 silly isPackageDependentOf web3-core web3-eth-ens -775 silly isPackageDependentOf web3-core-helpers web3-eth-ens -776 silly isPackageDependentOf web3-core-method web3-eth-ens -777 silly isPackageDependentOf web3-core-promievent web3-eth-ens -778 silly isPackageDependentOf web3-core-subscriptions web3-eth-ens -779 silly isPackageDependentOf web3-eth-abi web3-eth-ens -780 silly isPackageDependentOf web3-utils web3-eth-ens -781 silly isPackageDependentOf web3-eth-contract web3-eth-iban -782 silly isPackageDependentOf web3-core web3-eth-iban -783 silly isPackageDependentOf web3-core-helpers web3-eth-iban -784 silly isPackageDependentOf web3-core-method web3-eth-iban -785 silly isPackageDependentOf web3-core-promievent web3-eth-iban -786 silly isPackageDependentOf web3-core-subscriptions web3-eth-iban -787 silly isPackageDependentOf web3-eth-abi web3-eth-iban -788 silly isPackageDependentOf web3-utils web3-eth-iban -789 verbose dependent web3-eth-contract depends on web3-eth-iban -790 silly isPackageDependentOf web3-eth-contract web3-eth-personal -791 silly isPackageDependentOf web3-core web3-eth-personal -792 silly isPackageDependentOf web3-core-helpers web3-eth-personal -793 silly isPackageDependentOf web3-core-method web3-eth-personal -794 silly isPackageDependentOf web3-core-promievent web3-eth-personal -795 silly isPackageDependentOf web3-core-subscriptions web3-eth-personal -796 silly isPackageDependentOf web3-eth-abi web3-eth-personal -797 silly isPackageDependentOf web3-utils web3-eth-personal -798 silly isPackageDependentOf web3-eth-contract web3-eth -799 silly isPackageDependentOf web3-core web3-eth -800 silly isPackageDependentOf web3-core-helpers web3-eth -801 silly isPackageDependentOf web3-core-method web3-eth -802 silly isPackageDependentOf web3-core-promievent web3-eth -803 silly isPackageDependentOf web3-core-subscriptions web3-eth -804 silly isPackageDependentOf web3-eth-abi web3-eth -805 silly isPackageDependentOf web3-utils web3-eth -806 silly isPackageDependentOf web3-eth-contract web3-net -807 silly isPackageDependentOf web3-core web3-net -808 silly isPackageDependentOf web3-core-helpers web3-net -809 silly isPackageDependentOf web3-core-method web3-net -810 silly isPackageDependentOf web3-core-promievent web3-net -811 silly isPackageDependentOf web3-core-subscriptions web3-net -812 silly isPackageDependentOf web3-eth-abi web3-net -813 silly isPackageDependentOf web3-utils web3-net -814 silly isPackageDependentOf web3-eth-contract web3-providers-http -815 silly isPackageDependentOf web3-core web3-providers-http -816 silly isPackageDependentOf web3-core-helpers web3-providers-http -817 silly isPackageDependentOf web3-core-method web3-providers-http -818 silly isPackageDependentOf web3-core-promievent web3-providers-http -819 silly isPackageDependentOf web3-core-subscriptions web3-providers-http -820 silly isPackageDependentOf web3-eth-abi web3-providers-http -821 silly isPackageDependentOf web3-utils web3-providers-http -822 verbose dependent web3-eth-contract depends on web3-providers-http -823 silly isPackageDependentOf web3-eth-contract web3-providers-ipc -824 silly isPackageDependentOf web3-core web3-providers-ipc -825 silly isPackageDependentOf web3-core-helpers web3-providers-ipc -826 silly isPackageDependentOf web3-core-method web3-providers-ipc -827 silly isPackageDependentOf web3-core-promievent web3-providers-ipc -828 silly isPackageDependentOf web3-core-subscriptions web3-providers-ipc -829 silly isPackageDependentOf web3-eth-abi web3-providers-ipc -830 silly isPackageDependentOf web3-utils web3-providers-ipc -831 verbose dependent web3-eth-contract depends on web3-providers-ipc -832 silly isPackageDependentOf web3-eth-contract web3-providers-ws -833 silly isPackageDependentOf web3-core web3-providers-ws -834 silly isPackageDependentOf web3-core-helpers web3-providers-ws -835 silly isPackageDependentOf web3-core-method web3-providers-ws -836 silly isPackageDependentOf web3-core-promievent web3-providers-ws -837 silly isPackageDependentOf web3-core-subscriptions web3-providers-ws -838 silly isPackageDependentOf web3-eth-abi web3-providers-ws -839 silly isPackageDependentOf web3-utils web3-providers-ws -840 verbose dependent web3-eth-contract depends on web3-providers-ws -841 silly isPackageDependentOf web3-eth-contract web3-shh -842 silly isPackageDependentOf web3-core web3-shh -843 silly isPackageDependentOf web3-core-helpers web3-shh -844 silly isPackageDependentOf web3-core-method web3-shh -845 silly isPackageDependentOf web3-core-promievent web3-shh -846 silly isPackageDependentOf web3-core-subscriptions web3-shh -847 silly isPackageDependentOf web3-eth-abi web3-shh -848 silly isPackageDependentOf web3-utils web3-shh -849 silly isPackageDependentOf web3-eth-contract web3-utils -850 verbose dependent web3-eth-contract depends on web3-utils -851 silly isPackageDependentOf web3-eth-contract web3 -852 silly isPackageDependentOf web3-core web3 -853 silly isPackageDependentOf web3-core-helpers web3 -854 silly isPackageDependentOf web3-core-method web3 -855 silly isPackageDependentOf web3-core-promievent web3 -856 silly isPackageDependentOf web3-core-subscriptions web3 -857 silly isPackageDependentOf web3-eth-abi web3 -858 silly isPackageDependentOf web3-utils web3 -859 silly isPackageDependentOf web3-eth-ens web3-bzz -860 silly isPackageDependentOf web3-core web3-bzz -861 silly isPackageDependentOf web3-core-helpers web3-bzz -862 silly isPackageDependentOf web3-core-promievent web3-bzz -863 silly isPackageDependentOf web3-eth-abi web3-bzz -864 silly isPackageDependentOf web3-eth-contract web3-bzz -865 silly isPackageDependentOf web3-utils web3-bzz -866 silly isPackageDependentOf web3-eth-ens web3-core-helpers -867 verbose dependent web3-eth-ens depends on web3-core-helpers -868 silly isPackageDependentOf web3-eth-ens web3-core-method -869 silly isPackageDependentOf web3-core web3-core-method -870 silly isPackageDependentOf web3-core-helpers web3-core-method -871 silly isPackageDependentOf web3-core-promievent web3-core-method -872 silly isPackageDependentOf web3-eth-abi web3-core-method -873 silly isPackageDependentOf web3-eth-contract web3-core-method -874 silly isPackageDependentOf web3-utils web3-core-method -875 verbose dependent web3-eth-ens depends on web3-core-method -876 silly isPackageDependentOf web3-eth-ens web3-core-promievent -877 verbose dependent web3-eth-ens depends on web3-core-promievent -878 silly isPackageDependentOf web3-eth-ens web3-core-requestmanager -879 silly isPackageDependentOf web3-core web3-core-requestmanager -880 silly isPackageDependentOf web3-core-helpers web3-core-requestmanager -881 silly isPackageDependentOf web3-core-promievent web3-core-requestmanager -882 silly isPackageDependentOf web3-eth-abi web3-core-requestmanager -883 silly isPackageDependentOf web3-eth-contract web3-core-requestmanager -884 silly isPackageDependentOf web3-utils web3-core-requestmanager -885 verbose dependent web3-eth-ens depends on web3-core-requestmanager -886 silly isPackageDependentOf web3-eth-ens web3-core-subscriptions -887 silly isPackageDependentOf web3-core web3-core-subscriptions -888 silly isPackageDependentOf web3-core-helpers web3-core-subscriptions -889 silly isPackageDependentOf web3-core-promievent web3-core-subscriptions -890 silly isPackageDependentOf web3-eth-abi web3-core-subscriptions -891 silly isPackageDependentOf web3-eth-contract web3-core-subscriptions -892 silly isPackageDependentOf web3-utils web3-core-subscriptions -893 verbose dependent web3-eth-ens depends on web3-core-subscriptions -894 silly isPackageDependentOf web3-eth-ens web3-core -895 verbose dependent web3-eth-ens depends on web3-core -896 silly isPackageDependentOf web3-eth-ens web3-eth-abi -897 verbose dependent web3-eth-ens depends on web3-eth-abi -898 silly isPackageDependentOf web3-eth-ens web3-eth-accounts -899 silly isPackageDependentOf web3-core web3-eth-accounts -900 silly isPackageDependentOf web3-core-helpers web3-eth-accounts -901 silly isPackageDependentOf web3-core-promievent web3-eth-accounts -902 silly isPackageDependentOf web3-eth-abi web3-eth-accounts -903 silly isPackageDependentOf web3-eth-contract web3-eth-accounts -904 silly isPackageDependentOf web3-utils web3-eth-accounts -905 silly isPackageDependentOf web3-eth-ens web3-eth-contract -906 verbose dependent web3-eth-ens depends on web3-eth-contract -907 silly isPackageDependentOf web3-eth-ens web3-eth-ens -908 silly isPackageDependentOf web3-core web3-eth-ens -909 silly isPackageDependentOf web3-core-helpers web3-eth-ens -910 silly isPackageDependentOf web3-core-promievent web3-eth-ens -911 silly isPackageDependentOf web3-eth-abi web3-eth-ens -912 silly isPackageDependentOf web3-eth-contract web3-eth-ens -913 silly isPackageDependentOf web3-utils web3-eth-ens -914 silly isPackageDependentOf web3-eth-ens web3-eth-iban -915 silly isPackageDependentOf web3-core web3-eth-iban -916 silly isPackageDependentOf web3-core-helpers web3-eth-iban -917 silly isPackageDependentOf web3-core-promievent web3-eth-iban -918 silly isPackageDependentOf web3-eth-abi web3-eth-iban -919 silly isPackageDependentOf web3-eth-contract web3-eth-iban -920 silly isPackageDependentOf web3-utils web3-eth-iban -921 verbose dependent web3-eth-ens depends on web3-eth-iban -922 silly isPackageDependentOf web3-eth-ens web3-eth-personal -923 silly isPackageDependentOf web3-core web3-eth-personal -924 silly isPackageDependentOf web3-core-helpers web3-eth-personal -925 silly isPackageDependentOf web3-core-promievent web3-eth-personal -926 silly isPackageDependentOf web3-eth-abi web3-eth-personal -927 silly isPackageDependentOf web3-eth-contract web3-eth-personal -928 silly isPackageDependentOf web3-utils web3-eth-personal -929 silly isPackageDependentOf web3-eth-ens web3-eth -930 silly isPackageDependentOf web3-core web3-eth -931 silly isPackageDependentOf web3-core-helpers web3-eth -932 silly isPackageDependentOf web3-core-promievent web3-eth -933 silly isPackageDependentOf web3-eth-abi web3-eth -934 silly isPackageDependentOf web3-eth-contract web3-eth -935 silly isPackageDependentOf web3-utils web3-eth -936 silly isPackageDependentOf web3-eth-ens web3-net -937 silly isPackageDependentOf web3-core web3-net -938 silly isPackageDependentOf web3-core-helpers web3-net -939 silly isPackageDependentOf web3-core-promievent web3-net -940 silly isPackageDependentOf web3-eth-abi web3-net -941 silly isPackageDependentOf web3-eth-contract web3-net -942 silly isPackageDependentOf web3-utils web3-net -943 silly isPackageDependentOf web3-eth-ens web3-providers-http -944 silly isPackageDependentOf web3-core web3-providers-http -945 silly isPackageDependentOf web3-core-helpers web3-providers-http -946 silly isPackageDependentOf web3-core-promievent web3-providers-http -947 silly isPackageDependentOf web3-eth-abi web3-providers-http -948 silly isPackageDependentOf web3-eth-contract web3-providers-http -949 silly isPackageDependentOf web3-utils web3-providers-http -950 verbose dependent web3-eth-ens depends on web3-providers-http -951 silly isPackageDependentOf web3-eth-ens web3-providers-ipc -952 silly isPackageDependentOf web3-core web3-providers-ipc -953 silly isPackageDependentOf web3-core-helpers web3-providers-ipc -954 silly isPackageDependentOf web3-core-promievent web3-providers-ipc -955 silly isPackageDependentOf web3-eth-abi web3-providers-ipc -956 silly isPackageDependentOf web3-eth-contract web3-providers-ipc -957 silly isPackageDependentOf web3-utils web3-providers-ipc -958 verbose dependent web3-eth-ens depends on web3-providers-ipc -959 silly isPackageDependentOf web3-eth-ens web3-providers-ws -960 silly isPackageDependentOf web3-core web3-providers-ws -961 silly isPackageDependentOf web3-core-helpers web3-providers-ws -962 silly isPackageDependentOf web3-core-promievent web3-providers-ws -963 silly isPackageDependentOf web3-eth-abi web3-providers-ws -964 silly isPackageDependentOf web3-eth-contract web3-providers-ws -965 silly isPackageDependentOf web3-utils web3-providers-ws -966 verbose dependent web3-eth-ens depends on web3-providers-ws -967 silly isPackageDependentOf web3-eth-ens web3-shh -968 silly isPackageDependentOf web3-core web3-shh -969 silly isPackageDependentOf web3-core-helpers web3-shh -970 silly isPackageDependentOf web3-core-promievent web3-shh -971 silly isPackageDependentOf web3-eth-abi web3-shh -972 silly isPackageDependentOf web3-eth-contract web3-shh -973 silly isPackageDependentOf web3-utils web3-shh -974 silly isPackageDependentOf web3-eth-ens web3-utils -975 verbose dependent web3-eth-ens depends on web3-utils -976 silly isPackageDependentOf web3-eth-ens web3 -977 silly isPackageDependentOf web3-core web3 -978 silly isPackageDependentOf web3-core-helpers web3 -979 silly isPackageDependentOf web3-core-promievent web3 -980 silly isPackageDependentOf web3-eth-abi web3 -981 silly isPackageDependentOf web3-eth-contract web3 -982 silly isPackageDependentOf web3-utils web3 -983 silly isPackageDependentOf web3-eth-iban web3-bzz -984 silly isPackageDependentOf web3-eth-iban web3-core-helpers -985 silly isPackageDependentOf web3-eth-iban web3-core-method -986 silly isPackageDependentOf web3-eth-iban web3-core-promievent -987 silly isPackageDependentOf web3-eth-iban web3-core-requestmanager -988 silly isPackageDependentOf web3-eth-iban web3-core-subscriptions -989 silly isPackageDependentOf web3-eth-iban web3-core -990 silly isPackageDependentOf web3-eth-iban web3-eth-abi -991 silly isPackageDependentOf web3-eth-iban web3-eth-accounts -992 silly isPackageDependentOf web3-eth-iban web3-eth-contract -993 silly isPackageDependentOf web3-eth-iban web3-eth-ens -994 silly isPackageDependentOf web3-eth-iban web3-eth-iban -995 silly isPackageDependentOf web3-utils web3-eth-iban -996 silly isPackageDependentOf web3-eth-iban web3-eth-personal -997 silly isPackageDependentOf web3-eth-iban web3-eth -998 silly isPackageDependentOf web3-eth-iban web3-net -999 silly isPackageDependentOf web3-eth-iban web3-providers-http -1000 silly isPackageDependentOf web3-eth-iban web3-providers-ipc -1001 silly isPackageDependentOf web3-eth-iban web3-providers-ws -1002 silly isPackageDependentOf web3-eth-iban web3-shh -1003 silly isPackageDependentOf web3-eth-iban web3-utils -1004 verbose dependent web3-eth-iban depends on web3-utils -1005 silly isPackageDependentOf web3-eth-iban web3 -1006 silly isPackageDependentOf web3-eth-personal web3-bzz -1007 silly isPackageDependentOf web3-core web3-bzz -1008 silly isPackageDependentOf web3-core-helpers web3-bzz -1009 silly isPackageDependentOf web3-core-method web3-bzz -1010 silly isPackageDependentOf web3-net web3-bzz -1011 silly isPackageDependentOf web3-core web3-bzz -1012 silly isPackageDependentOf web3-core-method web3-bzz -1013 silly isPackageDependentOf web3-utils web3-bzz -1014 silly isPackageDependentOf web3-utils web3-bzz -1015 silly isPackageDependentOf web3-eth-personal web3-core-helpers -1016 verbose dependent web3-eth-personal depends on web3-core-helpers -1017 silly isPackageDependentOf web3-eth-personal web3-core-method -1018 verbose dependent web3-eth-personal depends on web3-core-method -1019 silly isPackageDependentOf web3-eth-personal web3-core-promievent -1020 silly isPackageDependentOf web3-core web3-core-promievent -1021 silly isPackageDependentOf web3-core-helpers web3-core-promievent -1022 silly isPackageDependentOf web3-core-method web3-core-promievent -1023 silly isPackageDependentOf web3-net web3-core-promievent -1024 silly isPackageDependentOf web3-core web3-core-promievent -1025 silly isPackageDependentOf web3-core-method web3-core-promievent -1026 silly isPackageDependentOf web3-utils web3-core-promievent -1027 silly isPackageDependentOf web3-utils web3-core-promievent -1028 verbose dependent web3-eth-personal depends on web3-core-promievent -1029 silly isPackageDependentOf web3-eth-personal web3-core-requestmanager -1030 silly isPackageDependentOf web3-core web3-core-requestmanager -1031 silly isPackageDependentOf web3-core-helpers web3-core-requestmanager -1032 silly isPackageDependentOf web3-core-method web3-core-requestmanager -1033 silly isPackageDependentOf web3-net web3-core-requestmanager -1034 silly isPackageDependentOf web3-core web3-core-requestmanager -1035 silly isPackageDependentOf web3-core-method web3-core-requestmanager -1036 silly isPackageDependentOf web3-utils web3-core-requestmanager -1037 silly isPackageDependentOf web3-utils web3-core-requestmanager -1038 verbose dependent web3-eth-personal depends on web3-core-requestmanager -1039 silly isPackageDependentOf web3-eth-personal web3-core-subscriptions -1040 silly isPackageDependentOf web3-core web3-core-subscriptions -1041 silly isPackageDependentOf web3-core-helpers web3-core-subscriptions -1042 silly isPackageDependentOf web3-core-method web3-core-subscriptions -1043 silly isPackageDependentOf web3-net web3-core-subscriptions -1044 silly isPackageDependentOf web3-core web3-core-subscriptions -1045 silly isPackageDependentOf web3-core-method web3-core-subscriptions -1046 silly isPackageDependentOf web3-utils web3-core-subscriptions -1047 silly isPackageDependentOf web3-utils web3-core-subscriptions -1048 verbose dependent web3-eth-personal depends on web3-core-subscriptions -1049 silly isPackageDependentOf web3-eth-personal web3-core -1050 verbose dependent web3-eth-personal depends on web3-core -1051 silly isPackageDependentOf web3-eth-personal web3-eth-abi -1052 silly isPackageDependentOf web3-core web3-eth-abi -1053 silly isPackageDependentOf web3-core-helpers web3-eth-abi -1054 silly isPackageDependentOf web3-core-method web3-eth-abi -1055 silly isPackageDependentOf web3-net web3-eth-abi -1056 silly isPackageDependentOf web3-core web3-eth-abi -1057 silly isPackageDependentOf web3-core-method web3-eth-abi -1058 silly isPackageDependentOf web3-utils web3-eth-abi -1059 silly isPackageDependentOf web3-utils web3-eth-abi -1060 silly isPackageDependentOf web3-eth-personal web3-eth-accounts -1061 silly isPackageDependentOf web3-core web3-eth-accounts -1062 silly isPackageDependentOf web3-core-helpers web3-eth-accounts -1063 silly isPackageDependentOf web3-core-method web3-eth-accounts -1064 silly isPackageDependentOf web3-net web3-eth-accounts -1065 silly isPackageDependentOf web3-core web3-eth-accounts -1066 silly isPackageDependentOf web3-core-method web3-eth-accounts -1067 silly isPackageDependentOf web3-utils web3-eth-accounts -1068 silly isPackageDependentOf web3-utils web3-eth-accounts -1069 silly isPackageDependentOf web3-eth-personal web3-eth-contract -1070 silly isPackageDependentOf web3-core web3-eth-contract -1071 silly isPackageDependentOf web3-core-helpers web3-eth-contract -1072 silly isPackageDependentOf web3-core-method web3-eth-contract -1073 silly isPackageDependentOf web3-net web3-eth-contract -1074 silly isPackageDependentOf web3-core web3-eth-contract -1075 silly isPackageDependentOf web3-core-method web3-eth-contract -1076 silly isPackageDependentOf web3-utils web3-eth-contract -1077 silly isPackageDependentOf web3-utils web3-eth-contract -1078 silly isPackageDependentOf web3-eth-personal web3-eth-ens -1079 silly isPackageDependentOf web3-core web3-eth-ens -1080 silly isPackageDependentOf web3-core-helpers web3-eth-ens -1081 silly isPackageDependentOf web3-core-method web3-eth-ens -1082 silly isPackageDependentOf web3-net web3-eth-ens -1083 silly isPackageDependentOf web3-core web3-eth-ens -1084 silly isPackageDependentOf web3-core-method web3-eth-ens -1085 silly isPackageDependentOf web3-utils web3-eth-ens -1086 silly isPackageDependentOf web3-utils web3-eth-ens -1087 silly isPackageDependentOf web3-eth-personal web3-eth-iban -1088 silly isPackageDependentOf web3-core web3-eth-iban -1089 silly isPackageDependentOf web3-core-helpers web3-eth-iban -1090 silly isPackageDependentOf web3-core-method web3-eth-iban -1091 silly isPackageDependentOf web3-net web3-eth-iban -1092 silly isPackageDependentOf web3-core web3-eth-iban -1093 silly isPackageDependentOf web3-core-method web3-eth-iban -1094 silly isPackageDependentOf web3-utils web3-eth-iban -1095 silly isPackageDependentOf web3-utils web3-eth-iban -1096 verbose dependent web3-eth-personal depends on web3-eth-iban -1097 silly isPackageDependentOf web3-eth-personal web3-eth-personal -1098 silly isPackageDependentOf web3-core web3-eth-personal -1099 silly isPackageDependentOf web3-core-helpers web3-eth-personal -1100 silly isPackageDependentOf web3-core-method web3-eth-personal -1101 silly isPackageDependentOf web3-net web3-eth-personal -1102 silly isPackageDependentOf web3-core web3-eth-personal -1103 silly isPackageDependentOf web3-core-method web3-eth-personal -1104 silly isPackageDependentOf web3-utils web3-eth-personal -1105 silly isPackageDependentOf web3-utils web3-eth-personal -1106 silly isPackageDependentOf web3-eth-personal web3-eth -1107 silly isPackageDependentOf web3-core web3-eth -1108 silly isPackageDependentOf web3-core-helpers web3-eth -1109 silly isPackageDependentOf web3-core-method web3-eth -1110 silly isPackageDependentOf web3-net web3-eth -1111 silly isPackageDependentOf web3-core web3-eth -1112 silly isPackageDependentOf web3-core-method web3-eth -1113 silly isPackageDependentOf web3-utils web3-eth -1114 silly isPackageDependentOf web3-utils web3-eth -1115 silly isPackageDependentOf web3-eth-personal web3-net -1116 verbose dependent web3-eth-personal depends on web3-net -1117 silly isPackageDependentOf web3-eth-personal web3-providers-http -1118 silly isPackageDependentOf web3-core web3-providers-http -1119 silly isPackageDependentOf web3-core-helpers web3-providers-http -1120 silly isPackageDependentOf web3-core-method web3-providers-http -1121 silly isPackageDependentOf web3-net web3-providers-http -1122 silly isPackageDependentOf web3-core web3-providers-http -1123 silly isPackageDependentOf web3-core-method web3-providers-http -1124 silly isPackageDependentOf web3-utils web3-providers-http -1125 silly isPackageDependentOf web3-utils web3-providers-http -1126 verbose dependent web3-eth-personal depends on web3-providers-http -1127 silly isPackageDependentOf web3-eth-personal web3-providers-ipc -1128 silly isPackageDependentOf web3-core web3-providers-ipc -1129 silly isPackageDependentOf web3-core-helpers web3-providers-ipc -1130 silly isPackageDependentOf web3-core-method web3-providers-ipc -1131 silly isPackageDependentOf web3-net web3-providers-ipc -1132 silly isPackageDependentOf web3-core web3-providers-ipc -1133 silly isPackageDependentOf web3-core-method web3-providers-ipc -1134 silly isPackageDependentOf web3-utils web3-providers-ipc -1135 silly isPackageDependentOf web3-utils web3-providers-ipc -1136 verbose dependent web3-eth-personal depends on web3-providers-ipc -1137 silly isPackageDependentOf web3-eth-personal web3-providers-ws -1138 silly isPackageDependentOf web3-core web3-providers-ws -1139 silly isPackageDependentOf web3-core-helpers web3-providers-ws -1140 silly isPackageDependentOf web3-core-method web3-providers-ws -1141 silly isPackageDependentOf web3-net web3-providers-ws -1142 silly isPackageDependentOf web3-core web3-providers-ws -1143 silly isPackageDependentOf web3-core-method web3-providers-ws -1144 silly isPackageDependentOf web3-utils web3-providers-ws -1145 silly isPackageDependentOf web3-utils web3-providers-ws -1146 verbose dependent web3-eth-personal depends on web3-providers-ws -1147 silly isPackageDependentOf web3-eth-personal web3-shh -1148 silly isPackageDependentOf web3-core web3-shh -1149 silly isPackageDependentOf web3-core-helpers web3-shh -1150 silly isPackageDependentOf web3-core-method web3-shh -1151 silly isPackageDependentOf web3-net web3-shh -1152 silly isPackageDependentOf web3-core web3-shh -1153 silly isPackageDependentOf web3-core-method web3-shh -1154 silly isPackageDependentOf web3-utils web3-shh -1155 silly isPackageDependentOf web3-utils web3-shh -1156 silly isPackageDependentOf web3-eth-personal web3-utils -1157 verbose dependent web3-eth-personal depends on web3-utils -1158 silly isPackageDependentOf web3-eth-personal web3 -1159 silly isPackageDependentOf web3-core web3 -1160 silly isPackageDependentOf web3-core-helpers web3 -1161 silly isPackageDependentOf web3-core-method web3 -1162 silly isPackageDependentOf web3-net web3 -1163 silly isPackageDependentOf web3-core web3 -1164 silly isPackageDependentOf web3-core-method web3 -1165 silly isPackageDependentOf web3-utils web3 -1166 silly isPackageDependentOf web3-utils web3 -1167 silly isPackageDependentOf web3-eth web3-bzz -1168 silly isPackageDependentOf web3-core web3-bzz -1169 silly isPackageDependentOf web3-core-helpers web3-bzz -1170 silly isPackageDependentOf web3-core-method web3-bzz -1171 silly isPackageDependentOf web3-core-subscriptions web3-bzz -1172 silly isPackageDependentOf web3-eth-abi web3-bzz -1173 silly isPackageDependentOf web3-eth-accounts web3-bzz -1174 silly isPackageDependentOf web3-eth-contract web3-bzz -1175 silly isPackageDependentOf web3-eth-ens web3-bzz -1176 silly isPackageDependentOf web3-eth-iban web3-bzz -1177 silly isPackageDependentOf web3-eth-personal web3-bzz -1178 silly isPackageDependentOf web3-net web3-bzz -1179 silly isPackageDependentOf web3-utils web3-bzz -1180 silly isPackageDependentOf web3-eth web3-core-helpers -1181 verbose dependent web3-eth depends on web3-core-helpers -1182 silly isPackageDependentOf web3-eth web3-core-method -1183 verbose dependent web3-eth depends on web3-core-method -1184 silly isPackageDependentOf web3-eth web3-core-promievent -1185 silly isPackageDependentOf web3-core web3-core-promievent -1186 silly isPackageDependentOf web3-core-helpers web3-core-promievent -1187 silly isPackageDependentOf web3-core-method web3-core-promievent -1188 silly isPackageDependentOf web3-core-subscriptions web3-core-promievent -1189 silly isPackageDependentOf web3-eth-abi web3-core-promievent -1190 silly isPackageDependentOf web3-eth-accounts web3-core-promievent -1191 silly isPackageDependentOf web3-eth-contract web3-core-promievent -1192 silly isPackageDependentOf web3-eth-ens web3-core-promievent -1193 silly isPackageDependentOf web3-eth-iban web3-core-promievent -1194 silly isPackageDependentOf web3-eth-personal web3-core-promievent -1195 silly isPackageDependentOf web3-net web3-core-promievent -1196 silly isPackageDependentOf web3-utils web3-core-promievent -1197 verbose dependent web3-eth depends on web3-core-promievent -1198 silly isPackageDependentOf web3-eth web3-core-requestmanager -1199 silly isPackageDependentOf web3-core web3-core-requestmanager -1200 silly isPackageDependentOf web3-core-helpers web3-core-requestmanager -1201 silly isPackageDependentOf web3-core-method web3-core-requestmanager -1202 silly isPackageDependentOf web3-core-subscriptions web3-core-requestmanager -1203 silly isPackageDependentOf web3-eth-abi web3-core-requestmanager -1204 silly isPackageDependentOf web3-eth-accounts web3-core-requestmanager -1205 silly isPackageDependentOf web3-eth-contract web3-core-requestmanager -1206 silly isPackageDependentOf web3-eth-ens web3-core-requestmanager -1207 silly isPackageDependentOf web3-eth-iban web3-core-requestmanager -1208 silly isPackageDependentOf web3-eth-personal web3-core-requestmanager -1209 silly isPackageDependentOf web3-net web3-core-requestmanager -1210 silly isPackageDependentOf web3-utils web3-core-requestmanager -1211 verbose dependent web3-eth depends on web3-core-requestmanager -1212 silly isPackageDependentOf web3-eth web3-core-subscriptions -1213 verbose dependent web3-eth depends on web3-core-subscriptions -1214 silly isPackageDependentOf web3-eth web3-core -1215 verbose dependent web3-eth depends on web3-core -1216 silly isPackageDependentOf web3-eth web3-eth-abi -1217 verbose dependent web3-eth depends on web3-eth-abi -1218 silly isPackageDependentOf web3-eth web3-eth-accounts -1219 verbose dependent web3-eth depends on web3-eth-accounts -1220 silly isPackageDependentOf web3-eth web3-eth-contract -1221 verbose dependent web3-eth depends on web3-eth-contract -1222 silly isPackageDependentOf web3-eth web3-eth-ens -1223 verbose dependent web3-eth depends on web3-eth-ens -1224 silly isPackageDependentOf web3-eth web3-eth-iban -1225 verbose dependent web3-eth depends on web3-eth-iban -1226 silly isPackageDependentOf web3-eth web3-eth-personal -1227 verbose dependent web3-eth depends on web3-eth-personal -1228 silly isPackageDependentOf web3-eth web3-eth -1229 silly isPackageDependentOf web3-core web3-eth -1230 silly isPackageDependentOf web3-core-helpers web3-eth -1231 silly isPackageDependentOf web3-core-method web3-eth -1232 silly isPackageDependentOf web3-core-subscriptions web3-eth -1233 silly isPackageDependentOf web3-eth-abi web3-eth -1234 silly isPackageDependentOf web3-eth-accounts web3-eth -1235 silly isPackageDependentOf web3-eth-contract web3-eth -1236 silly isPackageDependentOf web3-eth-ens web3-eth -1237 silly isPackageDependentOf web3-eth-iban web3-eth -1238 silly isPackageDependentOf web3-eth-personal web3-eth -1239 silly isPackageDependentOf web3-net web3-eth -1240 silly isPackageDependentOf web3-utils web3-eth -1241 silly isPackageDependentOf web3-eth web3-net -1242 verbose dependent web3-eth depends on web3-net -1243 silly isPackageDependentOf web3-eth web3-providers-http -1244 silly isPackageDependentOf web3-core web3-providers-http -1245 silly isPackageDependentOf web3-core-helpers web3-providers-http -1246 silly isPackageDependentOf web3-core-method web3-providers-http -1247 silly isPackageDependentOf web3-core-subscriptions web3-providers-http -1248 silly isPackageDependentOf web3-eth-abi web3-providers-http -1249 silly isPackageDependentOf web3-eth-accounts web3-providers-http -1250 silly isPackageDependentOf web3-eth-contract web3-providers-http -1251 silly isPackageDependentOf web3-eth-ens web3-providers-http -1252 silly isPackageDependentOf web3-eth-iban web3-providers-http -1253 silly isPackageDependentOf web3-eth-personal web3-providers-http -1254 silly isPackageDependentOf web3-net web3-providers-http -1255 silly isPackageDependentOf web3-utils web3-providers-http -1256 verbose dependent web3-eth depends on web3-providers-http -1257 silly isPackageDependentOf web3-eth web3-providers-ipc -1258 silly isPackageDependentOf web3-core web3-providers-ipc -1259 silly isPackageDependentOf web3-core-helpers web3-providers-ipc -1260 silly isPackageDependentOf web3-core-method web3-providers-ipc -1261 silly isPackageDependentOf web3-core-subscriptions web3-providers-ipc -1262 silly isPackageDependentOf web3-eth-abi web3-providers-ipc -1263 silly isPackageDependentOf web3-eth-accounts web3-providers-ipc -1264 silly isPackageDependentOf web3-eth-contract web3-providers-ipc -1265 silly isPackageDependentOf web3-eth-ens web3-providers-ipc -1266 silly isPackageDependentOf web3-eth-iban web3-providers-ipc -1267 silly isPackageDependentOf web3-eth-personal web3-providers-ipc -1268 silly isPackageDependentOf web3-net web3-providers-ipc -1269 silly isPackageDependentOf web3-utils web3-providers-ipc -1270 verbose dependent web3-eth depends on web3-providers-ipc -1271 silly isPackageDependentOf web3-eth web3-providers-ws -1272 silly isPackageDependentOf web3-core web3-providers-ws -1273 silly isPackageDependentOf web3-core-helpers web3-providers-ws -1274 silly isPackageDependentOf web3-core-method web3-providers-ws -1275 silly isPackageDependentOf web3-core-subscriptions web3-providers-ws -1276 silly isPackageDependentOf web3-eth-abi web3-providers-ws -1277 silly isPackageDependentOf web3-eth-accounts web3-providers-ws -1278 silly isPackageDependentOf web3-eth-contract web3-providers-ws -1279 silly isPackageDependentOf web3-eth-ens web3-providers-ws -1280 silly isPackageDependentOf web3-eth-iban web3-providers-ws -1281 silly isPackageDependentOf web3-eth-personal web3-providers-ws -1282 silly isPackageDependentOf web3-net web3-providers-ws -1283 silly isPackageDependentOf web3-utils web3-providers-ws -1284 verbose dependent web3-eth depends on web3-providers-ws -1285 silly isPackageDependentOf web3-eth web3-shh -1286 silly isPackageDependentOf web3-core web3-shh -1287 silly isPackageDependentOf web3-core-helpers web3-shh -1288 silly isPackageDependentOf web3-core-method web3-shh -1289 silly isPackageDependentOf web3-core-subscriptions web3-shh -1290 silly isPackageDependentOf web3-eth-abi web3-shh -1291 silly isPackageDependentOf web3-eth-accounts web3-shh -1292 silly isPackageDependentOf web3-eth-contract web3-shh -1293 silly isPackageDependentOf web3-eth-ens web3-shh -1294 silly isPackageDependentOf web3-eth-iban web3-shh -1295 silly isPackageDependentOf web3-eth-personal web3-shh -1296 silly isPackageDependentOf web3-net web3-shh -1297 silly isPackageDependentOf web3-utils web3-shh -1298 silly isPackageDependentOf web3-eth web3-utils -1299 verbose dependent web3-eth depends on web3-utils -1300 silly isPackageDependentOf web3-eth web3 -1301 silly isPackageDependentOf web3-core web3 -1302 silly isPackageDependentOf web3-core-helpers web3 -1303 silly isPackageDependentOf web3-core-method web3 -1304 silly isPackageDependentOf web3-core-subscriptions web3 -1305 silly isPackageDependentOf web3-eth-abi web3 -1306 silly isPackageDependentOf web3-eth-accounts web3 -1307 silly isPackageDependentOf web3-eth-contract web3 -1308 silly isPackageDependentOf web3-eth-ens web3 -1309 silly isPackageDependentOf web3-eth-iban web3 -1310 silly isPackageDependentOf web3-eth-personal web3 -1311 silly isPackageDependentOf web3-net web3 -1312 silly isPackageDependentOf web3-utils web3 -1313 silly isPackageDependentOf web3-net web3-bzz -1314 silly isPackageDependentOf web3-net web3-core-helpers -1315 silly isPackageDependentOf web3-core web3-core-helpers -1316 silly isPackageDependentOf web3-core-method web3-core-helpers -1317 silly isPackageDependentOf web3-utils web3-core-helpers -1318 verbose dependent web3-net depends on web3-core-helpers -1319 silly isPackageDependentOf web3-net web3-core-method -1320 verbose dependent web3-net depends on web3-core-method -1321 silly isPackageDependentOf web3-net web3-core-promievent -1322 verbose dependent web3-net depends on web3-core-promievent -1323 silly isPackageDependentOf web3-net web3-core-requestmanager -1324 verbose dependent web3-net depends on web3-core-requestmanager -1325 silly isPackageDependentOf web3-net web3-core-subscriptions -1326 verbose dependent web3-net depends on web3-core-subscriptions -1327 silly isPackageDependentOf web3-net web3-core -1328 verbose dependent web3-net depends on web3-core -1329 silly isPackageDependentOf web3-net web3-eth-abi -1330 silly isPackageDependentOf web3-net web3-eth-accounts -1331 silly isPackageDependentOf web3-net web3-eth-contract -1332 silly isPackageDependentOf web3-net web3-eth-ens -1333 silly isPackageDependentOf web3-net web3-eth-iban -1334 verbose dependent web3-net depends on web3-eth-iban -1335 silly isPackageDependentOf web3-net web3-eth-personal -1336 silly isPackageDependentOf web3-net web3-eth -1337 silly isPackageDependentOf web3-net web3-net -1338 silly isPackageDependentOf web3-core web3-net -1339 silly isPackageDependentOf web3-core-method web3-net -1340 silly isPackageDependentOf web3-utils web3-net -1341 silly isPackageDependentOf web3-net web3-providers-http -1342 verbose dependent web3-net depends on web3-providers-http -1343 silly isPackageDependentOf web3-net web3-providers-ipc -1344 verbose dependent web3-net depends on web3-providers-ipc -1345 silly isPackageDependentOf web3-net web3-providers-ws -1346 verbose dependent web3-net depends on web3-providers-ws -1347 silly isPackageDependentOf web3-net web3-shh -1348 silly isPackageDependentOf web3-net web3-utils -1349 verbose dependent web3-net depends on web3-utils -1350 silly isPackageDependentOf web3-net web3 -1351 silly isPackageDependentOf web3-providers-http web3-bzz -1352 silly isPackageDependentOf web3-providers-http web3-core-helpers -1353 verbose dependent web3-providers-http depends on web3-core-helpers -1354 silly isPackageDependentOf web3-providers-http web3-core-method -1355 silly isPackageDependentOf web3-providers-http web3-core-promievent -1356 silly isPackageDependentOf web3-providers-http web3-core-requestmanager -1357 silly isPackageDependentOf web3-providers-http web3-core-subscriptions -1358 silly isPackageDependentOf web3-providers-http web3-core -1359 silly isPackageDependentOf web3-providers-http web3-eth-abi -1360 silly isPackageDependentOf web3-providers-http web3-eth-accounts -1361 silly isPackageDependentOf web3-providers-http web3-eth-contract -1362 silly isPackageDependentOf web3-providers-http web3-eth-ens -1363 silly isPackageDependentOf web3-providers-http web3-eth-iban -1364 verbose dependent web3-providers-http depends on web3-eth-iban -1365 silly isPackageDependentOf web3-providers-http web3-eth-personal -1366 silly isPackageDependentOf web3-providers-http web3-eth -1367 silly isPackageDependentOf web3-providers-http web3-net -1368 silly isPackageDependentOf web3-providers-http web3-providers-http -1369 silly isPackageDependentOf web3-core-helpers web3-providers-http -1370 silly isPackageDependentOf web3-providers-http web3-providers-ipc -1371 silly isPackageDependentOf web3-core-helpers web3-providers-ipc -1372 silly isPackageDependentOf web3-providers-http web3-providers-ws -1373 silly isPackageDependentOf web3-core-helpers web3-providers-ws -1374 silly isPackageDependentOf web3-providers-http web3-shh -1375 silly isPackageDependentOf web3-providers-http web3-utils -1376 verbose dependent web3-providers-http depends on web3-utils -1377 silly isPackageDependentOf web3-providers-http web3 -1378 silly isPackageDependentOf web3-providers-ipc web3-bzz -1379 silly isPackageDependentOf web3-providers-ipc web3-core-helpers -1380 verbose dependent web3-providers-ipc depends on web3-core-helpers -1381 silly isPackageDependentOf web3-providers-ipc web3-core-method -1382 silly isPackageDependentOf web3-providers-ipc web3-core-promievent -1383 silly isPackageDependentOf web3-providers-ipc web3-core-requestmanager -1384 silly isPackageDependentOf web3-providers-ipc web3-core-subscriptions -1385 silly isPackageDependentOf web3-providers-ipc web3-core -1386 silly isPackageDependentOf web3-providers-ipc web3-eth-abi -1387 silly isPackageDependentOf web3-providers-ipc web3-eth-accounts -1388 silly isPackageDependentOf web3-providers-ipc web3-eth-contract -1389 silly isPackageDependentOf web3-providers-ipc web3-eth-ens -1390 silly isPackageDependentOf web3-providers-ipc web3-eth-iban -1391 verbose dependent web3-providers-ipc depends on web3-eth-iban -1392 silly isPackageDependentOf web3-providers-ipc web3-eth-personal -1393 silly isPackageDependentOf web3-providers-ipc web3-eth -1394 silly isPackageDependentOf web3-providers-ipc web3-net -1395 silly isPackageDependentOf web3-providers-ipc web3-providers-http -1396 silly isPackageDependentOf web3-core-helpers web3-providers-http -1397 silly isPackageDependentOf web3-providers-ipc web3-providers-ipc -1398 silly isPackageDependentOf web3-core-helpers web3-providers-ipc -1399 silly isPackageDependentOf web3-providers-ipc web3-providers-ws -1400 silly isPackageDependentOf web3-core-helpers web3-providers-ws -1401 silly isPackageDependentOf web3-providers-ipc web3-shh -1402 silly isPackageDependentOf web3-providers-ipc web3-utils -1403 verbose dependent web3-providers-ipc depends on web3-utils -1404 silly isPackageDependentOf web3-providers-ipc web3 -1405 silly isPackageDependentOf web3-providers-ws web3-bzz -1406 silly isPackageDependentOf web3-providers-ws web3-core-helpers -1407 verbose dependent web3-providers-ws depends on web3-core-helpers -1408 silly isPackageDependentOf web3-providers-ws web3-core-method -1409 silly isPackageDependentOf web3-providers-ws web3-core-promievent -1410 silly isPackageDependentOf web3-providers-ws web3-core-requestmanager -1411 silly isPackageDependentOf web3-providers-ws web3-core-subscriptions -1412 silly isPackageDependentOf web3-providers-ws web3-core -1413 silly isPackageDependentOf web3-providers-ws web3-eth-abi -1414 silly isPackageDependentOf web3-providers-ws web3-eth-accounts -1415 silly isPackageDependentOf web3-providers-ws web3-eth-contract -1416 silly isPackageDependentOf web3-providers-ws web3-eth-ens -1417 silly isPackageDependentOf web3-providers-ws web3-eth-iban -1418 verbose dependent web3-providers-ws depends on web3-eth-iban -1419 silly isPackageDependentOf web3-providers-ws web3-eth-personal -1420 silly isPackageDependentOf web3-providers-ws web3-eth -1421 silly isPackageDependentOf web3-providers-ws web3-net -1422 silly isPackageDependentOf web3-providers-ws web3-providers-http -1423 silly isPackageDependentOf web3-core-helpers web3-providers-http -1424 silly isPackageDependentOf web3-providers-ws web3-providers-ipc -1425 silly isPackageDependentOf web3-core-helpers web3-providers-ipc -1426 silly isPackageDependentOf web3-providers-ws web3-providers-ws -1427 silly isPackageDependentOf web3-core-helpers web3-providers-ws -1428 silly isPackageDependentOf web3-providers-ws web3-shh -1429 silly isPackageDependentOf web3-providers-ws web3-utils -1430 verbose dependent web3-providers-ws depends on web3-utils -1431 silly isPackageDependentOf web3-providers-ws web3 -1432 silly isPackageDependentOf web3-shh web3-bzz -1433 silly isPackageDependentOf web3-core web3-bzz -1434 silly isPackageDependentOf web3-core-method web3-bzz -1435 silly isPackageDependentOf web3-core-subscriptions web3-bzz -1436 silly isPackageDependentOf web3-net web3-bzz -1437 silly isPackageDependentOf web3-shh web3-core-helpers -1438 silly isPackageDependentOf web3-core web3-core-helpers -1439 silly isPackageDependentOf web3-core-method web3-core-helpers -1440 silly isPackageDependentOf web3-core-subscriptions web3-core-helpers -1441 silly isPackageDependentOf web3-net web3-core-helpers -1442 verbose dependent web3-shh depends on web3-core-helpers -1443 silly isPackageDependentOf web3-shh web3-core-method -1444 verbose dependent web3-shh depends on web3-core-method -1445 silly isPackageDependentOf web3-shh web3-core-promievent -1446 silly isPackageDependentOf web3-core web3-core-promievent -1447 silly isPackageDependentOf web3-core-method web3-core-promievent -1448 silly isPackageDependentOf web3-core-subscriptions web3-core-promievent -1449 silly isPackageDependentOf web3-net web3-core-promievent -1450 verbose dependent web3-shh depends on web3-core-promievent -1451 silly isPackageDependentOf web3-shh web3-core-requestmanager -1452 silly isPackageDependentOf web3-core web3-core-requestmanager -1453 silly isPackageDependentOf web3-core-method web3-core-requestmanager -1454 silly isPackageDependentOf web3-core-subscriptions web3-core-requestmanager -1455 silly isPackageDependentOf web3-net web3-core-requestmanager -1456 verbose dependent web3-shh depends on web3-core-requestmanager -1457 silly isPackageDependentOf web3-shh web3-core-subscriptions -1458 verbose dependent web3-shh depends on web3-core-subscriptions -1459 silly isPackageDependentOf web3-shh web3-core -1460 verbose dependent web3-shh depends on web3-core -1461 silly isPackageDependentOf web3-shh web3-eth-abi -1462 silly isPackageDependentOf web3-core web3-eth-abi -1463 silly isPackageDependentOf web3-core-method web3-eth-abi -1464 silly isPackageDependentOf web3-core-subscriptions web3-eth-abi -1465 silly isPackageDependentOf web3-net web3-eth-abi -1466 silly isPackageDependentOf web3-shh web3-eth-accounts -1467 silly isPackageDependentOf web3-core web3-eth-accounts -1468 silly isPackageDependentOf web3-core-method web3-eth-accounts -1469 silly isPackageDependentOf web3-core-subscriptions web3-eth-accounts -1470 silly isPackageDependentOf web3-net web3-eth-accounts -1471 silly isPackageDependentOf web3-shh web3-eth-contract -1472 silly isPackageDependentOf web3-core web3-eth-contract -1473 silly isPackageDependentOf web3-core-method web3-eth-contract -1474 silly isPackageDependentOf web3-core-subscriptions web3-eth-contract -1475 silly isPackageDependentOf web3-net web3-eth-contract -1476 silly isPackageDependentOf web3-shh web3-eth-ens -1477 silly isPackageDependentOf web3-core web3-eth-ens -1478 silly isPackageDependentOf web3-core-method web3-eth-ens -1479 silly isPackageDependentOf web3-core-subscriptions web3-eth-ens -1480 silly isPackageDependentOf web3-net web3-eth-ens -1481 silly isPackageDependentOf web3-shh web3-eth-iban -1482 silly isPackageDependentOf web3-core web3-eth-iban -1483 silly isPackageDependentOf web3-core-method web3-eth-iban -1484 silly isPackageDependentOf web3-core-subscriptions web3-eth-iban -1485 silly isPackageDependentOf web3-net web3-eth-iban -1486 verbose dependent web3-shh depends on web3-eth-iban -1487 silly isPackageDependentOf web3-shh web3-eth-personal -1488 silly isPackageDependentOf web3-core web3-eth-personal -1489 silly isPackageDependentOf web3-core-method web3-eth-personal -1490 silly isPackageDependentOf web3-core-subscriptions web3-eth-personal -1491 silly isPackageDependentOf web3-net web3-eth-personal -1492 silly isPackageDependentOf web3-shh web3-eth -1493 silly isPackageDependentOf web3-core web3-eth -1494 silly isPackageDependentOf web3-core-method web3-eth -1495 silly isPackageDependentOf web3-core-subscriptions web3-eth -1496 silly isPackageDependentOf web3-net web3-eth -1497 silly isPackageDependentOf web3-shh web3-net -1498 verbose dependent web3-shh depends on web3-net -1499 silly isPackageDependentOf web3-shh web3-providers-http -1500 silly isPackageDependentOf web3-core web3-providers-http -1501 silly isPackageDependentOf web3-core-method web3-providers-http -1502 silly isPackageDependentOf web3-core-subscriptions web3-providers-http -1503 silly isPackageDependentOf web3-net web3-providers-http -1504 verbose dependent web3-shh depends on web3-providers-http -1505 silly isPackageDependentOf web3-shh web3-providers-ipc -1506 silly isPackageDependentOf web3-core web3-providers-ipc -1507 silly isPackageDependentOf web3-core-method web3-providers-ipc -1508 silly isPackageDependentOf web3-core-subscriptions web3-providers-ipc -1509 silly isPackageDependentOf web3-net web3-providers-ipc -1510 verbose dependent web3-shh depends on web3-providers-ipc -1511 silly isPackageDependentOf web3-shh web3-providers-ws -1512 silly isPackageDependentOf web3-core web3-providers-ws -1513 silly isPackageDependentOf web3-core-method web3-providers-ws -1514 silly isPackageDependentOf web3-core-subscriptions web3-providers-ws -1515 silly isPackageDependentOf web3-net web3-providers-ws -1516 verbose dependent web3-shh depends on web3-providers-ws -1517 silly isPackageDependentOf web3-shh web3-shh -1518 silly isPackageDependentOf web3-core web3-shh -1519 silly isPackageDependentOf web3-core-method web3-shh -1520 silly isPackageDependentOf web3-core-subscriptions web3-shh -1521 silly isPackageDependentOf web3-net web3-shh -1522 silly isPackageDependentOf web3-shh web3-utils -1523 silly isPackageDependentOf web3-core web3-utils -1524 silly isPackageDependentOf web3-core-method web3-utils -1525 silly isPackageDependentOf web3-core-subscriptions web3-utils -1526 silly isPackageDependentOf web3-net web3-utils -1527 verbose dependent web3-shh depends on web3-utils -1528 silly isPackageDependentOf web3-shh web3 -1529 silly isPackageDependentOf web3-core web3 -1530 silly isPackageDependentOf web3-core-method web3 -1531 silly isPackageDependentOf web3-core-subscriptions web3 -1532 silly isPackageDependentOf web3-net web3 -1533 silly isPackageDependentOf web3-utils web3-bzz -1534 silly isPackageDependentOf web3-utils web3-core-helpers -1535 silly isPackageDependentOf web3-utils web3-core-method -1536 silly isPackageDependentOf web3-utils web3-core-promievent -1537 silly isPackageDependentOf web3-utils web3-core-requestmanager -1538 silly isPackageDependentOf web3-utils web3-core-subscriptions -1539 silly isPackageDependentOf web3-utils web3-core -1540 silly isPackageDependentOf web3-utils web3-eth-abi -1541 silly isPackageDependentOf web3-utils web3-eth-accounts -1542 silly isPackageDependentOf web3-utils web3-eth-contract -1543 silly isPackageDependentOf web3-utils web3-eth-ens -1544 silly isPackageDependentOf web3-utils web3-eth-iban -1545 silly isPackageDependentOf web3-utils web3-eth-personal -1546 silly isPackageDependentOf web3-utils web3-eth -1547 silly isPackageDependentOf web3-utils web3-net -1548 silly isPackageDependentOf web3-utils web3-providers-http -1549 silly isPackageDependentOf web3-utils web3-providers-ipc -1550 silly isPackageDependentOf web3-utils web3-providers-ws -1551 silly isPackageDependentOf web3-utils web3-shh -1552 silly isPackageDependentOf web3-utils web3-utils -1553 silly isPackageDependentOf web3-utils web3 -1554 silly isPackageDependentOf web3 web3-bzz -1555 verbose dependent web3 depends on web3-bzz -1556 silly isPackageDependentOf web3 web3-core-helpers -1557 silly isPackageDependentOf web3-bzz web3-core-helpers -1558 silly isPackageDependentOf web3-core web3-core-helpers -1559 silly isPackageDependentOf web3-eth web3-core-helpers -1560 silly isPackageDependentOf web3-eth-personal web3-core-helpers -1561 silly isPackageDependentOf web3-net web3-core-helpers -1562 silly isPackageDependentOf web3-shh web3-core-helpers -1563 silly isPackageDependentOf web3-utils web3-core-helpers -1564 verbose dependent web3 depends on web3-core-helpers -1565 silly isPackageDependentOf web3 web3-core-method -1566 silly isPackageDependentOf web3-bzz web3-core-method -1567 silly isPackageDependentOf web3-core web3-core-method -1568 silly isPackageDependentOf web3-eth web3-core-method -1569 silly isPackageDependentOf web3-eth-personal web3-core-method -1570 silly isPackageDependentOf web3-net web3-core-method -1571 silly isPackageDependentOf web3-shh web3-core-method -1572 silly isPackageDependentOf web3-utils web3-core-method -1573 verbose dependent web3 depends on web3-core-method -1574 silly isPackageDependentOf web3 web3-core-promievent -1575 silly isPackageDependentOf web3-bzz web3-core-promievent -1576 silly isPackageDependentOf web3-core web3-core-promievent -1577 silly isPackageDependentOf web3-eth web3-core-promievent -1578 silly isPackageDependentOf web3-eth-personal web3-core-promievent -1579 silly isPackageDependentOf web3-net web3-core-promievent -1580 silly isPackageDependentOf web3-shh web3-core-promievent -1581 silly isPackageDependentOf web3-utils web3-core-promievent -1582 verbose dependent web3 depends on web3-core-promievent -1583 silly isPackageDependentOf web3 web3-core-requestmanager -1584 silly isPackageDependentOf web3-bzz web3-core-requestmanager -1585 silly isPackageDependentOf web3-core web3-core-requestmanager -1586 silly isPackageDependentOf web3-eth web3-core-requestmanager -1587 silly isPackageDependentOf web3-eth-personal web3-core-requestmanager -1588 silly isPackageDependentOf web3-net web3-core-requestmanager -1589 silly isPackageDependentOf web3-shh web3-core-requestmanager -1590 silly isPackageDependentOf web3-utils web3-core-requestmanager -1591 verbose dependent web3 depends on web3-core-requestmanager -1592 silly isPackageDependentOf web3 web3-core-subscriptions -1593 silly isPackageDependentOf web3-bzz web3-core-subscriptions -1594 silly isPackageDependentOf web3-core web3-core-subscriptions -1595 silly isPackageDependentOf web3-eth web3-core-subscriptions -1596 silly isPackageDependentOf web3-eth-personal web3-core-subscriptions -1597 silly isPackageDependentOf web3-net web3-core-subscriptions -1598 silly isPackageDependentOf web3-shh web3-core-subscriptions -1599 silly isPackageDependentOf web3-utils web3-core-subscriptions -1600 verbose dependent web3 depends on web3-core-subscriptions -1601 silly isPackageDependentOf web3 web3-core -1602 verbose dependent web3 depends on web3-core -1603 silly isPackageDependentOf web3 web3-eth-abi -1604 silly isPackageDependentOf web3-bzz web3-eth-abi -1605 silly isPackageDependentOf web3-core web3-eth-abi -1606 silly isPackageDependentOf web3-eth web3-eth-abi -1607 silly isPackageDependentOf web3-eth-personal web3-eth-abi -1608 silly isPackageDependentOf web3-net web3-eth-abi -1609 silly isPackageDependentOf web3-shh web3-eth-abi -1610 silly isPackageDependentOf web3-utils web3-eth-abi -1611 verbose dependent web3 depends on web3-eth-abi -1612 silly isPackageDependentOf web3 web3-eth-accounts -1613 silly isPackageDependentOf web3-bzz web3-eth-accounts -1614 silly isPackageDependentOf web3-core web3-eth-accounts -1615 silly isPackageDependentOf web3-eth web3-eth-accounts -1616 silly isPackageDependentOf web3-eth-personal web3-eth-accounts -1617 silly isPackageDependentOf web3-net web3-eth-accounts -1618 silly isPackageDependentOf web3-shh web3-eth-accounts -1619 silly isPackageDependentOf web3-utils web3-eth-accounts -1620 verbose dependent web3 depends on web3-eth-accounts -1621 silly isPackageDependentOf web3 web3-eth-contract -1622 silly isPackageDependentOf web3-bzz web3-eth-contract -1623 silly isPackageDependentOf web3-core web3-eth-contract -1624 silly isPackageDependentOf web3-eth web3-eth-contract -1625 silly isPackageDependentOf web3-eth-personal web3-eth-contract -1626 silly isPackageDependentOf web3-net web3-eth-contract -1627 silly isPackageDependentOf web3-shh web3-eth-contract -1628 silly isPackageDependentOf web3-utils web3-eth-contract -1629 verbose dependent web3 depends on web3-eth-contract -1630 silly isPackageDependentOf web3 web3-eth-ens -1631 silly isPackageDependentOf web3-bzz web3-eth-ens -1632 silly isPackageDependentOf web3-core web3-eth-ens -1633 silly isPackageDependentOf web3-eth web3-eth-ens -1634 silly isPackageDependentOf web3-eth-personal web3-eth-ens -1635 silly isPackageDependentOf web3-net web3-eth-ens -1636 silly isPackageDependentOf web3-shh web3-eth-ens -1637 silly isPackageDependentOf web3-utils web3-eth-ens -1638 verbose dependent web3 depends on web3-eth-ens -1639 silly isPackageDependentOf web3 web3-eth-iban -1640 silly isPackageDependentOf web3-bzz web3-eth-iban -1641 silly isPackageDependentOf web3-core web3-eth-iban -1642 silly isPackageDependentOf web3-eth web3-eth-iban -1643 silly isPackageDependentOf web3-eth-personal web3-eth-iban -1644 silly isPackageDependentOf web3-net web3-eth-iban -1645 silly isPackageDependentOf web3-shh web3-eth-iban -1646 silly isPackageDependentOf web3-utils web3-eth-iban -1647 verbose dependent web3 depends on web3-eth-iban -1648 silly isPackageDependentOf web3 web3-eth-personal -1649 verbose dependent web3 depends on web3-eth-personal -1650 silly isPackageDependentOf web3 web3-eth -1651 verbose dependent web3 depends on web3-eth -1652 silly isPackageDependentOf web3 web3-net -1653 verbose dependent web3 depends on web3-net -1654 silly isPackageDependentOf web3 web3-providers-http -1655 silly isPackageDependentOf web3-bzz web3-providers-http -1656 silly isPackageDependentOf web3-core web3-providers-http -1657 silly isPackageDependentOf web3-eth web3-providers-http -1658 silly isPackageDependentOf web3-eth-personal web3-providers-http -1659 silly isPackageDependentOf web3-net web3-providers-http -1660 silly isPackageDependentOf web3-shh web3-providers-http -1661 silly isPackageDependentOf web3-utils web3-providers-http -1662 verbose dependent web3 depends on web3-providers-http -1663 silly isPackageDependentOf web3 web3-providers-ipc -1664 silly isPackageDependentOf web3-bzz web3-providers-ipc -1665 silly isPackageDependentOf web3-core web3-providers-ipc -1666 silly isPackageDependentOf web3-eth web3-providers-ipc -1667 silly isPackageDependentOf web3-eth-personal web3-providers-ipc -1668 silly isPackageDependentOf web3-net web3-providers-ipc -1669 silly isPackageDependentOf web3-shh web3-providers-ipc -1670 silly isPackageDependentOf web3-utils web3-providers-ipc -1671 verbose dependent web3 depends on web3-providers-ipc -1672 silly isPackageDependentOf web3 web3-providers-ws -1673 silly isPackageDependentOf web3-bzz web3-providers-ws -1674 silly isPackageDependentOf web3-core web3-providers-ws -1675 silly isPackageDependentOf web3-eth web3-providers-ws -1676 silly isPackageDependentOf web3-eth-personal web3-providers-ws -1677 silly isPackageDependentOf web3-net web3-providers-ws -1678 silly isPackageDependentOf web3-shh web3-providers-ws -1679 silly isPackageDependentOf web3-utils web3-providers-ws -1680 verbose dependent web3 depends on web3-providers-ws -1681 silly isPackageDependentOf web3 web3-shh -1682 verbose dependent web3 depends on web3-shh -1683 silly isPackageDependentOf web3 web3-utils -1684 verbose dependent web3 depends on web3-utils -1685 silly isPackageDependentOf web3 web3 -1686 silly isPackageDependentOf web3-bzz web3 -1687 silly isPackageDependentOf web3-core web3 -1688 silly isPackageDependentOf web3-eth web3 -1689 silly isPackageDependentOf web3-eth-personal web3 -1690 silly isPackageDependentOf web3-net web3 -1691 silly isPackageDependentOf web3-shh web3 -1692 silly isPackageDependentOf web3-utils web3 -1693 silly collectUpdates -1694 verbose has filtered update web3-bzz -1695 verbose has filtered update web3-core-helpers -1696 verbose has filtered update web3-core-method -1697 verbose has filtered update web3-core-promievent -1698 verbose has filtered update web3-core-requestmanager -1699 verbose has filtered update web3-core-subscriptions -1700 verbose has filtered update web3-core -1701 verbose has filtered update web3-eth-abi -1702 verbose has filtered update web3-eth-accounts -1703 verbose has filtered update web3-eth-contract -1704 verbose has filtered update web3-eth-ens -1705 verbose has filtered update web3-eth-iban -1706 verbose has filtered update web3-eth-personal -1707 verbose has filtered update web3-eth -1708 verbose has filtered update web3-net -1709 verbose has filtered update web3-providers-http -1710 verbose has filtered update web3-providers-ipc -1711 verbose has filtered update web3-providers-ws -1712 verbose has filtered update web3-shh -1713 verbose has filtered update web3-utils -1714 verbose has filtered update web3 -1715 silly initialize success -1716 silly execute attempt -1717 silly runScriptSync preversion web3 -1718 silly runScriptSync preversion web3-bzz -1719 silly runScriptSync version web3-bzz -1720 silly runScriptSync preversion web3-core-helpers -1721 silly runScriptSync version web3-core-helpers -1722 silly runScriptSync preversion web3-core-method -1723 silly runScriptSync version web3-core-method -1724 silly runScriptSync preversion web3-core-promievent -1725 silly runScriptSync version web3-core-promievent -1726 silly runScriptSync preversion web3-core-requestmanager -1727 silly runScriptSync version web3-core-requestmanager -1728 silly runScriptSync preversion web3-core-subscriptions -1729 silly runScriptSync version web3-core-subscriptions -1730 silly runScriptSync preversion web3-core -1731 silly runScriptSync version web3-core -1732 silly runScriptSync preversion web3-eth-abi -1733 silly runScriptSync version web3-eth-abi -1734 silly runScriptSync preversion web3-eth-accounts -1735 silly runScriptSync version web3-eth-accounts -1736 silly runScriptSync preversion web3-eth-contract -1737 silly runScriptSync version web3-eth-contract -1738 silly runScriptSync preversion web3-eth-ens -1739 silly runScriptSync version web3-eth-ens -1740 silly runScriptSync preversion web3-eth-iban -1741 silly runScriptSync version web3-eth-iban -1742 silly runScriptSync preversion web3-eth-personal -1743 silly runScriptSync version web3-eth-personal -1744 silly runScriptSync preversion web3-eth -1745 silly runScriptSync version web3-eth -1746 silly runScriptSync preversion web3-net -1747 silly runScriptSync version web3-net -1748 silly runScriptSync preversion web3-providers-http -1749 silly runScriptSync version web3-providers-http -1750 silly runScriptSync preversion web3-providers-ipc -1751 silly runScriptSync version web3-providers-ipc -1752 silly runScriptSync preversion web3-providers-ws -1753 silly runScriptSync version web3-providers-ws -1754 silly runScriptSync preversion web3-shh -1755 silly runScriptSync version web3-shh -1756 silly runScriptSync preversion web3-utils -1757 silly runScriptSync version web3-utils -1758 silly runScriptSync preversion web3 -1759 silly runScriptSync version web3 -1760 silly runScriptSync version web3 -1761 info publish Publishing packages to npm... -1762 silly existsSync /Users/work/Development/foundation/web3.js/packages/web3-bzz/scripts/prepublish.js -1763 verbose execScript No prepublish script found at /Users/work/Development/foundation/web3.js/packages/web3-bzz/scripts/prepublish.js -1764 silly existsSync /Users/work/Development/foundation/web3.js/packages/web3-core-helpers/scripts/prepublish.js -1765 verbose execScript No prepublish script found at /Users/work/Development/foundation/web3.js/packages/web3-core-helpers/scripts/prepublish.js -1766 silly existsSync /Users/work/Development/foundation/web3.js/packages/web3-core-method/scripts/prepublish.js -1767 verbose execScript No prepublish script found at /Users/work/Development/foundation/web3.js/packages/web3-core-method/scripts/prepublish.js -1768 silly existsSync /Users/work/Development/foundation/web3.js/packages/web3-core-promievent/scripts/prepublish.js -1769 verbose execScript No prepublish script found at /Users/work/Development/foundation/web3.js/packages/web3-core-promievent/scripts/prepublish.js -1770 silly existsSync /Users/work/Development/foundation/web3.js/packages/web3-core-requestmanager/scripts/prepublish.js -1771 verbose execScript No prepublish script found at /Users/work/Development/foundation/web3.js/packages/web3-core-requestmanager/scripts/prepublish.js -1772 silly existsSync /Users/work/Development/foundation/web3.js/packages/web3-core-subscriptions/scripts/prepublish.js -1773 verbose execScript No prepublish script found at /Users/work/Development/foundation/web3.js/packages/web3-core-subscriptions/scripts/prepublish.js -1774 silly existsSync /Users/work/Development/foundation/web3.js/packages/web3-core/scripts/prepublish.js -1775 verbose execScript No prepublish script found at /Users/work/Development/foundation/web3.js/packages/web3-core/scripts/prepublish.js -1776 silly existsSync /Users/work/Development/foundation/web3.js/packages/web3-eth-abi/scripts/prepublish.js -1777 verbose execScript No prepublish script found at /Users/work/Development/foundation/web3.js/packages/web3-eth-abi/scripts/prepublish.js -1778 silly existsSync /Users/work/Development/foundation/web3.js/packages/web3-eth-accounts/scripts/prepublish.js -1779 verbose execScript No prepublish script found at /Users/work/Development/foundation/web3.js/packages/web3-eth-accounts/scripts/prepublish.js -1780 silly existsSync /Users/work/Development/foundation/web3.js/packages/web3-eth-contract/scripts/prepublish.js -1781 verbose execScript No prepublish script found at /Users/work/Development/foundation/web3.js/packages/web3-eth-contract/scripts/prepublish.js -1782 silly existsSync /Users/work/Development/foundation/web3.js/packages/web3-eth-ens/scripts/prepublish.js -1783 verbose execScript No prepublish script found at /Users/work/Development/foundation/web3.js/packages/web3-eth-ens/scripts/prepublish.js -1784 silly existsSync /Users/work/Development/foundation/web3.js/packages/web3-eth-iban/scripts/prepublish.js -1785 verbose execScript No prepublish script found at /Users/work/Development/foundation/web3.js/packages/web3-eth-iban/scripts/prepublish.js -1786 silly existsSync /Users/work/Development/foundation/web3.js/packages/web3-eth-personal/scripts/prepublish.js -1787 verbose execScript No prepublish script found at /Users/work/Development/foundation/web3.js/packages/web3-eth-personal/scripts/prepublish.js -1788 silly existsSync /Users/work/Development/foundation/web3.js/packages/web3-eth/scripts/prepublish.js -1789 verbose execScript No prepublish script found at /Users/work/Development/foundation/web3.js/packages/web3-eth/scripts/prepublish.js -1790 silly existsSync /Users/work/Development/foundation/web3.js/packages/web3-net/scripts/prepublish.js -1791 verbose execScript No prepublish script found at /Users/work/Development/foundation/web3.js/packages/web3-net/scripts/prepublish.js -1792 silly existsSync /Users/work/Development/foundation/web3.js/packages/web3-providers-http/scripts/prepublish.js -1793 verbose execScript No prepublish script found at /Users/work/Development/foundation/web3.js/packages/web3-providers-http/scripts/prepublish.js -1794 silly existsSync /Users/work/Development/foundation/web3.js/packages/web3-providers-ipc/scripts/prepublish.js -1795 verbose execScript No prepublish script found at /Users/work/Development/foundation/web3.js/packages/web3-providers-ipc/scripts/prepublish.js -1796 silly existsSync /Users/work/Development/foundation/web3.js/packages/web3-providers-ws/scripts/prepublish.js -1797 verbose execScript No prepublish script found at /Users/work/Development/foundation/web3.js/packages/web3-providers-ws/scripts/prepublish.js -1798 silly existsSync /Users/work/Development/foundation/web3.js/packages/web3-shh/scripts/prepublish.js -1799 verbose execScript No prepublish script found at /Users/work/Development/foundation/web3.js/packages/web3-shh/scripts/prepublish.js -1800 silly existsSync /Users/work/Development/foundation/web3.js/packages/web3-utils/scripts/prepublish.js -1801 verbose execScript No prepublish script found at /Users/work/Development/foundation/web3.js/packages/web3-utils/scripts/prepublish.js -1802 silly existsSync /Users/work/Development/foundation/web3.js/packages/web3/scripts/prepublish.js -1803 verbose execScript No prepublish script found at /Users/work/Development/foundation/web3.js/packages/web3/scripts/prepublish.js -1804 verbose publishing web3-bzz -1805 silly publishTaggedInDir latest web3-bzz -1806 silly getExecOpts { cwd: -1806 silly getExecOpts '/Users/work/Development/foundation/web3.js/packages/web3-bzz' } -1807 verbose publishing web3-core-promievent -1808 silly publishTaggedInDir latest web3-core-promievent -1809 silly getExecOpts { cwd: -1809 silly getExecOpts '/Users/work/Development/foundation/web3.js/packages/web3-core-promievent' } -1810 verbose publishing web3-utils -1811 silly publishTaggedInDir latest web3-utils -1812 silly getExecOpts { cwd: -1812 silly getExecOpts '/Users/work/Development/foundation/web3.js/packages/web3-utils' } -1813 info published web3-utils -1814 silly existsSync /Users/work/Development/foundation/web3.js/packages/web3-utils/scripts/postpublish.js -1815 verbose execScript No postpublish script found at /Users/work/Development/foundation/web3.js/packages/web3-utils/scripts/postpublish.js -1816 info published web3-bzz -1817 silly existsSync /Users/work/Development/foundation/web3.js/packages/web3-bzz/scripts/postpublish.js -1818 verbose execScript No postpublish script found at /Users/work/Development/foundation/web3.js/packages/web3-bzz/scripts/postpublish.js -1819 info published web3-core-promievent -1820 silly existsSync /Users/work/Development/foundation/web3.js/packages/web3-core-promievent/scripts/postpublish.js -1821 verbose execScript No postpublish script found at /Users/work/Development/foundation/web3.js/packages/web3-core-promievent/scripts/postpublish.js -1822 verbose publishing web3-eth-abi -1823 silly publishTaggedInDir latest web3-eth-abi -1824 silly getExecOpts { cwd: -1824 silly getExecOpts '/Users/work/Development/foundation/web3.js/packages/web3-eth-abi' } -1825 verbose publishing web3-eth-iban -1826 silly publishTaggedInDir latest web3-eth-iban -1827 silly getExecOpts { cwd: -1827 silly getExecOpts '/Users/work/Development/foundation/web3.js/packages/web3-eth-iban' } -1828 info published web3-eth-iban -1829 silly existsSync /Users/work/Development/foundation/web3.js/packages/web3-eth-iban/scripts/postpublish.js -1830 verbose execScript No postpublish script found at /Users/work/Development/foundation/web3.js/packages/web3-eth-iban/scripts/postpublish.js -1831 info published web3-eth-abi -1832 silly existsSync /Users/work/Development/foundation/web3.js/packages/web3-eth-abi/scripts/postpublish.js -1833 verbose execScript No postpublish script found at /Users/work/Development/foundation/web3.js/packages/web3-eth-abi/scripts/postpublish.js -1834 verbose publishing web3-core-helpers -1835 silly publishTaggedInDir latest web3-core-helpers -1836 silly getExecOpts { cwd: -1836 silly getExecOpts '/Users/work/Development/foundation/web3.js/packages/web3-core-helpers' } -1837 info published web3-core-helpers -1838 silly existsSync /Users/work/Development/foundation/web3.js/packages/web3-core-helpers/scripts/postpublish.js -1839 verbose execScript No postpublish script found at /Users/work/Development/foundation/web3.js/packages/web3-core-helpers/scripts/postpublish.js -1840 verbose publishing web3-core-subscriptions -1841 silly publishTaggedInDir latest web3-core-subscriptions -1842 silly getExecOpts { cwd: -1842 silly getExecOpts '/Users/work/Development/foundation/web3.js/packages/web3-core-subscriptions' } -1843 verbose publishing web3-providers-http -1844 silly publishTaggedInDir latest web3-providers-http -1845 silly getExecOpts { cwd: -1845 silly getExecOpts '/Users/work/Development/foundation/web3.js/packages/web3-providers-http' } -1846 verbose publishing web3-providers-ipc -1847 silly publishTaggedInDir latest web3-providers-ipc -1848 silly getExecOpts { cwd: -1848 silly getExecOpts '/Users/work/Development/foundation/web3.js/packages/web3-providers-ipc' } -1849 verbose publishing web3-providers-ws -1850 silly publishTaggedInDir latest web3-providers-ws -1851 silly getExecOpts { cwd: -1851 silly getExecOpts '/Users/work/Development/foundation/web3.js/packages/web3-providers-ws' } -1852 info published web3-core-subscriptions -1853 silly existsSync /Users/work/Development/foundation/web3.js/packages/web3-core-subscriptions/scripts/postpublish.js -1854 verbose execScript No postpublish script found at /Users/work/Development/foundation/web3.js/packages/web3-core-subscriptions/scripts/postpublish.js -1855 info published web3-providers-ipc -1856 silly existsSync /Users/work/Development/foundation/web3.js/packages/web3-providers-ipc/scripts/postpublish.js -1857 verbose execScript No postpublish script found at /Users/work/Development/foundation/web3.js/packages/web3-providers-ipc/scripts/postpublish.js -1858 info published web3-providers-http -1859 silly existsSync /Users/work/Development/foundation/web3.js/packages/web3-providers-http/scripts/postpublish.js -1860 verbose execScript No postpublish script found at /Users/work/Development/foundation/web3.js/packages/web3-providers-http/scripts/postpublish.js -1861 info published web3-providers-ws -1862 silly existsSync /Users/work/Development/foundation/web3.js/packages/web3-providers-ws/scripts/postpublish.js -1863 verbose execScript No postpublish script found at /Users/work/Development/foundation/web3.js/packages/web3-providers-ws/scripts/postpublish.js -1864 verbose publishing web3-core-method -1865 silly publishTaggedInDir latest web3-core-method -1866 silly getExecOpts { cwd: -1866 silly getExecOpts '/Users/work/Development/foundation/web3.js/packages/web3-core-method' } -1867 verbose publishing web3-core-requestmanager -1868 silly publishTaggedInDir latest web3-core-requestmanager -1869 silly getExecOpts { cwd: -1869 silly getExecOpts '/Users/work/Development/foundation/web3.js/packages/web3-core-requestmanager' } -1870 info published web3-core-method -1871 silly existsSync /Users/work/Development/foundation/web3.js/packages/web3-core-method/scripts/postpublish.js -1872 verbose execScript No postpublish script found at /Users/work/Development/foundation/web3.js/packages/web3-core-method/scripts/postpublish.js -1873 info published web3-core-requestmanager -1874 silly existsSync /Users/work/Development/foundation/web3.js/packages/web3-core-requestmanager/scripts/postpublish.js -1875 verbose execScript No postpublish script found at /Users/work/Development/foundation/web3.js/packages/web3-core-requestmanager/scripts/postpublish.js -1876 verbose publishing web3-core -1877 silly publishTaggedInDir latest web3-core -1878 silly getExecOpts { cwd: -1878 silly getExecOpts '/Users/work/Development/foundation/web3.js/packages/web3-core' } -1879 info published web3-core -1880 silly existsSync /Users/work/Development/foundation/web3.js/packages/web3-core/scripts/postpublish.js -1881 verbose execScript No postpublish script found at /Users/work/Development/foundation/web3.js/packages/web3-core/scripts/postpublish.js -1882 verbose publishing web3-eth-accounts -1883 silly publishTaggedInDir latest web3-eth-accounts -1884 silly getExecOpts { cwd: -1884 silly getExecOpts '/Users/work/Development/foundation/web3.js/packages/web3-eth-accounts' } -1885 verbose publishing web3-eth-contract -1886 silly publishTaggedInDir latest web3-eth-contract -1887 silly getExecOpts { cwd: -1887 silly getExecOpts '/Users/work/Development/foundation/web3.js/packages/web3-eth-contract' } -1888 verbose publishing web3-net -1889 silly publishTaggedInDir latest web3-net -1890 silly getExecOpts { cwd: -1890 silly getExecOpts '/Users/work/Development/foundation/web3.js/packages/web3-net' } -1891 info published web3-net -1892 silly existsSync /Users/work/Development/foundation/web3.js/packages/web3-net/scripts/postpublish.js -1893 verbose execScript No postpublish script found at /Users/work/Development/foundation/web3.js/packages/web3-net/scripts/postpublish.js -1894 info published web3-eth-contract -1895 silly existsSync /Users/work/Development/foundation/web3.js/packages/web3-eth-contract/scripts/postpublish.js -1896 verbose execScript No postpublish script found at /Users/work/Development/foundation/web3.js/packages/web3-eth-contract/scripts/postpublish.js -1897 info published web3-eth-accounts -1898 silly existsSync /Users/work/Development/foundation/web3.js/packages/web3-eth-accounts/scripts/postpublish.js -1899 verbose execScript No postpublish script found at /Users/work/Development/foundation/web3.js/packages/web3-eth-accounts/scripts/postpublish.js -1900 verbose publishing web3-eth-ens -1901 silly publishTaggedInDir latest web3-eth-ens -1902 silly getExecOpts { cwd: -1902 silly getExecOpts '/Users/work/Development/foundation/web3.js/packages/web3-eth-ens' } -1903 verbose publishing web3-eth-personal -1904 silly publishTaggedInDir latest web3-eth-personal -1905 silly getExecOpts { cwd: -1905 silly getExecOpts '/Users/work/Development/foundation/web3.js/packages/web3-eth-personal' } -1906 verbose publishing web3-shh -1907 silly publishTaggedInDir latest web3-shh -1908 silly getExecOpts { cwd: -1908 silly getExecOpts '/Users/work/Development/foundation/web3.js/packages/web3-shh' } -1909 info published web3-eth-personal -1910 silly existsSync /Users/work/Development/foundation/web3.js/packages/web3-eth-personal/scripts/postpublish.js -1911 verbose execScript No postpublish script found at /Users/work/Development/foundation/web3.js/packages/web3-eth-personal/scripts/postpublish.js -1912 info published web3-shh -1913 silly existsSync /Users/work/Development/foundation/web3.js/packages/web3-shh/scripts/postpublish.js -1914 verbose execScript No postpublish script found at /Users/work/Development/foundation/web3.js/packages/web3-shh/scripts/postpublish.js -1915 info published web3-eth-ens -1916 silly existsSync /Users/work/Development/foundation/web3.js/packages/web3-eth-ens/scripts/postpublish.js -1917 verbose execScript No postpublish script found at /Users/work/Development/foundation/web3.js/packages/web3-eth-ens/scripts/postpublish.js -1918 verbose publishing web3-eth -1919 silly publishTaggedInDir latest web3-eth -1920 silly getExecOpts { cwd: -1920 silly getExecOpts '/Users/work/Development/foundation/web3.js/packages/web3-eth' } -1921 info published web3-eth -1922 silly existsSync /Users/work/Development/foundation/web3.js/packages/web3-eth/scripts/postpublish.js -1923 verbose execScript No postpublish script found at /Users/work/Development/foundation/web3.js/packages/web3-eth/scripts/postpublish.js -1924 verbose publishing web3 -1925 silly publishTaggedInDir latest web3 -1926 silly getExecOpts { cwd: '/Users/work/Development/foundation/web3.js/packages/web3' } -1927 error publish Retrying failed publish: web3 -1928 verbose publish error undefined -1929 verbose publishing web3 -1930 silly publishTaggedInDir latest web3 -1931 silly getExecOpts { cwd: '/Users/work/Development/foundation/web3.js/packages/web3' } -1932 error publish Retrying failed publish: web3 -1933 verbose publish error undefined -1934 verbose publishing web3 -1935 silly publishTaggedInDir latest web3 -1936 silly getExecOpts { cwd: '/Users/work/Development/foundation/web3.js/packages/web3' } -1937 error publish Retrying failed publish: web3 -1938 verbose publish error undefined -1939 verbose publishing web3 -1940 silly publishTaggedInDir latest web3 -1941 silly getExecOpts { cwd: '/Users/work/Development/foundation/web3.js/packages/web3' } -1942 error publish Retrying failed publish: web3 -1943 verbose publish error undefined -1944 verbose publishing web3 -1945 silly publishTaggedInDir latest web3 -1946 silly getExecOpts { cwd: '/Users/work/Development/foundation/web3.js/packages/web3' } -1947 error publish Ran out of retries while publishing web3 Error: Command failed: npm publish --tag latest -1947 error publish npm notice -1947 error publish npm notice 📦 web3@1.2.1 -1947 error publish npm notice === Tarball Contents === -1947 error publish npm notice 1.4kB package.json -1947 error publish npm notice 270B README.md -1947 error publish npm notice 2.1kB src/index.js -1947 error publish npm notice === Tarball Details === -1947 error publish npm notice name: web3 -1947 error publish npm notice version: 1.2.1 -1947 error publish npm notice package size: 1.6 kB -1947 error publish npm notice unpacked size: 3.8 kB -1947 error publish npm notice shasum: 5d8158bcca47838ab8c2b784a2dee4c3ceb4179b -1947 error publish npm notice integrity: sha512-nNMzeCK0agb5i[...]GaOC2zKDFuFRw== -1947 error publish npm notice total files: 3 -1947 error publish npm notice -1947 error publish npm ERR! code EOTP -1947 error publish npm ERR! This operation requires a one-time password from your authenticator. -1947 error publish npm ERR! You can provide a one-time password by passing --otp= to the command you ran. -1947 error publish npm ERR! If you already provided a one-time password then it is likely that you either typoed -1947 error publish npm ERR! it, or it timed out. Please try again. -1947 error publish -1947 error publish npm ERR! A complete log of this run can be found in: -1947 error publish npm ERR! /Users/work/.npm/_logs/2019-08-06T09_51_25_563Z-debug.log -1947 error publish -1947 error publish at Promise.all.then.arr (/Users/work/Development/foundation/web3.js/node_modules/execa/index.js:236:11) -1947 error publish at process._tickCallback (internal/process/next_tick.js:68:7) -1948 error execute callback with error -1949 error Error: Command failed: npm publish --tag latest -1949 error npm notice -1949 error npm notice 📦 web3@1.2.1 -1949 error npm notice === Tarball Contents === -1949 error npm notice 1.4kB package.json -1949 error npm notice 270B README.md -1949 error npm notice 2.1kB src/index.js -1949 error npm notice === Tarball Details === -1949 error npm notice name: web3 -1949 error npm notice version: 1.2.1 -1949 error npm notice package size: 1.6 kB -1949 error npm notice unpacked size: 3.8 kB -1949 error npm notice shasum: 5d8158bcca47838ab8c2b784a2dee4c3ceb4179b -1949 error npm notice integrity: sha512-nNMzeCK0agb5i[...]GaOC2zKDFuFRw== -1949 error npm notice total files: 3 -1949 error npm notice -1949 error npm ERR! code EOTP -1949 error npm ERR! This operation requires a one-time password from your authenticator. -1949 error npm ERR! You can provide a one-time password by passing --otp= to the command you ran. -1949 error npm ERR! If you already provided a one-time password then it is likely that you either typoed -1949 error npm ERR! it, or it timed out. Please try again. -1949 error -1949 error npm ERR! A complete log of this run can be found in: -1949 error npm ERR! /Users/work/.npm/_logs/2019-08-06T09_51_25_563Z-debug.log -1949 error -1949 error at Promise.all.then.arr (/Users/work/Development/foundation/web3.js/node_modules/execa/index.js:236:11) +4 silly existsSync /Users/work/Development/foundation/josh/VERSION +5 silly initialize attempt +6 silly initialize success +7 silly execute attempt +8 silly runScriptInDir dtslint [] web3-bzz +9 silly getExecOpts { cwd: '/Users/work/Development/foundation/josh/packages/web3-bzz' } +10 silly runScriptInDir dtslint [] web3-utils +11 silly getExecOpts { cwd: '/Users/work/Development/foundation/josh/packages/web3-utils' } +12 silly runScriptInDir dtslint [] web3-eth-abi +13 silly getExecOpts { +13 silly getExecOpts cwd: '/Users/work/Development/foundation/josh/packages/web3-eth-abi' +13 silly getExecOpts } +14 silly runScriptInDir dtslint [] web3-eth-iban +15 silly getExecOpts { +15 silly getExecOpts cwd: '/Users/work/Development/foundation/josh/packages/web3-eth-iban' +15 silly getExecOpts } +16 silly runScriptInDir dtslint [] web3-core-helpers +17 silly getExecOpts { +17 silly getExecOpts cwd: '/Users/work/Development/foundation/josh/packages/web3-core-helpers' +17 silly getExecOpts } +18 silly runScriptInDir dtslint [] web3-core-subscriptions +19 silly getExecOpts { +19 silly getExecOpts cwd: '/Users/work/Development/foundation/josh/packages/web3-core-subscriptions' +19 silly getExecOpts } +20 silly runScriptInDir dtslint [] web3-providers-http +21 silly getExecOpts { +21 silly getExecOpts cwd: '/Users/work/Development/foundation/josh/packages/web3-providers-http' +21 silly getExecOpts } +22 silly runScriptInDir dtslint [] web3-providers-ipc +23 silly getExecOpts { +23 silly getExecOpts cwd: '/Users/work/Development/foundation/josh/packages/web3-providers-ipc' +23 silly getExecOpts } +24 silly runScriptInDir dtslint [] web3-providers-ws +25 silly getExecOpts { +25 silly getExecOpts cwd: '/Users/work/Development/foundation/josh/packages/web3-providers-ws' +25 silly getExecOpts } +26 silly runScriptInDir dtslint [] web3-core-method +27 silly getExecOpts { +27 silly getExecOpts cwd: '/Users/work/Development/foundation/josh/packages/web3-core-method' +27 silly getExecOpts } +28 silly runScriptInDir dtslint [] web3-core +29 silly getExecOpts { cwd: '/Users/work/Development/foundation/josh/packages/web3-core' } +30 silly runScriptInDir dtslint [] web3-eth-accounts +31 silly getExecOpts { +31 silly getExecOpts cwd: '/Users/work/Development/foundation/josh/packages/web3-eth-accounts' +31 silly getExecOpts } +32 silly runScriptInDir dtslint [] web3-eth-contract +33 silly getExecOpts { +33 silly getExecOpts cwd: '/Users/work/Development/foundation/josh/packages/web3-eth-contract' +33 silly getExecOpts } +34 silly runScriptInDir dtslint [] web3-net +35 silly getExecOpts { cwd: '/Users/work/Development/foundation/josh/packages/web3-net' } +36 silly runScriptInDir dtslint [] web3-eth-ens +37 silly getExecOpts { +37 silly getExecOpts cwd: '/Users/work/Development/foundation/josh/packages/web3-eth-ens' +37 silly getExecOpts } +38 silly runScriptInDir dtslint [] web3-eth-personal +39 silly getExecOpts { +39 silly getExecOpts cwd: '/Users/work/Development/foundation/josh/packages/web3-eth-personal' +39 silly getExecOpts } +40 silly runScriptInDir dtslint [] web3-shh +41 silly getExecOpts { cwd: '/Users/work/Development/foundation/josh/packages/web3-shh' } +42 silly runScriptInDir dtslint [] web3-eth +43 silly getExecOpts { cwd: '/Users/work/Development/foundation/josh/packages/web3-eth' } +44 error dtslint Errored while running script in 'web3-eth' +45 error execute callback with error +46 error Error: Command failed: npm run dtslint +46 error Error: /Users/work/Development/foundation/josh/packages/web3-eth/types/tests/eth.tests.ts:44:5 +46 error ERROR: 44:5 expect TypeScript@next compile error: +46 error Property 'extend' does not exist on type 'Eth'. +46 error +46 error at /Users/work/Development/foundation/josh/packages/web3-eth/node_modules/dtslint/bin/index.js:163:19 +46 error at Generator.next () +46 error at fulfilled (/Users/work/Development/foundation/josh/packages/web3-eth/node_modules/dtslint/bin/index.js:5:58) +46 error npm ERR! code ELIFECYCLE +46 error npm ERR! errno 1 +46 error npm ERR! web3-eth@1.2.1 dtslint: `dtslint types --onlyTestTsNext` +46 error npm ERR! Exit status 1 +46 error npm ERR! +46 error npm ERR! Failed at the web3-eth@1.2.1 dtslint script. +46 error npm ERR! This is probably not a problem with npm. There is likely additional logging output above. +46 error +46 error npm ERR! A complete log of this run can be found in: +46 error npm ERR! /Users/work/.npm/_logs/2019-10-16T09_56_52_575Z-debug.log +46 error +46 error > web3-eth@1.2.1 dtslint /Users/work/Development/foundation/josh/packages/web3-eth +46 error > dtslint types --onlyTestTsNext +46 error +46 error +46 error at /Users/work/Development/foundation/josh/node_modules/execa/index.js:236:11 diff --git a/package-lock.json b/package-lock.json index fbb9ada2b7b..ddaca55486c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11651,6 +11651,15 @@ "integrity": "sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=", "dev": true }, + "typedarray-to-buffer": { + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/typedarray-to-buffer/-/typedarray-to-buffer-3.1.5.tgz", + "integrity": "sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q==", + "dev": true, + "requires": { + "is-typedarray": "^1.0.0" + } + }, "uglify-js": { "version": "3.4.9", "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.4.9.tgz", @@ -12533,7 +12542,8 @@ "dev": true, "requires": { "underscore": "1.9.1", - "web3-core-helpers": "1.2.1" + "web3-core-helpers": "1.2.1", + "websocket": "github:web3-js/WebSocket-Node#polyfill/globalThis" } }, "web3-shh": { @@ -12594,6 +12604,18 @@ } } }, + "websocket": { + "version": "github:web3-js/WebSocket-Node#905deb4812572b344f5801f8c9ce8bb02799d82e", + "from": "github:web3-js/WebSocket-Node#polyfill/globalThis", + "dev": true, + "requires": { + "debug": "^2.2.0", + "es5-ext": "^0.10.50", + "nan": "^2.14.0", + "typedarray-to-buffer": "^3.1.5", + "yaeti": "^0.0.6" + } + }, "which": { "version": "1.3.1", "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", @@ -12757,6 +12779,12 @@ "integrity": "sha1-bRX7qITAhnnA136I53WegR4H+kE=", "dev": true }, + "yaeti": { + "version": "0.0.6", + "resolved": "https://registry.npmjs.org/yaeti/-/yaeti-0.0.6.tgz", + "integrity": "sha1-8m9ITXJoTPQr7ft2lwqhYI+/lXc=", + "dev": true + }, "yallist": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/yallist/-/yallist-2.1.2.tgz", diff --git a/packages/web3-bzz/package-lock.json b/packages/web3-bzz/package-lock.json index 81ccaf69816..7889294128f 100644 --- a/packages/web3-bzz/package-lock.json +++ b/packages/web3-bzz/package-lock.json @@ -1,14 +1,11 @@ { - "name": "web3-bzz", - "version": "1.2.1", - "lockfileVersion": 1, "requires": true, + "lockfileVersion": 1, "dependencies": { "@babel/code-frame": { "version": "7.5.5", "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.5.5.tgz", "integrity": "sha512-27d4lZoomVyo51VegxI20xZPuSHusqbQag/ztrBC7wegWoQ1nLREPVSKSW8byhTlzTKyNE4ifaTA6lCp7JjpFw==", - "dev": true, "requires": { "@babel/highlight": "^7.0.0" } @@ -17,7 +14,6 @@ "version": "7.5.0", "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.5.0.tgz", "integrity": "sha512-7dV4eu9gBxoM0dAnj/BCFDW9LFU0zvTrkq0ugM7pnHEgguOEeOz1so2ZghEdzviYzQEED0r4EAgpsBChKy1TRQ==", - "dev": true, "requires": { "chalk": "^2.0.0", "esutils": "^2.0.2", @@ -45,8 +41,7 @@ "@types/parsimmon": { "version": "1.10.0", "resolved": "https://registry.npmjs.org/@types/parsimmon/-/parsimmon-1.10.0.tgz", - "integrity": "sha512-bsTIJFVQv7jnvNiC42ld2pQW2KRI+pAG243L+iATvqzy3X6+NH1obz2itRKDZZ8VVhN3wjwYax/VBGCcXzgTqQ==", - "dev": true + "integrity": "sha512-bsTIJFVQv7jnvNiC42ld2pQW2KRI+pAG243L+iATvqzy3X6+NH1obz2itRKDZZ8VVhN3wjwYax/VBGCcXzgTqQ==" }, "accepts": { "version": "1.3.7", @@ -72,7 +67,6 @@ "version": "3.2.1", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, "requires": { "color-convert": "^1.9.0" } @@ -81,7 +75,6 @@ "version": "1.0.10", "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", - "dev": true, "requires": { "sprintf-js": "~1.0.2" } @@ -127,8 +120,7 @@ "balanced-match": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", - "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", - "dev": true + "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=" }, "base64-js": { "version": "1.3.0", @@ -183,7 +175,6 @@ "version": "1.1.11", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "dev": true, "requires": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" @@ -244,8 +235,7 @@ "builtin-modules": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-1.1.1.tgz", - "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=", - "dev": true + "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=" }, "bytes": { "version": "3.1.0", @@ -290,7 +280,6 @@ "version": "2.4.2", "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", - "dev": true, "requires": { "ansi-styles": "^3.2.1", "escape-string-regexp": "^1.0.5", @@ -314,7 +303,6 @@ "version": "1.9.3", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", - "dev": true, "requires": { "color-name": "1.1.3" } @@ -322,8 +310,7 @@ "color-name": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", - "dev": true + "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=" }, "combined-stream": { "version": "1.0.8", @@ -344,8 +331,7 @@ "concat-map": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", - "dev": true + "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=" }, "content-disposition": { "version": "0.5.3", @@ -511,7 +497,6 @@ "version": "1.2.0", "resolved": "https://registry.npmjs.org/definitelytyped-header-parser/-/definitelytyped-header-parser-1.2.0.tgz", "integrity": "sha512-xpg8uu/2YD/reaVsZV4oJ4g7UDYFqQGWvT1W9Tsj6q4VtWBSaig38Qgah0ZMnQGF9kAsAim08EXDO1nSi0+Nog==", - "dev": true, "requires": { "@types/parsimmon": "^1.3.0", "parsimmon": "^1.2.0" @@ -535,8 +520,7 @@ "diff": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.1.tgz", - "integrity": "sha512-s2+XdvhPCOF01LRQBC8hf4vhbVmI2CGS5aZnxLJlT5FtdhPCDFq80q++zK2KlrVorVDdL5BOGZ/VfLrVtYNF+Q==", - "dev": true + "integrity": "sha512-s2+XdvhPCOF01LRQBC8hf4vhbVmI2CGS5aZnxLJlT5FtdhPCDFq80q++zK2KlrVorVDdL5BOGZ/VfLrVtYNF+Q==" }, "dom-walk": { "version": "0.1.1", @@ -547,7 +531,6 @@ "version": "0.4.2", "resolved": "https://registry.npmjs.org/dtslint/-/dtslint-0.4.2.tgz", "integrity": "sha512-ph4GXLw3HYzlQMJOFcpCqWHuL3MxJ/344OR7wn0wlQGchQGTIVNsSUl8iKEMatpy2geNMysgA9fQa6xVhHOkTQ==", - "dev": true, "requires": { "definitelytyped-header-parser": "github:Microsoft/definitelytyped-header-parser#production", "fs-extra": "^6.0.1", @@ -559,7 +542,6 @@ "definitelytyped-header-parser": { "version": "github:Microsoft/definitelytyped-header-parser#d957ad0bb2f4ecb60ac04f734e0b38fbc8e70b8a", "from": "github:Microsoft/definitelytyped-header-parser#production", - "dev": true, "requires": { "@types/parsimmon": "^1.3.0", "parsimmon": "^1.2.0" @@ -569,7 +551,6 @@ "version": "6.0.1", "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-6.0.1.tgz", "integrity": "sha512-GnyIkKhhzXZUWFCaJzvyDLEEgDkPfb4/TPvJCJVuS8MWZgoSsErf++QpiAlDnKFcqhRlm+tIOcencCjyJE6ZCA==", - "dev": true, "requires": { "graceful-fs": "^4.1.2", "jsonfile": "^4.0.0", @@ -655,20 +636,17 @@ "escape-string-regexp": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", - "dev": true + "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=" }, "esprima": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", - "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", - "dev": true + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==" }, "esutils": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", - "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", - "dev": true + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==" }, "etag": { "version": "1.8.1", @@ -832,8 +810,7 @@ "fs.realpath": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", - "dev": true + "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=" }, "function-bind": { "version": "1.1.1", @@ -860,7 +837,6 @@ "version": "7.1.4", "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.4.tgz", "integrity": "sha512-hkLPepehmnKk41pUGm3sYxoFs/umurYfYJCerbXEyFIWcAzvpipAgVkBqqT9RBKMGjnq6kMuyYwha6csxbiM1A==", - "dev": true, "requires": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", @@ -932,8 +908,7 @@ "has-flag": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", - "dev": true + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=" }, "has-symbol-support-x": { "version": "1.4.2", @@ -1016,7 +991,6 @@ "version": "1.0.6", "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", - "dev": true, "requires": { "once": "^1.3.0", "wrappy": "1" @@ -1120,14 +1094,12 @@ "js-tokens": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", - "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", - "dev": true + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==" }, "js-yaml": { "version": "3.13.1", "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.13.1.tgz", "integrity": "sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw==", - "dev": true, "requires": { "argparse": "^1.0.7", "esprima": "^4.0.0" @@ -1274,7 +1246,6 @@ "version": "3.0.4", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", - "dev": true, "requires": { "brace-expansion": "^1.1.7" } @@ -1413,20 +1384,17 @@ "parsimmon": { "version": "1.13.0", "resolved": "https://registry.npmjs.org/parsimmon/-/parsimmon-1.13.0.tgz", - "integrity": "sha512-5UIrOCW+gjbILkjKPgTgmq8LKf8TT3Iy7kN2VD7OtQ81facKn8B4gG1X94jWqXYZsxG2KbJhrv/Yq/5H6BQn7A==", - "dev": true + "integrity": "sha512-5UIrOCW+gjbILkjKPgTgmq8LKf8TT3Iy7kN2VD7OtQ81facKn8B4gG1X94jWqXYZsxG2KbJhrv/Yq/5H6BQn7A==" }, "path-is-absolute": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", - "dev": true + "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=" }, "path-parse": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz", - "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==", - "dev": true + "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==" }, "path-to-regexp": { "version": "0.1.7", @@ -1587,7 +1555,6 @@ "version": "1.12.0", "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.12.0.tgz", "integrity": "sha512-B/dOmuoAik5bKcD6s6nXDCjzUKnaDvdkRyAk6rsmsKLipWj4797iothd7jmmUhWTfinVMU+wc56rYKsit2Qy4w==", - "dev": true, "requires": { "path-parse": "^1.0.6" } @@ -1621,8 +1588,7 @@ "semver": { "version": "5.7.1", "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", - "dev": true + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==" }, "send": { "version": "0.17.1", @@ -1710,8 +1676,7 @@ "sprintf-js": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", - "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", - "dev": true + "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=" }, "sshpk": { "version": "1.16.1", @@ -1768,14 +1733,12 @@ "strip-json-comments": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", - "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=", - "dev": true + "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=" }, "supports-color": { "version": "5.5.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "dev": true, "requires": { "has-flag": "^3.0.0" } @@ -1917,14 +1880,12 @@ "tslib": { "version": "1.10.0", "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.10.0.tgz", - "integrity": "sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==", - "dev": true + "integrity": "sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==" }, "tslint": { "version": "5.20.0", "resolved": "https://registry.npmjs.org/tslint/-/tslint-5.20.0.tgz", "integrity": "sha512-2vqIvkMHbnx8acMogAERQ/IuINOq6DFqgF8/VDvhEkBqQh/x6SP0Y+OHnKth9/ZcHQSroOZwUQSN18v8KKF0/g==", - "dev": true, "requires": { "@babel/code-frame": "^7.0.0", "builtin-modules": "^1.1.1", @@ -1944,8 +1905,7 @@ "commander": { "version": "2.20.3", "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", - "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", - "dev": true + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==" } } }, @@ -1953,7 +1913,6 @@ "version": "2.29.0", "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-2.29.0.tgz", "integrity": "sha512-g5JVHCIJwzfISaXpXE1qvNalca5Jwob6FjI4AoPlqMusJ6ftFE7IkkFoMhVLRgK+4Kx3gkzb8UZK5t5yTTvEmA==", - "dev": true, "requires": { "tslib": "^1.8.1" } @@ -1983,8 +1942,7 @@ "typescript": { "version": "3.7.0-dev.20191015", "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.7.0-dev.20191015.tgz", - "integrity": "sha512-Cpfj1n4pEUVKL+jtS0mkZodJffyMmf3Wk/UjyZMGX4fsjK5KBPJf3NUlyXij8I8p1E2CAomdS5NPFrAR+z8pKw==", - "dev": true + "integrity": "sha512-Cpfj1n4pEUVKL+jtS0mkZodJffyMmf3Wk/UjyZMGX4fsjK5KBPJf3NUlyXij8I8p1E2CAomdS5NPFrAR+z8pKw==" }, "ultron": { "version": "1.1.1", diff --git a/packages/web3-core-helpers/package-lock.json b/packages/web3-core-helpers/package-lock.json index 420b4874a05..0ad01e74290 100644 --- a/packages/web3-core-helpers/package-lock.json +++ b/packages/web3-core-helpers/package-lock.json @@ -1,14 +1,11 @@ { - "name": "web3-core-helpers", - "version": "1.2.1", - "lockfileVersion": 1, "requires": true, + "lockfileVersion": 1, "dependencies": { "@babel/code-frame": { "version": "7.5.5", "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.5.5.tgz", "integrity": "sha512-27d4lZoomVyo51VegxI20xZPuSHusqbQag/ztrBC7wegWoQ1nLREPVSKSW8byhTlzTKyNE4ifaTA6lCp7JjpFw==", - "dev": true, "requires": { "@babel/highlight": "^7.0.0" } @@ -17,7 +14,6 @@ "version": "7.5.0", "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.5.0.tgz", "integrity": "sha512-7dV4eu9gBxoM0dAnj/BCFDW9LFU0zvTrkq0ugM7pnHEgguOEeOz1so2ZghEdzviYzQEED0r4EAgpsBChKy1TRQ==", - "dev": true, "requires": { "chalk": "^2.0.0", "esutils": "^2.0.2", @@ -27,14 +23,12 @@ "@types/parsimmon": { "version": "1.10.0", "resolved": "https://registry.npmjs.org/@types/parsimmon/-/parsimmon-1.10.0.tgz", - "integrity": "sha512-bsTIJFVQv7jnvNiC42ld2pQW2KRI+pAG243L+iATvqzy3X6+NH1obz2itRKDZZ8VVhN3wjwYax/VBGCcXzgTqQ==", - "dev": true + "integrity": "sha512-bsTIJFVQv7jnvNiC42ld2pQW2KRI+pAG243L+iATvqzy3X6+NH1obz2itRKDZZ8VVhN3wjwYax/VBGCcXzgTqQ==" }, "ansi-styles": { "version": "3.2.1", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, "requires": { "color-convert": "^1.9.0" } @@ -43,7 +37,6 @@ "version": "1.0.10", "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", - "dev": true, "requires": { "sprintf-js": "~1.0.2" } @@ -51,14 +44,12 @@ "balanced-match": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", - "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", - "dev": true + "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=" }, "brace-expansion": { "version": "1.1.11", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "dev": true, "requires": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" @@ -67,14 +58,12 @@ "builtin-modules": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-1.1.1.tgz", - "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=", - "dev": true + "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=" }, "chalk": { "version": "2.4.2", "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", - "dev": true, "requires": { "ansi-styles": "^3.2.1", "escape-string-regexp": "^1.0.5", @@ -85,7 +74,6 @@ "version": "1.9.3", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", - "dev": true, "requires": { "color-name": "1.1.3" } @@ -93,26 +81,22 @@ "color-name": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", - "dev": true + "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=" }, "commander": { "version": "2.20.3", "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", - "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", - "dev": true + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==" }, "concat-map": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", - "dev": true + "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=" }, "definitelytyped-header-parser": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/definitelytyped-header-parser/-/definitelytyped-header-parser-1.2.0.tgz", "integrity": "sha512-xpg8uu/2YD/reaVsZV4oJ4g7UDYFqQGWvT1W9Tsj6q4VtWBSaig38Qgah0ZMnQGF9kAsAim08EXDO1nSi0+Nog==", - "dev": true, "requires": { "@types/parsimmon": "^1.3.0", "parsimmon": "^1.2.0" @@ -121,14 +105,12 @@ "diff": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.1.tgz", - "integrity": "sha512-s2+XdvhPCOF01LRQBC8hf4vhbVmI2CGS5aZnxLJlT5FtdhPCDFq80q++zK2KlrVorVDdL5BOGZ/VfLrVtYNF+Q==", - "dev": true + "integrity": "sha512-s2+XdvhPCOF01LRQBC8hf4vhbVmI2CGS5aZnxLJlT5FtdhPCDFq80q++zK2KlrVorVDdL5BOGZ/VfLrVtYNF+Q==" }, "dtslint": { "version": "0.4.2", "resolved": "https://registry.npmjs.org/dtslint/-/dtslint-0.4.2.tgz", "integrity": "sha512-ph4GXLw3HYzlQMJOFcpCqWHuL3MxJ/344OR7wn0wlQGchQGTIVNsSUl8iKEMatpy2geNMysgA9fQa6xVhHOkTQ==", - "dev": true, "requires": { "definitelytyped-header-parser": "github:Microsoft/definitelytyped-header-parser#production", "fs-extra": "^6.0.1", @@ -140,7 +122,6 @@ "definitelytyped-header-parser": { "version": "github:Microsoft/definitelytyped-header-parser#d957ad0bb2f4ecb60ac04f734e0b38fbc8e70b8a", "from": "github:Microsoft/definitelytyped-header-parser#production", - "dev": true, "requires": { "@types/parsimmon": "^1.3.0", "parsimmon": "^1.2.0" @@ -151,26 +132,22 @@ "escape-string-regexp": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", - "dev": true + "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=" }, "esprima": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", - "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", - "dev": true + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==" }, "esutils": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", - "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", - "dev": true + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==" }, "fs-extra": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-6.0.1.tgz", "integrity": "sha512-GnyIkKhhzXZUWFCaJzvyDLEEgDkPfb4/TPvJCJVuS8MWZgoSsErf++QpiAlDnKFcqhRlm+tIOcencCjyJE6ZCA==", - "dev": true, "requires": { "graceful-fs": "^4.1.2", "jsonfile": "^4.0.0", @@ -180,14 +157,12 @@ "fs.realpath": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", - "dev": true + "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=" }, "glob": { "version": "7.1.4", "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.4.tgz", "integrity": "sha512-hkLPepehmnKk41pUGm3sYxoFs/umurYfYJCerbXEyFIWcAzvpipAgVkBqqT9RBKMGjnq6kMuyYwha6csxbiM1A==", - "dev": true, "requires": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", @@ -200,20 +175,17 @@ "graceful-fs": { "version": "4.2.2", "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.2.tgz", - "integrity": "sha512-IItsdsea19BoLC7ELy13q1iJFNmd7ofZH5+X/pJr90/nRoPEX0DJo1dHDbgtYWOhJhcCgMDTOw84RZ72q6lB+Q==", - "dev": true + "integrity": "sha512-IItsdsea19BoLC7ELy13q1iJFNmd7ofZH5+X/pJr90/nRoPEX0DJo1dHDbgtYWOhJhcCgMDTOw84RZ72q6lB+Q==" }, "has-flag": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", - "dev": true + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=" }, "inflight": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", - "dev": true, "requires": { "once": "^1.3.0", "wrappy": "1" @@ -222,20 +194,17 @@ "inherits": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", - "dev": true + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" }, "js-tokens": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", - "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", - "dev": true + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==" }, "js-yaml": { "version": "3.13.1", "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.13.1.tgz", "integrity": "sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw==", - "dev": true, "requires": { "argparse": "^1.0.7", "esprima": "^4.0.0" @@ -245,7 +214,6 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", "integrity": "sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss=", - "dev": true, "requires": { "graceful-fs": "^4.1.6" } @@ -254,7 +222,6 @@ "version": "3.0.4", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", - "dev": true, "requires": { "brace-expansion": "^1.1.7" } @@ -262,14 +229,12 @@ "minimist": { "version": "0.0.8", "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", - "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=", - "dev": true + "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=" }, "mkdirp": { "version": "0.5.1", "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", - "dev": true, "requires": { "minimist": "0.0.8" } @@ -278,7 +243,6 @@ "version": "1.4.0", "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", - "dev": true, "requires": { "wrappy": "1" } @@ -286,26 +250,22 @@ "parsimmon": { "version": "1.13.0", "resolved": "https://registry.npmjs.org/parsimmon/-/parsimmon-1.13.0.tgz", - "integrity": "sha512-5UIrOCW+gjbILkjKPgTgmq8LKf8TT3Iy7kN2VD7OtQ81facKn8B4gG1X94jWqXYZsxG2KbJhrv/Yq/5H6BQn7A==", - "dev": true + "integrity": "sha512-5UIrOCW+gjbILkjKPgTgmq8LKf8TT3Iy7kN2VD7OtQ81facKn8B4gG1X94jWqXYZsxG2KbJhrv/Yq/5H6BQn7A==" }, "path-is-absolute": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", - "dev": true + "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=" }, "path-parse": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz", - "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==", - "dev": true + "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==" }, "resolve": { "version": "1.12.0", "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.12.0.tgz", "integrity": "sha512-B/dOmuoAik5bKcD6s6nXDCjzUKnaDvdkRyAk6rsmsKLipWj4797iothd7jmmUhWTfinVMU+wc56rYKsit2Qy4w==", - "dev": true, "requires": { "path-parse": "^1.0.6" } @@ -313,26 +273,22 @@ "semver": { "version": "5.7.1", "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", - "dev": true + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==" }, "sprintf-js": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", - "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", - "dev": true + "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=" }, "strip-json-comments": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", - "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=", - "dev": true + "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=" }, "supports-color": { "version": "5.5.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "dev": true, "requires": { "has-flag": "^3.0.0" } @@ -340,14 +296,12 @@ "tslib": { "version": "1.10.0", "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.10.0.tgz", - "integrity": "sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==", - "dev": true + "integrity": "sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==" }, "tslint": { "version": "5.20.0", "resolved": "https://registry.npmjs.org/tslint/-/tslint-5.20.0.tgz", "integrity": "sha512-2vqIvkMHbnx8acMogAERQ/IuINOq6DFqgF8/VDvhEkBqQh/x6SP0Y+OHnKth9/ZcHQSroOZwUQSN18v8KKF0/g==", - "dev": true, "requires": { "@babel/code-frame": "^7.0.0", "builtin-modules": "^1.1.1", @@ -368,7 +322,6 @@ "version": "2.29.0", "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-2.29.0.tgz", "integrity": "sha512-g5JVHCIJwzfISaXpXE1qvNalca5Jwob6FjI4AoPlqMusJ6ftFE7IkkFoMhVLRgK+4Kx3gkzb8UZK5t5yTTvEmA==", - "dev": true, "requires": { "tslib": "^1.8.1" } @@ -376,8 +329,7 @@ "typescript": { "version": "3.7.0-dev.20191015", "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.7.0-dev.20191015.tgz", - "integrity": "sha512-Cpfj1n4pEUVKL+jtS0mkZodJffyMmf3Wk/UjyZMGX4fsjK5KBPJf3NUlyXij8I8p1E2CAomdS5NPFrAR+z8pKw==", - "dev": true + "integrity": "sha512-Cpfj1n4pEUVKL+jtS0mkZodJffyMmf3Wk/UjyZMGX4fsjK5KBPJf3NUlyXij8I8p1E2CAomdS5NPFrAR+z8pKw==" }, "underscore": { "version": "1.9.1", @@ -387,14 +339,12 @@ "universalify": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", - "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", - "dev": true + "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==" }, "wrappy": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", - "dev": true + "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=" } } } diff --git a/packages/web3-core-helpers/types/index.d.ts b/packages/web3-core-helpers/types/index.d.ts index aa31018215a..9a568adb1bf 100644 --- a/packages/web3-core-helpers/types/index.d.ts +++ b/packages/web3-core-helpers/types/index.d.ts @@ -28,14 +28,9 @@ export class formatters { static isPredefinedBlockNumber(blockNumber: string): boolean; - static inputDefaultBlockNumberFormatter( - blockNumber: string, - moduleInstance: any - ): string; + static inputDefaultBlockNumberFormatter(blockNumber: string): string; - static inputBlockNumberFormatter( - blockNumber: string | number - ): string | number; + static inputBlockNumberFormatter(blockNumber: string | number): string | number; static outputBlockFormatter(block: any): any; // TODO: Create Block interface @@ -73,15 +68,6 @@ export class errors { static ConnectionTimeout(ms: string): Error; } -export interface Method { - name: string; - call: string; - params?: number; - inputFormatter?: Array<(() => void) | null>; - outputFormatter?: () => void; - extraFormatters?: any; -} - export class WebsocketProviderBase { constructor(host: string, options?: WebsocketProviderOptions); diff --git a/packages/web3-core-method/package-lock.json b/packages/web3-core-method/package-lock.json index 0fc123f981f..0ad01e74290 100644 --- a/packages/web3-core-method/package-lock.json +++ b/packages/web3-core-method/package-lock.json @@ -1,14 +1,11 @@ { - "name": "web3-core-method", - "version": "1.2.1", - "lockfileVersion": 1, "requires": true, + "lockfileVersion": 1, "dependencies": { "@babel/code-frame": { "version": "7.5.5", "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.5.5.tgz", "integrity": "sha512-27d4lZoomVyo51VegxI20xZPuSHusqbQag/ztrBC7wegWoQ1nLREPVSKSW8byhTlzTKyNE4ifaTA6lCp7JjpFw==", - "dev": true, "requires": { "@babel/highlight": "^7.0.0" } @@ -17,7 +14,6 @@ "version": "7.5.0", "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.5.0.tgz", "integrity": "sha512-7dV4eu9gBxoM0dAnj/BCFDW9LFU0zvTrkq0ugM7pnHEgguOEeOz1so2ZghEdzviYzQEED0r4EAgpsBChKy1TRQ==", - "dev": true, "requires": { "chalk": "^2.0.0", "esutils": "^2.0.2", @@ -27,14 +23,12 @@ "@types/parsimmon": { "version": "1.10.0", "resolved": "https://registry.npmjs.org/@types/parsimmon/-/parsimmon-1.10.0.tgz", - "integrity": "sha512-bsTIJFVQv7jnvNiC42ld2pQW2KRI+pAG243L+iATvqzy3X6+NH1obz2itRKDZZ8VVhN3wjwYax/VBGCcXzgTqQ==", - "dev": true + "integrity": "sha512-bsTIJFVQv7jnvNiC42ld2pQW2KRI+pAG243L+iATvqzy3X6+NH1obz2itRKDZZ8VVhN3wjwYax/VBGCcXzgTqQ==" }, "ansi-styles": { "version": "3.2.1", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, "requires": { "color-convert": "^1.9.0" } @@ -43,7 +37,6 @@ "version": "1.0.10", "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", - "dev": true, "requires": { "sprintf-js": "~1.0.2" } @@ -51,14 +44,12 @@ "balanced-match": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", - "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", - "dev": true + "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=" }, "brace-expansion": { "version": "1.1.11", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "dev": true, "requires": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" @@ -67,14 +58,12 @@ "builtin-modules": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-1.1.1.tgz", - "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=", - "dev": true + "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=" }, "chalk": { "version": "2.4.2", "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", - "dev": true, "requires": { "ansi-styles": "^3.2.1", "escape-string-regexp": "^1.0.5", @@ -85,7 +74,6 @@ "version": "1.9.3", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", - "dev": true, "requires": { "color-name": "1.1.3" } @@ -93,26 +81,22 @@ "color-name": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", - "dev": true + "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=" }, "commander": { "version": "2.20.3", "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", - "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", - "dev": true + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==" }, "concat-map": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", - "dev": true + "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=" }, "definitelytyped-header-parser": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/definitelytyped-header-parser/-/definitelytyped-header-parser-1.2.0.tgz", "integrity": "sha512-xpg8uu/2YD/reaVsZV4oJ4g7UDYFqQGWvT1W9Tsj6q4VtWBSaig38Qgah0ZMnQGF9kAsAim08EXDO1nSi0+Nog==", - "dev": true, "requires": { "@types/parsimmon": "^1.3.0", "parsimmon": "^1.2.0" @@ -121,14 +105,12 @@ "diff": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.1.tgz", - "integrity": "sha512-s2+XdvhPCOF01LRQBC8hf4vhbVmI2CGS5aZnxLJlT5FtdhPCDFq80q++zK2KlrVorVDdL5BOGZ/VfLrVtYNF+Q==", - "dev": true + "integrity": "sha512-s2+XdvhPCOF01LRQBC8hf4vhbVmI2CGS5aZnxLJlT5FtdhPCDFq80q++zK2KlrVorVDdL5BOGZ/VfLrVtYNF+Q==" }, "dtslint": { "version": "0.4.2", "resolved": "https://registry.npmjs.org/dtslint/-/dtslint-0.4.2.tgz", "integrity": "sha512-ph4GXLw3HYzlQMJOFcpCqWHuL3MxJ/344OR7wn0wlQGchQGTIVNsSUl8iKEMatpy2geNMysgA9fQa6xVhHOkTQ==", - "dev": true, "requires": { "definitelytyped-header-parser": "github:Microsoft/definitelytyped-header-parser#production", "fs-extra": "^6.0.1", @@ -140,7 +122,6 @@ "definitelytyped-header-parser": { "version": "github:Microsoft/definitelytyped-header-parser#d957ad0bb2f4ecb60ac04f734e0b38fbc8e70b8a", "from": "github:Microsoft/definitelytyped-header-parser#production", - "dev": true, "requires": { "@types/parsimmon": "^1.3.0", "parsimmon": "^1.2.0" @@ -151,26 +132,22 @@ "escape-string-regexp": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", - "dev": true + "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=" }, "esprima": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", - "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", - "dev": true + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==" }, "esutils": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", - "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", - "dev": true + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==" }, "fs-extra": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-6.0.1.tgz", "integrity": "sha512-GnyIkKhhzXZUWFCaJzvyDLEEgDkPfb4/TPvJCJVuS8MWZgoSsErf++QpiAlDnKFcqhRlm+tIOcencCjyJE6ZCA==", - "dev": true, "requires": { "graceful-fs": "^4.1.2", "jsonfile": "^4.0.0", @@ -180,14 +157,12 @@ "fs.realpath": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", - "dev": true + "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=" }, "glob": { "version": "7.1.4", "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.4.tgz", "integrity": "sha512-hkLPepehmnKk41pUGm3sYxoFs/umurYfYJCerbXEyFIWcAzvpipAgVkBqqT9RBKMGjnq6kMuyYwha6csxbiM1A==", - "dev": true, "requires": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", @@ -200,20 +175,17 @@ "graceful-fs": { "version": "4.2.2", "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.2.tgz", - "integrity": "sha512-IItsdsea19BoLC7ELy13q1iJFNmd7ofZH5+X/pJr90/nRoPEX0DJo1dHDbgtYWOhJhcCgMDTOw84RZ72q6lB+Q==", - "dev": true + "integrity": "sha512-IItsdsea19BoLC7ELy13q1iJFNmd7ofZH5+X/pJr90/nRoPEX0DJo1dHDbgtYWOhJhcCgMDTOw84RZ72q6lB+Q==" }, "has-flag": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", - "dev": true + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=" }, "inflight": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", - "dev": true, "requires": { "once": "^1.3.0", "wrappy": "1" @@ -222,20 +194,17 @@ "inherits": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", - "dev": true + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" }, "js-tokens": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", - "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", - "dev": true + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==" }, "js-yaml": { "version": "3.13.1", "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.13.1.tgz", "integrity": "sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw==", - "dev": true, "requires": { "argparse": "^1.0.7", "esprima": "^4.0.0" @@ -245,7 +214,6 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", "integrity": "sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss=", - "dev": true, "requires": { "graceful-fs": "^4.1.6" } @@ -254,7 +222,6 @@ "version": "3.0.4", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", - "dev": true, "requires": { "brace-expansion": "^1.1.7" } @@ -262,14 +229,12 @@ "minimist": { "version": "0.0.8", "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", - "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=", - "dev": true + "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=" }, "mkdirp": { "version": "0.5.1", "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", - "dev": true, "requires": { "minimist": "0.0.8" } @@ -278,7 +243,6 @@ "version": "1.4.0", "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", - "dev": true, "requires": { "wrappy": "1" } @@ -286,26 +250,22 @@ "parsimmon": { "version": "1.13.0", "resolved": "https://registry.npmjs.org/parsimmon/-/parsimmon-1.13.0.tgz", - "integrity": "sha512-5UIrOCW+gjbILkjKPgTgmq8LKf8TT3Iy7kN2VD7OtQ81facKn8B4gG1X94jWqXYZsxG2KbJhrv/Yq/5H6BQn7A==", - "dev": true + "integrity": "sha512-5UIrOCW+gjbILkjKPgTgmq8LKf8TT3Iy7kN2VD7OtQ81facKn8B4gG1X94jWqXYZsxG2KbJhrv/Yq/5H6BQn7A==" }, "path-is-absolute": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", - "dev": true + "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=" }, "path-parse": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz", - "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==", - "dev": true + "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==" }, "resolve": { "version": "1.12.0", "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.12.0.tgz", "integrity": "sha512-B/dOmuoAik5bKcD6s6nXDCjzUKnaDvdkRyAk6rsmsKLipWj4797iothd7jmmUhWTfinVMU+wc56rYKsit2Qy4w==", - "dev": true, "requires": { "path-parse": "^1.0.6" } @@ -313,26 +273,22 @@ "semver": { "version": "5.7.1", "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", - "dev": true + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==" }, "sprintf-js": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", - "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", - "dev": true + "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=" }, "strip-json-comments": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", - "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=", - "dev": true + "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=" }, "supports-color": { "version": "5.5.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "dev": true, "requires": { "has-flag": "^3.0.0" } @@ -340,14 +296,12 @@ "tslib": { "version": "1.10.0", "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.10.0.tgz", - "integrity": "sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==", - "dev": true + "integrity": "sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==" }, "tslint": { "version": "5.20.0", "resolved": "https://registry.npmjs.org/tslint/-/tslint-5.20.0.tgz", "integrity": "sha512-2vqIvkMHbnx8acMogAERQ/IuINOq6DFqgF8/VDvhEkBqQh/x6SP0Y+OHnKth9/ZcHQSroOZwUQSN18v8KKF0/g==", - "dev": true, "requires": { "@babel/code-frame": "^7.0.0", "builtin-modules": "^1.1.1", @@ -368,7 +322,6 @@ "version": "2.29.0", "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-2.29.0.tgz", "integrity": "sha512-g5JVHCIJwzfISaXpXE1qvNalca5Jwob6FjI4AoPlqMusJ6ftFE7IkkFoMhVLRgK+4Kx3gkzb8UZK5t5yTTvEmA==", - "dev": true, "requires": { "tslib": "^1.8.1" } @@ -376,8 +329,7 @@ "typescript": { "version": "3.7.0-dev.20191015", "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.7.0-dev.20191015.tgz", - "integrity": "sha512-Cpfj1n4pEUVKL+jtS0mkZodJffyMmf3Wk/UjyZMGX4fsjK5KBPJf3NUlyXij8I8p1E2CAomdS5NPFrAR+z8pKw==", - "dev": true + "integrity": "sha512-Cpfj1n4pEUVKL+jtS0mkZodJffyMmf3Wk/UjyZMGX4fsjK5KBPJf3NUlyXij8I8p1E2CAomdS5NPFrAR+z8pKw==" }, "underscore": { "version": "1.9.1", @@ -387,14 +339,12 @@ "universalify": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", - "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", - "dev": true + "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==" }, "wrappy": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", - "dev": true + "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=" } } } diff --git a/packages/web3-core-method/package.json b/packages/web3-core-method/package.json index 46e6ee3605c..90bc0654f8e 100644 --- a/packages/web3-core-method/package.json +++ b/packages/web3-core-method/package.json @@ -9,7 +9,7 @@ }, "types": "types/index.d.ts", "scripts": { - "ignore_dtslint": "dtslint types --onlyTestTsNext" + "dtslint": "dtslint types --onlyTestTsNext" }, "main": "src/index.js", "dependencies": { diff --git a/packages/web3-core-method/types/index.d.ts b/packages/web3-core-method/types/index.d.ts index 8c68dbc0b37..2fbd3fdc937 100644 --- a/packages/web3-core-method/types/index.d.ts +++ b/packages/web3-core-method/types/index.d.ts @@ -17,47 +17,16 @@ * @date 2018 */ -import { formatters } from 'web3-core-helpers'; -import { Utils } from 'web3-utils'; - -export class AbstractMethod { - constructor( - rpcMethod: string, - parametersAmount: number, - utils: Utils, - formatters: formatters, - moduleInstance: any - ); - - utils: Utils; - formatters: formatters; - promiEvent: any; - rpcMethod: string; - parametersAmount: number; - parameters: any[]; - - getArguments(): any; - - setArguments(args: any[]): void; - - isHash(parameter: string): boolean; - - hasWallets(): boolean; - - callback(error: string | Error, response: any): void; - - beforeExecution(moduleInstance: any): void; - - afterExecution(response: any): any; - - execute(): Promise | string; -} - -export class AbstractMethodFactory { - constructor(utils: Utils, formatters: formatters); - - methods: any; - hasMethod: boolean; - - createMethod(name: string, moduleInstance: any): AbstractMethod; +import {JsonRpcPayload} from 'web3-core-helpers'; + +export interface Method { + name: string; + call: string; + params?: number; + inputFormatter?: Array<(() => void) | null>; + outputFormatter?: () => void; + transformPayload?: () => void; + extraFormatters?: any; + defaultBlock?: string; + defaultAccount?: string | null; } diff --git a/packages/web3-core-promievent/package-lock.json b/packages/web3-core-promievent/package-lock.json index 5ccb0948073..61451624d12 100644 --- a/packages/web3-core-promievent/package-lock.json +++ b/packages/web3-core-promievent/package-lock.json @@ -1,8 +1,6 @@ { - "name": "web3-core-promievent", - "version": "1.2.1", - "lockfileVersion": 1, "requires": true, + "lockfileVersion": 1, "dependencies": { "any-promise": { "version": "1.3.0", diff --git a/packages/web3-core-requestmanager/package-lock.json b/packages/web3-core-requestmanager/package-lock.json index 3c66d673aeb..d8f894cdc17 100644 --- a/packages/web3-core-requestmanager/package-lock.json +++ b/packages/web3-core-requestmanager/package-lock.json @@ -1,8 +1,6 @@ { - "name": "web3-core-requestmanager", - "version": "1.2.1", - "lockfileVersion": 1, "requires": true, + "lockfileVersion": 1, "dependencies": { "underscore": { "version": "1.9.1", diff --git a/packages/web3-core-subscriptions/package-lock.json b/packages/web3-core-subscriptions/package-lock.json index 7f79d7a6496..d5b9cd6dbe5 100644 --- a/packages/web3-core-subscriptions/package-lock.json +++ b/packages/web3-core-subscriptions/package-lock.json @@ -1,18 +1,355 @@ { - "name": "web3-core-subscriptions", - "version": "1.2.1", - "lockfileVersion": 1, "requires": true, + "lockfileVersion": 1, "dependencies": { + "@babel/code-frame": { + "version": "7.5.5", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.5.5.tgz", + "integrity": "sha512-27d4lZoomVyo51VegxI20xZPuSHusqbQag/ztrBC7wegWoQ1nLREPVSKSW8byhTlzTKyNE4ifaTA6lCp7JjpFw==", + "requires": { + "@babel/highlight": "^7.0.0" + } + }, + "@babel/highlight": { + "version": "7.5.0", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.5.0.tgz", + "integrity": "sha512-7dV4eu9gBxoM0dAnj/BCFDW9LFU0zvTrkq0ugM7pnHEgguOEeOz1so2ZghEdzviYzQEED0r4EAgpsBChKy1TRQ==", + "requires": { + "chalk": "^2.0.0", + "esutils": "^2.0.2", + "js-tokens": "^4.0.0" + } + }, + "@types/parsimmon": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/@types/parsimmon/-/parsimmon-1.10.0.tgz", + "integrity": "sha512-bsTIJFVQv7jnvNiC42ld2pQW2KRI+pAG243L+iATvqzy3X6+NH1obz2itRKDZZ8VVhN3wjwYax/VBGCcXzgTqQ==" + }, + "ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "requires": { + "color-convert": "^1.9.0" + } + }, + "argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "requires": { + "sprintf-js": "~1.0.2" + } + }, + "balanced-match": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", + "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=" + }, + "brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "requires": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "builtin-modules": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-1.1.1.tgz", + "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=" + }, + "chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "requires": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + } + }, + "color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "requires": { + "color-name": "1.1.3" + } + }, + "color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=" + }, + "commander": { + "version": "2.20.3", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==" + }, + "concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=" + }, + "definitelytyped-header-parser": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/definitelytyped-header-parser/-/definitelytyped-header-parser-1.2.0.tgz", + "integrity": "sha512-xpg8uu/2YD/reaVsZV4oJ4g7UDYFqQGWvT1W9Tsj6q4VtWBSaig38Qgah0ZMnQGF9kAsAim08EXDO1nSi0+Nog==", + "requires": { + "@types/parsimmon": "^1.3.0", + "parsimmon": "^1.2.0" + } + }, + "diff": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.1.tgz", + "integrity": "sha512-s2+XdvhPCOF01LRQBC8hf4vhbVmI2CGS5aZnxLJlT5FtdhPCDFq80q++zK2KlrVorVDdL5BOGZ/VfLrVtYNF+Q==" + }, + "dtslint": { + "version": "0.4.2", + "resolved": "https://registry.npmjs.org/dtslint/-/dtslint-0.4.2.tgz", + "integrity": "sha512-ph4GXLw3HYzlQMJOFcpCqWHuL3MxJ/344OR7wn0wlQGchQGTIVNsSUl8iKEMatpy2geNMysgA9fQa6xVhHOkTQ==", + "requires": { + "definitelytyped-header-parser": "github:Microsoft/definitelytyped-header-parser#production", + "fs-extra": "^6.0.1", + "strip-json-comments": "^2.0.1", + "tslint": "^5.12.0", + "typescript": "^3.7.0-dev.20191016" + }, + "dependencies": { + "definitelytyped-header-parser": { + "version": "github:Microsoft/definitelytyped-header-parser#d957ad0bb2f4ecb60ac04f734e0b38fbc8e70b8a", + "from": "github:Microsoft/definitelytyped-header-parser#production", + "requires": { + "@types/parsimmon": "^1.3.0", + "parsimmon": "^1.2.0" + } + } + } + }, + "escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=" + }, + "esprima": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==" + }, + "esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==" + }, "eventemitter3": { "version": "3.1.2", "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-3.1.2.tgz", "integrity": "sha512-tvtQIeLVHjDkJYnzf2dgVMxfuSGJeM/7UCG17TT4EumTfNtF+0nebF/4zWOIkCreAbtNqhGEboB6BWrwqNaw4Q==" }, + "fs-extra": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-6.0.1.tgz", + "integrity": "sha512-GnyIkKhhzXZUWFCaJzvyDLEEgDkPfb4/TPvJCJVuS8MWZgoSsErf++QpiAlDnKFcqhRlm+tIOcencCjyJE6ZCA==", + "requires": { + "graceful-fs": "^4.1.2", + "jsonfile": "^4.0.0", + "universalify": "^0.1.0" + } + }, + "fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=" + }, + "glob": { + "version": "7.1.4", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.4.tgz", + "integrity": "sha512-hkLPepehmnKk41pUGm3sYxoFs/umurYfYJCerbXEyFIWcAzvpipAgVkBqqT9RBKMGjnq6kMuyYwha6csxbiM1A==", + "requires": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.0.4", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + } + }, + "graceful-fs": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.2.tgz", + "integrity": "sha512-IItsdsea19BoLC7ELy13q1iJFNmd7ofZH5+X/pJr90/nRoPEX0DJo1dHDbgtYWOhJhcCgMDTOw84RZ72q6lB+Q==" + }, + "has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=" + }, + "inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", + "requires": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" + }, + "js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==" + }, + "js-yaml": { + "version": "3.13.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.13.1.tgz", + "integrity": "sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw==", + "requires": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + } + }, + "jsonfile": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", + "integrity": "sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss=", + "requires": { + "graceful-fs": "^4.1.6" + } + }, + "minimatch": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", + "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", + "requires": { + "brace-expansion": "^1.1.7" + } + }, + "minimist": { + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", + "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=" + }, + "mkdirp": { + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", + "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", + "requires": { + "minimist": "0.0.8" + } + }, + "once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", + "requires": { + "wrappy": "1" + } + }, + "parsimmon": { + "version": "1.13.0", + "resolved": "https://registry.npmjs.org/parsimmon/-/parsimmon-1.13.0.tgz", + "integrity": "sha512-5UIrOCW+gjbILkjKPgTgmq8LKf8TT3Iy7kN2VD7OtQ81facKn8B4gG1X94jWqXYZsxG2KbJhrv/Yq/5H6BQn7A==" + }, + "path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=" + }, + "path-parse": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz", + "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==" + }, + "resolve": { + "version": "1.12.0", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.12.0.tgz", + "integrity": "sha512-B/dOmuoAik5bKcD6s6nXDCjzUKnaDvdkRyAk6rsmsKLipWj4797iothd7jmmUhWTfinVMU+wc56rYKsit2Qy4w==", + "requires": { + "path-parse": "^1.0.6" + } + }, + "semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==" + }, + "sprintf-js": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", + "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=" + }, + "strip-json-comments": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", + "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=" + }, + "supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "requires": { + "has-flag": "^3.0.0" + } + }, + "tslib": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.10.0.tgz", + "integrity": "sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==" + }, + "tslint": { + "version": "5.20.0", + "resolved": "https://registry.npmjs.org/tslint/-/tslint-5.20.0.tgz", + "integrity": "sha512-2vqIvkMHbnx8acMogAERQ/IuINOq6DFqgF8/VDvhEkBqQh/x6SP0Y+OHnKth9/ZcHQSroOZwUQSN18v8KKF0/g==", + "requires": { + "@babel/code-frame": "^7.0.0", + "builtin-modules": "^1.1.1", + "chalk": "^2.3.0", + "commander": "^2.12.1", + "diff": "^4.0.1", + "glob": "^7.1.1", + "js-yaml": "^3.13.1", + "minimatch": "^3.0.4", + "mkdirp": "^0.5.1", + "resolve": "^1.3.2", + "semver": "^5.3.0", + "tslib": "^1.8.0", + "tsutils": "^2.29.0" + } + }, + "tsutils": { + "version": "2.29.0", + "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-2.29.0.tgz", + "integrity": "sha512-g5JVHCIJwzfISaXpXE1qvNalca5Jwob6FjI4AoPlqMusJ6ftFE7IkkFoMhVLRgK+4Kx3gkzb8UZK5t5yTTvEmA==", + "requires": { + "tslib": "^1.8.1" + } + }, + "typescript": { + "version": "3.7.0-dev.20191016", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.7.0-dev.20191016.tgz", + "integrity": "sha512-4CUiTF5rEtPaClGD9nWpqPMICdDc54PTyrzwqpivz/h7mkWJs/xhQhOddiA5vx+D8ob9eSRIdueXQkI2oxOmfg==" + }, "underscore": { "version": "1.9.1", "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.9.1.tgz", "integrity": "sha512-5/4etnCkd9c8gwgowi5/om/mYO5ajCaOgdzj/oW+0eQV9WxKBDZw5+ycmKmeaTXjInS/W0BzpGLo2xR2aBwZdg==" + }, + "universalify": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", + "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==" + }, + "wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=" } } } diff --git a/packages/web3-core-subscriptions/package.json b/packages/web3-core-subscriptions/package.json index 552118d2f08..44f356a8946 100644 --- a/packages/web3-core-subscriptions/package.json +++ b/packages/web3-core-subscriptions/package.json @@ -7,10 +7,18 @@ "engines": { "node": ">=8.0.0" }, + "types": "types/index.d.ts", + "scripts": { + "dtslint": "dtslint types --onlyTestTsNext" + }, "main": "src/index.js", "dependencies": { "eventemitter3": "3.1.2", "underscore": "1.9.1", "web3-core-helpers": "1.2.1" + }, + "devDependencies": { + "definitelytyped-header-parser": "^1.0.1", + "dtslint": "0.4.2" } } diff --git a/packages/web3-core-subscriptions/src/subscription.js b/packages/web3-core-subscriptions/src/subscription.js index 330ee446904..8774c3cca9f 100644 --- a/packages/web3-core-subscriptions/src/subscription.js +++ b/packages/web3-core-subscriptions/src/subscription.js @@ -112,7 +112,7 @@ Subscription.prototype._formatInput = function (args) { * Should be called to format output(result) of method * * @method formatOutput - * @param {Object} + * @param result {Object} * @return {Object} */ diff --git a/packages/web3-core-subscriptions/types/index.d.ts b/packages/web3-core-subscriptions/types/index.d.ts new file mode 100644 index 00000000000..39d8135157c --- /dev/null +++ b/packages/web3-core-subscriptions/types/index.d.ts @@ -0,0 +1,78 @@ +/* + This file is part of web3.js. + web3.js is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + web3.js is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + You should have received a copy of the GNU Lesser General Public License + along with web3.js. If not, see . +*/ +/** + * @file index.d.ts + * @author Samuel Furter + * @date 2019 + */ + +export class Subscription { + constructor(options: SubscriptionOptions); + + id: string; + options: SubscriptionOptions; + callback: () => void; + arguments: any; + + subscribe(callback?: (error: Error, result: T) => void): Subscription; + + unsubscribe( + callback?: (error: Error, result: boolean) => void + ): Promise; + + on(type: 'data', handler: (data: T) => void): Subscription; + + on(type: 'changed', handler: (data: T) => void): Subscription; + + on(type: 'error', handler: (data: Error) => void): Subscription; +} + +export class Subscriptions { + constructor(options: SubscriptionsOptions); + + name: string; + type: string; + subscriptions: SubscriptionsModel; + readonly requestManager: any; + + attachToObject(obj: any): void; + + setRequestManager(requestManager: any): void; + + buildCall(): () => any; +} + +export interface SubscriptionOptions { + subscription: string; + type: string; + requestManager: any; +} + +export interface SubscriptionsOptions { + name: string; + type: string; + subscriptions: SubscriptionsModel; +} + +export interface SubscriptionsModel { + [name: string]: SubscriptionModel; +} + +export interface SubscriptionModel { + subscriptionName: string; + params: number; + outputFormatter: () => void; + inputFormatter: Array<() => void>; + subscriptionHandler: () => void; +} diff --git a/packages/web3-core-subscriptions/types/tests/subscriptions.tests.ts b/packages/web3-core-subscriptions/types/tests/subscriptions.tests.ts new file mode 100644 index 00000000000..467ac5f7808 --- /dev/null +++ b/packages/web3-core-subscriptions/types/tests/subscriptions.tests.ts @@ -0,0 +1,85 @@ +/* + This file is part of web3.js. + + web3.js is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + web3.js is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License + along with web3.js. If not, see . +*/ +/** + * @file subscriptions-tests.ts + * @author Samuel Furter + * @date 2019 + */ + +import {Subscriptions, Subscription} from 'web3-core-subscriptions'; + +const subscriptions = new Subscriptions({ + name: '', + type: '', + subscriptions: + { + test: { + subscriptionName: '', + inputFormatter: [() => {}], + outputFormatter: () => {}, + params: 0, + subscriptionHandler: () => {} + } + } +}); + +// $ExpectType string +subscriptions.name; + +// $ExpectType string +subscriptions.type; + +// $ExpectType SubscriptionsModel +subscriptions.subscriptions; + +// $ExpectType void +subscriptions.setRequestManager({}); + +// $ExpectType void +subscriptions.attachToObject({}); + +// $ExpectType () => any +subscriptions.buildCall(); + +const subscription = new Subscription({subscription: '', type: '', requestManager: null}); + +// $ExpectType string +subscription.id; + +// $ExpectType () => void +subscription.callback; + +// $ExpectType any +subscription.arguments; + +// $ExpectType SubscriptionOptions +subscription.options; + +// $ExpectType Subscription +subscription.subscribe(() => {}); + +// $ExpectType Promise +subscription.unsubscribe(() => {}); + +// $ExpectType Subscription +subscription.on('data', () => {}); + +// $ExpectType Subscription +subscription.on('changed', () => {}); + +// $ExpectType Subscription +subscription.on('error', () => {}); diff --git a/packages/web3-core-subscriptions/types/tsconfig.json b/packages/web3-core-subscriptions/types/tsconfig.json new file mode 100644 index 00000000000..4fa0faa5998 --- /dev/null +++ b/packages/web3-core-subscriptions/types/tsconfig.json @@ -0,0 +1,17 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": ["es6"], + "target": "es6", + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "strictFunctionTypes": true, + "noEmit": true, + "allowSyntheticDefaultImports": false, + "baseUrl": ".", + "paths": { + "web3-core-subscriptions": ["."] + } + } +} diff --git a/packages/web3-core-subscriptions/types/tslint.json b/packages/web3-core-subscriptions/types/tslint.json new file mode 100644 index 00000000000..2a4469808b0 --- /dev/null +++ b/packages/web3-core-subscriptions/types/tslint.json @@ -0,0 +1,12 @@ +{ + "extends": "dtslint/dtslint.json", + "rules": { + "semicolon": false, + "no-import-default-of-export-equals": false, + "file-name-casing": [true, "kebab-case"], + "whitespace": false, + "no-unnecessary-class": false, + "unified-signatures": false, + "no-redundant-jsdoc": false + } +} diff --git a/packages/web3-core/package-lock.json b/packages/web3-core/package-lock.json index 52364589f45..2da57d64a24 100644 --- a/packages/web3-core/package-lock.json +++ b/packages/web3-core/package-lock.json @@ -1,14 +1,11 @@ { - "name": "web3-core", - "version": "1.2.1", - "lockfileVersion": 1, "requires": true, + "lockfileVersion": 1, "dependencies": { "@babel/code-frame": { "version": "7.5.5", "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.5.5.tgz", "integrity": "sha512-27d4lZoomVyo51VegxI20xZPuSHusqbQag/ztrBC7wegWoQ1nLREPVSKSW8byhTlzTKyNE4ifaTA6lCp7JjpFw==", - "dev": true, "requires": { "@babel/highlight": "^7.0.0" } @@ -17,7 +14,6 @@ "version": "7.5.0", "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.5.0.tgz", "integrity": "sha512-7dV4eu9gBxoM0dAnj/BCFDW9LFU0zvTrkq0ugM7pnHEgguOEeOz1so2ZghEdzviYzQEED0r4EAgpsBChKy1TRQ==", - "dev": true, "requires": { "chalk": "^2.0.0", "esutils": "^2.0.2", @@ -40,14 +36,12 @@ "@types/parsimmon": { "version": "1.10.0", "resolved": "https://registry.npmjs.org/@types/parsimmon/-/parsimmon-1.10.0.tgz", - "integrity": "sha512-bsTIJFVQv7jnvNiC42ld2pQW2KRI+pAG243L+iATvqzy3X6+NH1obz2itRKDZZ8VVhN3wjwYax/VBGCcXzgTqQ==", - "dev": true + "integrity": "sha512-bsTIJFVQv7jnvNiC42ld2pQW2KRI+pAG243L+iATvqzy3X6+NH1obz2itRKDZZ8VVhN3wjwYax/VBGCcXzgTqQ==" }, "ansi-styles": { "version": "3.2.1", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, "requires": { "color-convert": "^1.9.0" } @@ -56,7 +50,6 @@ "version": "1.0.10", "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", - "dev": true, "requires": { "sprintf-js": "~1.0.2" } @@ -64,14 +57,12 @@ "balanced-match": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", - "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", - "dev": true + "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=" }, "brace-expansion": { "version": "1.1.11", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "dev": true, "requires": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" @@ -80,14 +71,12 @@ "builtin-modules": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-1.1.1.tgz", - "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=", - "dev": true + "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=" }, "chalk": { "version": "2.4.2", "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", - "dev": true, "requires": { "ansi-styles": "^3.2.1", "escape-string-regexp": "^1.0.5", @@ -98,7 +87,6 @@ "version": "1.9.3", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", - "dev": true, "requires": { "color-name": "1.1.3" } @@ -106,26 +94,22 @@ "color-name": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", - "dev": true + "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=" }, "commander": { "version": "2.20.3", "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", - "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", - "dev": true + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==" }, "concat-map": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", - "dev": true + "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=" }, "definitelytyped-header-parser": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/definitelytyped-header-parser/-/definitelytyped-header-parser-1.2.0.tgz", "integrity": "sha512-xpg8uu/2YD/reaVsZV4oJ4g7UDYFqQGWvT1W9Tsj6q4VtWBSaig38Qgah0ZMnQGF9kAsAim08EXDO1nSi0+Nog==", - "dev": true, "requires": { "@types/parsimmon": "^1.3.0", "parsimmon": "^1.2.0" @@ -134,14 +118,12 @@ "diff": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.1.tgz", - "integrity": "sha512-s2+XdvhPCOF01LRQBC8hf4vhbVmI2CGS5aZnxLJlT5FtdhPCDFq80q++zK2KlrVorVDdL5BOGZ/VfLrVtYNF+Q==", - "dev": true + "integrity": "sha512-s2+XdvhPCOF01LRQBC8hf4vhbVmI2CGS5aZnxLJlT5FtdhPCDFq80q++zK2KlrVorVDdL5BOGZ/VfLrVtYNF+Q==" }, "dtslint": { "version": "0.4.2", "resolved": "https://registry.npmjs.org/dtslint/-/dtslint-0.4.2.tgz", "integrity": "sha512-ph4GXLw3HYzlQMJOFcpCqWHuL3MxJ/344OR7wn0wlQGchQGTIVNsSUl8iKEMatpy2geNMysgA9fQa6xVhHOkTQ==", - "dev": true, "requires": { "definitelytyped-header-parser": "github:Microsoft/definitelytyped-header-parser#production", "fs-extra": "^6.0.1", @@ -153,7 +135,6 @@ "definitelytyped-header-parser": { "version": "github:Microsoft/definitelytyped-header-parser#d957ad0bb2f4ecb60ac04f734e0b38fbc8e70b8a", "from": "github:Microsoft/definitelytyped-header-parser#production", - "dev": true, "requires": { "@types/parsimmon": "^1.3.0", "parsimmon": "^1.2.0" @@ -164,26 +145,22 @@ "escape-string-regexp": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", - "dev": true + "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=" }, "esprima": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", - "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", - "dev": true + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==" }, "esutils": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", - "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", - "dev": true + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==" }, "fs-extra": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-6.0.1.tgz", "integrity": "sha512-GnyIkKhhzXZUWFCaJzvyDLEEgDkPfb4/TPvJCJVuS8MWZgoSsErf++QpiAlDnKFcqhRlm+tIOcencCjyJE6ZCA==", - "dev": true, "requires": { "graceful-fs": "^4.1.2", "jsonfile": "^4.0.0", @@ -193,14 +170,12 @@ "fs.realpath": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", - "dev": true + "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=" }, "glob": { "version": "7.1.4", "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.4.tgz", "integrity": "sha512-hkLPepehmnKk41pUGm3sYxoFs/umurYfYJCerbXEyFIWcAzvpipAgVkBqqT9RBKMGjnq6kMuyYwha6csxbiM1A==", - "dev": true, "requires": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", @@ -213,20 +188,17 @@ "graceful-fs": { "version": "4.2.2", "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.2.tgz", - "integrity": "sha512-IItsdsea19BoLC7ELy13q1iJFNmd7ofZH5+X/pJr90/nRoPEX0DJo1dHDbgtYWOhJhcCgMDTOw84RZ72q6lB+Q==", - "dev": true + "integrity": "sha512-IItsdsea19BoLC7ELy13q1iJFNmd7ofZH5+X/pJr90/nRoPEX0DJo1dHDbgtYWOhJhcCgMDTOw84RZ72q6lB+Q==" }, "has-flag": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", - "dev": true + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=" }, "inflight": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", - "dev": true, "requires": { "once": "^1.3.0", "wrappy": "1" @@ -235,20 +207,17 @@ "inherits": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", - "dev": true + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" }, "js-tokens": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", - "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", - "dev": true + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==" }, "js-yaml": { "version": "3.13.1", "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.13.1.tgz", "integrity": "sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw==", - "dev": true, "requires": { "argparse": "^1.0.7", "esprima": "^4.0.0" @@ -258,7 +227,6 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", "integrity": "sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss=", - "dev": true, "requires": { "graceful-fs": "^4.1.6" } @@ -267,7 +235,6 @@ "version": "3.0.4", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", - "dev": true, "requires": { "brace-expansion": "^1.1.7" } @@ -275,14 +242,12 @@ "minimist": { "version": "0.0.8", "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", - "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=", - "dev": true + "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=" }, "mkdirp": { "version": "0.5.1", "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", - "dev": true, "requires": { "minimist": "0.0.8" } @@ -291,7 +256,6 @@ "version": "1.4.0", "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", - "dev": true, "requires": { "wrappy": "1" } @@ -299,26 +263,22 @@ "parsimmon": { "version": "1.13.0", "resolved": "https://registry.npmjs.org/parsimmon/-/parsimmon-1.13.0.tgz", - "integrity": "sha512-5UIrOCW+gjbILkjKPgTgmq8LKf8TT3Iy7kN2VD7OtQ81facKn8B4gG1X94jWqXYZsxG2KbJhrv/Yq/5H6BQn7A==", - "dev": true + "integrity": "sha512-5UIrOCW+gjbILkjKPgTgmq8LKf8TT3Iy7kN2VD7OtQ81facKn8B4gG1X94jWqXYZsxG2KbJhrv/Yq/5H6BQn7A==" }, "path-is-absolute": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", - "dev": true + "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=" }, "path-parse": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz", - "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==", - "dev": true + "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==" }, "resolve": { "version": "1.12.0", "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.12.0.tgz", "integrity": "sha512-B/dOmuoAik5bKcD6s6nXDCjzUKnaDvdkRyAk6rsmsKLipWj4797iothd7jmmUhWTfinVMU+wc56rYKsit2Qy4w==", - "dev": true, "requires": { "path-parse": "^1.0.6" } @@ -326,26 +286,22 @@ "semver": { "version": "5.7.1", "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", - "dev": true + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==" }, "sprintf-js": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", - "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", - "dev": true + "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=" }, "strip-json-comments": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", - "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=", - "dev": true + "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=" }, "supports-color": { "version": "5.5.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "dev": true, "requires": { "has-flag": "^3.0.0" } @@ -353,14 +309,12 @@ "tslib": { "version": "1.10.0", "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.10.0.tgz", - "integrity": "sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==", - "dev": true + "integrity": "sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==" }, "tslint": { "version": "5.20.0", "resolved": "https://registry.npmjs.org/tslint/-/tslint-5.20.0.tgz", "integrity": "sha512-2vqIvkMHbnx8acMogAERQ/IuINOq6DFqgF8/VDvhEkBqQh/x6SP0Y+OHnKth9/ZcHQSroOZwUQSN18v8KKF0/g==", - "dev": true, "requires": { "@babel/code-frame": "^7.0.0", "builtin-modules": "^1.1.1", @@ -381,7 +335,6 @@ "version": "2.29.0", "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-2.29.0.tgz", "integrity": "sha512-g5JVHCIJwzfISaXpXE1qvNalca5Jwob6FjI4AoPlqMusJ6ftFE7IkkFoMhVLRgK+4Kx3gkzb8UZK5t5yTTvEmA==", - "dev": true, "requires": { "tslib": "^1.8.1" } @@ -389,20 +342,17 @@ "typescript": { "version": "3.7.0-dev.20191015", "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.7.0-dev.20191015.tgz", - "integrity": "sha512-Cpfj1n4pEUVKL+jtS0mkZodJffyMmf3Wk/UjyZMGX4fsjK5KBPJf3NUlyXij8I8p1E2CAomdS5NPFrAR+z8pKw==", - "dev": true + "integrity": "sha512-Cpfj1n4pEUVKL+jtS0mkZodJffyMmf3Wk/UjyZMGX4fsjK5KBPJf3NUlyXij8I8p1E2CAomdS5NPFrAR+z8pKw==" }, "universalify": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", - "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", - "dev": true + "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==" }, "wrappy": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", - "dev": true + "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=" } } } diff --git a/packages/web3-core/types/index.d.ts b/packages/web3-core/types/index.d.ts index 01343aff77c..93a98cd183a 100644 --- a/packages/web3-core/types/index.d.ts +++ b/packages/web3-core/types/index.d.ts @@ -23,10 +23,10 @@ import { HttpProviderBase, HttpProviderOptions, IpcProviderBase, - Method, WebsocketProviderBase, WebsocketProviderOptions } from 'web3-core-helpers'; +import { Method } from 'web3-core-method'; import BN = require('bn.js'); export interface SignedTransaction { @@ -38,6 +38,11 @@ export interface SignedTransaction { transactionHash?: string; } +export interface Extension { + property?: string, + methods: Method[] +} + export interface Providers { HttpProvider: new ( host: string, @@ -164,7 +169,7 @@ export interface EventLog { transactionHash: string; blockHash: string; blockNumber: number; - raw?: { data: string; topics: any[] }; + raw?: {data: string; topics: any[]}; } export interface Log { @@ -178,56 +183,20 @@ export interface Log { blockNumber: number; } -export interface TxPoolContent { - pending: TxPool; - queued: TxPool; -} - -export interface TxPoolInspect { - pending: TxPool; - queued: TxPool; -} - -export interface TxPool { - [address: string]: { - [nonce: number]: string[] | Transaction[]; - }; -} - -export interface TxPoolStatus { - pending: number; - queued: number; -} - -export interface NodeInfo { - enode: string; - id: string; - ip: string; - listenAddr: string; - name: string; - ports: { - discovery: string | number; - listener: string | number; - }; - protocols: any; // Any because it's not documented what each protocol (eth, shh etc.) is defining here -} - -export interface PeerInfo { - caps: string[]; - id: string; - name: string; - network: { - localAddress: string; - remoteAddress: string; - }; - protocols: any; // Any because it's not documented what each protocol (eth, shh etc.) is defining here -} - // had to move `web3-net` due to other modules in `1.x` not referencing export class NetworkBase { constructor(provider: provider, net?: net.Socket | null); + readonly givenProvider: any; + readonly currentProvider: provider; + BatchRequest: new () => BatchRequest; + static readonly providers: Providers; + + setProvider(provider: provider): boolean; + + extend(extension: Extension): any; + getNetworkType( callback?: (error: Error, returnValue: string) => void ): Promise; @@ -248,6 +217,15 @@ export class NetworkBase { export class AccountsBase { constructor(provider: provider, net?: net.Socket | null); + readonly givenProvider: any; + readonly currentProvider: provider; + BatchRequest: new () => BatchRequest; + static readonly providers: Providers; + + setProvider(provider: provider): boolean; + + extend(extension: Extension): any; + create(entropy?: string): Account; privateKeyToAccount(privateKey: string): Account; @@ -284,7 +262,6 @@ export class AccountsBase { export class WalletBase { constructor(accounts: AccountsBase); - accountsIndex: number; length: number; defaultKeyName: string; @@ -336,7 +313,7 @@ export interface EncryptedKeystoreV3Json { address: string; crypto: { ciphertext: string; - cipherparams: { iv: string }; + cipherparams: {iv: string}; cipher: string; kdf: string; kdfparams: { diff --git a/packages/web3-eth-abi/package-lock.json b/packages/web3-eth-abi/package-lock.json index c71a08137d8..46eb6e58444 100644 --- a/packages/web3-eth-abi/package-lock.json +++ b/packages/web3-eth-abi/package-lock.json @@ -1,14 +1,11 @@ { - "name": "web3-eth-abi", - "version": "1.2.1", - "lockfileVersion": 1, "requires": true, + "lockfileVersion": 1, "dependencies": { "@babel/code-frame": { "version": "7.5.5", "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.5.5.tgz", "integrity": "sha512-27d4lZoomVyo51VegxI20xZPuSHusqbQag/ztrBC7wegWoQ1nLREPVSKSW8byhTlzTKyNE4ifaTA6lCp7JjpFw==", - "dev": true, "requires": { "@babel/highlight": "^7.0.0" } @@ -17,7 +14,6 @@ "version": "7.5.0", "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.5.0.tgz", "integrity": "sha512-7dV4eu9gBxoM0dAnj/BCFDW9LFU0zvTrkq0ugM7pnHEgguOEeOz1so2ZghEdzviYzQEED0r4EAgpsBChKy1TRQ==", - "dev": true, "requires": { "chalk": "^2.0.0", "esutils": "^2.0.2", @@ -32,8 +28,7 @@ "@types/parsimmon": { "version": "1.10.0", "resolved": "https://registry.npmjs.org/@types/parsimmon/-/parsimmon-1.10.0.tgz", - "integrity": "sha512-bsTIJFVQv7jnvNiC42ld2pQW2KRI+pAG243L+iATvqzy3X6+NH1obz2itRKDZZ8VVhN3wjwYax/VBGCcXzgTqQ==", - "dev": true + "integrity": "sha512-bsTIJFVQv7jnvNiC42ld2pQW2KRI+pAG243L+iATvqzy3X6+NH1obz2itRKDZZ8VVhN3wjwYax/VBGCcXzgTqQ==" }, "aes-js": { "version": "3.0.0", @@ -44,7 +39,6 @@ "version": "3.2.1", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, "requires": { "color-convert": "^1.9.0" } @@ -53,7 +47,6 @@ "version": "1.0.10", "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", - "dev": true, "requires": { "sprintf-js": "~1.0.2" } @@ -61,8 +54,7 @@ "balanced-match": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", - "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", - "dev": true + "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=" }, "bn.js": { "version": "4.11.8", @@ -73,7 +65,6 @@ "version": "1.1.11", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "dev": true, "requires": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" @@ -87,14 +78,12 @@ "builtin-modules": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-1.1.1.tgz", - "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=", - "dev": true + "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=" }, "chalk": { "version": "2.4.2", "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", - "dev": true, "requires": { "ansi-styles": "^3.2.1", "escape-string-regexp": "^1.0.5", @@ -105,7 +94,6 @@ "version": "1.9.3", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", - "dev": true, "requires": { "color-name": "1.1.3" } @@ -113,26 +101,22 @@ "color-name": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", - "dev": true + "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=" }, "commander": { "version": "2.20.3", "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", - "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", - "dev": true + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==" }, "concat-map": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", - "dev": true + "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=" }, "definitelytyped-header-parser": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/definitelytyped-header-parser/-/definitelytyped-header-parser-1.2.0.tgz", "integrity": "sha512-xpg8uu/2YD/reaVsZV4oJ4g7UDYFqQGWvT1W9Tsj6q4VtWBSaig38Qgah0ZMnQGF9kAsAim08EXDO1nSi0+Nog==", - "dev": true, "requires": { "@types/parsimmon": "^1.3.0", "parsimmon": "^1.2.0" @@ -141,14 +125,12 @@ "diff": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.1.tgz", - "integrity": "sha512-s2+XdvhPCOF01LRQBC8hf4vhbVmI2CGS5aZnxLJlT5FtdhPCDFq80q++zK2KlrVorVDdL5BOGZ/VfLrVtYNF+Q==", - "dev": true + "integrity": "sha512-s2+XdvhPCOF01LRQBC8hf4vhbVmI2CGS5aZnxLJlT5FtdhPCDFq80q++zK2KlrVorVDdL5BOGZ/VfLrVtYNF+Q==" }, "dtslint": { "version": "0.4.2", "resolved": "https://registry.npmjs.org/dtslint/-/dtslint-0.4.2.tgz", "integrity": "sha512-ph4GXLw3HYzlQMJOFcpCqWHuL3MxJ/344OR7wn0wlQGchQGTIVNsSUl8iKEMatpy2geNMysgA9fQa6xVhHOkTQ==", - "dev": true, "requires": { "definitelytyped-header-parser": "github:Microsoft/definitelytyped-header-parser#production", "fs-extra": "^6.0.1", @@ -160,7 +142,6 @@ "definitelytyped-header-parser": { "version": "github:Microsoft/definitelytyped-header-parser#d957ad0bb2f4ecb60ac04f734e0b38fbc8e70b8a", "from": "github:Microsoft/definitelytyped-header-parser#production", - "dev": true, "requires": { "@types/parsimmon": "^1.3.0", "parsimmon": "^1.2.0" @@ -182,20 +163,17 @@ "escape-string-regexp": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", - "dev": true + "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=" }, "esprima": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", - "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", - "dev": true + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==" }, "esutils": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", - "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", - "dev": true + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==" }, "ethers": { "version": "4.0.0-beta.3", @@ -218,7 +196,6 @@ "version": "6.0.1", "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-6.0.1.tgz", "integrity": "sha512-GnyIkKhhzXZUWFCaJzvyDLEEgDkPfb4/TPvJCJVuS8MWZgoSsErf++QpiAlDnKFcqhRlm+tIOcencCjyJE6ZCA==", - "dev": true, "requires": { "graceful-fs": "^4.1.2", "jsonfile": "^4.0.0", @@ -228,14 +205,12 @@ "fs.realpath": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", - "dev": true + "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=" }, "glob": { "version": "7.1.4", "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.4.tgz", "integrity": "sha512-hkLPepehmnKk41pUGm3sYxoFs/umurYfYJCerbXEyFIWcAzvpipAgVkBqqT9RBKMGjnq6kMuyYwha6csxbiM1A==", - "dev": true, "requires": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", @@ -248,14 +223,12 @@ "graceful-fs": { "version": "4.2.2", "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.2.tgz", - "integrity": "sha512-IItsdsea19BoLC7ELy13q1iJFNmd7ofZH5+X/pJr90/nRoPEX0DJo1dHDbgtYWOhJhcCgMDTOw84RZ72q6lB+Q==", - "dev": true + "integrity": "sha512-IItsdsea19BoLC7ELy13q1iJFNmd7ofZH5+X/pJr90/nRoPEX0DJo1dHDbgtYWOhJhcCgMDTOw84RZ72q6lB+Q==" }, "has-flag": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", - "dev": true + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=" }, "hash.js": { "version": "1.1.3", @@ -270,7 +243,6 @@ "version": "1.0.6", "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", - "dev": true, "requires": { "once": "^1.3.0", "wrappy": "1" @@ -289,14 +261,12 @@ "js-tokens": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", - "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", - "dev": true + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==" }, "js-yaml": { "version": "3.13.1", "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.13.1.tgz", "integrity": "sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw==", - "dev": true, "requires": { "argparse": "^1.0.7", "esprima": "^4.0.0" @@ -306,7 +276,6 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", "integrity": "sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss=", - "dev": true, "requires": { "graceful-fs": "^4.1.6" } @@ -320,7 +289,6 @@ "version": "3.0.4", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", - "dev": true, "requires": { "brace-expansion": "^1.1.7" } @@ -328,14 +296,12 @@ "minimist": { "version": "0.0.8", "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", - "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=", - "dev": true + "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=" }, "mkdirp": { "version": "0.5.1", "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", - "dev": true, "requires": { "minimist": "0.0.8" } @@ -344,7 +310,6 @@ "version": "1.4.0", "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", - "dev": true, "requires": { "wrappy": "1" } @@ -352,26 +317,22 @@ "parsimmon": { "version": "1.13.0", "resolved": "https://registry.npmjs.org/parsimmon/-/parsimmon-1.13.0.tgz", - "integrity": "sha512-5UIrOCW+gjbILkjKPgTgmq8LKf8TT3Iy7kN2VD7OtQ81facKn8B4gG1X94jWqXYZsxG2KbJhrv/Yq/5H6BQn7A==", - "dev": true + "integrity": "sha512-5UIrOCW+gjbILkjKPgTgmq8LKf8TT3Iy7kN2VD7OtQ81facKn8B4gG1X94jWqXYZsxG2KbJhrv/Yq/5H6BQn7A==" }, "path-is-absolute": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", - "dev": true + "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=" }, "path-parse": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz", - "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==", - "dev": true + "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==" }, "resolve": { "version": "1.12.0", "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.12.0.tgz", "integrity": "sha512-B/dOmuoAik5bKcD6s6nXDCjzUKnaDvdkRyAk6rsmsKLipWj4797iothd7jmmUhWTfinVMU+wc56rYKsit2Qy4w==", - "dev": true, "requires": { "path-parse": "^1.0.6" } @@ -384,8 +345,7 @@ "semver": { "version": "5.7.1", "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", - "dev": true + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==" }, "setimmediate": { "version": "1.0.4", @@ -395,20 +355,17 @@ "sprintf-js": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", - "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", - "dev": true + "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=" }, "strip-json-comments": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", - "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=", - "dev": true + "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=" }, "supports-color": { "version": "5.5.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "dev": true, "requires": { "has-flag": "^3.0.0" } @@ -416,14 +373,12 @@ "tslib": { "version": "1.10.0", "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.10.0.tgz", - "integrity": "sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==", - "dev": true + "integrity": "sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==" }, "tslint": { "version": "5.20.0", "resolved": "https://registry.npmjs.org/tslint/-/tslint-5.20.0.tgz", "integrity": "sha512-2vqIvkMHbnx8acMogAERQ/IuINOq6DFqgF8/VDvhEkBqQh/x6SP0Y+OHnKth9/ZcHQSroOZwUQSN18v8KKF0/g==", - "dev": true, "requires": { "@babel/code-frame": "^7.0.0", "builtin-modules": "^1.1.1", @@ -444,7 +399,6 @@ "version": "2.29.0", "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-2.29.0.tgz", "integrity": "sha512-g5JVHCIJwzfISaXpXE1qvNalca5Jwob6FjI4AoPlqMusJ6ftFE7IkkFoMhVLRgK+4Kx3gkzb8UZK5t5yTTvEmA==", - "dev": true, "requires": { "tslib": "^1.8.1" } @@ -452,8 +406,7 @@ "typescript": { "version": "3.7.0-dev.20191015", "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.7.0-dev.20191015.tgz", - "integrity": "sha512-Cpfj1n4pEUVKL+jtS0mkZodJffyMmf3Wk/UjyZMGX4fsjK5KBPJf3NUlyXij8I8p1E2CAomdS5NPFrAR+z8pKw==", - "dev": true + "integrity": "sha512-Cpfj1n4pEUVKL+jtS0mkZodJffyMmf3Wk/UjyZMGX4fsjK5KBPJf3NUlyXij8I8p1E2CAomdS5NPFrAR+z8pKw==" }, "underscore": { "version": "1.9.1", @@ -463,8 +416,7 @@ "universalify": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", - "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", - "dev": true + "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==" }, "uuid": { "version": "2.0.1", @@ -474,8 +426,7 @@ "wrappy": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", - "dev": true + "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=" }, "xmlhttprequest": { "version": "1.8.0", diff --git a/packages/web3-eth-accounts/package-lock.json b/packages/web3-eth-accounts/package-lock.json index 1e4741fb9e1..0221d7b9c19 100644 --- a/packages/web3-eth-accounts/package-lock.json +++ b/packages/web3-eth-accounts/package-lock.json @@ -1,14 +1,11 @@ { - "name": "web3-eth-accounts", - "version": "1.2.1", - "lockfileVersion": 1, "requires": true, + "lockfileVersion": 1, "dependencies": { "@babel/code-frame": { "version": "7.5.5", "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.5.5.tgz", "integrity": "sha512-27d4lZoomVyo51VegxI20xZPuSHusqbQag/ztrBC7wegWoQ1nLREPVSKSW8byhTlzTKyNE4ifaTA6lCp7JjpFw==", - "dev": true, "requires": { "@babel/highlight": "^7.0.0" } @@ -17,7 +14,6 @@ "version": "7.5.0", "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.5.0.tgz", "integrity": "sha512-7dV4eu9gBxoM0dAnj/BCFDW9LFU0zvTrkq0ugM7pnHEgguOEeOz1so2ZghEdzviYzQEED0r4EAgpsBChKy1TRQ==", - "dev": true, "requires": { "chalk": "^2.0.0", "esutils": "^2.0.2", @@ -27,14 +23,12 @@ "@types/parsimmon": { "version": "1.10.0", "resolved": "https://registry.npmjs.org/@types/parsimmon/-/parsimmon-1.10.0.tgz", - "integrity": "sha512-bsTIJFVQv7jnvNiC42ld2pQW2KRI+pAG243L+iATvqzy3X6+NH1obz2itRKDZZ8VVhN3wjwYax/VBGCcXzgTqQ==", - "dev": true + "integrity": "sha512-bsTIJFVQv7jnvNiC42ld2pQW2KRI+pAG243L+iATvqzy3X6+NH1obz2itRKDZZ8VVhN3wjwYax/VBGCcXzgTqQ==" }, "ansi-styles": { "version": "3.2.1", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, "requires": { "color-convert": "^1.9.0" } @@ -48,7 +42,6 @@ "version": "1.0.10", "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", - "dev": true, "requires": { "sprintf-js": "~1.0.2" } @@ -66,8 +59,7 @@ "balanced-match": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", - "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", - "dev": true + "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=" }, "bindings": { "version": "1.5.0", @@ -94,7 +86,6 @@ "version": "1.1.11", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "dev": true, "requires": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" @@ -175,14 +166,12 @@ "builtin-modules": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-1.1.1.tgz", - "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=", - "dev": true + "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=" }, "chalk": { "version": "2.4.2", "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", - "dev": true, "requires": { "ansi-styles": "^3.2.1", "escape-string-regexp": "^1.0.5", @@ -202,7 +191,6 @@ "version": "1.9.3", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", - "dev": true, "requires": { "color-name": "1.1.3" } @@ -210,20 +198,17 @@ "color-name": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", - "dev": true + "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=" }, "commander": { "version": "2.20.3", "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", - "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", - "dev": true + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==" }, "concat-map": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", - "dev": true + "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=" }, "create-ecdh": { "version": "4.0.3", @@ -302,7 +287,6 @@ "version": "1.2.0", "resolved": "https://registry.npmjs.org/definitelytyped-header-parser/-/definitelytyped-header-parser-1.2.0.tgz", "integrity": "sha512-xpg8uu/2YD/reaVsZV4oJ4g7UDYFqQGWvT1W9Tsj6q4VtWBSaig38Qgah0ZMnQGF9kAsAim08EXDO1nSi0+Nog==", - "dev": true, "requires": { "@types/parsimmon": "^1.3.0", "parsimmon": "^1.2.0" @@ -320,8 +304,7 @@ "diff": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.1.tgz", - "integrity": "sha512-s2+XdvhPCOF01LRQBC8hf4vhbVmI2CGS5aZnxLJlT5FtdhPCDFq80q++zK2KlrVorVDdL5BOGZ/VfLrVtYNF+Q==", - "dev": true + "integrity": "sha512-s2+XdvhPCOF01LRQBC8hf4vhbVmI2CGS5aZnxLJlT5FtdhPCDFq80q++zK2KlrVorVDdL5BOGZ/VfLrVtYNF+Q==" }, "diffie-hellman": { "version": "5.0.3", @@ -352,7 +335,6 @@ "version": "0.4.2", "resolved": "https://registry.npmjs.org/dtslint/-/dtslint-0.4.2.tgz", "integrity": "sha512-ph4GXLw3HYzlQMJOFcpCqWHuL3MxJ/344OR7wn0wlQGchQGTIVNsSUl8iKEMatpy2geNMysgA9fQa6xVhHOkTQ==", - "dev": true, "requires": { "definitelytyped-header-parser": "github:Microsoft/definitelytyped-header-parser#production", "fs-extra": "^6.0.1", @@ -364,7 +346,6 @@ "definitelytyped-header-parser": { "version": "github:Microsoft/definitelytyped-header-parser#d957ad0bb2f4ecb60ac04f734e0b38fbc8e70b8a", "from": "github:Microsoft/definitelytyped-header-parser#production", - "dev": true, "requires": { "@types/parsimmon": "^1.3.0", "parsimmon": "^1.2.0" @@ -412,20 +393,17 @@ "escape-string-regexp": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", - "dev": true + "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=" }, "esprima": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", - "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", - "dev": true + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==" }, "esutils": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", - "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", - "dev": true + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==" }, "eth-lib": { "version": "0.2.7", @@ -500,7 +478,6 @@ "version": "6.0.1", "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-6.0.1.tgz", "integrity": "sha512-GnyIkKhhzXZUWFCaJzvyDLEEgDkPfb4/TPvJCJVuS8MWZgoSsErf++QpiAlDnKFcqhRlm+tIOcencCjyJE6ZCA==", - "dev": true, "requires": { "graceful-fs": "^4.1.2", "jsonfile": "^4.0.0", @@ -510,8 +487,7 @@ "fs.realpath": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", - "dev": true + "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=" }, "function-bind": { "version": "1.1.1", @@ -522,7 +498,6 @@ "version": "7.1.4", "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.4.tgz", "integrity": "sha512-hkLPepehmnKk41pUGm3sYxoFs/umurYfYJCerbXEyFIWcAzvpipAgVkBqqT9RBKMGjnq6kMuyYwha6csxbiM1A==", - "dev": true, "requires": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", @@ -544,8 +519,7 @@ "graceful-fs": { "version": "4.2.2", "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.2.tgz", - "integrity": "sha512-IItsdsea19BoLC7ELy13q1iJFNmd7ofZH5+X/pJr90/nRoPEX0DJo1dHDbgtYWOhJhcCgMDTOw84RZ72q6lB+Q==", - "dev": true + "integrity": "sha512-IItsdsea19BoLC7ELy13q1iJFNmd7ofZH5+X/pJr90/nRoPEX0DJo1dHDbgtYWOhJhcCgMDTOw84RZ72q6lB+Q==" }, "has": { "version": "1.0.3", @@ -558,8 +532,7 @@ "has-flag": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", - "dev": true + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=" }, "has-symbols": { "version": "1.0.0", @@ -598,7 +571,6 @@ "version": "1.0.6", "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", - "dev": true, "requires": { "once": "^1.3.0", "wrappy": "1" @@ -648,14 +620,12 @@ "js-tokens": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", - "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", - "dev": true + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==" }, "js-yaml": { "version": "3.13.1", "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.13.1.tgz", "integrity": "sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw==", - "dev": true, "requires": { "argparse": "^1.0.7", "esprima": "^4.0.0" @@ -665,7 +635,6 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", "integrity": "sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss=", - "dev": true, "requires": { "graceful-fs": "^4.1.6" } @@ -727,7 +696,6 @@ "version": "3.0.4", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", - "dev": true, "requires": { "brace-expansion": "^1.1.7" } @@ -735,14 +703,12 @@ "minimist": { "version": "0.0.8", "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", - "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=", - "dev": true + "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=" }, "mkdirp": { "version": "0.5.1", "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", - "dev": true, "requires": { "minimist": "0.0.8" } @@ -794,20 +760,17 @@ "parsimmon": { "version": "1.13.0", "resolved": "https://registry.npmjs.org/parsimmon/-/parsimmon-1.13.0.tgz", - "integrity": "sha512-5UIrOCW+gjbILkjKPgTgmq8LKf8TT3Iy7kN2VD7OtQ81facKn8B4gG1X94jWqXYZsxG2KbJhrv/Yq/5H6BQn7A==", - "dev": true + "integrity": "sha512-5UIrOCW+gjbILkjKPgTgmq8LKf8TT3Iy7kN2VD7OtQ81facKn8B4gG1X94jWqXYZsxG2KbJhrv/Yq/5H6BQn7A==" }, "path-is-absolute": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", - "dev": true + "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=" }, "path-parse": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz", - "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==", - "dev": true + "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==" }, "pbkdf2": { "version": "3.0.17", @@ -870,7 +833,6 @@ "version": "1.12.0", "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.12.0.tgz", "integrity": "sha512-B/dOmuoAik5bKcD6s6nXDCjzUKnaDvdkRyAk6rsmsKLipWj4797iothd7jmmUhWTfinVMU+wc56rYKsit2Qy4w==", - "dev": true, "requires": { "path-parse": "^1.0.6" } @@ -936,8 +898,7 @@ "semver": { "version": "5.7.1", "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", - "dev": true + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==" }, "sha.js": { "version": "2.4.11", @@ -966,8 +927,7 @@ "sprintf-js": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", - "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", - "dev": true + "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=" }, "strict-uri-encode": { "version": "1.1.0", @@ -995,14 +955,12 @@ "strip-json-comments": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", - "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=", - "dev": true + "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=" }, "supports-color": { "version": "5.5.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "dev": true, "requires": { "has-flag": "^3.0.0" } @@ -1015,14 +973,12 @@ "tslib": { "version": "1.10.0", "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.10.0.tgz", - "integrity": "sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==", - "dev": true + "integrity": "sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==" }, "tslint": { "version": "5.20.0", "resolved": "https://registry.npmjs.org/tslint/-/tslint-5.20.0.tgz", "integrity": "sha512-2vqIvkMHbnx8acMogAERQ/IuINOq6DFqgF8/VDvhEkBqQh/x6SP0Y+OHnKth9/ZcHQSroOZwUQSN18v8KKF0/g==", - "dev": true, "requires": { "@babel/code-frame": "^7.0.0", "builtin-modules": "^1.1.1", @@ -1043,7 +999,6 @@ "version": "2.29.0", "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-2.29.0.tgz", "integrity": "sha512-g5JVHCIJwzfISaXpXE1qvNalca5Jwob6FjI4AoPlqMusJ6ftFE7IkkFoMhVLRgK+4Kx3gkzb8UZK5t5yTTvEmA==", - "dev": true, "requires": { "tslib": "^1.8.1" } @@ -1051,8 +1006,7 @@ "typescript": { "version": "3.7.0-dev.20191015", "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.7.0-dev.20191015.tgz", - "integrity": "sha512-Cpfj1n4pEUVKL+jtS0mkZodJffyMmf3Wk/UjyZMGX4fsjK5KBPJf3NUlyXij8I8p1E2CAomdS5NPFrAR+z8pKw==", - "dev": true + "integrity": "sha512-Cpfj1n4pEUVKL+jtS0mkZodJffyMmf3Wk/UjyZMGX4fsjK5KBPJf3NUlyXij8I8p1E2CAomdS5NPFrAR+z8pKw==" }, "underscore": { "version": "1.9.1", @@ -1062,8 +1016,7 @@ "universalify": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", - "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", - "dev": true + "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==" }, "url-set-query": { "version": "1.0.0", diff --git a/packages/web3-eth-accounts/types/tests/accounts-tests.ts b/packages/web3-eth-accounts/types/tests/accounts-tests.ts index 88c8cda8bb4..51bfea5fd4d 100644 --- a/packages/web3-eth-accounts/types/tests/accounts-tests.ts +++ b/packages/web3-eth-accounts/types/tests/accounts-tests.ts @@ -20,6 +20,21 @@ import { Accounts } from 'web3-eth-accounts'; const accounts = new Accounts('http://localhost:8545'); +// $ExpectType provider +accounts.currentProvider; + +// $ExpectType any +accounts.givenProvider; + +// $ExpectType boolean +accounts.setProvider('https://localhost:2100'); + +// $ExpectType any +accounts.extend({property: 'test', methods: [{name: 'method', call: 'method'}]}); + +// $ExpectType BatchRequest +new accounts.BatchRequest(); + // $ExpectType Account accounts.create(); // $ExpectType Account diff --git a/packages/web3-eth-contract/package-lock.json b/packages/web3-eth-contract/package-lock.json index e5103e3e17f..caad0f00c6b 100644 --- a/packages/web3-eth-contract/package-lock.json +++ b/packages/web3-eth-contract/package-lock.json @@ -1,14 +1,11 @@ { - "name": "web3-eth-contract", - "version": "1.2.1", - "lockfileVersion": 1, "requires": true, + "lockfileVersion": 1, "dependencies": { "@babel/code-frame": { "version": "7.5.5", "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.5.5.tgz", "integrity": "sha512-27d4lZoomVyo51VegxI20xZPuSHusqbQag/ztrBC7wegWoQ1nLREPVSKSW8byhTlzTKyNE4ifaTA6lCp7JjpFw==", - "dev": true, "requires": { "@babel/highlight": "^7.0.0" } @@ -17,7 +14,6 @@ "version": "7.5.0", "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.5.0.tgz", "integrity": "sha512-7dV4eu9gBxoM0dAnj/BCFDW9LFU0zvTrkq0ugM7pnHEgguOEeOz1so2ZghEdzviYzQEED0r4EAgpsBChKy1TRQ==", - "dev": true, "requires": { "chalk": "^2.0.0", "esutils": "^2.0.2", @@ -40,14 +36,12 @@ "@types/parsimmon": { "version": "1.10.0", "resolved": "https://registry.npmjs.org/@types/parsimmon/-/parsimmon-1.10.0.tgz", - "integrity": "sha512-bsTIJFVQv7jnvNiC42ld2pQW2KRI+pAG243L+iATvqzy3X6+NH1obz2itRKDZZ8VVhN3wjwYax/VBGCcXzgTqQ==", - "dev": true + "integrity": "sha512-bsTIJFVQv7jnvNiC42ld2pQW2KRI+pAG243L+iATvqzy3X6+NH1obz2itRKDZZ8VVhN3wjwYax/VBGCcXzgTqQ==" }, "ansi-styles": { "version": "3.2.1", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, "requires": { "color-convert": "^1.9.0" } @@ -56,7 +50,6 @@ "version": "1.0.10", "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", - "dev": true, "requires": { "sprintf-js": "~1.0.2" } @@ -64,14 +57,12 @@ "balanced-match": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", - "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", - "dev": true + "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=" }, "brace-expansion": { "version": "1.1.11", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "dev": true, "requires": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" @@ -80,14 +71,12 @@ "builtin-modules": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-1.1.1.tgz", - "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=", - "dev": true + "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=" }, "chalk": { "version": "2.4.2", "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", - "dev": true, "requires": { "ansi-styles": "^3.2.1", "escape-string-regexp": "^1.0.5", @@ -98,7 +87,6 @@ "version": "1.9.3", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", - "dev": true, "requires": { "color-name": "1.1.3" } @@ -106,26 +94,22 @@ "color-name": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", - "dev": true + "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=" }, "commander": { "version": "2.20.3", "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", - "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", - "dev": true + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==" }, "concat-map": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", - "dev": true + "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=" }, "definitelytyped-header-parser": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/definitelytyped-header-parser/-/definitelytyped-header-parser-1.2.0.tgz", "integrity": "sha512-xpg8uu/2YD/reaVsZV4oJ4g7UDYFqQGWvT1W9Tsj6q4VtWBSaig38Qgah0ZMnQGF9kAsAim08EXDO1nSi0+Nog==", - "dev": true, "requires": { "@types/parsimmon": "^1.3.0", "parsimmon": "^1.2.0" @@ -134,14 +118,12 @@ "diff": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.1.tgz", - "integrity": "sha512-s2+XdvhPCOF01LRQBC8hf4vhbVmI2CGS5aZnxLJlT5FtdhPCDFq80q++zK2KlrVorVDdL5BOGZ/VfLrVtYNF+Q==", - "dev": true + "integrity": "sha512-s2+XdvhPCOF01LRQBC8hf4vhbVmI2CGS5aZnxLJlT5FtdhPCDFq80q++zK2KlrVorVDdL5BOGZ/VfLrVtYNF+Q==" }, "dtslint": { "version": "0.4.2", "resolved": "https://registry.npmjs.org/dtslint/-/dtslint-0.4.2.tgz", "integrity": "sha512-ph4GXLw3HYzlQMJOFcpCqWHuL3MxJ/344OR7wn0wlQGchQGTIVNsSUl8iKEMatpy2geNMysgA9fQa6xVhHOkTQ==", - "dev": true, "requires": { "definitelytyped-header-parser": "github:Microsoft/definitelytyped-header-parser#production", "fs-extra": "^6.0.1", @@ -153,7 +135,6 @@ "definitelytyped-header-parser": { "version": "github:Microsoft/definitelytyped-header-parser#d957ad0bb2f4ecb60ac04f734e0b38fbc8e70b8a", "from": "github:Microsoft/definitelytyped-header-parser#production", - "dev": true, "requires": { "@types/parsimmon": "^1.3.0", "parsimmon": "^1.2.0" @@ -164,26 +145,22 @@ "escape-string-regexp": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", - "dev": true + "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=" }, "esprima": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", - "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", - "dev": true + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==" }, "esutils": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", - "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", - "dev": true + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==" }, "fs-extra": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-6.0.1.tgz", "integrity": "sha512-GnyIkKhhzXZUWFCaJzvyDLEEgDkPfb4/TPvJCJVuS8MWZgoSsErf++QpiAlDnKFcqhRlm+tIOcencCjyJE6ZCA==", - "dev": true, "requires": { "graceful-fs": "^4.1.2", "jsonfile": "^4.0.0", @@ -193,14 +170,12 @@ "fs.realpath": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", - "dev": true + "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=" }, "glob": { "version": "7.1.4", "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.4.tgz", "integrity": "sha512-hkLPepehmnKk41pUGm3sYxoFs/umurYfYJCerbXEyFIWcAzvpipAgVkBqqT9RBKMGjnq6kMuyYwha6csxbiM1A==", - "dev": true, "requires": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", @@ -213,20 +188,17 @@ "graceful-fs": { "version": "4.2.2", "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.2.tgz", - "integrity": "sha512-IItsdsea19BoLC7ELy13q1iJFNmd7ofZH5+X/pJr90/nRoPEX0DJo1dHDbgtYWOhJhcCgMDTOw84RZ72q6lB+Q==", - "dev": true + "integrity": "sha512-IItsdsea19BoLC7ELy13q1iJFNmd7ofZH5+X/pJr90/nRoPEX0DJo1dHDbgtYWOhJhcCgMDTOw84RZ72q6lB+Q==" }, "has-flag": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", - "dev": true + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=" }, "inflight": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", - "dev": true, "requires": { "once": "^1.3.0", "wrappy": "1" @@ -235,20 +207,17 @@ "inherits": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", - "dev": true + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" }, "js-tokens": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", - "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", - "dev": true + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==" }, "js-yaml": { "version": "3.13.1", "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.13.1.tgz", "integrity": "sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw==", - "dev": true, "requires": { "argparse": "^1.0.7", "esprima": "^4.0.0" @@ -258,7 +227,6 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", "integrity": "sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss=", - "dev": true, "requires": { "graceful-fs": "^4.1.6" } @@ -267,7 +235,6 @@ "version": "3.0.4", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", - "dev": true, "requires": { "brace-expansion": "^1.1.7" } @@ -275,14 +242,12 @@ "minimist": { "version": "0.0.8", "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", - "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=", - "dev": true + "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=" }, "mkdirp": { "version": "0.5.1", "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", - "dev": true, "requires": { "minimist": "0.0.8" } @@ -291,7 +256,6 @@ "version": "1.4.0", "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", - "dev": true, "requires": { "wrappy": "1" } @@ -299,26 +263,22 @@ "parsimmon": { "version": "1.13.0", "resolved": "https://registry.npmjs.org/parsimmon/-/parsimmon-1.13.0.tgz", - "integrity": "sha512-5UIrOCW+gjbILkjKPgTgmq8LKf8TT3Iy7kN2VD7OtQ81facKn8B4gG1X94jWqXYZsxG2KbJhrv/Yq/5H6BQn7A==", - "dev": true + "integrity": "sha512-5UIrOCW+gjbILkjKPgTgmq8LKf8TT3Iy7kN2VD7OtQ81facKn8B4gG1X94jWqXYZsxG2KbJhrv/Yq/5H6BQn7A==" }, "path-is-absolute": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", - "dev": true + "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=" }, "path-parse": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz", - "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==", - "dev": true + "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==" }, "resolve": { "version": "1.12.0", "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.12.0.tgz", "integrity": "sha512-B/dOmuoAik5bKcD6s6nXDCjzUKnaDvdkRyAk6rsmsKLipWj4797iothd7jmmUhWTfinVMU+wc56rYKsit2Qy4w==", - "dev": true, "requires": { "path-parse": "^1.0.6" } @@ -326,26 +286,22 @@ "semver": { "version": "5.7.1", "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", - "dev": true + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==" }, "sprintf-js": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", - "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", - "dev": true + "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=" }, "strip-json-comments": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", - "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=", - "dev": true + "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=" }, "supports-color": { "version": "5.5.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "dev": true, "requires": { "has-flag": "^3.0.0" } @@ -353,14 +309,12 @@ "tslib": { "version": "1.10.0", "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.10.0.tgz", - "integrity": "sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==", - "dev": true + "integrity": "sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==" }, "tslint": { "version": "5.20.0", "resolved": "https://registry.npmjs.org/tslint/-/tslint-5.20.0.tgz", "integrity": "sha512-2vqIvkMHbnx8acMogAERQ/IuINOq6DFqgF8/VDvhEkBqQh/x6SP0Y+OHnKth9/ZcHQSroOZwUQSN18v8KKF0/g==", - "dev": true, "requires": { "@babel/code-frame": "^7.0.0", "builtin-modules": "^1.1.1", @@ -381,7 +335,6 @@ "version": "2.29.0", "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-2.29.0.tgz", "integrity": "sha512-g5JVHCIJwzfISaXpXE1qvNalca5Jwob6FjI4AoPlqMusJ6ftFE7IkkFoMhVLRgK+4Kx3gkzb8UZK5t5yTTvEmA==", - "dev": true, "requires": { "tslib": "^1.8.1" } @@ -389,8 +342,7 @@ "typescript": { "version": "3.7.0-dev.20191015", "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.7.0-dev.20191015.tgz", - "integrity": "sha512-Cpfj1n4pEUVKL+jtS0mkZodJffyMmf3Wk/UjyZMGX4fsjK5KBPJf3NUlyXij8I8p1E2CAomdS5NPFrAR+z8pKw==", - "dev": true + "integrity": "sha512-Cpfj1n4pEUVKL+jtS0mkZodJffyMmf3Wk/UjyZMGX4fsjK5KBPJf3NUlyXij8I8p1E2CAomdS5NPFrAR+z8pKw==" }, "underscore": { "version": "1.9.1", @@ -400,14 +352,12 @@ "universalify": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", - "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", - "dev": true + "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==" }, "wrappy": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", - "dev": true + "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=" } } } diff --git a/packages/web3-eth-contract/types/index.d.ts b/packages/web3-eth-contract/types/index.d.ts index 02d0f443383..4f5f90213a6 100644 --- a/packages/web3-eth-contract/types/index.d.ts +++ b/packages/web3-eth-contract/types/index.d.ts @@ -18,8 +18,8 @@ */ import BN = require('bn.js'); -import { PromiEvent, provider } from 'web3-core'; -import { AbiItem } from 'web3-utils'; +import {PromiEvent, provider} from 'web3-core'; +import {AbiItem} from 'web3-utils'; export class Contract { constructor( @@ -30,7 +30,7 @@ export class Contract { ); private _address: string; - private _jsonInterface: AbiItemModel[]; + private _jsonInterface: AbiItem[]; options: Options; @@ -65,9 +65,9 @@ export class Contract { ): Promise; } -export interface Options { +export interface Options extends ContractOptions { address: string; - jsonInterface: AbiItemModel[]; + jsonInterface: AbiItem[]; } export interface DeployOptions { @@ -148,9 +148,3 @@ export interface EventData { blockNumber: number; address: string; } - -export interface AbiItemModel { - signature: string; - name: string; - payable: boolean; -} diff --git a/packages/web3-eth-contract/types/tests/contract-test.ts b/packages/web3-eth-contract/types/tests/contract-test.ts index 205242cd795..51c2d22bdc5 100644 --- a/packages/web3-eth-contract/types/tests/contract-test.ts +++ b/packages/web3-eth-contract/types/tests/contract-test.ts @@ -24,9 +24,21 @@ const contract = new Contract('http://localhost:500', []); // $ExpectType string contract.options.address; -// $ExpectType AbiItemModel[] +// $ExpectType AbiItem[] contract.options.jsonInterface; +// $ExpectType string | undefined +contract.options.from; + +// $ExpectType number | undefined +contract.options.gas; + +// $ExpectType string | undefined +contract.options.gasPrice; + +// $ExpectType string | undefined +contract.options.data; + // $ExpectType Contract contract.clone(); diff --git a/packages/web3-eth-ens/package-lock.json b/packages/web3-eth-ens/package-lock.json index f05b8b6d617..8d54a9cb8f5 100644 --- a/packages/web3-eth-ens/package-lock.json +++ b/packages/web3-eth-ens/package-lock.json @@ -1,14 +1,11 @@ { - "name": "web3-eth-ens", - "version": "1.2.1", - "lockfileVersion": 1, "requires": true, + "lockfileVersion": 1, "dependencies": { "@babel/code-frame": { "version": "7.5.5", "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.5.5.tgz", "integrity": "sha512-27d4lZoomVyo51VegxI20xZPuSHusqbQag/ztrBC7wegWoQ1nLREPVSKSW8byhTlzTKyNE4ifaTA6lCp7JjpFw==", - "dev": true, "requires": { "@babel/highlight": "^7.0.0" } @@ -17,7 +14,6 @@ "version": "7.5.0", "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.5.0.tgz", "integrity": "sha512-7dV4eu9gBxoM0dAnj/BCFDW9LFU0zvTrkq0ugM7pnHEgguOEeOz1so2ZghEdzviYzQEED0r4EAgpsBChKy1TRQ==", - "dev": true, "requires": { "chalk": "^2.0.0", "esutils": "^2.0.2", @@ -27,14 +23,12 @@ "@types/parsimmon": { "version": "1.10.0", "resolved": "https://registry.npmjs.org/@types/parsimmon/-/parsimmon-1.10.0.tgz", - "integrity": "sha512-bsTIJFVQv7jnvNiC42ld2pQW2KRI+pAG243L+iATvqzy3X6+NH1obz2itRKDZZ8VVhN3wjwYax/VBGCcXzgTqQ==", - "dev": true + "integrity": "sha512-bsTIJFVQv7jnvNiC42ld2pQW2KRI+pAG243L+iATvqzy3X6+NH1obz2itRKDZZ8VVhN3wjwYax/VBGCcXzgTqQ==" }, "ansi-styles": { "version": "3.2.1", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, "requires": { "color-convert": "^1.9.0" } @@ -43,7 +37,6 @@ "version": "1.0.10", "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", - "dev": true, "requires": { "sprintf-js": "~1.0.2" } @@ -51,14 +44,12 @@ "balanced-match": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", - "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", - "dev": true + "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=" }, "brace-expansion": { "version": "1.1.11", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "dev": true, "requires": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" @@ -67,14 +58,12 @@ "builtin-modules": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-1.1.1.tgz", - "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=", - "dev": true + "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=" }, "chalk": { "version": "2.4.2", "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", - "dev": true, "requires": { "ansi-styles": "^3.2.1", "escape-string-regexp": "^1.0.5", @@ -85,7 +74,6 @@ "version": "1.9.3", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", - "dev": true, "requires": { "color-name": "1.1.3" } @@ -93,26 +81,22 @@ "color-name": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", - "dev": true + "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=" }, "commander": { "version": "2.20.3", "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", - "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", - "dev": true + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==" }, "concat-map": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", - "dev": true + "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=" }, "definitelytyped-header-parser": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/definitelytyped-header-parser/-/definitelytyped-header-parser-1.2.0.tgz", "integrity": "sha512-xpg8uu/2YD/reaVsZV4oJ4g7UDYFqQGWvT1W9Tsj6q4VtWBSaig38Qgah0ZMnQGF9kAsAim08EXDO1nSi0+Nog==", - "dev": true, "requires": { "@types/parsimmon": "^1.3.0", "parsimmon": "^1.2.0" @@ -121,14 +105,12 @@ "diff": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.1.tgz", - "integrity": "sha512-s2+XdvhPCOF01LRQBC8hf4vhbVmI2CGS5aZnxLJlT5FtdhPCDFq80q++zK2KlrVorVDdL5BOGZ/VfLrVtYNF+Q==", - "dev": true + "integrity": "sha512-s2+XdvhPCOF01LRQBC8hf4vhbVmI2CGS5aZnxLJlT5FtdhPCDFq80q++zK2KlrVorVDdL5BOGZ/VfLrVtYNF+Q==" }, "dtslint": { "version": "0.4.2", "resolved": "https://registry.npmjs.org/dtslint/-/dtslint-0.4.2.tgz", "integrity": "sha512-ph4GXLw3HYzlQMJOFcpCqWHuL3MxJ/344OR7wn0wlQGchQGTIVNsSUl8iKEMatpy2geNMysgA9fQa6xVhHOkTQ==", - "dev": true, "requires": { "definitelytyped-header-parser": "github:Microsoft/definitelytyped-header-parser#production", "fs-extra": "^6.0.1", @@ -140,7 +122,6 @@ "definitelytyped-header-parser": { "version": "github:Microsoft/definitelytyped-header-parser#d957ad0bb2f4ecb60ac04f734e0b38fbc8e70b8a", "from": "github:Microsoft/definitelytyped-header-parser#production", - "dev": true, "requires": { "@types/parsimmon": "^1.3.0", "parsimmon": "^1.2.0" @@ -151,20 +132,17 @@ "escape-string-regexp": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", - "dev": true + "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=" }, "esprima": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", - "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", - "dev": true + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==" }, "esutils": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", - "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", - "dev": true + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==" }, "eth-ens-namehash": { "version": "2.0.8", @@ -179,7 +157,6 @@ "version": "6.0.1", "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-6.0.1.tgz", "integrity": "sha512-GnyIkKhhzXZUWFCaJzvyDLEEgDkPfb4/TPvJCJVuS8MWZgoSsErf++QpiAlDnKFcqhRlm+tIOcencCjyJE6ZCA==", - "dev": true, "requires": { "graceful-fs": "^4.1.2", "jsonfile": "^4.0.0", @@ -189,14 +166,12 @@ "fs.realpath": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", - "dev": true + "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=" }, "glob": { "version": "7.1.4", "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.4.tgz", "integrity": "sha512-hkLPepehmnKk41pUGm3sYxoFs/umurYfYJCerbXEyFIWcAzvpipAgVkBqqT9RBKMGjnq6kMuyYwha6csxbiM1A==", - "dev": true, "requires": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", @@ -209,14 +184,12 @@ "graceful-fs": { "version": "4.2.2", "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.2.tgz", - "integrity": "sha512-IItsdsea19BoLC7ELy13q1iJFNmd7ofZH5+X/pJr90/nRoPEX0DJo1dHDbgtYWOhJhcCgMDTOw84RZ72q6lB+Q==", - "dev": true + "integrity": "sha512-IItsdsea19BoLC7ELy13q1iJFNmd7ofZH5+X/pJr90/nRoPEX0DJo1dHDbgtYWOhJhcCgMDTOw84RZ72q6lB+Q==" }, "has-flag": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", - "dev": true + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=" }, "idna-uts46-hx": { "version": "2.3.1", @@ -230,7 +203,6 @@ "version": "1.0.6", "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", - "dev": true, "requires": { "once": "^1.3.0", "wrappy": "1" @@ -239,8 +211,7 @@ "inherits": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", - "dev": true + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" }, "js-sha3": { "version": "0.5.7", @@ -250,14 +221,12 @@ "js-tokens": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", - "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", - "dev": true + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==" }, "js-yaml": { "version": "3.13.1", "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.13.1.tgz", "integrity": "sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw==", - "dev": true, "requires": { "argparse": "^1.0.7", "esprima": "^4.0.0" @@ -267,7 +236,6 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", "integrity": "sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss=", - "dev": true, "requires": { "graceful-fs": "^4.1.6" } @@ -276,7 +244,6 @@ "version": "3.0.4", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", - "dev": true, "requires": { "brace-expansion": "^1.1.7" } @@ -284,14 +251,12 @@ "minimist": { "version": "0.0.8", "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", - "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=", - "dev": true + "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=" }, "mkdirp": { "version": "0.5.1", "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", - "dev": true, "requires": { "minimist": "0.0.8" } @@ -300,7 +265,6 @@ "version": "1.4.0", "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", - "dev": true, "requires": { "wrappy": "1" } @@ -308,20 +272,17 @@ "parsimmon": { "version": "1.13.0", "resolved": "https://registry.npmjs.org/parsimmon/-/parsimmon-1.13.0.tgz", - "integrity": "sha512-5UIrOCW+gjbILkjKPgTgmq8LKf8TT3Iy7kN2VD7OtQ81facKn8B4gG1X94jWqXYZsxG2KbJhrv/Yq/5H6BQn7A==", - "dev": true + "integrity": "sha512-5UIrOCW+gjbILkjKPgTgmq8LKf8TT3Iy7kN2VD7OtQ81facKn8B4gG1X94jWqXYZsxG2KbJhrv/Yq/5H6BQn7A==" }, "path-is-absolute": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", - "dev": true + "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=" }, "path-parse": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz", - "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==", - "dev": true + "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==" }, "punycode": { "version": "2.1.0", @@ -332,7 +293,6 @@ "version": "1.12.0", "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.12.0.tgz", "integrity": "sha512-B/dOmuoAik5bKcD6s6nXDCjzUKnaDvdkRyAk6rsmsKLipWj4797iothd7jmmUhWTfinVMU+wc56rYKsit2Qy4w==", - "dev": true, "requires": { "path-parse": "^1.0.6" } @@ -340,26 +300,22 @@ "semver": { "version": "5.7.1", "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", - "dev": true + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==" }, "sprintf-js": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", - "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", - "dev": true + "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=" }, "strip-json-comments": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", - "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=", - "dev": true + "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=" }, "supports-color": { "version": "5.5.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "dev": true, "requires": { "has-flag": "^3.0.0" } @@ -367,14 +323,12 @@ "tslib": { "version": "1.10.0", "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.10.0.tgz", - "integrity": "sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==", - "dev": true + "integrity": "sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==" }, "tslint": { "version": "5.20.0", "resolved": "https://registry.npmjs.org/tslint/-/tslint-5.20.0.tgz", "integrity": "sha512-2vqIvkMHbnx8acMogAERQ/IuINOq6DFqgF8/VDvhEkBqQh/x6SP0Y+OHnKth9/ZcHQSroOZwUQSN18v8KKF0/g==", - "dev": true, "requires": { "@babel/code-frame": "^7.0.0", "builtin-modules": "^1.1.1", @@ -395,7 +349,6 @@ "version": "2.29.0", "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-2.29.0.tgz", "integrity": "sha512-g5JVHCIJwzfISaXpXE1qvNalca5Jwob6FjI4AoPlqMusJ6ftFE7IkkFoMhVLRgK+4Kx3gkzb8UZK5t5yTTvEmA==", - "dev": true, "requires": { "tslib": "^1.8.1" } @@ -403,8 +356,7 @@ "typescript": { "version": "3.7.0-dev.20191015", "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.7.0-dev.20191015.tgz", - "integrity": "sha512-Cpfj1n4pEUVKL+jtS0mkZodJffyMmf3Wk/UjyZMGX4fsjK5KBPJf3NUlyXij8I8p1E2CAomdS5NPFrAR+z8pKw==", - "dev": true + "integrity": "sha512-Cpfj1n4pEUVKL+jtS0mkZodJffyMmf3Wk/UjyZMGX4fsjK5KBPJf3NUlyXij8I8p1E2CAomdS5NPFrAR+z8pKw==" }, "underscore": { "version": "1.9.1", @@ -414,14 +366,12 @@ "universalify": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", - "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", - "dev": true + "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==" }, "wrappy": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", - "dev": true + "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=" } } } diff --git a/packages/web3-eth-iban/package-lock.json b/packages/web3-eth-iban/package-lock.json index 8faea10461d..cf6c13e3484 100644 --- a/packages/web3-eth-iban/package-lock.json +++ b/packages/web3-eth-iban/package-lock.json @@ -1,14 +1,11 @@ { - "name": "web3-eth-iban", - "version": "1.2.1", - "lockfileVersion": 1, "requires": true, + "lockfileVersion": 1, "dependencies": { "@babel/code-frame": { "version": "7.5.5", "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.5.5.tgz", "integrity": "sha512-27d4lZoomVyo51VegxI20xZPuSHusqbQag/ztrBC7wegWoQ1nLREPVSKSW8byhTlzTKyNE4ifaTA6lCp7JjpFw==", - "dev": true, "requires": { "@babel/highlight": "^7.0.0" } @@ -17,7 +14,6 @@ "version": "7.5.0", "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.5.0.tgz", "integrity": "sha512-7dV4eu9gBxoM0dAnj/BCFDW9LFU0zvTrkq0ugM7pnHEgguOEeOz1so2ZghEdzviYzQEED0r4EAgpsBChKy1TRQ==", - "dev": true, "requires": { "chalk": "^2.0.0", "esutils": "^2.0.2", @@ -27,14 +23,12 @@ "@types/parsimmon": { "version": "1.10.0", "resolved": "https://registry.npmjs.org/@types/parsimmon/-/parsimmon-1.10.0.tgz", - "integrity": "sha512-bsTIJFVQv7jnvNiC42ld2pQW2KRI+pAG243L+iATvqzy3X6+NH1obz2itRKDZZ8VVhN3wjwYax/VBGCcXzgTqQ==", - "dev": true + "integrity": "sha512-bsTIJFVQv7jnvNiC42ld2pQW2KRI+pAG243L+iATvqzy3X6+NH1obz2itRKDZZ8VVhN3wjwYax/VBGCcXzgTqQ==" }, "ansi-styles": { "version": "3.2.1", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, "requires": { "color-convert": "^1.9.0" } @@ -43,7 +37,6 @@ "version": "1.0.10", "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", - "dev": true, "requires": { "sprintf-js": "~1.0.2" } @@ -51,8 +44,7 @@ "balanced-match": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", - "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", - "dev": true + "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=" }, "bn.js": { "version": "4.11.8", @@ -63,7 +55,6 @@ "version": "1.1.11", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "dev": true, "requires": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" @@ -72,14 +63,12 @@ "builtin-modules": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-1.1.1.tgz", - "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=", - "dev": true + "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=" }, "chalk": { "version": "2.4.2", "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", - "dev": true, "requires": { "ansi-styles": "^3.2.1", "escape-string-regexp": "^1.0.5", @@ -90,7 +79,6 @@ "version": "1.9.3", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", - "dev": true, "requires": { "color-name": "1.1.3" } @@ -98,26 +86,22 @@ "color-name": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", - "dev": true + "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=" }, "commander": { "version": "2.20.3", "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", - "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", - "dev": true + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==" }, "concat-map": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", - "dev": true + "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=" }, "definitelytyped-header-parser": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/definitelytyped-header-parser/-/definitelytyped-header-parser-1.2.0.tgz", "integrity": "sha512-xpg8uu/2YD/reaVsZV4oJ4g7UDYFqQGWvT1W9Tsj6q4VtWBSaig38Qgah0ZMnQGF9kAsAim08EXDO1nSi0+Nog==", - "dev": true, "requires": { "@types/parsimmon": "^1.3.0", "parsimmon": "^1.2.0" @@ -126,14 +110,12 @@ "diff": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.1.tgz", - "integrity": "sha512-s2+XdvhPCOF01LRQBC8hf4vhbVmI2CGS5aZnxLJlT5FtdhPCDFq80q++zK2KlrVorVDdL5BOGZ/VfLrVtYNF+Q==", - "dev": true + "integrity": "sha512-s2+XdvhPCOF01LRQBC8hf4vhbVmI2CGS5aZnxLJlT5FtdhPCDFq80q++zK2KlrVorVDdL5BOGZ/VfLrVtYNF+Q==" }, "dtslint": { "version": "0.4.2", "resolved": "https://registry.npmjs.org/dtslint/-/dtslint-0.4.2.tgz", "integrity": "sha512-ph4GXLw3HYzlQMJOFcpCqWHuL3MxJ/344OR7wn0wlQGchQGTIVNsSUl8iKEMatpy2geNMysgA9fQa6xVhHOkTQ==", - "dev": true, "requires": { "definitelytyped-header-parser": "github:Microsoft/definitelytyped-header-parser#production", "fs-extra": "^6.0.1", @@ -145,7 +127,6 @@ "definitelytyped-header-parser": { "version": "github:Microsoft/definitelytyped-header-parser#d957ad0bb2f4ecb60ac04f734e0b38fbc8e70b8a", "from": "github:Microsoft/definitelytyped-header-parser#production", - "dev": true, "requires": { "@types/parsimmon": "^1.3.0", "parsimmon": "^1.2.0" @@ -156,26 +137,22 @@ "escape-string-regexp": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", - "dev": true + "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=" }, "esprima": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", - "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", - "dev": true + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==" }, "esutils": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", - "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", - "dev": true + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==" }, "fs-extra": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-6.0.1.tgz", "integrity": "sha512-GnyIkKhhzXZUWFCaJzvyDLEEgDkPfb4/TPvJCJVuS8MWZgoSsErf++QpiAlDnKFcqhRlm+tIOcencCjyJE6ZCA==", - "dev": true, "requires": { "graceful-fs": "^4.1.2", "jsonfile": "^4.0.0", @@ -185,14 +162,12 @@ "fs.realpath": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", - "dev": true + "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=" }, "glob": { "version": "7.1.4", "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.4.tgz", "integrity": "sha512-hkLPepehmnKk41pUGm3sYxoFs/umurYfYJCerbXEyFIWcAzvpipAgVkBqqT9RBKMGjnq6kMuyYwha6csxbiM1A==", - "dev": true, "requires": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", @@ -205,20 +180,17 @@ "graceful-fs": { "version": "4.2.2", "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.2.tgz", - "integrity": "sha512-IItsdsea19BoLC7ELy13q1iJFNmd7ofZH5+X/pJr90/nRoPEX0DJo1dHDbgtYWOhJhcCgMDTOw84RZ72q6lB+Q==", - "dev": true + "integrity": "sha512-IItsdsea19BoLC7ELy13q1iJFNmd7ofZH5+X/pJr90/nRoPEX0DJo1dHDbgtYWOhJhcCgMDTOw84RZ72q6lB+Q==" }, "has-flag": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", - "dev": true + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=" }, "inflight": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", - "dev": true, "requires": { "once": "^1.3.0", "wrappy": "1" @@ -227,20 +199,17 @@ "inherits": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", - "dev": true + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" }, "js-tokens": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", - "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", - "dev": true + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==" }, "js-yaml": { "version": "3.13.1", "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.13.1.tgz", "integrity": "sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw==", - "dev": true, "requires": { "argparse": "^1.0.7", "esprima": "^4.0.0" @@ -250,7 +219,6 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", "integrity": "sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss=", - "dev": true, "requires": { "graceful-fs": "^4.1.6" } @@ -259,7 +227,6 @@ "version": "3.0.4", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", - "dev": true, "requires": { "brace-expansion": "^1.1.7" } @@ -267,14 +234,12 @@ "minimist": { "version": "0.0.8", "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", - "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=", - "dev": true + "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=" }, "mkdirp": { "version": "0.5.1", "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", - "dev": true, "requires": { "minimist": "0.0.8" } @@ -283,7 +248,6 @@ "version": "1.4.0", "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", - "dev": true, "requires": { "wrappy": "1" } @@ -291,26 +255,22 @@ "parsimmon": { "version": "1.13.0", "resolved": "https://registry.npmjs.org/parsimmon/-/parsimmon-1.13.0.tgz", - "integrity": "sha512-5UIrOCW+gjbILkjKPgTgmq8LKf8TT3Iy7kN2VD7OtQ81facKn8B4gG1X94jWqXYZsxG2KbJhrv/Yq/5H6BQn7A==", - "dev": true + "integrity": "sha512-5UIrOCW+gjbILkjKPgTgmq8LKf8TT3Iy7kN2VD7OtQ81facKn8B4gG1X94jWqXYZsxG2KbJhrv/Yq/5H6BQn7A==" }, "path-is-absolute": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", - "dev": true + "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=" }, "path-parse": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz", - "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==", - "dev": true + "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==" }, "resolve": { "version": "1.12.0", "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.12.0.tgz", "integrity": "sha512-B/dOmuoAik5bKcD6s6nXDCjzUKnaDvdkRyAk6rsmsKLipWj4797iothd7jmmUhWTfinVMU+wc56rYKsit2Qy4w==", - "dev": true, "requires": { "path-parse": "^1.0.6" } @@ -318,26 +278,22 @@ "semver": { "version": "5.7.1", "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", - "dev": true + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==" }, "sprintf-js": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", - "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", - "dev": true + "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=" }, "strip-json-comments": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", - "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=", - "dev": true + "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=" }, "supports-color": { "version": "5.5.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "dev": true, "requires": { "has-flag": "^3.0.0" } @@ -345,14 +301,12 @@ "tslib": { "version": "1.10.0", "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.10.0.tgz", - "integrity": "sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==", - "dev": true + "integrity": "sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==" }, "tslint": { "version": "5.20.0", "resolved": "https://registry.npmjs.org/tslint/-/tslint-5.20.0.tgz", "integrity": "sha512-2vqIvkMHbnx8acMogAERQ/IuINOq6DFqgF8/VDvhEkBqQh/x6SP0Y+OHnKth9/ZcHQSroOZwUQSN18v8KKF0/g==", - "dev": true, "requires": { "@babel/code-frame": "^7.0.0", "builtin-modules": "^1.1.1", @@ -373,7 +327,6 @@ "version": "2.29.0", "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-2.29.0.tgz", "integrity": "sha512-g5JVHCIJwzfISaXpXE1qvNalca5Jwob6FjI4AoPlqMusJ6ftFE7IkkFoMhVLRgK+4Kx3gkzb8UZK5t5yTTvEmA==", - "dev": true, "requires": { "tslib": "^1.8.1" } @@ -381,20 +334,17 @@ "typescript": { "version": "3.7.0-dev.20191015", "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.7.0-dev.20191015.tgz", - "integrity": "sha512-Cpfj1n4pEUVKL+jtS0mkZodJffyMmf3Wk/UjyZMGX4fsjK5KBPJf3NUlyXij8I8p1E2CAomdS5NPFrAR+z8pKw==", - "dev": true + "integrity": "sha512-Cpfj1n4pEUVKL+jtS0mkZodJffyMmf3Wk/UjyZMGX4fsjK5KBPJf3NUlyXij8I8p1E2CAomdS5NPFrAR+z8pKw==" }, "universalify": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", - "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", - "dev": true + "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==" }, "wrappy": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", - "dev": true + "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=" } } } diff --git a/packages/web3-eth-personal/package-lock.json b/packages/web3-eth-personal/package-lock.json index 8f7e6b72c60..07d69ca98ca 100644 --- a/packages/web3-eth-personal/package-lock.json +++ b/packages/web3-eth-personal/package-lock.json @@ -1,14 +1,11 @@ { - "name": "web3-eth-personal", - "version": "1.2.1", - "lockfileVersion": 1, "requires": true, + "lockfileVersion": 1, "dependencies": { "@babel/code-frame": { "version": "7.5.5", "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.5.5.tgz", "integrity": "sha512-27d4lZoomVyo51VegxI20xZPuSHusqbQag/ztrBC7wegWoQ1nLREPVSKSW8byhTlzTKyNE4ifaTA6lCp7JjpFw==", - "dev": true, "requires": { "@babel/highlight": "^7.0.0" } @@ -17,7 +14,6 @@ "version": "7.5.0", "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.5.0.tgz", "integrity": "sha512-7dV4eu9gBxoM0dAnj/BCFDW9LFU0zvTrkq0ugM7pnHEgguOEeOz1so2ZghEdzviYzQEED0r4EAgpsBChKy1TRQ==", - "dev": true, "requires": { "chalk": "^2.0.0", "esutils": "^2.0.2", @@ -32,14 +28,12 @@ "@types/parsimmon": { "version": "1.10.0", "resolved": "https://registry.npmjs.org/@types/parsimmon/-/parsimmon-1.10.0.tgz", - "integrity": "sha512-bsTIJFVQv7jnvNiC42ld2pQW2KRI+pAG243L+iATvqzy3X6+NH1obz2itRKDZZ8VVhN3wjwYax/VBGCcXzgTqQ==", - "dev": true + "integrity": "sha512-bsTIJFVQv7jnvNiC42ld2pQW2KRI+pAG243L+iATvqzy3X6+NH1obz2itRKDZZ8VVhN3wjwYax/VBGCcXzgTqQ==" }, "ansi-styles": { "version": "3.2.1", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, "requires": { "color-convert": "^1.9.0" } @@ -48,7 +42,6 @@ "version": "1.0.10", "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", - "dev": true, "requires": { "sprintf-js": "~1.0.2" } @@ -56,14 +49,12 @@ "balanced-match": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", - "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", - "dev": true + "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=" }, "brace-expansion": { "version": "1.1.11", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "dev": true, "requires": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" @@ -72,14 +63,12 @@ "builtin-modules": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-1.1.1.tgz", - "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=", - "dev": true + "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=" }, "chalk": { "version": "2.4.2", "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", - "dev": true, "requires": { "ansi-styles": "^3.2.1", "escape-string-regexp": "^1.0.5", @@ -90,7 +79,6 @@ "version": "1.9.3", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", - "dev": true, "requires": { "color-name": "1.1.3" } @@ -98,26 +86,22 @@ "color-name": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", - "dev": true + "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=" }, "commander": { "version": "2.20.3", "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", - "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", - "dev": true + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==" }, "concat-map": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", - "dev": true + "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=" }, "definitelytyped-header-parser": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/definitelytyped-header-parser/-/definitelytyped-header-parser-1.2.0.tgz", "integrity": "sha512-xpg8uu/2YD/reaVsZV4oJ4g7UDYFqQGWvT1W9Tsj6q4VtWBSaig38Qgah0ZMnQGF9kAsAim08EXDO1nSi0+Nog==", - "dev": true, "requires": { "@types/parsimmon": "^1.3.0", "parsimmon": "^1.2.0" @@ -126,14 +110,12 @@ "diff": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.1.tgz", - "integrity": "sha512-s2+XdvhPCOF01LRQBC8hf4vhbVmI2CGS5aZnxLJlT5FtdhPCDFq80q++zK2KlrVorVDdL5BOGZ/VfLrVtYNF+Q==", - "dev": true + "integrity": "sha512-s2+XdvhPCOF01LRQBC8hf4vhbVmI2CGS5aZnxLJlT5FtdhPCDFq80q++zK2KlrVorVDdL5BOGZ/VfLrVtYNF+Q==" }, "dtslint": { "version": "0.4.2", "resolved": "https://registry.npmjs.org/dtslint/-/dtslint-0.4.2.tgz", "integrity": "sha512-ph4GXLw3HYzlQMJOFcpCqWHuL3MxJ/344OR7wn0wlQGchQGTIVNsSUl8iKEMatpy2geNMysgA9fQa6xVhHOkTQ==", - "dev": true, "requires": { "definitelytyped-header-parser": "github:Microsoft/definitelytyped-header-parser#production", "fs-extra": "^6.0.1", @@ -145,7 +127,6 @@ "definitelytyped-header-parser": { "version": "github:Microsoft/definitelytyped-header-parser#d957ad0bb2f4ecb60ac04f734e0b38fbc8e70b8a", "from": "github:Microsoft/definitelytyped-header-parser#production", - "dev": true, "requires": { "@types/parsimmon": "^1.3.0", "parsimmon": "^1.2.0" @@ -156,26 +137,22 @@ "escape-string-regexp": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", - "dev": true + "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=" }, "esprima": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", - "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", - "dev": true + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==" }, "esutils": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", - "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", - "dev": true + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==" }, "fs-extra": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-6.0.1.tgz", "integrity": "sha512-GnyIkKhhzXZUWFCaJzvyDLEEgDkPfb4/TPvJCJVuS8MWZgoSsErf++QpiAlDnKFcqhRlm+tIOcencCjyJE6ZCA==", - "dev": true, "requires": { "graceful-fs": "^4.1.2", "jsonfile": "^4.0.0", @@ -185,14 +162,12 @@ "fs.realpath": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", - "dev": true + "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=" }, "glob": { "version": "7.1.4", "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.4.tgz", "integrity": "sha512-hkLPepehmnKk41pUGm3sYxoFs/umurYfYJCerbXEyFIWcAzvpipAgVkBqqT9RBKMGjnq6kMuyYwha6csxbiM1A==", - "dev": true, "requires": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", @@ -205,20 +180,17 @@ "graceful-fs": { "version": "4.2.2", "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.2.tgz", - "integrity": "sha512-IItsdsea19BoLC7ELy13q1iJFNmd7ofZH5+X/pJr90/nRoPEX0DJo1dHDbgtYWOhJhcCgMDTOw84RZ72q6lB+Q==", - "dev": true + "integrity": "sha512-IItsdsea19BoLC7ELy13q1iJFNmd7ofZH5+X/pJr90/nRoPEX0DJo1dHDbgtYWOhJhcCgMDTOw84RZ72q6lB+Q==" }, "has-flag": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", - "dev": true + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=" }, "inflight": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", - "dev": true, "requires": { "once": "^1.3.0", "wrappy": "1" @@ -227,20 +199,17 @@ "inherits": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", - "dev": true + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" }, "js-tokens": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", - "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", - "dev": true + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==" }, "js-yaml": { "version": "3.13.1", "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.13.1.tgz", "integrity": "sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw==", - "dev": true, "requires": { "argparse": "^1.0.7", "esprima": "^4.0.0" @@ -250,7 +219,6 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", "integrity": "sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss=", - "dev": true, "requires": { "graceful-fs": "^4.1.6" } @@ -259,7 +227,6 @@ "version": "3.0.4", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", - "dev": true, "requires": { "brace-expansion": "^1.1.7" } @@ -267,14 +234,12 @@ "minimist": { "version": "0.0.8", "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", - "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=", - "dev": true + "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=" }, "mkdirp": { "version": "0.5.1", "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", - "dev": true, "requires": { "minimist": "0.0.8" } @@ -283,7 +248,6 @@ "version": "1.4.0", "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", - "dev": true, "requires": { "wrappy": "1" } @@ -291,26 +255,22 @@ "parsimmon": { "version": "1.13.0", "resolved": "https://registry.npmjs.org/parsimmon/-/parsimmon-1.13.0.tgz", - "integrity": "sha512-5UIrOCW+gjbILkjKPgTgmq8LKf8TT3Iy7kN2VD7OtQ81facKn8B4gG1X94jWqXYZsxG2KbJhrv/Yq/5H6BQn7A==", - "dev": true + "integrity": "sha512-5UIrOCW+gjbILkjKPgTgmq8LKf8TT3Iy7kN2VD7OtQ81facKn8B4gG1X94jWqXYZsxG2KbJhrv/Yq/5H6BQn7A==" }, "path-is-absolute": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", - "dev": true + "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=" }, "path-parse": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz", - "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==", - "dev": true + "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==" }, "resolve": { "version": "1.12.0", "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.12.0.tgz", "integrity": "sha512-B/dOmuoAik5bKcD6s6nXDCjzUKnaDvdkRyAk6rsmsKLipWj4797iothd7jmmUhWTfinVMU+wc56rYKsit2Qy4w==", - "dev": true, "requires": { "path-parse": "^1.0.6" } @@ -318,26 +278,22 @@ "semver": { "version": "5.7.1", "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", - "dev": true + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==" }, "sprintf-js": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", - "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", - "dev": true + "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=" }, "strip-json-comments": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", - "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=", - "dev": true + "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=" }, "supports-color": { "version": "5.5.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "dev": true, "requires": { "has-flag": "^3.0.0" } @@ -345,14 +301,12 @@ "tslib": { "version": "1.10.0", "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.10.0.tgz", - "integrity": "sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==", - "dev": true + "integrity": "sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==" }, "tslint": { "version": "5.20.0", "resolved": "https://registry.npmjs.org/tslint/-/tslint-5.20.0.tgz", "integrity": "sha512-2vqIvkMHbnx8acMogAERQ/IuINOq6DFqgF8/VDvhEkBqQh/x6SP0Y+OHnKth9/ZcHQSroOZwUQSN18v8KKF0/g==", - "dev": true, "requires": { "@babel/code-frame": "^7.0.0", "builtin-modules": "^1.1.1", @@ -373,7 +327,6 @@ "version": "2.29.0", "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-2.29.0.tgz", "integrity": "sha512-g5JVHCIJwzfISaXpXE1qvNalca5Jwob6FjI4AoPlqMusJ6ftFE7IkkFoMhVLRgK+4Kx3gkzb8UZK5t5yTTvEmA==", - "dev": true, "requires": { "tslib": "^1.8.1" } @@ -381,20 +334,17 @@ "typescript": { "version": "3.7.0-dev.20191015", "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.7.0-dev.20191015.tgz", - "integrity": "sha512-Cpfj1n4pEUVKL+jtS0mkZodJffyMmf3Wk/UjyZMGX4fsjK5KBPJf3NUlyXij8I8p1E2CAomdS5NPFrAR+z8pKw==", - "dev": true + "integrity": "sha512-Cpfj1n4pEUVKL+jtS0mkZodJffyMmf3Wk/UjyZMGX4fsjK5KBPJf3NUlyXij8I8p1E2CAomdS5NPFrAR+z8pKw==" }, "universalify": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", - "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", - "dev": true + "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==" }, "wrappy": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", - "dev": true + "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=" } } } diff --git a/packages/web3-eth-personal/types/index.d.ts b/packages/web3-eth-personal/types/index.d.ts index 15c439265be..5540e04053f 100644 --- a/packages/web3-eth-personal/types/index.d.ts +++ b/packages/web3-eth-personal/types/index.d.ts @@ -21,7 +21,7 @@ import { provider, RLPEncodedTransaction, TransactionConfig } from 'web3-core'; export class Personal { - constructor(currentProvider: provider); + constructor(provider: provider); newAccount( password: string, diff --git a/packages/web3-eth/package-lock.json b/packages/web3-eth/package-lock.json index bfcb5258044..0ad01e74290 100644 --- a/packages/web3-eth/package-lock.json +++ b/packages/web3-eth/package-lock.json @@ -1,14 +1,11 @@ { - "name": "web3-eth", - "version": "1.2.1", - "lockfileVersion": 1, "requires": true, + "lockfileVersion": 1, "dependencies": { "@babel/code-frame": { "version": "7.5.5", "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.5.5.tgz", "integrity": "sha512-27d4lZoomVyo51VegxI20xZPuSHusqbQag/ztrBC7wegWoQ1nLREPVSKSW8byhTlzTKyNE4ifaTA6lCp7JjpFw==", - "dev": true, "requires": { "@babel/highlight": "^7.0.0" } @@ -17,7 +14,6 @@ "version": "7.5.0", "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.5.0.tgz", "integrity": "sha512-7dV4eu9gBxoM0dAnj/BCFDW9LFU0zvTrkq0ugM7pnHEgguOEeOz1so2ZghEdzviYzQEED0r4EAgpsBChKy1TRQ==", - "dev": true, "requires": { "chalk": "^2.0.0", "esutils": "^2.0.2", @@ -27,14 +23,12 @@ "@types/parsimmon": { "version": "1.10.0", "resolved": "https://registry.npmjs.org/@types/parsimmon/-/parsimmon-1.10.0.tgz", - "integrity": "sha512-bsTIJFVQv7jnvNiC42ld2pQW2KRI+pAG243L+iATvqzy3X6+NH1obz2itRKDZZ8VVhN3wjwYax/VBGCcXzgTqQ==", - "dev": true + "integrity": "sha512-bsTIJFVQv7jnvNiC42ld2pQW2KRI+pAG243L+iATvqzy3X6+NH1obz2itRKDZZ8VVhN3wjwYax/VBGCcXzgTqQ==" }, "ansi-styles": { "version": "3.2.1", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, "requires": { "color-convert": "^1.9.0" } @@ -43,7 +37,6 @@ "version": "1.0.10", "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", - "dev": true, "requires": { "sprintf-js": "~1.0.2" } @@ -51,14 +44,12 @@ "balanced-match": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", - "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", - "dev": true + "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=" }, "brace-expansion": { "version": "1.1.11", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "dev": true, "requires": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" @@ -67,14 +58,12 @@ "builtin-modules": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-1.1.1.tgz", - "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=", - "dev": true + "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=" }, "chalk": { "version": "2.4.2", "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", - "dev": true, "requires": { "ansi-styles": "^3.2.1", "escape-string-regexp": "^1.0.5", @@ -85,7 +74,6 @@ "version": "1.9.3", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", - "dev": true, "requires": { "color-name": "1.1.3" } @@ -93,26 +81,22 @@ "color-name": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", - "dev": true + "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=" }, "commander": { "version": "2.20.3", "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", - "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", - "dev": true + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==" }, "concat-map": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", - "dev": true + "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=" }, "definitelytyped-header-parser": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/definitelytyped-header-parser/-/definitelytyped-header-parser-1.2.0.tgz", "integrity": "sha512-xpg8uu/2YD/reaVsZV4oJ4g7UDYFqQGWvT1W9Tsj6q4VtWBSaig38Qgah0ZMnQGF9kAsAim08EXDO1nSi0+Nog==", - "dev": true, "requires": { "@types/parsimmon": "^1.3.0", "parsimmon": "^1.2.0" @@ -121,14 +105,12 @@ "diff": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.1.tgz", - "integrity": "sha512-s2+XdvhPCOF01LRQBC8hf4vhbVmI2CGS5aZnxLJlT5FtdhPCDFq80q++zK2KlrVorVDdL5BOGZ/VfLrVtYNF+Q==", - "dev": true + "integrity": "sha512-s2+XdvhPCOF01LRQBC8hf4vhbVmI2CGS5aZnxLJlT5FtdhPCDFq80q++zK2KlrVorVDdL5BOGZ/VfLrVtYNF+Q==" }, "dtslint": { "version": "0.4.2", "resolved": "https://registry.npmjs.org/dtslint/-/dtslint-0.4.2.tgz", "integrity": "sha512-ph4GXLw3HYzlQMJOFcpCqWHuL3MxJ/344OR7wn0wlQGchQGTIVNsSUl8iKEMatpy2geNMysgA9fQa6xVhHOkTQ==", - "dev": true, "requires": { "definitelytyped-header-parser": "github:Microsoft/definitelytyped-header-parser#production", "fs-extra": "^6.0.1", @@ -140,7 +122,6 @@ "definitelytyped-header-parser": { "version": "github:Microsoft/definitelytyped-header-parser#d957ad0bb2f4ecb60ac04f734e0b38fbc8e70b8a", "from": "github:Microsoft/definitelytyped-header-parser#production", - "dev": true, "requires": { "@types/parsimmon": "^1.3.0", "parsimmon": "^1.2.0" @@ -151,26 +132,22 @@ "escape-string-regexp": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", - "dev": true + "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=" }, "esprima": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", - "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", - "dev": true + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==" }, "esutils": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", - "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", - "dev": true + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==" }, "fs-extra": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-6.0.1.tgz", "integrity": "sha512-GnyIkKhhzXZUWFCaJzvyDLEEgDkPfb4/TPvJCJVuS8MWZgoSsErf++QpiAlDnKFcqhRlm+tIOcencCjyJE6ZCA==", - "dev": true, "requires": { "graceful-fs": "^4.1.2", "jsonfile": "^4.0.0", @@ -180,14 +157,12 @@ "fs.realpath": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", - "dev": true + "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=" }, "glob": { "version": "7.1.4", "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.4.tgz", "integrity": "sha512-hkLPepehmnKk41pUGm3sYxoFs/umurYfYJCerbXEyFIWcAzvpipAgVkBqqT9RBKMGjnq6kMuyYwha6csxbiM1A==", - "dev": true, "requires": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", @@ -200,20 +175,17 @@ "graceful-fs": { "version": "4.2.2", "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.2.tgz", - "integrity": "sha512-IItsdsea19BoLC7ELy13q1iJFNmd7ofZH5+X/pJr90/nRoPEX0DJo1dHDbgtYWOhJhcCgMDTOw84RZ72q6lB+Q==", - "dev": true + "integrity": "sha512-IItsdsea19BoLC7ELy13q1iJFNmd7ofZH5+X/pJr90/nRoPEX0DJo1dHDbgtYWOhJhcCgMDTOw84RZ72q6lB+Q==" }, "has-flag": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", - "dev": true + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=" }, "inflight": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", - "dev": true, "requires": { "once": "^1.3.0", "wrappy": "1" @@ -222,20 +194,17 @@ "inherits": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", - "dev": true + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" }, "js-tokens": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", - "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", - "dev": true + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==" }, "js-yaml": { "version": "3.13.1", "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.13.1.tgz", "integrity": "sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw==", - "dev": true, "requires": { "argparse": "^1.0.7", "esprima": "^4.0.0" @@ -245,7 +214,6 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", "integrity": "sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss=", - "dev": true, "requires": { "graceful-fs": "^4.1.6" } @@ -254,7 +222,6 @@ "version": "3.0.4", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", - "dev": true, "requires": { "brace-expansion": "^1.1.7" } @@ -262,14 +229,12 @@ "minimist": { "version": "0.0.8", "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", - "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=", - "dev": true + "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=" }, "mkdirp": { "version": "0.5.1", "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", - "dev": true, "requires": { "minimist": "0.0.8" } @@ -278,7 +243,6 @@ "version": "1.4.0", "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", - "dev": true, "requires": { "wrappy": "1" } @@ -286,26 +250,22 @@ "parsimmon": { "version": "1.13.0", "resolved": "https://registry.npmjs.org/parsimmon/-/parsimmon-1.13.0.tgz", - "integrity": "sha512-5UIrOCW+gjbILkjKPgTgmq8LKf8TT3Iy7kN2VD7OtQ81facKn8B4gG1X94jWqXYZsxG2KbJhrv/Yq/5H6BQn7A==", - "dev": true + "integrity": "sha512-5UIrOCW+gjbILkjKPgTgmq8LKf8TT3Iy7kN2VD7OtQ81facKn8B4gG1X94jWqXYZsxG2KbJhrv/Yq/5H6BQn7A==" }, "path-is-absolute": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", - "dev": true + "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=" }, "path-parse": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz", - "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==", - "dev": true + "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==" }, "resolve": { "version": "1.12.0", "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.12.0.tgz", "integrity": "sha512-B/dOmuoAik5bKcD6s6nXDCjzUKnaDvdkRyAk6rsmsKLipWj4797iothd7jmmUhWTfinVMU+wc56rYKsit2Qy4w==", - "dev": true, "requires": { "path-parse": "^1.0.6" } @@ -313,26 +273,22 @@ "semver": { "version": "5.7.1", "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", - "dev": true + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==" }, "sprintf-js": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", - "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", - "dev": true + "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=" }, "strip-json-comments": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", - "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=", - "dev": true + "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=" }, "supports-color": { "version": "5.5.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "dev": true, "requires": { "has-flag": "^3.0.0" } @@ -340,14 +296,12 @@ "tslib": { "version": "1.10.0", "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.10.0.tgz", - "integrity": "sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==", - "dev": true + "integrity": "sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==" }, "tslint": { "version": "5.20.0", "resolved": "https://registry.npmjs.org/tslint/-/tslint-5.20.0.tgz", "integrity": "sha512-2vqIvkMHbnx8acMogAERQ/IuINOq6DFqgF8/VDvhEkBqQh/x6SP0Y+OHnKth9/ZcHQSroOZwUQSN18v8KKF0/g==", - "dev": true, "requires": { "@babel/code-frame": "^7.0.0", "builtin-modules": "^1.1.1", @@ -368,7 +322,6 @@ "version": "2.29.0", "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-2.29.0.tgz", "integrity": "sha512-g5JVHCIJwzfISaXpXE1qvNalca5Jwob6FjI4AoPlqMusJ6ftFE7IkkFoMhVLRgK+4Kx3gkzb8UZK5t5yTTvEmA==", - "dev": true, "requires": { "tslib": "^1.8.1" } @@ -376,8 +329,7 @@ "typescript": { "version": "3.7.0-dev.20191015", "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.7.0-dev.20191015.tgz", - "integrity": "sha512-Cpfj1n4pEUVKL+jtS0mkZodJffyMmf3Wk/UjyZMGX4fsjK5KBPJf3NUlyXij8I8p1E2CAomdS5NPFrAR+z8pKw==", - "dev": true + "integrity": "sha512-Cpfj1n4pEUVKL+jtS0mkZodJffyMmf3Wk/UjyZMGX4fsjK5KBPJf3NUlyXij8I8p1E2CAomdS5NPFrAR+z8pKw==" }, "underscore": { "version": "1.9.1", @@ -387,14 +339,12 @@ "universalify": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", - "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", - "dev": true + "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==" }, "wrappy": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", - "dev": true + "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=" } } } diff --git a/packages/web3-eth/types/index.d.ts b/packages/web3-eth/types/index.d.ts index 255859d0f12..a9943ca334b 100644 --- a/packages/web3-eth/types/index.d.ts +++ b/packages/web3-eth/types/index.d.ts @@ -21,6 +21,7 @@ import { BatchRequest, + Extension, Log, PromiEvent, provider, @@ -30,6 +31,7 @@ import { TransactionConfig, TransactionReceipt } from 'web3-core'; +import { Subscription } from 'web3-core-subscriptions'; import { AbiCoder } from 'web3-eth-abi'; import { Accounts } from 'web3-eth-accounts'; import { Contract, ContractOptions } from 'web3-eth-contract'; @@ -61,6 +63,7 @@ export class Eth { setProvider(provider: provider): boolean; BatchRequest: new () => BatchRequest; static readonly providers: Providers; + extend(extension: Extension): any; clearSubscriptions(callback: (error: Error, result: boolean) => void): void; @@ -324,14 +327,6 @@ export class Eth { ): Promise; } -export interface Method { - name: string; - call: string; - params?: number; - inputFormatter?: Array<(() => void) | null>; - outputFormatter?: () => void; -} - export interface Syncing { StartingBlock: number; CurrentBlock: number; @@ -378,24 +373,6 @@ export interface LogsOptions { topics?: Array; } -export interface Subscription { - id: string; - options: any; - callback: any; - - subscribe(callback?: (error: Error, result: T) => void): Subscription; - - unsubscribe( - callback?: (error: Error, result: boolean) => void - ): Promise; - - on(type: 'data', handler: (data: T) => void): Subscription; - - on(type: 'changed', handler: (data: T) => void): Subscription; - - on(type: 'error', handler: (data: Error) => void): Subscription; -} - export interface GetProof { jsonrpc: string; id: number; diff --git a/packages/web3-eth/types/tests/eth.tests.ts b/packages/web3-eth/types/tests/eth.tests.ts index ca2f14ecb13..3c81bad5327 100644 --- a/packages/web3-eth/types/tests/eth.tests.ts +++ b/packages/web3-eth/types/tests/eth.tests.ts @@ -40,6 +40,9 @@ eth.personal; // $ExpectType Accounts eth.accounts; +// $ExpectType any +eth.extend({property: 'test', methods: [{name: 'method', call: 'method'}]}); + // $ExpectType Ens eth.ens; diff --git a/packages/web3-net/package-lock.json b/packages/web3-net/package-lock.json index b445748be24..99220917d66 100644 --- a/packages/web3-net/package-lock.json +++ b/packages/web3-net/package-lock.json @@ -1,14 +1,11 @@ { - "name": "web3-net", - "version": "1.2.1", - "lockfileVersion": 1, "requires": true, + "lockfileVersion": 1, "dependencies": { "@babel/code-frame": { "version": "7.5.5", "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.5.5.tgz", "integrity": "sha512-27d4lZoomVyo51VegxI20xZPuSHusqbQag/ztrBC7wegWoQ1nLREPVSKSW8byhTlzTKyNE4ifaTA6lCp7JjpFw==", - "dev": true, "requires": { "@babel/highlight": "^7.0.0" } @@ -17,7 +14,6 @@ "version": "7.5.0", "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.5.0.tgz", "integrity": "sha512-7dV4eu9gBxoM0dAnj/BCFDW9LFU0zvTrkq0ugM7pnHEgguOEeOz1so2ZghEdzviYzQEED0r4EAgpsBChKy1TRQ==", - "dev": true, "requires": { "chalk": "^2.0.0", "esutils": "^2.0.2", @@ -27,14 +23,12 @@ "@types/parsimmon": { "version": "1.10.0", "resolved": "https://registry.npmjs.org/@types/parsimmon/-/parsimmon-1.10.0.tgz", - "integrity": "sha512-bsTIJFVQv7jnvNiC42ld2pQW2KRI+pAG243L+iATvqzy3X6+NH1obz2itRKDZZ8VVhN3wjwYax/VBGCcXzgTqQ==", - "dev": true + "integrity": "sha512-bsTIJFVQv7jnvNiC42ld2pQW2KRI+pAG243L+iATvqzy3X6+NH1obz2itRKDZZ8VVhN3wjwYax/VBGCcXzgTqQ==" }, "ansi-styles": { "version": "3.2.1", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, "requires": { "color-convert": "^1.9.0" } @@ -43,7 +37,6 @@ "version": "1.0.10", "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", - "dev": true, "requires": { "sprintf-js": "~1.0.2" } @@ -51,14 +44,12 @@ "balanced-match": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", - "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", - "dev": true + "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=" }, "brace-expansion": { "version": "1.1.11", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "dev": true, "requires": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" @@ -67,14 +58,12 @@ "builtin-modules": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-1.1.1.tgz", - "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=", - "dev": true + "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=" }, "chalk": { "version": "2.4.2", "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", - "dev": true, "requires": { "ansi-styles": "^3.2.1", "escape-string-regexp": "^1.0.5", @@ -85,7 +74,6 @@ "version": "1.9.3", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", - "dev": true, "requires": { "color-name": "1.1.3" } @@ -93,26 +81,22 @@ "color-name": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", - "dev": true + "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=" }, "commander": { "version": "2.20.3", "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", - "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", - "dev": true + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==" }, "concat-map": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", - "dev": true + "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=" }, "definitelytyped-header-parser": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/definitelytyped-header-parser/-/definitelytyped-header-parser-1.2.0.tgz", "integrity": "sha512-xpg8uu/2YD/reaVsZV4oJ4g7UDYFqQGWvT1W9Tsj6q4VtWBSaig38Qgah0ZMnQGF9kAsAim08EXDO1nSi0+Nog==", - "dev": true, "requires": { "@types/parsimmon": "^1.3.0", "parsimmon": "^1.2.0" @@ -121,14 +105,12 @@ "diff": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.1.tgz", - "integrity": "sha512-s2+XdvhPCOF01LRQBC8hf4vhbVmI2CGS5aZnxLJlT5FtdhPCDFq80q++zK2KlrVorVDdL5BOGZ/VfLrVtYNF+Q==", - "dev": true + "integrity": "sha512-s2+XdvhPCOF01LRQBC8hf4vhbVmI2CGS5aZnxLJlT5FtdhPCDFq80q++zK2KlrVorVDdL5BOGZ/VfLrVtYNF+Q==" }, "dtslint": { "version": "0.4.2", "resolved": "https://registry.npmjs.org/dtslint/-/dtslint-0.4.2.tgz", "integrity": "sha512-ph4GXLw3HYzlQMJOFcpCqWHuL3MxJ/344OR7wn0wlQGchQGTIVNsSUl8iKEMatpy2geNMysgA9fQa6xVhHOkTQ==", - "dev": true, "requires": { "definitelytyped-header-parser": "github:Microsoft/definitelytyped-header-parser#production", "fs-extra": "^6.0.1", @@ -140,7 +122,6 @@ "definitelytyped-header-parser": { "version": "github:Microsoft/definitelytyped-header-parser#d957ad0bb2f4ecb60ac04f734e0b38fbc8e70b8a", "from": "github:Microsoft/definitelytyped-header-parser#production", - "dev": true, "requires": { "@types/parsimmon": "^1.3.0", "parsimmon": "^1.2.0" @@ -151,26 +132,22 @@ "escape-string-regexp": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", - "dev": true + "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=" }, "esprima": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", - "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", - "dev": true + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==" }, "esutils": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", - "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", - "dev": true + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==" }, "fs-extra": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-6.0.1.tgz", "integrity": "sha512-GnyIkKhhzXZUWFCaJzvyDLEEgDkPfb4/TPvJCJVuS8MWZgoSsErf++QpiAlDnKFcqhRlm+tIOcencCjyJE6ZCA==", - "dev": true, "requires": { "graceful-fs": "^4.1.2", "jsonfile": "^4.0.0", @@ -180,14 +157,12 @@ "fs.realpath": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", - "dev": true + "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=" }, "glob": { "version": "7.1.4", "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.4.tgz", "integrity": "sha512-hkLPepehmnKk41pUGm3sYxoFs/umurYfYJCerbXEyFIWcAzvpipAgVkBqqT9RBKMGjnq6kMuyYwha6csxbiM1A==", - "dev": true, "requires": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", @@ -200,20 +175,17 @@ "graceful-fs": { "version": "4.2.2", "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.2.tgz", - "integrity": "sha512-IItsdsea19BoLC7ELy13q1iJFNmd7ofZH5+X/pJr90/nRoPEX0DJo1dHDbgtYWOhJhcCgMDTOw84RZ72q6lB+Q==", - "dev": true + "integrity": "sha512-IItsdsea19BoLC7ELy13q1iJFNmd7ofZH5+X/pJr90/nRoPEX0DJo1dHDbgtYWOhJhcCgMDTOw84RZ72q6lB+Q==" }, "has-flag": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", - "dev": true + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=" }, "inflight": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", - "dev": true, "requires": { "once": "^1.3.0", "wrappy": "1" @@ -222,20 +194,17 @@ "inherits": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", - "dev": true + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" }, "js-tokens": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", - "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", - "dev": true + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==" }, "js-yaml": { "version": "3.13.1", "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.13.1.tgz", "integrity": "sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw==", - "dev": true, "requires": { "argparse": "^1.0.7", "esprima": "^4.0.0" @@ -245,7 +214,6 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", "integrity": "sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss=", - "dev": true, "requires": { "graceful-fs": "^4.1.6" } @@ -254,7 +222,6 @@ "version": "3.0.4", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", - "dev": true, "requires": { "brace-expansion": "^1.1.7" } @@ -262,14 +229,12 @@ "minimist": { "version": "0.0.8", "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", - "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=", - "dev": true + "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=" }, "mkdirp": { "version": "0.5.1", "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", - "dev": true, "requires": { "minimist": "0.0.8" } @@ -278,7 +243,6 @@ "version": "1.4.0", "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", - "dev": true, "requires": { "wrappy": "1" } @@ -286,26 +250,22 @@ "parsimmon": { "version": "1.13.0", "resolved": "https://registry.npmjs.org/parsimmon/-/parsimmon-1.13.0.tgz", - "integrity": "sha512-5UIrOCW+gjbILkjKPgTgmq8LKf8TT3Iy7kN2VD7OtQ81facKn8B4gG1X94jWqXYZsxG2KbJhrv/Yq/5H6BQn7A==", - "dev": true + "integrity": "sha512-5UIrOCW+gjbILkjKPgTgmq8LKf8TT3Iy7kN2VD7OtQ81facKn8B4gG1X94jWqXYZsxG2KbJhrv/Yq/5H6BQn7A==" }, "path-is-absolute": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", - "dev": true + "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=" }, "path-parse": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz", - "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==", - "dev": true + "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==" }, "resolve": { "version": "1.12.0", "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.12.0.tgz", "integrity": "sha512-B/dOmuoAik5bKcD6s6nXDCjzUKnaDvdkRyAk6rsmsKLipWj4797iothd7jmmUhWTfinVMU+wc56rYKsit2Qy4w==", - "dev": true, "requires": { "path-parse": "^1.0.6" } @@ -313,26 +273,22 @@ "semver": { "version": "5.7.1", "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", - "dev": true + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==" }, "sprintf-js": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", - "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", - "dev": true + "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=" }, "strip-json-comments": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", - "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=", - "dev": true + "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=" }, "supports-color": { "version": "5.5.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "dev": true, "requires": { "has-flag": "^3.0.0" } @@ -340,14 +296,12 @@ "tslib": { "version": "1.10.0", "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.10.0.tgz", - "integrity": "sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==", - "dev": true + "integrity": "sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==" }, "tslint": { "version": "5.20.0", "resolved": "https://registry.npmjs.org/tslint/-/tslint-5.20.0.tgz", "integrity": "sha512-2vqIvkMHbnx8acMogAERQ/IuINOq6DFqgF8/VDvhEkBqQh/x6SP0Y+OHnKth9/ZcHQSroOZwUQSN18v8KKF0/g==", - "dev": true, "requires": { "@babel/code-frame": "^7.0.0", "builtin-modules": "^1.1.1", @@ -368,7 +322,6 @@ "version": "2.29.0", "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-2.29.0.tgz", "integrity": "sha512-g5JVHCIJwzfISaXpXE1qvNalca5Jwob6FjI4AoPlqMusJ6ftFE7IkkFoMhVLRgK+4Kx3gkzb8UZK5t5yTTvEmA==", - "dev": true, "requires": { "tslib": "^1.8.1" } @@ -376,20 +329,17 @@ "typescript": { "version": "3.7.0-dev.20191015", "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.7.0-dev.20191015.tgz", - "integrity": "sha512-Cpfj1n4pEUVKL+jtS0mkZodJffyMmf3Wk/UjyZMGX4fsjK5KBPJf3NUlyXij8I8p1E2CAomdS5NPFrAR+z8pKw==", - "dev": true + "integrity": "sha512-Cpfj1n4pEUVKL+jtS0mkZodJffyMmf3Wk/UjyZMGX4fsjK5KBPJf3NUlyXij8I8p1E2CAomdS5NPFrAR+z8pKw==" }, "universalify": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", - "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", - "dev": true + "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==" }, "wrappy": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", - "dev": true + "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=" } } } diff --git a/packages/web3-net/types/tests/network-test.ts b/packages/web3-net/types/tests/network-test.ts index d43efeccb0e..c745516c825 100644 --- a/packages/web3-net/types/tests/network-test.ts +++ b/packages/web3-net/types/tests/network-test.ts @@ -21,6 +21,21 @@ import { Network } from 'web3-net'; const network = new Network('http://localhost:5000'); +// $ExpectType provider +network.currentProvider; + +// $ExpectType any +network.givenProvider; + +// $ExpectType boolean +network.setProvider('https://localhost:2100'); + +// $ExpectType BatchRequest +new network.BatchRequest(); + +// $ExpectType any +network.extend({property: 'test', methods: [{name: 'method', call: 'method'}]}); + // $ExpectType Promise network.getNetworkType((error, returnValue) => { console.log(returnValue); diff --git a/packages/web3-providers-http/package-lock.json b/packages/web3-providers-http/package-lock.json index 5e981a422c2..bdcd609f4fc 100644 --- a/packages/web3-providers-http/package-lock.json +++ b/packages/web3-providers-http/package-lock.json @@ -1,14 +1,11 @@ { - "name": "web3-providers-http", - "version": "1.2.1", - "lockfileVersion": 1, "requires": true, + "lockfileVersion": 1, "dependencies": { "@babel/code-frame": { "version": "7.5.5", "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.5.5.tgz", "integrity": "sha512-27d4lZoomVyo51VegxI20xZPuSHusqbQag/ztrBC7wegWoQ1nLREPVSKSW8byhTlzTKyNE4ifaTA6lCp7JjpFw==", - "dev": true, "requires": { "@babel/highlight": "^7.0.0" } @@ -17,7 +14,6 @@ "version": "7.5.0", "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.5.0.tgz", "integrity": "sha512-7dV4eu9gBxoM0dAnj/BCFDW9LFU0zvTrkq0ugM7pnHEgguOEeOz1so2ZghEdzviYzQEED0r4EAgpsBChKy1TRQ==", - "dev": true, "requires": { "chalk": "^2.0.0", "esutils": "^2.0.2", @@ -27,14 +23,12 @@ "@types/parsimmon": { "version": "1.10.0", "resolved": "https://registry.npmjs.org/@types/parsimmon/-/parsimmon-1.10.0.tgz", - "integrity": "sha512-bsTIJFVQv7jnvNiC42ld2pQW2KRI+pAG243L+iATvqzy3X6+NH1obz2itRKDZZ8VVhN3wjwYax/VBGCcXzgTqQ==", - "dev": true + "integrity": "sha512-bsTIJFVQv7jnvNiC42ld2pQW2KRI+pAG243L+iATvqzy3X6+NH1obz2itRKDZZ8VVhN3wjwYax/VBGCcXzgTqQ==" }, "ansi-styles": { "version": "3.2.1", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, "requires": { "color-convert": "^1.9.0" } @@ -43,7 +37,6 @@ "version": "1.0.10", "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", - "dev": true, "requires": { "sprintf-js": "~1.0.2" } @@ -51,14 +44,12 @@ "balanced-match": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", - "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", - "dev": true + "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=" }, "brace-expansion": { "version": "1.1.11", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "dev": true, "requires": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" @@ -67,14 +58,12 @@ "builtin-modules": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-1.1.1.tgz", - "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=", - "dev": true + "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=" }, "chalk": { "version": "2.4.2", "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", - "dev": true, "requires": { "ansi-styles": "^3.2.1", "escape-string-regexp": "^1.0.5", @@ -85,7 +74,6 @@ "version": "1.9.3", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", - "dev": true, "requires": { "color-name": "1.1.3" } @@ -93,20 +81,17 @@ "color-name": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", - "dev": true + "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=" }, "commander": { "version": "2.20.3", "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", - "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", - "dev": true + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==" }, "concat-map": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", - "dev": true + "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=" }, "cookiejar": { "version": "2.1.2", @@ -117,7 +102,6 @@ "version": "1.2.0", "resolved": "https://registry.npmjs.org/definitelytyped-header-parser/-/definitelytyped-header-parser-1.2.0.tgz", "integrity": "sha512-xpg8uu/2YD/reaVsZV4oJ4g7UDYFqQGWvT1W9Tsj6q4VtWBSaig38Qgah0ZMnQGF9kAsAim08EXDO1nSi0+Nog==", - "dev": true, "requires": { "@types/parsimmon": "^1.3.0", "parsimmon": "^1.2.0" @@ -126,14 +110,12 @@ "diff": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.1.tgz", - "integrity": "sha512-s2+XdvhPCOF01LRQBC8hf4vhbVmI2CGS5aZnxLJlT5FtdhPCDFq80q++zK2KlrVorVDdL5BOGZ/VfLrVtYNF+Q==", - "dev": true + "integrity": "sha512-s2+XdvhPCOF01LRQBC8hf4vhbVmI2CGS5aZnxLJlT5FtdhPCDFq80q++zK2KlrVorVDdL5BOGZ/VfLrVtYNF+Q==" }, "dtslint": { "version": "0.4.2", "resolved": "https://registry.npmjs.org/dtslint/-/dtslint-0.4.2.tgz", "integrity": "sha512-ph4GXLw3HYzlQMJOFcpCqWHuL3MxJ/344OR7wn0wlQGchQGTIVNsSUl8iKEMatpy2geNMysgA9fQa6xVhHOkTQ==", - "dev": true, "requires": { "definitelytyped-header-parser": "github:Microsoft/definitelytyped-header-parser#production", "fs-extra": "^6.0.1", @@ -145,7 +127,6 @@ "definitelytyped-header-parser": { "version": "github:Microsoft/definitelytyped-header-parser#d957ad0bb2f4ecb60ac04f734e0b38fbc8e70b8a", "from": "github:Microsoft/definitelytyped-header-parser#production", - "dev": true, "requires": { "@types/parsimmon": "^1.3.0", "parsimmon": "^1.2.0" @@ -156,26 +137,22 @@ "escape-string-regexp": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", - "dev": true + "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=" }, "esprima": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", - "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", - "dev": true + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==" }, "esutils": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", - "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", - "dev": true + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==" }, "fs-extra": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-6.0.1.tgz", "integrity": "sha512-GnyIkKhhzXZUWFCaJzvyDLEEgDkPfb4/TPvJCJVuS8MWZgoSsErf++QpiAlDnKFcqhRlm+tIOcencCjyJE6ZCA==", - "dev": true, "requires": { "graceful-fs": "^4.1.2", "jsonfile": "^4.0.0", @@ -185,14 +162,12 @@ "fs.realpath": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", - "dev": true + "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=" }, "glob": { "version": "7.1.4", "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.4.tgz", "integrity": "sha512-hkLPepehmnKk41pUGm3sYxoFs/umurYfYJCerbXEyFIWcAzvpipAgVkBqqT9RBKMGjnq6kMuyYwha6csxbiM1A==", - "dev": true, "requires": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", @@ -205,20 +180,17 @@ "graceful-fs": { "version": "4.2.2", "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.2.tgz", - "integrity": "sha512-IItsdsea19BoLC7ELy13q1iJFNmd7ofZH5+X/pJr90/nRoPEX0DJo1dHDbgtYWOhJhcCgMDTOw84RZ72q6lB+Q==", - "dev": true + "integrity": "sha512-IItsdsea19BoLC7ELy13q1iJFNmd7ofZH5+X/pJr90/nRoPEX0DJo1dHDbgtYWOhJhcCgMDTOw84RZ72q6lB+Q==" }, "has-flag": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", - "dev": true + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=" }, "inflight": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", - "dev": true, "requires": { "once": "^1.3.0", "wrappy": "1" @@ -227,20 +199,17 @@ "inherits": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", - "dev": true + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" }, "js-tokens": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", - "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", - "dev": true + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==" }, "js-yaml": { "version": "3.13.1", "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.13.1.tgz", "integrity": "sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw==", - "dev": true, "requires": { "argparse": "^1.0.7", "esprima": "^4.0.0" @@ -250,7 +219,6 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", "integrity": "sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss=", - "dev": true, "requires": { "graceful-fs": "^4.1.6" } @@ -259,7 +227,6 @@ "version": "3.0.4", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", - "dev": true, "requires": { "brace-expansion": "^1.1.7" } @@ -267,14 +234,12 @@ "minimist": { "version": "0.0.8", "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", - "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=", - "dev": true + "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=" }, "mkdirp": { "version": "0.5.1", "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", - "dev": true, "requires": { "minimist": "0.0.8" } @@ -283,7 +248,6 @@ "version": "1.4.0", "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", - "dev": true, "requires": { "wrappy": "1" } @@ -291,26 +255,22 @@ "parsimmon": { "version": "1.13.0", "resolved": "https://registry.npmjs.org/parsimmon/-/parsimmon-1.13.0.tgz", - "integrity": "sha512-5UIrOCW+gjbILkjKPgTgmq8LKf8TT3Iy7kN2VD7OtQ81facKn8B4gG1X94jWqXYZsxG2KbJhrv/Yq/5H6BQn7A==", - "dev": true + "integrity": "sha512-5UIrOCW+gjbILkjKPgTgmq8LKf8TT3Iy7kN2VD7OtQ81facKn8B4gG1X94jWqXYZsxG2KbJhrv/Yq/5H6BQn7A==" }, "path-is-absolute": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", - "dev": true + "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=" }, "path-parse": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz", - "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==", - "dev": true + "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==" }, "resolve": { "version": "1.12.0", "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.12.0.tgz", "integrity": "sha512-B/dOmuoAik5bKcD6s6nXDCjzUKnaDvdkRyAk6rsmsKLipWj4797iothd7jmmUhWTfinVMU+wc56rYKsit2Qy4w==", - "dev": true, "requires": { "path-parse": "^1.0.6" } @@ -318,26 +278,22 @@ "semver": { "version": "5.7.1", "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", - "dev": true + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==" }, "sprintf-js": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", - "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", - "dev": true + "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=" }, "strip-json-comments": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", - "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=", - "dev": true + "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=" }, "supports-color": { "version": "5.5.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "dev": true, "requires": { "has-flag": "^3.0.0" } @@ -345,14 +301,12 @@ "tslib": { "version": "1.10.0", "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.10.0.tgz", - "integrity": "sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==", - "dev": true + "integrity": "sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==" }, "tslint": { "version": "5.20.0", "resolved": "https://registry.npmjs.org/tslint/-/tslint-5.20.0.tgz", "integrity": "sha512-2vqIvkMHbnx8acMogAERQ/IuINOq6DFqgF8/VDvhEkBqQh/x6SP0Y+OHnKth9/ZcHQSroOZwUQSN18v8KKF0/g==", - "dev": true, "requires": { "@babel/code-frame": "^7.0.0", "builtin-modules": "^1.1.1", @@ -373,7 +327,6 @@ "version": "2.29.0", "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-2.29.0.tgz", "integrity": "sha512-g5JVHCIJwzfISaXpXE1qvNalca5Jwob6FjI4AoPlqMusJ6ftFE7IkkFoMhVLRgK+4Kx3gkzb8UZK5t5yTTvEmA==", - "dev": true, "requires": { "tslib": "^1.8.1" } @@ -381,20 +334,17 @@ "typescript": { "version": "3.7.0-dev.20191015", "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.7.0-dev.20191015.tgz", - "integrity": "sha512-Cpfj1n4pEUVKL+jtS0mkZodJffyMmf3Wk/UjyZMGX4fsjK5KBPJf3NUlyXij8I8p1E2CAomdS5NPFrAR+z8pKw==", - "dev": true + "integrity": "sha512-Cpfj1n4pEUVKL+jtS0mkZodJffyMmf3Wk/UjyZMGX4fsjK5KBPJf3NUlyXij8I8p1E2CAomdS5NPFrAR+z8pKw==" }, "universalify": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", - "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", - "dev": true + "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==" }, "wrappy": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", - "dev": true + "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=" }, "xhr2-cookies": { "version": "1.1.0", diff --git a/packages/web3-providers-ipc/package-lock.json b/packages/web3-providers-ipc/package-lock.json index 1c536a5f7db..92ea70c8899 100644 --- a/packages/web3-providers-ipc/package-lock.json +++ b/packages/web3-providers-ipc/package-lock.json @@ -1,14 +1,11 @@ { - "name": "web3-providers-ipc", - "version": "1.2.1", - "lockfileVersion": 1, "requires": true, + "lockfileVersion": 1, "dependencies": { "@babel/code-frame": { "version": "7.5.5", "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.5.5.tgz", "integrity": "sha512-27d4lZoomVyo51VegxI20xZPuSHusqbQag/ztrBC7wegWoQ1nLREPVSKSW8byhTlzTKyNE4ifaTA6lCp7JjpFw==", - "dev": true, "requires": { "@babel/highlight": "^7.0.0" } @@ -17,7 +14,6 @@ "version": "7.5.0", "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.5.0.tgz", "integrity": "sha512-7dV4eu9gBxoM0dAnj/BCFDW9LFU0zvTrkq0ugM7pnHEgguOEeOz1so2ZghEdzviYzQEED0r4EAgpsBChKy1TRQ==", - "dev": true, "requires": { "chalk": "^2.0.0", "esutils": "^2.0.2", @@ -27,14 +23,12 @@ "@types/parsimmon": { "version": "1.10.0", "resolved": "https://registry.npmjs.org/@types/parsimmon/-/parsimmon-1.10.0.tgz", - "integrity": "sha512-bsTIJFVQv7jnvNiC42ld2pQW2KRI+pAG243L+iATvqzy3X6+NH1obz2itRKDZZ8VVhN3wjwYax/VBGCcXzgTqQ==", - "dev": true + "integrity": "sha512-bsTIJFVQv7jnvNiC42ld2pQW2KRI+pAG243L+iATvqzy3X6+NH1obz2itRKDZZ8VVhN3wjwYax/VBGCcXzgTqQ==" }, "ajv": { "version": "6.10.2", "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.10.2.tgz", "integrity": "sha512-TXtUUEYHuaTEbLZWIKUr5pmBuhDLy+8KYtPYdcV8qC+pOZL+NKqYwvWSRrVXHn+ZmRRAu8vJTAznH7Oag6RVRw==", - "dev": true, "requires": { "fast-deep-equal": "^2.0.1", "fast-json-stable-stringify": "^2.0.0", @@ -45,14 +39,12 @@ "ansi-regex": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", - "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", - "dev": true + "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=" }, "ansi-styles": { "version": "3.2.1", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, "requires": { "color-convert": "^1.9.0" } @@ -61,7 +53,6 @@ "version": "1.0.10", "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", - "dev": true, "requires": { "sprintf-js": "~1.0.2" } @@ -70,7 +61,6 @@ "version": "0.2.4", "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.4.tgz", "integrity": "sha512-jxwzQpLQjSmWXgwaCZE9Nz+glAG01yF1QnWgbhGwHI5A6FRIEY6IVqtHhIepHqI7/kyEyQEagBC5mBEFlIYvdg==", - "dev": true, "requires": { "safer-buffer": "~2.1.0" } @@ -78,38 +68,32 @@ "assert-plus": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", - "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=", - "dev": true + "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=" }, "asynckit": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", - "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=", - "dev": true + "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=" }, "aws-sign2": { "version": "0.7.0", "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz", - "integrity": "sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg=", - "dev": true + "integrity": "sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg=" }, "aws4": { "version": "1.8.0", "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.8.0.tgz", - "integrity": "sha512-ReZxvNHIOv88FlT7rxcXIIC0fPt4KZqZbOlivyWtXLt8ESx84zd3kMC6iK5jVeS2qt+g7ftS7ye4fi06X5rtRQ==", - "dev": true + "integrity": "sha512-ReZxvNHIOv88FlT7rxcXIIC0fPt4KZqZbOlivyWtXLt8ESx84zd3kMC6iK5jVeS2qt+g7ftS7ye4fi06X5rtRQ==" }, "balanced-match": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", - "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", - "dev": true + "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=" }, "bcrypt-pbkdf": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz", "integrity": "sha1-pDAdOJtqQ/m2f/PKEaP2Y342Dp4=", - "dev": true, "requires": { "tweetnacl": "^0.14.3" } @@ -118,7 +102,6 @@ "version": "1.1.11", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "dev": true, "requires": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" @@ -127,26 +110,22 @@ "builtin-modules": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-1.1.1.tgz", - "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=", - "dev": true + "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=" }, "camelcase": { "version": "5.3.1", "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", - "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", - "dev": true + "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==" }, "caseless": { "version": "0.12.0", "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz", - "integrity": "sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw=", - "dev": true + "integrity": "sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw=" }, "chalk": { "version": "2.4.2", "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", - "dev": true, "requires": { "ansi-styles": "^3.2.1", "escape-string-regexp": "^1.0.5", @@ -157,7 +136,6 @@ "version": "4.1.0", "resolved": "https://registry.npmjs.org/cliui/-/cliui-4.1.0.tgz", "integrity": "sha512-4FG+RSG9DL7uEwRUZXZn3SS34DiDPfzP0VOiEwtUWlE+AR2EIg+hSyvrIgUUfhdgR/UkAeW2QHgeP+hWrXs7jQ==", - "dev": true, "requires": { "string-width": "^2.1.1", "strip-ansi": "^4.0.0", @@ -167,14 +145,12 @@ "code-point-at": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz", - "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=", - "dev": true + "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=" }, "color-convert": { "version": "1.9.3", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", - "dev": true, "requires": { "color-name": "1.1.3" } @@ -182,14 +158,12 @@ "color-name": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", - "dev": true + "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=" }, "combined-stream": { "version": "1.0.8", "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", - "dev": true, "requires": { "delayed-stream": "~1.0.0" } @@ -197,26 +171,22 @@ "commander": { "version": "2.20.3", "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", - "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", - "dev": true + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==" }, "concat-map": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", - "dev": true + "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=" }, "core-util-is": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", - "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=", - "dev": true + "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=" }, "cross-spawn": { "version": "6.0.5", "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz", "integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==", - "dev": true, "requires": { "nice-try": "^1.0.4", "path-key": "^2.0.1", @@ -229,7 +199,6 @@ "version": "1.14.1", "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz", "integrity": "sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA=", - "dev": true, "requires": { "assert-plus": "^1.0.0" } @@ -237,14 +206,12 @@ "decamelize": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", - "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=", - "dev": true + "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=" }, "definitelytyped-header-parser": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/definitelytyped-header-parser/-/definitelytyped-header-parser-1.2.0.tgz", "integrity": "sha512-xpg8uu/2YD/reaVsZV4oJ4g7UDYFqQGWvT1W9Tsj6q4VtWBSaig38Qgah0ZMnQGF9kAsAim08EXDO1nSi0+Nog==", - "dev": true, "requires": { "@types/parsimmon": "^1.3.0", "parsimmon": "^1.2.0" @@ -253,26 +220,22 @@ "delayed-stream": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", - "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=", - "dev": true + "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=" }, "diff": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.1.tgz", - "integrity": "sha512-s2+XdvhPCOF01LRQBC8hf4vhbVmI2CGS5aZnxLJlT5FtdhPCDFq80q++zK2KlrVorVDdL5BOGZ/VfLrVtYNF+Q==", - "dev": true + "integrity": "sha512-s2+XdvhPCOF01LRQBC8hf4vhbVmI2CGS5aZnxLJlT5FtdhPCDFq80q++zK2KlrVorVDdL5BOGZ/VfLrVtYNF+Q==" }, "download-file-sync": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/download-file-sync/-/download-file-sync-1.0.4.tgz", - "integrity": "sha1-0+PFQ/g29BA5RVuQNMcuNVsDYBk=", - "dev": true + "integrity": "sha1-0+PFQ/g29BA5RVuQNMcuNVsDYBk=" }, "dts-critic": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/dts-critic/-/dts-critic-1.2.0.tgz", "integrity": "sha512-z6VI1Sz7xxy0BgN6YsWuG9hbRIfph3U9hwrfNHLnLzsq865VYyjo5xKKUgXPuqMgJ04BUF1LGYQJ+kWyWwvUvQ==", - "dev": true, "requires": { "definitelytyped-header-parser": "^1.2.0", "download-file-sync": "^1.0.4", @@ -283,7 +246,6 @@ "version": "0.4.9", "resolved": "https://registry.npmjs.org/dtslint/-/dtslint-0.4.9.tgz", "integrity": "sha512-QKOfpKIcpJi38gXWQ1uzm/jFU+1xqPVjrow8PSgs1N7CeY819A0Lm1VvYdM4GD1i964B2QKUyJAAjWiK8YPzlA==", - "dev": true, "requires": { "definitelytyped-header-parser": "^1.0.1", "dts-critic": "^1.0.1", @@ -298,7 +260,6 @@ "version": "0.1.2", "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz", "integrity": "sha1-OoOpBOVDUyh4dMVkt1SThoSamMk=", - "dev": true, "requires": { "jsbn": "~0.1.0", "safer-buffer": "^2.1.0" @@ -308,7 +269,6 @@ "version": "1.4.4", "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", - "dev": true, "requires": { "once": "^1.4.0" } @@ -316,26 +276,22 @@ "escape-string-regexp": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", - "dev": true + "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=" }, "esprima": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", - "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", - "dev": true + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==" }, "esutils": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", - "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", - "dev": true + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==" }, "execa": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/execa/-/execa-1.0.0.tgz", "integrity": "sha512-adbxcyWV46qiHyvSp50TKt05tB4tK3HcmF7/nxfAdhnox83seTDbwnaqKO4sXRy7roHAIFqJP/Rw/AuEbX61LA==", - "dev": true, "requires": { "cross-spawn": "^6.0.0", "get-stream": "^4.0.0", @@ -349,32 +305,27 @@ "extend": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", - "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==", - "dev": true + "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==" }, "extsprintf": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz", - "integrity": "sha1-lpGEQOMEGnpBT4xS48V06zw+HgU=", - "dev": true + "integrity": "sha1-lpGEQOMEGnpBT4xS48V06zw+HgU=" }, "fast-deep-equal": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-2.0.1.tgz", - "integrity": "sha1-ewUhjd+WZ79/Nwv3/bLLFf3Qqkk=", - "dev": true + "integrity": "sha1-ewUhjd+WZ79/Nwv3/bLLFf3Qqkk=" }, "fast-json-stable-stringify": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.0.0.tgz", - "integrity": "sha1-1RQsDK7msRifh9OnYREGT4bIu/I=", - "dev": true + "integrity": "sha1-1RQsDK7msRifh9OnYREGT4bIu/I=" }, "find-up": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz", "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==", - "dev": true, "requires": { "locate-path": "^3.0.0" } @@ -382,14 +333,12 @@ "forever-agent": { "version": "0.6.1", "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz", - "integrity": "sha1-+8cfDEGt6zf5bFd60e1C2P2sypE=", - "dev": true + "integrity": "sha1-+8cfDEGt6zf5bFd60e1C2P2sypE=" }, "form-data": { "version": "2.3.3", "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.3.tgz", "integrity": "sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ==", - "dev": true, "requires": { "asynckit": "^0.4.0", "combined-stream": "^1.0.6", @@ -400,7 +349,6 @@ "version": "6.0.1", "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-6.0.1.tgz", "integrity": "sha512-GnyIkKhhzXZUWFCaJzvyDLEEgDkPfb4/TPvJCJVuS8MWZgoSsErf++QpiAlDnKFcqhRlm+tIOcencCjyJE6ZCA==", - "dev": true, "requires": { "graceful-fs": "^4.1.2", "jsonfile": "^4.0.0", @@ -410,20 +358,17 @@ "fs.realpath": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", - "dev": true + "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=" }, "get-caller-file": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-1.0.3.tgz", - "integrity": "sha512-3t6rVToeoZfYSGd8YoLFR2DJkiQrIiUrGcjvFX2mDw3bn6k2OtwHN0TNCLbBO+w8qTvimhDkv+LSscbJY1vE6w==", - "dev": true + "integrity": "sha512-3t6rVToeoZfYSGd8YoLFR2DJkiQrIiUrGcjvFX2mDw3bn6k2OtwHN0TNCLbBO+w8qTvimhDkv+LSscbJY1vE6w==" }, "get-stream": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-4.1.0.tgz", "integrity": "sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w==", - "dev": true, "requires": { "pump": "^3.0.0" } @@ -432,7 +377,6 @@ "version": "0.1.7", "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz", "integrity": "sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo=", - "dev": true, "requires": { "assert-plus": "^1.0.0" } @@ -441,7 +385,6 @@ "version": "7.1.4", "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.4.tgz", "integrity": "sha512-hkLPepehmnKk41pUGm3sYxoFs/umurYfYJCerbXEyFIWcAzvpipAgVkBqqT9RBKMGjnq6kMuyYwha6csxbiM1A==", - "dev": true, "requires": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", @@ -454,20 +397,17 @@ "graceful-fs": { "version": "4.2.2", "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.2.tgz", - "integrity": "sha512-IItsdsea19BoLC7ELy13q1iJFNmd7ofZH5+X/pJr90/nRoPEX0DJo1dHDbgtYWOhJhcCgMDTOw84RZ72q6lB+Q==", - "dev": true + "integrity": "sha512-IItsdsea19BoLC7ELy13q1iJFNmd7ofZH5+X/pJr90/nRoPEX0DJo1dHDbgtYWOhJhcCgMDTOw84RZ72q6lB+Q==" }, "har-schema": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz", - "integrity": "sha1-qUwiJOvKwEeCoNkDVSHyRzW37JI=", - "dev": true + "integrity": "sha1-qUwiJOvKwEeCoNkDVSHyRzW37JI=" }, "har-validator": { "version": "5.1.3", "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.1.3.tgz", "integrity": "sha512-sNvOCzEQNr/qrvJgc3UG/kD4QtlHycrzwS+6mfTrrSq97BvaYcPZZI1ZSqGSPR73Cxn4LKTD4PttRwfU7jWq5g==", - "dev": true, "requires": { "ajv": "^6.5.5", "har-schema": "^2.0.0" @@ -476,8 +416,7 @@ "has-flag": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", - "dev": true + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=" }, "http-https": { "version": "1.0.0", @@ -488,7 +427,6 @@ "version": "1.2.0", "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz", "integrity": "sha1-muzZJRFHcvPZW2WmCruPfBj7rOE=", - "dev": true, "requires": { "assert-plus": "^1.0.0", "jsprim": "^1.2.2", @@ -499,7 +437,6 @@ "version": "1.0.6", "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", - "dev": true, "requires": { "once": "^1.3.0", "wrappy": "1" @@ -508,56 +445,47 @@ "inherits": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", - "dev": true + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" }, "invert-kv": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/invert-kv/-/invert-kv-2.0.0.tgz", - "integrity": "sha512-wPVv/y/QQ/Uiirj/vh3oP+1Ww+AWehmi1g5fFWGPF6IpCBCDVrhgHRMvrLfdYcwDh3QJbGXDW4JAuzxElLSqKA==", - "dev": true + "integrity": "sha512-wPVv/y/QQ/Uiirj/vh3oP+1Ww+AWehmi1g5fFWGPF6IpCBCDVrhgHRMvrLfdYcwDh3QJbGXDW4JAuzxElLSqKA==" }, "is-fullwidth-code-point": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", - "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", - "dev": true + "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=" }, "is-stream": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", - "integrity": "sha1-EtSj3U5o4Lec6428hBc66A2RykQ=", - "dev": true + "integrity": "sha1-EtSj3U5o4Lec6428hBc66A2RykQ=" }, "is-typedarray": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", - "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=", - "dev": true + "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=" }, "isexe": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=", - "dev": true + "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=" }, "isstream": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz", - "integrity": "sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo=", - "dev": true + "integrity": "sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo=" }, "js-tokens": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", - "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", - "dev": true + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==" }, "js-yaml": { "version": "3.13.1", "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.13.1.tgz", "integrity": "sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw==", - "dev": true, "requires": { "argparse": "^1.0.7", "esprima": "^4.0.0" @@ -566,32 +494,27 @@ "jsbn": { "version": "0.1.1", "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz", - "integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM=", - "dev": true + "integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM=" }, "json-schema": { "version": "0.2.3", "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.2.3.tgz", - "integrity": "sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM=", - "dev": true + "integrity": "sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM=" }, "json-schema-traverse": { "version": "0.4.1", "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", - "dev": true + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==" }, "json-stringify-safe": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", - "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=", - "dev": true + "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=" }, "jsonfile": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", "integrity": "sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss=", - "dev": true, "requires": { "graceful-fs": "^4.1.6" } @@ -600,7 +523,6 @@ "version": "1.4.1", "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.1.tgz", "integrity": "sha1-MT5mvB5cwG5Di8G3SZwuXFastqI=", - "dev": true, "requires": { "assert-plus": "1.0.0", "extsprintf": "1.3.0", @@ -612,7 +534,6 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/lcid/-/lcid-2.0.0.tgz", "integrity": "sha512-avPEb8P8EGnwXKClwsNUgryVjllcRqtMYa49NTsbQagYuT1DcXnl1915oxWjoyGrXR6zH/Y0Zc96xWsPcoDKeA==", - "dev": true, "requires": { "invert-kv": "^2.0.0" } @@ -621,7 +542,6 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz", "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==", - "dev": true, "requires": { "p-locate": "^3.0.0", "path-exists": "^3.0.0" @@ -631,7 +551,6 @@ "version": "0.1.3", "resolved": "https://registry.npmjs.org/map-age-cleaner/-/map-age-cleaner-0.1.3.tgz", "integrity": "sha512-bJzx6nMoP6PDLPBFmg7+xRKeFZvFboMrGlxmNj9ClvX53KrmvM5bXFXEWjbz4cz1AFn+jWJ9z/DJSz7hrs0w3w==", - "dev": true, "requires": { "p-defer": "^1.0.0" } @@ -640,7 +559,6 @@ "version": "4.3.0", "resolved": "https://registry.npmjs.org/mem/-/mem-4.3.0.tgz", "integrity": "sha512-qX2bG48pTqYRVmDB37rn/6PT7LcR8T7oAX3bf99u1Tt1nzxYfxkgqDwUwolPlXweM0XzBOBFzSx4kfp7KP1s/w==", - "dev": true, "requires": { "map-age-cleaner": "^0.1.1", "mimic-fn": "^2.0.0", @@ -650,14 +568,12 @@ "mime-db": { "version": "1.40.0", "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.40.0.tgz", - "integrity": "sha512-jYdeOMPy9vnxEqFRRo6ZvTZ8d9oPb+k18PKoYNYUe2stVEBPPwsln/qWzdbmaIvnhZ9v2P+CuecK+fpUfsV2mA==", - "dev": true + "integrity": "sha512-jYdeOMPy9vnxEqFRRo6ZvTZ8d9oPb+k18PKoYNYUe2stVEBPPwsln/qWzdbmaIvnhZ9v2P+CuecK+fpUfsV2mA==" }, "mime-types": { "version": "2.1.24", "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.24.tgz", "integrity": "sha512-WaFHS3MCl5fapm3oLxU4eYDw77IQM2ACcxQ9RIxfaC3ooc6PFuBMGZZsYpvoXS5D5QTWPieo1jjLdAm3TBP3cQ==", - "dev": true, "requires": { "mime-db": "1.40.0" } @@ -665,14 +581,12 @@ "mimic-fn": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", - "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", - "dev": true + "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==" }, "minimatch": { "version": "3.0.4", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", - "dev": true, "requires": { "brace-expansion": "^1.1.7" } @@ -680,14 +594,12 @@ "minimist": { "version": "0.0.8", "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", - "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=", - "dev": true + "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=" }, "mkdirp": { "version": "0.5.1", "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", - "dev": true, "requires": { "minimist": "0.0.8" } @@ -695,14 +607,12 @@ "nice-try": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/nice-try/-/nice-try-1.0.5.tgz", - "integrity": "sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==", - "dev": true + "integrity": "sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==" }, "npm-run-path": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-2.0.2.tgz", "integrity": "sha1-NakjLfo11wZ7TLLd8jV7GHFTbF8=", - "dev": true, "requires": { "path-key": "^2.0.0" } @@ -710,14 +620,12 @@ "number-is-nan": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz", - "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=", - "dev": true + "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=" }, "oauth-sign": { "version": "0.9.0", "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.9.0.tgz", - "integrity": "sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ==", - "dev": true + "integrity": "sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ==" }, "oboe": { "version": "2.1.4", @@ -731,7 +639,6 @@ "version": "1.4.0", "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", - "dev": true, "requires": { "wrappy": "1" } @@ -740,7 +647,6 @@ "version": "3.1.0", "resolved": "https://registry.npmjs.org/os-locale/-/os-locale-3.1.0.tgz", "integrity": "sha512-Z8l3R4wYWM40/52Z+S265okfFj8Kt2cC2MKY+xNi3kFs+XGI7WXu/I309QQQYbRW4ijiZ+yxs9pqEhJh0DqW3Q==", - "dev": true, "requires": { "execa": "^1.0.0", "lcid": "^2.0.0", @@ -750,26 +656,22 @@ "p-defer": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/p-defer/-/p-defer-1.0.0.tgz", - "integrity": "sha1-n26xgvbJqozXQwBKfU+WsZaw+ww=", - "dev": true + "integrity": "sha1-n26xgvbJqozXQwBKfU+WsZaw+ww=" }, "p-finally": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz", - "integrity": "sha1-P7z7FbiZpEEjs0ttzBi3JDNqLK4=", - "dev": true + "integrity": "sha1-P7z7FbiZpEEjs0ttzBi3JDNqLK4=" }, "p-is-promise": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/p-is-promise/-/p-is-promise-2.1.0.tgz", - "integrity": "sha512-Y3W0wlRPK8ZMRbNq97l4M5otioeA5lm1z7bkNkxCka8HSPjR0xRWmpCmc9utiaLP9Jb1eD8BgeIxTW4AIF45Pg==", - "dev": true + "integrity": "sha512-Y3W0wlRPK8ZMRbNq97l4M5otioeA5lm1z7bkNkxCka8HSPjR0xRWmpCmc9utiaLP9Jb1eD8BgeIxTW4AIF45Pg==" }, "p-limit": { "version": "2.2.1", "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.2.1.tgz", "integrity": "sha512-85Tk+90UCVWvbDavCLKPOLC9vvY8OwEX/RtKF+/1OADJMVlFfEHOiMTPVyxg7mk/dKa+ipdHm0OUkTvCpMTuwg==", - "dev": true, "requires": { "p-try": "^2.0.0" } @@ -778,7 +680,6 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz", "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==", - "dev": true, "requires": { "p-limit": "^2.0.0" } @@ -786,56 +687,47 @@ "p-try": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", - "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", - "dev": true + "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==" }, "parsimmon": { "version": "1.13.0", "resolved": "https://registry.npmjs.org/parsimmon/-/parsimmon-1.13.0.tgz", - "integrity": "sha512-5UIrOCW+gjbILkjKPgTgmq8LKf8TT3Iy7kN2VD7OtQ81facKn8B4gG1X94jWqXYZsxG2KbJhrv/Yq/5H6BQn7A==", - "dev": true + "integrity": "sha512-5UIrOCW+gjbILkjKPgTgmq8LKf8TT3Iy7kN2VD7OtQ81facKn8B4gG1X94jWqXYZsxG2KbJhrv/Yq/5H6BQn7A==" }, "path-exists": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", - "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=", - "dev": true + "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=" }, "path-is-absolute": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", - "dev": true + "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=" }, "path-key": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz", - "integrity": "sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A=", - "dev": true + "integrity": "sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A=" }, "path-parse": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz", - "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==", - "dev": true + "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==" }, "performance-now": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz", - "integrity": "sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns=", - "dev": true + "integrity": "sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns=" }, "psl": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/psl/-/psl-1.4.0.tgz", - "integrity": "sha512-HZzqCGPecFLyoRj5HLfuDSKYTJkAfB5thKBIkRHtGjWwY7p1dAyveIbXIq4tO0KYfDF2tHqPUgY9SDnGm00uFw==", - "dev": true + "integrity": "sha512-HZzqCGPecFLyoRj5HLfuDSKYTJkAfB5thKBIkRHtGjWwY7p1dAyveIbXIq4tO0KYfDF2tHqPUgY9SDnGm00uFw==" }, "pump": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", - "dev": true, "requires": { "end-of-stream": "^1.1.0", "once": "^1.3.1" @@ -844,20 +736,17 @@ "punycode": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", - "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", - "dev": true + "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==" }, "qs": { "version": "6.5.2", "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.2.tgz", - "integrity": "sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA==", - "dev": true + "integrity": "sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA==" }, "request": { "version": "2.88.0", "resolved": "https://registry.npmjs.org/request/-/request-2.88.0.tgz", "integrity": "sha512-NAqBSrijGLZdM0WZNsInLJpkJokL72XYjUpnB0iwsRgxh7dB6COrHnTBNwN0E+lHDAJzu7kLAkDeY08z2/A0hg==", - "dev": true, "requires": { "aws-sign2": "~0.7.0", "aws4": "^1.8.0", @@ -884,20 +773,17 @@ "require-directory": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", - "integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I=", - "dev": true + "integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I=" }, "require-main-filename": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-1.0.1.tgz", - "integrity": "sha1-l/cXtp1IeE9fUmpsWqj/3aBVpNE=", - "dev": true + "integrity": "sha1-l/cXtp1IeE9fUmpsWqj/3aBVpNE=" }, "resolve": { "version": "1.12.0", "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.12.0.tgz", "integrity": "sha512-B/dOmuoAik5bKcD6s6nXDCjzUKnaDvdkRyAk6rsmsKLipWj4797iothd7jmmUhWTfinVMU+wc56rYKsit2Qy4w==", - "dev": true, "requires": { "path-parse": "^1.0.6" } @@ -905,32 +791,27 @@ "safe-buffer": { "version": "5.2.0", "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.0.tgz", - "integrity": "sha512-fZEwUGbVl7kouZs1jCdMLdt95hdIv0ZeHg6L7qPeciMZhZ+/gdesW4wgTARkrFWEpspjEATAzUGPG8N2jJiwbg==", - "dev": true + "integrity": "sha512-fZEwUGbVl7kouZs1jCdMLdt95hdIv0ZeHg6L7qPeciMZhZ+/gdesW4wgTARkrFWEpspjEATAzUGPG8N2jJiwbg==" }, "safer-buffer": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", - "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", - "dev": true + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" }, "semver": { "version": "5.7.1", "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", - "dev": true + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==" }, "set-blocking": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", - "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=", - "dev": true + "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=" }, "shebang-command": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", "integrity": "sha1-RKrGW2lbAzmJaMOfNj/uXer98eo=", - "dev": true, "requires": { "shebang-regex": "^1.0.0" } @@ -938,26 +819,22 @@ "shebang-regex": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz", - "integrity": "sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM=", - "dev": true + "integrity": "sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM=" }, "signal-exit": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.2.tgz", - "integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=", - "dev": true + "integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=" }, "sprintf-js": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", - "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", - "dev": true + "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=" }, "sshpk": { "version": "1.16.1", "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.16.1.tgz", "integrity": "sha512-HXXqVUq7+pcKeLqqZj6mHFUMvXtOJt1uoUx09pFW6011inTMxqI8BA8PM95myrIyyKwdnzjdFjLiE6KBPVtJIg==", - "dev": true, "requires": { "asn1": "~0.2.3", "assert-plus": "^1.0.0", @@ -974,7 +851,6 @@ "version": "2.1.1", "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", - "dev": true, "requires": { "is-fullwidth-code-point": "^2.0.0", "strip-ansi": "^4.0.0" @@ -984,7 +860,6 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", - "dev": true, "requires": { "ansi-regex": "^3.0.0" } @@ -992,20 +867,17 @@ "strip-eof": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/strip-eof/-/strip-eof-1.0.0.tgz", - "integrity": "sha1-u0P/VZim6wXYm1n80SnJgzE2Br8=", - "dev": true + "integrity": "sha1-u0P/VZim6wXYm1n80SnJgzE2Br8=" }, "strip-json-comments": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", - "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=", - "dev": true + "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=" }, "supports-color": { "version": "5.5.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "dev": true, "requires": { "has-flag": "^3.0.0" } @@ -1014,7 +886,6 @@ "version": "2.4.3", "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.4.3.tgz", "integrity": "sha512-Q5srk/4vDM54WJsJio3XNn6K2sCG+CQ8G5Wz6bZhRZoAe/+TxjWB/GlFAnYEbkYVlON9FMk/fE3h2RLpPXo4lQ==", - "dev": true, "requires": { "psl": "^1.1.24", "punycode": "^1.4.1" @@ -1023,22 +894,19 @@ "punycode": { "version": "1.4.1", "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz", - "integrity": "sha1-wNWmOycYgArY4esPpSachN1BhF4=", - "dev": true + "integrity": "sha1-wNWmOycYgArY4esPpSachN1BhF4=" } } }, "tslib": { "version": "1.10.0", "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.10.0.tgz", - "integrity": "sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==", - "dev": true + "integrity": "sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==" }, "tslint": { "version": "5.20.0", "resolved": "https://registry.npmjs.org/tslint/-/tslint-5.20.0.tgz", "integrity": "sha512-2vqIvkMHbnx8acMogAERQ/IuINOq6DFqgF8/VDvhEkBqQh/x6SP0Y+OHnKth9/ZcHQSroOZwUQSN18v8KKF0/g==", - "dev": true, "requires": { "@babel/code-frame": "^7.0.0", "builtin-modules": "^1.1.1", @@ -1059,7 +927,6 @@ "version": "2.29.0", "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-2.29.0.tgz", "integrity": "sha512-g5JVHCIJwzfISaXpXE1qvNalca5Jwob6FjI4AoPlqMusJ6ftFE7IkkFoMhVLRgK+4Kx3gkzb8UZK5t5yTTvEmA==", - "dev": true, "requires": { "tslib": "^1.8.1" } @@ -1068,7 +935,6 @@ "version": "0.6.0", "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", "integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=", - "dev": true, "requires": { "safe-buffer": "^5.0.1" } @@ -1076,14 +942,12 @@ "tweetnacl": { "version": "0.14.5", "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz", - "integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q=", - "dev": true + "integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q=" }, "typescript": { "version": "3.7.0-dev.20191015", "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.7.0-dev.20191015.tgz", - "integrity": "sha512-Cpfj1n4pEUVKL+jtS0mkZodJffyMmf3Wk/UjyZMGX4fsjK5KBPJf3NUlyXij8I8p1E2CAomdS5NPFrAR+z8pKw==", - "dev": true + "integrity": "sha512-Cpfj1n4pEUVKL+jtS0mkZodJffyMmf3Wk/UjyZMGX4fsjK5KBPJf3NUlyXij8I8p1E2CAomdS5NPFrAR+z8pKw==" }, "underscore": { "version": "1.9.1", @@ -1093,14 +957,12 @@ "universalify": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", - "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", - "dev": true + "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==" }, "uri-js": { "version": "4.2.2", "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.2.2.tgz", "integrity": "sha512-KY9Frmirql91X2Qgjry0Wd4Y+YTdrdZheS8TFwvkbLWf/G5KNJDCh6pKL5OZctEW4+0Baa5idK2ZQuELRwPznQ==", - "dev": true, "requires": { "punycode": "^2.1.0" } @@ -1108,14 +970,12 @@ "uuid": { "version": "3.3.3", "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.3.3.tgz", - "integrity": "sha512-pW0No1RGHgzlpHJO1nsVrHKpOEIxkGg1xB+v0ZmdNH5OAeAwzAVrCnI2/6Mtx+Uys6iaylxa+D3g4j63IKKjSQ==", - "dev": true + "integrity": "sha512-pW0No1RGHgzlpHJO1nsVrHKpOEIxkGg1xB+v0ZmdNH5OAeAwzAVrCnI2/6Mtx+Uys6iaylxa+D3g4j63IKKjSQ==" }, "verror": { "version": "1.10.0", "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz", "integrity": "sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA=", - "dev": true, "requires": { "assert-plus": "^1.0.0", "core-util-is": "1.0.2", @@ -1126,7 +986,6 @@ "version": "1.3.1", "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", - "dev": true, "requires": { "isexe": "^2.0.0" } @@ -1134,14 +993,12 @@ "which-module": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.0.tgz", - "integrity": "sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=", - "dev": true + "integrity": "sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=" }, "wrap-ansi": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-2.1.0.tgz", "integrity": "sha1-2Pw9KE3QV5T+hJc8rs3Rz4JP3YU=", - "dev": true, "requires": { "string-width": "^1.0.1", "strip-ansi": "^3.0.1" @@ -1150,14 +1007,12 @@ "ansi-regex": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", - "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", - "dev": true + "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=" }, "is-fullwidth-code-point": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz", "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=", - "dev": true, "requires": { "number-is-nan": "^1.0.0" } @@ -1166,7 +1021,6 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", - "dev": true, "requires": { "code-point-at": "^1.0.0", "is-fullwidth-code-point": "^1.0.0", @@ -1177,7 +1031,6 @@ "version": "3.0.1", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", - "dev": true, "requires": { "ansi-regex": "^2.0.0" } @@ -1187,20 +1040,17 @@ "wrappy": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", - "dev": true + "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=" }, "y18n": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.0.tgz", - "integrity": "sha512-r9S/ZyXu/Xu9q1tYlpsLIsa3EeLXXk0VwlxqTcFRfg9EhMW+17kbt9G0NrgCmhGb5vT2hyhJZLfDGx+7+5Uj/w==", - "dev": true + "integrity": "sha512-r9S/ZyXu/Xu9q1tYlpsLIsa3EeLXXk0VwlxqTcFRfg9EhMW+17kbt9G0NrgCmhGb5vT2hyhJZLfDGx+7+5Uj/w==" }, "yargs": { "version": "12.0.5", "resolved": "https://registry.npmjs.org/yargs/-/yargs-12.0.5.tgz", "integrity": "sha512-Lhz8TLaYnxq/2ObqHDql8dX8CJi97oHxrjUcYtzKbbykPtVW9WB+poxI+NM2UIzsMgNCZTIf0AQwsjK5yMAqZw==", - "dev": true, "requires": { "cliui": "^4.0.0", "decamelize": "^1.2.0", @@ -1220,7 +1070,6 @@ "version": "11.1.1", "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-11.1.1.tgz", "integrity": "sha512-C6kB/WJDiaxONLJQnF8ccx9SEeoTTLek8RVbaOIsrAUS8VrBEXfmeSnCZxygc+XC2sNMBIwOOnfcxiynjHsVSQ==", - "dev": true, "requires": { "camelcase": "^5.0.0", "decamelize": "^1.2.0" diff --git a/packages/web3-providers-ws/package-lock.json b/packages/web3-providers-ws/package-lock.json index b1de2e3bc44..b022eece43b 100644 --- a/packages/web3-providers-ws/package-lock.json +++ b/packages/web3-providers-ws/package-lock.json @@ -1,14 +1,11 @@ { - "name": "web3-providers-ws", - "version": "1.2.1", - "lockfileVersion": 1, "requires": true, + "lockfileVersion": 1, "dependencies": { "@babel/code-frame": { "version": "7.5.5", "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.5.5.tgz", "integrity": "sha512-27d4lZoomVyo51VegxI20xZPuSHusqbQag/ztrBC7wegWoQ1nLREPVSKSW8byhTlzTKyNE4ifaTA6lCp7JjpFw==", - "dev": true, "requires": { "@babel/highlight": "^7.0.0" } @@ -17,7 +14,6 @@ "version": "7.5.0", "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.5.0.tgz", "integrity": "sha512-7dV4eu9gBxoM0dAnj/BCFDW9LFU0zvTrkq0ugM7pnHEgguOEeOz1so2ZghEdzviYzQEED0r4EAgpsBChKy1TRQ==", - "dev": true, "requires": { "chalk": "^2.0.0", "esutils": "^2.0.2", @@ -27,14 +23,12 @@ "@types/parsimmon": { "version": "1.10.0", "resolved": "https://registry.npmjs.org/@types/parsimmon/-/parsimmon-1.10.0.tgz", - "integrity": "sha512-bsTIJFVQv7jnvNiC42ld2pQW2KRI+pAG243L+iATvqzy3X6+NH1obz2itRKDZZ8VVhN3wjwYax/VBGCcXzgTqQ==", - "dev": true + "integrity": "sha512-bsTIJFVQv7jnvNiC42ld2pQW2KRI+pAG243L+iATvqzy3X6+NH1obz2itRKDZZ8VVhN3wjwYax/VBGCcXzgTqQ==" }, "ajv": { "version": "6.10.2", "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.10.2.tgz", "integrity": "sha512-TXtUUEYHuaTEbLZWIKUr5pmBuhDLy+8KYtPYdcV8qC+pOZL+NKqYwvWSRrVXHn+ZmRRAu8vJTAznH7Oag6RVRw==", - "dev": true, "requires": { "fast-deep-equal": "^2.0.1", "fast-json-stable-stringify": "^2.0.0", @@ -45,14 +39,12 @@ "ansi-regex": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", - "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", - "dev": true + "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=" }, "ansi-styles": { "version": "3.2.1", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, "requires": { "color-convert": "^1.9.0" } @@ -61,7 +53,6 @@ "version": "1.0.10", "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", - "dev": true, "requires": { "sprintf-js": "~1.0.2" } @@ -70,7 +61,6 @@ "version": "0.2.4", "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.4.tgz", "integrity": "sha512-jxwzQpLQjSmWXgwaCZE9Nz+glAG01yF1QnWgbhGwHI5A6FRIEY6IVqtHhIepHqI7/kyEyQEagBC5mBEFlIYvdg==", - "dev": true, "requires": { "safer-buffer": "~2.1.0" } @@ -78,38 +68,32 @@ "assert-plus": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", - "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=", - "dev": true + "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=" }, "asynckit": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", - "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=", - "dev": true + "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=" }, "aws-sign2": { "version": "0.7.0", "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz", - "integrity": "sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg=", - "dev": true + "integrity": "sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg=" }, "aws4": { "version": "1.8.0", "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.8.0.tgz", - "integrity": "sha512-ReZxvNHIOv88FlT7rxcXIIC0fPt4KZqZbOlivyWtXLt8ESx84zd3kMC6iK5jVeS2qt+g7ftS7ye4fi06X5rtRQ==", - "dev": true + "integrity": "sha512-ReZxvNHIOv88FlT7rxcXIIC0fPt4KZqZbOlivyWtXLt8ESx84zd3kMC6iK5jVeS2qt+g7ftS7ye4fi06X5rtRQ==" }, "balanced-match": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", - "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", - "dev": true + "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=" }, "bcrypt-pbkdf": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz", "integrity": "sha1-pDAdOJtqQ/m2f/PKEaP2Y342Dp4=", - "dev": true, "requires": { "tweetnacl": "^0.14.3" } @@ -118,7 +102,6 @@ "version": "1.1.11", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "dev": true, "requires": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" @@ -127,26 +110,22 @@ "builtin-modules": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-1.1.1.tgz", - "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=", - "dev": true + "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=" }, "camelcase": { "version": "5.3.1", "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", - "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", - "dev": true + "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==" }, "caseless": { "version": "0.12.0", "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz", - "integrity": "sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw=", - "dev": true + "integrity": "sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw=" }, "chalk": { "version": "2.4.2", "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", - "dev": true, "requires": { "ansi-styles": "^3.2.1", "escape-string-regexp": "^1.0.5", @@ -157,7 +136,6 @@ "version": "4.1.0", "resolved": "https://registry.npmjs.org/cliui/-/cliui-4.1.0.tgz", "integrity": "sha512-4FG+RSG9DL7uEwRUZXZn3SS34DiDPfzP0VOiEwtUWlE+AR2EIg+hSyvrIgUUfhdgR/UkAeW2QHgeP+hWrXs7jQ==", - "dev": true, "requires": { "string-width": "^2.1.1", "strip-ansi": "^4.0.0", @@ -167,14 +145,12 @@ "code-point-at": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz", - "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=", - "dev": true + "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=" }, "color-convert": { "version": "1.9.3", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", - "dev": true, "requires": { "color-name": "1.1.3" } @@ -182,14 +158,12 @@ "color-name": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", - "dev": true + "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=" }, "combined-stream": { "version": "1.0.8", "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", - "dev": true, "requires": { "delayed-stream": "~1.0.0" } @@ -197,26 +171,22 @@ "commander": { "version": "2.20.3", "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", - "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", - "dev": true + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==" }, "concat-map": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", - "dev": true + "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=" }, "core-util-is": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", - "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=", - "dev": true + "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=" }, "cross-spawn": { "version": "6.0.5", "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz", "integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==", - "dev": true, "requires": { "nice-try": "^1.0.4", "path-key": "^2.0.1", @@ -238,7 +208,6 @@ "version": "1.14.1", "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz", "integrity": "sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA=", - "dev": true, "requires": { "assert-plus": "^1.0.0" } @@ -254,14 +223,12 @@ "decamelize": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", - "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=", - "dev": true + "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=" }, "definitelytyped-header-parser": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/definitelytyped-header-parser/-/definitelytyped-header-parser-1.2.0.tgz", "integrity": "sha512-xpg8uu/2YD/reaVsZV4oJ4g7UDYFqQGWvT1W9Tsj6q4VtWBSaig38Qgah0ZMnQGF9kAsAim08EXDO1nSi0+Nog==", - "dev": true, "requires": { "@types/parsimmon": "^1.3.0", "parsimmon": "^1.2.0" @@ -270,26 +237,22 @@ "delayed-stream": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", - "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=", - "dev": true + "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=" }, "diff": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.1.tgz", - "integrity": "sha512-s2+XdvhPCOF01LRQBC8hf4vhbVmI2CGS5aZnxLJlT5FtdhPCDFq80q++zK2KlrVorVDdL5BOGZ/VfLrVtYNF+Q==", - "dev": true + "integrity": "sha512-s2+XdvhPCOF01LRQBC8hf4vhbVmI2CGS5aZnxLJlT5FtdhPCDFq80q++zK2KlrVorVDdL5BOGZ/VfLrVtYNF+Q==" }, "download-file-sync": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/download-file-sync/-/download-file-sync-1.0.4.tgz", - "integrity": "sha1-0+PFQ/g29BA5RVuQNMcuNVsDYBk=", - "dev": true + "integrity": "sha1-0+PFQ/g29BA5RVuQNMcuNVsDYBk=" }, "dts-critic": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/dts-critic/-/dts-critic-1.2.0.tgz", "integrity": "sha512-z6VI1Sz7xxy0BgN6YsWuG9hbRIfph3U9hwrfNHLnLzsq865VYyjo5xKKUgXPuqMgJ04BUF1LGYQJ+kWyWwvUvQ==", - "dev": true, "requires": { "definitelytyped-header-parser": "^1.2.0", "download-file-sync": "^1.0.4", @@ -300,7 +263,6 @@ "version": "0.4.9", "resolved": "https://registry.npmjs.org/dtslint/-/dtslint-0.4.9.tgz", "integrity": "sha512-QKOfpKIcpJi38gXWQ1uzm/jFU+1xqPVjrow8PSgs1N7CeY819A0Lm1VvYdM4GD1i964B2QKUyJAAjWiK8YPzlA==", - "dev": true, "requires": { "definitelytyped-header-parser": "^1.0.1", "dts-critic": "^1.0.1", @@ -315,7 +277,6 @@ "version": "0.1.2", "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz", "integrity": "sha1-OoOpBOVDUyh4dMVkt1SThoSamMk=", - "dev": true, "requires": { "jsbn": "~0.1.0", "safer-buffer": "^2.1.0" @@ -325,7 +286,6 @@ "version": "1.4.4", "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", - "dev": true, "requires": { "once": "^1.4.0" } @@ -362,26 +322,22 @@ "escape-string-regexp": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", - "dev": true + "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=" }, "esprima": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", - "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", - "dev": true + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==" }, "esutils": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", - "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", - "dev": true + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==" }, "execa": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/execa/-/execa-1.0.0.tgz", "integrity": "sha512-adbxcyWV46qiHyvSp50TKt05tB4tK3HcmF7/nxfAdhnox83seTDbwnaqKO4sXRy7roHAIFqJP/Rw/AuEbX61LA==", - "dev": true, "requires": { "cross-spawn": "^6.0.0", "get-stream": "^4.0.0", @@ -395,32 +351,27 @@ "extend": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", - "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==", - "dev": true + "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==" }, "extsprintf": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz", - "integrity": "sha1-lpGEQOMEGnpBT4xS48V06zw+HgU=", - "dev": true + "integrity": "sha1-lpGEQOMEGnpBT4xS48V06zw+HgU=" }, "fast-deep-equal": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-2.0.1.tgz", - "integrity": "sha1-ewUhjd+WZ79/Nwv3/bLLFf3Qqkk=", - "dev": true + "integrity": "sha1-ewUhjd+WZ79/Nwv3/bLLFf3Qqkk=" }, "fast-json-stable-stringify": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.0.0.tgz", - "integrity": "sha1-1RQsDK7msRifh9OnYREGT4bIu/I=", - "dev": true + "integrity": "sha1-1RQsDK7msRifh9OnYREGT4bIu/I=" }, "find-up": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz", "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==", - "dev": true, "requires": { "locate-path": "^3.0.0" } @@ -428,14 +379,12 @@ "forever-agent": { "version": "0.6.1", "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz", - "integrity": "sha1-+8cfDEGt6zf5bFd60e1C2P2sypE=", - "dev": true + "integrity": "sha1-+8cfDEGt6zf5bFd60e1C2P2sypE=" }, "form-data": { "version": "2.3.3", "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.3.tgz", "integrity": "sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ==", - "dev": true, "requires": { "asynckit": "^0.4.0", "combined-stream": "^1.0.6", @@ -446,7 +395,6 @@ "version": "6.0.1", "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-6.0.1.tgz", "integrity": "sha512-GnyIkKhhzXZUWFCaJzvyDLEEgDkPfb4/TPvJCJVuS8MWZgoSsErf++QpiAlDnKFcqhRlm+tIOcencCjyJE6ZCA==", - "dev": true, "requires": { "graceful-fs": "^4.1.2", "jsonfile": "^4.0.0", @@ -456,20 +404,17 @@ "fs.realpath": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", - "dev": true + "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=" }, "get-caller-file": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-1.0.3.tgz", - "integrity": "sha512-3t6rVToeoZfYSGd8YoLFR2DJkiQrIiUrGcjvFX2mDw3bn6k2OtwHN0TNCLbBO+w8qTvimhDkv+LSscbJY1vE6w==", - "dev": true + "integrity": "sha512-3t6rVToeoZfYSGd8YoLFR2DJkiQrIiUrGcjvFX2mDw3bn6k2OtwHN0TNCLbBO+w8qTvimhDkv+LSscbJY1vE6w==" }, "get-stream": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-4.1.0.tgz", "integrity": "sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w==", - "dev": true, "requires": { "pump": "^3.0.0" } @@ -478,7 +423,6 @@ "version": "0.1.7", "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz", "integrity": "sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo=", - "dev": true, "requires": { "assert-plus": "^1.0.0" } @@ -487,7 +431,6 @@ "version": "7.1.4", "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.4.tgz", "integrity": "sha512-hkLPepehmnKk41pUGm3sYxoFs/umurYfYJCerbXEyFIWcAzvpipAgVkBqqT9RBKMGjnq6kMuyYwha6csxbiM1A==", - "dev": true, "requires": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", @@ -500,20 +443,17 @@ "graceful-fs": { "version": "4.2.2", "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.2.tgz", - "integrity": "sha512-IItsdsea19BoLC7ELy13q1iJFNmd7ofZH5+X/pJr90/nRoPEX0DJo1dHDbgtYWOhJhcCgMDTOw84RZ72q6lB+Q==", - "dev": true + "integrity": "sha512-IItsdsea19BoLC7ELy13q1iJFNmd7ofZH5+X/pJr90/nRoPEX0DJo1dHDbgtYWOhJhcCgMDTOw84RZ72q6lB+Q==" }, "har-schema": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz", - "integrity": "sha1-qUwiJOvKwEeCoNkDVSHyRzW37JI=", - "dev": true + "integrity": "sha1-qUwiJOvKwEeCoNkDVSHyRzW37JI=" }, "har-validator": { "version": "5.1.3", "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.1.3.tgz", "integrity": "sha512-sNvOCzEQNr/qrvJgc3UG/kD4QtlHycrzwS+6mfTrrSq97BvaYcPZZI1ZSqGSPR73Cxn4LKTD4PttRwfU7jWq5g==", - "dev": true, "requires": { "ajv": "^6.5.5", "har-schema": "^2.0.0" @@ -522,14 +462,12 @@ "has-flag": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", - "dev": true + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=" }, "http-signature": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz", "integrity": "sha1-muzZJRFHcvPZW2WmCruPfBj7rOE=", - "dev": true, "requires": { "assert-plus": "^1.0.0", "jsprim": "^1.2.2", @@ -540,7 +478,6 @@ "version": "1.0.6", "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", - "dev": true, "requires": { "once": "^1.3.0", "wrappy": "1" @@ -549,26 +486,22 @@ "inherits": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", - "dev": true + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" }, "invert-kv": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/invert-kv/-/invert-kv-2.0.0.tgz", - "integrity": "sha512-wPVv/y/QQ/Uiirj/vh3oP+1Ww+AWehmi1g5fFWGPF6IpCBCDVrhgHRMvrLfdYcwDh3QJbGXDW4JAuzxElLSqKA==", - "dev": true + "integrity": "sha512-wPVv/y/QQ/Uiirj/vh3oP+1Ww+AWehmi1g5fFWGPF6IpCBCDVrhgHRMvrLfdYcwDh3QJbGXDW4JAuzxElLSqKA==" }, "is-fullwidth-code-point": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", - "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", - "dev": true + "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=" }, "is-stream": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", - "integrity": "sha1-EtSj3U5o4Lec6428hBc66A2RykQ=", - "dev": true + "integrity": "sha1-EtSj3U5o4Lec6428hBc66A2RykQ=" }, "is-typedarray": { "version": "1.0.0", @@ -578,26 +511,22 @@ "isexe": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=", - "dev": true + "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=" }, "isstream": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz", - "integrity": "sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo=", - "dev": true + "integrity": "sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo=" }, "js-tokens": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", - "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", - "dev": true + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==" }, "js-yaml": { "version": "3.13.1", "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.13.1.tgz", "integrity": "sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw==", - "dev": true, "requires": { "argparse": "^1.0.7", "esprima": "^4.0.0" @@ -606,32 +535,27 @@ "jsbn": { "version": "0.1.1", "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz", - "integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM=", - "dev": true + "integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM=" }, "json-schema": { "version": "0.2.3", "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.2.3.tgz", - "integrity": "sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM=", - "dev": true + "integrity": "sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM=" }, "json-schema-traverse": { "version": "0.4.1", "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", - "dev": true + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==" }, "json-stringify-safe": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", - "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=", - "dev": true + "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=" }, "jsonfile": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", "integrity": "sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss=", - "dev": true, "requires": { "graceful-fs": "^4.1.6" } @@ -640,7 +564,6 @@ "version": "1.4.1", "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.1.tgz", "integrity": "sha1-MT5mvB5cwG5Di8G3SZwuXFastqI=", - "dev": true, "requires": { "assert-plus": "1.0.0", "extsprintf": "1.3.0", @@ -652,7 +575,6 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/lcid/-/lcid-2.0.0.tgz", "integrity": "sha512-avPEb8P8EGnwXKClwsNUgryVjllcRqtMYa49NTsbQagYuT1DcXnl1915oxWjoyGrXR6zH/Y0Zc96xWsPcoDKeA==", - "dev": true, "requires": { "invert-kv": "^2.0.0" } @@ -661,7 +583,6 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz", "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==", - "dev": true, "requires": { "p-locate": "^3.0.0", "path-exists": "^3.0.0" @@ -671,7 +592,6 @@ "version": "0.1.3", "resolved": "https://registry.npmjs.org/map-age-cleaner/-/map-age-cleaner-0.1.3.tgz", "integrity": "sha512-bJzx6nMoP6PDLPBFmg7+xRKeFZvFboMrGlxmNj9ClvX53KrmvM5bXFXEWjbz4cz1AFn+jWJ9z/DJSz7hrs0w3w==", - "dev": true, "requires": { "p-defer": "^1.0.0" } @@ -680,7 +600,6 @@ "version": "4.3.0", "resolved": "https://registry.npmjs.org/mem/-/mem-4.3.0.tgz", "integrity": "sha512-qX2bG48pTqYRVmDB37rn/6PT7LcR8T7oAX3bf99u1Tt1nzxYfxkgqDwUwolPlXweM0XzBOBFzSx4kfp7KP1s/w==", - "dev": true, "requires": { "map-age-cleaner": "^0.1.1", "mimic-fn": "^2.0.0", @@ -690,14 +609,12 @@ "mime-db": { "version": "1.40.0", "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.40.0.tgz", - "integrity": "sha512-jYdeOMPy9vnxEqFRRo6ZvTZ8d9oPb+k18PKoYNYUe2stVEBPPwsln/qWzdbmaIvnhZ9v2P+CuecK+fpUfsV2mA==", - "dev": true + "integrity": "sha512-jYdeOMPy9vnxEqFRRo6ZvTZ8d9oPb+k18PKoYNYUe2stVEBPPwsln/qWzdbmaIvnhZ9v2P+CuecK+fpUfsV2mA==" }, "mime-types": { "version": "2.1.24", "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.24.tgz", "integrity": "sha512-WaFHS3MCl5fapm3oLxU4eYDw77IQM2ACcxQ9RIxfaC3ooc6PFuBMGZZsYpvoXS5D5QTWPieo1jjLdAm3TBP3cQ==", - "dev": true, "requires": { "mime-db": "1.40.0" } @@ -705,14 +622,12 @@ "mimic-fn": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", - "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", - "dev": true + "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==" }, "minimatch": { "version": "3.0.4", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", - "dev": true, "requires": { "brace-expansion": "^1.1.7" } @@ -720,14 +635,12 @@ "minimist": { "version": "0.0.8", "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", - "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=", - "dev": true + "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=" }, "mkdirp": { "version": "0.5.1", "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", - "dev": true, "requires": { "minimist": "0.0.8" } @@ -750,14 +663,12 @@ "nice-try": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/nice-try/-/nice-try-1.0.5.tgz", - "integrity": "sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==", - "dev": true + "integrity": "sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==" }, "npm-run-path": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-2.0.2.tgz", "integrity": "sha1-NakjLfo11wZ7TLLd8jV7GHFTbF8=", - "dev": true, "requires": { "path-key": "^2.0.0" } @@ -765,20 +676,17 @@ "number-is-nan": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz", - "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=", - "dev": true + "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=" }, "oauth-sign": { "version": "0.9.0", "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.9.0.tgz", - "integrity": "sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ==", - "dev": true + "integrity": "sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ==" }, "once": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", - "dev": true, "requires": { "wrappy": "1" } @@ -787,7 +695,6 @@ "version": "3.1.0", "resolved": "https://registry.npmjs.org/os-locale/-/os-locale-3.1.0.tgz", "integrity": "sha512-Z8l3R4wYWM40/52Z+S265okfFj8Kt2cC2MKY+xNi3kFs+XGI7WXu/I309QQQYbRW4ijiZ+yxs9pqEhJh0DqW3Q==", - "dev": true, "requires": { "execa": "^1.0.0", "lcid": "^2.0.0", @@ -797,26 +704,22 @@ "p-defer": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/p-defer/-/p-defer-1.0.0.tgz", - "integrity": "sha1-n26xgvbJqozXQwBKfU+WsZaw+ww=", - "dev": true + "integrity": "sha1-n26xgvbJqozXQwBKfU+WsZaw+ww=" }, "p-finally": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz", - "integrity": "sha1-P7z7FbiZpEEjs0ttzBi3JDNqLK4=", - "dev": true + "integrity": "sha1-P7z7FbiZpEEjs0ttzBi3JDNqLK4=" }, "p-is-promise": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/p-is-promise/-/p-is-promise-2.1.0.tgz", - "integrity": "sha512-Y3W0wlRPK8ZMRbNq97l4M5otioeA5lm1z7bkNkxCka8HSPjR0xRWmpCmc9utiaLP9Jb1eD8BgeIxTW4AIF45Pg==", - "dev": true + "integrity": "sha512-Y3W0wlRPK8ZMRbNq97l4M5otioeA5lm1z7bkNkxCka8HSPjR0xRWmpCmc9utiaLP9Jb1eD8BgeIxTW4AIF45Pg==" }, "p-limit": { "version": "2.2.1", "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.2.1.tgz", "integrity": "sha512-85Tk+90UCVWvbDavCLKPOLC9vvY8OwEX/RtKF+/1OADJMVlFfEHOiMTPVyxg7mk/dKa+ipdHm0OUkTvCpMTuwg==", - "dev": true, "requires": { "p-try": "^2.0.0" } @@ -825,7 +728,6 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz", "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==", - "dev": true, "requires": { "p-limit": "^2.0.0" } @@ -833,56 +735,47 @@ "p-try": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", - "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", - "dev": true + "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==" }, "parsimmon": { "version": "1.13.0", "resolved": "https://registry.npmjs.org/parsimmon/-/parsimmon-1.13.0.tgz", - "integrity": "sha512-5UIrOCW+gjbILkjKPgTgmq8LKf8TT3Iy7kN2VD7OtQ81facKn8B4gG1X94jWqXYZsxG2KbJhrv/Yq/5H6BQn7A==", - "dev": true + "integrity": "sha512-5UIrOCW+gjbILkjKPgTgmq8LKf8TT3Iy7kN2VD7OtQ81facKn8B4gG1X94jWqXYZsxG2KbJhrv/Yq/5H6BQn7A==" }, "path-exists": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", - "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=", - "dev": true + "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=" }, "path-is-absolute": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", - "dev": true + "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=" }, "path-key": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz", - "integrity": "sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A=", - "dev": true + "integrity": "sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A=" }, "path-parse": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz", - "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==", - "dev": true + "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==" }, "performance-now": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz", - "integrity": "sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns=", - "dev": true + "integrity": "sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns=" }, "psl": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/psl/-/psl-1.4.0.tgz", - "integrity": "sha512-HZzqCGPecFLyoRj5HLfuDSKYTJkAfB5thKBIkRHtGjWwY7p1dAyveIbXIq4tO0KYfDF2tHqPUgY9SDnGm00uFw==", - "dev": true + "integrity": "sha512-HZzqCGPecFLyoRj5HLfuDSKYTJkAfB5thKBIkRHtGjWwY7p1dAyveIbXIq4tO0KYfDF2tHqPUgY9SDnGm00uFw==" }, "pump": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", - "dev": true, "requires": { "end-of-stream": "^1.1.0", "once": "^1.3.1" @@ -891,20 +784,17 @@ "punycode": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", - "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", - "dev": true + "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==" }, "qs": { "version": "6.5.2", "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.2.tgz", - "integrity": "sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA==", - "dev": true + "integrity": "sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA==" }, "request": { "version": "2.88.0", "resolved": "https://registry.npmjs.org/request/-/request-2.88.0.tgz", "integrity": "sha512-NAqBSrijGLZdM0WZNsInLJpkJokL72XYjUpnB0iwsRgxh7dB6COrHnTBNwN0E+lHDAJzu7kLAkDeY08z2/A0hg==", - "dev": true, "requires": { "aws-sign2": "~0.7.0", "aws4": "^1.8.0", @@ -931,20 +821,17 @@ "require-directory": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", - "integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I=", - "dev": true + "integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I=" }, "require-main-filename": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-1.0.1.tgz", - "integrity": "sha1-l/cXtp1IeE9fUmpsWqj/3aBVpNE=", - "dev": true + "integrity": "sha1-l/cXtp1IeE9fUmpsWqj/3aBVpNE=" }, "resolve": { "version": "1.12.0", "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.12.0.tgz", "integrity": "sha512-B/dOmuoAik5bKcD6s6nXDCjzUKnaDvdkRyAk6rsmsKLipWj4797iothd7jmmUhWTfinVMU+wc56rYKsit2Qy4w==", - "dev": true, "requires": { "path-parse": "^1.0.6" } @@ -952,32 +839,27 @@ "safe-buffer": { "version": "5.2.0", "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.0.tgz", - "integrity": "sha512-fZEwUGbVl7kouZs1jCdMLdt95hdIv0ZeHg6L7qPeciMZhZ+/gdesW4wgTARkrFWEpspjEATAzUGPG8N2jJiwbg==", - "dev": true + "integrity": "sha512-fZEwUGbVl7kouZs1jCdMLdt95hdIv0ZeHg6L7qPeciMZhZ+/gdesW4wgTARkrFWEpspjEATAzUGPG8N2jJiwbg==" }, "safer-buffer": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", - "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", - "dev": true + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" }, "semver": { "version": "5.7.1", "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", - "dev": true + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==" }, "set-blocking": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", - "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=", - "dev": true + "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=" }, "shebang-command": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", "integrity": "sha1-RKrGW2lbAzmJaMOfNj/uXer98eo=", - "dev": true, "requires": { "shebang-regex": "^1.0.0" } @@ -985,26 +867,22 @@ "shebang-regex": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz", - "integrity": "sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM=", - "dev": true + "integrity": "sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM=" }, "signal-exit": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.2.tgz", - "integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=", - "dev": true + "integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=" }, "sprintf-js": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", - "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", - "dev": true + "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=" }, "sshpk": { "version": "1.16.1", "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.16.1.tgz", "integrity": "sha512-HXXqVUq7+pcKeLqqZj6mHFUMvXtOJt1uoUx09pFW6011inTMxqI8BA8PM95myrIyyKwdnzjdFjLiE6KBPVtJIg==", - "dev": true, "requires": { "asn1": "~0.2.3", "assert-plus": "^1.0.0", @@ -1021,7 +899,6 @@ "version": "2.1.1", "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", - "dev": true, "requires": { "is-fullwidth-code-point": "^2.0.0", "strip-ansi": "^4.0.0" @@ -1031,7 +908,6 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", - "dev": true, "requires": { "ansi-regex": "^3.0.0" } @@ -1039,20 +915,17 @@ "strip-eof": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/strip-eof/-/strip-eof-1.0.0.tgz", - "integrity": "sha1-u0P/VZim6wXYm1n80SnJgzE2Br8=", - "dev": true + "integrity": "sha1-u0P/VZim6wXYm1n80SnJgzE2Br8=" }, "strip-json-comments": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", - "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=", - "dev": true + "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=" }, "supports-color": { "version": "5.5.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "dev": true, "requires": { "has-flag": "^3.0.0" } @@ -1061,7 +934,6 @@ "version": "2.4.3", "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.4.3.tgz", "integrity": "sha512-Q5srk/4vDM54WJsJio3XNn6K2sCG+CQ8G5Wz6bZhRZoAe/+TxjWB/GlFAnYEbkYVlON9FMk/fE3h2RLpPXo4lQ==", - "dev": true, "requires": { "psl": "^1.1.24", "punycode": "^1.4.1" @@ -1070,22 +942,19 @@ "punycode": { "version": "1.4.1", "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz", - "integrity": "sha1-wNWmOycYgArY4esPpSachN1BhF4=", - "dev": true + "integrity": "sha1-wNWmOycYgArY4esPpSachN1BhF4=" } } }, "tslib": { "version": "1.10.0", "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.10.0.tgz", - "integrity": "sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==", - "dev": true + "integrity": "sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==" }, "tslint": { "version": "5.20.0", "resolved": "https://registry.npmjs.org/tslint/-/tslint-5.20.0.tgz", "integrity": "sha512-2vqIvkMHbnx8acMogAERQ/IuINOq6DFqgF8/VDvhEkBqQh/x6SP0Y+OHnKth9/ZcHQSroOZwUQSN18v8KKF0/g==", - "dev": true, "requires": { "@babel/code-frame": "^7.0.0", "builtin-modules": "^1.1.1", @@ -1106,7 +975,6 @@ "version": "2.29.0", "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-2.29.0.tgz", "integrity": "sha512-g5JVHCIJwzfISaXpXE1qvNalca5Jwob6FjI4AoPlqMusJ6ftFE7IkkFoMhVLRgK+4Kx3gkzb8UZK5t5yTTvEmA==", - "dev": true, "requires": { "tslib": "^1.8.1" } @@ -1115,7 +983,6 @@ "version": "0.6.0", "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", "integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=", - "dev": true, "requires": { "safe-buffer": "^5.0.1" } @@ -1123,8 +990,7 @@ "tweetnacl": { "version": "0.14.5", "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz", - "integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q=", - "dev": true + "integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q=" }, "type": { "version": "1.0.1", @@ -1142,8 +1008,7 @@ "typescript": { "version": "3.7.0-dev.20191015", "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.7.0-dev.20191015.tgz", - "integrity": "sha512-Cpfj1n4pEUVKL+jtS0mkZodJffyMmf3Wk/UjyZMGX4fsjK5KBPJf3NUlyXij8I8p1E2CAomdS5NPFrAR+z8pKw==", - "dev": true + "integrity": "sha512-Cpfj1n4pEUVKL+jtS0mkZodJffyMmf3Wk/UjyZMGX4fsjK5KBPJf3NUlyXij8I8p1E2CAomdS5NPFrAR+z8pKw==" }, "underscore": { "version": "1.9.1", @@ -1153,14 +1018,12 @@ "universalify": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", - "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", - "dev": true + "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==" }, "uri-js": { "version": "4.2.2", "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.2.2.tgz", "integrity": "sha512-KY9Frmirql91X2Qgjry0Wd4Y+YTdrdZheS8TFwvkbLWf/G5KNJDCh6pKL5OZctEW4+0Baa5idK2ZQuELRwPznQ==", - "dev": true, "requires": { "punycode": "^2.1.0" } @@ -1168,14 +1031,12 @@ "uuid": { "version": "3.3.3", "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.3.3.tgz", - "integrity": "sha512-pW0No1RGHgzlpHJO1nsVrHKpOEIxkGg1xB+v0ZmdNH5OAeAwzAVrCnI2/6Mtx+Uys6iaylxa+D3g4j63IKKjSQ==", - "dev": true + "integrity": "sha512-pW0No1RGHgzlpHJO1nsVrHKpOEIxkGg1xB+v0ZmdNH5OAeAwzAVrCnI2/6Mtx+Uys6iaylxa+D3g4j63IKKjSQ==" }, "verror": { "version": "1.10.0", "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz", "integrity": "sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA=", - "dev": true, "requires": { "assert-plus": "^1.0.0", "core-util-is": "1.0.2", @@ -1197,7 +1058,6 @@ "version": "1.3.1", "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", - "dev": true, "requires": { "isexe": "^2.0.0" } @@ -1205,14 +1065,12 @@ "which-module": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.0.tgz", - "integrity": "sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=", - "dev": true + "integrity": "sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=" }, "wrap-ansi": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-2.1.0.tgz", "integrity": "sha1-2Pw9KE3QV5T+hJc8rs3Rz4JP3YU=", - "dev": true, "requires": { "string-width": "^1.0.1", "strip-ansi": "^3.0.1" @@ -1221,14 +1079,12 @@ "ansi-regex": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", - "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", - "dev": true + "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=" }, "is-fullwidth-code-point": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz", "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=", - "dev": true, "requires": { "number-is-nan": "^1.0.0" } @@ -1237,7 +1093,6 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", - "dev": true, "requires": { "code-point-at": "^1.0.0", "is-fullwidth-code-point": "^1.0.0", @@ -1248,7 +1103,6 @@ "version": "3.0.1", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", - "dev": true, "requires": { "ansi-regex": "^2.0.0" } @@ -1258,14 +1112,12 @@ "wrappy": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", - "dev": true + "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=" }, "y18n": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.0.tgz", - "integrity": "sha512-r9S/ZyXu/Xu9q1tYlpsLIsa3EeLXXk0VwlxqTcFRfg9EhMW+17kbt9G0NrgCmhGb5vT2hyhJZLfDGx+7+5Uj/w==", - "dev": true + "integrity": "sha512-r9S/ZyXu/Xu9q1tYlpsLIsa3EeLXXk0VwlxqTcFRfg9EhMW+17kbt9G0NrgCmhGb5vT2hyhJZLfDGx+7+5Uj/w==" }, "yaeti": { "version": "0.0.6", @@ -1276,7 +1128,6 @@ "version": "12.0.5", "resolved": "https://registry.npmjs.org/yargs/-/yargs-12.0.5.tgz", "integrity": "sha512-Lhz8TLaYnxq/2ObqHDql8dX8CJi97oHxrjUcYtzKbbykPtVW9WB+poxI+NM2UIzsMgNCZTIf0AQwsjK5yMAqZw==", - "dev": true, "requires": { "cliui": "^4.0.0", "decamelize": "^1.2.0", @@ -1296,7 +1147,6 @@ "version": "11.1.1", "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-11.1.1.tgz", "integrity": "sha512-C6kB/WJDiaxONLJQnF8ccx9SEeoTTLek8RVbaOIsrAUS8VrBEXfmeSnCZxygc+XC2sNMBIwOOnfcxiynjHsVSQ==", - "dev": true, "requires": { "camelcase": "^5.0.0", "decamelize": "^1.2.0" diff --git a/packages/web3-shh/package-lock.json b/packages/web3-shh/package-lock.json index c103dda3cf5..99220917d66 100644 --- a/packages/web3-shh/package-lock.json +++ b/packages/web3-shh/package-lock.json @@ -1,14 +1,11 @@ { - "name": "web3-shh", - "version": "1.2.1", - "lockfileVersion": 1, "requires": true, + "lockfileVersion": 1, "dependencies": { "@babel/code-frame": { "version": "7.5.5", "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.5.5.tgz", "integrity": "sha512-27d4lZoomVyo51VegxI20xZPuSHusqbQag/ztrBC7wegWoQ1nLREPVSKSW8byhTlzTKyNE4ifaTA6lCp7JjpFw==", - "dev": true, "requires": { "@babel/highlight": "^7.0.0" } @@ -17,7 +14,6 @@ "version": "7.5.0", "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.5.0.tgz", "integrity": "sha512-7dV4eu9gBxoM0dAnj/BCFDW9LFU0zvTrkq0ugM7pnHEgguOEeOz1so2ZghEdzviYzQEED0r4EAgpsBChKy1TRQ==", - "dev": true, "requires": { "chalk": "^2.0.0", "esutils": "^2.0.2", @@ -27,14 +23,12 @@ "@types/parsimmon": { "version": "1.10.0", "resolved": "https://registry.npmjs.org/@types/parsimmon/-/parsimmon-1.10.0.tgz", - "integrity": "sha512-bsTIJFVQv7jnvNiC42ld2pQW2KRI+pAG243L+iATvqzy3X6+NH1obz2itRKDZZ8VVhN3wjwYax/VBGCcXzgTqQ==", - "dev": true + "integrity": "sha512-bsTIJFVQv7jnvNiC42ld2pQW2KRI+pAG243L+iATvqzy3X6+NH1obz2itRKDZZ8VVhN3wjwYax/VBGCcXzgTqQ==" }, "ansi-styles": { "version": "3.2.1", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, "requires": { "color-convert": "^1.9.0" } @@ -43,7 +37,6 @@ "version": "1.0.10", "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", - "dev": true, "requires": { "sprintf-js": "~1.0.2" } @@ -51,14 +44,12 @@ "balanced-match": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", - "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", - "dev": true + "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=" }, "brace-expansion": { "version": "1.1.11", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "dev": true, "requires": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" @@ -67,14 +58,12 @@ "builtin-modules": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-1.1.1.tgz", - "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=", - "dev": true + "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=" }, "chalk": { "version": "2.4.2", "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", - "dev": true, "requires": { "ansi-styles": "^3.2.1", "escape-string-regexp": "^1.0.5", @@ -85,7 +74,6 @@ "version": "1.9.3", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", - "dev": true, "requires": { "color-name": "1.1.3" } @@ -93,26 +81,22 @@ "color-name": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", - "dev": true + "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=" }, "commander": { "version": "2.20.3", "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", - "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", - "dev": true + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==" }, "concat-map": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", - "dev": true + "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=" }, "definitelytyped-header-parser": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/definitelytyped-header-parser/-/definitelytyped-header-parser-1.2.0.tgz", "integrity": "sha512-xpg8uu/2YD/reaVsZV4oJ4g7UDYFqQGWvT1W9Tsj6q4VtWBSaig38Qgah0ZMnQGF9kAsAim08EXDO1nSi0+Nog==", - "dev": true, "requires": { "@types/parsimmon": "^1.3.0", "parsimmon": "^1.2.0" @@ -121,14 +105,12 @@ "diff": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.1.tgz", - "integrity": "sha512-s2+XdvhPCOF01LRQBC8hf4vhbVmI2CGS5aZnxLJlT5FtdhPCDFq80q++zK2KlrVorVDdL5BOGZ/VfLrVtYNF+Q==", - "dev": true + "integrity": "sha512-s2+XdvhPCOF01LRQBC8hf4vhbVmI2CGS5aZnxLJlT5FtdhPCDFq80q++zK2KlrVorVDdL5BOGZ/VfLrVtYNF+Q==" }, "dtslint": { "version": "0.4.2", "resolved": "https://registry.npmjs.org/dtslint/-/dtslint-0.4.2.tgz", "integrity": "sha512-ph4GXLw3HYzlQMJOFcpCqWHuL3MxJ/344OR7wn0wlQGchQGTIVNsSUl8iKEMatpy2geNMysgA9fQa6xVhHOkTQ==", - "dev": true, "requires": { "definitelytyped-header-parser": "github:Microsoft/definitelytyped-header-parser#production", "fs-extra": "^6.0.1", @@ -140,7 +122,6 @@ "definitelytyped-header-parser": { "version": "github:Microsoft/definitelytyped-header-parser#d957ad0bb2f4ecb60ac04f734e0b38fbc8e70b8a", "from": "github:Microsoft/definitelytyped-header-parser#production", - "dev": true, "requires": { "@types/parsimmon": "^1.3.0", "parsimmon": "^1.2.0" @@ -151,26 +132,22 @@ "escape-string-regexp": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", - "dev": true + "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=" }, "esprima": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", - "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", - "dev": true + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==" }, "esutils": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", - "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", - "dev": true + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==" }, "fs-extra": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-6.0.1.tgz", "integrity": "sha512-GnyIkKhhzXZUWFCaJzvyDLEEgDkPfb4/TPvJCJVuS8MWZgoSsErf++QpiAlDnKFcqhRlm+tIOcencCjyJE6ZCA==", - "dev": true, "requires": { "graceful-fs": "^4.1.2", "jsonfile": "^4.0.0", @@ -180,14 +157,12 @@ "fs.realpath": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", - "dev": true + "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=" }, "glob": { "version": "7.1.4", "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.4.tgz", "integrity": "sha512-hkLPepehmnKk41pUGm3sYxoFs/umurYfYJCerbXEyFIWcAzvpipAgVkBqqT9RBKMGjnq6kMuyYwha6csxbiM1A==", - "dev": true, "requires": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", @@ -200,20 +175,17 @@ "graceful-fs": { "version": "4.2.2", "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.2.tgz", - "integrity": "sha512-IItsdsea19BoLC7ELy13q1iJFNmd7ofZH5+X/pJr90/nRoPEX0DJo1dHDbgtYWOhJhcCgMDTOw84RZ72q6lB+Q==", - "dev": true + "integrity": "sha512-IItsdsea19BoLC7ELy13q1iJFNmd7ofZH5+X/pJr90/nRoPEX0DJo1dHDbgtYWOhJhcCgMDTOw84RZ72q6lB+Q==" }, "has-flag": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", - "dev": true + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=" }, "inflight": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", - "dev": true, "requires": { "once": "^1.3.0", "wrappy": "1" @@ -222,20 +194,17 @@ "inherits": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", - "dev": true + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" }, "js-tokens": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", - "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", - "dev": true + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==" }, "js-yaml": { "version": "3.13.1", "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.13.1.tgz", "integrity": "sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw==", - "dev": true, "requires": { "argparse": "^1.0.7", "esprima": "^4.0.0" @@ -245,7 +214,6 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", "integrity": "sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss=", - "dev": true, "requires": { "graceful-fs": "^4.1.6" } @@ -254,7 +222,6 @@ "version": "3.0.4", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", - "dev": true, "requires": { "brace-expansion": "^1.1.7" } @@ -262,14 +229,12 @@ "minimist": { "version": "0.0.8", "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", - "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=", - "dev": true + "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=" }, "mkdirp": { "version": "0.5.1", "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", - "dev": true, "requires": { "minimist": "0.0.8" } @@ -278,7 +243,6 @@ "version": "1.4.0", "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", - "dev": true, "requires": { "wrappy": "1" } @@ -286,26 +250,22 @@ "parsimmon": { "version": "1.13.0", "resolved": "https://registry.npmjs.org/parsimmon/-/parsimmon-1.13.0.tgz", - "integrity": "sha512-5UIrOCW+gjbILkjKPgTgmq8LKf8TT3Iy7kN2VD7OtQ81facKn8B4gG1X94jWqXYZsxG2KbJhrv/Yq/5H6BQn7A==", - "dev": true + "integrity": "sha512-5UIrOCW+gjbILkjKPgTgmq8LKf8TT3Iy7kN2VD7OtQ81facKn8B4gG1X94jWqXYZsxG2KbJhrv/Yq/5H6BQn7A==" }, "path-is-absolute": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", - "dev": true + "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=" }, "path-parse": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz", - "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==", - "dev": true + "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==" }, "resolve": { "version": "1.12.0", "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.12.0.tgz", "integrity": "sha512-B/dOmuoAik5bKcD6s6nXDCjzUKnaDvdkRyAk6rsmsKLipWj4797iothd7jmmUhWTfinVMU+wc56rYKsit2Qy4w==", - "dev": true, "requires": { "path-parse": "^1.0.6" } @@ -313,26 +273,22 @@ "semver": { "version": "5.7.1", "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", - "dev": true + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==" }, "sprintf-js": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", - "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", - "dev": true + "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=" }, "strip-json-comments": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", - "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=", - "dev": true + "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=" }, "supports-color": { "version": "5.5.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "dev": true, "requires": { "has-flag": "^3.0.0" } @@ -340,14 +296,12 @@ "tslib": { "version": "1.10.0", "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.10.0.tgz", - "integrity": "sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==", - "dev": true + "integrity": "sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==" }, "tslint": { "version": "5.20.0", "resolved": "https://registry.npmjs.org/tslint/-/tslint-5.20.0.tgz", "integrity": "sha512-2vqIvkMHbnx8acMogAERQ/IuINOq6DFqgF8/VDvhEkBqQh/x6SP0Y+OHnKth9/ZcHQSroOZwUQSN18v8KKF0/g==", - "dev": true, "requires": { "@babel/code-frame": "^7.0.0", "builtin-modules": "^1.1.1", @@ -368,7 +322,6 @@ "version": "2.29.0", "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-2.29.0.tgz", "integrity": "sha512-g5JVHCIJwzfISaXpXE1qvNalca5Jwob6FjI4AoPlqMusJ6ftFE7IkkFoMhVLRgK+4Kx3gkzb8UZK5t5yTTvEmA==", - "dev": true, "requires": { "tslib": "^1.8.1" } @@ -376,20 +329,17 @@ "typescript": { "version": "3.7.0-dev.20191015", "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.7.0-dev.20191015.tgz", - "integrity": "sha512-Cpfj1n4pEUVKL+jtS0mkZodJffyMmf3Wk/UjyZMGX4fsjK5KBPJf3NUlyXij8I8p1E2CAomdS5NPFrAR+z8pKw==", - "dev": true + "integrity": "sha512-Cpfj1n4pEUVKL+jtS0mkZodJffyMmf3Wk/UjyZMGX4fsjK5KBPJf3NUlyXij8I8p1E2CAomdS5NPFrAR+z8pKw==" }, "universalify": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", - "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", - "dev": true + "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==" }, "wrappy": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", - "dev": true + "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=" } } } diff --git a/packages/web3-shh/types/index.d.ts b/packages/web3-shh/types/index.d.ts index ddf750e83fc..45f7fd0a6cb 100644 --- a/packages/web3-shh/types/index.d.ts +++ b/packages/web3-shh/types/index.d.ts @@ -27,12 +27,11 @@ export class Shh { net: Network; readonly givenProvider: any; - defaultAccount: string | null; - defaultBlock: string | number; readonly currentProvider: provider; - setProvider(provider: provider): boolean; - BatchRequest: new () => BatchRequest; static readonly providers: Providers; + BatchRequest: new () => BatchRequest; + + setProvider(provider: provider): boolean; getVersion( callback?: (error: Error, version: string) => void diff --git a/packages/web3-shh/types/tests/shh-test.ts b/packages/web3-shh/types/tests/shh-test.ts index 5f451cc50ed..8a457fb3978 100644 --- a/packages/web3-shh/types/tests/shh-test.ts +++ b/packages/web3-shh/types/tests/shh-test.ts @@ -27,12 +27,6 @@ shh.currentProvider; // $ExpectType any shh.givenProvider; -// $ExpectType string | null -shh.defaultAccount; - -// $ExpectType string | number -shh.defaultBlock; - // $ExpectType boolean shh.setProvider('https://localhost:2100'); diff --git a/packages/web3-utils/package-lock.json b/packages/web3-utils/package-lock.json index 79b5dc045fa..2afa763b103 100644 --- a/packages/web3-utils/package-lock.json +++ b/packages/web3-utils/package-lock.json @@ -1,14 +1,11 @@ { - "name": "web3-utils", - "version": "1.2.1", - "lockfileVersion": 1, "requires": true, + "lockfileVersion": 1, "dependencies": { "@babel/code-frame": { "version": "7.5.5", "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.5.5.tgz", "integrity": "sha512-27d4lZoomVyo51VegxI20xZPuSHusqbQag/ztrBC7wegWoQ1nLREPVSKSW8byhTlzTKyNE4ifaTA6lCp7JjpFw==", - "dev": true, "requires": { "@babel/highlight": "^7.0.0" } @@ -17,7 +14,6 @@ "version": "7.5.0", "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.5.0.tgz", "integrity": "sha512-7dV4eu9gBxoM0dAnj/BCFDW9LFU0zvTrkq0ugM7pnHEgguOEeOz1so2ZghEdzviYzQEED0r4EAgpsBChKy1TRQ==", - "dev": true, "requires": { "chalk": "^2.0.0", "esutils": "^2.0.2", @@ -27,14 +23,12 @@ "@types/parsimmon": { "version": "1.10.0", "resolved": "https://registry.npmjs.org/@types/parsimmon/-/parsimmon-1.10.0.tgz", - "integrity": "sha512-bsTIJFVQv7jnvNiC42ld2pQW2KRI+pAG243L+iATvqzy3X6+NH1obz2itRKDZZ8VVhN3wjwYax/VBGCcXzgTqQ==", - "dev": true + "integrity": "sha512-bsTIJFVQv7jnvNiC42ld2pQW2KRI+pAG243L+iATvqzy3X6+NH1obz2itRKDZZ8VVhN3wjwYax/VBGCcXzgTqQ==" }, "ansi-styles": { "version": "3.2.1", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, "requires": { "color-convert": "^1.9.0" } @@ -43,7 +37,6 @@ "version": "1.0.10", "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", - "dev": true, "requires": { "sprintf-js": "~1.0.2" } @@ -51,8 +44,7 @@ "balanced-match": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", - "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", - "dev": true + "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=" }, "bn.js": { "version": "4.11.8", @@ -63,7 +55,6 @@ "version": "1.1.11", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "dev": true, "requires": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" @@ -82,14 +73,12 @@ "builtin-modules": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-1.1.1.tgz", - "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=", - "dev": true + "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=" }, "chalk": { "version": "2.4.2", "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", - "dev": true, "requires": { "ansi-styles": "^3.2.1", "escape-string-regexp": "^1.0.5", @@ -100,7 +89,6 @@ "version": "1.9.3", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", - "dev": true, "requires": { "color-name": "1.1.3" } @@ -108,20 +96,17 @@ "color-name": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", - "dev": true + "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=" }, "commander": { "version": "2.20.3", "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", - "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", - "dev": true + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==" }, "concat-map": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", - "dev": true + "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=" }, "decode-uri-component": { "version": "0.2.0", @@ -148,7 +133,6 @@ "version": "1.2.0", "resolved": "https://registry.npmjs.org/definitelytyped-header-parser/-/definitelytyped-header-parser-1.2.0.tgz", "integrity": "sha512-xpg8uu/2YD/reaVsZV4oJ4g7UDYFqQGWvT1W9Tsj6q4VtWBSaig38Qgah0ZMnQGF9kAsAim08EXDO1nSi0+Nog==", - "dev": true, "requires": { "@types/parsimmon": "^1.3.0", "parsimmon": "^1.2.0" @@ -157,8 +141,7 @@ "diff": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.1.tgz", - "integrity": "sha512-s2+XdvhPCOF01LRQBC8hf4vhbVmI2CGS5aZnxLJlT5FtdhPCDFq80q++zK2KlrVorVDdL5BOGZ/VfLrVtYNF+Q==", - "dev": true + "integrity": "sha512-s2+XdvhPCOF01LRQBC8hf4vhbVmI2CGS5aZnxLJlT5FtdhPCDFq80q++zK2KlrVorVDdL5BOGZ/VfLrVtYNF+Q==" }, "dom-walk": { "version": "0.1.1", @@ -169,7 +152,6 @@ "version": "0.4.2", "resolved": "https://registry.npmjs.org/dtslint/-/dtslint-0.4.2.tgz", "integrity": "sha512-ph4GXLw3HYzlQMJOFcpCqWHuL3MxJ/344OR7wn0wlQGchQGTIVNsSUl8iKEMatpy2geNMysgA9fQa6xVhHOkTQ==", - "dev": true, "requires": { "definitelytyped-header-parser": "github:Microsoft/definitelytyped-header-parser#production", "fs-extra": "^6.0.1", @@ -181,7 +163,6 @@ "definitelytyped-header-parser": { "version": "github:Microsoft/definitelytyped-header-parser#d957ad0bb2f4ecb60ac04f734e0b38fbc8e70b8a", "from": "github:Microsoft/definitelytyped-header-parser#production", - "dev": true, "requires": { "@types/parsimmon": "^1.3.0", "parsimmon": "^1.2.0" @@ -229,20 +210,17 @@ "escape-string-regexp": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", - "dev": true + "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=" }, "esprima": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", - "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", - "dev": true + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==" }, "esutils": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", - "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", - "dev": true + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==" }, "eth-lib": { "version": "0.2.7", @@ -282,7 +260,6 @@ "version": "6.0.1", "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-6.0.1.tgz", "integrity": "sha512-GnyIkKhhzXZUWFCaJzvyDLEEgDkPfb4/TPvJCJVuS8MWZgoSsErf++QpiAlDnKFcqhRlm+tIOcencCjyJE6ZCA==", - "dev": true, "requires": { "graceful-fs": "^4.1.2", "jsonfile": "^4.0.0", @@ -292,8 +269,7 @@ "fs.realpath": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", - "dev": true + "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=" }, "function-bind": { "version": "1.1.1", @@ -304,7 +280,6 @@ "version": "7.1.4", "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.4.tgz", "integrity": "sha512-hkLPepehmnKk41pUGm3sYxoFs/umurYfYJCerbXEyFIWcAzvpipAgVkBqqT9RBKMGjnq6kMuyYwha6csxbiM1A==", - "dev": true, "requires": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", @@ -326,8 +301,7 @@ "graceful-fs": { "version": "4.2.2", "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.2.tgz", - "integrity": "sha512-IItsdsea19BoLC7ELy13q1iJFNmd7ofZH5+X/pJr90/nRoPEX0DJo1dHDbgtYWOhJhcCgMDTOw84RZ72q6lB+Q==", - "dev": true + "integrity": "sha512-IItsdsea19BoLC7ELy13q1iJFNmd7ofZH5+X/pJr90/nRoPEX0DJo1dHDbgtYWOhJhcCgMDTOw84RZ72q6lB+Q==" }, "has": { "version": "1.0.3", @@ -340,8 +314,7 @@ "has-flag": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", - "dev": true + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=" }, "has-symbols": { "version": "1.0.0", @@ -371,7 +344,6 @@ "version": "1.0.6", "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", - "dev": true, "requires": { "once": "^1.3.0", "wrappy": "1" @@ -421,14 +393,12 @@ "js-tokens": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", - "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", - "dev": true + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==" }, "js-yaml": { "version": "3.13.1", "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.13.1.tgz", "integrity": "sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw==", - "dev": true, "requires": { "argparse": "^1.0.7", "esprima": "^4.0.0" @@ -438,7 +408,6 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", "integrity": "sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss=", - "dev": true, "requires": { "graceful-fs": "^4.1.6" } @@ -470,7 +439,6 @@ "version": "3.0.4", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", - "dev": true, "requires": { "brace-expansion": "^1.1.7" } @@ -478,14 +446,12 @@ "minimist": { "version": "0.0.8", "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", - "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=", - "dev": true + "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=" }, "mkdirp": { "version": "0.5.1", "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", - "dev": true, "requires": { "minimist": "0.0.8" } @@ -536,20 +502,17 @@ "parsimmon": { "version": "1.13.0", "resolved": "https://registry.npmjs.org/parsimmon/-/parsimmon-1.13.0.tgz", - "integrity": "sha512-5UIrOCW+gjbILkjKPgTgmq8LKf8TT3Iy7kN2VD7OtQ81facKn8B4gG1X94jWqXYZsxG2KbJhrv/Yq/5H6BQn7A==", - "dev": true + "integrity": "sha512-5UIrOCW+gjbILkjKPgTgmq8LKf8TT3Iy7kN2VD7OtQ81facKn8B4gG1X94jWqXYZsxG2KbJhrv/Yq/5H6BQn7A==" }, "path-is-absolute": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", - "dev": true + "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=" }, "path-parse": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz", - "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==", - "dev": true + "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==" }, "process": { "version": "0.5.2", @@ -578,7 +541,6 @@ "version": "1.12.0", "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.12.0.tgz", "integrity": "sha512-B/dOmuoAik5bKcD6s6nXDCjzUKnaDvdkRyAk6rsmsKLipWj4797iothd7jmmUhWTfinVMU+wc56rYKsit2Qy4w==", - "dev": true, "requires": { "path-parse": "^1.0.6" } @@ -591,8 +553,7 @@ "semver": { "version": "5.7.1", "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", - "dev": true + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==" }, "simple-concat": { "version": "1.0.0", @@ -612,8 +573,7 @@ "sprintf-js": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", - "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", - "dev": true + "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=" }, "strict-uri-encode": { "version": "1.1.0", @@ -641,14 +601,12 @@ "strip-json-comments": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", - "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=", - "dev": true + "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=" }, "supports-color": { "version": "5.5.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "dev": true, "requires": { "has-flag": "^3.0.0" } @@ -661,14 +619,12 @@ "tslib": { "version": "1.10.0", "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.10.0.tgz", - "integrity": "sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==", - "dev": true + "integrity": "sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==" }, "tslint": { "version": "5.20.0", "resolved": "https://registry.npmjs.org/tslint/-/tslint-5.20.0.tgz", "integrity": "sha512-2vqIvkMHbnx8acMogAERQ/IuINOq6DFqgF8/VDvhEkBqQh/x6SP0Y+OHnKth9/ZcHQSroOZwUQSN18v8KKF0/g==", - "dev": true, "requires": { "@babel/code-frame": "^7.0.0", "builtin-modules": "^1.1.1", @@ -689,7 +645,6 @@ "version": "2.29.0", "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-2.29.0.tgz", "integrity": "sha512-g5JVHCIJwzfISaXpXE1qvNalca5Jwob6FjI4AoPlqMusJ6ftFE7IkkFoMhVLRgK+4Kx3gkzb8UZK5t5yTTvEmA==", - "dev": true, "requires": { "tslib": "^1.8.1" } @@ -697,8 +652,7 @@ "typescript": { "version": "3.7.0-dev.20191015", "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.7.0-dev.20191015.tgz", - "integrity": "sha512-Cpfj1n4pEUVKL+jtS0mkZodJffyMmf3Wk/UjyZMGX4fsjK5KBPJf3NUlyXij8I8p1E2CAomdS5NPFrAR+z8pKw==", - "dev": true + "integrity": "sha512-Cpfj1n4pEUVKL+jtS0mkZodJffyMmf3Wk/UjyZMGX4fsjK5KBPJf3NUlyXij8I8p1E2CAomdS5NPFrAR+z8pKw==" }, "underscore": { "version": "1.9.1", @@ -708,8 +662,7 @@ "universalify": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", - "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", - "dev": true + "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==" }, "url-set-query": { "version": "1.0.0", diff --git a/packages/web3/package-lock.json b/packages/web3/package-lock.json index 8cd93300877..07d69ca98ca 100644 --- a/packages/web3/package-lock.json +++ b/packages/web3/package-lock.json @@ -1,14 +1,11 @@ { - "name": "web3", - "version": "1.2.1", - "lockfileVersion": 1, "requires": true, + "lockfileVersion": 1, "dependencies": { "@babel/code-frame": { "version": "7.5.5", "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.5.5.tgz", "integrity": "sha512-27d4lZoomVyo51VegxI20xZPuSHusqbQag/ztrBC7wegWoQ1nLREPVSKSW8byhTlzTKyNE4ifaTA6lCp7JjpFw==", - "dev": true, "requires": { "@babel/highlight": "^7.0.0" } @@ -17,7 +14,6 @@ "version": "7.5.0", "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.5.0.tgz", "integrity": "sha512-7dV4eu9gBxoM0dAnj/BCFDW9LFU0zvTrkq0ugM7pnHEgguOEeOz1so2ZghEdzviYzQEED0r4EAgpsBChKy1TRQ==", - "dev": true, "requires": { "chalk": "^2.0.0", "esutils": "^2.0.2", @@ -32,14 +28,12 @@ "@types/parsimmon": { "version": "1.10.0", "resolved": "https://registry.npmjs.org/@types/parsimmon/-/parsimmon-1.10.0.tgz", - "integrity": "sha512-bsTIJFVQv7jnvNiC42ld2pQW2KRI+pAG243L+iATvqzy3X6+NH1obz2itRKDZZ8VVhN3wjwYax/VBGCcXzgTqQ==", - "dev": true + "integrity": "sha512-bsTIJFVQv7jnvNiC42ld2pQW2KRI+pAG243L+iATvqzy3X6+NH1obz2itRKDZZ8VVhN3wjwYax/VBGCcXzgTqQ==" }, "ansi-styles": { "version": "3.2.1", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, "requires": { "color-convert": "^1.9.0" } @@ -48,7 +42,6 @@ "version": "1.0.10", "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", - "dev": true, "requires": { "sprintf-js": "~1.0.2" } @@ -56,14 +49,12 @@ "balanced-match": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", - "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", - "dev": true + "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=" }, "brace-expansion": { "version": "1.1.11", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "dev": true, "requires": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" @@ -72,14 +63,12 @@ "builtin-modules": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-1.1.1.tgz", - "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=", - "dev": true + "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=" }, "chalk": { "version": "2.4.2", "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", - "dev": true, "requires": { "ansi-styles": "^3.2.1", "escape-string-regexp": "^1.0.5", @@ -90,7 +79,6 @@ "version": "1.9.3", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", - "dev": true, "requires": { "color-name": "1.1.3" } @@ -98,26 +86,22 @@ "color-name": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", - "dev": true + "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=" }, "commander": { "version": "2.20.3", "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", - "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", - "dev": true + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==" }, "concat-map": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", - "dev": true + "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=" }, "definitelytyped-header-parser": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/definitelytyped-header-parser/-/definitelytyped-header-parser-1.2.0.tgz", "integrity": "sha512-xpg8uu/2YD/reaVsZV4oJ4g7UDYFqQGWvT1W9Tsj6q4VtWBSaig38Qgah0ZMnQGF9kAsAim08EXDO1nSi0+Nog==", - "dev": true, "requires": { "@types/parsimmon": "^1.3.0", "parsimmon": "^1.2.0" @@ -126,14 +110,12 @@ "diff": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.1.tgz", - "integrity": "sha512-s2+XdvhPCOF01LRQBC8hf4vhbVmI2CGS5aZnxLJlT5FtdhPCDFq80q++zK2KlrVorVDdL5BOGZ/VfLrVtYNF+Q==", - "dev": true + "integrity": "sha512-s2+XdvhPCOF01LRQBC8hf4vhbVmI2CGS5aZnxLJlT5FtdhPCDFq80q++zK2KlrVorVDdL5BOGZ/VfLrVtYNF+Q==" }, "dtslint": { "version": "0.4.2", "resolved": "https://registry.npmjs.org/dtslint/-/dtslint-0.4.2.tgz", "integrity": "sha512-ph4GXLw3HYzlQMJOFcpCqWHuL3MxJ/344OR7wn0wlQGchQGTIVNsSUl8iKEMatpy2geNMysgA9fQa6xVhHOkTQ==", - "dev": true, "requires": { "definitelytyped-header-parser": "github:Microsoft/definitelytyped-header-parser#production", "fs-extra": "^6.0.1", @@ -145,7 +127,6 @@ "definitelytyped-header-parser": { "version": "github:Microsoft/definitelytyped-header-parser#d957ad0bb2f4ecb60ac04f734e0b38fbc8e70b8a", "from": "github:Microsoft/definitelytyped-header-parser#production", - "dev": true, "requires": { "@types/parsimmon": "^1.3.0", "parsimmon": "^1.2.0" @@ -156,26 +137,22 @@ "escape-string-regexp": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", - "dev": true + "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=" }, "esprima": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", - "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", - "dev": true + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==" }, "esutils": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", - "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", - "dev": true + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==" }, "fs-extra": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-6.0.1.tgz", "integrity": "sha512-GnyIkKhhzXZUWFCaJzvyDLEEgDkPfb4/TPvJCJVuS8MWZgoSsErf++QpiAlDnKFcqhRlm+tIOcencCjyJE6ZCA==", - "dev": true, "requires": { "graceful-fs": "^4.1.2", "jsonfile": "^4.0.0", @@ -185,14 +162,12 @@ "fs.realpath": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", - "dev": true + "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=" }, "glob": { "version": "7.1.4", "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.4.tgz", "integrity": "sha512-hkLPepehmnKk41pUGm3sYxoFs/umurYfYJCerbXEyFIWcAzvpipAgVkBqqT9RBKMGjnq6kMuyYwha6csxbiM1A==", - "dev": true, "requires": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", @@ -205,20 +180,17 @@ "graceful-fs": { "version": "4.2.2", "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.2.tgz", - "integrity": "sha512-IItsdsea19BoLC7ELy13q1iJFNmd7ofZH5+X/pJr90/nRoPEX0DJo1dHDbgtYWOhJhcCgMDTOw84RZ72q6lB+Q==", - "dev": true + "integrity": "sha512-IItsdsea19BoLC7ELy13q1iJFNmd7ofZH5+X/pJr90/nRoPEX0DJo1dHDbgtYWOhJhcCgMDTOw84RZ72q6lB+Q==" }, "has-flag": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", - "dev": true + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=" }, "inflight": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", - "dev": true, "requires": { "once": "^1.3.0", "wrappy": "1" @@ -227,20 +199,17 @@ "inherits": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", - "dev": true + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" }, "js-tokens": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", - "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", - "dev": true + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==" }, "js-yaml": { "version": "3.13.1", "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.13.1.tgz", "integrity": "sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw==", - "dev": true, "requires": { "argparse": "^1.0.7", "esprima": "^4.0.0" @@ -250,7 +219,6 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", "integrity": "sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss=", - "dev": true, "requires": { "graceful-fs": "^4.1.6" } @@ -259,7 +227,6 @@ "version": "3.0.4", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", - "dev": true, "requires": { "brace-expansion": "^1.1.7" } @@ -267,14 +234,12 @@ "minimist": { "version": "0.0.8", "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", - "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=", - "dev": true + "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=" }, "mkdirp": { "version": "0.5.1", "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", - "dev": true, "requires": { "minimist": "0.0.8" } @@ -283,7 +248,6 @@ "version": "1.4.0", "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", - "dev": true, "requires": { "wrappy": "1" } @@ -291,26 +255,22 @@ "parsimmon": { "version": "1.13.0", "resolved": "https://registry.npmjs.org/parsimmon/-/parsimmon-1.13.0.tgz", - "integrity": "sha512-5UIrOCW+gjbILkjKPgTgmq8LKf8TT3Iy7kN2VD7OtQ81facKn8B4gG1X94jWqXYZsxG2KbJhrv/Yq/5H6BQn7A==", - "dev": true + "integrity": "sha512-5UIrOCW+gjbILkjKPgTgmq8LKf8TT3Iy7kN2VD7OtQ81facKn8B4gG1X94jWqXYZsxG2KbJhrv/Yq/5H6BQn7A==" }, "path-is-absolute": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", - "dev": true + "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=" }, "path-parse": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz", - "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==", - "dev": true + "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==" }, "resolve": { "version": "1.12.0", "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.12.0.tgz", "integrity": "sha512-B/dOmuoAik5bKcD6s6nXDCjzUKnaDvdkRyAk6rsmsKLipWj4797iothd7jmmUhWTfinVMU+wc56rYKsit2Qy4w==", - "dev": true, "requires": { "path-parse": "^1.0.6" } @@ -318,26 +278,22 @@ "semver": { "version": "5.7.1", "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", - "dev": true + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==" }, "sprintf-js": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", - "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", - "dev": true + "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=" }, "strip-json-comments": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", - "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=", - "dev": true + "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=" }, "supports-color": { "version": "5.5.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "dev": true, "requires": { "has-flag": "^3.0.0" } @@ -345,14 +301,12 @@ "tslib": { "version": "1.10.0", "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.10.0.tgz", - "integrity": "sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==", - "dev": true + "integrity": "sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==" }, "tslint": { "version": "5.20.0", "resolved": "https://registry.npmjs.org/tslint/-/tslint-5.20.0.tgz", "integrity": "sha512-2vqIvkMHbnx8acMogAERQ/IuINOq6DFqgF8/VDvhEkBqQh/x6SP0Y+OHnKth9/ZcHQSroOZwUQSN18v8KKF0/g==", - "dev": true, "requires": { "@babel/code-frame": "^7.0.0", "builtin-modules": "^1.1.1", @@ -373,7 +327,6 @@ "version": "2.29.0", "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-2.29.0.tgz", "integrity": "sha512-g5JVHCIJwzfISaXpXE1qvNalca5Jwob6FjI4AoPlqMusJ6ftFE7IkkFoMhVLRgK+4Kx3gkzb8UZK5t5yTTvEmA==", - "dev": true, "requires": { "tslib": "^1.8.1" } @@ -381,20 +334,17 @@ "typescript": { "version": "3.7.0-dev.20191015", "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.7.0-dev.20191015.tgz", - "integrity": "sha512-Cpfj1n4pEUVKL+jtS0mkZodJffyMmf3Wk/UjyZMGX4fsjK5KBPJf3NUlyXij8I8p1E2CAomdS5NPFrAR+z8pKw==", - "dev": true + "integrity": "sha512-Cpfj1n4pEUVKL+jtS0mkZodJffyMmf3Wk/UjyZMGX4fsjK5KBPJf3NUlyXij8I8p1E2CAomdS5NPFrAR+z8pKw==" }, "universalify": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", - "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", - "dev": true + "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==" }, "wrappy": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", - "dev": true + "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=" } } } diff --git a/packages/web3/types/index.d.ts b/packages/web3/types/index.d.ts index 06fe46de9d4..49c4a81cb44 100644 --- a/packages/web3/types/index.d.ts +++ b/packages/web3/types/index.d.ts @@ -19,7 +19,7 @@ import * as net from 'net'; import { Bzz } from 'web3-bzz'; -import { BatchRequest, provider, Providers } from 'web3-core'; +import { BatchRequest, provider, Providers, Extension } from 'web3-core'; import { Eth } from 'web3-eth'; import { Personal } from 'web3-eth-personal'; import { Network } from 'web3-net'; @@ -43,6 +43,9 @@ export default class Web3 { shh: Shh; bzz: Bzz; version: string; + static readonly version: string; + static readonly utils: Utils; + extend(extension: Extension): any; } export interface Modules { @@ -50,4 +53,5 @@ export interface Modules { Net: new (provider: provider, net: net.Socket) => Network; Personal: new (provider: provider, net: net.Socket) => Personal; Shh: new (provider: provider, net: net.Socket) => Shh; + Bzz: new (provider: provider) => Bzz; } diff --git a/packages/web3/types/tests/web3-test.ts b/packages/web3/types/tests/web3-test.ts index b46664d5f83..70248de27e9 100644 --- a/packages/web3/types/tests/web3-test.ts +++ b/packages/web3/types/tests/web3-test.ts @@ -19,6 +19,12 @@ import Web3 from 'web3'; +// $ExpectType Utils +Web3.utils; + +// $ExpectType string +Web3.version; + // $ExpectType Modules Web3.modules; @@ -30,6 +36,9 @@ const web3 = new Web3('https://localhost:5000/'); // $ExpectType provider web3.currentProvider; +// $ExpectType any +web3.extend({property: 'test', methods: [{name: 'method', call: 'method'}]}); + // $ExpectType any web3.givenProvider; From f09a1c742148a115f612ef22b68838f2d1eff276 Mon Sep 17 00:00:00 2001 From: nivida Date: Wed, 16 Oct 2019 12:28:39 +0200 Subject: [PATCH 114/124] ci script updated --- scripts/ci.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/ci.sh b/scripts/ci.sh index 4839ff2d12e..acccf6cdc73 100755 --- a/scripts/ci.sh +++ b/scripts/ci.sh @@ -8,12 +8,14 @@ if [ "$TEST" = "unit" ]; then npm run build npm run test:unit + npm run dtslint elif [ "$TEST" = "unit_and_e2e" ]; then npm run build npm run test:e2e:all npm run test:unit + npm run dtslint npm run coveralls fi From 747a00bcdc82032c7a99c2eba2eee0cc0fad2f26 Mon Sep 17 00:00:00 2001 From: nivida Date: Wed, 16 Oct 2019 12:42:47 +0200 Subject: [PATCH 115/124] global install of typescript for CI added --- scripts/ci.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/ci.sh b/scripts/ci.sh index acccf6cdc73..315c29f0505 100755 --- a/scripts/ci.sh +++ b/scripts/ci.sh @@ -8,6 +8,7 @@ if [ "$TEST" = "unit" ]; then npm run build npm run test:unit + npm i -g typescript@next npm run dtslint elif [ "$TEST" = "unit_and_e2e" ]; then @@ -15,6 +16,7 @@ elif [ "$TEST" = "unit_and_e2e" ]; then npm run build npm run test:e2e:all npm run test:unit + npm i -g typescript@next npm run dtslint npm run coveralls From 37121040c2a8fceecc68dff6704cb94abd3c8d37 Mon Sep 17 00:00:00 2001 From: nivida Date: Wed, 16 Oct 2019 12:52:30 +0200 Subject: [PATCH 116/124] installation of typescript moved to before_script --- .travis.yml | 11 ++++++----- scripts/ci.sh | 2 -- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/.travis.yml b/.travis.yml index 330e3af16f0..e44a362cac7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -20,11 +20,12 @@ addons: - g++-5 before_install: - - if [ $TRAVIS_OS_NAME == "linux" ]; then - export CC="gcc-5"; - export CXX="g++-5"; - export LINK="gcc-5"; - export LINKXX="g++-5"; + - npm i -g typescript@next + - if [ $TRAVIS_OS_NAME == "linux" ]; then + export CC="gcc-5"; + export CXX="g++-5"; + export LINK="gcc-5"; + export LINKXX="g++-5"; fi install: - npm install diff --git a/scripts/ci.sh b/scripts/ci.sh index 315c29f0505..acccf6cdc73 100755 --- a/scripts/ci.sh +++ b/scripts/ci.sh @@ -8,7 +8,6 @@ if [ "$TEST" = "unit" ]; then npm run build npm run test:unit - npm i -g typescript@next npm run dtslint elif [ "$TEST" = "unit_and_e2e" ]; then @@ -16,7 +15,6 @@ elif [ "$TEST" = "unit_and_e2e" ]; then npm run build npm run test:e2e:all npm run test:unit - npm i -g typescript@next npm run dtslint npm run coveralls From 85e53fcf937e68437674fa7acc66fa520b9ebe09 Mon Sep 17 00:00:00 2001 From: nivida Date: Wed, 16 Oct 2019 12:59:39 +0200 Subject: [PATCH 117/124] lerna-debug.log added to gitignore --- .gitignore | 1 + package.json | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index b69bc021448..6166a268186 100644 --- a/.gitignore +++ b/.gitignore @@ -15,4 +15,5 @@ bower_components .vscode/ dist/ packages/web3/dist/ +lerna-debug.log !./dist/web3.min.js diff --git a/package.json b/package.json index eba43afc178..4d555b2b9b4 100644 --- a/package.json +++ b/package.json @@ -110,6 +110,5 @@ "underscore": "^1.9.1", "vinyl-source-stream": "^2.0.0", "wait-port": "^0.2.6" - }, - "dependencies": {} + } } From a983c12b8895b347e1067051d49d527ef0acd888 Mon Sep 17 00:00:00 2001 From: nivida Date: Wed, 16 Oct 2019 13:05:51 +0200 Subject: [PATCH 118/124] lerna-debug removed --- lerna-debug.log | 100 ------------------------------------------------ 1 file changed, 100 deletions(-) delete mode 100644 lerna-debug.log diff --git a/lerna-debug.log b/lerna-debug.log deleted file mode 100644 index 04dcdf32a36..00000000000 --- a/lerna-debug.log +++ /dev/null @@ -1,100 +0,0 @@ -0 silly input [ 'dtslint' ] -1 silly flags { -1 silly flags _: [ 'run' ], -1 silly flags 'reject-cycles': false, -1 silly flags rejectCycles: false, -1 silly flags script: 'dtslint', -1 silly flags args: [] -1 silly flags } -2 verbose rootPath /Users/work/Development/foundation/josh -3 info version 2.11.0 -4 silly existsSync /Users/work/Development/foundation/josh/VERSION -5 silly initialize attempt -6 silly initialize success -7 silly execute attempt -8 silly runScriptInDir dtslint [] web3-bzz -9 silly getExecOpts { cwd: '/Users/work/Development/foundation/josh/packages/web3-bzz' } -10 silly runScriptInDir dtslint [] web3-utils -11 silly getExecOpts { cwd: '/Users/work/Development/foundation/josh/packages/web3-utils' } -12 silly runScriptInDir dtslint [] web3-eth-abi -13 silly getExecOpts { -13 silly getExecOpts cwd: '/Users/work/Development/foundation/josh/packages/web3-eth-abi' -13 silly getExecOpts } -14 silly runScriptInDir dtslint [] web3-eth-iban -15 silly getExecOpts { -15 silly getExecOpts cwd: '/Users/work/Development/foundation/josh/packages/web3-eth-iban' -15 silly getExecOpts } -16 silly runScriptInDir dtslint [] web3-core-helpers -17 silly getExecOpts { -17 silly getExecOpts cwd: '/Users/work/Development/foundation/josh/packages/web3-core-helpers' -17 silly getExecOpts } -18 silly runScriptInDir dtslint [] web3-core-subscriptions -19 silly getExecOpts { -19 silly getExecOpts cwd: '/Users/work/Development/foundation/josh/packages/web3-core-subscriptions' -19 silly getExecOpts } -20 silly runScriptInDir dtslint [] web3-providers-http -21 silly getExecOpts { -21 silly getExecOpts cwd: '/Users/work/Development/foundation/josh/packages/web3-providers-http' -21 silly getExecOpts } -22 silly runScriptInDir dtslint [] web3-providers-ipc -23 silly getExecOpts { -23 silly getExecOpts cwd: '/Users/work/Development/foundation/josh/packages/web3-providers-ipc' -23 silly getExecOpts } -24 silly runScriptInDir dtslint [] web3-providers-ws -25 silly getExecOpts { -25 silly getExecOpts cwd: '/Users/work/Development/foundation/josh/packages/web3-providers-ws' -25 silly getExecOpts } -26 silly runScriptInDir dtslint [] web3-core-method -27 silly getExecOpts { -27 silly getExecOpts cwd: '/Users/work/Development/foundation/josh/packages/web3-core-method' -27 silly getExecOpts } -28 silly runScriptInDir dtslint [] web3-core -29 silly getExecOpts { cwd: '/Users/work/Development/foundation/josh/packages/web3-core' } -30 silly runScriptInDir dtslint [] web3-eth-accounts -31 silly getExecOpts { -31 silly getExecOpts cwd: '/Users/work/Development/foundation/josh/packages/web3-eth-accounts' -31 silly getExecOpts } -32 silly runScriptInDir dtslint [] web3-eth-contract -33 silly getExecOpts { -33 silly getExecOpts cwd: '/Users/work/Development/foundation/josh/packages/web3-eth-contract' -33 silly getExecOpts } -34 silly runScriptInDir dtslint [] web3-net -35 silly getExecOpts { cwd: '/Users/work/Development/foundation/josh/packages/web3-net' } -36 silly runScriptInDir dtslint [] web3-eth-ens -37 silly getExecOpts { -37 silly getExecOpts cwd: '/Users/work/Development/foundation/josh/packages/web3-eth-ens' -37 silly getExecOpts } -38 silly runScriptInDir dtslint [] web3-eth-personal -39 silly getExecOpts { -39 silly getExecOpts cwd: '/Users/work/Development/foundation/josh/packages/web3-eth-personal' -39 silly getExecOpts } -40 silly runScriptInDir dtslint [] web3-shh -41 silly getExecOpts { cwd: '/Users/work/Development/foundation/josh/packages/web3-shh' } -42 silly runScriptInDir dtslint [] web3-eth -43 silly getExecOpts { cwd: '/Users/work/Development/foundation/josh/packages/web3-eth' } -44 error dtslint Errored while running script in 'web3-eth' -45 error execute callback with error -46 error Error: Command failed: npm run dtslint -46 error Error: /Users/work/Development/foundation/josh/packages/web3-eth/types/tests/eth.tests.ts:44:5 -46 error ERROR: 44:5 expect TypeScript@next compile error: -46 error Property 'extend' does not exist on type 'Eth'. -46 error -46 error at /Users/work/Development/foundation/josh/packages/web3-eth/node_modules/dtslint/bin/index.js:163:19 -46 error at Generator.next () -46 error at fulfilled (/Users/work/Development/foundation/josh/packages/web3-eth/node_modules/dtslint/bin/index.js:5:58) -46 error npm ERR! code ELIFECYCLE -46 error npm ERR! errno 1 -46 error npm ERR! web3-eth@1.2.1 dtslint: `dtslint types --onlyTestTsNext` -46 error npm ERR! Exit status 1 -46 error npm ERR! -46 error npm ERR! Failed at the web3-eth@1.2.1 dtslint script. -46 error npm ERR! This is probably not a problem with npm. There is likely additional logging output above. -46 error -46 error npm ERR! A complete log of this run can be found in: -46 error npm ERR! /Users/work/.npm/_logs/2019-10-16T09_56_52_575Z-debug.log -46 error -46 error > web3-eth@1.2.1 dtslint /Users/work/Development/foundation/josh/packages/web3-eth -46 error > dtslint types --onlyTestTsNext -46 error -46 error -46 error at /Users/work/Development/foundation/josh/node_modules/execa/index.js:236:11 From b0e4c10fe6cc6cbba572b76838ecd101a47abb28 Mon Sep 17 00:00:00 2001 From: nivida Date: Wed, 16 Oct 2019 14:16:31 +0200 Subject: [PATCH 119/124] getNodeInfo added to types and documentation --- docs/web3-eth.rst | 27 ++++++++++++++++++++++ packages/web3-eth/types/index.d.ts | 4 ++++ packages/web3-eth/types/tests/eth.tests.ts | 5 ++++ 3 files changed, 36 insertions(+) diff --git a/docs/web3-eth.rst b/docs/web3-eth.rst index 622e749c5ce..b38bc8adcae 100644 --- a/docs/web3-eth.rst +++ b/docs/web3-eth.rst @@ -1558,3 +1558,30 @@ Example > 61 ------------------------------------------------------------------------------ + +.. _eth-getNodeInfo: + +getNodeInfo +=========== + +.. code-block:: javascript + + web3.eth.getNodeInfo([callback]) + +------- +Returns +------- + +``Promise`` - The current client version. + +------- +Example +------- + + +.. code-block:: javascript + + web3.eth.getNodeInfo().then(console.log); + > "Mist/v0.9.3/darwin/go1.4.1" + +------------------------------------------------------------------------------ diff --git a/packages/web3-eth/types/index.d.ts b/packages/web3-eth/types/index.d.ts index a9943ca334b..bc4370b4a4e 100644 --- a/packages/web3-eth/types/index.d.ts +++ b/packages/web3-eth/types/index.d.ts @@ -116,6 +116,10 @@ export class Eth { callback?: (error: Error, hashes: number) => void ): Promise; + getNodeInfo( + callback?: (error: Error, version: string) => void + ): Promise; + getGasPrice( callback?: (error: Error, gasPrice: string) => void ): Promise; diff --git a/packages/web3-eth/types/tests/eth.tests.ts b/packages/web3-eth/types/tests/eth.tests.ts index 3c81bad5327..fcefc77026f 100644 --- a/packages/web3-eth/types/tests/eth.tests.ts +++ b/packages/web3-eth/types/tests/eth.tests.ts @@ -129,6 +129,11 @@ eth.getHashrate(); // $ExpectType Promise eth.getHashrate((error: Error, hashes: number) => {}); +// $ExpectType Promise +eth.getNodeInfo(); +// $ExpectType Promise +eth.getNodeInfo((error: Error, version: string) => {}); + // $ExpectType Promise eth.getGasPrice(); // $ExpectType Promise From fa841bd734038f45bed27517908c46a83c06e006 Mon Sep 17 00:00:00 2001 From: nivida Date: Wed, 16 Oct 2019 14:18:28 +0200 Subject: [PATCH 120/124] getChainId to types added --- packages/web3-eth/types/index.d.ts | 4 ++++ packages/web3-eth/types/tests/eth.tests.ts | 9 +++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/packages/web3-eth/types/index.d.ts b/packages/web3-eth/types/index.d.ts index bc4370b4a4e..a15132dc9d4 100644 --- a/packages/web3-eth/types/index.d.ts +++ b/packages/web3-eth/types/index.d.ts @@ -118,6 +118,10 @@ export class Eth { getNodeInfo( callback?: (error: Error, version: string) => void + ): Promise; + + getChainId( + callback?: (error: Error, version: number) => void ): Promise; getGasPrice( diff --git a/packages/web3-eth/types/tests/eth.tests.ts b/packages/web3-eth/types/tests/eth.tests.ts index fcefc77026f..d06c388c996 100644 --- a/packages/web3-eth/types/tests/eth.tests.ts +++ b/packages/web3-eth/types/tests/eth.tests.ts @@ -129,11 +129,16 @@ eth.getHashrate(); // $ExpectType Promise eth.getHashrate((error: Error, hashes: number) => {}); -// $ExpectType Promise +// $ExpectType Promise eth.getNodeInfo(); -// $ExpectType Promise +// $ExpectType Promise eth.getNodeInfo((error: Error, version: string) => {}); +// $ExpectType Promise +eth.getChainId(); +// $ExpectType Promise +eth.getChainId((error: Error, chainId: number) => {}); + // $ExpectType Promise eth.getGasPrice(); // $ExpectType Promise From 30d15235cc58367146da729935ab4953b21aa772 Mon Sep 17 00:00:00 2001 From: nivida Date: Wed, 16 Oct 2019 15:25:32 +0200 Subject: [PATCH 121/124] travis.yml fixed --- .travis.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index e44a362cac7..9b9e87644fc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -20,12 +20,12 @@ addons: - g++-5 before_install: - - npm i -g typescript@next - - if [ $TRAVIS_OS_NAME == "linux" ]; then - export CC="gcc-5"; - export CXX="g++-5"; - export LINK="gcc-5"; - export LINKXX="g++-5"; + - npm i -g typescript@next + - if [ $TRAVIS_OS_NAME == "linux" ]; then + export CC="gcc-5"; + export CXX="g++-5"; + export LINK="gcc-5"; + export LINKXX="g++-5"; fi install: - npm install From 0234d695c7120f9e3a34b9c95d639cbbe527372a Mon Sep 17 00:00:00 2001 From: nivida Date: Wed, 16 Oct 2019 15:45:12 +0200 Subject: [PATCH 122/124] global install of typescript removed and just added as dependency to the root package.json --- .travis.yml | 1 - package-lock.json | 6 ++++++ package.json | 3 ++- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 9b9e87644fc..330e3af16f0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -20,7 +20,6 @@ addons: - g++-5 before_install: - - npm i -g typescript@next - if [ $TRAVIS_OS_NAME == "linux" ]; then export CC="gcc-5"; export CXX="g++-5"; diff --git a/package-lock.json b/package-lock.json index 199530ea1ef..004151bb4be 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11660,6 +11660,12 @@ "is-typedarray": "^1.0.0" } }, + "typescript": { + "version": "3.7.0-dev.20191016", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.7.0-dev.20191016.tgz", + "integrity": "sha512-4CUiTF5rEtPaClGD9nWpqPMICdDc54PTyrzwqpivz/h7mkWJs/xhQhOddiA5vx+D8ob9eSRIdueXQkI2oxOmfg==", + "dev": true + }, "uglify-js": { "version": "3.4.9", "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.4.9.tgz", diff --git a/package.json b/package.json index 4d555b2b9b4..d19ca4b6e99 100644 --- a/package.json +++ b/package.json @@ -109,6 +109,7 @@ "sandboxed-module": "^2.0.3", "underscore": "^1.9.1", "vinyl-source-stream": "^2.0.0", - "wait-port": "^0.2.6" + "wait-port": "^0.2.6", + "typescript": "next" } } From 151a2b7f34b785a9129dbf4a529c98a51da17804 Mon Sep 17 00:00:00 2001 From: Josh Stevens Date: Wed, 16 Oct 2019 14:57:54 +0100 Subject: [PATCH 123/124] fix: dtslint to version `0.4.2` --- .../web3-core-subscriptions/package-lock.json | 104 ++- packages/web3-eth-accounts/package-lock.json | 97 +- packages/web3-providers-http/package.json | 2 +- packages/web3-providers-ipc/package-lock.json | 854 ++---------------- packages/web3-providers-ipc/package.json | 2 +- packages/web3-providers-ws/package-lock.json | 849 ++--------------- packages/web3-providers-ws/package.json | 44 +- 7 files changed, 361 insertions(+), 1591 deletions(-) diff --git a/packages/web3-core-subscriptions/package-lock.json b/packages/web3-core-subscriptions/package-lock.json index d5b9cd6dbe5..e023f352481 100644 --- a/packages/web3-core-subscriptions/package-lock.json +++ b/packages/web3-core-subscriptions/package-lock.json @@ -1,11 +1,14 @@ { - "requires": true, + "name": "web3-core-subscriptions", + "version": "1.2.1", "lockfileVersion": 1, + "requires": true, "dependencies": { "@babel/code-frame": { "version": "7.5.5", "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.5.5.tgz", "integrity": "sha512-27d4lZoomVyo51VegxI20xZPuSHusqbQag/ztrBC7wegWoQ1nLREPVSKSW8byhTlzTKyNE4ifaTA6lCp7JjpFw==", + "dev": true, "requires": { "@babel/highlight": "^7.0.0" } @@ -14,6 +17,7 @@ "version": "7.5.0", "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.5.0.tgz", "integrity": "sha512-7dV4eu9gBxoM0dAnj/BCFDW9LFU0zvTrkq0ugM7pnHEgguOEeOz1so2ZghEdzviYzQEED0r4EAgpsBChKy1TRQ==", + "dev": true, "requires": { "chalk": "^2.0.0", "esutils": "^2.0.2", @@ -23,12 +27,14 @@ "@types/parsimmon": { "version": "1.10.0", "resolved": "https://registry.npmjs.org/@types/parsimmon/-/parsimmon-1.10.0.tgz", - "integrity": "sha512-bsTIJFVQv7jnvNiC42ld2pQW2KRI+pAG243L+iATvqzy3X6+NH1obz2itRKDZZ8VVhN3wjwYax/VBGCcXzgTqQ==" + "integrity": "sha512-bsTIJFVQv7jnvNiC42ld2pQW2KRI+pAG243L+iATvqzy3X6+NH1obz2itRKDZZ8VVhN3wjwYax/VBGCcXzgTqQ==", + "dev": true }, "ansi-styles": { "version": "3.2.1", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, "requires": { "color-convert": "^1.9.0" } @@ -37,6 +43,7 @@ "version": "1.0.10", "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "dev": true, "requires": { "sprintf-js": "~1.0.2" } @@ -44,12 +51,14 @@ "balanced-match": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", - "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=" + "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", + "dev": true }, "brace-expansion": { "version": "1.1.11", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, "requires": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" @@ -58,12 +67,14 @@ "builtin-modules": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-1.1.1.tgz", - "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=" + "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=", + "dev": true }, "chalk": { "version": "2.4.2", "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dev": true, "requires": { "ansi-styles": "^3.2.1", "escape-string-regexp": "^1.0.5", @@ -74,6 +85,7 @@ "version": "1.9.3", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dev": true, "requires": { "color-name": "1.1.3" } @@ -81,22 +93,26 @@ "color-name": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=" + "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", + "dev": true }, "commander": { "version": "2.20.3", "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", - "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==" + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", + "dev": true }, "concat-map": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=" + "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", + "dev": true }, "definitelytyped-header-parser": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/definitelytyped-header-parser/-/definitelytyped-header-parser-1.2.0.tgz", "integrity": "sha512-xpg8uu/2YD/reaVsZV4oJ4g7UDYFqQGWvT1W9Tsj6q4VtWBSaig38Qgah0ZMnQGF9kAsAim08EXDO1nSi0+Nog==", + "dev": true, "requires": { "@types/parsimmon": "^1.3.0", "parsimmon": "^1.2.0" @@ -105,12 +121,14 @@ "diff": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.1.tgz", - "integrity": "sha512-s2+XdvhPCOF01LRQBC8hf4vhbVmI2CGS5aZnxLJlT5FtdhPCDFq80q++zK2KlrVorVDdL5BOGZ/VfLrVtYNF+Q==" + "integrity": "sha512-s2+XdvhPCOF01LRQBC8hf4vhbVmI2CGS5aZnxLJlT5FtdhPCDFq80q++zK2KlrVorVDdL5BOGZ/VfLrVtYNF+Q==", + "dev": true }, "dtslint": { "version": "0.4.2", "resolved": "https://registry.npmjs.org/dtslint/-/dtslint-0.4.2.tgz", "integrity": "sha512-ph4GXLw3HYzlQMJOFcpCqWHuL3MxJ/344OR7wn0wlQGchQGTIVNsSUl8iKEMatpy2geNMysgA9fQa6xVhHOkTQ==", + "dev": true, "requires": { "definitelytyped-header-parser": "github:Microsoft/definitelytyped-header-parser#production", "fs-extra": "^6.0.1", @@ -122,6 +140,7 @@ "definitelytyped-header-parser": { "version": "github:Microsoft/definitelytyped-header-parser#d957ad0bb2f4ecb60ac04f734e0b38fbc8e70b8a", "from": "github:Microsoft/definitelytyped-header-parser#production", + "dev": true, "requires": { "@types/parsimmon": "^1.3.0", "parsimmon": "^1.2.0" @@ -132,17 +151,20 @@ "escape-string-regexp": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=" + "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", + "dev": true }, "esprima": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", - "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==" + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "dev": true }, "esutils": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", - "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==" + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true }, "eventemitter3": { "version": "3.1.2", @@ -153,6 +175,7 @@ "version": "6.0.1", "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-6.0.1.tgz", "integrity": "sha512-GnyIkKhhzXZUWFCaJzvyDLEEgDkPfb4/TPvJCJVuS8MWZgoSsErf++QpiAlDnKFcqhRlm+tIOcencCjyJE6ZCA==", + "dev": true, "requires": { "graceful-fs": "^4.1.2", "jsonfile": "^4.0.0", @@ -162,12 +185,14 @@ "fs.realpath": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=" + "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", + "dev": true }, "glob": { "version": "7.1.4", "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.4.tgz", "integrity": "sha512-hkLPepehmnKk41pUGm3sYxoFs/umurYfYJCerbXEyFIWcAzvpipAgVkBqqT9RBKMGjnq6kMuyYwha6csxbiM1A==", + "dev": true, "requires": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", @@ -180,17 +205,20 @@ "graceful-fs": { "version": "4.2.2", "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.2.tgz", - "integrity": "sha512-IItsdsea19BoLC7ELy13q1iJFNmd7ofZH5+X/pJr90/nRoPEX0DJo1dHDbgtYWOhJhcCgMDTOw84RZ72q6lB+Q==" + "integrity": "sha512-IItsdsea19BoLC7ELy13q1iJFNmd7ofZH5+X/pJr90/nRoPEX0DJo1dHDbgtYWOhJhcCgMDTOw84RZ72q6lB+Q==", + "dev": true }, "has-flag": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=" + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", + "dev": true }, "inflight": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", + "dev": true, "requires": { "once": "^1.3.0", "wrappy": "1" @@ -199,17 +227,20 @@ "inherits": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "dev": true }, "js-tokens": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", - "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==" + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "dev": true }, "js-yaml": { "version": "3.13.1", "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.13.1.tgz", "integrity": "sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw==", + "dev": true, "requires": { "argparse": "^1.0.7", "esprima": "^4.0.0" @@ -219,6 +250,7 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", "integrity": "sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss=", + "dev": true, "requires": { "graceful-fs": "^4.1.6" } @@ -227,6 +259,7 @@ "version": "3.0.4", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", + "dev": true, "requires": { "brace-expansion": "^1.1.7" } @@ -234,12 +267,14 @@ "minimist": { "version": "0.0.8", "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", - "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=" + "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=", + "dev": true }, "mkdirp": { "version": "0.5.1", "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", + "dev": true, "requires": { "minimist": "0.0.8" } @@ -248,6 +283,7 @@ "version": "1.4.0", "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", + "dev": true, "requires": { "wrappy": "1" } @@ -255,22 +291,26 @@ "parsimmon": { "version": "1.13.0", "resolved": "https://registry.npmjs.org/parsimmon/-/parsimmon-1.13.0.tgz", - "integrity": "sha512-5UIrOCW+gjbILkjKPgTgmq8LKf8TT3Iy7kN2VD7OtQ81facKn8B4gG1X94jWqXYZsxG2KbJhrv/Yq/5H6BQn7A==" + "integrity": "sha512-5UIrOCW+gjbILkjKPgTgmq8LKf8TT3Iy7kN2VD7OtQ81facKn8B4gG1X94jWqXYZsxG2KbJhrv/Yq/5H6BQn7A==", + "dev": true }, "path-is-absolute": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=" + "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", + "dev": true }, "path-parse": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz", - "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==" + "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==", + "dev": true }, "resolve": { "version": "1.12.0", "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.12.0.tgz", "integrity": "sha512-B/dOmuoAik5bKcD6s6nXDCjzUKnaDvdkRyAk6rsmsKLipWj4797iothd7jmmUhWTfinVMU+wc56rYKsit2Qy4w==", + "dev": true, "requires": { "path-parse": "^1.0.6" } @@ -278,22 +318,26 @@ "semver": { "version": "5.7.1", "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==" + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "dev": true }, "sprintf-js": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", - "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=" + "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", + "dev": true }, "strip-json-comments": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", - "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=" + "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=", + "dev": true }, "supports-color": { "version": "5.5.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, "requires": { "has-flag": "^3.0.0" } @@ -301,12 +345,14 @@ "tslib": { "version": "1.10.0", "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.10.0.tgz", - "integrity": "sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==" + "integrity": "sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==", + "dev": true }, "tslint": { "version": "5.20.0", "resolved": "https://registry.npmjs.org/tslint/-/tslint-5.20.0.tgz", "integrity": "sha512-2vqIvkMHbnx8acMogAERQ/IuINOq6DFqgF8/VDvhEkBqQh/x6SP0Y+OHnKth9/ZcHQSroOZwUQSN18v8KKF0/g==", + "dev": true, "requires": { "@babel/code-frame": "^7.0.0", "builtin-modules": "^1.1.1", @@ -327,6 +373,7 @@ "version": "2.29.0", "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-2.29.0.tgz", "integrity": "sha512-g5JVHCIJwzfISaXpXE1qvNalca5Jwob6FjI4AoPlqMusJ6ftFE7IkkFoMhVLRgK+4Kx3gkzb8UZK5t5yTTvEmA==", + "dev": true, "requires": { "tslib": "^1.8.1" } @@ -334,7 +381,8 @@ "typescript": { "version": "3.7.0-dev.20191016", "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.7.0-dev.20191016.tgz", - "integrity": "sha512-4CUiTF5rEtPaClGD9nWpqPMICdDc54PTyrzwqpivz/h7mkWJs/xhQhOddiA5vx+D8ob9eSRIdueXQkI2oxOmfg==" + "integrity": "sha512-4CUiTF5rEtPaClGD9nWpqPMICdDc54PTyrzwqpivz/h7mkWJs/xhQhOddiA5vx+D8ob9eSRIdueXQkI2oxOmfg==", + "dev": true }, "underscore": { "version": "1.9.1", @@ -344,12 +392,14 @@ "universalify": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", - "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==" + "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", + "dev": true }, "wrappy": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=" + "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", + "dev": true } } } diff --git a/packages/web3-eth-accounts/package-lock.json b/packages/web3-eth-accounts/package-lock.json index 0221d7b9c19..1e4741fb9e1 100644 --- a/packages/web3-eth-accounts/package-lock.json +++ b/packages/web3-eth-accounts/package-lock.json @@ -1,11 +1,14 @@ { - "requires": true, + "name": "web3-eth-accounts", + "version": "1.2.1", "lockfileVersion": 1, + "requires": true, "dependencies": { "@babel/code-frame": { "version": "7.5.5", "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.5.5.tgz", "integrity": "sha512-27d4lZoomVyo51VegxI20xZPuSHusqbQag/ztrBC7wegWoQ1nLREPVSKSW8byhTlzTKyNE4ifaTA6lCp7JjpFw==", + "dev": true, "requires": { "@babel/highlight": "^7.0.0" } @@ -14,6 +17,7 @@ "version": "7.5.0", "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.5.0.tgz", "integrity": "sha512-7dV4eu9gBxoM0dAnj/BCFDW9LFU0zvTrkq0ugM7pnHEgguOEeOz1so2ZghEdzviYzQEED0r4EAgpsBChKy1TRQ==", + "dev": true, "requires": { "chalk": "^2.0.0", "esutils": "^2.0.2", @@ -23,12 +27,14 @@ "@types/parsimmon": { "version": "1.10.0", "resolved": "https://registry.npmjs.org/@types/parsimmon/-/parsimmon-1.10.0.tgz", - "integrity": "sha512-bsTIJFVQv7jnvNiC42ld2pQW2KRI+pAG243L+iATvqzy3X6+NH1obz2itRKDZZ8VVhN3wjwYax/VBGCcXzgTqQ==" + "integrity": "sha512-bsTIJFVQv7jnvNiC42ld2pQW2KRI+pAG243L+iATvqzy3X6+NH1obz2itRKDZZ8VVhN3wjwYax/VBGCcXzgTqQ==", + "dev": true }, "ansi-styles": { "version": "3.2.1", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, "requires": { "color-convert": "^1.9.0" } @@ -42,6 +48,7 @@ "version": "1.0.10", "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "dev": true, "requires": { "sprintf-js": "~1.0.2" } @@ -59,7 +66,8 @@ "balanced-match": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", - "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=" + "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", + "dev": true }, "bindings": { "version": "1.5.0", @@ -86,6 +94,7 @@ "version": "1.1.11", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, "requires": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" @@ -166,12 +175,14 @@ "builtin-modules": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-1.1.1.tgz", - "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=" + "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=", + "dev": true }, "chalk": { "version": "2.4.2", "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dev": true, "requires": { "ansi-styles": "^3.2.1", "escape-string-regexp": "^1.0.5", @@ -191,6 +202,7 @@ "version": "1.9.3", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dev": true, "requires": { "color-name": "1.1.3" } @@ -198,17 +210,20 @@ "color-name": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=" + "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", + "dev": true }, "commander": { "version": "2.20.3", "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", - "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==" + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", + "dev": true }, "concat-map": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=" + "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", + "dev": true }, "create-ecdh": { "version": "4.0.3", @@ -287,6 +302,7 @@ "version": "1.2.0", "resolved": "https://registry.npmjs.org/definitelytyped-header-parser/-/definitelytyped-header-parser-1.2.0.tgz", "integrity": "sha512-xpg8uu/2YD/reaVsZV4oJ4g7UDYFqQGWvT1W9Tsj6q4VtWBSaig38Qgah0ZMnQGF9kAsAim08EXDO1nSi0+Nog==", + "dev": true, "requires": { "@types/parsimmon": "^1.3.0", "parsimmon": "^1.2.0" @@ -304,7 +320,8 @@ "diff": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.1.tgz", - "integrity": "sha512-s2+XdvhPCOF01LRQBC8hf4vhbVmI2CGS5aZnxLJlT5FtdhPCDFq80q++zK2KlrVorVDdL5BOGZ/VfLrVtYNF+Q==" + "integrity": "sha512-s2+XdvhPCOF01LRQBC8hf4vhbVmI2CGS5aZnxLJlT5FtdhPCDFq80q++zK2KlrVorVDdL5BOGZ/VfLrVtYNF+Q==", + "dev": true }, "diffie-hellman": { "version": "5.0.3", @@ -335,6 +352,7 @@ "version": "0.4.2", "resolved": "https://registry.npmjs.org/dtslint/-/dtslint-0.4.2.tgz", "integrity": "sha512-ph4GXLw3HYzlQMJOFcpCqWHuL3MxJ/344OR7wn0wlQGchQGTIVNsSUl8iKEMatpy2geNMysgA9fQa6xVhHOkTQ==", + "dev": true, "requires": { "definitelytyped-header-parser": "github:Microsoft/definitelytyped-header-parser#production", "fs-extra": "^6.0.1", @@ -346,6 +364,7 @@ "definitelytyped-header-parser": { "version": "github:Microsoft/definitelytyped-header-parser#d957ad0bb2f4ecb60ac04f734e0b38fbc8e70b8a", "from": "github:Microsoft/definitelytyped-header-parser#production", + "dev": true, "requires": { "@types/parsimmon": "^1.3.0", "parsimmon": "^1.2.0" @@ -393,17 +412,20 @@ "escape-string-regexp": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=" + "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", + "dev": true }, "esprima": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", - "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==" + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "dev": true }, "esutils": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", - "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==" + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true }, "eth-lib": { "version": "0.2.7", @@ -478,6 +500,7 @@ "version": "6.0.1", "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-6.0.1.tgz", "integrity": "sha512-GnyIkKhhzXZUWFCaJzvyDLEEgDkPfb4/TPvJCJVuS8MWZgoSsErf++QpiAlDnKFcqhRlm+tIOcencCjyJE6ZCA==", + "dev": true, "requires": { "graceful-fs": "^4.1.2", "jsonfile": "^4.0.0", @@ -487,7 +510,8 @@ "fs.realpath": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=" + "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", + "dev": true }, "function-bind": { "version": "1.1.1", @@ -498,6 +522,7 @@ "version": "7.1.4", "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.4.tgz", "integrity": "sha512-hkLPepehmnKk41pUGm3sYxoFs/umurYfYJCerbXEyFIWcAzvpipAgVkBqqT9RBKMGjnq6kMuyYwha6csxbiM1A==", + "dev": true, "requires": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", @@ -519,7 +544,8 @@ "graceful-fs": { "version": "4.2.2", "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.2.tgz", - "integrity": "sha512-IItsdsea19BoLC7ELy13q1iJFNmd7ofZH5+X/pJr90/nRoPEX0DJo1dHDbgtYWOhJhcCgMDTOw84RZ72q6lB+Q==" + "integrity": "sha512-IItsdsea19BoLC7ELy13q1iJFNmd7ofZH5+X/pJr90/nRoPEX0DJo1dHDbgtYWOhJhcCgMDTOw84RZ72q6lB+Q==", + "dev": true }, "has": { "version": "1.0.3", @@ -532,7 +558,8 @@ "has-flag": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=" + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", + "dev": true }, "has-symbols": { "version": "1.0.0", @@ -571,6 +598,7 @@ "version": "1.0.6", "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", + "dev": true, "requires": { "once": "^1.3.0", "wrappy": "1" @@ -620,12 +648,14 @@ "js-tokens": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", - "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==" + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "dev": true }, "js-yaml": { "version": "3.13.1", "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.13.1.tgz", "integrity": "sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw==", + "dev": true, "requires": { "argparse": "^1.0.7", "esprima": "^4.0.0" @@ -635,6 +665,7 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", "integrity": "sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss=", + "dev": true, "requires": { "graceful-fs": "^4.1.6" } @@ -696,6 +727,7 @@ "version": "3.0.4", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", + "dev": true, "requires": { "brace-expansion": "^1.1.7" } @@ -703,12 +735,14 @@ "minimist": { "version": "0.0.8", "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", - "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=" + "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=", + "dev": true }, "mkdirp": { "version": "0.5.1", "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", + "dev": true, "requires": { "minimist": "0.0.8" } @@ -760,17 +794,20 @@ "parsimmon": { "version": "1.13.0", "resolved": "https://registry.npmjs.org/parsimmon/-/parsimmon-1.13.0.tgz", - "integrity": "sha512-5UIrOCW+gjbILkjKPgTgmq8LKf8TT3Iy7kN2VD7OtQ81facKn8B4gG1X94jWqXYZsxG2KbJhrv/Yq/5H6BQn7A==" + "integrity": "sha512-5UIrOCW+gjbILkjKPgTgmq8LKf8TT3Iy7kN2VD7OtQ81facKn8B4gG1X94jWqXYZsxG2KbJhrv/Yq/5H6BQn7A==", + "dev": true }, "path-is-absolute": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=" + "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", + "dev": true }, "path-parse": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz", - "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==" + "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==", + "dev": true }, "pbkdf2": { "version": "3.0.17", @@ -833,6 +870,7 @@ "version": "1.12.0", "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.12.0.tgz", "integrity": "sha512-B/dOmuoAik5bKcD6s6nXDCjzUKnaDvdkRyAk6rsmsKLipWj4797iothd7jmmUhWTfinVMU+wc56rYKsit2Qy4w==", + "dev": true, "requires": { "path-parse": "^1.0.6" } @@ -898,7 +936,8 @@ "semver": { "version": "5.7.1", "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==" + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "dev": true }, "sha.js": { "version": "2.4.11", @@ -927,7 +966,8 @@ "sprintf-js": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", - "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=" + "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", + "dev": true }, "strict-uri-encode": { "version": "1.1.0", @@ -955,12 +995,14 @@ "strip-json-comments": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", - "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=" + "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=", + "dev": true }, "supports-color": { "version": "5.5.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, "requires": { "has-flag": "^3.0.0" } @@ -973,12 +1015,14 @@ "tslib": { "version": "1.10.0", "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.10.0.tgz", - "integrity": "sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==" + "integrity": "sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==", + "dev": true }, "tslint": { "version": "5.20.0", "resolved": "https://registry.npmjs.org/tslint/-/tslint-5.20.0.tgz", "integrity": "sha512-2vqIvkMHbnx8acMogAERQ/IuINOq6DFqgF8/VDvhEkBqQh/x6SP0Y+OHnKth9/ZcHQSroOZwUQSN18v8KKF0/g==", + "dev": true, "requires": { "@babel/code-frame": "^7.0.0", "builtin-modules": "^1.1.1", @@ -999,6 +1043,7 @@ "version": "2.29.0", "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-2.29.0.tgz", "integrity": "sha512-g5JVHCIJwzfISaXpXE1qvNalca5Jwob6FjI4AoPlqMusJ6ftFE7IkkFoMhVLRgK+4Kx3gkzb8UZK5t5yTTvEmA==", + "dev": true, "requires": { "tslib": "^1.8.1" } @@ -1006,7 +1051,8 @@ "typescript": { "version": "3.7.0-dev.20191015", "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.7.0-dev.20191015.tgz", - "integrity": "sha512-Cpfj1n4pEUVKL+jtS0mkZodJffyMmf3Wk/UjyZMGX4fsjK5KBPJf3NUlyXij8I8p1E2CAomdS5NPFrAR+z8pKw==" + "integrity": "sha512-Cpfj1n4pEUVKL+jtS0mkZodJffyMmf3Wk/UjyZMGX4fsjK5KBPJf3NUlyXij8I8p1E2CAomdS5NPFrAR+z8pKw==", + "dev": true }, "underscore": { "version": "1.9.1", @@ -1016,7 +1062,8 @@ "universalify": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", - "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==" + "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", + "dev": true }, "url-set-query": { "version": "1.0.0", diff --git a/packages/web3-providers-http/package.json b/packages/web3-providers-http/package.json index 684d678ccd9..825a53e07f1 100644 --- a/packages/web3-providers-http/package.json +++ b/packages/web3-providers-http/package.json @@ -18,6 +18,6 @@ }, "devDependencies": { "definitelytyped-header-parser": "^1.0.1", - "dtslint": "^0.4.2" + "dtslint": "0.4.2" } } diff --git a/packages/web3-providers-ipc/package-lock.json b/packages/web3-providers-ipc/package-lock.json index 92ea70c8899..b7d798d8708 100644 --- a/packages/web3-providers-ipc/package-lock.json +++ b/packages/web3-providers-ipc/package-lock.json @@ -1,11 +1,14 @@ { - "requires": true, + "name": "web3-providers-ipc", + "version": "1.2.1", "lockfileVersion": 1, + "requires": true, "dependencies": { "@babel/code-frame": { "version": "7.5.5", "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.5.5.tgz", "integrity": "sha512-27d4lZoomVyo51VegxI20xZPuSHusqbQag/ztrBC7wegWoQ1nLREPVSKSW8byhTlzTKyNE4ifaTA6lCp7JjpFw==", + "dev": true, "requires": { "@babel/highlight": "^7.0.0" } @@ -14,6 +17,7 @@ "version": "7.5.0", "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.5.0.tgz", "integrity": "sha512-7dV4eu9gBxoM0dAnj/BCFDW9LFU0zvTrkq0ugM7pnHEgguOEeOz1so2ZghEdzviYzQEED0r4EAgpsBChKy1TRQ==", + "dev": true, "requires": { "chalk": "^2.0.0", "esutils": "^2.0.2", @@ -23,28 +27,14 @@ "@types/parsimmon": { "version": "1.10.0", "resolved": "https://registry.npmjs.org/@types/parsimmon/-/parsimmon-1.10.0.tgz", - "integrity": "sha512-bsTIJFVQv7jnvNiC42ld2pQW2KRI+pAG243L+iATvqzy3X6+NH1obz2itRKDZZ8VVhN3wjwYax/VBGCcXzgTqQ==" - }, - "ajv": { - "version": "6.10.2", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.10.2.tgz", - "integrity": "sha512-TXtUUEYHuaTEbLZWIKUr5pmBuhDLy+8KYtPYdcV8qC+pOZL+NKqYwvWSRrVXHn+ZmRRAu8vJTAznH7Oag6RVRw==", - "requires": { - "fast-deep-equal": "^2.0.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" - } - }, - "ansi-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", - "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=" + "integrity": "sha512-bsTIJFVQv7jnvNiC42ld2pQW2KRI+pAG243L+iATvqzy3X6+NH1obz2itRKDZZ8VVhN3wjwYax/VBGCcXzgTqQ==", + "dev": true }, "ansi-styles": { "version": "3.2.1", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, "requires": { "color-convert": "^1.9.0" } @@ -53,55 +43,22 @@ "version": "1.0.10", "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "dev": true, "requires": { "sprintf-js": "~1.0.2" } }, - "asn1": { - "version": "0.2.4", - "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.4.tgz", - "integrity": "sha512-jxwzQpLQjSmWXgwaCZE9Nz+glAG01yF1QnWgbhGwHI5A6FRIEY6IVqtHhIepHqI7/kyEyQEagBC5mBEFlIYvdg==", - "requires": { - "safer-buffer": "~2.1.0" - } - }, - "assert-plus": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", - "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=" - }, - "asynckit": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", - "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=" - }, - "aws-sign2": { - "version": "0.7.0", - "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz", - "integrity": "sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg=" - }, - "aws4": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.8.0.tgz", - "integrity": "sha512-ReZxvNHIOv88FlT7rxcXIIC0fPt4KZqZbOlivyWtXLt8ESx84zd3kMC6iK5jVeS2qt+g7ftS7ye4fi06X5rtRQ==" - }, "balanced-match": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", - "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=" - }, - "bcrypt-pbkdf": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz", - "integrity": "sha1-pDAdOJtqQ/m2f/PKEaP2Y342Dp4=", - "requires": { - "tweetnacl": "^0.14.3" - } + "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", + "dev": true }, "brace-expansion": { "version": "1.1.11", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, "requires": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" @@ -110,47 +67,25 @@ "builtin-modules": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-1.1.1.tgz", - "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=" - }, - "camelcase": { - "version": "5.3.1", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", - "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==" - }, - "caseless": { - "version": "0.12.0", - "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz", - "integrity": "sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw=" + "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=", + "dev": true }, "chalk": { "version": "2.4.2", "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dev": true, "requires": { "ansi-styles": "^3.2.1", "escape-string-regexp": "^1.0.5", "supports-color": "^5.3.0" } }, - "cliui": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-4.1.0.tgz", - "integrity": "sha512-4FG+RSG9DL7uEwRUZXZn3SS34DiDPfzP0VOiEwtUWlE+AR2EIg+hSyvrIgUUfhdgR/UkAeW2QHgeP+hWrXs7jQ==", - "requires": { - "string-width": "^2.1.1", - "strip-ansi": "^4.0.0", - "wrap-ansi": "^2.0.0" - } - }, - "code-point-at": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz", - "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=" - }, "color-convert": { "version": "1.9.3", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dev": true, "requires": { "color-name": "1.1.3" } @@ -158,197 +93,84 @@ "color-name": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=" - }, - "combined-stream": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", - "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", - "requires": { - "delayed-stream": "~1.0.0" - } + "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", + "dev": true }, "commander": { "version": "2.20.3", "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", - "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==" + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", + "dev": true }, "concat-map": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=" - }, - "core-util-is": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", - "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=" - }, - "cross-spawn": { - "version": "6.0.5", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz", - "integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==", - "requires": { - "nice-try": "^1.0.4", - "path-key": "^2.0.1", - "semver": "^5.5.0", - "shebang-command": "^1.2.0", - "which": "^1.2.9" - } - }, - "dashdash": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz", - "integrity": "sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA=", - "requires": { - "assert-plus": "^1.0.0" - } - }, - "decamelize": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", - "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=" + "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", + "dev": true }, "definitelytyped-header-parser": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/definitelytyped-header-parser/-/definitelytyped-header-parser-1.2.0.tgz", "integrity": "sha512-xpg8uu/2YD/reaVsZV4oJ4g7UDYFqQGWvT1W9Tsj6q4VtWBSaig38Qgah0ZMnQGF9kAsAim08EXDO1nSi0+Nog==", + "dev": true, "requires": { "@types/parsimmon": "^1.3.0", "parsimmon": "^1.2.0" } }, - "delayed-stream": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", - "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=" - }, "diff": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.1.tgz", - "integrity": "sha512-s2+XdvhPCOF01LRQBC8hf4vhbVmI2CGS5aZnxLJlT5FtdhPCDFq80q++zK2KlrVorVDdL5BOGZ/VfLrVtYNF+Q==" - }, - "download-file-sync": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/download-file-sync/-/download-file-sync-1.0.4.tgz", - "integrity": "sha1-0+PFQ/g29BA5RVuQNMcuNVsDYBk=" - }, - "dts-critic": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/dts-critic/-/dts-critic-1.2.0.tgz", - "integrity": "sha512-z6VI1Sz7xxy0BgN6YsWuG9hbRIfph3U9hwrfNHLnLzsq865VYyjo5xKKUgXPuqMgJ04BUF1LGYQJ+kWyWwvUvQ==", - "requires": { - "definitelytyped-header-parser": "^1.2.0", - "download-file-sync": "^1.0.4", - "yargs": "^12.0.5" - } + "integrity": "sha512-s2+XdvhPCOF01LRQBC8hf4vhbVmI2CGS5aZnxLJlT5FtdhPCDFq80q++zK2KlrVorVDdL5BOGZ/VfLrVtYNF+Q==", + "dev": true }, "dtslint": { - "version": "0.4.9", - "resolved": "https://registry.npmjs.org/dtslint/-/dtslint-0.4.9.tgz", - "integrity": "sha512-QKOfpKIcpJi38gXWQ1uzm/jFU+1xqPVjrow8PSgs1N7CeY819A0Lm1VvYdM4GD1i964B2QKUyJAAjWiK8YPzlA==", + "version": "0.4.2", + "resolved": "https://registry.npmjs.org/dtslint/-/dtslint-0.4.2.tgz", + "integrity": "sha512-ph4GXLw3HYzlQMJOFcpCqWHuL3MxJ/344OR7wn0wlQGchQGTIVNsSUl8iKEMatpy2geNMysgA9fQa6xVhHOkTQ==", + "dev": true, "requires": { - "definitelytyped-header-parser": "^1.0.1", - "dts-critic": "^1.0.1", + "definitelytyped-header-parser": "github:Microsoft/definitelytyped-header-parser#production", "fs-extra": "^6.0.1", - "request": "^2.88.0", "strip-json-comments": "^2.0.1", "tslint": "^5.12.0", - "typescript": "^3.7.0-dev.20191015" - } - }, - "ecc-jsbn": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz", - "integrity": "sha1-OoOpBOVDUyh4dMVkt1SThoSamMk=", - "requires": { - "jsbn": "~0.1.0", - "safer-buffer": "^2.1.0" - } - }, - "end-of-stream": { - "version": "1.4.4", - "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", - "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", - "requires": { - "once": "^1.4.0" + "typescript": "^3.7.0-dev.20191016" + }, + "dependencies": { + "definitelytyped-header-parser": { + "version": "github:Microsoft/definitelytyped-header-parser#d957ad0bb2f4ecb60ac04f734e0b38fbc8e70b8a", + "from": "github:Microsoft/definitelytyped-header-parser#production", + "dev": true, + "requires": { + "@types/parsimmon": "^1.3.0", + "parsimmon": "^1.2.0" + } + } } }, "escape-string-regexp": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=" + "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", + "dev": true }, "esprima": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", - "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==" + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "dev": true }, "esutils": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", - "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==" - }, - "execa": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/execa/-/execa-1.0.0.tgz", - "integrity": "sha512-adbxcyWV46qiHyvSp50TKt05tB4tK3HcmF7/nxfAdhnox83seTDbwnaqKO4sXRy7roHAIFqJP/Rw/AuEbX61LA==", - "requires": { - "cross-spawn": "^6.0.0", - "get-stream": "^4.0.0", - "is-stream": "^1.1.0", - "npm-run-path": "^2.0.0", - "p-finally": "^1.0.0", - "signal-exit": "^3.0.0", - "strip-eof": "^1.0.0" - } - }, - "extend": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", - "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==" - }, - "extsprintf": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz", - "integrity": "sha1-lpGEQOMEGnpBT4xS48V06zw+HgU=" - }, - "fast-deep-equal": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-2.0.1.tgz", - "integrity": "sha1-ewUhjd+WZ79/Nwv3/bLLFf3Qqkk=" - }, - "fast-json-stable-stringify": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.0.0.tgz", - "integrity": "sha1-1RQsDK7msRifh9OnYREGT4bIu/I=" - }, - "find-up": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz", - "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==", - "requires": { - "locate-path": "^3.0.0" - } - }, - "forever-agent": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz", - "integrity": "sha1-+8cfDEGt6zf5bFd60e1C2P2sypE=" - }, - "form-data": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.3.tgz", - "integrity": "sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ==", - "requires": { - "asynckit": "^0.4.0", - "combined-stream": "^1.0.6", - "mime-types": "^2.1.12" - } + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true }, "fs-extra": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-6.0.1.tgz", "integrity": "sha512-GnyIkKhhzXZUWFCaJzvyDLEEgDkPfb4/TPvJCJVuS8MWZgoSsErf++QpiAlDnKFcqhRlm+tIOcencCjyJE6ZCA==", + "dev": true, "requires": { "graceful-fs": "^4.1.2", "jsonfile": "^4.0.0", @@ -358,33 +180,14 @@ "fs.realpath": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=" - }, - "get-caller-file": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-1.0.3.tgz", - "integrity": "sha512-3t6rVToeoZfYSGd8YoLFR2DJkiQrIiUrGcjvFX2mDw3bn6k2OtwHN0TNCLbBO+w8qTvimhDkv+LSscbJY1vE6w==" - }, - "get-stream": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-4.1.0.tgz", - "integrity": "sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w==", - "requires": { - "pump": "^3.0.0" - } - }, - "getpass": { - "version": "0.1.7", - "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz", - "integrity": "sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo=", - "requires": { - "assert-plus": "^1.0.0" - } + "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", + "dev": true }, "glob": { "version": "7.1.4", "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.4.tgz", "integrity": "sha512-hkLPepehmnKk41pUGm3sYxoFs/umurYfYJCerbXEyFIWcAzvpipAgVkBqqT9RBKMGjnq6kMuyYwha6csxbiM1A==", + "dev": true, "requires": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", @@ -397,46 +200,25 @@ "graceful-fs": { "version": "4.2.2", "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.2.tgz", - "integrity": "sha512-IItsdsea19BoLC7ELy13q1iJFNmd7ofZH5+X/pJr90/nRoPEX0DJo1dHDbgtYWOhJhcCgMDTOw84RZ72q6lB+Q==" - }, - "har-schema": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz", - "integrity": "sha1-qUwiJOvKwEeCoNkDVSHyRzW37JI=" - }, - "har-validator": { - "version": "5.1.3", - "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.1.3.tgz", - "integrity": "sha512-sNvOCzEQNr/qrvJgc3UG/kD4QtlHycrzwS+6mfTrrSq97BvaYcPZZI1ZSqGSPR73Cxn4LKTD4PttRwfU7jWq5g==", - "requires": { - "ajv": "^6.5.5", - "har-schema": "^2.0.0" - } + "integrity": "sha512-IItsdsea19BoLC7ELy13q1iJFNmd7ofZH5+X/pJr90/nRoPEX0DJo1dHDbgtYWOhJhcCgMDTOw84RZ72q6lB+Q==", + "dev": true }, "has-flag": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=" + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", + "dev": true }, "http-https": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/http-https/-/http-https-1.0.0.tgz", "integrity": "sha1-L5CN1fHbQGjAWM1ubUzjkskTOJs=" }, - "http-signature": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz", - "integrity": "sha1-muzZJRFHcvPZW2WmCruPfBj7rOE=", - "requires": { - "assert-plus": "^1.0.0", - "jsprim": "^1.2.2", - "sshpk": "^1.7.0" - } - }, "inflight": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", + "dev": true, "requires": { "once": "^1.3.0", "wrappy": "1" @@ -445,148 +227,39 @@ "inherits": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" - }, - "invert-kv": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/invert-kv/-/invert-kv-2.0.0.tgz", - "integrity": "sha512-wPVv/y/QQ/Uiirj/vh3oP+1Ww+AWehmi1g5fFWGPF6IpCBCDVrhgHRMvrLfdYcwDh3QJbGXDW4JAuzxElLSqKA==" - }, - "is-fullwidth-code-point": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", - "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=" - }, - "is-stream": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", - "integrity": "sha1-EtSj3U5o4Lec6428hBc66A2RykQ=" - }, - "is-typedarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", - "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=" - }, - "isexe": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=" - }, - "isstream": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz", - "integrity": "sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo=" + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "dev": true }, "js-tokens": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", - "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==" + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "dev": true }, "js-yaml": { "version": "3.13.1", "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.13.1.tgz", "integrity": "sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw==", + "dev": true, "requires": { "argparse": "^1.0.7", "esprima": "^4.0.0" } }, - "jsbn": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz", - "integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM=" - }, - "json-schema": { - "version": "0.2.3", - "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.2.3.tgz", - "integrity": "sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM=" - }, - "json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==" - }, - "json-stringify-safe": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", - "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=" - }, "jsonfile": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", "integrity": "sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss=", + "dev": true, "requires": { "graceful-fs": "^4.1.6" } }, - "jsprim": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.1.tgz", - "integrity": "sha1-MT5mvB5cwG5Di8G3SZwuXFastqI=", - "requires": { - "assert-plus": "1.0.0", - "extsprintf": "1.3.0", - "json-schema": "0.2.3", - "verror": "1.10.0" - } - }, - "lcid": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/lcid/-/lcid-2.0.0.tgz", - "integrity": "sha512-avPEb8P8EGnwXKClwsNUgryVjllcRqtMYa49NTsbQagYuT1DcXnl1915oxWjoyGrXR6zH/Y0Zc96xWsPcoDKeA==", - "requires": { - "invert-kv": "^2.0.0" - } - }, - "locate-path": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz", - "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==", - "requires": { - "p-locate": "^3.0.0", - "path-exists": "^3.0.0" - } - }, - "map-age-cleaner": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/map-age-cleaner/-/map-age-cleaner-0.1.3.tgz", - "integrity": "sha512-bJzx6nMoP6PDLPBFmg7+xRKeFZvFboMrGlxmNj9ClvX53KrmvM5bXFXEWjbz4cz1AFn+jWJ9z/DJSz7hrs0w3w==", - "requires": { - "p-defer": "^1.0.0" - } - }, - "mem": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/mem/-/mem-4.3.0.tgz", - "integrity": "sha512-qX2bG48pTqYRVmDB37rn/6PT7LcR8T7oAX3bf99u1Tt1nzxYfxkgqDwUwolPlXweM0XzBOBFzSx4kfp7KP1s/w==", - "requires": { - "map-age-cleaner": "^0.1.1", - "mimic-fn": "^2.0.0", - "p-is-promise": "^2.0.0" - } - }, - "mime-db": { - "version": "1.40.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.40.0.tgz", - "integrity": "sha512-jYdeOMPy9vnxEqFRRo6ZvTZ8d9oPb+k18PKoYNYUe2stVEBPPwsln/qWzdbmaIvnhZ9v2P+CuecK+fpUfsV2mA==" - }, - "mime-types": { - "version": "2.1.24", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.24.tgz", - "integrity": "sha512-WaFHS3MCl5fapm3oLxU4eYDw77IQM2ACcxQ9RIxfaC3ooc6PFuBMGZZsYpvoXS5D5QTWPieo1jjLdAm3TBP3cQ==", - "requires": { - "mime-db": "1.40.0" - } - }, - "mimic-fn": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", - "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==" - }, "minimatch": { "version": "3.0.4", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", + "dev": true, "requires": { "brace-expansion": "^1.1.7" } @@ -594,39 +267,18 @@ "minimist": { "version": "0.0.8", "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", - "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=" + "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=", + "dev": true }, "mkdirp": { "version": "0.5.1", "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", + "dev": true, "requires": { "minimist": "0.0.8" } }, - "nice-try": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/nice-try/-/nice-try-1.0.5.tgz", - "integrity": "sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==" - }, - "npm-run-path": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-2.0.2.tgz", - "integrity": "sha1-NakjLfo11wZ7TLLd8jV7GHFTbF8=", - "requires": { - "path-key": "^2.0.0" - } - }, - "number-is-nan": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz", - "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=" - }, - "oauth-sign": { - "version": "0.9.0", - "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.9.0.tgz", - "integrity": "sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ==" - }, "oboe": { "version": "2.1.4", "resolved": "https://registry.npmjs.org/oboe/-/oboe-2.1.4.tgz", @@ -639,274 +291,76 @@ "version": "1.4.0", "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", + "dev": true, "requires": { "wrappy": "1" } }, - "os-locale": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/os-locale/-/os-locale-3.1.0.tgz", - "integrity": "sha512-Z8l3R4wYWM40/52Z+S265okfFj8Kt2cC2MKY+xNi3kFs+XGI7WXu/I309QQQYbRW4ijiZ+yxs9pqEhJh0DqW3Q==", - "requires": { - "execa": "^1.0.0", - "lcid": "^2.0.0", - "mem": "^4.0.0" - } - }, - "p-defer": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/p-defer/-/p-defer-1.0.0.tgz", - "integrity": "sha1-n26xgvbJqozXQwBKfU+WsZaw+ww=" - }, - "p-finally": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz", - "integrity": "sha1-P7z7FbiZpEEjs0ttzBi3JDNqLK4=" - }, - "p-is-promise": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/p-is-promise/-/p-is-promise-2.1.0.tgz", - "integrity": "sha512-Y3W0wlRPK8ZMRbNq97l4M5otioeA5lm1z7bkNkxCka8HSPjR0xRWmpCmc9utiaLP9Jb1eD8BgeIxTW4AIF45Pg==" - }, - "p-limit": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.2.1.tgz", - "integrity": "sha512-85Tk+90UCVWvbDavCLKPOLC9vvY8OwEX/RtKF+/1OADJMVlFfEHOiMTPVyxg7mk/dKa+ipdHm0OUkTvCpMTuwg==", - "requires": { - "p-try": "^2.0.0" - } - }, - "p-locate": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz", - "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==", - "requires": { - "p-limit": "^2.0.0" - } - }, - "p-try": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", - "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==" - }, "parsimmon": { "version": "1.13.0", "resolved": "https://registry.npmjs.org/parsimmon/-/parsimmon-1.13.0.tgz", - "integrity": "sha512-5UIrOCW+gjbILkjKPgTgmq8LKf8TT3Iy7kN2VD7OtQ81facKn8B4gG1X94jWqXYZsxG2KbJhrv/Yq/5H6BQn7A==" - }, - "path-exists": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", - "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=" + "integrity": "sha512-5UIrOCW+gjbILkjKPgTgmq8LKf8TT3Iy7kN2VD7OtQ81facKn8B4gG1X94jWqXYZsxG2KbJhrv/Yq/5H6BQn7A==", + "dev": true }, "path-is-absolute": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=" - }, - "path-key": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz", - "integrity": "sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A=" + "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", + "dev": true }, "path-parse": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz", - "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==" - }, - "performance-now": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz", - "integrity": "sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns=" - }, - "psl": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/psl/-/psl-1.4.0.tgz", - "integrity": "sha512-HZzqCGPecFLyoRj5HLfuDSKYTJkAfB5thKBIkRHtGjWwY7p1dAyveIbXIq4tO0KYfDF2tHqPUgY9SDnGm00uFw==" - }, - "pump": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", - "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", - "requires": { - "end-of-stream": "^1.1.0", - "once": "^1.3.1" - } - }, - "punycode": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", - "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==" - }, - "qs": { - "version": "6.5.2", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.2.tgz", - "integrity": "sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA==" - }, - "request": { - "version": "2.88.0", - "resolved": "https://registry.npmjs.org/request/-/request-2.88.0.tgz", - "integrity": "sha512-NAqBSrijGLZdM0WZNsInLJpkJokL72XYjUpnB0iwsRgxh7dB6COrHnTBNwN0E+lHDAJzu7kLAkDeY08z2/A0hg==", - "requires": { - "aws-sign2": "~0.7.0", - "aws4": "^1.8.0", - "caseless": "~0.12.0", - "combined-stream": "~1.0.6", - "extend": "~3.0.2", - "forever-agent": "~0.6.1", - "form-data": "~2.3.2", - "har-validator": "~5.1.0", - "http-signature": "~1.2.0", - "is-typedarray": "~1.0.0", - "isstream": "~0.1.2", - "json-stringify-safe": "~5.0.1", - "mime-types": "~2.1.19", - "oauth-sign": "~0.9.0", - "performance-now": "^2.1.0", - "qs": "~6.5.2", - "safe-buffer": "^5.1.2", - "tough-cookie": "~2.4.3", - "tunnel-agent": "^0.6.0", - "uuid": "^3.3.2" - } - }, - "require-directory": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", - "integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I=" - }, - "require-main-filename": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-1.0.1.tgz", - "integrity": "sha1-l/cXtp1IeE9fUmpsWqj/3aBVpNE=" + "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==", + "dev": true }, "resolve": { "version": "1.12.0", "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.12.0.tgz", "integrity": "sha512-B/dOmuoAik5bKcD6s6nXDCjzUKnaDvdkRyAk6rsmsKLipWj4797iothd7jmmUhWTfinVMU+wc56rYKsit2Qy4w==", + "dev": true, "requires": { "path-parse": "^1.0.6" } }, - "safe-buffer": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.0.tgz", - "integrity": "sha512-fZEwUGbVl7kouZs1jCdMLdt95hdIv0ZeHg6L7qPeciMZhZ+/gdesW4wgTARkrFWEpspjEATAzUGPG8N2jJiwbg==" - }, - "safer-buffer": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", - "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" - }, "semver": { "version": "5.7.1", "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==" - }, - "set-blocking": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", - "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=" - }, - "shebang-command": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", - "integrity": "sha1-RKrGW2lbAzmJaMOfNj/uXer98eo=", - "requires": { - "shebang-regex": "^1.0.0" - } - }, - "shebang-regex": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz", - "integrity": "sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM=" - }, - "signal-exit": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.2.tgz", - "integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=" + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "dev": true }, "sprintf-js": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", - "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=" - }, - "sshpk": { - "version": "1.16.1", - "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.16.1.tgz", - "integrity": "sha512-HXXqVUq7+pcKeLqqZj6mHFUMvXtOJt1uoUx09pFW6011inTMxqI8BA8PM95myrIyyKwdnzjdFjLiE6KBPVtJIg==", - "requires": { - "asn1": "~0.2.3", - "assert-plus": "^1.0.0", - "bcrypt-pbkdf": "^1.0.0", - "dashdash": "^1.12.0", - "ecc-jsbn": "~0.1.1", - "getpass": "^0.1.1", - "jsbn": "~0.1.0", - "safer-buffer": "^2.0.2", - "tweetnacl": "~0.14.0" - } - }, - "string-width": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", - "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", - "requires": { - "is-fullwidth-code-point": "^2.0.0", - "strip-ansi": "^4.0.0" - } - }, - "strip-ansi": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", - "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", - "requires": { - "ansi-regex": "^3.0.0" - } - }, - "strip-eof": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/strip-eof/-/strip-eof-1.0.0.tgz", - "integrity": "sha1-u0P/VZim6wXYm1n80SnJgzE2Br8=" + "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", + "dev": true }, "strip-json-comments": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", - "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=" + "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=", + "dev": true }, "supports-color": { "version": "5.5.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, "requires": { "has-flag": "^3.0.0" } }, - "tough-cookie": { - "version": "2.4.3", - "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.4.3.tgz", - "integrity": "sha512-Q5srk/4vDM54WJsJio3XNn6K2sCG+CQ8G5Wz6bZhRZoAe/+TxjWB/GlFAnYEbkYVlON9FMk/fE3h2RLpPXo4lQ==", - "requires": { - "psl": "^1.1.24", - "punycode": "^1.4.1" - }, - "dependencies": { - "punycode": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz", - "integrity": "sha1-wNWmOycYgArY4esPpSachN1BhF4=" - } - } - }, "tslib": { "version": "1.10.0", "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.10.0.tgz", - "integrity": "sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==" + "integrity": "sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==", + "dev": true }, "tslint": { "version": "5.20.0", "resolved": "https://registry.npmjs.org/tslint/-/tslint-5.20.0.tgz", "integrity": "sha512-2vqIvkMHbnx8acMogAERQ/IuINOq6DFqgF8/VDvhEkBqQh/x6SP0Y+OHnKth9/ZcHQSroOZwUQSN18v8KKF0/g==", + "dev": true, "requires": { "@babel/code-frame": "^7.0.0", "builtin-modules": "^1.1.1", @@ -927,27 +381,16 @@ "version": "2.29.0", "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-2.29.0.tgz", "integrity": "sha512-g5JVHCIJwzfISaXpXE1qvNalca5Jwob6FjI4AoPlqMusJ6ftFE7IkkFoMhVLRgK+4Kx3gkzb8UZK5t5yTTvEmA==", + "dev": true, "requires": { "tslib": "^1.8.1" } }, - "tunnel-agent": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", - "integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=", - "requires": { - "safe-buffer": "^5.0.1" - } - }, - "tweetnacl": { - "version": "0.14.5", - "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz", - "integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q=" - }, "typescript": { - "version": "3.7.0-dev.20191015", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.7.0-dev.20191015.tgz", - "integrity": "sha512-Cpfj1n4pEUVKL+jtS0mkZodJffyMmf3Wk/UjyZMGX4fsjK5KBPJf3NUlyXij8I8p1E2CAomdS5NPFrAR+z8pKw==" + "version": "3.7.0-dev.20191016", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.7.0-dev.20191016.tgz", + "integrity": "sha512-4CUiTF5rEtPaClGD9nWpqPMICdDc54PTyrzwqpivz/h7mkWJs/xhQhOddiA5vx+D8ob9eSRIdueXQkI2oxOmfg==", + "dev": true }, "underscore": { "version": "1.9.1", @@ -957,123 +400,14 @@ "universalify": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", - "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==" - }, - "uri-js": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.2.2.tgz", - "integrity": "sha512-KY9Frmirql91X2Qgjry0Wd4Y+YTdrdZheS8TFwvkbLWf/G5KNJDCh6pKL5OZctEW4+0Baa5idK2ZQuELRwPznQ==", - "requires": { - "punycode": "^2.1.0" - } - }, - "uuid": { - "version": "3.3.3", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.3.3.tgz", - "integrity": "sha512-pW0No1RGHgzlpHJO1nsVrHKpOEIxkGg1xB+v0ZmdNH5OAeAwzAVrCnI2/6Mtx+Uys6iaylxa+D3g4j63IKKjSQ==" - }, - "verror": { - "version": "1.10.0", - "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz", - "integrity": "sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA=", - "requires": { - "assert-plus": "^1.0.0", - "core-util-is": "1.0.2", - "extsprintf": "^1.2.0" - } - }, - "which": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", - "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", - "requires": { - "isexe": "^2.0.0" - } - }, - "which-module": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.0.tgz", - "integrity": "sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=" - }, - "wrap-ansi": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-2.1.0.tgz", - "integrity": "sha1-2Pw9KE3QV5T+hJc8rs3Rz4JP3YU=", - "requires": { - "string-width": "^1.0.1", - "strip-ansi": "^3.0.1" - }, - "dependencies": { - "ansi-regex": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", - "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=" - }, - "is-fullwidth-code-point": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz", - "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=", - "requires": { - "number-is-nan": "^1.0.0" - } - }, - "string-width": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", - "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", - "requires": { - "code-point-at": "^1.0.0", - "is-fullwidth-code-point": "^1.0.0", - "strip-ansi": "^3.0.0" - } - }, - "strip-ansi": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", - "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", - "requires": { - "ansi-regex": "^2.0.0" - } - } - } + "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", + "dev": true }, "wrappy": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=" - }, - "y18n": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.0.tgz", - "integrity": "sha512-r9S/ZyXu/Xu9q1tYlpsLIsa3EeLXXk0VwlxqTcFRfg9EhMW+17kbt9G0NrgCmhGb5vT2hyhJZLfDGx+7+5Uj/w==" - }, - "yargs": { - "version": "12.0.5", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-12.0.5.tgz", - "integrity": "sha512-Lhz8TLaYnxq/2ObqHDql8dX8CJi97oHxrjUcYtzKbbykPtVW9WB+poxI+NM2UIzsMgNCZTIf0AQwsjK5yMAqZw==", - "requires": { - "cliui": "^4.0.0", - "decamelize": "^1.2.0", - "find-up": "^3.0.0", - "get-caller-file": "^1.0.1", - "os-locale": "^3.0.0", - "require-directory": "^2.1.1", - "require-main-filename": "^1.0.1", - "set-blocking": "^2.0.0", - "string-width": "^2.0.0", - "which-module": "^2.0.0", - "y18n": "^3.2.1 || ^4.0.0", - "yargs-parser": "^11.1.1" - } - }, - "yargs-parser": { - "version": "11.1.1", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-11.1.1.tgz", - "integrity": "sha512-C6kB/WJDiaxONLJQnF8ccx9SEeoTTLek8RVbaOIsrAUS8VrBEXfmeSnCZxygc+XC2sNMBIwOOnfcxiynjHsVSQ==", - "requires": { - "camelcase": "^5.0.0", - "decamelize": "^1.2.0" - } + "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", + "dev": true } } } diff --git a/packages/web3-providers-ipc/package.json b/packages/web3-providers-ipc/package.json index 71e727686fd..f0338bf0e1a 100644 --- a/packages/web3-providers-ipc/package.json +++ b/packages/web3-providers-ipc/package.json @@ -19,6 +19,6 @@ }, "devDependencies": { "definitelytyped-header-parser": "^1.0.1", - "dtslint": "^0.4.2" + "dtslint": "0.4.2" } } diff --git a/packages/web3-providers-ws/package-lock.json b/packages/web3-providers-ws/package-lock.json index b022eece43b..50932f5ffa7 100644 --- a/packages/web3-providers-ws/package-lock.json +++ b/packages/web3-providers-ws/package-lock.json @@ -1,11 +1,14 @@ { - "requires": true, + "name": "web3-providers-ws", + "version": "1.2.1", "lockfileVersion": 1, + "requires": true, "dependencies": { "@babel/code-frame": { "version": "7.5.5", "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.5.5.tgz", "integrity": "sha512-27d4lZoomVyo51VegxI20xZPuSHusqbQag/ztrBC7wegWoQ1nLREPVSKSW8byhTlzTKyNE4ifaTA6lCp7JjpFw==", + "dev": true, "requires": { "@babel/highlight": "^7.0.0" } @@ -14,6 +17,7 @@ "version": "7.5.0", "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.5.0.tgz", "integrity": "sha512-7dV4eu9gBxoM0dAnj/BCFDW9LFU0zvTrkq0ugM7pnHEgguOEeOz1so2ZghEdzviYzQEED0r4EAgpsBChKy1TRQ==", + "dev": true, "requires": { "chalk": "^2.0.0", "esutils": "^2.0.2", @@ -23,28 +27,14 @@ "@types/parsimmon": { "version": "1.10.0", "resolved": "https://registry.npmjs.org/@types/parsimmon/-/parsimmon-1.10.0.tgz", - "integrity": "sha512-bsTIJFVQv7jnvNiC42ld2pQW2KRI+pAG243L+iATvqzy3X6+NH1obz2itRKDZZ8VVhN3wjwYax/VBGCcXzgTqQ==" - }, - "ajv": { - "version": "6.10.2", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.10.2.tgz", - "integrity": "sha512-TXtUUEYHuaTEbLZWIKUr5pmBuhDLy+8KYtPYdcV8qC+pOZL+NKqYwvWSRrVXHn+ZmRRAu8vJTAznH7Oag6RVRw==", - "requires": { - "fast-deep-equal": "^2.0.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" - } - }, - "ansi-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", - "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=" + "integrity": "sha512-bsTIJFVQv7jnvNiC42ld2pQW2KRI+pAG243L+iATvqzy3X6+NH1obz2itRKDZZ8VVhN3wjwYax/VBGCcXzgTqQ==", + "dev": true }, "ansi-styles": { "version": "3.2.1", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, "requires": { "color-convert": "^1.9.0" } @@ -53,55 +43,22 @@ "version": "1.0.10", "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "dev": true, "requires": { "sprintf-js": "~1.0.2" } }, - "asn1": { - "version": "0.2.4", - "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.4.tgz", - "integrity": "sha512-jxwzQpLQjSmWXgwaCZE9Nz+glAG01yF1QnWgbhGwHI5A6FRIEY6IVqtHhIepHqI7/kyEyQEagBC5mBEFlIYvdg==", - "requires": { - "safer-buffer": "~2.1.0" - } - }, - "assert-plus": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", - "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=" - }, - "asynckit": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", - "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=" - }, - "aws-sign2": { - "version": "0.7.0", - "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz", - "integrity": "sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg=" - }, - "aws4": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.8.0.tgz", - "integrity": "sha512-ReZxvNHIOv88FlT7rxcXIIC0fPt4KZqZbOlivyWtXLt8ESx84zd3kMC6iK5jVeS2qt+g7ftS7ye4fi06X5rtRQ==" - }, "balanced-match": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", - "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=" - }, - "bcrypt-pbkdf": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz", - "integrity": "sha1-pDAdOJtqQ/m2f/PKEaP2Y342Dp4=", - "requires": { - "tweetnacl": "^0.14.3" - } + "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", + "dev": true }, "brace-expansion": { "version": "1.1.11", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, "requires": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" @@ -110,47 +67,25 @@ "builtin-modules": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-1.1.1.tgz", - "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=" - }, - "camelcase": { - "version": "5.3.1", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", - "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==" - }, - "caseless": { - "version": "0.12.0", - "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz", - "integrity": "sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw=" + "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=", + "dev": true }, "chalk": { "version": "2.4.2", "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dev": true, "requires": { "ansi-styles": "^3.2.1", "escape-string-regexp": "^1.0.5", "supports-color": "^5.3.0" } }, - "cliui": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-4.1.0.tgz", - "integrity": "sha512-4FG+RSG9DL7uEwRUZXZn3SS34DiDPfzP0VOiEwtUWlE+AR2EIg+hSyvrIgUUfhdgR/UkAeW2QHgeP+hWrXs7jQ==", - "requires": { - "string-width": "^2.1.1", - "strip-ansi": "^4.0.0", - "wrap-ansi": "^2.0.0" - } - }, - "code-point-at": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz", - "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=" - }, "color-convert": { "version": "1.9.3", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dev": true, "requires": { "color-name": "1.1.3" } @@ -158,42 +93,20 @@ "color-name": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=" - }, - "combined-stream": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", - "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", - "requires": { - "delayed-stream": "~1.0.0" - } + "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", + "dev": true }, "commander": { "version": "2.20.3", "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", - "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==" + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", + "dev": true }, "concat-map": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=" - }, - "core-util-is": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", - "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=" - }, - "cross-spawn": { - "version": "6.0.5", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz", - "integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==", - "requires": { - "nice-try": "^1.0.4", - "path-key": "^2.0.1", - "semver": "^5.5.0", - "shebang-command": "^1.2.0", - "which": "^1.2.9" - } + "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", + "dev": true }, "d": { "version": "1.0.1", @@ -204,14 +117,6 @@ "type": "^1.0.1" } }, - "dashdash": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz", - "integrity": "sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA=", - "requires": { - "assert-plus": "^1.0.0" - } - }, "debug": { "version": "2.6.9", "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", @@ -220,74 +125,44 @@ "ms": "2.0.0" } }, - "decamelize": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", - "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=" - }, "definitelytyped-header-parser": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/definitelytyped-header-parser/-/definitelytyped-header-parser-1.2.0.tgz", "integrity": "sha512-xpg8uu/2YD/reaVsZV4oJ4g7UDYFqQGWvT1W9Tsj6q4VtWBSaig38Qgah0ZMnQGF9kAsAim08EXDO1nSi0+Nog==", + "dev": true, "requires": { "@types/parsimmon": "^1.3.0", "parsimmon": "^1.2.0" } }, - "delayed-stream": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", - "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=" - }, "diff": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.1.tgz", - "integrity": "sha512-s2+XdvhPCOF01LRQBC8hf4vhbVmI2CGS5aZnxLJlT5FtdhPCDFq80q++zK2KlrVorVDdL5BOGZ/VfLrVtYNF+Q==" - }, - "download-file-sync": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/download-file-sync/-/download-file-sync-1.0.4.tgz", - "integrity": "sha1-0+PFQ/g29BA5RVuQNMcuNVsDYBk=" - }, - "dts-critic": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/dts-critic/-/dts-critic-1.2.0.tgz", - "integrity": "sha512-z6VI1Sz7xxy0BgN6YsWuG9hbRIfph3U9hwrfNHLnLzsq865VYyjo5xKKUgXPuqMgJ04BUF1LGYQJ+kWyWwvUvQ==", - "requires": { - "definitelytyped-header-parser": "^1.2.0", - "download-file-sync": "^1.0.4", - "yargs": "^12.0.5" - } + "integrity": "sha512-s2+XdvhPCOF01LRQBC8hf4vhbVmI2CGS5aZnxLJlT5FtdhPCDFq80q++zK2KlrVorVDdL5BOGZ/VfLrVtYNF+Q==", + "dev": true }, "dtslint": { - "version": "0.4.9", - "resolved": "https://registry.npmjs.org/dtslint/-/dtslint-0.4.9.tgz", - "integrity": "sha512-QKOfpKIcpJi38gXWQ1uzm/jFU+1xqPVjrow8PSgs1N7CeY819A0Lm1VvYdM4GD1i964B2QKUyJAAjWiK8YPzlA==", + "version": "0.4.2", + "resolved": "https://registry.npmjs.org/dtslint/-/dtslint-0.4.2.tgz", + "integrity": "sha512-ph4GXLw3HYzlQMJOFcpCqWHuL3MxJ/344OR7wn0wlQGchQGTIVNsSUl8iKEMatpy2geNMysgA9fQa6xVhHOkTQ==", + "dev": true, "requires": { - "definitelytyped-header-parser": "^1.0.1", - "dts-critic": "^1.0.1", + "definitelytyped-header-parser": "github:Microsoft/definitelytyped-header-parser#production", "fs-extra": "^6.0.1", - "request": "^2.88.0", "strip-json-comments": "^2.0.1", "tslint": "^5.12.0", - "typescript": "^3.7.0-dev.20191015" - } - }, - "ecc-jsbn": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz", - "integrity": "sha1-OoOpBOVDUyh4dMVkt1SThoSamMk=", - "requires": { - "jsbn": "~0.1.0", - "safer-buffer": "^2.1.0" - } - }, - "end-of-stream": { - "version": "1.4.4", - "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", - "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", - "requires": { - "once": "^1.4.0" + "typescript": "^3.7.0-dev.20191016" + }, + "dependencies": { + "definitelytyped-header-parser": { + "version": "github:Microsoft/definitelytyped-header-parser#d957ad0bb2f4ecb60ac04f734e0b38fbc8e70b8a", + "from": "github:Microsoft/definitelytyped-header-parser#production", + "dev": true, + "requires": { + "@types/parsimmon": "^1.3.0", + "parsimmon": "^1.2.0" + } + } } }, "es5-ext": { @@ -322,79 +197,26 @@ "escape-string-regexp": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=" + "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", + "dev": true }, "esprima": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", - "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==" + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "dev": true }, "esutils": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", - "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==" - }, - "execa": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/execa/-/execa-1.0.0.tgz", - "integrity": "sha512-adbxcyWV46qiHyvSp50TKt05tB4tK3HcmF7/nxfAdhnox83seTDbwnaqKO4sXRy7roHAIFqJP/Rw/AuEbX61LA==", - "requires": { - "cross-spawn": "^6.0.0", - "get-stream": "^4.0.0", - "is-stream": "^1.1.0", - "npm-run-path": "^2.0.0", - "p-finally": "^1.0.0", - "signal-exit": "^3.0.0", - "strip-eof": "^1.0.0" - } - }, - "extend": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", - "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==" - }, - "extsprintf": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz", - "integrity": "sha1-lpGEQOMEGnpBT4xS48V06zw+HgU=" - }, - "fast-deep-equal": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-2.0.1.tgz", - "integrity": "sha1-ewUhjd+WZ79/Nwv3/bLLFf3Qqkk=" - }, - "fast-json-stable-stringify": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.0.0.tgz", - "integrity": "sha1-1RQsDK7msRifh9OnYREGT4bIu/I=" - }, - "find-up": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz", - "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==", - "requires": { - "locate-path": "^3.0.0" - } - }, - "forever-agent": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz", - "integrity": "sha1-+8cfDEGt6zf5bFd60e1C2P2sypE=" - }, - "form-data": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.3.tgz", - "integrity": "sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ==", - "requires": { - "asynckit": "^0.4.0", - "combined-stream": "^1.0.6", - "mime-types": "^2.1.12" - } + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true }, "fs-extra": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-6.0.1.tgz", "integrity": "sha512-GnyIkKhhzXZUWFCaJzvyDLEEgDkPfb4/TPvJCJVuS8MWZgoSsErf++QpiAlDnKFcqhRlm+tIOcencCjyJE6ZCA==", + "dev": true, "requires": { "graceful-fs": "^4.1.2", "jsonfile": "^4.0.0", @@ -404,33 +226,14 @@ "fs.realpath": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=" - }, - "get-caller-file": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-1.0.3.tgz", - "integrity": "sha512-3t6rVToeoZfYSGd8YoLFR2DJkiQrIiUrGcjvFX2mDw3bn6k2OtwHN0TNCLbBO+w8qTvimhDkv+LSscbJY1vE6w==" - }, - "get-stream": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-4.1.0.tgz", - "integrity": "sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w==", - "requires": { - "pump": "^3.0.0" - } - }, - "getpass": { - "version": "0.1.7", - "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz", - "integrity": "sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo=", - "requires": { - "assert-plus": "^1.0.0" - } + "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", + "dev": true }, "glob": { "version": "7.1.4", "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.4.tgz", "integrity": "sha512-hkLPepehmnKk41pUGm3sYxoFs/umurYfYJCerbXEyFIWcAzvpipAgVkBqqT9RBKMGjnq6kMuyYwha6csxbiM1A==", + "dev": true, "requires": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", @@ -443,41 +246,20 @@ "graceful-fs": { "version": "4.2.2", "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.2.tgz", - "integrity": "sha512-IItsdsea19BoLC7ELy13q1iJFNmd7ofZH5+X/pJr90/nRoPEX0DJo1dHDbgtYWOhJhcCgMDTOw84RZ72q6lB+Q==" - }, - "har-schema": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz", - "integrity": "sha1-qUwiJOvKwEeCoNkDVSHyRzW37JI=" - }, - "har-validator": { - "version": "5.1.3", - "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.1.3.tgz", - "integrity": "sha512-sNvOCzEQNr/qrvJgc3UG/kD4QtlHycrzwS+6mfTrrSq97BvaYcPZZI1ZSqGSPR73Cxn4LKTD4PttRwfU7jWq5g==", - "requires": { - "ajv": "^6.5.5", - "har-schema": "^2.0.0" - } + "integrity": "sha512-IItsdsea19BoLC7ELy13q1iJFNmd7ofZH5+X/pJr90/nRoPEX0DJo1dHDbgtYWOhJhcCgMDTOw84RZ72q6lB+Q==", + "dev": true }, "has-flag": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=" - }, - "http-signature": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz", - "integrity": "sha1-muzZJRFHcvPZW2WmCruPfBj7rOE=", - "requires": { - "assert-plus": "^1.0.0", - "jsprim": "^1.2.2", - "sshpk": "^1.7.0" - } + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", + "dev": true }, "inflight": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", + "dev": true, "requires": { "once": "^1.3.0", "wrappy": "1" @@ -486,148 +268,44 @@ "inherits": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" - }, - "invert-kv": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/invert-kv/-/invert-kv-2.0.0.tgz", - "integrity": "sha512-wPVv/y/QQ/Uiirj/vh3oP+1Ww+AWehmi1g5fFWGPF6IpCBCDVrhgHRMvrLfdYcwDh3QJbGXDW4JAuzxElLSqKA==" - }, - "is-fullwidth-code-point": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", - "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=" - }, - "is-stream": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", - "integrity": "sha1-EtSj3U5o4Lec6428hBc66A2RykQ=" + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "dev": true }, "is-typedarray": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=" }, - "isexe": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=" - }, - "isstream": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz", - "integrity": "sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo=" - }, "js-tokens": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", - "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==" + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "dev": true }, "js-yaml": { "version": "3.13.1", "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.13.1.tgz", "integrity": "sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw==", + "dev": true, "requires": { "argparse": "^1.0.7", "esprima": "^4.0.0" } }, - "jsbn": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz", - "integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM=" - }, - "json-schema": { - "version": "0.2.3", - "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.2.3.tgz", - "integrity": "sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM=" - }, - "json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==" - }, - "json-stringify-safe": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", - "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=" - }, "jsonfile": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", "integrity": "sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss=", + "dev": true, "requires": { "graceful-fs": "^4.1.6" } }, - "jsprim": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.1.tgz", - "integrity": "sha1-MT5mvB5cwG5Di8G3SZwuXFastqI=", - "requires": { - "assert-plus": "1.0.0", - "extsprintf": "1.3.0", - "json-schema": "0.2.3", - "verror": "1.10.0" - } - }, - "lcid": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/lcid/-/lcid-2.0.0.tgz", - "integrity": "sha512-avPEb8P8EGnwXKClwsNUgryVjllcRqtMYa49NTsbQagYuT1DcXnl1915oxWjoyGrXR6zH/Y0Zc96xWsPcoDKeA==", - "requires": { - "invert-kv": "^2.0.0" - } - }, - "locate-path": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz", - "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==", - "requires": { - "p-locate": "^3.0.0", - "path-exists": "^3.0.0" - } - }, - "map-age-cleaner": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/map-age-cleaner/-/map-age-cleaner-0.1.3.tgz", - "integrity": "sha512-bJzx6nMoP6PDLPBFmg7+xRKeFZvFboMrGlxmNj9ClvX53KrmvM5bXFXEWjbz4cz1AFn+jWJ9z/DJSz7hrs0w3w==", - "requires": { - "p-defer": "^1.0.0" - } - }, - "mem": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/mem/-/mem-4.3.0.tgz", - "integrity": "sha512-qX2bG48pTqYRVmDB37rn/6PT7LcR8T7oAX3bf99u1Tt1nzxYfxkgqDwUwolPlXweM0XzBOBFzSx4kfp7KP1s/w==", - "requires": { - "map-age-cleaner": "^0.1.1", - "mimic-fn": "^2.0.0", - "p-is-promise": "^2.0.0" - } - }, - "mime-db": { - "version": "1.40.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.40.0.tgz", - "integrity": "sha512-jYdeOMPy9vnxEqFRRo6ZvTZ8d9oPb+k18PKoYNYUe2stVEBPPwsln/qWzdbmaIvnhZ9v2P+CuecK+fpUfsV2mA==" - }, - "mime-types": { - "version": "2.1.24", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.24.tgz", - "integrity": "sha512-WaFHS3MCl5fapm3oLxU4eYDw77IQM2ACcxQ9RIxfaC3ooc6PFuBMGZZsYpvoXS5D5QTWPieo1jjLdAm3TBP3cQ==", - "requires": { - "mime-db": "1.40.0" - } - }, - "mimic-fn": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", - "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==" - }, "minimatch": { "version": "3.0.4", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", + "dev": true, "requires": { "brace-expansion": "^1.1.7" } @@ -635,12 +313,14 @@ "minimist": { "version": "0.0.8", "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", - "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=" + "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=", + "dev": true }, "mkdirp": { "version": "0.5.1", "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", + "dev": true, "requires": { "minimist": "0.0.8" } @@ -660,301 +340,80 @@ "resolved": "https://registry.npmjs.org/next-tick/-/next-tick-1.0.0.tgz", "integrity": "sha1-yobR/ogoFpsBICCOPchCS524NCw=" }, - "nice-try": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/nice-try/-/nice-try-1.0.5.tgz", - "integrity": "sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==" - }, - "npm-run-path": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-2.0.2.tgz", - "integrity": "sha1-NakjLfo11wZ7TLLd8jV7GHFTbF8=", - "requires": { - "path-key": "^2.0.0" - } - }, - "number-is-nan": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz", - "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=" - }, - "oauth-sign": { - "version": "0.9.0", - "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.9.0.tgz", - "integrity": "sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ==" - }, "once": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", + "dev": true, "requires": { "wrappy": "1" } }, - "os-locale": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/os-locale/-/os-locale-3.1.0.tgz", - "integrity": "sha512-Z8l3R4wYWM40/52Z+S265okfFj8Kt2cC2MKY+xNi3kFs+XGI7WXu/I309QQQYbRW4ijiZ+yxs9pqEhJh0DqW3Q==", - "requires": { - "execa": "^1.0.0", - "lcid": "^2.0.0", - "mem": "^4.0.0" - } - }, - "p-defer": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/p-defer/-/p-defer-1.0.0.tgz", - "integrity": "sha1-n26xgvbJqozXQwBKfU+WsZaw+ww=" - }, - "p-finally": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz", - "integrity": "sha1-P7z7FbiZpEEjs0ttzBi3JDNqLK4=" - }, - "p-is-promise": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/p-is-promise/-/p-is-promise-2.1.0.tgz", - "integrity": "sha512-Y3W0wlRPK8ZMRbNq97l4M5otioeA5lm1z7bkNkxCka8HSPjR0xRWmpCmc9utiaLP9Jb1eD8BgeIxTW4AIF45Pg==" - }, - "p-limit": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.2.1.tgz", - "integrity": "sha512-85Tk+90UCVWvbDavCLKPOLC9vvY8OwEX/RtKF+/1OADJMVlFfEHOiMTPVyxg7mk/dKa+ipdHm0OUkTvCpMTuwg==", - "requires": { - "p-try": "^2.0.0" - } - }, - "p-locate": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz", - "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==", - "requires": { - "p-limit": "^2.0.0" - } - }, - "p-try": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", - "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==" - }, "parsimmon": { "version": "1.13.0", "resolved": "https://registry.npmjs.org/parsimmon/-/parsimmon-1.13.0.tgz", - "integrity": "sha512-5UIrOCW+gjbILkjKPgTgmq8LKf8TT3Iy7kN2VD7OtQ81facKn8B4gG1X94jWqXYZsxG2KbJhrv/Yq/5H6BQn7A==" - }, - "path-exists": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", - "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=" + "integrity": "sha512-5UIrOCW+gjbILkjKPgTgmq8LKf8TT3Iy7kN2VD7OtQ81facKn8B4gG1X94jWqXYZsxG2KbJhrv/Yq/5H6BQn7A==", + "dev": true }, "path-is-absolute": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=" - }, - "path-key": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz", - "integrity": "sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A=" + "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", + "dev": true }, "path-parse": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz", - "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==" - }, - "performance-now": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz", - "integrity": "sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns=" - }, - "psl": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/psl/-/psl-1.4.0.tgz", - "integrity": "sha512-HZzqCGPecFLyoRj5HLfuDSKYTJkAfB5thKBIkRHtGjWwY7p1dAyveIbXIq4tO0KYfDF2tHqPUgY9SDnGm00uFw==" - }, - "pump": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", - "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", - "requires": { - "end-of-stream": "^1.1.0", - "once": "^1.3.1" - } - }, - "punycode": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", - "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==" - }, - "qs": { - "version": "6.5.2", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.2.tgz", - "integrity": "sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA==" - }, - "request": { - "version": "2.88.0", - "resolved": "https://registry.npmjs.org/request/-/request-2.88.0.tgz", - "integrity": "sha512-NAqBSrijGLZdM0WZNsInLJpkJokL72XYjUpnB0iwsRgxh7dB6COrHnTBNwN0E+lHDAJzu7kLAkDeY08z2/A0hg==", - "requires": { - "aws-sign2": "~0.7.0", - "aws4": "^1.8.0", - "caseless": "~0.12.0", - "combined-stream": "~1.0.6", - "extend": "~3.0.2", - "forever-agent": "~0.6.1", - "form-data": "~2.3.2", - "har-validator": "~5.1.0", - "http-signature": "~1.2.0", - "is-typedarray": "~1.0.0", - "isstream": "~0.1.2", - "json-stringify-safe": "~5.0.1", - "mime-types": "~2.1.19", - "oauth-sign": "~0.9.0", - "performance-now": "^2.1.0", - "qs": "~6.5.2", - "safe-buffer": "^5.1.2", - "tough-cookie": "~2.4.3", - "tunnel-agent": "^0.6.0", - "uuid": "^3.3.2" - } - }, - "require-directory": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", - "integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I=" - }, - "require-main-filename": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-1.0.1.tgz", - "integrity": "sha1-l/cXtp1IeE9fUmpsWqj/3aBVpNE=" + "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==", + "dev": true }, "resolve": { "version": "1.12.0", "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.12.0.tgz", "integrity": "sha512-B/dOmuoAik5bKcD6s6nXDCjzUKnaDvdkRyAk6rsmsKLipWj4797iothd7jmmUhWTfinVMU+wc56rYKsit2Qy4w==", + "dev": true, "requires": { "path-parse": "^1.0.6" } }, - "safe-buffer": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.0.tgz", - "integrity": "sha512-fZEwUGbVl7kouZs1jCdMLdt95hdIv0ZeHg6L7qPeciMZhZ+/gdesW4wgTARkrFWEpspjEATAzUGPG8N2jJiwbg==" - }, - "safer-buffer": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", - "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" - }, "semver": { "version": "5.7.1", "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==" - }, - "set-blocking": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", - "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=" - }, - "shebang-command": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", - "integrity": "sha1-RKrGW2lbAzmJaMOfNj/uXer98eo=", - "requires": { - "shebang-regex": "^1.0.0" - } - }, - "shebang-regex": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz", - "integrity": "sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM=" - }, - "signal-exit": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.2.tgz", - "integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=" + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "dev": true }, "sprintf-js": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", - "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=" - }, - "sshpk": { - "version": "1.16.1", - "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.16.1.tgz", - "integrity": "sha512-HXXqVUq7+pcKeLqqZj6mHFUMvXtOJt1uoUx09pFW6011inTMxqI8BA8PM95myrIyyKwdnzjdFjLiE6KBPVtJIg==", - "requires": { - "asn1": "~0.2.3", - "assert-plus": "^1.0.0", - "bcrypt-pbkdf": "^1.0.0", - "dashdash": "^1.12.0", - "ecc-jsbn": "~0.1.1", - "getpass": "^0.1.1", - "jsbn": "~0.1.0", - "safer-buffer": "^2.0.2", - "tweetnacl": "~0.14.0" - } - }, - "string-width": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", - "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", - "requires": { - "is-fullwidth-code-point": "^2.0.0", - "strip-ansi": "^4.0.0" - } - }, - "strip-ansi": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", - "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", - "requires": { - "ansi-regex": "^3.0.0" - } - }, - "strip-eof": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/strip-eof/-/strip-eof-1.0.0.tgz", - "integrity": "sha1-u0P/VZim6wXYm1n80SnJgzE2Br8=" + "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", + "dev": true }, "strip-json-comments": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", - "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=" + "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=", + "dev": true }, "supports-color": { "version": "5.5.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, "requires": { "has-flag": "^3.0.0" } }, - "tough-cookie": { - "version": "2.4.3", - "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.4.3.tgz", - "integrity": "sha512-Q5srk/4vDM54WJsJio3XNn6K2sCG+CQ8G5Wz6bZhRZoAe/+TxjWB/GlFAnYEbkYVlON9FMk/fE3h2RLpPXo4lQ==", - "requires": { - "psl": "^1.1.24", - "punycode": "^1.4.1" - }, - "dependencies": { - "punycode": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz", - "integrity": "sha1-wNWmOycYgArY4esPpSachN1BhF4=" - } - } - }, "tslib": { "version": "1.10.0", "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.10.0.tgz", - "integrity": "sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==" + "integrity": "sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==", + "dev": true }, "tslint": { "version": "5.20.0", "resolved": "https://registry.npmjs.org/tslint/-/tslint-5.20.0.tgz", "integrity": "sha512-2vqIvkMHbnx8acMogAERQ/IuINOq6DFqgF8/VDvhEkBqQh/x6SP0Y+OHnKth9/ZcHQSroOZwUQSN18v8KKF0/g==", + "dev": true, "requires": { "@babel/code-frame": "^7.0.0", "builtin-modules": "^1.1.1", @@ -975,23 +434,11 @@ "version": "2.29.0", "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-2.29.0.tgz", "integrity": "sha512-g5JVHCIJwzfISaXpXE1qvNalca5Jwob6FjI4AoPlqMusJ6ftFE7IkkFoMhVLRgK+4Kx3gkzb8UZK5t5yTTvEmA==", + "dev": true, "requires": { "tslib": "^1.8.1" } }, - "tunnel-agent": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", - "integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=", - "requires": { - "safe-buffer": "^5.0.1" - } - }, - "tweetnacl": { - "version": "0.14.5", - "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz", - "integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q=" - }, "type": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/type/-/type-1.0.1.tgz", @@ -1006,9 +453,10 @@ } }, "typescript": { - "version": "3.7.0-dev.20191015", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.7.0-dev.20191015.tgz", - "integrity": "sha512-Cpfj1n4pEUVKL+jtS0mkZodJffyMmf3Wk/UjyZMGX4fsjK5KBPJf3NUlyXij8I8p1E2CAomdS5NPFrAR+z8pKw==" + "version": "3.7.0-dev.20191016", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.7.0-dev.20191016.tgz", + "integrity": "sha512-4CUiTF5rEtPaClGD9nWpqPMICdDc54PTyrzwqpivz/h7mkWJs/xhQhOddiA5vx+D8ob9eSRIdueXQkI2oxOmfg==", + "dev": true }, "underscore": { "version": "1.9.1", @@ -1018,30 +466,8 @@ "universalify": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", - "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==" - }, - "uri-js": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.2.2.tgz", - "integrity": "sha512-KY9Frmirql91X2Qgjry0Wd4Y+YTdrdZheS8TFwvkbLWf/G5KNJDCh6pKL5OZctEW4+0Baa5idK2ZQuELRwPznQ==", - "requires": { - "punycode": "^2.1.0" - } - }, - "uuid": { - "version": "3.3.3", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.3.3.tgz", - "integrity": "sha512-pW0No1RGHgzlpHJO1nsVrHKpOEIxkGg1xB+v0ZmdNH5OAeAwzAVrCnI2/6Mtx+Uys6iaylxa+D3g4j63IKKjSQ==" - }, - "verror": { - "version": "1.10.0", - "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz", - "integrity": "sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA=", - "requires": { - "assert-plus": "^1.0.0", - "core-util-is": "1.0.2", - "extsprintf": "^1.2.0" - } + "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", + "dev": true }, "websocket": { "version": "github:web3-js/WebSocket-Node#b134a75541b5db59668df81c03e926cd5f325077", @@ -1054,103 +480,16 @@ "yaeti": "^0.0.6" } }, - "which": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", - "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", - "requires": { - "isexe": "^2.0.0" - } - }, - "which-module": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.0.tgz", - "integrity": "sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=" - }, - "wrap-ansi": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-2.1.0.tgz", - "integrity": "sha1-2Pw9KE3QV5T+hJc8rs3Rz4JP3YU=", - "requires": { - "string-width": "^1.0.1", - "strip-ansi": "^3.0.1" - }, - "dependencies": { - "ansi-regex": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", - "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=" - }, - "is-fullwidth-code-point": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz", - "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=", - "requires": { - "number-is-nan": "^1.0.0" - } - }, - "string-width": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", - "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", - "requires": { - "code-point-at": "^1.0.0", - "is-fullwidth-code-point": "^1.0.0", - "strip-ansi": "^3.0.0" - } - }, - "strip-ansi": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", - "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", - "requires": { - "ansi-regex": "^2.0.0" - } - } - } - }, "wrappy": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=" - }, - "y18n": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.0.tgz", - "integrity": "sha512-r9S/ZyXu/Xu9q1tYlpsLIsa3EeLXXk0VwlxqTcFRfg9EhMW+17kbt9G0NrgCmhGb5vT2hyhJZLfDGx+7+5Uj/w==" + "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", + "dev": true }, "yaeti": { "version": "0.0.6", "resolved": "https://registry.npmjs.org/yaeti/-/yaeti-0.0.6.tgz", "integrity": "sha1-8m9ITXJoTPQr7ft2lwqhYI+/lXc=" - }, - "yargs": { - "version": "12.0.5", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-12.0.5.tgz", - "integrity": "sha512-Lhz8TLaYnxq/2ObqHDql8dX8CJi97oHxrjUcYtzKbbykPtVW9WB+poxI+NM2UIzsMgNCZTIf0AQwsjK5yMAqZw==", - "requires": { - "cliui": "^4.0.0", - "decamelize": "^1.2.0", - "find-up": "^3.0.0", - "get-caller-file": "^1.0.1", - "os-locale": "^3.0.0", - "require-directory": "^2.1.1", - "require-main-filename": "^1.0.1", - "set-blocking": "^2.0.0", - "string-width": "^2.0.0", - "which-module": "^2.0.0", - "y18n": "^3.2.1 || ^4.0.0", - "yargs-parser": "^11.1.1" - } - }, - "yargs-parser": { - "version": "11.1.1", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-11.1.1.tgz", - "integrity": "sha512-C6kB/WJDiaxONLJQnF8ccx9SEeoTTLek8RVbaOIsrAUS8VrBEXfmeSnCZxygc+XC2sNMBIwOOnfcxiynjHsVSQ==", - "requires": { - "camelcase": "^5.0.0", - "decamelize": "^1.2.0" - } } } } diff --git a/packages/web3-providers-ws/package.json b/packages/web3-providers-ws/package.json index 90f36930791..3ad67bca94e 100644 --- a/packages/web3-providers-ws/package.json +++ b/packages/web3-providers-ws/package.json @@ -1,24 +1,24 @@ { - "name": "web3-providers-ws", - "version": "1.2.1", - "description": "Module to handle web3 RPC connections over WebSockets.", - "repository": "https://github.com/ethereum/web3.js/tree/1.x/packages/web3-providers-ws", - "license": "LGPL-3.0", - "engines": { - "node": ">=8.0.0" - }, - "scripts": { - "dtslint": "dtslint types --onlyTestTsNext" - }, - "types": "types/index.d.ts", - "main": "src/index.js", - "dependencies": { - "underscore": "1.9.1", - "web3-core-helpers": "1.2.1", - "websocket": "github:web3-js/WebSocket-Node#polyfill/globalThis" - }, - "devDependencies": { - "definitelytyped-header-parser": "^1.0.1", - "dtslint": "^0.4.2" - } + "name": "web3-providers-ws", + "version": "1.2.1", + "description": "Module to handle web3 RPC connections over WebSockets.", + "repository": "https://github.com/ethereum/web3.js/tree/1.x/packages/web3-providers-ws", + "license": "LGPL-3.0", + "engines": { + "node": ">=8.0.0" + }, + "scripts": { + "dtslint": "dtslint types --onlyTestTsNext" + }, + "types": "types/index.d.ts", + "main": "src/index.js", + "dependencies": { + "underscore": "1.9.1", + "web3-core-helpers": "1.2.1", + "websocket": "github:web3-js/WebSocket-Node#polyfill/globalThis" + }, + "devDependencies": { + "definitelytyped-header-parser": "^1.0.1", + "dtslint": "0.4.2" + } } From 2468c71062b358f0dffab13804279f9b0799ec5c Mon Sep 17 00:00:00 2001 From: Josh Stevens Date: Wed, 16 Oct 2019 15:34:33 +0100 Subject: [PATCH 124/124] fix: remove repeating typings --- packages/web3-eth-accounts/types/index.d.ts | 47 +------------------ .../types/tests/accounts-tests.ts | 5 +- 2 files changed, 5 insertions(+), 47 deletions(-) diff --git a/packages/web3-eth-accounts/types/index.d.ts b/packages/web3-eth-accounts/types/index.d.ts index cd15ce398be..5dde16b881c 100644 --- a/packages/web3-eth-accounts/types/index.d.ts +++ b/packages/web3-eth-accounts/types/index.d.ts @@ -17,57 +17,12 @@ * @date 2018 */ -import { - AccountsBase, - SignedTransaction, - TransactionConfig, - WalletBase -} from 'web3-core'; +import { AccountsBase, SignedTransaction, WalletBase } from 'web3-core'; export class Accounts extends AccountsBase {} export class Wallet extends WalletBase {} -export interface AddAccount { - address: string; - privateKey: string; -} - -export interface Account { - address: string; - privateKey: string; - signTransaction: ( - transactionConfig: TransactionConfig, - callback?: (signTransaction: SignedTransaction) => void - ) => Promise; - sign: (data: string) => Sign; - encrypt: (password: string) => EncryptedKeystoreV3Json; -} - -export interface AddedAccount extends Account { - index: number; -} - -export interface EncryptedKeystoreV3Json { - version: number; - id: string; - address: string; - crypto: { - ciphertext: string; - cipherparams: { iv: string }; - cipher: string; - kdf: string; - kdfparams: { - dklen: number; - salt: string; - n: number; - r: number; - p: number; - }; - mac: string; - }; -} - export interface Sign extends SignedTransaction { message: string; signature: string; diff --git a/packages/web3-eth-accounts/types/tests/accounts-tests.ts b/packages/web3-eth-accounts/types/tests/accounts-tests.ts index 51bfea5fd4d..81bbb4dbbd4 100644 --- a/packages/web3-eth-accounts/types/tests/accounts-tests.ts +++ b/packages/web3-eth-accounts/types/tests/accounts-tests.ts @@ -30,7 +30,10 @@ accounts.givenProvider; accounts.setProvider('https://localhost:2100'); // $ExpectType any -accounts.extend({property: 'test', methods: [{name: 'method', call: 'method'}]}); +accounts.extend({ + property: 'test', + methods: [{ name: 'method', call: 'method' }] +}); // $ExpectType BatchRequest new accounts.BatchRequest();