systeminformation 4.34.18 → 4.34.19

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/CHANGELOG.md CHANGED
@@ -30,6 +30,7 @@ For major (breaking) changes - version 3 and 2 see end of page.
30
30
 
31
31
  | Version | Date | Comment |
32
32
  | -------------- | -------------- | -------- |
33
+ | 4.34.19 | 2021-03-16 | `inetLatency()` `ineChecksite()` schema validation |
33
34
  | 4.34.18 | 2021-03-16 | code refactoring |
34
35
  | 4.34.17 | 2021-03-15 | `sanitizeShellString()` and other security improvements |
35
36
  | 4.34.16 | 2021-03-14 | `sanitizeShellString()` improvements |
package/lib/internet.js CHANGED
@@ -58,7 +58,7 @@ function inetChecksite(url, callback) {
58
58
  if (urlSanitized && !util.isPrototypePolluted()) {
59
59
  let t = Date.now();
60
60
  urlSanitized.__proto__.startsWith = util.stringStartWith;
61
- if (urlSanitized.startsWith('file:')) {
61
+ if (urlSanitized.startsWith('file:') || urlSanitized.startsWith('gopher:') || urlSanitized.startsWith('telnet:') || urlSanitized.startsWith('mailto:') || urlSanitized.startsWith('news:') || urlSanitized.startsWith('nntp:')) {
62
62
  if (callback) { callback(result); }
63
63
  return resolve(result);
64
64
  }
@@ -152,7 +152,7 @@ function inetLatency(host, callback) {
152
152
  }
153
153
  }
154
154
  hostSanitized.__proto__.startsWith = util.stringStartWith;
155
- if (hostSanitized.startsWith('file:')) {
155
+ if (hostSanitized.startsWith('file:') || hostSanitized.startsWith('gopher:') || hostSanitized.startsWith('telnet:') || hostSanitized.startsWith('mailto:') || hostSanitized.startsWith('news:') || hostSanitized.startsWith('nntp:')) {
156
156
  if (callback) { callback(null); }
157
157
  return resolve(null);
158
158
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "systeminformation",
3
- "version": "4.34.18",
3
+ "version": "4.34.19",
4
4
  "description": "Simple system and OS information library",
5
5
  "license": "MIT",
6
6
  "author": "Sebastian Hildebrandt <hildebrandt@plus-innovations.com> (https://plus-innovations.com)",