@trops/dash-core 0.1.219 → 0.1.220

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/index.js CHANGED
@@ -35797,7 +35797,7 @@ var RegistryThemeDetail = function RegistryThemeDetail(_ref2) {
35797
35797
  }
35798
35798
  function _handleInstall() {
35799
35799
  _handleInstall = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
35800
- var result, _t;
35800
+ var installName, result, _t;
35801
35801
  return _regeneratorRuntime.wrap(function (_context) {
35802
35802
  while (1) switch (_context.prev = _context.next) {
35803
35803
  case 0:
@@ -35812,8 +35812,11 @@ var RegistryThemeDetail = function RegistryThemeDetail(_ref2) {
35812
35812
  setAuthFlow(null);
35813
35813
  setAuthError(null);
35814
35814
  _context.prev = 2;
35815
+ // Send scoped name (scope/name) for unambiguous package lookup;
35816
+ // fall back to bare name if scope is missing
35817
+ installName = pkg.scope ? "".concat(pkg.scope.replace(/^@/, ""), "/").concat(pkg.name) : pkg.name;
35815
35818
  _context.next = 3;
35816
- return window.mainApi.themes.installThemeFromRegistry(appId, pkg.name);
35819
+ return window.mainApi.themes.installThemeFromRegistry(appId, installName);
35817
35820
  case 3:
35818
35821
  result = _context.sent;
35819
35822
  if (!(result !== null && result !== void 0 && result.authRequired)) {