From 5bfc2cd534f9697c173485c2ad25affe7c384a04 Mon Sep 17 00:00:00 2001 From: Jaco Greeff Date: Sun, 31 May 2020 13:07:42 +0200 Subject: [PATCH] Protect against div-by-zero (#2319) * Protect against div-by-zero * Rewrite --- .github/workflows/push-master.yml | 7 +- CHANGELOG.md | 166 ++-- package.json | 4 +- .../api-derive/src/staking/stakerRewards.ts | 10 +- yarn.lock | 759 +++++++++++++++--- 5 files changed, 741 insertions(+), 205 deletions(-) diff --git a/.github/workflows/push-master.yml b/.github/workflows/push-master.yml index 3a802c353a..3ee92bc45a 100644 --- a/.github/workflows/push-master.yml +++ b/.github/workflows/push-master.yml @@ -10,7 +10,7 @@ jobs: matrix: step: ['build:release', 'docs:release'] name: ${{ matrix.step }} - if: "! contains(github.event.head_commit.message, '[CI Skip]') && github.repository == 'polkadot-js/api'" + if: "! startsWith(github.event.head_commit.message, '[CI Skip]') && github.repository == 'polkadot-js/api'" runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 @@ -21,16 +21,13 @@ jobs: CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} GH_PAGES_SRC: build-docs GH_PAT: ${{ secrets.GH_PAT }} - GH_TOKEN: ${{ secrets.GH_PAT }} - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GH_RELEASE_GITHUB_API_TOKEN: ${{ secrets.GH_PAT }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} run: | yarn install --immutable | grep -v 'YN0013' yarn ${{ matrix.step }} dummy: - name: Dummy - if: "contains(github.event.head_commit.message, '[CI Skip]')" runs-on: ubuntu-latest steps: - name: dummy diff --git a/CHANGELOG.md b/CHANGELOG.md index a29f99228f..5fecdc24cf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,9 +1,11 @@ -# 1.17.0-beta.x +# CHANGELOG + +## 1.17.0-beta.x - Fix `ElectionSize` type (Thanks to https://github.com/arjanz) - Allow `BTreeSet` decoding from Array/JSON inputs -# 1.16.1 May 26, 2020 +## 1.16.1 May 26, 2020 - Support for Polkadot CC1 types & signed extensions - Add support for Babe VRF secondary digests (author extraction) @@ -12,7 +14,7 @@ - Update to latest TypeScript, eslint & typescript-eslint - `@polkadot/util` 2.11 -# 1.15.1 May 23, 2020 +## 1.15.1 May 23, 2020 - Adjust `keyPrefix()` with DoubleMap args (Thanks to https://github.com/KiChjang) - Added `WeightToFeeCoefficient` type (Thanks to https://github.com/danforbes) @@ -24,7 +26,7 @@ - Adjust `Multiplier` type to `Fixed128` (as per latest Substrate) - Updated to latest Substrate metadata & add new types -# 1.14.1 May 14, 2020 +## 1.14.1 May 14, 2020 - **Important** `DispatchInfo` changed `paysFee` to an enum, if using an older version use, `DispatchInfo: 'DispatchInfoTo244'` - Align imOnline `Heartbeat` with Substrate (Thanks to https://github.com/arjanz) @@ -41,7 +43,7 @@ - Extends types for Polkadot claims - Update `@polkadot/util` to 2.10 -# 1.13.1 May 6, 2020 +## 1.13.1 May 6, 2020 - Add support for ECDSA keypairs in extrinsic signers (Thanks to https://github.com/akru) - Rework type generation to use templating for better maintenance (Thanks to https://github.com/xlc) @@ -54,11 +56,11 @@ - Update types & metadata as per latest Substrate master - Adjust Centrifuge starting version -# 1.12.2 Apr 30, 2020 +## 1.12.2 Apr 30, 2020 - Update `@polkadot/util` to stable 2.9.1 (sadly missed in the previous version, stable should match to stable) -# 1.12.1 Apr 29, 2020 +## 1.12.1 Apr 29, 2020 - Fix `CompactAssignments` types (Thanks to https://github.com/arjanz) - Provider ayo-connect now allows for interval config (Thanks to https://github.com/jnaviask) @@ -69,11 +71,11 @@ - Allow generic types in ApiPromise.combineLatest - Update to latest substrate metadata -# 1.11.2 Apr 22, 2020 +## 1.11.2 Apr 22, 2020 - Small patch to add missing Polkadot master types (will be in next Kusama update) -# 1.11.1 Apr 21, 2020 +## 1.11.1 Apr 21, 2020 - **Important** Substrate master has an updated `Weight` (to `u64`), on older chains apply `Weight: 'u32'` (This does affect event decoding if wrongly set) - Allow user type augmentation to work with different versions of rxjs (Thanks to https://github.com/monitz87) @@ -92,7 +94,7 @@ - Enhance API support for non-subscription providers (skip subscription to runtimeVersion) - Adjust types for Kusama 1057 (notably the new `StakingLedger`) -# 1.10.1 Apr 13, 2020 +## 1.10.1 Apr 13, 2020 - **Important** Substrate master has updated staking, on older chains apply `StakingLedger: 'StakingLedgerTo240'` - Add `rpc.system.chainType` to retrieve the chain type (Development. Local, Live & Custom) @@ -105,7 +107,7 @@ - Internally all private/protected methods/variables are now `_` prefixed (Aligning with the `private/protected` indicators in the TS definitions) - Update metadata/docs-from-metadata to the latest Substrate -# 1.9.1 Apr 1, 2020 +## 1.9.1 Apr 1, 2020 - **Breaking change** (TypeScript with derives only) The return type names for `api.derive.*` have been adjusted for consistency, all starting with `Derive*` (previously a mixture of `Derived*` and `Derive*`) - **Breaking change** (derives only) Additional cleanups of democracy proposal & referenda derives, including support for new Polkadot/Substrate vote retrievals @@ -120,7 +122,7 @@ - Fix encoding for `Vec`-related types as part of constants - Internal adjustment of interface type locations (no impact on imports via `@polkadot/types/interfaces`) -# 1.8.1 Mar 22, 2020 +## 1.8.1 Mar 22, 2020 - **Breaking change** The format for any custom RPCs have been changed (alongside API-internal changes) to allow for better RPC management. If you are currently using custom RPCs (or planning to do so), look at the [updated documentation](https://polkadot.js.org/api/start/rpc.custom.html) - **Breaking change** Alongside API RPC changes, the `@polkadot/jsonrpc` package has been removed. Since it was never documented and only used internally, this should not have adverse impacts. All RPC definitions itself has now been moved to the relevant modules inside `@polkadot/types/interfaces` @@ -132,7 +134,7 @@ - Adjusted referendum derives to cater for bot new/old democracy. Derived `referendumInfo` now includes `status` field, not `info` - Add `initWasm` flag to API options. When set to `false` does not init the WASM portion (leaving it to the user elsewhere) -# 1.7.1 Mar 17, 2020 +## 1.7.1 Mar 17, 2020 - **Important** Current versions of Polkadot/Substrate have dropped support for linked maps on storage entries. If you are using these queries to retrieve all entries, for instance `staking.{nominators,validators}()` and using an upgraded chain, you need to swap to retrieving entries via `.entries()` or `.keys()` for the keys. - Pull in support and types for latest Polkadot/Substrate @@ -142,11 +144,11 @@ - Expanded `derive.staking.*` derives, including addition of `derive.staking.own*` - Re-add fixed (with tests) checks for query args, previously disabled in 1.6.2 -# 1.6.2 Mar 12, 2020 +## 1.6.2 Mar 12, 2020 - Revert checks for query args, not working on `.at()` queries (proper fix in next version) -# 1.6.1 Mar 12, 2020 +## 1.6.1 Mar 12, 2020 - **Breaking change** `api.rpc.state.queryStorage(...)` now fully decodes the `Vec` and returns a decoded `[Hash, Codec[]][]` when using this RPC. - `StorageKey` now has an `.args` property, decoded from meta where `twox64_concat` or `blake128_concat` are used on maps @@ -160,7 +162,7 @@ - Add runtime validation for map arguments to `api.query.*` - TypeScript interfaces for linked maps now correctly generates as `[Type, Linkage]` -# 1.5.1 Mar 06, 2020 +## 1.5.1 Mar 06, 2020 - **Important** Substrate master has updated staking, on older chains supply `StakingLedger: 'StakingLedgerTo223'` - **Important** Substrate master has updated collective, on older chains supply `Votes: 'VotesTo230'` @@ -180,11 +182,11 @@ - Add additional derives to `api.derive.staking` to handle lazy-payout retrievals - Update `@polkadot/{util, util-crypto, keyring}` to 1.6.1 & `@polkadot/wasm` to 1.2.1 -# 1.4.2 Feb 27, 2020 +## 1.4.2 Feb 27, 2020 - Fix `api.tx(): Submittable` decoration (non-working in 1.4.1, now with proper test) -# 1.4.1 Feb 26, 2020 +## 1.4.1 Feb 26, 2020 - **Breaking change** (TypeScript only) The `*.d.ts` files now contain TypeScript 3.8 features (specifically `#private`), which is not usable in TS versions < 3.8 - **Breaking change** - `api.derive.staking.*` has updated result types and detects support for lazy payouts queries @@ -210,7 +212,7 @@ - Cleanup augmentation and generation scripts for type definitions, aligning with api augmentation - Bump to `@polkadot/{util, util-crypto, keyring}` 2.5.1 -# 1.3.1 Feb 18, 2020 +## 1.3.1 Feb 18, 2020 - Add `@types/bn.js` as a normal dependency, exposed in `*.d.ts` (Thanks to https://github.com/monitz87) - Type generation scripts (including `polkadot-types-from-{chain,defs}`) has been moved to the `@polkadot/typegen` package @@ -218,7 +220,7 @@ - Expose chain properties on registry (and use for API type formatting) - Add `toHuman(isExtended?: boolean)` to all codec types, formatting into a human-readable structure -# 1.2.1 Feb 16, 2020 +## 1.2.1 Feb 16, 2020 - **Important** Update RPC status codes (latest Substrate 2), with the `isInBlock` (`isFinalized` now indicates finality) - Storage `.entries(arg?: any)` now has the correct argument type for DoubleMap (Thanks to https://github.com/monitz87) @@ -236,7 +238,7 @@ - Cleanup `codec/Date` tests to make it run properly on all timezones - Add explicit dependencies to all packages and move TypeScript `@types/*` to dev deps -# 1.1.1 Feb 06, 2020 +## 1.1.1 Feb 06, 2020 - **Important** Chains without `balances.account` or `system.account` should supply `"BalanceLock": "BalanceLockTo212"` to their types to use the previous-generation `BalanceLock` (when querying locks) - Add support for `balances.account` in all applicable derives (incl. `vesting` module) @@ -250,7 +252,7 @@ - Adjust balances fees derivation with optional transfer and creation fees (removed in Substrate) - Adjust enum `.toJSON()` to return type name as specified -# 1.0.1 Jan 30, 2020 +## 1.0.1 Jan 30, 2020 - **Breaking change** Drop support for Substrate v1 chain in all derives - Return unsub functions from provider .on emitters (Thanks to https://github.com/jak-pan) @@ -269,7 +271,7 @@ - Remove support for un-deployed metadata - Remove old known types for Substrate V1 -# 0.100.1 Jan 13, 2020 +## 0.100.1 Jan 13, 2020 - **Important** This will the the last API version with Substrate 1.x support. Although you will still be able to use subsequent versions with older chains, dependent libraries such as sr25519 may not be compatible. - Add support for the Substrate identity module @@ -280,7 +282,7 @@ - Add support for latest Polkadot/Substrate types - Add `paymentInfo` to submittables to calculate fees -# 0.99.1 Dec 13, 2019 +## 0.99.1 Dec 13, 2019 - **Breaking change** The `Data` and `U8a` type has been renamed and just replaced with the `Raw` type - **Breaking change** The `api.derive.staking.info` has been split into 2 - `staking.query` for non-balance related information (more effective) and `staking.account` that enhances query for all the information previously found `.info` @@ -289,7 +291,7 @@ - Add additional derives for both council & treasury - Alignment with latest Polkadot/Substrate master branch types -# 0.98.1 Dec 04, 2019 +## 0.98.1 Dec 04, 2019 - Make the TypeScript generation script mor re-usable (Thanks to https://github.com/xlc) - Add `.entries()` for all map-types, returning storage keys and values @@ -298,7 +300,7 @@ - Support for new Substrate democracy with preimages in derive - Alignment of types with Substrate/Polkadot master branches -# 0.97.1 Nov 29, 2019 +## 0.97.1 Nov 29, 2019 - **Breaking change** Add the passing on an explicit `Registry` to all calls to `createType` as well as all codec classes. If you are upgrading form an older version, use the [migration guide](UPGRADING.md) to walk through the changes required. - **Breaking change** The metadata classes have been moved from `@polkadot/types` into `@polkadot/metadata`. If you explicitly create `Metadata` classes, you now would need to do so with the `import Metadata from '@polkadot/metadata';` This is a decorated class, where the previous metadata is now available on `Metadata.metadata`, alongside decorated `consts.*`', `tx.*` and `query.*`. @@ -310,7 +312,7 @@ - Support for Metadata V9, which adjusts the hashing methods of storage entries - Support for Metadata V10 (still un-released), which includes prefixed map support -# 0.96.1 Nov 09, 2019 +## 0.96.1 Nov 09, 2019 - Updated types for latest Kusama - Add `filterRecords` (in addition to `findRecord`) on submittable results @@ -320,11 +322,11 @@ - Update council derives for the latest Substrate master support (with constants) - Derive cleanups, including sharing of instances between the API and internal to derives -# 0.95.2 Oct 25, 2019 +## 0.95.2 Oct 25, 2019 - Temporary removal of `account_nextIndex` use, will be re-added in a future release -# 0.95.1 Oct 25, 2019 +## 0.95.1 Oct 25, 2019 - Support Extrinsic V4 with additional signature indicator (Latest Polkadot/Substrate/Kusama) - Adjust subscription update checks to avoid duplicated data updates @@ -334,7 +336,7 @@ - All latest Polkadot & Substrate types (as per master branches) - **Breaking change** `Call.injectMethods` is moved to `Call.injectMetadata` to align with `Events` (This _should_ not be used externally, however mentioned as breaking here) -# 0.94.1 Oct 07, 2019 +## 0.94.1 Oct 07, 2019 - Add handling of `Result` definitions - Adjust API cloning now takes RPC filters from source into account @@ -346,7 +348,7 @@ - Add documentation for custom extrinsic formats (advanced chains) - Update to latest substrate master metadata -# 0.93.1 Sep 26, 2019 +## 0.93.1 Sep 26, 2019 - Support for Kusama CC2 - In extrinsic submission, use `rpc.account.nextIndex` to retrieve the nonce when available @@ -356,7 +358,7 @@ - Support recursive type registration (self-referencing via `Box`) in addition to better sanitation of user-defined-types - Documentation and example updates (thanks mostly to contributions) -# 0.92.1 Sep 12, 2019 +## 0.92.1 Sep 12, 2019 - The API now correctly sets the ss58 prefix as retrieved from the chain properties via `ss58Format` - Bump to `@polkadot/util` 1.4.1, removing use of `ExtError` @@ -364,7 +366,7 @@ - Support the latest Polkadot & Substrate master branches (incl. metadata updates) - Getting started documentation has been made available -# 0.91.1 Sep 09, 2019 +## 0.91.1 Sep 09, 2019 - This release was focussed on stability, with a number of cleanups and bug-fixes - Adjustments for Substrate 1.x chain detection (with auto-types) and Substrate 2.x support has been extended with all latest types @@ -378,7 +380,7 @@ - **Breaking change** `SignerPayload` is renamed to `SignerPayloadJSON` - **Breaking change** `SignerPayloadJSON`, `SignerPayloadRawBase` and `SignerPayloadRaw` are all moved to `@polkadot/types` -# 0.90.1 Aug 24, 2019 +## 0.90.1 Aug 24, 2019 If you are upgrading form an older version, use the CHANGELOG hand-in-hand with the [migration guide](UPGRADING.md). @@ -396,7 +398,7 @@ If you are upgrading form an older version, use the CHANGELOG hand-in-hand with - The `types/codec/createType` has been moved to `types/codec/create` with the same exports. If you explicitly imported from here (and not doing the suggested `import { createType } from '@polkadot/types`), the reference needs to be updated -# 0.82.0-beta.x Jul 28, 2019 +## 0.82.0-beta.x Jul 28, 2019 - Support for substrate 2.x (master) has been extended, - Additional types have been addedd for the modules @@ -415,7 +417,7 @@ If you are upgrading form an older version, use the CHANGELOG hand-in-hand with - The `ContractsAbi` type has been moved from `@polkadot/types` to `import { Abi } from '@polkadot/api-contract`. This paves the way for an enhanced contracts interface, instead of dealing with low-level API calls. -# 0.81.1 Jun 14, 2019 +## 0.81.1 Jun 14, 2019 - The dependency on `@polkadot/keyring` has been removed - if you relied on the API to provide this, you would now need to manually add it - `createType` allows for the creation of `[u8; ]` types (opening the door for contract support) @@ -435,7 +437,7 @@ If you are upgrading form an older version, use the CHANGELOG hand-in-hand with - Add `off` method to `Api` (Base, for both `ApiPromise` & `ApiRx`) to remove an event listener -# 0.80.1 Jun 04, 2019 +## 0.80.1 Jun 04, 2019 - Support for mortal transactions - Better DoubleMap storage support @@ -445,7 +447,7 @@ If you are upgrading form an older version, use the CHANGELOG hand-in-hand with - Misc. cleanups and fixes -# 0.79.1 May 22, 2019 +## 0.79.1 May 22, 2019 - DoubleMap query support - Support latest EventRecord metadata (substrate master) @@ -457,7 +459,7 @@ If you are upgrading form an older version, use the CHANGELOG hand-in-hand with - Add `toRawType` on all type classes (breakdown into primitive types) -# 0.78.1 May 08, 2019 +## 0.78.1 May 08, 2019 - Fix linked-maps (not working since 0.77.1) - Convert Usize to U32 (as found in WASM environments) @@ -468,13 +470,13 @@ If you are upgrading form an older version, use the CHANGELOG hand-in-hand with - Metadata updates for substrate (WithdrawReasons, ContractInfo) -# 0.77.1 Apr 25, 2019 +## 0.77.1 Apr 25, 2019 - Support Metadata v4, which introduces the use of a custom hasher to hash storage map keys. - Add TreasuryProposal (not the same as democracy, type aliased) -# 0.76.1 Apr 03, 2019 +## 0.76.1 Apr 03, 2019 - Caching improvements (duplicate queries, no duplicate subscriptions) - Experimental contract API @@ -482,12 +484,12 @@ If you are upgrading form an older version, use the CHANGELOG hand-in-hand with - Update @polkadot/util-crypto with smaller footprint -# 0.75.1 Mar 29, 2019 +## 0.75.1 Mar 29, 2019 - Start journey to 1.0 -# 0.53.1 Mar 29, 2019 +## 0.53.1 Mar 29, 2019 - Change spelling to US English as per substrate master (1.0-rc1). Breaking changes as a result: - For extrinsic status results, if you have checked the type returns, i.e. `result.type === 'Finalised'` now check on the status for `result.status.isFinalized` or `result.status.isBroadcast`, ... (the `type` property is now accessible only on `result.status.type`) @@ -498,7 +500,7 @@ If you are upgrading form an older version, use the CHANGELOG hand-in-hand with - All examples have been updated with sr25519 addresses (with the new checksums) -# 0.52.1 Mar 28, 2019 +## 0.52.1 Mar 28, 2019 - Support queries to linked mapped storage (found in new staking interfaces) - Add `derive.staking.controllers` to retrieve all active staking controllers @@ -508,42 +510,42 @@ If you are upgrading form an older version, use the CHANGELOG hand-in-hand with - Check for single instances for api and types as they are loaded (assertSingletonPackage) -# 0.51.1 Mar 25, 2019 +## 0.51.1 Mar 25, 2019 - Support metadata V2 as per latest substrate master - Update metadata with new types as per latest substrate master -# 0.50.1 Mar 23, 2019 +## 0.50.1 Mar 23, 2019 - Latest util-crypto (usage of WASM with JS fallbacks if not available) - Update upstream @polkadot dependencies (for new crypto) -# 0.49.1 Mar 20, 2019 +## 0.49.1 Mar 20, 2019 - Fix large message signing on non-known nodes (default is now hashing, there has been enough time between upgrades) -# 0.48.1 Mar 18, 2019 +## 0.48.1 Mar 18, 2019 - Pull in new sr25519 capable keyring for dev nodes - When using dev mode, it assumes that the node is the latest with derived sr25519 keys -# 0.47.1 Mar 14, 2019 +## 0.47.1 Mar 14, 2019 - Swap to publishing -beta.x on merge (non-breaking testing) -# 0.46.1 Mar 01, 2019 +## 0.46.1 Mar 01, 2019 - Extended type registration to now handle internal types as well. Additionally the built-in Extrinsic type can now we overridden with a custom version. - Where `Extrinsic` and `Method` is used as types, consider importing `{ IMethod, IExtrinsic }` from `@polkadot/types/types`, especially in the cases where this is used from a `SubmittableExtrinsic` - The `typeRegistry` constant is now `getTypeRegistry()` as a function -# 0.45.1 Feb 19, 2019 +## 0.45.1 Feb 19, 2019 - Storage with option values now correctly return `Option` and is indicated as such in the documentation @@ -560,7 +562,7 @@ console.log('llo', llo.unwrapOr('not set') /* Option */) ``` -# 0.44.1 Feb 19, 2019 +## 0.44.1 Feb 19, 2019 - Split primitives and types into separate folders. This should not affect external use since the exports remain the same, however does have an impact where classes are referenced directly. e.g. @@ -578,45 +580,45 @@ import { Method, Signature } from '@polkadot/types'; ``` -# 0.43.1 Feb 14, 2019 +## 0.43.1 Feb 14, 2019 - Introduces support for the new keyring with sr25519 support in addition to ed25519. While this does not change the exposed API, it is considered breaking since @polkadot/keyring has interface changes. (Unless needed, don't rush the upgrade) -# 0.42.1 Jan 31, 2019 +## 0.42.1 Jan 31, 2019 - Support for substrate hash signing with implVersion >= 18 - Changed signatures for Extrinsic signing, this should not have (much) of an impact since it is generally not used directly. SubmittableExtrinsic (as exposed by the API), supports the old-style use. -# 0.41.1 Jan 26, 2019 +## 0.41.1 Jan 26, 2019 - Support the V1 metadata specification from Substrate in addition to the currently testnet active V0 version -# 0.40.1 Jan 16, 2019 +## 0.40.1 Jan 16, 2019 - The API interfaces now require a WS-compatible provider, e.g. subscription support is a must. Previously the HTTPProvider could be use (although it was very limited in the interactions). -# 0.39.1 Jan 11, 2019 +## 0.39.1 Jan 11, 2019 - The Promise API now returns a `Promise` instead of `UnsubFunction` when making subscriptions. -# 0.38.1 Jan 08, 2019 +## 0.38.1 Jan 08, 2019 Substrate has been updated with a breaking new transaction format where the Index/Nonce is now encoded as a Compact. This change is being rolled out to both Alexander (Polkadot testnet) as well as Charred Cherry (Substrate testnet) - transactions between old and new are not compatible. -# 0.37.1 Jan 04, 2019 +## 0.37.1 Jan 04, 2019 api-observable has been removed. This was only used in /apps and inconsistent with the api/rx and api/promise APIs. Future work will include derives like was included in api-observable into the base. Tuples now return single types when only one type is available, i.e. `(AccountId)` would now resolve as `AccountId`. The extra type wrapper adds no benefit to users here. -# 0.36.1 Jan 03, 2019 +## 0.36.1 Jan 03, 2019 Api Promise has been updated in the way we deal with subscriptions. Previously a subscription returned `Promise` where the caller was to keep track of the id and use it in subsequent unsubscribes. Now any subscriptions return an unsubscribe/destroy function `(): void`, that is use for removing the subscriptions, e.g. @@ -627,51 +629,51 @@ unsubscribe(); // here we destroy the subscription ``` -# 0.35.1 Dec 20, 2018 +## 0.35.1 Dec 20, 2018 Swapped to new metadata structures from Substrate. If the API is not working with your node, update Substrate to latest master branch. (Or 0.9.1 for Charred Cherry). Dropped support for old metadata as found as far back as BBQ Birch. -# 0.34.1 Dec 18, 2018 +## 0.34.1 Dec 18, 2018 Changed the send signature (for future expansion of eg. events) to return `result: { status: ExtrinsicStatus }` instead of `status: ExtrinsicStatus`. For most cases where only status `type` checks are used, i.e. `status.type === 'Finalised'` this should not be a breaking change. Deep inspection of the status object however will need to adapt. -# 0.33.1 Dec 06, 2018 +## 0.33.1 Dec 06, 2018 -# 0.32.1 Nov 21, 2018 +## 0.32.1 Nov 21, 2018 -# 0.31.1 Oct 10, 2018 +## 0.31.1 Oct 10, 2018 -# 0.30.1 Sep 27, 2018 +## 0.30.1 Sep 27, 2018 -# 0.29.1 Sep 14, 2018 +## 0.29.1 Sep 14, 2018 -# 0.28.1 Aug 11, 2018 +## 0.28.1 Aug 11, 2018 -# 0.15.1 Aug 07, 2018 +## 0.15.1 Aug 07, 2018 -# 0.14.1 Jun 23, 2018 +## 0.14.1 Jun 23, 2018 -# 0.13.1 May 29, 2018 +## 0.13.1 May 29, 2018 -# 0.12.1 May 18, 2018 +## 0.12.1 May 18, 2018 -# 0.11.1 May 16, 2018 +## 0.11.1 May 16, 2018 -# 0.10.1 May 07, 2018 +## 0.10.1 May 07, 2018 -# 0.9.1 Apr 24, 2018 +## 0.9.1 Apr 24, 2018 -# 0.8.1 Mar 15, 2018 +## 0.8.1 Mar 15, 2018 -# 0.7.1 Jan 25, 2018 +## 0.7.1 Jan 25, 2018 -# 0.6.1 Dec 03, 2017 +## 0.6.1 Dec 03, 2017 -# 0.5.1 Nov 28, 2017 +## 0.5.1 Nov 28, 2017 -# 0.4.1 Nov 19, 2017 +## 0.4.1 Nov 19, 2017 -# 0.3.1 Nov 19, 2017 +## 0.3.1 Nov 19, 2017 -# 0.2.1 Nov 18, 2017 +## 0.2.1 Nov 18, 2017 diff --git a/package.json b/package.json index 5e4da74159..6fc47fff42 100644 --- a/package.json +++ b/package.json @@ -27,8 +27,8 @@ "@babel/core": "^7.10.1", "@babel/register": "^7.10.1", "@babel/runtime": "^7.10.1", - "@polkadot/dev": "^0.54.2", - "@polkadot/ts": "^0.3.24", + "@polkadot/dev": "^0.55.6", + "@polkadot/ts": "^0.3.25", "@polkadot/typegen": "workspace:packages/typegen", "@types/jest": "^25.2.3", "@vuepress/plugin-search": "^1.5.0", diff --git a/packages/api-derive/src/staking/stakerRewards.ts b/packages/api-derive/src/staking/stakerRewards.ts index 8721f36d2c..37859777d0 100644 --- a/packages/api-derive/src/staking/stakerRewards.ts +++ b/packages/api-derive/src/staking/stakerRewards.ts @@ -32,18 +32,20 @@ function parseRewards (api: ApiInterfaceRx, stashId: AccountId, [, erasPoints, e Object.entries(eraValidators).forEach(([validatorId, exposure]): void => { const valPoints = allValPoints[validatorId] || ZERO; const valComm = allValPrefs[validatorId]?.commission.unwrap() || ZERO; - const avail = eraReward.mul(valPoints).div(eraPoints); - const valCut = valComm.mul(avail).div(COMM_DIV); const expTotal = exposure.total.unwrap(); + let avail = ZERO; let value: BN | undefined; - if (!expTotal.isZero() && !valPoints.isZero()) { + if (!(expTotal.isZero() || valPoints.isZero() || eraPoints.isZero())) { + avail = eraReward.mul(valPoints).div(eraPoints); + + const valCut = valComm.mul(avail).div(COMM_DIV); let staked: BN; if (validatorId === stakerId) { staked = exposure.own.unwrap(); } else { - const stakerExp = exposure.others.find(({ who }): boolean => who.eq(stakerId)); + const stakerExp = exposure.others.find(({ who }) => who.eq(stakerId)); staked = stakerExp ? stakerExp.value.unwrap() diff --git a/yarn.lock b/yarn.lock index 77fcad62a7..510009b160 100644 --- a/yarn.lock +++ b/yarn.lock @@ -50,17 +50,17 @@ __metadata: linkType: hard "@babel/core@npm:^7.1.0, @babel/core@npm:^7.10.1, @babel/core@npm:^7.7.5, @babel/core@npm:^7.8.4, @babel/core@npm:^7.9.6": - version: 7.10.1 - resolution: "@babel/core@npm:7.10.1" + version: 7.10.2 + resolution: "@babel/core@npm:7.10.2" dependencies: "@babel/code-frame": ^7.10.1 - "@babel/generator": ^7.10.1 + "@babel/generator": ^7.10.2 "@babel/helper-module-transforms": ^7.10.1 "@babel/helpers": ^7.10.1 - "@babel/parser": ^7.10.1 + "@babel/parser": ^7.10.2 "@babel/template": ^7.10.1 "@babel/traverse": ^7.10.1 - "@babel/types": ^7.10.1 + "@babel/types": ^7.10.2 convert-source-map: ^1.7.0 debug: ^4.1.0 gensync: ^1.0.0-beta.1 @@ -69,19 +69,19 @@ __metadata: resolve: ^1.3.2 semver: ^5.4.1 source-map: ^0.5.0 - checksum: 3/dbd16ad9b5e37d29b50b6ca14279343309bffbb95f5091bbef77b6177b86d32cab570da092414346966605e3a89ba8c40671cb68037e7babf837d213d1e299f6 + checksum: 3/7cc75894e901505b9f741ba71c02c2ca35cedef9e5235d8db135244502c2f4fb7a5f179bf69ec7c8eee6b356dd0f0cd1157418fbea0f560b4c56d076bb86d454 languageName: node linkType: hard -"@babel/generator@npm:^7.10.1": - version: 7.10.1 - resolution: "@babel/generator@npm:7.10.1" +"@babel/generator@npm:^7.10.1, @babel/generator@npm:^7.10.2": + version: 7.10.2 + resolution: "@babel/generator@npm:7.10.2" dependencies: - "@babel/types": ^7.10.1 + "@babel/types": ^7.10.2 jsesc: ^2.5.1 lodash: ^4.17.13 source-map: ^0.5.0 - checksum: 3/7729a3d50c87690bdcb293a1ebefff6f38fb8d16e47666518501c37db3f8b1597dca6f196327e7fd75060053965abd565af4bc8eb1f0f1d633ce8069cc8edff9 + checksum: 3/69e9d70293631ec1a58622411ae38e31cf8ef5969ff4ce3ae04a8fdad3225331d73856975c2d11fd485e830e9fb34235304b5e1955406aaa2f9d1a6c5a9f7b19 languageName: node linkType: hard @@ -125,9 +125,9 @@ __metadata: languageName: node linkType: hard -"@babel/helper-compilation-targets@npm:^7.10.1, @babel/helper-compilation-targets@npm:^7.9.6": - version: 7.10.1 - resolution: "@babel/helper-compilation-targets@npm:7.10.1" +"@babel/helper-compilation-targets@npm:^7.10.2, @babel/helper-compilation-targets@npm:^7.9.6": + version: 7.10.2 + resolution: "@babel/helper-compilation-targets@npm:7.10.2" dependencies: "@babel/compat-data": ^7.10.1 browserslist: ^4.12.0 @@ -136,13 +136,13 @@ __metadata: semver: ^5.5.0 peerDependencies: "@babel/core": ^7.0.0 - checksum: 3/1e5f05e81061135c33734510ee48020d7b95465137c9aa2029ab9aabe587c114db3884f253f6ce43b9eb4c41d2dc54c14ed2ce9aed5a409e731749d63084474f + checksum: 3/5c9469f66f5a495ec4b99265a5af738f3fb09b56173bb8a651151c9ec5c6c657f540be851aabeaf4ff12f617cb15f699fcc29ae444d59e72b4dff1aad910b2c3 languageName: node linkType: hard "@babel/helper-create-class-features-plugin@npm:^7.10.1": - version: 7.10.1 - resolution: "@babel/helper-create-class-features-plugin@npm:7.10.1" + version: 7.10.2 + resolution: "@babel/helper-create-class-features-plugin@npm:7.10.2" dependencies: "@babel/helper-function-name": ^7.10.1 "@babel/helper-member-expression-to-functions": ^7.10.1 @@ -152,7 +152,7 @@ __metadata: "@babel/helper-split-export-declaration": ^7.10.1 peerDependencies: "@babel/core": ^7.0.0 - checksum: 3/ab6d7b236736c57270d9026cfc02fcdcb8d3d7d141e88933be6d07fc8d0145b5947a505838f4c8da4937adedaf47147dbc629f4d195933a730224bec88243c74 + checksum: 3/d095b7f5635d8c1c1e474f0a51f5ba710c5031ea29b3aca4bdee3605d4a2def9fa3147f177c6712e5bae2ae1a281579c6bc2143a3c5378285709b4eeadbfb70c languageName: node linkType: hard @@ -362,12 +362,12 @@ __metadata: languageName: node linkType: hard -"@babel/parser@npm:^7.0.0, @babel/parser@npm:^7.1.0, @babel/parser@npm:^7.10.1": - version: 7.10.1 - resolution: "@babel/parser@npm:7.10.1" +"@babel/parser@npm:^7.0.0, @babel/parser@npm:^7.1.0, @babel/parser@npm:^7.10.1, @babel/parser@npm:^7.10.2": + version: 7.10.2 + resolution: "@babel/parser@npm:7.10.2" bin: parser: ./bin/babel-parser.js - checksum: 3/78e6273b7f3bb019d85d3142965f212d0e39d58f9a9077e893ac3fa6f5c4327886bb1866449d33ede4369d3a303808788955f6a7ea6ea72775b9c2f819fdeca9 + checksum: 3/929624bbbcd82265a8d1930702c2da4a7546bd1bc7bd41dfacb37a9aa930c65be8ff10b18f73f85324b8a2574d03ea8dc1f4223f512c93218d7b488f0d8812f2 languageName: node linkType: hard @@ -1198,11 +1198,11 @@ __metadata: linkType: hard "@babel/preset-env@npm:^7.10.1, @babel/preset-env@npm:^7.9.6": - version: 7.10.1 - resolution: "@babel/preset-env@npm:7.10.1" + version: 7.10.2 + resolution: "@babel/preset-env@npm:7.10.2" dependencies: "@babel/compat-data": ^7.10.1 - "@babel/helper-compilation-targets": ^7.10.1 + "@babel/helper-compilation-targets": ^7.10.2 "@babel/helper-module-imports": ^7.10.1 "@babel/helper-plugin-utils": ^7.10.1 "@babel/plugin-proposal-async-generator-functions": ^7.10.1 @@ -1259,7 +1259,7 @@ __metadata: "@babel/plugin-transform-unicode-escapes": ^7.10.1 "@babel/plugin-transform-unicode-regex": ^7.10.1 "@babel/preset-modules": ^0.1.3 - "@babel/types": ^7.10.1 + "@babel/types": ^7.10.2 browserslist: ^4.12.0 core-js-compat: ^3.6.2 invariant: ^2.2.2 @@ -1267,7 +1267,7 @@ __metadata: semver: ^5.5.0 peerDependencies: "@babel/core": ^7.0.0-0 - checksum: 3/0a777e7c6d357d01b80f558515f11321bd4bfd3bcf45d85caddeed0ca89f7b68b5bec7884e4d0a73860060a96ee3d68648e4d1fd7645368b989a4a4a66d724c7 + checksum: 3/e74276ebc78dbf405e3e7b29bb609b6971a15f94ec05bc443077edd3c05c17a3c0c110da64509608d2557797e80ae867ea189da27e5b1d101652a45f856543e9 languageName: node linkType: hard @@ -1331,21 +1331,21 @@ __metadata: linkType: hard "@babel/runtime-corejs3@npm:^7.8.3": - version: 7.10.1 - resolution: "@babel/runtime-corejs3@npm:7.10.1" + version: 7.10.2 + resolution: "@babel/runtime-corejs3@npm:7.10.2" dependencies: core-js-pure: ^3.0.0 regenerator-runtime: ^0.13.4 - checksum: 3/c898c2bf2abca80a730889e112596d4ef7874203304fd6ff87937aa6060e15820f90dda711956a36b9d595e8c3c7bf8c8ca568f299eda3058d7c47cbca6a6b07 + checksum: 3/06544f2fe7198617f9dd0a258055c0dca7e07adaa8d5f9438c8bbe703807b5d3cc99719911ad2342ef09cf0dc4f65407d4687a83bf4e6465960c2e669ff6e78d languageName: node linkType: hard "@babel/runtime@npm:^7.10.1, @babel/runtime@npm:^7.8.4, @babel/runtime@npm:^7.9.6": - version: 7.10.1 - resolution: "@babel/runtime@npm:7.10.1" + version: 7.10.2 + resolution: "@babel/runtime@npm:7.10.2" dependencies: regenerator-runtime: ^0.13.4 - checksum: 3/7438650023aa89c563135098a877ed67d52bb1c0720f1005280699e60cae592c7fd4d768589819398cc1a3de7a1c3c8dd6522f319bd0564af5d4402f25bca768 + checksum: 3/0f3466d63518eca76e58ee523a21d9181949e10eb6d51d4e84d42702da5fae06f90f5e1e0a8e51420feb432ee73d7b6aae4a03d2210ac5c8aeaba3d2de7f2bf9 languageName: node linkType: hard @@ -1377,14 +1377,14 @@ __metadata: languageName: node linkType: hard -"@babel/types@npm:^7.0.0, @babel/types@npm:^7.10.1, @babel/types@npm:^7.3.0, @babel/types@npm:^7.3.3, @babel/types@npm:^7.4.4": - version: 7.10.1 - resolution: "@babel/types@npm:7.10.1" +"@babel/types@npm:^7.0.0, @babel/types@npm:^7.10.1, @babel/types@npm:^7.10.2, @babel/types@npm:^7.3.0, @babel/types@npm:^7.3.3, @babel/types@npm:^7.4.4": + version: 7.10.2 + resolution: "@babel/types@npm:7.10.2" dependencies: "@babel/helper-validator-identifier": ^7.10.1 lodash: ^4.17.13 to-fast-properties: ^2.0.0 - checksum: 3/469d36be8639741cf728f666a224b7d160286aa828b68db8e169985a31ac107f6d9b6462cbb98a91012b44fbba2fe37ba0b776aa492813986999f0d0b0b6ceb1 + checksum: 3/cebcac3d3f083458fa671aef3a4d5346df86e5376cefe9b734dd7ae6a84f19935d588d07db450af56773aa995a440b80916d55da6f0c5c14f0755734b3fbe505 languageName: node linkType: hard @@ -2656,11 +2656,11 @@ __metadata: linkType: hard "@octokit/types@npm:^4.0.1": - version: 4.0.2 - resolution: "@octokit/types@npm:4.0.2" + version: 4.1.2 + resolution: "@octokit/types@npm:4.1.2" dependencies: "@types/node": ">= 8" - checksum: 3/3ddeefd099657e6982f03a98dae2655701cde0dfb1612095d4871dba594e36bda934c5b37e24c0a8f2d43bc6bdef1cdf3d04e6145a3940e827b7a3d876840e8f + checksum: 3/59d7d392bcc20e333788a887622b0082477382bdd64bc0171f88426eef574549dcc022689748177030c28d8eea538d4d1d116f3561772584f57199df32a6bc98 languageName: node linkType: hard @@ -2716,9 +2716,9 @@ __metadata: languageName: unknown linkType: soft -"@polkadot/dev@npm:^0.54.2": - version: 0.54.2 - resolution: "@polkadot/dev@npm:0.54.2" +"@polkadot/dev@npm:^0.55.6": + version: 0.55.6 + resolution: "@polkadot/dev@npm:0.55.6" dependencies: "@babel/cli": ^7.10.1 "@babel/core": ^7.10.1 @@ -2762,7 +2762,8 @@ __metadata: eslint-plugin-sort-destructure-keys: ^1.3.4 eslint-plugin-standard: ^4.0.1 fs-extra: ^9.0.0 - gh-pages: ^2.2.0 + gh-pages: ^3.0.0 + gh-release: ^3.5.0 jest: ^26.0.1 jest-cli: ^26.0.1 jest-config: ^26.0.1 @@ -2775,7 +2776,7 @@ __metadata: typedoc: ^0.17.7 typedoc-plugin-markdown: ^2.2.17 typedoc-plugin-no-inherit: ^1.1.10 - typescript: ^3.9.3 + typescript: ^3.9.4 vuepress: ^1.5.0 webpack: ^4.43.0 webpack-cli: ^3.3.11 @@ -2794,12 +2795,13 @@ __metadata: polkadot-dev-yarn-only: scripts/polkadot-dev-yarn-only.js polkadot-exec-eslint: scripts/polkadot-exec-eslint.js polkadot-exec-ghpages: scripts/polkadot-exec-ghpages.js + polkadot-exec-ghrelease: scripts/polkadot-exec-ghrelease.js polkadot-exec-lerna: scripts/polkadot-exec-lerna.js polkadot-exec-tsc: scripts/polkadot-exec-tsc.js polkadot-exec-typedoc: scripts/polkadot-exec-typedoc.js polkadot-exec-vuepress: scripts/polkadot-exec-vuepress.js polkadot-exec-webpack: scripts/polkadot-exec-webpack.js - checksum: 3/b0761220438963d9bb87eaf615a4dd9bfffadff234e8c34188653c00b34b397dc482af5ebf82ced84731a9bf2f4dc2c8e20c5c9bb7133751f91a7ea351d057ba + checksum: 3/02e4d5b40af762f8eef1efaff808aa64a16f8b0cd0b96f516f0fbadf774716b9fe481e6d15d1d74199ddf212f7da689a30e21cca20c7ce41098c80982754a45b languageName: node linkType: hard @@ -2862,12 +2864,12 @@ __metadata: languageName: unknown linkType: soft -"@polkadot/ts@npm:^0.3.24": - version: 0.3.24 - resolution: "@polkadot/ts@npm:0.3.24" +"@polkadot/ts@npm:^0.3.25": + version: 0.3.25 + resolution: "@polkadot/ts@npm:0.3.25" dependencies: "@types/chrome": ^0.0.114 - checksum: 3/6198c66b8cdbeb661540c8b231afb638a08bd5d6b48eaffb381785ea13e4bbdacfbc5b78d3492b14b438829a38af295cb404794d36faaa9b3304b3b122303c8d + checksum: 3/9cd069fca8d70ce56618ce45d98670f5d4c020518148d61413227e9b9aae2d59200897866e1b7513dd8445a37daaeb98546a48d0903ac5ba73409f932f24a44a languageName: node linkType: hard @@ -3164,7 +3166,7 @@ __metadata: languageName: node linkType: hard -"@types/json-schema@npm:^7.0.3": +"@types/json-schema@npm:^7.0.3, @types/json-schema@npm:^7.0.4": version: 7.0.4 resolution: "@types/json-schema@npm:7.0.4" checksum: 3/5094037431e4b29d5cc9d6938ea596d1145cc46d305d8d302a477a54d0a7a83ba4629abbf52fcabc3ffdb31cf94647bc366a7bcc544770cbb80212d903018e2b @@ -3202,9 +3204,9 @@ __metadata: linkType: hard "@types/node@npm:*, @types/node@npm:>= 8": - version: 14.0.5 - resolution: "@types/node@npm:14.0.5" - checksum: 3/38a9f9b66c2657b4ba520e40073369d4a33438dd45f9c001d98a7cda40e88a5ea28485c320fa00fc706b5473b549cacc9a8b9796e4d69681c032619e12f73f7d + version: 14.0.6 + resolution: "@types/node@npm:14.0.6" + checksum: 3/14c184ce392941d016aa94479eca2d33517756a9e48d0b03ba6e258128b513dc28dc524f85cc0591e12be9d804beff6aadc4b3159555c6ffdd1d1ab8f46d41da languageName: node linkType: hard @@ -3995,7 +3997,7 @@ __metadata: languageName: node linkType: hard -"ajv@npm:^6.1.0, ajv@npm:^6.10.0, ajv@npm:^6.10.2, ajv@npm:^6.12.0, ajv@npm:^6.5.5": +"ajv@npm:^6.1.0, ajv@npm:^6.10.0, ajv@npm:^6.10.2, ajv@npm:^6.12.2, ajv@npm:^6.5.5": version: 6.12.2 resolution: "ajv@npm:6.12.2" dependencies: @@ -4037,6 +4039,15 @@ __metadata: languageName: node linkType: hard +"ansi-align@npm:^2.0.0": + version: 2.0.0 + resolution: "ansi-align@npm:2.0.0" + dependencies: + string-width: ^2.0.0 + checksum: 3/acd73a693a39a0cbc8f9f34528f685fa881a720de8ca5d9b65266486ed7dfb158918a8198fa0ef29c24b10c121ad677d42255232073593ab15631d547e47ba73 + languageName: node + linkType: hard + "ansi-align@npm:^3.0.0": version: 3.0.0 resolution: "ansi-align@npm:3.0.0" @@ -4176,6 +4187,23 @@ __metadata: languageName: node linkType: hard +"application-config-path@npm:^0.1.0": + version: 0.1.0 + resolution: "application-config-path@npm:0.1.0" + checksum: 3/00967a8f16754bc2d55648b6e7689a56fd7c375326d33902bc37ddfb28c11c1868690a93f8ce0ee56f9cdae20fd81e4c4db2b100fbf9762c4f016269ee37b75d + languageName: node + linkType: hard + +"application-config@npm:~1.0.0": + version: 1.0.1 + resolution: "application-config@npm:1.0.1" + dependencies: + application-config-path: ^0.1.0 + mkdirp: ^0.5.1 + checksum: 3/d643e31a4e59a1b8284ccf8ae56805ad07bd19ed46712f10c6b8d2d925cb588f7652ef34e3fce16cd688888aea666786746b9fc24645102ba1f7d38480a615c0 + languageName: node + linkType: hard + "aproba@npm:^1.0.3, aproba@npm:^1.1.1": version: 1.2.0 resolution: "aproba@npm:1.2.0" @@ -4418,6 +4446,13 @@ __metadata: languageName: node linkType: hard +"async@npm:^0.9.0": + version: 0.9.2 + resolution: "async@npm:0.9.2" + checksum: 3/78c0aad8add0b84ccf9bde90d20a9cd20146e3734a4c9ac9bfb3a30d1b7df12b7d95c13119af825a89480210c02f7ffee38ac07c13ac43abd6636691b982b591 + languageName: node + linkType: hard + "async@npm:^2.6.1, async@npm:^2.6.2": version: 2.6.3 resolution: "async@npm:2.6.3" @@ -4759,6 +4794,15 @@ __metadata: languageName: node linkType: hard +"bl@npm:~1.1.2": + version: 1.1.2 + resolution: "bl@npm:1.1.2" + dependencies: + readable-stream: ~2.0.5 + checksum: 3/0c3fe9f99c2a449baa62e6a4df58c73d36e138e3d9ad7ac57082b31093c8725111d782c1cb677c9754163a293688f94c61e85051fd5d24d10cefcd5749f8caef + languageName: node + linkType: hard + "blakejs@npm:^1.1.0": version: 1.1.0 resolution: "blakejs@npm:1.1.0" @@ -4826,6 +4870,21 @@ __metadata: languageName: node linkType: hard +"boxen@npm:^1.2.1": + version: 1.3.0 + resolution: "boxen@npm:1.3.0" + dependencies: + ansi-align: ^2.0.0 + camelcase: ^4.0.0 + chalk: ^2.0.1 + cli-boxes: ^1.0.0 + string-width: ^2.0.0 + term-size: ^1.2.0 + widest-line: ^2.0.0 + checksum: 3/1e402785f9bd5994d0679adb98fd4137200553bbc14073aefa9e5f4fa9b001b713561c978e3976cebc520a25e3eb4babd2288b7fa8dfe28b5cf041e8dedec1c2 + languageName: node + linkType: hard + "boxen@npm:^4.2.0": version: 4.2.0 resolution: "boxen@npm:4.2.0" @@ -5263,7 +5322,7 @@ __metadata: languageName: node linkType: hard -"camelcase@npm:^4.1.0": +"camelcase@npm:^4.0.0, camelcase@npm:^4.1.0": version: 4.1.0 resolution: "camelcase@npm:4.1.0" checksum: 3/6ca41b5114ef3683013fb51cf9a11c60dcfeef90ceb0075c2d77b7455819e2acdcc7fb5c033314f862212acb23056f1774879dfc580938a9a27ecc345856d1a3 @@ -5312,6 +5371,13 @@ __metadata: languageName: node linkType: hard +"capture-stack-trace@npm:^1.0.0": + version: 1.0.1 + resolution: "capture-stack-trace@npm:1.0.1" + checksum: 3/c857f977ca42626cf9187b753ae7e891c894689b917f7d83510c89cec58bdd2fbf77055987226efa862cf95c15ade4e02ccd463f53fdec49819170c0905d1071 + languageName: node + linkType: hard + "caseless@npm:~0.12.0": version: 0.12.0 resolution: "caseless@npm:0.12.0" @@ -5319,7 +5385,7 @@ __metadata: languageName: node linkType: hard -"chalk@npm:2.4.2, chalk@npm:^2.0.0, chalk@npm:^2.3.1, chalk@npm:^2.3.2, chalk@npm:^2.4.1, chalk@npm:^2.4.2": +"chalk@npm:2.4.2, chalk@npm:^2.0.0, chalk@npm:^2.0.1, chalk@npm:^2.3.1, chalk@npm:^2.3.2, chalk@npm:^2.4.1, chalk@npm:^2.4.2": version: 2.4.2 resolution: "chalk@npm:2.4.2" dependencies: @@ -5330,7 +5396,7 @@ __metadata: languageName: node linkType: hard -"chalk@npm:^1.1.3": +"chalk@npm:^1.0.0, chalk@npm:^1.1.3": version: 1.1.3 resolution: "chalk@npm:1.1.3" dependencies: @@ -5363,6 +5429,18 @@ __metadata: languageName: node linkType: hard +"changelog-parser@npm:^2.0.0": + version: 2.8.0 + resolution: "changelog-parser@npm:2.8.0" + dependencies: + line-reader: ^0.2.4 + remove-markdown: ^0.2.2 + bin: + changelog-parser: ./bin/cli.js + checksum: 3/60ca382e4d875b882db1f312806eb0047fef6d766fbaf11df0a03f5fac18a1948b88e0e9fbebb0f50ce80d07a1a5fcfc93512cc74663f9318aae5ff28affb18b + languageName: node + linkType: hard + "char-regex@npm:^1.0.2": version: 1.0.2 resolution: "char-regex@npm:1.0.2" @@ -5455,7 +5533,7 @@ __metadata: languageName: node linkType: hard -"ci-info@npm:^1.6.0": +"ci-info@npm:^1.5.0, ci-info@npm:^1.6.0": version: 1.6.0 resolution: "ci-info@npm:1.6.0" checksum: 3/c53d8ead84b00b44a26099b9afbe25d07d1cf02a0b2e354f97e4765ab965525d5d831d264b045737ac03076be3c34e87b64dee0d94cfd87cfc227299cb1c0137 @@ -5500,6 +5578,13 @@ __metadata: languageName: node linkType: hard +"cli-boxes@npm:^1.0.0": + version: 1.0.0 + resolution: "cli-boxes@npm:1.0.0" + checksum: 3/1227f15d826bd7d192dfa8ccb1013027739b1d60336de540abc957d4664a047c7dc5d1aa8f39633adcc0bc01f48201dfc9fe198a115dbae874794a9048db9840 + languageName: node + linkType: hard + "cli-boxes@npm:^2.2.0": version: 2.2.0 resolution: "cli-boxes@npm:2.2.0" @@ -5836,6 +5921,20 @@ __metadata: languageName: node linkType: hard +"configstore@npm:^3.0.0": + version: 3.1.2 + resolution: "configstore@npm:3.1.2" + dependencies: + dot-prop: ^4.1.0 + graceful-fs: ^4.1.2 + make-dir: ^1.0.0 + unique-string: ^1.0.0 + write-file-atomic: ^2.0.0 + xdg-basedir: ^3.0.0 + checksum: 3/3b7185bc3dc143524af5741dc96c723027b396a230b6ba108c4863dd75c558160f38cbc6da6765d03336a54a2a3a0217de05cbf19d8ba7a6d5cec0d8f55b9622 + languageName: node + linkType: hard + "configstore@npm:^5.0.1": version: 5.0.1 resolution: "configstore@npm:5.0.1" @@ -6199,6 +6298,15 @@ __metadata: languageName: node linkType: hard +"create-error-class@npm:^3.0.0": + version: 3.0.2 + resolution: "create-error-class@npm:3.0.2" + dependencies: + capture-stack-trace: ^1.0.0 + checksum: 3/cbd6512694a5bf8cd3f8742cb58cd4b85c67812316878d9515cbbc8f531b22b4fb14e074de6b564fc4951be4e7ce223ed4bf245865ac0cb09e1209d8e6cae0ec + languageName: node + linkType: hard + "create-hash@npm:^1.1.0, create-hash@npm:^1.1.2, create-hash@npm:^1.2.0": version: 1.2.0 resolution: "create-hash@npm:1.2.0" @@ -6239,6 +6347,17 @@ __metadata: languageName: node linkType: hard +"cross-spawn@npm:^5.0.1": + version: 5.1.0 + resolution: "cross-spawn@npm:5.1.0" + dependencies: + lru-cache: ^4.0.1 + shebang-command: ^1.2.0 + which: ^1.2.9 + checksum: 3/96018c42a94a2f69e27c11688db638c343109e4eda5cc6586a83a1d2f102ef2ef4d184919593036748d386ddb67cc3e66658fefec85a4659958cde792f1a9ddc + languageName: node + linkType: hard + "cross-spawn@npm:^7.0.0, cross-spawn@npm:^7.0.2": version: 7.0.3 resolution: "cross-spawn@npm:7.0.3" @@ -6269,6 +6388,13 @@ __metadata: languageName: node linkType: hard +"crypto-random-string@npm:^1.0.0": + version: 1.0.0 + resolution: "crypto-random-string@npm:1.0.0" + checksum: 3/0876b316ccf6f501d0deda42507adcfff276790eba38ab87ba4a7f77e1f11404f406fa36a8c273e781c9eabbbe5da4eab4d7577ca1e84dcac556743ffc816af5 + languageName: node + linkType: hard + "crypto-random-string@npm:^2.0.0": version: 2.0.0 resolution: "crypto-random-string@npm:2.0.0" @@ -7227,7 +7353,7 @@ __metadata: languageName: node linkType: hard -"dot-prop@npm:^4.2.0": +"dot-prop@npm:^4.1.0, dot-prop@npm:^4.2.0": version: 4.2.0 resolution: "dot-prop@npm:4.2.0" dependencies: @@ -7245,6 +7371,15 @@ __metadata: languageName: node linkType: hard +"duplexer2@npm:~0.0.2": + version: 0.0.2 + resolution: "duplexer2@npm:0.0.2" + dependencies: + readable-stream: ~1.1.9 + checksum: 3/93a5d6ae6bcd6d4a41ec8d31fe169b3ff4d842eda2b6688fd313d6fc0fb5cab3abe5dd41645b9924549feb6d4400265b29e8a6875420664a6ea50f80567cccb6 + languageName: node + linkType: hard + "duplexer3@npm:^0.1.4": version: 0.1.4 resolution: "duplexer3@npm:0.1.4" @@ -7289,9 +7424,9 @@ __metadata: linkType: hard "electron-to-chromium@npm:^1.3.413": - version: 1.3.453 - resolution: "electron-to-chromium@npm:1.3.453" - checksum: 3/c530840bb5b4f8e6fc5041f4bb8210326c40c1a2a59ffc8b0b96a7df1b7e5889597ff8ae38de595c1ac49c27f3debb00f65563a2122e7e9aa9cd1f06917640c8 + version: 1.3.455 + resolution: "electron-to-chromium@npm:1.3.455" + checksum: 3/c615b74f4d2814916f9144b32e33dacf31b647c6de9da4562fdeff2987b72d1174d6e13eb6d9bb5693067ba87c1877e12bb5d454c059eaf57a1377453cf01f13 languageName: node linkType: hard @@ -7961,6 +8096,21 @@ __metadata: languageName: node linkType: hard +"execa@npm:^0.7.0": + version: 0.7.0 + resolution: "execa@npm:0.7.0" + dependencies: + cross-spawn: ^5.0.1 + get-stream: ^3.0.0 + is-stream: ^1.1.0 + npm-run-path: ^2.0.0 + p-finally: ^1.0.0 + signal-exit: ^3.0.0 + strip-eof: ^1.0.0 + checksum: 3/7210f5334e5da185365eccc129bedb2f7dc6e5872fb1f09f36fc603e32790d79bfad61ddc6219d057d7fa65c69c17025cdb51b859e7d5a64e94d261ddbbbf260 + languageName: node + linkType: hard + "execa@npm:^1.0.0": version: 1.0.0 resolution: "execa@npm:1.0.0" @@ -8727,7 +8877,7 @@ __metadata: languageName: node linkType: hard -"gauge@npm:~2.7.3": +"gauge@npm:^2.7.4, gauge@npm:~2.7.3": version: 2.7.4 resolution: "gauge@npm:2.7.4" dependencies: @@ -8817,6 +8967,13 @@ __metadata: languageName: node linkType: hard +"get-stream@npm:^3.0.0": + version: 3.0.0 + resolution: "get-stream@npm:3.0.0" + checksum: 3/83ed722c1b43b3889f12cc4530d663b282a6fee915856d0c7122138d4864a3db54d252df2f9de032d1a2bb6b5a807083954992e583180b500013b2351fb5f440 + languageName: node + linkType: hard + "get-stream@npm:^4.0.0, get-stream@npm:^4.1.0": version: 4.1.0 resolution: "get-stream@npm:4.1.0" @@ -8851,9 +9008,9 @@ __metadata: languageName: node linkType: hard -"gh-pages@npm:^2.2.0": - version: 2.2.0 - resolution: "gh-pages@npm:2.2.0" +"gh-pages@npm:^3.0.0": + version: 3.0.0 + resolution: "gh-pages@npm:3.0.0" dependencies: async: ^2.6.1 commander: ^2.18.0 @@ -8864,7 +9021,56 @@ __metadata: bin: gh-pages: bin/gh-pages.js gh-pages-clean: bin/gh-pages-clean.js - checksum: 3/4aec588e014b9088e7ef999d41eb591436aa92293ebacef933afc9a162c77a8dd217bc054ea27686875831c929fbe1386efcdc2635651066420e013511506e6f + checksum: 3/f8e5273fd437af276c917527ae81d33246e075e78dcac09ba298f9ceb309e8c09c4beb58da5248e1eae553945c5455980e9429814d74c9e5c76b8be28a7b8cdd + languageName: node + linkType: hard + +"gh-release-assets@npm:^1.1.0": + version: 1.1.2 + resolution: "gh-release-assets@npm:1.1.2" + dependencies: + async: ^0.9.0 + mime: ^1.3.4 + progress-stream: ^2.0.0 + request: ^2.85.0 + util-extend: ^1.0.1 + checksum: 3/cab07da6dd35401b04ff2a122565e63693d011f440be3e939368f9d37d0c00881d5c0ea272556071b328234d6d30ade93cdbacc6b7dc873c33849474451344aa + languageName: node + linkType: hard + +"gh-release@npm:^3.5.0": + version: 3.5.0 + resolution: "gh-release@npm:3.5.0" + dependencies: + chalk: ^1.0.0 + changelog-parser: ^2.0.0 + deep-extend: ^0.6.0 + gauge: ^2.7.4 + gh-release-assets: ^1.1.0 + ghauth: ^3.2.0 + github-url-to-object: ^3.0.0 + inquirer: ^6.2.0 + request: ^2.82.0 + shelljs: ^0.3.0 + update-notifier: ^2.2.0 + yargs: ^2.1.1 + bin: + gh-release: ./bin/cli.js + checksum: 3/8ec4fcd302cad3ac1a82a50eeb9edc0fdbd6428a6b8383b915f61e9e4b0b8e77330a24901653bce42b70c59b8cc5165d217b51ee6e7eef99fffe31653c5b2aa1 + languageName: node + linkType: hard + +"ghauth@npm:^3.2.0": + version: 3.2.1 + resolution: "ghauth@npm:3.2.1" + dependencies: + application-config: ~1.0.0 + bl: ~1.1.2 + hyperquest: ~2.0.0 + mkdirp: ~0.5.1 + read: ~1.0.7 + xtend: ~4.0.1 + checksum: 3/c94666d3c004b50db4fe827ad51eabe603e9a2ac71c8528d171dd8109f2b5a29af44b5a8314b04a2b0e8ccebd8c80f689b7bc2dac999278d76b84834bf4a2ebf languageName: node linkType: hard @@ -8933,6 +9139,15 @@ __metadata: languageName: node linkType: hard +"github-url-to-object@npm:^3.0.0": + version: 3.1.0 + resolution: "github-url-to-object@npm:3.1.0" + dependencies: + is-url: ^1.1.0 + checksum: 3/14afd37ec06241fe476769e255e1730000a87005014dabb29acbe51632bff415ce388455bb5e102dfc8d60ed570c7140f7e5ed2c4f3c362ab344f1557dddc4d7 + languageName: node + linkType: hard + "glob-base@npm:^0.3.0": version: 0.3.0 resolution: "glob-base@npm:0.3.0" @@ -9001,6 +9216,15 @@ __metadata: languageName: node linkType: hard +"global-dirs@npm:^0.1.0": + version: 0.1.1 + resolution: "global-dirs@npm:0.1.1" + dependencies: + ini: ^1.3.4 + checksum: 3/0d46e90b45e35fef757ef468fd497ea249787dafb20b76597ac0a1c129d8e8d7f09db4640a2f7ed12d1057159197af94ef4eea74c0be9c7c1c2c3bec5f0a6834 + languageName: node + linkType: hard + "global-dirs@npm:^2.0.1": version: 2.0.1 resolution: "global-dirs@npm:2.0.1" @@ -9143,6 +9367,25 @@ __metadata: languageName: node linkType: hard +"got@npm:^6.7.1": + version: 6.7.1 + resolution: "got@npm:6.7.1" + dependencies: + create-error-class: ^3.0.0 + duplexer3: ^0.1.4 + get-stream: ^3.0.0 + is-redirect: ^1.0.0 + is-retry-allowed: ^1.0.0 + is-stream: ^1.0.0 + lowercase-keys: ^1.0.0 + safe-buffer: ^5.0.1 + timed-out: ^4.0.0 + unzip-response: ^2.0.1 + url-parse-lax: ^1.0.0 + checksum: 3/bf19ee1cbb915bf67b93c13cd441023b209562f4fd2d965099d40c05746a8a550e09787d94558a5e6d7064e91e7a4529a2c919f7e8c4a482517a38e98930ef5e + languageName: node + linkType: hard + "got@npm:^9.6.0": version: 9.6.0 resolution: "got@npm:9.6.0" @@ -9668,6 +9911,16 @@ __metadata: languageName: node linkType: hard +"hyperquest@npm:~2.0.0": + version: 2.0.0 + resolution: "hyperquest@npm:2.0.0" + dependencies: + duplexer2: ~0.0.2 + through2: ~0.6.3 + checksum: 3/39b026e16dd0d2d663046b00721746ddcb2a02d1e1768ef9f34ec920077b3533f745142ef05edbed71f0a377c9fd22240042ec18dde57d164c383c3071524001 + languageName: node + linkType: hard + "iconv-lite@npm:0.4.24, iconv-lite@npm:^0.4.24, iconv-lite@npm:~0.4.13": version: 0.4.24 resolution: "iconv-lite@npm:0.4.24" @@ -9731,9 +9984,9 @@ __metadata: linkType: hard "ignore@npm:^5.1.1": - version: 5.1.6 - resolution: "ignore@npm:5.1.6" - checksum: 3/e7167d699477a44d6065b3ddfaada5f3f7dcc522ea8d702b21b983b2eaadefed2f2b63614e2697446dd2d875ce4c64ce4c1cc80eac2c068d6c5598eddd7d31ce + version: 5.1.8 + resolution: "ignore@npm:5.1.8" + checksum: 3/b08e3d5b5d94eca13475f29a5d47d221060e9cdd7e38d7647088e29d90130669a970fecbc4cdb41b8fa295c6673740c729d3dc05dadc381f593efb42282cbf9f languageName: node linkType: hard @@ -10110,6 +10363,17 @@ __metadata: languageName: node linkType: hard +"is-ci@npm:^1.0.10": + version: 1.2.1 + resolution: "is-ci@npm:1.2.1" + dependencies: + ci-info: ^1.5.0 + bin: + is-ci: bin.js + checksum: 3/cdcdeba94278edf4e6a305aba93ecffd58cb35a08ebf879a7f715e5538be55ad23a841f48a796b71beae36e0c6e2290eca38cf8a8feed563fb62090879ead93b + languageName: node + linkType: hard + "is-ci@npm:^2.0.0": version: 2.0.0 resolution: "is-ci@npm:2.0.0" @@ -10306,6 +10570,16 @@ __metadata: languageName: node linkType: hard +"is-installed-globally@npm:^0.1.0": + version: 0.1.0 + resolution: "is-installed-globally@npm:0.1.0" + dependencies: + global-dirs: ^0.1.0 + is-path-inside: ^1.0.0 + checksum: 3/99de529fc67cca6f304ffd149e74b83ec4383b5340e1d2e9021843628c639eda08fc9596c712da3da7a90fef8ecdf5c7eb39ccaf9927deb6fcad2c0f05b06cf7 + languageName: node + linkType: hard + "is-installed-globally@npm:^0.3.1": version: 0.3.2 resolution: "is-installed-globally@npm:0.3.2" @@ -10323,6 +10597,13 @@ __metadata: languageName: node linkType: hard +"is-npm@npm:^1.0.0": + version: 1.0.0 + resolution: "is-npm@npm:1.0.0" + checksum: 3/b562218ef05cc2e3bce0b131700e78cc9095c28a9ce2158340947d3806c36108be3a6ea6991bb658dba76a14f9840ad3e3560a239c6048cccf27fc4fbe00087d + languageName: node + linkType: hard + "is-npm@npm:^4.0.0": version: 4.0.0 resolution: "is-npm@npm:4.0.0" @@ -10392,6 +10673,15 @@ __metadata: languageName: node linkType: hard +"is-path-inside@npm:^1.0.0": + version: 1.0.1 + resolution: "is-path-inside@npm:1.0.1" + dependencies: + path-is-inside: ^1.0.1 + checksum: 3/7ccbc0bedfb98d07191f9a6c839f78ffb102c24fb77f58ecca52fec13d618d15b7bd52d6335637a80c8830bc4864849adda8fd4107755a96747d690336190beb + languageName: node + linkType: hard + "is-path-inside@npm:^2.1.0": version: 2.1.0 resolution: "is-path-inside@npm:2.1.0" @@ -10461,6 +10751,13 @@ __metadata: languageName: node linkType: hard +"is-redirect@npm:^1.0.0": + version: 1.0.0 + resolution: "is-redirect@npm:1.0.0" + checksum: 3/24c2aef7dbc710f7ec4534c6ba617b62d938cfcdf366db319563ff32cf9d6a20047b0fd44dfb018f389e60d76ff96f4801ae39ddbde2ad124d2a51330760b605 + languageName: node + linkType: hard + "is-regex@npm:^1.0.4, is-regex@npm:^1.0.5": version: 1.0.5 resolution: "is-regex@npm:1.0.5" @@ -10491,6 +10788,13 @@ __metadata: languageName: node linkType: hard +"is-retry-allowed@npm:^1.0.0": + version: 1.2.0 + resolution: "is-retry-allowed@npm:1.2.0" + checksum: 3/739384d2662f38fe0edd1bcdf7f88551c6f1b1fdc7fde3ba86442cd675d337f14100d6479bcbb4635f7e38d11e1a2c2e173a52ba39547631960641d9fbe65531 + languageName: node + linkType: hard + "is-ssh@npm:^1.3.0": version: 1.3.1 resolution: "is-ssh@npm:1.3.1" @@ -10500,7 +10804,7 @@ __metadata: languageName: node linkType: hard -"is-stream@npm:^1.0.1, is-stream@npm:^1.1.0": +"is-stream@npm:^1.0.0, is-stream@npm:^1.0.1, is-stream@npm:^1.1.0": version: 1.1.0 resolution: "is-stream@npm:1.1.0" checksum: 3/39843ee9ff68ebda05237199f18831eb6e0e28db7799ee9ddaac5573b0681f18b4dc427afdb7b7ad906db545e4648999c42a1810b277acc8451593ff59da00fa @@ -10555,7 +10859,7 @@ __metadata: languageName: node linkType: hard -"is-url@npm:^1.2.4": +"is-url@npm:^1.1.0, is-url@npm:^1.2.4": version: 1.2.4 resolution: "is-url@npm:1.2.4" checksum: 3/76d309e9fafdb3117c110ae2911e23f0fb6bf595f5d2c3470def80480e86903e95d84dbdf050f1f9cc746a47e7ea3b24c7096758c724224c5b67211783852e53 @@ -11469,6 +11773,15 @@ __metadata: languageName: node linkType: hard +"latest-version@npm:^3.0.0": + version: 3.1.0 + resolution: "latest-version@npm:3.1.0" + dependencies: + package-json: ^4.0.0 + checksum: 3/117b4a315afaba84c34c13a07dd1b15fe622f72fcd703136cf9d26ddeb3dc29d9b234241a18909f0af67224fb445a90d85a8e686f8defb8bce1968520b9c68aa + languageName: node + linkType: hard + "latest-version@npm:^5.0.0": version: 5.1.0 resolution: "latest-version@npm:5.1.0" @@ -11560,6 +11873,13 @@ __metadata: languageName: node linkType: hard +"line-reader@npm:^0.2.4": + version: 0.2.4 + resolution: "line-reader@npm:0.2.4" + checksum: 3/19f40df4d9d77aaf5ad4fecff4d82624aae62393bac04f32d59d488af9283797538d373270be03f6e4b90ade0d19de84b777d101abaa7e240da7f5b6a17125f8 + languageName: node + linkType: hard + "lines-and-columns@npm:^1.1.6": version: 1.1.6 resolution: "lines-and-columns@npm:1.1.6" @@ -11864,7 +12184,7 @@ __metadata: languageName: node linkType: hard -"lru-cache@npm:^4.1.2": +"lru-cache@npm:^4.0.1, lru-cache@npm:^4.1.2": version: 4.1.5 resolution: "lru-cache@npm:4.1.5" dependencies: @@ -12370,7 +12690,7 @@ __metadata: languageName: node linkType: hard -"mime@npm:1.6.0": +"mime@npm:1.6.0, mime@npm:^1.3.4": version: 1.6.0 resolution: "mime@npm:1.6.0" bin: @@ -12419,9 +12739,9 @@ __metadata: linkType: hard "min-indent@npm:^1.0.0": - version: 1.0.0 - resolution: "min-indent@npm:1.0.0" - checksum: 3/caed9fdecd22dbb2d73025c9fa5d808e6085ebeb1af355b4ac1b59018c7f9cd7dc9b2daf38af405367f80dcbd2f4e971d61d93476af27f65988488e808244cb1 + version: 1.0.1 + resolution: "min-indent@npm:1.0.1" + checksum: 3/c3aeea46bc432e6ce69b86717e98fbb544e338abb5e3c93cfa196c427e3d5a4a6ee4f76e6931a9e424fb53e83451b90fc417ce7db04440a92d68369704ad11d1 languageName: node linkType: hard @@ -13367,11 +13687,11 @@ __metadata: linkType: hard "opencollective-postinstall@npm:^2.0.2": - version: 2.0.2 - resolution: "opencollective-postinstall@npm:2.0.2" + version: 2.0.3 + resolution: "opencollective-postinstall@npm:2.0.3" bin: opencollective-postinstall: index.js - checksum: 3/f71a908d0958a321c260050b5e9e78cbde59598e21df2dfb121b3721514db288ccdeb1d39b3ff0f9e81d85e661e5a2b3e3cd47fa1ab04feefca31facd58a5ca5 + checksum: 3/d75b06b80eb426aaf099307ca4398f3119c8c86ff3806a95cfe234b979b80c07080040734fe2dc3c51fed5b15bd98dae88340807980bdc74aa1ebf045c74ef06 languageName: node linkType: hard @@ -13652,6 +13972,18 @@ __metadata: languageName: node linkType: hard +"package-json@npm:^4.0.0": + version: 4.0.1 + resolution: "package-json@npm:4.0.1" + dependencies: + got: ^6.7.1 + registry-auth-token: ^3.0.1 + registry-url: ^3.0.3 + semver: ^5.1.0 + checksum: 3/9d9be52897b55a0a905138ecf0e34b3ec130a3b50ba48b8855a4d81b2aeb53e0732caa9beedc8ff5467cf238676253d6b786c6275a5517914c8c9aad14ef051d + languageName: node + linkType: hard + "package-json@npm:^6.3.0": version: 6.5.0 resolution: "package-json@npm:6.5.0" @@ -13865,7 +14197,7 @@ __metadata: languageName: node linkType: hard -"path-is-inside@npm:^1.0.2": +"path-is-inside@npm:^1.0.1, path-is-inside@npm:^1.0.2": version: 1.0.2 resolution: "path-is-inside@npm:1.0.2" checksum: 3/9c1841199d18398ee5f6d79f57eaa57f8eb85743353ea97c6d933423f246f044575a10c1847c638c36440b050aef82665b9cb4fc60950866cd239f3d51835ef4 @@ -14546,7 +14878,7 @@ __metadata: languageName: node linkType: hard -"prepend-http@npm:^1.0.0": +"prepend-http@npm:^1.0.0, prepend-http@npm:^1.0.1": version: 1.0.4 resolution: "prepend-http@npm:1.0.4" checksum: 3/f723f34a23394b568a9ff0cd502bdda244b343c03b12a259343566eab1184cf41a6c7e9975d9e6010ccb2901b7c428d296e56a67a72d0a6ecb0f13531a3fa44e @@ -14645,6 +14977,13 @@ __metadata: languageName: node linkType: hard +"process-nextick-args@npm:~1.0.6": + version: 1.0.7 + resolution: "process-nextick-args@npm:1.0.7" + checksum: 3/56443cdac8ecd7b0d387348c7d571ffd18b0177ec32919fa7b2bde9bd4d3665551180e388edb829cdea5d0c3ffabcacb2abbb1edd92d8fa62d1f0b94e4e92257 + languageName: node + linkType: hard + "process-nextick-args@npm:~2.0.0": version: 2.0.1 resolution: "process-nextick-args@npm:2.0.1" @@ -14659,6 +14998,16 @@ __metadata: languageName: node linkType: hard +"progress-stream@npm:^2.0.0": + version: 2.0.0 + resolution: "progress-stream@npm:2.0.0" + dependencies: + speedometer: ~1.0.0 + through2: ~2.0.3 + checksum: 3/cb53947deff98004c582e798a0b247e620d7e82564ab6b55c7197bff2170925fa65a03b6accee11ea62bb22ab14b975476e8b1b1e50b1d2dc519261ddd0632b3 + languageName: node + linkType: hard + "progress@npm:^2.0.0, progress@npm:^2.0.3": version: 2.0.3 resolution: "progress@npm:2.0.3" @@ -14975,7 +15324,7 @@ __metadata: languageName: node linkType: hard -"rc@npm:^1.2.7, rc@npm:^1.2.8": +"rc@npm:^1.0.1, rc@npm:^1.1.6, rc@npm:^1.2.7, rc@npm:^1.2.8": version: 1.2.8 resolution: "rc@npm:1.2.8" dependencies: @@ -15118,7 +15467,7 @@ __metadata: languageName: node linkType: hard -"read@npm:1, read@npm:~1.0.1": +"read@npm:1, read@npm:~1.0.1, read@npm:~1.0.7": version: 1.0.7 resolution: "read@npm:1.0.7" dependencies: @@ -15153,7 +15502,7 @@ __metadata: languageName: node linkType: hard -"readable-stream@npm:~1.0.31": +"readable-stream@npm:>=1.0.33-1 <1.1.0-0, readable-stream@npm:~1.0.31": version: 1.0.34 resolution: "readable-stream@npm:1.0.34" dependencies: @@ -15165,6 +15514,32 @@ __metadata: languageName: node linkType: hard +"readable-stream@npm:~1.1.9": + version: 1.1.14 + resolution: "readable-stream@npm:1.1.14" + dependencies: + core-util-is: ~1.0.0 + inherits: ~2.0.1 + isarray: 0.0.1 + string_decoder: ~0.10.x + checksum: 3/e4c30b6b8495c11fc83e1b5fcb03b378127d93c953413973a25500991d0bf2b2e158e329d0f56d294e24a61c7751b874570158f24f97ebacb8a5f2fdcc05a0ec + languageName: node + linkType: hard + +"readable-stream@npm:~2.0.5": + version: 2.0.6 + resolution: "readable-stream@npm:2.0.6" + dependencies: + core-util-is: ~1.0.0 + inherits: ~2.0.1 + isarray: ~1.0.0 + process-nextick-args: ~1.0.6 + string_decoder: ~0.10.x + util-deprecate: ~1.0.1 + checksum: 3/ea06de776a23b78ec63f15f898a2e4519cc9fd17dcf3af73c71c3236ea4c78b0710f1206a1beeee9f6dcff12bd607ee0670488fe239f1d824616b4c0bef9e853 + languageName: node + linkType: hard + "readdir-scoped-modules@npm:^1.0.0": version: 1.1.0 resolution: "readdir-scoped-modules@npm:1.1.0" @@ -15335,6 +15710,16 @@ __metadata: languageName: node linkType: hard +"registry-auth-token@npm:^3.0.1": + version: 3.4.0 + resolution: "registry-auth-token@npm:3.4.0" + dependencies: + rc: ^1.1.6 + safe-buffer: ^5.0.1 + checksum: 3/a5f3e8288f212e4b797bbc7bbd840998423d0a67dea66bcb83515cf0a80612776d57d77c33ea73952344c745eac5ca0a2b842865f028a9f62b47dc3e38907a9b + languageName: node + linkType: hard + "registry-auth-token@npm:^4.0.0": version: 4.1.1 resolution: "registry-auth-token@npm:4.1.1" @@ -15344,6 +15729,15 @@ __metadata: languageName: node linkType: hard +"registry-url@npm:^3.0.3": + version: 3.1.0 + resolution: "registry-url@npm:3.1.0" + dependencies: + rc: ^1.0.1 + checksum: 3/f0bdf9be94c196506846ddc4cbb6a2aee1b90025c36739d1b309c2e9b2c765ab7900cb020e5ae1141f2300d3b2723efa8f24e907bc44f37adde595fbd1d30695 + languageName: node + linkType: hard + "registry-url@npm:^5.0.0": version: 5.1.0 resolution: "registry-url@npm:5.1.0" @@ -15378,6 +15772,13 @@ __metadata: languageName: node linkType: hard +"remove-markdown@npm:^0.2.2": + version: 0.2.2 + resolution: "remove-markdown@npm:0.2.2" + checksum: 3/9b41a578db9700df9e646dd30aa8adf23399aa323b6657e9a06084b8b741d8f16efeb468cd527736c1c6a361ff92e1d5a765f43291a500f9c992220c4297e619 + languageName: node + linkType: hard + "remove-trailing-separator@npm:^1.0.1": version: 1.1.0 resolution: "remove-trailing-separator@npm:1.1.0" @@ -15445,7 +15846,7 @@ __metadata: languageName: node linkType: hard -"request@npm:^2.87.0, request@npm:^2.88.0, request@npm:^2.88.2": +"request@npm:^2.82.0, request@npm:^2.85.0, request@npm:^2.87.0, request@npm:^2.88.0, request@npm:^2.88.2": version: 2.88.2 resolution: "request@npm:2.88.2" dependencies: @@ -15717,8 +16118,8 @@ __metadata: "@babel/core": ^7.10.1 "@babel/register": ^7.10.1 "@babel/runtime": ^7.10.1 - "@polkadot/dev": ^0.54.2 - "@polkadot/ts": ^0.3.24 + "@polkadot/dev": ^0.55.6 + "@polkadot/ts": ^0.3.25 "@polkadot/typegen": "workspace:packages/typegen" "@types/jest": ^25.2.3 "@vuepress/plugin-search": ^1.5.0 @@ -15846,12 +16247,13 @@ __metadata: linkType: hard "schema-utils@npm:^2.6.5": - version: 2.6.6 - resolution: "schema-utils@npm:2.6.6" + version: 2.7.0 + resolution: "schema-utils@npm:2.7.0" dependencies: - ajv: ^6.12.0 + "@types/json-schema": ^7.0.4 + ajv: ^6.12.2 ajv-keywords: ^3.4.1 - checksum: 3/78ae62749e3a4a945de51ca47d22047e8959a96b1797af4abb2dfe3c10a7e5c12f877480a183e97158a8590bfde045a65af571fa68737721a975392e5606499c + checksum: 3/5d3e7c9e532712bbe0b7ba2f0bdbebc88ca3066c00ceb89877667c3c7b7ea5ee65e0ff7ffbf5164ebda43b0726166d4d39b382e91e9554b7ad2f6b06e77f947d languageName: node linkType: hard @@ -15888,6 +16290,15 @@ __metadata: languageName: node linkType: hard +"semver-diff@npm:^2.0.0": + version: 2.1.0 + resolution: "semver-diff@npm:2.1.0" + dependencies: + semver: ^5.0.3 + checksum: 3/b24b825e81c925526033126e81672345d6732397a819ec79ddbc50f02a52b67b11150a7b797374a1eeb7853683e987487c571af503d551b0d417506446931428 + languageName: node + linkType: hard + "semver-diff@npm:^3.1.1": version: 3.1.1 resolution: "semver-diff@npm:3.1.1" @@ -15897,7 +16308,7 @@ __metadata: languageName: node linkType: hard -"semver@npm:2 || 3 || 4 || 5, semver@npm:2.x || 3.x || 4 || 5, semver@npm:^5.1.0, semver@npm:^5.4.1, semver@npm:^5.5.0, semver@npm:^5.5.1, semver@npm:^5.6.0, semver@npm:^5.7.0, semver@npm:^5.7.1": +"semver@npm:2 || 3 || 4 || 5, semver@npm:2.x || 3.x || 4 || 5, semver@npm:^5.0.3, semver@npm:^5.1.0, semver@npm:^5.4.1, semver@npm:^5.5.0, semver@npm:^5.5.1, semver@npm:^5.6.0, semver@npm:^5.7.0, semver@npm:^5.7.1": version: 5.7.1 resolution: "semver@npm:5.7.1" bin: @@ -16088,6 +16499,15 @@ __metadata: languageName: node linkType: hard +"shelljs@npm:^0.3.0": + version: 0.3.0 + resolution: "shelljs@npm:0.3.0" + bin: + shjs: ./bin/shjs + checksum: 3/4bef5426395550a8dc77688763cc17519e02a368eed9dafe7afd0e0058add780aa64b964fdbd4ccbb92828c45681c7d8912804b56c61c37e069ecdf3c41b1d91 + languageName: node + linkType: hard + "shelljs@npm:^0.8.4": version: 0.8.4 resolution: "shelljs@npm:0.8.4" @@ -16419,6 +16839,13 @@ __metadata: languageName: node linkType: hard +"speedometer@npm:~1.0.0": + version: 1.0.0 + resolution: "speedometer@npm:1.0.0" + checksum: 3/9ffed85a3e1fb61b675c1e54db16f605448b2fef704296ae3e1834a7dd37d66aecf7182048dc43b828f3148b8c6da9e1ce4e4942b107be75eced1b15ab22c941 + languageName: node + linkType: hard + "split-string@npm:^3.0.1, split-string@npm:^3.0.2": version: 3.1.0 resolution: "split-string@npm:3.1.0" @@ -16596,7 +17023,7 @@ __metadata: languageName: node linkType: hard -"string-width@npm:^1.0.1, string-width@npm:^1.0.2 || 2": +"string-width@npm:^1.0.1": version: 1.0.2 resolution: "string-width@npm:1.0.2" dependencies: @@ -16607,7 +17034,7 @@ __metadata: languageName: node linkType: hard -"string-width@npm:^2.1.0": +"string-width@npm:^1.0.2 || 2, string-width@npm:^2.0.0, string-width@npm:^2.1.0, string-width@npm:^2.1.1": version: 2.1.1 resolution: "string-width@npm:2.1.1" dependencies: @@ -17087,6 +17514,15 @@ __metadata: languageName: node linkType: hard +"term-size@npm:^1.2.0": + version: 1.2.0 + resolution: "term-size@npm:1.2.0" + dependencies: + execa: ^0.7.0 + checksum: 3/3620b140f84262fefbae5264ee9872cc5e26b05250050d379fb7dd2f123d2b9a49e329c3da4333cd4f9e5855689b10f7d18d0a962f42c4ed6369affb28dcefbb + languageName: node + linkType: hard + "term-size@npm:^2.1.0": version: 2.2.0 resolution: "term-size@npm:2.2.0" @@ -17186,7 +17622,7 @@ __metadata: languageName: node linkType: hard -"through2@npm:^2.0.0, through2@npm:^2.0.1, through2@npm:^2.0.2": +"through2@npm:^2.0.0, through2@npm:^2.0.1, through2@npm:^2.0.2, through2@npm:~2.0.3": version: 2.0.5 resolution: "through2@npm:2.0.5" dependencies: @@ -17205,6 +17641,16 @@ __metadata: languageName: node linkType: hard +"through2@npm:~0.6.3": + version: 0.6.5 + resolution: "through2@npm:0.6.5" + dependencies: + readable-stream: ">=1.0.33-1 <1.1.0-0" + xtend: ">=4.0.0 <4.1.0-0" + checksum: 3/490ee7571a49e91fb76506eacfb5e1edb9900db7c97d0c6532a077a91ab97987d392d093b40600dec16ef36530d7eb919f32b209d3b70d9976ca7cc8076f4384 + languageName: node + linkType: hard + "through@npm:2, through@npm:>=2.2.7 <3, through@npm:^2.3.4, through@npm:^2.3.6, through@npm:~2.3.4": version: 2.3.8 resolution: "through@npm:2.3.8" @@ -17219,6 +17665,13 @@ __metadata: languageName: node linkType: hard +"timed-out@npm:^4.0.0": + version: 4.0.1 + resolution: "timed-out@npm:4.0.1" + checksum: 3/e3046640806b0aca3ce65214f026277280f31df9aa6ff407d7ebb3cc7706d404ae02a3e024b47c06443c89e54e3823ef76b2d67ac54a12d338591938011d51e0 + languageName: node + linkType: hard + "timers-browserify@npm:^2.0.4": version: 2.0.11 resolution: "timers-browserify@npm:2.0.11" @@ -17640,23 +18093,23 @@ __metadata: languageName: node linkType: hard -"typescript@^3.0.3, typescript@^3.7.5, typescript@^3.8.3, typescript@^3.9.3": - version: 3.9.3 - resolution: "typescript@npm:3.9.3" +"typescript@^3.0.3, typescript@^3.7.5, typescript@^3.8.3, typescript@^3.9.4": + version: 3.9.4 + resolution: "typescript@npm:3.9.4" bin: tsc: bin/tsc tsserver: bin/tsserver - checksum: 3/f05e6f1c50c635bd7afc95fbc9eb704042b5bec9a77b9c86ddc0c56650c928617d608b9ec9aa468d7b4cf14ac1ea5f540c540c725005a179b54a86665abd9a55 + checksum: 3/f364e86609679566abda039acf35030b78d738c456dae201bad71722b47aa753ea42f3076a2767b72b63a1b8641f1ffb3984dcbdf088bd401b4e7118e3601893 languageName: node linkType: hard -"typescript@patch:typescript@^3.0.3#builtin, typescript@patch:typescript@^3.7.5#builtin, typescript@patch:typescript@^3.8.3#builtin, typescript@patch:typescript@^3.9.3#builtin": - version: 3.9.3 - resolution: "typescript@patch:typescript@npm%3A3.9.3#builtin::version=3.9.3&hash=8cac75" +"typescript@patch:typescript@^3.0.3#builtin, typescript@patch:typescript@^3.7.5#builtin, typescript@patch:typescript@^3.8.3#builtin, typescript@patch:typescript@^3.9.4#builtin": + version: 3.9.4 + resolution: "typescript@patch:typescript@npm%3A3.9.4#builtin::version=3.9.4&hash=8cac75" bin: tsc: bin/tsc tsserver: bin/tsserver - checksum: 3/a3780f6fdf0502bb152a3ad56cd004db46f70496f1b8317657d9e89dd93c911483625fd25867d6aec1cd2854ccf036ecc614989c9f1b36bec2d5daffa9bfc230 + checksum: 3/6fe6acffaf466fe06116a9adb089914b070b8363c38fa1c80a4728452eb8fc88b7977930b61a860ab37080733eddf4dacf25dc88f0dd14efe6d8312ed6fcfb12 languageName: node linkType: hard @@ -17779,6 +18232,15 @@ __metadata: languageName: node linkType: hard +"unique-string@npm:^1.0.0": + version: 1.0.0 + resolution: "unique-string@npm:1.0.0" + dependencies: + crypto-random-string: ^1.0.0 + checksum: 3/860f1ab835e8699e19ebaf0d651b967cf926ca80e22ae9f098996f8fec12ca007ac4914bf47e37556aca0ae10bd80ca4322982abfd30abcffec44d5e7612ae5f + languageName: node + linkType: hard + "unique-string@npm:^2.0.0": version: 2.0.0 resolution: "unique-string@npm:2.0.0" @@ -17844,6 +18306,13 @@ __metadata: languageName: node linkType: hard +"unzip-response@npm:^2.0.1": + version: 2.0.1 + resolution: "unzip-response@npm:2.0.1" + checksum: 3/ba0ef3428f3d55c07bfac4ed27497b37cc782c2fa3b93030dce965499d029447f8d6e7a92b1246661abf484d5678c40e67a739eff7836e6e2e66db5f47b4f8c7 + languageName: node + linkType: hard + "upath@npm:^1.1.0, upath@npm:^1.1.1, upath@npm:^1.2.0": version: 1.2.0 resolution: "upath@npm:1.2.0" @@ -17851,6 +18320,24 @@ __metadata: languageName: node linkType: hard +"update-notifier@npm:^2.2.0": + version: 2.5.0 + resolution: "update-notifier@npm:2.5.0" + dependencies: + boxen: ^1.2.1 + chalk: ^2.0.1 + configstore: ^3.0.0 + import-lazy: ^2.1.0 + is-ci: ^1.0.10 + is-installed-globally: ^0.1.0 + is-npm: ^1.0.0 + latest-version: ^3.0.0 + semver-diff: ^2.0.0 + xdg-basedir: ^3.0.0 + checksum: 3/3edbc57db1b1026e8b6ef64701ec8db81cc65268c7313213ab5e6b8b4ccc64f93a6419b2756e56616048ee00a7c6eb39973a95c4212f501ef7fce9eb2dba1ee1 + languageName: node + linkType: hard + "update-notifier@npm:^4.0.0": version: 4.1.0 resolution: "update-notifier@npm:4.1.0" @@ -17910,6 +18397,15 @@ __metadata: languageName: node linkType: hard +"url-parse-lax@npm:^1.0.0": + version: 1.0.0 + resolution: "url-parse-lax@npm:1.0.0" + dependencies: + prepend-http: ^1.0.1 + checksum: 3/454fddd78658293a03b7e978c3aef8487e9e926c44d903f40de4bf4470148e6df2cb9aea6df62f44c51bd6fb148f2fe2096756a7778e1dcf78f7cc6badbfbfdd + languageName: node + linkType: hard + "url-parse-lax@npm:^3.0.0": version: 3.0.0 resolution: "url-parse-lax@npm:3.0.0" @@ -17953,6 +18449,13 @@ __metadata: languageName: node linkType: hard +"util-extend@npm:^1.0.1": + version: 1.0.3 + resolution: "util-extend@npm:1.0.3" + checksum: 3/d635c0a43b066bae8cf20f65ddd89fe73e28d7d8f7c9b3f29f7c1819ade3b501f189687b932fcd39ced66aa2ce5b757f939cd19889d200a54c06d05430684eb5 + languageName: node + linkType: hard + "util-promisify@npm:^2.1.0": version: 2.1.0 resolution: "util-promisify@npm:2.1.0" @@ -18030,9 +18533,9 @@ __metadata: linkType: hard "v8-compile-cache@npm:^2.0.3": - version: 2.1.0 - resolution: "v8-compile-cache@npm:2.1.0" - checksum: 3/b7490d548401f6f4cadeb94da33b2d65473fb931e1f7c28fba02889c19adf1cfff884fb933c6282fc7e82e400f35eddc9d8fc577fa1e4998cc3797c4aaf6246c + version: 2.1.1 + resolution: "v8-compile-cache@npm:2.1.1" + checksum: 3/1290922fe1501a732155206f2d516f91bdfd7acf318542ffe2813ff06465cf49051fae7e1a40f3e0a56cf78b41f799473f6e389fec0534e4ecc62eb4105cf22f languageName: node linkType: hard @@ -18129,9 +18632,9 @@ __metadata: linkType: hard "vue-router@npm:^3.1.3": - version: 3.3.1 - resolution: "vue-router@npm:3.3.1" - checksum: 3/9fba98f322095fed18664839854ca61d4a1fdab14cf90b8b55e91ecb8e51752015af7672ddbd7d9dd05cf22c6d1497a92a6779ae8c50a6d765966b44f6b75244 + version: 3.3.2 + resolution: "vue-router@npm:3.3.2" + checksum: 3/8bec54dc4ca4a1a5f7fca4ca343d2832d19a8facfcd080f0fc040197b9ffd13b7087fbd899e3750c185f8f6b1e0d7016bfa4d427b09f33a7a20f706189fffd4b languageName: node linkType: hard @@ -18642,6 +19145,15 @@ __metadata: languageName: node linkType: hard +"widest-line@npm:^2.0.0": + version: 2.0.1 + resolution: "widest-line@npm:2.0.1" + dependencies: + string-width: ^2.1.1 + checksum: 3/dd98e47483dd3c5c2cc5515d576f386d0a42c11d3841bdd5040aeb819a2c84735a0cc65d3a3c9f9c000425c09678092d37d6d670c05192313ad7fdfd6111883f + languageName: node + linkType: hard + "widest-line@npm:^3.1.0": version: 3.1.0 resolution: "widest-line@npm:3.1.0" @@ -18667,6 +19179,13 @@ __metadata: languageName: node linkType: hard +"wordwrap@npm:0.0.2": + version: 0.0.2 + resolution: "wordwrap@npm:0.0.2" + checksum: 3/ad9635091f047bbda7c0ebe52cedf6c5187c27a68a9e8a156755cc60adc073ef0c87846491dbcbfd4bf3e59b91da232a5ea12a6199078226560a1fcdb2ad4c88 + languageName: node + linkType: hard + "wordwrap@npm:^1.0.0": version: 1.0.0 resolution: "wordwrap@npm:1.0.0" @@ -18806,6 +19325,13 @@ __metadata: languageName: node linkType: hard +"xdg-basedir@npm:^3.0.0": + version: 3.0.0 + resolution: "xdg-basedir@npm:3.0.0" + checksum: 3/87d2160cc156bb8b46d09f57c093ac986dc335362972366678615ceee2104b74c5c79ceb9398d107f73ad6a7146fd9809484d18756c07db6c1607382a0081258 + languageName: node + linkType: hard + "xdg-basedir@npm:^4.0.0": version: 4.0.0 resolution: "xdg-basedir@npm:4.0.0" @@ -18836,7 +19362,7 @@ __metadata: languageName: node linkType: hard -"xtend@npm:^4.0.0, xtend@npm:~4.0.1": +"xtend@npm:>=4.0.0 <4.1.0-0, xtend@npm:^4.0.0, xtend@npm:~4.0.1": version: 4.0.2 resolution: "xtend@npm:4.0.2" checksum: 3/37ee522a3e9fb9b143a400c30b21dc122aa8c9c9411c6afae1005a4617dc20a21765c114d544e37a6bb60c2733dd8ee0a44ed9e80d884ac78cccd30b5e0ab0da @@ -18985,6 +19511,15 @@ __metadata: languageName: node linkType: hard +"yargs@npm:^2.1.1": + version: 2.3.0 + resolution: "yargs@npm:2.3.0" + dependencies: + wordwrap: 0.0.2 + checksum: 3/3cb4e3abb59dac2f42bc740b4d8cc234c36c6a87ba419700dd7f7636d9fdfea2256942d5a6065dedc521bfba5217fb6d8253887430def5ba30859118157efd01 + languageName: node + linkType: hard + "zepto@npm:^1.2.0": version: 1.2.0 resolution: "zepto@npm:1.2.0"