pinokiod 2.15.34 → 2.15.36

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/package.json +1 -1
  2. package/server/index.js +4 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "2.15.34",
3
+ "version": "2.15.36",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/server/index.js CHANGED
@@ -602,6 +602,8 @@ class Server {
602
602
  let json
603
603
  let js
604
604
 
605
+ console.log("filepath", filepath)
606
+
605
607
  if (filepath.endsWith(".json")) {
606
608
  try {
607
609
  json = (await this.kernel.loader.load(filepath)).resolved
@@ -2635,6 +2637,7 @@ class Server {
2635
2637
  }
2636
2638
  }))
2637
2639
  this.app.get("/api/*", ex(async (req, res) => {
2640
+ console.log("req.params", req.params)
2638
2641
  let pathComponents = req.params[0].split("/")
2639
2642
  if (req.query && 'fs' in req.query) {
2640
2643
  // open in file system
@@ -2647,6 +2650,7 @@ class Server {
2647
2650
  try {
2648
2651
  await this.render(req, res, pathComponents)
2649
2652
  } catch (e) {
2653
+ console.log("ERROR", e)
2650
2654
  res.status(404).send(e.message)
2651
2655
  }
2652
2656
  }