%PDF- %PDF-
Direktori : /var/www/html/node_modules/next/dist/lib/ |
Current File : /var/www/html/node_modules/next/dist/lib/download-wasm-swc.js.map |
{"version":3,"sources":["../../lib/download-wasm-swc.ts"],"names":["downloadWasmSwc","Log","MAX_VERSIONS_TO_CACHE","version","wasmDirectory","variant","pkgName","tarFileName","substring","outputDirectory","path","join","fileExists","cacheDirectory","result","envDefined","process","env","systemCacheDirectory","platform","XDG_CACHE_HOME","os","homedir","LOCALAPPDATA","dir","tmpdir","console","error","Error","exit","isAbsolute","resolve","cwd","fs","promises","mkdir","recursive","extractFromTar","tar","x","file","strip","info","tempFile","Date","now","registry","output","execSync","toString","trim","startsWith","endsWith","_","fetch","then","res","ok","status","cacheWriteStream","createWriteStream","Promise","reject","body","pipe","on","err","finally","close","rename","cacheFiles","readdir","length","sort","a","b","localeCompare","i","unlink","catch"],"mappings":"AAAA;;;;QAWsBA,eAAe,GAAfA,eAAe;AAXtB,IAAA,GAAI,kCAAJ,IAAI,EAAA;AACJ,IAAA,GAAI,kCAAJ,IAAI,EAAA;AACF,IAAA,KAAM,kCAAN,MAAM,EAAA;AACXC,IAAAA,GAAG,mCAAM,qBAAqB,EAA3B;AACU,IAAA,aAAe,WAAf,eAAe,CAAA;AACxB,IAAA,IAAwB,kCAAxB,wBAAwB,EAAA;AACtB,IAAA,UAA+B,kCAA/B,+BAA+B,EAAA;AACtB,IAAA,WAAe,WAAf,eAAe,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAE1C,MAAMC,qBAAqB,GAAG,CAAC;AAExB,eAAeF,eAAe,CACnCG,OAAe,EACfC,aAAqB,EACrBC,OAAyB,GAAG,QAAQ,EACpC;IACA,MAAMC,OAAO,GAAG,CAAC,eAAe,EAAED,OAAO,CAAC,CAAC;IAC3C,MAAME,WAAW,GAAG,CAAC,EAAED,OAAO,CAACE,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,EAAEL,OAAO,CAAC,IAAI,CAAC;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