6.0.4 (#924)
This commit is contained in:
@@ -1,5 +1,16 @@
|
||||
# CHANGELOG
|
||||
|
||||
## 6.0.4 Mar 7, 2021
|
||||
|
||||
Contributed:
|
||||
|
||||
- Enhance check for global process existence (Thanks to https://github.com/Yuripetusko)
|
||||
|
||||
Changes:
|
||||
|
||||
- Dedupe & optimize logger process.env checks
|
||||
|
||||
|
||||
## 6.0.3 Mar 5, 2021
|
||||
|
||||
Changes:
|
||||
|
||||
+1
-1
@@ -25,5 +25,5 @@
|
||||
"@polkadot/ts": "^0.3.61",
|
||||
"@types/jest": "^26.0.20"
|
||||
},
|
||||
"version": "6.0.4-0"
|
||||
"version": "6.0.4"
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/hw-ledger-transports",
|
||||
"version": "6.0.4-0",
|
||||
"version": "6.0.4",
|
||||
"type": "module",
|
||||
"repository": "github:polkadot-js/common",
|
||||
"author": "Jaco Greeff <jacogr@gmail.com>",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/hw-ledger",
|
||||
"version": "6.0.4-0",
|
||||
"version": "6.0.4",
|
||||
"type": "module",
|
||||
"repository": "github:polkadot-js/common",
|
||||
"author": "Jaco Greeff <jacogr@gmail.com>",
|
||||
@@ -14,8 +14,8 @@
|
||||
],
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.13.9",
|
||||
"@polkadot/hw-ledger-transports": "6.0.4-0",
|
||||
"@polkadot/util": "^6.0.4-0",
|
||||
"@polkadot/hw-ledger-transports": "6.0.4",
|
||||
"@polkadot/util": "^6.0.4",
|
||||
"@zondax/ledger-polkadot": "^0.13.4"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/keyring",
|
||||
"version": "6.0.4-0",
|
||||
"version": "6.0.4",
|
||||
"type": "module",
|
||||
"description": "Keyring management",
|
||||
"author": "Jaco Greeff <jacogr@gmail.com>",
|
||||
@@ -17,11 +17,11 @@
|
||||
"homepage": "https://github.com/polkadot-js/common/tree/master/packages/keyring#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.13.9",
|
||||
"@polkadot/util": "6.0.4-0",
|
||||
"@polkadot/util-crypto": "6.0.4-0"
|
||||
"@polkadot/util": "6.0.4",
|
||||
"@polkadot/util-crypto": "6.0.4"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@polkadot/util": "6.0.4-0",
|
||||
"@polkadot/util-crypto": "6.0.4-0"
|
||||
"@polkadot/util": "6.0.4",
|
||||
"@polkadot/util-crypto": "6.0.4"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/networks",
|
||||
"version": "6.0.4-0",
|
||||
"version": "6.0.4",
|
||||
"type": "module",
|
||||
"description": "A list of all available Substrate networks and their applicable prefixes",
|
||||
"main": "index.js",
|
||||
@@ -16,7 +16,7 @@
|
||||
"@babel/runtime": "^7.13.9"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/util": "6.0.4-0",
|
||||
"@polkadot/x-fetch": "6.0.4-0"
|
||||
"@polkadot/util": "6.0.4",
|
||||
"@polkadot/x-fetch": "6.0.4"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/util-crypto",
|
||||
"version": "6.0.4-0",
|
||||
"version": "6.0.4",
|
||||
"type": "module",
|
||||
"description": "A collection of useful crypto utilities for @polkadot",
|
||||
"main": "index.js",
|
||||
@@ -17,10 +17,10 @@
|
||||
"homepage": "https://github.com/polkadot-js/common/tree/master/packages/util-crypto#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.13.9",
|
||||
"@polkadot/networks": "6.0.4-0",
|
||||
"@polkadot/util": "6.0.4-0",
|
||||
"@polkadot/networks": "6.0.4",
|
||||
"@polkadot/util": "6.0.4",
|
||||
"@polkadot/wasm-crypto": "^4.0.2",
|
||||
"@polkadot/x-randomvalues": "6.0.4-0",
|
||||
"@polkadot/x-randomvalues": "6.0.4",
|
||||
"base-x": "^3.0.8",
|
||||
"base64-js": "^1.5.1",
|
||||
"blakejs": "^1.1.0",
|
||||
@@ -41,6 +41,6 @@
|
||||
"@types/xxhashjs": "^0.2.2"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@polkadot/util": "6.0.4-0"
|
||||
"@polkadot/util": "6.0.4"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/util",
|
||||
"version": "6.0.4-0",
|
||||
"version": "6.0.4",
|
||||
"type": "module",
|
||||
"description": "A collection of useful utilities for @polkadot",
|
||||
"main": "index.js",
|
||||
@@ -17,8 +17,8 @@
|
||||
"homepage": "https://github.com/polkadot-js/common/tree/master/packages/util#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.13.9",
|
||||
"@polkadot/x-textdecoder": "6.0.4-0",
|
||||
"@polkadot/x-textencoder": "6.0.4-0",
|
||||
"@polkadot/x-textdecoder": "6.0.4",
|
||||
"@polkadot/x-textencoder": "6.0.4",
|
||||
"@types/bn.js": "^4.11.6",
|
||||
"bn.js": "^4.11.9",
|
||||
"camelcase": "^5.3.1",
|
||||
|
||||
@@ -77,11 +77,17 @@ function noop (): void {
|
||||
}
|
||||
|
||||
function parseEnv (type: string): [boolean, number] {
|
||||
const maxSize = parseInt((typeof process === 'object' ? process : {})?.env?.DEBUG_MAX || '-1', 10);
|
||||
const env = (typeof process === 'object' ? process : {}).env || {};
|
||||
const maxSize = parseInt(env.DEBUG_MAX || '-1', 10);
|
||||
|
||||
return [
|
||||
((typeof process === 'object' ? process : {})?.env?.DEBUG || '').toLowerCase().split(',').some((e) => !!e && (e === '*' || type.startsWith(e))),
|
||||
isNaN(maxSize) ? -1 : maxSize
|
||||
(env.DEBUG || '')
|
||||
.toLowerCase()
|
||||
.split(',')
|
||||
.some((e) => !!e && (e === '*' || type.startsWith(e))),
|
||||
isNaN(maxSize)
|
||||
? -1
|
||||
: maxSize
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/x-fetch",
|
||||
"version": "6.0.4-0",
|
||||
"version": "6.0.4",
|
||||
"type": "module",
|
||||
"description": "A cross-environment fetch replacement",
|
||||
"browser": "browser.js",
|
||||
@@ -16,7 +16,7 @@
|
||||
"homepage": "https://github.com/polkadot-js/common/tree/master/packages/x-fetch#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.13.9",
|
||||
"@polkadot/x-global": "6.0.4-0",
|
||||
"@polkadot/x-global": "6.0.4",
|
||||
"@types/node-fetch": "^2.5.8",
|
||||
"node-fetch": "^2.6.1"
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/x-global",
|
||||
"version": "6.0.4-0",
|
||||
"version": "6.0.4",
|
||||
"type": "module",
|
||||
"description": "A cross-environment global replacement",
|
||||
"main": "index.js",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/x-randomvalues",
|
||||
"version": "6.0.4-0",
|
||||
"version": "6.0.4",
|
||||
"type": "module",
|
||||
"description": "A cross-environment window.crypto.getRandomValues replacement",
|
||||
"browser": "browser.js",
|
||||
@@ -16,7 +16,7 @@
|
||||
"homepage": "https://github.com/polkadot-js/common/tree/master/packages/x-randomvalues#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.13.9",
|
||||
"@polkadot/x-global": "6.0.4-0"
|
||||
"@polkadot/x-global": "6.0.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/react-native": "^0.63.50"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/x-rxjs",
|
||||
"version": "6.0.4-0",
|
||||
"version": "6.0.4",
|
||||
"type": "module",
|
||||
"description": "A pass-through interface for RxJs (allowing node + mjs usage)",
|
||||
"main": "index.js",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/x-textdecoder",
|
||||
"version": "6.0.4-0",
|
||||
"version": "6.0.4",
|
||||
"type": "module",
|
||||
"description": "A TextDecoder replacement",
|
||||
"browser": "browser.js",
|
||||
@@ -16,6 +16,6 @@
|
||||
"homepage": "https://github.com/polkadot-js/common/tree/master/packages/x-textdecoder#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.13.9",
|
||||
"@polkadot/x-global": "6.0.4-0"
|
||||
"@polkadot/x-global": "6.0.4"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/x-textencoder",
|
||||
"version": "6.0.4-0",
|
||||
"version": "6.0.4",
|
||||
"type": "module",
|
||||
"description": "A TextDecoder replacement",
|
||||
"browser": "browser.js",
|
||||
@@ -16,6 +16,6 @@
|
||||
"homepage": "https://github.com/polkadot-js/common/tree/master/packages/x-textencoder#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.13.9",
|
||||
"@polkadot/x-global": "6.0.4-0"
|
||||
"@polkadot/x-global": "6.0.4"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/x-ws",
|
||||
"version": "6.0.4-0",
|
||||
"version": "6.0.4",
|
||||
"type": "module",
|
||||
"description": "A cross-environment WebSocket replacement",
|
||||
"browser": "browser.js",
|
||||
@@ -16,8 +16,8 @@
|
||||
"homepage": "https://github.com/polkadot-js/common/tree/master/packages/x-ws#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.13.9",
|
||||
"@polkadot/x-global": "6.0.4-0",
|
||||
"@types/websocket": "^1.0.1",
|
||||
"@polkadot/x-global": "6.0.4",
|
||||
"@types/websocket": "^1.0.2",
|
||||
"websocket": "^1.0.33"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1941,7 +1941,7 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@polkadot/hw-ledger-transports@6.0.4-0, @polkadot/hw-ledger-transports@workspace:packages/hw-ledger-transports":
|
||||
"@polkadot/hw-ledger-transports@6.0.4, @polkadot/hw-ledger-transports@workspace:packages/hw-ledger-transports":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@polkadot/hw-ledger-transports@workspace:packages/hw-ledger-transports"
|
||||
dependencies:
|
||||
@@ -1961,8 +1961,8 @@ __metadata:
|
||||
resolution: "@polkadot/hw-ledger@workspace:packages/hw-ledger"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.13.9
|
||||
"@polkadot/hw-ledger-transports": 6.0.4-0
|
||||
"@polkadot/util": ^6.0.4-0
|
||||
"@polkadot/hw-ledger-transports": 6.0.4
|
||||
"@polkadot/util": ^6.0.4
|
||||
"@zondax/ledger-polkadot": ^0.13.4
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
@@ -1972,21 +1972,21 @@ __metadata:
|
||||
resolution: "@polkadot/keyring@workspace:packages/keyring"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.13.9
|
||||
"@polkadot/util": 6.0.4-0
|
||||
"@polkadot/util-crypto": 6.0.4-0
|
||||
"@polkadot/util": 6.0.4
|
||||
"@polkadot/util-crypto": 6.0.4
|
||||
peerDependencies:
|
||||
"@polkadot/util": 6.0.4-0
|
||||
"@polkadot/util-crypto": 6.0.4-0
|
||||
"@polkadot/util": 6.0.4
|
||||
"@polkadot/util-crypto": 6.0.4
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/networks@6.0.4-0, @polkadot/networks@workspace:packages/networks":
|
||||
"@polkadot/networks@6.0.4, @polkadot/networks@workspace:packages/networks":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@polkadot/networks@workspace:packages/networks"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.13.9
|
||||
"@polkadot/util": 6.0.4-0
|
||||
"@polkadot/x-fetch": 6.0.4-0
|
||||
"@polkadot/util": 6.0.4
|
||||
"@polkadot/x-fetch": 6.0.4
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
@@ -1999,15 +1999,15 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@polkadot/util-crypto@6.0.4-0, @polkadot/util-crypto@workspace:packages/util-crypto":
|
||||
"@polkadot/util-crypto@6.0.4, @polkadot/util-crypto@workspace:packages/util-crypto":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@polkadot/util-crypto@workspace:packages/util-crypto"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.13.9
|
||||
"@polkadot/networks": 6.0.4-0
|
||||
"@polkadot/util": 6.0.4-0
|
||||
"@polkadot/networks": 6.0.4
|
||||
"@polkadot/util": 6.0.4
|
||||
"@polkadot/wasm-crypto": ^4.0.2
|
||||
"@polkadot/x-randomvalues": 6.0.4-0
|
||||
"@polkadot/x-randomvalues": 6.0.4
|
||||
"@types/bn.js": ^4.11.6
|
||||
"@types/create-hash": ^1.2.2
|
||||
"@types/elliptic": ^6.4.12
|
||||
@@ -2025,17 +2025,17 @@ __metadata:
|
||||
tweetnacl: ^1.0.3
|
||||
xxhashjs: ^0.2.2
|
||||
peerDependencies:
|
||||
"@polkadot/util": 6.0.4-0
|
||||
"@polkadot/util": 6.0.4
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/util@6.0.4-0, @polkadot/util@^6.0.4-0, @polkadot/util@workspace:packages/util":
|
||||
"@polkadot/util@6.0.4, @polkadot/util@^6.0.4, @polkadot/util@workspace:packages/util":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@polkadot/util@workspace:packages/util"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.13.9
|
||||
"@polkadot/x-textdecoder": 6.0.4-0
|
||||
"@polkadot/x-textencoder": 6.0.4-0
|
||||
"@polkadot/x-textdecoder": 6.0.4
|
||||
"@polkadot/x-textencoder": 6.0.4
|
||||
"@types/bn.js": ^4.11.6
|
||||
bn.js: ^4.11.9
|
||||
camelcase: ^5.3.1
|
||||
@@ -2075,18 +2075,18 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@polkadot/x-fetch@6.0.4-0, @polkadot/x-fetch@workspace:packages/x-fetch":
|
||||
"@polkadot/x-fetch@6.0.4, @polkadot/x-fetch@workspace:packages/x-fetch":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@polkadot/x-fetch@workspace:packages/x-fetch"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.13.9
|
||||
"@polkadot/x-global": 6.0.4-0
|
||||
"@polkadot/x-global": 6.0.4
|
||||
"@types/node-fetch": ^2.5.8
|
||||
node-fetch: ^2.6.1
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/x-global@6.0.4-0, @polkadot/x-global@workspace:packages/x-global":
|
||||
"@polkadot/x-global@6.0.4, @polkadot/x-global@workspace:packages/x-global":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@polkadot/x-global@workspace:packages/x-global"
|
||||
dependencies:
|
||||
@@ -2096,12 +2096,12 @@ __metadata:
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/x-randomvalues@6.0.4-0, @polkadot/x-randomvalues@workspace:packages/x-randomvalues":
|
||||
"@polkadot/x-randomvalues@6.0.4, @polkadot/x-randomvalues@workspace:packages/x-randomvalues":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@polkadot/x-randomvalues@workspace:packages/x-randomvalues"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.13.9
|
||||
"@polkadot/x-global": 6.0.4-0
|
||||
"@polkadot/x-global": 6.0.4
|
||||
"@types/react-native": ^0.63.50
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
@@ -2115,21 +2115,21 @@ __metadata:
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/x-textdecoder@6.0.4-0, @polkadot/x-textdecoder@workspace:packages/x-textdecoder":
|
||||
"@polkadot/x-textdecoder@6.0.4, @polkadot/x-textdecoder@workspace:packages/x-textdecoder":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@polkadot/x-textdecoder@workspace:packages/x-textdecoder"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.13.9
|
||||
"@polkadot/x-global": 6.0.4-0
|
||||
"@polkadot/x-global": 6.0.4
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/x-textencoder@6.0.4-0, @polkadot/x-textencoder@workspace:packages/x-textencoder":
|
||||
"@polkadot/x-textencoder@6.0.4, @polkadot/x-textencoder@workspace:packages/x-textencoder":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@polkadot/x-textencoder@workspace:packages/x-textencoder"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.13.9
|
||||
"@polkadot/x-global": 6.0.4-0
|
||||
"@polkadot/x-global": 6.0.4
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
@@ -2138,8 +2138,8 @@ __metadata:
|
||||
resolution: "@polkadot/x-ws@workspace:packages/x-ws"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.13.9
|
||||
"@polkadot/x-global": 6.0.4-0
|
||||
"@types/websocket": ^1.0.1
|
||||
"@polkadot/x-global": 6.0.4
|
||||
"@types/websocket": ^1.0.2
|
||||
websocket: ^1.0.33
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
@@ -2474,12 +2474,12 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@types/websocket@npm:^1.0.1":
|
||||
version: 1.0.1
|
||||
resolution: "@types/websocket@npm:1.0.1"
|
||||
"@types/websocket@npm:^1.0.2":
|
||||
version: 1.0.2
|
||||
resolution: "@types/websocket@npm:1.0.2"
|
||||
dependencies:
|
||||
"@types/node": "*"
|
||||
checksum: 93d407970a6487290f8bace3b6de40d6f35f092386e5fba8981c3cb5ee60b155da419ab98007a3991c4a2e27eee948c5f98786a13619359b42a4a04aaf7bdf27
|
||||
checksum: d826bdc282b78ef5ad60610dbb87674034c21978d86f00f5a8bff5096ff2ad5d1720c7e0eea0cc9c35987f214b20b7c5af6ae8b353ab2be07c1ba2c31cab284b
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
|
||||
Reference in New Issue
Block a user