pinokiod 2.15.76 → 2.15.78

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.
@@ -731,7 +731,6 @@ class Api {
731
731
 
732
732
 
733
733
  if (result && result.error) {
734
- console.log("RESULT CONTAINED ERROR. HALT")
735
734
  this.ondata({
736
735
  id: request.path,
737
736
  type: "error",
@@ -753,11 +752,8 @@ class Api {
753
752
  }
754
753
  */
755
754
  // write to current app folder's ENVIRONMENT
756
- console.log("request", request)
757
755
  let api_path = Util.api_path(request.path, this.kernel)
758
- console.log("api_path", api_path)
759
756
  let env_path = path.resolve(api_path, "ENVIRONMENT")
760
- console.log("env_path", env_path)
761
757
  await Util.update_env(env_path, {
762
758
  PINOKIO_SCRIPT_DEFAULT: "false"
763
759
  })
package/kernel/index.js CHANGED
@@ -336,10 +336,12 @@ class Kernel {
336
336
  }
337
337
 
338
338
  // let contents = await fs.promises.readdir(this.homedir)
339
- await this.bin.init()
339
+ //await this.bin.init()
340
+ this.bin.init()
340
341
  await this.api.init()
341
342
 
342
- await this.shell.init()
343
+ //await this.shell.init()
344
+ this.shell.init()
343
345
 
344
346
  if (this.homedir) {
345
347
  this.sys = new Sysinfo()
@@ -375,7 +377,6 @@ class Kernel {
375
377
  } else {
376
378
  pwpath = this.bin.path("miniconda/lib/node_modules/playwright")
377
379
  }
378
- console.log("pwpath", pwpath)
379
380
  process.env.PLAYWRIGHT_BROWSERS_PATH = this.bin.path("playwright/browsers")
380
381
  this.playwright = (await this.loader.load(pwpath)).resolved
381
382
 
package/kernel/util.js CHANGED
@@ -21,10 +21,10 @@ const returnReplacement = "\\r";
21
21
  //const { fdir } = require("fdir");
22
22
  const { getDirSize, getDirSizeSync } = require('fast-dir-size')
23
23
 
24
+ // asar handling for go-get-folder-size
24
25
  let g
25
- if( __dirname.includes(".asar") ){
26
- console.log("running in ASAR");
27
- let root = /(.+\.asar)/.exec(str);
26
+ if( __dirname.includes(".asar") ) {
27
+ let root = /(.+\.asar)/.exec(__dirname);
28
28
  g = require(path.join(root[1] + ".unpacked", 'node_modules', 'go-get-folder-size'));
29
29
  } else {
30
30
  g = require('go-get-folder-size');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "2.15.76",
3
+ "version": "2.15.78",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {