Compare commits

..
3 Commits
Author SHA1 Message Date
Github Actions d1934060e0 [CI Skip] 2.6.2
skip-checks: true
2020-03-11 06:39:27 +00:00
Jaco Greeff 6d9da39d8b Bump dev, fix publish 2020-03-11 07:35:48 +01:00
Jaco Greeff 4ed096024e typeof __dirname !== 'undefined' before using (#564)
* typeof __dirname !== 'undefined' before using

* Use as patch

* yarn.lock

* Rewrite yarn.lock

* Shorten __dirname check
2020-03-11 07:18:52 +01:00
9 changed files with 345 additions and 233 deletions
+1
View File
@@ -1 +1,2 @@
5
2.6.2
+1 -1
View File
@@ -9,5 +9,5 @@
"packages": [
"packages/*"
],
"version": "2.6.1"
"version": "2.6.2"
}
+3 -3
View File
@@ -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"
}
}
+4 -4
View File
@@ -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"
}
}
+1 -1
View File
@@ -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;
+3 -3
View File
@@ -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",
+2 -2
View File
@@ -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",
+3 -3
View File
@@ -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]);
+327 -216
View File
File diff suppressed because it is too large Load Diff