pinokiod 3.19.43 → 3.19.45

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.
Files changed (2) hide show
  1. package/kernel/shell.js +5 -13
  2. package/package.json +1 -1
package/kernel/shell.js CHANGED
@@ -726,7 +726,7 @@ class Shell {
726
726
  if (this.shell === "cmd.exe") {
727
727
  timeout = 'C:\\Windows\\System32\\timeout /t 1 > nul'
728
728
  } else {
729
- timeout = 'sleep 1'
729
+ timeout = "sleep '1'"
730
730
  }
731
731
 
732
732
 
@@ -777,7 +777,7 @@ class Shell {
777
777
  `conda deactivate`,
778
778
  // timeout,
779
779
  `conda activate ${conda_name}`,
780
- // timeout,
780
+ timeout,
781
781
  ]
782
782
  } else {
783
783
  let envs_path = this.kernel.bin.path("miniconda/envs")
@@ -802,7 +802,7 @@ class Shell {
802
802
  `conda deactivate`,
803
803
  // timeout,
804
804
  `conda activate ${conda_name}`,
805
- // timeout,
805
+ timeout,
806
806
  ]
807
807
  }
808
808
  }
@@ -1279,16 +1279,8 @@ ${cleaned}
1279
1279
  this.params.onready()
1280
1280
  }
1281
1281
  if (this.ptyProcess) {
1282
- if (this.platform === "win32" && this.shell !== "cmd.exe") {
1283
- console.log("Write after 500ms")
1284
- setTimeout(() => {
1285
- console.log("ptyProcess.write", { cmd: this.cmd, eol: this.EOL })
1286
- this.ptyProcess.write(`${this.cmd}${this.EOL}`)
1287
- }, 500)
1288
- } else {
1289
- console.log("ptyProcess.write", { cmd: this.cmd, eol: this.EOL })
1290
- this.ptyProcess.write(`${this.cmd}${this.EOL}`)
1291
- }
1282
+ console.log("ptyProcess.write", { cmd: this.cmd, eol: this.EOL })
1283
+ this.ptyProcess.write(`${this.cmd}${this.EOL}`)
1292
1284
  // setTimeout(() => {
1293
1285
  // this.ptyProcess.write('\x1B[?2004h');
1294
1286
  // }, 500)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "3.19.43",
3
+ "version": "3.19.45",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {