@backstage/plugin-catalog-backend 0.0.0-nightly-20220613024651 → 0.0.0-nightly-20220622024934

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,6 +1,30 @@
1
1
  # @backstage/plugin-catalog-backend
2
2
 
3
- ## 0.0.0-nightly-20220613024651
3
+ ## 0.0.0-nightly-20220622024934
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+ - @backstage/backend-common@0.0.0-nightly-20220622024934
9
+ - @backstage/catalog-model@0.0.0-nightly-20220622024934
10
+ - @backstage/integration@0.0.0-nightly-20220622024934
11
+ - @backstage/catalog-client@0.0.0-nightly-20220622024934
12
+ - @backstage/plugin-permission-node@0.0.0-nightly-20220622024934
13
+ - @backstage/plugin-scaffolder-common@0.0.0-nightly-20220622024934
14
+
15
+ ## 1.2.1-next.0
16
+
17
+ ### Patch Changes
18
+
19
+ - Updated dependencies
20
+ - @backstage/backend-common@0.14.1-next.0
21
+ - @backstage/catalog-model@1.1.0-next.0
22
+ - @backstage/integration@1.2.2-next.0
23
+ - @backstage/plugin-permission-node@0.6.3-next.0
24
+ - @backstage/catalog-client@1.0.4-next.0
25
+ - @backstage/plugin-scaffolder-common@1.1.2-next.0
26
+
27
+ ## 1.2.0
4
28
 
5
29
  ### Minor Changes
6
30
 
@@ -18,17 +42,18 @@
18
42
 
19
43
  ### Patch Changes
20
44
 
45
+ - 8838b13038: Disallow anything but `'url'` locations from being registered via the location service.
21
46
  - 8f7b1835df: Updated dependency `msw` to `^0.41.0`.
22
47
  - Updated dependencies
23
- - @backstage/plugin-search-common@0.0.0-nightly-20220613024651
24
- - @backstage/plugin-permission-node@0.0.0-nightly-20220613024651
25
- - @backstage/plugin-catalog-common@0.0.0-nightly-20220613024651
26
- - @backstage/backend-common@0.0.0-nightly-20220613024651
27
- - @backstage/integration@0.0.0-nightly-20220613024651
28
- - @backstage/catalog-client@0.0.0-nightly-20220613024651
29
- - @backstage/plugin-permission-common@0.0.0-nightly-20220613024651
30
- - @backstage/catalog-model@0.0.0-nightly-20220613024651
31
- - @backstage/plugin-scaffolder-common@0.0.0-nightly-20220613024651
48
+ - @backstage/plugin-search-common@0.3.5
49
+ - @backstage/plugin-permission-node@0.6.2
50
+ - @backstage/plugin-catalog-common@1.0.3
51
+ - @backstage/backend-common@0.14.0
52
+ - @backstage/integration@1.2.1
53
+ - @backstage/catalog-client@1.0.3
54
+ - @backstage/plugin-permission-common@0.6.2
55
+ - @backstage/catalog-model@1.0.3
56
+ - @backstage/plugin-scaffolder-common@1.1.1
32
57
 
33
58
  ## 1.2.0-next.2
34
59
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/plugin-catalog-backend",
3
- "version": "0.0.0-nightly-20220613024651",
3
+ "version": "0.0.0-nightly-20220622024934",
4
4
  "main": "../dist/index.cjs.js",
5
5
  "types": "../dist/index.alpha.d.ts"
6
6
  }
package/dist/index.cjs.js CHANGED
@@ -1926,6 +1926,9 @@ class DefaultLocationService {
1926
1926
  this.orchestrator = orchestrator;
1927
1927
  }
1928
1928
  async createLocation(input, dryRun) {
1929
+ if (input.type !== "url") {
1930
+ throw new errors.InputError(`Registered locations must be of type 'url'`);
1931
+ }
1929
1932
  if (dryRun) {
1930
1933
  return this.dryRunCreateLocation(input);
1931
1934
  }