av6-core 1.7.12 → 1.7.13
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 +3 -1
- package/dist/index.mjs +3 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3311,7 +3311,9 @@ async function resolveAllRecipients(args) {
|
|
|
3311
3311
|
for (const k of toArray(cfg.recipients)) {
|
|
3312
3312
|
const v = getNestedValueV2(args.evtData, k);
|
|
3313
3313
|
if (typeof v === "string") res[type].push(v);
|
|
3314
|
-
if (
|
|
3314
|
+
if (typeof v === "number") res[type].push(String(v));
|
|
3315
|
+
if (Array.isArray(v))
|
|
3316
|
+
res[type].push(...v.filter((x) => typeof x === "string" || typeof x === "number").map(String));
|
|
3315
3317
|
}
|
|
3316
3318
|
continue;
|
|
3317
3319
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -3255,7 +3255,9 @@ async function resolveAllRecipients(args) {
|
|
|
3255
3255
|
for (const k of toArray(cfg.recipients)) {
|
|
3256
3256
|
const v = getNestedValueV2(args.evtData, k);
|
|
3257
3257
|
if (typeof v === "string") res[type].push(v);
|
|
3258
|
-
if (
|
|
3258
|
+
if (typeof v === "number") res[type].push(String(v));
|
|
3259
|
+
if (Array.isArray(v))
|
|
3260
|
+
res[type].push(...v.filter((x) => typeof x === "string" || typeof x === "number").map(String));
|
|
3259
3261
|
}
|
|
3260
3262
|
continue;
|
|
3261
3263
|
}
|