@backstage/plugin-catalog-backend 0.21.1 → 0.21.3-next.0
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 +41 -0
- package/dist/index.cjs.js +13 -5
- package/dist/index.cjs.js.map +1 -1
- package/migrations/20200807120600_entitySearch.js +2 -2
- package/migrations/20201005122705_add_entity_full_name.js +1 -1
- package/migrations/20201006130744_entity_data_column.js +1 -1
- package/migrations/20201230103504_update_log_varchar.js +4 -4
- package/package.json +11 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,46 @@
|
|
|
1
1
|
# @backstage/plugin-catalog-backend
|
|
2
2
|
|
|
3
|
+
## 0.21.3-next.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 2441d1cf59: chore(deps): bump `knex` from 0.95.6 to 1.0.2
|
|
8
|
+
|
|
9
|
+
This also replaces `sqlite3` with `@vscode/sqlite3` 5.0.7
|
|
10
|
+
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
- @backstage/backend-common@0.10.7-next.0
|
|
13
|
+
- @backstage/plugin-permission-node@0.4.3-next.0
|
|
14
|
+
|
|
15
|
+
## 0.21.2
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- fac5f112b4: chore(deps): bump `prom-client` from 13.2.0 to 14.0.1
|
|
20
|
+
- 5bbffa60be: Pass authorization token to location service inside location api routes
|
|
21
|
+
- Updated dependencies
|
|
22
|
+
- @backstage/plugin-catalog-common@0.1.2
|
|
23
|
+
- @backstage/backend-common@0.10.6
|
|
24
|
+
- @backstage/plugin-permission-node@0.4.2
|
|
25
|
+
|
|
26
|
+
## 0.21.2-next.1
|
|
27
|
+
|
|
28
|
+
### Patch Changes
|
|
29
|
+
|
|
30
|
+
- Updated dependencies
|
|
31
|
+
- @backstage/plugin-catalog-common@0.1.2-next.0
|
|
32
|
+
- @backstage/backend-common@0.10.6-next.0
|
|
33
|
+
- @backstage/plugin-permission-node@0.4.2-next.1
|
|
34
|
+
|
|
35
|
+
## 0.21.2-next.0
|
|
36
|
+
|
|
37
|
+
### Patch Changes
|
|
38
|
+
|
|
39
|
+
- fac5f112b4: chore(deps): bump `prom-client` from 13.2.0 to 14.0.1
|
|
40
|
+
- 5bbffa60be: Pass authorization token to location service inside location api routes
|
|
41
|
+
- Updated dependencies
|
|
42
|
+
- @backstage/plugin-permission-node@0.4.2-next.0
|
|
43
|
+
|
|
3
44
|
## 0.21.1
|
|
4
45
|
|
|
5
46
|
### Patch Changes
|
package/dist/index.cjs.js
CHANGED
|
@@ -2666,19 +2666,27 @@ async function createRouter(options) {
|
|
|
2666
2666
|
if (!dryRun) {
|
|
2667
2667
|
disallowReadonlyMode(readonlyEnabled);
|
|
2668
2668
|
}
|
|
2669
|
-
const output = await locationService.createLocation(input, dryRun
|
|
2669
|
+
const output = await locationService.createLocation(input, dryRun, {
|
|
2670
|
+
authorizationToken: getBearerToken(req.header("authorization"))
|
|
2671
|
+
});
|
|
2670
2672
|
res.status(201).json(output);
|
|
2671
|
-
}).get("/locations", async (
|
|
2672
|
-
const locations = await locationService.listLocations(
|
|
2673
|
+
}).get("/locations", async (req, res) => {
|
|
2674
|
+
const locations = await locationService.listLocations({
|
|
2675
|
+
authorizationToken: getBearerToken(req.header("authorization"))
|
|
2676
|
+
});
|
|
2673
2677
|
res.status(200).json(locations.map((l) => ({ data: l })));
|
|
2674
2678
|
}).get("/locations/:id", async (req, res) => {
|
|
2675
2679
|
const { id } = req.params;
|
|
2676
|
-
const output = await locationService.getLocation(id
|
|
2680
|
+
const output = await locationService.getLocation(id, {
|
|
2681
|
+
authorizationToken: getBearerToken(req.header("authorization"))
|
|
2682
|
+
});
|
|
2677
2683
|
res.status(200).json(output);
|
|
2678
2684
|
}).delete("/locations/:id", async (req, res) => {
|
|
2679
2685
|
disallowReadonlyMode(readonlyEnabled);
|
|
2680
2686
|
const { id } = req.params;
|
|
2681
|
-
await locationService.deleteLocation(id
|
|
2687
|
+
await locationService.deleteLocation(id, {
|
|
2688
|
+
authorizationToken: getBearerToken(req.header("authorization"))
|
|
2689
|
+
});
|
|
2682
2690
|
res.status(204).end();
|
|
2683
2691
|
});
|
|
2684
2692
|
}
|