flagmint-js-sdk 2.2.3-rc.0 → 2.2.3-rc.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/dist/flagmint.cjs.js +17 -2
- package/dist/flagmint.cjs.js.map +1 -1
- package/dist/flagmint.es.js +17 -2
- package/dist/flagmint.es.js.map +1 -1
- package/dist/flagmint.umd.js +17 -2
- package/dist/flagmint.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/flagmint.cjs.js
CHANGED
|
@@ -38592,12 +38592,27 @@ function parseRulesSnapshot$1(raw) {
|
|
|
38592
38592
|
if (!parsed || typeof parsed.version !== "number" || typeof parsed.expiresAt !== "number" || !Array.isArray(parsed.flags) || typeof parsed.segments !== "object" || parsed.segments === null) {
|
|
38593
38593
|
return null;
|
|
38594
38594
|
}
|
|
38595
|
-
|
|
38595
|
+
const snapshot = {
|
|
38596
38596
|
version: parsed.version,
|
|
38597
38597
|
expiresAt: parsed.expiresAt,
|
|
38598
38598
|
flags: parsed.flags,
|
|
38599
38599
|
segments: parsed.segments || {}
|
|
38600
38600
|
};
|
|
38601
|
+
if (Array.isArray(parsed.piiAttributes)) {
|
|
38602
|
+
snapshot.piiAttributes = parsed.piiAttributes.filter(
|
|
38603
|
+
(attr) => typeof attr === "string"
|
|
38604
|
+
);
|
|
38605
|
+
}
|
|
38606
|
+
if (typeof parsed.piiSalt === "string") {
|
|
38607
|
+
snapshot.piiSalt = parsed.piiSalt;
|
|
38608
|
+
}
|
|
38609
|
+
if (typeof parsed.piiValueEncoding === "string") {
|
|
38610
|
+
snapshot.piiValueEncoding = parsed.piiValueEncoding;
|
|
38611
|
+
}
|
|
38612
|
+
if (parsed.piiWireBroken === true) {
|
|
38613
|
+
snapshot.piiWireBroken = true;
|
|
38614
|
+
}
|
|
38615
|
+
return snapshot;
|
|
38601
38616
|
} catch {
|
|
38602
38617
|
return null;
|
|
38603
38618
|
}
|
|
@@ -39100,7 +39115,7 @@ class SseTransport {
|
|
|
39100
39115
|
this.connectPromise = new Promise((resolve, reject) => {
|
|
39101
39116
|
this.connectResolve = resolve;
|
|
39102
39117
|
this.connectReject = reject;
|
|
39103
|
-
const sdkVersion = "2.2.3-rc.
|
|
39118
|
+
const sdkVersion = "2.2.3-rc.1";
|
|
39104
39119
|
const platform2 = typeof window !== "undefined" ? "browser" : "nodejs";
|
|
39105
39120
|
const wrapperName = this.configOptions?.wrapper?.name || "native-js";
|
|
39106
39121
|
const wrapperVersion = this.configOptions?.wrapper?.version || "none";
|