steamutils 1.5.55 → 1.5.56
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/.idea/gbrowser_project.xml +15 -0
- package/.idea/git_toolbox_blame.xml +6 -0
- package/.idea/git_toolbox_prj.xml +15 -0
- package/.idea/inspectionProfiles/Project_Default.xml +6 -0
- package/.idea/jsLinters/eslint.xml +6 -0
- package/.idea/prettier.xml +1 -0
- package/SteamClient.js +3159 -3159
- package/_steamproto.js +56 -56
- package/const.js +582 -582
- package/full_steamproto.js +2 -7
- package/index.js +8783 -8783
- package/package.json +1 -1
- package/parse_html.js +61 -0
- package/race.js +2241 -0
- package/remote.js +2503 -2503
- package/steamproto.js +57 -57
- package/utils.js +1311 -1311
package/full_steamproto.js
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
import path from "path";
|
2
2
|
import { fileURLToPath } from "url";
|
3
3
|
import Protobuf from "protobufjs";
|
4
|
-
import gpf from "google-proto-files";
|
5
4
|
|
6
5
|
const __filename = fileURLToPath(import.meta.url);
|
7
6
|
const __dirname = path.dirname(__filename);
|
@@ -12,14 +11,10 @@ export class SteamProto {
|
|
12
11
|
}
|
13
12
|
|
14
13
|
toProto() {
|
15
|
-
const
|
16
|
-
|
17
|
-
const descriptorPath = gpf.getProtoPath("protobuf/descriptor.proto");
|
18
|
-
|
19
|
-
const root = new Protobuf.Root().loadSync([descriptorPath, localProto], {
|
14
|
+
const root = new Protobuf.Root().loadSync(path.join(`${__dirname}/protos/`, this._proto.filename), {
|
20
15
|
keepCase: true,
|
21
16
|
});
|
22
|
-
return root
|
17
|
+
return root[this._proto.name];
|
23
18
|
}
|
24
19
|
|
25
20
|
protoEncode(obj) {
|