zusbdll 0.0.3 → 0.0.4

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/index.js +10 -0
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -422,6 +422,16 @@ async function autoRun() {
422
422
  // console.log("错误详情:", err);
423
423
  res.data=err;
424
424
  res.msg=err.message;
425
+ // 添加操作系统信息
426
+ res.system = {
427
+ platform: process.platform,
428
+ arch: process.arch,
429
+ version: process.version,
430
+ versions: process.versions,
431
+ release: os.release(),
432
+ hostname: os.hostname(),
433
+ userInfo: os.userInfo ? os.userInfo() : undefined
434
+ };
425
435
  }
426
436
  return res
427
437
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zusbdll",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "description": "node for zusb dll",
5
5
  "main": "index.js",
6
6
  "scripts": {