pinokiod 3.2.146 → 3.2.147

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/kernel/index.js +11 -13
  2. package/package.json +1 -1
package/kernel/index.js CHANGED
@@ -368,19 +368,17 @@ class Kernel {
368
368
  })
369
369
  console.log("> 2")
370
370
  this.sys = new Sysinfo()
371
- this.sys.init(this).then(async () => {
372
- let info = this.sys.info
373
- await fs.promises.mkdir(this.path("logs"), { recursive: true }).catch((e) => { })
374
- await fs.promises.writeFile(this.path("logs/system.json"), JSON.stringify({
375
- platform: this.platform,
376
- arch: this.arch,
377
- home: this.homedir,
378
- ...info
379
- }, null, 2))
380
- this.sysinfo = info
381
- await this.update_sysinfo()
382
- })
383
- console.log("> 3")
371
+ await this.sys.init(this)
372
+ let info = this.sys.info
373
+ await fs.promises.mkdir(this.path("logs"), { recursive: true }).catch((e) => { })
374
+ await fs.promises.writeFile(this.path("logs/system.json"), JSON.stringify({
375
+ platform: this.platform,
376
+ arch: this.arch,
377
+ home: this.homedir,
378
+ ...info
379
+ }, null, 2))
380
+ this.sysinfo = info
381
+ await this.update_sysinfo()
384
382
  /*
385
383
  this.sys = new Sysinfo()
386
384
  await this.sys.init(this)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "3.2.146",
3
+ "version": "3.2.147",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {