@checkly/playwright-reporter 0.0.5-alpha → 0.0.6-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
@@ -10,7 +10,7 @@ Seamlessly integrate Playwright test results with Checkly monitoring. Automatica
10
10
  ## Installation
11
11
 
12
12
  ```bash
13
- npm install --save-dev @checkly/playwright-reporter
13
+ npm install --save-dev @checkly/playwright-reporter@alpha
14
14
  ```
15
15
 
16
16
  **Requirements:**
@@ -60,12 +60,27 @@ npx playwright test
60
60
  You'll see a direct link to your test results:
61
61
 
62
62
  ```
63
- View test results: https://app.checklyhq.com/test-sessions/abc123
63
+ Running 5 tests using 5 workers
64
64
 
65
- Running 47 tests using 5 workers
66
- 47 passed (2.3s)
67
65
 
68
- Check the results: https://app.checklyhq.com/test-sessions/abc123
66
+ 🔗 View test session: https://chkly.link/l/XSX35
67
+
68
+ ✓ 1 [chromium] › tests/01-always-passing.spec.ts:4:7 › Always Passing Tests › basic math assertion (5ms)
69
+ ✓ 2 [chromium] › tests/01-always-passing.spec.ts:33:7 › Always Passing Tests › async operation with timeout (104ms)
70
+ ✓ 3 [chromium] › tests/01-always-passing.spec.ts:8:7 › Always Passing Tests › string manipulation (7ms)
71
+ ✓ 4 [chromium] › tests/01-always-passing.spec.ts:14:7 › Always Passing Tests › array operations (20ms)
72
+ ✓ 5 [chromium] › tests/01-always-passing.spec.ts:21:7 › Always Passing Tests › object properties (11ms)
73
+
74
+ 5 passed (550ms)
75
+
76
+ ======================================================
77
+
78
+ 📦 Checkly Playwright reporter: 0.1.0
79
+ 🎭 Playwright: 1.56.0
80
+ 📔 Project: chromium
81
+ 🔗 Test session URL: https://chkly.link/l/XSX35
82
+
83
+ ======================================================
69
84
  ```
70
85
 
71
86
  ## Configuration
@@ -1 +1 @@
1
- const a0_0x435bbd=a0_0xd910;function a0_0x2505(){const _0x3f3f70=['name','trace','createAsset','10016zUPIkb','.mov','screenshot','getVideoContentType','collectAssetsRecursive','extname','.svg','.log','test','getImageContentType','other','.json','application/json','.gif','.html','isFile','basename','determineAssetType','some','.jpg','text/html','testResultsDir','toLowerCase','includes','video/webm','1970NlkZBr','video/x-msvideo','sep','7mAuHeR','has','application/octet-stream','3137299hiWaqr','relative','collectAssets','12465CUqTcI','video/quicktime','.htm','video','attachment','resolve','shouldSkipFile','525XHHECv','787470ojSlDP','readdirSync','push','image/png','96254FztuBM','join','20883CouWmg','1709840INwCmu','image/svg+xml','image/jpeg','add','existsSync','.zip','text/plain','26TDAVLn'];a0_0x2505=function(){return _0x3f3f70;};return a0_0x2505();}(function(_0x52a4ad,_0x26949a){const _0x2dca1a=a0_0xd910,_0x571b41=_0x52a4ad();while(!![]){try{const _0x4afd17=parseInt(_0x2dca1a(0x9e))/0x1+-parseInt(_0x2dca1a(0x6c))/0x2*(-parseInt(_0x2dca1a(0x64))/0x3)+parseInt(_0x2dca1a(0x70))/0x4*(parseInt(_0x2dca1a(0x99))/0x5)+-parseInt(_0x2dca1a(0x9a))/0x6*(-parseInt(_0x2dca1a(0x8c))/0x7)+parseInt(_0x2dca1a(0x65))/0x8+parseInt(_0x2dca1a(0x92))/0x9*(-parseInt(_0x2dca1a(0x89))/0xa)+-parseInt(_0x2dca1a(0x8f))/0xb;if(_0x4afd17===_0x26949a)break;else _0x571b41['push'](_0x571b41['shift']());}catch(_0x4f3082){_0x571b41['push'](_0x571b41['shift']());}}}(a0_0x2505,0x39c2c));import*as a0_0x3b7e4d from'fs';function a0_0xd910(_0x2e6234,_0x458f16){const _0x250578=a0_0x2505();return a0_0xd910=function(_0xd910b0,_0x1db373){_0xd910b0=_0xd910b0-0x64;let _0x16b8a5=_0x250578[_0xd910b0];return _0x16b8a5;},a0_0xd910(_0x2e6234,_0x458f16);}import*as a0_0x2237a3 from'path';export class AssetCollector{[a0_0x435bbd(0x85)];constructor(_0x11780c){this['testResultsDir']=_0x11780c;}async[a0_0x435bbd(0x91)](_0x51b50b){const _0x5eb31a=a0_0x435bbd,_0x58d213=[],_0x334a84=new Set();if(!a0_0x3b7e4d[_0x5eb31a(0x69)](this[_0x5eb31a(0x85)]))return _0x58d213;return await this[_0x5eb31a(0x74)](this['testResultsDir'],'',_0x58d213,_0x334a84),_0x58d213;}async[a0_0x435bbd(0x74)](_0x140f33,_0x43db79,_0x4af6eb,_0xc957a1){const _0x47a184=a0_0x435bbd;let _0x298d50;try{_0x298d50=a0_0x3b7e4d[_0x47a184(0x9b)](_0x140f33,{'withFileTypes':!![]});}catch{return;}const _0x1c1a56=a0_0x2237a3[_0x47a184(0x80)](a0_0x2237a3[_0x47a184(0x97)](this[_0x47a184(0x85)]));for(const _0xebd936 of _0x298d50){const _0x4de578=a0_0x2237a3[_0x47a184(0x9f)](_0x140f33,_0xebd936[_0x47a184(0x6d)]),_0x193454=a0_0x2237a3[_0x47a184(0x90)](this[_0x47a184(0x85)],_0x4de578),_0x3e4509=a0_0x2237a3['join'](_0x1c1a56,_0x193454);if(this[_0x47a184(0x98)](_0xebd936[_0x47a184(0x6d)]))continue;if(_0xebd936['isDirectory']())await this['collectAssetsRecursive'](_0x4de578,_0x3e4509,_0x4af6eb,_0xc957a1);else{if(_0xebd936[_0x47a184(0x7f)]()){if(!_0xc957a1[_0x47a184(0x8d)](_0x4de578)){const _0x1972a9=this['createAsset'](_0x4de578,_0x3e4509);_0x4af6eb[_0x47a184(0x9c)](_0x1972a9),_0xc957a1[_0x47a184(0x68)](_0x4de578);}}}}}[a0_0x435bbd(0x98)](_0x54f838){const _0x8a327=a0_0x435bbd,_0x30be09=[/^\./,/\.tmp$/i,/~$/,/\.swp$/i,/\.lock$/i,/^playwright-test-report\.json$/i];return _0x30be09[_0x8a327(0x82)](_0x1906f5=>_0x1906f5[_0x8a327(0x78)](_0x54f838));}[a0_0x435bbd(0x6f)](_0x2d3c15,_0x41f351){const _0x5d614f=a0_0x435bbd,_0x5c7890=a0_0x2237a3[_0x5d614f(0x75)](_0x2d3c15)[_0x5d614f(0x86)](),{type:_0x11f3dd,contentType:_0x1e1286}=this[_0x5d614f(0x81)](_0x5c7890),_0xcb9262=_0x41f351['split'](a0_0x2237a3[_0x5d614f(0x8b)])[_0x5d614f(0x9f)]('/');return{'sourcePath':_0x2d3c15,'archivePath':_0xcb9262,'type':_0x11f3dd,'contentType':_0x1e1286};}[a0_0x435bbd(0x81)](_0x360bb6){const _0x2ff9e9=a0_0x435bbd;if(['.png',_0x2ff9e9(0x83),'.jpeg',_0x2ff9e9(0x7d),'.bmp',_0x2ff9e9(0x76)][_0x2ff9e9(0x87)](_0x360bb6))return{'type':_0x2ff9e9(0x72),'contentType':this[_0x2ff9e9(0x79)](_0x360bb6)};if(['.webm','.mp4','.avi',_0x2ff9e9(0x71)]['includes'](_0x360bb6))return{'type':_0x2ff9e9(0x95),'contentType':this['getVideoContentType'](_0x360bb6)};if(_0x360bb6===_0x2ff9e9(0x6a))return{'type':_0x2ff9e9(0x6e),'contentType':'application/zip'};if(_0x360bb6===_0x2ff9e9(0x7e)||_0x360bb6===_0x2ff9e9(0x94))return{'type':_0x2ff9e9(0x96),'contentType':_0x2ff9e9(0x84)};if(_0x360bb6===_0x2ff9e9(0x7b))return{'type':_0x2ff9e9(0x96),'contentType':_0x2ff9e9(0x7c)};if(_0x360bb6==='.txt'||_0x360bb6===_0x2ff9e9(0x77))return{'type':'attachment','contentType':_0x2ff9e9(0x6b)};return{'type':_0x2ff9e9(0x7a),'contentType':_0x2ff9e9(0x8e)};}[a0_0x435bbd(0x79)](_0x1a8bd6){const _0x597773=a0_0x435bbd,_0x4a34a2={'.png':_0x597773(0x9d),'.jpg':_0x597773(0x67),'.jpeg':_0x597773(0x67),'.gif':'image/gif','.bmp':'image/bmp','.svg':_0x597773(0x66)};return _0x4a34a2[_0x1a8bd6]||_0x597773(0x9d);}[a0_0x435bbd(0x73)](_0x422abe){const _0x3dbca4=a0_0x435bbd,_0x85b30={'.webm':_0x3dbca4(0x88),'.mp4':'video/mp4','.avi':_0x3dbca4(0x8a),'.mov':_0x3dbca4(0x93)};return _0x85b30[_0x422abe]||_0x3dbca4(0x88);}}
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 +1 @@
1
- var a1_0x251c9a=a1_0x3dff;function a1_0x3ca8(){var _0x4e61b7=['baseUrl','x-checkly-account','68938PuwFmB','11uyDDMC','5547oAnHiV','24AiagmD','0.1.0','headers','use','Bearer\x20','1790505YlXUNZ','7617250XozWcI','@checkly/playwright-reporter/','775395icFAfD','getAxiosInstance','2264955jxvhxw','apiKey','User-Agent','response','interceptors','796SEXlSf','api','2479800jPyCUs','2KMwGaJ','accountId','request'];a1_0x3ca8=function(){return _0x4e61b7;};return a1_0x3ca8();}(function(_0x3287ca,_0x114a3c){var _0x1a7436=a1_0x3dff,_0x98dfc5=_0x3287ca();while(!![]){try{var _0x5b82f4=parseInt(_0x1a7436(0xc3))/0x1*(-parseInt(_0x1a7436(0xbe))/0x2)+-parseInt(_0x1a7436(0xab))/0x3*(-parseInt(_0x1a7436(0xbb))/0x4)+-parseInt(_0x1a7436(0xb1))/0x5+-parseInt(_0x1a7436(0xbd))/0x6+-parseInt(_0x1a7436(0xb6))/0x7+-parseInt(_0x1a7436(0xac))/0x8*(-parseInt(_0x1a7436(0xb4))/0x9)+parseInt(_0x1a7436(0xb2))/0xa*(parseInt(_0x1a7436(0xc4))/0xb);if(_0x5b82f4===_0x114a3c)break;else _0x98dfc5['push'](_0x98dfc5['shift']());}catch(_0x5c87cd){_0x98dfc5['push'](_0x98dfc5['shift']());}}}(a1_0x3ca8,0x36bed));import a1_0x17f4e6 from'axios';import{handleErrorResponse}from'./errors.js';function a1_0x3dff(_0x177ea6,_0x54c258){var _0x3ca8b6=a1_0x3ca8();return a1_0x3dff=function(_0x3dff10,_0x22c8e9){_0x3dff10=_0x3dff10-0xab;var _0x18f01c=_0x3ca8b6[_0x3dff10];return _0x18f01c;},a1_0x3dff(_0x177ea6,_0x54c258);}function getVersion(){var _0x3d0f81=a1_0x3dff;return _0x3d0f81(0xad);}export function createRequestInterceptor(_0x39b4be,_0xa9812){return _0x30bf1d=>{var _0x385daa=a1_0x3dff;return _0x30bf1d['headers']&&(_0x30bf1d['headers']['Authorization']=_0x385daa(0xb0)+_0x39b4be,_0x30bf1d[_0x385daa(0xae)][_0x385daa(0xc2)]=_0xa9812,_0x30bf1d[_0x385daa(0xae)][_0x385daa(0xb8)]=_0x385daa(0xb3)+getVersion()),_0x30bf1d;};}export function createResponseErrorInterceptor(){return _0x3aba5f=>{handleErrorResponse(_0x3aba5f);};}export default class ChecklyClient{[a1_0x251c9a(0xb7)];[a1_0x251c9a(0xc1)];[a1_0x251c9a(0xbf)];[a1_0x251c9a(0xbc)];constructor(_0x33c703){var _0x4b8987=a1_0x251c9a;this[_0x4b8987(0xbf)]=_0x33c703[_0x4b8987(0xbf)],this['apiKey']=_0x33c703[_0x4b8987(0xb7)],this['baseUrl']=_0x33c703[_0x4b8987(0xc1)],this['api']=a1_0x17f4e6['create']({'baseURL':this[_0x4b8987(0xc1)],'timeout':0x7530}),this[_0x4b8987(0xbc)][_0x4b8987(0xba)][_0x4b8987(0xc0)]['use'](createRequestInterceptor(this[_0x4b8987(0xb7)],this[_0x4b8987(0xbf)])),this[_0x4b8987(0xbc)][_0x4b8987(0xba)][_0x4b8987(0xb9)][_0x4b8987(0xaf)](_0xa0c487=>_0xa0c487,createResponseErrorInterceptor());}[a1_0x251c9a(0xb5)](){var _0x5656da=a1_0x251c9a;return this[_0x5656da(0xbc)];}}
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 +1 @@
1
- const a2_0x14d4d5=a2_0x2e22;(function(_0x5c6de4,_0x3a0a3a){const _0x5b1378=a2_0x2e22,_0x2fb91c=_0x5c6de4();while(!![]){try{const _0x4f9609=parseInt(_0x5b1378(0x156))/0x1+parseInt(_0x5b1378(0x149))/0x2+parseInt(_0x5b1378(0x14a))/0x3+parseInt(_0x5b1378(0x158))/0x4*(-parseInt(_0x5b1378(0x155))/0x5)+-parseInt(_0x5b1378(0x154))/0x6+-parseInt(_0x5b1378(0x153))/0x7*(-parseInt(_0x5b1378(0x14b))/0x8)+parseInt(_0x5b1378(0x14c))/0x9*(parseInt(_0x5b1378(0x15a))/0xa);if(_0x4f9609===_0x3a0a3a)break;else _0x2fb91c['push'](_0x2fb91c['shift']());}catch(_0x58c91a){_0x2fb91c['push'](_0x2fb91c['shift']());}}}(a2_0x2450,0xb246c));function a2_0x2450(){const _0x45a367=['4979484eutAmQ','object','294820TltQCB','error','message','name','Network\x20error','1407462WGbyaA','2224857tVQEav','135712BuGCjy','351syZZyV','MissingResponseError','Unknown\x20error','data','response','errorCode','statusCode','119TetfBl','6520794pgeJgp','5vRgTtl','178354yhvrjR','string'];a2_0x2450=function(){return _0x45a367;};return a2_0x2450();}export class ApiError extends Error{[a2_0x14d4d5(0x14f)];constructor(_0x273434,_0x3416ed){const _0xc54808=a2_0x14d4d5;super(_0x273434['message'],_0x3416ed),this['name']=this['constructor'][_0xc54808(0x147)],this[_0xc54808(0x14f)]=_0x273434;}}export class ValidationError extends ApiError{constructor(_0x3d83e6,_0x4bdd28){super(_0x3d83e6,_0x4bdd28);}}export class UnauthorizedError extends ApiError{constructor(_0x21bf3c,_0x59d2cc){super(_0x21bf3c,_0x59d2cc);}}export class ForbiddenError extends ApiError{constructor(_0x4b79de,_0x410493){super(_0x4b79de,_0x410493);}}export class NotFoundError extends ApiError{constructor(_0x335285,_0x5951f1){super(_0x335285,_0x5951f1);}}export class RequestTimeoutError extends ApiError{constructor(_0x22ac7b,_0x388a61){super(_0x22ac7b,_0x388a61);}}export class ConflictError extends ApiError{constructor(_0x1a0355,_0x454364){super(_0x1a0355,_0x454364);}}export class ServerError extends ApiError{constructor(_0x308928,_0x1655f2){super(_0x308928,_0x1655f2);}}export class MiscellaneousError extends ApiError{constructor(_0x10ab11,_0x38bb75){super(_0x10ab11,_0x38bb75);}}function a2_0x2e22(_0x5afa9f,_0x105d1d){const _0x245062=a2_0x2450();return a2_0x2e22=function(_0x2e224a,_0x22d1d1){_0x2e224a=_0x2e224a-0x146;let _0x236b83=_0x245062[_0x2e224a];return _0x236b83;},a2_0x2e22(_0x5afa9f,_0x105d1d);}export class MissingResponseError extends Error{constructor(_0x4e6808,_0x5b7249){const _0x48960d=a2_0x14d4d5;super(_0x4e6808,_0x5b7249),this[_0x48960d(0x147)]=_0x48960d(0x14d);}}export function parseErrorData(_0x28ce58,_0x1f067e){const _0x583d28=a2_0x14d4d5;if(!_0x28ce58)return undefined;if(typeof _0x28ce58===_0x583d28(0x159)&&_0x28ce58[_0x583d28(0x152)]&&_0x28ce58[_0x583d28(0x15b)]&&_0x28ce58[_0x583d28(0x146)])return{'statusCode':_0x28ce58[_0x583d28(0x152)],'error':_0x28ce58[_0x583d28(0x15b)],'message':_0x28ce58[_0x583d28(0x146)],'errorCode':_0x28ce58['errorCode']};if(typeof _0x28ce58===_0x583d28(0x159)&&_0x28ce58[_0x583d28(0x15b)]&&!_0x28ce58[_0x583d28(0x146)])return{'statusCode':_0x1f067e[_0x583d28(0x152)],'error':_0x28ce58[_0x583d28(0x15b)],'message':_0x28ce58[_0x583d28(0x15b)]};if(typeof _0x28ce58==='object'&&_0x28ce58[_0x583d28(0x15b)]&&_0x28ce58[_0x583d28(0x146)])return{'statusCode':_0x1f067e[_0x583d28(0x152)],'error':_0x28ce58[_0x583d28(0x15b)],'message':_0x28ce58[_0x583d28(0x146)],'errorCode':_0x28ce58['errorCode']};if(typeof _0x28ce58===_0x583d28(0x159)&&_0x28ce58[_0x583d28(0x146)])return{'statusCode':_0x1f067e[_0x583d28(0x152)],'error':_0x28ce58['message'],'message':_0x28ce58['message'],'errorCode':_0x28ce58[_0x583d28(0x151)]};if(typeof _0x28ce58===_0x583d28(0x157))return{'statusCode':_0x1f067e[_0x583d28(0x152)],'error':_0x28ce58,'message':_0x28ce58};return undefined;}export function handleErrorResponse(_0x28492e){const _0x1748ce=a2_0x14d4d5;if(!_0x28492e[_0x1748ce(0x150)])throw new MissingResponseError(_0x28492e['message']||_0x1748ce(0x148));const {status:_0x4c384b,data:_0x4046a3}=_0x28492e[_0x1748ce(0x150)],_0x148eff=parseErrorData(_0x4046a3,{'statusCode':_0x4c384b});if(!_0x148eff)throw new MiscellaneousError({'statusCode':_0x4c384b,'error':_0x1748ce(0x14e),'message':_0x28492e['message']||'An\x20error\x20occurred'});switch(_0x4c384b){case 0x190:throw new ValidationError(_0x148eff);case 0x191:throw new UnauthorizedError(_0x148eff);case 0x193:throw new ForbiddenError(_0x148eff);case 0x194:throw new NotFoundError(_0x148eff);case 0x198:throw new RequestTimeoutError(_0x148eff);case 0x199:throw new ConflictError(_0x148eff);default:if(_0x4c384b>=0x1f4)throw new ServerError(_0x148eff);throw new MiscellaneousError(_0x148eff);}}
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 +1 @@
1
- (function(_0x5b385e,_0x45f039){var _0x120ccd=a3_0x1f5f,_0x4c9ad7=_0x5b385e();while(!![]){try{var _0x5cdd9d=parseInt(_0x120ccd(0x9d))/0x1+parseInt(_0x120ccd(0x9b))/0x2*(parseInt(_0x120ccd(0x97))/0x3)+parseInt(_0x120ccd(0x9e))/0x4+-parseInt(_0x120ccd(0x95))/0x5*(-parseInt(_0x120ccd(0x98))/0x6)+-parseInt(_0x120ccd(0x9c))/0x7*(-parseInt(_0x120ccd(0x96))/0x8)+parseInt(_0x120ccd(0x99))/0x9+-parseInt(_0x120ccd(0x9a))/0xa;if(_0x5cdd9d===_0x45f039)break;else _0x4c9ad7['push'](_0x4c9ad7['shift']());}catch(_0xa0956d){_0x4c9ad7['push'](_0x4c9ad7['shift']());}}}(a3_0x4963,0xc0a58));export{default as ChecklyClient}from'./checkly-client.js';function a3_0x4963(){var _0x363b49=['76720DSWGuJ','25293XCoLWQ','6vKzBaI','14001813VcoZhp','39337230jyEYrX','166ykhCnp','994ahvbEp','292149FanGAk','2824108ttOBNA','536585SVJFWP'];a3_0x4963=function(){return _0x363b49;};return a3_0x4963();}function a3_0x1f5f(_0x2e8552,_0x10d0d1){var _0x496320=a3_0x4963();return a3_0x1f5f=function(_0x1f5fea,_0x4bdd78){_0x1f5fea=_0x1f5fea-0x95;var _0x139d0f=_0x496320[_0x1f5fea];return _0x139d0f;},a3_0x1f5f(_0x2e8552,_0x10d0d1);}export{TestResults}from'./test-results.js';export*from'./types.js';export*from'./errors.js';
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 +1 @@
1
- const a4_0x56af42=a4_0x5999;(function(_0x1a3261,_0x2d78ef){const _0xf21a61=a4_0x5999,_0x57f1f3=_0x1a3261();while(!![]){try{const _0x4baf9c=parseInt(_0xf21a61(0xe1))/0x1+-parseInt(_0xf21a61(0xdf))/0x2+parseInt(_0xf21a61(0xea))/0x3*(parseInt(_0xf21a61(0xe7))/0x4)+-parseInt(_0xf21a61(0xe3))/0x5*(parseInt(_0xf21a61(0xe5))/0x6)+-parseInt(_0xf21a61(0xec))/0x7*(parseInt(_0xf21a61(0xe8))/0x8)+parseInt(_0xf21a61(0xe4))/0x9*(-parseInt(_0xf21a61(0xeb))/0xa)+parseInt(_0xf21a61(0xe2))/0xb;if(_0x4baf9c===_0x2d78ef)break;else _0x57f1f3['push'](_0x57f1f3['shift']());}catch(_0x4a3964){_0x57f1f3['push'](_0x57f1f3['shift']());}}}(a4_0x1f02,0x5f221));function a4_0x5999(_0x1ce4cc,_0x5551c2){const _0x1f0264=a4_0x1f02();return a4_0x5999=function(_0x5999dd,_0x3b2f56){_0x5999dd=_0x5999dd-0xdc;let _0x254c8e=_0x1f0264[_0x5999dd];return _0x254c8e;},a4_0x5999(_0x1ce4cc,_0x5551c2);}function a4_0x1f02(){const _0x6f6a5b=['75681IlMCiA','37428attRBo','/results/','36672gbZacX','2078584aeMUlo','/next/test-sessions/create','138OaRGYZ','800jWaiSn','7svvLLp','api','data','/next/test-sessions/','updateTestResult','1278794mrQxNE','post','360751cfBWGn','18734298rDYtHm','420maAXQf'];a4_0x1f02=function(){return _0x6f6a5b;};return a4_0x1f02();}export class TestResults{['api'];constructor(_0x4eb39f){const _0x5594ae=a4_0x5999;this[_0x5594ae(0xed)]=_0x4eb39f;}async['createTestSession'](_0x3b61b8){const _0x49db87=a4_0x5999,_0x35e759=await this[_0x49db87(0xed)][_0x49db87(0xe0)](_0x49db87(0xe9),_0x3b61b8);return _0x35e759[_0x49db87(0xdc)];}async[a4_0x56af42(0xde)](_0x372e94,_0x341412,_0x50528d){const _0x32669c=a4_0x56af42,_0x3d0ef1=await this[_0x32669c(0xed)][_0x32669c(0xe0)](_0x32669c(0xdd)+_0x372e94+_0x32669c(0xe6)+_0x341412,_0x50528d);return _0x3d0ef1[_0x32669c(0xdc)];}}
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)];}}
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- (function(_0x348ff7,_0x8970eb){var _0x5d374b=a6_0x2460,_0x16036a=_0x348ff7();while(!![]){try{var _0x299fdd=-parseInt(_0x5d374b(0xe9))/0x1+parseInt(_0x5d374b(0xe5))/0x2+parseInt(_0x5d374b(0xeb))/0x3+-parseInt(_0x5d374b(0xe6))/0x4*(-parseInt(_0x5d374b(0xe8))/0x5)+-parseInt(_0x5d374b(0xea))/0x6+-parseInt(_0x5d374b(0xe7))/0x7+parseInt(_0x5d374b(0xe4))/0x8;if(_0x299fdd===_0x8970eb)break;else _0x16036a['push'](_0x16036a['shift']());}catch(_0x17d4cc){_0x16036a['push'](_0x16036a['shift']());}}}(a6_0x4726,0x78d6f));export{ChecklyReporter}from'./reporter.js';function a6_0x4726(){var _0x478b31=['4327344BXgzFP','277645kyzVnq','837875grAcGe','3327042yqOBQp','2037600zjsSNF','11460520fFYGaI','565420RNxWlG','8ihyHdx'];a6_0x4726=function(){return _0x478b31;};return a6_0x4726();}export{AssetCollector}from'./asset-collector.js';export{Zipper}from'./zipper.js';function a6_0x2460(_0x831377,_0x4d3c63){var _0x47267a=a6_0x4726();return a6_0x2460=function(_0x2460a3,_0x1eaa8d){_0x2460a3=_0x2460a3-0xe4;var _0x4f4e67=_0x47267a[_0x2460a3];return _0x4f4e67;},a6_0x2460(_0x831377,_0x4d3c63);}export{ChecklyReporter as default}from'./reporter.js';
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();}
package/dist/reporter.js CHANGED
@@ -1 +1 @@
1
- const a7_0x7e9f5=a7_0x49b0;function a7_0x49b0(_0x1d7734,_0x4646ba){const _0x20b7b4=a7_0x20b7();return a7_0x49b0=function(_0x49b0ff,_0x5a3ee0){_0x49b0ff=_0x49b0ff-0x1ad;let _0x5f36b5=_0x20b7b4[_0x49b0ff];return _0x5f36b5;},a7_0x49b0(_0x1d7734,_0x4646ba);}(function(_0x35412f,_0x5aa1fc){const _0x279098=a7_0x49b0,_0x2257d8=_0x35412f();while(!![]){try{const _0x1815dc=-parseInt(_0x279098(0x202))/0x1+-parseInt(_0x279098(0x1f8))/0x2*(parseInt(_0x279098(0x1b3))/0x3)+-parseInt(_0x279098(0x1d1))/0x4+-parseInt(_0x279098(0x200))/0x5+parseInt(_0x279098(0x1b2))/0x6+-parseInt(_0x279098(0x1c0))/0x7+parseInt(_0x279098(0x1eb))/0x8;if(_0x1815dc===_0x5aa1fc)break;else _0x2257d8['push'](_0x2257d8['shift']());}catch(_0x1751a1){_0x2257d8['push'](_0x2257d8['shift']());}}}(a7_0x20b7,0x34232));import*as a7_0x23f2cf from'fs';import*as a7_0x5554f1 from'path';import{AssetCollector}from'./asset-collector.js';function a7_0x20b7(){const _0x241991=['toISOString','📦\x20Checkly\x20Playwright\x20reporter:\x20','message','parse','env','select','🔗\x20Test\x20session\x20URL:\x20','http://127.0.0.1:3000','[Checkly\x20Reporter]\x20ERROR:\x20JSON\x20report\x20not\x20found\x20at:\x20','testResultId','[Checkly\x20Reporter]\x20ERROR\x20creating\x20report:','assetCollector','entries','https://api.checklyhq.com','PW_REPORTER','GITHUB_REPOSITORY','testSession','Projects','error','map','uploadResults','readFileSync','\x0a🔗\x20View\x20test\x20session:\x20','[Checkly\x20Reporter]\x20Error\x20in\x20onBegin:','catch','752946FBrEvr','138OqbXfC','version','CHECKLY_ACCOUNT_ID','environment','createTestSession','jsonReportPath','en-US','https://github.com/','test-results','staging','\x0a======================================================','startTime','zipPath','1424521ZeFlGK','PASSED','unlinkSync','existsSync','log','status','package.json','GITHUB_EVENT_NAME','options','testResultsDir','testSessionId','warn','CHECKLY_API_KEY','getTime','outputPath','then','passed','1527668StgfpG','CHECKLY_ENV','max','printSummary','📔\x20','collectAssets','config','testCounts','local','[Checkly\x20Reporter]\x20Invalid\x20environment\x20\x22','onEnd','cwd','dryRun','FAILED','https://api-test.checklyhq.com','accountId','Project','zipper','\x0a======================================================\x0a','substring','development','testResults','\x20\x20]','https://api-dev.checklyhq.com','[Checkly\x20Reporter]\x20Global\x20error:','length','12440152FuMZhR','outcome','[Checkly\x20Reporter]\x20Warning:\x20Could\x20not\x20delete\x20ZIP\x20file:\x20','\x20\x20reporter:\x20[\x0a','\x20\x20\x20\x20[\x27json\x27,\x20{\x20outputFile:\x20\x27test-results/playwright-test-report.json\x27\x20}],\x0a','production','GITHUB_ACTOR','apiKey','playwright-tests','basename','createZip','projects','includes','16706byLYiN','🎭\x20Playwright:\x20','[Checkly\x20Reporter]\x20Error\x20in\x20onTestEnd:','GITHUB_REF_NAME','NODE_ENV','link','PluralRules','utf-8','467595GkhTOR','flaky','403779RtXQuk','\x20\x20\x20\x20[\x27@checkly/playwright-reporter\x27]\x0a'];a7_0x20b7=function(){return _0x241991;};return a7_0x20b7();}import{Zipper}from'./zipper.js';import a7_0x14c379 from'./clients/checkly-client.js';import{TestResults}from'./clients';import{readFileSync}from'fs';import{fileURLToPath}from'url';import{dirname,join}from'path';const __filename=fileURLToPath(import.meta['url']),__dirname=dirname(__filename),packageJson=JSON['parse'](readFileSync(join(__dirname,'..',a7_0x7e9f5(0x1c6)),a7_0x7e9f5(0x1ff))),pkgVersion=packageJson[a7_0x7e9f5(0x1b4)],pluralRules=new Intl[(a7_0x7e9f5(0x1fe))](a7_0x7e9f5(0x1b9)),projectForms={'zero':a7_0x7e9f5(0x1e1),'one':'Project','two':a7_0x7e9f5(0x215),'few':a7_0x7e9f5(0x215),'many':a7_0x7e9f5(0x215),'other':a7_0x7e9f5(0x215)};function getApiUrl(_0xb6e8a7){const _0x1280ad=a7_0x7e9f5,_0x28508a={'local':_0x1280ad(0x20b),'development':_0x1280ad(0x1e8),'staging':_0x1280ad(0x1df),'production':_0x1280ad(0x211)};return _0x28508a[_0xb6e8a7];}function getEnvironment(_0x11e3c1){const _0x5ebd59=a7_0x7e9f5,_0x3f32bc=_0x11e3c1?.[_0x5ebd59(0x1b6)],_0x501e20=process[_0x5ebd59(0x208)][_0x5ebd59(0x1d2)],_0x17e7ac=_0x3f32bc||_0x501e20||_0x5ebd59(0x1f0),_0x3c0a42=[_0x5ebd59(0x1d9),_0x5ebd59(0x1e5),_0x5ebd59(0x1bc),'production'];if(!_0x3c0a42[_0x5ebd59(0x1f7)](_0x17e7ac))return console[_0x5ebd59(0x1cb)](_0x5ebd59(0x1da)+_0x17e7ac+'\x22,\x20using\x20\x22production\x22'),_0x5ebd59(0x1f0);return _0x17e7ac;}function getDirectoryName(){const _0x39c92a=a7_0x7e9f5,_0xa9f5a=process[_0x39c92a(0x1dc)]();let _0x4b381e=a7_0x5554f1[_0x39c92a(0x1f4)](_0xa9f5a);return(!_0x4b381e||_0x4b381e==='/'||_0x4b381e==='.')&&(_0x4b381e=_0x39c92a(0x1f3)),_0x4b381e=_0x4b381e['replace'](/[<>:"|?*]/g,'-'),_0x4b381e['length']>0xff&&(_0x4b381e=_0x4b381e[_0x39c92a(0x1e4)](0x0,0xff)),_0x4b381e;}export class ChecklyReporter{[a7_0x7e9f5(0x1c8)];[a7_0x7e9f5(0x20f)];['zipper'];[a7_0x7e9f5(0x1e6)];[a7_0x7e9f5(0x214)];[a7_0x7e9f5(0x1be)];[a7_0x7e9f5(0x1d8)]={'passed':0x0,'failed':0x0,'flaky':0x0};constructor(_0x34125a={}){const _0x2a8e7e=a7_0x7e9f5,_0x1c3381=getEnvironment(_0x34125a),_0x238d78=getApiUrl(_0x1c3381),_0x1e6519=process[_0x2a8e7e(0x208)][_0x2a8e7e(0x1cc)]||_0x34125a['apiKey'],_0x275a00=process[_0x2a8e7e(0x208)][_0x2a8e7e(0x1b5)]||_0x34125a[_0x2a8e7e(0x1e0)];this['options']={'accountId':_0x275a00,'apiKey':_0x1e6519,'outputPath':_0x34125a[_0x2a8e7e(0x1ce)]??'checkly-report.zip','jsonReportPath':_0x34125a[_0x2a8e7e(0x1b8)]??'test-results/playwright-test-report.json','testResultsDir':_0x34125a[_0x2a8e7e(0x1c9)]??_0x2a8e7e(0x1bb),'dryRun':_0x34125a[_0x2a8e7e(0x1dd)]??![]},this['assetCollector']=new AssetCollector(this[_0x2a8e7e(0x1c8)]['testResultsDir']),this[_0x2a8e7e(0x1e2)]=new Zipper({'outputPath':this[_0x2a8e7e(0x1c8)][_0x2a8e7e(0x1ce)]});if(!this[_0x2a8e7e(0x1c8)]['dryRun']&&this[_0x2a8e7e(0x1c8)][_0x2a8e7e(0x1f2)]&&this[_0x2a8e7e(0x1c8)][_0x2a8e7e(0x1e0)]){const _0x28dcc9=new a7_0x14c379({'apiKey':this[_0x2a8e7e(0x1c8)]['apiKey'],'accountId':this[_0x2a8e7e(0x1c8)][_0x2a8e7e(0x1e0)],'baseUrl':_0x238d78});this['testResults']=new TestResults(_0x28dcc9['getAxiosInstance']());}}['onBegin'](_0x194ae3,_0x1fb9d4){const _0x19a0bf=a7_0x7e9f5;this['startTime']=new Date();if(!this[_0x19a0bf(0x1e6)])return;try{const _0x1236a5=getDirectoryName(),_0x30bcc7=[{'name':_0x1236a5}],_0x165492=process['env'][_0x19a0bf(0x213)]?_0x19a0bf(0x1ba)+process[_0x19a0bf(0x208)][_0x19a0bf(0x213)]:undefined,_0x42a3ad=_0x165492?{'repoUrl':_0x165492,'commitId':process[_0x19a0bf(0x208)]['GITHUB_SHA'],'branchName':process[_0x19a0bf(0x208)][_0x19a0bf(0x1fb)],'commitOwner':process[_0x19a0bf(0x208)][_0x19a0bf(0x1f1)],'commitMessage':process[_0x19a0bf(0x208)][_0x19a0bf(0x1c7)]}:undefined;this[_0x19a0bf(0x1e6)][_0x19a0bf(0x1b7)]({'name':'Playwright\x20Test\x20Session:\x20'+_0x1236a5,'environment':process['env'][_0x19a0bf(0x1fc)]||'test','repoInfo':_0x42a3ad,'startedAt':this['startTime'][_0x19a0bf(0x1cd)](),'testResults':_0x30bcc7,'provider':_0x19a0bf(0x212)})[_0x19a0bf(0x1cf)](_0x55b144=>{const _0x40908a=_0x19a0bf;this[_0x40908a(0x214)]=_0x55b144,_0x55b144[_0x40908a(0x1fd)]&&console[_0x40908a(0x1c4)](_0x40908a(0x1af)+_0x55b144[_0x40908a(0x1fd)]+'\x0a');})[_0x19a0bf(0x1b1)](_0x1cc7ab=>{const _0x1ae5aa=_0x19a0bf;console[_0x1ae5aa(0x216)]('[Checkly\x20Reporter]\x20Failed\x20to\x20create\x20test\x20session:',_0x1cc7ab[_0x1ae5aa(0x206)]);});}catch(_0x28a0db){console[_0x19a0bf(0x216)](_0x19a0bf(0x1b0),_0x28a0db);}}['onTestEnd'](_0xd41879,_0x2832e6){const _0x13fd9d=a7_0x7e9f5;try{const _0x552a50=_0x2832e6[_0x13fd9d(0x1c5)]===_0x13fd9d(0x1d0)||_0x2832e6['retry']===_0xd41879['retries'];if(!_0x552a50)return;const _0xb16d69=_0xd41879[_0x13fd9d(0x1ec)]()===_0x13fd9d(0x201);if(_0xb16d69)this['testCounts']['flaky']++,this[_0x13fd9d(0x1d8)][_0x13fd9d(0x1d0)]++;else{if(_0x2832e6['status']===_0x13fd9d(0x1d0))this[_0x13fd9d(0x1d8)][_0x13fd9d(0x1d0)]++;else _0x2832e6[_0x13fd9d(0x1c5)]==='failed'&&this[_0x13fd9d(0x1d8)]['failed']++;}}catch(_0xf10d22){console[_0x13fd9d(0x216)](_0x13fd9d(0x1fa),_0xf10d22);}}async[a7_0x7e9f5(0x1db)](){const _0xac405f=a7_0x7e9f5;try{const _0x2d7611=this[_0xac405f(0x1c8)][_0xac405f(0x1b8)];if(!a7_0x23f2cf[_0xac405f(0x1c3)](_0x2d7611)){console[_0xac405f(0x216)](_0xac405f(0x20c)+_0x2d7611),console[_0xac405f(0x216)]('[Checkly\x20Reporter]\x20Make\x20sure\x20to\x20configure\x20the\x20json\x20reporter\x20before\x20the\x20checkly\x20reporter:'),console[_0xac405f(0x216)](_0xac405f(0x1ee)+_0xac405f(0x1ef)+_0xac405f(0x203)+_0xac405f(0x1e7));return;}const _0x1c79b1=a7_0x23f2cf[_0xac405f(0x1ae)](_0x2d7611,_0xac405f(0x1ff)),_0xc134e1=JSON[_0xac405f(0x207)](_0x1c79b1),_0x657615=await this[_0xac405f(0x20f)][_0xac405f(0x1d6)](_0xc134e1),_0x13db98=await this[_0xac405f(0x1e2)][_0xac405f(0x1f5)](_0x2d7611,_0x657615);if(this[_0xac405f(0x1e6)]&&this[_0xac405f(0x214)]){await this['uploadResults'](_0xc134e1,_0x13db98['zipPath'],_0x13db98[_0xac405f(0x210)]);if(!this[_0xac405f(0x1c8)][_0xac405f(0x1dd)])try{a7_0x23f2cf[_0xac405f(0x1c2)](_0x13db98[_0xac405f(0x1bf)]);}catch(_0x1ab282){console['warn'](_0xac405f(0x1ed)+_0x1ab282);}}this[_0xac405f(0x1e6)]&&this[_0xac405f(0x214)]?.[_0xac405f(0x1fd)]&&this[_0xac405f(0x1d4)](_0xc134e1,this['testSession']);}catch(_0x5f402e){console[_0xac405f(0x216)](_0xac405f(0x20e),_0x5f402e);}}[a7_0x7e9f5(0x1d4)](_0x2b4de5,_0x2b075e){const _0x31009d=a7_0x7e9f5,_0x550f25=pluralRules[_0x31009d(0x209)](_0x2b4de5[_0x31009d(0x1d7)][_0x31009d(0x1f6)]['length']);console[_0x31009d(0x1c4)](_0x31009d(0x1e3)),console['log'](_0x31009d(0x205)+pkgVersion),console['log'](_0x31009d(0x1f9)+_0x2b4de5[_0x31009d(0x1d7)][_0x31009d(0x1b4)]),console[_0x31009d(0x1c4)](_0x31009d(0x1d5)+projectForms[_0x550f25]+':\x20'+_0x2b4de5['config'][_0x31009d(0x1f6)][_0x31009d(0x217)](({name:_0x19e51d})=>_0x19e51d)['join'](',')),console[_0x31009d(0x1c4)](_0x31009d(0x20a)+_0x2b075e[_0x31009d(0x1fd)]),console[_0x31009d(0x1c4)](_0x31009d(0x1bd));}async[a7_0x7e9f5(0x1ad)](_0x179fbb,_0x135aef,_0x26ed17){const _0x10568b=a7_0x7e9f5;if(!this[_0x10568b(0x1e6)]||!this[_0x10568b(0x214)])return;try{const {failed:_0x4cc5bf,flaky:_0x3e32a3}=this[_0x10568b(0x1d8)],_0x2ac8ca=_0x4cc5bf>0x0?_0x10568b(0x1de):_0x10568b(0x1c1),_0x1bc7a4=_0x4cc5bf===0x0&&_0x3e32a3>0x0,_0x10a435=new Date(),_0x32fc6e=this['startTime']?Math[_0x10568b(0x1d3)](0x0,_0x10a435[_0x10568b(0x1cd)]()-this['startTime'][_0x10568b(0x1cd)]()):0x0,_0x5c6382=a7_0x23f2cf[_0x10568b(0x1ae)](_0x135aef),_0x4eabb4=_0x5c6382[_0x10568b(0x1ea)],_0x44686b=_0x5c6382['toString']('base64');if(this[_0x10568b(0x214)][_0x10568b(0x1e6)][_0x10568b(0x1ea)]>0x0){const _0x1091d7=this[_0x10568b(0x214)][_0x10568b(0x1e6)][0x0];await this[_0x10568b(0x1e6)]['updateTestResult'](this[_0x10568b(0x214)][_0x10568b(0x1ca)],_0x1091d7[_0x10568b(0x20d)],{'status':_0x2ac8ca,'isDegraded':_0x1bc7a4,'startedAt':this[_0x10568b(0x1be)]?.['toISOString'](),'stoppedAt':_0x10a435[_0x10568b(0x204)](),'responseTime':_0x32fc6e,'assets':{'assetsZip':_0x44686b,'entries':_0x26ed17},'metadata':{'usageData':{'s3PostTotalBytes':_0x4eabb4}}});}}catch(_0xb1d22){const _0xcbd247=_0xb1d22 instanceof Error?_0xb1d22['message']:String(_0xb1d22);console[_0x10568b(0x216)]('[Checkly\x20Reporter]\x20Failed\x20to\x20upload\x20results:',_0xcbd247);}}['onError'](_0xd30b7){const _0x4a88a4=a7_0x7e9f5;console[_0x4a88a4(0x216)](_0x4a88a4(0x1e9),_0xd30b7);}}
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);}}
package/dist/zipper.js CHANGED
@@ -1 +1 @@
1
- const a9_0x51a44b=a9_0xd24b;(function(_0x18013b,_0x555a41){const _0x39d4ad=a9_0xd24b,_0x105fac=_0x18013b();while(!![]){try{const _0x446f77=-parseInt(_0x39d4ad(0xc2))/0x1*(-parseInt(_0x39d4ad(0xda))/0x2)+-parseInt(_0x39d4ad(0xc4))/0x3+parseInt(_0x39d4ad(0xbf))/0x4+-parseInt(_0x39d4ad(0xdc))/0x5*(parseInt(_0x39d4ad(0xe0))/0x6)+parseInt(_0x39d4ad(0xca))/0x7+-parseInt(_0x39d4ad(0xdb))/0x8+-parseInt(_0x39d4ad(0xd0))/0x9;if(_0x446f77===_0x555a41)break;else _0x105fac['push'](_0x105fac['shift']());}catch(_0x1fef55){_0x105fac['push'](_0x105fac['shift']());}}}(a9_0x2769,0x4396e));import*as a9_0x32ece0 from'fs';function a9_0x2769(){const _0x22ba60=['join','.json','now','[Checkly\x20Reporter]\x20Could\x20not\x20normalize\x20attachment\x20path:\x20','createZip','utf-8','existsSync','stringify','parse','346aGuAxz','109528wvkMDW','121320eXZTNo','push','Report\x20file\x20not\x20found:\x20','error','6uLwkyR','createWriteStream','object','file','replace','writeFileSync','readFileSync','warn','string','Asset\x20file\x20not\x20found:\x20','_offsets','playwright-test-report-','values','indexOf','1270856sTYwva','length','name','1761dXsQTn','transformJsonReport','73161SYEEQL','finalize','csize','normalizeAttachmentPath','contents','outputPath','1285970yqNnMp','path','sourcePath','output/playwright-test-report.json','transformAttachmentPaths','attachments','4202001kmJdeR'];a9_0x2769=function(){return _0x22ba60;};return a9_0x2769();}function a9_0xd24b(_0x1d7066,_0x4d0b48){const _0x276948=a9_0x2769();return a9_0xd24b=function(_0xd24bdb,_0x227a95){_0xd24bdb=_0xd24bdb-0xb6;let _0x263fe5=_0x276948[_0xd24bdb];return _0x263fe5;},a9_0xd24b(_0x1d7066,_0x4d0b48);}import*as a9_0x1cb30c from'path';import*as a9_0x55b437 from'os';import{ZipArchive}from'archiver';export class Zipper{[a9_0x51a44b(0xc9)];constructor(_0x2edfae){const _0x5e9a56=a9_0x51a44b;this[_0x5e9a56(0xc9)]=_0x2edfae[_0x5e9a56(0xc9)];}async[a9_0x51a44b(0xd5)](_0x2cab90,_0x2ae7e5){const _0x4173ba=[];return new Promise((_0x373b41,_0xb4af17)=>{const _0x480e0b=a9_0xd24b;try{const _0x195872=a9_0x32ece0[_0x480e0b(0xe1)](this[_0x480e0b(0xc9)]),_0x4c5d98=new ZipArchive({'zlib':{'level':0x0}});_0x4c5d98['on']('entry',_0x7ee162=>{const _0x50008e=_0x480e0b,_0x444459=_0x7ee162[_0x50008e(0xc1)][_0x50008e(0xe4)](/\\/g,'/'),_0x3ccbde=_0x7ee162['_offsets']?.[_0x50008e(0xc8)]??0x0,_0x583899=_0x7ee162[_0x50008e(0xbb)]?.[_0x50008e(0xc8)]+(_0x7ee162[_0x50008e(0xc6)]??0x0)-0x1;_0x4173ba[_0x50008e(0xdd)]({'name':_0x444459,'start':_0x3ccbde,'end':_0x583899});}),_0x195872['on']('close',()=>{const _0x2d3ae6=_0x480e0b,_0x20c20a=_0x4c5d98['pointer']();_0x373b41({'zipPath':this[_0x2d3ae6(0xc9)],'size':_0x20c20a,'entryCount':_0x4173ba[_0x2d3ae6(0xc0)],'entries':_0x4173ba});}),_0x4c5d98['on'](_0x480e0b(0xdf),_0x38f253=>{_0xb4af17(_0x38f253);}),_0x195872['on']('error',_0x126edd=>{_0xb4af17(_0x126edd);}),_0x4c5d98['pipe'](_0x195872);if(!a9_0x32ece0[_0x480e0b(0xd7)](_0x2cab90)){_0xb4af17(new Error(_0x480e0b(0xde)+_0x2cab90));return;}const _0x3204ac=this[_0x480e0b(0xc3)](_0x2cab90);_0x4c5d98[_0x480e0b(0xe3)](_0x3204ac,{'name':_0x480e0b(0xcd)});for(const _0x18f1e9 of _0x2ae7e5){if(!a9_0x32ece0[_0x480e0b(0xd7)](_0x18f1e9[_0x480e0b(0xcc)])){_0xb4af17(new Error(_0x480e0b(0xba)+_0x18f1e9[_0x480e0b(0xcc)]));return;}_0x4c5d98[_0x480e0b(0xe3)](_0x18f1e9[_0x480e0b(0xcc)],{'name':_0x18f1e9['archivePath']});}_0x4c5d98[_0x480e0b(0xc5)]();}catch(_0x1b19d7){_0xb4af17(_0x1b19d7);}});}[a9_0x51a44b(0xc3)](_0x1ae25d){const _0x5caec8=a9_0x51a44b,_0x1fcff6=a9_0x32ece0[_0x5caec8(0xb7)](_0x1ae25d,_0x5caec8(0xd6)),_0x16e125=JSON[_0x5caec8(0xd9)](_0x1fcff6);this[_0x5caec8(0xce)](_0x16e125);const _0xd91273=a9_0x1cb30c[_0x5caec8(0xd1)](a9_0x55b437['tmpdir'](),_0x5caec8(0xbc)+Date[_0x5caec8(0xd3)]()+_0x5caec8(0xd2));return a9_0x32ece0[_0x5caec8(0xb6)](_0xd91273,JSON[_0x5caec8(0xd8)](_0x16e125,null,0x2)),_0xd91273;}[a9_0x51a44b(0xce)](_0x357d25){const _0x3a4b7=a9_0x51a44b;if(typeof _0x357d25!==_0x3a4b7(0xe2)||_0x357d25===null)return;if(Array['isArray'](_0x357d25)){_0x357d25['forEach'](_0x5dea1f=>this[_0x3a4b7(0xce)](_0x5dea1f));return;}_0x357d25[_0x3a4b7(0xcf)]&&Array['isArray'](_0x357d25[_0x3a4b7(0xcf)])&&_0x357d25[_0x3a4b7(0xcf)]['forEach'](_0x320a6f=>{const _0x4b9a66=_0x3a4b7;_0x320a6f[_0x4b9a66(0xcb)]&&typeof _0x320a6f[_0x4b9a66(0xcb)]===_0x4b9a66(0xb9)&&(_0x320a6f['path']=this[_0x4b9a66(0xc7)](_0x320a6f[_0x4b9a66(0xcb)]));}),Object[_0x3a4b7(0xbd)](_0x357d25)['forEach'](_0x3ee450=>this['transformAttachmentPaths'](_0x3ee450));}[a9_0x51a44b(0xc7)](_0x3bce82){const _0x3b1023=a9_0x51a44b,_0x46e36c=_0x3bce82[_0x3b1023(0xbe)]('test-results');if(_0x46e36c!==-0x1)return _0x3bce82['substring'](_0x46e36c)['replace'](/\\/g,'/');return console[_0x3b1023(0xb8)](_0x3b1023(0xd4)+_0x3bce82),_0x3bce82;}}
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;}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@checkly/playwright-reporter",
3
- "version": "0.0.5-alpha",
3
+ "version": "0.0.6-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",