@braze/service-worker 4.6.2 → 4.6.3

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.6.2",
3
+ "version": "4.6.3",
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.6.2
2
+ * Braze Web SDK v4.6.3
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-02-27
5
+ * Compiled on 2023-03-06
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.6.2)"),
262
+ ((a = "Braze SDK Warning: " + a + " (v4.6.3)"),
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.6.2)"),
267
+ ((a = "Braze SDK Error: " + a + " (v4.6.3)"),
268
268
  null != y.j ? y.j(a) : console.error(a));
269
269
  }
270
270
  };
@@ -351,7 +351,7 @@ function I(a, b, c) {
351
351
  d.time = Math.floor(new Date().valueOf() / 1e3);
352
352
  d.device_id = c;
353
353
  d.api_key = a;
354
- d.sdk_version = "4.6.2";
354
+ d.sdk_version = "4.6.3";
355
355
  d.sdk_flavor = "amp";
356
356
  d.respond_with = { config: { config_time: 0 } };
357
357
  fetch(b + "/data/", {
@@ -391,7 +391,7 @@ function J(a, b, c, f, e, d, g, h, m) {
391
391
  const u = {};
392
392
  u.device_id = c;
393
393
  u.api_key = a;
394
- u.sdk_version = "4.6.2";
394
+ u.sdk_version = "4.6.3";
395
395
  null != d && (u.sdk_flavor = d);
396
396
  var v = null;
397
397
  let K = null,
@@ -457,7 +457,7 @@ function M(a, b) {
457
457
  a.time = e;
458
458
  a.user_id = d.userId;
459
459
  g.events = [a];
460
- g.sdk_version = "4.6.2";
460
+ g.sdk_version = "4.6.3";
461
461
  e = {
462
462
  "Content-Type": "application/json",
463
463
  "X-Braze-Api-Key": g.api_key
@@ -701,7 +701,7 @@ function V(a) {
701
701
  d = { url: a.u, ab_ids: { cid: a.cid }, extra: a.e },
702
702
  g = a.ri;
703
703
  a.ab_push_fetch_test_triggers_key &&
704
- (E.info("Service worker 4.6.2 found trigger fetch key in push payload."),
704
+ (E.info("Service worker 4.6.3 found trigger fetch key in push payload."),
705
705
  (d.fetchTriggers = !0));
706
706
  var h = a.ab_cd;
707
707
  if (null != h) {
@@ -747,7 +747,7 @@ self.addEventListener("activate", function() {
747
747
  return self.clients.claim();
748
748
  });
749
749
  self.addEventListener("push", function(a) {
750
- E.info("Service worker 4.6.2 received push");
750
+ E.info("Service worker 4.6.3 received push");
751
751
  null != a.data && null != a.data.json
752
752
  ? U(a, V(a.data.json()))
753
753
  : U(