pinokiod 3.8.50 → 3.8.52

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.
@@ -323,20 +323,23 @@ class Bin {
323
323
  } else {
324
324
  site_packages_path = path.resolve(this.kernel.homedir, "bin/miniconda/lib/python3.10/site-packages")
325
325
  }
326
- // check if any of 'uvicorn', 'importlib_metadata', 'fastapi' exists
327
- let module_paths = ["fastapi", "uvicorn", "importlib_metadata"].map((name) => {
328
- return path.resolve(site_packages_path, name)
329
- })
326
+ // // check if any of 'uvicorn', 'importlib_metadata', 'fastapi' exists
327
+ // let module_paths = ["fastapi", "uvicorn", "importlib_metadata"].map((name) => {
328
+ // return path.resolve(site_packages_path, name)
329
+ // })
330
+ // let to_reset_exists = false
331
+ // for(let module_path of module_paths) {
332
+ // let e = await this.kernel.exists(module_path)
333
+ // console.log("checking kernel exists", { module_path, e })
334
+ // if (e) {
335
+ // to_reset_exists = true
336
+ // break;
337
+ // }
338
+ // }
339
+ // console.log("> to_reset_exists", to_reset_exists)
340
+
330
341
  let to_reset_exists = false
331
- for(let module_path of module_paths) {
332
- let e = await this.kernel.exists(module_path)
333
- console.log("checking kernel exists", { module_path, e })
334
- if (e) {
335
- to_reset_exists = true
336
- break;
337
- }
338
- }
339
- console.log("> to_reset_exists", to_reset_exists)
342
+
340
343
  if (to_reset_exists) {
341
344
  this.correct_conda = false
342
345
  } else {
package/kernel/peer.js CHANGED
@@ -45,8 +45,9 @@ class PeerDiscovery {
45
45
  let peer_info = await Promise.all(Array.from(this.peers).map((host) => {
46
46
  return this._refresh(host)
47
47
  }))
48
+ console.log({ peer_info })
48
49
  for(let i=0; i<peer_info.length; i++) {
49
- let host = this.peers[i]
50
+ let host = peer_info[i]
50
51
  this.info[host] = {
51
52
  host,
52
53
  ...peer_info[i],
@@ -113,6 +113,7 @@ class Router {
113
113
 
114
114
  // 2. Peers handling
115
115
  let peers = await this.kernel.peer.refresh()
116
+ console.log(">3", { peers })
116
117
  for(let host in peers) {
117
118
  let peer = peers[host]
118
119
  this.peer_home_router.handle(peer)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "3.8.50",
3
+ "version": "3.8.52",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {