@teamscala/service-boot 0.23.462 → 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
|
@@ -12,10 +12,12 @@
|
|
|
12
12
|
* never goes unnoticed.
|
|
13
13
|
*
|
|
14
14
|
* Polls via the authenticated `gh` CLI (`@teamscala/os` spawn — `gh api` is the
|
|
15
|
-
* off-the-shelf GitHub client; NOT a bespoke fetch).
|
|
16
|
-
* `@teamscala/api-github`
|
|
17
|
-
*
|
|
18
|
-
*
|
|
15
|
+
* off-the-shelf GitHub client; NOT a bespoke fetch). There is deliberately NO
|
|
16
|
+
* `@teamscala/api-github` adapter: one existed as a hand-written `rest_client`
|
|
17
|
+
* row with zero importers — this handler chose the CLI instead — so it was
|
|
18
|
+
* deleted on 2026-09-02 rather than converted to a spec-derived adapter. GitHub
|
|
19
|
+
* publishes an OpenAPI spec, so if a future consumer needs typed access the
|
|
20
|
+
* answer is a spec-derived row, never a hand-listed one.
|
|
19
21
|
*
|
|
20
22
|
* Registered under slug `@teamscala/service-boot:upstream-issue-sync`. Mirrors
|
|
21
23
|
* `bun-stable-watch` (dev-host pg-boss handler). Reads rows via the `getAllEntries`
|
package/src/proposal-gate.ts
CHANGED
|
@@ -164,6 +164,33 @@ export const proposalGateConfig: ContentGateConfig = {
|
|
|
164
164
|
prop.prepared_for = "";
|
|
165
165
|
prop.cover_image_url = "";
|
|
166
166
|
}
|
|
167
|
+
// Neutralize the resolved headerData too: it carries the recipient's
|
|
168
|
+
// name (row1Value = prepared_for) and title, resolved during the loader
|
|
169
|
+
// phase BEFORE this gate ran — without this, __PAGE_DATA__ ships the
|
|
170
|
+
// recipient name to every unauthorised visitor while the body is
|
|
171
|
+
// withheld. Labels stay (generic words); values go. Measured 2026-09-03:
|
|
172
|
+
// the gate floor's hydration payload carried the recipient name to
|
|
173
|
+
// anonymous visitors on the exact page this outage was about.
|
|
174
|
+
const headerData = resolved.headerData as Record<string, unknown> | undefined;
|
|
175
|
+
if (headerData) {
|
|
176
|
+
headerData.title = "";
|
|
177
|
+
headerData.row1Value = "";
|
|
178
|
+
headerData.row2Value = "";
|
|
179
|
+
headerData.row3Value = "";
|
|
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
|
+
}
|
|
167
194
|
},
|
|
168
195
|
};
|
|
169
196
|
|