pinokiod 3.8.97 → 3.8.99

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.
package/kernel/index.js CHANGED
@@ -507,13 +507,13 @@ class Kernel {
507
507
  this.peer.stop()
508
508
  }
509
509
 
510
- // kill all processes just in case
511
- await new Promise((resolve, reject) => {
512
- kill(process.pid, 'SIGKILL', () => {
513
- console.log("child procs killed for", process.pid)
514
- resolve()
515
- });
516
- })
510
+ // // kill all processes just in case
511
+ // await new Promise((resolve, reject) => {
512
+ // kill(process.pid, 'SIGKILL', () => {
513
+ // console.log("child procs killed for", process.pid)
514
+ // resolve()
515
+ // });
516
+ // })
517
517
 
518
518
  this.info = new Info(this)
519
519
  this.pipe = new Pipe(this)
package/kernel/loader.js CHANGED
@@ -7,11 +7,11 @@ const clearModule = require('clear-module');
7
7
  class Loader {
8
8
  async load(_path) {
9
9
 
10
- let exists = await new Promise(r=>fs.access(_path, fs.constants.F_OK, e => r(!e)))
11
- if (!exists) {
12
- console.log(`[load] ${_path} does not exist`)
13
- return { resolved: null }
14
- }
10
+ // let exists = await new Promise(r=>fs.access(_path, fs.constants.F_OK, e => r(!e)))
11
+ // if (!exists) {
12
+ // console.log(`[load] ${_path} does not exist`)
13
+ // return { resolved: null }
14
+ // }
15
15
 
16
16
 
17
17
  let resolved
@@ -40,7 +40,7 @@ class Loader {
40
40
  resolved = null
41
41
  }
42
42
  } catch (e) {
43
- console.log(e)
43
+ console.log(`[load error] ${_path}`)
44
44
  resolved = null
45
45
  }
46
46
  }
@@ -49,20 +49,21 @@ class Loader {
49
49
  async requireJSON(filepath) {
50
50
  let config
51
51
  try { config = require(filepath) } catch (e) {
52
- console.log("load error", filepath, e)
52
+ console.log(`[load error] ${filepath}`)
53
53
  }
54
54
  return config
55
55
  }
56
56
  async requireJS(filepath) {
57
57
  let config
58
58
  try { config = require(filepath) } catch (e) {
59
- console.log("load error", filepath, e.message)
59
+ console.log(`[load error] ${filepath}`)
60
60
  }
61
61
  try {
62
62
  // if the required module is a class, return the instantiated object
63
63
  return new config();
64
64
  } catch (e) {
65
65
  // otherwise return normally
66
+ console.log(`[load error] ${filepath}`)
66
67
  return config
67
68
  }
68
69
  }
package/kernel/peer.js CHANGED
@@ -59,7 +59,7 @@ class PeerDiscovery {
59
59
 
60
60
  // Send broadcast pings every interval
61
61
  this.interval = setInterval(() => {
62
- console.log("send message to peers")
62
+ // console.log("send message to peers")
63
63
  this.socket.send(this.message, 0, this.message.length, this.port, '255.255.255.255');
64
64
  }, this.interval);
65
65
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "3.8.97",
3
+ "version": "3.8.99",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {