pinokiod 3.8.56 → 3.8.58

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.
@@ -15,7 +15,7 @@ class LocalhostVariableRouter extends Processor {
15
15
  let val = local_variables_for_script[key]
16
16
  if (val.startsWith("http")) {
17
17
  let dial = val.replace(/https?:\/\//, '')
18
- let name = this.api_name(this.router.kernel.homedir, script_path)
18
+ let name = this.api_name(this.router.kernel.platform, this.router.kernel.homedir, script_path)
19
19
  console.log({ dial, name, has_port: this.has_port(dial), parsed_dial: this.parse_ip(dial) })
20
20
  if (this.has_port(dial)) {
21
21
  if (key === "url") {
@@ -8,6 +8,7 @@ class Processor {
8
8
  console.log({ platform, home, str })
9
9
  let api_path
10
10
  let rel_path
11
+ let name
11
12
  if (platform === 'win32') {
12
13
  let _path = path.win32
13
14
  api_path = _path.resolve(home, "api")
@@ -18,7 +19,7 @@ class Processor {
18
19
  rel_path = _path.relative(api_path, str)
19
20
  }
20
21
  console.log({ api_path, rel_path, })
21
- let name = rel_path.split(_path.sep)[0]
22
+ name = rel_path.split(_path.sep)[0]
22
23
  console.log({ name })
23
24
  return name
24
25
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "3.8.56",
3
+ "version": "3.8.58",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {