@braze/service-worker 6.3.1 → 6.5.0

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/package.json +1 -1
  2. package/service-worker.js +10 -10
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@braze/service-worker",
3
- "version": "6.3.1",
3
+ "version": "6.5.0",
4
4
  "description": "Braze service worker to be used with the Braze Web SDK.",
5
5
  "main": "service-worker.js",
6
6
  "scripts": {
package/service-worker.js CHANGED
@@ -1,8 +1,8 @@
1
1
  /*
2
- * Braze Web SDK v6.3.1
3
- * (c) Braze, Inc. 2025 - http://braze.com
2
+ * Braze Web SDK v6.5.0
3
+ * (c) Braze, Inc. 2026 - http://braze.com
4
4
  * License available at https://github.com/braze-inc/braze-web-sdk/blob/master/LICENSE
5
- * Compiled on 2025-11-13
5
+ * Compiled on 2026-01-08
6
6
  */
7
7
  const h = {
8
8
  A: function (a) {
@@ -30,12 +30,12 @@ const h = {
30
30
  },
31
31
  warn: function (a) {
32
32
  h.m &&
33
- ((a = "Braze SDK Warning: " + a + " (v6.3.1)"),
33
+ ((a = "Braze SDK Warning: " + a + " (v6.5.0)"),
34
34
  null != h.j ? h.j(a) : console.warn(a));
35
35
  },
36
36
  error: function (a) {
37
37
  h.m &&
38
- ((a = "Braze SDK Error: " + a + " (v6.3.1)"),
38
+ ((a = "Braze SDK Error: " + a + " (v6.5.0)"),
39
39
  null != h.j ? h.j(a) : console.error(a));
40
40
  },
41
41
  };
@@ -340,7 +340,7 @@ function D(a, b, e) {
340
340
  f.time = Math.floor(new Date().valueOf() / 1e3);
341
341
  f.device_id = e;
342
342
  f.api_key = a;
343
- f.sdk_version = "6.3.1";
343
+ f.sdk_version = "6.5.0";
344
344
  f.sdk_flavor = "amp";
345
345
  f.respond_with = { config: { config_time: 0 } };
346
346
  fetch(b + "/data/", {
@@ -387,7 +387,7 @@ function E(a, b, e, g, d, f, c, k, m) {
387
387
  const t = {};
388
388
  t.device_id = e;
389
389
  t.api_key = a;
390
- t.sdk_version = "6.3.1";
390
+ t.sdk_version = "6.5.0";
391
391
  null != f && (t.sdk_flavor = f);
392
392
  var u = null;
393
393
  let H = null,
@@ -454,7 +454,7 @@ function F(a, b) {
454
454
  a.time = g;
455
455
  a.user_id = d.userId;
456
456
  f.events = [a];
457
- f.sdk_version = "6.3.1";
457
+ f.sdk_version = "6.5.0";
458
458
  g = {
459
459
  "Content-Type": "application/json",
460
460
  "X-Braze-Api-Key": f.api_key,
@@ -698,7 +698,7 @@ function R(a) {
698
698
  f = { url: a.u, ab_ids: { cid: a.cid }, extra: a.e },
699
699
  c = a.ri;
700
700
  a.ab_push_fetch_test_triggers_key &&
701
- (h.info("Service worker 6.3.1 found trigger fetch key in push payload."),
701
+ (h.info("Service worker 6.5.0 found trigger fetch key in push payload."),
702
702
  (f.fetchTriggers = !0));
703
703
  var k = a.ab_cd;
704
704
  null != k &&
@@ -742,7 +742,7 @@ self.addEventListener("activate", function () {
742
742
  return self.clients.claim();
743
743
  });
744
744
  self.addEventListener("push", function (a) {
745
- h.info("Service worker 6.3.1 received push");
745
+ h.info("Service worker 6.5.0 received push");
746
746
  null != a.data && null != a.data.json
747
747
  ? Q(a, R(a.data.json()))
748
748
  : Q(