@founderroute/analytics-node 1.0.0-rc.1 → 1.0.0-rc.2

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.
Files changed (2) hide show
  1. package/index.js +1 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -18,7 +18,7 @@ export class FounderRouteServer {
18
18
  ? {protocol:1,consent:true}
19
19
  : {protocol:2,collection_mode:mode,consent_state:granted?'granted':'not_provided'};
20
20
  if(!userId||!anonymousId)throw new Error("Pass a stable user ID and the originating anonymous ID.");
21
- return {event_id:eventId,...collection,name,kind:"custom",occurred_at:occurredAt,anonymous_id:anonymousId,user_id:userId,...(outcomeId?{outcome_id:outcomeId}:{}),...(accountId?{account_id:accountId}:{}),traits,properties,context:{sdk:"node",sdk_version:"1.0.0-rc.1",...(verificationId?{verification_id:verificationId}:{})}};
21
+ return {event_id:eventId,...collection,name,kind:"custom",occurred_at:occurredAt,anonymous_id:anonymousId,user_id:userId,...(outcomeId?{outcome_id:outcomeId}:{}),...(accountId?{account_id:accountId}:{}),traits,properties,context:{sdk:"node",sdk_version:"1.0.0-rc.2",...(verificationId?{verification_id:verificationId}:{})}};
22
22
  }
23
23
  async send(events) {
24
24
  const batch=events.filter(Boolean);if(!batch.length)return {results:[]};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@founderroute/analytics-node",
3
- "version": "1.0.0-rc.1",
3
+ "version": "1.0.0-rc.2",
4
4
  "description": "FounderRoute server analytics SDK for verified outcomes and identity assertions",
5
5
  "type": "module",
6
6
  "main": "index.js",