pinokiod 3.8.57 → 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.
|
@@ -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
|
-
|
|
22
|
+
name = rel_path.split(_path.sep)[0]
|
|
22
23
|
console.log({ name })
|
|
23
24
|
return name
|
|
24
25
|
}
|