@teamscala/service-boot 0.23.463 → 0.23.464

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/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  },
7
7
  "name": "@teamscala/service-boot",
8
8
  "type": "module",
9
- "version": "0.23.463",
9
+ "version": "0.23.464",
10
10
  "sideEffects": false,
11
11
  "imports": {
12
12
  "#service-boot/*": "./src/*",
@@ -178,6 +178,19 @@ export const proposalGateConfig: ContentGateConfig = {
178
178
  headerData.row2Value = "";
179
179
  headerData.row3Value = "";
180
180
  }
181
+ // Neutralize the CRM contact record too. The v8 adapter ignores select
182
+ // (the full record returns), so without this the gate floor's hydration
183
+ // payload ships the recipient's whole contact row — first/last/full
184
+ // name, emails, phones, CRM ids — to every unauthorised visitor. The
185
+ // company fields stay: the header's Organisation row shows the company,
186
+ // which is brand chrome, not recipient identity.
187
+ const contact = resolved.contact as Record<string, unknown> | undefined;
188
+ if (contact) {
189
+ const keep = new Set(["id", "company_id", "company_name", "company_website"]);
190
+ for (const key of Object.keys(contact)) {
191
+ if (!keep.has(key)) contact[key] = "";
192
+ }
193
+ }
181
194
  },
182
195
  };
183
196