Skip to content

Commit 3a98f36

Browse files
committed
Use and tighten CI
1 parent a2d10d5 commit 3a98f36

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ jobs:
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

src/lib.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff 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" {

src/pipeline.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ use crate::models::{
2626
pub 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,

0 commit comments

Comments
 (0)