@braze/web-sdk 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/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Type definitions for @braze/web-sdk v4.10.0
2
+ * Type definitions for @braze/web-sdk v4.10.2
3
3
  * Project: https://github.com/braze-inc/braze-web-sdk
4
4
  * (c) Braze, Inc. 2023 - 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": "4.10.0",
3
+ "version": "4.10.2",
4
4
  "description": "Braze SDK for web sites and other JS platforms.",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -0,0 +1,6 @@
1
+ export { default as logger } from "./logger.js";
2
+ export { default as EncodingUtils } from "./encoding-utils.js";
3
+ export { EventTypes, InternalEventTypes } from "./event-types.js";
4
+ export { default as Guid } from "./guid.js";
5
+ export { default as IndexedDBAdapter } from "./indexed-db-adapter.js";
6
+ export { default as SupportedOptions } from "./supported-options.js";
@@ -24,13 +24,13 @@ const Ue = {
24
24
  },
25
25
  warn: function (n) {
26
26
  if (Ue.zg) {
27
- const o = "Braze SDK Warning: " + n + " (v4.10.0)";
27
+ const o = "Braze SDK Warning: " + n + " (v4.10.2)";
28
28
  null != Ue.j ? Ue.j(o) : console.warn(o);
29
29
  }
30
30
  },
31
31
  error: function (n) {
32
32
  if (Ue.zg) {
33
- const o = "Braze SDK Error: " + n + " (v4.10.0)";
33
+ const o = "Braze SDK Error: " + n + " (v4.10.2)";
34
34
  null != Ue.j ? Ue.j(o) : console.error(o);
35
35
  }
36
36
  },
@@ -73,7 +73,7 @@ class Wt {
73
73
  (this.Ko = []),
74
74
  (this.Ho = []),
75
75
  (this.Ve = []),
76
- (this.jo = "4.10.0");
76
+ (this.jo = "4.10.2");
77
77
  }
78
78
  $o(t) {
79
79
  this.Vo.lt(t);
@@ -180,7 +180,7 @@ export default class O {
180
180
  ) {
181
181
  null == n[e] && (n[e] = {});
182
182
  for (const t in s) n[e][t] = s[t];
183
- } else null != s && (n[e] = s);
183
+ } else n[e] = s;
184
184
  return (r[o] = n), this._E.store(STORAGE_KEYS.k.eE, r);
185
185
  }
186
186
  AE() {
@@ -28,7 +28,7 @@ export default class Kt {
28
28
  }
29
29
  ss() {
30
30
  return {
31
- s: "4.10.0",
31
+ s: "4.10.2",
32
32
  l: this.ol,
33
33
  e: this.cl,
34
34
  a: this.gl,
@@ -42,7 +42,7 @@ export default class Kt {
42
42
  static Yn(t) {
43
43
  let i = t.l;
44
44
  return (
45
- "4.10.0" !== t.s && (i = 0), new Kt(i, t.e, t.a, t.p, t.m, t.v, t.c, t.f)
45
+ "4.10.2" !== t.s && (i = 0), new Kt(i, t.e, t.a, t.p, t.m, t.v, t.c, t.f)
46
46
  );
47
47
  }
48
48
  }
@@ -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-${"4.10.0".replace(/\./g, "-")}`;
4
+ s = `ab-${t}-css-definitions-${"4.10.2".replace(/\./g, "-")}`;
5
5
  if (!c) return;
6
6
  const a = c.ownerDocument || document;
7
7
  if (null == a.getElementById(s)) {