pinokiod 3.9.13 → 3.9.14

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.
@@ -495,12 +495,15 @@ class Api {
495
495
  let method
496
496
  let dirname
497
497
  let mod
498
+ console.log(">> resolveMethod", { req, cwd })
498
499
  if (req.method && typeof req.method === "function") {
500
+ console.log(">> 1")
499
501
  modpath = null
500
502
  method = req.method
501
503
  dirname = __dirname
502
504
  mod = null
503
505
  } else if (req.uri) {
506
+ console.log(">> 2")
504
507
  modpath = this.resolvePath(cwd, req.uri)
505
508
  let m = (await this.loader.load(modpath))
506
509
  const stats = await fs.promises.stat(modpath)
@@ -532,6 +535,7 @@ class Api {
532
535
  }
533
536
  mod = m.resolved
534
537
  dirname = m.dirname
538
+ console.log({ m })
535
539
  method = mod[req.method].bind(mod)
536
540
  } else {
537
541
  // KERNEL
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "3.9.13",
3
+ "version": "3.9.14",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {