dcp-worker 4.5.0 → 4.5.2

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": "dcp-worker",
3
- "version": "4.5.0",
3
+ "version": "4.5.2",
4
4
  "description": "Node.js Worker for Distributive Compute Platform",
5
5
  "main": "bin/dcp-worker",
6
6
  "keywords": [
@@ -39,8 +39,9 @@
39
39
  "blessed": "0.1.81",
40
40
  "blessed-contrib": "4.11.0",
41
41
  "chalk": "4.1.2",
42
- "dcp-client": "^5.7.0",
43
- "kvin": "^9.0.0",
42
+ "dcp-client": "^5.7.5",
43
+ "kvin": "9.1.0",
44
+ "mux-net": "github:wesgarland/mux-net#e7f81800db4a84ec880026596f7ee68549a6d0f5",
44
45
  "posix-getopt": "1.2.1",
45
46
  "semver": "7.7.3",
46
47
  "socket.io": "4.8.1",
@@ -53,8 +54,11 @@
53
54
  },
54
55
  "devDependencies": {
55
56
  "@distributive/eslint-config": "2.1.4",
57
+ "@stylistic/eslint-plugin": "3.1.0",
56
58
  "@trunkio/launcher": "1.2.7",
57
59
  "eslint": "9.39.1",
60
+ "eslint-plugin-jsdoc": "47.0.2",
61
+ "eslint-plugin-unicorn": "49.0.0",
58
62
  "peter": "2.4.7"
59
63
  },
60
64
  "peerDependencies": {
@@ -71,11 +75,12 @@
71
75
  },
72
76
  "overrides": {
73
77
  "blessed-contrib": {
78
+ "lodash": "4.18.1",
74
79
  "xml2js": "0.6.2"
75
80
  },
76
81
  "dbus-next": {
77
82
  "xml2js": "0.6.2",
78
- "tar": "7.5.11",
83
+ "tar": "7.5.22",
79
84
  "usocket": "1.0.2"
80
85
  }
81
86
  }
@@ -67,7 +67,11 @@ async function main()
67
67
  strictEqual(confObj.leaveGlobalGroup, true, `leaveGlobalGroup is ${confObj.leaveGlobalGroup}`);
68
68
  deepEqual(confObj.cores, { cpu: 3, gpu: 1 }, `Mismatch in cores! cpu: ${confObj.cores.cpu}, gpu: ${confObj.cores.gpu}`);
69
69
  deepEqual(confObj.utilization, { cpu: 0.1, gpu: 0.5 }, `Mismatch in utilization! cpu: ${confObj.utilization.cpu}, gpu: ${confObj.utilization.gpu}`);
70
- deepEqual(confObj.computeGroups, { joinKey1: { joinKey: 'joinKey1', joinSecret: 'joinHash1' }, joinKey2: { joinKey: 'joinKey2', joinSecret: 'joinHash2' } }, 'Mismatch in computeGroups')
70
+
71
+ let cgCompare = { joinKey1: { joinKey: 'joinKey1', joinSecret: 'joinHash1' }, joinKey2: { joinKey: 'joinKey2', joinSecret: 'joinHash2' } };
72
+ if (Array.isArray(confObj.computeGroups))
73
+ cgCompare = Object.assign([], cgCompare);
74
+ deepEqual(confObj.computeGroups, cgCompare, 'Mismatch in computeGroups');
71
75
  deepEqual(confObj.maxSandboxes, 5, `Mismatch! maxSandboxes:${confObj.maxSandboxes}`);
72
76
  deepEqual(confObj.jobIds, ['09fd0909Bd93f7bad915726C3AB4'], `Mismatch in job ids! jobIds:${confObj.jobIds}`);
73
77
 
@@ -7,6 +7,7 @@
7
7
  -->
8
8
  <html lang="en">
9
9
  <head>
10
+ <meta charset="UTF-8">
10
11
  <script src="/dcp-client/dcp-client.js"></script>
11
12
  <script>
12
13
  window.addEventListener('error', ev => dcp['dom-tk'].modals.alert(ev));