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