reddy-api-srm 1.0.2 → 1.0.3

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.
@@ -7,7 +7,7 @@ exports.fetchUserInfo = fetchUserInfo;
7
7
  const axios_1 = __importDefault(require("axios"));
8
8
  async function fetchUserInfo(cookie) {
9
9
  try {
10
- const request = await (0, axios_1.default)("https://academia.srmist.edu.in/srm_university/academia-academic-services/page/My_Time_Table_Attendance", {
10
+ const request = await (0, axios_1.default)("https://academia.srmist.edu.in/srm_university/academia-academic-services/page/My_Time_Table_2023_24", {
11
11
  headers: {
12
12
  accept: "*/*",
13
13
  "accept-language": "en-US,en;q=0.9",
@@ -27,8 +27,9 @@ async function calendarDynamicUrl() {
27
27
  return dynamicUrl;
28
28
  }
29
29
  async function courseDynamicUrl() {
30
- // New endpoint that uses batch-based timetable
31
- const baseUrl = "https://academia.srmist.edu.in/srm_university/academia-academic-services/page/My_Time_Table_Attendance";
30
+ // My_Time_Table_2023_24 serves the current semester timetable data
31
+ // Note: Despite the name, this endpoint returns the current academic year data
32
+ const baseUrl = "https://academia.srmist.edu.in/srm_university/academia-academic-services/page/My_Time_Table_2023_24";
32
33
  return baseUrl;
33
34
  }
34
35
  //# sourceMappingURL=dynamicUrl.js.map
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "reddy-api-srm",
3
3
  "description": "SRMIST KTR Academia portal",
4
- "version": "1.0.2",
4
+ "version": "1.0.3",
5
5
  "main": "dist/src/index.js",
6
6
  "types": "dist/src/index.d.ts",
7
7
  "exports": {