@ds-sfdc/sfparty 1.4.14 → 1.4.15

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/party/split.js +10 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ds-sfdc/sfparty",
3
- "version": "1.4.14",
3
+ "version": "1.4.15",
4
4
  "description": "Salesforce metadata XML splitter for CI/CD",
5
5
  "type": "module",
6
6
  "repository": {
@@ -411,8 +411,16 @@ function xml2json(currentValue) {
411
411
  currentValue = currentValue[0].toString().trim()
412
412
  }
413
413
  }
414
- if (currentValue == 'true') currentValue = true
415
- if (currentValue == 'false') currentValue = false
414
+
415
+ try {
416
+ if (currentValue == 'true') currentValue = true
417
+ if (currentValue == 'false') currentValue = false
418
+ } catch (error) {
419
+ if (error.message !== 'Cannot convert object to primitive value') {
420
+ console.error(error)
421
+ }
422
+ }
423
+
416
424
  return currentValue
417
425
  }
418
426