pinokiod 1.1.8 → 1.1.9

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.
@@ -1,6 +1,5 @@
1
1
  const system = require('systeminformation');
2
2
  const path = require("path")
3
- const si = require('systeminformation')
4
3
  const fs = require("fs")
5
4
  const _ = require("lodash")
6
5
  class Template {
@@ -11,7 +10,7 @@ class Template {
11
10
  this.os = kernel.os
12
11
  }
13
12
  async init() {
14
- let g = await si.graphics()
13
+ let g = await system.graphics()
15
14
  let gpus
16
15
  if (g && g.controllers && g.controllers.length > 0) {
17
16
  gpus = g.controllers.map((x) => { return x.vendor.toLowerCase() })
@@ -216,7 +215,7 @@ class Template {
216
215
  let fun = new Function("uri", "cwd", "key", "local", "global", "self", "input", "current", "next", "event", "_", "os", "path", "system", "pip", "platform", "arch", "gpu", "gpus", "kernel", `return ${o}`)
217
216
  try {
218
217
  console.log("fun", fun.toString())
219
- let response = fun(vars.uri, vars.cwd, vars.key, vars.local, vars.global, vars.self, vars.input, vars.current, vars.next, vars.event, _, os, path, system, vars.pip, this.platform, this.arch, this.gpu, this.gpus, this.kernel)
218
+ let response = fun(vars.uri, vars.cwd, vars.key, vars.local, vars.global, vars.self, vars.input, vars.current, vars.next, vars.event, _, this.os, path, system, vars.pip, this.platform, this.arch, this.gpu, this.gpus, this.kernel)
220
219
  console.log("response", response)
221
220
  if (typeof response === "undefined") {
222
221
  return `{{${o}}}`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "1.1.8",
3
+ "version": "1.1.9",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {