@braze/service-worker 6.8.0 → 6.9.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.
- package/package.json +1 -1
- package/service-worker.js +11 -11
package/package.json
CHANGED
package/service-worker.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Braze Web SDK v6.
|
|
2
|
+
* Braze Web SDK v6.9.0
|
|
3
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 2026-
|
|
5
|
+
* Compiled on 2026-07-09
|
|
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.
|
|
33
|
+
((a = "Braze SDK Warning: " + a + " (v6.9.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.
|
|
38
|
+
((a = "Braze SDK Error: " + a + " (v6.9.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.
|
|
343
|
+
f.sdk_version = "6.9.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.
|
|
390
|
+
t.sdk_version = "6.9.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.
|
|
457
|
+
f.sdk_version = "6.9.0";
|
|
458
458
|
g = {
|
|
459
459
|
"Content-Type": "application/json",
|
|
460
460
|
"X-Braze-Api-Key": f.api_key,
|
|
@@ -703,7 +703,7 @@ function S(a) {
|
|
|
703
703
|
f = { url: a.u, ab_ids: { cid: a.cid }, extra: a.e },
|
|
704
704
|
c = a.ri;
|
|
705
705
|
a.ab_push_fetch_test_triggers_key &&
|
|
706
|
-
(h.info("Service worker 6.
|
|
706
|
+
(h.info("Service worker 6.9.0 found trigger fetch key in push payload."),
|
|
707
707
|
(f.fetchTriggers = !0));
|
|
708
708
|
var k = a.ab_cd;
|
|
709
709
|
null != k &&
|
|
@@ -747,10 +747,10 @@ self.addEventListener("activate", function () {
|
|
|
747
747
|
return self.clients.claim();
|
|
748
748
|
});
|
|
749
749
|
self.addEventListener("push", function (a) {
|
|
750
|
-
h.info("Service worker 6.
|
|
750
|
+
h.info("Service worker 6.9.0 received push");
|
|
751
751
|
if (null != a.data && null != a.data.json) {
|
|
752
752
|
const b = a.data.json();
|
|
753
|
-
R(b) ? Q(a, S(b)) : h.info("Service worker 6.
|
|
753
|
+
R(b) ? Q(a, S(b)) : h.info("Service worker 6.9.0 ignoring non-Braze push");
|
|
754
754
|
} else
|
|
755
755
|
Q(
|
|
756
756
|
a,
|
|
@@ -780,7 +780,7 @@ self.addEventListener("push", function (a) {
|
|
|
780
780
|
h.info("Retrieved push payload from server");
|
|
781
781
|
R(c)
|
|
782
782
|
? b(S(c))
|
|
783
|
-
: (h.info("Service worker 6.
|
|
783
|
+
: (h.info("Service worker 6.9.0 ignoring non-Braze push"), b());
|
|
784
784
|
})
|
|
785
785
|
.catch(function (c) {
|
|
786
786
|
e(
|