pinokiod 3.10.13 → 3.10.15

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/plugin.js CHANGED
@@ -11,7 +11,8 @@ class Plugin {
11
11
  let exists = await this.kernel.exists("plugin")
12
12
  if (!exists) {
13
13
  await this.kernel.exec({
14
- message: "git clone https://github.com/peanutcocktail/plugin",
14
+ //message: "git clone https://github.com/peanutcocktail/plugin",
15
+ message: "git clone https://github.com/pinokiocomputer/plugin",
15
16
  path: this.kernel.homedir
16
17
  }, (e) => {
17
18
  process.stdout.write(e.raw)
package/kernel/procs.js CHANGED
@@ -30,7 +30,7 @@ class Procs {
30
30
  const results = [];
31
31
  let pids = new Set()
32
32
  let s = stdout.trim()
33
- console.log(">> getPortPidList", s)
33
+ // console.log(">> getPortPidList", s)
34
34
  const lines = s.split('\n');
35
35
 
36
36
  for(let line of lines) {
@@ -42,7 +42,6 @@ class Procs {
42
42
  const [ , localAddress, , state, pid ] = parts;
43
43
 
44
44
  let pid_int = parseInt(pid)
45
- console.log({ pid_int })
46
45
  if (pid_int === 0 || pid_int === 4) {
47
46
  // pid 0 => killed processes => irrelevant
48
47
  // pid 4 => system process => irrelevant
@@ -73,9 +72,7 @@ class Procs {
73
72
  try {
74
73
  const parts = line.trim().split(/\s+/);
75
74
  const pid = parts[1];
76
- console.log({ parts, pid })
77
75
  let pid_int = parseInt(pid)
78
- console.log({ pid_int })
79
76
  if (pid_int === 0 || pid_int === 4) {
80
77
  // pid 0 => killed processes => irrelevant
81
78
  // pid 4 => system process => irrelevant
@@ -83,7 +80,6 @@ class Procs {
83
80
  }
84
81
 
85
82
  const match = line.match(/([^\s]+:\d+)\s/);
86
- console.log({ line, match })
87
83
  const localAddress = match?.[1];
88
84
 
89
85
  const chunks = localAddress.split(":")
@@ -134,7 +130,7 @@ class Procs {
134
130
  let map = {}
135
131
  let list = await new Promise((resolve, reject) => {
136
132
  this.getPortPidList((err, portPidList) => {
137
- console.log({ portPidList })
133
+ // console.log({ portPidList })
138
134
  if (err) {
139
135
  console.log("getPortPidList Error", err)
140
136
  reject(err)
@@ -18,7 +18,7 @@ class Proto {
18
18
  await fs.promises.mkdir(this.kernel.path("prototype"), { recursive: true }).catch((e) => { })
19
19
  await this.kernel.exec({
20
20
  //message: "git clone https://github.com/peanutcocktail/prototype system",
21
- message: "git clone https://github.com/cocktailpeanutlabs/proto system",
21
+ message: "git clone https://github.com/pinokiocomputer/prototype system",
22
22
  path: this.kernel.path("prototype")
23
23
  }, (e) => {
24
24
  process.stdout.write(e.raw)
@@ -39,7 +39,8 @@ class Router {
39
39
  console.log("network doesn't exist. cloning...")
40
40
  await fs.promises.mkdir(this.kernel.path("network"), { recursive: true }).catch((e) => { })
41
41
  await this.kernel.exec({
42
- message: "git clone https://github.com/peanutcocktail/network system",
42
+ //message: "git clone https://github.com/peanutcocktail/network system",
43
+ message: "git clone https://github.com/pinokiocomputer/network system",
43
44
  path: this.kernel.path("network")
44
45
  }, (e) => {
45
46
  process.stdout.write(e.raw)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "3.10.13",
3
+ "version": "3.10.15",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {