@signaliz/cli 1.0.65 → 1.0.66
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/bin.js +2 -4
- package/package.json +1 -1
package/dist/bin.js
CHANGED
|
@@ -388,10 +388,8 @@ function publicCompanySignalRows(value, fallbackCompany) {
|
|
|
388
388
|
const eventId = signalText(
|
|
389
389
|
signal.event_id || signal.eventId || signal.fact_id || signal.factId || raw.event_id || raw.eventId || raw.fact_id || raw.factId
|
|
390
390
|
).toLowerCase();
|
|
391
|
-
const
|
|
392
|
-
|
|
393
|
-
`source:${row.source.toLowerCase()}`
|
|
394
|
-
];
|
|
391
|
+
const title = row.signal_title.toLowerCase().replace(/https?:\/\/\S+/g, " ").replace(/[^a-z0-9$.\s]+/g, " ").replace(/\s+/g, " ").trim();
|
|
392
|
+
const identities = eventId ? [`event:${eventId}`] : title && row.date ? [`event:${title}|${row.date}`] : [`source:${row.source.toLowerCase()}`];
|
|
395
393
|
if (identities.some((identity) => seenEvents.has(identity))) continue;
|
|
396
394
|
identities.forEach((identity) => seenEvents.add(identity));
|
|
397
395
|
rows.push(row);
|
package/package.json
CHANGED