@percy/monitoring 1.31.10-beta.1 → 1.31.10-beta.3

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/dist/index.js +27 -1
  2. package/package.json +5 -5
package/dist/index.js CHANGED
@@ -55,9 +55,35 @@ export default class Monitoring {
55
55
  this.log.debug(`[Disk] Available Space: ${diskSpace}`);
56
56
  this.log.debug(`[Memory] Total: ${mem.total / 1024 ** 3} gb, Swap Space: ${mem.swaptotal / 1024 ** 3} gb`);
57
57
  this.log.debug(`Container Level: ${this.isContainer}, Pod Level: ${this.isPod}, Machine Level: ${this.isMachine}`);
58
- this.log.debug(`Percy Envs: ${JSON.stringify(percyEnvs)}`);
58
+ this.log.debug(`Percy Envs: ${Object.keys(percyEnvs).join(', ')}`);
59
+ return {
60
+ os: {
61
+ platform: this.os,
62
+ type: os.type(),
63
+ release: os.release()
64
+ },
65
+ cpu: {
66
+ name: cpuName,
67
+ arch: cpu.arch,
68
+ cores: cpu.cores
69
+ },
70
+ disk: {
71
+ available: diskSpace
72
+ },
73
+ memory: {
74
+ totalGb: mem.total / 1024 ** 3,
75
+ swapGb: mem.swaptotal / 1024 ** 3
76
+ },
77
+ containerInfo: {
78
+ isContainer: this.isContainer,
79
+ isPod: this.isPod,
80
+ isMachine: this.isMachine
81
+ },
82
+ percyEnvs
83
+ };
59
84
  } catch (error) {
60
85
  this.log.debug(`Error logging system info: ${error}`);
86
+ return null;
61
87
  }
62
88
  }
63
89
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@percy/monitoring",
3
- "version": "1.31.10-beta.1",
3
+ "version": "1.31.10-beta.3",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -29,10 +29,10 @@
29
29
  "test:coverage": "yarn test --coverage"
30
30
  },
31
31
  "dependencies": {
32
- "@percy/config": "1.31.10-beta.1",
33
- "@percy/logger": "1.31.10-beta.1",
34
- "@percy/sdk-utils": "1.31.10-beta.1",
32
+ "@percy/config": "1.31.10-beta.3",
33
+ "@percy/logger": "1.31.10-beta.3",
34
+ "@percy/sdk-utils": "1.31.10-beta.3",
35
35
  "systeminformation": "^5.25.11"
36
36
  },
37
- "gitHead": "ae5b74ac851df206e0793a8048f4aeda9784fde1"
37
+ "gitHead": "a6bc2f02f722c7a6a16cdbc1dc3002b1de00f062"
38
38
  }