File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1212 " access-control" ,
1313 " access-control-request-headers" ,
1414 " access-control-request-method" ,
15- " activate-storage-access" ,
1615 " alpn" ,
1716 " alt-used" ,
1817 " alternates" ,
Original file line number Diff line number Diff line change 11import { execSync } from "node:child_process" ;
22import { writeFile } from "node:fs/promises" ;
3+ import { tryCatch } from "ramda" ;
34import { 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
195201const 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
203208console . info ( "Current state" , mtime ) ;
204209
You can’t perform that action at this time.
0 commit comments