browserstack-node-sdk 1.2.4 → 1.2.7

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/src/index.js CHANGED
@@ -1 +1 @@
1
- const a26_0x264d43=a26_0x11c8;(function(_0x2d741f,_0x48ed1b){const _0x237c84=a26_0x11c8,_0x39ff18=_0x2d741f();while(!![]){try{const _0xf320f2=-parseInt(_0x237c84(0x1f2))/0x1+-parseInt(_0x237c84(0x220))/0x2+parseInt(_0x237c84(0x20f))/0x3+-parseInt(_0x237c84(0x1fe))/0x4+-parseInt(_0x237c84(0x1f8))/0x5*(-parseInt(_0x237c84(0x200))/0x6)+parseInt(_0x237c84(0x1fd))/0x7+parseInt(_0x237c84(0x20c))/0x8;if(_0xf320f2===_0x48ed1b)break;else _0x39ff18['push'](_0x39ff18['shift']());}catch(_0x82b6e7){_0x39ff18['push'](_0x39ff18['shift']());}}}(a26_0x19d5,0xb46b3));function a26_0x11c8(_0x3bdf3e,_0x59bf0f){const _0x19d554=a26_0x19d5();return a26_0x11c8=function(_0x11c850,_0x17bd73){_0x11c850=_0x11c850-0x1d3;let _0x2bad10=_0x19d554[_0x11c850];return _0x2bad10;},a26_0x11c8(_0x3bdf3e,_0x59bf0f);}const logger=require(a26_0x264d43(0x202))[a26_0x264d43(0x212)];helper=require('./helpers/helper'),{default:BrowserStackSetup}=require(a26_0x264d43(0x1d6)),constants=require('./bin/utils/constants');const modify=()=>{const _0x4c7252=a26_0x264d43,_0xfd4df5={};_0xfd4df5[_0x4c7252(0x1df)]='accessKey\x20not\x20defined',_0xfd4df5['CGOTR']=_0x4c7252(0x20b),_0xfd4df5['BopSO']=function(_0x2d4d0c,_0x54a5ca){return _0x2d4d0c!==_0x54a5ca;},_0xfd4df5[_0x4c7252(0x1f3)]=_0x4c7252(0x210),_0xfd4df5[_0x4c7252(0x1e7)]=_0x4c7252(0x1e5),_0xfd4df5[_0x4c7252(0x20e)]=_0x4c7252(0x1d7),_0xfd4df5[_0x4c7252(0x201)]=_0x4c7252(0x1f1),_0xfd4df5['FEYdT']='ZEGAM',_0xfd4df5[_0x4c7252(0x1f5)]=function(_0x22e004,_0x58d50c){return _0x22e004!==_0x58d50c;},_0xfd4df5[_0x4c7252(0x1d3)]='USiQD',_0xfd4df5[_0x4c7252(0x1ff)]=_0x4c7252(0x217),_0xfd4df5[_0x4c7252(0x205)]=function(_0x31db10,_0x201b43){return _0x31db10===_0x201b43;},_0xfd4df5[_0x4c7252(0x21f)]=_0x4c7252(0x1d9),_0xfd4df5[_0x4c7252(0x1e2)]=_0x4c7252(0x214),_0xfd4df5[_0x4c7252(0x1f6)]=function(_0x9561f8,_0x3c88cb){return _0x9561f8!==_0x3c88cb;},_0xfd4df5['vkzTu']=_0x4c7252(0x218),_0xfd4df5[_0x4c7252(0x1e6)]=_0x4c7252(0x1d4),_0xfd4df5[_0x4c7252(0x1d8)]=_0x4c7252(0x1eb),_0xfd4df5[_0x4c7252(0x1d5)]='0|4|1|2|3',_0xfd4df5[_0x4c7252(0x1ea)]='Running\x20your\x20test\x20suite\x20on\x20BrowserStack',_0xfd4df5[_0x4c7252(0x1e4)]=_0x4c7252(0x1ef),_0xfd4df5[_0x4c7252(0x1e8)]=_0x4c7252(0x219),_0xfd4df5[_0x4c7252(0x21c)]=_0x4c7252(0x1ee),_0xfd4df5[_0x4c7252(0x1dd)]=_0x4c7252(0x1dc);const _0x1e6ecb=_0xfd4df5,_0x232425=new BrowserStackSetup(),_0x557614=_0x232425[_0x4c7252(0x21e)];if(_0x557614['error'])_0x1e6ecb[_0x4c7252(0x205)](_0x1e6ecb['IWuRi'],_0x1e6ecb['HcPmp'])?_0x4d890e['warn'](_0x1e6ecb[_0x4c7252(0x1df)]):logger[_0x4c7252(0x1fa)](_0x1e6ecb['rdlVs']);else{helper['setLogLevel'](_0x557614),logger[_0x4c7252(0x211)](_0x1e6ecb[_0x4c7252(0x21c)]),logger[_0x4c7252(0x215)](_0x1e6ecb['bRZEu']);const _0x4ae8e4=helper[_0x4c7252(0x1e9)]();class _0x50a973 extends _0x4ae8e4[_0x4c7252(0x1e1)]{['setServer'](_0x49258d){const _0x25f0e9=_0x4c7252,_0xd2fd61={};_0xd2fd61[_0x25f0e9(0x204)]=_0x1e6ecb[_0x25f0e9(0x1da)];const _0x1e05d9=_0xd2fd61;if(_0x1e6ecb[_0x25f0e9(0x1db)](_0x1e6ecb[_0x25f0e9(0x1f3)],_0x1e6ecb[_0x25f0e9(0x1f3)]))this[_0x25f0e9(0x216)]=new _0xd5891d['Capabilities'](_0x523e3e[_0x25f0e9(0x20a)](_0xe30e6b,_0x1e05d9[_0x25f0e9(0x204)],0x0));else return this[_0x25f0e9(0x1fb)]=constants['hubUrl'],logger[_0x25f0e9(0x215)](_0x25f0e9(0x1ec)+this[_0x25f0e9(0x1fb)]),this;}['setCapabilities'](){const _0x3739f2=_0x4c7252,_0xf6646a={};_0xf6646a[_0x3739f2(0x21b)]=_0x1e6ecb[_0x3739f2(0x20e)];const _0x3d1d8b=_0xf6646a;if(_0x1e6ecb[_0x3739f2(0x1db)](_0x1e6ecb[_0x3739f2(0x201)],_0x1e6ecb['FEYdT'])){let _0x137107=helper[_0x3739f2(0x209)](_0x557614),_0x451987=helper[_0x3739f2(0x203)](_0x557614),_0x106bc1=helper[_0x3739f2(0x1ed)](_0x557614);helper[_0x3739f2(0x1e0)](_0x451987)&&(_0x1e6ecb[_0x3739f2(0x1f5)](_0x1e6ecb[_0x3739f2(0x1d3)],_0x1e6ecb[_0x3739f2(0x1ff)])?logger['warn'](_0x1e6ecb[_0x3739f2(0x1e7)]):_0x324283[_0x3739f2(0x1f9)](_0x1e6ecb[_0x3739f2(0x1e7)]));helper[_0x3739f2(0x1e0)](_0x106bc1)&&(_0x1e6ecb[_0x3739f2(0x205)](_0x1e6ecb[_0x3739f2(0x21f)],_0x1e6ecb[_0x3739f2(0x21f)])?logger['warn'](_0x1e6ecb[_0x3739f2(0x1df)]):this[_0x3739f2(0x216)]=new _0x488dbb[(_0x3739f2(0x1f4))](_0x35492d[_0x3739f2(0x21a)](_0x548ff3,_0x1e6ecb[_0x3739f2(0x1da)],0x0)));logger[_0x3739f2(0x215)](_0x1e6ecb[_0x3739f2(0x1e2)]);if(_0x137107)_0x1e6ecb[_0x3739f2(0x1f6)](_0x1e6ecb[_0x3739f2(0x213)],_0x1e6ecb[_0x3739f2(0x213)])?_0x5b9726[_0x3739f2(0x1fa)](_0x3d1d8b[_0x3739f2(0x21b)]):this['capabilities_']=new _0x4ae8e4[(_0x3739f2(0x1f4))](helper[_0x3739f2(0x20a)](_0x557614,_0x1e6ecb[_0x3739f2(0x1da)],0x0));else{if(_0x1e6ecb['BopSO'](_0x1e6ecb[_0x3739f2(0x1e6)],_0x1e6ecb[_0x3739f2(0x1d8)]))this[_0x3739f2(0x216)]=new _0x4ae8e4[(_0x3739f2(0x1f4))](helper[_0x3739f2(0x21a)](_0x557614,_0x1e6ecb[_0x3739f2(0x1da)],0x0));else return this['url_']=_0x1c471f['hubUrl'],_0x3f940a['debug'](_0x3739f2(0x1ec)+this['url_']),this;}return this;}else this[_0x3739f2(0x20d)]=_0x5c9f22[_0x3739f2(0x208)][_0x3739f2(0x1f7)],_0x6cdf4['debug'](_0x3739f2(0x207)+this[_0x3739f2(0x20d)]);}[_0x4c7252(0x21d)](){const _0x2a4330=_0x4c7252,_0x45f290=_0x1e6ecb[_0x2a4330(0x1d5)][_0x2a4330(0x1de)]('|');let _0x28ae57=0x0;while(!![]){switch(_0x45f290[_0x28ae57++]){case'0':this[_0x2a4330(0x206)]();continue;case'1':_0x557614[_0x2a4330(0x208)][_0x2a4330(0x1f7)]&&(this[_0x2a4330(0x20d)]=_0x557614[_0x2a4330(0x208)][_0x2a4330(0x1f7)],logger['debug'](_0x2a4330(0x207)+this[_0x2a4330(0x20d)]));continue;case'2':logger[_0x2a4330(0x215)](_0x1e6ecb[_0x2a4330(0x1ea)]);continue;case'3':return super[_0x2a4330(0x21d)]();case'4':this[_0x2a4330(0x1e3)]();continue;}break;}}}_0x4ae8e4['Builder']=_0x50a973;}};module[a26_0x264d43(0x1fc)][a26_0x264d43(0x1f0)]=modify;function a26_0x19d5(){const _0x23b4d5=['706200XyAUTv','warn','error','url_','exports','3124723BbiIPh','5593664WUMSOh','DkqfT','54JiBucW','gNawL','./helpers/logger','getUserName','INzdN','nvLac','setServer','Proxy\x20set\x20to\x20','proxySettings','useW3C','modifyBrowserStackW3CCaps','vanilla','14994024wMCfsB','proxy_','rdlVs','175185XUlDKE','oOpDi','info','winstonLogger','vkzTu','Setting\x20Browserstack\x20capabilities','debug','capabilities_','rDCIs','YeGKW','DIHzR','modifyBrowserStackCaps','kzHRE','GGjlg','build','config','DkgPF','1743820vyeVCi','wBUKC','FQEaN','mXRIL','./helpers/BrowserStackSetup','Error\x20occured\x20while\x20reading\x20configs','DaWwj','WEZho','CGOTR','BopSO','Modifying\x20webdriver\x20builder','bRZEu','split','ibpTY','isUndefined','Builder','BIXzU','setCapabilities','IWuRi','userName\x20not\x20defined','DOSgf','YRESO','HcPmp','requireSeleniumWebdriver','TQmqV','OFFgE','Hub\x20url\x20set\x20to\x20','getAccessKey','Configuring\x20to\x20run\x20tests\x20on\x20BrowserStack','TzUUJ','browserstackAgent','UHIJz','640876tgsDcF','kAoAS','Capabilities','CEcmW','PTIPy','proxyUrl'];a26_0x19d5=function(){return _0x23b4d5;};return a26_0x19d5();}
1
+ function a27_0x41d0(){const _0x172756=['nlxbC','info','winstonLogger','1870glrDCp','378wNkyTI','quIZC','ZaKwN','ellvs','SYMJB','sGosA','SNalG','435KtDtwr','setCapabilities','ZXFmo','url_','capability','merge','EIPPo','QlRjM','requireSeleniumWebdriver','UEuMG','OJMaj','EDLln','proxySettings','Proxy\x20set\x20to\x20','Sspwi','Modifying\x20webdriver\x20builder','set','dzGjP','IfhzS','FDvUz','jwXJr','DydLW','Hub\x20url\x20set\x20to\x20','keys','190450CZABMK','forEach','TjElc','4JAdZAN','./helpers/helper','object','buEKL','NQJcj','Running\x20your\x20test\x20suite\x20on\x20BrowserStack','AunRM','Configuring\x20to\x20run\x20tests\x20on\x20BrowserStack','GgGmL','eAStt','debug','EAQRP','aYSMy','0|1|4|3|2','1530496rCWxXE','ajJih','rEDsN','328096sEbMdd','build','bAYNy','nHYbB','AiHma','YWVSC','OgvBf','GBcBn','MIdJe','HZuSZ','proxy_','setServer','capabilities_','2847465Opmjep','QsEyh','get','proxyUrl','14GTWGby','./helpers/logger','HAmmq','hubUrl','5728764aAOqWl','288816rcWkWh','Capabilities'];a27_0x41d0=function(){return _0x172756;};return a27_0x41d0();}const a27_0x5419f2=a27_0x38bf;(function(_0x3e622c,_0x48407c){const _0x5759f9=a27_0x38bf,_0x1994cc=_0x3e622c();while(!![]){try{const _0x5eceaa=-parseInt(_0x5759f9(0xf6))/0x1+-parseInt(_0x5759f9(0xfb))/0x2*(-parseInt(_0x5759f9(0x103))/0x3)+parseInt(_0x5759f9(0x11e))/0x4*(parseInt(_0x5759f9(0x13c))/0x5)+parseInt(_0x5759f9(0xf5))/0x6+parseInt(_0x5759f9(0xf1))/0x7*(parseInt(_0x5759f9(0x12f))/0x8)+-parseInt(_0x5759f9(0xfc))/0x9*(parseInt(_0x5759f9(0x11b))/0xa)+-parseInt(_0x5759f9(0x12c))/0xb;if(_0x5eceaa===_0x48407c)break;else _0x1994cc['push'](_0x1994cc['shift']());}catch(_0x319a50){_0x1994cc['push'](_0x1994cc['shift']());}}}(a27_0x41d0,0x7d7fc));const logger=require(a27_0x5419f2(0xf2))[a27_0x5419f2(0xfa)];function a27_0x38bf(_0x3ca14a,_0x3fed68){const _0x41d094=a27_0x41d0();return a27_0x38bf=function(_0x38bfa5,_0x5c07e4){_0x38bfa5=_0x38bfa5-0xee;let _0x251566=_0x41d094[_0x38bfa5];return _0x251566;},a27_0x38bf(_0x3ca14a,_0x3fed68);}helper=require(a27_0x5419f2(0x11f)),constants=require('./bin/utils/constants');const modify=_0x46b5fe=>{const _0x9014a8=a27_0x5419f2,_0x43ca87={};_0x43ca87[_0x9014a8(0x126)]=function(_0x598d78,_0x333b6c){return _0x598d78===_0x333b6c;},_0x43ca87['bAYNy']=_0x9014a8(0xfe),_0x43ca87[_0x9014a8(0x10a)]=_0x9014a8(0x120),_0x43ca87[_0x9014a8(0x12e)]=function(_0x2ebd2f,_0x369933){return _0x2ebd2f===_0x369933;},_0x43ca87[_0x9014a8(0x105)]=_0x9014a8(0x12a),_0x43ca87[_0x9014a8(0x127)]=_0x9014a8(0x10e),_0x43ca87[_0x9014a8(0x138)]=function(_0x492ab6,_0x351903){return _0x492ab6===_0x351903;},_0x43ca87[_0x9014a8(0x132)]=_0x9014a8(0xfd),_0x43ca87[_0x9014a8(0x111)]=function(_0x224748,_0x55a676){return _0x224748!==_0x55a676;},_0x43ca87[_0x9014a8(0x129)]=_0x9014a8(0x102),_0x43ca87[_0x9014a8(0x134)]=_0x9014a8(0x137),_0x43ca87[_0x9014a8(0x101)]=function(_0x792961,_0x13195f){return _0x792961===_0x13195f;},_0x43ca87[_0x9014a8(0x117)]=function(_0x183501,_0x411f12){return _0x183501===_0x411f12;},_0x43ca87[_0x9014a8(0x135)]=_0x9014a8(0x100),_0x43ca87['OqZSV']='Vylzx',_0x43ca87['SrCOD']='Setting\x20Browserstack\x20capabilities',_0x43ca87['UEuMG']=_0x9014a8(0xee),_0x43ca87['HAmmq']=_0x9014a8(0x11d),_0x43ca87[_0x9014a8(0xf8)]='EHaCS',_0x43ca87[_0x9014a8(0x12d)]=_0x9014a8(0x12b),_0x43ca87['JueGt']=_0x9014a8(0x123),_0x43ca87[_0x9014a8(0x133)]=_0x9014a8(0x125),_0x43ca87['buEKL']=_0x9014a8(0x112);const _0x13c439=_0x43ca87;logger[_0x9014a8(0xf9)](_0x13c439[_0x9014a8(0x133)]),logger[_0x9014a8(0x128)](_0x13c439[_0x9014a8(0x121)]);const _0x594eeb=helper[_0x9014a8(0x10b)]();class _0x462965 extends _0x594eeb['Builder']{[_0x9014a8(0x13a)](){const _0x45047a=_0x9014a8;return _0x13c439[_0x45047a(0x126)](_0x13c439[_0x45047a(0x131)],_0x13c439['bAYNy'])?(this[_0x45047a(0x106)]=constants[_0x45047a(0xf4)],logger[_0x45047a(0x128)]('Hub\x20url\x20set\x20to\x20'+this[_0x45047a(0x106)]),this):(this[_0x45047a(0x106)]=_0x111eba[_0x45047a(0xf4)],_0x455dca[_0x45047a(0x128)](_0x45047a(0x119)+this[_0x45047a(0x106)]),this);}[_0x9014a8(0x104)](){const _0x3162fb=_0x9014a8,_0x84f07f={'fngkY':function(_0x5061a4,_0x58dc84){const _0x502997=a27_0x38bf;return _0x13c439[_0x502997(0x126)](_0x5061a4,_0x58dc84);},'EIPPo':_0x13c439['QlRjM'],'TnfIl':function(_0x606604,_0x53d306){const _0x3c0f12=a27_0x38bf;return _0x13c439[_0x3c0f12(0x12e)](_0x606604,_0x53d306);},'FDvUz':_0x13c439[_0x3162fb(0x105)],'DydLW':_0x13c439[_0x3162fb(0x127)],'AunRM':function(_0x268d67,_0x2938b4){return _0x13c439['HZuSZ'](_0x268d67,_0x2938b4);},'OJMaj':function(_0x56c4de,_0x494077){const _0x3ff805=_0x3162fb;return _0x13c439[_0x3ff805(0x138)](_0x56c4de,_0x494077);},'NQJcj':_0x13c439[_0x3162fb(0x132)],'GBcBn':function(_0x3b2188,_0x4ab1de){const _0x3fdcce=_0x3162fb;return _0x13c439[_0x3fdcce(0x111)](_0x3b2188,_0x4ab1de);},'IfhzS':_0x13c439[_0x3162fb(0x129)],'ellvs':_0x13c439['YWVSC'],'Ysnuz':function(_0x5ddd20,_0x857a50){const _0x1c83d4=_0x3162fb;return _0x13c439[_0x1c83d4(0x101)](_0x5ddd20,_0x857a50);}};if(_0x13c439[_0x3162fb(0x117)](_0x13c439[_0x3162fb(0x135)],_0x13c439['OqZSV']))this['capabilities_']=new _0x15d3b0[(_0x3162fb(0xf7))](_0x3517cb[_0x3162fb(0x107)]);else{logger[_0x3162fb(0x128)](_0x13c439['SrCOD']);if(_0x46b5fe[_0x3162fb(0x108)])_0x13c439[_0x3162fb(0x111)](_0x13c439[_0x3162fb(0x10c)],_0x13c439[_0x3162fb(0xf3)])?Object[_0x3162fb(0x11a)](_0x46b5fe['capability'])[_0x3162fb(0x11c)](_0x184191=>{const _0x55ffb1=_0x3162fb;if(_0x84f07f['TnfIl'](_0x84f07f[_0x55ffb1(0x116)],_0x84f07f[_0x55ffb1(0x118)])){let _0x3a392f=this[_0x55ffb1(0x13b)][_0x55ffb1(0xef)](_0x402d0c);if(_0x84f07f['fngkY'](typeof _0x3a392f,_0x84f07f[_0x55ffb1(0x109)])){const _0x107de6={..._0x3a392f,..._0x58bda9[_0x55ffb1(0x107)][_0x2e4050]};this[_0x55ffb1(0x13b)][_0x55ffb1(0x113)](_0xf85d6b,_0x107de6);}else this[_0x55ffb1(0x13b)][_0x55ffb1(0x113)](_0x4edd64,_0x261828[_0x55ffb1(0x107)][_0x4f173f]);}else{let _0x319007=this[_0x55ffb1(0x13b)]['get'](_0x184191);if(_0x84f07f[_0x55ffb1(0x124)](typeof _0x319007,_0x84f07f[_0x55ffb1(0x109)])){if(_0x84f07f[_0x55ffb1(0x10d)](_0x84f07f[_0x55ffb1(0x122)],_0x84f07f[_0x55ffb1(0x122)]))this[_0x55ffb1(0x13b)][_0x55ffb1(0x113)](_0x184191,{..._0x319007,..._0x46b5fe['capability'][_0x184191]});else{const _0xf027a6={..._0xa0905d,..._0x3b22bd[_0x55ffb1(0x107)][_0x2039c0]};this[_0x55ffb1(0x13b)][_0x55ffb1(0x113)](_0x10e1c5,_0xf027a6);}}else _0x84f07f[_0x55ffb1(0x136)](_0x84f07f[_0x55ffb1(0x115)],_0x84f07f[_0x55ffb1(0xff)])?this['capabilities_'][_0x55ffb1(0x113)](_0x184191,_0x46b5fe[_0x55ffb1(0x107)][_0x184191]):(this[_0x55ffb1(0x139)]=_0x228eb8[_0x55ffb1(0x10f)][_0x55ffb1(0xf0)],_0x2c8a1c['debug'](_0x55ffb1(0x110)+this[_0x55ffb1(0x139)]));}}):this['capabilities_'][_0x3162fb(0x113)](_0x14484c,_0x4a8c2f['capability'][_0x16c3cc]);else{if(_0x13c439[_0x3162fb(0x12e)](_0x13c439[_0x3162fb(0xf8)],_0x13c439[_0x3162fb(0xf8)]))this[_0x3162fb(0x13b)]=new _0x594eeb[(_0x3162fb(0xf7))](_0x46b5fe['capability']);else{const _0x2d5791={'zqStv':function(_0xdb44f,_0x55094b){return _0x84f07f['Ysnuz'](_0xdb44f,_0x55094b);},'dzGjP':_0x84f07f[_0x3162fb(0x109)]};_0x509402[_0x3162fb(0x11a)](_0x3b9436[_0x3162fb(0x107)])[_0x3162fb(0x11c)](_0x323ffa=>{const _0x1fc577=_0x3162fb;let _0xfcafbd=this['capabilities_'][_0x1fc577(0xef)](_0x323ffa);_0x2d5791['zqStv'](typeof _0xfcafbd,_0x2d5791[_0x1fc577(0x114)])?this[_0x1fc577(0x13b)][_0x1fc577(0x113)](_0x323ffa,{..._0xfcafbd,..._0x310a22[_0x1fc577(0x107)][_0x323ffa]}):this[_0x1fc577(0x13b)][_0x1fc577(0x113)](_0x323ffa,_0x55d8c7[_0x1fc577(0x107)][_0x323ffa]);});}}return this;}}[_0x9014a8(0x130)](){const _0x296d1d=_0x9014a8,_0x1acffb=_0x13c439[_0x296d1d(0x12d)]['split']('|');let _0x1fda25=0x0;while(!![]){switch(_0x1acffb[_0x1fda25++]){case'0':this[_0x296d1d(0x13a)]();continue;case'1':this[_0x296d1d(0x104)]();continue;case'2':return super[_0x296d1d(0x130)]();case'3':logger[_0x296d1d(0x128)](_0x13c439['JueGt']);continue;case'4':_0x46b5fe['proxySettings'][_0x296d1d(0xf0)]&&(this[_0x296d1d(0x139)]=_0x46b5fe['proxySettings']['proxyUrl'],logger['debug'](_0x296d1d(0x110)+this[_0x296d1d(0x139)]));continue;}break;}}}_0x594eeb['Builder']=_0x462965;};module['exports']['browserstackAgent']=modify;