pinokiod 3.9.42 → 3.10.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/server/index.js +10 -6
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "3.9.42",
3
+ "version": "3.10.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/server/index.js CHANGED
@@ -3770,7 +3770,11 @@ class Server {
3770
3770
  let env_path = req.params[0]
3771
3771
  // let p = path.resolve(this.kernel.homedir, env_path, "pinokio.js")
3772
3772
  // let config = (await this.kernel.loader.load(p)).resolved
3773
- let config = await this.kernel.api.meta(env_path)
3773
+ let api_path
3774
+ if (env_path.startsWith("api/")) {
3775
+ api_path = env_path.slice(4)
3776
+ }
3777
+ let config = await this.kernel.api.meta(api_path)
3774
3778
  if (config.run) {
3775
3779
  await this.init_env(env_path, { no_inherit: true })
3776
3780
  } else {
@@ -3785,11 +3789,11 @@ class Server {
3785
3789
  if (e) {
3786
3790
  items = await Util.parse_env_detail(filepath)
3787
3791
  }
3788
- if (config.icon) {
3789
- config.icon = `/${env_path}/${config.icon}?raw=true`
3790
- } else {
3791
- config.icon = "/pinokio-black.png"
3792
- }
3792
+ // if (config.icon) {
3793
+ // config.icon = `/${env_path}/${config.icon}?raw=true`
3794
+ // } else {
3795
+ // config.icon = "/pinokio-black.png"
3796
+ // }
3793
3797
 
3794
3798
  let name
3795
3799
  if (env_path.startsWith("api")) {