bdy 1.22.42-dev-distro-dev-distro → 1.22.43-dev-distro

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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bdy",
3
3
  "preferGlobal": false,
4
- "version": "1.22.42-dev-distro-dev-distro",
4
+ "version": "1.22.43-dev-distro",
5
5
  "type": "commonjs",
6
6
  "license": "MIT",
7
7
  "scripts": {
@@ -592,7 +592,11 @@ class Input {
592
592
  if (!identifier || !version) {
593
593
  output_1.default.exitError((0, texts_1.ERR_WRONG_ROUTE_TARGET)(str, 'artifact wrong format (identifier:version)'));
594
594
  }
595
- const result = await client.getArtifactVersionByIdentifier(workspace, project, identifier, version);
595
+ let result = await client.getArtifactVersionByIdentifier(workspace, project, identifier, version);
596
+ if (!result.artifact_id && project) {
597
+ // try in workspace scope
598
+ result = await client.getArtifactVersionByIdentifier(workspace, null, identifier, version);
599
+ }
596
600
  if (!result.domain) {
597
601
  output_1.default.exitError((0, texts_1.ERR_WRONG_ROUTE_TARGET)(str, texts_1.ERR_WORKSPACE_NOT_FOUND));
598
602
  }
@@ -606,7 +610,7 @@ class Input {
606
610
  type,
607
611
  artifact: {
608
612
  id: result.artifact_id,
609
- version: version,
613
+ version_id: result.artifact_version_id,
610
614
  },
611
615
  };
612
616
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bdy",
3
3
  "preferGlobal": false,
4
- "version": "1.22.42-dev-distro-dev-distro",
4
+ "version": "1.22.43-dev-distro",
5
5
  "type": "commonjs",
6
6
  "license": "MIT",
7
7
  "scripts": {