File tree Expand file tree Collapse file tree 3 files changed +10
-1
lines changed
Expand file tree Collapse file tree 3 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 2626 - name : Set up Bun
2727 uses : oven-sh/setup-bun@v2
2828
29+ - name : Install JS test dependencies
30+ run : bun install --cwd tests/js_client
31+
2932 - name : Verify Docker Compose
3033 run : docker compose version
3134
Original file line number Diff line number Diff line change @@ -364,13 +364,18 @@ async fn browser_capture(
364364
365365 // Handle $identify events specially - use top-level $set as person_properties
366366 let event = if payload. event == "$identify" {
367+ let mut extra = std:: collections:: HashMap :: new ( ) ;
368+ if let Some ( set_once) = payload. set_once . clone ( ) {
369+ extra. insert ( "$set_once" . to_string ( ) , set_once) ;
370+ }
371+
367372 let identify_req = IdentifyRequest {
368373 api_key,
369374 distinct_id,
370375 properties : payload. set . clone ( ) ,
371376 timestamp : payload. timestamp ,
372377 context : None ,
373- extra : std :: collections :: HashMap :: new ( ) ,
378+ extra,
374379 } ;
375380 PipelineEvent :: from_identify ( identify_req)
376381 } else if payload. event == "$groupidentify" {
Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ use crate::models::{
2626pub struct PipelineClient {
2727 endpoint : Url ,
2828 auth_token : Option < String > ,
29+ #[ cfg_attr( not( target_arch = "wasm32" ) , allow( dead_code) ) ]
2930 timeout : Duration ,
3031 #[ cfg( not( target_arch = "wasm32" ) ) ]
3132 client : Client ,
You can’t perform that action at this time.
0 commit comments