testdriverai 4.0.64 → 4.0.65

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 +17 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1,4 +1,21 @@
1
1
  #!/usr/bin/env node
2
+ const os = require('os');
3
+
4
+ // Get the current process ID
5
+ const pid = process.pid;
6
+
7
+ try {
8
+ // Display the current priority
9
+ console.log('Current priority:', os.getPriority(pid));
10
+
11
+ // Set the priority to the highest value
12
+ os.setPriority(pid, -20);
13
+
14
+ // Display the updated priority
15
+ console.log('Updated priority:', os.getPriority(pid));
16
+ } catch (error) {
17
+ console.error('Failed to set process priority:', error);
18
+ }
2
19
 
3
20
  // disable depreciation warnings
4
21
  process.removeAllListeners("warning");
@@ -11,7 +28,6 @@ require("./lib/profiler");
11
28
 
12
29
  const fs = require("fs");
13
30
  const readline = require("readline");
14
- const os = require("os");
15
31
  const http = require('http');
16
32
 
17
33
  // third party modules
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testdriverai",
3
- "version": "4.0.64",
3
+ "version": "4.0.65",
4
4
  "description": "Next generation autonomous AI agent for end-to-end testing of web & desktop",
5
5
  "main": "index.js",
6
6
  "bin": {