Bump @polkadot/dev, expand compact description (#263)

This commit is contained in:
Jaco Greeff
2018-12-03 14:29:30 +01:00
committed by GitHub
parent 9b7952b2a1
commit ccfed2a8b4
4 changed files with 60 additions and 37 deletions
+3 -3
View File
@@ -10,7 +10,7 @@
],
"resolutions": {
"babel-core": "^7.0.0-bridge.0",
"typescript": "^3.1.6"
"typescript": "^3.2.1"
},
"scripts": {
"build": "polkadot-dev-build-ts && polkadot-dev-build-docs",
@@ -21,7 +21,7 @@
},
"devDependencies": {
"@babel/core": "^7.1.6",
"@polkadot/dev": "^0.22.5",
"@polkadot/ts": "^0.1.39"
"@polkadot/dev": "^0.22.6",
"@polkadot/ts": "^0.1.40"
}
}
+1 -1
View File
@@ -30,7 +30,7 @@
"dependencies": {
"@babel/runtime": "^7.1.5",
"@polkadot/util": "^0.33.6",
"@types/bip39": "^2.4.0",
"@types/bip39": "^2.4.1",
"bip39": "^2.5.0",
"blakejs": "^1.1.0",
"js-sha3": "^0.8.0",
+18 -1
View File
@@ -8,7 +8,24 @@ import compactFromU8a from './fromU8a';
import compactToU8a from './toU8a';
/**
* @summary Encoding and decoding of parity-codec compact numbers
* @description
* Encoding and decoding of parity-codec compact numbers. The codec is created
* to take up the least amount of space for a specific number. It performs the
* same function as Length, however differs in that it uses a variable number of
* bytes to do the actual encoding. From the Rust implementation for compact
* encoding:
*
* 0b00 00 00 00 / 00 00 00 00 / 00 00 00 00 / 00 00 00 00
* (0 ... 2**6 - 1) (u8)
* xx xx xx 00
* (2**6 ... 2**14 - 1) (u8, u16) low LH high
* yL yL yL 01 / yH yH yH yL
* (2**14 ... 2**30 - 1) (u16, u32) low LMMH high
* zL zL zL 10 / zM zM zM zL / zM zM zM zM / zH zH zH zM
* (2**30 ... 2**536 - 1) (u32, u64, u128, U256, U512, U520) straight LE-encoded
* nn nn nn 11 [ / zz zz zz zz ]{4 + n}
*
* Note: we use *LOW BITS* of the LSB in LE encoding to encode the 2 bit key.
*/
export {
compactAddLength,
+38 -32
View File
@@ -1140,10 +1140,10 @@
inquirer "^6.2.0"
npmlog "^4.1.2"
"@lerna/publish@^3.5.0":
version "3.5.0"
resolved "https://registry.yarnpkg.com/@lerna/publish/-/publish-3.5.0.tgz#e6543375457846557f3cb803f7795a577333a941"
integrity sha512-CoK+wzPP/0xG54Iwf9WEbB3VgwayoiVYsubhYpC072Ue7V6mGXQh97KZMm8NzCoMDg35ZGqa85Kxpeqd5hqQlw==
"@lerna/publish@^3.5.1":
version "3.5.1"
resolved "https://registry.yarnpkg.com/@lerna/publish/-/publish-3.5.1.tgz#20ea36e05a76755760b67c78719d424fc129f777"
integrity sha512-ltw2YdWWzev9cZRAzons5ywZh9NJARPX67meeA95oMDVMrhD4Y9VHQNJ3T8ueec/W78/4sKlMSr3ecWyPNp5bg==
dependencies:
"@lerna/batch-packages" "^3.1.2"
"@lerna/check-working-tree" "^3.5.0"
@@ -1307,10 +1307,10 @@
resolved "https://registry.yarnpkg.com/@nodelib/fs.stat/-/fs.stat-1.1.2.tgz#54c5a964462be3d4d78af631363c18d6fa91ac26"
integrity sha512-yprFYuno9FtNsSHVlSWd+nRlmGoAbqbeCwOryP6sC/zoCjhpArcRMYp19EvpSUSizJAlsXEwJv+wcWS9XaXdMw==
"@polkadot/dev@^0.22.5":
version "0.22.5"
resolved "https://registry.yarnpkg.com/@polkadot/dev/-/dev-0.22.5.tgz#5eb3c7c0fb4aec1be330fbda487bed073282f967"
integrity sha512-hUF4nKB3t5sMzb2etEHWNIO67LivAjgFAkGsxoB95UwUlOlvqkCv3yexDYFLv6CYGQACXRDN7zywuNOIY4Miew==
"@polkadot/dev@^0.22.6":
version "0.22.6"
resolved "https://registry.yarnpkg.com/@polkadot/dev/-/dev-0.22.6.tgz#96a0930815eb687a1050428f8951ac4ad53b3c81"
integrity sha512-+WSlRZ/CkCa582ETaCetpLWb9BzpZH+RVPdb9EH3jiYPm3w2XEAw3aXn2xGbMZOCH8fnEpAfHbmgITTcfldxyw==
dependencies:
"@babel/cli" "^7.1.5"
"@babel/core" "^7.1.6"
@@ -1323,7 +1323,7 @@
"@babel/register" "^7.0.0"
"@babel/runtime" "^7.1.5"
"@types/jest" "^23.3.10"
"@types/node" "^10.12.10"
"@types/node" "^10.12.11"
babel-core "^7.0.0-bridge.0"
babel-jest "^23.6.0"
babel-plugin-module-resolver "^3.1.1"
@@ -1338,7 +1338,7 @@
gitbook-plugin-mermaid-gb3 "^2.1.0"
gitbook-plugin-sunlight-highlighter "^0.4.3"
jest "^23.6.0"
lerna "^3.5.0"
lerna "^3.5.1"
makeshift "^1.1.0"
mkdirp "^0.5.1"
rimraf "^2.6.2"
@@ -1346,22 +1346,23 @@
tslint-config-standard "^8.0.1"
typedoc "^0.13.0"
typedoc-plugin-markdown "^1.1.19"
typescript "^3.1.6"
typedoc-plugin-no-inherit "^1.0.2"
typescript "^3.2.1"
"@polkadot/ts@^0.1.39":
version "0.1.39"
resolved "https://registry.yarnpkg.com/@polkadot/ts/-/ts-0.1.39.tgz#39d3578eaafd96cbc0270b1479fabab7e16e5723"
integrity sha512-NQM1uT+qi8onV0jtGjH7QmJvDTNFNYTEzjaoVZN2tDHi1/tVu1CP66qZGSGsS19JZJSK3ERSFb0vP8CkE7EUuA==
"@polkadot/ts@^0.1.40":
version "0.1.40"
resolved "https://registry.yarnpkg.com/@polkadot/ts/-/ts-0.1.40.tgz#d5e8af7e37a3382165d387c2cddf5930879a4c45"
integrity sha512-OKPToc6z4NnO+i6tNh0GewhFzQZFchn87Iv1IB1AXEqhzN3kRHlYWbnJh+iQ73C0zTwrx7BxmhMyv9pnEJScHQ==
"@types/base-x@*":
version "1.0.29"
resolved "http://registry.npmjs.org/@types/base-x/-/base-x-1.0.29.tgz#8a2d73e4a5c3121757a5f8870cfa4509655186b6"
integrity sha1-ii1z5KXDEhdXpfiHDPpFCWVRhrY=
"@types/bip39@^2.4.0":
version "2.4.0"
resolved "https://registry.yarnpkg.com/@types/bip39/-/bip39-2.4.0.tgz#eee31a14abc8ebbb41a1ff14575c447b18346cbc"
integrity sha512-qxJBGh55SPbSGv+91D6H3WOR8vKdA/p8Oc58oK/DTbORgjO6Ebuo8MRzdy2OWi+dw/lxtX4VWJkkCUTSQvhAnw==
"@types/bip39@^2.4.1":
version "2.4.1"
resolved "https://registry.yarnpkg.com/@types/bip39/-/bip39-2.4.1.tgz#1a47b453b59a50d7b5856819b834c74798915eb3"
integrity sha512-QHx0qI6JaTIW/S3zxE/bXrwOWu6Boos+LZ4438xmFAHY5k+qHkExMdAnb/DENEt2RBnOdZ6c5J+SHrnLEhUohQ==
dependencies:
"@types/node" "*"
@@ -1457,10 +1458,10 @@
resolved "https://registry.yarnpkg.com/@types/node/-/node-10.12.0.tgz#ea6dcbddbc5b584c83f06c60e82736d8fbb0c235"
integrity sha512-3TUHC3jsBAB7qVRGxT6lWyYo2v96BMmD2PTcl47H25Lu7UXtFH/2qqmKiVrnel6Ne//0TFYf6uvNX+HW2FRkLQ==
"@types/node@^10.12.10":
version "10.12.10"
resolved "https://registry.yarnpkg.com/@types/node/-/node-10.12.10.tgz#4fa76e6598b7de3f0cb6ec3abacc4f59e5b3a2ce"
integrity sha512-8xZEYckCbUVgK8Eg7lf5Iy4COKJ5uXlnIOnePN0WUwSQggy9tolM+tDJf7wMOnT/JT/W9xDYIaYggt3mRV2O5w==
"@types/node@^10.12.11":
version "10.12.11"
resolved "https://registry.yarnpkg.com/@types/node/-/node-10.12.11.tgz#715c476c99a5f6898a1ae61caf9825e43c03912e"
integrity sha512-3iIOhNiPGTdcUNVCv9e5G7GotfvJJe2pc9w2UgDXlUwnxSZ3RgcUocIU+xYm+rTU54jIKih998QE4dMOyMN1NQ==
"@types/shelljs@^0.8.0":
version "0.8.0"
@@ -5525,10 +5526,10 @@ left-pad@^1.3.0:
resolved "https://registry.yarnpkg.com/left-pad/-/left-pad-1.3.0.tgz#5b8a3a7765dfe001261dde915589e782f8c94d1e"
integrity sha512-XI5MPzVNApjAyhQzphX8BkmKsKUxD4LdyK24iZeQGinBN9yTQT3bFlCBy/aVx2HrNcqQGsdot8ghrjyrvMCoEA==
lerna@^3.5.0:
version "3.5.0"
resolved "https://registry.yarnpkg.com/lerna/-/lerna-3.5.0.tgz#fd989b8992701e90e10aa5b3970d6f7a3512ba64"
integrity sha512-12kZb2yCJtx3rhLycepzHTbR6suqLaqky2hSldGQh9+B7FXFgvbQJXwzoi+Y7+1cstmKHHyockdRYFLiLmiEYA==
lerna@^3.5.1:
version "3.5.1"
resolved "https://registry.yarnpkg.com/lerna/-/lerna-3.5.1.tgz#350b24b58fc2d7bc2c1e1f4ef3058afe827cfa68"
integrity sha512-0AyxMr2UpR3RAJsyrfNtYvfcI01YVSSnbRdzum7frZAtb7S+8NSY2ip7aDbN6/YsQK2K/zOCQ4shu/nwgub8aw==
dependencies:
"@lerna/add" "^3.5.0"
"@lerna/bootstrap" "^3.5.0"
@@ -5542,7 +5543,7 @@ lerna@^3.5.0:
"@lerna/init" "^3.5.0"
"@lerna/link" "^3.5.0"
"@lerna/list" "^3.5.0"
"@lerna/publish" "^3.5.0"
"@lerna/publish" "^3.5.1"
"@lerna/run" "^3.5.0"
"@lerna/version" "^3.5.0"
import-local "^1.0.0"
@@ -8903,6 +8904,11 @@ typedoc-plugin-markdown@^1.1.19:
dependencies:
turndown "^5.0.1"
typedoc-plugin-no-inherit@^1.0.2:
version "1.0.2"
resolved "https://registry.yarnpkg.com/typedoc-plugin-no-inherit/-/typedoc-plugin-no-inherit-1.0.2.tgz#d2dff762395eb66d38f47a99dab8d2a1e7838b11"
integrity sha512-+fRnc8sWLzO2wjPuJT09vUOBmGt7pDE5JJuyJ2FVG79rCBUHUChUt/8/j6yQEBwo6jWMr9yjKjaltKz4SDUrrA==
typedoc@^0.13.0:
version "0.13.0"
resolved "https://registry.yarnpkg.com/typedoc/-/typedoc-0.13.0.tgz#9efdf352bd54873955cd161bd4b75f24a8c59dde"
@@ -8926,10 +8932,10 @@ typedoc@^0.13.0:
typedoc-default-themes "^0.5.0"
typescript "3.1.x"
typescript@3.1.x, typescript@^3.1.6:
version "3.1.6"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.1.6.tgz#b6543a83cfc8c2befb3f4c8fba6896f5b0c9be68"
integrity sha512-tDMYfVtvpb96msS1lDX9MEdHrW4yOuZ4Kdc4Him9oU796XldPYF/t2+uKoX0BBa0hXXwDlqYQbXY5Rzjzc5hBA==
typescript@3.1.x, typescript@^3.2.1:
version "3.2.1"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.2.1.tgz#0b7a04b8cf3868188de914d9568bd030f0c56192"
integrity sha512-jw7P2z/h6aPT4AENXDGjcfHTu5CSqzsbZc6YlUIebTyBAq8XaKp78x7VcSh30xwSCcsu5irZkYZUSFP1MrAMbg==
uglify-js@^3.1.4:
version "3.4.9"