codeforlife 2.6.16 → 2.6.17
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.
|
@@ -10,6 +10,9 @@ on:
|
|
|
10
10
|
workflow_dispatch:
|
|
11
11
|
|
|
12
12
|
jobs:
|
|
13
|
+
contributor:
|
|
14
|
+
uses: ocadotechnology/codeforlife-contributor-backend/.github/workflows/check-pr-authors-signed-latest-agreement.yaml@main
|
|
15
|
+
|
|
13
16
|
test:
|
|
14
17
|
uses: ocadotechnology/codeforlife-workspace/.github/workflows/test-javascript-code.yaml@main
|
|
15
18
|
secrets: inherit
|
|
@@ -17,7 +20,7 @@ jobs:
|
|
|
17
20
|
node-version: 22
|
|
18
21
|
|
|
19
22
|
release:
|
|
20
|
-
needs: [test]
|
|
23
|
+
needs: [test] # TODO: add contributor
|
|
21
24
|
concurrency: release
|
|
22
25
|
runs-on: ubuntu-latest
|
|
23
26
|
permissions:
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [2.6.17](https://github.com/ocadotechnology/codeforlife-package-javascript/compare/v2.6.16...v2.6.17) (2025-06-25)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* get csrf cookie ([7bd0b71](https://github.com/ocadotechnology/codeforlife-package-javascript/commit/7bd0b716228c17e89478556f42eb4fcd8dff26ac))
|
|
7
|
+
|
|
1
8
|
## [2.6.16](https://github.com/ocadotechnology/codeforlife-package-javascript/compare/v2.6.15...v2.6.16) (2025-05-15)
|
|
2
9
|
|
|
3
10
|
|
package/package.json
CHANGED
package/src/api/createApi.ts
CHANGED
|
@@ -59,7 +59,7 @@ export default function createApi<TagTypes extends string = never>({
|
|
|
59
59
|
if (api.type === "mutation" && getCsrfCookie() === undefined) {
|
|
60
60
|
// Get the CSRF token.
|
|
61
61
|
const { error } = await fetch(
|
|
62
|
-
{ url: "/csrf/cookie", method: "GET" },
|
|
62
|
+
{ url: "/csrf/cookie/", method: "GET" },
|
|
63
63
|
api,
|
|
64
64
|
{},
|
|
65
65
|
)
|