@nexrender/core 1.49.4 → 1.50.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nexrender/core",
3
- "version": "1.49.4",
3
+ "version": "1.50.4",
4
4
  "main": "src/index.js",
5
5
  "author": "Inlife",
6
6
  "homepage": "https://www.nexrender.com",
@@ -21,12 +21,11 @@
21
21
  "nanoid": "^3.2.0",
22
22
  "requireg": "^0.2.1",
23
23
  "rimraf": "^3.0.2",
24
- "strip-comments": "^2.0.1",
25
- "systeminformation": "^5.18.3"
24
+ "strip-comments": "^2.0.1"
26
25
  },
27
26
  "peerDependencies": {
28
27
  "@nexrender/action-copy": "^1.0.0",
29
- "@nexrender/action-decompress": "1.48.2",
28
+ "@nexrender/action-decompress": "^1.48.2",
30
29
  "@nexrender/action-encode": "^1.1.4",
31
30
  "@nexrender/action-upload": "^1.0.0",
32
31
  "@nexrender/provider-ftp": "^1.17.2",
@@ -38,5 +37,5 @@
38
37
  "publishConfig": {
39
38
  "access": "public"
40
39
  },
41
- "gitHead": "7dfa1bf539d3a9d006a987ca7dbb59e4454bbaba"
40
+ "gitHead": "0fbddc7b524498cf83ff6fb67840bbd87eb35542"
42
41
  }
@@ -3,7 +3,6 @@ const os = require('os')
3
3
  const path = require('path')
4
4
  const crypto = require('crypto')
5
5
 
6
- const si = require('systeminformation')
7
6
  const { nanoid } = require('nanoid')
8
7
  const childProcess = require('child_process')
9
8
 
@@ -96,32 +95,32 @@ const track = async (settings, event, properties = {}) => {
96
95
  return;
97
96
  }
98
97
 
99
- // collect system info
100
- if (!settings.systemInfo) {
101
- // if (isRemote) console.log('collecting systeminfo')
102
-
103
- settings.systemInfo = await si.get({
104
- cpu: 'manufacturer,brand,cores',
105
- mem: 'total',
106
- graphics: '*',
107
- osInfo: 'platform,arch,distro,release',
108
- dockerInfo: 'id',
109
- })
110
-
111
- properties.$set_once = {
112
- sys_cpu_manufacturer: settings.systemInfo.cpu.manufacturer,
113
- sys_cpu_brand: settings.systemInfo.cpu.brand,
114
- sys_cpu_cores: settings.systemInfo.cpu.cores,
115
- sys_mem_total: settings.systemInfo.mem.total,
116
- sys_graphics_vendor: (settings.systemInfo.graphics.controllers[0] || []).vendor,
117
- sys_graphics_model: (settings.systemInfo.graphics.controllers[0] || []).model,
118
- sys_os_platform: settings.systemInfo.osInfo.platform,
119
- sys_os_arch: settings.systemInfo.osInfo.arch,
120
- sys_os_distro: settings.systemInfo.osInfo.distro,
121
- sys_os_release: settings.systemInfo.osInfo.release,
122
- sys_docker: !!settings.systemInfo.dockerInfo.id,
123
- }
124
- }
98
+ // // collect system info
99
+ // if (!settings.systemInfo) {
100
+ // // if (isRemote) console.log('collecting systeminfo')
101
+
102
+ // settings.systemInfo = await si.get({
103
+ // cpu: 'manufacturer,brand,cores',
104
+ // mem: 'total',
105
+ // graphics: '*',
106
+ // osInfo: 'platform,arch,distro,release',
107
+ // dockerInfo: 'id',
108
+ // })
109
+
110
+ // properties.$set_once = {
111
+ // sys_cpu_manufacturer: settings.systemInfo.cpu.manufacturer,
112
+ // sys_cpu_brand: settings.systemInfo.cpu.brand,
113
+ // sys_cpu_cores: settings.systemInfo.cpu.cores,
114
+ // sys_mem_total: settings.systemInfo.mem.total,
115
+ // sys_graphics_vendor: (settings.systemInfo.graphics.controllers[0] || []).vendor,
116
+ // sys_graphics_model: (settings.systemInfo.graphics.controllers[0] || []).model,
117
+ // sys_os_platform: settings.systemInfo.osInfo.platform,
118
+ // sys_os_arch: settings.systemInfo.osInfo.arch,
119
+ // sys_os_distro: settings.systemInfo.osInfo.distro,
120
+ // sys_os_release: settings.systemInfo.osInfo.release,
121
+ // sys_docker: !!settings.systemInfo.dockerInfo.id,
122
+ // }
123
+ // }
125
124
 
126
125
  if (event == 'Job Cleanup') {
127
126
  const events = Object.keys(cache.data)