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.
- package/distTs/package.json +1 -1
- package/distTs/src/input.js +6 -2
- package/package.json +1 -1
package/distTs/package.json
CHANGED
package/distTs/src/input.js
CHANGED
|
@@ -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
|
-
|
|
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
|
-
|
|
613
|
+
version_id: result.artifact_version_id,
|
|
610
614
|
},
|
|
611
615
|
};
|
|
612
616
|
}
|