@backstage/plugin-scaffolder-backend 0.0.0-nightly-20220210021913 → 0.0.0-nightly-20220214021635

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,23 @@
1
1
  # @backstage/plugin-scaffolder-backend
2
2
 
3
- ## 0.0.0-nightly-20220210021913
3
+ ## 0.0.0-nightly-20220214021635
4
+
5
+ ### Patch Changes
6
+
7
+ - 1ed305728b: Bump `node-fetch` to version 2.6.7 and `cross-fetch` to version 3.1.5
8
+ - 3e59f90b51: Fix error handling of the `runCommand` helper to return `Error`
9
+ instance.
10
+ - 216725b434: Updated to use new names for `parseLocationRef` and `stringifyLocationRef`
11
+ - Updated dependencies
12
+ - @backstage/backend-common@0.0.0-nightly-20220214021635
13
+ - @backstage/catalog-client@0.0.0-nightly-20220214021635
14
+ - @backstage/errors@0.0.0-nightly-20220214021635
15
+ - @backstage/integration@0.0.0-nightly-20220214021635
16
+ - @backstage/plugin-catalog-backend@0.0.0-nightly-20220214021635
17
+ - @backstage/catalog-model@0.0.0-nightly-20220214021635
18
+ - @backstage/plugin-scaffolder-common@0.0.0-nightly-20220214021635
19
+
20
+ ## 0.15.24
4
21
 
5
22
  ### Patch Changes
6
23
 
@@ -10,10 +27,12 @@
10
27
 
11
28
  - 2bd5f24043: fix for the `gitlab:publish` action to use the `oauthToken` key when creating a
12
29
  `Gitlab` client. This only happens if `ctx.input.token` is provided else the key `token` will be used.
30
+ - 898a56578c: Bump `vm2` to version 3.9.6
13
31
  - Updated dependencies
14
- - @backstage/backend-common@0.0.0-nightly-20220210021913
15
- - @backstage/plugin-catalog-backend@0.0.0-nightly-20220210021913
16
- - @backstage/plugin-scaffolder-backend-module-cookiecutter@0.0.0-nightly-20220210021913
32
+ - @backstage/catalog-client@0.6.0
33
+ - @backstage/backend-common@0.10.7
34
+ - @backstage/plugin-catalog-backend@0.21.3
35
+ - @backstage/plugin-scaffolder-backend-module-cookiecutter@0.1.11
17
36
 
18
37
  ## 0.15.24-next.0
19
38
 
package/dist/index.cjs.js CHANGED
@@ -685,7 +685,7 @@ const runCommand = async ({
685
685
  });
686
686
  process.on("close", (code) => {
687
687
  if (code !== 0) {
688
- return reject(`Command ${command} failed, exit code: ${code}`);
688
+ return reject(new Error(`Command ${command} failed, exit code: ${code}`));
689
689
  }
690
690
  return resolve();
691
691
  });
@@ -2833,7 +2833,7 @@ function getEntityBaseUrl(entity) {
2833
2833
  if (!location) {
2834
2834
  return void 0;
2835
2835
  }
2836
- const { type, target } = catalogModel.parseLocationReference(location);
2836
+ const { type, target } = catalogModel.parseLocationRef(location);
2837
2837
  if (type === "url") {
2838
2838
  return target;
2839
2839
  } else if (type === "file") {