@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.
@@ -296,11 +296,13 @@ const hbsCompare = () => {
296
296
  */
297
297
  exports.hbsCompare = hbsCompare;
298
298
  const parseScopeParam = scopeParam => {
299
- if (!scopeParam) return undefined;else if (scopeParam.indexOf('/') === -1) return {
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 = scopeParam.substring(scopeParam.indexOf('/') + 1);
303
- const kind = scopeParam.substring(0, scopeParam.indexOf('/'));
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,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@axway/axway-central-cli",
3
- "version": "2.28.0-rc.1",
3
+ "version": "2.28.0-rc.3",
4
4
  "description": "Manage APIs, services and publish to the Unified Catalog",
5
5
  "homepage": "https://platform.axway.com",
6
6
  "author": {