From 3eb9f7b3eb5e0e08bc2f7ea58c9ee3a20bbd6a56 Mon Sep 17 00:00:00 2001 From: Justin Starry Date: Mon, 15 Mar 2021 11:00:43 +0800 Subject: [PATCH] chore: project config changes for typescript migration --- web3.js/.esdoc.json | 47 - web3.js/.eslintrc.js | 29 +- web3.js/.gitignore | 3 + web3.js/CONTRIBUTING.md | 8 +- web3.js/README.md | 3 - web3.js/babel.config.json | 2 +- web3.js/css/theme.css | 159 -- .../npm/@solana/spl-token_vx.x.x.js | 46 - web3.js/flow-typed/npm/bn.js_vx.x.x.js | 32 - web3.js/flow-typed/npm/bs58_vx.x.x.js | 33 - .../flow-typed/npm/buffer-layout_vx.x.x.js | 53 - web3.js/flow-typed/npm/buffer_vx.x.x.js | 33 - .../flow-typed/npm/chai-as-promised_vx.x.x.js | 32 - web3.js/flow-typed/npm/chai_v4.x.x.js | 304 --- web3.js/flow-typed/npm/crypto-hash_vx.x.x.js | 45 - web3.js/flow-typed/npm/jayson_vx.x.x.js | 251 -- web3.js/flow-typed/npm/js-sha3_vx.x.x.js | 39 - web3.js/flow-typed/npm/mocha_v8.x.x.js | 238 -- web3.js/flow-typed/npm/mockttp_vx.x.x.js | 263 --- web3.js/flow-typed/npm/mz_vx.x.x.js | 73 - web3.js/flow-typed/npm/node-fetch_v2.x.x.js | 133 -- .../flow-typed/npm/rpc-websockets_vx.x.x.js | 150 -- web3.js/flow-typed/npm/secp256k1_vx.x.x.js | 62 - web3.js/flow-typed/npm/sinon_vx.x.x.js | 340 --- web3.js/flow-typed/npm/superstruct_vx.x.x.js | 56 - web3.js/flow-typed/npm/tweetnacl_vx.x.x.js | 53 - web3.js/module.d.ts | 1132 --------- web3.js/module.flow.js | 1139 ---------- web3.js/package-lock.json | 2024 +++++------------ web3.js/package.json | 27 +- web3.js/rollup.config.js | 73 +- web3.js/tsconfig.json | 22 + web3.js/typedoc.json | 6 + 33 files changed, 636 insertions(+), 6274 deletions(-) delete mode 100644 web3.js/.esdoc.json delete mode 100644 web3.js/css/theme.css delete mode 100644 web3.js/flow-typed/npm/@solana/spl-token_vx.x.x.js delete mode 100644 web3.js/flow-typed/npm/bn.js_vx.x.x.js delete mode 100644 web3.js/flow-typed/npm/bs58_vx.x.x.js delete mode 100644 web3.js/flow-typed/npm/buffer-layout_vx.x.x.js delete mode 100644 web3.js/flow-typed/npm/buffer_vx.x.x.js delete mode 100644 web3.js/flow-typed/npm/chai-as-promised_vx.x.x.js delete mode 100644 web3.js/flow-typed/npm/chai_v4.x.x.js delete mode 100644 web3.js/flow-typed/npm/crypto-hash_vx.x.x.js delete mode 100644 web3.js/flow-typed/npm/jayson_vx.x.x.js delete mode 100644 web3.js/flow-typed/npm/js-sha3_vx.x.x.js delete mode 100644 web3.js/flow-typed/npm/mocha_v8.x.x.js delete mode 100644 web3.js/flow-typed/npm/mockttp_vx.x.x.js delete mode 100644 web3.js/flow-typed/npm/mz_vx.x.x.js delete mode 100644 web3.js/flow-typed/npm/node-fetch_v2.x.x.js delete mode 100644 web3.js/flow-typed/npm/rpc-websockets_vx.x.x.js delete mode 100644 web3.js/flow-typed/npm/secp256k1_vx.x.x.js delete mode 100644 web3.js/flow-typed/npm/sinon_vx.x.x.js delete mode 100644 web3.js/flow-typed/npm/superstruct_vx.x.x.js delete mode 100644 web3.js/flow-typed/npm/tweetnacl_vx.x.x.js delete mode 100644 web3.js/module.d.ts delete mode 100644 web3.js/module.flow.js create mode 100644 web3.js/tsconfig.json create mode 100644 web3.js/typedoc.json diff --git a/web3.js/.esdoc.json b/web3.js/.esdoc.json deleted file mode 100644 index e8d9d4ae10..0000000000 --- a/web3.js/.esdoc.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "source": "src", - "destination": "doc", - "plugins": [ - { - "name": "esdoc-standard-plugin", - "option": { - "lint": {"enable": true}, - "undocumentIdentifier": {"enable": true}, - "unexportedIdentifier": {"enable": false}, - "coverage": {"enable": true}, - "accessor": {"access": ["public", "protected"], "autoPrivate": true}, - "undocumentIdentifier": {"enable": true}, - "unexportedIdentifier": {"enable": false}, - "typeInference": {"enable": true}, - "brand": { - "title": "Solana Javascript API", - "repository": "https://github.com/solana-labs/solana-web3.js", - "site": "https://solana.com" - } - } - }, - { - "name": "esdoc-importpath-plugin", - "option": { - "stripPackageName": true, - "replaces": [ - {"from": ".*", "to": "@solana/web3"} - ] - } - }, - { - "name": "esdoc-flow-type-plugin", - "option": {"enable": true} - }, - { - "name": "esdoc-ecmascript-proposal-plugin", - "option": { - "all": true - } - }, - { - "name": "esdoc-inject-style-plugin", - "option": {"styles": ["css/theme.css"]} - } - ] -} diff --git a/web3.js/.eslintrc.js b/web3.js/.eslintrc.js index 44b378b941..ac7aa65f2d 100644 --- a/web3.js/.eslintrc.js +++ b/web3.js/.eslintrc.js @@ -9,14 +9,16 @@ module.exports = { 'eslint:recommended', 'plugin:import/errors', 'plugin:import/warnings', + 'plugin:import/typescript', ], - parser: 'babel-eslint', // upgrade to @babel/eslint-parser blocked on eslint-plugin-flowtype + parser: '@typescript-eslint/parser', parserOptions: { sourceType: 'module', ecmaVersion: 8, }, + plugins: ['@typescript-eslint'], rules: { - 'no-trailing-spaces': ['error'], + '@typescript-eslint/no-unused-vars': ['error'], 'import/first': ['error'], 'import/no-commonjs': ['error'], 'import/order': [ @@ -39,6 +41,8 @@ module.exports = { ], 'linebreak-style': ['error', 'unix'], 'no-console': [0], + 'no-trailing-spaces': ['error'], + 'no-unused-vars': 'off', quotes: [ 'error', 'single', @@ -47,25 +51,4 @@ module.exports = { 'require-await': ['error'], semi: ['error', 'always'], }, - - // Used to lint the TypeScript type declaration file - overrides: [ - { - files: ['*.js'], - plugins: ['flowtype'], - extends: ['plugin:flowtype/recommended'], - rules: { - 'flowtype/generic-spacing': [0], - }, - }, - { - files: ['*.d.ts'], - parser: '@typescript-eslint/parser', - plugins: ['@typescript-eslint'], - rules: { - 'no-unused-vars': 'off', - '@typescript-eslint/no-unused-vars': ['error'], - }, - }, - ], }; diff --git a/web3.js/.gitignore b/web3.js/.gitignore index ac1f2b5f38..ea4d0032d0 100644 --- a/web3.js/.gitignore +++ b/web3.js/.gitignore @@ -31,3 +31,6 @@ doc # `solana-test-validator` ledger location test-ledger/ + +# Flow +module.flow.js diff --git a/web3.js/CONTRIBUTING.md b/web3.js/CONTRIBUTING.md index a8f215dc51..fb2b3c4494 100644 --- a/web3.js/CONTRIBUTING.md +++ b/web3.js/CONTRIBUTING.md @@ -19,13 +19,11 @@ All other commit types will trigger no new release. ## Reference ### Static Analysis -eslint and flow-type are used. - -Helpful link: https://www.saltycrane.com/flow-type-cheat-sheet/latest/ +eslint and TypeScript are used. ### Testing Framework https://mochajs.org/ ### API Documentation -ESDoc is used to document the public API. See -https://esdoc.org/manual/tags.html for details. +TypeDoc is used to document the public API. See +https://typedoc.org/ for details. diff --git a/web3.js/README.md b/web3.js/README.md index e300f3ccb0..c5822423f6 100644 --- a/web3.js/README.md +++ b/web3.js/README.md @@ -1,6 +1,5 @@ [![Build status][travis-image]][travis-url] [![codecov][codecov-image]][codecov-url] -[![esdoc][esdoc-image]][esdoc-url]
[![npm][npm-image]][npm-url] [![npm-downloads][npm-downloads-image]][npm-url] @@ -12,10 +11,8 @@ [travis-url]: https://travis-ci.org/solana-labs/solana-web3.js [codecov-image]: https://codecov.io/gh/solana-labs/solana-web3.js/branch/master/graph/badge.svg [codecov-url]: https://codecov.io/gh/solana-labs/solana-web3.js -[esdoc-image]: https://solana-labs.github.io/solana-web3.js/badge.svg [npm-image]: https://img.shields.io/npm/v/@solana/web3.js.svg?style=flat [npm-downloads-image]: https://img.shields.io/npm/dm/@solana/web3.js.svg?style=flat -[esdoc-url]: https://solana-labs.github.io/solana-web3.js/ [npm-url]: https://www.npmjs.com/package/@solana/web3.js [semantic-release-image]: https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg [semantic-release-url]: https://github.com/semantic-release/semantic-release diff --git a/web3.js/babel.config.json b/web3.js/babel.config.json index 3992889d16..15c7f949cd 100644 --- a/web3.js/babel.config.json +++ b/web3.js/babel.config.json @@ -1,7 +1,7 @@ { "presets": [ ["@babel/preset-env"], - ["@babel/preset-flow"] + ["@babel/preset-typescript"] ], "plugins": [ "@babel/plugin-proposal-class-properties" diff --git a/web3.js/css/theme.css b/web3.js/css/theme.css deleted file mode 100644 index d50dde5be0..0000000000 --- a/web3.js/css/theme.css +++ /dev/null @@ -1,159 +0,0 @@ -html { - font-family: Lato, 'Helvetica Neue', 'Arial', sans-serif; - color: #333; - background-color: #f7f7f7; - text-size-adjust: none; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} - -body { - margin: 0; - font-size: 1rem; - overflow-x: hidden; - font-family: Lato, 'Helvetica Neue', 'Arial', sans-serif; - font-size: 14px; - font-weight: 300; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} - -code { - font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace, serif; - font-size: 13px; - /* please adjust the ace font size accordingly in editor.js */ - line-height: 1.5; -} - -p a { - color: #050505; - text-decoration: underline; -} - -.layout-container>header { - background: #050505; - border-bottom: solid 1px rgba(255, 255, 255, .3); -} - -.layout-container>header>a { - color: #fff; -} - -.search-box.active .search-input { - color: #fff; -} - -.navigation { - background: #050505; - padding-left: 0; -} - -.navigation li { - margin: 0; - padding-left: 25px; - transition: .15s ease-in-out; -} - -.navigation li:hover { - background: #00A670; -} - -.navigation li .kind-class { - margin-left: 0; -} - -.navigation li a { - color: #fff; - font-size: 13px; - font-weight: normal; - line-height: 2.2em; - padding-top: 0.3em; - padding-bottom: 0.3em; -} - -.content { - background: #f7f7f7; - padding-left: 0; - padding-right: 0; -} - -.content>.github-markdown>* { - padding-left: 28px; - padding-right: 28px; -} - -.content>*:not(.github-markdown) { - padding-left: 28px; - padding-right: 28px; -} - -.github-markdown h1 { - font-size: 28px; - font-weight: 300; - padding-top: 0.5em; - padding-bottom: 0.5em; - margin-bottom: 21px; - margin-top: 2em; - border-top: 1px solid #e5e5e5; - border-bottom: 1px solid #e5e5e5; - background-color: #fff; - font-family: Poppins, sans-serif; -} - -.github-markdown h2 { - font-family: Poppins, sans-serif; - font-size: 26px; - font-weight: 300; - margin-top: 2em; - margin-bottom: 0; - padding-top: 1.2em; - padding-bottom: 1.2em; - border-bottom: none; -} - -.github-markdown pre>code { - background-color: #262B26; - color: #fff; - margin: 0; - padding-top: 2em; - padding-bottom: 2em; - padding: 2em 28px; - font-size: 13px; - border-radius: 3px; - line-height: 1.5; -} - -.pln { - color: #7d7d7d; -} - -.tag { - color: #f92672; -} - -.lit { - color: #f6aa11; -} - -.str { - color: #60ac39; -} - -p>code, -li>code { - background-color: rgba(0, 0, 0, 0.05); - padding: 3px; - border-radius: 3px; - font-size: 13px; - line-height: 1.5; - color: #333; -} - -.import-path pre.prettyprint code { - background-color: rgba(0, 0, 0, 0.05); - padding: 3px; - border-radius: 3px; - font-size: 13px; - line-height: 1.5; - color: #333; -} \ No newline at end of file diff --git a/web3.js/flow-typed/npm/@solana/spl-token_vx.x.x.js b/web3.js/flow-typed/npm/@solana/spl-token_vx.x.x.js deleted file mode 100644 index a0cf7160e8..0000000000 --- a/web3.js/flow-typed/npm/@solana/spl-token_vx.x.x.js +++ /dev/null @@ -1,46 +0,0 @@ -// flow-typed signature: 31deb8fc07c5ce70371c5efad579a253 -// flow-typed version: <>/@solana/spl-token_v^0.0.13/flow_v0.130.0 - -/** - * This is an autogenerated libdef stub for: - * - * '@solana/spl-token' - * - * Fill this stub out by replacing all the `any` types. - * - * Once filled out, we encourage you to share your work with the - * community by sending a pull request to: - * https://github.com/flowtype/flow-typed - */ - -declare module '@solana/spl-token' { - declare module.exports: any; -} - -/** - * We include stubs for each file inside this npm package in case you need to - * require those files directly. Feel free to delete any files that aren't - * needed. - */ -declare module '@solana/spl-token/lib/index.cjs' { - declare module.exports: any; -} - -declare module '@solana/spl-token/lib/index.esm' { - declare module.exports: any; -} - -declare module '@solana/spl-token/module.flow' { - declare module.exports: any; -} - -// Filename aliases -declare module '@solana/spl-token/lib/index.cjs.js' { - declare module.exports: $Exports<'@solana/spl-token/lib/index.cjs'>; -} -declare module '@solana/spl-token/lib/index.esm.js' { - declare module.exports: $Exports<'@solana/spl-token/lib/index.esm'>; -} -declare module '@solana/spl-token/module.flow.js' { - declare module.exports: $Exports<'@solana/spl-token/module.flow'>; -} diff --git a/web3.js/flow-typed/npm/bn.js_vx.x.x.js b/web3.js/flow-typed/npm/bn.js_vx.x.x.js deleted file mode 100644 index 9aa89b64a2..0000000000 --- a/web3.js/flow-typed/npm/bn.js_vx.x.x.js +++ /dev/null @@ -1,32 +0,0 @@ -// flow-typed signature: 8da8649cde7e433ccfab3b776be3b79b -// flow-typed version: <>/bn.js_v^5.0.0/flow_v0.130.0 - -/** - * This is an autogenerated libdef stub for: - * - * 'bn.js' - * - * Fill this stub out by replacing all the `any` types. - * - * Once filled out, we encourage you to share your work with the - * community by sending a pull request to: - * https://github.com/flowtype/flow-typed - */ - -declare module 'bn.js' { - declare module.exports: any; -} - -/** - * We include stubs for each file inside this npm package in case you need to - * require those files directly. Feel free to delete any files that aren't - * needed. - */ -declare module 'bn.js/lib/bn' { - declare module.exports: any; -} - -// Filename aliases -declare module 'bn.js/lib/bn.js' { - declare module.exports: $Exports<'bn.js/lib/bn'>; -} diff --git a/web3.js/flow-typed/npm/bs58_vx.x.x.js b/web3.js/flow-typed/npm/bs58_vx.x.x.js deleted file mode 100644 index 458b1468cc..0000000000 --- a/web3.js/flow-typed/npm/bs58_vx.x.x.js +++ /dev/null @@ -1,33 +0,0 @@ -// flow-typed signature: f3d56571af5a1fa4e9a01cf0c8719c35 -// flow-typed version: <>/bs58_v^4.0.1/flow_v0.130.0 - -/** - * This is an autogenerated libdef stub for: - * - * 'bs58' - * - * Fill this stub out by replacing all the `any` types. - * - * Once filled out, we encourage you to share your work with the - * community by sending a pull request to: - * https://github.com/flowtype/flow-typed - */ - -declare module 'bs58' { - declare module.exports: any; -} - -/** - * We include stubs for each file inside this npm package in case you need to - * require those files directly. Feel free to delete any files that aren't - * needed. - */ - - -// Filename aliases -declare module 'bs58/index' { - declare module.exports: $Exports<'bs58'>; -} -declare module 'bs58/index.js' { - declare module.exports: $Exports<'bs58'>; -} diff --git a/web3.js/flow-typed/npm/buffer-layout_vx.x.x.js b/web3.js/flow-typed/npm/buffer-layout_vx.x.x.js deleted file mode 100644 index d6fd8faedb..0000000000 --- a/web3.js/flow-typed/npm/buffer-layout_vx.x.x.js +++ /dev/null @@ -1,53 +0,0 @@ -// flow-typed signature: 1d431fcaaa378246e77473538c349228 -// flow-typed version: <>/buffer-layout_v^1.2.0/flow_v0.130.0 - -/** - * This is an autogenerated libdef stub for: - * - * 'buffer-layout' - * - * Fill this stub out by replacing all the `any` types. - * - * Once filled out, we encourage you to share your work with the - * community by sending a pull request to: - * https://github.com/flowtype/flow-typed - */ - -declare module 'buffer-layout' { - declare module.exports: any; -} - -/** - * We include stubs for each file inside this npm package in case you need to - * require those files directly. Feel free to delete any files that aren't - * needed. - */ -declare module 'buffer-layout/jsdoc/custom/local' { - declare module.exports: any; -} - -declare module 'buffer-layout/lib/Layout' { - declare module.exports: any; -} - -declare module 'buffer-layout/test/examples' { - declare module.exports: any; -} - -declare module 'buffer-layout/test/LayoutTest' { - declare module.exports: any; -} - -// Filename aliases -declare module 'buffer-layout/jsdoc/custom/local.js' { - declare module.exports: $Exports<'buffer-layout/jsdoc/custom/local'>; -} -declare module 'buffer-layout/lib/Layout.js' { - declare module.exports: $Exports<'buffer-layout/lib/Layout'>; -} -declare module 'buffer-layout/test/examples.js' { - declare module.exports: $Exports<'buffer-layout/test/examples'>; -} -declare module 'buffer-layout/test/LayoutTest.js' { - declare module.exports: $Exports<'buffer-layout/test/LayoutTest'>; -} diff --git a/web3.js/flow-typed/npm/buffer_vx.x.x.js b/web3.js/flow-typed/npm/buffer_vx.x.x.js deleted file mode 100644 index 9d7f69e9e5..0000000000 --- a/web3.js/flow-typed/npm/buffer_vx.x.x.js +++ /dev/null @@ -1,33 +0,0 @@ -// flow-typed signature: 8dedcebf9a48fa95d40824e83a7eef7d -// flow-typed version: <>/buffer_v6.0.1/flow_v0.130.0 - -/** - * This is an autogenerated libdef stub for: - * - * 'buffer' - * - * Fill this stub out by replacing all the `any` types. - * - * Once filled out, we encourage you to share your work with the - * community by sending a pull request to: - * https://github.com/flowtype/flow-typed - */ - -declare module 'buffer' { - declare module.exports: any; -} - -/** - * We include stubs for each file inside this npm package in case you need to - * require those files directly. Feel free to delete any files that aren't - * needed. - */ - - -// Filename aliases -declare module 'buffer/index' { - declare module.exports: $Exports<'buffer'>; -} -declare module 'buffer/index.js' { - declare module.exports: $Exports<'buffer'>; -} diff --git a/web3.js/flow-typed/npm/chai-as-promised_vx.x.x.js b/web3.js/flow-typed/npm/chai-as-promised_vx.x.x.js deleted file mode 100644 index 8e9fe5c47b..0000000000 --- a/web3.js/flow-typed/npm/chai-as-promised_vx.x.x.js +++ /dev/null @@ -1,32 +0,0 @@ -// flow-typed signature: 70e0166de5b4ddabe4c61a208b761844 -// flow-typed version: <>/chai-as-promised_v^7.1.1/flow_v0.130.0 - -/** - * This is an autogenerated libdef stub for: - * - * 'chai-as-promised' - * - * Fill this stub out by replacing all the `any` types. - * - * Once filled out, we encourage you to share your work with the - * community by sending a pull request to: - * https://github.com/flowtype/flow-typed - */ - -declare module 'chai-as-promised' { - declare module.exports: any; -} - -/** - * We include stubs for each file inside this npm package in case you need to - * require those files directly. Feel free to delete any files that aren't - * needed. - */ -declare module 'chai-as-promised/lib/chai-as-promised' { - declare module.exports: any; -} - -// Filename aliases -declare module 'chai-as-promised/lib/chai-as-promised.js' { - declare module.exports: $Exports<'chai-as-promised/lib/chai-as-promised'>; -} diff --git a/web3.js/flow-typed/npm/chai_v4.x.x.js b/web3.js/flow-typed/npm/chai_v4.x.x.js deleted file mode 100644 index 98de99ca2d..0000000000 --- a/web3.js/flow-typed/npm/chai_v4.x.x.js +++ /dev/null @@ -1,304 +0,0 @@ -// flow-typed signature: 055d97c4302b7989c7221251421dca7c -// flow-typed version: 673c7738c2/chai_v4.x.x/flow_>=v0.104.x - -declare module "chai" { - declare type ExpectChain = { - and: ExpectChain, - at: ExpectChain, - be: ExpectChain, - been: ExpectChain, - have: ExpectChain, - has: ExpectChain, - is: ExpectChain, - of: ExpectChain, - same: ExpectChain, - that: ExpectChain, - to: ExpectChain, - which: ExpectChain, - with: ExpectChain, - not: ExpectChain, - deep: ExpectChain, - any: ExpectChain, - all: ExpectChain, - own: ExpectChain, - a: ExpectChain & ((type: string, message?: string) => ExpectChain), - an: ExpectChain & ((type: string, message?: string) => ExpectChain), - include: ExpectChain & ((value: mixed, message?: string) => ExpectChain), - includes: ExpectChain & ((value: mixed, message?: string) => ExpectChain), - contain: ExpectChain & ((value: mixed, message?: string) => ExpectChain), - contains: ExpectChain & ((value: mixed, message?: string) => ExpectChain), - eq: (value: T, message?: string) => ExpectChain, - eql: (value: T, message?: string) => ExpectChain, - equal: (value: T, message?: string) => ExpectChain, - equals: (value: T, message?: string) => ExpectChain, - above: (value: T & number, message?: string) => ExpectChain, - gt: (value: T & number, message?: string) => ExpectChain, - greaterThan: (value: T & number, message?: string) => ExpectChain, - least: (value: T & number, message?: string) => ExpectChain, - below: (value: T & number, message?: string) => ExpectChain, - lessThan: (value: T & number, message?: string) => ExpectChain, - lt: (value: T & number, message?: string) => ExpectChain, - most: (value: T & number, message?: string) => ExpectChain, - within: (start: T & number, finish: T & number, message?: string) => ExpectChain, - instanceof: (constructor: mixed, message?: string) => ExpectChain, - instanceOf: (constructor: mixed, message?: string) => ExpectChain, - nested: ExpectChain, - property:

( - name: string, - value?: P, - message?: string - ) => ExpectChain

& ((name: string) => ExpectChain), - length: ExpectChain & ((value: number, message?: string) => ExpectChain), - lengthOf: (value: number, message?: string) => ExpectChain, - match: (regex: RegExp, message?: string) => ExpectChain, - matches: (regex: RegExp, message?: string) => ExpectChain, - string: (string: string, message?: string) => ExpectChain, - key: (key: string) => ExpectChain, - keys: ( - key: string | Array, - ...keys: Array - ) => ExpectChain, - throw: ( - err?: Class | Error | RegExp | string, - errMsgMatcher?: RegExp | string, - msg?: string - ) => ExpectChain, - respondTo: (method: string, message?: string) => ExpectChain, - itself: ExpectChain, - satisfy: (method: (value: T) => boolean, message?: string) => ExpectChain, - closeTo: (expected: T & number, delta: number, message?: string) => ExpectChain, - members: (set: mixed, message?: string) => ExpectChain, - oneOf: (list: Array, message?: string) => ExpectChain, - change: (obj: mixed, key: string, message?: string) => ExpectChain, - increase: (obj: mixed, key: string, message?: string) => ExpectChain, - decrease: (obj: mixed, key: string, message?: string) => ExpectChain, - by: (delta: number, message?: string) => ExpectChain, - ordered: ExpectChain, - // dirty-chai - ok: () => ExpectChain, - true: () => ExpectChain, - false: () => ExpectChain, - null: () => ExpectChain, - undefined: () => ExpectChain, - exist: () => ExpectChain, - empty: () => ExpectChain, - extensible: () => ExpectChain, - sealed: () => ExpectChain, - frozen: () => ExpectChain, - NaN: () => ExpectChain, - // chai-immutable - size: (n: number) => ExpectChain, - // sinon-chai - called: () => ExpectChain, - callCount: (n: number) => ExpectChain, - calledOnce: () => ExpectChain, - calledTwice: () => ExpectChain, - calledThrice: () => ExpectChain, - calledBefore: (spy: mixed) => ExpectChain, - calledAfter: (spy: mixed) => ExpectChain, - calledImmediatelyBefore: (spy: mixed) => ExpectChain, - calledImmediatelyAfter: (spy: mixed) => ExpectChain, - calledWith: (...args: Array) => ExpectChain, - calledOnceWith: (...args: Array) => ExpectChain, - calledWithMatch: (...args: Array) => ExpectChain, - calledWithExactly: (...args: Array) => ExpectChain, - calledOnceWithExactly: (...args: Array) => ExpectChain, - returned: (returnVal: mixed) => ExpectChain, - alwaysReturned: (returnVal: mixed) => ExpectChain, - // chai-as-promised - eventually: ExpectChain, - resolvedWith: (value: mixed) => Promise & ExpectChain, - resolved: () => Promise & ExpectChain, - rejectedWith: ( - value: mixed, - errMsgMatcher?: RegExp | string, - msg?: string - ) => Promise & ExpectChain, - rejected: () => Promise & ExpectChain, - notify: (callback: () => mixed) => ExpectChain, - fulfilled: () => Promise & ExpectChain, - // chai-subset - containSubset: (obj: {...} | Array< {...} >) => ExpectChain, - // chai-redux-mock-store - dispatchedActions: ( - actions: Array<{...} | ((action: {...}) => any)> - ) => ExpectChain, - dispatchedTypes: (actions: Array) => ExpectChain, - // chai-enzyme - attr: (key: string, val?: any) => ExpectChain, - data: (key: string, val?: any) => ExpectChain, - prop: (key: string, val?: any) => ExpectChain, - state: (key: string, val?: any) => ExpectChain, - value: (val: string) => ExpectChain, - className: (val: string) => ExpectChain, - text: (val: string) => ExpectChain, - // chai-karma-snapshot - matchSnapshot: (lang?: any, update?: boolean, msg?: any) => ExpectChain, - ... - }; - - - declare var expect: { - (actual: T, message?: string): ExpectChain, - fail: ((message?: string) => void) & ((actual: any, expected: any, message?: string, operator?: string) => void), - ... - }; - - declare function use(plugin: (chai: Object, utils: Object) => void): void; - - declare class assert { - static (expression: mixed, message?: string): void; - static fail( - actual: mixed, - expected: mixed, - message?: string, - operator?: string - ): void; - - static isOk(object: mixed, message?: string): void; - static isNotOk(object: mixed, message?: string): void; - - static empty(object: mixed, message?: string): void; - static isEmpty(object: mixed, message?: string): void; - static notEmpty(object: mixed, message?: string): void; - static isNotEmpty(object: mixed, message?: string): void; - - static equal(actual: mixed, expected: mixed, message?: string): void; - static notEqual(actual: mixed, expected: mixed, message?: string): void; - - static strictEqual(act: mixed, exp: mixed, msg?: string): void; - static notStrictEqual(act: mixed, exp: mixed, msg?: string): void; - - static deepEqual(act: mixed, exp: mixed, msg?: string): void; - static notDeepEqual(act: mixed, exp: mixed, msg?: string): void; - - static ok(val: mixed, msg?: string): void; - static isTrue(val: mixed, msg?: string): void; - static isNotTrue(val: mixed, msg?: string): void; - static isFalse(val: mixed, msg?: string): void; - static isNotFalse(val: mixed, msg?: string): void; - - static isNull(val: mixed, msg?: string): void; - static isNotNull(val: mixed, msg?: string): void; - - static isUndefined(val: mixed, msg?: string): void; - static isDefined(val: mixed, msg?: string): void; - - static isNaN(val: mixed, msg?: string): void; - static isNotNaN(val: mixed, msg?: string): void; - - static isAbove(val: number, abv: number, msg?: string): void; - static isBelow(val: number, blw: number, msg?: string): void; - - static exists(val : mixed, msg? : string) : void; - static notExists(val : mixed, msg? : string) : void; - - static isAtMost(val: number, atmst: number, msg?: string): void; - static isAtLeast(val: number, atlst: number, msg?: string): void; - - static isFunction(val: mixed, msg?: string): void; - static isNotFunction(val: mixed, msg?: string): void; - - static isObject(val: mixed, msg?: string): void; - static isNotObject(val: mixed, msg?: string): void; - - static isArray(val: mixed, msg?: string): void; - static isNotArray(val: mixed, msg?: string): void; - - static isString(val: mixed, msg?: string): void; - static isNotString(val: mixed, msg?: string): void; - - static isNumber(val: mixed, msg?: string): void; - static isNotNumber(val: mixed, msg?: string): void; - - static isBoolean(val: mixed, msg?: string): void; - static isNotBoolean(val: mixed, msg?: string): void; - - static typeOf(val: mixed, type: string, msg?: string): void; - static notTypeOf(val: mixed, type: string, msg?: string): void; - - static instanceOf(val: mixed, constructor: Class< * >, msg?: string): void; - static notInstanceOf(val: mixed, constructor: Class< * >, msg?: string): void; - - static include(exp: string, inc: mixed, msg?: string): void; - static include(exp: Array, inc: T, msg?: string): void; - - static notInclude(exp: string, inc: mixed, msg?: string): void; - static notInclude(exp: Array, inc: T, msg?: string): void; - - static deepInclude(haystack : T[] | string, needle : $Shape, msg?: string) : void; - static notDeepInclude(haystack : T[] | string, needle : $Shape, msg?: string) : void; - - static match(exp: mixed, re: RegExp, msg?: string): void; - static notMatch(exp: mixed, re: RegExp, msg?: string): void; - - static property(obj: Object, prop: string, msg?: string): void; - static notProperty(obj: Object, prop: string, msg?: string): void; - static deepProperty(obj: Object, prop: string, msg?: string): void; - static notDeepProperty(obj: Object, prop: string, msg?: string): void; - - static propertyVal( - obj: Object, - prop: string, - val: mixed, - msg?: string - ): void; - static propertyNotVal( - obj: Object, - prop: string, - val: mixed, - msg?: string - ): void; - - static deepPropertyVal( - obj: Object, - prop: string, - val: mixed, - msg?: string - ): void; - static deepPropertyNotVal( - obj: Object, - prop: string, - val: mixed, - msg?: string - ): void; - - static lengthOf(exp: mixed, len: number, msg?: string): void; - - static throws( - func: () => any, - err?: Class | Error | RegExp | string, - errorMsgMatcher?: string | RegExp, - msg?: string - ): void; - static doesNotThrow( - func: () => any, - err?: Class | Error | RegExp | string, - errorMsgMatcher?: string | RegExp, - msg?: string - ): void; - - static closeTo( - actual: number, - expected: number, - delta: number, - msg?: string - ): void; - static approximately( - actual: number, - expected: number, - delta: number, - msg?: string - ): void; - - // chai-immutable - static sizeOf(val: mixed, length: number): void; - } - - declare var config: { - includeStack: boolean, - showDiff: boolean, - truncateThreshold: number, - ... - }; -} diff --git a/web3.js/flow-typed/npm/crypto-hash_vx.x.x.js b/web3.js/flow-typed/npm/crypto-hash_vx.x.x.js deleted file mode 100644 index 9df2f839dd..0000000000 --- a/web3.js/flow-typed/npm/crypto-hash_vx.x.x.js +++ /dev/null @@ -1,45 +0,0 @@ -// flow-typed signature: c51ef53d90f82520f7f635d7c316e3ad -// flow-typed version: <>/crypto-hash_v^1.2.2/flow_v0.130.0 - -/** - * This is an autogenerated libdef stub for: - * - * 'crypto-hash' - * - * Fill this stub out by replacing all the `any` types. - * - * Once filled out, we encourage you to share your work with the - * community by sending a pull request to: - * https://github.com/flowtype/flow-typed - */ - -declare module 'crypto-hash' { - declare module.exports: any; -} - -/** - * We include stubs for each file inside this npm package in case you need to - * require those files directly. Feel free to delete any files that aren't - * needed. - */ -declare module 'crypto-hash/browser' { - declare module.exports: any; -} - -declare module 'crypto-hash/thread' { - declare module.exports: any; -} - -// Filename aliases -declare module 'crypto-hash/browser.js' { - declare module.exports: $Exports<'crypto-hash/browser'>; -} -declare module 'crypto-hash/index' { - declare module.exports: $Exports<'crypto-hash'>; -} -declare module 'crypto-hash/index.js' { - declare module.exports: $Exports<'crypto-hash'>; -} -declare module 'crypto-hash/thread.js' { - declare module.exports: $Exports<'crypto-hash/thread'>; -} diff --git a/web3.js/flow-typed/npm/jayson_vx.x.x.js b/web3.js/flow-typed/npm/jayson_vx.x.x.js deleted file mode 100644 index 5b04577b7e..0000000000 --- a/web3.js/flow-typed/npm/jayson_vx.x.x.js +++ /dev/null @@ -1,251 +0,0 @@ -// flow-typed signature: 8403af7bdb08869a610e6cf3c8467ca2 -// flow-typed version: <>/jayson_v^3.4.4/flow_v0.130.0 - -/** - * This is an autogenerated libdef stub for: - * - * 'jayson' - * - * Fill this stub out by replacing all the `any` types. - * - * Once filled out, we encourage you to share your work with the - * community by sending a pull request to: - * https://github.com/flowtype/flow-typed - */ - -declare module 'jayson' { - declare module.exports: any; -} - -/** - * We include stubs for each file inside this npm package in case you need to - * require those files directly. Feel free to delete any files that aren't - * needed. - */ -declare module 'jayson/bin/jayson' { - declare module.exports: any; -} - -declare module 'jayson/lib/client/browser' { - declare module.exports: any; -} - -declare module 'jayson/lib/client/http' { - declare module.exports: any; -} - -declare module 'jayson/lib/client/https' { - declare module.exports: any; -} - -declare module 'jayson/lib/client' { - declare module.exports: any; -} - -declare module 'jayson/lib/client/tcp' { - declare module.exports: any; -} - -declare module 'jayson/lib/client/tls' { - declare module.exports: any; -} - -declare module 'jayson/lib/generateRequest' { - declare module.exports: any; -} - -declare module 'jayson/lib' { - declare module.exports: any; -} - -declare module 'jayson/lib/method' { - declare module.exports: any; -} - -declare module 'jayson/lib/server/http' { - declare module.exports: any; -} - -declare module 'jayson/lib/server/https' { - declare module.exports: any; -} - -declare module 'jayson/lib/server' { - declare module.exports: any; -} - -declare module 'jayson/lib/server/middleware' { - declare module.exports: any; -} - -declare module 'jayson/lib/server/tcp' { - declare module.exports: any; -} - -declare module 'jayson/lib/server/tls' { - declare module.exports: any; -} - -declare module 'jayson/lib/utils' { - declare module.exports: any; -} - -declare module 'jayson/promise' { - declare module.exports: any; -} - -declare module 'jayson/promise/lib/client/browser' { - declare module.exports: any; -} - -declare module 'jayson/promise/lib/client/http' { - declare module.exports: any; -} - -declare module 'jayson/promise/lib/client/https' { - declare module.exports: any; -} - -declare module 'jayson/promise/lib/client' { - declare module.exports: any; -} - -declare module 'jayson/promise/lib/client/tcp' { - declare module.exports: any; -} - -declare module 'jayson/promise/lib/client/tls' { - declare module.exports: any; -} - -declare module 'jayson/promise/lib' { - declare module.exports: any; -} - -declare module 'jayson/promise/lib/method' { - declare module.exports: any; -} - -declare module 'jayson/promise/lib/server' { - declare module.exports: any; -} - -declare module 'jayson/promise/lib/utils' { - declare module.exports: any; -} - -// Filename aliases -declare module 'jayson/bin/jayson.js' { - declare module.exports: $Exports<'jayson/bin/jayson'>; -} -declare module 'jayson/index' { - declare module.exports: $Exports<'jayson'>; -} -declare module 'jayson/index.js' { - declare module.exports: $Exports<'jayson'>; -} -declare module 'jayson/lib/client/browser/index' { - declare module.exports: $Exports<'jayson/lib/client/browser'>; -} -declare module 'jayson/lib/client/browser/index.js' { - declare module.exports: $Exports<'jayson/lib/client/browser'>; -} -declare module 'jayson/lib/client/http.js' { - declare module.exports: $Exports<'jayson/lib/client/http'>; -} -declare module 'jayson/lib/client/https.js' { - declare module.exports: $Exports<'jayson/lib/client/https'>; -} -declare module 'jayson/lib/client/index' { - declare module.exports: $Exports<'jayson/lib/client'>; -} -declare module 'jayson/lib/client/index.js' { - declare module.exports: $Exports<'jayson/lib/client'>; -} -declare module 'jayson/lib/client/tcp.js' { - declare module.exports: $Exports<'jayson/lib/client/tcp'>; -} -declare module 'jayson/lib/client/tls.js' { - declare module.exports: $Exports<'jayson/lib/client/tls'>; -} -declare module 'jayson/lib/generateRequest.js' { - declare module.exports: $Exports<'jayson/lib/generateRequest'>; -} -declare module 'jayson/lib/index' { - declare module.exports: $Exports<'jayson/lib'>; -} -declare module 'jayson/lib/index.js' { - declare module.exports: $Exports<'jayson/lib'>; -} -declare module 'jayson/lib/method.js' { - declare module.exports: $Exports<'jayson/lib/method'>; -} -declare module 'jayson/lib/server/http.js' { - declare module.exports: $Exports<'jayson/lib/server/http'>; -} -declare module 'jayson/lib/server/https.js' { - declare module.exports: $Exports<'jayson/lib/server/https'>; -} -declare module 'jayson/lib/server/index' { - declare module.exports: $Exports<'jayson/lib/server'>; -} -declare module 'jayson/lib/server/index.js' { - declare module.exports: $Exports<'jayson/lib/server'>; -} -declare module 'jayson/lib/server/middleware.js' { - declare module.exports: $Exports<'jayson/lib/server/middleware'>; -} -declare module 'jayson/lib/server/tcp.js' { - declare module.exports: $Exports<'jayson/lib/server/tcp'>; -} -declare module 'jayson/lib/server/tls.js' { - declare module.exports: $Exports<'jayson/lib/server/tls'>; -} -declare module 'jayson/lib/utils.js' { - declare module.exports: $Exports<'jayson/lib/utils'>; -} -declare module 'jayson/promise/index' { - declare module.exports: $Exports<'jayson/promise'>; -} -declare module 'jayson/promise/index.js' { - declare module.exports: $Exports<'jayson/promise'>; -} -declare module 'jayson/promise/lib/client/browser/index' { - declare module.exports: $Exports<'jayson/promise/lib/client/browser'>; -} -declare module 'jayson/promise/lib/client/browser/index.js' { - declare module.exports: $Exports<'jayson/promise/lib/client/browser'>; -} -declare module 'jayson/promise/lib/client/http.js' { - declare module.exports: $Exports<'jayson/promise/lib/client/http'>; -} -declare module 'jayson/promise/lib/client/https.js' { - declare module.exports: $Exports<'jayson/promise/lib/client/https'>; -} -declare module 'jayson/promise/lib/client/index' { - declare module.exports: $Exports<'jayson/promise/lib/client'>; -} -declare module 'jayson/promise/lib/client/index.js' { - declare module.exports: $Exports<'jayson/promise/lib/client'>; -} -declare module 'jayson/promise/lib/client/tcp.js' { - declare module.exports: $Exports<'jayson/promise/lib/client/tcp'>; -} -declare module 'jayson/promise/lib/client/tls.js' { - declare module.exports: $Exports<'jayson/promise/lib/client/tls'>; -} -declare module 'jayson/promise/lib/index' { - declare module.exports: $Exports<'jayson/promise/lib'>; -} -declare module 'jayson/promise/lib/index.js' { - declare module.exports: $Exports<'jayson/promise/lib'>; -} -declare module 'jayson/promise/lib/method.js' { - declare module.exports: $Exports<'jayson/promise/lib/method'>; -} -declare module 'jayson/promise/lib/server.js' { - declare module.exports: $Exports<'jayson/promise/lib/server'>; -} -declare module 'jayson/promise/lib/utils.js' { - declare module.exports: $Exports<'jayson/promise/lib/utils'>; -} diff --git a/web3.js/flow-typed/npm/js-sha3_vx.x.x.js b/web3.js/flow-typed/npm/js-sha3_vx.x.x.js deleted file mode 100644 index 54aaec2c29..0000000000 --- a/web3.js/flow-typed/npm/js-sha3_vx.x.x.js +++ /dev/null @@ -1,39 +0,0 @@ -// flow-typed signature: 3f5253ee300391e662d9c724d020a98e -// flow-typed version: <>/js-sha3_v^0.8.0/flow_v0.130.0 - -/** - * This is an autogenerated libdef stub for: - * - * 'js-sha3' - * - * Fill this stub out by replacing all the `any` types. - * - * Once filled out, we encourage you to share your work with the - * community by sending a pull request to: - * https://github.com/flowtype/flow-typed - */ - -declare module 'js-sha3' { - declare module.exports: any; -} - -/** - * We include stubs for each file inside this npm package in case you need to - * require those files directly. Feel free to delete any files that aren't - * needed. - */ -declare module 'js-sha3/build/sha3.min' { - declare module.exports: any; -} - -declare module 'js-sha3/src/sha3' { - declare module.exports: any; -} - -// Filename aliases -declare module 'js-sha3/build/sha3.min.js' { - declare module.exports: $Exports<'js-sha3/build/sha3.min'>; -} -declare module 'js-sha3/src/sha3.js' { - declare module.exports: $Exports<'js-sha3/src/sha3'>; -} diff --git a/web3.js/flow-typed/npm/mocha_v8.x.x.js b/web3.js/flow-typed/npm/mocha_v8.x.x.js deleted file mode 100644 index 7affb5c0c2..0000000000 --- a/web3.js/flow-typed/npm/mocha_v8.x.x.js +++ /dev/null @@ -1,238 +0,0 @@ -// flow-typed signature: 195cec6dc98ab7533f0eb927ee493f99 -// flow-typed version: 1a6d5d1968/mocha_v8.x.x/flow_>=v0.104.x - -declare interface $npm$mocha$SetupOptions { - slow?: number; - timeout?: number; - ui?: string; - globals?: Array; - reporter?: any; - bail?: boolean; - ignoreLeaks?: boolean; - grep?: any; -} - -declare type $npm$mocha$done = (error?: any) => any; - -// declare interface $npm$mocha$SuiteCallbackContext { -// timeout(ms: number): void; -// retries(n: number): void; -// slow(ms: number): void; -// } - -// declare interface $npm$mocha$TestCallbackContext { -// skip(): void; -// timeout(ms: number): void; -// retries(n: number): void; -// slow(ms: number): void; -// [index: string]: any; -// } - -declare interface $npm$mocha$Suite { - parent: $npm$mocha$Suite; - title: string; - fullTitle(): string; -} - -declare type $npm$mocha$ContextDefinition = {| - (description: string, callback: (/* this: $npm$mocha$SuiteCallbackContext */) => void): $npm$mocha$Suite; - only(description: string, callback: (/* this: $npm$mocha$SuiteCallbackContext */) => void): $npm$mocha$Suite; - skip(description: string, callback: (/* this: $npm$mocha$SuiteCallbackContext */) => void): void; - timeout(ms: number): void; -|} - -declare type $npm$mocha$TestDefinition = {| - (expectation: string, callback?: (/* this: $npm$mocha$TestCallbackContext, */ done: $npm$mocha$done) => mixed): $npm$mocha$Test; - only(expectation: string, callback?: (/* this: $npm$mocha$TestCallbackContext, */ done: $npm$mocha$done) => mixed): $npm$mocha$Test; - skip(expectation: string, callback?: (/* this: $npm$mocha$TestCallbackContext, */ done: $npm$mocha$done) => mixed): void; - timeout(ms: number): void; - state: 'failed' | 'passed'; -|} - -declare interface $npm$mocha$Runner {} - -declare class $npm$mocha$BaseReporter { - stats: { - suites: number, - tests: number, - passes: number, - pending: number, - failures: number, - ... - }; - - constructor(runner: $npm$mocha$Runner): $npm$mocha$BaseReporter; -} - -declare class $npm$mocha$DocReporter extends $npm$mocha$BaseReporter {} -declare class $npm$mocha$DotReporter extends $npm$mocha$BaseReporter {} -declare class $npm$mocha$HTMLReporter extends $npm$mocha$BaseReporter {} -declare class $npm$mocha$HTMLCovReporter extends $npm$mocha$BaseReporter {} -declare class $npm$mocha$JSONReporter extends $npm$mocha$BaseReporter {} -declare class $npm$mocha$JSONCovReporter extends $npm$mocha$BaseReporter {} -declare class $npm$mocha$JSONStreamReporter extends $npm$mocha$BaseReporter {} -declare class $npm$mocha$LandingReporter extends $npm$mocha$BaseReporter {} -declare class $npm$mocha$ListReporter extends $npm$mocha$BaseReporter {} -declare class $npm$mocha$MarkdownReporter extends $npm$mocha$BaseReporter {} -declare class $npm$mocha$MinReporter extends $npm$mocha$BaseReporter {} -declare class $npm$mocha$NyanReporter extends $npm$mocha$BaseReporter {} -declare class $npm$mocha$ProgressReporter extends $npm$mocha$BaseReporter { - constructor(runner: $npm$mocha$Runner, options?: { - open?: string, - complete?: string, - incomplete?: string, - close?: string, - ... - }): $npm$mocha$ProgressReporter; -} -declare class $npm$mocha$SpecReporter extends $npm$mocha$BaseReporter {} -declare class $npm$mocha$TAPReporter extends $npm$mocha$BaseReporter {} -declare class $npm$mocha$XUnitReporter extends $npm$mocha$BaseReporter { - constructor(runner: $npm$mocha$Runner, options?: any): $npm$mocha$XUnitReporter; -} - -declare class $npm$mocha$Mocha { - currentTest: $npm$mocha$TestDefinition; - constructor(options?: { - grep?: RegExp, - ui?: string, - reporter?: string, - timeout?: number, - reporterOptions?: any, - slow?: number, - bail?: boolean, - ... - }): $npm$mocha$Mocha; - setup(options: $npm$mocha$SetupOptions): this; - bail(value?: boolean): this; - addFile(file: string): this; - reporter(name: string): this; - reporter(reporter: (runner: $npm$mocha$Runner, options: any) => any): this; - ui(value: string): this; - grep(value: string): this; - grep(value: RegExp): this; - invert(): this; - ignoreLeaks(value: boolean): this; - checkLeaks(): this; - throwError(error: Error): void; - growl(): this; - globals(value: string): this; - globals(values: Array): this; - useColors(value: boolean): this; - useInlineDiffs(value: boolean): this; - timeout(value: number): this; - slow(value: number): this; - enableTimeouts(value: boolean): this; - asyncOnly(value: boolean): this; - noHighlighting(value: boolean): this; - run(onComplete?: (failures: number) => void): $npm$mocha$Runner; - - static reporters: { - Doc: $npm$mocha$DocReporter, - Dot: $npm$mocha$DotReporter, - HTML: $npm$mocha$HTMLReporter, - HTMLCov: $npm$mocha$HTMLCovReporter, - JSON: $npm$mocha$JSONReporter, - JSONCov: $npm$mocha$JSONCovReporter, - JSONStream: $npm$mocha$JSONStreamReporter, - Landing: $npm$mocha$LandingReporter, - List: $npm$mocha$ListReporter, - Markdown: $npm$mocha$MarkdownReporter, - Min: $npm$mocha$MinReporter, - Nyan: $npm$mocha$NyanReporter, - Progress: $npm$mocha$ProgressReporter, - ... - }; -} - -// declare interface $npm$mocha$HookCallbackContext { -// skip(): void; -// timeout(ms: number): void; -// [index: string]: any; -// } - -declare interface $npm$mocha$Runnable { - title: string; - fn: Function; - async: boolean; - sync: boolean; - timedOut: boolean; -} - -declare interface $npm$mocha$Test extends $npm$mocha$Runnable { - parent: $npm$mocha$Suite; - pending: boolean; - state: 'failed' | 'passed' | void; - fullTitle(): string; - timeout(ms: number): void; -} - -// declare interface $npm$mocha$BeforeAndAfterContext extends $npm$mocha$HookCallbackContext { -// currentTest: $npm$mocha$Test; -// } - -declare var mocha: $npm$mocha$Mocha; -declare var describe: $npm$mocha$ContextDefinition; -declare var xdescribe: $npm$mocha$ContextDefinition; -declare var context: $npm$mocha$ContextDefinition; -declare var suite: $npm$mocha$ContextDefinition; -declare var it: $npm$mocha$TestDefinition; -declare var xit: $npm$mocha$TestDefinition; -declare var test: $npm$mocha$TestDefinition; -declare var specify: $npm$mocha$TestDefinition; - -type Run = () => void; - -declare var run: Run; - -type Setup = (callback: (/* this: $npm$mocha$BeforeAndAfterContext, */ done: $npm$mocha$done) => mixed) => void; -type Teardown = (callback: (/* this: $npm$mocha$BeforeAndAfterContext, */ done: $npm$mocha$done) => mixed) => void; -type SuiteSetup = (callback: (/* this: $npm$mocha$HookCallbackContext, */ done: $npm$mocha$done) => mixed) => void; -type SuiteTeardown = (callback: (/* this: $npm$mocha$HookCallbackContext, */ done: $npm$mocha$done) => mixed) => void; -type Before = - | (callback: (/* this: $npm$mocha$HookCallbackContext, */ done: $npm$mocha$done) => mixed) => void - | (description: string, callback: (/* this: $npm$mocha$HookCallbackContext, */ done: $npm$mocha$done) => mixed) => void; -type After = - | (callback: (/* this: $npm$mocha$HookCallbackContext, */ done: $npm$mocha$done) => mixed) => void - | (description: string, callback: (/* this: $npm$mocha$HookCallbackContext, */ done: $npm$mocha$done) => mixed) => void; -type BeforeEach = - | (callback: (/* this: $npm$mocha$BeforeAndAfterContext, */ done: $npm$mocha$done) => mixed) => void - | (description: string, callback: (/* this: $npm$mocha$BeforeAndAfterContext, */ done: $npm$mocha$done) => mixed) => void; -type AfterEach = - | (callback: (/* this: $npm$mocha$BeforeAndAfterContext, */ done: $npm$mocha$done) => mixed) => void - | (description: string, callback: (/* this: $npm$mocha$BeforeAndAfterContext, */ done: $npm$mocha$done) => mixed) => void; - - -declare var setup: Setup; -declare var teardown: Teardown; -declare var suiteSetup: SuiteSetup; -declare var suiteTeardown; -declare var before: Before -declare var after: After; -declare var beforeEach: BeforeEach; -declare var afterEach: AfterEach; - -declare module "mocha" { - declare export var mocha: $npm$mocha$TestDefinition; - declare export var describe: $npm$mocha$ContextDefinition; - declare export var xdescribe: $npm$mocha$ContextDefinition; - declare export var context: $npm$mocha$ContextDefinition; - declare export var suite: $npm$mocha$ContextDefinition; - declare export var it: $npm$mocha$TestDefinition; - declare export var xit: $npm$mocha$TestDefinition; - declare export var test: $npm$mocha$TestDefinition; - declare export var specify: $npm$mocha$TestDefinition; - - declare export var run: Run; - - declare export var setup: Setup; - declare export var teardown: Teardown; - declare export var suiteSetup: SuiteSetup; - declare export var suiteTeardown: SuiteTeardown; - declare export var before: Before; - declare export var after: After; - declare export var beforeEach: BeforeEach; - declare export var afterEach: AfterEach; - - declare export default $npm$mocha$Mocha; -} diff --git a/web3.js/flow-typed/npm/mockttp_vx.x.x.js b/web3.js/flow-typed/npm/mockttp_vx.x.x.js deleted file mode 100644 index 801bffe046..0000000000 --- a/web3.js/flow-typed/npm/mockttp_vx.x.x.js +++ /dev/null @@ -1,263 +0,0 @@ -// flow-typed signature: e6c04a408e31a0534a8f15ba158400d1 -// flow-typed version: <>/mockttp_v^1.1.0/flow_v0.130.0 - -/** - * This is an autogenerated libdef stub for: - * - * 'mockttp' - * - * Fill this stub out by replacing all the `any` types. - * - * Once filled out, we encourage you to share your work with the - * community by sending a pull request to: - * https://github.com/flowtype/flow-typed - */ - -declare module 'mockttp' { - declare module.exports: any; -} - -/** - * We include stubs for each file inside this npm package in case you need to - * require those files directly. Feel free to delete any files that aren't - * needed. - */ -declare module 'mockttp/dist/client/introspection-query' { - declare module.exports: any; -} - -declare module 'mockttp/dist/client/mocked-endpoint-client' { - declare module.exports: any; -} - -declare module 'mockttp/dist/client/mockttp-client' { - declare module.exports: any; -} - -declare module 'mockttp/dist/main-browser' { - declare module.exports: any; -} - -declare module 'mockttp/dist/main' { - declare module.exports: any; -} - -declare module 'mockttp/dist/mockttp' { - declare module.exports: any; -} - -declare module 'mockttp/dist/rules/base-rule-builder' { - declare module.exports: any; -} - -declare module 'mockttp/dist/rules/completion-checkers' { - declare module.exports: any; -} - -declare module 'mockttp/dist/rules/matchers' { - declare module.exports: any; -} - -declare module 'mockttp/dist/rules/requests/request-handlers' { - declare module.exports: any; -} - -declare module 'mockttp/dist/rules/requests/request-rule-builder' { - declare module.exports: any; -} - -declare module 'mockttp/dist/rules/requests/request-rule' { - declare module.exports: any; -} - -declare module 'mockttp/dist/rules/rule-serialization' { - declare module.exports: any; -} - -declare module 'mockttp/dist/rules/websockets/websocket-handlers' { - declare module.exports: any; -} - -declare module 'mockttp/dist/rules/websockets/websocket-rule-builder' { - declare module.exports: any; -} - -declare module 'mockttp/dist/rules/websockets/websocket-rule' { - declare module.exports: any; -} - -declare module 'mockttp/dist/server/http-combo-server' { - declare module.exports: any; -} - -declare module 'mockttp/dist/server/mocked-endpoint' { - declare module.exports: any; -} - -declare module 'mockttp/dist/server/mockttp-server' { - declare module.exports: any; -} - -declare module 'mockttp/dist/standalone/mockttp-standalone' { - declare module.exports: any; -} - -declare module 'mockttp/dist/standalone/standalone-bin' { - declare module.exports: any; -} - -declare module 'mockttp/dist/standalone/standalone-model' { - declare module.exports: any; -} - -declare module 'mockttp/dist/types' { - declare module.exports: any; -} - -declare module 'mockttp/dist/util/destroyable-server' { - declare module.exports: any; -} - -declare module 'mockttp/dist/util/fs' { - declare module.exports: any; -} - -declare module 'mockttp/dist/util/normalize-url' { - declare module.exports: any; -} - -declare module 'mockttp/dist/util/promise' { - declare module.exports: any; -} - -declare module 'mockttp/dist/util/request-utils' { - declare module.exports: any; -} - -declare module 'mockttp/dist/util/serialization' { - declare module.exports: any; -} - -declare module 'mockttp/dist/util/socket-util' { - declare module.exports: any; -} - -declare module 'mockttp/dist/util/tls' { - declare module.exports: any; -} - -declare module 'mockttp/dist/util/type-utils' { - declare module.exports: any; -} - -declare module 'mockttp/dist/util/util' { - declare module.exports: any; -} - -declare module 'mockttp/docs/runkitExample' { - declare module.exports: any; -} - -// Filename aliases -declare module 'mockttp/dist/client/introspection-query.js' { - declare module.exports: $Exports<'mockttp/dist/client/introspection-query'>; -} -declare module 'mockttp/dist/client/mocked-endpoint-client.js' { - declare module.exports: $Exports<'mockttp/dist/client/mocked-endpoint-client'>; -} -declare module 'mockttp/dist/client/mockttp-client.js' { - declare module.exports: $Exports<'mockttp/dist/client/mockttp-client'>; -} -declare module 'mockttp/dist/main-browser.js' { - declare module.exports: $Exports<'mockttp/dist/main-browser'>; -} -declare module 'mockttp/dist/main.js' { - declare module.exports: $Exports<'mockttp/dist/main'>; -} -declare module 'mockttp/dist/mockttp.js' { - declare module.exports: $Exports<'mockttp/dist/mockttp'>; -} -declare module 'mockttp/dist/rules/base-rule-builder.js' { - declare module.exports: $Exports<'mockttp/dist/rules/base-rule-builder'>; -} -declare module 'mockttp/dist/rules/completion-checkers.js' { - declare module.exports: $Exports<'mockttp/dist/rules/completion-checkers'>; -} -declare module 'mockttp/dist/rules/matchers.js' { - declare module.exports: $Exports<'mockttp/dist/rules/matchers'>; -} -declare module 'mockttp/dist/rules/requests/request-handlers.js' { - declare module.exports: $Exports<'mockttp/dist/rules/requests/request-handlers'>; -} -declare module 'mockttp/dist/rules/requests/request-rule-builder.js' { - declare module.exports: $Exports<'mockttp/dist/rules/requests/request-rule-builder'>; -} -declare module 'mockttp/dist/rules/requests/request-rule.js' { - declare module.exports: $Exports<'mockttp/dist/rules/requests/request-rule'>; -} -declare module 'mockttp/dist/rules/rule-serialization.js' { - declare module.exports: $Exports<'mockttp/dist/rules/rule-serialization'>; -} -declare module 'mockttp/dist/rules/websockets/websocket-handlers.js' { - declare module.exports: $Exports<'mockttp/dist/rules/websockets/websocket-handlers'>; -} -declare module 'mockttp/dist/rules/websockets/websocket-rule-builder.js' { - declare module.exports: $Exports<'mockttp/dist/rules/websockets/websocket-rule-builder'>; -} -declare module 'mockttp/dist/rules/websockets/websocket-rule.js' { - declare module.exports: $Exports<'mockttp/dist/rules/websockets/websocket-rule'>; -} -declare module 'mockttp/dist/server/http-combo-server.js' { - declare module.exports: $Exports<'mockttp/dist/server/http-combo-server'>; -} -declare module 'mockttp/dist/server/mocked-endpoint.js' { - declare module.exports: $Exports<'mockttp/dist/server/mocked-endpoint'>; -} -declare module 'mockttp/dist/server/mockttp-server.js' { - declare module.exports: $Exports<'mockttp/dist/server/mockttp-server'>; -} -declare module 'mockttp/dist/standalone/mockttp-standalone.js' { - declare module.exports: $Exports<'mockttp/dist/standalone/mockttp-standalone'>; -} -declare module 'mockttp/dist/standalone/standalone-bin.js' { - declare module.exports: $Exports<'mockttp/dist/standalone/standalone-bin'>; -} -declare module 'mockttp/dist/standalone/standalone-model.js' { - declare module.exports: $Exports<'mockttp/dist/standalone/standalone-model'>; -} -declare module 'mockttp/dist/types.js' { - declare module.exports: $Exports<'mockttp/dist/types'>; -} -declare module 'mockttp/dist/util/destroyable-server.js' { - declare module.exports: $Exports<'mockttp/dist/util/destroyable-server'>; -} -declare module 'mockttp/dist/util/fs.js' { - declare module.exports: $Exports<'mockttp/dist/util/fs'>; -} -declare module 'mockttp/dist/util/normalize-url.js' { - declare module.exports: $Exports<'mockttp/dist/util/normalize-url'>; -} -declare module 'mockttp/dist/util/promise.js' { - declare module.exports: $Exports<'mockttp/dist/util/promise'>; -} -declare module 'mockttp/dist/util/request-utils.js' { - declare module.exports: $Exports<'mockttp/dist/util/request-utils'>; -} -declare module 'mockttp/dist/util/serialization.js' { - declare module.exports: $Exports<'mockttp/dist/util/serialization'>; -} -declare module 'mockttp/dist/util/socket-util.js' { - declare module.exports: $Exports<'mockttp/dist/util/socket-util'>; -} -declare module 'mockttp/dist/util/tls.js' { - declare module.exports: $Exports<'mockttp/dist/util/tls'>; -} -declare module 'mockttp/dist/util/type-utils.js' { - declare module.exports: $Exports<'mockttp/dist/util/type-utils'>; -} -declare module 'mockttp/dist/util/util.js' { - declare module.exports: $Exports<'mockttp/dist/util/util'>; -} -declare module 'mockttp/docs/runkitExample.js' { - declare module.exports: $Exports<'mockttp/docs/runkitExample'>; -} diff --git a/web3.js/flow-typed/npm/mz_vx.x.x.js b/web3.js/flow-typed/npm/mz_vx.x.x.js deleted file mode 100644 index aadd70d977..0000000000 --- a/web3.js/flow-typed/npm/mz_vx.x.x.js +++ /dev/null @@ -1,73 +0,0 @@ -// flow-typed signature: 13be1c0af46f0b45a9b2f67afe924e06 -// flow-typed version: <>/mz_v^2.7.0/flow_v0.130.0 - -/** - * This is an autogenerated libdef stub for: - * - * 'mz' - * - * Fill this stub out by replacing all the `any` types. - * - * Once filled out, we encourage you to share your work with the - * community by sending a pull request to: - * https://github.com/flowtype/flow-typed - */ - -declare module 'mz' { - declare module.exports: any; -} - -/** - * We include stubs for each file inside this npm package in case you need to - * require those files directly. Feel free to delete any files that aren't - * needed. - */ -declare module 'mz/child_process' { - declare module.exports: any; -} - -declare module 'mz/crypto' { - declare module.exports: any; -} - -declare module 'mz/dns' { - declare module.exports: any; -} - -declare module 'mz/fs' { - declare module.exports: any; -} - -declare module 'mz/readline' { - declare module.exports: any; -} - -declare module 'mz/zlib' { - declare module.exports: any; -} - -// Filename aliases -declare module 'mz/child_process.js' { - declare module.exports: $Exports<'mz/child_process'>; -} -declare module 'mz/crypto.js' { - declare module.exports: $Exports<'mz/crypto'>; -} -declare module 'mz/dns.js' { - declare module.exports: $Exports<'mz/dns'>; -} -declare module 'mz/fs.js' { - declare module.exports: $Exports<'mz/fs'>; -} -declare module 'mz/index' { - declare module.exports: $Exports<'mz'>; -} -declare module 'mz/index.js' { - declare module.exports: $Exports<'mz'>; -} -declare module 'mz/readline.js' { - declare module.exports: $Exports<'mz/readline'>; -} -declare module 'mz/zlib.js' { - declare module.exports: $Exports<'mz/zlib'>; -} diff --git a/web3.js/flow-typed/npm/node-fetch_v2.x.x.js b/web3.js/flow-typed/npm/node-fetch_v2.x.x.js deleted file mode 100644 index 3f37f21b73..0000000000 --- a/web3.js/flow-typed/npm/node-fetch_v2.x.x.js +++ /dev/null @@ -1,133 +0,0 @@ -// flow-typed signature: 800c99f4687ac083d3ed2dd6b9ee9457 -// flow-typed version: 711a5f887a/node-fetch_v2.x.x/flow_>=v0.104.x - -declare module 'node-fetch' { - import type http from 'http'; - import type https from 'https'; - import type { URL } from 'url'; - import type { Readable } from 'stream'; - - declare export type AbortSignal = { - +aborted: boolean; - +onabort: (event?: { ... }) => void; - - +addEventListener: (name: string, cb: () => mixed) => void; - +removeEventListener: (name: string, cb: () => mixed) => void; - +dispatchEvent: (event: { ... }) => void; - ..., - } - - declare export class Request mixins Body { - constructor(input: string | { href: string, ... } | Request, init?: RequestInit): this; - context: RequestContext; - headers: Headers; - method: string; - redirect: RequestRedirect; - referrer: string; - url: string; - - // node-fetch extensions - agent: http.Agent | https.Agent; - compress: boolean; - counter: number; - follow: number; - hostname: string; - port: number; - protocol: string; - size: number; - timeout: number; - } - - declare type HeaderObject = { [index: string]: string, ... } - - declare type RequestInit = {| - body?: BodyInit, - headers?: HeaderObject, - method?: string, - redirect?: RequestRedirect, - signal?: AbortSignal | null, - - // node-fetch extensions - agent?: (URL => (http.Agent | https.Agent)) | http.Agent | https.Agent | null; - compress?: boolean, - follow?: number, - size?: number, - timeout?: number, - |}; - - declare export interface FetchError extends Error { - name: 'FetchError'; - type: string; - code: ?number; - errno: ?number; - } - - declare export interface AbortError extends Error { - name: 'AbortError'; - type: 'aborted'; - } - - declare type RequestContext = - 'audio' | 'beacon' | 'cspreport' | 'download' | 'embed' | - 'eventsource' | 'favicon' | 'fetch' | 'font' | 'form' | 'frame' | - 'hyperlink' | 'iframe' | 'image' | 'imageset' | 'import' | - 'internal' | 'location' | 'manifest' | 'object' | 'ping' | 'plugin' | - 'prefetch' | 'script' | 'serviceworker' | 'sharedworker' | - 'subresource' | 'style' | 'track' | 'video' | 'worker' | - 'xmlhttprequest' | 'xslt'; - declare type RequestRedirect = 'error' | 'follow' | 'manual'; - - declare export class Headers { - append(name: string, value: string): void; - delete(name: string): void; - forEach(callback: (value: string, name: string) => void): void; - get(name: string): string; - getAll(name: string): Array; - has(name: string): boolean; - raw(): { [k: string]: string[], ... }; - set(name: string, value: string): void; - } - - declare export class Body { - buffer(): Promise; - json(): Promise; - json(): Promise; - text(): Promise; - body: stream$Readable; - bodyUsed: boolean; - } - - declare export class Response mixins Body { - constructor(body?: BodyInit, init?: ResponseInit): this; - clone(): Response; - error(): Response; - redirect(url: string, status: number): Response; - headers: Headers; - ok: boolean; - status: number; - statusText: string; - size: number; - timeout: number; - type: ResponseType; - url: string; - } - - declare type ResponseType = - | 'basic' - | 'cors' - | 'default' - | 'error' - | 'opaque' - | 'opaqueredirect'; - - declare interface ResponseInit { - headers?: HeaderInit, - status: number, - statusText?: string, - } - - declare type HeaderInit = Headers | Array; - declare type BodyInit = string | null | Buffer | Blob | Readable; - - declare export default function fetch(url: string | Request, init?: RequestInit): Promise -} diff --git a/web3.js/flow-typed/npm/rpc-websockets_vx.x.x.js b/web3.js/flow-typed/npm/rpc-websockets_vx.x.x.js deleted file mode 100644 index dfdcebe135..0000000000 --- a/web3.js/flow-typed/npm/rpc-websockets_vx.x.x.js +++ /dev/null @@ -1,150 +0,0 @@ -// flow-typed signature: f1593e42a1e3a50eb251415b72e1305b -// flow-typed version: <>/rpc-websockets_v^7.4.2/flow_v0.130.0 - -/** - * This is an autogenerated libdef stub for: - * - * 'rpc-websockets' - * - * Fill this stub out by replacing all the `any` types. - * - * Once filled out, we encourage you to share your work with the - * community by sending a pull request to: - * https://github.com/flowtype/flow-typed - */ - -declare module 'rpc-websockets' { - declare module.exports: any; -} - -/** - * We include stubs for each file inside this npm package in case you need to - * require those files directly. Feel free to delete any files that aren't - * needed. - */ -declare module 'rpc-websockets/build-ts/index.browser' { - declare module.exports: any; -} - -declare module 'rpc-websockets/build-ts' { - declare module.exports: any; -} - -declare module 'rpc-websockets/build-ts/lib/client' { - declare module.exports: any; -} - -declare module 'rpc-websockets/build-ts/lib/client/client.types' { - declare module.exports: any; -} - -declare module 'rpc-websockets/build-ts/lib/client/websocket.browser' { - declare module.exports: any; -} - -declare module 'rpc-websockets/build-ts/lib/client/websocket' { - declare module.exports: any; -} - -declare module 'rpc-websockets/build-ts/lib/server' { - declare module.exports: any; -} - -declare module 'rpc-websockets/build-ts/lib/utils' { - declare module.exports: any; -} - -declare module 'rpc-websockets/dist/index.browser-bundle' { - declare module.exports: any; -} - -declare module 'rpc-websockets/dist/index.browser' { - declare module.exports: any; -} - -declare module 'rpc-websockets/dist' { - declare module.exports: any; -} - -declare module 'rpc-websockets/dist/lib/client' { - declare module.exports: any; -} - -declare module 'rpc-websockets/dist/lib/client/client.types' { - declare module.exports: any; -} - -declare module 'rpc-websockets/dist/lib/client/websocket.browser' { - declare module.exports: any; -} - -declare module 'rpc-websockets/dist/lib/client/websocket' { - declare module.exports: any; -} - -declare module 'rpc-websockets/dist/lib/server' { - declare module.exports: any; -} - -declare module 'rpc-websockets/dist/lib/utils' { - declare module.exports: any; -} - -// Filename aliases -declare module 'rpc-websockets/build-ts/index.browser.js' { - declare module.exports: $Exports<'rpc-websockets/build-ts/index.browser'>; -} -declare module 'rpc-websockets/build-ts/index' { - declare module.exports: $Exports<'rpc-websockets/build-ts'>; -} -declare module 'rpc-websockets/build-ts/index.js' { - declare module.exports: $Exports<'rpc-websockets/build-ts'>; -} -declare module 'rpc-websockets/build-ts/lib/client.js' { - declare module.exports: $Exports<'rpc-websockets/build-ts/lib/client'>; -} -declare module 'rpc-websockets/build-ts/lib/client/client.types.js' { - declare module.exports: $Exports<'rpc-websockets/build-ts/lib/client/client.types'>; -} -declare module 'rpc-websockets/build-ts/lib/client/websocket.browser.js' { - declare module.exports: $Exports<'rpc-websockets/build-ts/lib/client/websocket.browser'>; -} -declare module 'rpc-websockets/build-ts/lib/client/websocket.js' { - declare module.exports: $Exports<'rpc-websockets/build-ts/lib/client/websocket'>; -} -declare module 'rpc-websockets/build-ts/lib/server.js' { - declare module.exports: $Exports<'rpc-websockets/build-ts/lib/server'>; -} -declare module 'rpc-websockets/build-ts/lib/utils.js' { - declare module.exports: $Exports<'rpc-websockets/build-ts/lib/utils'>; -} -declare module 'rpc-websockets/dist/index.browser-bundle.js' { - declare module.exports: $Exports<'rpc-websockets/dist/index.browser-bundle'>; -} -declare module 'rpc-websockets/dist/index.browser.js' { - declare module.exports: $Exports<'rpc-websockets/dist/index.browser'>; -} -declare module 'rpc-websockets/dist/index' { - declare module.exports: $Exports<'rpc-websockets/dist'>; -} -declare module 'rpc-websockets/dist/index.js' { - declare module.exports: $Exports<'rpc-websockets/dist'>; -} -declare module 'rpc-websockets/dist/lib/client.js' { - declare module.exports: $Exports<'rpc-websockets/dist/lib/client'>; -} -declare module 'rpc-websockets/dist/lib/client/client.types.js' { - declare module.exports: $Exports<'rpc-websockets/dist/lib/client/client.types'>; -} -declare module 'rpc-websockets/dist/lib/client/websocket.browser.js' { - declare module.exports: $Exports<'rpc-websockets/dist/lib/client/websocket.browser'>; -} -declare module 'rpc-websockets/dist/lib/client/websocket.js' { - declare module.exports: $Exports<'rpc-websockets/dist/lib/client/websocket'>; -} -declare module 'rpc-websockets/dist/lib/server.js' { - declare module.exports: $Exports<'rpc-websockets/dist/lib/server'>; -} -declare module 'rpc-websockets/dist/lib/utils.js' { - declare module.exports: $Exports<'rpc-websockets/dist/lib/utils'>; -} diff --git a/web3.js/flow-typed/npm/secp256k1_vx.x.x.js b/web3.js/flow-typed/npm/secp256k1_vx.x.x.js deleted file mode 100644 index 389c5887cb..0000000000 --- a/web3.js/flow-typed/npm/secp256k1_vx.x.x.js +++ /dev/null @@ -1,62 +0,0 @@ -// flow-typed signature: 010ed80dfa77343a07cd101a9453f460 -// flow-typed version: <>/secp256k1_v^4.0.2/flow_v0.130.0 - -/** - * This is an autogenerated libdef stub for: - * - * 'secp256k1' - * - * Fill this stub out by replacing all the `any` types. - * - * Once filled out, we encourage you to share your work with the - * community by sending a pull request to: - * https://github.com/flowtype/flow-typed - */ - -declare module 'secp256k1' { - declare module.exports: any; -} - -/** - * We include stubs for each file inside this npm package in case you need to - * require those files directly. Feel free to delete any files that aren't - * needed. - */ -declare module 'secp256k1/bindings' { - declare module.exports: any; -} - -declare module 'secp256k1/elliptic' { - declare module.exports: any; -} - -declare module 'secp256k1/lib/elliptic' { - declare module.exports: any; -} - -declare module 'secp256k1/lib' { - declare module.exports: any; -} - -// Filename aliases -declare module 'secp256k1/bindings.js' { - declare module.exports: $Exports<'secp256k1/bindings'>; -} -declare module 'secp256k1/elliptic.js' { - declare module.exports: $Exports<'secp256k1/elliptic'>; -} -declare module 'secp256k1/index' { - declare module.exports: $Exports<'secp256k1'>; -} -declare module 'secp256k1/index.js' { - declare module.exports: $Exports<'secp256k1'>; -} -declare module 'secp256k1/lib/elliptic.js' { - declare module.exports: $Exports<'secp256k1/lib/elliptic'>; -} -declare module 'secp256k1/lib/index' { - declare module.exports: $Exports<'secp256k1/lib'>; -} -declare module 'secp256k1/lib/index.js' { - declare module.exports: $Exports<'secp256k1/lib'>; -} diff --git a/web3.js/flow-typed/npm/sinon_vx.x.x.js b/web3.js/flow-typed/npm/sinon_vx.x.x.js deleted file mode 100644 index 877d495832..0000000000 --- a/web3.js/flow-typed/npm/sinon_vx.x.x.js +++ /dev/null @@ -1,340 +0,0 @@ -// flow-typed signature: be25eb3acc001250afea0eb7dacd26f6 -// flow-typed version: <>/sinon_v^9.2.4/flow_v0.130.0 - -/** - * This is an autogenerated libdef stub for: - * - * 'sinon' - * - * Fill this stub out by replacing all the `any` types. - * - * Once filled out, we encourage you to share your work with the - * community by sending a pull request to: - * https://github.com/flowtype/flow-typed - */ - -declare module 'sinon' { - declare module.exports: any; -} - -/** - * We include stubs for each file inside this npm package in case you need to - * require those files directly. Feel free to delete any files that aren't - * needed. - */ -declare module 'sinon/lib/sinon-esm' { - declare module.exports: any; -} - -declare module 'sinon/lib/sinon' { - declare module.exports: any; -} - -declare module 'sinon/lib/sinon/assert' { - declare module.exports: any; -} - -declare module 'sinon/lib/sinon/behavior' { - declare module.exports: any; -} - -declare module 'sinon/lib/sinon/blob' { - declare module.exports: any; -} - -declare module 'sinon/lib/sinon/collect-own-methods' { - declare module.exports: any; -} - -declare module 'sinon/lib/sinon/color' { - declare module.exports: any; -} - -declare module 'sinon/lib/sinon/create-sandbox' { - declare module.exports: any; -} - -declare module 'sinon/lib/sinon/default-behaviors' { - declare module.exports: any; -} - -declare module 'sinon/lib/sinon/fake' { - declare module.exports: any; -} - -declare module 'sinon/lib/sinon/mock-expectation' { - declare module.exports: any; -} - -declare module 'sinon/lib/sinon/mock' { - declare module.exports: any; -} - -declare module 'sinon/lib/sinon/proxy-call-util' { - declare module.exports: any; -} - -declare module 'sinon/lib/sinon/proxy-call' { - declare module.exports: any; -} - -declare module 'sinon/lib/sinon/proxy-invoke' { - declare module.exports: any; -} - -declare module 'sinon/lib/sinon/proxy' { - declare module.exports: any; -} - -declare module 'sinon/lib/sinon/restore-object' { - declare module.exports: any; -} - -declare module 'sinon/lib/sinon/sandbox' { - declare module.exports: any; -} - -declare module 'sinon/lib/sinon/spy-formatters' { - declare module.exports: any; -} - -declare module 'sinon/lib/sinon/spy' { - declare module.exports: any; -} - -declare module 'sinon/lib/sinon/stub' { - declare module.exports: any; -} - -declare module 'sinon/lib/sinon/throw-on-falsy-object' { - declare module.exports: any; -} - -declare module 'sinon/lib/sinon/util/core/default-config' { - declare module.exports: any; -} - -declare module 'sinon/lib/sinon/util/core/export-async-behaviors' { - declare module.exports: any; -} - -declare module 'sinon/lib/sinon/util/core/extend' { - declare module.exports: any; -} - -declare module 'sinon/lib/sinon/util/core/format' { - declare module.exports: any; -} - -declare module 'sinon/lib/sinon/util/core/function-to-string' { - declare module.exports: any; -} - -declare module 'sinon/lib/sinon/util/core/get-config' { - declare module.exports: any; -} - -declare module 'sinon/lib/sinon/util/core/get-next-tick' { - declare module.exports: any; -} - -declare module 'sinon/lib/sinon/util/core/get-property-descriptor' { - declare module.exports: any; -} - -declare module 'sinon/lib/sinon/util/core/is-es-module' { - declare module.exports: any; -} - -declare module 'sinon/lib/sinon/util/core/is-non-existent-property' { - declare module.exports: any; -} - -declare module 'sinon/lib/sinon/util/core/is-property-configurable' { - declare module.exports: any; -} - -declare module 'sinon/lib/sinon/util/core/is-restorable' { - declare module.exports: any; -} - -declare module 'sinon/lib/sinon/util/core/next-tick' { - declare module.exports: any; -} - -declare module 'sinon/lib/sinon/util/core/restore' { - declare module.exports: any; -} - -declare module 'sinon/lib/sinon/util/core/times-in-words' { - declare module.exports: any; -} - -declare module 'sinon/lib/sinon/util/core/use-promise-library' { - declare module.exports: any; -} - -declare module 'sinon/lib/sinon/util/core/walk-object' { - declare module.exports: any; -} - -declare module 'sinon/lib/sinon/util/core/walk' { - declare module.exports: any; -} - -declare module 'sinon/lib/sinon/util/core/wrap-method' { - declare module.exports: any; -} - -declare module 'sinon/lib/sinon/util/fake-timers' { - declare module.exports: any; -} - -declare module 'sinon/pkg/sinon-esm' { - declare module.exports: any; -} - -declare module 'sinon/pkg/sinon-no-sourcemaps' { - declare module.exports: any; -} - -declare module 'sinon/pkg/sinon' { - declare module.exports: any; -} - -// Filename aliases -declare module 'sinon/lib/sinon-esm.js' { - declare module.exports: $Exports<'sinon/lib/sinon-esm'>; -} -declare module 'sinon/lib/sinon.js' { - declare module.exports: $Exports<'sinon/lib/sinon'>; -} -declare module 'sinon/lib/sinon/assert.js' { - declare module.exports: $Exports<'sinon/lib/sinon/assert'>; -} -declare module 'sinon/lib/sinon/behavior.js' { - declare module.exports: $Exports<'sinon/lib/sinon/behavior'>; -} -declare module 'sinon/lib/sinon/blob.js' { - declare module.exports: $Exports<'sinon/lib/sinon/blob'>; -} -declare module 'sinon/lib/sinon/collect-own-methods.js' { - declare module.exports: $Exports<'sinon/lib/sinon/collect-own-methods'>; -} -declare module 'sinon/lib/sinon/color.js' { - declare module.exports: $Exports<'sinon/lib/sinon/color'>; -} -declare module 'sinon/lib/sinon/create-sandbox.js' { - declare module.exports: $Exports<'sinon/lib/sinon/create-sandbox'>; -} -declare module 'sinon/lib/sinon/default-behaviors.js' { - declare module.exports: $Exports<'sinon/lib/sinon/default-behaviors'>; -} -declare module 'sinon/lib/sinon/fake.js' { - declare module.exports: $Exports<'sinon/lib/sinon/fake'>; -} -declare module 'sinon/lib/sinon/mock-expectation.js' { - declare module.exports: $Exports<'sinon/lib/sinon/mock-expectation'>; -} -declare module 'sinon/lib/sinon/mock.js' { - declare module.exports: $Exports<'sinon/lib/sinon/mock'>; -} -declare module 'sinon/lib/sinon/proxy-call-util.js' { - declare module.exports: $Exports<'sinon/lib/sinon/proxy-call-util'>; -} -declare module 'sinon/lib/sinon/proxy-call.js' { - declare module.exports: $Exports<'sinon/lib/sinon/proxy-call'>; -} -declare module 'sinon/lib/sinon/proxy-invoke.js' { - declare module.exports: $Exports<'sinon/lib/sinon/proxy-invoke'>; -} -declare module 'sinon/lib/sinon/proxy.js' { - declare module.exports: $Exports<'sinon/lib/sinon/proxy'>; -} -declare module 'sinon/lib/sinon/restore-object.js' { - declare module.exports: $Exports<'sinon/lib/sinon/restore-object'>; -} -declare module 'sinon/lib/sinon/sandbox.js' { - declare module.exports: $Exports<'sinon/lib/sinon/sandbox'>; -} -declare module 'sinon/lib/sinon/spy-formatters.js' { - declare module.exports: $Exports<'sinon/lib/sinon/spy-formatters'>; -} -declare module 'sinon/lib/sinon/spy.js' { - declare module.exports: $Exports<'sinon/lib/sinon/spy'>; -} -declare module 'sinon/lib/sinon/stub.js' { - declare module.exports: $Exports<'sinon/lib/sinon/stub'>; -} -declare module 'sinon/lib/sinon/throw-on-falsy-object.js' { - declare module.exports: $Exports<'sinon/lib/sinon/throw-on-falsy-object'>; -} -declare module 'sinon/lib/sinon/util/core/default-config.js' { - declare module.exports: $Exports<'sinon/lib/sinon/util/core/default-config'>; -} -declare module 'sinon/lib/sinon/util/core/export-async-behaviors.js' { - declare module.exports: $Exports<'sinon/lib/sinon/util/core/export-async-behaviors'>; -} -declare module 'sinon/lib/sinon/util/core/extend.js' { - declare module.exports: $Exports<'sinon/lib/sinon/util/core/extend'>; -} -declare module 'sinon/lib/sinon/util/core/format.js' { - declare module.exports: $Exports<'sinon/lib/sinon/util/core/format'>; -} -declare module 'sinon/lib/sinon/util/core/function-to-string.js' { - declare module.exports: $Exports<'sinon/lib/sinon/util/core/function-to-string'>; -} -declare module 'sinon/lib/sinon/util/core/get-config.js' { - declare module.exports: $Exports<'sinon/lib/sinon/util/core/get-config'>; -} -declare module 'sinon/lib/sinon/util/core/get-next-tick.js' { - declare module.exports: $Exports<'sinon/lib/sinon/util/core/get-next-tick'>; -} -declare module 'sinon/lib/sinon/util/core/get-property-descriptor.js' { - declare module.exports: $Exports<'sinon/lib/sinon/util/core/get-property-descriptor'>; -} -declare module 'sinon/lib/sinon/util/core/is-es-module.js' { - declare module.exports: $Exports<'sinon/lib/sinon/util/core/is-es-module'>; -} -declare module 'sinon/lib/sinon/util/core/is-non-existent-property.js' { - declare module.exports: $Exports<'sinon/lib/sinon/util/core/is-non-existent-property'>; -} -declare module 'sinon/lib/sinon/util/core/is-property-configurable.js' { - declare module.exports: $Exports<'sinon/lib/sinon/util/core/is-property-configurable'>; -} -declare module 'sinon/lib/sinon/util/core/is-restorable.js' { - declare module.exports: $Exports<'sinon/lib/sinon/util/core/is-restorable'>; -} -declare module 'sinon/lib/sinon/util/core/next-tick.js' { - declare module.exports: $Exports<'sinon/lib/sinon/util/core/next-tick'>; -} -declare module 'sinon/lib/sinon/util/core/restore.js' { - declare module.exports: $Exports<'sinon/lib/sinon/util/core/restore'>; -} -declare module 'sinon/lib/sinon/util/core/times-in-words.js' { - declare module.exports: $Exports<'sinon/lib/sinon/util/core/times-in-words'>; -} -declare module 'sinon/lib/sinon/util/core/use-promise-library.js' { - declare module.exports: $Exports<'sinon/lib/sinon/util/core/use-promise-library'>; -} -declare module 'sinon/lib/sinon/util/core/walk-object.js' { - declare module.exports: $Exports<'sinon/lib/sinon/util/core/walk-object'>; -} -declare module 'sinon/lib/sinon/util/core/walk.js' { - declare module.exports: $Exports<'sinon/lib/sinon/util/core/walk'>; -} -declare module 'sinon/lib/sinon/util/core/wrap-method.js' { - declare module.exports: $Exports<'sinon/lib/sinon/util/core/wrap-method'>; -} -declare module 'sinon/lib/sinon/util/fake-timers.js' { - declare module.exports: $Exports<'sinon/lib/sinon/util/fake-timers'>; -} -declare module 'sinon/pkg/sinon-esm.js' { - declare module.exports: $Exports<'sinon/pkg/sinon-esm'>; -} -declare module 'sinon/pkg/sinon-no-sourcemaps.js' { - declare module.exports: $Exports<'sinon/pkg/sinon-no-sourcemaps'>; -} -declare module 'sinon/pkg/sinon.js' { - declare module.exports: $Exports<'sinon/pkg/sinon'>; -} diff --git a/web3.js/flow-typed/npm/superstruct_vx.x.x.js b/web3.js/flow-typed/npm/superstruct_vx.x.x.js deleted file mode 100644 index 079264dba2..0000000000 --- a/web3.js/flow-typed/npm/superstruct_vx.x.x.js +++ /dev/null @@ -1,56 +0,0 @@ -// flow-typed signature: 93e1c7b898500d4a0bfe05d7e7bdd0b9 -// flow-typed version: <>/superstruct_v^0.8.3/flow_v0.130.0 - -/** - * This is an autogenerated libdef stub for: - * - * 'superstruct' - * - * Fill this stub out by replacing all the `any` types. - * - * Once filled out, we encourage you to share your work with the - * community by sending a pull request to: - * https://github.com/flowtype/flow-typed - */ - -declare module 'superstruct' { - declare module.exports: any; -} - -/** - * We include stubs for each file inside this npm package in case you need to - * require those files directly. Feel free to delete any files that aren't - * needed. - */ -declare module 'superstruct/lib/index.es' { - declare module.exports: any; -} - -declare module 'superstruct/lib' { - declare module.exports: any; -} - -declare module 'superstruct/umd/superstruct' { - declare module.exports: any; -} - -declare module 'superstruct/umd/superstruct.min' { - declare module.exports: any; -} - -// Filename aliases -declare module 'superstruct/lib/index.es.js' { - declare module.exports: $Exports<'superstruct/lib/index.es'>; -} -declare module 'superstruct/lib/index' { - declare module.exports: $Exports<'superstruct/lib'>; -} -declare module 'superstruct/lib/index.js' { - declare module.exports: $Exports<'superstruct/lib'>; -} -declare module 'superstruct/umd/superstruct.js' { - declare module.exports: $Exports<'superstruct/umd/superstruct'>; -} -declare module 'superstruct/umd/superstruct.min.js' { - declare module.exports: $Exports<'superstruct/umd/superstruct.min'>; -} diff --git a/web3.js/flow-typed/npm/tweetnacl_vx.x.x.js b/web3.js/flow-typed/npm/tweetnacl_vx.x.x.js deleted file mode 100644 index 55012a5051..0000000000 --- a/web3.js/flow-typed/npm/tweetnacl_vx.x.x.js +++ /dev/null @@ -1,53 +0,0 @@ -// flow-typed signature: 607d90b805d229d69250b382713c4087 -// flow-typed version: <>/tweetnacl_v^1.0.0/flow_v0.130.0 - -/** - * This is an autogenerated libdef stub for: - * - * 'tweetnacl' - * - * Fill this stub out by replacing all the `any` types. - * - * Once filled out, we encourage you to share your work with the - * community by sending a pull request to: - * https://github.com/flowtype/flow-typed - */ - -declare module 'tweetnacl' { - declare module.exports: any; -} - -/** - * We include stubs for each file inside this npm package in case you need to - * require those files directly. Feel free to delete any files that aren't - * needed. - */ -declare module 'tweetnacl/nacl-fast' { - declare module.exports: any; -} - -declare module 'tweetnacl/nacl-fast.min' { - declare module.exports: any; -} - -declare module 'tweetnacl/nacl' { - declare module.exports: any; -} - -declare module 'tweetnacl/nacl.min' { - declare module.exports: any; -} - -// Filename aliases -declare module 'tweetnacl/nacl-fast.js' { - declare module.exports: $Exports<'tweetnacl/nacl-fast'>; -} -declare module 'tweetnacl/nacl-fast.min.js' { - declare module.exports: $Exports<'tweetnacl/nacl-fast.min'>; -} -declare module 'tweetnacl/nacl.js' { - declare module.exports: $Exports<'tweetnacl/nacl'>; -} -declare module 'tweetnacl/nacl.min.js' { - declare module.exports: $Exports<'tweetnacl/nacl.min'>; -} diff --git a/web3.js/module.d.ts b/web3.js/module.d.ts deleted file mode 100644 index dfcca026f5..0000000000 --- a/web3.js/module.d.ts +++ /dev/null @@ -1,1132 +0,0 @@ -declare module '@solana/web3.js' { - import {Buffer} from 'buffer'; - import * as BufferLayout from 'buffer-layout'; - - // === src/publickey.js === - export const MAX_SEED_LENGTH: number; - export type PublicKeyNonce = [PublicKey, number]; - export class PublicKey { - constructor(value: number | string | Buffer | Uint8Array | Array); - static isPublicKey(o: object): boolean; - static createWithSeed( - fromPublicKey: PublicKey, - seed: string, - programId: PublicKey, - ): Promise; - static createProgramAddress( - seeds: Array, - programId: PublicKey, - ): Promise; - static findProgramAddress( - seeds: Array, - programId: PublicKey, - ): Promise; - equals(publickey: PublicKey): boolean; - toBase58(): string; - toBuffer(): Buffer; - toString(): string; - } - - // === src/blockhash.js === - export type Blockhash = string; - - // === src/account.js === - export class Account { - constructor(secretKey?: Buffer | Uint8Array | Array); - publicKey: PublicKey; - secretKey: Buffer; - } - - // === src/fee-calculator.js === - export type FeeCalculator = { - lamportsPerSignature: number; - }; - - // === src/connection.js === - export type Context = { - slot: number; - }; - - export type SendOptions = { - skipPreflight?: boolean; - preflightCommitment?: Commitment; - }; - - export type ConfirmOptions = { - commitment?: Commitment; - skipPreflight?: boolean; - preflightCommitment?: Commitment; - }; - - export type ConfirmedSignaturesForAddress2Options = { - before?: TransactionSignature; - limit?: number; - }; - - export type TokenAccountsFilter = - | { - mint: PublicKey; - } - | { - programId: PublicKey; - }; - - export type RpcResponseAndContext = { - context: Context; - value: T; - }; - - export type Commitment = - | 'processed' - | 'confirmed' - | 'finalized' - | 'recent' // Deprecated as of v1.5.5 - | 'single' // Deprecated as of v1.5.5 - | 'singleGossip' // Deprecated as of v1.5.5 - | 'root' // Deprecated as of v1.5.5 - | 'max'; // Deprecated as of v1.5.5 - - export type LargestAccountsFilter = 'circulating' | 'nonCirculating'; - - export type GetLargestAccountsConfig = { - commitment?: Commitment; - filter?: LargestAccountsFilter; - }; - - export type SignatureStatusConfig = { - searchTransactionHistory: boolean; - }; - - export type TransactionConfirmationStatus = - | 'processed' - | 'confirmed' - | 'finalized'; - - export type SignatureStatus = { - slot: number; - err: TransactionError | null; - confirmations: number | null; - confirmationStatus?: TransactionConfirmationStatus; - }; - - export type ConfirmedSignatureInfo = { - signature: string; - slot: number; - err: TransactionError | null; - memo: string | null; - blockTime?: number | null; - }; - - export type BlockhashAndFeeCalculator = { - blockhash: Blockhash; - feeCalculator: FeeCalculator; - }; - - export type PublicKeyAndAccount = { - pubkey: PublicKey; - account: AccountInfo; - }; - - export type AccountInfo = { - executable: boolean; - owner: PublicKey; - lamports: number; - data: T; - rentEpoch?: number; - }; - - export type ContactInfo = { - pubkey: string; - gossip?: string; - tpu?: string; - rpc?: string; - version?: string; - }; - - export type SimulatedTransactionResponse = { - err: TransactionError | string | null; - logs: Array | null; - }; - - export type CompiledInnerInstruction = { - index: number; - instructions: CompiledInstruction[]; - }; - - export type TokenBalance = { - accountIndex: number; - mint: string; - uiTokenAmount: TokenAmount; - }; - - export type ConfirmedTransactionMeta = { - fee: number; - innerInstructions?: CompiledInnerInstruction[]; - preBalances: Array; - postBalances: Array; - logMessages?: Array; - preTokenBalances?: Array; - postTokenBalances?: Array; - err: TransactionError | null; - }; - - export type ParsedInnerInstruction = { - index: number; - instructions: (ParsedInstruction | PartiallyDecodedInstruction)[]; - }; - - export type ParsedConfirmedTransactionMeta = { - fee: number; - innerInstructions?: ParsedInnerInstruction[]; - preBalances: Array; - postBalances: Array; - logMessages?: Array; - preTokenBalances?: Array; - postTokenBalances?: Array; - err: TransactionError | null; - }; - - export type ConfirmedBlock = { - blockhash: Blockhash; - previousBlockhash: Blockhash; - parentSlot: number; - transactions: Array<{ - transaction: Transaction; - meta: ConfirmedTransactionMeta | null; - }>; - rewards: Array<{ - pubkey: string; - lamports: number; - postBalance: number | null; - rewardType: string | null; - }>; - }; - - export type PerfSample = { - slot: number; - numTransactions: number; - numSlots: number; - samplePeriodSecs: number; - }; - - export type ConfirmedTransaction = { - slot: number; - transaction: Transaction; - meta: ConfirmedTransactionMeta | null; - blockTime?: number | null; - }; - - export type ParsedMessageAccount = { - pubkey: PublicKey; - signer: boolean; - writable: boolean; - }; - - export type ParsedInstruction = { - programId: PublicKey; - program: string; - parsed: string; - }; - - export type PartiallyDecodedInstruction = { - programId: PublicKey; - accounts: Array; - data: string; - }; - - export type ParsedTransaction = { - signatures: Array; - message: { - accountKeys: ParsedMessageAccount[]; - instructions: (ParsedInstruction | PartiallyDecodedInstruction)[]; - recentBlockhash: string; - }; - }; - - export type ParsedConfirmedTransaction = { - slot: number; - transaction: ParsedTransaction; - meta: ParsedConfirmedTransactionMeta | null; - }; - - export type ParsedAccountData = { - program: string; - parsed: any; - space: number; - }; - - export type StakeActivationData = { - state: 'active' | 'inactive' | 'activating' | 'deactivating'; - active: number; - inactive: number; - }; - - export type KeyedAccountInfo = { - accountId: PublicKey; - accountInfo: AccountInfo; - }; - - export type Version = { - 'solana-core': string; - 'feature-set'?: number; - }; - - export type VoteAccountInfo = { - votePubkey: string; - nodePubkey: string; - stake: number; - commission: number; - }; - - export type SlotInfo = { - parent: number; - slot: number; - root: number; - }; - - export type TokenAmount = { - uiAmount: number | null; - decimals: number; - amount: string; - uiAmountString?: string; - }; - - export type TokenAccountBalancePair = { - address: PublicKey; - amount: string; - decimals: number; - uiAmount: number | null; - uiAmountString?: string; - }; - - export type AccountChangeCallback = ( - accountInfo: AccountInfo, - context: Context, - ) => void; - export type ProgramAccountChangeCallback = ( - keyedAccountInfo: KeyedAccountInfo, - context: Context, - ) => void; - export type SlotChangeCallback = (slotInfo: SlotInfo) => void; - export type SignatureResultCallback = ( - signatureResult: SignatureResult, - context: Context, - ) => void; - export type RootChangeCallback = (root: number) => void; - - export type TransactionError = object; - export type SignatureResult = { - err: TransactionError | null; - }; - - export type InflationGovernor = { - foundation: number; - foundationTerm: number; - initial: number; - taper: number; - terminal: number; - }; - - export type EpochInfo = { - epoch: number; - slotIndex: number; - slotsInEpoch: number; - absoluteSlot: number; - blockHeight?: number; - }; - - export type EpochSchedule = { - slotsPerEpoch: number; - leaderScheduleSlotOffset: number; - warmup: boolean; - firstNormalEpoch: number; - firstNormalSlot: number; - }; - - export type LeaderSchedule = { - [address: string]: number[]; - }; - - export type Supply = { - total: number; - circulating: number; - nonCirculating: number; - nonCirculatingAccounts: Array; - }; - - export type AccountBalancePair = { - address: PublicKey; - lamports: number; - }; - - export type VoteAccountStatus = { - current: Array; - delinquent: Array; - }; - - export class Connection { - constructor(endpoint: string, commitment?: Commitment); - commitment?: Commitment; - getAccountInfoAndContext( - publicKey: PublicKey, - commitment?: Commitment, - ): Promise | null>>; - getAccountInfo( - publicKey: PublicKey, - commitment?: Commitment, - ): Promise | null>; - getParsedAccountInfo( - publicKey: PublicKey, - commitment?: Commitment, - ): Promise< - RpcResponseAndContext | null> - >; - getStakeActivation( - publicKey: PublicKey, - commitment?: Commitment, - epoch?: number, - ): Promise; - getProgramAccounts( - programId: PublicKey, - commitment?: Commitment, - ): Promise>>; - getParsedProgramAccounts( - programId: PublicKey, - commitment?: Commitment, - ): Promise>>; - getBalanceAndContext( - publicKey: PublicKey, - commitment?: Commitment, - ): Promise>; - getBalance(publicKey: PublicKey, commitment?: Commitment): Promise; - getBlockTime(slot: number): Promise; - getMinimumLedgerSlot(): Promise; - getFirstAvailableBlock(): Promise; - getSupply(commitment?: Commitment): Promise>; - getTokenSupply( - tokenMintAddress: PublicKey, - commitment?: Commitment, - ): Promise>; - getTokenAccountBalance( - tokenAddress: PublicKey, - commitment?: Commitment, - ): Promise>; - getTokenAccountsByOwner( - ownerAddress: PublicKey, - filter: TokenAccountsFilter, - commitment?: Commitment, - ): Promise< - RpcResponseAndContext< - Array<{pubkey: PublicKey; account: AccountInfo}> - > - >; - getParsedTokenAccountsByOwner( - ownerAddress: PublicKey, - filter: TokenAccountsFilter, - commitment?: Commitment, - ): Promise< - RpcResponseAndContext< - Array<{pubkey: PublicKey; account: AccountInfo}> - > - >; - getLargestAccounts( - config?: GetLargestAccountsConfig, - ): Promise>>; - getTokenLargestAccounts( - mintAddress: PublicKey, - commitment?: Commitment, - ): Promise>>; - getClusterNodes(): Promise>; - getConfirmedBlock(slot: number): Promise; - getConfirmedTransaction( - signature: TransactionSignature, - ): Promise; - getParsedConfirmedTransaction( - signature: TransactionSignature, - ): Promise; - getConfirmedSignaturesForAddress( - address: PublicKey, - startSlot: number, - endSlot: number, - ): Promise>; - getConfirmedSignaturesForAddress2( - address: PublicKey, - options?: ConfirmedSignaturesForAddress2Options, - ): Promise>; - getVoteAccounts(commitment?: Commitment): Promise; - confirmTransaction( - signature: TransactionSignature, - commitment?: Commitment, - ): Promise>; - getSlot(commitment?: Commitment): Promise; - getSlotLeader(commitment?: Commitment): Promise; - getSignatureStatus( - signature: TransactionSignature, - config?: SignatureStatusConfig, - ): Promise>; - getSignatureStatuses( - signatures: Array, - config?: SignatureStatusConfig, - ): Promise>>; - getTransactionCount(commitment?: Commitment): Promise; - getTotalSupply(commitment?: Commitment): Promise; - getVersion(): Promise; - getInflationGovernor(commitment?: Commitment): Promise; - getLeaderSchedule(): Promise; - getEpochSchedule(): Promise; - getEpochInfo(commitment?: Commitment): Promise; - getRecentBlockhashAndContext( - commitment?: Commitment, - ): Promise>; - getRecentPerformanceSamples(limit?: number): Promise>; - getFeeCalculatorForBlockhash( - blockhash: Blockhash, - commitment?: Commitment, - ): Promise>; - getRecentBlockhash( - commitment?: Commitment, - ): Promise; - requestAirdrop( - to: PublicKey, - amount: number, - ): Promise; - sendTransaction( - transaction: Transaction, - signers: Array, - options?: SendOptions, - ): Promise; - sendEncodedTransaction( - encodedTransaction: string, - options?: SendOptions, - ): Promise; - sendRawTransaction( - wireTransaction: Buffer | Uint8Array | Array, - options?: SendOptions, - ): Promise; - simulateTransaction( - transaction: Transaction, - signers?: Array, - ): Promise>; - onAccountChange( - publickey: PublicKey, - callback: AccountChangeCallback, - commitment?: Commitment, - ): number; - removeAccountChangeListener(id: number): Promise; - onProgramAccountChange( - programId: PublicKey, - callback: ProgramAccountChangeCallback, - commitment?: Commitment, - ): number; - removeProgramAccountChangeListener(id: number): Promise; - onSlotChange(callback: SlotChangeCallback): number; - removeSlotChangeListener(id: number): Promise; - onSignature( - signature: TransactionSignature, - callback: SignatureResultCallback, - commitment?: Commitment, - ): number; - removeSignatureListener(id: number): Promise; - onRootChange(callback: RootChangeCallback): number; - removeRootChangeListener(id: number): Promise; - getMinimumBalanceForRentExemption( - dataLength: number, - commitment?: Commitment, - ): Promise; - getNonce( - nonceAccount: PublicKey, - commitment?: Commitment, - ): Promise; - getNonceAndContext( - nonceAccount: PublicKey, - commitment?: Commitment, - ): Promise>; - } - - // === src/nonce-account.js === - export class NonceAccount { - authorizedPubkey: PublicKey; - nonce: Blockhash; - feeCalculator: FeeCalculator; - static fromAccountData( - buffer: Buffer | Uint8Array | Array, - ): NonceAccount; - } - - export const NONCE_ACCOUNT_LENGTH: number; - - // === src/validator-info.js === - export const VALIDATOR_INFO_KEY: PublicKey; - export type Info = { - name: string; - website?: string; - details?: string; - keybaseUsername?: string; - }; - - export class ValidatorInfo { - key: PublicKey; - info: Info; - - constructor(key: PublicKey, info: Info); - static fromConfigData( - buffer: Buffer | Uint8Array | Array, - ): ValidatorInfo | null; - } - - // === src/sysvar.js === - export const SYSVAR_CLOCK_PUBKEY: PublicKey; - export const SYSVAR_RENT_PUBKEY: PublicKey; - export const SYSVAR_REWARDS_PUBKEY: PublicKey; - export const SYSVAR_STAKE_HISTORY_PUBKEY: PublicKey; - export const SYSVAR_INSTRUCTIONS_PUBKEY: PublicKey; - - // === src/vote-account.js === - export const VOTE_PROGRAM_ID: PublicKey; - export type Lockout = { - slot: number; - confirmationCount: number; - }; - - export type EpochCredits = { - epoch: number; - credits: number; - prevCredits: number; - }; - - export class VoteAccount { - votes: Array; - nodePubkey: PublicKey; - authorizedVoterPubkey: PublicKey; - commission: number; - rootSlot?: number; - epoch: number; - credits: number; - lastEpochCredits: number; - epochCredits: Array; - static fromAccountData( - buffer: Buffer | Uint8Array | Array, - ): VoteAccount; - } - - // === src/instruction.js === - export type InstructionType = { - index: number; - layout: typeof BufferLayout; - }; - - export function encodeData( - type: InstructionType, - fields: Record, - ): Buffer; - - // === src/message.js === - export type MessageHeader = { - numRequiredSignatures: number; - numReadonlySignedAccounts: number; - numReadonlyUnsignedAccounts: number; - }; - - export type CompiledInstruction = { - programIdIndex: number; - accounts: number[]; - data: string; - }; - - export type MessageArgs = { - header: MessageHeader; - accountKeys: string[]; - recentBlockhash: Blockhash; - instructions: CompiledInstruction[]; - }; - - export class Message { - header: MessageHeader; - accountKeys: PublicKey[]; - recentBlockhash: Blockhash; - instructions: CompiledInstruction[]; - - constructor(args: MessageArgs); - static from(buffer: Buffer | Uint8Array | Array): Message; - isAccountWritable(index: number): boolean; - serialize(): Buffer; - } - - // === src/transaction.js === - export type TransactionSignature = string; - - export type AccountMeta = { - pubkey: PublicKey; - isSigner: boolean; - isWritable: boolean; - }; - - export type TransactionInstructionCtorFields = { - keys: Array; - programId: PublicKey; - data?: Buffer; - }; - - export class TransactionInstruction { - keys: Array; - programId: PublicKey; - data: Buffer; - - constructor(opts: TransactionInstructionCtorFields); - } - - export type SignaturePubkeyPair = { - signature?: Buffer; - publicKey: PublicKey; - }; - - export type NonceInformation = { - nonce: Blockhash; - nonceInstruction: TransactionInstruction; - }; - - export type TransactionCtorFields = { - recentBlockhash?: Blockhash; - nonceInfo?: NonceInformation; - signatures?: Array; - feePayer?: PublicKey; - }; - - export type SerializeConfig = { - requireAllSignatures?: boolean; - verifySignatures?: boolean; - }; - - export class Transaction { - signatures: Array; - signature?: Buffer; - instructions: Array; - recentBlockhash?: Blockhash; - nonceInfo?: NonceInformation; - feePayer?: PublicKey; - - constructor(opts?: TransactionCtorFields); - static from(buffer: Buffer | Uint8Array | Array): Transaction; - static populate(message: Message, signatures: Array): Transaction; - add( - ...items: Array< - Transaction | TransactionInstruction | TransactionInstructionCtorFields - > - ): Transaction; - compileMessage(): Message; - serializeMessage(): Buffer; - sign(...signers: Array): void; - partialSign(...partialSigners: Array): void; - addSignature(pubkey: PublicKey, signature: Buffer): void; - setSigners(...signer: Array): void; - verifySignatures(): boolean; - serialize(config?: SerializeConfig): Buffer; - } - - // === src/stake-program.js === - export type StakeAuthorizationType = { - index: number; - }; - - export class Authorized { - staker: PublicKey; - withdrawer: PublicKey; - constructor(staker: PublicKey, withdrawer: PublicKey); - } - - export class Lockup { - unixTimestamp: number; - epoch: number; - custodian: PublicKey; - - constructor(unixTimestamp: number, epoch: number, custodian: PublicKey); - } - - export type CreateStakeAccountParams = { - fromPubkey: PublicKey; - stakePubkey: PublicKey; - authorized: Authorized; - lockup: Lockup; - lamports: number; - }; - - export type CreateStakeAccountWithSeedParams = { - fromPubkey: PublicKey; - stakePubkey: PublicKey; - basePubkey: PublicKey; - seed: string; - authorized: Authorized; - lockup: Lockup; - lamports: number; - }; - - export type InitializeStakeParams = { - stakePubkey: PublicKey; - authorized: Authorized; - lockup: Lockup; - }; - - export type DelegateStakeParams = { - stakePubkey: PublicKey; - authorizedPubkey: PublicKey; - votePubkey: PublicKey; - }; - - export type AuthorizeStakeParams = { - stakePubkey: PublicKey; - authorizedPubkey: PublicKey; - newAuthorizedPubkey: PublicKey; - stakeAuthorizationType: StakeAuthorizationType; - custodianPubkey?: PublicKey; - }; - - export type AuthorizeWithSeedStakeParams = { - stakePubkey: PublicKey; - authorityBase: PublicKey; - authoritySeed: string; - authorityOwner: PublicKey; - newAuthorizedPubkey: PublicKey; - stakeAuthorizationType: StakeAuthorizationType; - custodianPubkey?: PublicKey; - }; - - export type SplitStakeParams = { - stakePubkey: PublicKey; - authorizedPubkey: PublicKey; - splitStakePubkey: PublicKey; - lamports: number; - }; - - export type WithdrawStakeParams = { - stakePubkey: PublicKey; - authorizedPubkey: PublicKey; - toPubkey: PublicKey; - lamports: number; - custodianPubkey?: PublicKey; - }; - - export type DeactivateStakeParams = { - stakePubkey: PublicKey; - authorizedPubkey: PublicKey; - }; - - export class StakeProgram { - static programId: PublicKey; - static space: number; - static createAccount(params: CreateStakeAccountParams): Transaction; - static createAccountWithSeed( - params: CreateStakeAccountWithSeedParams, - ): Transaction; - static delegate(params: DelegateStakeParams): Transaction; - static authorize(params: AuthorizeStakeParams): Transaction; - static authorizeWithSeed(params: AuthorizeWithSeedStakeParams): Transaction; - static split(params: SplitStakeParams): Transaction; - static withdraw(params: WithdrawStakeParams): Transaction; - static deactivate(params: DeactivateStakeParams): Transaction; - } - - export type StakeInstructionType = - | 'Initialize' - | 'Authorize' - | 'AuthorizeWithSeed' - | 'Delegate' - | 'Split' - | 'Withdraw' - | 'Deactivate'; - - export const STAKE_INSTRUCTION_LAYOUTS: { - [type in StakeInstructionType]: InstructionType; - }; - - export class StakeInstruction { - static decodeInstructionType( - instruction: TransactionInstruction, - ): StakeInstructionType; - static decodeInitialize( - instruction: TransactionInstruction, - ): InitializeStakeParams; - static decodeDelegate( - instruction: TransactionInstruction, - ): DelegateStakeParams; - static decodeAuthorize( - instruction: TransactionInstruction, - ): AuthorizeStakeParams; - static decodeAuthorizeWithSeed( - instruction: TransactionInstruction, - ): AuthorizeWithSeedStakeParams; - static decodeSplit(instruction: TransactionInstruction): SplitStakeParams; - static decodeWithdraw( - instruction: TransactionInstruction, - ): WithdrawStakeParams; - static decodeDeactivate( - instruction: TransactionInstruction, - ): DeactivateStakeParams; - } - - // === src/system-program.js === - export type CreateAccountParams = { - fromPubkey: PublicKey; - newAccountPubkey: PublicKey; - lamports: number; - space: number; - programId: PublicKey; - }; - - export type CreateAccountWithSeedParams = { - fromPubkey: PublicKey; - newAccountPubkey: PublicKey; - basePubkey: PublicKey; - seed: string; - lamports: number; - space: number; - programId: PublicKey; - }; - - export type AllocateParams = { - accountPubkey: PublicKey; - space: number; - }; - - export type AllocateWithSeedParams = { - accountPubkey: PublicKey; - basePubkey: PublicKey; - seed: string; - space: number; - programId: PublicKey; - }; - - export type AssignParams = { - accountPubkey: PublicKey; - programId: PublicKey; - }; - - export type AssignWithSeedParams = { - accountPubkey: PublicKey; - basePubkey: PublicKey; - seed: string; - programId: PublicKey; - }; - - export type TransferParams = { - fromPubkey: PublicKey; - toPubkey: PublicKey; - lamports: number; - }; - - export type TransferWithSeedParams = { - fromPubkey: PublicKey; - basePubkey: PublicKey; - toPubkey: PublicKey; - lamports: number; - seed: string; - programId: PublicKey; - }; - - export type CreateNonceAccountParams = { - fromPubkey: PublicKey; - noncePubkey: PublicKey; - authorizedPubkey: PublicKey; - lamports: number; - }; - - export type CreateNonceAccountWithSeedParams = { - fromPubkey: PublicKey; - noncePubkey: PublicKey; - authorizedPubkey: PublicKey; - lamports: number; - basePubkey: PublicKey; - seed: string; - }; - - export type InitializeNonceParams = { - noncePubkey: PublicKey; - authorizedPubkey: PublicKey; - }; - - export type AdvanceNonceParams = { - noncePubkey: PublicKey; - authorizedPubkey: PublicKey; - }; - - export type WithdrawNonceParams = { - noncePubkey: PublicKey; - authorizedPubkey: PublicKey; - toPubkey: PublicKey; - lamports: number; - }; - - export type AuthorizeNonceParams = { - noncePubkey: PublicKey; - authorizedPubkey: PublicKey; - newAuthorizedPubkey: PublicKey; - }; - - export class SystemProgram { - static programId: PublicKey; - - static createAccount(params: CreateAccountParams): TransactionInstruction; - static createAccountWithSeed( - params: CreateAccountWithSeedParams, - ): TransactionInstruction; - static allocate( - params: AllocateParams | AllocateWithSeedParams, - ): TransactionInstruction; - static assign( - params: AssignParams | AssignWithSeedParams, - ): TransactionInstruction; - static transfer( - params: TransferParams | TransferWithSeedParams, - ): TransactionInstruction; - static createNonceAccount( - params: CreateNonceAccountParams | CreateNonceAccountWithSeedParams, - ): Transaction; - static nonceAdvance(params: AdvanceNonceParams): TransactionInstruction; - static nonceWithdraw(params: WithdrawNonceParams): TransactionInstruction; - static nonceAuthorize(params: AuthorizeNonceParams): TransactionInstruction; - } - - export type SystemInstructionType = - | 'Create' - | 'CreateWithSeed' - | 'Allocate' - | 'AllocateWithSeed' - | 'Assign' - | 'AssignWithSeed' - | 'Transfer' - | 'TransferWithSeed' - | 'AdvanceNonceAccount' - | 'WithdrawNonceAccount' - | 'InitializeNonceAccount' - | 'AuthorizeNonceAccount'; - - export const SYSTEM_INSTRUCTION_LAYOUTS: { - [type in SystemInstructionType]: InstructionType; - }; - - export class SystemInstruction { - static decodeInstructionType( - instruction: TransactionInstruction, - ): SystemInstructionType; - static decodeCreateAccount( - instruction: TransactionInstruction, - ): CreateAccountParams; - static decodeCreateWithSeed( - instruction: TransactionInstruction, - ): CreateAccountWithSeedParams; - static decodeAllocate(instruction: TransactionInstruction): AllocateParams; - static decodeAllocateWithSeed( - instruction: TransactionInstruction, - ): AllocateWithSeedParams; - static decodeAssign(instruction: TransactionInstruction): AssignParams; - static decodeAssignWithSeed( - instruction: TransactionInstruction, - ): AssignWithSeedParams; - static decodeTransfer(instruction: TransactionInstruction): TransferParams; - static decodeTransferWithSeed( - instruction: TransactionInstruction, - ): TransferWithSeedParams; - static decodeNonceInitialize( - instruction: TransactionInstruction, - ): InitializeNonceParams; - static decodeNonceAdvance( - instruction: TransactionInstruction, - ): AdvanceNonceParams; - static decodeNonceWithdraw( - instruction: TransactionInstruction, - ): WithdrawNonceParams; - static decodeNonceAuthorize( - instruction: TransactionInstruction, - ): AuthorizeNonceParams; - } - - // === src/secp256k1-program.js === - export type CreateSecp256k1InstructionWithEthAddressParams = { - ethAddress: Buffer | Uint8Array | Array | string; - message: Buffer | Uint8Array | Array; - signature: Buffer | Uint8Array | Array; - recoveryId: number; - }; - - export type CreateSecp256k1InstructionWithPublicKeyParams = { - publicKey: Buffer | Uint8Array | Array; - message: Buffer | Uint8Array | Array; - signature: Buffer | Uint8Array | Array; - recoveryId: number; - }; - - export type CreateSecp256k1InstructionWithPrivateKeyParams = { - privateKey: Buffer | Uint8Array | Array; - message: Buffer | Uint8Array | Array; - }; - - export class Secp256k1Program { - static get programId(): PublicKey; - - static publicKeyToEthAddress( - publicKey: Buffer | Uint8Array | Array, - ): Buffer; - - static createInstructionWithEthAddress( - params: CreateSecp256k1InstructionWithEthAddressParams, - ): TransactionInstruction; - - static createInstructionWithPublicKey( - params: CreateSecp256k1InstructionWithPublicKeyParams, - ): TransactionInstruction; - - static createInstructionWithPrivateKey( - params: CreateSecp256k1InstructionWithPrivateKeyParams, - ): TransactionInstruction; - } - - // === src/loader.js === - export class Loader { - static getMinNumSignatures(dataLength: number): number; - static load( - connection: Connection, - payer: Account, - program: Account, - programId: PublicKey, - data: Buffer | Uint8Array | Array, - ): Promise; - } - - // === src/bpf-loader.js === - export const BPF_LOADER_PROGRAM_ID: PublicKey; - export class BpfLoader { - static getMinNumSignatures(dataLength: number): number; - static load( - connection: Connection, - payer: Account, - program: Account, - elfBytes: Buffer | Uint8Array | Array, - loaderProgramId: PublicKey, - ): Promise; - } - - // === src/bpf-loader-deprecated.js === - export const BPF_LOADER_DEPRECATED_PROGRAM_ID: PublicKey; - - // === src/util/send-and-confirm-transaction.js === - export function sendAndConfirmTransaction( - connection: Connection, - transaction: Transaction, - signers: Array, - options?: ConfirmOptions, - ): Promise; - - // === src/util/send-and-confirm-raw-transaction.js === - export function sendAndConfirmRawTransaction( - connection: Connection, - wireTransaction: Buffer, - options?: ConfirmOptions, - ): Promise; - - // === src/util/cluster.js === - export type Cluster = 'devnet' | 'testnet' | 'mainnet-beta'; - - export function clusterApiUrl(cluster?: Cluster, tls?: boolean): string; - - // === src/index.js === - export const LAMPORTS_PER_SOL: number; -} diff --git a/web3.js/module.flow.js b/web3.js/module.flow.js deleted file mode 100644 index 9ed7948fef..0000000000 --- a/web3.js/module.flow.js +++ /dev/null @@ -1,1139 +0,0 @@ -/** - * Flow Library definition for @solana/web3.js - * - * This file is manually maintained - * - * Usage: add the following line under the [libs] section of your project's - * .flowconfig: - * [libs] - * node_modules/@solana/web3.js/module.flow.js - * - */ - -declare module '@solana/web3.js' { - import typeof {Buffer} from 'buffer'; - import typeof * as BufferLayout from 'buffer-layout'; - - // === src/publickey.js === - declare export var MAX_SEED_LENGTH: number; - declare export type PublicKeyNonce = [PublicKey, number]; - declare export class PublicKey { - constructor( - value: number | string | Buffer | Uint8Array | Array, - ): PublicKey; - static createWithSeed( - fromPublicKey: PublicKey, - seed: string, - programId: PublicKey, - ): Promise; - static createProgramAddress( - seeds: Array, - programId: PublicKey, - ): Promise; - static findProgramAddress( - seeds: Array, - programId: PublicKey, - ): Promise; - equals(publickey: PublicKey): boolean; - toBase58(): string; - toBuffer(): Buffer; - toString(): string; - } - - // === src/blockhash.js === - declare export type Blockhash = string; - - // === src/account.js === - declare export class Account { - constructor(secretKey?: Buffer | Uint8Array | Array): Account; - publicKey: PublicKey; - secretKey: Buffer; - } - - // === src/fee-calculator.js === - declare export type FeeCalculator = { - lamportsPerSignature: number, - }; - - // === src/connection.js === - declare export type Context = { - slot: number, - }; - - declare export type SendOptions = { - skipPreflight: ?boolean, - preflightCommitment: ?Commitment, - }; - - declare export type ConfirmOptions = { - commitment: ?Commitment, - skipPreflight: ?boolean, - preflightCommitment: ?Commitment, - }; - - declare export type ConfirmedSignaturesForAddress2Options = { - before?: TransactionSignature, - limit?: number, - }; - - declare export type TokenAccountsFilter = - | { - mint: PublicKey, - } - | { - programId: PublicKey, - }; - - declare export type RpcResponseAndContext = { - context: Context, - value: T, - }; - - declare export type Commitment = - | 'processed' - | 'confirmed' - | 'finalized' - | 'recent' // Deprecated as of v1.5.5 - | 'single' // Deprecated as of v1.5.5 - | 'singleGossip' // Deprecated as of v1.5.5 - | 'root' // Deprecated as of v1.5.5 - | 'max'; // Deprecated as of v1.5.5 - - declare export type LargestAccountsFilter = 'circulating' | 'nonCirculating'; - - declare export type GetLargestAccountsConfig = { - commitment: ?Commitment, - filter: ?LargestAccountsFilter, - }; - - declare export type SignatureStatusConfig = { - searchTransactionHistory: boolean, - }; - - declare export type TransactionConfirmationStatus = - | 'processed' - | 'confirmed' - | 'finalized'; - - declare export type SignatureStatus = { - slot: number, - err: TransactionError | null, - confirmations: number | null, - confirmationStatus?: TransactionConfirmationStatus, - }; - - declare export type ConfirmedSignatureInfo = { - signature: string, - slot: number, - err: TransactionError | null, - memo: string | null, - blockTime?: number | null, - }; - - declare export type BlockhashAndFeeCalculator = { - blockhash: Blockhash, - feeCalculator: FeeCalculator, - }; - - declare export type PublicKeyAndAccount = { - pubkey: PublicKey, - account: AccountInfo, - }; - - declare export type AccountInfo = { - executable: boolean, - owner: PublicKey, - lamports: number, - data: T, - rentEpoch: number | null, - }; - - declare export type ContactInfo = { - pubkey: string, - gossip: string | null, - tpu: string | null, - rpc: string | null, - version: string | null, - }; - - declare export type SimulatedTransactionResponse = { - err: TransactionError | string | null, - logs: Array | null, - }; - - declare export type CompiledInnerInstruction = { - index: number, - instructions: CompiledInstruction[], - }; - - declare export type TokenBalance = { - accountIndex: number, - mint: string, - uiTokenAmount: TokenAmount, - }; - - declare export type ConfirmedTransactionMeta = { - fee: number, - innerInstructions?: CompiledInnerInstruction[], - preBalances: Array, - postBalances: Array, - logMessages?: Array, - preTokenBalances?: Array, - postTokenBalances?: Array, - err: TransactionError | null, - }; - - declare export type ParsedInnerInstruction = { - index: number, - instructions: (ParsedInstruction | PartiallyDecodedInstruction)[], - }; - - declare export type ParsedConfirmedTransactionMeta = { - fee: number, - innerInstructions?: ParsedInnerInstruction[], - preBalances: Array, - postBalances: Array, - logMessages?: Array, - preTokenBalances?: Array, - postTokenBalances?: Array, - err: TransactionError | null, - }; - - declare export type ConfirmedBlock = { - blockhash: Blockhash, - previousBlockhash: Blockhash, - parentSlot: number, - transactions: Array<{ - transaction: Transaction, - meta: ConfirmedTransactionMeta | null, - }>, - rewards: Array<{ - pubkey: string, - lamports: number, - postBalance: number | null, - rewardType: string | null, - }>, - }; - - declare export type PerfSample = { - slot: number, - numTransactions: number, - numSlots: number, - samplePeriodSecs: number, - }; - - declare export type ConfirmedTransaction = { - slot: number, - transaction: Transaction, - meta: ConfirmedTransactionMeta | null, - blockTime?: number | null, - }; - - declare export type ParsedAccountData = { - program: string, - parsed: any, - space: number, - }; - - declare export type StakeActivationData = { - state: 'active' | 'inactive' | 'activating' | 'deactivating', - active: number, - inactive: number, - }; - - declare export type ParsedMessageAccount = { - pubkey: PublicKey, - signer: boolean, - writable: boolean, - }; - - declare export type ParsedInstruction = {| - programId: PublicKey, - program: string, - parsed: string, - |}; - - declare export type PartiallyDecodedInstruction = {| - programId: PublicKey, - accounts: Array, - data: string, - |}; - - declare export type ParsedTransaction = { - signatures: Array, - message: { - accountKeys: ParsedMessageAccount[], - instructions: (ParsedInstruction | PartiallyDecodedInstruction)[], - recentBlockhash: string, - }, - }; - - declare export type ParsedConfirmedTransaction = { - slot: number, - transaction: ParsedTransaction, - meta: ParsedConfirmedTransactionMeta | null, - }; - - declare export type KeyedAccountInfo = { - accountId: PublicKey, - accountInfo: AccountInfo, - }; - - declare export type Version = { - 'solana-core': string, - 'feature-set': ?number, - }; - - declare export type VoteAccountInfo = { - votePubkey: string, - nodePubkey: string, - stake: number, - commission: number, - }; - - declare export type SlotInfo = { - parent: number, - slot: number, - root: number, - }; - - declare export type TokenAmount = { - uiAmount: number | null, - decimals: number, - amount: string, - uiAmountString?: string, - }; - - declare export type TokenAccountBalancePair = { - address: PublicKey, - amount: string, - decimals: number, - uiAmount: number | null, - uiAmountString?: string, - }; - - declare type AccountChangeCallback = ( - accountInfo: AccountInfo, - context: Context, - ) => void; - declare type ProgramAccountChangeCallback = ( - keyedAccountInfo: KeyedAccountInfo, - context: Context, - ) => void; - declare type SlotChangeCallback = (slotInfo: SlotInfo) => void; - declare type SignatureResultCallback = ( - signatureResult: SignatureResult, - context: Context, - ) => void; - declare type RootChangeCallback = (root: number) => void; - - declare export type TransactionError = {}; - declare export type SignatureResult = {| - err: TransactionError | null, - |}; - - declare export type InflationGovernor = { - foundation: number, - foundationTerm: number, - initial: number, - taper: number, - terminal: number, - }; - - declare export type EpochSchedule = { - slotsPerEpoch: number, - leaderScheduleSlotOffset: number, - warmup: boolean, - firstNormalEpoch: number, - firstNormalSlot: number, - }; - - declare export type EpochInfo = { - epoch: number, - slotIndex: number, - slotsInEpoch: number, - absoluteSlot: number, - blockHeight: ?number, - }; - - declare export type LeaderSchedule = { - [address: string]: number[], - }; - - declare export type Supply = { - total: number, - circulating: number, - nonCirculating: number, - nonCirculatingAccounts: Array, - }; - - declare export type AccountBalancePair = { - address: PublicKey, - lamports: number, - }; - - declare export type VoteAccountStatus = { - current: Array, - delinquent: Array, - }; - - declare export class Connection { - constructor(endpoint: string, commitment: ?Commitment): Connection; - commitment: ?Commitment; - getAccountInfoAndContext( - publicKey: PublicKey, - commitment: ?Commitment, - ): Promise | null>>; - getAccountInfo( - publicKey: PublicKey, - commitment: ?Commitment, - ): Promise | null>; - getParsedAccountInfo( - publicKey: PublicKey, - commitment: ?Commitment, - ): Promise< - RpcResponseAndContext | null>, - >; - getStakeActivation( - publicKey: PublicKey, - commitment?: Commitment, - epoch?: number, - ): Promise; - getProgramAccounts( - programId: PublicKey, - commitment: ?Commitment, - ): Promise>>; - getParsedProgramAccounts( - programId: PublicKey, - commitment: ?Commitment, - ): Promise>>; - getBalanceAndContext( - publicKey: PublicKey, - commitment: ?Commitment, - ): Promise>; - getBalance(publicKey: PublicKey, commitment: ?Commitment): Promise; - getBlockTime(slot: number): Promise; - getMinimumLedgerSlot(): Promise; - getFirstAvailableBlock(): Promise; - getSupply(commitment: ?Commitment): Promise>; - getTokenSupply( - tokenMintAddress: PublicKey, - commitment: ?Commitment, - ): Promise>; - getTokenAccountBalance( - tokenAddress: PublicKey, - commitment: ?Commitment, - ): Promise>; - getTokenAccountsByOwner( - ownerAddress: PublicKey, - filter: TokenAccountsFilter, - commitment: ?Commitment, - ): Promise< - RpcResponseAndContext< - Array<{pubkey: PublicKey, account: AccountInfo}>, - >, - >; - getLargestAccounts( - config: ?GetLargestAccountsConfig, - ): Promise>>; - getTokenLargestAccounts( - mintAddress: PublicKey, - commitment: ?Commitment, - ): Promise>>; - getClusterNodes(): Promise>; - getConfirmedBlock(slot: number): Promise; - getConfirmedTransaction( - signature: TransactionSignature, - ): Promise; - getParsedConfirmedTransaction( - signature: TransactionSignature, - ): Promise; - getConfirmedSignaturesForAddress( - address: PublicKey, - startSlot: number, - endSlot: number, - ): Promise>; - getConfirmedSignaturesForAddress2( - address: PublicKey, - options: ?ConfirmedSignaturesForAddress2Options, - ): Promise>; - getVoteAccounts(commitment: ?Commitment): Promise; - confirmTransaction( - signature: TransactionSignature, - commitment: ?Commitment, - ): Promise>; - getSlot(commitment: ?Commitment): Promise; - getSlotLeader(commitment: ?Commitment): Promise; - getSignatureStatus( - signature: TransactionSignature, - config: ?SignatureStatusConfig, - ): Promise>; - getSignatureStatuses( - signatures: Array, - config: ?SignatureStatusConfig, - ): Promise>>; - getTransactionCount(commitment: ?Commitment): Promise; - getTotalSupply(commitment: ?Commitment): Promise; - getVersion(): Promise; - getInflationGovernor(commitment: ?Commitment): Promise; - getLeaderSchedule(): Promise; - getEpochSchedule(): Promise; - getEpochInfo(commitment: ?Commitment): Promise; - getRecentBlockhashAndContext( - commitment: ?Commitment, - ): Promise>; - getRecentPerformanceSamples(limit: ?number): Promise>; - getFeeCalculatorForBlockhash( - blockhash: Blockhash, - commitment: ?Commitment, - ): Promise>; - getRecentBlockhash( - commitment: ?Commitment, - ): Promise; - requestAirdrop( - to: PublicKey, - amount: number, - ): Promise; - sendTransaction( - transaction: Transaction, - signers: Array, - options?: SendOptions, - ): Promise; - sendEncodedTransaction( - encodedTransaction: string, - options?: SendOptions, - ): Promise; - sendRawTransaction( - wireTransaction: Buffer | Uint8Array | Array, - options?: SendOptions, - ): Promise; - simulateTransaction( - transaction: Transaction, - signers?: Array, - ): Promise>; - onAccountChange( - publickey: PublicKey, - callback: AccountChangeCallback, - commitment: ?Commitment, - ): number; - removeAccountChangeListener(id: number): Promise; - onProgramAccountChange( - programId: PublicKey, - callback: ProgramAccountChangeCallback, - commitment: ?Commitment, - ): number; - removeProgramAccountChangeListener(id: number): Promise; - onSlotChange(callback: SlotChangeCallback): number; - removeSlotChangeListener(id: number): Promise; - onSignature( - signature: TransactionSignature, - callback: SignatureResultCallback, - commitment: ?Commitment, - ): number; - removeSignatureListener(id: number): Promise; - onRootChange(callback: RootChangeCallback): number; - removeRootChangeListener(id: number): Promise; - getMinimumBalanceForRentExemption( - dataLength: number, - commitment: ?Commitment, - ): Promise; - getNonce( - nonceAccount: PublicKey, - commitment: ?Commitment, - ): Promise; - getNonceAndContext( - nonceAccount: PublicKey, - commitment: ?Commitment, - ): Promise>; - } - - // === src/nonce-account.js === - declare export class NonceAccount { - authorizedPubkey: PublicKey; - nonce: Blockhash; - feeCalculator: FeeCalculator; - static fromAccountData( - buffer: Buffer | Uint8Array | Array, - ): NonceAccount; - } - - declare export var NONCE_ACCOUNT_LENGTH: number; - - // === src/validator-info.js === - declare export var VALIDATOR_INFO_KEY; - declare export type Info = {| - name: string, - website?: string, - details?: string, - keybaseUsername?: string, - |}; - - declare export class ValidatorInfo { - key: PublicKey; - info: Info; - - constructor(key: PublicKey, info: Info): ValidatorInfo; - static fromConfigData( - buffer: Buffer | Uint8Array | Array, - ): ValidatorInfo | null; - } - - // === src/sysvar.js === - declare export var SYSVAR_CLOCK_PUBKEY; - declare export var SYSVAR_RENT_PUBKEY; - declare export var SYSVAR_REWARDS_PUBKEY; - declare export var SYSVAR_STAKE_HISTORY_PUBKEY; - declare export var SYSVAR_INSTRUCTIONS_PUBKEY; - - // === src/vote-account.js === - declare export var VOTE_PROGRAM_ID; - declare export type Lockout = {| - slot: number, - confirmationCount: number, - |}; - - declare export type EpochCredits = {| - epoch: number, - credits: number, - prevCredits: number, - |}; - - declare export class VoteAccount { - votes: Array; - nodePubkey: PublicKey; - authorizedVoterPubkey: PublicKey; - commission: number; - rootSlot: number | null; - epoch: number; - credits: number; - lastEpochCredits: number; - epochCredits: Array; - static fromAccountData( - buffer: Buffer | Uint8Array | Array, - ): VoteAccount; - } - - // === src/instruction.js === - declare export type InstructionType = {| - index: number, - layout: BufferLayout, - |}; - - declare export function encodeData(type: InstructionType, fields: {}): Buffer; - - // === src/message.js === - declare export type MessageHeader = { - numRequiredSignatures: number, - numReadonlySignedAccounts: number, - numReadonlyUnsignedAccounts: number, - }; - - declare export type CompiledInstruction = { - programIdIndex: number, - accounts: number[], - data: string, - }; - - declare export type MessageArgs = { - header: MessageHeader, - accountKeys: string[], - recentBlockhash: Blockhash, - instructions: CompiledInstruction[], - }; - - declare export class Message { - header: MessageHeader; - accountKeys: PublicKey[]; - recentBlockhash: Blockhash; - instructions: CompiledInstruction[]; - - constructor(args: MessageArgs): Message; - static from(buffer: Buffer | Uint8Array | Array): Message; - isAccountWritable(index: number): boolean; - serialize(): Buffer; - } - - // === src/transaction.js === - declare export type TransactionSignature = string; - - declare export type AccountMeta = { - pubkey: PublicKey, - isSigner: boolean, - isWritable: boolean, - }; - - declare type TransactionInstructionCtorFields = {| - keys: Array, - programId: PublicKey, - data?: Buffer, - |}; - - declare export class TransactionInstruction { - keys: Array; - programId: PublicKey; - data: Buffer; - - constructor(opts: TransactionInstructionCtorFields): TransactionInstruction; - } - - declare type SignaturePubkeyPair = {| - signature: Buffer | null, - publicKey: PublicKey, - |}; - - declare type NonceInformation = {| - nonce: Blockhash, - nonceInstruction: TransactionInstruction, - |}; - - declare type TransactionCtorFields = {| - recentBlockhash?: Blockhash, - nonceInfo?: NonceInformation, - signatures?: Array, - feePayer?: PublicKey, - |}; - - declare export type SerializeConfig = { - requireAllSignatures?: boolean, - verifySignatures?: boolean, - }; - - declare export class Transaction { - signatures: Array; - signature: ?Buffer; - instructions: Array; - recentBlockhash: ?Blockhash; - nonceInfo: ?NonceInformation; - feePayer: ?PublicKey; - - constructor(opts?: TransactionCtorFields): Transaction; - static from(buffer: Buffer | Uint8Array | Array): Transaction; - static populate(message: Message, signatures: Array): Transaction; - add( - ...items: Array< - Transaction | TransactionInstruction | TransactionInstructionCtorFields, - > - ): Transaction; - compileMessage(): Message; - serializeMessage(): Buffer; - sign(...signers: Array): void; - partialSign(...partialSigners: Array): void; - addSignature(pubkey: PublicKey, signature: Buffer): void; - setSigners(...signers: Array): void; - verifySignatures(): boolean; - serialize(config?: SerializeConfig): Buffer; - } - - // === src/stake-program.js === - declare export type StakeAuthorizationType = {| - index: number, - |}; - - declare export class Authorized { - staker: PublicKey; - withdrawer: PublicKey; - constructor(staker: PublicKey, withdrawer: PublicKey): Authorized; - } - - declare export class Lockup { - unixTimestamp: number; - epoch: number; - custodian: PublicKey; - constructor( - unixTimestamp: number, - epoch: number, - custodian: PublicKey, - ): Lockup; - } - - declare export type CreateStakeAccountParams = {| - fromPubkey: PublicKey, - stakePubkey: PublicKey, - authorized: Authorized, - lockup: Lockup, - lamports: number, - |}; - - declare export type CreateStakeAccountWithSeedParams = {| - fromPubkey: PublicKey, - stakePubkey: PublicKey, - basePubkey: PublicKey, - seed: string, - authorized: Authorized, - lockup: Lockup, - lamports: number, - |}; - - declare export type InitializeStakeParams = {| - stakePubkey: PublicKey, - authorized: Authorized, - lockup: Lockup, - |}; - - declare export type DelegateStakeParams = {| - stakePubkey: PublicKey, - authorizedPubkey: PublicKey, - votePubkey: PublicKey, - |}; - - declare export type AuthorizeStakeParams = {| - stakePubkey: PublicKey, - authorizedPubkey: PublicKey, - newAuthorizedPubkey: PublicKey, - stakeAuthorizationType: StakeAuthorizationType, - custodianPubkey?: PublicKey, - |}; - - declare export type AuthorizeWithSeedStakeParams = {| - stakePubkey: PublicKey, - authorityBase: PublicKey, - authoritySeed: string, - authorityOwner: PublicKey, - newAuthorizedPubkey: PublicKey, - stakeAuthorizationType: StakeAuthorizationType, - custodianPubkey?: PublicKey, - |}; - - declare export type SplitStakeParams = {| - stakePubkey: PublicKey, - authorizedPubkey: PublicKey, - splitStakePubkey: PublicKey, - lamports: number, - |}; - - declare export type WithdrawStakeParams = {| - stakePubkey: PublicKey, - authorizedPubkey: PublicKey, - toPubkey: PublicKey, - lamports: number, - custodianPubkey?: PublicKey, - |}; - - declare export type DeactivateStakeParams = {| - stakePubkey: PublicKey, - authorizedPubkey: PublicKey, - |}; - - declare export class StakeProgram { - static programId: PublicKey; - static space: number; - static createAccount(params: CreateStakeAccountParams): Transaction; - static createAccountWithSeed( - params: CreateStakeAccountWithSeedParams, - ): Transaction; - static delegate(params: DelegateStakeParams): Transaction; - static authorize(params: AuthorizeStakeParams): Transaction; - static authorizeWithSeed(params: AuthorizeWithSeedStakeParams): Transaction; - static split(params: SplitStakeParams): Transaction; - static withdraw(params: WithdrawStakeParams): Transaction; - static deactivate(params: DeactivateStakeParams): Transaction; - } - - declare export type StakeInstructionType = - | 'Initialize' - | 'Authorize' - | 'AuthorizeWithSeed' - | 'Delegate' - | 'Split' - | 'Withdraw' - | 'Deactivate'; - - declare export var STAKE_INSTRUCTION_LAYOUTS: { - [StakeInstructionType]: InstructionType, - }; - - declare export class StakeInstruction { - static decodeInstructionType( - instruction: TransactionInstruction, - ): StakeInstructionType; - static decodeInitialize( - instruction: TransactionInstruction, - ): InitializeStakeParams; - static decodeDelegate( - instruction: TransactionInstruction, - ): DelegateStakeParams; - static decodeAuthorize( - instruction: TransactionInstruction, - ): AuthorizeStakeParams; - static decodeAuthorizeWithSeed( - instruction: TransactionInstruction, - ): AuthorizeWithSeedStakeParams; - static decodeSplit(instruction: TransactionInstruction): SplitStakeParams; - static decodeWithdraw( - instruction: TransactionInstruction, - ): WithdrawStakeParams; - static decodeDeactivate( - instruction: TransactionInstruction, - ): DeactivateStakeParams; - } - - // === src/system-program.js === - declare export type CreateAccountParams = {| - fromPubkey: PublicKey, - newAccountPubkey: PublicKey, - lamports: number, - space: number, - programId: PublicKey, - |}; - - declare export type CreateAccountWithSeedParams = {| - fromPubkey: PublicKey, - newAccountPubkey: PublicKey, - basePubkey: PublicKey, - seed: string, - lamports: number, - space: number, - programId: PublicKey, - |}; - - declare export type AllocateParams = {| - accountPubkey: PublicKey, - space: number, - |}; - - declare export type AllocateWithSeedParams = {| - accountPubkey: PublicKey, - basePubkey: PublicKey, - seed: string, - space: number, - programId: PublicKey, - |}; - - declare export type AssignParams = {| - accountPubkey: PublicKey, - programId: PublicKey, - |}; - - declare export type AssignWithSeedParams = {| - accountPubkey: PublicKey, - basePubkey: PublicKey, - seed: string, - programId: PublicKey, - |}; - - declare export type TransferParams = {| - fromPubkey: PublicKey, - toPubkey: PublicKey, - lamports: number, - |}; - - declare export type TransferWithSeedParams = {| - fromPubkey: PublicKey, - basePubkey: PublicKey, - toPubkey: PublicKey, - lamports: number, - seed: string, - programId: PublicKey, - |}; - - declare export type CreateNonceAccountParams = {| - fromPubkey: PublicKey, - noncePubkey: PublicKey, - authorizedPubkey: PublicKey, - lamports: number, - |}; - - declare export type CreateNonceAccountWithSeedParams = {| - fromPubkey: PublicKey, - noncePubkey: PublicKey, - authorizedPubkey: PublicKey, - lamports: number, - basePubkey: PublicKey, - seed: string, - |}; - - declare export type InitializeNonceParams = {| - noncePubkey: PublicKey, - authorizedPubkey: PublicKey, - |}; - - declare export type AdvanceNonceParams = {| - noncePubkey: PublicKey, - authorizedPubkey: PublicKey, - |}; - - declare export type WithdrawNonceParams = {| - noncePubkey: PublicKey, - authorizedPubkey: PublicKey, - toPubkey: PublicKey, - lamports: number, - |}; - - declare export type AuthorizeNonceParams = {| - noncePubkey: PublicKey, - authorizedPubkey: PublicKey, - newAuthorizedPubkey: PublicKey, - |}; - - declare export class SystemProgram { - static programId: PublicKey; - - static createAccount(params: CreateAccountParams): TransactionInstruction; - static createAccountWithSeed( - params: CreateAccountWithSeedParams, - ): TransactionInstruction; - static allocate( - params: AllocateParams | AllocateWithSeedParams, - ): TransactionInstruction; - static assign( - params: AssignParams | AssignWithSeedParams, - ): TransactionInstruction; - static transfer( - params: TransferParams | TransferWithSeedParams, - ): TransactionInstruction; - static createNonceAccount( - params: CreateNonceAccountParams | CreateNonceAccountWithSeedParams, - ): Transaction; - static nonceAdvance(params: AdvanceNonceParams): TransactionInstruction; - static nonceWithdraw(params: WithdrawNonceParams): TransactionInstruction; - static nonceAuthorize(params: AuthorizeNonceParams): TransactionInstruction; - } - - declare export type SystemInstructionType = - | 'Create' - | 'CreateWithSeed' - | 'Allocate' - | 'AllocateWithSeed' - | 'Assign' - | 'AssignWithSeed' - | 'Transfer' - | 'TransferWithSeed' - | 'AdvanceNonceAccount' - | 'WithdrawNonceAccount' - | 'InitializeNonceAccount' - | 'AuthorizeNonceAccount'; - - declare export var SYSTEM_INSTRUCTION_LAYOUTS: { - [SystemInstructionType]: InstructionType, - }; - - declare export class SystemInstruction { - static decodeInstructionType( - instruction: TransactionInstruction, - ): SystemInstructionType; - static decodeCreateAccount( - instruction: TransactionInstruction, - ): CreateAccountParams; - static decodeCreateWithSeed( - instruction: TransactionInstruction, - ): CreateAccountWithSeedParams; - static decodeAllocate(instruction: TransactionInstruction): AllocateParams; - static decodeAllocateWithSeed( - instruction: TransactionInstruction, - ): AllocateWithSeedParams; - static decodeAssign(instruction: TransactionInstruction): AssignParams; - static decodeAssignWithSeed( - instruction: TransactionInstruction, - ): AssignWithSeedParams; - static decodeTransfer(instruction: TransactionInstruction): TransferParams; - static decodeTransferWithSeed( - instruction: TransactionInstruction, - ): TransferWithSeedParams; - static decodeNonceInitialize( - instruction: TransactionInstruction, - ): InitializeNonceParams; - static decodeNonceAdvance( - instruction: TransactionInstruction, - ): AdvanceNonceParams; - static decodeNonceWithdraw( - instruction: TransactionInstruction, - ): WithdrawNonceParams; - static decodeNonceAuthorize( - instruction: TransactionInstruction, - ): AuthorizeNonceParams; - } - - // === src/secp256k1-program.js === - declare export type CreateSecp256k1InstructionWithEthAddressParams = {| - ethAddress: Buffer | Uint8Array | Array | string, - message: Buffer | Uint8Array | Array, - signature: Buffer | Uint8Array | Array, - recoveryId: number, - |}; - - declare export type CreateSecp256k1InstructionWithPublicKeyParams = {| - publicKey: Buffer | Uint8Array | Array, - message: Buffer | Uint8Array | Array, - signature: Buffer | Uint8Array | Array, - recoveryId: number, - |}; - - declare export type CreateSecp256k1InstructionWithPrivateKeyParams = {| - privateKey: Buffer | Uint8Array | Array, - message: Buffer | Uint8Array | Array, - |}; - - declare export class Secp256k1Program { - static get programId(): PublicKey; - - static publicKeyToEthAddress( - publicKey: Buffer | Uint8Array | Array, - ): Buffer; - - static createInstructionWithEthAddress( - params: CreateSecp256k1InstructionWithEthAddressParams, - ): TransactionInstruction; - - static createInstructionWithPublicKey( - params: CreateSecp256k1InstructionWithPublicKeyParams, - ): TransactionInstruction; - - static createInstructionWithPrivateKey( - params: CreateSecp256k1InstructionWithPrivateKeyParams, - ): TransactionInstruction; - } - - // === src/loader.js === - declare export class Loader { - static getMinNumSignatures(dataLength: number): number; - static load( - connection: Connection, - payer: Account, - program: Account, - programId: PublicKey, - data: Buffer | Uint8Array | Array, - ): Promise; - } - - // === src/bpf-loader.js === - declare export var BPF_LOADER_PROGRAM_ID; - declare export class BpfLoader { - static getMinNumSignatures(dataLength: number): number; - static load( - connection: Connection, - payer: Account, - program: Account, - elfBytes: Buffer | Uint8Array | Array, - loaderProgramId: PublicKey, - ): Promise; - } - - // === src/bpf-loader-deprecated.js === - declare export var BPF_LOADER_DEPRECATED_PROGRAM_ID; - - // === src/util/send-and-confirm-transaction.js === - declare export function sendAndConfirmTransaction( - connection: Connection, - transaction: Transaction, - signers: Array, - options: ?ConfirmOptions, - ): Promise; - - // === src/util/send-and-confirm-raw-transaction.js === - declare export function sendAndConfirmRawTransaction( - connection: Connection, - wireTransaction: Buffer, - options: ?ConfirmOptions, - ): Promise; - - // === src/util/cluster.js === - declare export type Cluster = 'devnet' | 'testnet' | 'mainnet-beta'; - - declare export function clusterApiUrl( - cluster?: Cluster, - tls?: boolean, - ): string; - - // === src/index.js === - declare export var LAMPORTS_PER_SOL: number; -} diff --git a/web3.js/package-lock.json b/web3.js/package-lock.json index 5e195ecd44..de9d443e62 100644 --- a/web3.js/package-lock.json +++ b/web3.js/package-lock.json @@ -1127,23 +1127,6 @@ "@babel/helper-plugin-utils": "^7.8.3" } }, - "@babel/plugin-syntax-flow": { - "version": "7.12.13", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-flow/-/plugin-syntax-flow-7.12.13.tgz", - "integrity": "sha512-J/RYxnlSLXZLVR7wTRsozxKT8qbsx1mNKJzXEEjQ0Kjx1ZACcyHgbanNWNCFtc36IzuWhYWPpvJFFoexoOWFmA==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.12.13" - }, - "dependencies": { - "@babel/helper-plugin-utils": { - "version": "7.12.13", - "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.12.13.tgz", - "integrity": "sha512-C+10MXCXJLiR6IeG9+Wiejt9jmtFpxUc3MQqCmPY8hfCjyUGl9kT+B2okzEZrtykiwrc4dbCPdDoz0A/HQbDaA==", - "dev": true - } - } - }, "@babel/plugin-syntax-json-strings": { "version": "7.8.3", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz", @@ -1216,6 +1199,15 @@ "@babel/helper-plugin-utils": "^7.12.13" } }, + "@babel/plugin-syntax-typescript": { + "version": "7.12.13", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.12.13.tgz", + "integrity": "sha512-cHP3u1JiUiG2LFDKbXnwVad81GvfyIOmCD6HIEId6ojrY0Drfy2q1jw7BwN7dE84+kTnBjLkXoL3IEy/3JPu2w==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.12.13" + } + }, "@babel/plugin-transform-arrow-functions": { "version": "7.12.13", "resolved": "https://registry.npmjs.org/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.12.13.tgz", @@ -1335,24 +1327,6 @@ "@babel/helper-plugin-utils": "^7.12.13" } }, - "@babel/plugin-transform-flow-strip-types": { - "version": "7.12.13", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-flow-strip-types/-/plugin-transform-flow-strip-types-7.12.13.tgz", - "integrity": "sha512-39/t9HtN+Jlc7EEY6oCSCf3kRrKIl2JULOGPnHZiaRjoYZEFaDXDZI32uE2NosQRh8o6N9B+8iGvDK7ToJhJaw==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.12.13", - "@babel/plugin-syntax-flow": "^7.12.13" - }, - "dependencies": { - "@babel/helper-plugin-utils": { - "version": "7.12.13", - "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.12.13.tgz", - "integrity": "sha512-C+10MXCXJLiR6IeG9+Wiejt9jmtFpxUc3MQqCmPY8hfCjyUGl9kT+B2okzEZrtykiwrc4dbCPdDoz0A/HQbDaA==", - "dev": true - } - } - }, "@babel/plugin-transform-for-of": { "version": "7.12.13", "resolved": "https://registry.npmjs.org/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.12.13.tgz", @@ -1565,6 +1539,41 @@ "@babel/helper-plugin-utils": "^7.12.13" } }, + "@babel/plugin-transform-typescript": { + "version": "7.12.16", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.12.16.tgz", + "integrity": "sha512-88hep+B6dtDOiEqtRzwHp2TYO+CN8nbAV3eh5OpBGPsedug9J6y1JwLKzXRIGGQZDC8NlpxpQMIIxcfIW96Wgw==", + "dev": true, + "requires": { + "@babel/helper-create-class-features-plugin": "^7.12.16", + "@babel/helper-plugin-utils": "^7.12.13", + "@babel/plugin-syntax-typescript": "^7.12.13" + }, + "dependencies": { + "@babel/helper-create-class-features-plugin": { + "version": "7.12.16", + "resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.12.16.tgz", + "integrity": "sha512-KbSEj8l9zYkMVHpQqM3wJNxS1d9h3U9vm/uE5tpjMbaj3lTp+0noe3KPsV5dSD9jxKnf9jO9Ip9FX5PKNZCKow==", + "dev": true, + "requires": { + "@babel/helper-function-name": "^7.12.13", + "@babel/helper-member-expression-to-functions": "^7.12.16", + "@babel/helper-optimise-call-expression": "^7.12.13", + "@babel/helper-replace-supers": "^7.12.13", + "@babel/helper-split-export-declaration": "^7.12.13" + } + }, + "@babel/helper-member-expression-to-functions": { + "version": "7.12.16", + "resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.12.16.tgz", + "integrity": "sha512-zYoZC1uvebBFmj1wFAlXwt35JLEgecefATtKp20xalwEK8vHAixLBXTGxNrVGEmTT+gzOThUgr8UEdgtalc1BQ==", + "dev": true, + "requires": { + "@babel/types": "^7.12.13" + } + } + } + }, "@babel/plugin-transform-unicode-escapes": { "version": "7.12.13", "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-escapes/-/plugin-transform-unicode-escapes-7.12.13.tgz", @@ -1686,24 +1695,6 @@ } } }, - "@babel/preset-flow": { - "version": "7.12.13", - "resolved": "https://registry.npmjs.org/@babel/preset-flow/-/preset-flow-7.12.13.tgz", - "integrity": "sha512-gcEjiwcGHa3bo9idURBp5fmJPcyFPOszPQjztXrOjUE2wWVqc6fIVJPgWPIQksaQ5XZ2HWiRsf2s1fRGVjUtVw==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.12.13", - "@babel/plugin-transform-flow-strip-types": "^7.12.13" - }, - "dependencies": { - "@babel/helper-plugin-utils": { - "version": "7.12.13", - "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.12.13.tgz", - "integrity": "sha512-C+10MXCXJLiR6IeG9+Wiejt9jmtFpxUc3MQqCmPY8hfCjyUGl9kT+B2okzEZrtykiwrc4dbCPdDoz0A/HQbDaA==", - "dev": true - } - } - }, "@babel/preset-modules": { "version": "0.1.4", "resolved": "https://registry.npmjs.org/@babel/preset-modules/-/preset-modules-0.1.4.tgz", @@ -1717,6 +1708,25 @@ "esutils": "^2.0.2" } }, + "@babel/preset-typescript": { + "version": "7.12.16", + "resolved": "https://registry.npmjs.org/@babel/preset-typescript/-/preset-typescript-7.12.16.tgz", + "integrity": "sha512-IrYNrpDSuQfNHeqh7gsJsO35xTGyAyGkI1VxOpBEADFtxCqZ77a1RHbJqM3YJhroj7qMkNMkNtcw0lqeZUrzow==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.12.13", + "@babel/helper-validator-option": "^7.12.16", + "@babel/plugin-transform-typescript": "^7.12.16" + }, + "dependencies": { + "@babel/helper-validator-option": { + "version": "7.12.16", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.12.16.tgz", + "integrity": "sha512-uCgsDBPUQDvzr11ePPo4TVEocxj8RXjUVSC/Y8N1YpVAI/XDdUwGJu78xmlGhTxj2ntaWM7n9LQdRtyhOzT2YQ==", + "dev": true + } + } + }, "@babel/register": { "version": "7.13.8", "resolved": "https://registry.npmjs.org/@babel/register/-/register-7.13.8.tgz", @@ -2808,6 +2818,15 @@ "integrity": "sha512-tsAQNx32a8CoFhjhijUIhI4kccIAgmGhy8LZMZgGfmXcpMbPRUqn5LWmgRttILi6yeGmBJd2xsPkFMs0PzgPCw==", "dev": true }, + "@mdn/browser-compat-data": { + "version": "2.0.7", + "resolved": "https://registry.npmjs.org/@mdn/browser-compat-data/-/browser-compat-data-2.0.7.tgz", + "integrity": "sha512-GeeM827DlzFFidn1eKkMBiqXFD2oLsnZbaiGhByPl0vcapsRzUL+t9hDoov1swc9rB2jw64R+ihtzC8qOE9wXw==", + "dev": true, + "requires": { + "extend": "3.0.2" + } + }, "@nodelib/fs.scandir": { "version": "2.1.3", "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.3.tgz", @@ -3968,6 +3987,56 @@ "defer-to-connect": "^2.0.0" } }, + "@types/babel__core": { + "version": "7.1.12", + "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.1.12.tgz", + "integrity": "sha512-wMTHiiTiBAAPebqaPiPDLFA4LYPKr6Ph0Xq/6rq1Ur3v66HXyG+clfR9CNETkD7MQS8ZHvpQOtA53DLws5WAEQ==", + "dev": true, + "requires": { + "@babel/parser": "^7.1.0", + "@babel/types": "^7.0.0", + "@types/babel__generator": "*", + "@types/babel__template": "*", + "@types/babel__traverse": "*" + } + }, + "@types/babel__generator": { + "version": "7.6.2", + "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.6.2.tgz", + "integrity": "sha512-MdSJnBjl+bdwkLskZ3NGFp9YcXGx5ggLpQQPqtgakVhsWK0hTtNYhjpZLlWQTviGTvF8at+Bvli3jV7faPdgeQ==", + "dev": true, + "requires": { + "@babel/types": "^7.0.0" + } + }, + "@types/babel__template": { + "version": "7.4.0", + "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.0.tgz", + "integrity": "sha512-NTPErx4/FiPCGScH7foPyr+/1Dkzkni+rHiYHHoTjvwou7AQzJkNeD60A9CXRy+ZEN2B1bggmkTMCDb+Mv5k+A==", + "dev": true, + "requires": { + "@babel/parser": "^7.1.0", + "@babel/types": "^7.0.0" + } + }, + "@types/babel__traverse": { + "version": "7.11.1", + "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.11.1.tgz", + "integrity": "sha512-Vs0hm0vPahPMYi9tDjtP66llufgO3ST16WXaSTtDGEl9cewAl3AibmxWw6TINOqHPT9z0uABKAYjT9jNSg4npw==", + "dev": true, + "requires": { + "@babel/types": "^7.3.0" + } + }, + "@types/bn.js": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/@types/bn.js/-/bn.js-5.1.0.tgz", + "integrity": "sha512-QSSVYj7pYFN49kW77o2s9xTCwZ8F2xLbjLLSEVh8D2F4JUhZtPAGOFLTD+ffqksBx/u4cE/KImFjyhqCjn/LIA==", + "dev": true, + "requires": { + "@types/node": "*" + } + }, "@types/body-parser": { "version": "1.19.0", "resolved": "https://registry.npmjs.org/@types/body-parser/-/body-parser-1.19.0.tgz", @@ -3978,6 +4047,26 @@ "@types/node": "*" } }, + "@types/bs58": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/@types/bs58/-/bs58-4.0.1.tgz", + "integrity": "sha512-yfAgiWgVLjFCmRv8zAcOIHywYATEwiTVccTLnRp6UxTNavT55M9d/uhK3T03St/+8/z/wW+CRjGKUNmEqoHHCA==", + "dev": true, + "requires": { + "base-x": "^3.0.6" + }, + "dependencies": { + "base-x": { + "version": "3.0.8", + "resolved": "https://registry.npmjs.org/base-x/-/base-x-3.0.8.tgz", + "integrity": "sha512-Rl/1AWP4J/zRrk54hhlxH4drNxPJXYUaKffODVI53/dAsV4t9fBxyxYKAVPU1XBHxYwOWP9h9H0hM2MVw4YfJA==", + "dev": true, + "requires": { + "safe-buffer": "^5.0.1" + } + } + } + }, "@types/cacheable-request": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/@types/cacheable-request/-/cacheable-request-6.0.1.tgz", @@ -4038,25 +4127,6 @@ "@types/range-parser": "*" } }, - "@types/fs-extra": { - "version": "8.1.1", - "resolved": "https://registry.npmjs.org/@types/fs-extra/-/fs-extra-8.1.1.tgz", - "integrity": "sha512-TcUlBem321DFQzBNuz8p0CLLKp0VvF/XH9E4KHNmgwyp4E3AfgI5cjiIVZWlbfThBop2qxFIh4+LeY6hVWWZ2w==", - "dev": true, - "requires": { - "@types/node": "*" - } - }, - "@types/glob": { - "version": "7.1.3", - "resolved": "https://registry.npmjs.org/@types/glob/-/glob-7.1.3.tgz", - "integrity": "sha512-SEYeGAIQIQX8NN6LDKprLjbrd5dARM5EXsd8GI/A5l0apYI1fGMWgPHSe4ZKL4eozlAyI+doUE9XbYS4xCkQ1w==", - "dev": true, - "requires": { - "@types/minimatch": "*", - "@types/node": "*" - } - }, "@types/http-cache-semantics": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/@types/http-cache-semantics/-/http-cache-semantics-4.0.0.tgz", @@ -4095,12 +4165,6 @@ "integrity": "sha512-YATxVxgRqNH6nHEIsvg6k2Boc1JHI9ZbH5iWFFv/MTkchz3b1ieGDa5T0a9RznNdI0KhVbdbWSN+KWWrQZRxTw==", "dev": true }, - "@types/minimatch": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/@types/minimatch/-/minimatch-3.0.3.tgz", - "integrity": "sha512-tHq6qdbT9U1IRSGf14CL0pUlULksvY9OZ+5eEgl1N7t+OA3tGvNpxJCzuKQlsNgCVwbAs670L1vcVQi8j9HjnA==", - "dev": true - }, "@types/minimist": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/@types/minimist/-/minimist-1.2.0.tgz", @@ -4112,6 +4176,38 @@ "resolved": "https://registry.npmjs.org/@types/node/-/node-14.14.31.tgz", "integrity": "sha512-vFHy/ezP5qI0rFgJ7aQnjDXwAMrG0KqqIH7tQG5PPv3BWBayOPIQNBjVc/P6hhdZfMx51REc6tfDNXHUio893g==" }, + "@types/node-fetch": { + "version": "2.5.8", + "resolved": "https://registry.npmjs.org/@types/node-fetch/-/node-fetch-2.5.8.tgz", + "integrity": "sha512-fbjI6ja0N5ZA8TV53RUqzsKNkl9fv8Oj3T7zxW7FGv1GSH7gwJaNF8dzCjrqKaxKeUpTz4yT1DaJFq/omNpGfw==", + "dev": true, + "requires": { + "@types/node": "*", + "form-data": "^3.0.0" + }, + "dependencies": { + "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" + } + }, + "form-data": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-3.0.0.tgz", + "integrity": "sha512-CKMFDglpbMi6PyN+brwB9Q/GOw0eAnsrEZDgcsH5Krhz5Od/haKHAX0NmQfha2zPPz0JpWzA7GJHGSnvCRLWsg==", + "dev": true, + "requires": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "mime-types": "^2.1.12" + } + } + } + }, "@types/node-forge": { "version": "0.9.7", "resolved": "https://registry.npmjs.org/@types/node-forge/-/node-forge-0.9.7.tgz", @@ -4127,6 +4223,12 @@ "integrity": "sha512-f5j5b/Gf71L+dbqxIpQ4Z2WlmI/mPJ0fOkGGmFgtb6sAu97EPczzbS3/tJKxmcYDj55OX6ssqwDAWOHIYDRDGA==", "dev": true }, + "@types/object-path": { + "version": "0.11.0", + "resolved": "https://registry.npmjs.org/@types/object-path/-/object-path-0.11.0.tgz", + "integrity": "sha512-/tuN8jDbOXcPk+VzEVZzzAgw1Byz7s/itb2YI10qkSyy6nykJH02DuhfrflxVdAdE7AZ91h5X6Cn0dmVdFw2TQ==", + "dev": true + }, "@types/parse-json": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/@types/parse-json/-/parse-json-4.0.0.tgz", @@ -4167,6 +4269,21 @@ "integrity": "sha512-wWKOClTTiizcZhXnPY4wikVAwmdYHp8q6DmC+EJUzAMsycb7HB32Kh9RN4+0gExjmPmZSAQjgURXIGATPegAvA==", "dev": true }, + "@types/secp256k1": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/@types/secp256k1/-/secp256k1-4.0.1.tgz", + "integrity": "sha512-+ZjSA8ELlOp8SlKi0YLB2tz9d5iPNEmOBd+8Rz21wTMdaXQIa9b6TEnD6l5qKOCypE7FSyPyck12qZJxSDNoog==", + "dev": true, + "requires": { + "@types/node": "*" + } + }, + "@types/semver": { + "version": "7.3.4", + "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.3.4.tgz", + "integrity": "sha512-+nVsLKlcUCeMzD2ufHEYuJ9a2ovstb6Dp52A5VsoKxDXgvE051XgHI/33I1EymwkRGQkwnA0LkhnUzituGs4EQ==", + "dev": true + }, "@types/serve-static": { "version": "1.13.9", "resolved": "https://registry.npmjs.org/@types/serve-static/-/serve-static-1.13.9.tgz", @@ -4177,6 +4294,12 @@ "@types/node": "*" } }, + "@types/ua-parser-js": { + "version": "0.7.35", + "resolved": "https://registry.npmjs.org/@types/ua-parser-js/-/ua-parser-js-0.7.35.tgz", + "integrity": "sha512-PsPx0RLbo2Un8+ff2buzYJnZjzwhD3jQHPOG2PtVIeOhkRDddMcKU8vJtHpzzfLB95dkUi0qAkfLg2l2Fd0yrQ==", + "dev": true + }, "@types/yauzl": { "version": "2.9.1", "resolved": "https://registry.npmjs.org/@types/yauzl/-/yauzl-2.9.1.tgz", @@ -4353,6 +4476,58 @@ "integrity": "sha512-sL/cEvJWAnClXw0wHk85/2L0G6Sj8UB0Ctc1TEMbKSsmpRosqhwj9gWgFRZSrBr2f9tiXISwNhCPmlfqUqyb9Q==", "dev": true }, + "@wessberg/browserslist-generator": { + "version": "1.0.42", + "resolved": "https://registry.npmjs.org/@wessberg/browserslist-generator/-/browserslist-generator-1.0.42.tgz", + "integrity": "sha512-d7fHVGNbpMFhrwyiQrXlbmjtpmgKI3y0ns+THQNjA1exk6TY8tb6ZmUYn8KVXdCRjZUsvjedNpev/FO8OTTSyQ==", + "dev": true, + "requires": { + "@mdn/browser-compat-data": "^2.0.5", + "@types/object-path": "^0.11.0", + "@types/semver": "^7.3.4", + "@types/ua-parser-js": "^0.7.33", + "browserslist": "4.14.6", + "caniuse-lite": "^1.0.30001156", + "object-path": "^0.11.5", + "semver": "^7.3.2", + "ua-parser-js": "^0.7.22" + }, + "dependencies": { + "browserslist": { + "version": "4.14.6", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.14.6.tgz", + "integrity": "sha512-zeFYcUo85ENhc/zxHbiIp0LGzzTrE2Pv2JhxvS7kpUb9Q9D38kUX6Bie7pGutJ/5iF5rOxE7CepAuWD56xJ33A==", + "dev": true, + "requires": { + "caniuse-lite": "^1.0.30001154", + "electron-to-chromium": "^1.3.585", + "escalade": "^3.1.1", + "node-releases": "^1.1.65" + } + }, + "semver": { + "version": "7.3.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.4.tgz", + "integrity": "sha512-tCfb2WLjqFAtXn4KEdxIhalnRtoKFN7nAwj0B3ZXCbQloV2tq5eDbcTmT68JJD3nRJq24/XgxtQKFIpQdtvmVw==", + "dev": true, + "requires": { + "lru-cache": "^6.0.0" + } + } + } + }, + "@wessberg/stringutil": { + "version": "1.0.19", + "resolved": "https://registry.npmjs.org/@wessberg/stringutil/-/stringutil-1.0.19.tgz", + "integrity": "sha512-9AZHVXWlpN8Cn9k5BC/O0Dzb9E9xfEMXzYrNunwvkUTvuK7xgQPVRZpLo+jWCOZ5r8oBa8NIrHuPEu1hzbb6bg==", + "dev": true + }, + "@wessberg/ts-clone-node": { + "version": "0.3.18", + "resolved": "https://registry.npmjs.org/@wessberg/ts-clone-node/-/ts-clone-node-0.3.18.tgz", + "integrity": "sha512-m/QAPt9K7w5+zmiDJbKxFeIzr6hMuo8euLwYxhj7ipRsyLB2AeAu2/6AF21s45hDXdWsaFwSed3F9R6STMrECg==", + "dev": true + }, "JSONStream": { "version": "1.3.5", "resolved": "https://registry.npmjs.org/JSONStream/-/JSONStream-1.3.5.tgz", @@ -4362,13 +4537,6 @@ "through": ">=2.2.7 <3" } }, - "abab": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/abab/-/abab-1.0.4.tgz", - "integrity": "sha1-X6rZwsB/YN12dw9xzwJbYqY8/U4=", - "dev": true, - "optional": true - }, "accepts": { "version": "1.3.7", "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.7.tgz", @@ -4444,19 +4612,6 @@ "indent-string": "^4.0.0" } }, - "ajv": { - "version": "5.5.2", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-5.5.2.tgz", - "integrity": "sha1-c7Xuyj+rZT49P5Qis0GtQiBdyWU=", - "dev": true, - "optional": true, - "requires": { - "co": "^4.6.0", - "fast-deep-equal": "^1.0.0", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.3.0" - } - }, "ansi-colors": { "version": "4.1.1", "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.1.tgz", @@ -4480,17 +4635,14 @@ } } }, - "ansi-regex": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", - "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", - "dev": true - }, "ansi-styles": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", - "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", - "dev": true + "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" + } }, "ansicolors": { "version": "0.3.2", @@ -4868,13 +5020,6 @@ "integrity": "sha1-iYUI2iIm84DfkEcoRWhJwVAaSw0=", "dev": true }, - "asn1": { - "version": "0.2.3", - "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.3.tgz", - "integrity": "sha1-2sh4dxPJlmhJ/IGAd36+nB3fO4Y=", - "dev": true, - "optional": true - }, "assert-args": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/assert-args/-/assert-args-1.2.1.tgz", @@ -4888,13 +5033,6 @@ "is-class": "0.0.4" } }, - "assert-plus": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", - "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=", - "dev": true, - "optional": true - }, "assertion-error": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-1.1.0.tgz", @@ -4926,8 +5064,7 @@ "version": "0.4.0", "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=", - "dev": true, - "optional": true + "dev": true }, "at-least-node": { "version": "1.0.0", @@ -4941,20 +5078,6 @@ "integrity": "sha1-D+9a1G8b16hQLGVyfwNn1e5D1pY=", "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, - "optional": true - }, - "aws4": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.7.0.tgz", - "integrity": "sha512-32NDda82rhwD9/JBCCkB+MRYDp0oSvlo2IL6rQWA10PQi7tDUM3eqMSltXmY+Oyl/7N3P3qNtAlv7X0d9bI28w==", - "dev": true, - "optional": true - }, "axios": { "version": "0.21.1", "resolved": "https://registry.npmjs.org/axios/-/axios-0.21.1.tgz", @@ -4964,71 +5087,6 @@ "follow-redirects": "^1.10.0" } }, - "babel-code-frame": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-code-frame/-/babel-code-frame-6.26.0.tgz", - "integrity": "sha1-Y/1D99weO7fONZR9uP42mj9Yx0s=", - "dev": true, - "requires": { - "chalk": "^1.1.3", - "esutils": "^2.0.2", - "js-tokens": "^3.0.2" - } - }, - "babel-eslint": { - "version": "11.0.0-beta.2", - "resolved": "https://registry.npmjs.org/babel-eslint/-/babel-eslint-11.0.0-beta.2.tgz", - "integrity": "sha512-D2tunrOu04XloEdU2XVUminUu25FILlGruZmffqH5OSnLDhCheKNvUoM1ihrexdUvhizlix8bjqRnsss4V/UIQ==", - "dev": true, - "requires": { - "eslint-scope": "5.0.0", - "eslint-visitor-keys": "^1.1.0", - "semver": "^6.3.0" - }, - "dependencies": { - "eslint-scope": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.0.0.tgz", - "integrity": "sha512-oYrhJW7S0bxAFDvWqzvMPRm6pcgcnWc4QnofCAqRTRfQC0JcwenzGglTtsLyIuuWFfkqDG9vz67cnttSd53djw==", - "dev": true, - "requires": { - "esrecurse": "^4.1.0", - "estraverse": "^4.1.1" - } - }, - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "dev": true - } - } - }, - "babel-generator": { - "version": "6.26.1", - "resolved": "https://registry.npmjs.org/babel-generator/-/babel-generator-6.26.1.tgz", - "integrity": "sha512-HyfwY6ApZj7BYTcJURpM5tznulaBvyio7/0d4zFOeMPUmfxkCjHocCuoLa2SAGzBI8AREcH3eP3758F672DppA==", - "dev": true, - "requires": { - "babel-messages": "^6.23.0", - "babel-runtime": "^6.26.0", - "babel-types": "^6.26.0", - "detect-indent": "^4.0.0", - "jsesc": "^1.3.0", - "lodash": "^4.17.4", - "source-map": "^0.5.7", - "trim-right": "^1.0.1" - } - }, - "babel-messages": { - "version": "6.23.0", - "resolved": "https://registry.npmjs.org/babel-messages/-/babel-messages-6.23.0.tgz", - "integrity": "sha1-8830cDhYA1sqKVHG7F7fbGLyYw4=", - "dev": true, - "requires": { - "babel-runtime": "^6.22.0" - } - }, "babel-plugin-dynamic-import-node": { "version": "2.3.3", "resolved": "https://registry.npmjs.org/babel-plugin-dynamic-import-node/-/babel-plugin-dynamic-import-node-2.3.3.tgz", @@ -5038,51 +5096,6 @@ "object.assign": "^4.1.0" } }, - "babel-runtime": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.26.0.tgz", - "integrity": "sha1-llxwWGaOgrVde/4E/yM3vItWR/4=", - "dev": true, - "requires": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.11.0" - } - }, - "babel-traverse": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-traverse/-/babel-traverse-6.26.0.tgz", - "integrity": "sha1-RqnL1+3MYsjlwGTi0tjQ9ANXZu4=", - "dev": true, - "requires": { - "babel-code-frame": "^6.26.0", - "babel-messages": "^6.23.0", - "babel-runtime": "^6.26.0", - "babel-types": "^6.26.0", - "babylon": "^6.18.0", - "debug": "^2.6.8", - "globals": "^9.18.0", - "invariant": "^2.2.2", - "lodash": "^4.17.4" - } - }, - "babel-types": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-types/-/babel-types-6.26.0.tgz", - "integrity": "sha1-o7Bz+Uq0nrb6Vc1lInozQ4BjJJc=", - "dev": true, - "requires": { - "babel-runtime": "^6.26.0", - "esutils": "^2.0.2", - "lodash": "^4.17.4", - "to-fast-properties": "^1.0.3" - } - }, - "babylon": { - "version": "6.18.0", - "resolved": "https://registry.npmjs.org/babylon/-/babylon-6.18.0.tgz", - "integrity": "sha512-q/UEjfGJ2Cm3oKV71DJz9d25TPnq5rhBVL2Q4fA5wcC3jcrdn7+SssEybFIxwAvvP+YCsCYNKughoF33GxgycQ==", - "dev": true - }, "backo2": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/backo2/-/backo2-1.0.2.tgz", @@ -5120,25 +5133,6 @@ "integrity": "sha1-RSIe5Cn37h5QNb4/UVM/HN/SmIQ=", "dev": true }, - "bcrypt-pbkdf": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.1.tgz", - "integrity": "sha1-Y7xdy2EzG5K8Bf1SiVPDNGKgb40=", - "dev": true, - "optional": true, - "requires": { - "tweetnacl": "^0.14.3" - }, - "dependencies": { - "tweetnacl": { - "version": "0.14.5", - "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz", - "integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q=", - "dev": true, - "optional": true - } - } - }, "before-after-hook": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/before-after-hook/-/before-after-hook-2.1.0.tgz", @@ -5250,16 +5244,6 @@ "integrity": "sha1-aN/1++YMUes3cl6p4+0xDcwed24=", "dev": true }, - "boom": { - "version": "4.3.1", - "resolved": "https://registry.npmjs.org/boom/-/boom-4.3.1.tgz", - "integrity": "sha1-T4owBctKfjiJ90kDD9JbluAdLjE=", - "dev": true, - "optional": true, - "requires": { - "hoek": "4.x.x" - } - }, "bottleneck": { "version": "2.19.5", "resolved": "https://registry.npmjs.org/bottleneck/-/bottleneck-2.19.5.tgz", @@ -5475,6 +5459,14 @@ "requires": { "pascal-case": "^3.1.1", "tslib": "^1.10.0" + }, + "dependencies": { + "tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", + "dev": true + } } }, "camelcase": { @@ -5510,13 +5502,6 @@ "redeyed": "~2.1.0" } }, - "caseless": { - "version": "0.12.0", - "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz", - "integrity": "sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw=", - "dev": true, - "optional": true - }, "chai": { "version": "4.3.1", "resolved": "https://registry.npmjs.org/chai/-/chai-4.3.1.tgz", @@ -5567,16 +5552,14 @@ } }, "chalk": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", - "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", + "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": "^2.2.1", - "escape-string-regexp": "^1.0.2", - "has-ansi": "^2.0.0", - "strip-ansi": "^3.0.0", - "supports-color": "^2.0.0" + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" } }, "charenc": { @@ -5597,20 +5580,6 @@ "integrity": "sha1-FCD/sQ/URNz8ebQ4kbv//TKoRgA=", "dev": true }, - "cheerio": { - "version": "1.0.0-rc.2", - "resolved": "https://registry.npmjs.org/cheerio/-/cheerio-1.0.0-rc.2.tgz", - "integrity": "sha1-S59TqBsn5NXawxwP/Qz6A8xoMNs=", - "dev": true, - "requires": { - "css-select": "~1.2.0", - "dom-serializer": "~0.1.0", - "entities": "~1.1.1", - "htmlparser2": "^3.9.1", - "lodash": "^4.15.0", - "parse5": "^3.0.1" - } - }, "chokidar": { "version": "3.5.1", "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.1.tgz", @@ -5753,30 +5722,6 @@ "resolved": "https://registry.npmjs.org/clone/-/clone-1.0.4.tgz", "integrity": "sha1-2jCcwmPfFZlMaIypAheco8fNfH4=" }, - "clone-response": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/clone-response/-/clone-response-1.0.2.tgz", - "integrity": "sha1-0dyXOSAxTfZ/vrlCI7TuNQI56Ws=", - "dev": true, - "requires": { - "mimic-response": "^1.0.0" - }, - "dependencies": { - "mimic-response": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-1.0.1.tgz", - "integrity": "sha512-j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ==", - "dev": true - } - } - }, - "co": { - "version": "4.6.0", - "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", - "integrity": "sha1-bqa989hTrlTMuOR7+gvz+QMfsYQ=", - "dev": true, - "optional": true - }, "codecov": { "version": "3.8.1", "resolved": "https://registry.npmjs.org/codecov/-/codecov-3.8.1.tgz", @@ -5811,40 +5756,18 @@ "color-name": "^1.1.1" } }, - "color-logger": { - "version": "0.0.6", - "resolved": "https://registry.npmjs.org/color-logger/-/color-logger-0.0.6.tgz", - "integrity": "sha1-5WJF7ymCJlcRDHy3WpzXhstp7Rs=", - "dev": true - }, "color-name": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", "dev": true }, - "colorette": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/colorette/-/colorette-1.2.1.tgz", - "integrity": "sha512-puCDz0CzydiSYOrnXpz/PKd69zRrribezjtE9yd4zvytoRc8+RY/KJPvtPFKZS3E3wP6neGyMe0vOTlHO5L3Pw==", - "dev": true - }, "colors": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/colors/-/colors-1.4.0.tgz", "integrity": "sha512-a+UqTh4kgZg/SlGvfbzDHpgRu7AAQOmmqRHJnxhRZICKFUT91brVhNNt58CMWU9PsBbv3PDCZUHbVxuDiH2mtA==", "dev": true }, - "combined-stream": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.6.tgz", - "integrity": "sha1-cj599ugBrFYTETp+RFqbactjKBg=", - "dev": true, - "optional": true, - "requires": { - "delayed-stream": "~1.0.0" - } - }, "commander": { "version": "6.2.1", "resolved": "https://registry.npmjs.org/commander/-/commander-6.2.1.tgz", @@ -6243,12 +6166,6 @@ "integrity": "sha1-4wOogrNCzD7oylE6eZmXNNqzriw=", "dev": true }, - "core-js": { - "version": "2.5.5", - "resolved": "https://registry.npmjs.org/core-js/-/core-js-2.5.5.tgz", - "integrity": "sha1-sU3ek2xkDAV5prUMq8wTLdYSfjs=", - "dev": true - }, "core-js-compat": { "version": "3.8.3", "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.8.3.tgz", @@ -6399,28 +6316,6 @@ "integrity": "sha1-iNf/fsDfuG9xPch7u0LQRNPmxBs=", "dev": true }, - "cryptiles": { - "version": "3.1.4", - "resolved": "https://registry.npmjs.org/cryptiles/-/cryptiles-3.1.4.tgz", - "integrity": "sha512-8I1sgZHfVwcSOY6mSGpVU3lw/GSIZvusg8dD2+OGehCJpOhQRLNcH0qb9upQnOH4XhgxxFJSg6E2kx95deb1Tw==", - "dev": true, - "optional": true, - "requires": { - "boom": "5.x.x" - }, - "dependencies": { - "boom": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/boom/-/boom-5.2.0.tgz", - "integrity": "sha512-Z5BTk6ZRe4tXXQlkqftmsAUANpXmuwlsF5Oov8ThoMbQRzdGTA1ngYRW160GexgOgjsFOKJz0LYhoNi+2AMBUw==", - "dev": true, - "optional": true, - "requires": { - "hoek": "4.x.x" - } - } - } - }, "crypto-hash": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/crypto-hash/-/crypto-hash-1.3.0.tgz", @@ -6450,39 +6345,12 @@ "integrity": "sha1-lGfQMsOM+u+58teVASUwYvh/ob0=", "dev": true }, - "cssom": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/cssom/-/cssom-0.3.2.tgz", - "integrity": "sha1-uANhcMefB6kP8vFuIihAJ6JDhIs=", - "dev": true, - "optional": true - }, - "cssstyle": { - "version": "0.2.37", - "resolved": "https://registry.npmjs.org/cssstyle/-/cssstyle-0.2.37.tgz", - "integrity": "sha1-VBCXI0yyUTyDzu06zdwn/yeYfVQ=", - "dev": true, - "optional": true, - "requires": { - "cssom": "0.3.x" - } - }, "dargs": { "version": "7.0.0", "resolved": "https://registry.npmjs.org/dargs/-/dargs-7.0.0.tgz", "integrity": "sha512-2iy1EkLdlBzQGvbweYRFxmFath8+K7+AKB0TlhHWkNuH+TmovaMH/Wp7V7R4u7f4SnX3OgLsU9t1NI9ioDnUpg==", "dev": true }, - "dashdash": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz", - "integrity": "sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA=", - "dev": true, - "optional": true, - "requires": { - "assert-plus": "^1.0.0" - } - }, "dateformat": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/dateformat/-/dateformat-3.0.3.tgz", @@ -6626,8 +6494,7 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=", - "dev": true, - "optional": true + "dev": true }, "depd": { "version": "1.1.2", @@ -6647,15 +6514,6 @@ "integrity": "sha1-l4hXRCxEdJ5CBmE+N5RiBYJqvYA=", "dev": true }, - "detect-indent": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/detect-indent/-/detect-indent-4.0.0.tgz", - "integrity": "sha1-920GQ1LN9Docts5hnE7jqUdd4gg=", - "dev": true, - "requires": { - "repeating": "^2.0.0" - } - }, "diff": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", @@ -6779,16 +6637,6 @@ "stream-shift": "^1.0.0" } }, - "ecc-jsbn": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.1.tgz", - "integrity": "sha1-D8c6ntXw1Tw4GTOYUj735UN3dQU=", - "dev": true, - "optional": true, - "requires": { - "jsbn": "~0.1.0" - } - }, "ecstatic": { "version": "3.3.2", "resolved": "https://registry.npmjs.org/ecstatic/-/ecstatic-3.3.2.tgz", @@ -7038,165 +6886,6 @@ "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", "dev": true }, - "escodegen": { - "version": "1.9.1", - "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-1.9.1.tgz", - "integrity": "sha512-6hTjO1NAWkHnDk3OqQ4YrCuwwmGHL9S3nPlzBOUG/R44rda3wLNrfvQ5fkSGjyhHFKM7ALPKcKGrwvCLe0lC7Q==", - "dev": true, - "optional": true, - "requires": { - "esprima": "^3.1.3", - "estraverse": "^4.2.0", - "esutils": "^2.0.2", - "optionator": "^0.8.1", - "source-map": "~0.6.1" - }, - "dependencies": { - "esprima": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/esprima/-/esprima-3.1.3.tgz", - "integrity": "sha1-/cpRzuYTOJXjyI1TXOSdv/YqRjM=", - "dev": true, - "optional": true - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true, - "optional": true - } - } - }, - "esdoc": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/esdoc/-/esdoc-1.1.0.tgz", - "integrity": "sha512-vsUcp52XJkOWg9m1vDYplGZN2iDzvmjDL5M/Mp8qkoDG3p2s0yIQCIjKR5wfPBaM3eV14a6zhQNYiNTCVzPnxA==", - "dev": true, - "requires": { - "babel-generator": "6.26.1", - "babel-traverse": "6.26.0", - "babylon": "6.18.0", - "cheerio": "1.0.0-rc.2", - "color-logger": "0.0.6", - "escape-html": "1.0.3", - "fs-extra": "5.0.0", - "ice-cap": "0.0.4", - "marked": "0.3.19", - "minimist": "1.2.0", - "taffydb": "2.7.3" - }, - "dependencies": { - "marked": { - "version": "0.3.19", - "resolved": "https://registry.npmjs.org/marked/-/marked-0.3.19.tgz", - "integrity": "sha512-ea2eGWOqNxPcXv8dyERdSr/6FmzvWwzjMxpfGB/sbMccXoct+xY+YukPD+QTUZwyvK7BZwcr4m21WBOW41pAkg==", - "dev": true - }, - "minimist": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz", - "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=", - "dev": true - } - } - }, - "esdoc-accessor-plugin": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/esdoc-accessor-plugin/-/esdoc-accessor-plugin-1.0.0.tgz", - "integrity": "sha1-eRukhy5sQDUVznSbE0jW8Ck62es=", - "dev": true - }, - "esdoc-brand-plugin": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/esdoc-brand-plugin/-/esdoc-brand-plugin-1.0.1.tgz", - "integrity": "sha512-Yv9j3M7qk5PSLmSeD6MbPsfIsEf8K43EdH8qZpE/GZwnJCRVmDPrZJ1cLDj/fPu6P35YqgcEaJK4E2NL/CKA7g==", - "dev": true, - "requires": { - "cheerio": "0.22.0" - }, - "dependencies": { - "cheerio": { - "version": "0.22.0", - "resolved": "https://registry.npmjs.org/cheerio/-/cheerio-0.22.0.tgz", - "integrity": "sha1-qbqoYKP5tZWmuBsahocxIe06Jp4=", - "dev": true, - "requires": { - "css-select": "~1.2.0", - "dom-serializer": "~0.1.0", - "entities": "~1.1.1", - "htmlparser2": "^3.9.1", - "lodash.assignin": "^4.0.9", - "lodash.bind": "^4.1.4", - "lodash.defaults": "^4.0.1", - "lodash.filter": "^4.4.0", - "lodash.flatten": "^4.2.0", - "lodash.foreach": "^4.3.0", - "lodash.map": "^4.4.0", - "lodash.merge": "^4.4.0", - "lodash.pick": "^4.2.1", - "lodash.reduce": "^4.4.0", - "lodash.reject": "^4.4.0", - "lodash.some": "^4.4.0" - } - } - } - }, - "esdoc-coverage-plugin": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/esdoc-coverage-plugin/-/esdoc-coverage-plugin-1.1.0.tgz", - "integrity": "sha1-OGmGnNf4eJH5cmJXh2laKZrs5Fw=", - "dev": true - }, - "esdoc-ecmascript-proposal-plugin": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/esdoc-ecmascript-proposal-plugin/-/esdoc-ecmascript-proposal-plugin-1.0.0.tgz", - "integrity": "sha1-OQ3FZWuoooMOOdujVw15E43y/9k=", - "dev": true - }, - "esdoc-external-ecmascript-plugin": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/esdoc-external-ecmascript-plugin/-/esdoc-external-ecmascript-plugin-1.0.0.tgz", - "integrity": "sha1-ePVl1KDFGFrGMVJhTc4f4ahmiNs=", - "dev": true, - "requires": { - "fs-extra": "1.0.0" - }, - "dependencies": { - "fs-extra": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-1.0.0.tgz", - "integrity": "sha1-zTzl9+fLYUWIP8rjGR6Yd/hYeVA=", - "dev": true, - "requires": { - "graceful-fs": "^4.1.2", - "jsonfile": "^2.1.0", - "klaw": "^1.0.0" - } - }, - "jsonfile": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-2.4.0.tgz", - "integrity": "sha1-NzaitCi4e72gzIO1P6PWM6NcKug=", - "dev": true, - "requires": { - "graceful-fs": "^4.1.6" - } - } - } - }, - "esdoc-flow-type-plugin": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/esdoc-flow-type-plugin/-/esdoc-flow-type-plugin-1.1.0.tgz", - "integrity": "sha512-WxVUsXjj+xBJfPRuoaMZ2mcJCpP8Ft0fwhKbZ5HlFs6Lrn42JuxtFPIYGWEtZJpL48OCJDiayEBn6d9DMjrErg==", - "dev": true - }, - "esdoc-importpath-plugin": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/esdoc-importpath-plugin/-/esdoc-importpath-plugin-1.0.2.tgz", - "integrity": "sha512-o9/EIk8YyufjzDBrTZu7/6he2No515b51Nnd8QGzXvdTM+rekQjZ7wxVjcqTUQ68bbYLFKqaxZBNltYUbD5aUQ==", - "dev": true - }, "esdoc-inject-style-plugin": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/esdoc-inject-style-plugin/-/esdoc-inject-style-plugin-1.0.0.tgz", @@ -7253,174 +6942,6 @@ } } }, - "esdoc-integrate-manual-plugin": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/esdoc-integrate-manual-plugin/-/esdoc-integrate-manual-plugin-1.0.0.tgz", - "integrity": "sha1-GFSmqhwIEDXXyMUeO91PtlqkcRw=", - "dev": true - }, - "esdoc-integrate-test-plugin": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/esdoc-integrate-test-plugin/-/esdoc-integrate-test-plugin-1.0.0.tgz", - "integrity": "sha1-4tDQAJD38MNeXS8sAzMnp55T5Ak=", - "dev": true - }, - "esdoc-lint-plugin": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/esdoc-lint-plugin/-/esdoc-lint-plugin-1.0.2.tgz", - "integrity": "sha512-24AYqD2WbZI9We02I7/6dzAa7yUliRTFUaJCZAcYJMQicJT5gUrNFVaI8XmWEN/mhF3szIn1uZBNWeLul4CmNw==", - "dev": true - }, - "esdoc-publish-html-plugin": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/esdoc-publish-html-plugin/-/esdoc-publish-html-plugin-1.1.2.tgz", - "integrity": "sha512-hG1fZmTcEp3P/Hv/qKiMdG1qSp8MjnVZMMkxL5P5ry7I2sX0HQ4P9lt2lms+90Lt0r340HHhSuVx107UL7dphg==", - "dev": true, - "requires": { - "babel-generator": "6.11.4", - "cheerio": "0.22.0", - "escape-html": "1.0.3", - "fs-extra": "1.0.0", - "ice-cap": "0.0.4", - "marked": "0.3.19", - "taffydb": "2.7.2" - }, - "dependencies": { - "babel-generator": { - "version": "6.11.4", - "resolved": "https://registry.npmjs.org/babel-generator/-/babel-generator-6.11.4.tgz", - "integrity": "sha1-FPaTOrsgxiZm0n47e59bncBxKpo=", - "dev": true, - "requires": { - "babel-messages": "^6.8.0", - "babel-runtime": "^6.9.0", - "babel-types": "^6.10.2", - "detect-indent": "^3.0.1", - "lodash": "^4.2.0", - "source-map": "^0.5.0" - } - }, - "cheerio": { - "version": "0.22.0", - "resolved": "https://registry.npmjs.org/cheerio/-/cheerio-0.22.0.tgz", - "integrity": "sha1-qbqoYKP5tZWmuBsahocxIe06Jp4=", - "dev": true, - "requires": { - "css-select": "~1.2.0", - "dom-serializer": "~0.1.0", - "entities": "~1.1.1", - "htmlparser2": "^3.9.1", - "lodash.assignin": "^4.0.9", - "lodash.bind": "^4.1.4", - "lodash.defaults": "^4.0.1", - "lodash.filter": "^4.4.0", - "lodash.flatten": "^4.2.0", - "lodash.foreach": "^4.3.0", - "lodash.map": "^4.4.0", - "lodash.merge": "^4.4.0", - "lodash.pick": "^4.2.1", - "lodash.reduce": "^4.4.0", - "lodash.reject": "^4.4.0", - "lodash.some": "^4.4.0" - } - }, - "detect-indent": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/detect-indent/-/detect-indent-3.0.1.tgz", - "integrity": "sha1-ncXl3bzu+DJXZLlFGwK8bVQIT3U=", - "dev": true, - "requires": { - "get-stdin": "^4.0.1", - "minimist": "^1.1.0", - "repeating": "^1.1.0" - } - }, - "fs-extra": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-1.0.0.tgz", - "integrity": "sha1-zTzl9+fLYUWIP8rjGR6Yd/hYeVA=", - "dev": true, - "requires": { - "graceful-fs": "^4.1.2", - "jsonfile": "^2.1.0", - "klaw": "^1.0.0" - } - }, - "jsonfile": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-2.4.0.tgz", - "integrity": "sha1-NzaitCi4e72gzIO1P6PWM6NcKug=", - "dev": true, - "requires": { - "graceful-fs": "^4.1.6" - } - }, - "marked": { - "version": "0.3.19", - "resolved": "https://registry.npmjs.org/marked/-/marked-0.3.19.tgz", - "integrity": "sha512-ea2eGWOqNxPcXv8dyERdSr/6FmzvWwzjMxpfGB/sbMccXoct+xY+YukPD+QTUZwyvK7BZwcr4m21WBOW41pAkg==", - "dev": true - }, - "minimist": { - "version": "1.2.5", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz", - "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==", - "dev": true - }, - "repeating": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/repeating/-/repeating-1.1.3.tgz", - "integrity": "sha1-PUEUIYh3U3SU+X93+Xhfq4EPpKw=", - "dev": true, - "requires": { - "is-finite": "^1.0.0" - } - }, - "taffydb": { - "version": "2.7.2", - "resolved": "https://registry.npmjs.org/taffydb/-/taffydb-2.7.2.tgz", - "integrity": "sha1-e/gQalwaSCUbPjvAoOFzJIn9Dcg=", - "dev": true - } - } - }, - "esdoc-standard-plugin": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/esdoc-standard-plugin/-/esdoc-standard-plugin-1.0.0.tgz", - "integrity": "sha1-ZhIBysfvhokkkCRG/awVJyU8XU0=", - "dev": true, - "requires": { - "esdoc-accessor-plugin": "^1.0.0", - "esdoc-brand-plugin": "^1.0.0", - "esdoc-coverage-plugin": "^1.0.0", - "esdoc-external-ecmascript-plugin": "^1.0.0", - "esdoc-integrate-manual-plugin": "^1.0.0", - "esdoc-integrate-test-plugin": "^1.0.0", - "esdoc-lint-plugin": "^1.0.0", - "esdoc-publish-html-plugin": "^1.0.0", - "esdoc-type-inference-plugin": "^1.0.0", - "esdoc-undocumented-identifier-plugin": "^1.0.0", - "esdoc-unexported-identifier-plugin": "^1.0.0" - } - }, - "esdoc-type-inference-plugin": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/esdoc-type-inference-plugin/-/esdoc-type-inference-plugin-1.0.2.tgz", - "integrity": "sha512-tMIcEHNe1uhUGA7lT1UTWc9hs2dzthnTgmqXpmeUhurk7fL2tinvoH+IVvG/sLROzwOGZQS9zW/F9KWnpMzLIQ==", - "dev": true - }, - "esdoc-undocumented-identifier-plugin": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/esdoc-undocumented-identifier-plugin/-/esdoc-undocumented-identifier-plugin-1.0.0.tgz", - "integrity": "sha1-guBdNxwy0ShxFA8dXIHsmf2cwsg=", - "dev": true - }, - "esdoc-unexported-identifier-plugin": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/esdoc-unexported-identifier-plugin/-/esdoc-unexported-identifier-plugin-1.0.0.tgz", - "integrity": "sha1-H5h0xqfCvr+a05fDzrdcnGnaurE=", - "dev": true - }, "eslint": { "version": "7.21.0", "resolved": "https://registry.npmjs.org/eslint/-/eslint-7.21.0.tgz", @@ -7967,21 +7488,18 @@ } } }, - "esrecurse": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.2.1.tgz", - "integrity": "sha512-64RBB++fIOAXPw3P9cy89qfMlvZEXZkqqJkjqqXIvzP5ezRZjW+lPWjw35UX/3EhUPFYbg5ER4JYgDw4007/DQ==", - "dev": true, - "requires": { - "estraverse": "^4.1.0" - } - }, "estraverse": { "version": "4.2.0", "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.2.0.tgz", "integrity": "sha1-De4/7TH81GlhjOc0IJn8GvoL2xM=", "dev": true }, + "estree-walker": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz", + "integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==", + "dev": true + }, "esutils": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.2.tgz", @@ -8188,8 +7706,7 @@ "version": "3.0.2", "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==", - "dev": true, - "optional": true + "dev": true }, "extract-zip": { "version": "2.0.1", @@ -8220,25 +7737,11 @@ } } }, - "extsprintf": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz", - "integrity": "sha1-lpGEQOMEGnpBT4xS48V06zw+HgU=", - "dev": true, - "optional": true - }, "eyes": { "version": "0.1.8", "resolved": "https://registry.npmjs.org/eyes/-/eyes-0.1.8.tgz", "integrity": "sha1-Ys8SAjTGg3hdkCNIqADvPgzCC8A=" }, - "fast-deep-equal": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-1.1.0.tgz", - "integrity": "sha1-wFNHeBfIa1HaqFPIHgWbcz0CNhQ=", - "dev": true, - "optional": true - }, "fast-diff": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/fast-diff/-/fast-diff-1.2.0.tgz", @@ -8633,50 +8136,15 @@ } }, "@babel/highlight": { - "version": "7.12.13", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.12.13.tgz", - "integrity": "sha512-kocDQvIbgMKlWxXe9fof3TQ+gkIPOUSEYhJjqUjvKMez3krV7vbzYCDq39Oj11UAVK7JqPVGQPlgE85dPNlQww==", + "version": "7.13.10", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.13.10.tgz", + "integrity": "sha512-5aPpe5XQPzflQrFwL1/QoeHkP2MsA4JCntcXHRhEsdsfPVkvPi2w7Qix4iV7t5S/oC9OodGrggd8aco1g3SZFg==", "dev": true, "requires": { "@babel/helper-validator-identifier": "^7.12.11", "chalk": "^2.0.0", "js-tokens": "^4.0.0" } - }, - "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" - } - }, - "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" - } - }, - "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 - }, - "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" - } } } }, @@ -8745,25 +8213,6 @@ } } }, - "forever-agent": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz", - "integrity": "sha1-+8cfDEGt6zf5bFd60e1C2P2sypE=", - "dev": true, - "optional": true - }, - "form-data": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.2.tgz", - "integrity": "sha1-SXBJi+YEwgwAXU9cI67NIda0kJk=", - "dev": true, - "optional": true, - "requires": { - "asynckit": "^0.4.0", - "combined-stream": "1.0.6", - "mime-types": "^2.1.12" - } - }, "forwarded": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.1.2.tgz", @@ -8804,17 +8253,6 @@ "integrity": "sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==", "dev": true }, - "fs-extra": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-5.0.0.tgz", - "integrity": "sha512-66Pm4RYbjzdyeuqudYqhFiNBbCIuI9kgRqLPSHIlXHidW8NIQtVdkM1yeZ4lXwuhbTETv3EUGMNHAAw6hiundQ==", - "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", @@ -8892,12 +8330,6 @@ "resolved": "https://registry.npmjs.org/get-prototype-of/-/get-prototype-of-0.0.0.tgz", "integrity": "sha1-mHcr0QcW0W3rSzIlFsRp78oorEQ=" }, - "get-stdin": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/get-stdin/-/get-stdin-4.0.1.tgz", - "integrity": "sha1-uWjGsKBDhDJJAui/Gl3zJXmkUP4=", - "dev": true - }, "get-stream": { "version": "5.1.0", "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.1.0.tgz", @@ -8907,16 +8339,6 @@ "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, - "optional": true, - "requires": { - "assert-plus": "^1.0.0" - } - }, "git-log-parser": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/git-log-parser/-/git-log-parser-1.2.0.tgz", @@ -9209,12 +8631,6 @@ "ini": "^1.3.4" } }, - "globals": { - "version": "9.18.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-9.18.0.tgz", - "integrity": "sha512-S0nG3CLEQiY/ILxqtztTWH/3iRRdyBLw6KMDxnKMchrtbj2OFmehVh0WUCfW3DUrIgx/qFrJPICrq4Z4sTR9UQ==", - "dev": true - }, "globby": { "version": "11.0.1", "resolved": "https://registry.npmjs.org/globby/-/globby-11.0.1.tgz", @@ -9319,24 +8735,6 @@ } } }, - "har-schema": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz", - "integrity": "sha1-qUwiJOvKwEeCoNkDVSHyRzW37JI=", - "dev": true, - "optional": true - }, - "har-validator": { - "version": "5.0.3", - "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.0.3.tgz", - "integrity": "sha1-ukAsJmGU8VlW7xXg/PJCmT9qff0=", - "dev": true, - "optional": true, - "requires": { - "ajv": "^5.1.0", - "har-schema": "^2.0.0" - } - }, "hard-rejection": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/hard-rejection/-/hard-rejection-2.1.0.tgz", @@ -9352,15 +8750,6 @@ "function-bind": "^1.0.2" } }, - "has-ansi": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/has-ansi/-/has-ansi-2.0.0.tgz", - "integrity": "sha1-NPUEnOHs3ysGSa8+8k5F7TVBbZE=", - "dev": true, - "requires": { - "ansi-regex": "^2.0.0" - } - }, "has-flag": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", @@ -9406,19 +8795,6 @@ } } }, - "hawk": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/hawk/-/hawk-6.0.2.tgz", - "integrity": "sha512-miowhl2+U7Qle4vdLqDdPt9m09K6yZhkLDTWGoUiUzrQCn+mHHSmfJgAyGaLRZbPmTqfFFjRV1QWCW0VWUJBbQ==", - "dev": true, - "optional": true, - "requires": { - "boom": "4.x.x", - "cryptiles": "3.x.x", - "hoek": "4.x.x", - "sntp": "2.x.x" - } - }, "he": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz", @@ -9435,13 +8811,6 @@ "minimalistic-crypto-utils": "^1.0.1" } }, - "hoek": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/hoek/-/hoek-4.2.1.tgz", - "integrity": "sha512-QLg82fGkfnJ/4iy1xZ81/9SIJiq1NGFUMGs6ParyjBZr6jW2Ufj/snDqTHixNlHdPNwN2RLVD0Pi3igeK9+JfA==", - "dev": true, - "optional": true - }, "hook-std": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/hook-std/-/hook-std-2.0.0.tgz", @@ -9549,18 +8918,6 @@ "union": "~0.5.0" } }, - "http-signature": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz", - "integrity": "sha1-muzZJRFHcvPZW2WmCruPfBj7rOE=", - "dev": true, - "optional": true, - "requires": { - "assert-plus": "^1.0.0", - "jsprim": "^1.2.2", - "sshpk": "^1.7.0" - } - }, "http2-wrapper": { "version": "1.0.0-beta.5.2", "resolved": "https://registry.npmjs.org/http2-wrapper/-/http2-wrapper-1.0.0-beta.5.2.tgz", @@ -9612,154 +8969,6 @@ "integrity": "sha512-SEQu7vl8KjNL2eoGBLF3+wAjpsNfA9XMlXAYj/3EdaNfAlxKthD1xjEQfGOUhllCGGJVNY34bRr6lPINhNjyZw==", "dev": true }, - "ice-cap": { - "version": "0.0.4", - "resolved": "https://registry.npmjs.org/ice-cap/-/ice-cap-0.0.4.tgz", - "integrity": "sha1-im0xq0ysjUtW3k+pRt8zUlYbbhg=", - "dev": true, - "requires": { - "cheerio": "0.20.0", - "color-logger": "0.0.3" - }, - "dependencies": { - "acorn": { - "version": "2.7.0", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-2.7.0.tgz", - "integrity": "sha1-q259nYhqrKiwhbwzEreaGYQz8Oc=", - "dev": true, - "optional": true - }, - "acorn-globals": { - "version": "1.0.9", - "resolved": "https://registry.npmjs.org/acorn-globals/-/acorn-globals-1.0.9.tgz", - "integrity": "sha1-VbtemGkVB7dFedBRNBMhfDgMVM8=", - "dev": true, - "optional": true, - "requires": { - "acorn": "^2.1.0" - } - }, - "cheerio": { - "version": "0.20.0", - "resolved": "https://registry.npmjs.org/cheerio/-/cheerio-0.20.0.tgz", - "integrity": "sha1-XHEPK6uVZTJyhCugHG6mGzVF7DU=", - "dev": true, - "requires": { - "css-select": "~1.2.0", - "dom-serializer": "~0.1.0", - "entities": "~1.1.1", - "htmlparser2": "~3.8.1", - "jsdom": "^7.0.2", - "lodash": "^4.1.0" - } - }, - "color-logger": { - "version": "0.0.3", - "resolved": "https://registry.npmjs.org/color-logger/-/color-logger-0.0.3.tgz", - "integrity": "sha1-2bIt0dlz4Waxi/MT+fSBu6TfIBg=", - "dev": true - }, - "domhandler": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-2.3.0.tgz", - "integrity": "sha1-LeWaCCLVAn+r/28DLCsloqir5zg=", - "dev": true, - "requires": { - "domelementtype": "1" - } - }, - "htmlparser2": { - "version": "3.8.3", - "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-3.8.3.tgz", - "integrity": "sha1-mWwosZFRaovoZQGn15dX5ccMEGg=", - "dev": true, - "requires": { - "domelementtype": "1", - "domhandler": "2.3", - "domutils": "1.5", - "entities": "1.0", - "readable-stream": "1.1" - }, - "dependencies": { - "entities": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/entities/-/entities-1.0.0.tgz", - "integrity": "sha1-sph6o4ITR/zeZCsk/fyeT7cSvyY=", - "dev": true - } - } - }, - "isarray": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", - "integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8=", - "dev": true - }, - "jsdom": { - "version": "7.2.2", - "resolved": "https://registry.npmjs.org/jsdom/-/jsdom-7.2.2.tgz", - "integrity": "sha1-QLQCdwwr2iNGkJa+6Rq2deOx/G4=", - "dev": true, - "optional": true, - "requires": { - "abab": "^1.0.0", - "acorn": "^2.4.0", - "acorn-globals": "^1.0.4", - "cssom": ">= 0.3.0 < 0.4.0", - "cssstyle": ">= 0.2.29 < 0.3.0", - "escodegen": "^1.6.1", - "nwmatcher": ">= 1.3.7 < 2.0.0", - "parse5": "^1.5.1", - "request": "^2.55.0", - "sax": "^1.1.4", - "symbol-tree": ">= 3.1.0 < 4.0.0", - "tough-cookie": "^2.2.0", - "webidl-conversions": "^2.0.0", - "whatwg-url-compat": "~0.6.5", - "xml-name-validator": ">= 2.0.1 < 3.0.0" - } - }, - "parse5": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/parse5/-/parse5-1.5.1.tgz", - "integrity": "sha1-m387DeMr543CQBsXVzzK8Pb1nZQ=", - "dev": true, - "optional": true - }, - "readable-stream": { - "version": "1.1.14", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.1.14.tgz", - "integrity": "sha1-fPTFTvZI44EwhMY23SB54WbAgdk=", - "dev": true, - "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.1", - "isarray": "0.0.1", - "string_decoder": "~0.10.x" - } - }, - "string_decoder": { - "version": "0.10.31", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", - "integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ=", - "dev": true - }, - "webidl-conversions": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-2.0.1.tgz", - "integrity": "sha1-O/glj30xjHRDw28uFpQCoaZwNQY=", - "dev": true, - "optional": true - }, - "xml-name-validator": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-2.0.1.tgz", - "integrity": "sha1-TYuPHszTQZqjYgYb7O9RXh5VljU=", - "dev": true, - "optional": true - } - } - }, "iconv-lite": { "version": "0.4.24", "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", @@ -9865,15 +9074,6 @@ "p-is-promise": "^3.0.0" } }, - "invariant": { - "version": "2.2.4", - "resolved": "https://registry.npmjs.org/invariant/-/invariant-2.2.4.tgz", - "integrity": "sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA==", - "dev": true, - "requires": { - "loose-envify": "^1.0.0" - } - }, "ipaddr.js": { "version": "1.9.1", "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", @@ -9966,15 +9166,6 @@ "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=", "dev": true }, - "is-finite": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-finite/-/is-finite-1.0.2.tgz", - "integrity": "sha1-zGZ3aVYCvlUO8R6LSqYwU0K20Ko=", - "dev": true, - "requires": { - "number-is-nan": "^1.0.0" - } - }, "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", @@ -10113,13 +9304,6 @@ "integrity": "sha512-S/2fF5wH8SJA/kmwr6HYhK/RI/OkhD84k8ntalo0iJjZikgq1XFvR5M8NPT1x5F7fBwCG3qHfnzeP/Vh/ZxCUA==", "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, - "optional": true - }, "issue-parser": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/issue-parser/-/issue-parser-6.0.0.tgz", @@ -10437,9 +9621,9 @@ "integrity": "sha512-gF1cRrHhIzNfToc802P800N8PpXS+evLLXfsVpowqmAFR9uwbi89WvXg2QspOmXL8QL86J4T1EpFu+yUkwJY3Q==" }, "js-tokens": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-3.0.2.tgz", - "integrity": "sha1-mGbfOVECEw449/mWvOtlRDIJwls=", + "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": { @@ -10452,19 +9636,6 @@ "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, - "optional": true - }, - "jsesc": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-1.3.0.tgz", - "integrity": "sha1-RsP+yMGJKxKwgz25vHYiF226s0s=", - "dev": true - }, "json-buffer": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", @@ -10483,20 +9654,6 @@ "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", "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, - "optional": true - }, - "json-schema-traverse": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.3.1.tgz", - "integrity": "sha1-NJptRMU6Ud6JtAgFxdXlm0F9M0A=", - "dev": true, - "optional": true - }, "json-stable-stringify-without-jsonify": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", @@ -10537,19 +9694,6 @@ "resolved": "https://registry.npmjs.org/jsonparse/-/jsonparse-1.3.1.tgz", "integrity": "sha1-P02uSpH6wxX3EGL4UhzCOfE2YoA=" }, - "jsprim": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.1.tgz", - "integrity": "sha1-MT5mvB5cwG5Di8G3SZwuXFastqI=", - "dev": true, - "optional": true, - "requires": { - "assert-plus": "1.0.0", - "extsprintf": "1.3.0", - "json-schema": "0.2.3", - "verror": "1.10.0" - } - }, "just-extend": { "version": "4.1.1", "resolved": "https://registry.npmjs.org/just-extend/-/just-extend-4.1.1.tgz", @@ -10618,17 +9762,6 @@ "integrity": "sha1-wuep93IJTe6dNCAq6KzORoeHVYA=", "dev": true }, - "levn": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/levn/-/levn-0.3.0.tgz", - "integrity": "sha1-OwmSTt+fCDwEkP3UwLxEIeBHZO4=", - "dev": true, - "optional": true, - "requires": { - "prelude-ls": "~1.1.2", - "type-check": "~0.3.2" - } - }, "lines-and-columns": { "version": "1.1.6", "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.1.6.tgz", @@ -10866,15 +9999,6 @@ } } }, - "loose-envify": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.3.1.tgz", - "integrity": "sha1-0aitM/qc4OcT1l/dCsi3SNR4yEg=", - "dev": true, - "requires": { - "js-tokens": "^3.0.0" - } - }, "lower-case": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/lower-case/-/lower-case-2.0.2.tgz", @@ -10907,6 +10031,12 @@ "yallist": "^4.0.0" } }, + "lunr": { + "version": "2.3.9", + "resolved": "https://registry.npmjs.org/lunr/-/lunr-2.3.9.tgz", + "integrity": "sha512-zTU3DaZaF3Rt9rhN3uBMGQD3dD2/vFQqnvZCDv4dl5iOzq2IZQqTxu90r4E5J+nP70J3ilqVCrbho2eWaeW8Ow==", + "dev": true + }, "macos-release": { "version": "2.4.1", "resolved": "https://registry.npmjs.org/macos-release/-/macos-release-2.4.1.tgz", @@ -11357,15 +10487,13 @@ "version": "1.33.0", "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.33.0.tgz", "integrity": "sha512-BHJ/EKruNIqJf/QahvxwQZXKygOQ256myeN/Ew+THcAa5q+PjyTTMMeNQC4DZw5AwfvelsUrA6B67NKMqXDbzQ==", - "dev": true, - "optional": true + "dev": true }, "mime-types": { "version": "2.1.18", "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.18.tgz", "integrity": "sha512-lc/aahn+t4/SWV/qcmumYjymLsWfN3ELhpmVuUFjgsORruuZPVSwAQryq+HHGvO/SI2KVX26bx+En+zhM8g8hQ==", "dev": true, - "optional": true, "requires": { "mime-db": "~1.33.0" } @@ -15611,19 +14739,6 @@ "boolbase": "~1.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 - }, - "nwmatcher": { - "version": "1.4.4", - "resolved": "https://registry.npmjs.org/nwmatcher/-/nwmatcher-1.4.4.tgz", - "integrity": "sha512-3iuY4N5dhgMpCUrOVnuAdGrgxVqV2cJpM+XNccjR2DKOB1RUP0aA+wGXEiNziG/UKboFyGBIoKOaNlJxx8bciQ==", - "dev": true, - "optional": true - }, "nyc": { "version": "15.1.0", "resolved": "https://registry.npmjs.org/nyc/-/nyc-15.1.0.tgz", @@ -15774,13 +14889,6 @@ } } }, - "oauth-sign": { - "version": "0.8.2", - "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.8.2.tgz", - "integrity": "sha1-Rqarfwrq2N6unsBWV4C31O/rnUM=", - "dev": true, - "optional": true - }, "object-assign": { "version": "4.1.1", "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", @@ -15799,6 +14907,12 @@ "integrity": "sha1-xUYBd4rVYPEULODgG8yotW0TQm0=", "dev": true }, + "object-path": { + "version": "0.11.5", + "resolved": "https://registry.npmjs.org/object-path/-/object-path-0.11.5.tgz", + "integrity": "sha512-jgSbThcoR/s+XumvGMTMf81QVBmah+/Q7K7YduKeKVWL7N111unR2d6pZZarSk6kY/caeNxUDyxOvMWyzoU2eg==", + "dev": true + }, "object.assign": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.0.tgz", @@ -15982,27 +15096,38 @@ "mimic-fn": "^2.1.0" } }, + "onigasm": { + "version": "2.2.5", + "resolved": "https://registry.npmjs.org/onigasm/-/onigasm-2.2.5.tgz", + "integrity": "sha512-F+th54mPc0l1lp1ZcFMyL/jTs2Tlq4SqIHKIXGZOR/VkHkF9A7Fr5rRr5+ZG/lWeRsyrClLYRq7s/yFQ/XhWCA==", + "dev": true, + "requires": { + "lru-cache": "^5.1.1" + }, + "dependencies": { + "lru-cache": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", + "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", + "dev": true, + "requires": { + "yallist": "^3.0.2" + } + }, + "yallist": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", + "dev": true + } + } + }, "opener": { "version": "1.5.2", "resolved": "https://registry.npmjs.org/opener/-/opener-1.5.2.tgz", "integrity": "sha512-ur5UIdyw5Y7yEj9wLzhqXiy6GZ3Mwx0yGI+5sMn2r0N0v3cKJvUmFH5yPP+WXh9e0xfyzyJX95D8l088DNFj7A==", "dev": true }, - "optionator": { - "version": "0.8.2", - "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.8.2.tgz", - "integrity": "sha1-NkxeQJ0/TWMB1sC0wFu6UBgK62Q=", - "dev": true, - "optional": true, - "requires": { - "deep-is": "~0.1.3", - "fast-levenshtein": "~2.0.4", - "levn": "~0.3.0", - "prelude-ls": "~1.1.2", - "type-check": "~0.3.2", - "wordwrap": "~1.0.0" - } - }, "os-name": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/os-name/-/os-name-3.1.0.tgz", @@ -16148,15 +15273,6 @@ "error-ex": "^1.2.0" } }, - "parse5": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/parse5/-/parse5-3.0.3.tgz", - "integrity": "sha512-rgO9Zg5LLLkfJF9E6CCmXlSE4UVceloys8JrFqCcHloC3usd/kJCyPDwH2SOlzix2j3xaP9sUX3e8+kvkuleAA==", - "dev": true, - "requires": { - "@types/node": "*" - } - }, "parseurl": { "version": "1.3.3", "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", @@ -16351,13 +15467,6 @@ } } }, - "prelude-ls": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.1.2.tgz", - "integrity": "sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ=", - "dev": true, - "optional": true - }, "prepend-http": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/prepend-http/-/prepend-http-1.0.4.tgz", @@ -16435,13 +15544,6 @@ "once": "^1.3.1" } }, - "punycode": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz", - "integrity": "sha1-wNWmOycYgArY4esPpSachN1BhF4=", - "dev": true, - "optional": true - }, "puppeteer": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/puppeteer/-/puppeteer-4.0.1.tgz", @@ -16655,12 +15757,6 @@ "regenerate": "^1.4.0" } }, - "regenerator-runtime": { - "version": "0.11.1", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz", - "integrity": "sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg==", - "dev": true - }, "regenerator-transform": { "version": "0.14.5", "resolved": "https://registry.npmjs.org/regenerator-transform/-/regenerator-transform-0.14.5.tgz", @@ -16731,46 +15827,6 @@ "es6-error": "^4.0.1" } }, - "repeating": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/repeating/-/repeating-2.0.1.tgz", - "integrity": "sha1-UhTFOpJtNVJwdSf7q0FdvAjQbdo=", - "dev": true, - "requires": { - "is-finite": "^1.0.0" - } - }, - "request": { - "version": "2.85.0", - "resolved": "https://registry.npmjs.org/request/-/request-2.85.0.tgz", - "integrity": "sha512-8H7Ehijd4js+s6wuVPLjwORxD4zeuyjYugprdOXlPSqaApmL/QOy+EB/beICHVCHkGMKNh5rvihb5ov+IDw4mg==", - "dev": true, - "optional": true, - "requires": { - "aws-sign2": "~0.7.0", - "aws4": "^1.6.0", - "caseless": "~0.12.0", - "combined-stream": "~1.0.5", - "extend": "~3.0.1", - "forever-agent": "~0.6.1", - "form-data": "~2.3.1", - "har-validator": "~5.0.3", - "hawk": "~6.0.2", - "http-signature": "~1.2.0", - "is-typedarray": "~1.0.0", - "isstream": "~0.1.2", - "json-stringify-safe": "~5.0.1", - "mime-types": "~2.1.17", - "oauth-sign": "~0.8.2", - "performance-now": "^2.1.0", - "qs": "~6.5.1", - "safe-buffer": "^5.1.1", - "stringstream": "~0.0.5", - "tough-cookie": "~2.3.3", - "tunnel-agent": "^0.6.0", - "uuid": "^3.1.0" - } - }, "require-directory": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", @@ -16881,64 +15937,14 @@ "fsevents": "~2.3.1" } }, - "rollup-plugin-copy": { - "version": "3.4.0", - "resolved": "https://registry.npmjs.org/rollup-plugin-copy/-/rollup-plugin-copy-3.4.0.tgz", - "integrity": "sha512-rGUmYYsYsceRJRqLVlE9FivJMxJ7X6jDlP79fmFkL8sJs7VVMSVyA2yfyL+PGyO/vJs4A87hwhgVfz61njI+uQ==", + "rollup-plugin-flat-dts": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/rollup-plugin-flat-dts/-/rollup-plugin-flat-dts-1.0.3.tgz", + "integrity": "sha512-8699v6JqSZNCbmnvnL0A734qWxIIB7c4z9LIWof0VHExUSYcJL4n38D+QtYfZj9Y0rgewvwWsoIFMPAB0FfGrw==", "dev": true, "requires": { - "@types/fs-extra": "^8.0.1", - "colorette": "^1.1.0", - "fs-extra": "^8.1.0", - "globby": "10.0.1", - "is-plain-object": "^3.0.0" - }, - "dependencies": { - "fs-extra": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-8.1.0.tgz", - "integrity": "sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==", - "dev": true, - "requires": { - "graceful-fs": "^4.2.0", - "jsonfile": "^4.0.0", - "universalify": "^0.1.0" - } - }, - "globby": { - "version": "10.0.1", - "resolved": "https://registry.npmjs.org/globby/-/globby-10.0.1.tgz", - "integrity": "sha512-sSs4inE1FB2YQiymcmTv6NWENryABjUNPeWhOvmn4SjtKybglsyPZxFB3U1/+L1bYi0rNZDqCLlHyLYDl1Pq5A==", - "dev": true, - "requires": { - "@types/glob": "^7.1.1", - "array-union": "^2.1.0", - "dir-glob": "^3.0.1", - "fast-glob": "^3.0.3", - "glob": "^7.1.3", - "ignore": "^5.1.1", - "merge2": "^1.2.3", - "slash": "^3.0.0" - } - }, - "graceful-fs": { - "version": "4.2.6", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.6.tgz", - "integrity": "sha512-nTnJ528pbqxYanhpDYsi4Rd8MAeaBA67+RZ10CM1m3bTAVFEDcd5AuA4a6W5YkGZ1iNXHzZz8T6TBKLeBuNriQ==", - "dev": true - }, - "ignore": { - "version": "5.1.8", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.1.8.tgz", - "integrity": "sha512-BMpfD7PpiETpBl/A6S498BaIJ6Y/ABT93ETbby2fP00v4EbvPBXWEoaR1UBPKs3iR53pJY7EtZk5KACI57i1Uw==", - "dev": true - }, - "is-plain-object": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-3.0.1.tgz", - "integrity": "sha512-Xnpx182SBMrr/aBik8y+GuR4U1L9FqMSojwDQwPMmxyC6bvEqly9UBCxhauBF5vNh2gwWJNX6oDV7O+OM4z34g==", - "dev": true - } + "is-glob": "^4.0.1", + "micromatch": "^4.0.2" } }, "rollup-plugin-inject": { @@ -17053,6 +16059,101 @@ } } }, + "rollup-plugin-ts": { + "version": "1.3.7", + "resolved": "https://registry.npmjs.org/rollup-plugin-ts/-/rollup-plugin-ts-1.3.7.tgz", + "integrity": "sha512-7uU1eax1PBR/c8C2mS5wIGhjfXnPIPwd/8HJ/pgRko7a5qRQs9Sq2EOWyEYm8IxHo974rAn35Yl2fTLuJHd0xA==", + "dev": true, + "requires": { + "@babel/core": "^7.12.3", + "@babel/plugin-proposal-async-generator-functions": "^7.12.1", + "@babel/plugin-proposal-json-strings": "^7.12.1", + "@babel/plugin-proposal-object-rest-spread": "^7.12.1", + "@babel/plugin-proposal-optional-catch-binding": "^7.12.1", + "@babel/plugin-proposal-unicode-property-regex": "^7.12.1", + "@babel/plugin-syntax-dynamic-import": "^7.8.3", + "@babel/plugin-transform-runtime": "^7.12.1", + "@babel/preset-env": "^7.12.1", + "@babel/runtime": "^7.12.1", + "@rollup/pluginutils": "^4.0.0", + "@types/babel__core": "^7.1.10", + "@wessberg/browserslist-generator": "^1.0.40", + "@wessberg/stringutil": "^1.0.19", + "@wessberg/ts-clone-node": "^0.3.18", + "browserslist": "^4.14.5", + "chalk": "^4.1.0", + "magic-string": "^0.25.7", + "slash": "^3.0.0", + "tslib": "^2.0.3" + }, + "dependencies": { + "@rollup/pluginutils": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-4.1.0.tgz", + "integrity": "sha512-TrBhfJkFxA+ER+ew2U2/fHbebhLT/l/2pRk0hfj9KusXUuRXd2v0R58AfaZK9VXDQ4TogOSEmICVrQAA3zFnHQ==", + "dev": true, + "requires": { + "estree-walker": "^2.0.1", + "picomatch": "^2.2.2" + } + }, + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz", + "integrity": "sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==", + "dev": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, + "picomatch": { + "version": "2.2.2", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.2.2.tgz", + "integrity": "sha512-q0M/9eZHzmr0AulXyPwNfZjtwZ/RBZlbN3K3CErVrk50T2ASYI7Bye0EvekFY3IP1Nt2DHu0re+V2ZHIpMkuWg==", + "dev": true + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, "rollup-pluginutils": { "version": "2.8.2", "resolved": "https://registry.npmjs.org/rollup-pluginutils/-/rollup-pluginutils-2.8.2.tgz", @@ -17105,6 +16206,14 @@ "dev": true, "requires": { "tslib": "^1.9.0" + }, + "dependencies": { + "tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", + "dev": true + } } }, "safe-buffer": { @@ -17118,13 +16227,6 @@ "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", "dev": true }, - "sax": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz", - "integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==", - "dev": true, - "optional": true - }, "secp256k1": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/secp256k1/-/secp256k1-4.0.2.tgz", @@ -17693,6 +16795,16 @@ "rechoir": "^0.6.2" } }, + "shiki": { + "version": "0.9.3", + "resolved": "https://registry.npmjs.org/shiki/-/shiki-0.9.3.tgz", + "integrity": "sha512-NEjg1mVbAUrzRv2eIcUt3TG7X9svX7l3n3F5/3OdFq+/BxUdmBOeKGiH4icZJBLHy354Shnj6sfBTemea2e7XA==", + "dev": true, + "requires": { + "onigasm": "^2.2.5", + "vscode-textmate": "^5.2.0" + } + }, "signal-exit": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.2.tgz", @@ -17809,16 +16921,6 @@ } } }, - "sntp": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/sntp/-/sntp-2.1.0.tgz", - "integrity": "sha512-FL1b58BDrqS3A11lJ0zEdnJ3UOKqVxawAkF3k7F0CVN7VQ34aZrV+G8BZ1WC9ZL7NyrwsW0oviwsWDgRuVYtJg==", - "dev": true, - "optional": true, - "requires": { - "hoek": "4.x.x" - } - }, "sort-keys": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/sort-keys/-/sort-keys-1.1.2.tgz", @@ -17960,32 +17062,6 @@ "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", "dev": true }, - "sshpk": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.14.1.tgz", - "integrity": "sha1-Ew9Zde3a2WPx1W+SuaxsUfqfg+s=", - "dev": true, - "optional": 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", - "tweetnacl": "~0.14.0" - }, - "dependencies": { - "tweetnacl": { - "version": "0.14.5", - "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz", - "integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q=", - "dev": true, - "optional": true - } - } - }, "start-server-and-test": { "version": "1.12.0", "resolved": "https://registry.npmjs.org/start-server-and-test/-/start-server-and-test-1.12.0.tgz", @@ -18530,22 +17606,6 @@ "safe-buffer": "~5.1.0" } }, - "stringstream": { - "version": "0.0.6", - "resolved": "https://registry.npmjs.org/stringstream/-/stringstream-0.0.6.tgz", - "integrity": "sha512-87GEBAkegbBcweToUrdzf3eLhWNg06FJTebl4BVJz/JgWy8CvEr9dRtX5qWphiynMSQlxxi+QqN0z5T32SLlhA==", - "dev": true, - "optional": true - }, - "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" - } - }, "strip-bom": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", @@ -18621,10 +17681,13 @@ "integrity": "sha512-nPewA6m9mR3d6k7WkZ8N8zpTWfenFH3q9pA2PkuiZxINr9DKB2+40wEQf0ixn8VaGuJ78AB6iWOtStI+/4FKZQ==" }, "supports-color": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", - "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", - "dev": true + "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" + } }, "supports-hyperlinks": { "version": "2.1.0", @@ -18659,13 +17722,6 @@ "integrity": "sha512-e900nM8RRtGhlV36KGEU9k65K3mPb1WV70OdjfxlG2EAuM1noi/E/BaW/uMhL7bPEssK8QV57vN3esixjUvcXQ==", "dev": true }, - "symbol-tree": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/symbol-tree/-/symbol-tree-3.2.2.tgz", - "integrity": "sha1-rifbOPZgp64uHDt9G8KQgZuFGeY=", - "dev": true, - "optional": true - }, "table": { "version": "6.0.7", "resolved": "https://registry.npmjs.org/table/-/table-6.0.7.tgz", @@ -18783,12 +17839,6 @@ } } }, - "taffydb": { - "version": "2.7.3", - "resolved": "https://registry.npmjs.org/taffydb/-/taffydb-2.7.3.tgz", - "integrity": "sha1-KtNxaWKUmPylvIQkMJbTzeDsOjQ=", - "dev": true - }, "tar-fs": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/tar-fs/-/tar-fs-2.1.1.tgz", @@ -19041,12 +18091,6 @@ "integrity": "sha512-ytxQvrb1cPc9WBEI/HSeYYoGD0kWnGEOR8RY6KomWLBVhqz0RgTwVO9dLrGz7dC+nN9llyI7OKAgRq8Vq4ZBSw==", "dev": true }, - "to-fast-properties": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-1.0.3.tgz", - "integrity": "sha1-uDVx+k2MJbguIxsG46MFXeTKGkc=", - "dev": true - }, "to-readable-stream": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/to-readable-stream/-/to-readable-stream-2.1.0.tgz", @@ -19059,16 +18103,6 @@ "integrity": "sha512-yaOH/Pk/VEhBWWTlhI+qXxDFXlejDGcQipMlyxda9nthulaxLZUNcUqFxokp0vcYnvteJln5FNQDRrxj3YcbVw==", "dev": true }, - "tough-cookie": { - "version": "2.3.4", - "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.3.4.tgz", - "integrity": "sha512-TZ6TTfI5NtZnuyy/Kecv+CnoROnyXn2DN97LontgQpCwsX2XyLYCC0ENhYkehSOwAp8rTQKc/NUIF7BkQ5rKLA==", - "dev": true, - "optional": true, - "requires": { - "punycode": "^1.4.1" - } - }, "traverse": { "version": "0.3.9", "resolved": "https://registry.npmjs.org/traverse/-/traverse-0.3.9.tgz", @@ -19087,12 +18121,6 @@ "integrity": "sha1-n5up2e+odkw4dpi8v+sshI8RrbM=", "dev": true }, - "trim-right": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/trim-right/-/trim-right-1.0.1.tgz", - "integrity": "sha1-yy4SAwZ+DI3h9hQJS5/kVwTqYAM=", - "dev": true - }, "tsconfig-paths": { "version": "3.9.0", "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.9.0.tgz", @@ -19123,9 +18151,9 @@ } }, "tslib": { - "version": "1.10.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.10.0.tgz", - "integrity": "sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==", + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.1.0.tgz", + "integrity": "sha512-hcVC3wYEziELGGmEEXue7D75zbwIIVUMWAVbHItGPx0ziyXxrOMQx4rQEVEV45Ut/1IotuEvwqPopzIOkDMf0A==", "dev": true }, "tsutils": { @@ -19135,16 +18163,14 @@ "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, - "optional": true, - "requires": { - "safe-buffer": "^5.0.1" + }, + "dependencies": { + "tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", + "dev": true + } } }, "tweetnacl": { @@ -19152,16 +18178,6 @@ "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-1.0.3.tgz", "integrity": "sha512-6rt+RN7aOi1nGMyC4Xa5DdYiukl2UWCbcJft7YhxReBGQD7OAM8Pbxw6YMo4r2diNEA8FEmu32YOn9rhaiE5yw==" }, - "type-check": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.3.2.tgz", - "integrity": "sha1-WITKtRLPHTVeP7eE8wgEsrUg23I=", - "dev": true, - "optional": true, - "requires": { - "prelude-ls": "~1.1.2" - } - }, "type-detect": { "version": "0.1.1", "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-0.1.1.tgz", @@ -19215,6 +18231,73 @@ "is-typedarray": "^1.0.0" } }, + "typedoc": { + "version": "0.20.31", + "resolved": "https://registry.npmjs.org/typedoc/-/typedoc-0.20.31.tgz", + "integrity": "sha512-36ADb6bdzmnGde6H3dlyMmof0y0ryRvSOhYh96bJHcYdJKipf5Ir4uduj+mZfshd8ktCGlLg48LfNTAE9PpIrQ==", + "dev": true, + "requires": { + "colors": "^1.4.0", + "fs-extra": "^9.1.0", + "handlebars": "^4.7.7", + "lodash": "^4.17.21", + "lunr": "^2.3.9", + "marked": "^2.0.1", + "minimatch": "^3.0.0", + "progress": "^2.0.3", + "shelljs": "^0.8.4", + "shiki": "^0.9.3", + "typedoc-default-themes": "^0.12.9" + }, + "dependencies": { + "fs-extra": { + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz", + "integrity": "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==", + "dev": true, + "requires": { + "at-least-node": "^1.0.0", + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + } + }, + "graceful-fs": { + "version": "4.2.6", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.6.tgz", + "integrity": "sha512-nTnJ528pbqxYanhpDYsi4Rd8MAeaBA67+RZ10CM1m3bTAVFEDcd5AuA4a6W5YkGZ1iNXHzZz8T6TBKLeBuNriQ==", + "dev": true + }, + "jsonfile": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", + "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", + "dev": true, + "requires": { + "graceful-fs": "^4.1.6", + "universalify": "^2.0.0" + } + }, + "lodash": { + "version": "4.17.21", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", + "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", + "dev": true + }, + "universalify": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.0.tgz", + "integrity": "sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==", + "dev": true + } + } + }, + "typedoc-default-themes": { + "version": "0.12.9", + "resolved": "https://registry.npmjs.org/typedoc-default-themes/-/typedoc-default-themes-0.12.9.tgz", + "integrity": "sha512-Jd5fYTiqzinZdoIY382W7tQXTwAzWRdg8KbHfaxmb78m1/3jL9riXtk23oBOKwhi8GFVykCOdPzEJKY87/D0LQ==", + "dev": true + }, "typescript": { "version": "4.2.2", "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.2.2.tgz", @@ -19227,6 +18310,12 @@ "integrity": "sha1-uk99si2RU0oZKdkACdzhYety/T8=", "dev": true }, + "ua-parser-js": { + "version": "0.7.24", + "resolved": "https://registry.npmjs.org/ua-parser-js/-/ua-parser-js-0.7.24.tgz", + "integrity": "sha512-yo+miGzQx5gakzVK3QFfN0/L9uVhosXBBO7qmnk7c2iw1IhL212wfA3zbnI54B0obGwC/5NWub/iT9sReMx+Fw==", + "dev": true + }, "uglify-js": { "version": "3.13.0", "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.13.0.tgz", @@ -19455,24 +18544,18 @@ "integrity": "sha1-IpnwLG3tMNSllhsLn3RSShj2NPw=", "dev": true }, - "verror": { - "version": "1.10.0", - "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz", - "integrity": "sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA=", - "dev": true, - "optional": true, - "requires": { - "assert-plus": "^1.0.0", - "core-util-is": "1.0.2", - "extsprintf": "^1.2.0" - } - }, "vlq": { "version": "0.2.3", "resolved": "https://registry.npmjs.org/vlq/-/vlq-0.2.3.tgz", "integrity": "sha512-DRibZL6DsNhIgYQ+wNdWDL2SL3bKPlVrRiBqV5yuMm++op8W4kGFtaQfCs4KEJn0wBZcHVHJ3eoywX8983k1ow==", "dev": true }, + "vscode-textmate": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/vscode-textmate/-/vscode-textmate-5.2.0.tgz", + "integrity": "sha512-Uw5ooOQxRASHgu6C7GVvUxisKXfSgW4oFlO+aa+PAkgmH89O3CXxEEzNRNtHSqtXFTl0nAC1uYj0GMSH27uwtQ==", + "dev": true + }, "wait-on": { "version": "5.2.1", "resolved": "https://registry.npmjs.org/wait-on/-/wait-on-5.2.1.tgz", @@ -19537,25 +18620,6 @@ } } }, - "whatwg-url-compat": { - "version": "0.6.5", - "resolved": "https://registry.npmjs.org/whatwg-url-compat/-/whatwg-url-compat-0.6.5.tgz", - "integrity": "sha1-AImBEa9om7CXVBzVpFymyHmERb8=", - "dev": true, - "optional": true, - "requires": { - "tr46": "~0.0.1" - }, - "dependencies": { - "tr46": { - "version": "0.0.3", - "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", - "integrity": "sha1-gYT9NH2snNwYWZLzpmIuFLnZq2o=", - "dev": true, - "optional": true - } - } - }, "which": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/which/-/which-1.3.0.tgz", diff --git a/web3.js/package.json b/web3.js/package.json index 42ef4fb6f8..ddd306e688 100644 --- a/web3.js/package.json +++ b/web3.js/package.json @@ -25,7 +25,7 @@ }, "main": "lib/index.cjs.js", "module": "lib/index.esm.js", - "types": "lib/index.d.ts", + "types": "lib/types/index.d.ts", "browserslist": [ "defaults", "not IE 11", @@ -48,14 +48,14 @@ "scripts": { "bpf-sdk:install": "npm run clean:fixtures; bin/bpf-sdk-install.sh .", "bpf-sdk:remove-symlinks": "find bpf-sdk -type l -print -exec cp {} {}.tmp \\; -exec mv {}.tmp {} \\;", - "build": "cross-env NODE_ENV=production rollup -c", + "build": "cross-env NODE_ENV=production rollup -c; npx flowgen lib/types/index.d.ts -o module.flow.js", "build:browser-test": "rollup -c test/rollup.config.js", "build:fixtures": "set -ex; ./test/fixtures/noop-c/build.sh; ./test/fixtures/noop-rust/build.sh", "clean:fixtures": "make -C examples/bpf-c-noop clean ", "clean": "rimraf ./coverage ./lib", "codecov": "set -ex; npm run test:cover; cat ./coverage/lcov.info | codecov", "dev": "cross-env NODE_ENV=development rollup -c", - "doc": "set -ex; esdoc; node -p '\"\\nDocumentation coverage: \" + require(\"./doc/coverage.json\").coverage'", + "doc": "set -ex; typedoc", "defs": "set -ex; flow check-contents < module.flow.js; tsc module.d.ts", "doc:watch": "watch 'npm run doc' . --wait=1 --ignoreDirectoryPattern=/doc/", "examples": "set -ex; for example in examples/*.js; do node $example; done", @@ -102,7 +102,7 @@ "@babel/plugin-proposal-class-properties": "^7.12.1", "@babel/plugin-transform-runtime": "^7.12.10", "@babel/preset-env": "^7.12.11", - "@babel/preset-flow": "^7.12.1", + "@babel/preset-typescript": "^7.12.16", "@babel/register": "^7.12.13", "@commitlint/config-conventional": "^12.0.1", "@commitlint/travis-cli": "^12.0.1", @@ -114,20 +114,17 @@ "@rollup/plugin-node-resolve": "^11.1.1", "@rollup/plugin-replace": "^2.3.4", "@solana/spl-token": "^0.0.13", + "@types/bn.js": "^5.1.0", + "@types/bs58": "^4.0.1", "@types/node": "^14.14.26", + "@types/node-fetch": "^2.5.8", + "@types/secp256k1": "^4.0.1", "@typescript-eslint/eslint-plugin": "^4.14.2", "@typescript-eslint/parser": "^4.14.2", - "babel-eslint": "^11.0.0-beta.2", "chai": "^4.3.0", "chai-as-promised": "^7.1.1", "codecov": "^3.0.4", "cross-env": "7.0.3", - "esdoc": "^1.1.0", - "esdoc-ecmascript-proposal-plugin": "^1.0.0", - "esdoc-flow-type-plugin": "^1.1.0", - "esdoc-importpath-plugin": "^1.0.2", - "esdoc-inject-style-plugin": "^1.0.0", - "esdoc-standard-plugin": "^1.0.0", "eslint": "^7.19.0", "eslint-config-prettier": "^8.0.0", "eslint-plugin-flowtype": "^5.2.0", @@ -138,6 +135,7 @@ "flow-bin": "0.130.0", "flow-remove-types": "^2.143.1", "flow-typed": "3.3.1", + "flowgen": "^1.13.0", "http-server": "^0.12.3", "mocha": "^8.2.1", "mocha-headless-chrome": "^3.1.0", @@ -147,13 +145,16 @@ "prettier": "^2.0.0", "rimraf": "3.0.2", "rollup": "2.40.0", - "rollup-plugin-copy": "^3.3.0", + "rollup-plugin-flat-dts": "^1.0.3", "rollup-plugin-node-polyfills": "^0.2.1", "rollup-plugin-terser": "^7.0.2", + "rollup-plugin-ts": "^1.3.7", "semantic-release": "^17.0.2", "sinon": "^9.2.4", "start-server-and-test": "^1.12.0", - "typescript": "^4.1.3", + "tslib": "^2.1.0", + "typedoc": "^0.20.31", + "typescript": "^4.1.5", "watch": "^1.0.2" } } diff --git a/web3.js/rollup.config.js b/web3.js/rollup.config.js index a0af287f11..383268c7b3 100644 --- a/web3.js/rollup.config.js +++ b/web3.js/rollup.config.js @@ -1,31 +1,38 @@ import babel from '@rollup/plugin-babel'; import commonjs from '@rollup/plugin-commonjs'; -import copy from 'rollup-plugin-copy'; -import flowRemoveTypes from 'flow-remove-types'; import json from '@rollup/plugin-json'; +import typescript from 'rollup-plugin-ts'; import nodeResolve from '@rollup/plugin-node-resolve'; import nodePolyfills from 'rollup-plugin-node-polyfills'; import replace from '@rollup/plugin-replace'; import {terser} from 'rollup-plugin-terser'; const env = process.env.NODE_ENV; +const extensions = ['.js', '.ts']; function generateConfig(configType, format) { const browser = configType === 'browser'; const bundle = format === 'iife'; + const generateTypescript = configType === 'typescript'; const config = { - input: 'src/index.js', + input: 'src/index.ts', plugins: [ - flow(), commonjs(), nodeResolve({ browser, - preferBuiltins: !browser, dedupe: ['bn.js', 'buffer'], + extensions, + preferBuiltins: !browser, }), + generateTypescript + ? typescript({ + browserslist: false, + }) + : undefined, babel({ exclude: '**/node_modules/**', + extensions, babelHelpers: bundle ? 'bundled' : 'runtime', plugins: bundle ? [] : ['@babel/plugin-transform-runtime'], }), @@ -33,9 +40,6 @@ function generateConfig(configType, format) { 'process.env.NODE_ENV': JSON.stringify(env), 'process.env.BROWSER': JSON.stringify(browser), }), - copy({ - targets: [{src: 'module.d.ts', dest: 'lib', rename: 'index.d.ts'}], - }), ], onwarn: function (warning, rollupWarn) { if (warning.code !== 'CIRCULAR_DEPENDENCY') { @@ -47,6 +51,24 @@ function generateConfig(configType, format) { }, }; + if (configType !== 'browser') { + // Prevent dependencies from being bundled + config.external = [ + /@babel\/runtime/, + 'bn.js', + 'bs58', + 'buffer-layout', + 'crypto-hash', + 'jayson/lib/client/browser', + 'js-sha3', + 'node-fetch', + 'rpc-websockets', + 'secp256k1', + 'superstruct', + 'tweetnacl', + ]; + } + switch (configType) { case 'browser': switch (format) { @@ -121,22 +143,12 @@ function generateConfig(configType, format) { sourcemap: true, }, ]; - - // Prevent dependencies from being bundled - config.external = [ - /@babel\/runtime/, - 'bn.js', - 'bs58', - 'buffer-layout', - 'crypto-hash', - 'jayson/lib/client/browser', - 'js-sha3', - 'node-fetch', - 'rpc-websockets', - 'secp256k1', - 'superstruct', - 'tweetnacl', - ]; + break; + case 'typescript': + config.output = { + file: 'lib/types/index.d.ts', + }; + config.plugins.push(json()); break; default: throw new Error(`Unknown configType: ${configType}`); @@ -147,18 +159,7 @@ function generateConfig(configType, format) { export default [ generateConfig('node'), + generateConfig('typescript'), generateConfig('browser', 'esm'), generateConfig('browser', 'iife'), ]; - -// Using this instead of rollup-plugin-flow due to -// https://github.com/leebyron/rollup-plugin-flow/issues/5 -function flow() { - return { - name: 'flow-remove-types', - transform: code => ({ - code: flowRemoveTypes(code).toString(), - map: null, - }), - }; -} diff --git a/web3.js/tsconfig.json b/web3.js/tsconfig.json new file mode 100644 index 0000000000..9dc0b9d827 --- /dev/null +++ b/web3.js/tsconfig.json @@ -0,0 +1,22 @@ +{ + "compilerOptions": { + "target": "esnext", + "allowJs": true, + "skipLibCheck": true, + "declaration": true, + "declarationMap": true, + "declarationDir": "lib/types", + "esModuleInterop": true, + "allowSyntheticDefaultImports": true, + "strict": true, + "forceConsistentCasingInFileNames": true, + "module": "esnext", + "moduleResolution": "node", + "resolveJsonModule": true, + "isolatedModules": true, + "baseUrl": "src", + "noFallthroughCasesInSwitch": true, + "noImplicitReturns": true + }, + "include": ["src"] +} diff --git a/web3.js/typedoc.json b/web3.js/typedoc.json new file mode 100644 index 0000000000..3a4b88e548 --- /dev/null +++ b/web3.js/typedoc.json @@ -0,0 +1,6 @@ +{ + "entryPoints": ["src/index.ts"], + "excludeInternal": true, + "excludePrivate": true, + "out": "doc" +} \ No newline at end of file