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.
@@ -38594,12 +38594,27 @@ var __publicField = (obj, key, value) => {
38594
38594
  if (!parsed || typeof parsed.version !== "number" || typeof parsed.expiresAt !== "number" || !Array.isArray(parsed.flags) || typeof parsed.segments !== "object" || parsed.segments === null) {
38595
38595
  return null;
38596
38596
  }
38597
- return {
38597
+ const snapshot = {
38598
38598
  version: parsed.version,
38599
38599
  expiresAt: parsed.expiresAt,
38600
38600
  flags: parsed.flags,
38601
38601
  segments: parsed.segments || {}
38602
38602
  };
38603
+ if (Array.isArray(parsed.piiAttributes)) {
38604
+ snapshot.piiAttributes = parsed.piiAttributes.filter(
38605
+ (attr) => typeof attr === "string"
38606
+ );
38607
+ }
38608
+ if (typeof parsed.piiSalt === "string") {
38609
+ snapshot.piiSalt = parsed.piiSalt;
38610
+ }
38611
+ if (typeof parsed.piiValueEncoding === "string") {
38612
+ snapshot.piiValueEncoding = parsed.piiValueEncoding;
38613
+ }
38614
+ if (parsed.piiWireBroken === true) {
38615
+ snapshot.piiWireBroken = true;
38616
+ }
38617
+ return snapshot;
38603
38618
  } catch {
38604
38619
  return null;
38605
38620
  }
@@ -39102,7 +39117,7 @@ var __publicField = (obj, key, value) => {
39102
39117
  this.connectPromise = new Promise((resolve, reject) => {
39103
39118
  this.connectResolve = resolve;
39104
39119
  this.connectReject = reject;
39105
- const sdkVersion = "2.2.3-rc.0";
39120
+ const sdkVersion = "2.2.3-rc.1";
39106
39121
  const platform2 = typeof window !== "undefined" ? "browser" : "nodejs";
39107
39122
  const wrapperName = this.configOptions?.wrapper?.name || "native-js";
39108
39123
  const wrapperVersion = this.configOptions?.wrapper?.version || "none";