@studentsphere/ots-provider-wigor 2.0.0 → 2.0.1

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.
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { BaseTimetableProvider, } from "@studentsphere/ots-core";
2
- import { CD_SCHOOLS, CD_SCHOOLS_TIMETABLE_ENDPOINT, IGENSIA_SCHOOLS, IGENSIA_SCHOOLS_TIMETABLE_ENDPOINT, LOGIN_SERVER_ENDPOINT, } from "@/constants";
3
- import { SCHOOLS_DATA } from "@/schools";
2
+ import { CD_SCHOOLS, CD_SCHOOLS_TIMETABLE_ENDPOINT, IGENSIA_SCHOOLS, IGENSIA_SCHOOLS_TIMETABLE_ENDPOINT, LOGIN_SERVER_ENDPOINT, } from "./constants";
3
+ import { SCHOOLS_DATA } from "./schools";
4
4
  const getScheduleServer = (schoolId) => {
5
5
  if (schoolId && CD_SCHOOLS.includes(schoolId)) {
6
6
  return CD_SCHOOLS_TIMETABLE_ENDPOINT;
package/dist/utils.js CHANGED
@@ -1,4 +1,4 @@
1
- import { CD_SCHOOLS, CD_SCHOOLS_TIMETABLE_ENDPOINT, IGENSIA_SCHOOLS_TIMETABLE_ENDPOINT, } from "@/constants";
1
+ import { CD_SCHOOLS, CD_SCHOOLS_TIMETABLE_ENDPOINT, IGENSIA_SCHOOLS_TIMETABLE_ENDPOINT, } from "./constants";
2
2
  /**
3
3
  * Determines the schedule server URL based on the school ID.
4
4
  * @param schoolId The school ID.
package/package.json CHANGED
@@ -1,64 +1,63 @@
1
1
  {
2
- "name": "@studentsphere/ots-provider-wigor",
3
- "version": "2.0.0",
4
- "type": "module",
5
- "description": "Wigor Timetable implementation of a Open Timetable Scrapper Provider",
6
- "author": {
7
- "name": "StudentSphere",
8
- "email": "contact@studentsphere.app",
9
- "url": "https://studentsphere.app"
10
- },
11
- "social": {
12
- "x": "https://x.com/studentsphere-app",
13
- "linkedin": "https://linkedin.com/in/studentsphere-app",
14
- "discord": "https://discord.gg/n4r6QrhvYj"
15
- },
16
- "license": "MIT",
17
- "homepage": "https://github.com/studentsphere-app/ots-provider-wigor#readme",
18
- "repository": {
19
- "type": "git",
20
- "url": "git+https://github.com/studentsphere-app/ots-provider-wigor.git"
21
- },
22
- "bugs": {
23
- "url": "https://github.com/studentsphere-app/ots-provider-wigor/issues"
24
- },
25
- "keywords": [
26
- "ots",
27
- "provider",
28
- "wigor",
29
- "studentsphere",
30
- "timetable"
31
- ],
32
- "main": "dist/index.js",
33
- "types": "dist/index.d.ts",
34
- "files": [
35
- "dist",
36
- "src/index.ts"
37
- ],
38
- "publishConfig": {
39
- "access": "public"
40
- },
41
- "exports": {
42
- ".": {
43
- "types": "./dist/index.d.ts",
44
- "source": "./src/index.ts",
45
- "import": "./dist/index.js",
46
- "default": "./dist/index.js"
47
- }
48
- },
49
- "scripts": {
50
- "build": "tsc -b",
51
- "watch": "tsc -b -w",
52
- "lint": "biome check .",
53
- "lint:fix": "biome check --write .",
54
- "format": "biome format --write .",
55
- "prepublishOnly": "npm run build"
56
- },
57
- "peerDependencies": {
58
- "@studentsphere/ots-core": "^1.0.1"
59
- },
60
- "devDependencies": {
61
- "@biomejs/biome": "^2.4.4",
62
- "typescript": "^5.0.0"
63
- }
64
- }
2
+ "name": "@studentsphere/ots-provider-wigor",
3
+ "version": "2.0.1",
4
+ "type": "module",
5
+ "description": "Wigor Timetable implementation of a Open Timetable Scrapper Provider",
6
+ "author": {
7
+ "name": "StudentSphere",
8
+ "email": "contact@studentsphere.app",
9
+ "url": "https://studentsphere.app"
10
+ },
11
+ "social": {
12
+ "x": "https://x.com/studentsphere-app",
13
+ "linkedin": "https://linkedin.com/in/studentsphere-app",
14
+ "discord": "https://discord.gg/n4r6QrhvYj"
15
+ },
16
+ "license": "MIT",
17
+ "homepage": "https://github.com/studentsphere-app/ots-provider-wigor#readme",
18
+ "repository": {
19
+ "type": "git",
20
+ "url": "git+https://github.com/studentsphere-app/ots-provider-wigor.git"
21
+ },
22
+ "bugs": {
23
+ "url": "https://github.com/studentsphere-app/ots-provider-wigor/issues"
24
+ },
25
+ "keywords": [
26
+ "ots",
27
+ "provider",
28
+ "wigor",
29
+ "studentsphere",
30
+ "timetable"
31
+ ],
32
+ "main": "dist/index.js",
33
+ "types": "dist/index.d.ts",
34
+ "files": [
35
+ "dist",
36
+ "src/index.ts"
37
+ ],
38
+ "publishConfig": {
39
+ "access": "public"
40
+ },
41
+ "exports": {
42
+ ".": {
43
+ "types": "./dist/index.d.ts",
44
+ "source": "./src/index.ts",
45
+ "import": "./dist/index.js",
46
+ "default": "./dist/index.js"
47
+ }
48
+ },
49
+ "peerDependencies": {
50
+ "@studentsphere/ots-core": "^1.0.1"
51
+ },
52
+ "devDependencies": {
53
+ "@biomejs/biome": "^2.4.4",
54
+ "typescript": "^5.0.0"
55
+ },
56
+ "scripts": {
57
+ "build": "tsc -b",
58
+ "watch": "tsc -b -w",
59
+ "lint": "biome check .",
60
+ "lint:fix": "biome check --write .",
61
+ "format": "biome format --write ."
62
+ }
63
+ }
package/src/index.ts CHANGED
@@ -10,9 +10,9 @@ import {
10
10
  IGENSIA_SCHOOLS,
11
11
  IGENSIA_SCHOOLS_TIMETABLE_ENDPOINT,
12
12
  LOGIN_SERVER_ENDPOINT,
13
- } from "@/constants";
14
- import { SCHOOLS_DATA } from "@/schools";
15
- import type { WigorEventJSON } from "@/types";
13
+ } from "./constants";
14
+ import { SCHOOLS_DATA } from "./schools";
15
+ import type { WigorEventJSON } from "./types";
16
16
 
17
17
  const getScheduleServer = (schoolId?: string) => {
18
18
  if (schoolId && CD_SCHOOLS.includes(schoolId)) {