pinokiod 3.2.5 → 3.2.7
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 +6 -4
- package/kernel/util.js +0 -2
- package/package.json +1 -1
- package/server/index.js +0 -4
package/kernel/index.js
CHANGED
|
@@ -369,10 +369,12 @@ class Kernel {
|
|
|
369
369
|
|
|
370
370
|
|
|
371
371
|
this.shell.init().then(() => {
|
|
372
|
-
this.
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
372
|
+
if (this.envs) {
|
|
373
|
+
this.template.update({
|
|
374
|
+
env: this.envs,
|
|
375
|
+
envs: this.envs
|
|
376
|
+
})
|
|
377
|
+
}
|
|
376
378
|
})
|
|
377
379
|
|
|
378
380
|
let pwpath
|
package/kernel/util.js
CHANGED
|
@@ -148,7 +148,6 @@ const log_path = (fullpath, kernel) => {
|
|
|
148
148
|
let rel_path = path.relative(api_path, fullpath)
|
|
149
149
|
let log_root = `${kernel.homedir}${path.sep}logs`
|
|
150
150
|
let current_log_path = path.resolve(log_root, "shell/cleaned/api", rel_path)
|
|
151
|
-
console.log({ log_path })
|
|
152
151
|
return current_log_path
|
|
153
152
|
}
|
|
154
153
|
const api_path = (fullpath, kernel) => {
|
|
@@ -156,7 +155,6 @@ const api_path = (fullpath, kernel) => {
|
|
|
156
155
|
let rel_path = path.relative(api_path, fullpath)
|
|
157
156
|
let api_name = rel_path.split(path.sep)[0]
|
|
158
157
|
let current_api_path = `${api_path}${path.sep}${api_name}`
|
|
159
|
-
console.log({ current_api_path })
|
|
160
158
|
return current_api_path
|
|
161
159
|
}
|
|
162
160
|
const escapeStringRegexp = (string) => {
|
package/package.json
CHANGED
package/server/index.js
CHANGED
|
@@ -349,7 +349,6 @@ class Server {
|
|
|
349
349
|
} else {
|
|
350
350
|
filepath = full_filepath
|
|
351
351
|
}
|
|
352
|
-
console.log({ filepath })
|
|
353
352
|
|
|
354
353
|
// check if it's a folder or a file
|
|
355
354
|
let p = "/api" // run mode
|
|
@@ -916,7 +915,6 @@ class Server {
|
|
|
916
915
|
let pre_items = []
|
|
917
916
|
if (resolved && resolved.pre) {
|
|
918
917
|
let env = await Environment.get2(filepath, this.kernel)
|
|
919
|
-
console.log("ENV.get2", { filepath, env })
|
|
920
918
|
for(let item of resolved.pre) {
|
|
921
919
|
if (item.env) {
|
|
922
920
|
if (env[item.env]) {
|
|
@@ -934,11 +932,9 @@ class Server {
|
|
|
934
932
|
if (requires_instantiation) {
|
|
935
933
|
let p = Util.api_path(filepath, this.kernel)
|
|
936
934
|
let platform = os.platform()
|
|
937
|
-
console.log("p before", p)
|
|
938
935
|
if (platform === "win32") {
|
|
939
936
|
p = p.replace(/\\/g, '\\\\')
|
|
940
937
|
}
|
|
941
|
-
console.log("p after", p)
|
|
942
938
|
res.render("required_env_editor", {
|
|
943
939
|
agent: this.agent,
|
|
944
940
|
theme: this.theme,
|