Show AIR version in Nodes (#31)

This commit is contained in:
folex 2022-01-26 14:30:29 +03:00 committed by GitHub
parent 19b9fdf968
commit 99ce91a47c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 2415 additions and 768 deletions

3160
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -41,8 +41,8 @@
"devDependencies": { "devDependencies": {
"@babel/core": "^7.11.6", "@babel/core": "^7.11.6",
"@babel/preset-env": "^7.11.5", "@babel/preset-env": "^7.11.5",
"@fluencelabs/aqua": "^0.4.0-235", "@fluencelabs/aqua": "^0.5.3-260",
"@fluencelabs/aqua-lib": "0.1.14", "@fluencelabs/aqua-lib": "0.3.3",
"@types/yup": "^0.29.11", "@types/yup": "^0.29.11",
"babel-loader": "^8.1.0", "babel-loader": "^8.1.0",
"chokidar-cli": "^2.1.0", "chokidar-cli": "^2.1.0",
@ -50,13 +50,13 @@
"closure-webpack-plugin": "^2.3.0", "closure-webpack-plugin": "^2.3.0",
"copy-webpack-plugin": "^6.4.1", "copy-webpack-plugin": "^6.4.1",
"css-loader": "^4.3.0", "css-loader": "^4.3.0",
"elm": "^0.19.1-3", "elm": "^0.19.1-5",
"elm-analyse": "^0.16.5", "elm-analyse": "^0.16.5",
"elm-format": "^0.8.4", "elm-format": "^0.8.5",
"elm-hot-webpack-loader": "^1.1.7", "elm-hot-webpack-loader": "^1.1.8",
"elm-live": "^4.0.2", "elm-live": "^4.0.2",
"elm-test": "^0.19.1-revision4", "elm-test": "^0.19.1-revision7",
"elm-webpack-loader": "^6.0.1", "elm-webpack-loader": "^7.0.1",
"file-loader": "^6.1.0", "file-loader": "^6.1.0",
"google-closure-compiler": "^20200920.0.0", "google-closure-compiler": "^20200920.0.0",
"html-webpack-plugin": "^4.5.0", "html-webpack-plugin": "^4.5.0",

View File

@ -31,7 +31,7 @@ const defaultNetworkName = 'testNet + krasnodar';
const defaultEnv = { const defaultEnv = {
relays: [...testNet, ...krasnodar, ...stage], relays: [...testNet, ...krasnodar, ...stage],
relayIdx: 2, relayIdx: 10,
logLevel: 'error', logLevel: 'error',
}; };
@ -146,9 +146,10 @@ function genFlags(peerId, relays, relayIdx) {
// alias PeerInfoCb: PeerId, Info, []Service, []Blueprint, []Module -> () // alias PeerInfoCb: PeerId, Info, []Service, []Blueprint, []Module -> ()
function collectPeerInfo(peerId, identify, services, blueprints, modules, interfaces) { function collectPeerInfo(peerId, identify, services, blueprints, modules, interfaces) {
// console.log('peer info from %s, %s services', peerId, services.length); // console.log('peer info from %s, %s services', peerId, services.length);
try { try {
const eventRaw = { const eventRaw = {
peerId, // HACK: show AIR interpreter version in the NODE ID field
peerId: peerId + ' (' + identify.air_version + ')',
identify, identify,
services, services,
blueprints, blueprints,

View File

@ -119,7 +119,7 @@ if (MODE === 'development') {
// add Elm's debug overlay to output // add Elm's debug overlay to output
debug: withDebug, debug: withDebug,
// //
forceWatch: true, // forceWatch: true,
}, },
}, },
], ],