Merge pull request #30 from MillenniumEarl/deepsource-transform-67d15f45
Format code with prettierpull/32/head
commit
9c96218f1c
|
@ -1,4 +1,4 @@
|
||||||
'use strict';
|
"use strict";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class containing the data of the user currently connected to the F95Zone platform.
|
* Class containing the data of the user currently connected to the F95Zone platform.
|
||||||
|
@ -9,7 +9,7 @@ class UserData {
|
||||||
* User username.
|
* User username.
|
||||||
* @type String
|
* @type String
|
||||||
*/
|
*/
|
||||||
this.username = '';
|
this.username = "";
|
||||||
/**
|
/**
|
||||||
* Path to the user's profile picture.
|
* Path to the user's profile picture.
|
||||||
* @type String
|
* @type String
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
'use strict';
|
"use strict";
|
||||||
|
|
||||||
// Core modules
|
// Core modules
|
||||||
const { join } = require('path');
|
const { join } = require("path");
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class containing variables shared between modules.
|
* Class containing variables shared between modules.
|
||||||
|
@ -37,12 +37,12 @@ class Shared {
|
||||||
* Wait instruction for the browser created by puppeteer.
|
* Wait instruction for the browser created by puppeteer.
|
||||||
* @type String
|
* @type String
|
||||||
*/
|
*/
|
||||||
static WAIT_STATEMENT = 'domcontentloaded';
|
static WAIT_STATEMENT = "domcontentloaded";
|
||||||
/**
|
/**
|
||||||
* Path to the directory to save the cache generated by the API.
|
* Path to the directory to save the cache generated by the API.
|
||||||
* @type String
|
* @type String
|
||||||
*/
|
*/
|
||||||
static _cacheDir = './f95cache';
|
static _cacheDir = "./f95cache";
|
||||||
/**
|
/**
|
||||||
* If true, it opens a new browser for each request to
|
* If true, it opens a new browser for each request to
|
||||||
* the F95Zone platform, otherwise it reuses the same.
|
* the F95Zone platform, otherwise it reuses the same.
|
||||||
|
@ -99,21 +99,21 @@ class Shared {
|
||||||
* @returns {String}
|
* @returns {String}
|
||||||
*/
|
*/
|
||||||
static get cookiesCachePath() {
|
static get cookiesCachePath() {
|
||||||
return join(this._cacheDir, 'cookies.json');
|
return join(this._cacheDir, "cookies.json");
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* Path to the game engine cache.
|
* Path to the game engine cache.
|
||||||
* @returns {String}
|
* @returns {String}
|
||||||
*/
|
*/
|
||||||
static get enginesCachePath() {
|
static get enginesCachePath() {
|
||||||
return join(this._cacheDir, 'engines.json');
|
return join(this._cacheDir, "engines.json");
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* Path to the cache of possible game states.
|
* Path to the cache of possible game states.
|
||||||
* @returns {String}
|
* @returns {String}
|
||||||
*/
|
*/
|
||||||
static get statusesCachePath() {
|
static get statusesCachePath() {
|
||||||
return join(this._cacheDir, 'statuses.json');
|
return join(this._cacheDir, "statuses.json");
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* If true, it opens a new browser for each request
|
* If true, it opens a new browser for each request
|
||||||
|
|
Loading…
Reference in New Issue