@byteluck-fe/model-driven-core-all 2.7.0-beta.1 → 2.7.0-beta.2

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.
@@ -176,7 +176,7 @@ export function registerCustomControls(componentList, components, refLibs, paylo
176
176
  }
177
177
  function _registerCustomControls() {
178
178
  _registerCustomControls = _async_to_generator(function(componentList, components, refLibs, payload) {
179
- var _componentList, registered;
179
+ var registered;
180
180
  return _ts_generator(this, function(_state) {
181
181
  switch(_state.label){
182
182
  case 0:
@@ -263,7 +263,7 @@ function _registerCustomControls() {
263
263
  ];
264
264
  case 1:
265
265
  _state.sent();
266
- (_componentList = componentList) === null || _componentList === void 0 ? void 0 : _componentList.map(function(comIdWithVersion) {
266
+ componentList === null || componentList === void 0 ? void 0 : componentList.map(function(comIdWithVersion) {
267
267
  var _comIdWithVersion_split = _sliced_to_array(comIdWithVersion.split(":"), 2), comid = _comIdWithVersion_split[0], version = _comIdWithVersion_split[1];
268
268
  var hasControl = registered.has(comid);
269
269
  if (hasControl === false) {
@@ -47,9 +47,8 @@ function _unsupported_iterable_to_array(o, minLen) {
47
47
  export function upgradeCustomControlSchema(schema, registered, componentList, payload) {
48
48
  var hasControl = registered.get(schema.type);
49
49
  if (hasControl && hasControl.control.upgrade) {
50
- var _componentList;
51
50
  var oldVersion = "";
52
- (_componentList = componentList) === null || _componentList === void 0 ? void 0 : _componentList.map(function(comIdWithVersion) {
51
+ componentList === null || componentList === void 0 ? void 0 : componentList.map(function(comIdWithVersion) {
53
52
  var _comIdWithVersion_split = _sliced_to_array(comIdWithVersion.split(":"), 2), comid = _comIdWithVersion_split[0], version = _comIdWithVersion_split[1];
54
53
  if (hasControl.props.id === comid) {
55
54
  oldVersion = version !== null && version !== void 0 ? version : "";