mirror of
https://github.com/DoctorMcKay/node-steamcommunity.git
synced 2025-02-15 21:10:18 +08:00
Added packageName and packageVersion properties
This commit is contained in:
parent
25dfa2cdd2
commit
4ec372b44b
4
index.js
4
index.js
@ -6,6 +6,7 @@ const Util = require('util');
|
|||||||
const xml2js = require('xml2js');
|
const xml2js = require('xml2js');
|
||||||
|
|
||||||
const Helpers = require('./components/helpers.js');
|
const Helpers = require('./components/helpers.js');
|
||||||
|
const Package = require('./package.json');
|
||||||
|
|
||||||
const USER_AGENT = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36';
|
const USER_AGENT = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36';
|
||||||
|
|
||||||
@ -31,6 +32,9 @@ SteamCommunity.EFriendRelationship = require('./resources/EFriendRelationship.js
|
|||||||
function SteamCommunity(options) {
|
function SteamCommunity(options) {
|
||||||
options = options || {};
|
options = options || {};
|
||||||
|
|
||||||
|
this.packageName = Package.name;
|
||||||
|
this.packageVersion = Package.version;
|
||||||
|
|
||||||
this._jar = new StdLib.HTTP.CookieJar();
|
this._jar = new StdLib.HTTP.CookieJar();
|
||||||
this._captchaGid = -1;
|
this._captchaGid = -1;
|
||||||
this._httpRequestID = 0;
|
this._httpRequestID = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user