@braze/web-sdk 5.3.0 → 5.3.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/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Type definitions for @braze/web-sdk v5.3.0
2
+ * Type definitions for @braze/web-sdk v5.3.1
3
3
  * Project: https://github.com/braze-inc/braze-web-sdk
4
4
  * (c) Braze, Inc. 2024 - http://braze.com
5
5
  * License available at https://github.com/braze-inc/braze-web-sdk/blob/master/LICENSE
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@braze/web-sdk",
3
- "version": "5.3.0",
3
+ "version": "5.3.1",
4
4
  "description": "Braze SDK for web sites and other JS platforms.",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -24,13 +24,13 @@ const r = {
24
24
  },
25
25
  warn: function (n) {
26
26
  if (r.zg) {
27
- const o = "Braze SDK Warning: " + n + " (v5.3.0)";
27
+ const o = "Braze SDK Warning: " + n + " (v5.3.1)";
28
28
  null != r.vd ? r.vd(o) : console.warn(o);
29
29
  }
30
30
  },
31
31
  error: function (n) {
32
32
  if (r.zg) {
33
- const o = "Braze SDK Error: " + n + " (v5.3.0)";
33
+ const o = "Braze SDK Error: " + n + " (v5.3.1)";
34
34
  null != r.vd ? r.vd(o) : console.error(o);
35
35
  }
36
36
  },
@@ -354,7 +354,7 @@ export default class ea {
354
354
  if (!vt.isPushSupported())
355
355
  return r.info(ea.Nn), void ("function" == typeof t && t());
356
356
  this.ln
357
- ? navigator.serviceWorker.getRegistration().then((e) => {
357
+ ? navigator.serviceWorker.getRegistration(this.un).then((e) => {
358
358
  e
359
359
  ? e.pushManager
360
360
  .getSubscription()
@@ -73,7 +73,7 @@ class Vt {
73
73
  (this.Yo = []),
74
74
  (this.Ho = []),
75
75
  (this._e = []),
76
- (this.Wo = "5.3.0");
76
+ (this.Wo = "5.3.1");
77
77
  }
78
78
  Xo(t) {
79
79
  this.qo.It(t);
@@ -35,7 +35,7 @@ export default class Ht {
35
35
  }
36
36
  Y() {
37
37
  return {
38
- s: "5.3.0",
38
+ s: "5.3.1",
39
39
  l: this.hl,
40
40
  e: this.gl,
41
41
  a: this.fl,
@@ -50,7 +50,7 @@ export default class Ht {
50
50
  static qn(t) {
51
51
  let i = t.l;
52
52
  return (
53
- "5.3.0" !== t.s && (i = 0),
53
+ "5.3.1" !== t.s && (i = 0),
54
54
  new Ht(i, t.e, t.a, t.p, t.m, t.v, t.c, t.f, t.grl)
55
55
  );
56
56
  }
@@ -1,7 +1,7 @@
1
1
  import e, { OPTIONS as L } from "../../managers/braze-instance.js";
2
2
  export function attachCSS(n, t, o) {
3
3
  const c = n || document.querySelector("head"),
4
- s = `ab-${t}-css-definitions-${"5.3.0".replace(/\./g, "-")}`;
4
+ s = `ab-${t}-css-definitions-${"5.3.1".replace(/\./g, "-")}`;
5
5
  if (!c) return;
6
6
  const a = c.ownerDocument || document;
7
7
  if (null == a.getElementById(s)) {