@braze/web-sdk 5.1.0 → 5.1.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.1.
|
|
2
|
+
* Type definitions for @braze/web-sdk v5.1.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
package/shared-lib/logger.js
CHANGED
|
@@ -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.1.
|
|
27
|
+
const o = "Braze SDK Warning: " + n + " (v5.1.1)";
|
|
28
28
|
null != r.dd ? r.dd(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.1.
|
|
33
|
+
const o = "Braze SDK Error: " + n + " (v5.1.1)";
|
|
34
34
|
null != r.dd ? r.dd(o) : console.error(o);
|
|
35
35
|
}
|
|
36
36
|
},
|
|
@@ -35,7 +35,7 @@ export default class Gt {
|
|
|
35
35
|
}
|
|
36
36
|
Y() {
|
|
37
37
|
return {
|
|
38
|
-
s: "5.1.
|
|
38
|
+
s: "5.1.1",
|
|
39
39
|
l: this.ol,
|
|
40
40
|
e: this.gl,
|
|
41
41
|
a: this.fl,
|
|
@@ -50,7 +50,7 @@ export default class Gt {
|
|
|
50
50
|
static En(t) {
|
|
51
51
|
let i = t.l;
|
|
52
52
|
return (
|
|
53
|
-
"5.1.
|
|
53
|
+
"5.1.1" !== t.s && (i = 0),
|
|
54
54
|
new Gt(i, t.e, t.a, t.p, t.m, t.v, t.c, t.f, t.grl)
|
|
55
55
|
);
|
|
56
56
|
}
|
|
@@ -210,6 +210,7 @@ export default class Lt {
|
|
|
210
210
|
for (let t = 0; t < i.length; t++) i[t].changeUser(null == e);
|
|
211
211
|
null != e && this.u.hi(o.C.J),
|
|
212
212
|
this.u.hi(o.C.Ja),
|
|
213
|
+
this.u.hi(o.C.ai),
|
|
213
214
|
this.openSession(),
|
|
214
215
|
r.info('Changed user to "' + t + '".');
|
|
215
216
|
} else {
|
package/src/ui/js/attach-css.js
CHANGED
|
@@ -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.1.
|
|
4
|
+
s = `ab-${t}-css-definitions-${"5.1.1".replace(/\./g, "-")}`;
|
|
5
5
|
if (!c) return;
|
|
6
6
|
const a = c.ownerDocument || document;
|
|
7
7
|
if (null == a.getElementById(s)) {
|