pinokiod 3.2.0 → 3.2.2

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": "3.2.0",
3
+ "version": "3.2.2",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/server/index.js CHANGED
@@ -349,6 +349,7 @@ class Server {
349
349
  } else {
350
350
  filepath = full_filepath
351
351
  }
352
+ console.log({ filepath })
352
353
 
353
354
  // check if it's a folder or a file
354
355
  let p = "/api" // run mode
@@ -915,6 +916,7 @@ class Server {
915
916
  let pre_items = []
916
917
  if (resolved && resolved.pre) {
917
918
  let env = await Environment.get2(filepath, this.kernel)
919
+ console.log("ENV.get2", { filepath, env })
918
920
  for(let item of resolved.pre) {
919
921
  if (item.env) {
920
922
  if (env[item.env]) {
@@ -235,7 +235,7 @@ document.addEventListener("DOMContentLoaded", async () => {
235
235
  "Content-Type": "application/json"
236
236
  },
237
237
  body: JSON.stringify({
238
- filepath: "<%=filepath%>",
238
+ filepath: "<%-filepath%>",
239
239
  vals
240
240
  })
241
241
  }).then((res) => {