pinokiod 3.2.245 → 3.2.247

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/index.js CHANGED
@@ -493,8 +493,11 @@ class Kernel {
493
493
  // get env
494
494
  if (!this.launch_complete) {
495
495
  let interval = setInterval(async () => {
496
+ console.log(">>>>> 1")
496
497
  if (this.i) {
498
+ console.log(">>>>> 2")
497
499
  for(let api of this.i.api) {
500
+ console.log({ api })
498
501
  let env_path = path.resolve(this.api.userdir, api.path)
499
502
  let e = await Environment.get(env_path)
500
503
  console.log(e)
@@ -504,17 +507,14 @@ class Kernel {
504
507
  console.log("ATTEMPTING AUTOLAUNCH", autolaunch_path)
505
508
  if (exists) {
506
509
  console.log("SCRIPT EXISTS. Starting...", autolaunch_path)
507
- let res = await new Promise((resolve, reject) => {
508
- this.api.process({
509
- uri: autolaunch_path,
510
- input: {}
511
- // client: req.client,
512
- // caller: req.parent.path,
513
- }, (r) => {
514
- console.log({ autolaunch_path, r })
510
+ this.api.process({
511
+ uri: autolaunch_path,
512
+ input: {}
513
+ // client: req.client,
514
+ // caller: req.parent.path,
515
+ }, (r) => {
516
+ console.log({ autolaunch_path, r })
515
517
  // resolve(r.input)
516
- })
517
- resolve()
518
518
  })
519
519
  } else {
520
520
  console.log("SCRIPT DOES NOT EXIST. Ignoring.", autolaunch_path)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "3.2.245",
3
+ "version": "3.2.247",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1081,6 +1081,8 @@ fetch("/pinokio/info").then((res) => {
1081
1081
  return res.json()
1082
1082
  }).then((res) => {
1083
1083
  if (!res.launch_complete) {
1084
+ location.href = location.href
1085
+ } else {
1084
1086
  let interval = setInterval(async () => {
1085
1087
  let res = await fetch("/pinokio/info").then((res) => {
1086
1088
  return res.json()