Fix nacl imports (#823)

* Fix nacl imports

* patch

* rewrite
This commit is contained in:
Jaco Greeff
2020-12-31 10:54:31 +01:00
committed by GitHub
parent a00dd1e4ca
commit 814f8418f2
22 changed files with 326 additions and 298 deletions
+2 -2
View File
@@ -21,9 +21,9 @@
},
"devDependencies": {
"@babel/core": "^7.12.10",
"@polkadot/dev": "^0.61.16",
"@polkadot/dev": "^0.61.18",
"@polkadot/ts": "^0.3.58",
"@types/jest": "^26.0.19"
},
"version": "5.2.3-1"
"version": "5.2.3"
}
+5 -5
View File
@@ -1,6 +1,6 @@
{
"name": "@polkadot/keyring",
"version": "5.2.3-1",
"version": "5.2.3",
"description": "Keyring management",
"author": "Jaco Greeff <jacogr@gmail.com>",
"maintainers": [],
@@ -17,11 +17,11 @@
"homepage": "https://github.com/polkadot-js/common/tree/master/packages/keyring#readme",
"dependencies": {
"@babel/runtime": "^7.12.5",
"@polkadot/util": "5.2.3-1",
"@polkadot/util-crypto": "5.2.3-1"
"@polkadot/util": "5.2.3",
"@polkadot/util-crypto": "5.2.3"
},
"peerDependencies": {
"@polkadot/util": "5.2.3-1",
"@polkadot/util-crypto": "5.2.3-1"
"@polkadot/util": "5.2.3",
"@polkadot/util-crypto": "5.2.3"
}
}
+3 -3
View File
@@ -1,6 +1,6 @@
{
"name": "@polkadot/networks",
"version": "5.2.3-1",
"version": "5.2.3",
"description": "A list of all available Substrate networks and their applicable prefixes",
"main": "index.js",
"module": "index.mjs",
@@ -16,7 +16,7 @@
"@babel/runtime": "^7.12.5"
},
"devDependencies": {
"@polkadot/util": "5.2.3-1",
"@polkadot/x-fetch": "5.2.3-1"
"@polkadot/util": "5.2.3",
"@polkadot/x-fetch": "5.2.3"
}
}
+5 -5
View File
@@ -1,6 +1,6 @@
{
"name": "@polkadot/util-crypto",
"version": "5.2.3-1",
"version": "5.2.3",
"description": "A collection of useful crypto utilities for @polkadot",
"main": "index.js",
"module": "index.mjs",
@@ -17,10 +17,10 @@
"homepage": "https://github.com/polkadot-js/common/tree/master/packages/util-crypto#readme",
"dependencies": {
"@babel/runtime": "^7.12.5",
"@polkadot/networks": "5.2.3-1",
"@polkadot/util": "5.2.3-1",
"@polkadot/networks": "5.2.3",
"@polkadot/util": "5.2.3",
"@polkadot/wasm-crypto": "^3.1.1",
"@polkadot/x-randomvalues": "5.2.3-1",
"@polkadot/x-randomvalues": "5.2.3",
"base-x": "^3.0.8",
"blakejs": "^1.1.0",
"bn.js": "^4.11.9",
@@ -40,6 +40,6 @@
"@types/xxhashjs": "^0.2.2"
},
"peerDependencies": {
"@polkadot/util": "5.2.3-1"
"@polkadot/util": "5.2.3"
}
}
@@ -3,7 +3,7 @@
import type { Keypair } from '../../types';
import * as nacl from 'tweetnacl';
import nacl from 'tweetnacl';
/**
* @name naclBoxKeypairFromSecret
+1 -1
View File
@@ -1,7 +1,7 @@
// Copyright 2017-2020 @polkadot/util-crypto authors & contributors
// SPDX-License-Identifier: Apache-2.0
import * as nacl from 'tweetnacl';
import nacl from 'tweetnacl';
/**
* @name naclDecrypt
+1 -1
View File
@@ -1,7 +1,7 @@
// Copyright 2017-2020 @polkadot/util-crypto authors & contributors
// SPDX-License-Identifier: Apache-2.0
import * as nacl from 'tweetnacl';
import nacl from 'tweetnacl';
import { randomAsU8a } from '../random/asU8a';
@@ -3,7 +3,7 @@
import type { Keypair } from '../../types';
import * as nacl from 'tweetnacl';
import nacl from 'tweetnacl';
/**
* @name naclKeypairFromRandom
@@ -3,7 +3,7 @@
import type { Keypair } from '../../types';
import * as nacl from 'tweetnacl';
import nacl from 'tweetnacl';
/**
* @name naclKeypairFromSecret
@@ -3,7 +3,7 @@
import type { Keypair } from '../../types';
import * as nacl from 'tweetnacl';
import nacl from 'tweetnacl';
import { ed25519KeypairFromSeed, isReady } from '@polkadot/wasm-crypto';
+1 -1
View File
@@ -1,7 +1,7 @@
// Copyright 2017-2020 @polkadot/util-crypto authors & contributors
// SPDX-License-Identifier: Apache-2.0
import * as nacl from 'tweetnacl';
import nacl from 'tweetnacl';
/**
* @name naclOpen
+1 -1
View File
@@ -1,7 +1,7 @@
// Copyright 2017-2020 @polkadot/util-crypto authors & contributors
// SPDX-License-Identifier: Apache-2.0
import * as nacl from 'tweetnacl';
import nacl from 'tweetnacl';
import { randomAsU8a } from '../random/asU8a';
+1 -1
View File
@@ -3,7 +3,7 @@
import type { Keypair } from '../types';
import * as nacl from 'tweetnacl';
import nacl from 'tweetnacl';
import { assert, u8aToU8a } from '@polkadot/util';
import { ed25519Sign, isReady } from '@polkadot/wasm-crypto';
+1 -1
View File
@@ -1,7 +1,7 @@
// Copyright 2017-2020 @polkadot/util-crypto authors & contributors
// SPDX-License-Identifier: Apache-2.0
import * as nacl from 'tweetnacl';
import nacl from 'tweetnacl';
import { assert, u8aToU8a } from '@polkadot/util';
import { ed25519Verify, isReady } from '@polkadot/wasm-crypto';
+1 -1
View File
@@ -1,7 +1,7 @@
// Copyright 2017-2020 @polkadot/util-crypto authors & contributors
// SPDX-License-Identifier: Apache-2.0
import * as nacl from 'tweetnacl';
import nacl from 'tweetnacl';
import { isReady, sha512 } from '@polkadot/wasm-crypto';
+3 -3
View File
@@ -1,6 +1,6 @@
{
"name": "@polkadot/util",
"version": "5.2.3-1",
"version": "5.2.3",
"description": "A collection of useful utilities for @polkadot",
"main": "index.js",
"module": "index.mjs",
@@ -14,8 +14,8 @@
"homepage": "https://github.com/polkadot-js/common/tree/master/packages/util#readme",
"dependencies": {
"@babel/runtime": "^7.12.5",
"@polkadot/x-textdecoder": "5.2.3-1",
"@polkadot/x-textencoder": "5.2.3-1",
"@polkadot/x-textdecoder": "5.2.3",
"@polkadot/x-textencoder": "5.2.3",
"@types/bn.js": "^4.11.6",
"bn.js": "^4.11.9",
"camelcase": "^5.3.1",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@polkadot/x-fetch",
"version": "5.2.3-1",
"version": "5.2.3",
"description": "A cross-environment fetch replacement",
"browser": "browser.js",
"main": "node.js",
+2 -2
View File
@@ -1,6 +1,6 @@
{
"name": "@polkadot/x-randomvalues",
"version": "5.2.3-1",
"version": "5.2.3",
"description": "A cross-environment window.crypto.getRandomValues replacement",
"browser": "browser.js",
"main": "node.js",
@@ -17,6 +17,6 @@
"@babel/runtime": "^7.12.5"
},
"devDependencies": {
"@types/react-native": "^0.63.42"
"@types/react-native": "^0.63.43"
}
}
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@polkadot/x-textdecoder",
"version": "5.2.3-1",
"version": "5.2.3",
"description": "A TextDecoder replacement",
"browser": "browser.js",
"main": "node.js",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@polkadot/x-textencoder",
"version": "5.2.3-1",
"version": "5.2.3",
"description": "A TextDecoder replacement",
"browser": "browser.js",
"main": "node.js",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@polkadot/x-ws",
"version": "5.2.3-1",
"version": "5.2.3",
"description": "A cross-environment WebSocket replacement",
"browser": "browser.js",
"main": "node.js",
+291 -263
View File
File diff suppressed because it is too large Load Diff