Ada
482ec99817
fix: get all Set-Cookie headers and strip attributes
...
ClassCharts returns two cookies on login:
- cc-session
- parent_session_credentials
Two bugs were fixed:
1. response.headers.get('set-cookie') only returns the first cookie
Fix: use getSetCookie() to get ALL Set-Cookie headers
2. authCookies was storing full Set-Cookie header values (with path,
HttpOnly, Secure attributes) which breaks the Cookie header
Fix: extract only name=value portion: h.split(';')[0].trim()
3. Cookie header join used ';' instead of '; ' (missing space)
Fix: use '; ' as per RFC 7230
2026-03-13 22:05:08 +00:00
James Cook
65ae5d4a54
chore: update lint github action
2024-11-07 17:22:07 +00:00
James Cook
35f20dc00b
chore: update github action versions
2024-11-07 17:19:23 +00:00
James Cook
f50b49d63e
chore: update dnt
2024-11-07 17:18:51 +00:00
Aria
f0861f287d
fix: specify dob as form data for getStudentCode ( #46 )
2024-11-07 17:04:22 +00:00
James Cook
86afa2a01e
chore: update npm build script to remove source maps and dev deps
2024-05-30 13:37:58 +01:00
Aria
d619369869
fix: refine existing types ( #44 )
...
---------
Co-authored-by: James Cook <james@jaminit.co.uk>
2024-05-30 13:18:12 +01:00
James Cook
bb6707d0ad
chore: upgrade github action versions
2024-05-28 14:39:13 +01:00
James Cook
e3924f0322
fix: use jsr imports
2024-05-28 14:32:57 +01:00
James Cook
d357afffb6
fix: make attachment interface names clearer
2024-05-28 14:07:55 +01:00
James Cook
6d0942afe4
docs: improve code documentation
2024-05-28 14:07:34 +01:00
James Cook
cb8e252a89
chore: format
2024-05-28 13:39:17 +01:00
James Cook
515ac76f22
fix: types & format
2024-05-28 13:39:04 +01:00
Aria
731672f23a
fix: improve type definitions ( #43 )
2024-05-28 13:33:56 +01:00
James Cook
04b133da01
docs: update min nodejs version
2024-03-27 22:23:21 +00:00
James Cook
b2d9a6c5e1
docs: add detentions example (thanks @jazzrox12)
2024-03-27 22:22:11 +00:00
James Cook
468b436a89
chore: give release action id-token permission
2024-01-10 11:06:21 +00:00
James Cook
a64fd6a718
chore: syntax & biome.js changes
2024-01-10 10:57:33 +00:00
James Cook
790a5a6aa6
fix: update deps
2023-11-29 00:13:15 +00:00
James Cook
79a88cbb3d
chore: update github action node version
2023-11-29 00:05:35 +00:00
James Cook
ac5569f53e
feat: Use biomejs for formatting & linting ( #42 )
2023-11-29 00:03:56 +00:00
James Cook
602529171f
chore: update release action
2023-10-16 18:53:48 +01:00
Isaac Hatton
118c384131
feat: add changePassword parent method ( #40 )
2023-10-08 21:02:01 +01:00
James Cook
c42dd71cdf
chore: tweak documentation meta description
2023-09-29 13:50:03 +01:00
James Cook
401fa09c0b
chore: cache pnpm packages
2023-09-26 22:57:04 +01:00
James Cook
f2d3ae2f58
chore: only test on main branch
2023-09-26 22:51:53 +01:00
James Cook
892bcf161c
fix: readd user-agent
2023-09-26 22:50:56 +01:00
James Cook
fa3487e5a4
chore: add test github workflow
2023-09-26 22:47:07 +01:00
James Cook
40c370c151
feat: add getcode endpoint ( #26 )
2023-09-24 21:17:15 +01:00
Veloi
c8f7ab4fb0
fix: update incorrect student typings ( #38 )
2023-09-24 21:09:20 +01:00
James Cook
b2af13c315
fix: remove import map
...
Doesn't work with importing in deno
2023-09-24 13:36:35 +01:00
James Cook
51af82ea9a
chore: .gitattributes
2023-09-20 11:51:39 +01:00
James Cook
c38a83708d
fix: update homework attachments type
2023-09-18 20:54:52 +01:00
James Cook
821a5c26ea
chore: fmt
2023-09-18 20:52:01 +01:00
Veloi
41f23e01d0
feat: reward shop methods, get pupil fields and add meta on detentions ( #35 )
2023-09-18 20:46:50 +01:00
James Cook
936057bbd4
chore: fix build script
2023-09-17 17:56:27 +01:00
James Cook
c006fa2653
chore: repo cleanup
2023-09-17 17:42:33 +01:00
Isaac Hatton
8a11040524
feat: parent client tests & consistant error messages ( #37 )
2023-09-17 17:19:48 +01:00
James Cook
a022c8a8ad
chore: move deno dev deps to deps file && use import map
2023-09-16 20:14:18 +01:00
James Cook
c5e7b3f24e
fix: improve makeAuthedRequest types
2023-09-16 20:05:39 +01:00
James Cook
dea1a00f13
fix: Parent client Login ( #36 )
2023-09-16 19:52:03 +01:00
James Cook
39e7adf53f
chore: remove v from npm version
2023-09-16 19:31:11 +01:00
Veloi
d39eda7bf3
fix: attendance typing && expose full attendance response object ( #34 )
2023-09-15 19:02:16 +01:00
James Cook
a9afa0e9e5
feat: export types to classcharts-api/types
...
This allow types to be easily accessed without knowing the full path.
Eliminates the need to decide which types should be exported from mod.ts
2023-09-15 17:06:59 +01:00
James Cook
3e76d4a762
docs: add notice warning about parent client
2023-09-14 20:01:58 +01:00
James Cook
687c36f326
docs: update announcements docs
2023-09-14 19:54:48 +01:00
James Cook
7529b572a0
fix: remove description sanitising logic
...
Since the purpose of this library is to stay as true to the actual API as possible
2023-09-14 19:40:08 +01:00
James Cook
45ef7c7ce9
feat: announcements meta response
2023-09-14 19:38:21 +01:00
James Cook
bb986b71a8
chore: add contributing.md
2023-09-13 22:24:12 +01:00
James Cook
ffe3e24bbd
fix: use .has instead of .get
2023-09-10 13:02:05 +01:00