pinokiod 3.2.223 → 3.2.225

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.
@@ -139,14 +139,16 @@ class Api {
139
139
  console.log("STOP modpath", modpath)
140
140
  console.log("this.mods before", this.mods)
141
141
  console.log("this.child_procs before", this.child_procs)
142
- let child_procs = Array.from(this.child_procs[modpath])
143
- for(let proc of child_procs) {
144
- console.log("reset child proc", proc)
145
- delete this.mods[proc]
142
+ if (this.child_procs[modpath]) {
143
+ let child_procs = Array.from(this.child_procs[modpath])
144
+ for(let proc of child_procs) {
145
+ console.log("reset child proc", proc)
146
+ delete this.mods[proc]
147
+ }
148
+ delete this.child_procs[modpath]
149
+ console.log("this.mods after", this.mods)
150
+ console.log("this.child_procs after", this.child_procs)
146
151
  }
147
- delete this.child_procs[modpath]
148
- console.log("this.mods after", this.mods)
149
- console.log("this.child_procs after", this.child_procs)
150
152
 
151
153
 
152
154
  // stop all shell processes connected to the uri
@@ -391,7 +391,6 @@ class Bin {
391
391
  console.log({ brew_path, brew_exists })
392
392
 
393
393
  let brew = []
394
- console.time(">0")
395
394
  if (brew_exists) {
396
395
  start = false
397
396
  res = await this.exec({ message: `brew list -1`, conda: { skip: true } }, (stream) => {
@@ -417,18 +416,15 @@ class Bin {
417
416
  }
418
417
  }
419
418
  }
420
- console.timeEnd(">0")
421
419
  this.installed.brew = new Set(brew)
422
420
 
423
421
 
424
422
  // check brew_installed
425
423
  console.log("checking brew installed")
426
- console.time(">1")
427
424
  let e = await this.kernel.bin.exists("homebrew")
428
425
  let { stdout }= await this.exec({ message: "xcode-select -p", conda: { skip: true } }, (stream) => { })
429
426
  let e2 = /(.*Library.*Developer.*CommandLineTools.*|.*Xcode.*Developer.*)/gi.test(stdout)
430
427
  let e3 = await this.kernel.exists("/Library/Developer/CommandLineTools")
431
- console.timeEnd(">1")
432
428
 
433
429
  // if xcode-select version exists
434
430
  // - if version is greater thatn 2349 => yes
@@ -437,7 +433,6 @@ class Bin {
437
433
  // - no
438
434
 
439
435
  let e4;
440
- console.time(">2")
441
436
  let result = await this.exec({ message: "xcode-select --version", conda: { skip: true } }, (stream) => { })
442
437
  if (result && result.stdout) {
443
438
  e4 = /xcode-select version ([0-9]+)/gi.exec(result.stdout)
@@ -455,7 +450,6 @@ class Bin {
455
450
  } else {
456
451
  e4 = false
457
452
  }
458
- console.timeEnd(">2")
459
453
  console.log("BREW CHECK", { e, e2, e3, e4 })
460
454
  this.brew_installed = e && e2 && e3 && e4
461
455
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "3.2.223",
3
+ "version": "3.2.225",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {