pinokiod 3.8.103 → 3.8.105

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -49,14 +49,30 @@ class Router {
49
49
  }
50
50
  }
51
51
 
52
- let json = JSON.stringify(mapping)
52
+ console.log("BEFORE REPLACING", mapping)
53
+
54
+ let host_mapping = mapping[host]
55
+ let json = JSON.stringify(host_mapping)
53
56
  for(let key in this.port_cache) {
54
57
  console.log("replacing", key, "with", this.port_cache[key])
55
58
  json = json.replaceAll(key, this.port_cache[key])
56
59
  }
57
60
  let m = JSON.parse(json)
58
- return m
59
- // return mapping
61
+
62
+ mapping[host] = m
63
+
64
+ console.log("AFTER REPLACING", m)
65
+ return mapping
66
+
67
+ // let json = JSON.stringify(mapping)
68
+ // for(let key in this.port_cache) {
69
+ // console.log("replacing", key, "with", this.port_cache[key])
70
+ // json = json.replaceAll(key, this.port_cache[key])
71
+ // }
72
+ // let m = JSON.parse(json)
73
+ //
74
+ // console.log("AFTER REPLACING", m)
75
+ // return m
60
76
  }
61
77
  /*
62
78
  returns only the published peer info
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "3.8.103",
3
+ "version": "3.8.105",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {