haxball.js 3.0.0 → 3.1.0
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 +2 -2
- package/scripts/nodeify.js +1 -1
- package/src/index.js +2 -2
- package/types/index.d.ts +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "haxball.js",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1.0",
|
|
4
4
|
"description": "A powerful library for interacting with the Haxball Headless API",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"types": "types/index.d.ts",
|
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
"author": "mertushka",
|
|
21
21
|
"license": "MIT",
|
|
22
22
|
"dependencies": {
|
|
23
|
+
"@mertushka/node-datachannel": "^0.29.0",
|
|
23
24
|
"@peculiar/webcrypto": "^1.5.0",
|
|
24
25
|
"@types/haxball-headless-browser": "^0.4.0",
|
|
25
26
|
"https-proxy-agent": "^7.0.6",
|
|
26
27
|
"json5": "^2.2.3",
|
|
27
|
-
"node-datachannel": "^0.26.0",
|
|
28
28
|
"pako": "^2.1.0",
|
|
29
29
|
"ws": "^8.18.0",
|
|
30
30
|
"xhr2": "^0.2.1"
|
package/scripts/nodeify.js
CHANGED
|
@@ -148,7 +148,7 @@ const { Crypto } = require("@peculiar/webcrypto");
|
|
|
148
148
|
const { performance } = require("perf_hooks");
|
|
149
149
|
const crypto = new Crypto();
|
|
150
150
|
|
|
151
|
-
let { RTCPeerConnection, RTCIceCandidate, RTCSessionDescription } = require("node-datachannel/polyfill");
|
|
151
|
+
let { RTCPeerConnection, RTCIceCandidate, RTCSessionDescription } = require("@mertushka/node-datachannel/polyfill");
|
|
152
152
|
|
|
153
153
|
var promiseResolve;
|
|
154
154
|
var proxyAgent;
|
package/src/index.js
CHANGED
|
@@ -8,7 +8,7 @@ const { Crypto } = require("@peculiar/webcrypto");
|
|
|
8
8
|
const { performance } = require("perf_hooks");
|
|
9
9
|
const crypto = new Crypto();
|
|
10
10
|
|
|
11
|
-
let { RTCPeerConnection, RTCIceCandidate, RTCSessionDescription } = require("node-datachannel/polyfill");
|
|
11
|
+
let { RTCPeerConnection, RTCIceCandidate, RTCSessionDescription } = require("@mertushka/node-datachannel/polyfill");
|
|
12
12
|
|
|
13
13
|
var promiseResolve;
|
|
14
14
|
var proxyAgent;
|
|
@@ -32,7 +32,7 @@ const onHBLoaded = function (cb) {
|
|
|
32
32
|
/* Builded & Automated with Haxball.JS Nodeify Script */
|
|
33
33
|
|
|
34
34
|
/*
|
|
35
|
-
HaxBall
|
|
35
|
+
HaxBall © Mario Carbajal - All rights reserved.
|
|
36
36
|
8be54ed5
|
|
37
37
|
*/
|
|
38
38
|
'use strict';(function(va){function ob(){return q.Zb(this,"")}function hb(a,b){if(null==b)return null;null==b.xd&&(b.xd=va.ye++);var c;null==a.oe?a.oe={}:c=a.oe[b.xd];null==c&&(c=b.bind(a),a.oe[b.xd]=c);return c}class pb{static Bh(a){a=a.split(" ");let b=a[4];if("typ"!=a[6])throw r.s(null);return{ni:a[7],fh:b}}}class A{constructor(a,b){null==b&&(b=!1);this.j=a;this.ra=b;this.a=0}fe(){let a=new ArrayBuffer(this.a),b=new Uint8Array(this.j.buffer,this.j.byteOffset,this.a);(new Uint8Array(a)).set(b);
|