@mcurros2/microm 1.1.166-0 → 1.1.168-0

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
@@ -1458,7 +1458,6 @@ class $16abd72d1aa9b62d$export$6118e57c65bf19ee {
1458
1458
  await this.#removeToken();
1459
1459
  await this.#deleteEnabledMenus();
1460
1460
  if (this.#RECORD_PATHS) this.#saveAllRecordedAccess();
1461
- //TODO: explicar por que no envía el token con esta solicitud?
1462
1461
  const response = await fetch(`${this.#API_URL}/${this.#APP_ID}/auth/logoff`, {
1463
1462
  method: 'POST',
1464
1463
  headers: {
@@ -3246,7 +3245,7 @@ var $hv0CN = parcelRequire("hv0CN");
3246
3245
 
3247
3246
  var $hxOxo = parcelRequire("hxOxo");
3248
3247
 
3249
- var $8Lefr = parcelRequire("8Lefr");
3248
+ var $01mqs = parcelRequire("01mqs");
3250
3249
 
3251
3250
  var $lULWw = parcelRequire("lULWw");
3252
3251
 
@@ -3369,7 +3368,7 @@ $parcel$exportWildcard(module.exports, $bJhnF);
3369
3368
  $parcel$exportWildcard(module.exports, $RUzV3);
3370
3369
  $parcel$exportWildcard(module.exports, $hv0CN);
3371
3370
  $parcel$exportWildcard(module.exports, $hxOxo);
3372
- $parcel$exportWildcard(module.exports, $8Lefr);
3371
+ $parcel$exportWildcard(module.exports, $01mqs);
3373
3372
  $parcel$exportWildcard(module.exports, $lULWw);
3374
3373
  $parcel$exportWildcard(module.exports, $3HRFn);
3375
3374
  $parcel$exportWildcard(module.exports, $3Zdna);
@@ -4601,17 +4600,17 @@ function $9dfe1d3e4dcf7b26$export$65ed9482db2257fa(props) {
4601
4600
 
4602
4601
  });
4603
4602
 
4604
- parcelRegister("8Lefr", function(module, exports) {
4603
+ parcelRegister("01mqs", function(module, exports) {
4605
4604
 
4606
- $parcel$export(module.exports, "useExecuteServerAction", function () { return $b7f0b54e18925026$export$5e89f28b2f6c2d01; });
4605
+ $parcel$export(module.exports, "useExecuteServerAction", function () { return $b401857d6bbb5b85$export$5e89f28b2f6c2d01; });
4607
4606
 
4608
4607
  parcelRequire("2eyXi");
4609
4608
  var $iKzSR = parcelRequire("iKzSR");
4610
4609
  parcelRequire("6Rdyz");
4611
4610
  var $98ddT = parcelRequire("98ddT");
4612
- function $b7f0b54e18925026$export$5e89f28b2f6c2d01(entity, actionName) {
4611
+ function $b401857d6bbb5b85$export$5e89f28b2f6c2d01(entity, actionName) {
4613
4612
  const [status, setStatus] = (0, $b4te3$react.useState)({
4614
- loading: true
4613
+ loading: false
4615
4614
  });
4616
4615
  const cancellation = (0, $b4te3$react.useRef)(new AbortController());
4617
4616
  const done = (0, $b4te3$react.useRef)(false);
@@ -4633,16 +4632,15 @@ function $b7f0b54e18925026$export$5e89f28b2f6c2d01(entity, actionName) {
4633
4632
  done.current = false;
4634
4633
  try {
4635
4634
  const action = entity.def.serverActions[actionName];
4636
- if (!action || !action.valuesMapper) throw new Error('Action or valuesMapper missing.');
4635
+ if (!action) throw new Error('Action or valuesMapper missing.');
4637
4636
  setStatus({
4638
4637
  loading: true,
4639
4638
  operationType: 'action'
4640
4639
  });
4641
4640
  const data = await entity.API.executeServerAction(action, values, cancellation.current.signal);
4642
4641
  done.current = true;
4643
- const new_values = action.valuesMapper(data);
4644
4642
  setStatus({
4645
- data: new_values,
4643
+ data: data,
4646
4644
  operationType: 'action'
4647
4645
  });
4648
4646
  // Update previous values