@braze/service-worker 6.0.0 → 6.2.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 +9 -9
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.2.0
|
|
3
3
|
* (c) Braze, Inc. 2025 - http://braze.com
|
|
4
4
|
* License available at https://github.com/braze-inc/braze-web-sdk/blob/master/LICENSE
|
|
5
|
-
* Compiled on 2025-
|
|
5
|
+
* Compiled on 2025-09-29
|
|
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.2.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.2.0)"),
|
|
39
39
|
null != h.j ? h.j(a) : console.error(a));
|
|
40
40
|
},
|
|
41
41
|
};
|
|
@@ -321,7 +321,7 @@ function D(a, c, e) {
|
|
|
321
321
|
f.time = Math.floor(new Date().valueOf() / 1e3);
|
|
322
322
|
f.device_id = e;
|
|
323
323
|
f.api_key = a;
|
|
324
|
-
f.sdk_version = "6.
|
|
324
|
+
f.sdk_version = "6.2.0";
|
|
325
325
|
f.sdk_flavor = "amp";
|
|
326
326
|
f.respond_with = { config: { config_time: 0 } };
|
|
327
327
|
fetch(c + "/data/", {
|
|
@@ -368,7 +368,7 @@ function E(a, c, e, g, d, f, b, k, m) {
|
|
|
368
368
|
const t = {};
|
|
369
369
|
t.device_id = e;
|
|
370
370
|
t.api_key = a;
|
|
371
|
-
t.sdk_version = "6.
|
|
371
|
+
t.sdk_version = "6.2.0";
|
|
372
372
|
null != f && (t.sdk_flavor = f);
|
|
373
373
|
var u = null;
|
|
374
374
|
let H = null,
|
|
@@ -435,7 +435,7 @@ function F(a, c) {
|
|
|
435
435
|
a.time = g;
|
|
436
436
|
a.user_id = d.userId;
|
|
437
437
|
f.events = [a];
|
|
438
|
-
f.sdk_version = "6.
|
|
438
|
+
f.sdk_version = "6.2.0";
|
|
439
439
|
g = {
|
|
440
440
|
"Content-Type": "application/json",
|
|
441
441
|
"X-Braze-Api-Key": f.api_key,
|
|
@@ -679,7 +679,7 @@ function R(a) {
|
|
|
679
679
|
f = { url: a.u, ab_ids: { cid: a.cid }, extra: a.e },
|
|
680
680
|
b = a.ri;
|
|
681
681
|
a.ab_push_fetch_test_triggers_key &&
|
|
682
|
-
(h.info("Service worker 6.
|
|
682
|
+
(h.info("Service worker 6.2.0 found trigger fetch key in push payload."),
|
|
683
683
|
(f.fetchTriggers = !0));
|
|
684
684
|
var k = a.ab_cd;
|
|
685
685
|
null != k &&
|
|
@@ -723,7 +723,7 @@ self.addEventListener("activate", function () {
|
|
|
723
723
|
return self.clients.claim();
|
|
724
724
|
});
|
|
725
725
|
self.addEventListener("push", function (a) {
|
|
726
|
-
h.info("Service worker 6.
|
|
726
|
+
h.info("Service worker 6.2.0 received push");
|
|
727
727
|
null != a.data && null != a.data.json
|
|
728
728
|
? Q(a, R(a.data.json()))
|
|
729
729
|
: Q(
|