inetChecksite() fix timeout
This commit is contained in:
parent
55bc6a2066
commit
754a4a0b88
@ -90,6 +90,7 @@ For major (breaking) changes - **version 4, 3 and 2** - see end of page.
|
|||||||
|
|
||||||
| Version | Date | Comment |
|
| Version | Date | Comment |
|
||||||
| ------- | ---------- | --------------------------------------------------------------------------------------------------- |
|
| ------- | ---------- | --------------------------------------------------------------------------------------------------- |
|
||||||
|
| 5.26.1 | 2025-05-22 | `inetChecksite()` fix timeout |
|
||||||
| 5.26.0 | 2025-05-21 | `getStatic()` added audio, usb, bluetooth, printer |
|
| 5.26.0 | 2025-05-21 | `getStatic()` added audio, usb, bluetooth, printer |
|
||||||
| 5.25.11 | 2025-01-11 | `docs` updated |
|
| 5.25.11 | 2025-01-11 | `docs` updated |
|
||||||
| 5.25.10 | 2025-01-10 | `graphics()` improvement Raspberry Ubuntu |
|
| 5.25.10 | 2025-01-10 | `graphics()` improvement Raspberry Ubuntu |
|
||||||
|
|||||||
@ -57,6 +57,11 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<th scope="row">5.26.1</th>
|
||||||
|
<td>2024-05-22</td>
|
||||||
|
<td><span class="code">inetChecksite()</span> fix timeout</td>
|
||||||
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row">5.26.0</th>
|
<th scope="row">5.26.0</th>
|
||||||
<td>2024-05-21</td>
|
<td>2024-05-21</td>
|
||||||
|
|||||||
@ -170,7 +170,7 @@
|
|||||||
<img class="logo" src="assets/logo.png" alt="logo">
|
<img class="logo" src="assets/logo.png" alt="logo">
|
||||||
<div class="title">systeminformation</div>
|
<div class="title">systeminformation</div>
|
||||||
<div class="subtitle"><span id="typed"></span> </div>
|
<div class="subtitle"><span id="typed"></span> </div>
|
||||||
3<div class="version">New Version: <span id="version">5.26.0</span></div>
|
3<div class="version">New Version: <span id="version">5.26.1</span></div>
|
||||||
<button class="btn btn-light" onclick="location.href='https://github.com/sebhildebrandt/systeminformation'">View on Github <i class=" fab fa-github"></i></button>
|
<button class="btn btn-light" onclick="location.href='https://github.com/sebhildebrandt/systeminformation'">View on Github <i class=" fab fa-github"></i></button>
|
||||||
</div>
|
</div>
|
||||||
<div class="down">
|
<div class="down">
|
||||||
@ -212,7 +212,7 @@
|
|||||||
<div class="title">Downloads last month</div>
|
<div class="title">Downloads last month</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-xl-4 col-lg-4 col-md-4 col-12">
|
<div class="col-xl-4 col-lg-4 col-md-4 col-12">
|
||||||
<div class="numbers">797</div>
|
<div class="numbers">845</div>
|
||||||
<div class="title">Dependents</div>
|
<div class="title">Dependents</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -425,7 +425,8 @@ function graphics(callback) {
|
|||||||
options.stdio = ['pipe', 'pipe', 'ignore'];
|
options.stdio = ['pipe', 'pipe', 'ignore'];
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
const res = execSync(cmd, options).toString();
|
const sanitized = util.sanitizeShellString(cmd);
|
||||||
|
const res = execSync(sanitized, options).toString();
|
||||||
return res;
|
return res;
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
util.noop();
|
util.noop();
|
||||||
|
|||||||
5
lib/index.d.ts
vendored
5
lib/index.d.ts
vendored
@ -991,8 +991,11 @@ export function diskLayout(cb?: (data: Systeminformation.DiskLayoutData[]) => an
|
|||||||
|
|
||||||
export function networkInterfaceDefault(cb?: (data: string) => any): Promise<string>;
|
export function networkInterfaceDefault(cb?: (data: string) => any): Promise<string>;
|
||||||
export function networkGatewayDefault(cb?: (data: string) => any): Promise<string>;
|
export function networkGatewayDefault(cb?: (data: string) => any): Promise<string>;
|
||||||
|
export function networkInterfaces(): Promise<Systeminformation.NetworkInterfacesData[]>;
|
||||||
|
export function networkInterfaces(defaultString: 'default'): Promise<Systeminformation.NetworkInterfacesData>;
|
||||||
|
export function networkInterfaces(rescan: boolean): Promise<Systeminformation.NetworkInterfacesData[]>;
|
||||||
export function networkInterfaces(
|
export function networkInterfaces(
|
||||||
cb?:
|
cb:
|
||||||
| ((data: Systeminformation.NetworkInterfacesData[] | Systeminformation.NetworkInterfacesData) => any)
|
| ((data: Systeminformation.NetworkInterfacesData[] | Systeminformation.NetworkInterfacesData) => any)
|
||||||
| boolean
|
| boolean
|
||||||
| string,
|
| string,
|
||||||
|
|||||||
@ -2538,7 +2538,7 @@ function checkWebsite(url, timeout = 5000) {
|
|||||||
});
|
});
|
||||||
})
|
})
|
||||||
.setTimeout(timeout, () => {
|
.setTimeout(timeout, () => {
|
||||||
request.close();
|
request.destroy();
|
||||||
resolve({
|
resolve({
|
||||||
url,
|
url,
|
||||||
statusCode: 408,
|
statusCode: 408,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user