@claritylabs/cl-sdk 0.14.0 → 0.14.1
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 +9 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2460,6 +2460,15 @@ function formatAddress(addr) {
|
|
|
2460
2460
|
return parts.join(", ");
|
|
2461
2461
|
}
|
|
2462
2462
|
function chunkDocument(doc) {
|
|
2463
|
+
const ensureArray = (v) => Array.isArray(v) ? v : [];
|
|
2464
|
+
doc = {
|
|
2465
|
+
...doc,
|
|
2466
|
+
taxesAndFees: ensureArray(doc.taxesAndFees),
|
|
2467
|
+
ratingBasis: ensureArray(doc.ratingBasis),
|
|
2468
|
+
claimsContacts: ensureArray(doc.claimsContacts),
|
|
2469
|
+
regulatoryContacts: ensureArray(doc.regulatoryContacts),
|
|
2470
|
+
thirdPartyAdministrators: ensureArray(doc.thirdPartyAdministrators)
|
|
2471
|
+
};
|
|
2463
2472
|
const chunks = [];
|
|
2464
2473
|
const docId = doc.id;
|
|
2465
2474
|
function stringMetadata(entries) {
|