pinokiod 2.1.56 → 2.1.58

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "2.1.56",
3
+ "version": "2.1.58",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/server/index.js CHANGED
@@ -1547,7 +1547,6 @@ class Server {
1547
1547
  return relevant.platform && relevant.arch && relevant.gpu
1548
1548
  }
1549
1549
  async _installed(name, type) {
1550
- console.log("check _installed", { name, type })
1551
1550
  if (type === "conda") {
1552
1551
  return this.kernel.bin.installed.conda.has(name)
1553
1552
  } else if (type === "pip") {
@@ -1557,13 +1556,11 @@ class Server {
1557
1556
  } else {
1558
1557
  // check kernel/bin/<module>.installed()
1559
1558
  let filepath = path.resolve(__dirname, "..", "kernel", "bin", name + ".js")
1560
- console.log("mod", this.kernel.bin.mod)
1561
1559
  let mod = this.kernel.bin.mod[name]
1562
1560
  let installed = false
1563
1561
  if (mod.installed) {
1564
1562
  installed = await mod.installed()
1565
1563
  }
1566
- console.log("_installed", { name, type, installed })
1567
1564
  return installed
1568
1565
  }
1569
1566
  }
@@ -2105,7 +2102,6 @@ class Server {
2105
2102
  }))
2106
2103
 
2107
2104
  this.app.post("/openfs", ex(async (req, res) => {
2108
- console.log("openfs", req.body.path)
2109
2105
  Util.openfs(req.body.path)
2110
2106
  res.json({ success: true })
2111
2107
  }))
@@ -2366,11 +2362,9 @@ class Server {
2366
2362
  }))
2367
2363
  this.app.get("/api/*", ex(async (req, res) => {
2368
2364
  let pathComponents = req.params[0].split("/")
2369
- console.log("req.query", req.query)
2370
2365
  if (req.query && 'fs' in req.query) {
2371
2366
  // open in file system
2372
2367
  let full_filepath = this.kernel.path("api", ...pathComponents)
2373
- console.log("openfs", full_filepath)
2374
2368
  Util.openfs(full_filepath)
2375
2369
  res.render("fs", {
2376
2370
  path: full_filepath
@@ -7,10 +7,8 @@ document.addEventListener("click", async (e) => {
7
7
  el = e.target
8
8
  }
9
9
  }
10
- console.log({ el })
11
10
  if (el) {
12
11
  let filepath = el.getAttribute("data-filepath")
13
- console.log("filepath", filepath)
14
12
  await fetch("/openfs", {
15
13
  method: "post",
16
14
  headers: {
@@ -22,7 +20,6 @@ document.addEventListener("click", async (e) => {
22
20
  }).then((res) => {
23
21
  return res.json()
24
22
  })
25
- // let filepath = el.getAttribute("data-filepath")
26
23
  // window.open("about:blank", "_blank", "file://" + filepath)
27
24
  return
28
25
  }