pinokiod 3.13.0 → 3.14.1

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.
@@ -22,6 +22,8 @@ class Node {
22
22
  return {
23
23
  PATH: [this.kernel.path("bin/npm"), this.kernel.path("bin/npm/bin")],
24
24
  NPM_CONFIG_PREFIX: this.kernel.path("bin/npm"),
25
+ npm_config_cache: this.kernel.path("cache/npm_cache_config"),
26
+ NPM_CONFIG_PREFIX: this.kernel.path("bin/npm"),
25
27
  npm_config_prefix: this.kernel.path("bin/npm"),
26
28
  PNPM_HOME: this.kernel.path("bin/npm"),
27
29
  pnpm_home: this.kernel.path("bin/npm"),
package/kernel/shell.js CHANGED
@@ -37,7 +37,7 @@ class Shell {
37
37
 
38
38
  // Windows: /D => ignore AutoRun Registry Key
39
39
  // Others: --noprofile => ignore .bash_profile, --norc => ignore .bashrc
40
- this.args = this.platform === 'win32' ? ["/D"] : ["--noprofile", "--norc",]
40
+ this.args = this.platform === 'win32' ? ["/D"] : ["--noprofile", "--norc"]
41
41
 
42
42
  //this.vt = new Terminal({ allowProposedApi: true, scrollback: 5, })
43
43
  // this.vt = new Terminal({
@@ -200,8 +200,6 @@ class Shell {
200
200
  }
201
201
  }
202
202
  async start(params, ondata) {
203
- this.written = 0;
204
- this.pendingCallbacks = 0;
205
203
  this.ondata = ondata
206
204
 
207
205
  /*
@@ -502,9 +500,6 @@ class Shell {
502
500
  })
503
501
  cb()
504
502
  }, 1)
505
- // term.onExit((result) => {
506
- // console.log("onExit", { result })
507
- // })
508
503
  term.onData((data) => {
509
504
  if (ready) {
510
505
  queue.push(data)
@@ -920,7 +915,6 @@ class Shell {
920
915
  return params
921
916
  }
922
917
  async exec(params) {
923
- this.watermark = 0
924
918
  params = await this.activate(params)
925
919
  this.cmd = this.build(params)
926
920
  let res = await new Promise((resolve, reject) => {
@@ -939,10 +933,6 @@ class Shell {
939
933
  }
940
934
 
941
935
  config.env = this.env
942
-
943
-
944
-
945
-
946
936
  if (!this.ptyProcess) {
947
937
  // ptyProcess doesn't exist => create
948
938
  this.done = false
@@ -952,9 +942,6 @@ class Shell {
952
942
  this.queue.push(data)
953
943
  }
954
944
  });
955
- this.ptyProcess.onExit((result) => {
956
- console.log(">>>>>>>>>>>>>>>>>>> exec onExit", result)
957
- })
958
945
  }
959
946
  } catch (e) {
960
947
  console.log("** Error", e)
@@ -980,8 +967,6 @@ class Shell {
980
967
  }
981
968
  kill(message, force, cb) {
982
969
 
983
- console.log("KILL", { message })
984
-
985
970
  this.done = true
986
971
  this.ready = false
987
972
 
@@ -1125,7 +1110,6 @@ ${cleaned}
1125
1110
  callback()
1126
1111
  return
1127
1112
  }
1128
-
1129
1113
  this.vt.write(msg, () => {
1130
1114
  let buf = this.vts.serialize()
1131
1115
  let cleaned = this.stripAnsi(buf)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "3.13.0",
3
+ "version": "3.14.1",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/server/index.js CHANGED
@@ -2451,7 +2451,7 @@ class Server {
2451
2451
 
2452
2452
  let gitconfig = path.resolve(home, "gitconfig")
2453
2453
  await fse.remove(gitconfig)
2454
-
2454
+
2455
2455
 
2456
2456
  console.log("[TRY] Updating to the new version")
2457
2457
  this.kernel.store.set("version", this.version.pinokiod)
@@ -15,7 +15,6 @@ document.addEventListener("DOMContentLoaded", () => {
15
15
  if (document.querySelector("#new-window")) {
16
16
  document.querySelector("#new-window").addEventListener("click", (e) => {
17
17
  let agent = document.body.getAttribute("data-agent")
18
- debugger
19
18
  if (agent === "electron") {
20
19
  window.open("/", "_blank", "self")
21
20
  } else {