pinokiod 3.8.104 → 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.
@@ -51,16 +51,28 @@ class Router {
51
51
 
52
52
  console.log("BEFORE REPLACING", mapping)
53
53
 
54
- let json = JSON.stringify(mapping)
54
+ let host_mapping = mapping[host]
55
+ let json = JSON.stringify(host_mapping)
55
56
  for(let key in this.port_cache) {
56
57
  console.log("replacing", key, "with", this.port_cache[key])
57
58
  json = json.replaceAll(key, this.port_cache[key])
58
59
  }
59
60
  let m = JSON.parse(json)
60
61
 
62
+ mapping[host] = m
63
+
61
64
  console.log("AFTER REPLACING", m)
62
- return m
63
- // return mapping
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
64
76
  }
65
77
  /*
66
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.104",
3
+ "version": "3.8.105",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {