rubjs 2.8.1 → 2.8.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rubjs",
3
- "version": "2.8.1",
3
+ "version": "2.8.3",
4
4
  "main": "rubjs/index.js",
5
5
  "types": "rubjs/index.d.ts",
6
6
  "keywords": [
@@ -20,7 +20,7 @@ const systemVersions = {
20
20
  X11: "UNIX",
21
21
  Linux: "Linux",
22
22
  };
23
- function getBrowser(userAgent, langCode, appVersion, ...args) {
23
+ function getBrowser(userAgent, langCode, appVersion) {
24
24
  return __awaiter(this, void 0, void 0, function* () {
25
25
  var _a;
26
26
  const deviceModelMatch = userAgent
@@ -69,7 +69,7 @@ function start() {
69
69
  auth: this.auth,
70
70
  guid: response.user.user_guid,
71
71
  agent: this.userAgent,
72
- private_key: this.privateKey
72
+ private_key: this.privateKey,
73
73
  });
74
74
  yield this.registerDevice();
75
75
  break;
@@ -349,6 +349,7 @@ class Network {
349
349
  try {
350
350
  const config = {
351
351
  headers: chunk_headers,
352
+ responseType: "arraybuffer",
352
353
  };
353
354
  const response = yield axios_1.default.post(`${base_url}/GetFile.ashx`, {}, config);
354
355
  return Buffer.from(response.data);