pinokiod 1.3.66 → 1.3.67

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "1.3.66",
3
+ "version": "1.3.67",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/script/index.js CHANGED
@@ -35,8 +35,8 @@ class Store {
35
35
  }
36
36
  }
37
37
  const server = new Server({
38
- port: 42000,
39
- //port: 80,
38
+ //port: 42000,
39
+ port: 80,
40
40
  agent: "web",
41
41
  store: new Store()
42
42
  })
package/server/index.js CHANGED
@@ -1895,15 +1895,17 @@ class Server {
1895
1895
  await this.kernel.init({ port: this.port})
1896
1896
 
1897
1897
 
1898
- let ex = await this.kernel.exists(this.kernel.homedir, "ENVIRONMENT")
1899
- if (!ex) {
1900
- let str = Environment.ENV(this.kernel.homedir)
1901
- await fs.promises.writeFile(path.resolve(this.homedir, "ENVIRONMENT"), str)
1902
- }
1898
+ if (this.kernel.homedir) {
1899
+ let ex = await this.kernel.exists(this.kernel.homedir, "ENVIRONMENT")
1900
+ if (!ex) {
1901
+ let str = Environment.ENV(this.kernel.homedir)
1902
+ await fs.promises.writeFile(path.resolve(this.homedir, "ENVIRONMENT"), str)
1903
+ }
1903
1904
 
1904
- let env = await Environment.get(this.kernel.homedir)
1905
- if (env && env.PINOKIO_PORT) {
1906
- this.port = env.PINOKIO_PORT
1905
+ let env = await Environment.get(this.kernel.homedir)
1906
+ if (env && env.PINOKIO_PORT) {
1907
+ this.port = env.PINOKIO_PORT
1908
+ }
1907
1909
  }
1908
1910
 
1909
1911