absence.io 2.4.1 → 2.4.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.
package/dist/AbsenceIO.js CHANGED
@@ -47,8 +47,8 @@ class AbsenceIO {
47
47
  key: this.options.apiKey,
48
48
  };
49
49
  this.apiClient = new api_client_1.APIClient(baseURL);
50
- this.apiClient.interceptors.request.push((url, config) => {
51
- const hawkHeader = hawk.client.header(url.toString(), config.method, { credentials });
50
+ this.apiClient.interceptors.request.push((config) => {
51
+ const hawkHeader = hawk.client.header(config.url.toString(), config.method, { credentials });
52
52
  config.headers = Object.assign(Object.assign({}, config.headers), { Authorization: hawkHeader.header });
53
53
  return config;
54
54
  });
package/package.json CHANGED
@@ -1,33 +1,35 @@
1
1
  {
2
2
  "author": "Florian Imdahl <git@ffflorian.de>",
3
3
  "dependencies": {
4
- "@ffflorian/api-client": "2.1.2",
4
+ "@ffflorian/api-client": "2.2.0",
5
5
  "@hapi/hawk": "8.0.0"
6
6
  },
7
7
  "description": "An absence.io API client",
8
8
  "devDependencies": {
9
9
  "@types/hapi__hawk": "8.0.7",
10
10
  "@types/node": "~24",
11
- "rimraf": "6.1.0",
12
- "typedoc": "0.28.14",
11
+ "rimraf": "6.1.2",
12
+ "typedoc": "0.28.15",
13
13
  "typescript": "5.9.3"
14
14
  },
15
15
  "engines": {
16
16
  "node": ">= 21"
17
17
  },
18
+ "exports": "./dist/index.js",
18
19
  "files": [
19
20
  "dist"
20
21
  ],
21
22
  "keywords": [
22
23
  "api",
24
+ "api-client",
23
25
  "absence.io",
24
26
  "absence",
25
27
  "absenceio"
26
28
  ],
27
29
  "license": "GPL-3.0",
28
- "main": "dist/index.js",
29
30
  "name": "absence.io",
30
- "repository": "https://github.com/ffflorian/api-clients/tree/main/packages/absence.io",
31
+ "repository": "https://github.com/ffflorian/api-clients.git",
32
+ "readme": "https://github.com/ffflorian/api-clients#readme",
31
33
  "scripts": {
32
34
  "build:ts": "tsc -p tsconfig.build.json",
33
35
  "build:docs": "typedoc --tsconfig tsconfig.build.json --options ../../typedoc.json --out ../../docs/packages/absence.io src/index.ts",
@@ -35,6 +37,6 @@
35
37
  "dist": "yarn clean && yarn build:ts",
36
38
  "test": "exit 0"
37
39
  },
38
- "version": "2.4.1",
39
- "gitHead": "e5aa38e74982d788efcfac2dd3b46be012c98afb"
40
+ "version": "2.4.3",
41
+ "gitHead": "3a8697be82ab0cbb28bc02e420b52254146649b3"
40
42
  }