UNPKG

puppeteer-core

Version:

A high-level API to control headless Chrome over the DevTools Protocol

1 lines 6.82 kB
{"version":3,"file":"ChromeLauncher.js","sourceRoot":"","sources":["../../../../src/node/ChromeLauncher.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;AAiTH,kCAWC;AAQD,kDAWC;AA7UD,+CAAyC;AACzC,sDAAyB;AACzB,0DAA6B;AAE7B,kDAI6B;AAG7B,+CAA6C;AAC7C,iDAAyC;AAEzC,6DAA8E;AAG9E,wCAAgC;AAEhC;;GAEG;AACH,MAAa,cAAe,SAAQ,oCAAe;IACjD,YAAY,SAAwB;QAClC,KAAK,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC;IAC7B,CAAC;IAEQ,MAAM,CAAC,UAAyB,EAAE;QACzC,IACE,IAAI,CAAC,SAAS,CAAC,aAAa,CAAC,QAAQ,KAAK,MAAM;YAChD,OAAO,CAAC,QAAQ,KAAK,QAAQ;YAC7B,OAAO,CAAC,IAAI,KAAK,KAAK,EACtB,CAAC;YACD,MAAM,IAAI,GAAG,iBAAE,CAAC,IAAI,EAAE,CAAC;YACvB,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC;gBACrC,OAAO,CAAC,IAAI,CACV;oBACE,yBAAyB;oBACzB,8CAA8C;oBAC9C,kFAAkF;oBAClF,oFAAoF;oBACpF,iFAAiF;oBACjF,oCAAoC;iBACrC,CAAC,IAAI,CAAC,MAAM,CAAC,CACf,CAAC;YACJ,CAAC;QACH,CAAC;QAED,OAAO,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IAC/B,CAAC;IAED;;OAEG;IACM,KAAK,CAAC,sBAAsB,CACnC,UAAyB,EAAE;QAE3B,MAAM,EACJ,iBAAiB,GAAG,KAAK,EACzB,IAAI,GAAG,EAAE,EACT,IAAI,GAAG,KAAK,EACZ,aAAa,EACb,OAAO,EACP,cAAc,GACf,GAAG,OAAO,C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