@eso-status/live-services 1.0.2 → 1.0.6

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.
@@ -14,7 +14,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
14
14
  function verb(n) { return function (v) { return step([n, v]); }; }
15
15
  function step(op) {
16
16
  if (f) throw new TypeError("Generator is already executing.");
17
- while (_) try {
17
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
18
18
  if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
19
19
  if (y = 0, t) op = [op[0] & 2, t.value];
20
20
  switch (op[0]) {
@@ -36,8 +36,8 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
36
36
  }
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- var axios_1 = require("axios");
40
39
  var LiveServicesElement_1 = require("../classes/LiveServicesElement");
40
+ var axios = require('axios');
41
41
  /**
42
42
  * Connector used to get data from https://live-services.elderscrollsonline.com/status/realms
43
43
  */
@@ -57,7 +57,7 @@ var LiveServicesConnector = /** @class */ (function () {
57
57
  var response;
58
58
  return __generator(this, function (_a) {
59
59
  switch (_a.label) {
60
- case 0: return [4 /*yield*/, axios_1.default.get(LiveServicesConnector.url)];
60
+ case 0: return [4 /*yield*/, axios.get(LiveServicesConnector.url)];
61
61
  case 1:
62
62
  response = _a.sent();
63
63
  if ((response === null || response === void 0 ? void 0 : response.status) !== 200) {
package/lib/index.js CHANGED
@@ -14,7 +14,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
14
14
  function verb(n) { return function (v) { return step([n, v]); }; }
15
15
  function step(op) {
16
16
  if (f) throw new TypeError("Generator is already executing.");
17
- while (_) try {
17
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
18
18
  if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
19
19
  if (y = 0, t) op = [op[0] & 2, t.value];
20
20
  switch (op[0]) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eso-status/live-services",
3
- "version": "1.0.2",
3
+ "version": "1.0.6",
4
4
  "description": "Library used to get servers status of The elders scrolls Online game with https://live-services.elderscrollsonline.com/status/realms",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
@@ -27,7 +27,7 @@
27
27
  ],
28
28
  "engineStrict": true,
29
29
  "engines": {
30
- "node": "^12.22.0 || ^14.17.0 || >=16.10.0"
30
+ "node": ">=18.18.0 || >=20.0.0"
31
31
  },
32
32
  "repository": {
33
33
  "type": "git",
@@ -40,22 +40,22 @@
40
40
  },
41
41
  "homepage": "https://github.com/eso-status/live-services#readme",
42
42
  "devDependencies": {
43
- "@eso-status/types": "1.0.5",
44
- "@types/jest": "29.2.2",
45
- "@types/node": "18.11.9",
46
- "@typescript-eslint/eslint-plugin": "5.42.1",
47
- "@typescript-eslint/parser": "5.42.1",
48
- "@typescript-eslint/typescript-estree": "5.42.1",
49
- "eslint": "8.27.0",
43
+ "@eso-status/types": "1.0.6",
44
+ "@types/jest": "29.5.12",
45
+ "@types/node": "20.12.7",
46
+ "@typescript-eslint/eslint-plugin": "7.6.0",
47
+ "@typescript-eslint/parser": "7.6.0",
48
+ "@typescript-eslint/typescript-estree": "7.6.0",
49
+ "eslint": "8.57.0",
50
50
  "eslint-config-airbnb-base": "15.0.0",
51
- "eslint-plugin-import": "2.26.0",
52
- "eslint-plugin-jest": "27.1.5",
53
- "jest": "29.3.1",
54
- "nodemon": "2.0.20",
55
- "ts-jest": "29.0.3",
56
- "typescript": "4.8.4"
51
+ "eslint-plugin-import": "2.29.1",
52
+ "eslint-plugin-jest": "28.2.0",
53
+ "jest": "29.7.0",
54
+ "nodemon": "3.1.0",
55
+ "ts-jest": "29.1.2",
56
+ "typescript": "5.4.5"
57
57
  },
58
58
  "dependencies": {
59
- "axios": "1.1.3"
59
+ "axios": "1.6.8"
60
60
  }
61
61
  }
package/.npmrc DELETED
@@ -1 +0,0 @@
1
- engine-strict=true