@zauru-sdk/utils 1.0.76 → 1.0.78

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.
@@ -59,7 +59,7 @@ const makeInvoiceDetailsWithPrice = (invoice_details, deleted_invoice_details =
59
59
  return [
60
60
  ...invoice_details.map((x) => {
61
61
  //Si trae una B al inicio, es un bundleID, de lo contrario, es un item_id
62
- const bundle_id = x.item_id?.startsWith("B")
62
+ const bundle_id = x.item_id?.toString()?.startsWith("B")
63
63
  ? Number(x.item_id.replace("B", ""))
64
64
  : undefined;
65
65
  const item_id = !bundle_id ? Number(x.item_id) : undefined;
@@ -54,7 +54,7 @@ export const makeInvoiceDetailsWithPrice = (invoice_details, deleted_invoice_det
54
54
  return [
55
55
  ...invoice_details.map((x) => {
56
56
  //Si trae una B al inicio, es un bundleID, de lo contrario, es un item_id
57
- const bundle_id = x.item_id?.startsWith("B")
57
+ const bundle_id = x.item_id?.toString()?.startsWith("B")
58
58
  ? Number(x.item_id.replace("B", ""))
59
59
  : undefined;
60
60
  const item_id = !bundle_id ? Number(x.item_id) : undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zauru-sdk/utils",
3
- "version": "1.0.76",
3
+ "version": "1.0.78",
4
4
  "description": "Utilidades, parseo de request y demás para desarrollo de webapps de Zauru",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.js",
@@ -27,9 +27,9 @@
27
27
  "@remix-run/node": "^2.8.1",
28
28
  "@zauru-sdk/common": "^1.0.76",
29
29
  "@zauru-sdk/config": "^1.0.60",
30
- "@zauru-sdk/graphql": "^1.0.72",
31
- "@zauru-sdk/services": "^1.0.76",
30
+ "@zauru-sdk/graphql": "^1.0.78",
31
+ "@zauru-sdk/services": "^1.0.78",
32
32
  "@zauru-sdk/types": "^1.0.76"
33
33
  },
34
- "gitHead": "5bb0069ef108e7b5f25706aa62d142b059fb4947"
34
+ "gitHead": "1faea0e4c3468b24c7b740441af3fc5e9f552e3f"
35
35
  }