@ds-sfdc/sfparty 1.4.14 → 1.4.16
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/package.json +4 -4
- 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.
|
|
3
|
+
"version": "1.4.16",
|
|
4
4
|
"description": "Salesforce metadata XML splitter for CI/CD",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -37,6 +37,7 @@
|
|
|
37
37
|
"semver": "^7.3.8",
|
|
38
38
|
"util": "^0.10.3",
|
|
39
39
|
"winston": "^3.8.2",
|
|
40
|
+
"xml2js": "^0.6.2",
|
|
40
41
|
"yargs": "^17.6.2"
|
|
41
42
|
},
|
|
42
43
|
"devDependencies": {
|
|
@@ -47,9 +48,8 @@
|
|
|
47
48
|
"babel-jest": "^29.3.1",
|
|
48
49
|
"husky": "^8.0.3",
|
|
49
50
|
"jest": "^29.3.1",
|
|
50
|
-
"nodemon": "^
|
|
51
|
-
"prettier": "^2.8.3"
|
|
52
|
-
"xml2js": "^0.5.0"
|
|
51
|
+
"nodemon": "^3.0.3",
|
|
52
|
+
"prettier": "^2.8.3"
|
|
53
53
|
},
|
|
54
54
|
"engines": {
|
|
55
55
|
"node": ">=0.11"
|
package/src/party/split.js
CHANGED
|
@@ -411,8 +411,16 @@ function xml2json(currentValue) {
|
|
|
411
411
|
currentValue = currentValue[0].toString().trim()
|
|
412
412
|
}
|
|
413
413
|
}
|
|
414
|
-
|
|
415
|
-
|
|
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
|
|