xshell 1.2.87 → 1.2.88

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/package.json +1 -1
  2. package/server.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xshell",
3
- "version": "1.2.87",
3
+ "version": "1.2.88",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "bin": {
package/server.js CHANGED
@@ -450,7 +450,7 @@ export class Server {
450
450
  }
451
451
  format_ua(headers) {
452
452
  const { rtt, 'device-memory': memory } = headers;
453
- const { device, os, browser } = UAParser(headers).withClientHints();
453
+ const { device, os, browser } = UAParser({ ...headers }).withClientHints();
454
454
  const vendor = device.vendor?.toLowerCase();
455
455
  const model = device.model?.toLowerCase();
456
456
  const osname = os.name?.toLowerCase();