Skip to content

Commit d848cd4

Browse files
Well-known headers update (#2375)
This PR contains automated updates generated by the weekly workflow. --------- Co-authored-by: RobinTail <[email protected]> Co-authored-by: Robin Tail <[email protected]>
1 parent 3aa7b61 commit d848cd4

2 files changed

Lines changed: 11 additions & 5 deletions

File tree

src/well-known-headers.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@
162162
"safe",
163163
"schedule-reply",
164164
"schedule-tag",
165+
"sec-fetch-storage-access",
165166
"sec-gpc",
166167
"sec-purpose",
167168
"sec-token-binding",

tools/headers.ts

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { execSync } from "node:child_process";
22
import { writeFile } from "node:fs/promises";
3+
import { tryCatch } from "ramda";
34
import { z } from "zod";
45

56
/**
@@ -48,6 +49,11 @@ const responseOnlyHeaders = {
4849
reason:
4950
"Specifies how long preflight results can be cached in CORS responses.",
5051
},
52+
"activate-storage-access": {
53+
reason: "response header",
54+
proof:
55+
"https://developers.google.com/privacy-sandbox/blog/storage-access-api-headers-logic",
56+
},
5157
age: {
5258
proof: "Defined in RFC 7234, Section 5.1.",
5359
reason:
@@ -194,11 +200,10 @@ const responseOnlyHeaders = {
194200

195201
const dest = "src/well-known-headers.json";
196202

197-
const mtime = new Date(
198-
execSync(`git log -1 --pretty="format:%ci" ${dest}`, {
199-
encoding: "utf8",
200-
}),
201-
);
203+
const mtime = tryCatch(
204+
(cmd) => new Date(execSync(cmd, { encoding: "utf8" })),
205+
() => undefined,
206+
)(`git log -1 --pretty="format:%ci" ${dest}`);
202207

203208
console.info("Current state", mtime);
204209

0 commit comments

Comments
 (0)