finki-auth 1.4.0 → 1.5.0

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,14 +2,17 @@ export declare const SERVICE_URLS: {
2
2
  readonly cas: "https://cas.finki.ukim.mk";
3
3
  readonly courses: "https://courses.finki.ukim.mk";
4
4
  readonly diplomas: "http://diplomski.finki.ukim.mk";
5
+ readonly old_courses: "https://oldcourses.finki.ukim.mk";
5
6
  };
6
7
  export declare const SERVICE_LOGIN_URLS: {
7
8
  readonly cas: "https://cas.finki.ukim.mk/cas/login";
8
9
  readonly courses: "https://courses.finki.ukim.mk/login/index.php";
9
10
  readonly diplomas: "http://diplomski.finki.ukim.mk/Account/LoginCAS";
11
+ readonly old_courses: "https://oldcourses.finki.ukim.mk/login/index.php";
10
12
  };
11
13
  export declare const SERVICE_USER_ELEMENT_SELECTORS: {
12
14
  readonly cas: "";
13
- readonly courses: "span.usertext.mr-1";
15
+ readonly courses: "span.usertext.me-1";
14
16
  readonly diplomas: "#logoutForm > ul > li:nth-child(1) > a";
17
+ readonly old_courses: "span.usertext.mr-1";
15
18
  };
package/dist/constants.js CHANGED
@@ -3,14 +3,17 @@ export const SERVICE_URLS = {
3
3
  [Service.CAS]: 'https://cas.finki.ukim.mk',
4
4
  [Service.COURSES]: 'https://courses.finki.ukim.mk',
5
5
  [Service.DIPLOMAS]: 'http://diplomski.finki.ukim.mk',
6
+ [Service.OLD_COURSES]: 'https://oldcourses.finki.ukim.mk',
6
7
  };
7
8
  export const SERVICE_LOGIN_URLS = {
8
9
  [Service.CAS]: 'https://cas.finki.ukim.mk/cas/login',
9
10
  [Service.COURSES]: 'https://courses.finki.ukim.mk/login/index.php',
10
11
  [Service.DIPLOMAS]: 'http://diplomski.finki.ukim.mk/Account/LoginCAS',
12
+ [Service.OLD_COURSES]: 'https://oldcourses.finki.ukim.mk/login/index.php',
11
13
  };
12
14
  export const SERVICE_USER_ELEMENT_SELECTORS = {
13
15
  [Service.CAS]: '',
14
- [Service.COURSES]: 'span.usertext.mr-1',
16
+ [Service.COURSES]: 'span.usertext.me-1',
15
17
  [Service.DIPLOMAS]: '#logoutForm > ul > li:nth-child(1) > a',
18
+ [Service.OLD_COURSES]: 'span.usertext.mr-1',
16
19
  };
@@ -2,6 +2,7 @@ import { z } from 'zod';
2
2
  export declare enum Service {
3
3
  CAS = "cas",
4
4
  COURSES = "courses",
5
- DIPLOMAS = "diplomas"
5
+ DIPLOMAS = "diplomas",
6
+ OLD_COURSES = "old_courses"
6
7
  }
7
- export declare const ServiceSchema: z.ZodNativeEnum<typeof Service>;
8
+ export declare const ServiceSchema: z.ZodEnum<typeof Service>;
@@ -4,5 +4,6 @@ export var Service;
4
4
  Service["CAS"] = "cas";
5
5
  Service["COURSES"] = "courses";
6
6
  Service["DIPLOMAS"] = "diplomas";
7
+ Service["OLD_COURSES"] = "old_courses";
7
8
  })(Service || (Service = {}));
8
- export const ServiceSchema = z.nativeEnum(Service);
9
+ export const ServiceSchema = z.enum(Service);
package/package.json CHANGED
@@ -13,30 +13,29 @@
13
13
  }
14
14
  },
15
15
  "dependencies": {
16
- "axios": "^1.8.4",
17
- "axios-cookiejar-support": "^6.0.0",
18
- "jsdom": "^26.0.0",
19
- "tough-cookie": "^5.1.2",
20
- "zod": "^3.25.31"
16
+ "axios": "^1.12.2",
17
+ "axios-cookiejar-support": "^6.0.4",
18
+ "jsdom": "^27.0.0",
19
+ "tough-cookie": "^6.0.0",
20
+ "zod": "^4.1.12"
21
21
  },
22
22
  "description": "Authentication for FCSE services",
23
23
  "devDependencies": {
24
- "@commitlint/cli": "^19.8.0",
25
- "@commitlint/config-conventional": "^19.8.1",
24
+ "@commitlint/cli": "^20.1.0",
25
+ "@commitlint/config-conventional": "^20.0.0",
26
26
  "@semantic-release/changelog": "^6.0.3",
27
27
  "@semantic-release/git": "^10.0.1",
28
- "@types/jsdom": "^21.1.7",
29
- "@types/superagent": "^8.1.9",
28
+ "@types/jsdom": "^27.0.0",
30
29
  "commitizen": "^4.3.1",
31
30
  "cz-conventional-changelog": "^3.3.0",
32
- "dotenv": "^16.5.0",
33
- "eslint": "^9.24.0",
34
- "eslint-config-imperium": "^2.2.0",
31
+ "dotenv": "^17.2.3",
32
+ "eslint": "^9.37.0",
33
+ "eslint-config-imperium": "^2.7.0",
35
34
  "husky": "^9.1.7",
36
35
  "rimraf": "^6.0.1",
37
- "semantic-release": "^24.2.3",
38
- "typescript": "~5.8.3",
39
- "vitest": "^3.1.1"
36
+ "semantic-release": "^24.2.9",
37
+ "typescript": "~5.9.3",
38
+ "vitest": "^3.2.4"
40
39
  },
41
40
  "engines": {
42
41
  "node": "^20 || ^22 || ^24"
@@ -73,5 +72,5 @@
73
72
  },
74
73
  "type": "module",
75
74
  "types": "dist/index.d.ts",
76
- "version": "1.4.0"
75
+ "version": "1.5.0"
77
76
  }