@signaliz/sdk 1.0.69 → 1.0.70

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.
@@ -739,10 +739,8 @@ function companySignalEventIdentities(value, row) {
739
739
  const eventId = text(
740
740
  signal.event_id || signal.eventId || signal.fact_id || signal.factId || raw.event_id || raw.eventId || raw.fact_id || raw.factId
741
741
  ).toLowerCase();
742
- return [
743
- ...eventId ? [`event:${eventId}`] : [],
744
- `source:${row.source.toLowerCase()}`
745
- ];
742
+ const title = row.signal_title.toLowerCase().replace(/https?:\/\/\S+/g, " ").replace(/[^a-z0-9$.\s]+/g, " ").replace(/\s+/g, " ").trim();
743
+ return eventId ? [`event:${eventId}`] : title && row.date ? [`event:${title}|${row.date}`] : [`source:${row.source.toLowerCase()}`];
746
744
  }
747
745
  function publicCompanySignalRows(value, fallbackCompany) {
748
746
  if (!Array.isArray(value)) return [];
package/dist/index.js CHANGED
@@ -766,10 +766,8 @@ function companySignalEventIdentities(value, row) {
766
766
  const eventId = text(
767
767
  signal.event_id || signal.eventId || signal.fact_id || signal.factId || raw.event_id || raw.eventId || raw.fact_id || raw.factId
768
768
  ).toLowerCase();
769
- return [
770
- ...eventId ? [`event:${eventId}`] : [],
771
- `source:${row.source.toLowerCase()}`
772
- ];
769
+ const title = row.signal_title.toLowerCase().replace(/https?:\/\/\S+/g, " ").replace(/[^a-z0-9$.\s]+/g, " ").replace(/\s+/g, " ").trim();
770
+ return eventId ? [`event:${eventId}`] : title && row.date ? [`event:${title}|${row.date}`] : [`source:${row.source.toLowerCase()}`];
773
771
  }
774
772
  function publicCompanySignalRows(value, fallbackCompany) {
775
773
  if (!Array.isArray(value)) return [];
package/dist/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Signaliz,
3
3
  SignalizError
4
- } from "./chunk-T5GL6QM7.mjs";
4
+ } from "./chunk-WEQLL67T.mjs";
5
5
  export {
6
6
  Signaliz,
7
7
  SignalizError
@@ -770,10 +770,8 @@ function companySignalEventIdentities(value, row) {
770
770
  const eventId = text(
771
771
  signal.event_id || signal.eventId || signal.fact_id || signal.factId || raw.event_id || raw.eventId || raw.fact_id || raw.factId
772
772
  ).toLowerCase();
773
- return [
774
- ...eventId ? [`event:${eventId}`] : [],
775
- `source:${row.source.toLowerCase()}`
776
- ];
773
+ const title = row.signal_title.toLowerCase().replace(/https?:\/\/\S+/g, " ").replace(/[^a-z0-9$.\s]+/g, " ").replace(/\s+/g, " ").trim();
774
+ return eventId ? [`event:${eventId}`] : title && row.date ? [`event:${title}|${row.date}`] : [`source:${row.source.toLowerCase()}`];
777
775
  }
778
776
  function publicCompanySignalRows(value, fallbackCompany) {
779
777
  if (!Array.isArray(value)) return [];
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  Signaliz
4
- } from "./chunk-T5GL6QM7.mjs";
4
+ } from "./chunk-WEQLL67T.mjs";
5
5
 
6
6
  // src/mcp-config.ts
7
7
  import * as fs from "fs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@signaliz/sdk",
3
- "version": "1.0.69",
3
+ "version": "1.0.70",
4
4
  "description": "Signaliz SDK for Company Signal Enrichment, Signals First, Signal Awareness, Signal to Copy AI, and Signaliz Flow.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",