hcloud-sdk 22.9.0 → 22.9.1
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/changelog.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
## [22.9.
|
|
1
|
+
## [22.9.1](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/compare/v22.9.0...v22.9.1) (2026-07-30)
|
|
2
2
|
|
|
3
|
-
###
|
|
3
|
+
### Bug Fixes
|
|
4
4
|
|
|
5
|
-
*
|
|
5
|
+
* return pat token from agent creation from Authorization header ([0b9d15a](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/0b9d15a9f22e1ad0c0c29b61ea33da4f9c3c5f61))
|
|
@@ -28,7 +28,7 @@ class IdpInternal extends Base_1.default {
|
|
|
28
28
|
var _a, _b;
|
|
29
29
|
const resp = yield this.axios.post(this.getEndpoint(`/internal/v1/org/${orgName}/agent`));
|
|
30
30
|
return ((raw === null || raw === void 0 ? void 0 : raw.raw)
|
|
31
|
-
? Object.assign(Object.assign({}, resp), { data: { user: resp.data, pat: (_a = resp.headers["
|
|
31
|
+
? Object.assign(Object.assign({}, resp), { data: { user: resp.data, pat: (_a = resp.headers["Authorization"]) !== null && _a !== void 0 ? _a : "" } }) : { user: resp.data, pat: (_b = resp.headers["Authorization"]) !== null && _b !== void 0 ? _b : "" });
|
|
32
32
|
});
|
|
33
33
|
}
|
|
34
34
|
getEndpoint(endpoint) {
|