@braze/service-worker 4.9.0 → 4.10.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@braze/service-worker",
3
- "version": "4.9.0",
3
+ "version": "4.10.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 v4.9.0
2
+ * Braze Web SDK v4.10.0
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-09-15
5
+ * Compiled on 2023-10-03
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.9.0)"),
260
+ ((a = "Braze SDK Warning: " + a + " (v4.10.0)"),
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.9.0)"),
265
+ ((a = "Braze SDK Error: " + a + " (v4.10.0)"),
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.9.0";
373
+ e.sdk_version = "4.10.0";
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.9.0";
418
+ u.sdk_version = "4.10.0";
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.9.0";
486
+ d.sdk_version = "4.10.0";
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.9.0 found trigger fetch key in push payload."),
732
+ (E.info("Service worker 4.10.0 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.9.0 received push");
778
+ E.info("Service worker 4.10.0 received push");
779
779
  null != a.data && null != a.data.json
780
780
  ? U(a, V(a.data.json()))
781
781
  : U(