absence.io 2.4.1 → 2.4.2
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 +2 -2
- package/package.json +5 -5
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((
|
|
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,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"author": "Florian Imdahl <git@ffflorian.de>",
|
|
3
3
|
"dependencies": {
|
|
4
|
-
"@ffflorian/api-client": "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.
|
|
12
|
-
"typedoc": "0.28.
|
|
11
|
+
"rimraf": "6.1.2",
|
|
12
|
+
"typedoc": "0.28.15",
|
|
13
13
|
"typescript": "5.9.3"
|
|
14
14
|
},
|
|
15
15
|
"engines": {
|
|
@@ -35,6 +35,6 @@
|
|
|
35
35
|
"dist": "yarn clean && yarn build:ts",
|
|
36
36
|
"test": "exit 0"
|
|
37
37
|
},
|
|
38
|
-
"version": "2.4.
|
|
39
|
-
"gitHead": "
|
|
38
|
+
"version": "2.4.2",
|
|
39
|
+
"gitHead": "a0b23d2b7c06cdabfeefd728a56b8a910b6e282e"
|
|
40
40
|
}
|