@axway/axway-central-cli 2.28.0-rc.1 → 2.28.0-rc.3
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/dist/common/utils.js +5 -3
- package/package.json +1 -1
package/dist/common/utils.js
CHANGED
|
@@ -296,11 +296,13 @@ const hbsCompare = () => {
|
|
|
296
296
|
*/
|
|
297
297
|
exports.hbsCompare = hbsCompare;
|
|
298
298
|
const parseScopeParam = scopeParam => {
|
|
299
|
-
if (!scopeParam) return undefined;
|
|
299
|
+
if (!scopeParam) return undefined;
|
|
300
|
+
let sp = scopeParam.toString();
|
|
301
|
+
if (sp.indexOf('/') === -1) return {
|
|
300
302
|
name: scopeParam
|
|
301
303
|
};else {
|
|
302
|
-
const name =
|
|
303
|
-
const kind =
|
|
304
|
+
const name = sp.substring(scopeParam.indexOf('/') + 1);
|
|
305
|
+
const kind = sp.substring(0, scopeParam.indexOf('/'));
|
|
304
306
|
if (!name.length || !kind.length) throw Error(`invalid scope (-s/--scope) parameter value.` + `\nPlease use "--scope <scope kind>/<scope name>" or "--scope <scope name>" formats.`);
|
|
305
307
|
return {
|
|
306
308
|
name,
|