@flanksource/page-runtime 0.0.0-stage → 0.0.0
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/.vitest/gavel-reporter-3e3dfb64eda19344.mjs +59 -0
- package/.vitest/vitest-report-root-1793958008919344000.json +1 -0
- package/.vitest/vitest-report-root-1793958052786561000.json +1 -0
- package/.vitest/vitest-report-root-1793958143511414000.json +1 -0
- package/.vitest/vitest-report-root-1793958185908019000.json +1 -0
- package/.vitest/vitest-report-root-1793958252687550000.json +1 -0
- package/.vitest/vitest-report-root-1793958260385388000.json +1 -0
- package/.vitest/vitest-report-root-1793958312358683000.json +1 -0
- package/.vitest/vitest-report-root-1793958386118791000.json +1 -0
- package/.vitest/vitest-report-root-1793958388712140000.json +1 -0
- package/.vitest/vitest-report-root-1793958429135603000.json +1 -0
- package/.vitest/vitest-report-root-1793958433387809000.json +1 -0
- package/.vitest/vitest-report-root-1793958517322792000.json +1 -0
- package/.vitest/vitest-report-root-1793958542332252000.json +1 -0
- package/.vitest/vitest-report-root-1793958617698698000.json +1 -0
- package/.vitest/vitest-report-root-1793958676587753000.json +1 -0
- package/.vitest/vitest-report-root-1793958707827469000.json +1 -0
- package/.vitest/vitest-report-root-1793958729745028000.json +1 -0
- package/.vitest/vitest-report-root-1793958736696408000.json +1 -0
- package/.vitest/vitest-report-root-1793958740449993000.json +1 -0
- package/.vitest/vitest-report-root-1793958841510921000.json +1 -0
- package/.vitest/vitest-report-root-1793958847664582000.json +1 -0
- package/.vitest/vitest-report-root-1793958900327643000.json +1 -0
- package/.vitest/vitest-report-root-1793958950822823000.json +1 -0
- package/.vitest/vitest-report-root-1793959013655262000.json +1 -0
- package/.vitest/vitest-report-root-1793959017905881000.json +1 -0
- package/.vitest/vitest-report-root-1793959093169044000.json +1 -0
- package/.vitest/vitest-report-root-1793959093978087000.json +1 -0
- package/.vitest/vitest-report-root-1793959101111925000.json +1 -0
- package/.vitest/vitest-report-root-1793959145317906000.json +1 -0
- package/.vitest/vitest-report-root-1793959190760607000.json +1 -0
- package/.vitest/vitest-report-root-1793959249695805000.json +1 -0
- package/.vitest/vitest-report-root-1793959323191511000.json +1 -0
- package/.vitest/vitest-report-root-1793959453311564000.json +1 -0
- package/.vitest/vitest-report-root-1793959495806182000.json +1 -0
- package/.vitest/vitest-report-root-1793959499945435000.json +1 -0
- package/.vitest/vitest-report-root-1793959546773807000.json +1 -0
- package/.vitest/vitest-report-root-1793959583335593000.json +1 -0
- package/.vitest/vitest-report-root-1793959621479504000.json +1 -0
- package/.vitest/vitest-report-root-1793959651002360000.json +1 -0
- package/.vitest/vitest-report-root-1793959655646061000.json +1 -0
- package/.vitest/vitest-report-root-1793959741176826000.json +1 -0
- package/.vitest/vitest-report-root-1793959744743733000.json +1 -0
- package/.vitest/vitest-report-root-1793959833244182000.json +1 -0
- package/.vitest/vitest-report-root-1793959882131751000.json +1 -0
- package/.vitest/vitest-report-root-1793959887033254000.json +1 -0
- package/.vitest/vitest-report-root-1793960000631977000.json +1 -0
- package/.vitest/vitest-report-root-1793960011938504000.json +1 -0
- package/.vitest/vitest-report-root-1793961370018852000.json +1 -0
- package/.vitest/vitest-report-root-1793961745370827000.json +1 -0
- package/.vitest/vitest-report-root-1793961764143180000.json +1 -0
- package/.vitest/vitest-report-root-1793961835963066000.json +1 -0
- package/.vitest/vitest-report-root-1793961890729922000.json +1 -0
- package/.vitest/vitest-report-root-1793961968680074000.json +1 -0
- package/.vitest/vitest-report-root-1793962066862337000.json +1 -0
- package/.vitest/vitest-report-root-1793962087917497000.json +1 -0
- package/.vitest/vitest-report-root-1793962157254386000.json +1 -0
- package/.vitest/vitest-report-root-1793962171214865000.json +1 -0
- package/.vitest/vitest-report-root-1793962183290533000.json +1 -0
- package/.vitest/vitest-report-root-1793962184809932000.json +1 -0
- package/.vitest/vitest-report-root-1793962197715204000.json +1 -0
- package/.vitest/vitest-report-root-1793962244650717000.json +1 -0
- package/.vitest/vitest-report-root-1793962259802273000.json +1 -0
- package/.vitest/vitest-report-root-1793962278799745000.json +1 -0
- package/.vitest/vitest-report-root-1793962304412974000.json +1 -0
- package/.vitest/vitest-report-root-1793962328411454000.json +1 -0
- package/.vitest/vitest-report-root-1793962355747869000.json +1 -0
- package/.vitest/vitest-report-root-1793962381401572000.json +1 -0
- package/.vitest/vitest-report-root-1793962393326735000.json +1 -0
- package/.vitest/vitest-report-root-1793962393329206000.json +1 -0
- package/.vitest/vitest-report-root-1793962437796768000.json +1 -0
- package/.vitest/vitest-report-root-1793962444190384000.json +1 -0
- package/.vitest/vitest-report-root-1793962445347541000.json +1 -0
- package/.vitest/vitest-report-root-1793962473691143000.json +1 -0
- package/.vitest/vitest-report-root-1793962474291457000.json +1 -0
- package/.vitest/vitest-report-root-1793962499680468000.json +1 -0
- package/.vitest/vitest-report-root-1793962504410483000.json +1 -0
- package/.vitest/vitest-report-root-1793962516850524000.json +1 -0
- package/.vitest/vitest-report-root-1793962536736273000.json +1 -0
- package/.vitest/vitest-report-root-1793962551181783000.json +1 -0
- package/.vitest/vitest-report-root-1793962553575620000.json +1 -0
- package/.vitest/vitest-report-root-1793962555169730000.json +1 -0
- package/.vitest/vitest-report-root-1793962572639765000.json +1 -0
- package/.vitest/vitest-report-root-1793962597102952000.json +1 -0
- package/.vitest/vitest-report-root-1793962637156669000.json +1 -0
- package/.vitest/vitest-report-root-1793962653530027000.json +1 -0
- package/.vitest/vitest-report-root-1793962665824334000.json +1 -0
- package/.vitest/vitest-report-root-1793962682161714000.json +1 -0
- package/.vitest/vitest-report-root-1793962719526168000.json +1 -0
- package/.vitest/vitest-report-root-1793962723853934000.json +1 -0
- package/.vitest/vitest-report-root-1793962741927728000.json +1 -0
- package/.vitest/vitest-report-root-1793962794308371000.json +1 -0
- package/.vitest/vitest-report-root-1793962796334481000.json +1 -0
- package/.vitest/vitest-report-root-1793962798075169000.json +1 -0
- package/.vitest/vitest-report-root-1793962836466676000.json +1 -0
- package/.vitest/vitest-report-root-1793962846507317000.json +1 -0
- package/.vitest/vitest-report-root-1793962876266701000.json +1 -0
- package/.vitest/vitest-report-root-1793962922031308000.json +1 -0
- package/.vitest/vitest-report-root-1793962932957166000.json +1 -0
- package/.vitest/vitest-report-root-1793962946930725000.json +1 -0
- package/.vitest/vitest-report-root-1793963027896350000.json +1 -0
- package/.vitest/vitest-report-root-1793963036618707000.json +1 -0
- package/.vitest/vitest-report-root-1793963067365318000.json +1 -0
- package/.vitest/vitest-report-root-1793963077597641000.json +1 -0
- package/.vitest/vitest-report-root-1793963126365651000.json +1 -0
- package/.vitest/vitest-report-root-1793963208744553000.json +1 -0
- package/.vitest/vitest-report-root-1793963232806450000.json +1 -0
- package/.vitest/vitest-report-root-1793963325077422000.json +1 -0
- package/.vitest/vitest-report-root-1793963392172877000.json +1 -0
- package/.vitest/vitest-report-root-1793963398218324000.json +1 -0
- package/.vitest/vitest-report-root-1793963410749092000.json +1 -0
- package/.vitest/vitest-report-root-1793963437279580000.json +1 -0
- package/.vitest/vitest-report-root-1793963450096193000.json +1 -0
- package/.vitest/vitest-report-root-1793963478908641000.json +1 -0
- package/.vitest/vitest-report-root-1793963507838465000.json +1 -0
- package/.vitest/vitest-report-root-1793963528668174000.json +1 -0
- package/.vitest/vitest-report-root-1793963601860390000.json +1 -0
- package/.vitest/vitest-report-root-1793963611633446000.json +1 -0
- package/.vitest/vitest-report-root-1793963624713406000.json +1 -0
- package/.vitest/vitest-report-root-1793963680656685000.json +1 -0
- package/.vitest/vitest-report-root-1793963705231851000.json +1 -0
- package/.vitest/vitest-report-root-1793963708929500000.json +1 -0
- package/.vitest/vitest-report-root-1793963710267844000.json +1 -0
- package/.vitest/vitest-report-root-1793963713999248000.json +1 -0
- package/.vitest/vitest-report-root-1793963786513455000.json +1 -0
- package/.vitest/vitest-report-root-1793963792518765000.json +1 -0
- package/.vitest/vitest-report-root-1793963804089549000.json +1 -0
- package/.vitest/vitest-report-root-1793963840412921000.json +1 -0
- package/.vitest/vitest-report-root-1793963880361176000.json +1 -0
- package/.vitest/vitest-report-root-1793963935121106000.json +1 -0
- package/.vitest/vitest-report-root-1793963937290698000.json +1 -0
- package/.vitest/vitest-report-root-1793963977050773000.json +1 -0
- package/.vitest/vitest-report-root-1793963981229158000.json +1 -0
- package/.vitest/vitest-report-root-1793963989422080000.json +1 -0
- package/.vitest/vitest-report-root-1793964025924629000.json +1 -0
- package/.vitest/vitest-report-root-1793964027983705000.json +1 -0
- package/.vitest/vitest-report-root-1793964059969386000.json +1 -0
- package/.vitest/vitest-report-root-1793964071524069000.json +1 -0
- package/.vitest/vitest-report-root-1793964076285860000.json +1 -0
- package/.vitest/vitest-report-root-1793964077988100000.json +1 -0
- package/.vitest/vitest-report-root-1793964093289042000.json +1 -0
- package/.vitest/vitest-report-root-1793964102899356000.json +1 -0
- package/.vitest/vitest-report-root-1793964128089691000.json +1 -0
- package/.vitest/vitest-report-root-1793964129495156000.json +1 -0
- package/.vitest/vitest-report-root-1793964182849665000.json +1 -0
- package/.vitest/vitest-report-root-1793964223959893000.json +1 -0
- package/.vitest/vitest-report-root-1793964253351716000.json +1 -0
- package/.vitest/vitest-report-root-1793964290220122000.json +1 -0
- package/.vitest/vitest-report-root-1793964318037006000.json +1 -0
- package/.vitest/vitest-report-root-1793964334676691000.json +1 -0
- package/.vitest/vitest-report-root-1793964378520677000.json +1 -0
- package/.vitest/vitest-report-root-1793964383748994000.json +1 -0
- package/.vitest/vitest-report-root-1793964394042303000.json +1 -0
- package/.vitest/vitest-report-root-1793964466521881000.json +1 -0
- package/.vitest/vitest-report-root-1793964470478175000.json +1 -0
- package/.vitest/vitest-report-root-1793964484499019000.json +1 -0
- package/.vitest/vitest-report-root-1793964527645213000.json +1 -0
- package/.vitest/vitest-report-root-1793964608875865000.json +1 -0
- package/.vitest/vitest-report-root-1793964623608336000.json +1 -0
- package/.vitest/vitest-report-root-1793964629870846000.json +1 -0
- package/.vitest/vitest-report-root-1793964674515564000.json +1 -0
- package/.vitest/vitest-report-root-1793964706923651000.json +1 -0
- package/.vitest/vitest-report-root-1793964712832942000.json +1 -0
- package/.vitest/vitest-report-root-1793964714824633000.json +1 -0
- package/.vitest/vitest-report-root-1793964755433952000.json +1 -0
- package/.vitest/vitest-report-root-1793964783157670000.json +1 -0
- package/.vitest/vitest-report-root-1793964818963246000.json +1 -0
- package/.vitest/vitest-report-root-1793964843818548000.json +1 -0
- package/.vitest/vitest-report-root-1793964929824204000.json +1 -0
- package/.vitest/vitest-report-root-1793964973060713000.json +1 -0
- package/.vitest/vitest-report-root-1793964983122482000.json +1 -0
- package/.vitest/vitest-report-root-1793965107264567000.json +1 -0
- package/.vitest/vitest-report-root-1793965258759177000.json +1 -0
- package/.vitest/vitest-report-root-1793965277212091000.json +1 -0
- package/.vitest/vitest-report-root-1793965420648188000.json +1 -0
- package/.vitest/vitest-report-root-1793965611688414000.json +1 -0
- package/.vitest/vitest-report-root-1793965753407694000.json +1 -0
- package/.vitest/vitest-report-root-1793965766104309000.json +1 -0
- package/.vitest/vitest-report-root-1793965766823098000.json +1 -0
- package/.vitest/vitest-report-root-1793965806066109000.json +1 -0
- package/.vitest/vitest-report-root-1793965824697182000.json +1 -0
- package/.vitest/vitest-report-root-1793965904374564000.json +1 -0
- package/.vitest/vitest-report-root-1793965920838340000.json +1 -0
- package/.vitest/vitest-report-root-1793965932520617000.json +1 -0
- package/.vitest/vitest-report-root-1793965971574656000.json +1 -0
- package/.vitest/vitest-report-root-1793966049815024000.json +1 -0
- package/.vitest/vitest-report-root-1793966057888034000.json +1 -0
- package/.vitest/vitest-report-root-1793966066838868000.json +1 -0
- package/.vitest/vitest-report-root-1793966160347764000.json +1 -0
- package/.vitest/vitest-report-root-1793966196305985000.json +1 -0
- package/.vitest/vitest-report-root-1793966221538043000.json +1 -0
- package/.vitest/vitest-report-root-1793966251519918000.json +1 -0
- package/.vitest/vitest-report-root-1793966447000588000.json +1 -0
- package/.vitest/vitest-report-root-1793966463178249000.json +1 -0
- package/.vitest/vitest-report-root-1793966486995648000.json +1 -0
- package/.vitest/vitest-report-root-1793966726756953000.json +1 -0
- package/.vitest/vitest-report-root-1793966763656807000.json +1 -0
- package/.vitest/vitest-report-root-1793966979409799000.json +1 -0
- package/.vitest/vitest-report-root-1793967385250149000.json +1 -0
- package/.vitest/vitest-report-root-1793967617080163000.json +1 -0
- package/.vitest/vitest-report-root-1793967649428508000.json +1 -0
- package/.vitest/vitest-report-root-1793967773689520000.json +1 -0
- package/.vitest/vitest-report-root-1793968743743508000.json +1 -0
- package/.vitest/vitest-report-root-1793968846470407000.json +1 -0
- package/.vitest/vitest-report-root-1793968880878391000.json +1 -0
- package/.vitest/vitest-report-root-1793969027713529000.json +1 -0
- package/.vitest/vitest-report-root-1793969041841266000.json +1 -0
- package/.vitest/vitest-report-root-1793969142007468000.json +1 -0
- package/.vitest/vitest-report-root-1793969164867379000.json +1 -0
- package/.vitest/vitest-report-root-1793969193145858000.json +1 -0
- package/.vitest/vitest-report-root-1793969246818533000.json +1 -0
- package/.vitest/vitest-report-root-1793969270845486000.json +1 -0
- package/.vitest/vitest-report-root-1793969272514219000.json +1 -0
- package/.vitest/vitest-report-root-1793969302476105000.json +1 -0
- package/.vitest/vitest-report-root-1793969401697799000.json +1 -0
- package/.vitest/vitest-report-root-1793969433222630000.json +1 -0
- package/.vitest/vitest-report-root-1793969453350714000.json +1 -0
- package/.vitest/vitest-report-root-1793969567187400000.json +1 -0
- package/.vitest/vitest-report-root-1793969602230024000.json +1 -0
- package/.vitest/vitest-report-root-1793969633261063000.json +1 -0
- package/.vitest/vitest-report-root-1793969673876404000.json +1 -0
- package/.vitest/vitest-report-root-1793969702287010000.json +1 -0
- package/.vitest/vitest-report-root-1793969745828386000.json +1 -0
- package/.vitest/vitest-report-root-1793969893687205000.json +1 -0
- package/.vitest/vitest-report-root-1793969949642120000.json +1 -0
- package/.vitest/vitest-report-root-1793969981399076000.json +1 -0
- package/.vitest/vitest-report-root-1793970027152713000.json +1 -0
- package/.vitest/vitest-report-root-1793970030585158000.json +1 -0
- package/.vitest/vitest-report-root-1793970160195767000.json +1 -0
- package/.vitest/vitest-report-root-1793970215752422000.json +1 -0
- package/.vitest/vitest-report-root-1793970217114968000.json +1 -0
- package/.vitest/vitest-report-root-1793970329879319000.json +1 -0
- package/.vitest/vitest-report-root-1793970590586994000.json +1 -0
- package/.vitest/vitest-report-root-1793970625359990000.json +1 -0
- package/.vitest/vitest-report-root-1793970672590269000.json +1 -0
- package/.vitest/vitest-report-root-1793970796789022000.json +1 -0
- package/.vitest/vitest-report-root-1793970825710990000.json +1 -0
- package/.vitest/vitest-report-root-1793970884000509000.json +1 -0
- package/.vitest/vitest-report-root-1793970900444617000.json +1 -0
- package/.vitest/vitest-report-root-1793972186024681000.json +1 -0
- package/.vitest/vitest-report-root-1793972227757396000.json +1 -0
- package/.vitest/vitest-report-root-1793972736341600000.json +1 -0
- package/.vitest/vitest-report-root-1793972769249562000.json +1 -0
- package/.vitest/vitest-report-root-1793972859435283000.json +1 -0
- package/.vitest/vitest-report-root-1793972915169294000.json +1 -0
- package/.vitest/vitest-report-root-1793973081515450000.json +1 -0
- package/.vitest/vitest-report-root-1793973111336773000.json +1 -0
- package/.vitest/vitest-report-root-1793973253986969000.json +1 -0
- package/.vitest/vitest-report-root-1793973561283775000.json +1 -0
- package/.vitest/vitest-report-root-1793973593320977000.json +1 -0
- package/.vitest/vitest-report-root-1793973648302867000.json +1 -0
- package/.vitest/vitest-report-root-1793973819657242000.json +1 -0
- package/.vitest/vitest-report-root-1793973952727311000.json +1 -0
- package/.vitest/vitest-report-root-1793974334455876000.json +1 -0
- package/.vitest/vitest-report-root-1793974437074196000.json +1 -0
- package/.vitest/vitest-report-root-1793974437553146000.json +1 -0
- package/.vitest/vitest-report-root-1793974461818626000.json +1 -0
- package/.vitest/vitest-report-root-1793974515255198000.json +1 -0
- package/.vitest/vitest-report-root-1793974516267191000.json +1 -0
- package/.vitest/vitest-report-root-1793974621202824000.json +1 -0
- package/.vitest/vitest-report-root-1793974718450330000.json +1 -0
- package/.vitest/vitest-report-root-1793974834942373000.json +1 -0
- package/.vitest/vitest-report-root-1793974921367314000.json +1 -0
- package/.vitest/vitest-report-root-1793975019367156000.json +1 -0
- package/.vitest/vitest-report-root-1793975048166096000.json +1 -0
- package/.vitest/vitest-report-root-1793975133024339000.json +1 -0
- package/.vitest/vitest-report-root-1793975159711704000.json +1 -0
- package/.vitest/vitest-report-root-1793975517481736000.json +1 -0
- package/.vitest/vitest-report-root-1793975680008825000.json +1 -0
- package/.vitest/vitest-report-root-1793976067648494000.json +1 -0
- package/.vitest/vitest-report-root-1793976314122479000.json +1 -0
- package/.vitest/vitest-report-root-1793976513022402000.json +1 -0
- package/.vitest/vitest-report-root-1793976540410805000.json +1 -0
- package/.vitest/vitest-report-root-1793976555103273000.json +1 -0
- package/.vitest/vitest-report-root-1793976702974407000.json +1 -0
- package/.vitest/vitest-report-root-1793976721093108000.json +1 -0
- package/.vitest/vitest-report-root-1793976955473681000.json +1 -0
- package/.vitest/vitest-report-root-1793977049628483000.json +1 -0
- package/.vitest/vitest-report-root-1793977098467804000.json +1 -0
- package/.vitest/vitest-report-root-1793977132144900000.json +1 -0
- package/.vitest/vitest-report-root-1793977279648191000.json +1 -0
- package/.vitest/vitest-report-root-1793977365312127000.json +1 -0
- package/.vitest/vitest-report-root-1793978227796817000.json +1 -0
- package/.vitest/vitest-report-root-1793978255189735000.json +1 -0
- package/.vitest/vitest-report-root-1793978306509070000.json +1 -0
- package/.vitest/vitest-report-root-1793978418301216000.json +1 -0
- package/.vitest/vitest-report-root-1793978445072573000.json +1 -0
- package/.vitest/vitest-report-root-1793978546605517000.json +1 -0
- package/.vitest/vitest-report-root-1793978576060950000.json +1 -0
- package/.vitest/vitest-report-root-1793978590261408000.json +1 -0
- package/.vitest/vitest-report-root-1793978674733179000.json +1 -0
- package/.vitest/vitest-report-root-1793978718588785000.json +1 -0
- package/.vitest/vitest-report-root-1793978725363453000.json +1 -0
- package/.vitest/vitest-report-root-1793978729967285000.json +1 -0
- package/.vitest/vitest-report-root-1793978755641607000.json +1 -0
- package/.vitest/vitest-report-root-1793978782769802000.json +1 -0
- package/.vitest/vitest-report-root-1793978784870947000.json +1 -0
- package/.vitest/vitest-report-root-1793978806927335000.json +1 -0
- package/.vitest/vitest-report-root-1793978822508324000.json +1 -0
- package/.vitest/vitest-report-root-1793978836339794000.json +1 -0
- package/.vitest/vitest-report-root-1793978837947352000.json +1 -0
- package/.vitest/vitest-report-root-1793978891548295000.json +1 -0
- package/.vitest/vitest-report-root-1793978946172947000.json +1 -0
- package/.vitest/vitest-report-root-1793978947109807000.json +1 -0
- package/.vitest/vitest-report-root-1793979034208662000.json +1 -0
- package/.vitest/vitest-report-root-1793979070583608000.json +1 -0
- package/.vitest/vitest-report-root-1793979081187144000.json +1 -0
- package/.vitest/vitest-report-root-1793979085428673000.json +1 -0
- package/.vitest/vitest-report-root-1793979155097858000.json +1 -0
- package/.vitest/vitest-report-root-1793979233508873000.json +1 -0
- package/.vitest/vitest-report-root-1793979268653273000.json +1 -0
- package/.vitest/vitest-report-root-1793979341978843000.json +1 -0
- package/.vitest/vitest-report-root-1793979345344877000.json +1 -0
- package/.vitest/vitest-report-root-1793979389390374000.json +1 -0
- package/.vitest/vitest-report-root-1793979400063493000.json +1 -0
- package/.vitest/vitest-report-root-1793979432448725000.json +1 -0
- package/.vitest/vitest-report-root-1793979459139430000.json +1 -0
- package/.vitest/vitest-report-root-1793979480341961000.json +1 -0
- package/.vitest/vitest-report-root-1793979510130869000.json +1 -0
- package/.vitest/vitest-report-root-1793979524763924000.json +1 -0
- package/.vitest/vitest-report-root-1793979571563010000.json +1 -0
- package/.vitest/vitest-report-root-1793979627916920000.json +1 -0
- package/.vitest/vitest-report-root-1793979726395379000.json +1 -0
- package/.vitest/vitest-report-root-1793979752029533000.json +1 -0
- package/.vitest/vitest-report-root-1793979753365744000.json +1 -0
- package/.vitest/vitest-report-root-1793979759386206000.json +1 -0
- package/.vitest/vitest-report-root-1793979787819109000.json +1 -0
- package/.vitest/vitest-report-root-1793979827615051000.json +1 -0
- package/.vitest/vitest-report-root-1793979927737393000.json +1 -0
- package/.vitest/vitest-report-root-1793979929836169000.json +1 -0
- package/.vitest/vitest-report-root-1793979955780781000.json +1 -0
- package/.vitest/vitest-report-root-1793980200569636000.json +1 -0
- package/.vitest/vitest-report-root-1793980206045213000.json +1 -0
- package/.vitest/vitest-report-root-1793980285772027000.json +1 -0
- package/.vitest/vitest-report-root-1793980459229828000.json +1 -0
- package/.vitest/vitest-report-root-1793980460545874000.json +1 -0
- package/.vitest/vitest-report-root-1793980554484341000.json +1 -0
- package/.vitest/vitest-report-root-1793980674494388000.json +1 -0
- package/.vitest/vitest-report-root-1793980683752195000.json +1 -0
- package/.vitest/vitest-report-root-1793980947108651000.json +1 -0
- package/.vitest/vitest-report-root-1793981129616629000.json +1 -0
- package/.vitest/vitest-report-root-1793981196611441000.json +1 -0
- package/.vitest/vitest-report-root-1793981226583545000.json +1 -0
- package/.vitest/vitest-report-root-1793981294259721000.json +1 -0
- package/.vitest/vitest-report-root-1793981353393048000.json +1 -0
- package/.vitest/vitest-report-root-1793981424585368000.json +1 -0
- package/.vitest/vitest-report-root-1793981513266687000.json +1 -0
- package/.vitest/vitest-report-root-1793981526418218000.json +1 -0
- package/.vitest/vitest-report-root-1793981540069877000.json +1 -0
- package/.vitest/vitest-report-root-1793981761193625000.json +1 -0
- package/.vitest/vitest-report-root-1793981868520992000.json +1 -0
- package/.vitest/vitest-report-root-1793982048467772000.json +1 -0
- package/.vitest/vitest-report-root-1793982119518020000.json +1 -0
- package/.vitest/vitest-report-root-1793982243473651000.json +1 -0
- package/.vitest/vitest-report-root-1793982406880629000.json +1 -0
- package/.vitest/vitest-report-root-1793982433563632000.json +1 -0
- package/.vitest/vitest-report-root-1793982496753204000.json +1 -0
- package/.vitest/vitest-report-root-1793982500153311000.json +1 -0
- package/.vitest/vitest-report-root-1793982542086095000.json +1 -0
- package/.vitest/vitest-report-root-1793982659482988000.json +1 -0
- package/.vitest/vitest-report-root-1793983799132716000.json +1 -0
- package/.vitest/vitest-report-root-1793983822721833000.json +1 -0
- package/.vitest/vitest-report-root-1793984998618484000.json +1 -0
- package/.vitest/vitest-report-root-1793985050475750000.json +1 -0
- package/.vitest/vitest-report-root-1793985095516077000.json +1 -0
- package/.vitest/vitest-report-root-1793985130729074000.json +1 -0
- package/.vitest/vitest-report-root-1793985177150997000.json +1 -0
- package/.vitest/vitest-report-root-1793985267658626000.json +1 -0
- package/.vitest/vitest-report-root-1793985412705211000.json +1 -0
- package/.vitest/vitest-report-root-1793985433752853000.json +1 -0
- package/.vitest/vitest-report-root-1794087938302852000.json +1 -0
- package/.vitest/vitest-report-root-1794087978339022000.json +1 -0
- package/.vitest/vitest-report-root-1794088095283811000.json +1 -0
- package/.vitest/vitest-report-root-1794088129997065000.json +1 -0
- package/.vitest/vitest-report-root-1794088147336556000.json +1 -0
- package/.vitest/vitest-report-root-1794088173414593000.json +1 -0
- package/.vitest/vitest-report-root-1794088221289657000.json +1 -0
- package/.vitest/vitest-report-root-1794088250766611000.json +1 -0
- package/.vitest/vitest-report-root-1794088365553234000.json +1 -0
- package/.vitest/vitest-report-root-1794088395202655000.json +1 -0
- package/.vitest/vitest-report-root-1794090028732187000.json +1 -0
- package/.vitest/vitest-report-root-1794090054787283000.json +1 -0
- package/.vitest/vitest-report-root-1794090153955794000.json +1 -0
- package/.vitest/vitest-report-root-1794090161850160000.json +1 -0
- package/.vitest/vitest-report-root-1794091755693314000.json +1 -0
- package/.vitest/vitest-report-root-1794091765029349000.json +1 -0
- package/.vitest/vitest-report-root-1794091975649927000.json +1 -0
- package/.vitest/vitest-report-root-1794091994027950000.json +1 -0
- package/.vitest/vitest-report-root-1794092005178771000.json +1 -0
- package/.vitest/vitest-report-root-1794113295302382000.json +1 -0
- package/.vitest/vitest-report-root-1794114156337032000.json +1 -0
- package/.vitest/vitest-report-root-1794114198454137000.json +1 -0
- package/.vitest/vitest-report-root-1794114254064413000.json +1 -0
- package/.vitest/vitest-report-root-1794114280107510000.json +1 -0
- package/.vitest/vitest-report-root-1794114495199837000.json +1 -0
- package/.vitest/vitest-report-root-1794114646604233000.json +1 -0
- package/.vitest/vitest-report-root-1794114666311689000.json +1 -0
- package/.vitest/vitest-report-root-1794114974303438000.json +1 -0
- package/.vitest/vitest-report-root-1794115037361450000.json +1 -0
- package/.vitest/vitest-report-root-1794115097838937000.json +1 -0
- package/.vitest/vitest-report-root-1794115604669388000.json +1 -0
- package/.vitest/vitest-report-root-1794115633814500000.json +1 -0
- package/.vitest/vitest-report-root-1794115648756242000.json +1 -0
- package/.vitest/vitest-report-root-1794115873440741000.json +1 -0
- package/.vitest/vitest-report-root-1794115952930230000.json +1 -0
- package/.vitest/vitest-report-root-1794115963344701000.json +1 -0
- package/.vitest/vitest-report-root-1794116196067450000.json +1 -0
- package/.vitest/vitest-report-root-1794116254301280000.json +1 -0
- package/.vitest/vitest-report-root-1794116259342966000.json +1 -0
- package/.vitest/vitest-report-root-1794118178787879000.json +1 -0
- package/.vitest/vitest-report-root-1794137087891409000.json +1 -0
- package/.vitest/vitest-report-root-1794137100301214000.json +1 -0
- package/.vitest/vitest-report-root-1794137107377813000.json +1 -0
- package/.vitest/vitest-report-root-1794137171230704000.json +1 -0
- package/.vitest/vitest-report-root-1794137317761465000.json +1 -0
- package/.vitest/vitest-report-root-1794137320282368000.json +1 -0
- package/LICENSE +17 -0
- package/PACKAGE_PUBLICATIONS.md +26 -0
- package/builder-package.json +19 -0
- package/package.json +77 -3
- package/scripts/build-builder.ts +27 -0
- package/scripts/build-library-runtime.ts +9 -0
- package/scripts/build-static.ts +75 -0
- package/scripts/build.ts +6 -0
- package/scripts/check-fragment.ts +12 -0
- package/scripts/local-workspaces.test.ts +31 -0
- package/scripts/local-workspaces.ts +55 -0
- package/scripts/release-version-cli.test.ts +40 -0
- package/scripts/release-version.test.ts +29 -0
- package/scripts/release-version.ts +46 -0
- package/scripts/run-package-build.ts +8 -0
- package/scripts/serve-packages.ts +8 -0
- package/spikes/README.md +70 -0
- package/spikes/barrel-rewriting/README.md +97 -0
- package/spikes/barrel-rewriting/measure.ts +134 -0
- package/spikes/barrel-rewriting/readme.ts +174 -0
- package/spikes/barrel-rewriting/results.json +3440 -0
- package/spikes/barrel-rewriting/run.ts +330 -0
- package/spikes/barrel-rewriting/setup.ts +90 -0
- package/spikes/barrel-rewriting/sw.ts +148 -0
- package/spikes/barrel-rewriting/tenant.ts +91 -0
- package/spikes/barrel-rewriting/worker-config.ts +33 -0
- package/spikes/closure-fragments/README.md +157 -0
- package/spikes/closure-fragments/results.json +959 -0
- package/spikes/closure-fragments/run.ts +298 -0
- package/spikes/compiler/README.md +177 -0
- package/spikes/compiler/compile.test.ts +78 -0
- package/spikes/compiler/compile.ts +82 -0
- package/spikes/compiler/facet-redact.d.ts +5 -0
- package/spikes/compiler/markers.ts +88 -0
- package/spikes/compiler/pages.ts +43 -0
- package/spikes/compiler/readme.ts +116 -0
- package/spikes/compiler/reference.ts +81 -0
- package/spikes/compiler/render.ts +113 -0
- package/spikes/compiler/results.json +3310 -0
- package/spikes/compiler/run.ts +250 -0
- package/spikes/compiler/sucrase-parser.d.ts +8 -0
- package/spikes/compiler/sw.ts +62 -0
- package/spikes/diagram-readiness/README.md +134 -0
- package/spikes/diagram-readiness/analysis.test.ts +52 -0
- package/spikes/diagram-readiness/analysis.ts +35 -0
- package/spikes/diagram-readiness/browser.ts +209 -0
- package/spikes/diagram-readiness/readme.ts +65 -0
- package/spikes/diagram-readiness/results.json +30289 -0
- package/spikes/diagram-readiness/run.ts +103 -0
- package/spikes/diagram-readiness/server.ts +53 -0
- package/spikes/esm-sh/README.md +27 -0
- package/spikes/esm-sh/browser-client.ts +18 -0
- package/spikes/esm-sh/browser-server.ts +104 -0
- package/spikes/esm-sh/fixtures/copy-to-clipboard-entry.headers +15 -0
- package/spikes/esm-sh/fixtures/copy-to-clipboard-entry.mjs.txt +3 -0
- package/spikes/esm-sh/fixtures/copy-to-clipboard-module.headers +13 -0
- package/spikes/esm-sh/fixtures/copy-to-clipboard-module.mjs.txt +142 -0
- package/spikes/esm-sh/fixtures/react-copy-to-clipboard-entry.headers +15 -0
- package/spikes/esm-sh/fixtures/react-copy-to-clipboard-entry.mjs.txt +3 -0
- package/spikes/esm-sh/fixtures/react-copy-to-clipboard-module.headers +11 -0
- package/spikes/esm-sh/fixtures/react-copy-to-clipboard-module.mjs.txt +222 -0
- package/spikes/esm-sh/fixtures/toggle-selection-entry.headers +14 -0
- package/spikes/esm-sh/fixtures/toggle-selection-entry.mjs.txt +3 -0
- package/spikes/esm-sh/fixtures/toggle-selection-module.headers +11 -0
- package/spikes/esm-sh/fixtures/toggle-selection-module.mjs.txt +76 -0
- package/spikes/esm-sh/fixtures.ts +54 -0
- package/spikes/esm-sh/redact.ts +1 -0
- package/spikes/frame-commenting/README.md +183 -0
- package/spikes/frame-commenting/agent.ts +110 -0
- package/spikes/frame-commenting/hook.ts +1 -0
- package/spikes/frame-commenting/host.ts +66 -0
- package/spikes/frame-commenting/measure.ts +180 -0
- package/spikes/frame-commenting/model.test.ts +27 -0
- package/spikes/frame-commenting/model.ts +40 -0
- package/spikes/frame-commenting/readme.ts +61 -0
- package/spikes/frame-commenting/results.json +5320 -0
- package/spikes/frame-commenting/run.ts +73 -0
- package/spikes/frame-commenting/setup.ts +125 -0
- package/spikes/lib/barrels.test.ts +107 -0
- package/spikes/lib/barrels.ts +309 -0
- package/spikes/lib/cjs-export-names.mjs +22 -0
- package/spikes/lib/content-types.ts +28 -0
- package/spikes/lib/convert-commonjs.ts +168 -0
- package/spikes/lib/fragment.ts +108 -0
- package/spikes/lib/library-set.ts +194 -0
- package/spikes/lib/module-transform.test.ts +133 -0
- package/spikes/lib/module-transform.ts +351 -0
- package/spikes/lib/origin.ts +140 -0
- package/spikes/lib/pages.ts +290 -0
- package/spikes/lib/report.ts +23 -0
- package/spikes/lib/runtime-server.ts +282 -0
- package/spikes/lib/static-server.ts +82 -0
- package/spikes/lib/trace.ts +384 -0
- package/spikes/local-folder-link/README.md +85 -0
- package/spikes/local-folder-link/checkout.ts +132 -0
- package/spikes/local-folder-link/documents.ts +36 -0
- package/spikes/local-folder-link/readme.ts +42 -0
- package/spikes/local-folder-link/results.json +12815 -0
- package/spikes/local-folder-link/rewrite.test.ts +27 -0
- package/spikes/local-folder-link/rewrite.ts +38 -0
- package/spikes/local-folder-link/run.ts +123 -0
- package/spikes/local-folder-link/server.ts +100 -0
- package/spikes/local-folder-link/sw.ts +97 -0
- package/spikes/origin-isolation/README.md +426 -0
- package/spikes/origin-isolation/browsers.ts +43 -0
- package/spikes/origin-isolation/helper.ts +6 -0
- package/spikes/origin-isolation/host.ts +25 -0
- package/spikes/origin-isolation/measure.ts +118 -0
- package/spikes/origin-isolation/model.test.ts +45 -0
- package/spikes/origin-isolation/model.ts +49 -0
- package/spikes/origin-isolation/proxy.ts +35 -0
- package/spikes/origin-isolation/readme.ts +83 -0
- package/spikes/origin-isolation/results.json +3242 -0
- package/spikes/origin-isolation/run.ts +35 -0
- package/spikes/origin-isolation/server.ts +108 -0
- package/spikes/origin-isolation/sw.ts +28 -0
- package/spikes/origin-isolation/tenant.ts +165 -0
- package/spikes/react-runtime-set/README.md +48 -0
- package/spikes/react-runtime-set/convert.ts +118 -0
- package/spikes/react-runtime-set/export-names.mjs +8 -0
- package/spikes/react-runtime-set/page/page.js +46 -0
- package/spikes/react-runtime-set/results.json +84 -0
- package/spikes/react-runtime-set/run.ts +255 -0
- package/spikes/run.ts +15 -0
- package/spikes/sw-tenant-frame/README.md +95 -0
- package/spikes/sw-tenant-frame/results.json +1348 -0
- package/spikes/sw-tenant-frame/run.ts +373 -0
- package/spikes/sw-tenant-frame/site/frame.html +113 -0
- package/spikes/sw-tenant-frame/site/host.html +25 -0
- package/spikes/sw-tenant-frame/site/sw.js +10 -0
- package/spikes/tailwind-parity/README.md +78 -0
- package/spikes/tailwind-parity/compare.test.ts +70 -0
- package/spikes/tailwind-parity/compare.ts +91 -0
- package/spikes/tailwind-parity/facet-font-scale.d.ts +6 -0
- package/spikes/tailwind-parity/facet-styles.ts +77 -0
- package/spikes/tailwind-parity/results.json +885 -0
- package/spikes/tailwind-parity/run.ts +385 -0
- package/spikes/tailwind-parity/runtime-tailwind.ts +82 -0
- package/src/activity-schema.ts +91 -0
- package/src/activity.test.ts +57 -0
- package/src/build/README.md +94 -0
- package/src/build/barrels.test.ts +107 -0
- package/src/build/barrels.ts +306 -0
- package/src/build/base.ts +2 -0
- package/src/build/check-fragment.ts +45 -0
- package/src/build/cjs-export-names.mjs +24 -0
- package/src/build/commonjs-exports.ts +24 -0
- package/src/build/convert-commonjs.ts +183 -0
- package/src/build/dependencies.ts +4 -0
- package/src/build/dependency-barrels.ts +59 -0
- package/src/build/dependency-cache.ts +40 -0
- package/src/build/dependency-plugin.ts +58 -0
- package/src/build/dependency-runtime.test.ts +121 -0
- package/src/build/dependency-runtime.ts +147 -0
- package/src/build/errors.ts +9 -0
- package/src/build/fragment.ts +89 -0
- package/src/build/index.ts +7 -0
- package/src/build/library-runtime.test.ts +343 -0
- package/src/build/library-runtime.ts +98 -0
- package/src/build/module-utils.ts +11 -0
- package/src/build/recipe-dependencies.ts +14 -0
- package/src/build/runtime-entries.ts +10 -0
- package/src/build/trace.ts +429 -0
- package/src/design-schema.ts +25 -0
- package/src/dev/README.md +48 -0
- package/src/dev/catalog.ts +79 -0
- package/src/dev/cli.test.ts +12 -0
- package/src/dev/cli.ts +25 -0
- package/src/dev/index.ts +115 -0
- package/src/dev/packages.test.ts +175 -0
- package/src/editing.test.tsx +31 -0
- package/src/editing.ts +25 -0
- package/src/frame/activity.browser.ts +34 -0
- package/src/frame/activity.test.ts +27 -0
- package/src/frame/activity.ts +50 -0
- package/src/frame/agent/README.md +47 -0
- package/src/frame/agent/agent.browser.ts +127 -0
- package/src/frame/agent/design.ts +62 -0
- package/src/frame/agent/index.ts +148 -0
- package/src/frame/agent/overlay.test.ts +42 -0
- package/src/frame/agent/overlay.ts +91 -0
- package/src/frame/agent/owner.test.ts +78 -0
- package/src/frame/agent/owner.ts +58 -0
- package/src/frame/agent/provider.tsx +14 -0
- package/src/frame/agent/react-override.ts +55 -0
- package/src/frame/agent/review.browser.ts +65 -0
- package/src/frame/agent/review.ts +107 -0
- package/src/frame/agent/testing/callsite.tsx +5 -0
- package/src/frame/agent/testing/client.ts +99 -0
- package/src/frame/agent/testing/library.ts +3 -0
- package/src/frame/agent/testing/modal.tsx +5 -0
- package/src/frame/agent/testing/review-client.ts +43 -0
- package/src/frame/agent/testing/review-server.ts +31 -0
- package/src/frame/agent/testing/server.ts +72 -0
- package/src/frame/agent/testing/vocabulary-host.ts +20 -0
- package/src/frame/agent/testing/vocabulary.tsx +10 -0
- package/src/frame/agent/vitest.browser.config.ts +6 -0
- package/src/frame/agent/vocabulary.browser.ts +30 -0
- package/src/frame/agent/vocabulary.test.ts +36 -0
- package/src/frame/agent/vocabulary.ts +13 -0
- package/src/frame/agent.ts +2 -0
- package/src/frame/boot-bundle.test.ts +20 -0
- package/src/frame/boot-styles.test.ts +102 -0
- package/src/frame/boot-styles.ts +50 -0
- package/src/frame/boot.test.ts +108 -0
- package/src/frame/boot.ts +205 -0
- package/src/frame/bridge.ts +27 -0
- package/src/frame/devtools-hook.ts +1 -0
- package/src/frame/entry.ts +4 -0
- package/src/frame/export-compiler.test.ts +23 -0
- package/src/frame/export-compiler.ts +18 -0
- package/src/frame/export-page.ts +59 -0
- package/src/frame/export.test.ts +17 -0
- package/src/frame/export.ts +90 -0
- package/src/frame/index.ts +7 -0
- package/src/frame/local-runtime.browser.ts +36 -0
- package/src/frame/page-agent.ts +2 -0
- package/src/frame/readiness.ts +51 -0
- package/src/frame/review-integration.browser.ts +48 -0
- package/src/frame/runtime.browser.ts +71 -0
- package/src/frame/tailwind/README.md +49 -0
- package/src/frame/tailwind/boot-styles.browser.ts +18 -0
- package/src/frame/tailwind/cache.test.ts +53 -0
- package/src/frame/tailwind/cache.ts +20 -0
- package/src/frame/tailwind/load.test.ts +74 -0
- package/src/frame/tailwind/load.ts +66 -0
- package/src/frame/tailwind/recipe.ts +81 -0
- package/src/frame/tailwind/runtime-cache.test.ts +97 -0
- package/src/frame/tailwind/runtime.ts +113 -0
- package/src/frame/tailwind/store.test.ts +104 -0
- package/src/frame/tailwind/store.ts +55 -0
- package/src/frame/tailwind/stylesheets.ts +37 -0
- package/src/frame/tailwind/tailwind.browser.ts +71 -0
- package/src/frame/tailwind/tailwind.test.ts +119 -0
- package/src/frame/tailwind/testing/client.ts +132 -0
- package/src/frame/tailwind/testing/compare.ts +91 -0
- package/src/frame/tailwind/testing/pages.ts +14 -0
- package/src/frame/tailwind/testing/server.ts +89 -0
- package/src/frame/tailwind/vitest.browser.config.ts +7 -0
- package/src/frame/testing/boot-page.ts +3 -0
- package/src/frame/testing/host.ts +60 -0
- package/src/frame/testing/local-host.tsx +33 -0
- package/src/frame/testing/server.ts +120 -0
- package/src/host/BuildLog.test.tsx +40 -0
- package/src/host/BuildLog.tsx +27 -0
- package/src/host/PageFrame.test.tsx +39 -0
- package/src/host/PageFrame.tsx +41 -0
- package/src/host/RuntimeActivity.tsx +75 -0
- package/src/host/activity-state.test.ts +37 -0
- package/src/host/activity-state.ts +69 -0
- package/src/host/agent-source.test.ts +9 -0
- package/src/host/agent-source.ts +14 -0
- package/src/host/agent-validation.test.ts +40 -0
- package/src/host/agent-validation.ts +73 -0
- package/src/host/bridge-request.test.ts +87 -0
- package/src/host/bridge.test.ts +34 -0
- package/src/host/bridge.ts +55 -0
- package/src/host/build-log.test.ts +47 -0
- package/src/host/build-log.ts +29 -0
- package/src/host/clear-cache.test.ts +75 -0
- package/src/host/clear-cache.ts +66 -0
- package/src/host/design-validation.test.ts +38 -0
- package/src/host/design-validation.ts +96 -0
- package/src/host/index.ts +11 -0
- package/src/host/link/index.ts +66 -0
- package/src/host/link/transport.test.ts +10 -0
- package/src/host/link/transport.ts +67 -0
- package/src/host/link/watch.ts +62 -0
- package/src/host/message-values.ts +55 -0
- package/src/host/origin.test.ts +10 -0
- package/src/host/origin.ts +7 -0
- package/src/host/review/README.md +32 -0
- package/src/host/review/index.ts +42 -0
- package/src/host/review/remote.test.ts +21 -0
- package/src/host/review/source.test.ts +19 -0
- package/src/host/review/validation.test.ts +34 -0
- package/src/host/review/validation.ts +55 -0
- package/src/host/runtime-integration.test.ts +29 -0
- package/src/host/source-path.test.ts +14 -0
- package/src/host/validation.ts +111 -0
- package/src/host/vocabulary-validation.test.ts +60 -0
- package/src/link/README.md +115 -0
- package/src/link/barrels.ts +5 -0
- package/src/link/build-cli.ts +12 -0
- package/src/link/build.test.ts +25 -0
- package/src/link/build.ts +99 -0
- package/src/link/commonjs.test.ts +34 -0
- package/src/link/commonjs.ts +39 -0
- package/src/link/examples/server.ts +18 -0
- package/src/link/index.ts +6 -0
- package/src/link/link.browser.ts +66 -0
- package/src/link/local-relay.browser.ts +22 -0
- package/src/link/overrides.test.ts +103 -0
- package/src/link/overrides.ts +69 -0
- package/src/link/page-sources.test.ts +52 -0
- package/src/link/page-sources.ts +69 -0
- package/src/link/source.ts +25 -0
- package/src/link/storage.ts +32 -0
- package/src/link/testing/client.ts +96 -0
- package/src/link/testing/folder.ts +19 -0
- package/src/link/testing/local-client.ts +30 -0
- package/src/link/testing/local-server.ts +26 -0
- package/src/link/testing/local-worker.ts +17 -0
- package/src/link/testing/server.ts +128 -0
- package/src/link/testing/worker.ts +32 -0
- package/src/link/testing-cache.ts +20 -0
- package/src/link/testing-fixtures.ts +16 -0
- package/src/link/types.ts +27 -0
- package/src/link/validation.ts +44 -0
- package/src/link/vitest.browser.config.ts +3 -0
- package/src/markers.ts +18 -0
- package/src/publication/build.ts +27 -0
- package/src/publication/fixtures/build.mjs +2 -0
- package/src/publication/index.ts +3 -0
- package/src/publication/lock.ts +32 -0
- package/src/publication/manifest.ts +14 -0
- package/src/publication/publication.test.ts +89 -0
- package/src/publication/publish.ts +80 -0
- package/src/publication/runtime.ts +28 -0
- package/src/publication/schema.ts +13 -0
- package/src/review-schema.ts +17 -0
- package/src/schema.ts +149 -0
- package/src/storage/db.test.ts +52 -0
- package/src/storage/db.ts +64 -0
- package/src/sw/activity-router.test.ts +53 -0
- package/src/sw/activity.ts +66 -0
- package/src/sw/barrels.ts +44 -0
- package/src/sw/candidates.test.ts +9 -0
- package/src/sw/candidates.ts +14 -0
- package/src/sw/compile.test.ts +152 -0
- package/src/sw/compile.ts +92 -0
- package/src/sw/compiler-columns.ts +44 -0
- package/src/sw/compiler-internals.d.ts +8 -0
- package/src/sw/compiler-plugins.ts +18 -0
- package/src/sw/compiler.test.ts +51 -0
- package/src/sw/compiler.ts +86 -0
- package/src/sw/composition.test.ts +51 -0
- package/src/sw/composition.ts +86 -0
- package/src/sw/content-types.ts +28 -0
- package/src/sw/converted-resolver.test.ts +129 -0
- package/src/sw/converted-router.test.ts +91 -0
- package/src/sw/converted.browser.ts +31 -0
- package/src/sw/converted.test.ts +31 -0
- package/src/sw/converted.ts +64 -0
- package/src/sw/editable-sites.ts +42 -0
- package/src/sw/errors.test.ts +8 -0
- package/src/sw/errors.ts +17 -0
- package/src/sw/index.ts +7 -0
- package/src/sw/integrity.ts +10 -0
- package/src/sw/legacy-storage.ts +18 -0
- package/src/sw/link-activity.test.ts +126 -0
- package/src/sw/link-activity.ts +21 -0
- package/src/sw/link-cache.test.ts +15 -0
- package/src/sw/link-cache.ts +19 -0
- package/src/sw/link-compiler.ts +112 -0
- package/src/sw/link-folder.ts +29 -0
- package/src/sw/link-markdown.test.ts +52 -0
- package/src/sw/link-relay.ts +40 -0
- package/src/sw/link-route.test.ts +150 -0
- package/src/sw/link-route.ts +239 -0
- package/src/sw/link-source.test.ts +31 -0
- package/src/sw/link-source.ts +41 -0
- package/src/sw/markers.test.ts +33 -0
- package/src/sw/markers.ts +128 -0
- package/src/sw/module-transform.test.ts +131 -0
- package/src/sw/module-transform.ts +352 -0
- package/src/sw/package-generation.test.ts +33 -0
- package/src/sw/page-clients.test.ts +37 -0
- package/src/sw/page-clients.ts +45 -0
- package/src/sw/profile.test.ts +21 -0
- package/src/sw/profile.ts +88 -0
- package/src/sw/resolver.test.ts +183 -0
- package/src/sw/resolver.ts +220 -0
- package/src/sw/router-cache.test.ts +78 -0
- package/src/sw/router.ts +320 -0
- package/src/sw/runtime-module.test.ts +61 -0
- package/src/sw/runtime-module.ts +13 -0
- package/src/sw/source-hash.test.ts +7 -0
- package/src/sw/source-hash.ts +37 -0
- package/src/sw/storage.test.ts +108 -0
- package/src/sw/versions.ts +89 -0
- package/src/sw/worker.ts +87 -0
- package/static/README.md +15 -0
- package/static/profile.example.json +15 -0
- package/tsconfig.json +10 -0
- package/vitest.browser.config.ts +4 -0
- package/vitest.config.ts +9 -0
- package/README.md +0 -3
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { describe, expect, it, vi } from "vitest";
|
|
2
|
+
import type { PageLock, RuntimeProfile } from "../schema.ts";
|
|
3
|
+
import { memoryCaches } from "../link/testing-cache.ts";
|
|
4
|
+
import { conversionFixture, CONVERTER, PROFILE } from "../../spikes/esm-sh/fixtures.ts";
|
|
5
|
+
import { createRouter, contentSecurityPolicy } from "./router.ts";
|
|
6
|
+
import { BASE_PLUGINS } from "./compiler.ts";
|
|
7
|
+
import { resolvePage } from "./resolver.ts";
|
|
8
|
+
import { digest } from "./integrity.ts";
|
|
9
|
+
import { createRequestActivity } from "./activity.ts";
|
|
10
|
+
|
|
11
|
+
const WITHOUT_CONVERTER: RuntimeProfile = Object.fromEntries(Object.entries(PROFILE).filter(([key]) => key !== "convert")) as RuntimeProfile;
|
|
12
|
+
const origin = "https://runtime.example";
|
|
13
|
+
const entry = "/esm/react-copy-to-clipboard@5.1.1/__entry.mjs";
|
|
14
|
+
const module = "/esm/react-copy-to-clipboard@5.1.1/es2022/react-copy-to-clipboard.development.mjs";
|
|
15
|
+
|
|
16
|
+
async function setup(options: { mutate?: (lock: PageLock, modules: Map<string, string>) => Promise<void>; profile?: RuntimeProfile } = {}) {
|
|
17
|
+
const fixture = await conversionFixture();
|
|
18
|
+
const lock = await resolvePage({ page: "report.tsx", profile: PROFILE, manifest: { dependencies: { "react-copy-to-clipboard": "^5" } }, fetch: fixture.fetcher, now: Date.parse("2026-01-10") });
|
|
19
|
+
await options.mutate?.(lock, fixture.modules);
|
|
20
|
+
const caches = memoryCaches();
|
|
21
|
+
const fetcher = vi.fn(fixture.fetcher);
|
|
22
|
+
const create = () => createRouter({ origin, version: "converted-test", profile: options.profile ?? PROFILE, caches, fetch: fetcher, plugins: BASE_PLUGINS });
|
|
23
|
+
const router = create();
|
|
24
|
+
await router.message({ type: "open", page: lock.page, manifest: { dependencies: {} }, files: { [lock.page]: 'export { default } from "react-copy-to-clipboard";' }, lock });
|
|
25
|
+
fetcher.mockClear();
|
|
26
|
+
return { ...fixture, lock, caches, fetcher, router, create, request: (path: string) => new Request(`${origin}${path}?page=${lock.page}`) };
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
describe("/esm package serving", () => {
|
|
30
|
+
it("verifies raw bytes then rewrites internal paths and scoped bare dependencies with page context", async () => {
|
|
31
|
+
const fixture = await setup();
|
|
32
|
+
const entryResponse = await fixture.router.route(fixture.request(entry));
|
|
33
|
+
expect(entryResponse.headers.get("x-page-integrity")).toBe(fixture.lock.integrity[entry.slice(1)]);
|
|
34
|
+
expect(await entryResponse.text()).toContain(`${module}`);
|
|
35
|
+
const code = await (await fixture.router.route(fixture.request(module))).text();
|
|
36
|
+
expect(code).toContain("/esm/copy-to-clipboard@3.3.3/__entry.mjs");
|
|
37
|
+
expect(code).toContain("/npm/react@18.3.1/index.js");
|
|
38
|
+
expect(code).not.toContain('from"react"');
|
|
39
|
+
const pageCode = await (await fixture.router.route(fixture.request("/src/report.tsx"))).text();
|
|
40
|
+
expect(pageCode).toContain(`${entry}`);
|
|
41
|
+
expect(fixture.fetcher).toHaveBeenCalledWith(`${CONVERTER}/*react-copy-to-clipboard@5.1.1?dev&target=es2022`, { mode: "cors", credentials: "omit", redirect: "error" });
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
it("shares request de-duplication and persistent raw-byte cache with the npm serving path", async () => {
|
|
45
|
+
const fixture = await setup();
|
|
46
|
+
const responses = await Promise.all([fixture.router.route(fixture.request(entry)), fixture.router.route(fixture.request(entry))]);
|
|
47
|
+
expect(await responses[0]!.text()).toBe(await responses[1]!.text());
|
|
48
|
+
expect(fixture.fetcher).toHaveBeenCalledTimes(1);
|
|
49
|
+
const warm = await fixture.create().route(fixture.request(entry));
|
|
50
|
+
expect(warm.headers.get("server-timing")).toContain('cache;desc="hit"');
|
|
51
|
+
expect(fixture.fetcher).toHaveBeenCalledTimes(1);
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
it.each(["/node/process.mjs", "/*other@1.0.0/es2022/other.mjs"])("rejects a pinned converter module importing %s", async (specifier) => {
|
|
55
|
+
const fixture = await setup({ mutate: async (lock, modules) => {
|
|
56
|
+
const code = `import ${JSON.stringify(specifier)};`;
|
|
57
|
+
modules.set("/*react-copy-to-clipboard@5.1.1?dev&target=es2022", code);
|
|
58
|
+
lock.integrity[entry.slice(1)] = await digest(new TextEncoder().encode(code));
|
|
59
|
+
} });
|
|
60
|
+
const response = await fixture.router.route(fixture.request(entry));
|
|
61
|
+
expect(response.headers.get("x-page-runtime-error")).toBe("fetch");
|
|
62
|
+
expect(await response.text()).toContain("react-copy-to-clipboard@5.1.1");
|
|
63
|
+
});
|
|
64
|
+
|
|
65
|
+
it("rejects changed converter output with the lock and fixed-image remedies", async () => {
|
|
66
|
+
const fixture = await setup();
|
|
67
|
+
fixture.modules.set("/*react-copy-to-clipboard@5.1.1?dev&target=es2022", "export default 'changed';");
|
|
68
|
+
const response = await fixture.router.route(fixture.request(entry));
|
|
69
|
+
expect(response.headers.get("x-page-runtime-error")).toBe("fetch");
|
|
70
|
+
expect(await response.text()).toMatch(/react-copy-to-clipboard@5.1.1.*integrity mismatch.*re-resolve.*fixed self-hosted esm.sh image/);
|
|
71
|
+
});
|
|
72
|
+
|
|
73
|
+
it("rejects unlocked converted files without fetching them", async () => {
|
|
74
|
+
const fixture = await setup();
|
|
75
|
+
const response = await fixture.router.route(fixture.request("/esm/react-copy-to-clipboard@5.1.1/unlocked.mjs"));
|
|
76
|
+
expect(await response.text()).toContain("not part of the page's library set");
|
|
77
|
+
expect(fixture.fetcher).not.toHaveBeenCalled();
|
|
78
|
+
});
|
|
79
|
+
|
|
80
|
+
it("fails when a converted lock is opened under a profile without its converter", async () => {
|
|
81
|
+
const fixture = await setup({ profile: WITHOUT_CONVERTER });
|
|
82
|
+
expect(await (await fixture.router.route(fixture.request(entry))).text()).toContain("converter is not configured");
|
|
83
|
+
expect(fixture.fetcher).not.toHaveBeenCalled();
|
|
84
|
+
});
|
|
85
|
+
|
|
86
|
+
it("adds only the configured converter to connect-src and retains npm request diagnostics", () => {
|
|
87
|
+
expect(contentSecurityPolicy(PROFILE, "nonce")).toContain(`connect-src 'self' ${PROFILE.packageOrigin} ${PROFILE.registry} ${CONVERTER}`);
|
|
88
|
+
expect(contentSecurityPolicy(WITHOUT_CONVERTER, "nonce")).not.toContain(CONVERTER);
|
|
89
|
+
expect(createRequestActivity(`${origin}${module}`)).toMatchObject({ kind: "npm", package: { name: "react-copy-to-clipboard", version: "5.1.1", path: "es2022/react-copy-to-clipboard.development.mjs" } });
|
|
90
|
+
});
|
|
91
|
+
});
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { execFile } from "node:child_process";
|
|
2
|
+
import { promisify } from "node:util";
|
|
3
|
+
import { afterAll, beforeAll, expect, it } from "vitest";
|
|
4
|
+
import { startConvertedBrowserServer } from "../../spikes/esm-sh/browser-server.ts";
|
|
5
|
+
|
|
6
|
+
const exec = promisify(execFile);
|
|
7
|
+
const session = `esm-sh-${process.pid}`;
|
|
8
|
+
let server: Awaited<ReturnType<typeof startConvertedBrowserServer>> | undefined;
|
|
9
|
+
let launched = false;
|
|
10
|
+
async function browser(...args: string[]): Promise<string> {
|
|
11
|
+
return (await exec("agent-browser", ["--engine", "chrome", "--session", session, ...args], { timeout: 45000, maxBuffer: 2_000_000 })).stdout.trim();
|
|
12
|
+
}
|
|
13
|
+
beforeAll(async () => { server = await startConvertedBrowserServer(); });
|
|
14
|
+
afterAll(async () => { try { if (launched) await browser("close"); } finally { await server?.close(); } });
|
|
15
|
+
|
|
16
|
+
it("renders recorded CommonJS conversion in Chromium with the managed React singleton and a local-only converter", async () => {
|
|
17
|
+
if (!server) throw new Error("converter fixture server was not started");
|
|
18
|
+
launched = true;
|
|
19
|
+
await browser("open", `${server.origin}/?page=report.js`);
|
|
20
|
+
await browser("wait", "--fn", 'document.title === "CONVERTED-DONE" || document.title === "CONVERTED-ERROR"');
|
|
21
|
+
expect(await browser("get", "text", "#result")).toBe("");
|
|
22
|
+
expect(await browser("get", "text", "#converted")).toBe("Copy fixture");
|
|
23
|
+
expect(await browser("get", "attr", "#converted", "data-one-react")).toBe("true");
|
|
24
|
+
expect(new Set(server.converterRequests)).toEqual(new Set([
|
|
25
|
+
"/*react-copy-to-clipboard@5.1.1?dev&target=es2022", "/*react-copy-to-clipboard@5.1.1/es2022/react-copy-to-clipboard.development.mjs",
|
|
26
|
+
"/*copy-to-clipboard@3.3.3?dev&target=es2022", "/*copy-to-clipboard@3.3.3/es2022/copy-to-clipboard.development.mjs",
|
|
27
|
+
"/*toggle-selection@1.0.6?dev&target=es2022", "/*toggle-selection@1.0.6/es2022/toggle-selection.development.mjs",
|
|
28
|
+
]));
|
|
29
|
+
expect(server.packageRequests.filter((path) => path.endsWith("/react.js"))).toHaveLength(1);
|
|
30
|
+
expect(server.packageRequests.some((path) => path.startsWith("react@"))).toBe(false);
|
|
31
|
+
});
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { describe, expect, it } from "vitest";
|
|
2
|
+
import { convertedFile, converterUrl, crawlConvertedPackage, rewriteConvertedImports } from "./converted.ts";
|
|
3
|
+
|
|
4
|
+
describe("converter module paths", () => {
|
|
5
|
+
it("maps scoped package entry and internal files to exact converter URLs", () => {
|
|
6
|
+
const entry = convertedFile("esm/@acme/clipboard@1.2.3/__entry.mjs");
|
|
7
|
+
expect(converterUrl({ origin: "https://converter.example", ...entry })).toBe("https://converter.example/*@acme/clipboard@1.2.3?dev&target=es2022");
|
|
8
|
+
expect(converterUrl({ origin: "https://converter.example", ...convertedFile("esm/@acme/clipboard@1.2.3/es2022/clipboard.development.mjs") })).toBe("https://converter.example/*@acme/clipboard@1.2.3/es2022/clipboard.development.mjs");
|
|
9
|
+
});
|
|
10
|
+
it.each(["esm/acme@1/../escape.mjs", "esm/acme@1//module.mjs", "esm/acme@1/file.mjs?x=1", "esm/acme@1/file.mjs#x", "esm/acme@1/file\\other.mjs"])("rejects malformed file %s", (path) => expect(() => convertedFile(path)).toThrow());
|
|
11
|
+
it.each([0x00, 0x1f, 0x20])("rejects converter paths containing ASCII code %i", (code) => {
|
|
12
|
+
expect(() => convertedFile(`esm/acme@1/file${String.fromCharCode(code)}.mjs`)).toThrow(/invalid converted package file/);
|
|
13
|
+
});
|
|
14
|
+
it("accepts the first printable character after the forbidden whitespace range", () => {
|
|
15
|
+
expect(convertedFile("esm/acme@1/file!.mjs")).toEqual({ root: "acme@1", path: "file!.mjs" });
|
|
16
|
+
});
|
|
17
|
+
it("rewrites static and dynamic internal imports while preserving bare imports and matching string content", async () => {
|
|
18
|
+
const root = "@acme/clipboard@1.2.3";
|
|
19
|
+
const code = `import React from 'react'; export * from '/*${root}/es2022/clipboard.mjs'; export const lazy = () => import('./lazy.mjs'); export const text = '/*${root}/es2022/clipboard.mjs';`;
|
|
20
|
+
expect(await rewriteConvertedImports({ code, root, path: "es2022/index.mjs" })).toBe(`import React from 'react'; export * from '/esm/${root}/es2022/clipboard.mjs'; export const lazy = () => import("/esm/${root}/es2022/lazy.mjs"); export const text = '/*${root}/es2022/clipboard.mjs';`);
|
|
21
|
+
});
|
|
22
|
+
it.each(["/node/fs.mjs", "node:fs", "/*acme@2/es2022/a.mjs", "../../other.mjs", "//foreign.example/a.mjs"])("rejects unsafe internal import %s", async (specifier) => {
|
|
23
|
+
await expect(rewriteConvertedImports({ code: `import ${JSON.stringify(specifier)};`, root: "acme@1", path: "es2022/a.mjs" })).rejects.toThrow(/acme@1/);
|
|
24
|
+
});
|
|
25
|
+
it("fails on a converter HTTP error with the package and requested file", async () => {
|
|
26
|
+
await expect(crawlConvertedPackage({ origin: "https://converter.example", root: "acme@1", fetcher: async () => new Response("failure", { status: 503 }) })).rejects.toThrow(/acme@1.*HTTP 503.*dev&target=es2022/);
|
|
27
|
+
});
|
|
28
|
+
it("rejects nonliteral dynamic imports instead of leaving an unpinned dependency", async () => {
|
|
29
|
+
await expect(crawlConvertedPackage({ origin: "https://converter.example", root: "acme@1", fetcher: async () => new Response("export const load = path => import(path);") })).rejects.toThrow(/acme@1.*non-literal dynamic import/);
|
|
30
|
+
});
|
|
31
|
+
});
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { init, parse } from "es-module-lexer";
|
|
2
|
+
import { digest } from "./integrity.ts";
|
|
3
|
+
import { specifierKind } from "./module-transform.ts";
|
|
4
|
+
|
|
5
|
+
export const CONVERTED_ENTRY = "__entry.mjs";
|
|
6
|
+
|
|
7
|
+
export function convertedFile(path: string): { root: string; path: string } {
|
|
8
|
+
const match = /^esm\/((?:@[^/]+\/)?[^/@]+@[^/]+)\/(.+)$/.exec(path);
|
|
9
|
+
if (!match || /[?#\\]/.test(path) || Array.from(path).some((character) => character.charCodeAt(0) <= 0x20) || path.split("/").some((segment) => ["", ".", ".."].includes(segment))) throw new Error(`invalid converted package file ${path}`);
|
|
10
|
+
return { root: match[1]!, path: match[2]! };
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export function converterUrl(options: { origin: string; root: string; path: string }): string {
|
|
14
|
+
return `${options.origin.replace(/\/$/, "")}/*${options.root}${options.path === CONVERTED_ENTRY ? "?dev&target=es2022" : `/${options.path}`}`;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
function internalPath(options: { root: string; path: string; specifier: string }): string | null {
|
|
18
|
+
const { root, path, specifier } = options;
|
|
19
|
+
if (specifier.startsWith("/node/") || specifier.startsWith("node:")) throw new Error(`${root}: converter module ${path} imports Node polyfill ${specifier}`);
|
|
20
|
+
if (specifierKind(specifier) === "bare") return null;
|
|
21
|
+
if (specifierKind(specifier) !== "relative") throw new Error(`${root}: converter import ${specifier} in ${path} is outside the package's own /*${root}/ path`);
|
|
22
|
+
const url = new URL(specifier, `https://converter.invalid/*${root}/${path}`);
|
|
23
|
+
const prefix = `/*${root}/`;
|
|
24
|
+
const decoded = decodeURIComponent(url.pathname);
|
|
25
|
+
if (url.origin !== "https://converter.invalid" || !decoded.startsWith(prefix) || url.search || url.hash || decoded.includes("\\")) throw new Error(`${root}: converter import ${specifier} in ${path} is outside the package's own ${prefix} path`);
|
|
26
|
+
const result = decoded.slice(prefix.length);
|
|
27
|
+
if (!result || result === CONVERTED_ENTRY || result.split("/").some((part) => ["", ".", ".."].includes(part))) throw new Error(`${root}: invalid converter module path ${specifier}`);
|
|
28
|
+
return result;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export async function crawlConvertedPackage(options: { origin: string; root: string; fetcher: typeof fetch }): Promise<{ integrity: Record<string, string>; listing: string }> {
|
|
32
|
+
await init();
|
|
33
|
+
const pending = [CONVERTED_ENTRY]; const integrity: Record<string, string> = {};
|
|
34
|
+
const { fetcher } = options;
|
|
35
|
+
for (let index = 0; index < pending.length; index++) {
|
|
36
|
+
const path = pending[index]!;
|
|
37
|
+
const url = converterUrl({ ...options, path });
|
|
38
|
+
const response = await fetcher(url, { mode: "cors", credentials: "omit", redirect: "error" });
|
|
39
|
+
if (!response.ok) throw new Error(`${options.root}: converter returned HTTP ${response.status} for ${url}`);
|
|
40
|
+
const bytes = new Uint8Array(await response.arrayBuffer());
|
|
41
|
+
integrity[`esm/${options.root}/${path}`] = await digest(bytes);
|
|
42
|
+
for (const item of parse(new TextDecoder().decode(bytes))[0]) {
|
|
43
|
+
if (item.type === "import-meta") continue;
|
|
44
|
+
if (item.specifier === undefined) throw new Error(`${options.root}: converter module ${path} has a non-literal dynamic import`);
|
|
45
|
+
const internal = internalPath({ root: options.root, path, specifier: item.specifier });
|
|
46
|
+
if (internal !== null && !pending.includes(internal)) pending.push(internal);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
return { integrity, listing: await digest(new TextEncoder().encode(JSON.stringify(Object.entries(integrity).sort(([a], [b]) => a.localeCompare(b))))) };
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export async function rewriteConvertedImports(options: { code: string; root: string; path: string }): Promise<string> {
|
|
53
|
+
await init();
|
|
54
|
+
let code = options.code;
|
|
55
|
+
for (const item of [...parse(code)[0]].reverse()) {
|
|
56
|
+
if (item.type === "import-meta") continue;
|
|
57
|
+
if (item.specifier === undefined) throw new Error(`${options.root}: converter module ${options.path} has a non-literal dynamic import`);
|
|
58
|
+
const path = internalPath({ ...options, specifier: item.specifier });
|
|
59
|
+
if (path === null) continue;
|
|
60
|
+
const target = `/esm/${options.root}/${path}`;
|
|
61
|
+
code = `${code.slice(0, item.start)}${/^['"`]/.test(code.slice(item.start, item.end)) ? JSON.stringify(target) : target}${code.slice(item.end)}`;
|
|
62
|
+
}
|
|
63
|
+
return code;
|
|
64
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import type { parse } from "sucrase/dist/parser";
|
|
2
|
+
import { TokenType } from "sucrase/dist/parser/tokenizer/types";
|
|
3
|
+
|
|
4
|
+
type Tokens = ReturnType<typeof parse>["tokens"];
|
|
5
|
+
const COMPONENTS = new Set(["BoxNode", "ContainerNode", "BrandBox", "BrandContainer", "Tile", "Zone"]);
|
|
6
|
+
const SVG = new Set(["rect", "circle", "ellipse", "line", "polyline", "polygon", "path", "text", "tspan", "g"]);
|
|
7
|
+
|
|
8
|
+
// The write server counts facet imports (including aliases/namespaces) and intrinsic SVG in one source-order sequence.
|
|
9
|
+
export function editableTags(code: string, tokens: Tokens): Set<string> {
|
|
10
|
+
const tags = new Set(SVG);
|
|
11
|
+
tokens.forEach((token, index) => {
|
|
12
|
+
if (token.type !== TokenType._import || token.isType) return;
|
|
13
|
+
let end = index + 1;
|
|
14
|
+
while (tokens[end] && tokens[end]!.type !== TokenType.string && tokens[end]!.type !== TokenType.semi) end++;
|
|
15
|
+
const module = tokens[end];
|
|
16
|
+
if (!module || !/^@flanksource\/facet(?:\/.*)?$/.test(code.slice(module.start + 1, module.end - 1))) return;
|
|
17
|
+
for (let at = index + 1; at < end; at++) {
|
|
18
|
+
const item = tokens[at]!;
|
|
19
|
+
if (item.isType) continue;
|
|
20
|
+
if (item.type === TokenType.star && tokens[at + 2]) {
|
|
21
|
+
const namespace = code.slice(tokens[at + 2]!.start, tokens[at + 2]!.end);
|
|
22
|
+
for (const component of COMPONENTS) tags.add(`${namespace}.${component}`);
|
|
23
|
+
}
|
|
24
|
+
if (tokens[at - 1]?.type !== TokenType.braceL && tokens[at - 1]?.type !== TokenType.comma) continue;
|
|
25
|
+
const name = code.slice(item.start, item.end).replace(/^["']|["']$/g, "");
|
|
26
|
+
if (!COMPONENTS.has(name)) continue;
|
|
27
|
+
const next = tokens[at + 1];
|
|
28
|
+
const alias = next && code.slice(next.start, next.end) === "as" ? tokens[at + 2] : item;
|
|
29
|
+
if (alias) tags.add(code.slice(alias.start, alias.end));
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
return tags;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export function openingEnd(tokens: Tokens, index: number): number {
|
|
36
|
+
let depth = 1;
|
|
37
|
+
for (let at = index + 1; at < tokens.length; at++) {
|
|
38
|
+
if (tokens[at]!.type === TokenType.jsxTagStart) depth++;
|
|
39
|
+
if (tokens[at]!.type === TokenType.jsxTagEnd && --depth === 0) return tokens[at - 1]!.type === TokenType.slash ? tokens[at - 1]!.start : tokens[at]!.start;
|
|
40
|
+
}
|
|
41
|
+
throw new Error("JSX opening tag has no end");
|
|
42
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { expect, it } from "vitest";
|
|
2
|
+
import { runtimeError } from "./errors.ts";
|
|
3
|
+
|
|
4
|
+
it("reports a render error's source coordinates from its module stack", () => {
|
|
5
|
+
const error = new Error("render failure");
|
|
6
|
+
error.stack = "Error: render failure\n at Page (https://pages.example.com/src/reports/q3.tsx?page=reports%2Fq3.tsx:12:8)";
|
|
7
|
+
expect(runtimeError({ error, phase: "render", file: "reports/q3.tsx" })).toEqual({ phase: "render", file: "reports/q3.tsx", message: "render failure", line: 12, column: 8 });
|
|
8
|
+
});
|
package/src/sw/errors.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { RuntimeError, RuntimePhase } from "../schema.ts";
|
|
2
|
+
import type { LinkActivity } from "./link-activity.ts";
|
|
3
|
+
|
|
4
|
+
export class RuntimeFailure extends Error {
|
|
5
|
+
readonly detail: RuntimeError;
|
|
6
|
+
activity?: LinkActivity;
|
|
7
|
+
constructor(options: RuntimeError) { super(options.message); this.name = "RuntimeFailure"; this.detail = options; }
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export function runtimeError(options: { error: unknown; phase: RuntimePhase; file: string }): RuntimeError {
|
|
11
|
+
if (options.error instanceof RuntimeFailure) return options.error.detail;
|
|
12
|
+
const message = options.error instanceof Error ? options.error.message : String(options.error);
|
|
13
|
+
const source = options.error instanceof Error ? /\/(?:src|npm)\/([^?\s):]+)(?:\?[^)\s]*)?:(\d+):(\d+)/.exec(options.error.stack ?? "") : null;
|
|
14
|
+
if (source) return { phase: options.phase, file: decodeURIComponent(source[1]!), message, line: Number(source[2]), column: Number(source[3]) };
|
|
15
|
+
const location = /(?:\(|:)(\d+):(\d+)\)?/.exec(message);
|
|
16
|
+
return { phase: options.phase, file: options.file, message, ...(location ? { line: Number(location[1]), column: Number(location[2]) } : {}) };
|
|
17
|
+
}
|
package/src/sw/index.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { createRouter, frameDocument, verifyIntegrity, type RouterOptions, type RuntimeRouter } from "./router.ts";
|
|
2
|
+
export { resolvePage, checkPeers, esmEntries, allowsDependency, DependencyPolicyError, type ResolveOptions } from "./resolver.ts";
|
|
3
|
+
export { validateVersionRange } from "./versions.ts";
|
|
4
|
+
export { chooseVersion, satisfiesVersion } from "./versions.ts";
|
|
5
|
+
export { composeFragments, resolveSpecifier } from "./composition.ts";
|
|
6
|
+
export { validateProfile, validateDependencies, validatePolicy, permitsNetwork } from "./profile.ts";
|
|
7
|
+
export { compilePage, rewriteImports, BASE_PLUGINS, moduleUrl } from "./compiler.ts";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { RuntimeFailure } from "./errors.ts";
|
|
2
|
+
|
|
3
|
+
export async function digest(bytes: Uint8Array<ArrayBuffer>, algorithm = "SHA-384"): Promise<string> {
|
|
4
|
+
return `${algorithm.toLowerCase().replace("-", "")}-${btoa(String.fromCharCode(...new Uint8Array(await crypto.subtle.digest(algorithm, bytes))))}`;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export async function verifyIntegrity(bytes: Uint8Array<ArrayBuffer>, expected: string, path: string): Promise<void> {
|
|
8
|
+
const algorithm = /^(sha256|sha384|sha512)-/.exec(expected)?.[1];
|
|
9
|
+
if (!algorithm || await digest(bytes, algorithm.toUpperCase().replace("SHA", "SHA-")) !== expected) throw new RuntimeFailure({ phase: "fetch", file: path, message: `integrity mismatch for ${path}` });
|
|
10
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { tailwindCacheName } from "../storage/db.ts";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Removes what earlier runtimes kept in Cache Storage: the v2 Tailwind cache, other versions' Tailwind caches (their
|
|
5
|
+
* IndexedDB records are cleared when the current library key first writes), and per-module candidate entries, which
|
|
6
|
+
* now live in IndexedDB.
|
|
7
|
+
*/
|
|
8
|
+
export async function cleanupLegacyStorage(options: { caches: CacheStorage; origin: string; version: string }): Promise<void> {
|
|
9
|
+
const current = tailwindCacheName(options.version);
|
|
10
|
+
const names = await options.caches.keys();
|
|
11
|
+
await Promise.all(names.map(async (name) => {
|
|
12
|
+
if (name === "page-runtime-tailwind-v2" || (/^page-runtime-.+-tailwind$/.test(name) && name !== current)) { await options.caches.delete(name); return; }
|
|
13
|
+
if (!/^page-runtime-.+-compiled$/.test(name)) return;
|
|
14
|
+
const cache = await options.caches.open(name);
|
|
15
|
+
const legacy = `${options.origin}/__runtime/candidates/`;
|
|
16
|
+
await Promise.all((await cache.keys()).filter((request) => request.url.startsWith(legacy)).map((request) => cache.delete(request)));
|
|
17
|
+
}));
|
|
18
|
+
}
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import { expect, it, vi } from "vitest";
|
|
2
|
+
import type { RuntimeProfile } from "../schema.ts";
|
|
3
|
+
import { composeLinkOverrides } from "../link/overrides.ts";
|
|
4
|
+
import { memoryCaches, memoryLinkStorage } from "../link/testing-cache.ts";
|
|
5
|
+
import { exampleLink, exampleLock } from "../link/testing-fixtures.ts";
|
|
6
|
+
import { createLinkRoutes } from "./link-route.ts";
|
|
7
|
+
import { createRouter, digest } from "./router.ts";
|
|
8
|
+
import { BASE_PLUGINS } from "./compiler.ts";
|
|
9
|
+
import { applyLinkActivity, createRequestActivity } from "./activity.ts";
|
|
10
|
+
import type { LinkActivity } from "./link-activity.ts";
|
|
11
|
+
import { createLinkStore } from "../link/storage.ts";
|
|
12
|
+
|
|
13
|
+
vi.mock("../link/storage.ts", () => ({ createLinkStore: vi.fn() }));
|
|
14
|
+
|
|
15
|
+
const origin = "https://runtime.example";
|
|
16
|
+
const profile: RuntimeProfile = { runtimeDomain: "runtime.example", embedders: ["https://host.example"], packageOrigin: "https://packages.example", registry: "https://registry.example", managed: {}, policy: { dependencies: "strict" }, minReleaseAgeDays: 0, network: { allow: [] }, csp: { add: {} }, links: "allow", sources: ["host"], readinessTimeoutMs: 1000 };
|
|
17
|
+
const source = 'export const Counter: string = "héllo";';
|
|
18
|
+
const sourceBytes = new TextEncoder().encode(source).byteLength;
|
|
19
|
+
|
|
20
|
+
async function fixture(options: { fetch?: typeof fetch } = {}) {
|
|
21
|
+
const link = exampleLink(); const caches = memoryCaches(); const store = memoryLinkStorage();
|
|
22
|
+
const lock = composeLinkOverrides({ lock: exampleLock(), links: [link], profile, developerOverrides: true });
|
|
23
|
+
const saved = { lock, files: { "page.tsx": 'export default "Page";' } };
|
|
24
|
+
await store.put(link);
|
|
25
|
+
vi.mocked(createLinkStore).mockReturnValue(store);
|
|
26
|
+
await (await caches.open("page-runtime-activity-pages")).put(`${origin}/__runtime/pages/page.tsx`, Response.json(saved));
|
|
27
|
+
const settings = { origin, version: "activity", profile, caches, store, plugins: BASE_PLUGINS, load: async () => saved, fetch: options.fetch ?? (async () => new Response(source, { headers: { "content-length": "19" } })) };
|
|
28
|
+
return { settings, handler: createLinkRoutes(settings), saved };
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
async function metrics(handler: ReturnType<typeof createLinkRoutes>, path = "/link/checkout/src/Counter.tsx"): Promise<LinkActivity> {
|
|
32
|
+
const response = await handler(new Request(`${origin}${path}?page=page.tsx`));
|
|
33
|
+
if (!response) throw new Error("Missing linked response");
|
|
34
|
+
const record = createRequestActivity(`${origin}${path}?page=page.tsx`);
|
|
35
|
+
expect(applyLinkActivity({ response, record })).toBe(true);
|
|
36
|
+
expect(record.outputBytes).toBe((await response.arrayBuffer()).byteLength);
|
|
37
|
+
return record;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
it("measures source fetch and compile, then zero work for memory and persistent output hits", async () => {
|
|
41
|
+
const { handler, settings } = await fixture();
|
|
42
|
+
const cold = await metrics(handler);
|
|
43
|
+
expect(cold).toMatchObject({ source: "compiled", cache: "miss", origin: "http://127.0.0.1:9000/src/Counter.tsx", decodedBytes: sourceBytes, transferredBytes: 19, unavailable: [] });
|
|
44
|
+
expect(cold.fetchMs).toBeGreaterThan(0); expect(cold.compileMs).toBeGreaterThan(0); expect(cold.rewriteMs).toBeGreaterThan(0);
|
|
45
|
+
const warm = await metrics(handler);
|
|
46
|
+
const stored = await metrics(createLinkRoutes(settings));
|
|
47
|
+
for (const [record, cache] of [[warm, "memory"], [stored, "storage"]] as const) expect(record).toMatchObject({ source: "cache", cache, decodedBytes: sourceBytes, transferredBytes: 0, fetchMs: 0, integrityMs: 0, compileMs: 0, rewriteMs: 0, unavailable: [] });
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
it("retains the new fetch cost on a content hit after path invalidation", async () => {
|
|
51
|
+
const { handler } = await fixture(); await metrics(handler);
|
|
52
|
+
await handler(new Request(`${origin}/link/_control`, { method: "POST", body: JSON.stringify({ developerOverrides: true, command: { type: "invalidate", id: "checkout", paths: ["src/Counter.tsx"] } }) }));
|
|
53
|
+
const hit = await metrics(handler);
|
|
54
|
+
expect(hit).toMatchObject({ source: "cache", cache: "memory", decodedBytes: sourceBytes, transferredBytes: 19, compileMs: 0, rewriteMs: 0 });
|
|
55
|
+
expect(hit.fetchMs).toBeGreaterThan(0);
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
it("reports unavailable transfer bytes when the source server omits Content-Length", async () => {
|
|
59
|
+
const { handler } = await fixture({ fetch: async () => new Response(source) });
|
|
60
|
+
expect(await metrics(handler)).toMatchObject({ decodedBytes: sourceBytes, transferredBytes: null, unavailable: [] });
|
|
61
|
+
expect(await metrics(handler, "/src/page.tsx")).toMatchObject({ transferredBytes: 0, origin: null, source: "compiled" });
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
it("measures package integrity and generated agent/shim rewrites", async () => {
|
|
65
|
+
const { handler, saved } = await fixture({ fetch: async () => new Response("export default 1;", { headers: { "content-length": "17" } }) });
|
|
66
|
+
saved.lock.integrity["acme@1.0.0/index.js"] = await digest(new TextEncoder().encode("export default 1;"));
|
|
67
|
+
const pkg = await metrics(handler, "/npm/acme@1.0.0/index.js");
|
|
68
|
+
expect(pkg).toMatchObject({ source: "network", decodedBytes: 17, transferredBytes: 17, origin: "https://packages.example/acme@1.0.0/index.js" });
|
|
69
|
+
expect(pkg.integrityMs).toBeGreaterThan(0);
|
|
70
|
+
const agent = await metrics(handler, "/__runtime/page-agent.js");
|
|
71
|
+
expect(agent).toMatchObject({ source: "network", generated: "page agent module", origin: `${origin}/page-agent.js`, transferredBytes: 17 });
|
|
72
|
+
expect(agent.rewriteMs).toBeGreaterThan(0);
|
|
73
|
+
saved.lock.map.imports["react/jsx-dev-runtime"] = saved.lock.map.imports.react!;
|
|
74
|
+
const shim = await metrics(handler, "/__runtime/jsx-dev-runtime.js");
|
|
75
|
+
expect(shim).toMatchObject({ source: "generated", generated: "JSX development shim", origin: null, transferredBytes: 0 });
|
|
76
|
+
expect(shim.rewriteMs).toBeGreaterThan(0);
|
|
77
|
+
});
|
|
78
|
+
|
|
79
|
+
it("caches generated agent rewrites by context and original bytes while retaining each source fetch", async () => {
|
|
80
|
+
let source = "export default 1;";
|
|
81
|
+
const { handler, settings } = await fixture({ fetch: async () => new Response(source, { headers: { "content-length": String(new TextEncoder().encode(source).byteLength) } }) });
|
|
82
|
+
const cold = await metrics(handler, "/__runtime/page-agent.js");
|
|
83
|
+
const warm = await metrics(handler, "/__runtime/page-agent.js");
|
|
84
|
+
const stored = await metrics(createLinkRoutes(settings), "/__runtime/page-agent.js");
|
|
85
|
+
expect(cold.rewriteMs).toBeGreaterThan(0);
|
|
86
|
+
for (const [record, cache] of [[warm, "memory"], [stored, "storage"]] as const) {
|
|
87
|
+
expect(record).toMatchObject({ source: "cache", cache, generated: "page agent module", transferredBytes: 17, decodedBytes: 17, compileMs: 0, rewriteMs: 0 });
|
|
88
|
+
expect(record.fetchMs).toBeGreaterThan(0);
|
|
89
|
+
}
|
|
90
|
+
source = "export default 123;";
|
|
91
|
+
const changed = await metrics(handler, "/__runtime/page-agent.js");
|
|
92
|
+
expect(changed).toMatchObject({ source: "network", cache: "miss", decodedBytes: 19 });
|
|
93
|
+
expect(changed.rewriteMs).toBeGreaterThan(0);
|
|
94
|
+
});
|
|
95
|
+
|
|
96
|
+
it.each(["fetch", "compile", "integrity", "rewrite"] as const)("keeps measured %s costs on linked errors at the router boundary", async (phase) => {
|
|
97
|
+
const bad = phase === "compile" ? "export const Counter = <div>" : phase === "rewrite" ? 'import x from "outside"; export default x;' : "bad integrity";
|
|
98
|
+
const { settings, saved } = await fixture({ fetch: async () => {
|
|
99
|
+
if (phase === "fetch") throw new Error("Source server offline");
|
|
100
|
+
return new Response(bad);
|
|
101
|
+
} });
|
|
102
|
+
const path = phase === "integrity" ? "/npm/acme@1.0.0/index.js" : "/link/checkout/src/Counter.tsx";
|
|
103
|
+
saved.lock.integrity["acme@1.0.0/index.js"] = "sha384-invalid";
|
|
104
|
+
await (await settings.caches.open("page-runtime-activity-pages")).put(`${origin}/__runtime/pages/page.tsx`, Response.json(saved));
|
|
105
|
+
const router = createRouter({ ...settings, onActivity: ({ record }) => {
|
|
106
|
+
expect(record.error?.phase).toBe("link");
|
|
107
|
+
expect(record[`${phase}Ms`]).toBeGreaterThan(0);
|
|
108
|
+
expect(record.origin).not.toBeNull();
|
|
109
|
+
} });
|
|
110
|
+
const response = await router.route(new Request(`${origin}${path}?page=page.tsx`));
|
|
111
|
+
expect(response.headers.get("x-page-runtime-error")).toBe("link");
|
|
112
|
+
expect(response.headers.get("server-timing")).not.toContain("unavailable");
|
|
113
|
+
});
|
|
114
|
+
|
|
115
|
+
it("answers a failed frame navigation with a frame document that carries the runtime error to boot", async () => {
|
|
116
|
+
const { settings } = await fixture({ fetch: async () => { throw new Error("Source server offline"); } });
|
|
117
|
+
const request = new Request(`${origin}/link/checkout/src/Counter.tsx?page=page.tsx`);
|
|
118
|
+
Object.defineProperty(request, "mode", { value: "navigate" });
|
|
119
|
+
const response = await createRouter(settings).route(request);
|
|
120
|
+
const html = await response.text();
|
|
121
|
+
const embedded = /<script type="application\/json" id="page-runtime-error">(.*?)<\/script>/.exec(html)?.[1];
|
|
122
|
+
expect({ status: response.status, type: response.headers.get("content-type"), phase: response.headers.get("x-page-runtime-error"), csp: response.headers.get("content-security-policy") }).toEqual({ status: 500, type: "text/html; charset=utf-8", phase: "link", csp: expect.stringContaining("frame-ancestors https://host.example") });
|
|
123
|
+
expect(html).toContain('src="/boot.js"');
|
|
124
|
+
expect(html).not.toContain("throw Object.assign");
|
|
125
|
+
expect(JSON.parse(embedded!)).toMatchObject({ phase: "link", file: "/link/checkout/src/Counter.tsx", message: expect.stringContaining("Source server offline") });
|
|
126
|
+
});
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { WorkerActivity } from "../activity-schema.ts";
|
|
2
|
+
|
|
3
|
+
export type LinkActivity = Pick<WorkerActivity, "source" | "cache" | "origin" | "generated" | "transferredBytes" | "decodedBytes" | "outputBytes" | "fetchMs" | "integrityMs" | "compileMs" | "rewriteMs" | "unavailable">;
|
|
4
|
+
|
|
5
|
+
export function createLinkActivity(): LinkActivity {
|
|
6
|
+
return { source: "compiled", cache: "miss", origin: null, generated: null, transferredBytes: 0, decodedBytes: null, outputBytes: null, fetchMs: 0, integrityMs: 0, compileMs: 0, rewriteMs: 0, unavailable: [] };
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export function linkActivityResponse(options: { response: Response; metrics: LinkActivity }): Response {
|
|
10
|
+
options.response.headers.set("x-link-activity", encodeURIComponent(JSON.stringify(options.metrics)));
|
|
11
|
+
if (options.metrics.outputBytes !== null) options.response.headers.set("content-length", String(options.metrics.outputBytes));
|
|
12
|
+
return options.response;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export function cachedLinkActivity(options: { response: Response; layer: "memory" | "storage"; metrics: LinkActivity }): void {
|
|
16
|
+
const size = options.response.headers.get("x-link-source-bytes");
|
|
17
|
+
const output = options.response.headers.get("content-length");
|
|
18
|
+
if (size === null || output === null) throw new Error("Linked cache entry is missing its source/output size");
|
|
19
|
+
Object.assign(options.metrics, { source: "cache", cache: options.layer, decodedBytes: Number(size), outputBytes: Number(output) });
|
|
20
|
+
}
|
|
21
|
+
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { expect, it } from "vitest";
|
|
2
|
+
import { createLinkCache } from "./link-cache.ts";
|
|
3
|
+
import { memoryCaches } from "../link/testing-cache.ts";
|
|
4
|
+
|
|
5
|
+
it("reports storage on the first persistent read and memory on subsequent reads", async () => {
|
|
6
|
+
const persistent = memoryCaches().open("links");
|
|
7
|
+
const key = "https://runtime.example/cache/module";
|
|
8
|
+
await (await persistent).put(key, new Response("module", { headers: { "x-link-source-bytes": "12" } }));
|
|
9
|
+
const cache = createLinkCache(persistent);
|
|
10
|
+
const first = await cache.match(key);
|
|
11
|
+
const second = await cache.match(key);
|
|
12
|
+
expect([first?.layer, second?.layer, await first?.response.text(), await second?.response.text()]).toEqual(["storage", "memory", "module", "module"]);
|
|
13
|
+
await cache.delete(new Request(key));
|
|
14
|
+
expect(await cache.match(key)).toBeUndefined();
|
|
15
|
+
});
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export function createLinkCache(persistent: Promise<Cache>) {
|
|
2
|
+
const memory = new Map<string, { bytes: ArrayBuffer; headers: Array<[string, string]> }>();
|
|
3
|
+
return {
|
|
4
|
+
async match(key: string): Promise<{ response: Response; layer: "memory" | "storage" } | undefined> {
|
|
5
|
+
const stored = memory.get(key);
|
|
6
|
+
if (stored) return { response: new Response(stored.bytes, { headers: stored.headers }), layer: "memory" };
|
|
7
|
+
const response = await (await persistent).match(key);
|
|
8
|
+
if (response) memory.set(key, { bytes: await response.clone().arrayBuffer(), headers: [...response.headers] });
|
|
9
|
+
return response ? { response, layer: "storage" } : undefined;
|
|
10
|
+
},
|
|
11
|
+
async put(key: string, response: Response): Promise<void> {
|
|
12
|
+
const bytes = await response.clone().arrayBuffer();
|
|
13
|
+
await (await persistent).put(key, response);
|
|
14
|
+
memory.set(key, { bytes, headers: [...response.headers] });
|
|
15
|
+
},
|
|
16
|
+
async keys(): Promise<readonly Request[]> { return (await persistent).keys(); },
|
|
17
|
+
async delete(key: Request): Promise<boolean> { memory.delete(key.url); return (await persistent).delete(key); },
|
|
18
|
+
};
|
|
19
|
+
}
|