@checkly/playwright-reporter 0.0.6-alpha → 0.0.7-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.
@@ -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
+ function a0_0x591c(){const _0x259e15=['join','.jpeg','trace','video','attachment','6616392GWfJdk','push','image/svg+xml','1EHiYNN','.mp4','image/png','basename','.avi','.html','name','video/x-msvideo','.log','some','3814349EdPfio','other','421239PnDlqY','readdirSync','video/webm','extname','.htm','text/plain','existsSync','image/bmp','.gif','.jpg','getVideoContentType','testResultsDir','application/zip','split','determineAssetType','1196802QvHIoh','video/quicktime','.txt','screenshot','855837qyXYTc','image/gif','.zip','relative','20zOjyab','2722208hNCKeq','isDirectory','sep','image/jpeg','resolve','getImageContentType','.mov','104355PegkPY','collectAssetsRecursive','.png','shouldSkipFile','includes','.svg','test'];a0_0x591c=function(){return _0x259e15;};return a0_0x591c();}const a0_0x1a5d9a=a0_0x51f3;function a0_0x51f3(_0x131efd,_0x1497be){const _0x591c0e=a0_0x591c();return a0_0x51f3=function(_0x51f38f,_0x479f61){_0x51f38f=_0x51f38f-0x6a;let _0x173160=_0x591c0e[_0x51f38f];return _0x173160;},a0_0x51f3(_0x131efd,_0x1497be);}(function(_0x27ba3b,_0x7dbee0){const _0x49ae56=a0_0x51f3,_0x2c8360=_0x27ba3b();while(!![]){try{const _0x4ac8cf=-parseInt(_0x49ae56(0xa0))/0x1*(parseInt(_0x49ae56(0x81))/0x2)+-parseInt(_0x49ae56(0x72))/0x3+parseInt(_0x49ae56(0x89))/0x4*(parseInt(_0x49ae56(0x91))/0x5)+parseInt(_0x49ae56(0x9d))/0x6+parseInt(_0x49ae56(0x70))/0x7+-parseInt(_0x49ae56(0x8a))/0x8+-parseInt(_0x49ae56(0x85))/0x9;if(_0x4ac8cf===_0x7dbee0)break;else _0x2c8360['push'](_0x2c8360['shift']());}catch(_0x23237c){_0x2c8360['push'](_0x2c8360['shift']());}}}(a0_0x591c,0x8d113));import*as a0_0x2f0a3a from'fs';import*as a0_0x365f8b from'path';export class AssetCollector{[a0_0x1a5d9a(0x7d)];constructor(_0x32f155){const _0x420e75=a0_0x1a5d9a;this[_0x420e75(0x7d)]=_0x32f155;}async['collectAssets'](_0x4049e6){const _0x23a49b=a0_0x1a5d9a,_0xff0f3d=[],_0x57da67=new Set();if(!a0_0x2f0a3a[_0x23a49b(0x78)](this[_0x23a49b(0x7d)]))return _0xff0f3d;return await this[_0x23a49b(0x92)](this[_0x23a49b(0x7d)],'',_0xff0f3d,_0x57da67),_0xff0f3d;}async[a0_0x1a5d9a(0x92)](_0x151829,_0x16cf83,_0x1229e0,_0x1c9ff3){const _0x3689d1=a0_0x1a5d9a;let _0x408c53;try{_0x408c53=a0_0x2f0a3a[_0x3689d1(0x73)](_0x151829,{'withFileTypes':!![]});}catch{return;}const _0x5aa54c=a0_0x365f8b[_0x3689d1(0xa3)](a0_0x365f8b[_0x3689d1(0x8e)](this[_0x3689d1(0x7d)]));for(const _0x1dc9b2 of _0x408c53){const _0x19db60=a0_0x365f8b[_0x3689d1(0x98)](_0x151829,_0x1dc9b2[_0x3689d1(0x6c)]),_0x205aae=a0_0x365f8b[_0x3689d1(0x88)](this['testResultsDir'],_0x19db60),_0x13de91=a0_0x365f8b[_0x3689d1(0x98)](_0x5aa54c,_0x205aae);if(this[_0x3689d1(0x94)](_0x1dc9b2[_0x3689d1(0x6c)]))continue;if(_0x1dc9b2[_0x3689d1(0x8b)]())await this['collectAssetsRecursive'](_0x19db60,_0x13de91,_0x1229e0,_0x1c9ff3);else{if(_0x1dc9b2['isFile']()){if(!_0x1c9ff3['has'](_0x19db60)){const _0x5c6ea0=this['createAsset'](_0x19db60,_0x13de91);_0x1229e0[_0x3689d1(0x9e)](_0x5c6ea0),_0x1c9ff3['add'](_0x19db60);}}}}}[a0_0x1a5d9a(0x94)](_0x4a5162){const _0x432dd3=a0_0x1a5d9a,_0xee3451=[/^\./,/\.tmp$/i,/~$/,/\.swp$/i,/\.lock$/i,/^playwright-test-report\.json$/i];return _0xee3451[_0x432dd3(0x6f)](_0x5035eb=>_0x5035eb[_0x432dd3(0x97)](_0x4a5162));}['createAsset'](_0x4880a5,_0x3ad694){const _0x3bc5b0=a0_0x1a5d9a,_0x362334=a0_0x365f8b[_0x3bc5b0(0x75)](_0x4880a5)['toLowerCase'](),{type:_0x6676c4,contentType:_0x15fc8d}=this[_0x3bc5b0(0x80)](_0x362334),_0x22594e=_0x3ad694[_0x3bc5b0(0x7f)](a0_0x365f8b[_0x3bc5b0(0x8c)])[_0x3bc5b0(0x98)]('/');return{'sourcePath':_0x4880a5,'archivePath':_0x22594e,'type':_0x6676c4,'contentType':_0x15fc8d};}[a0_0x1a5d9a(0x80)](_0x36e9fa){const _0xaa501e=a0_0x1a5d9a;if([_0xaa501e(0x93),_0xaa501e(0x7b),_0xaa501e(0x99),_0xaa501e(0x7a),'.bmp',_0xaa501e(0x96)][_0xaa501e(0x95)](_0x36e9fa))return{'type':_0xaa501e(0x84),'contentType':this[_0xaa501e(0x8f)](_0x36e9fa)};if(['.webm',_0xaa501e(0xa1),_0xaa501e(0x6a),_0xaa501e(0x90)][_0xaa501e(0x95)](_0x36e9fa))return{'type':_0xaa501e(0x9b),'contentType':this[_0xaa501e(0x7c)](_0x36e9fa)};if(_0x36e9fa===_0xaa501e(0x87))return{'type':_0xaa501e(0x9a),'contentType':_0xaa501e(0x7e)};if(_0x36e9fa===_0xaa501e(0x6b)||_0x36e9fa===_0xaa501e(0x76))return{'type':_0xaa501e(0x9c),'contentType':'text/html'};if(_0x36e9fa==='.json')return{'type':_0xaa501e(0x9c),'contentType':'application/json'};if(_0x36e9fa===_0xaa501e(0x83)||_0x36e9fa===_0xaa501e(0x6e))return{'type':'attachment','contentType':_0xaa501e(0x77)};return{'type':_0xaa501e(0x71),'contentType':'application/octet-stream'};}[a0_0x1a5d9a(0x8f)](_0xa4db58){const _0x57981e=a0_0x1a5d9a,_0xd8b8ba={'.png':'image/png','.jpg':_0x57981e(0x8d),'.jpeg':_0x57981e(0x8d),'.gif':_0x57981e(0x86),'.bmp':_0x57981e(0x79),'.svg':_0x57981e(0x9f)};return _0xd8b8ba[_0xa4db58]||_0x57981e(0xa2);}[a0_0x1a5d9a(0x7c)](_0x5cc47d){const _0x4dccaf=a0_0x1a5d9a,_0xc7d247={'.webm':_0x4dccaf(0x74),'.mp4':'video/mp4','.avi':_0x4dccaf(0x6d),'.mov':_0x4dccaf(0x82)};return _0xc7d247[_0x5cc47d]||_0x4dccaf(0x74);}}
@@ -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_0x5e4a30=a1_0x4608;function a1_0x4608(_0x434378,_0x65af0e){var _0x2f0a1=a1_0x2f0a();return a1_0x4608=function(_0x4608c3,_0x54209a){_0x4608c3=_0x4608c3-0x1cc;var _0x1cf5a8=_0x2f0a1[_0x4608c3];return _0x1cf5a8;},a1_0x4608(_0x434378,_0x65af0e);}(function(_0x164413,_0x30f101){var _0x2222f5=a1_0x4608,_0x3d84cc=_0x164413();while(!![]){try{var _0xd12d98=-parseInt(_0x2222f5(0x1cd))/0x1*(parseInt(_0x2222f5(0x1dd))/0x2)+-parseInt(_0x2222f5(0x1df))/0x3+parseInt(_0x2222f5(0x1d0))/0x4+-parseInt(_0x2222f5(0x1d3))/0x5*(-parseInt(_0x2222f5(0x1e0))/0x6)+-parseInt(_0x2222f5(0x1db))/0x7+parseInt(_0x2222f5(0x1cc))/0x8+-parseInt(_0x2222f5(0x1e1))/0x9*(-parseInt(_0x2222f5(0x1d4))/0xa);if(_0xd12d98===_0x30f101)break;else _0x3d84cc['push'](_0x3d84cc['shift']());}catch(_0x5d4443){_0x3d84cc['push'](_0x3d84cc['shift']());}}}(a1_0x2f0a,0x9a6be));function a1_0x2f0a(){var _0x2763d2=['1hSnfTu','create','accountId','2623424IYekLb','use','Authorization','2242405EnDVgQ','10ipyWDN','User-Agent','headers','x-checkly-account','api','@checkly/playwright-reporter/','request','3007816qILwGZ','apiKey','86248KMMjPZ','0.1.0','2875698pWQPMm','12vNUeNE','1269171HSpMoC','baseUrl','interceptors','2960408cZleHP'];a1_0x2f0a=function(){return _0x2763d2;};return a1_0x2f0a();}import a1_0x489d31 from'axios';import{handleErrorResponse}from'./errors.js';function getVersion(){var _0xad5c4a=a1_0x4608;return _0xad5c4a(0x1de);}export function createRequestInterceptor(_0xf70d8f,_0x39bf4a){return _0xa58ef2=>{var _0x3b43ad=a1_0x4608;return _0xa58ef2[_0x3b43ad(0x1d6)]&&(_0xa58ef2[_0x3b43ad(0x1d6)][_0x3b43ad(0x1d2)]='Bearer\x20'+_0xf70d8f,_0xa58ef2[_0x3b43ad(0x1d6)][_0x3b43ad(0x1d7)]=_0x39bf4a,_0xa58ef2[_0x3b43ad(0x1d6)][_0x3b43ad(0x1d5)]=_0x3b43ad(0x1d9)+getVersion()),_0xa58ef2;};}export function createResponseErrorInterceptor(){return _0x2a73c1=>{handleErrorResponse(_0x2a73c1);};}export default class ChecklyClient{[a1_0x5e4a30(0x1dc)];[a1_0x5e4a30(0x1e2)];['accountId'];[a1_0x5e4a30(0x1d8)];constructor(_0x3f0e05){var _0x5b1eff=a1_0x5e4a30;this[_0x5b1eff(0x1cf)]=_0x3f0e05[_0x5b1eff(0x1cf)],this[_0x5b1eff(0x1dc)]=_0x3f0e05[_0x5b1eff(0x1dc)],this[_0x5b1eff(0x1e2)]=_0x3f0e05[_0x5b1eff(0x1e2)],this[_0x5b1eff(0x1d8)]=a1_0x489d31[_0x5b1eff(0x1ce)]({'baseURL':this['baseUrl'],'timeout':0x1d4c0,'maxContentLength':Infinity,'maxBodyLength':Infinity}),this['api'][_0x5b1eff(0x1e3)][_0x5b1eff(0x1da)][_0x5b1eff(0x1d1)](createRequestInterceptor(this[_0x5b1eff(0x1dc)],this[_0x5b1eff(0x1cf)])),this['api']['interceptors']['response'][_0x5b1eff(0x1d1)](_0x3c855e=>_0x3c855e,createResponseErrorInterceptor());}['getAxiosInstance'](){var _0x1b0244=a1_0x5e4a30;return this[_0x1b0244(0x1d8)];}}
@@ -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(_0x423888,_0x3cff57){const _0x1f676c=a2_0x9746,_0x118531=_0x423888();while(!![]){try{const _0x26b91c=parseInt(_0x1f676c(0x15b))/0x1+parseInt(_0x1f676c(0x15f))/0x2+parseInt(_0x1f676c(0x166))/0x3+parseInt(_0x1f676c(0x156))/0x4*(-parseInt(_0x1f676c(0x165))/0x5)+-parseInt(_0x1f676c(0x16a))/0x6*(-parseInt(_0x1f676c(0x15a))/0x7)+-parseInt(_0x1f676c(0x162))/0x8*(parseInt(_0x1f676c(0x164))/0x9)+parseInt(_0x1f676c(0x157))/0xa*(parseInt(_0x1f676c(0x168))/0xb);if(_0x26b91c===_0x3cff57)break;else _0x118531['push'](_0x118531['shift']());}catch(_0x486a89){_0x118531['push'](_0x118531['shift']());}}}(a2_0x1401,0xd39e2));export class ApiError extends Error{['data'];constructor(_0x311505,_0x1b9c8f){const _0x4499f8=a2_0x9746;super(_0x311505[_0x4499f8(0x158)],_0x1b9c8f),this['name']=this['constructor'][_0x4499f8(0x167)],this[_0x4499f8(0x155)]=_0x311505;}}export class ValidationError extends ApiError{constructor(_0x1eef00,_0x3a12eb){super(_0x1eef00,_0x3a12eb);}}function a2_0x9746(_0x47b942,_0x52b207){const _0x140162=a2_0x1401();return a2_0x9746=function(_0x97460b,_0x4eea35){_0x97460b=_0x97460b-0x155;let _0x5253b2=_0x140162[_0x97460b];return _0x5253b2;},a2_0x9746(_0x47b942,_0x52b207);}export class UnauthorizedError extends ApiError{constructor(_0x2ac066,_0x11cfa5){super(_0x2ac066,_0x11cfa5);}}function a2_0x1401(){const _0xa53ff6=['response','7ynulMo','470224pvOkUx','statusCode','Network\x20error','Unknown\x20error','1656024axeily','An\x20error\x20occurred','MissingResponseError','136GkbjyE','string','799011gDgGht','2684840MdHEZu','916986XIKhVC','name','129261dfSYcR','error','6916548QBSyTa','errorCode','object','data','8zhHnEA','590SQGylY','message'];a2_0x1401=function(){return _0xa53ff6;};return a2_0x1401();}export class ForbiddenError extends ApiError{constructor(_0x8ac4a2,_0x21104d){super(_0x8ac4a2,_0x21104d);}}export class NotFoundError extends ApiError{constructor(_0x555eba,_0x1a0653){super(_0x555eba,_0x1a0653);}}export class RequestTimeoutError extends ApiError{constructor(_0x591640,_0x44d466){super(_0x591640,_0x44d466);}}export class ConflictError extends ApiError{constructor(_0xf4c722,_0x3070b3){super(_0xf4c722,_0x3070b3);}}export class ServerError extends ApiError{constructor(_0x5b2da9,_0x52218b){super(_0x5b2da9,_0x52218b);}}export class MiscellaneousError extends ApiError{constructor(_0x1d1d66,_0x1eb5a6){super(_0x1d1d66,_0x1eb5a6);}}export class MissingResponseError extends Error{constructor(_0x4db9d9,_0x22edee){const _0x353056=a2_0x9746;super(_0x4db9d9,_0x22edee),this[_0x353056(0x167)]=_0x353056(0x161);}}export function parseErrorData(_0x3350e7,_0x37d78f){const _0x12f329=a2_0x9746;if(!_0x3350e7)return undefined;if(typeof _0x3350e7===_0x12f329(0x16c)&&_0x3350e7[_0x12f329(0x15c)]&&_0x3350e7['error']&&_0x3350e7[_0x12f329(0x158)])return{'statusCode':_0x3350e7['statusCode'],'error':_0x3350e7[_0x12f329(0x169)],'message':_0x3350e7[_0x12f329(0x158)],'errorCode':_0x3350e7[_0x12f329(0x16b)]};if(typeof _0x3350e7===_0x12f329(0x16c)&&_0x3350e7[_0x12f329(0x169)]&&!_0x3350e7[_0x12f329(0x158)])return{'statusCode':_0x37d78f[_0x12f329(0x15c)],'error':_0x3350e7['error'],'message':_0x3350e7[_0x12f329(0x169)]};if(typeof _0x3350e7==='object'&&_0x3350e7[_0x12f329(0x169)]&&_0x3350e7['message'])return{'statusCode':_0x37d78f[_0x12f329(0x15c)],'error':_0x3350e7[_0x12f329(0x169)],'message':_0x3350e7[_0x12f329(0x158)],'errorCode':_0x3350e7[_0x12f329(0x16b)]};if(typeof _0x3350e7==='object'&&_0x3350e7[_0x12f329(0x158)])return{'statusCode':_0x37d78f[_0x12f329(0x15c)],'error':_0x3350e7[_0x12f329(0x158)],'message':_0x3350e7[_0x12f329(0x158)],'errorCode':_0x3350e7['errorCode']};if(typeof _0x3350e7===_0x12f329(0x163))return{'statusCode':_0x37d78f[_0x12f329(0x15c)],'error':_0x3350e7,'message':_0x3350e7};return undefined;}export function handleErrorResponse(_0x125500){const _0x46ea92=a2_0x9746;if(!_0x125500[_0x46ea92(0x159)])throw new MissingResponseError(_0x125500[_0x46ea92(0x158)]||_0x46ea92(0x15d));const {status:_0x31f6ff,data:_0x16805f}=_0x125500['response'],_0xbac88d=parseErrorData(_0x16805f,{'statusCode':_0x31f6ff});if(!_0xbac88d)throw new MiscellaneousError({'statusCode':_0x31f6ff,'error':_0x46ea92(0x15e),'message':_0x125500['message']||_0x46ea92(0x160)});switch(_0x31f6ff){case 0x190:throw new ValidationError(_0xbac88d);case 0x191:throw new UnauthorizedError(_0xbac88d);case 0x193:throw new ForbiddenError(_0xbac88d);case 0x194:throw new NotFoundError(_0xbac88d);case 0x198:throw new RequestTimeoutError(_0xbac88d);case 0x199:throw new ConflictError(_0xbac88d);default:if(_0x31f6ff>=0x1f4)throw new ServerError(_0xbac88d);throw new MiscellaneousError(_0xbac88d);}}
@@ -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(_0x20eacd,_0x572985){var _0x57188a=a3_0x244f,_0x88af50=_0x20eacd();while(!![]){try{var _0x1b1566=parseInt(_0x57188a(0xe1))/0x1*(parseInt(_0x57188a(0xea))/0x2)+parseInt(_0x57188a(0xe5))/0x3+parseInt(_0x57188a(0xe6))/0x4*(-parseInt(_0x57188a(0xe9))/0x5)+-parseInt(_0x57188a(0xe3))/0x6*(parseInt(_0x57188a(0xe2))/0x7)+parseInt(_0x57188a(0xe0))/0x8+parseInt(_0x57188a(0xe4))/0x9+-parseInt(_0x57188a(0xe7))/0xa*(parseInt(_0x57188a(0xe8))/0xb);if(_0x1b1566===_0x572985)break;else _0x88af50['push'](_0x88af50['shift']());}catch(_0x481e40){_0x88af50['push'](_0x88af50['shift']());}}}(a3_0x3afc,0x267b8));function a3_0x244f(_0x2c5610,_0xb79405){var _0x3afc21=a3_0x3afc();return a3_0x244f=function(_0x244f34,_0x197ea0){_0x244f34=_0x244f34-0xe0;var _0x3bf122=_0x3afc21[_0x244f34];return _0x3bf122;},a3_0x244f(_0x2c5610,_0xb79405);}function a3_0x3afc(){var _0x419058=['2036uNlDqH','140180TwQdxk','33xuaAAJ','310YZOQUX','11842ddHmjU','1488064KinsAS','7kmzAPK','14haOIhh','427836QrlkBd','1204290cOYtxq','37749dWxJbh'];a3_0x3afc=function(){return _0x419058;};return a3_0x3afc();}export{default as ChecklyClient}from'./checkly-client.js';export{TestResults}from'./test-results.js';export*from'./types.js';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
+ function a4_0x1936(){const _0x4df181=['365285BHlAlm','252UAqGqu','9868YbxDlY','createTestSession','api','4wPFAeH','4745016nVJJDH','data','87TArtdY','post','340664jgnwzx','updateTestResult','209CxDcUk','117OjtTiG','294430TwvaLD','/next/test-sessions/','190461aXvPjj','/next/test-sessions/create','103572FJHnQr'];a4_0x1936=function(){return _0x4df181;};return a4_0x1936();}const a4_0x166c3d=a4_0x5ec6;function a4_0x5ec6(_0x4cfa1d,_0x1acefd){const _0x1936de=a4_0x1936();return a4_0x5ec6=function(_0x5ec6cd,_0x43ab3d){_0x5ec6cd=_0x5ec6cd-0x16d;let _0x5317a7=_0x1936de[_0x5ec6cd];return _0x5317a7;},a4_0x5ec6(_0x4cfa1d,_0x1acefd);}(function(_0x59d831,_0x533e27){const _0x2fb93e=a4_0x5ec6,_0x61b2fd=_0x59d831();while(!![]){try{const _0x55246e=-parseInt(_0x2fb93e(0x16d))/0x1*(-parseInt(_0x2fb93e(0x17a))/0x2)+parseInt(_0x2fb93e(0x175))/0x3*(parseInt(_0x2fb93e(0x17d))/0x4)+parseInt(_0x2fb93e(0x178))/0x5+parseInt(_0x2fb93e(0x177))/0x6*(-parseInt(_0x2fb93e(0x179))/0x7)+parseInt(_0x2fb93e(0x16f))/0x8*(parseInt(_0x2fb93e(0x172))/0x9)+parseInt(_0x2fb93e(0x173))/0xa*(-parseInt(_0x2fb93e(0x171))/0xb)+parseInt(_0x2fb93e(0x17e))/0xc;if(_0x55246e===_0x533e27)break;else _0x61b2fd['push'](_0x61b2fd['shift']());}catch(_0x15ffce){_0x61b2fd['push'](_0x61b2fd['shift']());}}}(a4_0x1936,0x5187e));export class TestResults{[a4_0x166c3d(0x17c)];constructor(_0x103196){this['api']=_0x103196;}async[a4_0x166c3d(0x17b)](_0x28f6bf){const _0x198c70=a4_0x166c3d,_0x42aee1=await this['api'][_0x198c70(0x16e)](_0x198c70(0x176),_0x28f6bf);return _0x42aee1['data'];}async[a4_0x166c3d(0x170)](_0x586fe7,_0x219946,_0x54e1bb){const _0x454dc5=a4_0x166c3d,_0x3c5c37=await this['api'][_0x454dc5(0x16e)](_0x454dc5(0x174)+_0x586fe7+'/results/'+_0x219946,_0x54e1bb);return _0x3c5c37[_0x454dc5(0x17f)];}}
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(_0x11f959,_0x12905f){var _0x56864d=a6_0x3ba4,_0x816237=_0x11f959();while(!![]){try{var _0x1212c5=parseInt(_0x56864d(0x10b))/0x1+parseInt(_0x56864d(0x10e))/0x2*(-parseInt(_0x56864d(0x10d))/0x3)+-parseInt(_0x56864d(0x10f))/0x4*(-parseInt(_0x56864d(0x10a))/0x5)+-parseInt(_0x56864d(0x110))/0x6+parseInt(_0x56864d(0x10c))/0x7+parseInt(_0x56864d(0x112))/0x8+-parseInt(_0x56864d(0x111))/0x9;if(_0x1212c5===_0x12905f)break;else _0x816237['push'](_0x816237['shift']());}catch(_0x2775bd){_0x816237['push'](_0x816237['shift']());}}}(a6_0x5d4f,0x48933));function a6_0x3ba4(_0x520379,_0x5850bb){var _0x5d4f08=a6_0x5d4f();return a6_0x3ba4=function(_0x3ba4f2,_0xeb2c02){_0x3ba4f2=_0x3ba4f2-0x10a;var _0xa318d4=_0x5d4f08[_0x3ba4f2];return _0xa318d4;},a6_0x3ba4(_0x520379,_0x5850bb);}function a6_0x5d4f(){var _0x435da5=['397584dhnMiP','7949106jRdoXL','1831352PDdGjh','5rKbmPG','259347dlcxeE','2162944PNyPPc','131631vUigfT','6tbnkCU','2324552pIzzun'];a6_0x5d4f=function(){return _0x435da5;};return a6_0x5d4f();}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
+ const a7_0x19f2cc=a7_0x47d5;(function(_0x30d24c,_0x23a8c8){const _0x1740b2=a7_0x47d5,_0xf929d0=_0x30d24c();while(!![]){try{const _0x1b715a=parseInt(_0x1740b2(0x226))/0x1+parseInt(_0x1740b2(0x20f))/0x2+parseInt(_0x1740b2(0x21b))/0x3*(-parseInt(_0x1740b2(0x227))/0x4)+parseInt(_0x1740b2(0x240))/0x5+parseInt(_0x1740b2(0x1ee))/0x6*(parseInt(_0x1740b2(0x237))/0x7)+parseInt(_0x1740b2(0x241))/0x8+-parseInt(_0x1740b2(0x1e0))/0x9*(parseInt(_0x1740b2(0x231))/0xa);if(_0x1b715a===_0x23a8c8)break;else _0xf929d0['push'](_0xf929d0['shift']());}catch(_0x53043a){_0xf929d0['push'](_0xf929d0['shift']());}}}(a7_0x7279,0xcecb6));import*as a7_0x327c90 from'fs';import*as a7_0x534a16 from'path';import{AssetCollector}from'./asset-collector.js';import{Zipper}from'./zipper.js';import a7_0x555d9d from'./clients/checkly-client.js';import{TestResults}from'./clients/test-results.js';function a7_0x47d5(_0x586868,_0x407637){const _0x727992=a7_0x7279();return a7_0x47d5=function(_0x47d50b,_0x25719e){_0x47d50b=_0x47d50b-0x1da;let _0x3211e0=_0x727992[_0x47d50b];return _0x3211e0;},a7_0x47d5(_0x586868,_0x407637);}import{readFileSync}from'fs';import{fileURLToPath}from'url';import{dirname,join}from'path';const __filename=fileURLToPath(import.meta[a7_0x19f2cc(0x20d)]),__dirname=dirname(__filename),packageJson=JSON['parse'](readFileSync(join(__dirname,'..',a7_0x19f2cc(0x23c)),a7_0x19f2cc(0x216))),pkgVersion=packageJson[a7_0x19f2cc(0x21d)],pluralRules=new Intl[(a7_0x19f2cc(0x22d))]('en-US'),projectForms={'zero':a7_0x19f2cc(0x234),'one':a7_0x19f2cc(0x234),'two':a7_0x19f2cc(0x1ff),'few':a7_0x19f2cc(0x1ff),'many':a7_0x19f2cc(0x1ff),'other':a7_0x19f2cc(0x1ff)};function getApiUrl(_0x27d8c5){const _0x54e948=a7_0x19f2cc,_0x54226a={'local':'http://127.0.0.1:3000','development':_0x54e948(0x217),'staging':_0x54e948(0x1f6),'production':'https://api.checklyhq.com'};return _0x54226a[_0x27d8c5];}function getEnvironment(_0x1fb968){const _0x285eb5=a7_0x19f2cc,_0x26e8f7=_0x1fb968?.[_0x285eb5(0x1de)],_0x5c6380=process[_0x285eb5(0x203)][_0x285eb5(0x1dc)],_0xde5e0e=_0x26e8f7||_0x5c6380||_0x285eb5(0x20e),_0x4bb11e=['local',_0x285eb5(0x23d),_0x285eb5(0x1e1),'production'];if(!_0x4bb11e[_0x285eb5(0x221)](_0xde5e0e))return console[_0x285eb5(0x236)](_0x285eb5(0x22e)+_0xde5e0e+'\x22,\x20using\x20\x22production\x22'),_0x285eb5(0x20e);return _0xde5e0e;}function getDirectoryName(){const _0x922559=a7_0x19f2cc,_0x37c0e8=process['cwd']();let _0x97ddb7=a7_0x534a16['basename'](_0x37c0e8);return(!_0x97ddb7||_0x97ddb7==='/'||_0x97ddb7==='.')&&(_0x97ddb7=_0x922559(0x249)),_0x97ddb7=_0x97ddb7[_0x922559(0x1f7)](/[<>:"|?*]/g,'-'),_0x97ddb7[_0x922559(0x21c)]>0xff&&(_0x97ddb7=_0x97ddb7[_0x922559(0x222)](0x0,0xff)),_0x97ddb7;}function a7_0x7279(){const _0x34f59b=['options','checkly-report.zip','statSync','Projects','🎭\x20Playwright:\x20','testSession','zipPath','env','testCounts','retry','[Checkly\x20Reporter]\x20Failed\x20to\x20upload\x20results:','link','\x0a======================================================\x0a','PASSED','createZip','🔗\x20Test\x20session\x20URL:\x20','base64','url','production','1178164CqPNwx','passed','size','toString','\x20\x20\x20\x20[\x27@checkly/playwright-reporter\x27]\x0a','concat','failed','utf-8','https://api-dev.checklyhq.com','retries','convertFileToBase64Stream','collectAssets','33wAaMca','length','version','[Checkly\x20Reporter]\x20Failed\x20to\x20create\x20test\x20session:','outputPath','GITHUB_REPOSITORY','includes','substring','FAILED','\x20\x20\x20\x20[\x27json\x27,\x20{\x20outputFile:\x20\x27test-results/playwright-test-report.json\x27\x20}],\x0a','GITHUB_ACTOR','916439MjimBz','110524MPoxKP','PW_REPORTER','catch','log','📦\x20Checkly\x20Playwright\x20reporter:\x20','[Checkly\x20Reporter]\x20ERROR\x20creating\x20report:','PluralRules','[Checkly\x20Reporter]\x20Invalid\x20environment\x20\x22','[Checkly\x20Reporter]\x20Error\x20in\x20onTestEnd:','startTime','17481180FLaEUm','📔\x20','dryRun','Project','onError','warn','938yFHaTI','printSummary','CHECKLY_ACCOUNT_ID','[Checkly\x20Reporter]\x20ERROR:\x20JSON\x20report\x20not\x20found\x20at:\x20','onEnd','package.json','development','projects','[Checkly\x20Reporter]\x20Make\x20sure\x20to\x20configure\x20the\x20json\x20reporter\x20before\x20the\x20checkly\x20reporter:','6026050iMGBwc','8505584yWxkJP','parse','join','getTime','floor','assetCollector','testResultId','onBegin','playwright-tests','\x20\x20]','GITHUB_REF_NAME','[Checkly\x20Reporter]\x20Error\x20in\x20onBegin:','entries','CHECKLY_ENV','config','environment','map','18GsetDD','staging','test-results','CHECKLY_API_KEY','select','\x0a🔗\x20View\x20test\x20session:\x20','end','uploadResults','jsonReportPath','error','unlinkSync','testResultsDir','flaky','test','39102HOLPjs','createTestSession','GITHUB_SHA','NODE_ENV','Playwright\x20Test\x20Session:\x20','subarray','testResults','message','https://api-test.checklyhq.com','replace','zipper','apiKey','toISOString','accountId'];a7_0x7279=function(){return _0x34f59b;};return a7_0x7279();}export class ChecklyReporter{[a7_0x19f2cc(0x1fc)];[a7_0x19f2cc(0x246)];[a7_0x19f2cc(0x1f8)];['testResults'];[a7_0x19f2cc(0x201)];['startTime'];[a7_0x19f2cc(0x204)]={'passed':0x0,'failed':0x0,'flaky':0x0};constructor(_0xd5f1a1={}){const _0x3d32fe=a7_0x19f2cc,_0x149c3d=getEnvironment(_0xd5f1a1),_0x2359be=getApiUrl(_0x149c3d),_0x206cc2=process[_0x3d32fe(0x203)][_0x3d32fe(0x1e3)]||_0xd5f1a1[_0x3d32fe(0x1f9)],_0x2468f3=process['env'][_0x3d32fe(0x239)]||_0xd5f1a1[_0x3d32fe(0x1fb)];this['options']={'accountId':_0x2468f3,'apiKey':_0x206cc2,'outputPath':_0xd5f1a1[_0x3d32fe(0x21f)]??_0x3d32fe(0x1fd),'jsonReportPath':_0xd5f1a1[_0x3d32fe(0x1e8)]??'test-results/playwright-test-report.json','testResultsDir':_0xd5f1a1[_0x3d32fe(0x1eb)]??_0x3d32fe(0x1e2),'dryRun':_0xd5f1a1[_0x3d32fe(0x233)]??![]},this[_0x3d32fe(0x246)]=new AssetCollector(this[_0x3d32fe(0x1fc)]['testResultsDir']),this[_0x3d32fe(0x1f8)]=new Zipper({'outputPath':this[_0x3d32fe(0x1fc)][_0x3d32fe(0x21f)]});if(!this[_0x3d32fe(0x1fc)]['dryRun']&&this[_0x3d32fe(0x1fc)][_0x3d32fe(0x1f9)]&&this[_0x3d32fe(0x1fc)]['accountId']){const _0x3bf654=new a7_0x555d9d({'apiKey':this[_0x3d32fe(0x1fc)][_0x3d32fe(0x1f9)],'accountId':this[_0x3d32fe(0x1fc)][_0x3d32fe(0x1fb)],'baseUrl':_0x2359be});this[_0x3d32fe(0x1f4)]=new TestResults(_0x3bf654['getAxiosInstance']());}}[a7_0x19f2cc(0x248)](_0x4f5680,_0x4f9656){const _0x3fcf48=a7_0x19f2cc;this[_0x3fcf48(0x230)]=new Date();if(!this[_0x3fcf48(0x1f4)])return;try{const _0x47c93f=getDirectoryName(),_0x3020e2=[{'name':_0x47c93f}],_0x54034b=process[_0x3fcf48(0x203)][_0x3fcf48(0x220)]?'https://github.com/'+process[_0x3fcf48(0x203)]['GITHUB_REPOSITORY']:undefined,_0x4a36a6=_0x54034b?{'repoUrl':_0x54034b,'commitId':process[_0x3fcf48(0x203)][_0x3fcf48(0x1f0)],'branchName':process[_0x3fcf48(0x203)][_0x3fcf48(0x24b)],'commitOwner':process[_0x3fcf48(0x203)][_0x3fcf48(0x225)],'commitMessage':process[_0x3fcf48(0x203)]['GITHUB_EVENT_NAME']}:undefined;this[_0x3fcf48(0x1f4)][_0x3fcf48(0x1ef)]({'name':_0x3fcf48(0x1f2)+_0x47c93f,'environment':process[_0x3fcf48(0x203)][_0x3fcf48(0x1f1)]||_0x3fcf48(0x1ed),'repoInfo':_0x4a36a6,'startedAt':this['startTime'][_0x3fcf48(0x244)](),'testResults':_0x3020e2,'provider':_0x3fcf48(0x228)})['then'](_0x591a9a=>{const _0x4d6484=_0x3fcf48;this[_0x4d6484(0x201)]=_0x591a9a,_0x591a9a[_0x4d6484(0x207)]&&console[_0x4d6484(0x22a)](_0x4d6484(0x1e5)+_0x591a9a['link']+'\x0a');})[_0x3fcf48(0x229)](_0x31ef3d=>{const _0xb81ca9=_0x3fcf48;console[_0xb81ca9(0x1e9)](_0xb81ca9(0x21e),_0x31ef3d[_0xb81ca9(0x1f5)]);});}catch(_0x143d86){console[_0x3fcf48(0x1e9)](_0x3fcf48(0x1da),_0x143d86);}}['onTestEnd'](_0x41c2d9,_0x38833e){const _0x704c9c=a7_0x19f2cc;try{const _0x698348=_0x38833e['status']===_0x704c9c(0x210)||_0x38833e[_0x704c9c(0x205)]===_0x41c2d9[_0x704c9c(0x218)];if(!_0x698348)return;const _0x321ced=_0x41c2d9['outcome']()===_0x704c9c(0x1ec);if(_0x321ced)this[_0x704c9c(0x204)][_0x704c9c(0x1ec)]++,this['testCounts'][_0x704c9c(0x210)]++;else{if(_0x38833e['status']===_0x704c9c(0x210))this[_0x704c9c(0x204)][_0x704c9c(0x210)]++;else _0x38833e['status']==='failed'&&this[_0x704c9c(0x204)][_0x704c9c(0x215)]++;}}catch(_0x384518){console[_0x704c9c(0x1e9)](_0x704c9c(0x22f),_0x384518);}}async[a7_0x19f2cc(0x23b)](){const _0x1e4352=a7_0x19f2cc;try{const _0xf4254b=this[_0x1e4352(0x1fc)]['jsonReportPath'];if(!a7_0x327c90['existsSync'](_0xf4254b)){console[_0x1e4352(0x1e9)](_0x1e4352(0x23a)+_0xf4254b),console[_0x1e4352(0x1e9)](_0x1e4352(0x23f)),console['error']('\x20\x20reporter:\x20[\x0a'+_0x1e4352(0x224)+_0x1e4352(0x213)+_0x1e4352(0x24a));return;}const _0x3057a5=a7_0x327c90['readFileSync'](_0xf4254b,_0x1e4352(0x216)),_0x441bf3=JSON[_0x1e4352(0x242)](_0x3057a5),_0x2efc7f=await this[_0x1e4352(0x246)][_0x1e4352(0x21a)](_0x441bf3),_0x549ed3=await this[_0x1e4352(0x1f8)][_0x1e4352(0x20a)](_0xf4254b,_0x2efc7f);if(this[_0x1e4352(0x1f4)]&&this[_0x1e4352(0x201)]){await this[_0x1e4352(0x1e7)](_0x441bf3,_0x549ed3[_0x1e4352(0x202)],_0x549ed3[_0x1e4352(0x1db)]);if(!this[_0x1e4352(0x1fc)][_0x1e4352(0x233)])try{a7_0x327c90[_0x1e4352(0x1ea)](_0x549ed3[_0x1e4352(0x202)]);}catch(_0x153224){console[_0x1e4352(0x236)]('[Checkly\x20Reporter]\x20Warning:\x20Could\x20not\x20delete\x20ZIP\x20file:\x20'+_0x153224);}}this[_0x1e4352(0x1f4)]&&this[_0x1e4352(0x201)]?.[_0x1e4352(0x207)]&&this[_0x1e4352(0x238)](_0x441bf3,this[_0x1e4352(0x201)]);}catch(_0x4e035e){console[_0x1e4352(0x1e9)](_0x1e4352(0x22c),_0x4e035e);}}['printSummary'](_0x10494e,_0x1df659){const _0x51202a=a7_0x19f2cc,_0x5bfda8=pluralRules[_0x51202a(0x1e4)](_0x10494e[_0x51202a(0x1dd)][_0x51202a(0x23e)][_0x51202a(0x21c)]);console[_0x51202a(0x22a)](_0x51202a(0x208)),console[_0x51202a(0x22a)](_0x51202a(0x22b)+pkgVersion),console['log'](_0x51202a(0x200)+_0x10494e[_0x51202a(0x1dd)][_0x51202a(0x21d)]),console[_0x51202a(0x22a)](_0x51202a(0x232)+projectForms[_0x5bfda8]+':\x20'+_0x10494e[_0x51202a(0x1dd)][_0x51202a(0x23e)][_0x51202a(0x1df)](({name:_0x406f00})=>_0x406f00)[_0x51202a(0x243)](',')),console[_0x51202a(0x22a)](_0x51202a(0x20b)+_0x1df659[_0x51202a(0x207)]),console[_0x51202a(0x22a)]('\x0a======================================================');}async[a7_0x19f2cc(0x219)](_0x130cb0){return new Promise((_0x3d0d1f,_0x3b845a)=>{const _0x269602=a7_0x47d5,_0x2e7188=[];let _0x2f0d59=Buffer['alloc'](0x0);const _0x1336c4=a7_0x327c90['createReadStream'](_0x130cb0,{'highWaterMark':0x400*0x400*0x3});_0x1336c4['on']('data',_0x3bf33b=>{const _0x4c8689=a7_0x47d5,_0x4bf7a1=Buffer['isBuffer'](_0x3bf33b)?_0x3bf33b:Buffer['from'](_0x3bf33b),_0x16e39a=Buffer[_0x4c8689(0x214)]([_0x2f0d59,_0x4bf7a1]),_0x467ecc=Math[_0x4c8689(0x245)](_0x16e39a[_0x4c8689(0x21c)]/0x3)*0x3;if(_0x467ecc>0x0){const _0x658bf4=_0x16e39a[_0x4c8689(0x1f3)](0x0,_0x467ecc);_0x2e7188['push'](_0x658bf4['toString'](_0x4c8689(0x20c))),_0x2f0d59=_0x16e39a[_0x4c8689(0x1f3)](_0x467ecc);}else _0x2f0d59=_0x16e39a;}),_0x1336c4['on'](_0x269602(0x1e6),()=>{const _0x2a3320=_0x269602;_0x2f0d59[_0x2a3320(0x21c)]>0x0&&_0x2e7188['push'](_0x2f0d59[_0x2a3320(0x212)](_0x2a3320(0x20c))),_0x3d0d1f(_0x2e7188[_0x2a3320(0x243)](''));}),_0x1336c4['on'](_0x269602(0x1e9),_0x55a93a=>{_0x3b845a(_0x55a93a);});});}async[a7_0x19f2cc(0x1e7)](_0x541cb8,_0x15af32,_0x501f49){const _0x44a3ae=a7_0x19f2cc;if(!this['testResults']||!this[_0x44a3ae(0x201)])return;try{const {failed:_0x52050d,flaky:_0x86cdcc}=this['testCounts'],_0x322d4d=_0x52050d>0x0?_0x44a3ae(0x223):_0x44a3ae(0x209),_0xd0e25=_0x52050d===0x0&&_0x86cdcc>0x0,_0x1809f0=new Date(),_0x29dbff=this[_0x44a3ae(0x230)]?Math['max'](0x0,_0x1809f0[_0x44a3ae(0x244)]()-this[_0x44a3ae(0x230)][_0x44a3ae(0x244)]()):0x0,_0xe36782=await this[_0x44a3ae(0x219)](_0x15af32),_0x3a44da=a7_0x327c90[_0x44a3ae(0x1fe)](_0x15af32)[_0x44a3ae(0x211)];if(this['testSession'][_0x44a3ae(0x1f4)][_0x44a3ae(0x21c)]>0x0){const _0x32806d=this[_0x44a3ae(0x201)][_0x44a3ae(0x1f4)][0x0];await this[_0x44a3ae(0x1f4)]['updateTestResult'](this[_0x44a3ae(0x201)]['testSessionId'],_0x32806d[_0x44a3ae(0x247)],{'status':_0x322d4d,'isDegraded':_0xd0e25,'startedAt':this['startTime']?.[_0x44a3ae(0x1fa)](),'stoppedAt':_0x1809f0[_0x44a3ae(0x1fa)](),'responseTime':_0x29dbff,'assets':{'assetsZip':_0xe36782,'entries':_0x501f49},'metadata':{'usageData':{'s3PostTotalBytes':_0x3a44da}}});}}catch(_0xdd7c09){const _0x8c0500=_0xdd7c09 instanceof Error?_0xdd7c09['message']:String(_0xdd7c09);console[_0x44a3ae(0x1e9)](_0x44a3ae(0x206),_0x8c0500);}}[a7_0x19f2cc(0x235)](_0x2ff086){console['error']('[Checkly\x20Reporter]\x20Global\x20error:',_0x2ff086);}}
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_0x1a5c(_0x76530,_0xae3e37){const _0x31a8f7=a9_0x31a8();return a9_0x1a5c=function(_0x1a5ca4,_0x4c399b){_0x1a5ca4=_0x1a5ca4-0xac;let _0x4cb18f=_0x31a8f7[_0x1a5ca4];return _0x4cb18f;},a9_0x1a5c(_0x76530,_0xae3e37);}const a9_0x109396=a9_0x1a5c;(function(_0x2926be,_0x2c5d37){const _0xabc75b=a9_0x1a5c,_0x60c140=_0x2926be();while(!![]){try{const _0x523cae=-parseInt(_0xabc75b(0xb5))/0x1*(-parseInt(_0xabc75b(0xb9))/0x2)+parseInt(_0xabc75b(0xdd))/0x3*(parseInt(_0xabc75b(0xbd))/0x4)+-parseInt(_0xabc75b(0xc8))/0x5*(-parseInt(_0xabc75b(0xc1))/0x6)+parseInt(_0xabc75b(0xd6))/0x7*(parseInt(_0xabc75b(0xe0))/0x8)+parseInt(_0xabc75b(0xbf))/0x9+parseInt(_0xabc75b(0xae))/0xa+-parseInt(_0xabc75b(0xad))/0xb;if(_0x523cae===_0x2c5d37)break;else _0x60c140['push'](_0x60c140['shift']());}catch(_0x1c487d){_0x60c140['push'](_0x60c140['shift']());}}}(a9_0x31a8,0xcb49a));import*as a9_0x17452a from'fs';import*as a9_0x332236 from'path';import*as a9_0x57239b from'os';import{ZipArchive}from'archiver';export class Zipper{[a9_0x109396(0xb4)];constructor(_0x55976f){const _0x3b0ad6=a9_0x109396;this[_0x3b0ad6(0xb4)]=_0x55976f['outputPath'];}async[a9_0x109396(0xd7)](_0x40852f,_0x4f48d1){const _0x26f854=[];return new Promise((_0x24d69c,_0x7663b3)=>{const _0x44c514=a9_0x1a5c;try{const _0x25b1a5=a9_0x17452a[_0x44c514(0xc4)](this[_0x44c514(0xb4)]),_0x2b94bd=new ZipArchive({'zlib':{'level':0x0}});_0x2b94bd['on'](_0x44c514(0xc5),_0x314e82=>{const _0x15b914=_0x44c514,_0xe8c7c8=_0x314e82[_0x15b914(0xba)][_0x15b914(0xbc)](/\\/g,'/'),_0x58f10a=_0x314e82['_offsets']?.[_0x15b914(0xb2)]??0x0,_0x31be21=_0x314e82['_offsets']?.[_0x15b914(0xb2)]+(_0x314e82['csize']??0x0)-0x1;_0x26f854[_0x15b914(0xd8)]({'name':_0xe8c7c8,'start':_0x58f10a,'end':_0x31be21});}),_0x25b1a5['on'](_0x44c514(0xc9),()=>{const _0x253716=_0x44c514,_0x5ce8a0=_0x2b94bd['pointer']();_0x24d69c({'zipPath':this['outputPath'],'size':_0x5ce8a0,'entryCount':_0x26f854[_0x253716(0xcb)],'entries':_0x26f854});}),_0x2b94bd['on'](_0x44c514(0xdc),_0x4154d7=>{_0x7663b3(_0x4154d7);}),_0x25b1a5['on'](_0x44c514(0xdc),_0x2dd24c=>{_0x7663b3(_0x2dd24c);}),_0x2b94bd[_0x44c514(0xca)](_0x25b1a5);if(!a9_0x17452a[_0x44c514(0xd0)](_0x40852f)){_0x7663b3(new Error('Report\x20file\x20not\x20found:\x20'+_0x40852f));return;}const _0x4e7e37=this[_0x44c514(0xc0)](_0x40852f);_0x2b94bd[_0x44c514(0xc6)](_0x4e7e37,{'name':_0x44c514(0xd4)});for(const _0x3976a4 of _0x4f48d1){if(!a9_0x17452a[_0x44c514(0xd0)](_0x3976a4[_0x44c514(0xc2)])){_0x7663b3(new Error(_0x44c514(0xcc)+_0x3976a4[_0x44c514(0xc2)]));return;}_0x2b94bd[_0x44c514(0xc6)](_0x3976a4[_0x44c514(0xc2)],{'name':_0x3976a4['archivePath']});}_0x2b94bd[_0x44c514(0xb1)]();}catch(_0x910d04){_0x7663b3(_0x910d04);}});}[a9_0x109396(0xc0)](_0x347c6b){const _0x411377=a9_0x109396,_0x17520a=a9_0x17452a[_0x411377(0xdf)](_0x347c6b,_0x411377(0xcd)),_0xce7764=JSON[_0x411377(0xd3)](_0x17520a);this[_0x411377(0xd1)](_0xce7764);const _0x152506=a9_0x332236['join'](a9_0x57239b[_0x411377(0xcf)](),_0x411377(0xaf)+Date[_0x411377(0xda)]()+_0x411377(0xce));return a9_0x17452a[_0x411377(0xb8)](_0x152506,JSON[_0x411377(0xc3)](_0xce7764,null,0x2)),_0x152506;}[a9_0x109396(0xd1)](_0x519774){const _0x16fe5d=a9_0x109396;if(typeof _0x519774!==_0x16fe5d(0xd5)||_0x519774===null)return;if(Array['isArray'](_0x519774)){_0x519774[_0x16fe5d(0xdb)](_0x1ac63b=>this[_0x16fe5d(0xd1)](_0x1ac63b));return;}_0x519774[_0x16fe5d(0xb0)]&&Array[_0x16fe5d(0xde)](_0x519774[_0x16fe5d(0xb0)])&&_0x519774[_0x16fe5d(0xb0)][_0x16fe5d(0xdb)](_0x2fc0a9=>{const _0x1afb64=_0x16fe5d;_0x2fc0a9[_0x1afb64(0xbe)]&&typeof _0x2fc0a9[_0x1afb64(0xbe)]===_0x1afb64(0xb3)&&(_0x2fc0a9[_0x1afb64(0xbe)]=this[_0x1afb64(0xd9)](_0x2fc0a9['path']));}),Object[_0x16fe5d(0xc7)](_0x519774)[_0x16fe5d(0xdb)](_0x307a85=>this['transformAttachmentPaths'](_0x307a85));}['normalizeAttachmentPath'](_0x315bbf){const _0x13fbad=a9_0x109396,_0x54f743=_0x315bbf[_0x13fbad(0xd2)](_0x13fbad(0xb7));if(_0x54f743!==-0x1)return _0x315bbf[_0x13fbad(0xac)](_0x54f743)['replace'](/\\/g,'/');return console[_0x13fbad(0xb6)](_0x13fbad(0xbb)+_0x315bbf),_0x315bbf;}}function a9_0x31a8(){const _0x49b353=['46204HdvfsC','warn','test-results','writeFileSync','6uHajho','name','[Checkly\x20Reporter]\x20Could\x20not\x20normalize\x20attachment\x20path:\x20','replace','4avKagK','path','6180183lnZbMV','transformJsonReport','4284skFewW','sourcePath','stringify','createWriteStream','entry','file','values','5855uDOpKI','close','pipe','length','Asset\x20file\x20not\x20found:\x20','utf-8','.json','tmpdir','existsSync','transformAttachmentPaths','indexOf','parse','output/playwright-test-report.json','object','1057JpGEAd','createZip','push','normalizeAttachmentPath','now','forEach','error','4699056bKakhH','isArray','readFileSync','40712RGKuRG','substring','42678152RXBNDz','7163140jUUXpY','playwright-test-report-','attachments','finalize','contents','string','outputPath'];a9_0x31a8=function(){return _0x49b353;};return a9_0x31a8();}
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.7-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",