fca-orion-api 1.0.1 → 1.0.2

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.
@@ -2,5 +2,5 @@
2
2
  "HasProblem": true,
3
3
  "ForceUpdate": true,
4
4
  "Problem": "Test",
5
- "Version": "1.0.1"
5
+ "Version": "1.0.2"
6
6
  }
package/index.js CHANGED
@@ -23,13 +23,13 @@ module.exports = {
23
23
  };
24
24
  `;
25
25
 
26
- const configPath = '/../../config.js';
26
+ const configPath = 'config.js';
27
27
 
28
28
  if (!fs.existsSync(configPath)) {
29
29
  fs.writeFileSync(configPath, configContent);
30
30
  }
31
31
 
32
- const { MainName } = require(configPath);
32
+ const { MainName } = "/../../config.js";
33
33
  const InstantUpdate = require('./instantUpdate.js');
34
34
 
35
35
  function setOptions(globalOptions, options) {
@@ -121,7 +121,7 @@ function buildAPI(globalOptions, html, jar) {
121
121
 
122
122
  const userID = maybeCookie[0].cookieString().split("=")[1].toString();
123
123
  const i_userID = objCookie.i_user || null;
124
- const localVersion = require('../package.json').version;
124
+ const localVersion = require('./package.json').version;
125
125
  console.log(gradient('orange', 'yellow')(`${MainName || "[ FCA-ORION ]"}`) + chalk.white(` Logged in as ${userID}`));
126
126
  console.log(gradient('orange', 'yellow')(`${MainName || "[ FCA-ORION ]"}`) + chalk.white(` The version of FCA-ORION you currently have is`) + chalk.greenBright(` ${localVersion}`));
127
127
 
@@ -414,4 +414,4 @@ function login(loginData, options, callback) {
414
414
  }
415
415
 
416
416
  InstantUpdate();
417
- module.exports = login;
417
+ module.exports = login;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fca-orion-api",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -22,9 +22,13 @@
22
22
  "author": "Avery, David, Maude, Benjamin, UIRI",
23
23
  "license": "MIT",
24
24
  "dependencies": {
25
+ "chalk": "^4.1.2",
25
26
  "got": "^11.8.6",
26
27
  "gradient-string": "^2.0.2",
28
+ "https-proxy-agent": "^7.0.2",
29
+ "mqtt": "^4.3.7",
27
30
  "npmlog": "^1.2.0",
28
- "request": "^2.53.0"
31
+ "request": "^2.53.0",
32
+ "websocket-stream": "^5.5.2"
29
33
  }
30
34
  }