Commit Graph

39 Commits

Author SHA1 Message Date
Erik Hellman 8832990524 Moved to libs directory 2021-10-03 11:32:39 +02:00
Kajetan Kazimierczak e54ed25d9f
fix: 🐛 Ny version av curriculum (#148) 2021-09-18 23:24:09 +02:00
Andreas Eriksson befb073a32
feat: 🎸 Remove all obsolete login obstacles (#146) 2021-09-12 14:52:33 +02:00
Viktor Sarström 5017295206 Added npm dev-run, also fixed getTopology error 2021-09-09 15:42:27 +02:00
Andreas Eriksson ed053c52f9 Use base-64 npm package for encoding
Should work in Node and RN
2021-09-08 21:46:05 +02:00
Johan Öbrink e24a9b3c5e
feat: 🎸 Curriculum as peer dependency (#122) 2021-04-26 10:40:13 +02:00
Johan Öbrink 9dcdf78515
feat: 🎸 Added language support (#121)
* feat: 🎸 Added language support

BREAKING CHANGE: 🧨 getTimetable requires language
2021-04-26 10:23:02 +02:00
Johan Öbrink 0a02ffa04d
feat: 🎸 Updated curriculum and fake data with new codes (#117) 2021-04-13 15:36:33 +02:00
Johan Öbrink 504503f7a0
feat: 🎸 Names from curriculum (#116)
* feat: 🎸 Names from curriculum

* feat: 🎸 Updated fake data with new info
2021-04-13 14:15:01 +02:00
Rickard Natt och Dag 19fd3ddd0e
chore: add prettier (#101) 2021-03-30 17:21:18 +02:00
Andreas Eriksson e1849d5149
Feat/improve local dev experience (#97)
* Make it possible to set SessionCookie manually

* Add helper classes to make it possible to set a proxy agent on fetch

To attach a proxy when developing locally (to see requests and responses)

* Add a devrun.js for local testing

 - Support for proxy
 - Saves sessionCoookie to a file and tries to use it again

* Files to work with VisualStudio Code

- Debug
- Make typescript watch in background and build

* Fix so cookies work

* Always generate source maps

* Use devrun in debug

* Add linting to all files while developing

* Fixes to file after linting

* Fix failing test in api.test

* Add check that login was successful to setSessionCookie
2021-03-28 20:56:04 +02:00
Johan Öbrink c62dab9e2e
Rebuilt session handling and login (#78)
* fix: 🐛 Repaired login

BREAKING CHANGE: 🧨 Cookie and Session handling reworked
2021-03-11 09:58:55 +01:00
Johan Öbrink a5dfb704f4
feat: Ombyggd parsning av nyhetsbrev (#65)
* feat: 🎸 Ombyggd parsning av nyhetsbrev
2021-02-14 16:40:36 +01:00
Johan Öbrink 325f921c75 0.15.0 2021-01-15 09:43:18 +01:00
Johan Öbrink 28e04a9808 0.14.1 2021-01-07 09:26:53 +01:00
Johan Öbrink 23ce09510f 0.14.0 2021-01-06 23:47:32 +01:00
Johan Öbrink 822e3a32e2 0.13.0 2021-01-05 14:13:36 +01:00
Johan Öbrink 6edb98c974 0.12.0 2021-01-04 19:03:47 +01:00
Johan Öbrink d7e4981822 0.11.0 2021-01-03 13:09:32 +01:00
Johan Öbrink e41f0bf435
feat: 🎸 Replaced Moment with Luxon (#30)
* feat: 🎸 Replaced Moment with Luxon

Replaced Moment with Luxon since the former is deprecated for various
reasons. Also updated types to be fully serialized.

BREAKING CHANGE: 🧨 Change to types (moment -> strings) and api.getSchedule (moment ->
luxon.DateTime)
2021-01-03 13:08:53 +01:00
Johan Öbrink 40166f3280 0.10.0 2020-12-30 14:41:15 +01:00
Johan Öbrink 6525a9441a
Fetch wrapper (#29)
* feat: 🎸 Added option of passing in a recorder for fetch
2020-12-30 14:39:49 +01:00
Johan Öbrink da20725b70 0.9.0 2020-12-21 20:09:58 +01:00
Johan Öbrink 18434e0cde 0.8.0 2020-12-21 19:49:58 +01:00
Johan Öbrink 2da522f3e4 0.7.0 2020-12-21 18:56:25 +01:00
Johan Öbrink 17db6cc152 0.6.0 2020-12-21 17:02:02 +01:00
Johan Öbrink 02bf08a12e 0.5.0 2020-12-21 16:32:47 +01:00
Johan Öbrink 4f6fa4e78f 0.4.1 2020-12-21 16:13:51 +01:00
Johan Öbrink fd3e40cfcd 0.4.0 2020-12-21 16:01:31 +01:00
Johan Öbrink 53d42de62c
feat: 🎸 Loads schedule (#16)
* feat: 🎸 Loads schedule

 Closes: #13

* feat: 🎸 Made running code from node easier

* feat: 🎸 News

 Closes: #8

* Accurate method calls and some parsing

* fix: 🎸 Calendar and classmates are now called and parsed correctly
2020-12-21 15:59:49 +01:00
Johan Öbrink 5996f1de8f 0.3.0 2020-12-21 10:32:33 +01:00
Johan Öbrink 9e3e176198 0.2.1 2020-12-21 09:57:21 +01:00
Johan Öbrink e934950470 fix: 🐛 Build before publish 2020-12-21 09:57:03 +01:00
Johan Öbrink d76e788b80 0.2.0 2020-12-21 09:53:12 +01:00
Johan Öbrink 6eed16547d
Login token, logout method and set session cookie (#6)
* feat: 🎸 Exposes token on login status check

 Closes: #3

* feat: 🎸 Logout and set session cookie

Added logout method and logout event. Also added method for setting
sessionCookie from memory

 Closes: #4, #5
2020-12-21 09:51:51 +01:00
Johan Öbrink 3cd753bc28 Setting up package 2020-12-20 23:22:46 +01:00
Johan Öbrink 0e4acba776 feat: 🎸 Possibly first working version 2020-12-20 23:02:05 +01:00
Johan Öbrink 084e961965 Trying out axios 2020-12-20 20:58:52 +01:00
Johan Öbrink acf4828bdf Initial commit 2020-12-19 13:37:45 +01:00