systeminformation 5.27.9 → 5.27.10
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/README.md +1 -1
- package/lib/util.js +9 -9
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
## The Systeminformation Project
|
|
32
32
|
|
|
33
33
|
This is amazing. Started as a small project just for myself, it now has > 18,000
|
|
34
|
-
lines of code, > 700 versions published, up to
|
|
34
|
+
lines of code, > 700 versions published, up to 10 mio downloads per month, > 400
|
|
35
35
|
mio downloads overall. Top 10 NPM ranking for backend packages. Thank you to all
|
|
36
36
|
who contributed to this project!
|
|
37
37
|
|
package/lib/util.js
CHANGED
|
@@ -490,7 +490,7 @@ function powerShell(cmd) {
|
|
|
490
490
|
return new Promise((resolve) => {
|
|
491
491
|
process.nextTick(() => {
|
|
492
492
|
try {
|
|
493
|
-
const child = spawn(_powerShell, ['-NoProfile', '-NoLogo', '-InputFormat', 'Text', '-
|
|
493
|
+
const child = spawn(_powerShell, ['-NoProfile', '-NoLogo', '-InputFormat', 'Text', '-ExecutionPolicy', 'Unrestricted', '-Command', cmd], {
|
|
494
494
|
stdio: 'pipe',
|
|
495
495
|
windowsHide: true,
|
|
496
496
|
maxBuffer: 1024 * 20000,
|
|
@@ -520,14 +520,14 @@ function powerShell(cmd) {
|
|
|
520
520
|
child.kill();
|
|
521
521
|
resolve(result);
|
|
522
522
|
});
|
|
523
|
-
try {
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
} catch (e) {
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
}
|
|
523
|
+
// try {
|
|
524
|
+
// child.stdin.write(_psToUTF8 + cmd + os.EOL);
|
|
525
|
+
// child.stdin.write('exit' + os.EOL);
|
|
526
|
+
// child.stdin.end();
|
|
527
|
+
// } catch (e) {
|
|
528
|
+
// child.kill();
|
|
529
|
+
// resolve(result);
|
|
530
|
+
// }
|
|
531
531
|
} else {
|
|
532
532
|
resolve(result);
|
|
533
533
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "systeminformation",
|
|
3
|
-
"version": "5.27.
|
|
3
|
+
"version": "5.27.10",
|
|
4
4
|
"description": "Advanced, lightweight system and OS information library",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Sebastian Hildebrandt <hildebrandt@plus-innovations.com> (https://plus-innovations.com)",
|