@braze/service-worker 4.10.0 → 4.10.2
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 v4.10.
|
|
2
|
+
* Braze Web SDK v4.10.2
|
|
3
3
|
* (c) Braze, Inc. 2023 - http://braze.com
|
|
4
4
|
* License available at https://github.com/braze-inc/braze-web-sdk/blob/master/LICENSE
|
|
5
|
-
* Compiled on 2023-
|
|
5
|
+
* Compiled on 2023-12-18
|
|
6
6
|
*/
|
|
7
7
|
function k(a) {
|
|
8
8
|
if ("indexedDB" in a.parent) return a.parent.indexedDB;
|
|
@@ -257,12 +257,12 @@ const w = {
|
|
|
257
257
|
},
|
|
258
258
|
warn: function (a) {
|
|
259
259
|
w.o &&
|
|
260
|
-
((a = "Braze SDK Warning: " + a + " (v4.10.
|
|
260
|
+
((a = "Braze SDK Warning: " + a + " (v4.10.2)"),
|
|
261
261
|
null != w.j ? w.j(a) : console.warn(a));
|
|
262
262
|
},
|
|
263
263
|
error: function (a) {
|
|
264
264
|
w.o &&
|
|
265
|
-
((a = "Braze SDK Error: " + a + " (v4.10.
|
|
265
|
+
((a = "Braze SDK Error: " + a + " (v4.10.2)"),
|
|
266
266
|
null != w.j ? w.j(a) : console.error(a));
|
|
267
267
|
},
|
|
268
268
|
};
|
|
@@ -370,7 +370,7 @@ function I(a, b, c) {
|
|
|
370
370
|
e.time = Math.floor(new Date().valueOf() / 1e3);
|
|
371
371
|
e.device_id = c;
|
|
372
372
|
e.api_key = a;
|
|
373
|
-
e.sdk_version = "4.10.
|
|
373
|
+
e.sdk_version = "4.10.2";
|
|
374
374
|
e.sdk_flavor = "amp";
|
|
375
375
|
e.respond_with = { config: { config_time: 0 } };
|
|
376
376
|
fetch(b + "/data/", {
|
|
@@ -415,7 +415,7 @@ function J(a, b, c, f, g, e, d, h, m) {
|
|
|
415
415
|
const u = {};
|
|
416
416
|
u.device_id = c;
|
|
417
417
|
u.api_key = a;
|
|
418
|
-
u.sdk_version = "4.10.
|
|
418
|
+
u.sdk_version = "4.10.2";
|
|
419
419
|
null != e && (u.sdk_flavor = e);
|
|
420
420
|
var v = null;
|
|
421
421
|
let K = null,
|
|
@@ -483,7 +483,7 @@ function M(a, b) {
|
|
|
483
483
|
a.time = g;
|
|
484
484
|
a.user_id = e.userId;
|
|
485
485
|
d.events = [a];
|
|
486
|
-
d.sdk_version = "4.10.
|
|
486
|
+
d.sdk_version = "4.10.2";
|
|
487
487
|
g = {
|
|
488
488
|
"Content-Type": "application/json",
|
|
489
489
|
"X-Braze-Api-Key": d.api_key,
|
|
@@ -729,7 +729,7 @@ function V(a) {
|
|
|
729
729
|
e = { url: a.u, ab_ids: { cid: a.cid }, extra: a.e },
|
|
730
730
|
d = a.ri;
|
|
731
731
|
a.ab_push_fetch_test_triggers_key &&
|
|
732
|
-
(E.info("Service worker 4.10.
|
|
732
|
+
(E.info("Service worker 4.10.2 found trigger fetch key in push payload."),
|
|
733
733
|
(e.fetchTriggers = !0));
|
|
734
734
|
var h = a.ab_cd;
|
|
735
735
|
if (null != h) {
|
|
@@ -775,7 +775,7 @@ self.addEventListener("activate", function () {
|
|
|
775
775
|
return self.clients.claim();
|
|
776
776
|
});
|
|
777
777
|
self.addEventListener("push", function (a) {
|
|
778
|
-
E.info("Service worker 4.10.
|
|
778
|
+
E.info("Service worker 4.10.2 received push");
|
|
779
779
|
null != a.data && null != a.data.json
|
|
780
780
|
? U(a, V(a.data.json()))
|
|
781
781
|
: U(
|