hyperframes 0.8.211 → 0.8.213
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/dist/{add-WERDY37C.js → add-GRJ6BQMO.js} +14 -13
- package/dist/{agentPromptGenerator-SEAPWYY5.js → agentPromptGenerator-2HTUGEKK.js} +6 -6
- package/dist/{animatedGifPrep-LC43PROA.js → animatedGifPrep-7KPZBZXD.js} +6 -6
- package/dist/api.js +18 -18
- package/dist/{asset-IVDQNYHP.js → asset-YVIFFWCU.js} +5 -4
- package/dist/{assetCataloger-PPE7M2WM.js → assetCataloger-IZW7LPCT.js} +7 -7
- package/dist/{audio-IJ22GXO6.js → audio-X7274SUF.js} +316 -210
- package/dist/{auth-FZMDHX2H.js → auth-II6SIDJD.js} +4 -4
- package/dist/{autoUpdate-EO6SFALF.js → autoUpdate-WJIT74BG.js} +4 -2
- package/dist/{backgroundChecks-YW5VIAYF.js → backgroundChecks-NMKJAES7.js} +5 -3
- package/dist/backgroundChecksWorker.js +5 -3
- package/dist/{batchRender-OOXYNZOT.js → batchRender-I7GRY73M.js} +8 -7
- package/dist/{beats-X7GRQA4J.js → beats-6VXALJZT.js} +15 -14
- package/dist/{benchmark-JGGBMRZO.js → benchmark-RLIRA74V.js} +19 -17
- package/dist/{browser-FQ5JPTME.js → browser-7T3JMNTR.js} +12 -10
- package/dist/{bundleWithLocalizedFonts-XA73ZJ4S.js → bundleWithLocalizedFonts-C2LP6QZZ.js} +2 -2
- package/dist/{capture-GUVCA5JQ.js → capture-OZFDTN4A.js} +48 -18
- package/dist/{capture-KKVB3MKM.js → capture-V4HWHG7C.js} +13 -10
- package/dist/{captureCompositionFrame-LNKWWCXE.js → captureCompositionFrame-WZAVXCRQ.js} +14 -13
- package/dist/{catalog-LKJEMEOC.js → catalog-UFC7JS4T.js} +18 -17
- package/dist/{catch-up-FA6KWX4S.js → catch-up-YBNKJDWJ.js} +8 -7
- package/dist/{check-6GIDKL6S.js → check-ESQJHRGA.js} +42 -41
- package/dist/{checkAudio-H3AUFC4M.js → checkAudio-OIIBWFBF.js} +26 -11
- package/dist/{checkBrowser-YWWF63S6.js → checkBrowser-WAWL6TKX.js} +35 -34
- package/dist/{chunk-KSNIYQRB.js → chunk-26AQTUU4.js} +5 -7
- package/dist/{chunk-B2B4MN3R.js → chunk-2GS2RUVI.js} +2 -2
- package/dist/{chunk-WNDTMINP.js → chunk-2WELGDXU.js} +3 -3
- package/dist/{chunk-OE5EHGDG.js → chunk-3OYLHBQZ.js} +1 -1
- package/dist/{chunk-U46JEU26.js → chunk-4645UHJF.js} +1 -0
- package/dist/{chunk-FI7SSV73.js → chunk-46HYDDZ5.js} +1 -1
- package/dist/{chunk-YPNBEBQ6.js → chunk-4BXPCS5B.js} +26 -19
- package/dist/{chunk-ABBVDJMG.js → chunk-53VXGZ3L.js} +2 -2
- package/dist/{chunk-66KMYUNO.js → chunk-5ODMV7X6.js} +2 -2
- package/dist/{chunk-MMJAHBH2.js → chunk-5SKC4G26.js} +4 -1
- package/dist/{chunk-J2JG4XGP.js → chunk-5ZBMHUY2.js} +4 -0
- package/dist/{chunk-YRO3PXWU.js → chunk-6CGYINE7.js} +97 -2
- package/dist/{chunk-JMD5HDPB.js → chunk-6ZLDIMPL.js} +2 -2
- package/dist/{chunk-3R5MYOJN.js → chunk-76T7KAYD.js} +2 -2
- package/dist/{chunk-OOA6C4AG.js → chunk-7I5N36JA.js} +2 -2
- package/dist/{chunk-CNU65QE2.js → chunk-7JWRVKN4.js} +9 -5
- package/dist/{chunk-CJ5QZRY7.js → chunk-7KBS6ZLB.js} +2 -2
- package/dist/{chunk-T2L2GJ4C.js → chunk-7LOVQRUJ.js} +7 -7
- package/dist/{chunk-FBN5AQJL.js → chunk-7TWX4Y7I.js} +3 -3
- package/dist/{chunk-VBC3DQFS.js → chunk-AJ3QW6RX.js} +12 -5
- package/dist/{chunk-FIC3E7IM.js → chunk-BE6XXZAR.js} +9 -9
- package/dist/{chunk-5MCR5DA5.js → chunk-BVHNFPRF.js} +5 -5
- package/dist/{chunk-PKWZG642.js → chunk-CLA4XSBO.js} +3 -3
- package/dist/{chunk-DAXKGMJL.js → chunk-D3Q2TABU.js} +5 -5
- package/dist/{chunk-AIY2Y5UY.js → chunk-DJFEYX23.js} +5 -5
- package/dist/{chunk-FVY2XRX4.js → chunk-DKEZSH6M.js} +2 -2
- package/dist/{chunk-LALLQUSK.js → chunk-DP5LF7GF.js} +2 -0
- package/dist/{chunk-Q52ISCT4.js → chunk-DQ26IA5P.js} +1 -1
- package/dist/{chunk-3WL7WU6K.js → chunk-ENE4IKFX.js} +19 -20
- package/dist/{chunk-JZVUSRZ5.js → chunk-EQ66MVWZ.js} +1 -1
- package/dist/{chunk-VWG7OQKU.js → chunk-EQGKUPBJ.js} +4 -1
- package/dist/{chunk-KZBBY72Q.js → chunk-F4EX52FU.js} +1 -1
- package/dist/{chunk-4JWKC3GH.js → chunk-FGIMC5I4.js} +5 -5
- package/dist/{chunk-CGAUUUDL.js → chunk-FHO3FXTW.js} +3 -3
- package/dist/chunk-FJ646TIT.js +201 -0
- package/dist/{chunk-77KGX4A3.js → chunk-FKFGGAXN.js} +50 -8
- package/dist/{chunk-VUEWZXZG.js → chunk-G6HUXX3L.js} +1 -1
- package/dist/{chunk-5YHQBCWH.js → chunk-G6OKQMJI.js} +12 -2
- package/dist/{chunk-VGKQFZCC.js → chunk-GNSNCIHF.js} +14 -14
- package/dist/{chunk-SXJJTFV4.js → chunk-H3I2VLLL.js} +16 -4
- package/dist/{chunk-UYEZTK4U.js → chunk-HPTFD6MO.js} +10 -10
- package/dist/{chunk-5KOZRJR7.js → chunk-HWHPYCBZ.js} +1 -1
- package/dist/{chunk-22OGII5H.js → chunk-I3G45TWG.js} +1 -1
- package/dist/{chunk-DMIFCIG6.js → chunk-IHYWP4V5.js} +1 -1
- package/dist/{chunk-5LITFBMY.js → chunk-ISMOBMWF.js} +35 -24
- package/dist/{chunk-DDRCX7P2.js → chunk-KL2UJXCY.js} +2 -2
- package/dist/{chunk-KDDO3UYI.js → chunk-KSMCX5EP.js} +3 -3
- package/dist/{chunk-UI7X4L4M.js → chunk-KVFOQ3EM.js} +2137 -2100
- package/dist/{chunk-472C35EW.js → chunk-KY67MTBH.js} +1 -1
- package/dist/{chunk-DPYI2HRJ.js → chunk-L34IH4SH.js} +5 -5
- package/dist/{chunk-AHPGAESX.js → chunk-L72RQ45A.js} +1 -1
- package/dist/{chunk-YWPCMOX4.js → chunk-LALMFSLB.js} +5 -5
- package/dist/{chunk-4D46TX6Q.js → chunk-LGDRKQKL.js} +1 -1
- package/dist/{chunk-DWIMUPFK.js → chunk-LTQXIYNL.js} +2 -2
- package/dist/{chunk-Z2UZAY2Q.js → chunk-LYON3VGF.js} +2 -2
- package/dist/{chunk-AQMGYRX6.js → chunk-MBSESQED.js} +1 -1
- package/dist/{chunk-ZPXXWUQ3.js → chunk-MFC2PE7D.js} +30 -4
- package/dist/{chunk-6J2G57BB.js → chunk-N3MOQTRS.js} +7 -7
- package/dist/chunk-N3ZAIZF3.js +4870 -0
- package/dist/{chunk-JLGVBK5M.js → chunk-N4XNRHFM.js} +18 -4
- package/dist/{chunk-3NIESDKN.js → chunk-NGJS5H5E.js} +1 -1
- package/dist/{chunk-DJ3H6EW3.js → chunk-NP4G4WPP.js} +10 -9
- package/dist/{chunk-RQNFW6YC.js → chunk-O63A26XQ.js} +8 -3
- package/dist/{chunk-XNFDDVJS.js → chunk-ONMTNYGR.js} +4 -1
- package/dist/{chunk-SJK64HHG.js → chunk-OWV36OJP.js} +5 -2
- package/dist/{chunk-4EO7DNRJ.js → chunk-PAZ7WUYZ.js} +2 -2
- package/dist/{chunk-K43XLAQV.js → chunk-Q55JNFDV.js} +3 -3
- package/dist/{chunk-CZCRSS3U.js → chunk-QHWVCKC5.js} +1 -1
- package/dist/{chunk-ORXLO64X.js → chunk-S2HWGG5O.js} +1 -1
- package/dist/{chunk-5AKWJHRJ.js → chunk-S3ZWVEGQ.js} +1 -1
- package/dist/chunk-SJGE5I5F.js +131 -0
- package/dist/{chunk-GSXA4YLV.js → chunk-STK62RL7.js} +1 -1
- package/dist/{chunk-B4KGJHTE.js → chunk-SZOCI3JJ.js} +2 -2
- package/dist/{chunk-PICG2XRD.js → chunk-TCCCAEZD.js} +2 -2
- package/dist/{chunk-KF6I5WA7.js → chunk-TDNPJHEQ.js} +15 -18
- package/dist/{chunk-BGC5S3OZ.js → chunk-TLXK5A2N.js} +49 -36
- package/dist/{chunk-6EN2LWOM.js → chunk-TWCICOCI.js} +1 -1
- package/dist/{chunk-NEQIJUV2.js → chunk-UBDO4EHA.js} +10 -1
- package/dist/{chunk-2QAR7ZNY.js → chunk-V2H5UABS.js} +3 -3
- package/dist/{chunk-3LACB6HG.js → chunk-VTX27LET.js} +3 -3
- package/dist/{chunk-3JYKWNFR.js → chunk-VVDHSRKD.js} +1 -1
- package/dist/{chunk-2RQZQJHV.js → chunk-WSEPFRJV.js} +1 -1
- package/dist/{chunk-K3LLHG6I.js → chunk-XNY2KI2Z.js} +1 -1
- package/dist/{chunk-ZNSKOXFW.js → chunk-Z65ZQYBW.js} +3 -3
- package/dist/{chunk-QVHC77IF.js → chunk-Z7QHOT65.js} +2 -2
- package/dist/{chunk-LAR5VTCN.js → chunk-ZGG53XZX.js} +5 -5
- package/dist/{chunk-67JTGRNM.js → chunk-ZSRNM6LP.js} +1 -1
- package/dist/{chunk-IEVU4FXB.js → chunk-ZTCILR3V.js} +3 -3
- package/dist/{clean-SVEOBRPM.js → clean-XBQ54UZX.js} +22 -21
- package/dist/cli.js +151 -82
- package/dist/{cloud-ADFJGIEH.js → cloud-E2GUGXXL.js} +4 -4
- package/dist/{cloudrun-BNY7Q5RK.js → cloudrun-IAPFT66T.js} +23 -20
- package/dist/commands/layout-audit.browser.js +7 -10
- package/dist/{compare-QC3T22KV.js → compare-2VPIOCLV.js} +45 -46
- package/dist/{compiler-4ITKK4XI.js → compiler-3ED6KJYN.js} +3 -3
- package/dist/{component-CNZCB3RY.js → component-IH2KSDNM.js} +6 -5
- package/dist/{compositions-UO32IP6Z.js → compositions-MIMF2GM3.js} +14 -13
- package/dist/{delete-RWTOSI24.js → delete-5H5EYSYK.js} +13 -11
- package/dist/{deploy-OKWS53NP.js → deploy-DMQT34K2.js} +5 -5
- package/dist/{destroy-4RL5VOXQ.js → destroy-BQ5R7LUF.js} +3 -3
- package/dist/{deterministicFonts-LKAGUNE5.js → deterministicFonts-2ISM3LMW.js} +1 -1
- package/dist/{dist-AEE3QTRB.js → dist-ANQ2CIIO.js} +2 -2
- package/dist/{dist-NCI6JOJZ.js → dist-OKQM7BQ3.js} +3 -1
- package/dist/{docs-UMIA66EZ.js → docs-6EM6FDNI.js} +5 -4
- package/dist/{doctor-SIF72ESZ.js → doctor-MTRZJQZZ.js} +12 -10
- package/dist/{events-S3VUTFEG.js → events-2GNMM2YS.js} +5 -3
- package/dist/{events-34PIVLZQ.js → events-TBKM6B5H.js} +8 -5
- package/dist/{feedback-VS4LRXHW.js → feedback-6NNSKXQP.js} +20 -19
- package/dist/{ffmpeg-YVQOKNV6.js → ffmpeg-622QCJLB.js} +6 -6
- package/dist/{figma-AF4JKDBA.js → figma-TFHZ3N5A.js} +3 -3
- package/dist/fontLocalizeCli.js +11 -11
- package/dist/{get-UQGCS6Q4.js → get-P6RA7MAU.js} +8 -7
- package/dist/{gpuPolicy-Q4B3D6PW.js → gpuPolicy-CK2XDEAM.js} +6 -6
- package/dist/{grade-compare-G34673XC.js → grade-compare-LK6U7OJD.js} +47 -45
- package/dist/{heifImagePrep-XD4DGOUS.js → heifImagePrep-3OXKQUEZ.js} +7 -7
- package/dist/{help-3QSD26IC.js → help-YENCFXYK.js} +11 -7
- package/dist/{history-6DC24UCF.js → history-V3E4UCMY.js} +15 -12
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +64 -64
- package/dist/hyperframes-player.global.js +1 -1
- package/dist/{info-6JUHWWJK.js → info-ZGKQMX3Z.js} +11 -10
- package/dist/{init-2DPX6U3J.js → init-D6PJI2TA.js} +38 -37
- package/dist/{inspect-Z55YUSXC.js → inspect-UCHLILOX.js} +33 -32
- package/dist/{installer-XVKYJU7S.js → installer-CV2OKJFW.js} +4 -4
- package/dist/{keyframes-YHF4AQIL.js → keyframes-2IJTDJ7K.js} +10 -9
- package/dist/{lambda-JITTS37E.js → lambda-GKZBKWTK.js} +32 -30
- package/dist/{layout-V5NYJXIX.js → layout-KKPRCTME.js} +33 -32
- package/dist/{lint-V4WMO7YL.js → lint-NAC6M4NT.js} +18 -15
- package/dist/{lintProject-EM7Y2ZRB.js → lintProject-MSATZIK7.js} +1 -1
- package/dist/{list-W7UCIYKA.js → list-QRMXOTNB.js} +11 -10
- package/dist/{live-LAHBXVK2.js → live-WWPFZQ74.js} +33 -7
- package/dist/{localPage-BLQFFIDF.js → localPage-KMXALM7A.js} +6 -6
- package/dist/{login-IX3MOREU.js → login-GBN5ZMEA.js} +11 -11
- package/dist/{logout-46NLNY2K.js → logout-C6P6ERZ3.js} +5 -5
- package/dist/{manager-WJOWZNHM.js → manager-GPDDRQIW.js} +8 -8
- package/dist/{media-treatment-XBO6EXL4.js → media-treatment-4Q7G27JJ.js} +44 -34
- package/dist/{media-use-3RFKY7XJ.js → media-use-ZRHFRO46.js} +1 -1
- package/dist/{models-P3NSHDQS.js → models-7KJF4LYJ.js} +27 -20
- package/dist/{motionShot-D4QMLTQP.js → motionShot-DQAX2QTZ.js} +17 -16
- package/dist/{normalize-audio-Q4VUR3QJ.js → normalize-audio-K7VCJQYJ.js} +30 -19
- package/dist/{open-LGKX534P.js → open-ZSBVR3KC.js} +17 -16
- package/dist/{parakeetRunner-FAOQMPS6.js → parakeetRunner-XXZHJYKO.js} +12 -12
- package/dist/{pipeline-2YONKZYC.js → pipeline-KNLOS5CL.js} +11 -11
- package/dist/{play-PJOUIY55.js → play-GQWF7MU5.js} +32 -34
- package/dist/{policies-UPNRQ7IW.js → policies-J5BWAZHM.js} +11 -10
- package/dist/{preflight-3PPM7QBU.js → preflight-UMKQ5C5W.js} +7 -7
- package/dist/{present-323D6OE2.js → present-X7BPH35M.js} +28 -30
- package/dist/{preview-E42QP2KX.js → preview-5Q7HPEOF.js} +25 -24
- package/dist/{producer-MTMNLJSC.js → producer-IXOPGETH.js} +1 -1
- package/dist/{progress-LMQ2DXM4.js → progress-X3QFO3FE.js} +4 -4
- package/dist/{projectConfig-5QRVB5KY.js → projectConfig-YGI5AINR.js} +6 -6
- package/dist/{prompts-P3IT5H36.js → prompts-VAO7RDKX.js} +2 -2
- package/dist/{publication-AUZLFOG5.js → publication-ZSDCS2ST.js} +2 -2
- package/dist/{publish-H5P7UHRV.js → publish-S2IIRPFZ.js} +18 -18
- package/dist/{refresh-4XRQS3N6.js → refresh-IYRGLHG5.js} +5 -5
- package/dist/{remove-background-T2RV476S.js → remove-background-F2WFDCNM.js} +22 -18
- package/dist/{render-4XEB3XWI.js → render-CHRSSQNM.js} +60 -58
- package/dist/{render-3FRGIWES.js → render-NVHUPEDG.js} +28 -27
- package/dist/{render-GJH7446R.js → render-WYBQO4SR.js} +11 -10
- package/dist/{render-batch-77X5453X.js → render-batch-SDGA2643.js} +12 -11
- package/dist/renderSetupWorker.js +1 -1
- package/dist/{resolver-DIUNK525.js → resolver-3W2OPVGC.js} +4 -4
- package/dist/{sam-FHJ7IL7T.js → sam-QA7JT7IM.js} +2 -1
- package/dist/{sherpa-SUS3YSEP.js → sherpa-HCPAOYGA.js} +11 -11
- package/dist/{sites-V42IFVTK.js → sites-MTLVMYJ6.js} +2 -2
- package/dist/{skills-YCGSIOCE.js → skills-KOVM4OP5.js} +17 -13
- package/dist/{skillsUpdateCheck-VCQIZGOL.js → skillsUpdateCheck-ISMQFMPY.js} +5 -3
- package/dist/{snapshot-H6R5PWNS.js → snapshot-K7LVZDHG.js} +340 -107
- package/dist/{src-ED5VCIRC.js → src-FUMXFZYG.js} +10 -10
- package/dist/{src-HHDLJV4L.js → src-QEFKMRH7.js} +11 -5
- package/dist/{state-D5SYQFCB.js → state-6QHNNHDA.js} +2 -2
- package/dist/{staticProjectServer-VY7QG5XH.js → staticProjectServer-MF57NBIU.js} +18 -18
- package/dist/{status-GEZNVPII.js → status-SLILCDBZ.js} +12 -7
- package/dist/studio/assets/{hyperframes-player-CzrqgMUX.js → hyperframes-player-Bb6n05RB.js} +1 -1
- package/dist/studio/assets/{index-B3SPHPi1.js → index-DOtf09XR.js} +1 -1
- package/dist/studio/assets/{index-k4nVfS2D.js → index-pq574E5O.js} +119 -119
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-TR5RPX57.js → studio-api-Y4S3W7XE.js} +10 -10
- package/dist/{studioServer-4SZLLQOV.js → studioServer-5LUZQOQV.js} +53 -52
- package/dist/{synthesize-QALK5SQR.js → synthesize-FQML2LN2.js} +2 -2
- package/dist/{telemetry-KGY7G3UR.js → telemetry-NTO4FJFN.js} +5 -4
- package/dist/{telemetry-7HUKOQ6X.js → telemetry-TJMB5BTF.js} +6 -5
- package/dist/{timeline-CGIKWCQI.js → timeline-CU6CIWYL.js} +31 -27
- package/dist/{tokens-AZALDJEK.js → tokens-7P4N2FWN.js} +5 -4
- package/dist/{transcribe-CTF5EIXJ.js → transcribe-FZ7JK6QS.js} +28 -25
- package/dist/{transcribe-V6K5547L.js → transcribe-TFDEQFMG.js} +10 -10
- package/dist/{tts-C2HBLFKK.js → tts-K5HRN6NQ.js} +17 -13
- package/dist/{updateCheck-5I563YLB.js → updateCheck-HUDVZHVM.js} +4 -2
- package/dist/{upgrade-GRPVQE7Z.js → upgrade-KP4RQZKY.js} +7 -6
- package/dist/{urlDownloader-EP6Q4WES.js → urlDownloader-5SHSHWMB.js} +5 -5
- package/dist/{validate-TVCDSQS3.js → validate-VWX423M4.js} +27 -26
- package/dist/{video-CFEIRKAE.js → video-K4L2YFU2.js} +10 -10
- package/dist/warmCheck.js +44 -43
- package/package.json +1 -1
- package/dist/chunk-FWKZ3O52.js +0 -4870
- package/dist/chunk-WQ6ZXHFQ.js +0 -133
|
@@ -3496,16 +3496,30 @@ function collectCssCustomProperties(css, customProperties) {
|
|
|
3496
3496
|
customProperties.set(decl.prop, decl.value);
|
|
3497
3497
|
});
|
|
3498
3498
|
}
|
|
3499
|
+
var FONT_SIZE_KEYWORD = /^(?:xx-small|x-small|small|medium|large|x-large|xx-large|xxx-large|smaller|larger)$/i;
|
|
3500
|
+
var FONT_SIZE_TOKEN = /^(?:\d*\.?\d+[a-z%]+|(?:calc|min|max|clamp|var)\(.*\))(?:\/\S+)?$/i;
|
|
3501
|
+
function fontShorthandFamilies(value) {
|
|
3502
|
+
for (const token of value.matchAll(/(?:[^\s(]|\([^)]*\))+/g)) {
|
|
3503
|
+
const size = token[0].split("/")[0] ?? "";
|
|
3504
|
+
if (FONT_SIZE_KEYWORD.test(size) || FONT_SIZE_TOKEN.test(token[0])) {
|
|
3505
|
+
return value.slice(token.index + token[0].length).trim();
|
|
3506
|
+
}
|
|
3507
|
+
}
|
|
3508
|
+
return "";
|
|
3509
|
+
}
|
|
3499
3510
|
function* iterateCssRootFontFamilyDeclarations(root) {
|
|
3500
3511
|
const declarations = [];
|
|
3501
3512
|
root.walkDecls((decl) => {
|
|
3502
|
-
|
|
3513
|
+
const prop = decl.prop.toLowerCase();
|
|
3514
|
+
if (prop !== "font-family" && prop !== "font")
|
|
3503
3515
|
return;
|
|
3504
3516
|
if (isFontFaceDeclaration(decl))
|
|
3505
3517
|
return;
|
|
3506
|
-
const declaration = decl.value;
|
|
3518
|
+
const declaration = prop === "font" ? fontShorthandFamilies(decl.value) : decl.value;
|
|
3519
|
+
if (!declaration)
|
|
3520
|
+
return;
|
|
3507
3521
|
declarations.push({
|
|
3508
|
-
surface:
|
|
3522
|
+
surface: prop,
|
|
3509
3523
|
declaration,
|
|
3510
3524
|
families: parseFontFamilyValue(declaration)
|
|
3511
3525
|
});
|
|
@@ -3513,7 +3527,7 @@ function* iterateCssRootFontFamilyDeclarations(root) {
|
|
|
3513
3527
|
yield* declarations;
|
|
3514
3528
|
}
|
|
3515
3529
|
function* iterateCssFontFamilyDeclarations(css) {
|
|
3516
|
-
if (!/font
|
|
3530
|
+
if (!/font(?:-family)?\s*:/i.test(css))
|
|
3517
3531
|
return;
|
|
3518
3532
|
const root = parseCssRoot(css);
|
|
3519
3533
|
if (!root)
|
|
@@ -10,19 +10,19 @@ import {
|
|
|
10
10
|
import {
|
|
11
11
|
pageNavigationTimeoutMs,
|
|
12
12
|
windowsChromeCrashRemediation
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-7LOVQRUJ.js";
|
|
14
14
|
import {
|
|
15
15
|
resolveCompositionViewportFromHtml
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-NGJS5H5E.js";
|
|
17
17
|
import {
|
|
18
18
|
launchManagedBrowser,
|
|
19
19
|
resolveManagedGpuMode,
|
|
20
20
|
rethrowAfterBrowserCleanup
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-BVHNFPRF.js";
|
|
22
22
|
import {
|
|
23
23
|
resolveLocalBrowserGpuMode,
|
|
24
24
|
resolveLocalWebGpu
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-LYON3VGF.js";
|
|
26
26
|
import {
|
|
27
27
|
c
|
|
28
28
|
} from "./chunk-2GICKZ3I.js";
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
assertWebGpuAdapterAvailable,
|
|
31
31
|
compositionRequiresWebGpu,
|
|
32
32
|
oneProcessOverPipe
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-KVFOQ3EM.js";
|
|
34
34
|
import {
|
|
35
35
|
normalizeErrorMessage
|
|
36
36
|
} from "./chunk-E63BDV4Z.js";
|
|
@@ -138,7 +138,7 @@ async function waitForCompositionSettle(page, options) {
|
|
|
138
138
|
console.warn(` ${c.warn("\u26A0")} Shader transitions did not finish pre-rendering`);
|
|
139
139
|
});
|
|
140
140
|
await waitForLateSubresources(page, options.lateSubresourceTimeoutMs ?? CAPTURE_SETTLE_MS);
|
|
141
|
-
const { resolveConfig, waitForImagesReady } = await import("./src-
|
|
141
|
+
const { resolveConfig, waitForImagesReady } = await import("./src-QEFKMRH7.js");
|
|
142
142
|
const imageTimeoutMs = resolveConfig().playerReadyTimeout;
|
|
143
143
|
await waitForImagesReady(
|
|
144
144
|
page,
|
|
@@ -187,7 +187,7 @@ async function installPageFunctionGuard(page) {
|
|
|
187
187
|
async function openSettledCompositionPage(html, url, options) {
|
|
188
188
|
const viewport = resolveCompositionViewportFromHtml(html);
|
|
189
189
|
const requiresWebGpu = compositionRequiresWebGpu(html);
|
|
190
|
-
const answer = (await import("./staticProjectServer-
|
|
190
|
+
const answer = (await import("./staticProjectServer-MF57NBIU.js")).inProcessAnswer(url);
|
|
191
191
|
const noListen = answer !== void 0;
|
|
192
192
|
let chromeBrowser;
|
|
193
193
|
try {
|
|
@@ -198,8 +198,9 @@ async function openSettledCompositionPage(html, url, options) {
|
|
|
198
198
|
options.onBrowserReady?.();
|
|
199
199
|
const page = await chromeBrowser.newPage();
|
|
200
200
|
await installPageFunctionGuard(page);
|
|
201
|
-
const { installMediaRenderIdBridge } = await import("./src-
|
|
201
|
+
const { installMediaRenderIdBridge, forcePreservedDrawingBuffer } = await import("./src-QEFKMRH7.js");
|
|
202
202
|
await installMediaRenderIdBridge(page);
|
|
203
|
+
await page.evaluateOnNewDocument(forcePreservedDrawingBuffer);
|
|
203
204
|
await page.setViewport(viewport);
|
|
204
205
|
if (answer) await answerPageInProcess(page, url, answer);
|
|
205
206
|
await options.beforeNavigate?.(page);
|
|
@@ -217,7 +218,7 @@ async function launchCompositionBrowser(html, noListen, options) {
|
|
|
217
218
|
const { ensureBrowser, findSystemBrowser } = await import("./manager-IZIK7BHN.js");
|
|
218
219
|
const browser = await ensureBrowser({ signal: options.signal });
|
|
219
220
|
const puppeteer = await import("puppeteer-core");
|
|
220
|
-
const { buildChromeArgs } = await import("./src-
|
|
221
|
+
const { buildChromeArgs } = await import("./src-QEFKMRH7.js");
|
|
221
222
|
const requestedGpuMode = options.browserGpuMode ?? resolveCliChromeGpuMode();
|
|
222
223
|
const requiresWebGpu = compositionRequiresWebGpu(html);
|
|
223
224
|
let softwareWebGpu = false;
|
|
@@ -15,13 +15,16 @@ import {
|
|
|
15
15
|
import {
|
|
16
16
|
isDevMode
|
|
17
17
|
} from "./chunk-ISN5GRYI.js";
|
|
18
|
+
import {
|
|
19
|
+
asNotice
|
|
20
|
+
} from "./chunk-SJGE5I5F.js";
|
|
18
21
|
import {
|
|
19
22
|
isCI,
|
|
20
23
|
isUnattended
|
|
21
24
|
} from "./chunk-J3RXEDR2.js";
|
|
22
25
|
import {
|
|
23
26
|
VERSION
|
|
24
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-KL2UJXCY.js";
|
|
25
28
|
|
|
26
29
|
// src/utils/updateCheck.ts
|
|
27
30
|
import { existsSync, readFileSync } from "fs";
|
|
@@ -257,9 +260,11 @@ function withMeta(data, options) {
|
|
|
257
260
|
return { ...data, _meta: meta };
|
|
258
261
|
}
|
|
259
262
|
function printDeprecationNotice(command) {
|
|
260
|
-
|
|
261
|
-
|
|
263
|
+
asNotice(
|
|
264
|
+
() => process.stderr.write(
|
|
265
|
+
`'hyperframes ${command}' is deprecated and will be removed in a future release. Use 'hyperframes check' instead.
|
|
262
266
|
`
|
|
267
|
+
)
|
|
263
268
|
);
|
|
264
269
|
}
|
|
265
270
|
function updateCheckDisabled() {
|
|
@@ -4,6 +4,9 @@ import { dirname as __hf_dirname } from "node:path";
|
|
|
4
4
|
var require = __hf_createRequire(import.meta.url);
|
|
5
5
|
var __filename = __hf_fileURLToPath(import.meta.url);
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
|
+
import {
|
|
8
|
+
CliUsageError
|
|
9
|
+
} from "./chunk-DP5LF7GF.js";
|
|
7
10
|
|
|
8
11
|
// src/commands/lambda/sam.ts
|
|
9
12
|
import { execFileSync, spawnSync } from "child_process";
|
|
@@ -41,7 +44,7 @@ function parseReservedConcurrency(raw) {
|
|
|
41
44
|
if (raw === "none") return -1;
|
|
42
45
|
const n = Number(raw);
|
|
43
46
|
if (!Number.isInteger(n) || n < 1) {
|
|
44
|
-
throw new
|
|
47
|
+
throw new CliUsageError(
|
|
45
48
|
`[lambda] --concurrency must be a positive integer or "none"; got ${String(raw)}`
|
|
46
49
|
);
|
|
47
50
|
}
|
|
@@ -7,9 +7,12 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
isTextFile
|
|
9
9
|
} from "./chunk-K4WKGXRC.js";
|
|
10
|
+
import {
|
|
11
|
+
jsonFailure
|
|
12
|
+
} from "./chunk-SJGE5I5F.js";
|
|
10
13
|
import {
|
|
11
14
|
CliUsageError
|
|
12
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-DP5LF7GF.js";
|
|
13
16
|
|
|
14
17
|
// src/utils/reject-extra-positionals.ts
|
|
15
18
|
var ACCEPTS_EXTRA_POSITIONALS = /* @__PURE__ */ new Set([
|
|
@@ -62,7 +65,7 @@ function resolveExtraPositionals(cmd, path, parsed) {
|
|
|
62
65
|
const message = `Unexpected extra argument${plural} for hyperframes ${path}: ${extra.join(", ")}
|
|
63
66
|
Usage: ${usageLine(path, args)}` + (EXTRA_POSITIONAL_HINTS[path] ? `
|
|
64
67
|
${EXTRA_POSITIONAL_HINTS[path]}` : "");
|
|
65
|
-
if (wantsJson(parsed?.json)) console.log(JSON.stringify(
|
|
68
|
+
if (wantsJson(parsed?.json)) console.log(JSON.stringify(jsonFailure("usage_error", message)));
|
|
66
69
|
else console.error(message);
|
|
67
70
|
throw new CliUsageError(
|
|
68
71
|
`${extra.length} unexpected extra argument${plural} for hyperframes ${path}`,
|
|
@@ -8,13 +8,13 @@ import {
|
|
|
8
8
|
DEFAULT_VP9_CPU_USED,
|
|
9
9
|
isHttpUrl,
|
|
10
10
|
runFfmpeg
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-KVFOQ3EM.js";
|
|
12
12
|
import {
|
|
13
13
|
renameWithRetry
|
|
14
14
|
} from "./chunk-YWRUQ7XZ.js";
|
|
15
15
|
import {
|
|
16
16
|
parseAnimatedGifMetadata
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-KY67MTBH.js";
|
|
18
18
|
import {
|
|
19
19
|
parseHTML
|
|
20
20
|
} from "./chunk-GWTIFRF5.js";
|
|
@@ -12,13 +12,13 @@ import {
|
|
|
12
12
|
forceRefreshCredentials,
|
|
13
13
|
resolveCloudAuthHeaders,
|
|
14
14
|
resolveCloudBaseUrl
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-VVDHSRKD.js";
|
|
16
16
|
import {
|
|
17
17
|
errorBox
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-5ZBMHUY2.js";
|
|
19
19
|
import {
|
|
20
20
|
failCommand
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-DP5LF7GF.js";
|
|
22
22
|
|
|
23
23
|
// src/cloud/poll.ts
|
|
24
24
|
var DEFAULT_POLL_INTERVAL_MS = 2e3;
|
|
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
failCommand
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-DP5LF7GF.js";
|
|
10
10
|
|
|
11
11
|
// src/commands/lambda/state.ts
|
|
12
12
|
import { existsSync, mkdirSync, readdirSync, readFileSync, rmSync, writeFileSync } from "fs";
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import { createRequire as __hf_createRequire } from "node:module";
|
|
2
|
+
import { fileURLToPath as __hf_fileURLToPath } from "node:url";
|
|
3
|
+
import { dirname as __hf_dirname } from "node:path";
|
|
4
|
+
var require = __hf_createRequire(import.meta.url);
|
|
5
|
+
var __filename = __hf_fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = __hf_dirname(__filename);
|
|
7
|
+
import {
|
|
8
|
+
CliRuntimeError,
|
|
9
|
+
CliUsageError,
|
|
10
|
+
failCommand,
|
|
11
|
+
failUsage
|
|
12
|
+
} from "./chunk-DP5LF7GF.js";
|
|
13
|
+
|
|
14
|
+
// src/utils/jsonError.ts
|
|
15
|
+
import { format, stripVTControlCharacters } from "util";
|
|
16
|
+
function jsonFailure(code, message, hint) {
|
|
17
|
+
return { ok: false, error: hint ? { code, message, hint } : { code, message } };
|
|
18
|
+
}
|
|
19
|
+
function failCaught(error, json, line, print = (payload) => console.log(JSON.stringify(payload))) {
|
|
20
|
+
const message = failureMessage(error);
|
|
21
|
+
const usage = error instanceof CliUsageError;
|
|
22
|
+
if (json) print(jsonFailure(usage ? error.code : "runtime_error", message));
|
|
23
|
+
else console.error(line(message));
|
|
24
|
+
if (usage) failUsage();
|
|
25
|
+
failCommand();
|
|
26
|
+
}
|
|
27
|
+
function writeJsonFailure(body) {
|
|
28
|
+
process.stdout.write(`${JSON.stringify({ ok: false, error: body })}
|
|
29
|
+
`);
|
|
30
|
+
}
|
|
31
|
+
var reported;
|
|
32
|
+
var noticeDepth = 0;
|
|
33
|
+
function recordFailure(message, hint) {
|
|
34
|
+
reported = { message, hint };
|
|
35
|
+
}
|
|
36
|
+
function asNotice(write) {
|
|
37
|
+
noticeDepth++;
|
|
38
|
+
try {
|
|
39
|
+
write();
|
|
40
|
+
} finally {
|
|
41
|
+
noticeDepth--;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
var GENERIC_MESSAGES = /* @__PURE__ */ new Set(["Command failed", "Invalid command usage"]);
|
|
45
|
+
function failureMessage(error) {
|
|
46
|
+
if (!(error instanceof Error)) return String(error);
|
|
47
|
+
if (!GENERIC_MESSAGES.has(error.message)) return error.message;
|
|
48
|
+
if (error.cause instanceof Error) return failureMessage(error.cause);
|
|
49
|
+
return reported?.message ?? error.message;
|
|
50
|
+
}
|
|
51
|
+
function watchOutput() {
|
|
52
|
+
let wrote = false;
|
|
53
|
+
let stderr = "";
|
|
54
|
+
let inConsole = false;
|
|
55
|
+
const keep = (text) => {
|
|
56
|
+
if (noticeDepth === 0) stderr = (stderr + text).slice(-4e3);
|
|
57
|
+
};
|
|
58
|
+
const stdoutWrite = process.stdout.write.bind(process.stdout);
|
|
59
|
+
const stderrWrite = process.stderr.write.bind(process.stderr);
|
|
60
|
+
process.stdout.write = ((...args) => {
|
|
61
|
+
wrote = true;
|
|
62
|
+
return stdoutWrite(...args);
|
|
63
|
+
});
|
|
64
|
+
process.stderr.write = ((...args) => {
|
|
65
|
+
if (!inConsole)
|
|
66
|
+
keep(args[0] instanceof Uint8Array ? Buffer.from(args[0]).toString() : String(args[0]));
|
|
67
|
+
return stderrWrite(...args);
|
|
68
|
+
});
|
|
69
|
+
for (const name of ["log", "info", "debug", "dir", "table"]) {
|
|
70
|
+
const original = console[name].bind(console);
|
|
71
|
+
console[name] = (...args) => {
|
|
72
|
+
wrote = true;
|
|
73
|
+
original(...args);
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
for (const name of ["error", "warn"]) {
|
|
77
|
+
const original = console[name].bind(console);
|
|
78
|
+
console[name] = (...args) => {
|
|
79
|
+
keep(`${format(...args)}
|
|
80
|
+
`);
|
|
81
|
+
inConsole = true;
|
|
82
|
+
try {
|
|
83
|
+
original(...args);
|
|
84
|
+
} finally {
|
|
85
|
+
inConsole = false;
|
|
86
|
+
}
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
return {
|
|
90
|
+
wroteStdout: () => wrote,
|
|
91
|
+
stderrText: () => stripVTControlCharacters(stderr).split("\n").map((line) => line.replace(/^[\s✗│◇◆]+/u, "").trim()).filter(Boolean).join(" ").slice(-1e3)
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
function withHint(body, hint) {
|
|
95
|
+
return hint ? { ...body, hint: stripVTControlCharacters(hint) } : body;
|
|
96
|
+
}
|
|
97
|
+
function errorCode(error, result) {
|
|
98
|
+
if (error instanceof CliUsageError) return error.code;
|
|
99
|
+
return result.kind === "usage_error" ? "usage_error" : "runtime_error";
|
|
100
|
+
}
|
|
101
|
+
function ownMessage(error) {
|
|
102
|
+
if (!(error instanceof Error) || GENERIC_MESSAGES.has(error.message)) return void 0;
|
|
103
|
+
const typed = error instanceof CliUsageError || error instanceof CliRuntimeError;
|
|
104
|
+
return typed || !("result" in error) ? stripVTControlCharacters(error.message) : void 0;
|
|
105
|
+
}
|
|
106
|
+
function jsonErrorBody(error, result, stderrText) {
|
|
107
|
+
const code = errorCode(error, result);
|
|
108
|
+
const own = ownMessage(error);
|
|
109
|
+
if (own)
|
|
110
|
+
return withHint(
|
|
111
|
+
{ code, message: own },
|
|
112
|
+
error instanceof CliUsageError ? error.hint : void 0
|
|
113
|
+
);
|
|
114
|
+
if (error instanceof Error && error.cause instanceof Error) {
|
|
115
|
+
return { code, message: failureMessage(error.cause) };
|
|
116
|
+
}
|
|
117
|
+
if (reported)
|
|
118
|
+
return withHint({ code, message: stripVTControlCharacters(reported.message) }, reported.hint);
|
|
119
|
+
return { code, message: stderrText || "Command failed" };
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export {
|
|
123
|
+
jsonFailure,
|
|
124
|
+
failCaught,
|
|
125
|
+
writeJsonFailure,
|
|
126
|
+
recordFailure,
|
|
127
|
+
asNotice,
|
|
128
|
+
failureMessage,
|
|
129
|
+
watchOutput,
|
|
130
|
+
jsonErrorBody
|
|
131
|
+
};
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
typeDirPath,
|
|
21
21
|
updateRecord,
|
|
22
22
|
withFigmaErrors
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-DJFEYX23.js";
|
|
24
24
|
import {
|
|
25
25
|
defineCommand
|
|
26
26
|
} from "./chunk-DL4OD7IA.js";
|
|
@@ -229,7 +229,7 @@ var asset_default = defineCommand({
|
|
|
229
229
|
rendered > 0 ? `(${results.length} nodes, ${rendered} rendered in 1 figma request)` : `(${results.length} nodes, all reused from cache \u2014 no figma request)`
|
|
230
230
|
);
|
|
231
231
|
}
|
|
232
|
-
const { trackFigmaImport } = await import("./telemetry-
|
|
232
|
+
const { trackFigmaImport } = await import("./telemetry-TJMB5BTF.js");
|
|
233
233
|
trackFigmaImport({
|
|
234
234
|
phase: "asset",
|
|
235
235
|
reused: results.every((r) => r.reused),
|
|
@@ -7,7 +7,7 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
probeFirstFrameColour,
|
|
9
9
|
probeMediaMetadata
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-IHYWP4V5.js";
|
|
11
11
|
import {
|
|
12
12
|
alphaDecoderFor
|
|
13
13
|
} from "./chunk-5S7W3TUO.js";
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
formatPreviewProxyBox,
|
|
16
16
|
hdrToSdrToneMapFilter,
|
|
17
17
|
isHeavyForPreview
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-KY67MTBH.js";
|
|
19
19
|
import {
|
|
20
20
|
mkdirWithinProject,
|
|
21
21
|
realProjectRoot,
|
|
@@ -10,41 +10,38 @@ import {
|
|
|
10
10
|
import {
|
|
11
11
|
RegistryCompatibilityError,
|
|
12
12
|
gateRegistryItemsCompatibility
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-DQ26IA5P.js";
|
|
14
14
|
import {
|
|
15
15
|
DEFAULT_PROJECT_CONFIG,
|
|
16
16
|
createProjectConfig,
|
|
17
17
|
loadProjectConfig,
|
|
18
18
|
projectConfigPath,
|
|
19
19
|
recordProjectRegistryItems
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-QHWVCKC5.js";
|
|
21
21
|
import {
|
|
22
22
|
resolveItemWithDependencies,
|
|
23
23
|
resolveItemsByTag
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-STK62RL7.js";
|
|
25
25
|
import {
|
|
26
26
|
InvalidVariableValuesError,
|
|
27
27
|
prepareItem,
|
|
28
28
|
publishItem
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-LTQXIYNL.js";
|
|
30
30
|
import {
|
|
31
31
|
DEFAULT_REGISTRY_URL
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-HWHPYCBZ.js";
|
|
33
33
|
import {
|
|
34
34
|
trackRegistryItemAdded
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-H3I2VLLL.js";
|
|
36
36
|
import {
|
|
37
37
|
defineCommand
|
|
38
38
|
} from "./chunk-DL4OD7IA.js";
|
|
39
|
-
import {
|
|
40
|
-
failCommand
|
|
41
|
-
} from "./chunk-LALLQUSK.js";
|
|
42
39
|
import {
|
|
43
40
|
c
|
|
44
41
|
} from "./chunk-2GICKZ3I.js";
|
|
45
42
|
import {
|
|
46
43
|
ITEM_TYPE_DIRS
|
|
47
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-KY67MTBH.js";
|
|
48
45
|
import {
|
|
49
46
|
isProjectRootMissing,
|
|
50
47
|
realpath
|
|
@@ -52,6 +49,12 @@ import {
|
|
|
52
49
|
import {
|
|
53
50
|
parseHTML
|
|
54
51
|
} from "./chunk-GWTIFRF5.js";
|
|
52
|
+
import {
|
|
53
|
+
failCaught
|
|
54
|
+
} from "./chunk-SJGE5I5F.js";
|
|
55
|
+
import {
|
|
56
|
+
failCommand
|
|
57
|
+
} from "./chunk-DP5LF7GF.js";
|
|
55
58
|
|
|
56
59
|
// src/commands/add.ts
|
|
57
60
|
import { existsSync, readFileSync } from "fs";
|
|
@@ -416,10 +419,7 @@ var add_default = defineCommand({
|
|
|
416
419
|
}
|
|
417
420
|
} catch (singleErr) {
|
|
418
421
|
if (!(singleErr instanceof AddError) || singleErr.code !== "unknown-item") {
|
|
419
|
-
|
|
420
|
-
if (json) console.log(JSON.stringify({ ok: false, error: msg }));
|
|
421
|
-
else console.error(c.error(msg));
|
|
422
|
-
failCommand();
|
|
422
|
+
failCaught(singleErr, json, c.error);
|
|
423
423
|
}
|
|
424
424
|
let config = loadProjectConfig(projectDir);
|
|
425
425
|
if (!existsSync(projectConfigPath(projectDir)) && existsSync(resolve(projectDir, "index.html"))) {
|
|
@@ -433,10 +433,7 @@ var add_default = defineCommand({
|
|
|
433
433
|
items = [];
|
|
434
434
|
}
|
|
435
435
|
if (items.length === 0) {
|
|
436
|
-
|
|
437
|
-
if (json) console.log(JSON.stringify({ ok: false, error: msg }));
|
|
438
|
-
else console.error(c.error(msg));
|
|
439
|
-
failCommand();
|
|
436
|
+
failCaught(singleErr, json, c.error);
|
|
440
437
|
}
|
|
441
438
|
if (!json) {
|
|
442
439
|
console.log("");
|