@braze/service-worker 4.7.0 → 4.7.1
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.7.
|
|
2
|
+
* Braze Web SDK v4.7.1
|
|
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-05-11
|
|
6
6
|
*/
|
|
7
7
|
"use strict";
|
|
8
8
|
const k = {
|
|
@@ -259,12 +259,12 @@ const y = {
|
|
|
259
259
|
},
|
|
260
260
|
warn: function(a) {
|
|
261
261
|
y.o &&
|
|
262
|
-
((a = "Braze SDK Warning: " + a + " (v4.7.
|
|
262
|
+
((a = "Braze SDK Warning: " + a + " (v4.7.1)"),
|
|
263
263
|
null != y.j ? y.j(a) : console.warn(a));
|
|
264
264
|
},
|
|
265
265
|
error: function(a) {
|
|
266
266
|
y.o &&
|
|
267
|
-
((a = "Braze SDK Error: " + a + " (v4.7.
|
|
267
|
+
((a = "Braze SDK Error: " + a + " (v4.7.1)"),
|
|
268
268
|
null != y.j ? y.j(a) : console.error(a));
|
|
269
269
|
}
|
|
270
270
|
};
|
|
@@ -352,7 +352,7 @@ function I(a, b, c) {
|
|
|
352
352
|
d.time = Math.floor(new Date().valueOf() / 1e3);
|
|
353
353
|
d.device_id = c;
|
|
354
354
|
d.api_key = a;
|
|
355
|
-
d.sdk_version = "4.7.
|
|
355
|
+
d.sdk_version = "4.7.1";
|
|
356
356
|
d.sdk_flavor = "amp";
|
|
357
357
|
d.respond_with = { config: { config_time: 0 } };
|
|
358
358
|
fetch(b + "/data/", {
|
|
@@ -392,7 +392,7 @@ function J(a, b, c, f, e, d, g, h, m) {
|
|
|
392
392
|
const u = {};
|
|
393
393
|
u.device_id = c;
|
|
394
394
|
u.api_key = a;
|
|
395
|
-
u.sdk_version = "4.7.
|
|
395
|
+
u.sdk_version = "4.7.1";
|
|
396
396
|
null != d && (u.sdk_flavor = d);
|
|
397
397
|
var v = null;
|
|
398
398
|
let K = null,
|
|
@@ -458,7 +458,7 @@ function M(a, b) {
|
|
|
458
458
|
a.time = e;
|
|
459
459
|
a.user_id = d.userId;
|
|
460
460
|
g.events = [a];
|
|
461
|
-
g.sdk_version = "4.7.
|
|
461
|
+
g.sdk_version = "4.7.1";
|
|
462
462
|
e = {
|
|
463
463
|
"Content-Type": "application/json",
|
|
464
464
|
"X-Braze-Api-Key": g.api_key
|
|
@@ -702,7 +702,7 @@ function V(a) {
|
|
|
702
702
|
d = { url: a.u, ab_ids: { cid: a.cid }, extra: a.e },
|
|
703
703
|
g = a.ri;
|
|
704
704
|
a.ab_push_fetch_test_triggers_key &&
|
|
705
|
-
(E.info("Service worker 4.7.
|
|
705
|
+
(E.info("Service worker 4.7.1 found trigger fetch key in push payload."),
|
|
706
706
|
(d.fetchTriggers = !0));
|
|
707
707
|
var h = a.ab_cd;
|
|
708
708
|
if (null != h) {
|
|
@@ -748,7 +748,7 @@ self.addEventListener("activate", function() {
|
|
|
748
748
|
return self.clients.claim();
|
|
749
749
|
});
|
|
750
750
|
self.addEventListener("push", function(a) {
|
|
751
|
-
E.info("Service worker 4.7.
|
|
751
|
+
E.info("Service worker 4.7.1 received push");
|
|
752
752
|
null != a.data && null != a.data.json
|
|
753
753
|
? U(a, V(a.data.json()))
|
|
754
754
|
: U(
|