sigo-package 1.2.170 → 1.2.171

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
@@ -3795,7 +3795,7 @@ function obtenerTipoYCodigoMO(codigoOriginal) {
3795
3795
  if (!TipoMO) {
3796
3796
  throw new Error(`No se pudo encontrar clave para la letra '${letraTipo}' en SwitchTipo`);
3797
3797
  }
3798
- CodigoMO = CodigoMO.split("_")[1];
3798
+ CodigoMO = CodigoMO.replace(/^[FT]\d+_/, "");
3799
3799
  }
3800
3800
  return {
3801
3801
  TipoMO,
package/dist/index.mjs CHANGED
@@ -3621,7 +3621,7 @@ function obtenerTipoYCodigoMO(codigoOriginal) {
3621
3621
  if (!TipoMO) {
3622
3622
  throw new Error(`No se pudo encontrar clave para la letra '${letraTipo}' en SwitchTipo`);
3623
3623
  }
3624
- CodigoMO = CodigoMO.split("_")[1];
3624
+ CodigoMO = CodigoMO.replace(/^[FT]\d+_/, "");
3625
3625
  }
3626
3626
  return {
3627
3627
  TipoMO,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sigo-package",
3
- "version": "1.2.170",
3
+ "version": "1.2.171",
4
4
  "description": "Funciones compartidas sigo",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",