sysone-api-mapper 1.0.164 → 1.0.165

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.
@@ -57,7 +57,7 @@ const apiMapper = async (endpointCode, tenant, routeParams, params = null, addit
57
57
  ...headers,
58
58
  ...additionalHeaders,
59
59
  },
60
- validateStatus: (s) => s < 500,
60
+ validateStatus: (s) => s < 400, // le bajo a 400 porque sino no tira error en los 4xx
61
61
  };
62
62
  const url = getUrl(endpointData.url, routeParams);
63
63
  /* -------- Request -------- */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sysone-api-mapper",
3
- "version": "1.0.164",
3
+ "version": "1.0.165",
4
4
  "description": "Paquete mapper para portal de productores",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",