(
envelope: EventEnvelope,
name: string,
properties: Record<string, unknown>,
)
| 125 | } |
| 126 | |
| 127 | private emitPage( |
| 128 | envelope: EventEnvelope, |
| 129 | name: string, |
| 130 | properties: Record<string, unknown>, |
| 131 | ): void { |
| 132 | const client = this.getClient(); |
| 133 | if (!client || (!envelope.userId && !envelope.anonymousId)) { |
| 134 | return; |
| 135 | } |
| 136 | client.page({ |
| 137 | userId: envelope.userId, |
| 138 | anonymousId: envelope.anonymousId, |
| 139 | name, |
| 140 | properties: { ...envelope.baseProperties, ...properties }, |
| 141 | context: envelope.context, |
| 142 | timestamp: envelope.timestamp, |
| 143 | } as unknown as RudderAnalytics.PageParams); |
| 144 | } |
| 145 | |
| 146 | // ─── Public, envelope-free API ─── |
| 147 |
no test coverage detected