Fix some final issues

Signed-off-by: ivgo <ivgo@spreadgroup.com>
This commit is contained in:
ivgo
2022-06-03 15:57:20 +02:00
parent ee04412ef2
commit d331cecc2e
4 changed files with 19 additions and 21 deletions
+1 -1
View File
@@ -8,4 +8,4 @@ documentation: https://github.com/backstage/backstage/tree/master/plugins/vault
iconUrl: img/vault.png
npmPackageName: '@backstage/plugin-vault'
tags:
- vault
- vault
+1 -1
View File
@@ -51,7 +51,7 @@
"yn": "^5.0.0"
},
"devDependencies": {
"@backstage/cli": "^0.17.1",
"@backstage/cli": "^0.17.2-next.1",
"@types/compression": "^1.7.2",
"@types/supertest": "^2.0.8",
"msw": "^0.35.0",
+9 -11
View File
@@ -85,18 +85,16 @@ export class VaultClient implements VaultApi {
query: { [key in string]: any },
method: string = 'GET',
): Promise<T | undefined> {
const response = await fetch(
`${this.vaultConfig.baseUrl}/${path}?${new URLSearchParams(
query,
).toString()}`,
{
method,
headers: {
Accept: 'application/json',
'X-Vault-Token': this.vaultConfig.token,
},
const url = `${this.vaultConfig.baseUrl}/${path}?${new URLSearchParams(
query,
).toString()}`;
const response = await fetch(url, {
method,
headers: {
Accept: 'application/json',
'X-Vault-Token': this.vaultConfig.token,
},
);
});
if (response.status === 200) {
return (await response.json()) as T;
}
+8 -8
View File
@@ -34,10 +34,10 @@
"postpack": "backstage-cli package postpack"
},
"dependencies": {
"@backstage/catalog-model": "^1.0.2",
"@backstage/core-components": "^0.9.4",
"@backstage/core-plugin-api": "^1.0.2",
"@backstage/plugin-catalog-react": "^1.1.0",
"@backstage/catalog-model": "^1.0.3-next.0",
"@backstage/core-components": "^0.9.5-next.1",
"@backstage/core-plugin-api": "^1.0.3-next.0",
"@backstage/plugin-catalog-react": "^1.1.1-next.1",
"@backstage/theme": "^0.2.15",
"@material-ui/core": "^4.12.2",
"@material-ui/icons": "^4.9.1",
@@ -48,10 +48,10 @@
"react": "^16.13.1 || ^17.0.0"
},
"devDependencies": {
"@backstage/cli": "^0.17.1",
"@backstage/core-app-api": "^1.0.2",
"@backstage/dev-utils": "^1.0.2",
"@backstage/test-utils": "^1.1.0",
"@backstage/cli": "^0.17.2-next.1",
"@backstage/core-app-api": "^1.0.3-next.0",
"@backstage/dev-utils": "^1.0.3-next.1",
"@backstage/test-utils": "^1.1.1-next.0",
"@testing-library/jest-dom": "^5.10.1",
"@testing-library/react": "^12.1.3",
"@testing-library/user-event": "^14.0.0",