Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d1934060e0 | ||
|
|
6d9da39d8b | ||
|
|
4ed096024e |
@@ -1 +1,2 @@
|
||||
5
|
||||
2.6.2
|
||||
+1
-1
@@ -9,5 +9,5 @@
|
||||
"packages": [
|
||||
"packages/*"
|
||||
],
|
||||
"version": "2.6.1"
|
||||
"version": "2.6.2"
|
||||
}
|
||||
|
||||
+3
-3
@@ -19,8 +19,8 @@
|
||||
"test:one": "polkadot-dev-run-test"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.8.6",
|
||||
"@polkadot/dev": "^0.50.15",
|
||||
"@polkadot/ts": "^0.3.6"
|
||||
"@babel/core": "^7.8.7",
|
||||
"@polkadot/dev": "^0.50.30",
|
||||
"@polkadot/ts": "^0.3.7"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/keyring",
|
||||
"version": "2.6.1",
|
||||
"version": "2.6.2",
|
||||
"description": "Keyring management",
|
||||
"main": "index.js",
|
||||
"publishConfig": {
|
||||
@@ -27,8 +27,8 @@
|
||||
},
|
||||
"homepage": "https://github.com/polkadot-js/common/tree/master/packages/keyring#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.8.4",
|
||||
"@polkadot/util": "2.6.1",
|
||||
"@polkadot/util-crypto": "2.6.1"
|
||||
"@babel/runtime": "^7.8.7",
|
||||
"@polkadot/util": "2.6.2",
|
||||
"@polkadot/util-crypto": "2.6.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,7 +8,7 @@ import { decodeAddress, encodeAddress, setSS58Format } from '@polkadot/util-cryp
|
||||
import Keyring from './keyring';
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
||||
detectPackage(require('./package.json'), __dirname);
|
||||
detectPackage(require('./package.json'), typeof __dirname !== 'undefined' && __dirname);
|
||||
|
||||
export default Keyring;
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/util-crypto",
|
||||
"version": "2.6.1",
|
||||
"version": "2.6.2",
|
||||
"description": "A collection of useful crypto utilities for @polkadot",
|
||||
"main": "index.js",
|
||||
"keywords": [
|
||||
@@ -25,8 +25,8 @@
|
||||
},
|
||||
"homepage": "https://github.com/polkadot-js/common/tree/master/packages/util-crypto#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.8.4",
|
||||
"@polkadot/util": "2.6.1",
|
||||
"@babel/runtime": "^7.8.7",
|
||||
"@polkadot/util": "2.6.2",
|
||||
"@polkadot/wasm-crypto": "^1.2.1",
|
||||
"base-x": "^3.0.8",
|
||||
"bip39": "^3.0.2",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/util",
|
||||
"version": "2.6.1",
|
||||
"version": "2.6.2",
|
||||
"description": "A collection of useful utilities for @polkadot",
|
||||
"main": "index.js",
|
||||
"keywords": [
|
||||
@@ -25,7 +25,7 @@
|
||||
},
|
||||
"homepage": "https://github.com/polkadot-js/common/tree/master/packages/util#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.8.4",
|
||||
"@babel/runtime": "^7.8.7",
|
||||
"@types/bn.js": "^4.11.6",
|
||||
"bn.js": "^5.1.1",
|
||||
"camelcase": "^5.3.1",
|
||||
|
||||
@@ -26,7 +26,7 @@ type PjsGlobal = NodeJS.Global & PjsChecks;
|
||||
type PjsWindow = Window & PjsChecks;
|
||||
|
||||
function expandPath (path?: string): string {
|
||||
return (!path || path.length < 5) ? '<unknown path>' : path;
|
||||
return (!path || path.length < 5) ? '<unknown>' : path;
|
||||
}
|
||||
|
||||
/** @internal */
|
||||
@@ -47,7 +47,7 @@ function flattenVersions (_all: (VersionPath | string)[]): string {
|
||||
* @name detectPackage
|
||||
* @summary Checks that a specific package is only imported once
|
||||
*/
|
||||
export default function detectPackage ({ name, version }: PackageJson, path?: string): void {
|
||||
export default function detectPackage ({ name, version }: PackageJson, path?: string | false): void {
|
||||
const _global = typeof window !== 'undefined'
|
||||
? window as PjsWindow
|
||||
: global as PjsGlobal;
|
||||
@@ -58,7 +58,7 @@ export default function detectPackage ({ name, version }: PackageJson, path?: st
|
||||
|
||||
assert(name.startsWith('@polkadot'), `Invalid package descriptor ${name}`);
|
||||
|
||||
_global.__polkadotjs[name] = [...(_global.__polkadotjs[name] || []), { path, version }];
|
||||
_global.__polkadotjs[name] = [...(_global.__polkadotjs[name] || []), { path: path || '', version }];
|
||||
|
||||
if (_global.__polkadotjs[name].length !== 1) {
|
||||
const versions = flattenVersions(_global.__polkadotjs[name]);
|
||||
|
||||
Reference in New Issue
Block a user