pinokiod 1.3.99 → 2.0.0

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.
@@ -16,8 +16,6 @@ class C {
16
16
  => cloudflared tunnel --url http://localhost:8080
17
17
  */
18
18
 
19
- console.log("*tunnel", req.params)
20
-
21
19
  let pipe_uri
22
20
  if (req.params.passcode) {
23
21
  // 1. start a pipe server => needed for authentication
@@ -293,11 +293,9 @@ const init_folders = async (homedir) => {
293
293
 
294
294
  // Get the actual environment variable at specific path
295
295
  const get2 = async (filepath, kernel) => {
296
- console.log("Get2")
297
296
  let api_path = Util.api_path(filepath, kernel)
298
297
  let default_env = await get(kernel.homedir)
299
298
  let api_env = await get(api_path)
300
- console.log({ api_path, default_env, api_env, process_env: process.env })
301
299
  let current_env = Object.assign({}, process.env, default_env, api_env)
302
300
  return current_env
303
301
  }
package/kernel/util.js CHANGED
@@ -87,7 +87,6 @@ const escapeStringRegexp = (string) => {
87
87
  }
88
88
 
89
89
  const update_env = async (filepath, changes) => {
90
- console.log("update_env", { filepath, changes })
91
90
  const env = await fs.promises.readFile(filepath, "utf8")
92
91
  let append = false;
93
92
  const newval = Object.keys(changes).reduce((result, varname) => {
@@ -96,7 +95,6 @@ const update_env = async (filepath, changes) => {
96
95
  .replace(returnPattern, returnReplacement)
97
96
  .trim();
98
97
  const safeName = escapeStringRegexp(varname);
99
- console.log({ value, safeName, result, varname })
100
98
  const varPattern = new RegExp(`^(${h}*${safeName}${h}*=${h}*)\\S*(${h}*)$`, "gm");
101
99
  if (varPattern.test(result)) {
102
100
  const safeValue = value.replace(groupPattern, groupReplacement);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "1.3.99",
3
+ "version": "2.0.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/server/index.js CHANGED
@@ -1993,7 +1993,6 @@ class Server {
1993
1993
  //let home = this.kernel.homedir
1994
1994
  let home = this.kernel.store.get("home")
1995
1995
  this.app.get("/", async (req, res) => {
1996
- console.log("req", req)
1997
1996
  if (req.query.mode !== "settings" && !home) {
1998
1997
  res.redirect("/?mode=settings")
1999
1998
  return