| 5.21.17 |
2023-11-11 |
diff --git a/docs/index.html b/docs/index.html
index 0a37cf4..18f07af 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -64,8 +64,8 @@
var xhttp = new XMLHttpRequest();
xhttp.onreadystatechange = function () {
if (this.readyState == 4 && this.status == 200) {
- var package = JSON.parse(this.responseText);
- document.getElementById("version").innerHTML = package.version;
+ var packageVersion = JSON.parse(this.responseText);
+ document.getElementById("version").innerHTML = packageVersion.version;
}
};
xhttp.open("GET", "https://registry.npmjs.org/systeminformation/latest", true);
@@ -79,9 +79,9 @@
backDelay: 1200,
};
- var typed = new Typed('#typed', options);
+ return new Typed('#typed', options);
}
- function scrollIt(destination, duration = 200, easing = 'linear', callback) {
+ function scrollIt(destination, duration, easing, callback) {
const easings = {
linear(t) {
@@ -170,7 +170,7 @@
systeminformation
- New Version: 5.21.17
+ New Version: 5.21.18
diff --git a/docs/v4/index.html b/docs/v4/index.html
index 2607a0f..d744b91 100644
--- a/docs/v4/index.html
+++ b/docs/v4/index.html
@@ -63,8 +63,8 @@
var xhttp = new XMLHttpRequest();
xhttp.onreadystatechange = function () {
if (this.readyState == 4 && this.status == 200) {
- var package = JSON.parse(this.responseText);
- document.getElementById("version").innerHTML = package.version;
+ var packageVersion = JSON.parse(this.responseText);
+ document.getElementById("version").innerHTML = packageVersion.version;
}
};
xhttp.open("GET", "https://registry.npmjs.org/systeminformation/latest", true);
@@ -78,9 +78,9 @@
backDelay: 1200,
};
- var typed = new Typed('#typed', options);
+ return new Typed('#typed', options);
}
- function scrollIt(destination, duration = 200, easing = 'linear', callback) {
+ function scrollIt(destination, duration, easing, callback) {
const easings = {
linear(t) {
diff --git a/lib/network.js b/lib/network.js
index 61d10cd..fc89206 100644
--- a/lib/network.js
+++ b/lib/network.js
@@ -1525,7 +1525,7 @@ function networkConnections(callback) {
}
if (_darwin) {
// let cmd = 'netstat -natv | grep "ESTABLISHED\\|SYN_SENT\\|SYN_RECV\\|FIN_WAIT1\\|FIN_WAIT2\\|TIME_WAIT\\|CLOSE\\|CLOSE_WAIT\\|LAST_ACK\\|LISTEN\\|CLOSING\\|UNKNOWN"';
- let cmd = 'netstat -natv | grep "tcp4\\|tcp6\\|udp4\\|udp6"';
+ let cmd = 'netstat -natvln | grep "tcp4\\|tcp6\\|udp4\\|udp6"';
const states = 'ESTABLISHED|SYN_SENT|SYN_RECV|FIN_WAIT1|FIN_WAIT2|TIME_WAIT|CLOSE|CLOSE_WAIT|LAST_ACK|LISTEN|CLOSING|UNKNOWN';
exec(cmd, { maxBuffer: 1024 * 20000 }, function (error, stdout) {
if (!error) {