@braze/web-sdk
Advanced tools
Comparing version 5.6.0 to 5.6.1
{ | ||
"name": "@braze/web-sdk", | ||
"version": "5.6.0", | ||
"version": "5.6.1", | ||
"description": "Braze SDK for web sites and other JS platforms.", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -27,3 +27,3 @@ const N = { | ||
if (N.zg) { | ||
const o = "Braze SDK Warning: " + n + " (v5.6.0)"; | ||
const o = "Braze SDK Warning: " + n + " (v5.6.1)"; | ||
null != N.vd ? N.vd(o) : console.warn(o); | ||
@@ -34,3 +34,3 @@ } | ||
if (N.zg) { | ||
const o = "Braze SDK Error: " + n + " (v5.6.0)"; | ||
const o = "Braze SDK Error: " + n + " (v5.6.1)"; | ||
null != N.vd ? N.vd(o) : console.error(o); | ||
@@ -37,0 +37,0 @@ } |
@@ -77,3 +77,3 @@ import qt from "./auth-manager.js"; | ||
(this.Ir = []), | ||
(this.Vh = "5.6.0"); | ||
(this.Vh = "5.6.1"); | ||
} | ||
@@ -80,0 +80,0 @@ Ta(t) { |
@@ -41,3 +41,3 @@ import { | ||
return { | ||
s: "5.6.0", | ||
s: "5.6.1", | ||
l: this.dl, | ||
@@ -58,3 +58,3 @@ e: this.wl, | ||
return ( | ||
"5.6.0" !== t.s && (i = 0), | ||
"5.6.1" !== t.s && (i = 0), | ||
new Jt(i, t.e, t.a, t.p, t.m, t.v, t.c, t.f, t.grl, t.b) | ||
@@ -61,0 +61,0 @@ ); |
import r, { OPTIONS as z } from "../../managers/braze-instance.js"; | ||
export function attachCSS(n, t, o) { | ||
const c = n || document.querySelector("head"), | ||
e = `ab-${t}-css-definitions-${"5.6.0".replace(/\./g, "-")}`; | ||
e = `ab-${t}-css-definitions-${"5.6.1".replace(/\./g, "-")}`; | ||
if (!c) return; | ||
@@ -6,0 +6,0 @@ const s = c.ownerDocument || document; |
import ai from "./client-hints-parser.js"; | ||
import oi from "./user-agent-parser.js"; | ||
import { Browsers as gi, OperatingSystems as so } from "./device-constants.js"; | ||
import gi from "./user-agent-parser.js"; | ||
import { Browsers as oi, OperatingSystems as so } from "./device-constants.js"; | ||
class ui { | ||
constructor() { | ||
const t = navigator.userAgentData ? ai : oi; | ||
const t = navigator.userAgentData ? ai : gi; | ||
(this.Sg = new t()), | ||
@@ -24,3 +24,3 @@ (this.userAgent = navigator.userAgent), | ||
dE() { | ||
return this.browser === gi.Bg; | ||
return this.browser === oi.Bg; | ||
} | ||
@@ -77,2 +77,3 @@ Qa() { | ||
{ string: navigator.userAgent, cf: ["Web0S"], identity: "WebOS" }, | ||
{ string: navigator.userAgent, cf: "Tizen", identity: "Tizen" }, | ||
{ | ||
@@ -79,0 +80,0 @@ string: navigator.platform, |
import Oe from "./base-device-parser.js"; | ||
import { Browsers as gi } from "./device-constants.js"; | ||
import { Browsers as oi } from "./device-constants.js"; | ||
export default class ai extends Oe { | ||
@@ -44,3 +44,3 @@ constructor() { | ||
for (const r of s) { | ||
const s = this.Vc(gi), | ||
const s = this.Vc(oi), | ||
i = r.brand.match(s); | ||
@@ -47,0 +47,0 @@ if (i && i.length > 0) { |
import Oe from "./base-device-parser.js"; | ||
import { Browsers as gi, OperatingSystems as so } from "./device-constants.js"; | ||
export default class oi extends Oe { | ||
import { Browsers as oi, OperatingSystems as so } from "./device-constants.js"; | ||
export default class gi extends Oe { | ||
constructor() { | ||
super(), (this.fd = oi.Bc(navigator.userAgent || "")); | ||
super(), (this.fd = gi.Bc(navigator.userAgent || "")); | ||
} | ||
@@ -16,3 +16,3 @@ ef() { | ||
const e = r[n].string; | ||
let i = oi.nf(e, r[n]); | ||
let i = gi.nf(e, r[n]); | ||
if (i) | ||
@@ -45,3 +45,3 @@ return ( | ||
if ( | ||
e[1] === gi.rO && | ||
e[1] === oi.rO && | ||
((n = r.match(/\b(OPR|Edge|EdgA|Edg|UCBrowser)\/(\.?\d+(\.\d+)*)/)), | ||
@@ -52,17 +52,17 @@ null != n) | ||
(n = n.slice(1)), | ||
(n[0] = n[0].replace("OPR", gi.oO)), | ||
(n[0] = n[0].replace("EdgA", gi.eO)), | ||
"Edg" === n[0] && (n[0] = gi.eO), | ||
(n[0] = n[0].replace("OPR", oi.oO)), | ||
(n[0] = n[0].replace("EdgA", oi.eO)), | ||
"Edg" === n[0] && (n[0] = oi.eO), | ||
[n[0], n[1]] | ||
); | ||
if ( | ||
e[1] === gi.Bg && | ||
e[1] === oi.Bg && | ||
((n = r.match(/\b(EdgiOS)\/(\.?\d+(\.\d+)*)/)), null != n) | ||
) | ||
return ( | ||
(n = n.slice(1)), (n[0] = n[0].replace("EdgiOS", gi.eO)), [n[0], n[1]] | ||
(n = n.slice(1)), (n[0] = n[0].replace("EdgiOS", oi.eO)), [n[0], n[1]] | ||
); | ||
if ( | ||
((e = e[2] ? [e[1], e[2]] : [null, null]), | ||
e[0] === gi.Bg && | ||
e[0] === oi.Bg && | ||
null != (n = r.match(/version\/(\.?\d+(\.\d+)*)/i)) && | ||
@@ -72,3 +72,3 @@ e.splice(1, 1, n[1]), | ||
e.splice(1, 1, n[2]), | ||
e[0] === gi.oO && null != (n = r.match(/mini\/(\.?\d+(\.\d+)*)/i))) | ||
e[0] === oi.oO && null != (n = r.match(/mini\/(\.?\d+(\.\d+)*)/i))) | ||
) | ||
@@ -78,3 +78,3 @@ return ["Opera Mini", n[1] || ""]; | ||
const r = e[0].toLowerCase(); | ||
"crios" === r && (e[0] = gi.rO), | ||
"crios" === r && (e[0] = oi.rO), | ||
"tizen" === r && ((e[0] = "Samsung Smart TV"), (e[1] = null)), | ||
@@ -81,0 +81,0 @@ "samsungbrowser" === r && (e[0] = "Samsung Browser"); |
Sorry, the diff of this file is too big to display
481188
13693