@checkly/playwright-reporter 0.0.6-alpha → 0.0.8-alpha

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/README.md CHANGED
@@ -75,7 +75,7 @@ Running 5 tests using 5 workers
75
75
 
76
76
  ======================================================
77
77
 
78
- 📦 Checkly Playwright reporter: 0.1.0
78
+ 🦝 Checkly reporter: 0.1.0
79
79
  🎭 Playwright: 1.56.0
80
80
  📔 Project: chromium
81
81
  🔗 Test session URL: https://chkly.link/l/XSX35
@@ -1 +1 @@
1
- function a0_0x33a1(_0x1c9b35,_0x8f8e68){const _0xa62879=a0_0xa628();return a0_0x33a1=function(_0x33a1eb,_0x1700f0){_0x33a1eb=_0x33a1eb-0x1cf;let _0x12185a=_0xa62879[_0x33a1eb];return _0x12185a;},a0_0x33a1(_0x1c9b35,_0x8f8e68);}const a0_0x5f33b8=a0_0x33a1;(function(_0x2ad3e6,_0x250d11){const _0x5d7a06=a0_0x33a1,_0x370c42=_0x2ad3e6();while(!![]){try{const _0x531264=-parseInt(_0x5d7a06(0x1e6))/0x1+-parseInt(_0x5d7a06(0x1f7))/0x2*(parseInt(_0x5d7a06(0x1e4))/0x3)+-parseInt(_0x5d7a06(0x1e5))/0x4*(-parseInt(_0x5d7a06(0x1f2))/0x5)+-parseInt(_0x5d7a06(0x206))/0x6*(-parseInt(_0x5d7a06(0x1db))/0x7)+-parseInt(_0x5d7a06(0x1f9))/0x8+-parseInt(_0x5d7a06(0x1f6))/0x9*(-parseInt(_0x5d7a06(0x1e7))/0xa)+parseInt(_0x5d7a06(0x1e2))/0xb*(parseInt(_0x5d7a06(0x1d2))/0xc);if(_0x531264===_0x250d11)break;else _0x370c42['push'](_0x370c42['shift']());}catch(_0x47b8a2){_0x370c42['push'](_0x370c42['shift']());}}}(a0_0xa628,0xd01b5));function a0_0xa628(){const _0x89c0c=['.bmp','245gbsDyG','image/png','readdirSync','sep','.webm','resolve','.log','22PYnHwu','.mov','3337431dNovGr','164oXvEzm','1277166uvYmGl','10glVPvu','push','application/zip','collectAssetsRecursive','split','createAsset','application/octet-stream','.txt','image/svg+xml','getVideoContentType','has','88105QcbNuA','.avi','.htm','collectAssets','3728169DrJxfU','2kgoDXO','video/webm','10231480vuEauQ','toLowerCase','add','relative','trace','isFile','text/plain','some','includes','attachment','application/json','isDirectory','.svg','245370kUEyrH','image/jpeg','text/html','image/bmp','name','shouldSkipFile','.html','testResultsDir','determineAssetType','11717736LEVoFy','getImageContentType','video/quicktime','.mp4','other','extname','join','.jpg'];a0_0xa628=function(){return _0x89c0c;};return a0_0xa628();}import*as a0_0x37e16e from'fs';import*as a0_0x50a913 from'path';export class AssetCollector{[a0_0x5f33b8(0x1d0)];constructor(_0x2805d5){this['testResultsDir']=_0x2805d5;}async[a0_0x5f33b8(0x1f5)](_0x2d642c){const _0x1d18d6=a0_0x5f33b8,_0x2a116a=[],_0x3fe855=new Set();if(!a0_0x37e16e['existsSync'](this[_0x1d18d6(0x1d0)]))return _0x2a116a;return await this[_0x1d18d6(0x1ea)](this['testResultsDir'],'',_0x2a116a,_0x3fe855),_0x2a116a;}async[a0_0x5f33b8(0x1ea)](_0x3a7849,_0x5d4fa8,_0x2470af,_0x255660){const _0x35e2ab=a0_0x5f33b8;let _0x5e7407;try{_0x5e7407=a0_0x37e16e[_0x35e2ab(0x1dd)](_0x3a7849,{'withFileTypes':!![]});}catch{return;}const _0x5713e6=a0_0x50a913['basename'](a0_0x50a913[_0x35e2ab(0x1e0)](this[_0x35e2ab(0x1d0)]));for(const _0x53a0a0 of _0x5e7407){const _0x3f5c95=a0_0x50a913['join'](_0x3a7849,_0x53a0a0['name']),_0x503770=a0_0x50a913[_0x35e2ab(0x1fc)](this[_0x35e2ab(0x1d0)],_0x3f5c95),_0xab02e=a0_0x50a913[_0x35e2ab(0x1d8)](_0x5713e6,_0x503770);if(this['shouldSkipFile'](_0x53a0a0[_0x35e2ab(0x20a)]))continue;if(_0x53a0a0[_0x35e2ab(0x204)]())await this['collectAssetsRecursive'](_0x3f5c95,_0xab02e,_0x2470af,_0x255660);else{if(_0x53a0a0[_0x35e2ab(0x1fe)]()){if(!_0x255660[_0x35e2ab(0x1f1)](_0x3f5c95)){const _0x305417=this[_0x35e2ab(0x1ec)](_0x3f5c95,_0xab02e);_0x2470af[_0x35e2ab(0x1e8)](_0x305417),_0x255660[_0x35e2ab(0x1fb)](_0x3f5c95);}}}}}[a0_0x5f33b8(0x20b)](_0x570b4f){const _0x57c10d=a0_0x5f33b8,_0x59eb68=[/^\./,/\.tmp$/i,/~$/,/\.swp$/i,/\.lock$/i,/^playwright-test-report\.json$/i];return _0x59eb68[_0x57c10d(0x200)](_0x53d85b=>_0x53d85b['test'](_0x570b4f));}[a0_0x5f33b8(0x1ec)](_0x19b761,_0x435fc0){const _0x4ae0a4=a0_0x5f33b8,_0x1e1520=a0_0x50a913[_0x4ae0a4(0x1d7)](_0x19b761)[_0x4ae0a4(0x1fa)](),{type:_0xe79ac8,contentType:_0x66d43e}=this[_0x4ae0a4(0x1d1)](_0x1e1520),_0x5f0237=_0x435fc0[_0x4ae0a4(0x1eb)](a0_0x50a913[_0x4ae0a4(0x1de)])['join']('/');return{'sourcePath':_0x19b761,'archivePath':_0x5f0237,'type':_0xe79ac8,'contentType':_0x66d43e};}[a0_0x5f33b8(0x1d1)](_0x7bbc8d){const _0x48f9e0=a0_0x5f33b8;if(['.png',_0x48f9e0(0x1d9),'.jpeg','.gif',_0x48f9e0(0x1da),_0x48f9e0(0x205)]['includes'](_0x7bbc8d))return{'type':'screenshot','contentType':this['getImageContentType'](_0x7bbc8d)};if([_0x48f9e0(0x1df),_0x48f9e0(0x1d5),_0x48f9e0(0x1f3),_0x48f9e0(0x1e3)][_0x48f9e0(0x201)](_0x7bbc8d))return{'type':'video','contentType':this['getVideoContentType'](_0x7bbc8d)};if(_0x7bbc8d==='.zip')return{'type':_0x48f9e0(0x1fd),'contentType':_0x48f9e0(0x1e9)};if(_0x7bbc8d===_0x48f9e0(0x1cf)||_0x7bbc8d===_0x48f9e0(0x1f4))return{'type':_0x48f9e0(0x202),'contentType':_0x48f9e0(0x208)};if(_0x7bbc8d==='.json')return{'type':_0x48f9e0(0x202),'contentType':_0x48f9e0(0x203)};if(_0x7bbc8d===_0x48f9e0(0x1ee)||_0x7bbc8d===_0x48f9e0(0x1e1))return{'type':_0x48f9e0(0x202),'contentType':_0x48f9e0(0x1ff)};return{'type':_0x48f9e0(0x1d6),'contentType':_0x48f9e0(0x1ed)};}[a0_0x5f33b8(0x1d3)](_0x2da514){const _0x156cb9=a0_0x5f33b8,_0x323dac={'.png':_0x156cb9(0x1dc),'.jpg':_0x156cb9(0x207),'.jpeg':'image/jpeg','.gif':'image/gif','.bmp':_0x156cb9(0x209),'.svg':_0x156cb9(0x1ef)};return _0x323dac[_0x2da514]||_0x156cb9(0x1dc);}[a0_0x5f33b8(0x1f0)](_0x5d9647){const _0x24c6a4=a0_0x5f33b8,_0x122daa={'.webm':_0x24c6a4(0x1f8),'.mp4':'video/mp4','.avi':'video/x-msvideo','.mov':_0x24c6a4(0x1d4)};return _0x122daa[_0x5d9647]||_0x24c6a4(0x1f8);}}
1
+ const a0_0x50d833=a0_0xf325;function a0_0xd359(){const _0x2d846a=['isFile','application/json','readdirSync','.jpg','resolve','.txt','video/quicktime','getVideoContentType','application/zip','.avi','name','image/jpeg','56REBRGp','.svg','video/webm','819203iLuHVS','createAsset','split','video/mp4','shouldSkipFile','push','.html','relative','4489950NPtuvm','join','4SRZdOj','isDirectory','collectAssetsRecursive','toLowerCase','test','extname','text/plain','getImageContentType','video','.mov','testResultsDir','attachment','basename','determineAssetType','391653mUxYwD','.bmp','application/octet-stream','image/bmp','346321PtMLeW','869830PzBQvd','1515387FHmKcv','60FpRiDA','screenshot','sep','video/x-msvideo','some','includes','6737320VwTNUv','collectAssets','.json','.mp4','existsSync','add'];a0_0xd359=function(){return _0x2d846a;};return a0_0xd359();}(function(_0x4e6333,_0x2cfeed){const _0x13a852=a0_0xf325,_0x1f3d19=_0x4e6333();while(!![]){try{const _0x2f2106=-parseInt(_0x13a852(0x13c))/0x1+parseInt(_0x13a852(0x13d))/0x2+parseInt(_0x13a852(0x13e))/0x3*(parseInt(_0x13a852(0x12a))/0x4)+parseInt(_0x13a852(0x128))/0x5+-parseInt(_0x13a852(0x13f))/0x6*(parseInt(_0x13a852(0x15a))/0x7)+parseInt(_0x13a852(0x157))/0x8*(-parseInt(_0x13a852(0x138))/0x9)+parseInt(_0x13a852(0x145))/0xa;if(_0x2f2106===_0x2cfeed)break;else _0x1f3d19['push'](_0x1f3d19['shift']());}catch(_0x3386fa){_0x1f3d19['push'](_0x1f3d19['shift']());}}}(a0_0xd359,0xa8968));import*as a0_0x17eb09 from'fs';import*as a0_0x22478b from'path';function a0_0xf325(_0x10bc83,_0x29cb0a){const _0xd35934=a0_0xd359();return a0_0xf325=function(_0xf32509,_0x5215be){_0xf32509=_0xf32509-0x127;let _0x3b3a44=_0xd35934[_0xf32509];return _0x3b3a44;},a0_0xf325(_0x10bc83,_0x29cb0a);}export class AssetCollector{['testResultsDir'];constructor(_0xbc260f){const _0x584533=a0_0xf325;this[_0x584533(0x134)]=_0xbc260f;}async[a0_0x50d833(0x146)](_0x206f2c){const _0x3f3033=a0_0x50d833,_0x584c7e=[],_0x557684=new Set();if(!a0_0x17eb09[_0x3f3033(0x149)](this['testResultsDir']))return _0x584c7e;return await this[_0x3f3033(0x12c)](this['testResultsDir'],'',_0x584c7e,_0x557684),_0x584c7e;}async[a0_0x50d833(0x12c)](_0x5bc33d,_0x14f45d,_0x326dad,_0x5ac49a){const _0x196a05=a0_0x50d833;let _0x2c0194;try{_0x2c0194=a0_0x17eb09[_0x196a05(0x14d)](_0x5bc33d,{'withFileTypes':!![]});}catch{return;}const _0x4dc230=a0_0x22478b[_0x196a05(0x136)](a0_0x22478b[_0x196a05(0x14f)](this[_0x196a05(0x134)]));for(const _0x5a5448 of _0x2c0194){const _0x3af14d=a0_0x22478b[_0x196a05(0x129)](_0x5bc33d,_0x5a5448[_0x196a05(0x155)]),_0x2861ae=a0_0x22478b[_0x196a05(0x127)](this[_0x196a05(0x134)],_0x3af14d),_0x1d555b=a0_0x22478b[_0x196a05(0x129)](_0x4dc230,_0x2861ae);if(this[_0x196a05(0x15e)](_0x5a5448[_0x196a05(0x155)]))continue;if(_0x5a5448[_0x196a05(0x12b)]())await this[_0x196a05(0x12c)](_0x3af14d,_0x1d555b,_0x326dad,_0x5ac49a);else{if(_0x5a5448[_0x196a05(0x14b)]()){if(!_0x5ac49a['has'](_0x3af14d)){const _0x4b49b8=this[_0x196a05(0x15b)](_0x3af14d,_0x1d555b);_0x326dad[_0x196a05(0x15f)](_0x4b49b8),_0x5ac49a[_0x196a05(0x14a)](_0x3af14d);}}}}}[a0_0x50d833(0x15e)](_0x485b24){const _0x50809f=a0_0x50d833,_0x5aef4b=[/^\./,/\.tmp$/i,/~$/,/\.swp$/i,/\.lock$/i,/^playwright-test-report\.json$/i];return _0x5aef4b[_0x50809f(0x143)](_0x148bf6=>_0x148bf6[_0x50809f(0x12e)](_0x485b24));}[a0_0x50d833(0x15b)](_0x361b42,_0x51cef2){const _0x68f88c=a0_0x50d833,_0x1b9a42=a0_0x22478b[_0x68f88c(0x12f)](_0x361b42)[_0x68f88c(0x12d)](),{type:_0x12b4bb,contentType:_0x5dcacb}=this[_0x68f88c(0x137)](_0x1b9a42),_0x3aaef8=_0x51cef2[_0x68f88c(0x15c)](a0_0x22478b[_0x68f88c(0x141)])['join']('/');return{'sourcePath':_0x361b42,'archivePath':_0x3aaef8,'type':_0x12b4bb,'contentType':_0x5dcacb};}['determineAssetType'](_0x42fe92){const _0xf5ebcb=a0_0x50d833;if(['.png',_0xf5ebcb(0x14e),'.jpeg','.gif',_0xf5ebcb(0x139),_0xf5ebcb(0x158)]['includes'](_0x42fe92))return{'type':_0xf5ebcb(0x140),'contentType':this['getImageContentType'](_0x42fe92)};if(['.webm',_0xf5ebcb(0x148),_0xf5ebcb(0x154),_0xf5ebcb(0x133)][_0xf5ebcb(0x144)](_0x42fe92))return{'type':_0xf5ebcb(0x132),'contentType':this[_0xf5ebcb(0x152)](_0x42fe92)};if(_0x42fe92==='.zip')return{'type':'trace','contentType':_0xf5ebcb(0x153)};if(_0x42fe92===_0xf5ebcb(0x160)||_0x42fe92==='.htm')return{'type':'attachment','contentType':'text/html'};if(_0x42fe92===_0xf5ebcb(0x147))return{'type':'attachment','contentType':_0xf5ebcb(0x14c)};if(_0x42fe92===_0xf5ebcb(0x150)||_0x42fe92==='.log')return{'type':_0xf5ebcb(0x135),'contentType':_0xf5ebcb(0x130)};return{'type':'other','contentType':_0xf5ebcb(0x13a)};}[a0_0x50d833(0x131)](_0x9fa524){const _0x56f2eb=a0_0x50d833,_0x2c7111={'.png':'image/png','.jpg':_0x56f2eb(0x156),'.jpeg':_0x56f2eb(0x156),'.gif':'image/gif','.bmp':_0x56f2eb(0x13b),'.svg':'image/svg+xml'};return _0x2c7111[_0x9fa524]||'image/png';}[a0_0x50d833(0x152)](_0x4e551a){const _0x55a4c7=a0_0x50d833,_0x47b9a7={'.webm':'video/webm','.mp4':_0x55a4c7(0x15d),'.avi':_0x55a4c7(0x142),'.mov':_0x55a4c7(0x151)};return _0x47b9a7[_0x4e551a]||_0x55a4c7(0x159);}}
@@ -1 +1 @@
1
- var a1_0x599d9a=a1_0x5c30;function a1_0x2345(){var _0x317d7=['User-Agent','x-checkly-account','8LsXtDt','0.1.0','560iVpQQz','baseUrl','2786985XPUzBT','524942ONZNCt','headers','accountId','create','21MtBomA','request','getAxiosInstance','11277729XhwgYJ','5799YcWzeL','2134590zKzkcz','1026734btAWhD','apiKey','api','interceptors','511561zCszjl','use','8iTvfEJ','@checkly/playwright-reporter/'];a1_0x2345=function(){return _0x317d7;};return a1_0x2345();}function a1_0x5c30(_0x296db4,_0x4b0253){var _0x234588=a1_0x2345();return a1_0x5c30=function(_0x5c30a0,_0x4affe9){_0x5c30a0=_0x5c30a0-0x147;var _0x314278=_0x234588[_0x5c30a0];return _0x314278;},a1_0x5c30(_0x296db4,_0x4b0253);}(function(_0x3096d1,_0x57438c){var _0x5e126a=a1_0x5c30,_0xa6ad90=_0x3096d1();while(!![]){try{var _0x7e9e15=parseInt(_0x5e126a(0x159))/0x1+-parseInt(_0x5e126a(0x155))/0x2+parseInt(_0x5e126a(0x153))/0x3+parseInt(_0x5e126a(0x15f))/0x4*(parseInt(_0x5e126a(0x14a))/0x5)+parseInt(_0x5e126a(0x154))/0x6*(parseInt(_0x5e126a(0x14f))/0x7)+parseInt(_0x5e126a(0x15b))/0x8*(parseInt(_0x5e126a(0x152))/0x9)+-parseInt(_0x5e126a(0x148))/0xa*(parseInt(_0x5e126a(0x14b))/0xb);if(_0x7e9e15===_0x57438c)break;else _0xa6ad90['push'](_0xa6ad90['shift']());}catch(_0x17aa82){_0xa6ad90['push'](_0xa6ad90['shift']());}}}(a1_0x2345,0xba3f1));import a1_0x53cdf1 from'axios';import{handleErrorResponse}from'./errors.js';function getVersion(){var _0x5993ec=a1_0x5c30;return _0x5993ec(0x147);}export function createRequestInterceptor(_0x50ff59,_0x106a01){return _0x3a0de5=>{var _0x1273cd=a1_0x5c30;return _0x3a0de5['headers']&&(_0x3a0de5[_0x1273cd(0x14c)]['Authorization']='Bearer\x20'+_0x50ff59,_0x3a0de5[_0x1273cd(0x14c)][_0x1273cd(0x15e)]=_0x106a01,_0x3a0de5[_0x1273cd(0x14c)][_0x1273cd(0x15d)]=_0x1273cd(0x15c)+getVersion()),_0x3a0de5;};}export function createResponseErrorInterceptor(){return _0x1f3596=>{handleErrorResponse(_0x1f3596);};}export default class ChecklyClient{[a1_0x599d9a(0x156)];[a1_0x599d9a(0x149)];[a1_0x599d9a(0x14d)];[a1_0x599d9a(0x157)];constructor(_0x5c6b9c){var _0x27df86=a1_0x599d9a;this[_0x27df86(0x14d)]=_0x5c6b9c['accountId'],this['apiKey']=_0x5c6b9c[_0x27df86(0x156)],this[_0x27df86(0x149)]=_0x5c6b9c[_0x27df86(0x149)],this[_0x27df86(0x157)]=a1_0x53cdf1[_0x27df86(0x14e)]({'baseURL':this[_0x27df86(0x149)],'timeout':0x7530}),this[_0x27df86(0x157)][_0x27df86(0x158)][_0x27df86(0x150)][_0x27df86(0x15a)](createRequestInterceptor(this['apiKey'],this[_0x27df86(0x14d)])),this['api']['interceptors']['response']['use'](_0x4a5ea9=>_0x4a5ea9,createResponseErrorInterceptor());}[a1_0x599d9a(0x151)](){var _0x1001ea=a1_0x599d9a;return this[_0x1001ea(0x157)];}}
1
+ var a1_0x4f8c76=a1_0x1427;(function(_0x18afe0,_0x314b54){var _0x303476=a1_0x1427,_0x318f34=_0x18afe0();while(!![]){try{var _0x3d8d48=parseInt(_0x303476(0x194))/0x1+parseInt(_0x303476(0x18f))/0x2*(parseInt(_0x303476(0x189))/0x3)+-parseInt(_0x303476(0x18a))/0x4*(-parseInt(_0x303476(0x18d))/0x5)+-parseInt(_0x303476(0x198))/0x6+parseInt(_0x303476(0x182))/0x7+-parseInt(_0x303476(0x18b))/0x8*(-parseInt(_0x303476(0x190))/0x9)+-parseInt(_0x303476(0x181))/0xa;if(_0x3d8d48===_0x314b54)break;else _0x318f34['push'](_0x318f34['shift']());}catch(_0xc9b1e7){_0x318f34['push'](_0x318f34['shift']());}}}(a1_0xb944,0xb155a));import a1_0x33c6cf from'axios';import{handleErrorResponse}from'./errors.js';function a1_0x1427(_0x322745,_0x29ea3a){var _0xb94438=a1_0xb944();return a1_0x1427=function(_0x142764,_0x5e02a5){_0x142764=_0x142764-0x180;var _0x2f568a=_0xb94438[_0x142764];return _0x2f568a;},a1_0x1427(_0x322745,_0x29ea3a);}function getVersion(){var _0x4f3e3b=a1_0x1427;return _0x4f3e3b(0x18e);}export function createRequestInterceptor(_0x320e68,_0xe76f86){return _0x3a1c24=>{var _0xc8d4da=a1_0x1427;return _0x3a1c24['headers']&&(_0x3a1c24[_0xc8d4da(0x186)][_0xc8d4da(0x188)]='Bearer\x20'+_0x320e68,_0x3a1c24[_0xc8d4da(0x186)][_0xc8d4da(0x192)]=_0xe76f86,_0x3a1c24[_0xc8d4da(0x186)][_0xc8d4da(0x195)]=_0xc8d4da(0x197)+getVersion()),_0x3a1c24;};}function a1_0xb944(){var _0x2b9b98=['9dsBuLt','request','x-checkly-account','use','902987YhSAkI','User-Agent','getAxiosInstance','@checkly/playwright-reporter/','4664400sxLPNc','response','29374770sXzGkq','7786289ysUmGw','accountId','apiKey','api','headers','interceptors','Authorization','3DtRUhd','12tHwMhE','2474448zMnYsy','baseUrl','1260610jrMrUM','0.1.0','2720506SNXuBG'];a1_0xb944=function(){return _0x2b9b98;};return a1_0xb944();}export function createResponseErrorInterceptor(){return _0x524651=>{handleErrorResponse(_0x524651);};}export default class ChecklyClient{['apiKey'];['baseUrl'];[a1_0x4f8c76(0x183)];[a1_0x4f8c76(0x185)];constructor(_0x44c2b9){var _0x1120a0=a1_0x4f8c76;this[_0x1120a0(0x183)]=_0x44c2b9['accountId'],this['apiKey']=_0x44c2b9['apiKey'],this[_0x1120a0(0x18c)]=_0x44c2b9[_0x1120a0(0x18c)],this[_0x1120a0(0x185)]=a1_0x33c6cf['create']({'baseURL':this[_0x1120a0(0x18c)],'timeout':0x1d4c0,'maxContentLength':Infinity,'maxBodyLength':Infinity}),this[_0x1120a0(0x185)][_0x1120a0(0x187)][_0x1120a0(0x191)][_0x1120a0(0x193)](createRequestInterceptor(this[_0x1120a0(0x184)],this[_0x1120a0(0x183)])),this[_0x1120a0(0x185)][_0x1120a0(0x187)][_0x1120a0(0x180)][_0x1120a0(0x193)](_0xe1993c=>_0xe1993c,createResponseErrorInterceptor());}[a1_0x4f8c76(0x196)](){var _0x208857=a1_0x4f8c76;return this[_0x208857(0x185)];}}
@@ -1 +1 @@
1
- const a2_0x24e435=a2_0x5d24;function a2_0x3f28(){const _0x15def4=['Network\x20error','1398326ERUzul','errorCode','response','error','675726LqXOep','4140900MYsulR','constructor','3202425aQDcnW','name','17754448MhnTWr','2629235lkRFJW','Unknown\x20error','object','6bDhNuT','1646560wBLURL','statusCode','data','message'];a2_0x3f28=function(){return _0x15def4;};return a2_0x3f28();}(function(_0xd5a6b3,_0x3807a5){const _0x39fcec=a2_0x5d24,_0x51e4ee=_0xd5a6b3();while(!![]){try{const _0x2a4b57=-parseInt(_0x39fcec(0x1a6))/0x1+-parseInt(_0x39fcec(0x198))/0x2+-parseInt(_0x39fcec(0x19c))/0x3+parseInt(_0x39fcec(0x19d))/0x4+parseInt(_0x39fcec(0x19f))/0x5+-parseInt(_0x39fcec(0x1a5))/0x6*(parseInt(_0x39fcec(0x1a2))/0x7)+parseInt(_0x39fcec(0x1a1))/0x8;if(_0x2a4b57===_0x3807a5)break;else _0x51e4ee['push'](_0x51e4ee['shift']());}catch(_0x17c1d0){_0x51e4ee['push'](_0x51e4ee['shift']());}}}(a2_0x3f28,0xe78de));export class ApiError extends Error{[a2_0x24e435(0x1a8)];constructor(_0x327ab9,_0x1a184c){const _0x104803=a2_0x24e435;super(_0x327ab9['message'],_0x1a184c),this[_0x104803(0x1a0)]=this[_0x104803(0x19e)]['name'],this[_0x104803(0x1a8)]=_0x327ab9;}}export class ValidationError extends ApiError{constructor(_0x211f71,_0x4cde9e){super(_0x211f71,_0x4cde9e);}}export class UnauthorizedError extends ApiError{constructor(_0x2c8264,_0x4e8af0){super(_0x2c8264,_0x4e8af0);}}export class ForbiddenError extends ApiError{constructor(_0x32e74f,_0xfb3763){super(_0x32e74f,_0xfb3763);}}export class NotFoundError extends ApiError{constructor(_0x4b0491,_0x5a6ab8){super(_0x4b0491,_0x5a6ab8);}}export class RequestTimeoutError extends ApiError{constructor(_0x38790b,_0x5e6163){super(_0x38790b,_0x5e6163);}}export class ConflictError extends ApiError{constructor(_0x205029,_0x5dedd6){super(_0x205029,_0x5dedd6);}}export class ServerError extends ApiError{constructor(_0x2b6fca,_0x35ee54){super(_0x2b6fca,_0x35ee54);}}export class MiscellaneousError extends ApiError{constructor(_0x3e8337,_0x4e37f8){super(_0x3e8337,_0x4e37f8);}}export class MissingResponseError extends Error{constructor(_0x1d453d,_0x17a94d){const _0x1e6f18=a2_0x24e435;super(_0x1d453d,_0x17a94d),this[_0x1e6f18(0x1a0)]='MissingResponseError';}}function a2_0x5d24(_0x4ca127,_0x326606){const _0x3f281f=a2_0x3f28();return a2_0x5d24=function(_0x5d24f6,_0x10324e){_0x5d24f6=_0x5d24f6-0x198;let _0x131b60=_0x3f281f[_0x5d24f6];return _0x131b60;},a2_0x5d24(_0x4ca127,_0x326606);}export function parseErrorData(_0x482c5d,_0x3c98b0){const _0x33a881=a2_0x24e435;if(!_0x482c5d)return undefined;if(typeof _0x482c5d===_0x33a881(0x1a4)&&_0x482c5d[_0x33a881(0x1a7)]&&_0x482c5d[_0x33a881(0x19b)]&&_0x482c5d[_0x33a881(0x1a9)])return{'statusCode':_0x482c5d['statusCode'],'error':_0x482c5d[_0x33a881(0x19b)],'message':_0x482c5d[_0x33a881(0x1a9)],'errorCode':_0x482c5d[_0x33a881(0x199)]};if(typeof _0x482c5d===_0x33a881(0x1a4)&&_0x482c5d[_0x33a881(0x19b)]&&!_0x482c5d[_0x33a881(0x1a9)])return{'statusCode':_0x3c98b0[_0x33a881(0x1a7)],'error':_0x482c5d[_0x33a881(0x19b)],'message':_0x482c5d[_0x33a881(0x19b)]};if(typeof _0x482c5d===_0x33a881(0x1a4)&&_0x482c5d[_0x33a881(0x19b)]&&_0x482c5d[_0x33a881(0x1a9)])return{'statusCode':_0x3c98b0[_0x33a881(0x1a7)],'error':_0x482c5d[_0x33a881(0x19b)],'message':_0x482c5d[_0x33a881(0x1a9)],'errorCode':_0x482c5d[_0x33a881(0x199)]};if(typeof _0x482c5d===_0x33a881(0x1a4)&&_0x482c5d['message'])return{'statusCode':_0x3c98b0[_0x33a881(0x1a7)],'error':_0x482c5d[_0x33a881(0x1a9)],'message':_0x482c5d['message'],'errorCode':_0x482c5d[_0x33a881(0x199)]};if(typeof _0x482c5d==='string')return{'statusCode':_0x3c98b0[_0x33a881(0x1a7)],'error':_0x482c5d,'message':_0x482c5d};return undefined;}export function handleErrorResponse(_0x124edf){const _0xebe8ed=a2_0x24e435;if(!_0x124edf[_0xebe8ed(0x19a)])throw new MissingResponseError(_0x124edf[_0xebe8ed(0x1a9)]||_0xebe8ed(0x1aa));const {status:_0x40de3d,data:_0x209da4}=_0x124edf[_0xebe8ed(0x19a)],_0x58be7d=parseErrorData(_0x209da4,{'statusCode':_0x40de3d});if(!_0x58be7d)throw new MiscellaneousError({'statusCode':_0x40de3d,'error':_0xebe8ed(0x1a3),'message':_0x124edf[_0xebe8ed(0x1a9)]||'An\x20error\x20occurred'});switch(_0x40de3d){case 0x190:throw new ValidationError(_0x58be7d);case 0x191:throw new UnauthorizedError(_0x58be7d);case 0x193:throw new ForbiddenError(_0x58be7d);case 0x194:throw new NotFoundError(_0x58be7d);case 0x198:throw new RequestTimeoutError(_0x58be7d);case 0x199:throw new ConflictError(_0x58be7d);default:if(_0x40de3d>=0x1f4)throw new ServerError(_0x58be7d);throw new MiscellaneousError(_0x58be7d);}}
1
+ function a2_0x4c71(_0x3293a8,_0x3368b5){const _0x4fc59b=a2_0x4fc5();return a2_0x4c71=function(_0x4c716c,_0x3c302f){_0x4c716c=_0x4c716c-0x153;let _0x22cb66=_0x4fc59b[_0x4c716c];return _0x22cb66;},a2_0x4c71(_0x3293a8,_0x3368b5);}(function(_0x14b0c5,_0x2cf029){const _0x382f03=a2_0x4c71,_0x4f56eb=_0x14b0c5();while(!![]){try{const _0x1d310c=parseInt(_0x382f03(0x15c))/0x1+-parseInt(_0x382f03(0x159))/0x2*(-parseInt(_0x382f03(0x165))/0x3)+parseInt(_0x382f03(0x15e))/0x4*(parseInt(_0x382f03(0x164))/0x5)+parseInt(_0x382f03(0x167))/0x6*(parseInt(_0x382f03(0x15f))/0x7)+-parseInt(_0x382f03(0x15b))/0x8*(-parseInt(_0x382f03(0x168))/0x9)+-parseInt(_0x382f03(0x162))/0xa+-parseInt(_0x382f03(0x156))/0xb;if(_0x1d310c===_0x2cf029)break;else _0x4f56eb['push'](_0x4f56eb['shift']());}catch(_0x53d622){_0x4f56eb['push'](_0x4f56eb['shift']());}}}(a2_0x4fc5,0xa1f45));export class ApiError extends Error{['data'];constructor(_0xb08581,_0x19d4b6){const _0x52d085=a2_0x4c71;super(_0xb08581[_0x52d085(0x157)],_0x19d4b6),this['name']=this[_0x52d085(0x169)][_0x52d085(0x158)],this['data']=_0xb08581;}}export class ValidationError extends ApiError{constructor(_0x15ee74,_0x4bb4fc){super(_0x15ee74,_0x4bb4fc);}}export class UnauthorizedError extends ApiError{constructor(_0x3ab447,_0x4fa51a){super(_0x3ab447,_0x4fa51a);}}export class ForbiddenError extends ApiError{constructor(_0x30f349,_0x1512f0){super(_0x30f349,_0x1512f0);}}export class NotFoundError extends ApiError{constructor(_0x4b5d07,_0x53d5ed){super(_0x4b5d07,_0x53d5ed);}}function a2_0x4fc5(){const _0x412dd6=['error','object','18745309WStrRM','message','name','4uOLKbV','Network\x20error','108648KJoyZK','1017747DVSPYP','An\x20error\x20occurred','1276qlsWMS','2134769QHFBZu','MissingResponseError','Unknown\x20error','11779410YCSkkK','errorCode','9835ANFSRQ','1170567pljDma','statusCode','6YkGezj','540wnVguI','constructor','response'];a2_0x4fc5=function(){return _0x412dd6;};return a2_0x4fc5();}export class RequestTimeoutError extends ApiError{constructor(_0x329f6a,_0xc1d160){super(_0x329f6a,_0xc1d160);}}export class ConflictError extends ApiError{constructor(_0x37525a,_0x38a499){super(_0x37525a,_0x38a499);}}export class ServerError extends ApiError{constructor(_0x26990f,_0x5f11b5){super(_0x26990f,_0x5f11b5);}}export class MiscellaneousError extends ApiError{constructor(_0x236fdf,_0x494adb){super(_0x236fdf,_0x494adb);}}export class MissingResponseError extends Error{constructor(_0x2c9252,_0x4b870f){const _0x17fa1b=a2_0x4c71;super(_0x2c9252,_0x4b870f),this[_0x17fa1b(0x158)]=_0x17fa1b(0x160);}}export function parseErrorData(_0x47bfd1,_0xe74661){const _0x3c6ee7=a2_0x4c71;if(!_0x47bfd1)return undefined;if(typeof _0x47bfd1===_0x3c6ee7(0x155)&&_0x47bfd1['statusCode']&&_0x47bfd1[_0x3c6ee7(0x154)]&&_0x47bfd1['message'])return{'statusCode':_0x47bfd1['statusCode'],'error':_0x47bfd1[_0x3c6ee7(0x154)],'message':_0x47bfd1[_0x3c6ee7(0x157)],'errorCode':_0x47bfd1[_0x3c6ee7(0x163)]};if(typeof _0x47bfd1==='object'&&_0x47bfd1[_0x3c6ee7(0x154)]&&!_0x47bfd1['message'])return{'statusCode':_0xe74661[_0x3c6ee7(0x166)],'error':_0x47bfd1['error'],'message':_0x47bfd1[_0x3c6ee7(0x154)]};if(typeof _0x47bfd1===_0x3c6ee7(0x155)&&_0x47bfd1[_0x3c6ee7(0x154)]&&_0x47bfd1[_0x3c6ee7(0x157)])return{'statusCode':_0xe74661[_0x3c6ee7(0x166)],'error':_0x47bfd1['error'],'message':_0x47bfd1[_0x3c6ee7(0x157)],'errorCode':_0x47bfd1[_0x3c6ee7(0x163)]};if(typeof _0x47bfd1==='object'&&_0x47bfd1[_0x3c6ee7(0x157)])return{'statusCode':_0xe74661[_0x3c6ee7(0x166)],'error':_0x47bfd1[_0x3c6ee7(0x157)],'message':_0x47bfd1['message'],'errorCode':_0x47bfd1['errorCode']};if(typeof _0x47bfd1==='string')return{'statusCode':_0xe74661[_0x3c6ee7(0x166)],'error':_0x47bfd1,'message':_0x47bfd1};return undefined;}export function handleErrorResponse(_0x1646c1){const _0x441bb2=a2_0x4c71;if(!_0x1646c1[_0x441bb2(0x153)])throw new MissingResponseError(_0x1646c1[_0x441bb2(0x157)]||_0x441bb2(0x15a));const {status:_0x4ab1ce,data:_0x45b206}=_0x1646c1['response'],_0x3afc79=parseErrorData(_0x45b206,{'statusCode':_0x4ab1ce});if(!_0x3afc79)throw new MiscellaneousError({'statusCode':_0x4ab1ce,'error':_0x441bb2(0x161),'message':_0x1646c1[_0x441bb2(0x157)]||_0x441bb2(0x15d)});switch(_0x4ab1ce){case 0x190:throw new ValidationError(_0x3afc79);case 0x191:throw new UnauthorizedError(_0x3afc79);case 0x193:throw new ForbiddenError(_0x3afc79);case 0x194:throw new NotFoundError(_0x3afc79);case 0x198:throw new RequestTimeoutError(_0x3afc79);case 0x199:throw new ConflictError(_0x3afc79);default:if(_0x4ab1ce>=0x1f4)throw new ServerError(_0x3afc79);throw new MiscellaneousError(_0x3afc79);}}
@@ -1 +1 @@
1
- function a3_0x43be(_0x5ab52d,_0x25b4d6){var _0x28eb7e=a3_0x28eb();return a3_0x43be=function(_0x43befc,_0x3386d0){_0x43befc=_0x43befc-0xe7;var _0x70131c=_0x28eb7e[_0x43befc];return _0x70131c;},a3_0x43be(_0x5ab52d,_0x25b4d6);}function a3_0x28eb(){var _0x4eedf8=['2032NaHTZw','478612afuHqt','4666236RBbmMZ','5772yJbLXE','11041528hbJloR','1092395tazyxr','220psfpJk','1aWTftz','6301092qiKxEh','612207YsCKMt'];a3_0x28eb=function(){return _0x4eedf8;};return a3_0x28eb();}(function(_0x5be846,_0x3a3254){var _0x410324=a3_0x43be,_0x329508=_0x5be846();while(!![]){try{var _0x4451e8=parseInt(_0x410324(0xee))/0x1*(-parseInt(_0x410324(0xe8))/0x2)+parseInt(_0x410324(0xea))/0x3*(-parseInt(_0x410324(0xe7))/0x4)+parseInt(_0x410324(0xec))/0x5+parseInt(_0x410324(0xe9))/0x6+parseInt(_0x410324(0xef))/0x7+-parseInt(_0x410324(0xeb))/0x8+parseInt(_0x410324(0xf0))/0x9*(parseInt(_0x410324(0xed))/0xa);if(_0x4451e8===_0x3a3254)break;else _0x329508['push'](_0x329508['shift']());}catch(_0x5eab95){_0x329508['push'](_0x329508['shift']());}}}(a3_0x28eb,0xc2536));export{default as ChecklyClient}from'./checkly-client.js';export{TestResults}from'./test-results.js';export*from'./types.js';export*from'./errors.js';
1
+ (function(_0x2f4eab,_0x28f777){var _0x422ee9=a3_0x2894,_0x4e9bfa=_0x2f4eab();while(!![]){try{var _0x3e6597=-parseInt(_0x422ee9(0x9a))/0x1+parseInt(_0x422ee9(0x9e))/0x2*(parseInt(_0x422ee9(0x99))/0x3)+parseInt(_0x422ee9(0x9d))/0x4+-parseInt(_0x422ee9(0x98))/0x5+-parseInt(_0x422ee9(0x97))/0x6*(parseInt(_0x422ee9(0x9f))/0x7)+parseInt(_0x422ee9(0x9c))/0x8+parseInt(_0x422ee9(0x9b))/0x9;if(_0x3e6597===_0x28f777)break;else _0x4e9bfa['push'](_0x4e9bfa['shift']());}catch(_0x3491c5){_0x4e9bfa['push'](_0x4e9bfa['shift']());}}}(a3_0x2c67,0xef650));export{default as ChecklyClient}from'./checkly-client.js';export{TestResults}from'./test-results.js';export*from'./types.js';function a3_0x2894(_0x43f1f5,_0xbe6fa2){var _0x2c67f2=a3_0x2c67();return a3_0x2894=function(_0x289401,_0x3e9bcf){_0x289401=_0x289401-0x97;var _0x4e6c80=_0x2c67f2[_0x289401];return _0x4e6c80;},a3_0x2894(_0x43f1f5,_0xbe6fa2);}function a3_0x2c67(){var _0x4ca98d=['7xzSJRR','10916220qmcQbG','8394425KrbBBz','3802929wnHFHo','1596716zYYjWY','23869260vOfysq','14319640ulAPVm','1463172CFkSaK','2dpgjPa'];a3_0x2c67=function(){return _0x4ca98d;};return a3_0x2c67();}export*from'./errors.js';
@@ -1 +1 @@
1
- const a4_0x3db2cc=a4_0x2c49;function a4_0x5dd2(){const _0x186651=['283016bGTFTs','10tqBGrf','35pZzbSs','70XshIXb','54088curLHP','9rBFNKB','1115616USSnxT','1780944vXSKsl','createTestSession','9593PnUZIR','api','1486419QVDHqq','/next/test-sessions/','176GKeFpf','25764528xATTwV','data','/results/'];a4_0x5dd2=function(){return _0x186651;};return a4_0x5dd2();}function a4_0x2c49(_0x386480,_0x5670b6){const _0x5dd209=a4_0x5dd2();return a4_0x2c49=function(_0x2c49ba,_0xb8ad55){_0x2c49ba=_0x2c49ba-0x1d6;let _0x49afb8=_0x5dd209[_0x2c49ba];return _0x49afb8;},a4_0x2c49(_0x386480,_0x5670b6);}(function(_0x1a8aad,_0x14a1bd){const _0x46326f=a4_0x2c49,_0x37b72c=_0x1a8aad();while(!![]){try{const _0x4ac661=parseInt(_0x46326f(0x1db))/0x1*(parseInt(_0x46326f(0x1df))/0x2)+-parseInt(_0x46326f(0x1d8))/0x3+parseInt(_0x46326f(0x1e3))/0x4*(parseInt(_0x46326f(0x1e6))/0x5)+parseInt(_0x46326f(0x1d9))/0x6*(parseInt(_0x46326f(0x1e5))/0x7)+-parseInt(_0x46326f(0x1d6))/0x8*(-parseInt(_0x46326f(0x1d7))/0x9)+parseInt(_0x46326f(0x1e4))/0xa*(parseInt(_0x46326f(0x1dd))/0xb)+-parseInt(_0x46326f(0x1e0))/0xc;if(_0x4ac661===_0x14a1bd)break;else _0x37b72c['push'](_0x37b72c['shift']());}catch(_0x31a628){_0x37b72c['push'](_0x37b72c['shift']());}}}(a4_0x5dd2,0xe5f0a));export class TestResults{[a4_0x3db2cc(0x1dc)];constructor(_0x30ede7){const _0x2bc309=a4_0x3db2cc;this[_0x2bc309(0x1dc)]=_0x30ede7;}async[a4_0x3db2cc(0x1da)](_0xd5e9f9){const _0x4fa3a2=a4_0x3db2cc,_0x97c6aa=await this[_0x4fa3a2(0x1dc)]['post']('/next/test-sessions/create',_0xd5e9f9);return _0x97c6aa[_0x4fa3a2(0x1e1)];}async['updateTestResult'](_0xb6024,_0x1e521e,_0x1dffeb){const _0x4d56f6=a4_0x3db2cc,_0x198810=await this[_0x4d56f6(0x1dc)]['post'](_0x4d56f6(0x1de)+_0xb6024+_0x4d56f6(0x1e2)+_0x1e521e,_0x1dffeb);return _0x198810[_0x4d56f6(0x1e1)];}}
1
+ const a4_0x32c0aa=a4_0x4643;function a4_0x4643(_0x537801,_0xa2173b){const _0x4ba358=a4_0x4ba3();return a4_0x4643=function(_0x46432e,_0x3dedf6){_0x46432e=_0x46432e-0x15e;let _0x39b68a=_0x4ba358[_0x46432e];return _0x39b68a;},a4_0x4643(_0x537801,_0xa2173b);}(function(_0x5a2642,_0x3f8d38){const _0x1c8b67=a4_0x4643,_0x2eb572=_0x5a2642();while(!![]){try{const _0x59a33f=-parseInt(_0x1c8b67(0x170))/0x1*(-parseInt(_0x1c8b67(0x15e))/0x2)+parseInt(_0x1c8b67(0x161))/0x3+-parseInt(_0x1c8b67(0x164))/0x4+parseInt(_0x1c8b67(0x165))/0x5*(-parseInt(_0x1c8b67(0x16a))/0x6)+-parseInt(_0x1c8b67(0x168))/0x7*(-parseInt(_0x1c8b67(0x169))/0x8)+parseInt(_0x1c8b67(0x160))/0x9*(parseInt(_0x1c8b67(0x166))/0xa)+parseInt(_0x1c8b67(0x16d))/0xb*(parseInt(_0x1c8b67(0x162))/0xc);if(_0x59a33f===_0x3f8d38)break;else _0x2eb572['push'](_0x2eb572['shift']());}catch(_0x2f30a7){_0x2eb572['push'](_0x2eb572['shift']());}}}(a4_0x4ba3,0xe288d));export class TestResults{[a4_0x32c0aa(0x167)];constructor(_0x3b6cce){const _0x45931e=a4_0x32c0aa;this[_0x45931e(0x167)]=_0x3b6cce;}async[a4_0x32c0aa(0x16c)](_0x318c52){const _0x56effb=a4_0x32c0aa,_0x11fb5b=await this[_0x56effb(0x167)][_0x56effb(0x16e)](_0x56effb(0x16f),_0x318c52);return _0x11fb5b[_0x56effb(0x16b)];}async['updateTestResult'](_0x24623e,_0x5d982f,_0x5359b9){const _0x4a1a39=a4_0x32c0aa,_0x4d5abc=await this[_0x4a1a39(0x167)][_0x4a1a39(0x16e)](_0x4a1a39(0x15f)+_0x24623e+_0x4a1a39(0x163)+_0x5d982f,_0x5359b9);return _0x4d5abc[_0x4a1a39(0x16b)];}}function a4_0x4ba3(){const _0x2e5256=['4auFwEK','60420ggHhar','/next/test-sessions/','18svOrat','4472208vWyyvn','16599876NYXVhO','/results/','5862772jmlXQY','535gYoFwY','1780670VJDhbH','api','14HvqHey','834096NZdxGY','65382aTbgpn','data','createTestSession','11aqchil','post','/next/test-sessions/create'];a4_0x4ba3=function(){return _0x2e5256;};return a4_0x4ba3();}
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- (function(_0x3f6ced,_0xcfc162){var _0x27c6e6=a6_0x49ab,_0x5c2674=_0x3f6ced();while(!![]){try{var _0x3745fc=parseInt(_0x27c6e6(0x1ec))/0x1+-parseInt(_0x27c6e6(0x1ed))/0x2*(parseInt(_0x27c6e6(0x1ee))/0x3)+parseInt(_0x27c6e6(0x1ef))/0x4*(-parseInt(_0x27c6e6(0x1f1))/0x5)+-parseInt(_0x27c6e6(0x1f0))/0x6+-parseInt(_0x27c6e6(0x1f3))/0x7+parseInt(_0x27c6e6(0x1f2))/0x8*(-parseInt(_0x27c6e6(0x1f4))/0x9)+parseInt(_0x27c6e6(0x1eb))/0xa;if(_0x3745fc===_0xcfc162)break;else _0x5c2674['push'](_0x5c2674['shift']());}catch(_0x2b6ca0){_0x5c2674['push'](_0x5c2674['shift']());}}}(a6_0x2b4f,0x34a6c));export{ChecklyReporter}from'./reporter.js';export{AssetCollector}from'./asset-collector.js';export{Zipper}from'./zipper.js';export{ChecklyReporter as default}from'./reporter.js';function a6_0x49ab(_0x387fde,_0x2842fb){var _0x2b4fae=a6_0x2b4f();return a6_0x49ab=function(_0x49ab47,_0x1fce74){_0x49ab47=_0x49ab47-0x1eb;var _0x21d966=_0x2b4fae[_0x49ab47];return _0x21d966;},a6_0x49ab(_0x387fde,_0x2842fb);}function a6_0x2b4f(){var _0x1b3b8f=['2503207nwSUst','467172OKEoTT','13047650vtFKDE','313DvcqPW','347564wugOuU','3BYsppY','964vxUStB','1243824rAiiut','815MrWWrp','48MzEefI'];a6_0x2b4f=function(){return _0x1b3b8f;};return a6_0x2b4f();}
1
+ function a6_0x59d3(){var _0x428e4b=['401742dpKfNp','7965756AYlWSb','948hLOunA','110hQgERU','854703QckNcM','95956rxIKCV','2134588aguFOf','498527TMekKH','128pLPWbL','5pZVOPc','4LvxtVQ','2198826HKgMGr'];a6_0x59d3=function(){return _0x428e4b;};return a6_0x59d3();}function a6_0x5c6d(_0x5a2137,_0x54f503){var _0x59d38a=a6_0x59d3();return a6_0x5c6d=function(_0x5c6d2d,_0x4597e9){_0x5c6d2d=_0x5c6d2d-0xdc;var _0x3e4a53=_0x59d38a[_0x5c6d2d];return _0x3e4a53;},a6_0x5c6d(_0x5a2137,_0x54f503);}(function(_0x4368a5,_0x1aceff){var _0x588568=a6_0x5c6d,_0x554f2e=_0x4368a5();while(!![]){try{var _0x48ba18=parseInt(_0x588568(0xdd))/0x1*(parseInt(_0x588568(0xe0))/0x2)+parseInt(_0x588568(0xe1))/0x3+parseInt(_0x588568(0xdc))/0x4*(-parseInt(_0x588568(0xdf))/0x5)+parseInt(_0x588568(0xe3))/0x6+parseInt(_0x588568(0xe7))/0x7*(parseInt(_0x588568(0xde))/0x8)+-parseInt(_0x588568(0xe6))/0x9*(-parseInt(_0x588568(0xe5))/0xa)+parseInt(_0x588568(0xe2))/0xb*(-parseInt(_0x588568(0xe4))/0xc);if(_0x48ba18===_0x1aceff)break;else _0x554f2e['push'](_0x554f2e['shift']());}catch(_0x5935d1){_0x554f2e['push'](_0x554f2e['shift']());}}}(a6_0x59d3,0xdc62e));export{ChecklyReporter}from'./reporter.js';export{AssetCollector}from'./asset-collector.js';export{Zipper}from'./zipper.js';export{ChecklyReporter as default}from'./reporter.js';
package/dist/reporter.js CHANGED
@@ -1 +1 @@
1
- const a7_0x3718c6=a7_0x403f;(function(_0x13f077,_0x102027){const _0x4c87f3=a7_0x403f,_0x437edb=_0x13f077();while(!![]){try{const _0x578529=-parseInt(_0x4c87f3(0x153))/0x1*(parseInt(_0x4c87f3(0x125))/0x2)+parseInt(_0x4c87f3(0x15f))/0x3+parseInt(_0x4c87f3(0x111))/0x4*(-parseInt(_0x4c87f3(0x121))/0x5)+parseInt(_0x4c87f3(0x127))/0x6*(-parseInt(_0x4c87f3(0x15a))/0x7)+parseInt(_0x4c87f3(0x11a))/0x8*(parseInt(_0x4c87f3(0x118))/0x9)+-parseInt(_0x4c87f3(0x140))/0xa*(-parseInt(_0x4c87f3(0x119))/0xb)+parseInt(_0x4c87f3(0x11e))/0xc*(parseInt(_0x4c87f3(0x176))/0xd);if(_0x578529===_0x102027)break;else _0x437edb['push'](_0x437edb['shift']());}catch(_0x49c590){_0x437edb['push'](_0x437edb['shift']());}}}(a7_0xa743,0xa0819));function a7_0x403f(_0x35ebdb,_0x48010d){const _0xa74359=a7_0xa743();return a7_0x403f=function(_0x403fc0,_0x364e0f){_0x403fc0=_0x403fc0-0x110;let _0x2365dc=_0xa74359[_0x403fc0];return _0x2365dc;},a7_0x403f(_0x35ebdb,_0x48010d);}import*as a7_0xc6f2c8 from'fs';import*as a7_0x412176 from'path';import{AssetCollector}from'./asset-collector.js';import{Zipper}from'./zipper.js';function a7_0xa743(){const _0x127aab=['zipPath','dryRun','Projects','zipper','FAILED','test-results/playwright-test-report.json','1HSlDlf','testCounts','version','substring','outcome','catch','PASSED','2653dOmffO','printSummary','existsSync','GITHUB_REPOSITORY','length','1896459eIkhZa','\x20\x20]','https://api-test.checklyhq.com','toISOString','warn','environment','error','env','message','utf-8','replace','jsonReportPath','Project','entries','test','NODE_ENV','updateTestResult','testSession','passed','join','en-US','log','[Checkly\x20Reporter]\x20Global\x20error:','162149lQwUgz','link','[Checkly\x20Reporter]\x20ERROR\x20creating\x20report:','production','[Checkly\x20Reporter]\x20ERROR:\x20JSON\x20report\x20not\x20found\x20at:\x20','[Checkly\x20Reporter]\x20Make\x20sure\x20to\x20configure\x20the\x20json\x20reporter\x20before\x20the\x20checkly\x20reporter:','GITHUB_ACTOR','flaky','\x20\x20reporter:\x20[\x0a','20PQkjEq','apiKey','assetCollector','GITHUB_EVENT_NAME','onError','\x22,\x20using\x20\x22production\x22','[Checkly\x20Reporter]\x20Failed\x20to\x20upload\x20results:','1353087XMgMeP','6105869dPJacV','24ajyDOi','[Checkly\x20Reporter]\x20Error\x20in\x20onTestEnd:','unlinkSync','url','1332NuCoVA','startTime','Playwright\x20Test\x20Session:\x20','549235iofDbH','CHECKLY_ACCOUNT_ID','package.json','[Checkly\x20Reporter]\x20Error\x20in\x20onBegin:','1277844wLQrvJ','parse','18636QvKrtC','CHECKLY_ENV','testResults','📔\x20','uploadResults','retry','collectAssets','[Checkly\x20Reporter]\x20Invalid\x20environment\x20\x22','readFileSync','config','onEnd','select','playwright-tests','base64','max','map','includes','PluralRules','failed','projects','testResultsDir','development','getTime','\x0a======================================================\x0a','cwd','10YLXBBv','\x20\x20\x20\x20[\x27@checkly/playwright-reporter\x27]\x0a','test-results','\x20\x20\x20\x20[\x27json\x27,\x20{\x20outputFile:\x20\x27test-results/playwright-test-report.json\x27\x20}],\x0a','createTestSession','status','outputPath','toString','options','testResultId','\x0a======================================================','[Checkly\x20Reporter]\x20Failed\x20to\x20create\x20test\x20session:','accountId'];a7_0xa743=function(){return _0x127aab;};return a7_0xa743();}import a7_0x110df9 from'./clients/checkly-client.js';import{TestResults}from'./clients/test-results.js';import{readFileSync}from'fs';import{fileURLToPath}from'url';import{dirname,join}from'path';const __filename=fileURLToPath(import.meta[a7_0x3718c6(0x11d)]),__dirname=dirname(__filename),packageJson=JSON[a7_0x3718c6(0x126)](readFileSync(join(__dirname,'..',a7_0x3718c6(0x123)),'utf-8')),pkgVersion=packageJson[a7_0x3718c6(0x155)],pluralRules=new Intl[(a7_0x3718c6(0x138))](a7_0x3718c6(0x173)),projectForms={'zero':a7_0x3718c6(0x16b),'one':'Project','two':a7_0x3718c6(0x14f),'few':'Projects','many':a7_0x3718c6(0x14f),'other':a7_0x3718c6(0x14f)};function getApiUrl(_0x52e4d9){const _0x3f2f84=a7_0x3718c6,_0x3d06ea={'local':'http://127.0.0.1:3000','development':'https://api-dev.checklyhq.com','staging':_0x3f2f84(0x161),'production':'https://api.checklyhq.com'};return _0x3d06ea[_0x52e4d9];}function getEnvironment(_0x6e926a){const _0xb554ae=a7_0x3718c6,_0x14fe83=_0x6e926a?.[_0xb554ae(0x164)],_0x5e9ea4=process[_0xb554ae(0x166)][_0xb554ae(0x128)],_0x8eee30=_0x14fe83||_0x5e9ea4||_0xb554ae(0x179),_0x26cbd0=['local',_0xb554ae(0x13c),'staging','production'];if(!_0x26cbd0[_0xb554ae(0x137)](_0x8eee30))return console[_0xb554ae(0x163)](_0xb554ae(0x12e)+_0x8eee30+_0xb554ae(0x116)),'production';return _0x8eee30;}function getDirectoryName(){const _0x2e0407=a7_0x3718c6,_0x18dbaf=process[_0x2e0407(0x13f)]();let _0x58bffc=a7_0x412176['basename'](_0x18dbaf);return(!_0x58bffc||_0x58bffc==='/'||_0x58bffc==='.')&&(_0x58bffc=_0x2e0407(0x133)),_0x58bffc=_0x58bffc[_0x2e0407(0x169)](/[<>:"|?*]/g,'-'),_0x58bffc[_0x2e0407(0x15e)]>0xff&&(_0x58bffc=_0x58bffc[_0x2e0407(0x156)](0x0,0xff)),_0x58bffc;}export class ChecklyReporter{['options'];['assetCollector'];['zipper'];[a7_0x3718c6(0x129)];[a7_0x3718c6(0x170)];['startTime'];[a7_0x3718c6(0x154)]={'passed':0x0,'failed':0x0,'flaky':0x0};constructor(_0x20bdc0={}){const _0x2949c8=a7_0x3718c6,_0x913e4c=getEnvironment(_0x20bdc0),_0x48e28c=getApiUrl(_0x913e4c),_0x22eee7=process[_0x2949c8(0x166)]['CHECKLY_API_KEY']||_0x20bdc0[_0x2949c8(0x112)],_0x5cd211=process[_0x2949c8(0x166)][_0x2949c8(0x122)]||_0x20bdc0[_0x2949c8(0x14c)];this[_0x2949c8(0x148)]={'accountId':_0x5cd211,'apiKey':_0x22eee7,'outputPath':_0x20bdc0[_0x2949c8(0x146)]??'checkly-report.zip','jsonReportPath':_0x20bdc0[_0x2949c8(0x16a)]??_0x2949c8(0x152),'testResultsDir':_0x20bdc0[_0x2949c8(0x13b)]??_0x2949c8(0x142),'dryRun':_0x20bdc0[_0x2949c8(0x14e)]??![]},this[_0x2949c8(0x113)]=new AssetCollector(this[_0x2949c8(0x148)][_0x2949c8(0x13b)]),this[_0x2949c8(0x150)]=new Zipper({'outputPath':this[_0x2949c8(0x148)][_0x2949c8(0x146)]});if(!this[_0x2949c8(0x148)][_0x2949c8(0x14e)]&&this[_0x2949c8(0x148)][_0x2949c8(0x112)]&&this['options'][_0x2949c8(0x14c)]){const _0x2419b5=new a7_0x110df9({'apiKey':this[_0x2949c8(0x148)][_0x2949c8(0x112)],'accountId':this[_0x2949c8(0x148)][_0x2949c8(0x14c)],'baseUrl':_0x48e28c});this['testResults']=new TestResults(_0x2419b5['getAxiosInstance']());}}['onBegin'](_0x2bd774,_0x2c5f8f){const _0x21af5c=a7_0x3718c6;this['startTime']=new Date();if(!this[_0x21af5c(0x129)])return;try{const _0x50203f=getDirectoryName(),_0x210271=[{'name':_0x50203f}],_0x20a737=process[_0x21af5c(0x166)][_0x21af5c(0x15d)]?'https://github.com/'+process['env']['GITHUB_REPOSITORY']:undefined,_0x1b9e4d=_0x20a737?{'repoUrl':_0x20a737,'commitId':process[_0x21af5c(0x166)]['GITHUB_SHA'],'branchName':process[_0x21af5c(0x166)]['GITHUB_REF_NAME'],'commitOwner':process[_0x21af5c(0x166)][_0x21af5c(0x17c)],'commitMessage':process[_0x21af5c(0x166)][_0x21af5c(0x114)]}:undefined;this[_0x21af5c(0x129)][_0x21af5c(0x144)]({'name':_0x21af5c(0x120)+_0x50203f,'environment':process['env'][_0x21af5c(0x16e)]||_0x21af5c(0x16d),'repoInfo':_0x1b9e4d,'startedAt':this[_0x21af5c(0x11f)][_0x21af5c(0x13d)](),'testResults':_0x210271,'provider':'PW_REPORTER'})['then'](_0x2972ed=>{const _0x3d69f8=_0x21af5c;this[_0x3d69f8(0x170)]=_0x2972ed,_0x2972ed[_0x3d69f8(0x177)]&&console[_0x3d69f8(0x174)]('\x0a🔗\x20View\x20test\x20session:\x20'+_0x2972ed['link']+'\x0a');})[_0x21af5c(0x158)](_0x3d5164=>{const _0x3dfd83=_0x21af5c;console[_0x3dfd83(0x165)](_0x3dfd83(0x14b),_0x3d5164['message']);});}catch(_0x4123d3){console[_0x21af5c(0x165)](_0x21af5c(0x124),_0x4123d3);}}['onTestEnd'](_0x5460b4,_0x425362){const _0x5d1a2a=a7_0x3718c6;try{const _0x51f5f8=_0x425362['status']===_0x5d1a2a(0x171)||_0x425362[_0x5d1a2a(0x12c)]===_0x5460b4['retries'];if(!_0x51f5f8)return;const _0x297494=_0x5460b4[_0x5d1a2a(0x157)]()===_0x5d1a2a(0x17d);if(_0x297494)this[_0x5d1a2a(0x154)]['flaky']++,this[_0x5d1a2a(0x154)][_0x5d1a2a(0x171)]++;else{if(_0x425362[_0x5d1a2a(0x145)]===_0x5d1a2a(0x171))this[_0x5d1a2a(0x154)][_0x5d1a2a(0x171)]++;else _0x425362['status']===_0x5d1a2a(0x139)&&this[_0x5d1a2a(0x154)][_0x5d1a2a(0x139)]++;}}catch(_0x236497){console['error'](_0x5d1a2a(0x11b),_0x236497);}}async[a7_0x3718c6(0x131)](){const _0x6794d5=a7_0x3718c6;try{const _0x4361e5=this[_0x6794d5(0x148)]['jsonReportPath'];if(!a7_0xc6f2c8[_0x6794d5(0x15c)](_0x4361e5)){console[_0x6794d5(0x165)](_0x6794d5(0x17a)+_0x4361e5),console[_0x6794d5(0x165)](_0x6794d5(0x17b)),console[_0x6794d5(0x165)](_0x6794d5(0x110)+_0x6794d5(0x143)+_0x6794d5(0x141)+_0x6794d5(0x160));return;}const _0x444a4a=a7_0xc6f2c8[_0x6794d5(0x12f)](_0x4361e5,_0x6794d5(0x168)),_0x70f49e=JSON['parse'](_0x444a4a),_0x86bc78=await this[_0x6794d5(0x113)][_0x6794d5(0x12d)](_0x70f49e),_0x25f52d=await this[_0x6794d5(0x150)]['createZip'](_0x4361e5,_0x86bc78);if(this[_0x6794d5(0x129)]&&this[_0x6794d5(0x170)]){await this[_0x6794d5(0x12b)](_0x70f49e,_0x25f52d[_0x6794d5(0x14d)],_0x25f52d[_0x6794d5(0x16c)]);if(!this[_0x6794d5(0x148)][_0x6794d5(0x14e)])try{a7_0xc6f2c8[_0x6794d5(0x11c)](_0x25f52d[_0x6794d5(0x14d)]);}catch(_0x3190a8){console['warn']('[Checkly\x20Reporter]\x20Warning:\x20Could\x20not\x20delete\x20ZIP\x20file:\x20'+_0x3190a8);}}this[_0x6794d5(0x129)]&&this['testSession']?.[_0x6794d5(0x177)]&&this['printSummary'](_0x70f49e,this[_0x6794d5(0x170)]);}catch(_0x3c8e7a){console[_0x6794d5(0x165)](_0x6794d5(0x178),_0x3c8e7a);}}[a7_0x3718c6(0x15b)](_0x4f00c2,_0x40abe3){const _0x589e7f=a7_0x3718c6,_0x111eb5=pluralRules[_0x589e7f(0x132)](_0x4f00c2[_0x589e7f(0x130)][_0x589e7f(0x13a)][_0x589e7f(0x15e)]);console[_0x589e7f(0x174)](_0x589e7f(0x13e)),console[_0x589e7f(0x174)]('📦\x20Checkly\x20Playwright\x20reporter:\x20'+pkgVersion),console['log']('🎭\x20Playwright:\x20'+_0x4f00c2[_0x589e7f(0x130)][_0x589e7f(0x155)]),console[_0x589e7f(0x174)](_0x589e7f(0x12a)+projectForms[_0x111eb5]+':\x20'+_0x4f00c2[_0x589e7f(0x130)][_0x589e7f(0x13a)][_0x589e7f(0x136)](({name:_0x4ceab5})=>_0x4ceab5)[_0x589e7f(0x172)](',')),console['log']('🔗\x20Test\x20session\x20URL:\x20'+_0x40abe3['link']),console[_0x589e7f(0x174)](_0x589e7f(0x14a));}async[a7_0x3718c6(0x12b)](_0xc20d0f,_0x404fe2,_0x90f03f){const _0x246d9a=a7_0x3718c6;if(!this[_0x246d9a(0x129)]||!this[_0x246d9a(0x170)])return;try{const {failed:_0x16f9e0,flaky:_0x3f2e44}=this[_0x246d9a(0x154)],_0x283828=_0x16f9e0>0x0?_0x246d9a(0x151):_0x246d9a(0x159),_0x93346b=_0x16f9e0===0x0&&_0x3f2e44>0x0,_0x44a0f0=new Date(),_0x4764bf=this[_0x246d9a(0x11f)]?Math[_0x246d9a(0x135)](0x0,_0x44a0f0[_0x246d9a(0x13d)]()-this[_0x246d9a(0x11f)][_0x246d9a(0x13d)]()):0x0,_0x1670b3=a7_0xc6f2c8[_0x246d9a(0x12f)](_0x404fe2),_0x436ed7=_0x1670b3[_0x246d9a(0x15e)],_0x4ce91b=_0x1670b3[_0x246d9a(0x147)](_0x246d9a(0x134));if(this['testSession'][_0x246d9a(0x129)][_0x246d9a(0x15e)]>0x0){const _0x4082c9=this[_0x246d9a(0x170)][_0x246d9a(0x129)][0x0];await this[_0x246d9a(0x129)][_0x246d9a(0x16f)](this[_0x246d9a(0x170)]['testSessionId'],_0x4082c9[_0x246d9a(0x149)],{'status':_0x283828,'isDegraded':_0x93346b,'startedAt':this[_0x246d9a(0x11f)]?.[_0x246d9a(0x162)](),'stoppedAt':_0x44a0f0['toISOString'](),'responseTime':_0x4764bf,'assets':{'assetsZip':_0x4ce91b,'entries':_0x90f03f},'metadata':{'usageData':{'s3PostTotalBytes':_0x436ed7}}});}}catch(_0x557e14){const _0x574674=_0x557e14 instanceof Error?_0x557e14[_0x246d9a(0x167)]:String(_0x557e14);console[_0x246d9a(0x165)](_0x246d9a(0x117),_0x574674);}}[a7_0x3718c6(0x115)](_0x3a5bb7){const _0xbc68eb=a7_0x3718c6;console[_0xbc68eb(0x165)](_0xbc68eb(0x175),_0x3a5bb7);}}
1
+ function a7_0x2205(_0x49814e,_0x29a0a7){const _0x18415d=a7_0x1841();return a7_0x2205=function(_0x220581,_0x2bd5a0){_0x220581=_0x220581-0x1c1;let _0x4f9ece=_0x18415d[_0x220581];return _0x4f9ece;},a7_0x2205(_0x49814e,_0x29a0a7);}const a7_0x5542e2=a7_0x2205;(function(_0x25f7b3,_0xde9ab3){const _0x28e19f=a7_0x2205,_0x1e003a=_0x25f7b3();while(!![]){try{const _0xf2061c=parseInt(_0x28e19f(0x1d5))/0x1+parseInt(_0x28e19f(0x22e))/0x2*(parseInt(_0x28e19f(0x1fe))/0x3)+parseInt(_0x28e19f(0x1e2))/0x4+parseInt(_0x28e19f(0x1f8))/0x5+parseInt(_0x28e19f(0x1db))/0x6+parseInt(_0x28e19f(0x201))/0x7*(parseInt(_0x28e19f(0x1f7))/0x8)+parseInt(_0x28e19f(0x222))/0x9*(-parseInt(_0x28e19f(0x1e0))/0xa);if(_0xf2061c===_0xde9ab3)break;else _0x1e003a['push'](_0x1e003a['shift']());}catch(_0x35a1f5){_0x1e003a['push'](_0x1e003a['shift']());}}}(a7_0x1841,0x94a0f));import*as a7_0x2bdc23 from'fs';import*as a7_0x316ced from'path';import{AssetCollector}from'./asset-collector.js';import{Zipper}from'./zipper.js';import a7_0x5bfcc4 from'./clients/checkly-client.js';import{TestResults}from'./clients/test-results.js';import{readFileSync}from'fs';import{fileURLToPath}from'url';import{dirname,join}from'path';function a7_0x1841(){const _0x578437=['dryRun','GITHUB_REPOSITORY','passed','test-results/playwright-test-report.json','length','18JjXCad','join','floor','log','assetCollector','base64','substring','outcome','production','🦝\x20Checkly\x20reporter:\x20','parse','[Checkly\x20Reporter]\x20Failed\x20to\x20create\x20test\x20session:','flaky','entries','package.json','[Checkly\x20Reporter]\x20Global\x20error:','[Checkly\x20Reporter]\x20ERROR:\x20JSON\x20report\x20not\x20found\x20at:\x20','outputPath','max','retries','status','[Checkly\x20Reporter]\x20Invalid\x20environment\x20\x22','\x20\x20reporter:\x20[\x0a','zipPath','apiKey','statSync','readFileSync','684459EtgBwl','[Checkly\x20Reporter]\x20Warning:\x20Could\x20not\x20delete\x20ZIP\x20file:\x20','[Checkly\x20Reporter]\x20Error\x20in\x20onBegin:','CHECKLY_ENV','zipper','from','6065154CIEplA','includes','PW_REPORTER','testResults','getTime','140dWduWf','PluralRules','4690540hvrTYv','GITHUB_REF_NAME','📔\x20','alloc','accountId','catch','createZip','createReadStream','concat','map','url','\x0a🔗\x20View\x20test\x20session:\x20','config','Projects','data','subarray','error','CHECKLY_API_KEY','cwd','onError','retry','481064UtxWLn','5086160wBBazo','warn','test','basename','testSessionId','replace','283593JDUFcc','FAILED','checkly-report.zip','77RKZHQX','existsSync','toString','env','version','startTime','then','testCounts','environment','\x0a======================================================','isBuffer','link','uploadResults','Project','http://127.0.0.1:3000','push','testSession','[Checkly\x20Reporter]\x20Error\x20in\x20onTestEnd:','onEnd','\x20\x20\x20\x20[\x27json\x27,\x20{\x20outputFile:\x20\x27test-results/playwright-test-report.json\x27\x20}],\x0a','🔗\x20Test\x20session\x20URL:\x20','🎭\x20Playwright:\x20','convertFileToBase64Stream','printSummary','failed','message','testResultId','projects','select','GITHUB_SHA','toISOString','test-results','https://api.checklyhq.com','3078414lSwGzG','options','en-US','local','onBegin','Playwright\x20Test\x20Session:\x20','end'];a7_0x1841=function(){return _0x578437;};return a7_0x1841();}const __filename=fileURLToPath(import.meta[a7_0x5542e2(0x1ec)]),__dirname=dirname(__filename),packageJson=JSON[a7_0x5542e2(0x1c4)](readFileSync(join(__dirname,'..',a7_0x5542e2(0x1c8)),'utf-8')),pkgVersion=packageJson['version'],pluralRules=new Intl[(a7_0x5542e2(0x1e1))](a7_0x5542e2(0x224)),projectForms={'zero':'Project','one':a7_0x5542e2(0x20e),'two':'Projects','few':a7_0x5542e2(0x1ef),'many':a7_0x5542e2(0x1ef),'other':a7_0x5542e2(0x1ef)};function getApiUrl(_0x8aa8c7){const _0x2a257f=a7_0x5542e2,_0x3a8e08={'local':_0x2a257f(0x20f),'development':'https://api-dev.checklyhq.com','staging':'https://api-test.checklyhq.com','production':_0x2a257f(0x221)};return _0x3a8e08[_0x8aa8c7];}function getEnvironment(_0x152daa){const _0x3d9607=a7_0x5542e2,_0xcf63d6=_0x152daa?.[_0x3d9607(0x209)],_0x3230e3=process[_0x3d9607(0x204)][_0x3d9607(0x1d8)],_0x4e58c9=_0xcf63d6||_0x3230e3||_0x3d9607(0x1c2),_0x230f85=[_0x3d9607(0x225),'development','staging',_0x3d9607(0x1c2)];if(!_0x230f85[_0x3d9607(0x1dc)](_0x4e58c9))return console['warn'](_0x3d9607(0x1cf)+_0x4e58c9+'\x22,\x20using\x20\x22production\x22'),_0x3d9607(0x1c2);return _0x4e58c9;}function getDirectoryName(){const _0x4a69d1=a7_0x5542e2,_0x202ed6=process[_0x4a69d1(0x1f4)]();let _0x3d62f1=a7_0x316ced[_0x4a69d1(0x1fb)](_0x202ed6);return(!_0x3d62f1||_0x3d62f1==='/'||_0x3d62f1==='.')&&(_0x3d62f1='playwright-tests'),_0x3d62f1=_0x3d62f1[_0x4a69d1(0x1fd)](/[<>:"|?*]/g,'-'),_0x3d62f1[_0x4a69d1(0x22d)]>0xff&&(_0x3d62f1=_0x3d62f1[_0x4a69d1(0x234)](0x0,0xff)),_0x3d62f1;}export class ChecklyReporter{['options'];['assetCollector'];[a7_0x5542e2(0x1d9)];[a7_0x5542e2(0x1de)];[a7_0x5542e2(0x211)];[a7_0x5542e2(0x206)];[a7_0x5542e2(0x208)]={'passed':0x0,'failed':0x0,'flaky':0x0};constructor(_0x4485cf={}){const _0x24e61a=a7_0x5542e2,_0x18c558=getEnvironment(_0x4485cf),_0xc55136=getApiUrl(_0x18c558),_0x18123b=process[_0x24e61a(0x204)][_0x24e61a(0x1f3)]||_0x4485cf[_0x24e61a(0x1d2)],_0x11c506=process[_0x24e61a(0x204)]['CHECKLY_ACCOUNT_ID']||_0x4485cf[_0x24e61a(0x1e6)];this[_0x24e61a(0x223)]={'accountId':_0x11c506,'apiKey':_0x18123b,'outputPath':_0x4485cf[_0x24e61a(0x1cb)]??_0x24e61a(0x200),'jsonReportPath':_0x4485cf['jsonReportPath']??_0x24e61a(0x22c),'testResultsDir':_0x4485cf['testResultsDir']??_0x24e61a(0x220),'dryRun':_0x4485cf['dryRun']??![]},this['assetCollector']=new AssetCollector(this[_0x24e61a(0x223)]['testResultsDir']),this[_0x24e61a(0x1d9)]=new Zipper({'outputPath':this[_0x24e61a(0x223)][_0x24e61a(0x1cb)]});if(!this[_0x24e61a(0x223)][_0x24e61a(0x229)]&&this[_0x24e61a(0x223)][_0x24e61a(0x1d2)]&&this[_0x24e61a(0x223)][_0x24e61a(0x1e6)]){const _0x41e73b=new a7_0x5bfcc4({'apiKey':this[_0x24e61a(0x223)]['apiKey'],'accountId':this['options'][_0x24e61a(0x1e6)],'baseUrl':_0xc55136});this[_0x24e61a(0x1de)]=new TestResults(_0x41e73b['getAxiosInstance']());}}[a7_0x5542e2(0x226)](_0x4aed5d,_0x5cf9c3){const _0x587dc9=a7_0x5542e2;this[_0x587dc9(0x206)]=new Date();if(!this['testResults'])return;try{const _0x5ab2fb=getDirectoryName(),_0x2cbf30=[{'name':_0x5ab2fb}],_0x284d46=process[_0x587dc9(0x204)][_0x587dc9(0x22a)]?'https://github.com/'+process[_0x587dc9(0x204)][_0x587dc9(0x22a)]:undefined,_0x3f4d75=_0x284d46?{'repoUrl':_0x284d46,'commitId':process[_0x587dc9(0x204)][_0x587dc9(0x21e)],'branchName':process['env'][_0x587dc9(0x1e3)],'commitOwner':process[_0x587dc9(0x204)]['GITHUB_ACTOR'],'commitMessage':process[_0x587dc9(0x204)]['GITHUB_EVENT_NAME']}:undefined;this[_0x587dc9(0x1de)]['createTestSession']({'name':_0x587dc9(0x227)+_0x5ab2fb,'environment':process['env']['NODE_ENV']||_0x587dc9(0x1fa),'repoInfo':_0x3f4d75,'startedAt':this[_0x587dc9(0x206)][_0x587dc9(0x1df)](),'testResults':_0x2cbf30,'provider':_0x587dc9(0x1dd)})[_0x587dc9(0x207)](_0x1c1d9b=>{const _0x5d61b7=_0x587dc9;this[_0x5d61b7(0x211)]=_0x1c1d9b,_0x1c1d9b['link']&&console[_0x5d61b7(0x231)](_0x5d61b7(0x1ed)+_0x1c1d9b['link']+'\x0a');})[_0x587dc9(0x1e7)](_0xa70ffd=>{const _0x49ed7d=_0x587dc9;console[_0x49ed7d(0x1f2)](_0x49ed7d(0x1c5),_0xa70ffd[_0x49ed7d(0x21a)]);});}catch(_0x17273e){console[_0x587dc9(0x1f2)](_0x587dc9(0x1d7),_0x17273e);}}['onTestEnd'](_0x464b5f,_0x24f46c){const _0xe570b3=a7_0x5542e2;try{const _0x343366=_0x24f46c[_0xe570b3(0x1ce)]==='passed'||_0x24f46c[_0xe570b3(0x1f6)]===_0x464b5f[_0xe570b3(0x1cd)];if(!_0x343366)return;const _0x511ac8=_0x464b5f[_0xe570b3(0x1c1)]()===_0xe570b3(0x1c6);if(_0x511ac8)this[_0xe570b3(0x208)][_0xe570b3(0x1c6)]++,this[_0xe570b3(0x208)][_0xe570b3(0x22b)]++;else{if(_0x24f46c[_0xe570b3(0x1ce)]===_0xe570b3(0x22b))this[_0xe570b3(0x208)]['passed']++;else _0x24f46c[_0xe570b3(0x1ce)]===_0xe570b3(0x219)&&this[_0xe570b3(0x208)][_0xe570b3(0x219)]++;}}catch(_0x4f9a60){console[_0xe570b3(0x1f2)](_0xe570b3(0x212),_0x4f9a60);}}async[a7_0x5542e2(0x213)](){const _0x3a0183=a7_0x5542e2;try{const _0x53ca38=this[_0x3a0183(0x223)]['jsonReportPath'];if(!a7_0x2bdc23[_0x3a0183(0x202)](_0x53ca38)){console['error'](_0x3a0183(0x1ca)+_0x53ca38),console[_0x3a0183(0x1f2)]('[Checkly\x20Reporter]\x20Make\x20sure\x20to\x20configure\x20the\x20json\x20reporter\x20before\x20the\x20checkly\x20reporter:'),console[_0x3a0183(0x1f2)](_0x3a0183(0x1d0)+_0x3a0183(0x214)+'\x20\x20\x20\x20[\x27@checkly/playwright-reporter\x27]\x0a'+'\x20\x20]');return;}const _0x345deb=a7_0x2bdc23[_0x3a0183(0x1d4)](_0x53ca38,'utf-8'),_0x17a33a=JSON[_0x3a0183(0x1c4)](_0x345deb),_0x3cd0bc=await this[_0x3a0183(0x232)]['collectAssets'](_0x17a33a),_0xd4893c=await this['zipper'][_0x3a0183(0x1e8)](_0x53ca38,_0x3cd0bc);if(this[_0x3a0183(0x1de)]&&this[_0x3a0183(0x211)]){await this[_0x3a0183(0x20d)](_0x17a33a,_0xd4893c[_0x3a0183(0x1d1)],_0xd4893c[_0x3a0183(0x1c7)]);if(!this[_0x3a0183(0x223)][_0x3a0183(0x229)])try{a7_0x2bdc23['unlinkSync'](_0xd4893c[_0x3a0183(0x1d1)]);}catch(_0x3d579d){console[_0x3a0183(0x1f9)](_0x3a0183(0x1d6)+_0x3d579d);}}this[_0x3a0183(0x1de)]&&this[_0x3a0183(0x211)]?.[_0x3a0183(0x20c)]&&this['printSummary'](_0x17a33a,this[_0x3a0183(0x211)]);}catch(_0xb983ff){console[_0x3a0183(0x1f2)]('[Checkly\x20Reporter]\x20ERROR\x20creating\x20report:',_0xb983ff);}}[a7_0x5542e2(0x218)](_0x6dcb0e,_0x36c46b){const _0x5b262b=a7_0x5542e2,_0x8f6895=pluralRules[_0x5b262b(0x21d)](_0x6dcb0e[_0x5b262b(0x1ee)][_0x5b262b(0x21c)][_0x5b262b(0x22d)]);console[_0x5b262b(0x231)]('\x0a======================================================\x0a'),console[_0x5b262b(0x231)](_0x5b262b(0x1c3)+pkgVersion),console[_0x5b262b(0x231)](_0x5b262b(0x216)+_0x6dcb0e[_0x5b262b(0x1ee)][_0x5b262b(0x205)]),console['log'](_0x5b262b(0x1e4)+projectForms[_0x8f6895]+':\x20'+_0x6dcb0e['config'][_0x5b262b(0x21c)][_0x5b262b(0x1eb)](({name:_0x157331})=>_0x157331)[_0x5b262b(0x22f)](',')),console[_0x5b262b(0x231)](_0x5b262b(0x215)+_0x36c46b[_0x5b262b(0x20c)]),console[_0x5b262b(0x231)](_0x5b262b(0x20a));}async['convertFileToBase64Stream'](_0x4025cc){return new Promise((_0x13ae61,_0x2bd968)=>{const _0x46fe3f=a7_0x2205,_0x1af79f=[];let _0x38dd35=Buffer[_0x46fe3f(0x1e5)](0x0);const _0x5b7ea9=a7_0x2bdc23[_0x46fe3f(0x1e9)](_0x4025cc,{'highWaterMark':0x400*0x400*0x3});_0x5b7ea9['on'](_0x46fe3f(0x1f0),_0x3085c6=>{const _0x3d1ad1=_0x46fe3f,_0x43a8db=Buffer[_0x3d1ad1(0x20b)](_0x3085c6)?_0x3085c6:Buffer[_0x3d1ad1(0x1da)](_0x3085c6),_0x31fbfb=Buffer[_0x3d1ad1(0x1ea)]([_0x38dd35,_0x43a8db]),_0x116d87=Math[_0x3d1ad1(0x230)](_0x31fbfb[_0x3d1ad1(0x22d)]/0x3)*0x3;if(_0x116d87>0x0){const _0x535386=_0x31fbfb[_0x3d1ad1(0x1f1)](0x0,_0x116d87);_0x1af79f[_0x3d1ad1(0x210)](_0x535386[_0x3d1ad1(0x203)]('base64')),_0x38dd35=_0x31fbfb[_0x3d1ad1(0x1f1)](_0x116d87);}else _0x38dd35=_0x31fbfb;}),_0x5b7ea9['on'](_0x46fe3f(0x228),()=>{const _0x8096d1=_0x46fe3f;_0x38dd35[_0x8096d1(0x22d)]>0x0&&_0x1af79f[_0x8096d1(0x210)](_0x38dd35[_0x8096d1(0x203)](_0x8096d1(0x233))),_0x13ae61(_0x1af79f[_0x8096d1(0x22f)](''));}),_0x5b7ea9['on'](_0x46fe3f(0x1f2),_0x56b5ec=>{_0x2bd968(_0x56b5ec);});});}async[a7_0x5542e2(0x20d)](_0x2a3ae3,_0x2c1930,_0x1ccf1f){const _0x37a05a=a7_0x5542e2;if(!this['testResults']||!this[_0x37a05a(0x211)])return;try{const {failed:_0x20dc10,flaky:_0x3a68ba}=this[_0x37a05a(0x208)],_0x5bdc19=_0x20dc10>0x0?_0x37a05a(0x1ff):'PASSED',_0x5010a0=_0x20dc10===0x0&&_0x3a68ba>0x0,_0xb442ae=new Date(),_0x392e3c=this['startTime']?Math[_0x37a05a(0x1cc)](0x0,_0xb442ae['getTime']()-this[_0x37a05a(0x206)][_0x37a05a(0x1df)]()):0x0,_0x52d248=await this[_0x37a05a(0x217)](_0x2c1930),_0x699aa9=a7_0x2bdc23[_0x37a05a(0x1d3)](_0x2c1930)['size'];if(this['testSession']['testResults'][_0x37a05a(0x22d)]>0x0){const _0x5b2ee0=this['testSession'][_0x37a05a(0x1de)][0x0];await this['testResults']['updateTestResult'](this['testSession'][_0x37a05a(0x1fc)],_0x5b2ee0[_0x37a05a(0x21b)],{'status':_0x5bdc19,'isDegraded':_0x5010a0,'startedAt':this['startTime']?.[_0x37a05a(0x21f)](),'stoppedAt':_0xb442ae['toISOString'](),'responseTime':_0x392e3c,'assets':{'assetsZip':_0x52d248,'entries':_0x1ccf1f},'metadata':{'usageData':{'s3PostTotalBytes':_0x699aa9}}});}}catch(_0x87d33b){const _0x39ca28=_0x87d33b instanceof Error?_0x87d33b[_0x37a05a(0x21a)]:String(_0x87d33b);console['error']('[Checkly\x20Reporter]\x20Failed\x20to\x20upload\x20results:',_0x39ca28);}}[a7_0x5542e2(0x1f5)](_0x2e0a9f){const _0x54c1be=a7_0x5542e2;console[_0x54c1be(0x1f2)](_0x54c1be(0x1c9),_0x2e0a9f);}}
package/dist/zipper.js CHANGED
@@ -1 +1 @@
1
- const a9_0x248836=a9_0x3c79;function a9_0x493e(){const _0xb44840=['671682UIfLzR','now','utf-8','3596628ItOWZQ','transformJsonReport','archivePath','readFileSync','string','sourcePath','105TlNGEM','contents','normalizeAttachmentPath','[Checkly\x20Reporter]\x20Could\x20not\x20normalize\x20attachment\x20path:\x20','105186fAAjYB','object','outputPath','values','name','5RWkYLc','stringify','push','tmpdir','length','createWriteStream','1109348ktBtVe','parse','output/playwright-test-report.json','entry','1621335WmSjxb','isArray','_offsets','finalize','replace','path','csize','261248IHPEGG','transformAttachmentPaths','error','pipe','playwright-test-report-','pointer','close','substring','writeFileSync','indexOf','test-results','file','join','attachments','existsSync','18025200pcpNdC','forEach'];a9_0x493e=function(){return _0xb44840;};return a9_0x493e();}function a9_0x3c79(_0x1ee300,_0x4cd193){const _0x493e7b=a9_0x493e();return a9_0x3c79=function(_0x3c79be,_0x45f308){_0x3c79be=_0x3c79be-0x161;let _0x2a1140=_0x493e7b[_0x3c79be];return _0x2a1140;},a9_0x3c79(_0x1ee300,_0x4cd193);}(function(_0x2d0dd1,_0x9260e2){const _0x3aaa59=a9_0x3c79,_0x21c349=_0x2d0dd1();while(!![]){try{const _0x38593a=-parseInt(_0x3aaa59(0x16b))/0x1+-parseInt(_0x3aaa59(0x194))/0x2+-parseInt(_0x3aaa59(0x16f))/0x3+parseInt(_0x3aaa59(0x18a))/0x4+-parseInt(_0x3aaa59(0x165))/0x5*(-parseInt(_0x3aaa59(0x187))/0x6)+-parseInt(_0x3aaa59(0x190))/0x7*(parseInt(_0x3aaa59(0x176))/0x8)+parseInt(_0x3aaa59(0x185))/0x9;if(_0x38593a===_0x9260e2)break;else _0x21c349['push'](_0x21c349['shift']());}catch(_0x1049cc){_0x21c349['push'](_0x21c349['shift']());}}}(a9_0x493e,0xc89ae));import*as a9_0x472dcd from'fs';import*as a9_0x4246a6 from'path';import*as a9_0x5184f7 from'os';import{ZipArchive}from'archiver';export class Zipper{[a9_0x248836(0x162)];constructor(_0x306e2f){const _0x23fa48=a9_0x248836;this['outputPath']=_0x306e2f[_0x23fa48(0x162)];}async['createZip'](_0x159b1c,_0x4fd5cc){const _0x413ac7=[];return new Promise((_0x5b4a54,_0x40cc93)=>{const _0x6e3fb=a9_0x3c79;try{const _0x9b1477=a9_0x472dcd[_0x6e3fb(0x16a)](this[_0x6e3fb(0x162)]),_0x511e06=new ZipArchive({'zlib':{'level':0x0}});_0x511e06['on'](_0x6e3fb(0x16e),_0xedc3d1=>{const _0x182709=_0x6e3fb,_0x37f9ab=_0xedc3d1[_0x182709(0x164)][_0x182709(0x173)](/\\/g,'/'),_0x43d7df=_0xedc3d1[_0x182709(0x171)]?.[_0x182709(0x191)]??0x0,_0x3554a4=_0xedc3d1[_0x182709(0x171)]?.[_0x182709(0x191)]+(_0xedc3d1[_0x182709(0x175)]??0x0)-0x1;_0x413ac7[_0x182709(0x167)]({'name':_0x37f9ab,'start':_0x43d7df,'end':_0x3554a4});}),_0x9b1477['on'](_0x6e3fb(0x17c),()=>{const _0x8d3cc1=_0x6e3fb,_0x2be1d9=_0x511e06[_0x8d3cc1(0x17b)]();_0x5b4a54({'zipPath':this[_0x8d3cc1(0x162)],'size':_0x2be1d9,'entryCount':_0x413ac7[_0x8d3cc1(0x169)],'entries':_0x413ac7});}),_0x511e06['on'](_0x6e3fb(0x178),_0x4e8293=>{_0x40cc93(_0x4e8293);}),_0x9b1477['on']('error',_0x4a15af=>{_0x40cc93(_0x4a15af);}),_0x511e06[_0x6e3fb(0x179)](_0x9b1477);if(!a9_0x472dcd[_0x6e3fb(0x184)](_0x159b1c)){_0x40cc93(new Error('Report\x20file\x20not\x20found:\x20'+_0x159b1c));return;}const _0xd75956=this[_0x6e3fb(0x18b)](_0x159b1c);_0x511e06[_0x6e3fb(0x181)](_0xd75956,{'name':_0x6e3fb(0x16d)});for(const _0x41da64 of _0x4fd5cc){if(!a9_0x472dcd[_0x6e3fb(0x184)](_0x41da64[_0x6e3fb(0x18f)])){_0x40cc93(new Error('Asset\x20file\x20not\x20found:\x20'+_0x41da64[_0x6e3fb(0x18f)]));return;}_0x511e06[_0x6e3fb(0x181)](_0x41da64[_0x6e3fb(0x18f)],{'name':_0x41da64[_0x6e3fb(0x18c)]});}_0x511e06[_0x6e3fb(0x172)]();}catch(_0x4eb585){_0x40cc93(_0x4eb585);}});}[a9_0x248836(0x18b)](_0x29f3c0){const _0x4ee902=a9_0x248836,_0x13d574=a9_0x472dcd[_0x4ee902(0x18d)](_0x29f3c0,_0x4ee902(0x189)),_0x1fa410=JSON[_0x4ee902(0x16c)](_0x13d574);this[_0x4ee902(0x177)](_0x1fa410);const _0x30dc0b=a9_0x4246a6[_0x4ee902(0x182)](a9_0x5184f7[_0x4ee902(0x168)](),_0x4ee902(0x17a)+Date[_0x4ee902(0x188)]()+'.json');return a9_0x472dcd[_0x4ee902(0x17e)](_0x30dc0b,JSON[_0x4ee902(0x166)](_0x1fa410,null,0x2)),_0x30dc0b;}[a9_0x248836(0x177)](_0x6a7008){const _0x1577dc=a9_0x248836;if(typeof _0x6a7008!==_0x1577dc(0x161)||_0x6a7008===null)return;if(Array[_0x1577dc(0x170)](_0x6a7008)){_0x6a7008[_0x1577dc(0x186)](_0x15d426=>this[_0x1577dc(0x177)](_0x15d426));return;}_0x6a7008[_0x1577dc(0x183)]&&Array[_0x1577dc(0x170)](_0x6a7008['attachments'])&&_0x6a7008[_0x1577dc(0x183)][_0x1577dc(0x186)](_0x59cadb=>{const _0x342a1a=_0x1577dc;_0x59cadb[_0x342a1a(0x174)]&&typeof _0x59cadb[_0x342a1a(0x174)]===_0x342a1a(0x18e)&&(_0x59cadb[_0x342a1a(0x174)]=this[_0x342a1a(0x192)](_0x59cadb[_0x342a1a(0x174)]));}),Object[_0x1577dc(0x163)](_0x6a7008)[_0x1577dc(0x186)](_0x387987=>this['transformAttachmentPaths'](_0x387987));}['normalizeAttachmentPath'](_0x2dd6dc){const _0x5127c8=a9_0x248836,_0x3439ce=_0x2dd6dc[_0x5127c8(0x17f)](_0x5127c8(0x180));if(_0x3439ce!==-0x1)return _0x2dd6dc[_0x5127c8(0x17d)](_0x3439ce)['replace'](/\\/g,'/');return console['warn'](_0x5127c8(0x193)+_0x2dd6dc),_0x2dd6dc;}}
1
+ function a9_0x3e71(_0x502654,_0x6a3739){const _0x1adeb1=a9_0x1ade();return a9_0x3e71=function(_0x3e7118,_0x586184){_0x3e7118=_0x3e7118-0xc5;let _0x5eccf6=_0x1adeb1[_0x3e7118];return _0x5eccf6;},a9_0x3e71(_0x502654,_0x6a3739);}const a9_0x5e2b28=a9_0x3e71;(function(_0x9ac278,_0x171efb){const _0x2c08df=a9_0x3e71,_0x56d326=_0x9ac278();while(!![]){try{const _0x137ab8=parseInt(_0x2c08df(0xc6))/0x1+-parseInt(_0x2c08df(0xee))/0x2*(parseInt(_0x2c08df(0xf4))/0x3)+-parseInt(_0x2c08df(0xc9))/0x4*(-parseInt(_0x2c08df(0xe4))/0x5)+parseInt(_0x2c08df(0xdd))/0x6*(-parseInt(_0x2c08df(0xe5))/0x7)+-parseInt(_0x2c08df(0xcf))/0x8*(-parseInt(_0x2c08df(0xd0))/0x9)+parseInt(_0x2c08df(0xd4))/0xa+parseInt(_0x2c08df(0xe2))/0xb;if(_0x137ab8===_0x171efb)break;else _0x56d326['push'](_0x56d326['shift']());}catch(_0x45936e){_0x56d326['push'](_0x56d326['shift']());}}}(a9_0x1ade,0xb12a6));import*as a9_0xb31be6 from'fs';import*as a9_0x351a00 from'path';import*as a9_0x25bb5c from'os';import{ZipArchive}from'archiver';function a9_0x1ade(){const _0x532df8=['tmpdir','length','11694815fGQHBz','archivePath','557735YaKrXz','18494dLzleR','isArray','contents','sourcePath','forEach','createZip','string','utf-8','transformJsonReport','1618QCbTRy','substring','file','createWriteStream','entry','playwright-test-report-','4677GevEaa','close','object','pipe','parse','_offsets','normalizeAttachmentPath','1072426zRcptj','transformAttachmentPaths','existsSync','16bjlVFl','finalize','writeFileSync','[Checkly\x20Reporter]\x20Could\x20not\x20normalize\x20attachment\x20path:\x20','Report\x20file\x20not\x20found:\x20','path','248aJcMPA','56943uFcdqx','output/playwright-test-report.json','outputPath','push','2974890AgnbOP','readFileSync','pointer','attachments','.json','replace','test-results','warn','stringify','2472WypnUp','join','error'];a9_0x1ade=function(){return _0x532df8;};return a9_0x1ade();}export class Zipper{['outputPath'];constructor(_0x1e8cb3){const _0x1bc7c6=a9_0x3e71;this[_0x1bc7c6(0xd2)]=_0x1e8cb3[_0x1bc7c6(0xd2)];}async[a9_0x5e2b28(0xea)](_0x292268,_0x12c261){const _0x4f1fc7=[];return new Promise((_0x30f71a,_0x4b6b7a)=>{const _0x9d3719=a9_0x3e71;try{const _0xcf6387=a9_0xb31be6[_0x9d3719(0xf1)](this[_0x9d3719(0xd2)]),_0x16582c=new ZipArchive({'zlib':{'level':0x0}});_0x16582c['on'](_0x9d3719(0xf2),_0xac5004=>{const _0x1931b4=_0x9d3719,_0x3966b5=_0xac5004['name'][_0x1931b4(0xd9)](/\\/g,'/'),_0x19e9a5=_0xac5004[_0x1931b4(0xf9)]?.[_0x1931b4(0xe7)]??0x0,_0x5f185c=_0xac5004[_0x1931b4(0xf9)]?.[_0x1931b4(0xe7)]+(_0xac5004['csize']??0x0)-0x1;_0x4f1fc7[_0x1931b4(0xd3)]({'name':_0x3966b5,'start':_0x19e9a5,'end':_0x5f185c});}),_0xcf6387['on'](_0x9d3719(0xf5),()=>{const _0x204231=_0x9d3719,_0x43630f=_0x16582c[_0x204231(0xd6)]();_0x30f71a({'zipPath':this[_0x204231(0xd2)],'size':_0x43630f,'entryCount':_0x4f1fc7[_0x204231(0xe1)],'entries':_0x4f1fc7});}),_0x16582c['on']('error',_0x2fff50=>{_0x4b6b7a(_0x2fff50);}),_0xcf6387['on'](_0x9d3719(0xdf),_0x50b519=>{_0x4b6b7a(_0x50b519);}),_0x16582c[_0x9d3719(0xf7)](_0xcf6387);if(!a9_0xb31be6[_0x9d3719(0xc8)](_0x292268)){_0x4b6b7a(new Error(_0x9d3719(0xcd)+_0x292268));return;}const _0x340c02=this[_0x9d3719(0xed)](_0x292268);_0x16582c[_0x9d3719(0xf0)](_0x340c02,{'name':_0x9d3719(0xd1)});for(const _0x2af17d of _0x12c261){if(!a9_0xb31be6['existsSync'](_0x2af17d[_0x9d3719(0xe8)])){_0x4b6b7a(new Error('Asset\x20file\x20not\x20found:\x20'+_0x2af17d['sourcePath']));return;}_0x16582c[_0x9d3719(0xf0)](_0x2af17d[_0x9d3719(0xe8)],{'name':_0x2af17d[_0x9d3719(0xe3)]});}_0x16582c[_0x9d3719(0xca)]();}catch(_0x3bb20c){_0x4b6b7a(_0x3bb20c);}});}[a9_0x5e2b28(0xed)](_0x14a134){const _0x33de30=a9_0x5e2b28,_0x164859=a9_0xb31be6[_0x33de30(0xd5)](_0x14a134,_0x33de30(0xec)),_0x1d089d=JSON[_0x33de30(0xf8)](_0x164859);this[_0x33de30(0xc7)](_0x1d089d);const _0x1726ab=a9_0x351a00[_0x33de30(0xde)](a9_0x25bb5c[_0x33de30(0xe0)](),_0x33de30(0xf3)+Date['now']()+_0x33de30(0xd8));return a9_0xb31be6[_0x33de30(0xcb)](_0x1726ab,JSON[_0x33de30(0xdc)](_0x1d089d,null,0x2)),_0x1726ab;}[a9_0x5e2b28(0xc7)](_0xb5056f){const _0x3247de=a9_0x5e2b28;if(typeof _0xb5056f!==_0x3247de(0xf6)||_0xb5056f===null)return;if(Array[_0x3247de(0xe6)](_0xb5056f)){_0xb5056f['forEach'](_0x11ffea=>this[_0x3247de(0xc7)](_0x11ffea));return;}_0xb5056f[_0x3247de(0xd7)]&&Array[_0x3247de(0xe6)](_0xb5056f[_0x3247de(0xd7)])&&_0xb5056f[_0x3247de(0xd7)]['forEach'](_0x1306c9=>{const _0x2997ec=_0x3247de;_0x1306c9[_0x2997ec(0xce)]&&typeof _0x1306c9['path']===_0x2997ec(0xeb)&&(_0x1306c9[_0x2997ec(0xce)]=this[_0x2997ec(0xc5)](_0x1306c9[_0x2997ec(0xce)]));}),Object['values'](_0xb5056f)[_0x3247de(0xe9)](_0xa9987c=>this['transformAttachmentPaths'](_0xa9987c));}[a9_0x5e2b28(0xc5)](_0x57a461){const _0x4f80cf=a9_0x5e2b28,_0x3c696b=_0x57a461['indexOf'](_0x4f80cf(0xda));if(_0x3c696b!==-0x1)return _0x57a461[_0x4f80cf(0xef)](_0x3c696b)[_0x4f80cf(0xd9)](/\\/g,'/');return console[_0x4f80cf(0xdb)](_0x4f80cf(0xcc)+_0x57a461),_0x57a461;}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@checkly/playwright-reporter",
3
- "version": "0.0.6-alpha",
3
+ "version": "0.0.8-alpha",
4
4
  "description": "Playwright reporter that generates ZIP archives containing JSON reports and test assets",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",