refactor: Extension of #231. Destructuring to combine imports (#237)

* refactor: Destructure imports together from same source in example util-crypto 01

* refactor: Destructure imports together example util-crypto 02. Avoid using default import. Show data to user

* refactor: Destructure imports together example util-crypto 03. Show data to user

* refactor: Split import over two lines looks cleaner

* fix: Address review comments. Update dependencies in examples
This commit is contained in:
Luke Schoen
2018-11-14 13:26:53 +01:00
committed by Jaco Greeff
parent 5c1df7214e
commit 48008e2cc8
14 changed files with 26 additions and 32 deletions
@@ -1,5 +1,4 @@
const { naclEncrypt } = require('@polkadot/util-crypto');
const { naclDecrypt } = require('@polkadot/util-crypto');
const { naclEncrypt, naclDecrypt } = require('@polkadot/util-crypto');
async function main () {
const secret = new Uint8Array(32);
@@ -10,7 +10,7 @@
"start": "node index.js"
},
"dependencies": {
"@polkadot/util-crypto": "^0.32.2"
"@polkadot/util-crypto": "^0.32.10"
},
"devDependencies": {
"rimraf": "^2.6.2"