From 1f294e5b49faa683a821c8857ee4fc76b4817d92 Mon Sep 17 00:00:00 2001 From: Sejal Patel Date: Sun, 10 Aug 2025 17:10:20 -0400 Subject: [PATCH 1/2] Fix privacy rule not being honored --- package.json | 2 +- src/index.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 8398a85..8f108de 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "version": "0.6.1", + "version": "0.6.2", "name": "@goplayerzero/js-api", "description": "The official PlayerZero JavaScript SDK", "author": { diff --git a/src/index.ts b/src/index.ts index 7c43b05..38802f7 100644 --- a/src/index.ts +++ b/src/index.ts @@ -31,6 +31,7 @@ export class PzApi { this.batchEventsSize = options?.batchEventsSize ?? 100; this.debounceInMs = options?.debounceInMs ?? 2000; this.endpoint = `${options?.endpoint ?? 'https://sdk.playerzero.app'}`; + this.privacy = options?.privacy; this.queuedEvent = options?.queuedEvent; this.dequeuedEvents = options?.dequeuedEvents; @@ -169,7 +170,7 @@ export class PzApi { 'X-PzSdk': `JavaScript __PlayerZeroSdkVersion__`, 'X-PzProd': `${this.prod}`, 'X-PzBucket': `${this.dataset}`, - } + }, }).catch(() => []).then(() => this.dequeuedEvents?.(type, payload)); } From 18d9a177850ade2563e6108acdae242dea677a50 Mon Sep 17 00:00:00 2001 From: Sejal Patel Date: Sun, 10 Aug 2025 18:37:31 -0400 Subject: [PATCH 2/2] Undo version change It hasn't been released yet --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 8f108de..8398a85 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "version": "0.6.2", + "version": "0.6.1", "name": "@goplayerzero/js-api", "description": "The official PlayerZero JavaScript SDK", "author": {