@@ -3,8 +3,8 @@
"name": "storage-node",
"version": "1.0.0",
"engines": {
- "node": ">=10.15.3",
- "yarn": "^1.15.2"
+ "node": ">=12.18.0",
+ "yarn": "^1.22.0"
},
"homepage": "https://github.com/Joystream/joystream/",
"bugs": {
@@ -24,7 +24,7 @@
"linux"
],
- "node": ">=10.15.3"
+ "node": ">=12.18.0"
"scripts": {
"test": "mocha 'dist/test/**/*.js'",
@@ -205,6 +205,8 @@ function getServiceInformation(publicUrl) {
}
+// TODO: instead of recursion use while/async-await and use promise/setTimout based sleep
+// or cleaner code with generators?
async function announcePublicUrl(api, publicUrl) {
// re-announce in future
const reannounce = function (timeoutMs) {
@@ -29,7 +29,7 @@
"test": "mocha 'test/**/*.js'",
"main": "./index.js",
@@ -30,7 +30,7 @@
"test": "mocha 'test/**/*.js' --exit",
"test": "mocha --exit 'test/**/*.js'",