browserstack-node-sdk 1.65.4 → 1.65.5
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/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jasmine/bstack-reporter/customReporter.js +1 -1
- package/src/bin/jasmine/command.js +1 -1
- package/src/bin/jasmine/test.setup.js +1 -1
- package/src/bin/jasmine/testRunMap.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customSequencer.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test.setup.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/load/index.js +1 -1
- package/src/bin/load/loadErrors.js +1 -1
- package/src/bin/load/loadUtils.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/newman/command.js +1 -1
- package/src/bin/newman/helper.js +1 -1
- package/src/bin/newman/reporter/index.js +1 -1
- package/src/bin/newman/scriptRunner.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/node-generic/client.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/reporterArgs.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/puppeteer/patches.js +1 -1
- package/src/bin/puppeteer/sessionDetails.js +1 -1
- package/src/bin/puppeteer/test.setup.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/testcafe/a11y-runner.js +1 -1
- package/src/bin/testcafe/command.js +1 -1
- package/src/bin/testcafe/reporter/index.js +1 -1
- package/src/bin/testcafe/reporter/tcUtils.js +1 -1
- package/src/bin/testcafe/session-registry.js +1 -1
- package/src/bin/testcafe/stdout-interceptor.js +1 -1
- package/src/bin/testcafe/testcafe-action-patcher.js +1 -1
- package/src/bin/testcafe/w3c-driver.js +1 -1
- package/src/bin/utils/apiUtilityMethods.js +1 -1
- package/src/bin/utils/clientTroubleshootingService.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/utils/playwright-patcher.js +1 -1
- package/src/bin/utils/puppeteer-patcher.js +1 -1
- package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
- package/src/bin/utils/sharedUtils.js +1 -1
- package/src/bin/v2/TestInfo.js +1 -1
- package/src/bin/v2/browserstackCLI.js +1 -1
- package/src/bin/v2/cliUtils.js +1 -1
- package/src/bin/v2/customTagManager.js +1 -1
- package/src/bin/v2/eventDispatcher.js +1 -1
- package/src/bin/v2/framework/automationFramework.js +1 -1
- package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
- package/src/bin/v2/framework/jestTestFramework.js +1 -1
- package/src/bin/v2/framework/newmanTestFramework.js +1 -1
- package/src/bin/v2/framework/nodeGenericTestFramework.js +1 -1
- package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
- package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
- package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
- package/src/bin/v2/framework/testFramework.js +1 -1
- package/src/bin/v2/framework/testcafeAutomationFramework.js +1 -1
- package/src/bin/v2/framework/testcafeTestFramework.js +1 -1
- package/src/bin/v2/grpcClient.js +1 -1
- package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/trackedContext.js +1 -1
- package/src/bin/v2/instances/trackedInstance.js +1 -1
- package/src/bin/v2/modules/accessibilityModule.js +1 -1
- package/src/bin/v2/modules/baseModule.js +1 -1
- package/src/bin/v2/modules/loadTestModule.js +1 -1
- package/src/bin/v2/modules/observabilityModule.js +1 -1
- package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
- package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
- package/src/bin/v2/modules/testcafeDriverModule.js +1 -1
- package/src/bin/v2/modules/testhubModule.js +1 -1
- package/src/bin/v2/sdkErrorHandler.js +1 -1
- package/src/bin/v2/state/automationFrameworkState.js +1 -1
- package/src/bin/v2/state/hookState.js +1 -1
- package/src/bin/v2/state/testFrameworkState.js +1 -1
- package/src/bin/v2/uploadAttachmentsManager.js +1 -1
- package/src/bin/v2/utils/cucumber-utils.js +1 -1
- package/src/bin/v2/utils/jest-utils.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/caCertHelper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/central-scanner/constants.js +1 -1
- package/src/helpers/central-scanner/helpers.js +1 -1
- package/src/helpers/classLogger.js +1 -1
- package/src/helpers/driverInitErrorReporter.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/metadata.js +1 -1
- package/src/helpers/patchHelper.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance/constants.js +1 -1
- package/src/helpers/performance/performance-tester.js +1 -1
- package/src/helpers/playwright-helper.js +1 -1
- package/src/helpers/processHelper.js +1 -1
- package/src/helpers/puppeteer-helper.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/stackFrameUtils.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/test-orchestration/constants.js +1 -1
- package/src/helpers/test-orchestration/failfastManager.js +1 -1
- package/src/helpers/test-orchestration/fileHelper.js +1 -1
- package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
- package/src/helpers/test-orchestration/requestUtils.js +1 -1
- package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
- package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
package/src/helpers/logger.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function a138_0x12fd(_0x40bdb9,_0x10c2c4){const _0x1d4586=a138_0x1d45();return a138_0x12fd=function(_0x12fd6b,_0x556d3d){_0x12fd6b=_0x12fd6b-0x98;let _0x9c3e5=_0x1d4586[_0x12fd6b];return _0x9c3e5;},a138_0x12fd(_0x40bdb9,_0x10c2c4);}const a138_0x5b9a8f=a138_0x12fd;(function(_0x4b5d44,_0x5a8020){const _0x493336=a138_0x12fd,_0x18dc6a=_0x4b5d44();while(!![]){try{const _0x20c690=-parseInt(_0x493336(0xb2))/0x1*(-parseInt(_0x493336(0xc0))/0x2)+-parseInt(_0x493336(0xa6))/0x3+parseInt(_0x493336(0xbe))/0x4*(parseInt(_0x493336(0xdb))/0x5)+parseInt(_0x493336(0xe1))/0x6*(parseInt(_0x493336(0xc4))/0x7)+parseInt(_0x493336(0xe4))/0x8+-parseInt(_0x493336(0xb6))/0x9+parseInt(_0x493336(0xed))/0xa*(parseInt(_0x493336(0xe7))/0xb);if(_0x20c690===_0x5a8020)break;else _0x18dc6a['push'](_0x18dc6a['shift']());}catch(_0x4e9107){_0x18dc6a['push'](_0x18dc6a['shift']());}}}(a138_0x1d45,0xa4f62));const winston=require(a138_0x5b9a8f(0xd4)),path=require(a138_0x5b9a8f(0xd3)),fs=require('fs'),{LOG_FILE_NAME,DEBUG_LOG_FILE_NAME,DEBUG_CLI_LOG_FILE_NAME}=require('../bin/utils/constants'),tempLogDir=a138_0x5b9a8f(0xa4);let redactRegex=null,lastConfigHash='';const logFormat=winston['format'](_0x26328a=>{const _0x326f3e=a138_0x5b9a8f,_0x42e284={};_0x42e284[_0x326f3e(0xd9)]=function(_0x24d23d,_0x39b214){return _0x24d23d!==_0x39b214;},_0x42e284[_0x326f3e(0xbd)]='string',_0x42e284[_0x326f3e(0xbb)]=function(_0x471f6b,_0x10e893){return _0x471f6b+_0x10e893;},_0x42e284[_0x326f3e(0xd6)]=function(_0x18eb3f,_0x5f1d7f){return _0x18eb3f!==_0x5f1d7f;},_0x42e284[_0x326f3e(0xc6)]=function(_0x757a5f,_0x56a14f){return _0x757a5f>_0x56a14f;},_0x42e284[_0x326f3e(0xb0)]=_0x326f3e(0xb8);const _0x458193=_0x42e284;_0x458193['Ocuec'](typeof _0x26328a[_0x326f3e(0xba)],_0x458193[_0x326f3e(0xbd)])&&(_0x26328a[_0x326f3e(0xba)]=JSON['stringify'](_0x26328a[_0x326f3e(0xba)]));const _0x3b5dd3=global[_0x326f3e(0xa8)]&&global[_0x326f3e(0xa8)][_0x326f3e(0xa0)]||'',_0x3b85a2=global['config']&&global[_0x326f3e(0xa8)]['accessKey']||'',_0x1bcadf=_0x458193[_0x326f3e(0xbb)](_0x458193[_0x326f3e(0xbb)](_0x3b5dd3,'|'),_0x3b85a2);if(_0x458193[_0x326f3e(0xd6)](_0x1bcadf,lastConfigHash)){lastConfigHash=_0x1bcadf;const _0x38868d=[_0x3b5dd3,_0x3b85a2][_0x326f3e(0xd1)](Boolean);if(_0x458193[_0x326f3e(0xc6)](_0x38868d['length'],0x0)){const _0x39431e=_0x38868d[_0x326f3e(0xac)](_0x3198cb=>_0x3198cb[_0x326f3e(0xb1)](/[.*+?^${}()|[\]\\]/g,_0x326f3e(0xa2)))[_0x326f3e(0xd2)]('|');redactRegex=new RegExp(_0x39431e,'g');}else redactRegex=null;}return redactRegex&&(_0x26328a[_0x326f3e(0xba)]=_0x26328a['message']['replace'](redactRegex,_0x458193[_0x326f3e(0xb0)])),_0x26328a;}),SENSITIVE_HEADER_REGEX=/authorization|token|cookie|secret|^x-api-key$|accesskey|password/i,maskHeaders=_0x32680d=>{const _0x372459=a138_0x5b9a8f,_0x32c58d={};_0x32c58d['nzqRN']=function(_0x41460b,_0x125435){return _0x41460b!==_0x125435;},_0x32c58d[_0x372459(0xa7)]=_0x372459(0x9a),_0x32c58d[_0x372459(0xce)]='[REDACTED]',_0x32c58d['iUypX']=_0x372459(0xeb);const _0x148eae=_0x32c58d;try{if(!_0x32680d||_0x148eae[_0x372459(0xa5)](typeof _0x32680d,_0x148eae[_0x372459(0xa7)]))return _0x32680d;const _0x2924f3={};for(const _0x28b5dc of Object[_0x372459(0xe6)](_0x32680d)){_0x2924f3[_0x28b5dc]=SENSITIVE_HEADER_REGEX[_0x372459(0xaa)](_0x28b5dc)?_0x148eae[_0x372459(0xce)]:_0x32680d[_0x28b5dc];}return _0x2924f3;}catch{return _0x148eae['iUypX'];}},fetchLogDir=()=>{const _0x262920=a138_0x5b9a8f;if(process[_0x262920(0xda)][_0x262920(0xc1)])return process[_0x262920(0xda)]['BROWSERSTACK_INTERNAL_LOG_DIR'];else!fs[_0x262920(0xc3)](tempLogDir)&&fs[_0x262920(0xa1)](tempLogDir);return tempLogDir;},logDir=fetchLogDir(),getInitialLogLevel=()=>{const _0x400934=a138_0x5b9a8f,_0x46ae5d={};_0x46ae5d[_0x400934(0xe8)]='info';const _0x5eaf00=_0x46ae5d,_0x56cb15=process[_0x400934(0xda)][_0x400934(0xc9)],_0x3079b8=Object[_0x400934(0xe6)](winston[_0x400934(0xa8)]['npm']['levels']);if(_0x56cb15&&_0x3079b8['includes'](_0x56cb15[_0x400934(0xaf)]()))return _0x56cb15[_0x400934(0xaf)]();return _0x5eaf00['lxxAC'];},initialLogLevel=getInitialLogLevel(),a138_0x587870={};a138_0x587870[a138_0x5b9a8f(0xcc)]=a138_0x5b9a8f(0xdc),a138_0x587870[a138_0x5b9a8f(0xa3)]=initialLogLevel;const transports={'loggerConsole':new winston[(a138_0x5b9a8f(0x9d))]['Console'](a138_0x587870),'loggerFile':new winston['transports'][(a138_0x5b9a8f(0xb9))]({'filename':path['join'](logDir,a138_0x5b9a8f(0xd8)),'level':initialLogLevel}),'debugLoggerFile':new winston[(a138_0x5b9a8f(0x9d))]['File']({'filename':path['join'](logDir,a138_0x5b9a8f(0xc8)),'level':'silly'}),'debugCliLoggerFile':new winston['transports'][(a138_0x5b9a8f(0xb9))]({'filename':path['join'](logDir,DEBUG_CLI_LOG_FILE_NAME),'level':'silly'}),'buildLinkTransport':new winston[(a138_0x5b9a8f(0x9d))]['File']({'filename':path[a138_0x5b9a8f(0xd2)](logDir,a138_0x5b9a8f(0xd8)),'level':a138_0x5b9a8f(0xb4)})},automationTransports={};process['env']['BROWSERSTACK_AUTOMATION_LOGS']===a138_0x5b9a8f(0xd7)&&(automationTransports[a138_0x5b9a8f(0x9e)]=new winston[(a138_0x5b9a8f(0x9d))]['File']({'filename':path[a138_0x5b9a8f(0xd2)](logDir,a138_0x5b9a8f(0xd0)),'level':a138_0x5b9a8f(0xb4)}));transports[a138_0x5b9a8f(0x9b)]['on']('error',_0x52cdfc=>{const _0x17bd86=a138_0x5b9a8f,_0x2524a4={};_0x2524a4[_0x17bd86(0xb5)]=function(_0x478443,_0x415723){return _0x478443===_0x415723;},_0x2524a4[_0x17bd86(0xca)]=_0x17bd86(0xbc),_0x2524a4['EmBoM']='EPIPE\x20error\x20occurred\x20in\x20loggerConsole:';const _0x245bed=_0x2524a4;if(_0x245bed[_0x17bd86(0xb5)](_0x52cdfc[_0x17bd86(0xbf)],_0x245bed['AQFUP'])){console[_0x17bd86(0xa4)](_0x245bed[_0x17bd86(0x9c)],_0x52cdfc[_0x17bd86(0xba)]);return;}throw _0x52cdfc;});const a138_0xa9a382={};a138_0xa9a382[a138_0x5b9a8f(0xcb)]='YYYY-MM-DD\x20HH:mm:ss';const a138_0x16e3dc={};a138_0x16e3dc[a138_0x5b9a8f(0xa3)]=!![];const winstonLoggerParams={'format':winston[a138_0x5b9a8f(0xcb)][a138_0x5b9a8f(0xe5)](winston[a138_0x5b9a8f(0xcb)][a138_0x5b9a8f(0xc2)](a138_0xa9a382),winston[a138_0x5b9a8f(0xcb)][a138_0x5b9a8f(0xd5)](a138_0x16e3dc),winston[a138_0x5b9a8f(0xcb)][a138_0x5b9a8f(0xa9)](_0x182a34=>_0x182a34['timestamp']+a138_0x5b9a8f(0xc7)+_0x182a34[a138_0x5b9a8f(0xa3)]+':\x20'+_0x182a34[a138_0x5b9a8f(0xba)])),'transports':[transports[a138_0x5b9a8f(0x9b)]]},a138_0x4c57ac={};a138_0x4c57ac[a138_0x5b9a8f(0xcb)]=a138_0x5b9a8f(0xe0);const a138_0x1876cb={};a138_0x1876cb[a138_0x5b9a8f(0xa3)]=!![];const winstonFileLoggerParams={'format':winston['format']['combine'](winston[a138_0x5b9a8f(0xcb)][a138_0x5b9a8f(0xc2)](a138_0x4c57ac),winston[a138_0x5b9a8f(0xcb)][a138_0x5b9a8f(0xd5)](a138_0x1876cb),winston['format'][a138_0x5b9a8f(0xa9)](_0x5ddf26=>_0x5ddf26[a138_0x5b9a8f(0xa3)]+':\x20'+_0x5ddf26[a138_0x5b9a8f(0xba)])),'transports':[]},a138_0x1d74b0={};a138_0x1d74b0[a138_0x5b9a8f(0xcb)]=a138_0x5b9a8f(0xe0);const a138_0x3b4989={};a138_0x3b4989[a138_0x5b9a8f(0xa3)]=!![];const a138_0x7344f2={};a138_0x7344f2[a138_0x5b9a8f(0xa3)]=a138_0x5b9a8f(0xb4);const BuildLoggerParams={'format':winston[a138_0x5b9a8f(0xcb)][a138_0x5b9a8f(0xe5)](winston[a138_0x5b9a8f(0xcb)][a138_0x5b9a8f(0xc2)](a138_0x1d74b0),winston[a138_0x5b9a8f(0xcb)]['colorize'](a138_0x3b4989),winston[a138_0x5b9a8f(0xcb)][a138_0x5b9a8f(0xa9)](_0x3d270a=>_0x3d270a[a138_0x5b9a8f(0xc2)]+a138_0x5b9a8f(0xc7)+_0x3d270a[a138_0x5b9a8f(0xa3)]+':\x20'+_0x3d270a[a138_0x5b9a8f(0xba)])),'transports':[transports['buildLinkTransport'],new winston[(a138_0x5b9a8f(0x9d))][(a138_0x5b9a8f(0xea))](a138_0x7344f2)]},a138_0x464290={};a138_0x464290[a138_0x5b9a8f(0xe2)]=()=>{},a138_0x464290[a138_0x5b9a8f(0xae)]=()=>{},a138_0x464290['warn']=()=>{},a138_0x464290[a138_0x5b9a8f(0xb3)]=()=>{},a138_0x464290[a138_0x5b9a8f(0xe3)]=()=>{},a138_0x464290[a138_0x5b9a8f(0xb4)]=()=>{},exports['automationLogger']=process['env'][a138_0x5b9a8f(0xad)]==='true'?winston[a138_0x5b9a8f(0xab)]({'format':winston[a138_0x5b9a8f(0xcb)][a138_0x5b9a8f(0xe5)](winston[a138_0x5b9a8f(0xcb)][a138_0x5b9a8f(0xcd)](),winston['format']['timestamp'](),logFormat(),winston['format']['printf'](_0xb46b0d=>_0xb46b0d[a138_0x5b9a8f(0xa3)]+':\x20'+_0xb46b0d['message'])),'transports':[automationTransports[a138_0x5b9a8f(0x9e)]]}):a138_0x464290;const initialize=()=>{const _0x512faf=a138_0x5b9a8f,_0x54d949={};_0x54d949[_0x512faf(0xdf)]=_0x512faf(0xb4);const _0x614168=_0x54d949,_0x539ed5=transports['loggerConsole'][_0x512faf(0xa3)]||initialLogLevel;transports['loggerFile']&&(exports['winstonLogger']['remove'](transports['loggerFile']),exports['fileLogger'][_0x512faf(0x98)](transports[_0x512faf(0xc5)])),transports[_0x512faf(0xe9)]&&(exports[_0x512faf(0xcf)][_0x512faf(0x98)](transports[_0x512faf(0xe9)]),exports[_0x512faf(0xdd)]['remove'](transports[_0x512faf(0xe9)])),transports['loggerFile']=new winston[(_0x512faf(0x9d))]['File']({'filename':path[_0x512faf(0xd2)](exports['logDir'],LOG_FILE_NAME),'level':_0x539ed5}),transports[_0x512faf(0xe9)]=new winston[(_0x512faf(0x9d))][(_0x512faf(0xb9))]({'filename':path[_0x512faf(0xd2)](exports[_0x512faf(0x99)],DEBUG_LOG_FILE_NAME),'level':_0x614168[_0x512faf(0xdf)]}),transports[_0x512faf(0x9f)]=new winston[(_0x512faf(0x9d))][(_0x512faf(0xb9))]({'filename':path['join'](exports[_0x512faf(0x99)],DEBUG_CLI_LOG_FILE_NAME),'level':_0x614168[_0x512faf(0xdf)]}),exports[_0x512faf(0xcf)]['add'](transports['loggerFile']),exports[_0x512faf(0xcf)][_0x512faf(0xec)](transports[_0x512faf(0xe9)]),exports[_0x512faf(0xdd)][_0x512faf(0xec)](transports[_0x512faf(0xc5)]),exports[_0x512faf(0xdd)]['add'](transports['debugLoggerFile']);};function a138_0x1d45(){const _0x270b23=['winston','colorize','xWPRe','true','/usage.log','Ocuec','env','215705HUsZCn','console.info','fileLogger','getLogDir','dKDOe','YYYY-MM-DD\x20HH:mm:ss','1314366PhcQyH','http','debug','901184SbqBCz','combine','keys','11BFNJsC','lxxAC','debugLoggerFile','Console','[REDACTED\x20HEADERS]','add','2350670bWWZui','remove','logDir','object','loggerConsole','EmBoM','transports','automationLoggerFile','debugCliLoggerFile','userName','mkdirSync','\x5c$&','level','log','nzqRN','207204HcTWIm','XdRGy','config','printf','test','createLogger','map','BROWSERSTACK_AUTOMATION_LOGS','info','toLowerCase','rmaDJ','replace','16570PWneda','error','silly','lRvgt','5446800mZIATY','buildLogger','[REDACTED]','File','message','evSxn','EPIPE','jqRUQ','4adhTbA','code','10gulgdZ','BROWSERSTACK_INTERNAL_LOG_DIR','timestamp','existsSync','28BjXAOz','loggerFile','WcXGp','\x20-\x20','/usage-debug.log','BROWSERSTACK_LOG_LEVEL','AQFUP','format','name','uncolorize','qkvdq','winstonLogger','automation.log','filter','join','path'];a138_0x1d45=function(){return _0x270b23;};return a138_0x1d45();}exports[a138_0x5b9a8f(0xcf)]=new winston[(a138_0x5b9a8f(0xab))](winstonLoggerParams),exports[a138_0x5b9a8f(0xdd)]=new winston['createLogger'](winstonFileLoggerParams),exports[a138_0x5b9a8f(0xb7)]=new winston[(a138_0x5b9a8f(0xab))](BuildLoggerParams),exports[a138_0x5b9a8f(0x99)]=logDir,exports[a138_0x5b9a8f(0xde)]=()=>{const _0x160548=a138_0x5b9a8f;return exports[_0x160548(0x99)];},exports[a138_0x5b9a8f(0x9d)]=transports,exports['initialize']=initialize,exports['maskHeaders']=maskHeaders;logDir&&initialize();
|
|
1
|
+
const a138_0x49dd2b=a138_0x1f0d;(function(_0x41da40,_0x5f4442){const _0x5c070c=a138_0x1f0d,_0x1f7d98=_0x41da40();while(!![]){try{const _0x202e7c=parseInt(_0x5c070c(0x13e))/0x1*(-parseInt(_0x5c070c(0x13f))/0x2)+-parseInt(_0x5c070c(0x131))/0x3*(parseInt(_0x5c070c(0x164))/0x4)+-parseInt(_0x5c070c(0x15e))/0x5*(-parseInt(_0x5c070c(0x129))/0x6)+parseInt(_0x5c070c(0x152))/0x7*(parseInt(_0x5c070c(0x151))/0x8)+-parseInt(_0x5c070c(0x123))/0x9*(parseInt(_0x5c070c(0x154))/0xa)+parseInt(_0x5c070c(0x13c))/0xb*(-parseInt(_0x5c070c(0x11b))/0xc)+-parseInt(_0x5c070c(0x163))/0xd*(-parseInt(_0x5c070c(0x158))/0xe);if(_0x202e7c===_0x5f4442)break;else _0x1f7d98['push'](_0x1f7d98['shift']());}catch(_0x2f2563){_0x1f7d98['push'](_0x1f7d98['shift']());}}}(a138_0x3764,0x1a653));function a138_0x1f0d(_0x1309a0,_0x3c2367){const _0x376491=a138_0x3764();return a138_0x1f0d=function(_0x1f0d05,_0x446c50){_0x1f0d05=_0x1f0d05-0x112;let _0x4d8d2a=_0x376491[_0x1f0d05];return _0x4d8d2a;},a138_0x1f0d(_0x1309a0,_0x3c2367);}const winston=require('winston'),path=require(a138_0x49dd2b(0x137)),fs=require('fs'),{LOG_FILE_NAME,DEBUG_LOG_FILE_NAME,DEBUG_CLI_LOG_FILE_NAME}=require('../bin/utils/constants'),tempLogDir=a138_0x49dd2b(0x130);let redactRegex=null,lastConfigHash='';const logFormat=winston[a138_0x49dd2b(0x16a)](_0x541067=>{const _0x1f5355=a138_0x49dd2b,_0x2625b9={};_0x2625b9[_0x1f5355(0x167)]=function(_0x105adb,_0x1c8780){return _0x105adb!==_0x1c8780;},_0x2625b9[_0x1f5355(0x156)]=_0x1f5355(0x11a),_0x2625b9[_0x1f5355(0x15a)]=function(_0x3d6f5b,_0x9ded39){return _0x3d6f5b+_0x9ded39;},_0x2625b9[_0x1f5355(0x11f)]=function(_0xd6cd0d,_0x1d4206){return _0xd6cd0d>_0x1d4206;},_0x2625b9['pGkhC']='[REDACTED]';const _0x32e6ae=_0x2625b9;_0x32e6ae[_0x1f5355(0x167)](typeof _0x541067['message'],_0x32e6ae[_0x1f5355(0x156)])&&(_0x541067[_0x1f5355(0x124)]=JSON[_0x1f5355(0x114)](_0x541067[_0x1f5355(0x124)]));const _0x3f883a=global[_0x1f5355(0x13d)]&&global[_0x1f5355(0x13d)][_0x1f5355(0x161)]||'',_0x2df9a5=global[_0x1f5355(0x13d)]&&global[_0x1f5355(0x13d)][_0x1f5355(0x170)]||'',_0x51f038=_0x32e6ae[_0x1f5355(0x15a)](_0x32e6ae[_0x1f5355(0x15a)](_0x3f883a,'|'),_0x2df9a5);if(_0x32e6ae[_0x1f5355(0x167)](_0x51f038,lastConfigHash)){lastConfigHash=_0x51f038;const _0x519a7d=[_0x3f883a,_0x2df9a5][_0x1f5355(0x12f)](Boolean);if(_0x32e6ae[_0x1f5355(0x11f)](_0x519a7d[_0x1f5355(0x16c)],0x0)){const _0x4beae7=_0x519a7d[_0x1f5355(0x139)](_0x3b3a77=>_0x3b3a77[_0x1f5355(0x136)](/[.*+?^${}()|[\]\\]/g,_0x1f5355(0x160)))[_0x1f5355(0x121)]('|');redactRegex=new RegExp(_0x4beae7,'g');}else redactRegex=null;}return redactRegex&&(_0x541067['message']=_0x541067[_0x1f5355(0x124)]['replace'](redactRegex,_0x32e6ae[_0x1f5355(0x166)])),_0x541067;}),SENSITIVE_HEADER_REGEX=/authorization|token|cookie|secret|^x-api-key$|accesskey|password/i,maskHeaders=_0x32db3b=>{const _0x29e0d0=a138_0x49dd2b,_0x41e706={};_0x41e706[_0x29e0d0(0x16e)]=function(_0x4df52f,_0x5f41cf){return _0x4df52f!==_0x5f41cf;},_0x41e706[_0x29e0d0(0x118)]=_0x29e0d0(0x141),_0x41e706[_0x29e0d0(0x125)]=_0x29e0d0(0x149),_0x41e706[_0x29e0d0(0x14a)]=_0x29e0d0(0x132);const _0x399284=_0x41e706;try{if(!_0x32db3b||_0x399284['UyxGW'](typeof _0x32db3b,_0x399284[_0x29e0d0(0x118)]))return _0x32db3b;const _0x303f9b={};for(const _0x32b8fc of Object[_0x29e0d0(0x153)](_0x32db3b)){_0x303f9b[_0x32b8fc]=SENSITIVE_HEADER_REGEX[_0x29e0d0(0x14f)](_0x32b8fc)?_0x399284[_0x29e0d0(0x125)]:_0x32db3b[_0x32b8fc];}return _0x303f9b;}catch{return _0x399284[_0x29e0d0(0x14a)];}},fetchLogDir=()=>{const _0x259bd3=a138_0x49dd2b;if(process[_0x259bd3(0x15b)][_0x259bd3(0x157)])return process[_0x259bd3(0x15b)]['BROWSERSTACK_INTERNAL_LOG_DIR'];else!fs[_0x259bd3(0x122)](tempLogDir)&&fs[_0x259bd3(0x12d)](tempLogDir);return tempLogDir;},logDir=fetchLogDir(),getInitialLogLevel=()=>{const _0xc4e0e8=a138_0x49dd2b,_0x3d4ca0={};_0x3d4ca0[_0xc4e0e8(0x147)]='info';const _0x426474=_0x3d4ca0,_0x39001d=process[_0xc4e0e8(0x15b)]['BROWSERSTACK_LOG_LEVEL'],_0x4ee565=Object[_0xc4e0e8(0x153)](winston[_0xc4e0e8(0x13d)][_0xc4e0e8(0x14d)][_0xc4e0e8(0x115)]);if(_0x39001d&&_0x4ee565[_0xc4e0e8(0x169)](_0x39001d[_0xc4e0e8(0x16f)]()))return _0x39001d['toLowerCase']();return _0x426474[_0xc4e0e8(0x147)];},initialLogLevel=getInitialLogLevel(),a138_0x2db972={};a138_0x2db972[a138_0x49dd2b(0x134)]='console.info',a138_0x2db972[a138_0x49dd2b(0x15d)]=initialLogLevel;const transports={'loggerConsole':new winston[(a138_0x49dd2b(0x128))]['Console'](a138_0x2db972),'loggerFile':new winston['transports']['File']({'filename':path[a138_0x49dd2b(0x121)](logDir,a138_0x49dd2b(0x12a)),'level':initialLogLevel}),'debugLoggerFile':new winston[(a138_0x49dd2b(0x128))][(a138_0x49dd2b(0x12c))]({'filename':path['join'](logDir,a138_0x49dd2b(0x155)),'level':'silly'}),'debugCliLoggerFile':new winston[(a138_0x49dd2b(0x128))][(a138_0x49dd2b(0x12c))]({'filename':path[a138_0x49dd2b(0x121)](logDir,DEBUG_CLI_LOG_FILE_NAME),'level':a138_0x49dd2b(0x15c)}),'buildLinkTransport':new winston[(a138_0x49dd2b(0x128))][(a138_0x49dd2b(0x12c))]({'filename':path[a138_0x49dd2b(0x121)](logDir,a138_0x49dd2b(0x12a)),'level':a138_0x49dd2b(0x15c)})},automationTransports={};process[a138_0x49dd2b(0x15b)][a138_0x49dd2b(0x12b)]===a138_0x49dd2b(0x162)&&(automationTransports['automationLoggerFile']=new winston[(a138_0x49dd2b(0x128))][(a138_0x49dd2b(0x12c))]({'filename':path['join'](logDir,a138_0x49dd2b(0x14e)),'level':a138_0x49dd2b(0x15c)}));transports[a138_0x49dd2b(0x11d)]['on'](a138_0x49dd2b(0x142),_0x408a8e=>{const _0x26672d=a138_0x49dd2b,_0x1e58df={};_0x1e58df[_0x26672d(0x140)]=function(_0x4cd5af,_0x4e7f8f){return _0x4cd5af===_0x4e7f8f;},_0x1e58df['otPLX']=_0x26672d(0x150),_0x1e58df[_0x26672d(0x11e)]=_0x26672d(0x15f);const _0x57a961=_0x1e58df;if(_0x57a961[_0x26672d(0x140)](_0x408a8e[_0x26672d(0x16b)],_0x57a961['otPLX'])){console[_0x26672d(0x130)](_0x57a961[_0x26672d(0x11e)],_0x408a8e[_0x26672d(0x124)]);return;}throw _0x408a8e;});const a138_0x3da9a0={};function a138_0x3764(){const _0x2b6182=['\x20-\x20','npm','automation.log','test','EPIPE','32lgtUBc','154399waEuom','keys','10rkkbmS','/usage-debug.log','QvpTs','BROWSERSTACK_INTERNAL_LOG_DIR','1358SqFEuT','maskHeaders','RSvin','env','silly','level','535ImOHuB','EPIPE\x20error\x20occurred\x20in\x20loggerConsole:','\x5c$&','userName','true','63817mMlpuY','172132HCUHgb','http','pGkhC','ztAgu','colorize','includes','format','code','length','info','UyxGW','toLowerCase','accessKey','YYYY-MM-DD\x20HH:mm:ss','add','timestamp','stringify','levels','automationLogger','debugLoggerFile','TMvwd','debug','string','24LolLFY','remove','loggerConsole','wptUP','fcUiR','winstonLogger','join','existsSync','977607jDYxnv','message','GhMxY','debugCliLoggerFile','buildLinkTransport','transports','1326tVCUgR','/usage.log','BROWSERSTACK_AUTOMATION_LOGS','File','mkdirSync','uncolorize','filter','log','3Dmgnwy','[REDACTED\x20HEADERS]','HXscN','name','initialize','replace','path','Console','map','combine','loggerFile','682616IMzcBo','config','5ZTZXTr','81666HXvDRW','cmmJW','object','error','createLogger','logDir','printf','fileLogger','BCTxA','automationLoggerFile','[REDACTED]','lCHoM','buildLogger'];a138_0x3764=function(){return _0x2b6182;};return a138_0x3764();}a138_0x3da9a0[a138_0x49dd2b(0x16a)]='YYYY-MM-DD\x20HH:mm:ss';const a138_0x257f88={};a138_0x257f88[a138_0x49dd2b(0x15d)]=!![];const winstonLoggerParams={'format':winston['format'][a138_0x49dd2b(0x13a)](winston[a138_0x49dd2b(0x16a)][a138_0x49dd2b(0x113)](a138_0x3da9a0),winston['format'][a138_0x49dd2b(0x168)](a138_0x257f88),winston[a138_0x49dd2b(0x16a)][a138_0x49dd2b(0x145)](_0x37e0cb=>_0x37e0cb[a138_0x49dd2b(0x113)]+a138_0x49dd2b(0x14c)+_0x37e0cb[a138_0x49dd2b(0x15d)]+':\x20'+_0x37e0cb[a138_0x49dd2b(0x124)])),'transports':[transports[a138_0x49dd2b(0x11d)]]},a138_0xdd7280={};a138_0xdd7280['format']=a138_0x49dd2b(0x171);const a138_0x55b89f={};a138_0x55b89f['level']=!![];const winstonFileLoggerParams={'format':winston[a138_0x49dd2b(0x16a)]['combine'](winston[a138_0x49dd2b(0x16a)][a138_0x49dd2b(0x113)](a138_0xdd7280),winston[a138_0x49dd2b(0x16a)]['colorize'](a138_0x55b89f),winston[a138_0x49dd2b(0x16a)]['printf'](_0x50b0e4=>_0x50b0e4['level']+':\x20'+_0x50b0e4[a138_0x49dd2b(0x124)])),'transports':[]},a138_0x1755a9={};a138_0x1755a9['format']=a138_0x49dd2b(0x171);const a138_0x1a281b={};a138_0x1a281b[a138_0x49dd2b(0x15d)]=!![];const a138_0x108456={};a138_0x108456[a138_0x49dd2b(0x15d)]='silly';const BuildLoggerParams={'format':winston[a138_0x49dd2b(0x16a)]['combine'](winston[a138_0x49dd2b(0x16a)][a138_0x49dd2b(0x113)](a138_0x1755a9),winston[a138_0x49dd2b(0x16a)][a138_0x49dd2b(0x168)](a138_0x1a281b),winston[a138_0x49dd2b(0x16a)]['printf'](_0x4161de=>_0x4161de['timestamp']+a138_0x49dd2b(0x14c)+_0x4161de['level']+':\x20'+_0x4161de[a138_0x49dd2b(0x124)])),'transports':[transports[a138_0x49dd2b(0x127)],new winston[(a138_0x49dd2b(0x128))][(a138_0x49dd2b(0x138))](a138_0x108456)]},a138_0x2ae7da={};a138_0x2ae7da[a138_0x49dd2b(0x165)]=()=>{},a138_0x2ae7da[a138_0x49dd2b(0x16d)]=()=>{},a138_0x2ae7da['warn']=()=>{},a138_0x2ae7da[a138_0x49dd2b(0x142)]=()=>{},a138_0x2ae7da[a138_0x49dd2b(0x119)]=()=>{},a138_0x2ae7da[a138_0x49dd2b(0x15c)]=()=>{},exports[a138_0x49dd2b(0x116)]=process[a138_0x49dd2b(0x15b)][a138_0x49dd2b(0x12b)]==='true'?winston[a138_0x49dd2b(0x143)]({'format':winston[a138_0x49dd2b(0x16a)][a138_0x49dd2b(0x13a)](winston[a138_0x49dd2b(0x16a)][a138_0x49dd2b(0x12e)](),winston['format'][a138_0x49dd2b(0x113)](),logFormat(),winston[a138_0x49dd2b(0x16a)]['printf'](_0x4107d4=>_0x4107d4[a138_0x49dd2b(0x15d)]+':\x20'+_0x4107d4[a138_0x49dd2b(0x124)])),'transports':[automationTransports[a138_0x49dd2b(0x148)]]}):a138_0x2ae7da;const initialize=()=>{const _0x2b96fe=a138_0x49dd2b,_0x33aa43={};_0x33aa43['HXscN']=_0x2b96fe(0x15c);const _0x22e77c=_0x33aa43,_0x53c768=transports[_0x2b96fe(0x11d)][_0x2b96fe(0x15d)]||initialLogLevel;transports[_0x2b96fe(0x13b)]&&(exports['winstonLogger'][_0x2b96fe(0x11c)](transports['loggerFile']),exports[_0x2b96fe(0x146)][_0x2b96fe(0x11c)](transports[_0x2b96fe(0x13b)])),transports[_0x2b96fe(0x117)]&&(exports[_0x2b96fe(0x120)]['remove'](transports[_0x2b96fe(0x117)]),exports[_0x2b96fe(0x146)][_0x2b96fe(0x11c)](transports['debugLoggerFile'])),transports[_0x2b96fe(0x13b)]=new winston[(_0x2b96fe(0x128))][(_0x2b96fe(0x12c))]({'filename':path['join'](exports['logDir'],LOG_FILE_NAME),'level':_0x53c768}),transports['debugLoggerFile']=new winston['transports'][(_0x2b96fe(0x12c))]({'filename':path[_0x2b96fe(0x121)](exports[_0x2b96fe(0x144)],DEBUG_LOG_FILE_NAME),'level':_0x22e77c[_0x2b96fe(0x133)]}),transports[_0x2b96fe(0x126)]=new winston[(_0x2b96fe(0x128))][(_0x2b96fe(0x12c))]({'filename':path[_0x2b96fe(0x121)](exports[_0x2b96fe(0x144)],DEBUG_CLI_LOG_FILE_NAME),'level':_0x22e77c[_0x2b96fe(0x133)]}),exports[_0x2b96fe(0x120)]['add'](transports[_0x2b96fe(0x13b)]),exports[_0x2b96fe(0x120)][_0x2b96fe(0x112)](transports[_0x2b96fe(0x117)]),exports[_0x2b96fe(0x146)]['add'](transports['loggerFile']),exports[_0x2b96fe(0x146)][_0x2b96fe(0x112)](transports[_0x2b96fe(0x117)]);};exports[a138_0x49dd2b(0x120)]=new winston[(a138_0x49dd2b(0x143))](winstonLoggerParams),exports[a138_0x49dd2b(0x146)]=new winston[(a138_0x49dd2b(0x143))](winstonFileLoggerParams),exports[a138_0x49dd2b(0x14b)]=new winston[(a138_0x49dd2b(0x143))](BuildLoggerParams),exports[a138_0x49dd2b(0x144)]=logDir,exports['getLogDir']=()=>{return exports['logDir'];},exports[a138_0x49dd2b(0x128)]=transports,exports[a138_0x49dd2b(0x135)]=initialize,exports[a138_0x49dd2b(0x159)]=maskHeaders;logDir&&initialize();
|
package/src/helpers/metadata.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a139_0x3f07(_0x4d04cd,_0x4412db){const _0x2c38cb=a139_0x2c38();return a139_0x3f07=function(_0x3f0718,_0x29af14){_0x3f0718=_0x3f0718-0x1c9;let _0x464b3e=_0x2c38cb[_0x3f0718];return _0x464b3e;},a139_0x3f07(_0x4d04cd,_0x4412db);}function a139_0x2c38(){const _0x2a885c=['setGlobal','getGlobal','./logger','10lUAlab','2042838CLLNSA','The\x20metadata\x20object\x20is\x20not\x20valid.','5xPBmOY','FlPqo','./globals','set','string','229553dBJbTJ','length','2819648JjSLyw','MQnbW','lcnc','6269949WqbjeW','exports','testRunUUID','14812083diIOwF','testMeta-','./helper','iNhVo','getCentralUser','6122466sMngWh','298064jiMKUJ','WMCjb','cuWNQ','yCixQ','ZaLcY'];a139_0x2c38=function(){return _0x2a885c;};return a139_0x2c38();}const a139_0x3ad741=a139_0x3f07;(function(_0x3a0a9c,_0x4e3b1d){const _0x530a9b=a139_0x3f07,_0x39d9e8=_0x3a0a9c();while(!![]){try{const _0x596d0a=-parseInt(_0x530a9b(0x1d3))/0x1*(parseInt(_0x530a9b(0x1cb))/0x2)+-parseInt(_0x530a9b(0x1cc))/0x3+parseInt(_0x530a9b(0x1d5))/0x4+parseInt(_0x530a9b(0x1ce))/0x5*(parseInt(_0x530a9b(0x1e0))/0x6)+-parseInt(_0x530a9b(0x1d8))/0x7+parseInt(_0x530a9b(0x1e1))/0x8+parseInt(_0x530a9b(0x1db))/0x9;if(_0x596d0a===_0x4e3b1d)break;else _0x39d9e8['push'](_0x39d9e8['shift']());}catch(_0x103ada){_0x39d9e8['push'](_0x39d9e8['shift']());}}}(a139_0x2c38,0xa6fae));const globals=require(a139_0x3ad741(0x1d0)),helper=require(a139_0x3ad741(0x1dd)),logger=require(a139_0x3ad741(0x1ca))['winstonLogger'];module[a139_0x3ad741(0x1d9)]=class TestMetadata{static[a139_0x3ad741(0x1d1)](_0x4abf88={}){const _0x45bfbd=a139_0x3ad741,_0x2e07f9={};_0x2e07f9[_0x45bfbd(0x1e2)]=_0x45bfbd(0x1da),_0x2e07f9[_0x45bfbd(0x1d6)]=function(_0x202d5e,_0xd97795){return _0x202d5e===_0xd97795;},_0x2e07f9[_0x45bfbd(0x1cf)]=_0x45bfbd(0x1d2),_0x2e07f9['yCixQ']=function(_0x517a8d,_0x1574da){return _0x517a8d<=_0x1574da;},_0x2e07f9[_0x45bfbd(0x1e3)]='testMeta',_0x2e07f9['iNhVo']=_0x45bfbd(0x1cd);const _0x10f261=_0x2e07f9,_0x2c9827=globals[_0x45bfbd(0x1c9)](_0x10f261[_0x45bfbd(0x1e2)]),_0xcee664=_0x4abf88['identifier'];helper[_0x45bfbd(0x1df)]()[_0x45bfbd(0x1d7)]&&(_0x10f261[_0x45bfbd(0x1d6)](typeof _0xcee664,_0x10f261['FlPqo'])&&_0x10f261[_0x45bfbd(0x1e4)](_0xcee664[_0x45bfbd(0x1d4)],0x28)?_0x2c9827?globals[_0x45bfbd(0x1e6)](_0x45bfbd(0x1dc)+_0x2c9827,_0x4abf88):globals[_0x45bfbd(0x1e6)](_0x10f261[_0x45bfbd(0x1e3)],_0x4abf88):logger['warn'](_0x10f261[_0x45bfbd(0x1de)]));}static['get'](_0x20aab2){const _0x571d58=a139_0x3ad741,_0x393c7c={};_0x393c7c[_0x571d58(0x1e5)]='testMeta';const _0x374219=_0x393c7c;if(helper[_0x571d58(0x1df)]()[_0x571d58(0x1d7)])return globals[_0x571d58(0x1c9)](_0x571d58(0x1dc)+_0x20aab2)||globals[_0x571d58(0x1c9)](_0x374219[_0x571d58(0x1e5)])||{};return{};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a140_0x596680=a140_0x31ae;function a140_0x2d88(){const _0x2d766e=['name_','executeAsyncScript','NUDGE_LOCAL_ERRORS','script','HKxJF','POST_EXECUTE','command','measureWrapper','8406mdzzOE','executeScript','testRunId','getCurrentAccessibilityStatus','bTPWz','debug','./performance/performance-tester','Error\x20in\x20local\x20nudge\x20for\x20overrideExecute:\x20','args','[App-A11y]\x20patchHelper:\x20no\x20automationFramework\x20for\x20node-generic\x20—\x20calling\x20onBeforeExecute\x20directly\x20for\x20command=','execute','11CKKPhh','getCurrentTestUUID','nestedKeyValue','jmCBk','./performance/constants','./accessibility-automation/scripts','get','AfDyq','onBeforeExecute','QpNve','bstack:options','./helper','Error\x20while\x20logging\x20accessibility\x20automation\x20logs\x20in\x20driver.execute\x20:\x20','1406070iojpuX','browserstack.local','RjYhY','silly','Caught\x20error\x20in\x20execute,\x20check\x20if\x20geturl\x20and\x20try\x20to\x20set\x20local\x20nudge','isAppAccessibility','115116eRWQCN','./logger','5282069Uqrahd','find','patchExecute','format','PRE','parameters_','ljtMZ','includes','14VoVDrm','testFramework','../bin/v2/browserstackCLI','[App-A11y]\x20patchHelper:\x20firing\x20EXECUTE\x20PRE\x20for\x20command=','MQqrV','69acBBzl','130jlXpKq','ZREXc','pSyeE','4HCSVvE','pxOae','local','driver','1719aWQsWC','EDfLm','getTestFramework','getAccessibilityModule','getAutomationFramework','./accessibility-automation/constants','initExecute','string','1663404VzNxgw','body','[App-A11y]\x20patchHelper:\x20error\x20in\x20a11y\x20scan\x20hook:\x20','19390cvXnCB','../bin/v2/state/hookState','NODE_GENERIC','Wrrvr','trackEvent','response','url','AUTOMATION_LOG_COMMANDS','message','SCCCt','VRAbP','AtRnV','commandName','10255fjSAis','shouldWrapCommand','MqkOz','toString','CeRjb','112xMNdve','bdEVj'];a140_0x2d88=function(){return _0x2d766e;};return a140_0x2d88();}(function(_0x107f9b,_0x3e62d3){const _0x21d52f=a140_0x31ae,_0x950d17=_0x107f9b();while(!![]){try{const _0x5b7b64=-parseInt(_0x21d52f(0x127))/0x1*(parseInt(_0x21d52f(0xfa))/0x2)+parseInt(_0x21d52f(0x112))/0x3*(parseInt(_0x21d52f(0x12b))/0x4)+-parseInt(_0x21d52f(0x128))/0x5*(parseInt(_0x21d52f(0x118))/0x6)+parseInt(_0x21d52f(0xeb))/0x7*(-parseInt(_0x21d52f(0xf0))/0x8)+-parseInt(_0x21d52f(0x12f))/0x9*(-parseInt(_0x21d52f(0xde))/0xa)+-parseInt(_0x21d52f(0x105))/0xb*(parseInt(_0x21d52f(0x137))/0xc)+-parseInt(_0x21d52f(0x11a))/0xd*(-parseInt(_0x21d52f(0x122))/0xe);if(_0x5b7b64===_0x3e62d3)break;else _0x950d17['push'](_0x950d17['shift']());}catch(_0x16a9ce){_0x950d17['push'](_0x950d17['shift']());}}}(a140_0x2d88,0x489a6));const PerformanceTester=require(a140_0x596680(0x100)),{winstonLogger:logger,automationLogger}=require(a140_0x596680(0x119)),helper=require(a140_0x596680(0x110)),constants=require('../bin/utils/constants'),{DRIVER_EVENT:PerformanceDriverEvents}=require(a140_0x596680(0x109)),{BSTACK_SCAN_IN_PROGRESS}=require(a140_0x596680(0x134)),util=require('util');function a140_0x31ae(_0x2c4a85,_0x250114){const _0x2d88f6=a140_0x2d88();return a140_0x31ae=function(_0x31aebb,_0x27eee9){_0x31aebb=_0x31aebb-0xde;let _0x5e3cf7=_0x2d88f6[_0x31aebb];return _0x5e3cf7;},a140_0x31ae(_0x2c4a85,_0x250114);}exports['overrideExecute']=(_0x5e6d18,_0x2a9064)=>{const _0x2daa37=a140_0x596680,_0x3eabe6={'pxOae':_0x2daa37(0x116),'MqkOz':function(_0x1d41c2,_0x5b2a86){return _0x1d41c2===_0x5b2a86;},'HKxJF':_0x2daa37(0x10b),'QpNve':_0x2daa37(0x11f),'bdEVj':_0x2daa37(0xe4),'RjYhY':_0x2daa37(0x101),'AfDyq':function(_0x440f4d,_0x5717ee){return _0x440f4d===_0x5717ee;},'iQMuo':_0x2daa37(0xf3),'AtRnV':function(_0x2ac95c,_0x55dd48){return _0x2ac95c===_0x55dd48;},'qRJnE':_0x2daa37(0xfb),'VRAbP':function(_0x50c1dc,_0x44f992){return _0x50c1dc===_0x44f992;},'jmCBk':_0x2daa37(0x136),'CeRjb':function(_0x125dc9,_0xfac30d){return _0x125dc9(_0xfac30d);},'MQqrV':_0x2daa37(0x10a),'TpxIt':'../bin/v2/state/automationFrameworkState','Wrrvr':_0x2daa37(0xdf),'doxfr':function(_0x1389ef,_0x1a814c){return _0x1389ef===_0x1a814c;},'pSyeE':'function','ljtMZ':function(_0x32bbeb,_0x414b1b){return _0x32bbeb(_0x414b1b);},'bTPWz':_0x2daa37(0x124),'EDfLm':'capability','lQXuU':_0x2daa37(0x113),'SCCCt':_0x2daa37(0x10f),'ZREXc':_0x2daa37(0x12d)},_0x241b7e=_0x5e6d18[_0x2daa37(0x11c)]||(helper[_0x2daa37(0x107)](_0x2a9064,[_0x3eabe6[_0x2daa37(0x130)],_0x3eabe6['lQXuU']])||helper[_0x2daa37(0x107)](_0x2a9064,[_0x3eabe6[_0x2daa37(0x130)],_0x3eabe6[_0x2daa37(0xe7)],_0x3eabe6[_0x2daa37(0x129)]]));if(_0x241b7e)return;_0x5e6d18[_0x2daa37(0x11c)]=!![],_0x5e6d18[_0x2daa37(0x135)]=_0x5e6d18[_0x2daa37(0x104)],_0x5e6d18[_0x2daa37(0x104)]=async _0x26b2eb=>{const _0x238ab7=_0x2daa37;try{const _0x237553=await _0x5e6d18['initExecute'](_0x26b2eb);try{if(_0x3eabe6[_0x238ab7(0x10c)](_0x26b2eb[_0x238ab7(0xf2)],_0x3eabe6['iQMuo'])||_0x3eabe6[_0x238ab7(0xe9)](_0x26b2eb['name_'],_0x3eabe6['qRJnE'])){const _0x50a838=_0x26b2eb['parameters_']&&_0x26b2eb[_0x238ab7(0x11f)][_0x238ab7(0xf5)],_0x4ab661=_0x26b2eb[_0x238ab7(0x11f)]&&_0x26b2eb[_0x238ab7(0x11f)][_0x238ab7(0x102)],_0x4f03ab=_0x4ab661&&util['format']('%j',_0x4ab661);if(_0x50a838&&_0x3eabe6[_0x238ab7(0xe8)](typeof _0x50a838,_0x3eabe6[_0x238ab7(0x108)])){const _0x20353c=constants[_0x238ab7(0xe5)]['find'](_0x3b450c=>_0x50a838['includes'](_0x3b450c)||_0x4f03ab&&_0x4f03ab[_0x238ab7(0x121)](_0x3b450c));if(_0x20353c){const _0x22963b={};_0x22963b[_0x238ab7(0xf8)]=_0x20353c,_0x22963b['parameters']=_0x4ab661;const _0x308e65={};_0x308e65[_0x238ab7(0x138)]=_0x237553;const _0x1cbec1={};_0x1cbec1['request']=_0x22963b,_0x1cbec1[_0x238ab7(0xe3)]=_0x308e65,automationLogger[_0x238ab7(0x115)]('['+new Date()['toISOString']()+'][\x20SDK-AUTOMATION\x20]\x20'+util[_0x238ab7(0x11d)]('%j',_0x1cbec1));}}}}catch(_0x123174){logger[_0x238ab7(0x115)](_0x238ab7(0x111)+_0x123174[_0x238ab7(0xe6)]);}try{if(!_0x5e6d18[BSTACK_SCAN_IN_PROGRESS]){const _0x461708=_0x3eabe6['CeRjb'](require,_0x3eabe6[_0x238ab7(0x126)]),_0x11da45=_0x3eabe6[_0x238ab7(0xef)](require,_0x3eabe6['TpxIt']),_0xc3506c=_0x3eabe6[_0x238ab7(0xef)](require,_0x3eabe6[_0x238ab7(0xe1)]);if(_0x3eabe6['doxfr'](typeof _0x461708['shouldWrapCommand'],_0x3eabe6[_0x238ab7(0x12a)])&&_0x461708[_0x238ab7(0xec)](_0x26b2eb[_0x238ab7(0xf2)])){const _0x4c3a68=_0x3eabe6[_0x238ab7(0x120)](require,_0x3eabe6[_0x238ab7(0xfe)]),_0xe1be79=_0x4c3a68['getInstance'](),_0x87e7d0=_0xe1be79&&_0xe1be79[_0x238ab7(0x132)]();if(_0x87e7d0&&_0x87e7d0[_0x238ab7(0x117)]&&_0x87e7d0[_0x238ab7(0xfd)]()){let _0x5c24e5='';try{const _0xe4ecbd=_0xe1be79[_0x238ab7(0x131)]&&_0xe1be79['getTestFramework']();_0x5c24e5=_0xe4ecbd&&_0xe4ecbd['getCurrentTestUUID']&&_0xe4ecbd[_0x238ab7(0x106)]()||'';}catch(_0x3bff06){}logger['debug'](_0x238ab7(0x125)+_0x26b2eb[_0x238ab7(0xf2)]+',\x20testRunId='+_0x5c24e5);const _0x4ee087=_0xe1be79[_0x238ab7(0x133)]();if(!_0x4ee087){logger[_0x238ab7(0xff)](_0x238ab7(0x103)+_0x26b2eb[_0x238ab7(0xf2)]);const _0x3406d8={};_0x3406d8['testFramework']=constants['FRAMEWORKS']['NODE_GENERIC'],_0x3406d8[_0x238ab7(0xea)]=_0x26b2eb['name_'],_0x3406d8['driver']=_0x5e6d18,_0x3406d8[_0x238ab7(0xfc)]=_0x5c24e5,await _0x87e7d0[_0x238ab7(0x10d)](_0x3406d8);}else{const _0x5a9e19={};_0x5a9e19['commandName']=_0x26b2eb[_0x238ab7(0xf2)],_0x5a9e19[_0x238ab7(0x12e)]=_0x5e6d18,_0x5a9e19[_0x238ab7(0x123)]=constants['FRAMEWORKS'][_0x238ab7(0xe0)],_0x5a9e19[_0x238ab7(0xfc)]=_0x5c24e5,await _0x4ee087[_0x238ab7(0xe2)](_0x11da45['EXECUTE'],_0xc3506c[_0x238ab7(0x11e)],_0x5a9e19);}}}}}catch(_0x5671b5){logger[_0x238ab7(0xff)](_0x238ab7(0x139)+_0x5671b5[_0x238ab7(0xe6)]);}return _0x237553;}catch(_0x1ca45f){await PerformanceTester[_0x238ab7(0xf9)](PerformanceDriverEvents[_0x238ab7(0xf7)],async()=>{const _0x298303=_0x238ab7;logger['debug'](_0x3eabe6[_0x298303(0x12c)]);try{_0x3eabe6[_0x298303(0xed)](_0x26b2eb[_0x298303(0xf2)],_0x3eabe6[_0x298303(0xf6)])&&helper[_0x298303(0x107)](_0x26b2eb,[_0x3eabe6[_0x298303(0x10e)],_0x3eabe6[_0x298303(0xf1)]])&&!!constants[_0x298303(0xf4)][_0x298303(0x11b)](_0x4a26e2=>{const _0x3f998e=_0x298303;return _0x1ca45f[_0x3f998e(0xee)]()[_0x3f998e(0x121)](_0x4a26e2);})&&helper['getNudgeLocalNotSetError'](_0x26b2eb[_0x298303(0x11f)][_0x298303(0xe4)],!![]);}catch(_0x16652c){logger[_0x298303(0xff)](_0x3eabe6[_0x298303(0x114)],_0x16652c);}},{'success':![],'failure':_0x1ca45f})();throw _0x1ca45f;}};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a141_0x3a64f0=a141_0x5526;function a141_0x52d9(){const _0x280842=['22284sLooGj','rAKbf','459717dXwChj','BS_TESTOPS_ALLOW_SCREENSHOTS','initScreenshot','4866ThlnIK','10990sNBylp','TAKE_SCREENSHOT','fisah','patchScreenshot','7xIFotQ','quitCount_','TEST_SCREENSHOT','./performance/constants','AhIBt','quit','20PknMDP','./performance/performance-tester','start','initQuit','94EQBlAv','true','toISOString','uwHww','catch','emit','52710asqFBD','O11y_EVENTS','860BPgekD','end','JjwvC','2386637FYXxZE','pid','11435856TTdMUH','patchQuit','overrideQuit','pSWjP','32255UXHBLN','96FaRwpN','16679JoSYqp','ZdAlX'];a141_0x52d9=function(){return _0x280842;};return a141_0x52d9();}(function(_0x1b926f,_0x260a54){const _0x3c88ae=a141_0x5526,_0xcf48bd=_0x1b926f();while(!![]){try{const _0x1c5188=parseInt(_0x3c88ae(0x10e))/0x1*(-parseInt(_0x3c88ae(0xfd))/0x2)+parseInt(_0x3c88ae(0x114))/0x3*(-parseInt(_0x3c88ae(0x122))/0x4)+parseInt(_0x3c88ae(0x118))/0x5*(parseInt(_0x3c88ae(0x117))/0x6)+parseInt(_0x3c88ae(0x11c))/0x7*(-parseInt(_0x3c88ae(0x10a))/0x8)+-parseInt(_0x3c88ae(0x112))/0x9*(parseInt(_0x3c88ae(0x105))/0xa)+parseInt(_0x3c88ae(0x108))/0xb*(-parseInt(_0x3c88ae(0x10f))/0xc)+parseInt(_0x3c88ae(0x110))/0xd*(parseInt(_0x3c88ae(0x103))/0xe);if(_0x1c5188===_0x260a54)break;else _0xcf48bd['push'](_0xcf48bd['shift']());}catch(_0x38a1b1){_0xcf48bd['push'](_0xcf48bd['shift']());}}}(a141_0x52d9,0xe89a3));function a141_0x5526(_0x16d098,_0x394041){const _0x52d9ce=a141_0x52d9();return a141_0x5526=function(_0x552657,_0x2700af){_0x552657=_0x552657-0xfd;let _0x249937=_0x52d9ce[_0x552657];return _0x249937;},a141_0x5526(_0x16d098,_0x394041);}const PerformanceTester=require(a141_0x3a64f0(0x123)),O11yEvents=require(a141_0x3a64f0(0x11f))[a141_0x3a64f0(0x104)];exports['overrideTakeScreenshot']=_0x386bc6=>{const _0x1ba967=a141_0x3a64f0,_0x3e44cc={'pSWjP':_0x1ba967(0x11e),'fisah':function(_0x156d43,_0x3460f5){return _0x156d43(_0x3460f5);},'AhIBt':function(_0x3880ed,_0x8d9abe){return _0x3880ed(_0x8d9abe);},'JjwvC':function(_0x3d6ba7,_0x5e04e5){return _0x3d6ba7!==_0x5e04e5;},'krrrz':_0x1ba967(0xfe)};if(_0x3e44cc[_0x1ba967(0x107)](process['env'][_0x1ba967(0x115)],_0x3e44cc['krrrz']))return;if(_0x386bc6[_0x1ba967(0x11b)])return;_0x386bc6[_0x1ba967(0x11b)]=!![],_0x386bc6[_0x1ba967(0x116)]=_0x386bc6['takeScreenshot'],_0x386bc6['takeScreenshot']=()=>{const _0x89bc2f=_0x1ba967,_0x1e71c5={'LVKFb':_0x3e44cc[_0x89bc2f(0x10d)],'ljCMN':function(_0x32b035,_0x3dc684){const _0x33ae64=_0x89bc2f;return _0x3e44cc[_0x33ae64(0x11a)](_0x32b035,_0x3dc684);},'uwHww':function(_0x13265d,_0x359cb0){const _0x23ccbb=_0x89bc2f;return _0x3e44cc[_0x23ccbb(0x120)](_0x13265d,_0x359cb0);}};return new Promise(function(_0x5cdfa6,_0xaa0fad){const _0x24aa8e=_0x89bc2f;_0x386bc6['initScreenshot']()['then'](_0x2675df=>{const _0x48c8f7=a141_0x5526;PerformanceTester[_0x48c8f7(0x124)](O11yEvents['TAKE_SCREENSHOT']),process[_0x48c8f7(0x102)]('bs:addLog:'+process[_0x48c8f7(0x109)],{'timestamp':new Date()[_0x48c8f7(0xff)](),'message':_0x2675df,'kind':_0x1e71c5['LVKFb']}),_0x1e71c5['ljCMN'](_0x5cdfa6,_0x2675df),PerformanceTester['end'](O11yEvents[_0x48c8f7(0x119)]);})[_0x24aa8e(0x101)](_0x46ec1d=>{const _0x3c0e12=_0x24aa8e;PerformanceTester[_0x3c0e12(0x106)](O11yEvents[_0x3c0e12(0x119)]),_0x1e71c5[_0x3c0e12(0x100)](_0xaa0fad,_0x46ec1d);});});};},exports[a141_0x3a64f0(0x10c)]=(_0x295aad,_0x22d451=null)=>{const _0x8cce43=a141_0x3a64f0,_0x397965={'rAKbf':function(_0x4c8402){return _0x4c8402();},'ZdAlX':function(_0x578ba6,_0x2fee19){return _0x578ba6>_0x2fee19;}};if(_0x295aad[_0x8cce43(0x10b)])return;_0x295aad['patchQuit']=!![],_0x295aad['initQuit']=_0x295aad[_0x8cce43(0x121)],_0x295aad[_0x8cce43(0x121)]=()=>{const _0x21ce6e=_0x8cce43;if(_0x22d451){_0x22d451['quitCount_']+=0x1;if(_0x397965['ZdAlX'](_0x22d451['quitCount_'],0x1))return _0x295aad[_0x21ce6e(0x125)]();}else{_0x295aad['quitCount_']+=0x1;if(_0x397965[_0x21ce6e(0x111)](_0x295aad[_0x21ce6e(0x11d)],0x1))return _0x295aad[_0x21ce6e(0x125)]();}return new Promise(function(_0x1b5a40){const _0x4cb44d=_0x21ce6e;_0x397965[_0x4cb44d(0x113)](_0x1b5a40);});};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a142_0x1152(_0x744438,_0x3ab736){const _0x22712b=a142_0x2271();return a142_0x1152=function(_0x11525a,_0x492f9a){_0x11525a=_0x11525a-0x90;let _0xd82053=_0x22712b[_0x11525a];return _0xd82053;},a142_0x1152(_0x744438,_0x3ab736);}const a142_0x4f117b=a142_0x1152;(function(_0x4617d7,_0x2663e0){const _0x49d606=a142_0x1152,_0x1241b3=_0x4617d7();while(!![]){try{const _0x5df41b=parseInt(_0x49d606(0xc0))/0x1+parseInt(_0x49d606(0xc2))/0x2+-parseInt(_0x49d606(0xb6))/0x3+parseInt(_0x49d606(0x9a))/0x4+parseInt(_0x49d606(0xa9))/0x5*(parseInt(_0x49d606(0xc5))/0x6)+parseInt(_0x49d606(0xae))/0x7*(-parseInt(_0x49d606(0xd2))/0x8)+-parseInt(_0x49d606(0xbb))/0x9;if(_0x5df41b===_0x2663e0)break;else _0x1241b3['push'](_0x1241b3['shift']());}catch(_0x266d3e){_0x1241b3['push'](_0x1241b3['shift']());}}}(a142_0x2271,0xb52e7));const fs=require('fs'),path=require(a142_0x4f117b(0xa6)),os=require('os'),{spawn}=require('child_process'),helper=require(a142_0x4f117b(0xdb)),logger=require(a142_0x4f117b(0xad))[a142_0x4f117b(0xd6)],{getLogDir}=require(a142_0x4f117b(0xad)),testHubConstants=require(a142_0x4f117b(0xcc)),PerformanceTester=require(a142_0x4f117b(0xb0)),{PERCY_EVENTS:PerformanceEvents}=require(a142_0x4f117b(0xdf)),PercyBinary=require(a142_0x4f117b(0xa1));function a142_0x2271(){const _0x1c18c7=['join','Hpjgm','./PercyBinary','env','data','http://localhost:5338','writeFile','path','DriNK','end','2090JbdAhN','PERCY_SERVER_ADDRESS','LkgDn','healthcheck','../logger','2560663cGQlNX','version','../../helpers/performance/performance-tester','projectName','exports','pipe','exec:stop','isProcessRunning','3120684Ncxlmo','&type=','nodeRequest','percy.json','LyOSw','1605690npRIJf','ksBOd','push','jErcK','exec','61793BWkFcv','stringify','2067096GmfGnu','start','pRZjs','7980sPfZcv','kEIFP','close','percy/healthcheck','Error\x20creating\x20percy\x20config:\x20',':start','createPercyConfig','../../helpers/testhub/constants','gyTqx','isRunning','wPQMx','app','getBinaryPath','8wBGyNC','tmpdir','oAaDT','tCAlb','winstonLogger','SCOha','createWriteStream','EwNGV','debug','../helper','app:exec','stop','token','../../helpers/performance/constants','fetchPercyToken','yEXyG','api/app_percy/get_project_token?name=','stdout','flags','xUizd','lHtBW','yfwZV','BROWSERSTACK_TESTHUB_UUID','error','GET','2701140dICFzl','percy.log','kEWRA','Percy\x20fetch\x20token\x20success','DOWNLOAD'];a142_0x2271=function(){return _0x1c18c7;};return a142_0x2271();}class Percy{#logfile=path[a142_0x4f117b(0x9f)](getLogDir(),a142_0x4f117b(0x9b));#address=process[a142_0x4f117b(0xa2)][a142_0x4f117b(0xaa)]||a142_0x4f117b(0xa4);#binaryPath=null;#config=null;#proc=null;#logStream=null;#isApp=![];[a142_0x4f117b(0xb5)]=![];constructor(_0x237040){const _0x4a0942=a142_0x4f117b;this.#config=_0x237040,!!_0x237040[_0x4a0942(0xd0)]&&(this.#isApp=!![]);}async #getBinaryPath(){const _0x1f88e9=a142_0x4f117b;if(!this.#binaryPath){const _0x3efb30=new PercyBinary();PerformanceTester[_0x1f88e9(0xc3)](PerformanceEvents[_0x1f88e9(0x9e)]),this.#binaryPath=await _0x3efb30[_0x1f88e9(0xd1)](this.#config),PerformanceTester['end'](PerformanceEvents[_0x1f88e9(0x9e)]);}return this.#binaryPath;}async #sleep(_0x57d8c5){return new Promise(_0x16ecc=>setTimeout(_0x16ecc,_0x57d8c5));}async[a142_0x4f117b(0xac)](){const _0x4c9fc1=a142_0x4f117b,_0x423e7e={};_0x423e7e[_0x4c9fc1(0x95)]='GET',_0x423e7e['EwYJg']=_0x4c9fc1(0xc8);const _0xf2a1f9=_0x423e7e;try{const _0x4be3c4=await helper[_0x4c9fc1(0xb8)](_0xf2a1f9[_0x4c9fc1(0x95)],_0xf2a1f9['EwYJg'],null,null,this.#address);if(_0x4be3c4)return!![];}catch(_0x37c647){return![];}}async[a142_0x4f117b(0xc3)](){const _0x4bc7b9=a142_0x4f117b,_0x52f0fb={'gyTqx':_0x4bc7b9(0xdc),'kEWRA':_0x4bc7b9(0xbf),'SCOha':function(_0x2b50c5,_0x3dd488,_0x1f8a97,_0x1cc87b){return _0x2b50c5(_0x3dd488,_0x1f8a97,_0x1cc87b);},'yEXyG':'close','pRZjs':'Percy\x20healthcheck\x20successful'},_0x320b3e=await this.#getBinaryPath(),_0x34dd0c={};_0x34dd0c[_0x4bc7b9(0x93)]='a',this.#logStream=fs[_0x4bc7b9(0xd8)](this.#logfile,_0x34dd0c);const _0x2f0f60=await this['fetchPercyToken'](),_0x19dfea=await this[_0x4bc7b9(0xcb)]();if(!_0x2f0f60)return![];const _0x5b801e=[(this.#isApp?_0x52f0fb[_0x4bc7b9(0xcd)]:_0x52f0fb[_0x4bc7b9(0x9c)])+_0x4bc7b9(0xca)];_0x19dfea&&_0x5b801e[_0x4bc7b9(0xbd)]('-c',_0x19dfea);this.#proc=_0x52f0fb[_0x4bc7b9(0xd7)](spawn,_0x320b3e,_0x5b801e,{'env':Object['assign'](process['env'],{'PERCY_TOKEN':_0x2f0f60,'TH_BUILD_UUID':process[_0x4bc7b9(0xa2)][testHubConstants['ENV_VAR'][_0x4bc7b9(0x97)]]})}),this.#proc[_0x4bc7b9(0x92)][_0x4bc7b9(0xb3)](this.#logStream),this.#proc['stderr'][_0x4bc7b9(0xb3)](this.#logStream),this[_0x4bc7b9(0xb5)]=!![];var _0x28c30e=this;this.#proc['on'](_0x52f0fb[_0x4bc7b9(0x90)],function(_0x27d8bf){_0x28c30e['isProcessRunning']=![];});do{const _0x5d6571=await this[_0x4bc7b9(0xac)]();if(_0x5d6571)return logger[_0x4bc7b9(0xda)](_0x52f0fb[_0x4bc7b9(0xc4)]),!![];await this.#sleep(0x3e8);}while(this['isProcessRunning']);return![];}async[a142_0x4f117b(0xdd)](){const _0x5018f4=a142_0x4f117b,_0x456b96={'ztpBw':function(_0x4abe3a,_0x2b9268){return _0x4abe3a(_0x2b9268);},'rLWcA':function(_0x57305f,_0x20b6ac,_0x438694){return _0x57305f(_0x20b6ac,_0x438694);},'xUizd':_0x5018f4(0xb4),'yfwZV':_0x5018f4(0xc7)},_0xb7644a=await this.#getBinaryPath();return new Promise((_0x2858e0,_0x3cb53c)=>{const _0x1f204c=_0x5018f4,_0xc19149={'cJGva':function(_0x242f0c,_0x4d282a){return _0x456b96['ztpBw'](_0x242f0c,_0x4d282a);}},_0x4a51b3=_0x456b96['rLWcA'](spawn,_0xb7644a,[_0x456b96[_0x1f204c(0x94)]]);_0x4a51b3['on'](_0x456b96[_0x1f204c(0x96)],_0x38eb72=>{const _0x5c910a=_0x1f204c;this['isProcessRunning']=![],this.#logStream&&(this.#logStream[_0x5c910a(0xa8)](),this.#logStream=null),_0xc19149['cJGva'](_0x2858e0,_0x38eb72);});});}[a142_0x4f117b(0xce)](){return this['isProcessRunning'];}async[a142_0x4f117b(0xe0)](){const _0x22ffee=a142_0x4f117b,_0x1f062a={};_0x1f062a[_0x22ffee(0xd4)]='app',_0x1f062a[_0x22ffee(0xc6)]='automate',_0x1f062a[_0x22ffee(0xcf)]=_0x22ffee(0x99),_0x1f062a[_0x22ffee(0xab)]=_0x22ffee(0x9d);const _0x14719e=_0x1f062a,_0x22a429=this.#config[_0x22ffee(0xb1)];try{const _0x1fd7c9=this.#isApp?_0x14719e[_0x22ffee(0xd4)]:_0x14719e['kEIFP'],_0x1a32c6=await helper[_0x22ffee(0xb8)](_0x14719e[_0x22ffee(0xcf)],_0x22ffee(0x91)+_0x22a429+_0x22ffee(0xb7)+_0x1fd7c9,{},this.#config),_0x2caeb9=_0x1a32c6[_0x22ffee(0xa3)];return logger['debug'](_0x14719e[_0x22ffee(0xab)]),_0x2caeb9[_0x22ffee(0xde)];}catch(_0x49b657){return logger[_0x22ffee(0x98)]('Percy\x20unable\x20to\x20fetch\x20project\x20token:\x20'+_0x49b657),null;}}async[a142_0x4f117b(0xcb)](){const _0x8fbae6=a142_0x4f117b,_0xd90abd={'tCAlb':function(_0x276147,_0x5a38f1){return _0x276147(_0x5a38f1);},'jErcK':function(_0x342fed,_0x2340c3){return _0x342fed+_0x2340c3;},'EwNGV':'Percy\x20config\x20created\x20at\x20','LyOSw':function(_0x24f4e6,_0x512d89){return _0x24f4e6(_0x512d89);},'Hpjgm':_0x8fbae6(0xb9)};if(!this.#config['percyOptions'])return null;const _0x5a43b4=path[_0x8fbae6(0x9f)](os[_0x8fbae6(0xd3)](),_0xd90abd[_0x8fbae6(0xa0)]),_0xf5a33e=this.#config['percyOptions'];return!_0xf5a33e[_0x8fbae6(0xaf)]&&(_0xf5a33e[_0x8fbae6(0xaf)]='2'),new Promise((_0x26d913,_0x1d7b65)=>{const _0x24c896=_0x8fbae6,_0x422fce={'rFwZl':function(_0x2e861b,_0x12d9a4){const _0x4bd556=a142_0x1152;return _0xd90abd[_0x4bd556(0xd5)](_0x2e861b,_0x12d9a4);},'DriNK':function(_0x879514,_0x2f53fb){const _0x7e1a8c=a142_0x1152;return _0xd90abd[_0x7e1a8c(0xbe)](_0x879514,_0x2f53fb);},'ksBOd':_0xd90abd[_0x24c896(0xd9)],'pFeGN':function(_0x213a7a,_0x4cf158){const _0x12d76d=_0x24c896;return _0xd90abd[_0x12d76d(0xba)](_0x213a7a,_0x4cf158);}};fs[_0x24c896(0xa5)](_0x5a43b4,JSON[_0x24c896(0xc1)](_0xf5a33e),_0x56ac7e=>{const _0x53dfe0=_0x24c896;_0x56ac7e&&(logger[_0x53dfe0(0x98)](_0x53dfe0(0xc9)+_0x56ac7e),_0x422fce['rFwZl'](_0x26d913,null)),logger[_0x53dfe0(0xda)](_0x422fce[_0x53dfe0(0xa7)](_0x422fce[_0x53dfe0(0xbc)],_0x5a43b4)),_0x422fce['pFeGN'](_0x26d913,_0x5a43b4);});});}}module[a142_0x4f117b(0xb2)]=Percy;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a143_0x344e(){const _0xfafd28=['trim','/percy-win.zip','end','xjgRG','percy.exe','pipe','Failed\x20to\x20save\x20ETag\x20file:\x20','uMCmm','createWriteStream','ByLwN','gdMwi','LNAME','url','match','pzutu','HahFS','oSCCh','../logger','DLJkO','ZKmyZ','homedir','TEEYT','needsUpdate','yauzl','getBinaryPath','Connection','YxHAK','CDpBG','length','stdout','HOMEPATH','platform','ewZeK','lazyEntries','destroy','proxyPort','XrIZM','0755','poXTW','770PzvikA','data','statSync','ZYYqL','headers','Got\x20Error\x20in\x20percy\x20binary\x20download\x20response:\x20','Newly\x20downloaded\x20Percy\x20binary\x20is\x20corrupt,\x20retrying','45GNyAaP','entry','Failed\x20to\x20check\x20for\x20binary\x20updates,\x20using\x20existing\x20binary:\x20','qokFE','JFBTX','hfkCL','https-proxy-agent','catch','FByBe','close','test','/home/','proxyHost','--version','xFhld','NteLH','IntiP','3756UkItAa','/Users/','/root','ZuUQg','cwd','.etag','125470DQEHEO','hbKCM','/percy-linux.zip','.browserstack','CiOeM','get','hVqBI','VFYCR','Error\x20trying\x20to\x20download\x20percy\x20binary','useCaCertificate','4686126rYwjOW','XYqQV','env','function','njmsO','lBYEx','408417LYvrHp','USER','157970lGOcIW','520bekdYQ','Percy\x20binary\x20is\x20up\x20to\x20date\x20(ETag\x20unchanged)','1790PYbcSv','fileName','download','then','error','child_process','daJsL','QAwNw','getuid','.zip','cadTp','USERNAME','hSwWx','pEPfY','utf8','CiUkM','mkdirSync','bpVFr','waMMC','/percy-osx.zip','winstonLogger','path','wKUud','Got\x20Error\x20in\x20percy\x20binary\x20downloading\x20request:\x20','ndYBS','join','extractAndSaveBinary','host','kJJKf','etag','qQnnj','open','tmpdir','IHOqH','XERfd','readFileSync','396732PGiKri','PbzMh','53649RQlEfp','Failed\x20to\x20read\x20ETag\x20file:\x20','USERPROFILE','linux','iMhEH','Percy\x20download\x20failed\x20to\x20read\x20cert\x20file:\x20','kqwPh','pmJoE','darwin','X_OK','https://github.com/percy/cli/releases/latest/download','jLIpt','follow-redirects','clIpO','Xuyyp','CjeML','readEntry','binaryPath','pPUsr','parse','warn','W_OK','debug','HOMEDRIVE','LOGNAME'];a143_0x344e=function(){return _0xfafd28;};return a143_0x344e();}const a143_0x481c37=a143_0x439a;(function(_0xa99c0c,_0x41580f){const _0x1a9de1=a143_0x439a,_0x21819c=_0xa99c0c();while(!![]){try{const _0x12d46d=parseInt(_0x1a9de1(0x24a))/0x1+parseInt(_0x1a9de1(0x23a))/0x2*(-parseInt(_0x1a9de1(0x223))/0x3)+parseInt(_0x1a9de1(0x234))/0x4*(-parseInt(_0x1a9de1(0x24f))/0x5)+parseInt(_0x1a9de1(0x244))/0x6+-parseInt(_0x1a9de1(0x273))/0x7+-parseInt(_0x1a9de1(0x24d))/0x8*(parseInt(_0x1a9de1(0x275))/0x9)+-parseInt(_0x1a9de1(0x24c))/0xa*(-parseInt(_0x1a9de1(0x21c))/0xb);if(_0x12d46d===_0x41580f)break;else _0x21819c['push'](_0x21819c['shift']());}catch(_0x1bc6d4){_0x21819c['push'](_0x21819c['shift']());}}}(a143_0x344e,0x8c1cc));const {https}=require(a143_0x481c37(0x1e8)),url=require(a143_0x481c37(0x201)),yauzl=require(a143_0x481c37(0x20c)),fs=require('fs'),path=require(a143_0x481c37(0x264)),os=require('os'),{spawn}=require(a143_0x481c37(0x254)),HttpsProxyAgent=require(a143_0x481c37(0x229)),logger=require(a143_0x481c37(0x206))[a143_0x481c37(0x263)];function a143_0x439a(_0x5a956f,_0x182d1b){const _0x344e55=a143_0x344e();return a143_0x439a=function(_0x439aa6,_0x5d1a01){_0x439aa6=_0x439aa6-0x1e5;let _0x166be3=_0x344e55[_0x439aa6];return _0x166be3;},a143_0x439a(_0x5a956f,_0x182d1b);}class PercyBinary{#hostOS=process[a143_0x481c37(0x214)];#httpPath=null;#binaryName='percy';#orderedPaths=[path[a143_0x481c37(0x268)](this.#homedir(),a143_0x481c37(0x23d)),process[a143_0x481c37(0x238)](),os[a143_0x481c37(0x26f)]()];constructor(){const _0x26fa33=a143_0x481c37,_0x30dcac={};_0x30dcac[_0x26fa33(0x21b)]=_0x26fa33(0x1e6),_0x30dcac[_0x26fa33(0x20a)]=function(_0x38b85d,_0x5d9ccf){return _0x38b85d+_0x5d9ccf;},_0x30dcac[_0x26fa33(0x256)]=_0x26fa33(0x262),_0x30dcac['idedz']=function(_0x1be300,_0x432433){return _0x1be300+_0x432433;},_0x30dcac[_0x26fa33(0x208)]=_0x26fa33(0x1f6),_0x30dcac[_0x26fa33(0x25c)]=_0x26fa33(0x1f9),_0x30dcac[_0x26fa33(0x245)]=_0x26fa33(0x23c);const _0x773d42=_0x30dcac,_0x6be5d5=_0x773d42['poXTW'];if(this.#hostOS[_0x26fa33(0x202)](/darwin|mac os/i))this.#httpPath=_0x773d42['TEEYT'](_0x6be5d5,_0x773d42['QAwNw']);else this.#hostOS[_0x26fa33(0x202)](/mswin|msys|mingw|cygwin|bccwin|wince|emc|win32/i)?(this.#httpPath=_0x773d42['idedz'](_0x6be5d5,_0x773d42[_0x26fa33(0x208)]),this.#binaryName=_0x773d42['pEPfY']):this.#httpPath=_0x773d42[_0x26fa33(0x20a)](_0x6be5d5,_0x773d42[_0x26fa33(0x245)]);}#getAvailableDirs(){const _0x23c833=a143_0x481c37,_0x925473={};_0x925473[_0x23c833(0x249)]=function(_0x5a617d,_0x3cfc7b){return _0x5a617d<_0x3cfc7b;},_0x925473[_0x23c833(0x26b)]=_0x23c833(0x242);const _0x3e316f=_0x925473;for(var _0x422c14=0x0;_0x3e316f[_0x23c833(0x249)](_0x422c14,this.#orderedPaths[_0x23c833(0x211)]);_0x422c14++){var _0xfd3764=this.#orderedPaths[_0x422c14];if(this.#makePath(_0xfd3764))return _0xfd3764;}throw new Error(_0x3e316f[_0x23c833(0x26b)]);}#makePath(_0x3747c1){const _0x6a937e=a143_0x481c37;try{return _0x3747c1&&!this.#checkPath(_0x3747c1)&&fs[_0x6a937e(0x25f)](_0x3747c1),!![];}catch{return![];}}#checkPath(_0x49c72c,_0x1009e4){const _0x5bdbe5=a143_0x481c37,_0x3051b9={};_0x3051b9['hVqBI']=function(_0x4eb469,_0x519f1e){return _0x4eb469|_0x519f1e;},_0x3051b9['TxEIE']=function(_0x2e6458,_0x42cc55){return _0x2e6458!==_0x42cc55;},_0x3051b9[_0x5bdbe5(0x210)]='undefined';const _0xc24d67=_0x3051b9;_0x1009e4=_0x1009e4||_0xc24d67[_0x5bdbe5(0x240)](fs['R_OK'],fs[_0x5bdbe5(0x1f1)]);try{return fs['accessSync'](_0x49c72c,_0x1009e4),!![];}catch(_0x41bfa5){if(_0xc24d67['TxEIE'](typeof fs['accessSync'],_0xc24d67['CDpBG']))return![];try{return fs[_0x5bdbe5(0x21e)](_0x49c72c),!![];}catch(_0x42ce3f){return![];}}}#getETagPath(_0x70d29b){const _0x1d1541=a143_0x481c37;return path[_0x1d1541(0x268)](_0x70d29b,this.#binaryName+_0x1d1541(0x239));}#loadETag(_0x5c2408){const _0x2115b5=a143_0x481c37,_0x49edda={};_0x49edda['wWiIU']=_0x2115b5(0x25d);const _0x3f9efb=_0x49edda,_0x23b003=this.#getETagPath(_0x5c2408);if(this.#checkPath(_0x23b003))try{return fs[_0x2115b5(0x272)](_0x23b003,_0x3f9efb['wWiIU'])[_0x2115b5(0x1f5)]();}catch(_0x27648c){logger[_0x2115b5(0x1f0)](_0x2115b5(0x276)+_0x27648c);}return null;}#saveETag(_0x381ea1,_0xa8d411){const _0x291ce5=a143_0x481c37,_0x4974a4={};_0x4974a4['wKUud']='Saved\x20new\x20ETag\x20for\x20percy\x20binary';const _0x25f8f5=_0x4974a4;if(!_0xa8d411)return;try{const _0x33b49f=this.#getETagPath(_0x381ea1);fs['writeFileSync'](_0x33b49f,_0xa8d411),logger[_0x291ce5(0x1f2)](_0x25f8f5[_0x291ce5(0x265)]);}catch(_0x3af2d7){logger['warn'](_0x291ce5(0x1fb)+_0x3af2d7);}}async #handleBinaryDownload(_0x55ed83,_0x49ea1e,_0x28917c){const _0x212e62=a143_0x481c37,_0x5ef7e6={};_0x5ef7e6[_0x212e62(0x255)]=_0x212e62(0x222);const _0x4fca93=_0x5ef7e6,_0x44c438=await this['validateBinary'](_0x55ed83[_0x212e62(0x1ed)]);if(!_0x44c438){logger[_0x212e62(0x253)](_0x4fca93[_0x212e62(0x255)]);const _0x522850=await this[_0x212e62(0x251)](_0x49ea1e,_0x28917c);return _0x522850[_0x212e62(0x1ed)];}return _0x55ed83[_0x212e62(0x1ed)];}async[a143_0x481c37(0x20d)](_0x184853){const _0x29e5db=a143_0x481c37,_0x19eda4={};_0x19eda4[_0x29e5db(0x231)]=_0x29e5db(0x24e),_0x19eda4[_0x29e5db(0x228)]='New\x20Percy\x20binary\x20version\x20available,\x20downloading\x20update';const _0x4bb9d5=_0x19eda4,_0x34f3df=this.#getAvailableDirs(),_0x1f06a1=path[_0x29e5db(0x268)](_0x34f3df,this.#binaryName);if(this.#checkPath(_0x1f06a1,fs[_0x29e5db(0x1e5)])){const _0xa7ccaf=this.#loadETag(_0x34f3df);if(_0xa7ccaf)try{const _0x17da66=await this[_0x29e5db(0x251)](_0x184853,_0x34f3df,_0xa7ccaf);if(!_0x17da66[_0x29e5db(0x20b)])return logger['debug'](_0x4bb9d5[_0x29e5db(0x231)]),_0x1f06a1;return logger[_0x29e5db(0x1f2)](_0x4bb9d5['hfkCL']),await this.#handleBinaryDownload(_0x17da66,_0x184853,_0x34f3df);}catch(_0x343186){return logger[_0x29e5db(0x1f0)](_0x29e5db(0x225)+_0x343186),_0x1f06a1;}}const _0xc1b998=await this[_0x29e5db(0x251)](_0x184853,_0x34f3df);return await this.#handleBinaryDownload(_0xc1b998,_0x184853,_0x34f3df);}['download'](_0x18cfaa,_0x2e0593,_0x3be099=null){const _0x4f26be=a143_0x481c37,_0x104503={'pPUsr':function(_0xc4e63a,_0x3d8e47){return _0xc4e63a(_0x3d8e47);},'pzutu':function(_0x51a31e,_0xb1b570){return _0x51a31e===_0xb1b570;},'uMCmm':_0x4f26be(0x253),'njmsO':_0x4f26be(0x22c),'aOmqp':function(_0x44b7f1,_0x1c9e75){return _0x44b7f1(_0x1c9e75);},'NteLH':function(_0x4f00ca,_0x2ae795){return _0x4f00ca+_0x2ae795;},'HahFS':_0x4f26be(0x258)};_0x2e0593&&!this.#checkPath(_0x2e0593)&&fs['mkdirSync'](_0x2e0593);const _0x4d0a32=this.#binaryName,_0x7d9cd7=path['join'](_0x2e0593,_0x104503[_0x4f26be(0x232)](_0x4d0a32,_0x104503[_0x4f26be(0x204)])),_0x400fa9=fs[_0x4f26be(0x1fd)](_0x7d9cd7),_0x5db29d=url[_0x4f26be(0x1ef)](this.#httpPath);if(_0x18cfaa[_0x4f26be(0x22f)]&&_0x18cfaa[_0x4f26be(0x218)]){const _0x106d82={};_0x106d82[_0x4f26be(0x26a)]=_0x18cfaa['proxyHost'],_0x106d82['port']=_0x18cfaa[_0x4f26be(0x218)],_0x5db29d['agent']=new HttpsProxyAgent(_0x106d82);}if(_0x18cfaa[_0x4f26be(0x243)])try{_0x5db29d['ca']=fs[_0x4f26be(0x272)](_0x18cfaa['useCaCertificate']);}catch(_0x4439a6){logger['error'](_0x4f26be(0x27a)+_0x4439a6);}if(_0x3be099){const _0x3f0d32={};_0x3f0d32['If-None-Match']=_0x3be099,_0x3f0d32[_0x4f26be(0x20e)]=_0x104503[_0x4f26be(0x248)],_0x5db29d[_0x4f26be(0x220)]=_0x3f0d32;}else{const _0x2f557b={};_0x2f557b[_0x4f26be(0x20e)]=_0x104503['njmsO'],_0x5db29d[_0x4f26be(0x220)]=_0x2f557b;}return new Promise((_0x53b111,_0x3655a8)=>{const _0x21785c=_0x4f26be,_0x2fa762={'clIpO':function(_0x231d4c,_0x55247e){return _0x104503['aOmqp'](_0x231d4c,_0x55247e);}};https[_0x21785c(0x23f)](_0x5db29d,_0xb71f00=>{const _0x43c68f=_0x21785c,_0x94f4ed={'fkbiI':function(_0x2e4861,_0x1fdc74){const _0x2e54ef=a143_0x439a;return _0x104503[_0x2e54ef(0x1ee)](_0x2e4861,_0x1fdc74);}};if(_0x3be099&&_0x104503[_0x43c68f(0x203)](_0xb71f00['statusCode'],0x130)){_0x400fa9[_0x43c68f(0x217)]();const _0xa61278={};_0xa61278[_0x43c68f(0x20b)]=![],_0x104503[_0x43c68f(0x1ee)](_0x53b111,_0xa61278);return;}const _0x47f33e=_0xb71f00[_0x43c68f(0x220)][_0x43c68f(0x26c)];_0x47f33e&&this.#saveETag(_0x2e0593,_0x47f33e),_0xb71f00[_0x43c68f(0x1fa)](_0x400fa9),_0xb71f00['on'](_0x104503[_0x43c68f(0x1fc)],function(_0x42df46){const _0x1179e4=_0x43c68f;logger[_0x1179e4(0x253)](_0x1179e4(0x221)+_0x42df46),_0x94f4ed['fkbiI'](_0x3655a8,_0x42df46);}),_0x400fa9['on'](_0x104503['uMCmm'],function(_0x113877){const _0x59da56=_0x43c68f;logger[_0x59da56(0x253)]('Got\x20Error\x20while\x20downloading\x20percy\x20binary\x20file:\x20'+_0x113877),_0x2fa762[_0x59da56(0x1e9)](_0x3655a8,_0x113877);}),_0x400fa9['on'](_0x104503[_0x43c68f(0x248)],()=>{const _0xbc5b32=_0x43c68f;this[_0xbc5b32(0x269)](_0x7d9cd7,_0x2e0593)[_0xbc5b32(0x252)](_0x3b7295=>_0x53b111({'needsUpdate':!![],'binaryPath':_0x3b7295}))[_0xbc5b32(0x22a)](_0x3655a8);});})['on'](_0x104503[_0x21785c(0x1fc)],function(_0x1de9d0){const _0x204c0a=_0x21785c;logger[_0x204c0a(0x253)](_0x204c0a(0x266)+_0x1de9d0),_0x104503['pPUsr'](_0x3655a8,_0x1de9d0);});});}[a143_0x481c37(0x269)](_0x1ddc0f,_0x1984cc){const _0x2c193a=a143_0x481c37,_0x38e2fd={'qokFE':function(_0x5e1117,_0x640951){return _0x5e1117(_0x640951);},'LgcFK':_0x2c193a(0x21a),'XrIZM':_0x2c193a(0x1f7),'bpVFr':function(_0x530389,_0x4d1f41){return _0x530389===_0x4d1f41;},'FByBe':_0x2c193a(0x224),'pmJoE':_0x2c193a(0x253)},_0x44b5d1=this.#binaryName,_0x560625=path[_0x2c193a(0x268)](_0x1984cc,_0x44b5d1);return new Promise((_0x52f7ee,_0x2a3415)=>{const _0x23de98=_0x2c193a,_0x60cf50={'ZuUQg':function(_0x4f266e,_0x4b7379){const _0x4f913f=a143_0x439a;return _0x38e2fd[_0x4f913f(0x226)](_0x4f266e,_0x4b7379);},'xjgRG':_0x38e2fd['LgcFK'],'hSwWx':_0x38e2fd[_0x23de98(0x219)],'ZYYqL':function(_0x38d6a1,_0x239a8f){const _0x46d935=_0x23de98;return _0x38e2fd[_0x46d935(0x260)](_0x38d6a1,_0x239a8f);},'xYJgg':_0x38e2fd[_0x23de98(0x22b)],'fSGkw':_0x38e2fd[_0x23de98(0x27c)]},_0x58df96={};_0x58df96[_0x23de98(0x216)]=!![],yauzl[_0x23de98(0x26e)](_0x1ddc0f,_0x58df96,function(_0x41615a,_0x940c){const _0x39a701=_0x23de98,_0x5a4662={'IntiP':function(_0x7f3713,_0x44e0a4){const _0x32a521=a143_0x439a;return _0x60cf50[_0x32a521(0x237)](_0x7f3713,_0x44e0a4);},'waMMC':_0x60cf50[_0x39a701(0x25b)],'PbzMh':function(_0xc46101,_0xb9af66){const _0x495b6a=_0x39a701;return _0x60cf50[_0x495b6a(0x21f)](_0xc46101,_0xb9af66);}};_0x41615a&&_0x60cf50[_0x39a701(0x237)](_0x2a3415,_0x41615a),_0x940c[_0x39a701(0x1ec)](),_0x940c['on'](_0x60cf50['xYJgg'],_0x5dc547=>{const _0x358727=_0x39a701,_0x2167b4={'oSCCh':function(_0x930d55,_0x2884d5){const _0x36b4b2=a143_0x439a;return _0x5a4662[_0x36b4b2(0x233)](_0x930d55,_0x2884d5);},'ewZeK':_0x5a4662[_0x358727(0x261)]};if(/\/$/[_0x358727(0x22d)](_0x5dc547[_0x358727(0x250)]))_0x940c[_0x358727(0x1ec)]();else{const _0x248490=fs[_0x358727(0x1fd)](path[_0x358727(0x268)](_0x1984cc,_0x5dc547[_0x358727(0x250)]));_0x940c['openReadStream'](_0x5dc547,function(_0x1a1f2f,_0x72f58f){const _0x1a16c3=_0x358727;_0x1a1f2f&&_0x2167b4[_0x1a16c3(0x205)](_0x2a3415,_0x41615a),_0x72f58f['on'](_0x2167b4[_0x1a16c3(0x215)],function(){const _0x1b3584=_0x1a16c3;_0x248490[_0x1b3584(0x22c)](),_0x940c['readEntry']();}),_0x72f58f[_0x1a16c3(0x1fa)](_0x248490);}),_0x5a4662[_0x358727(0x274)](_0x5dc547[_0x358727(0x250)],_0x44b5d1)&&_0x940c[_0x358727(0x22c)]();}}),_0x940c['on'](_0x60cf50['fSGkw'],_0x2acd95=>{const _0xaadd2a=_0x39a701;_0x60cf50[_0xaadd2a(0x237)](_0x2a3415,_0x2acd95);}),_0x940c['once'](_0x60cf50[_0x39a701(0x25b)],()=>{const _0x47962d=_0x39a701,_0x227e4a={'lUPEV':function(_0x34bc06,_0x4c5663){return _0x60cf50['ZuUQg'](_0x34bc06,_0x4c5663);},'vqeSZ':function(_0x3c540d,_0x1089fa){const _0x5d14b4=a143_0x439a;return _0x60cf50[_0x5d14b4(0x237)](_0x3c540d,_0x1089fa);}};fs['chmod'](_0x560625,_0x60cf50[_0x47962d(0x1f8)],function(_0x42122f){_0x42122f&&_0x227e4a['lUPEV'](_0x2a3415,_0x42122f),_0x227e4a['vqeSZ'](_0x52f7ee,_0x560625);}),_0x940c[_0x47962d(0x22c)]();});});});}async['validateBinary'](_0x15631c){const _0x305b1f=a143_0x481c37,_0x52add4={'kqwPh':function(_0x46f42e,_0x467c0a){return _0x46f42e(_0x467c0a);},'IHOqH':function(_0x7134c3,_0x3d6f6e){return _0x7134c3(_0x3d6f6e);},'CiUkM':function(_0x241a76,_0x394b19,_0x44156b,_0x5c01cf){return _0x241a76(_0x394b19,_0x44156b,_0x5c01cf);},'hbKCM':_0x305b1f(0x230),'cadTp':_0x305b1f(0x21d),'JFBTX':_0x305b1f(0x22c)},_0xdd829d=/^.*@percy\/cli \d.\d+.\d+/;return new Promise((_0x57003a,_0x45b578)=>{const _0x2582d0=_0x305b1f,_0x37c2fe={};_0x37c2fe[_0x2582d0(0x246)]=process[_0x2582d0(0x246)];const _0x583304=_0x52add4[_0x2582d0(0x25e)](spawn,_0x15631c,[_0x52add4[_0x2582d0(0x23b)]],_0x37c2fe);_0x583304[_0x2582d0(0x212)]['on'](_0x52add4[_0x2582d0(0x259)],_0x364a78=>{const _0x8e1b3d=_0x2582d0;_0xdd829d[_0x8e1b3d(0x22d)](_0x364a78)&&_0x52add4[_0x8e1b3d(0x27b)](_0x57003a,!![]);}),_0x583304['on'](_0x52add4[_0x2582d0(0x227)],()=>{const _0x12d496=_0x2582d0;_0x52add4[_0x12d496(0x270)](_0x57003a,![]);});});}#homedir(){const _0x107ba2=a143_0x481c37,_0x3db1e0={};_0x3db1e0[_0x107ba2(0x271)]=function(_0x41f85b,_0x5fe90c){return _0x41f85b===_0x5fe90c;},_0x3db1e0['DLJkO']=_0x107ba2(0x247),_0x3db1e0[_0x107ba2(0x267)]=function(_0x1e0db3,_0x4af01e){return _0x1e0db3===_0x4af01e;},_0x3db1e0['iMhEH']='win32',_0x3db1e0[_0x107ba2(0x1eb)]=function(_0x527d73,_0x3611b7){return _0x527d73+_0x3611b7;},_0x3db1e0['tOCGq']=_0x107ba2(0x27d),_0x3db1e0[_0x107ba2(0x23e)]=function(_0xb49ec9,_0x909e94){return _0xb49ec9+_0x909e94;},_0x3db1e0['Xuyyp']=_0x107ba2(0x235),_0x3db1e0['qQnnj']=function(_0x1c8f3a,_0xfef1b4){return _0x1c8f3a===_0xfef1b4;},_0x3db1e0[_0x107ba2(0x1fe)]=_0x107ba2(0x278),_0x3db1e0['gdMwi']=function(_0x30d67e,_0x28d2df){return _0x30d67e===_0x28d2df;},_0x3db1e0[_0x107ba2(0x241)]=_0x107ba2(0x236),_0x3db1e0[_0x107ba2(0x1e7)]=_0x107ba2(0x22e),_0x3db1e0['YxHAK']=function(_0xcda604,_0x456018){return _0xcda604||_0x456018;};const _0x4698ce=_0x3db1e0;if(_0x4698ce[_0x107ba2(0x271)](typeof os[_0x107ba2(0x209)],_0x4698ce[_0x107ba2(0x207)]))return os['homedir']();const _0x4e70cd=process[_0x107ba2(0x246)],_0x3730e8=_0x4e70cd['HOME'],_0x2de61a=_0x4e70cd[_0x107ba2(0x1f4)]||_0x4e70cd[_0x107ba2(0x24b)]||_0x4e70cd[_0x107ba2(0x200)]||_0x4e70cd[_0x107ba2(0x25a)];if(_0x4698ce[_0x107ba2(0x267)](process['platform'],_0x4698ce[_0x107ba2(0x279)]))return _0x4e70cd[_0x107ba2(0x277)]||_0x4698ce['CjeML'](_0x4e70cd[_0x107ba2(0x1f3)],_0x4e70cd[_0x107ba2(0x213)])||_0x3730e8||null;if(_0x4698ce['XERfd'](process[_0x107ba2(0x214)],_0x4698ce['tOCGq']))return _0x3730e8||(_0x2de61a?_0x4698ce[_0x107ba2(0x23e)](_0x4698ce[_0x107ba2(0x1ea)],_0x2de61a):null);if(_0x4698ce[_0x107ba2(0x26d)](process[_0x107ba2(0x214)],_0x4698ce[_0x107ba2(0x1fe)]))return _0x3730e8||(_0x4698ce[_0x107ba2(0x1ff)](process[_0x107ba2(0x257)](),0x0)?_0x4698ce['VFYCR']:_0x2de61a?_0x4698ce[_0x107ba2(0x23e)](_0x4698ce[_0x107ba2(0x1e7)],_0x2de61a):null);return _0x4698ce[_0x107ba2(0x20f)](_0x3730e8,null);}}module['exports']=PercyBinary;
|
|
1
|
+
const a143_0x2308a4=a143_0x5a02;(function(_0x596425,_0x55376f){const _0x43c492=a143_0x5a02,_0x47821d=_0x596425();while(!![]){try{const _0x2fc41a=parseInt(_0x43c492(0x171))/0x1+parseInt(_0x43c492(0x123))/0x2+-parseInt(_0x43c492(0x144))/0x3+parseInt(_0x43c492(0x148))/0x4*(-parseInt(_0x43c492(0x131))/0x5)+-parseInt(_0x43c492(0x177))/0x6+parseInt(_0x43c492(0x164))/0x7+-parseInt(_0x43c492(0x116))/0x8*(-parseInt(_0x43c492(0x11e))/0x9);if(_0x2fc41a===_0x55376f)break;else _0x47821d['push'](_0x47821d['shift']());}catch(_0x487443){_0x47821d['push'](_0x47821d['shift']());}}}(a143_0x1a9d,0x7091f));const {https}=require(a143_0x2308a4(0x141)),url=require(a143_0x2308a4(0x119)),yauzl=require(a143_0x2308a4(0x15d)),fs=require('fs'),path=require(a143_0x2308a4(0x105)),os=require('os'),{spawn}=require(a143_0x2308a4(0x168)),HttpsProxyAgent=require(a143_0x2308a4(0x157)),logger=require('../logger')[a143_0x2308a4(0xf8)];class PercyBinary{#hostOS=process[a143_0x2308a4(0x159)];#httpPath=null;#binaryName=a143_0x2308a4(0x15a);#orderedPaths=[path[a143_0x2308a4(0x184)](this.#homedir(),'.browserstack'),process['cwd'](),os[a143_0x2308a4(0x127)]()];constructor(){const _0x5ba8c0=a143_0x2308a4,_0x52c369={};_0x52c369['YiHha']='https://github.com/percy/cli/releases/latest/download',_0x52c369[_0x5ba8c0(0x14a)]=function(_0x266fc3,_0x33a63b){return _0x266fc3+_0x33a63b;},_0x52c369[_0x5ba8c0(0x16e)]=_0x5ba8c0(0x110),_0x52c369[_0x5ba8c0(0x138)]=_0x5ba8c0(0x128),_0x52c369['sPxir']='percy.exe',_0x52c369['pDQRK']=function(_0x36ee2f,_0x2ba1d4){return _0x36ee2f+_0x2ba1d4;},_0x52c369[_0x5ba8c0(0x10a)]=_0x5ba8c0(0xfe);const _0xb602d8=_0x52c369,_0x2a6c70=_0xb602d8['YiHha'];if(this.#hostOS['match'](/darwin|mac os/i))this.#httpPath=_0xb602d8[_0x5ba8c0(0x14a)](_0x2a6c70,_0xb602d8[_0x5ba8c0(0x16e)]);else this.#hostOS[_0x5ba8c0(0x182)](/mswin|msys|mingw|cygwin|bccwin|wince|emc|win32/i)?(this.#httpPath=_0xb602d8[_0x5ba8c0(0x14a)](_0x2a6c70,_0xb602d8[_0x5ba8c0(0x138)]),this.#binaryName=_0xb602d8[_0x5ba8c0(0x100)]):this.#httpPath=_0xb602d8[_0x5ba8c0(0x120)](_0x2a6c70,_0xb602d8[_0x5ba8c0(0x10a)]);}#getAvailableDirs(){const _0x1a4c63=a143_0x2308a4,_0x21f0fa={};_0x21f0fa[_0x1a4c63(0x12b)]=function(_0x36a413,_0x268f14){return _0x36a413<_0x268f14;},_0x21f0fa[_0x1a4c63(0x140)]=_0x1a4c63(0x126);const _0x47e0d5=_0x21f0fa;for(var _0x25205b=0x0;_0x47e0d5[_0x1a4c63(0x12b)](_0x25205b,this.#orderedPaths[_0x1a4c63(0x146)]);_0x25205b++){var _0x1dd7b2=this.#orderedPaths[_0x25205b];if(this.#makePath(_0x1dd7b2))return _0x1dd7b2;}throw new Error(_0x47e0d5['WeZQw']);}#makePath(_0x52f5be){const _0x28b0e8=a143_0x2308a4;try{return _0x52f5be&&!this.#checkPath(_0x52f5be)&&fs[_0x28b0e8(0xf5)](_0x52f5be),!![];}catch{return![];}}#checkPath(_0x251bc0,_0x285ded){const _0x49c280=a143_0x2308a4,_0xd3939={};_0xd3939[_0x49c280(0xf6)]=function(_0x47aa5f,_0x523a50){return _0x47aa5f|_0x523a50;},_0xd3939[_0x49c280(0x145)]=function(_0x2d98d3,_0x27fd0e){return _0x2d98d3!==_0x27fd0e;},_0xd3939[_0x49c280(0x17e)]='undefined';const _0x248584=_0xd3939;_0x285ded=_0x285ded||_0x248584[_0x49c280(0xf6)](fs[_0x49c280(0x10f)],fs[_0x49c280(0x111)]);try{return fs[_0x49c280(0x176)](_0x251bc0,_0x285ded),!![];}catch(_0x496fb1){if(_0x248584[_0x49c280(0x145)](typeof fs[_0x49c280(0x176)],_0x248584[_0x49c280(0x17e)]))return![];try{return fs[_0x49c280(0x17f)](_0x251bc0),!![];}catch(_0x135958){return![];}}}#getETagPath(_0x5dfcdc){const _0x19aac4=a143_0x2308a4;return path[_0x19aac4(0x184)](_0x5dfcdc,this.#binaryName+_0x19aac4(0x139));}#loadETag(_0x34a94b){const _0xd99d3d=a143_0x2308a4,_0xf51ec={};_0xf51ec[_0xd99d3d(0x167)]='utf8';const _0x54bf12=_0xf51ec,_0x4c3da0=this.#getETagPath(_0x34a94b);if(this.#checkPath(_0x4c3da0))try{return fs['readFileSync'](_0x4c3da0,_0x54bf12[_0xd99d3d(0x167)])['trim']();}catch(_0x28b512){logger[_0xd99d3d(0x13a)]('Failed\x20to\x20read\x20ETag\x20file:\x20'+_0x28b512);}return null;}#saveETag(_0x41ee59,_0x301440){const _0x5f4cb4=a143_0x2308a4,_0x3df949={};_0x3df949['aNrro']='Saved\x20new\x20ETag\x20for\x20percy\x20binary';const _0x11d0f7=_0x3df949;if(!_0x301440)return;try{const _0x347740=this.#getETagPath(_0x41ee59);fs[_0x5f4cb4(0x142)](_0x347740,_0x301440),logger[_0x5f4cb4(0x15f)](_0x11d0f7[_0x5f4cb4(0x103)]);}catch(_0x25340f){logger[_0x5f4cb4(0x13a)](_0x5f4cb4(0x162)+_0x25340f);}}async #handleBinaryDownload(_0x58aea2,_0x2b30a5,_0x30082c){const _0x322235=a143_0x2308a4,_0xc21ccd={};_0xc21ccd[_0x322235(0xff)]=_0x322235(0xfb);const _0x1aebf8=_0xc21ccd,_0x1de2ab=await this[_0x322235(0x101)](_0x58aea2[_0x322235(0x13b)]);if(!_0x1de2ab){logger[_0x322235(0x11b)](_0x1aebf8[_0x322235(0xff)]);const _0x50b201=await this[_0x322235(0x130)](_0x2b30a5,_0x30082c);return _0x50b201['binaryPath'];}return _0x58aea2[_0x322235(0x13b)];}async[a143_0x2308a4(0x12f)](_0x4e958e){const _0x3eac9e=a143_0x2308a4,_0x450d34={};_0x450d34[_0x3eac9e(0x112)]='Percy\x20binary\x20is\x20up\x20to\x20date\x20(ETag\x20unchanged)',_0x450d34[_0x3eac9e(0x122)]=_0x3eac9e(0x185);const _0x26743a=_0x450d34,_0x331e7f=this.#getAvailableDirs(),_0x2a1f79=path[_0x3eac9e(0x184)](_0x331e7f,this.#binaryName);if(this.#checkPath(_0x2a1f79,fs[_0x3eac9e(0x183)])){const _0x59a679=this.#loadETag(_0x331e7f);if(_0x59a679)try{const _0x271616=await this[_0x3eac9e(0x130)](_0x4e958e,_0x331e7f,_0x59a679);if(!_0x271616['needsUpdate'])return logger[_0x3eac9e(0x15f)](_0x26743a[_0x3eac9e(0x112)]),_0x2a1f79;return logger[_0x3eac9e(0x15f)](_0x26743a['FnQDH']),await this.#handleBinaryDownload(_0x271616,_0x4e958e,_0x331e7f);}catch(_0x7b6bc2){return logger[_0x3eac9e(0x13a)](_0x3eac9e(0x15b)+_0x7b6bc2),_0x2a1f79;}}const _0x4e97f9=await this[_0x3eac9e(0x130)](_0x4e958e,_0x331e7f);return await this.#handleBinaryDownload(_0x4e97f9,_0x4e958e,_0x331e7f);}['download'](_0xb59fc9,_0x37d3b8,_0x8f6169=null){const _0x4b2652=a143_0x2308a4,_0x195c15={'iQAtr':function(_0x5934ca,_0x1afd45){return _0x5934ca(_0x1afd45);},'NqPtw':function(_0x52afcc,_0x2f2152){return _0x52afcc===_0x2f2152;},'imOkO':function(_0x12ef06,_0x16e557){return _0x12ef06(_0x16e557);},'iEkwH':'error','sMynw':_0x4b2652(0x150),'wAjah':function(_0x531c39,_0x3b0346){return _0x531c39+_0x3b0346;},'QDAxz':_0x4b2652(0x155)};_0x37d3b8&&!this.#checkPath(_0x37d3b8)&&fs[_0x4b2652(0xf5)](_0x37d3b8);const _0x428228=this.#binaryName,_0x4721a9=path[_0x4b2652(0x184)](_0x37d3b8,_0x195c15['wAjah'](_0x428228,_0x195c15['QDAxz'])),_0xa9cc6c=fs[_0x4b2652(0x16b)](_0x4721a9),_0x4e92e6=url[_0x4b2652(0x181)](this.#httpPath);if(_0xb59fc9[_0x4b2652(0x12a)]&&_0xb59fc9['proxyPort']){const _0x149d86={};_0x149d86['host']=_0xb59fc9[_0x4b2652(0x12a)],_0x149d86[_0x4b2652(0x113)]=_0xb59fc9[_0x4b2652(0x133)],_0x4e92e6[_0x4b2652(0x132)]=new HttpsProxyAgent(_0x149d86);}if(_0xb59fc9[_0x4b2652(0x17d)])try{_0x4e92e6['ca']=fs[_0x4b2652(0x174)](_0xb59fc9[_0x4b2652(0x17d)]);}catch(_0x10da53){logger[_0x4b2652(0x11b)]('Percy\x20download\x20failed\x20to\x20read\x20cert\x20file:\x20'+_0x10da53);}if(_0x8f6169){const _0x46032b={};_0x46032b['If-None-Match']=_0x8f6169,_0x46032b[_0x4b2652(0x13d)]=_0x195c15[_0x4b2652(0x187)],_0x4e92e6[_0x4b2652(0x172)]=_0x46032b;}else{const _0x4233eb={};_0x4233eb[_0x4b2652(0x13d)]=_0x195c15[_0x4b2652(0x187)],_0x4e92e6[_0x4b2652(0x172)]=_0x4233eb;}return new Promise((_0x14e54a,_0x45d55c)=>{const _0x8a6e=_0x4b2652;https[_0x8a6e(0x10b)](_0x4e92e6,_0xdd4733=>{const _0x130d11=_0x8a6e,_0x22c834={'OAdwG':function(_0x2c4567,_0x5cd5e0){const _0x303a66=a143_0x5a02;return _0x195c15[_0x303a66(0x10d)](_0x2c4567,_0x5cd5e0);},'zJiLp':function(_0x36b032,_0x47cff9){return _0x195c15['iQAtr'](_0x36b032,_0x47cff9);}};if(_0x8f6169&&_0x195c15[_0x130d11(0x151)](_0xdd4733[_0x130d11(0x124)],0x130)){_0xa9cc6c[_0x130d11(0x16c)]();const _0x5b7006={};_0x5b7006[_0x130d11(0x169)]=![],_0x195c15[_0x130d11(0x14b)](_0x14e54a,_0x5b7006);return;}const _0x5020a6=_0xdd4733[_0x130d11(0x172)]['etag'];_0x5020a6&&this.#saveETag(_0x37d3b8,_0x5020a6),_0xdd4733[_0x130d11(0x121)](_0xa9cc6c),_0xdd4733['on'](_0x195c15['iEkwH'],function(_0x916a97){const _0x5b6528=_0x130d11;logger[_0x5b6528(0x11b)](_0x5b6528(0x12d)+_0x916a97),_0x22c834[_0x5b6528(0x186)](_0x45d55c,_0x916a97);}),_0xa9cc6c['on'](_0x195c15[_0x130d11(0x175)],function(_0x15a157){const _0x326880=_0x130d11;logger['error'](_0x326880(0x152)+_0x15a157),_0x22c834[_0x326880(0x114)](_0x45d55c,_0x15a157);}),_0xa9cc6c['on'](_0x195c15['sMynw'],()=>{const _0x3ca4ee=_0x130d11;this[_0x3ca4ee(0x14e)](_0x4721a9,_0x37d3b8)['then'](_0x4e72db=>_0x14e54a({'needsUpdate':!![],'binaryPath':_0x4e72db}))[_0x3ca4ee(0x156)](_0x45d55c);});})['on'](_0x195c15[_0x8a6e(0x175)],function(_0x2c9742){const _0x975c34=_0x8a6e;logger[_0x975c34(0x11b)](_0x975c34(0x15c)+_0x2c9742),_0x195c15['iQAtr'](_0x45d55c,_0x2c9742);});});}['extractAndSaveBinary'](_0x51cbd1,_0x1c32b6){const _0x4fb66e=a143_0x2308a4,_0x34d863={'vTOAb':function(_0x5b72bf,_0xda5600){return _0x5b72bf===_0xda5600;},'rUZzz':_0x4fb66e(0x13c),'sUZRp':function(_0x25f97f,_0x1f0f32){return _0x25f97f(_0x1f0f32);},'uNSxf':_0x4fb66e(0x16d),'OpzMl':_0x4fb66e(0x107),'cqwoH':'error'},_0x352970=this.#binaryName,_0x45012d=path[_0x4fb66e(0x184)](_0x1c32b6,_0x352970);return new Promise((_0x5bbab1,_0x224d68)=>{const _0x13d412=_0x4fb66e,_0x2bf948={'dPgOo':function(_0x19b191,_0x33b2f5){const _0x384a4c=a143_0x5a02;return _0x34d863[_0x384a4c(0x115)](_0x19b191,_0x33b2f5);},'HfBgG':_0x34d863['rUZzz'],'GVfVa':function(_0x369331,_0x45c5d4){return _0x34d863['sUZRp'](_0x369331,_0x45c5d4);},'PhoNa':_0x34d863[_0x13d412(0x102)],'kHJat':_0x34d863[_0x13d412(0x11f)],'fmrgY':_0x34d863['cqwoH']},_0x1c370e={};_0x1c370e[_0x13d412(0x109)]=!![],yauzl[_0x13d412(0xf7)](_0x51cbd1,_0x1c370e,function(_0xb32b69,_0x3d6779){const _0x5afe6b=_0x13d412,_0x4f7b9d={'kIjdn':function(_0x4b7054,_0x206ad6){const _0x4a6c4f=a143_0x5a02;return _0x2bf948[_0x4a6c4f(0x147)](_0x4b7054,_0x206ad6);},'AaGnp':_0x2bf948['PhoNa']};_0xb32b69&&_0x2bf948[_0x5afe6b(0x147)](_0x224d68,_0xb32b69),_0x3d6779['readEntry'](),_0x3d6779['on'](_0x2bf948[_0x5afe6b(0xfa)],_0x41d96b=>{const _0x34bbb4=_0x5afe6b;if(/\/$/['test'](_0x41d96b[_0x34bbb4(0x15e)]))_0x3d6779['readEntry']();else{const _0x3ac10a=fs[_0x34bbb4(0x16b)](path[_0x34bbb4(0x184)](_0x1c32b6,_0x41d96b[_0x34bbb4(0x15e)]));_0x3d6779[_0x34bbb4(0x104)](_0x41d96b,function(_0x350398,_0x2398cb){const _0x8def46=_0x34bbb4;_0x350398&&_0x4f7b9d[_0x8def46(0x11c)](_0x224d68,_0xb32b69),_0x2398cb['on'](_0x4f7b9d[_0x8def46(0xf9)],function(){const _0x4b2776=_0x8def46;_0x3ac10a[_0x4b2776(0x150)](),_0x3d6779[_0x4b2776(0x17a)]();}),_0x2398cb[_0x8def46(0x121)](_0x3ac10a);}),_0x2bf948[_0x34bbb4(0x170)](_0x41d96b[_0x34bbb4(0x15e)],_0x352970)&&_0x3d6779[_0x34bbb4(0x150)]();}}),_0x3d6779['on'](_0x2bf948[_0x5afe6b(0xfd)],_0x21e2ff=>{const _0x1f352b=_0x5afe6b;_0x4f7b9d[_0x1f352b(0x11c)](_0x224d68,_0x21e2ff);}),_0x3d6779[_0x5afe6b(0x17b)](_0x2bf948[_0x5afe6b(0x137)],()=>{const _0x17780=_0x5afe6b;fs[_0x17780(0x16f)](_0x45012d,_0x2bf948[_0x17780(0x188)],function(_0x3fa099){const _0x3fe379=_0x17780;_0x3fa099&&_0x4f7b9d[_0x3fe379(0x11c)](_0x224d68,_0x3fa099),_0x4f7b9d[_0x3fe379(0x11c)](_0x5bbab1,_0x45012d);}),_0x3d6779['close']();});});});}async[a143_0x2308a4(0x101)](_0x3b198f){const _0x4d393d=a143_0x2308a4,_0x3382aa={'vybvJ':function(_0x3568af,_0xba3561){return _0x3568af(_0xba3561);},'spdPy':function(_0x5a0d6a,_0x1fc23a){return _0x5a0d6a(_0x1fc23a);},'NFVVB':function(_0x49e760,_0x9e40cc,_0x550ba4,_0x1339f7){return _0x49e760(_0x9e40cc,_0x550ba4,_0x1339f7);},'yelqN':'--version','ocdBr':_0x4d393d(0x134),'cDYtH':_0x4d393d(0x150)},_0x4a0fcb=/^.*@percy\/cli \d.\d+.\d+/;return new Promise((_0x31c33c,_0x38ad76)=>{const _0x435e94=_0x4d393d,_0x21458d={'USLYo':function(_0x2608ae,_0x9a02af){const _0x3cce9e=a143_0x5a02;return _0x3382aa[_0x3cce9e(0x189)](_0x2608ae,_0x9a02af);}},_0x46bd31={};_0x46bd31[_0x435e94(0x17c)]=process[_0x435e94(0x17c)];const _0x5d2685=_0x3382aa[_0x435e94(0x125)](spawn,_0x3b198f,[_0x3382aa[_0x435e94(0x118)]],_0x46bd31);_0x5d2685[_0x435e94(0xfc)]['on'](_0x3382aa[_0x435e94(0x179)],_0x5f3617=>{const _0x2cb4f4=_0x435e94;_0x4a0fcb[_0x2cb4f4(0x12c)](_0x5f3617)&&_0x21458d[_0x2cb4f4(0x135)](_0x31c33c,!![]);}),_0x5d2685['on'](_0x3382aa[_0x435e94(0x106)],()=>{const _0x30c673=_0x435e94;_0x3382aa[_0x30c673(0x10c)](_0x31c33c,![]);});});}#homedir(){const _0xebef65=a143_0x2308a4,_0x294c27={};_0x294c27[_0xebef65(0x16a)]=function(_0xb7f98e,_0x3ee83a){return _0xb7f98e===_0x3ee83a;},_0x294c27[_0xebef65(0x117)]=_0xebef65(0x11d),_0x294c27['FxkSi']=function(_0x592d90,_0x53e1a5){return _0x592d90===_0x53e1a5;},_0x294c27[_0xebef65(0x149)]=_0xebef65(0x153),_0x294c27[_0xebef65(0x165)]=function(_0x4c7aef,_0xd67f25){return _0x4c7aef+_0xd67f25;},_0x294c27['zuTgb']=_0xebef65(0x180),_0x294c27[_0xebef65(0x14c)]=_0xebef65(0x14d),_0x294c27[_0xebef65(0x13e)]=_0xebef65(0x129),_0x294c27[_0xebef65(0x12e)]=function(_0x67d5d,_0x215fbf){return _0x67d5d===_0x215fbf;},_0x294c27[_0xebef65(0x14f)]=_0xebef65(0x160),_0x294c27[_0xebef65(0x108)]=_0xebef65(0x143),_0x294c27[_0xebef65(0x166)]=function(_0x251e3e,_0x3e637b){return _0x251e3e||_0x3e637b;};const _0x5cbb76=_0x294c27;if(_0x5cbb76['HSqaT'](typeof os['homedir'],_0x5cbb76[_0xebef65(0x117)]))return os[_0xebef65(0x11a)]();const _0x36dca6=process['env'],_0x528305=_0x36dca6['HOME'],_0x3ec5b1=_0x36dca6[_0xebef65(0x13f)]||_0x36dca6[_0xebef65(0x178)]||_0x36dca6['LNAME']||_0x36dca6[_0xebef65(0x161)];if(_0x5cbb76[_0xebef65(0x173)](process[_0xebef65(0x159)],_0x5cbb76['ZSWaG']))return _0x36dca6[_0xebef65(0x136)]||_0x5cbb76[_0xebef65(0x165)](_0x36dca6['HOMEDRIVE'],_0x36dca6[_0xebef65(0x163)])||_0x528305||null;if(_0x5cbb76[_0xebef65(0x173)](process[_0xebef65(0x159)],_0x5cbb76[_0xebef65(0x158)]))return _0x528305||(_0x3ec5b1?_0x5cbb76[_0xebef65(0x165)](_0x5cbb76['isxea'],_0x3ec5b1):null);if(_0x5cbb76['HSqaT'](process['platform'],_0x5cbb76[_0xebef65(0x13e)]))return _0x528305||(_0x5cbb76[_0xebef65(0x12e)](process[_0xebef65(0x10e)](),0x0)?_0x5cbb76[_0xebef65(0x14f)]:_0x3ec5b1?_0x5cbb76[_0xebef65(0x165)](_0x5cbb76[_0xebef65(0x108)],_0x3ec5b1):null);return _0x5cbb76[_0xebef65(0x166)](_0x528305,null);}}function a143_0x1a9d(){const _0x5889d2=['HSqaT','createWriteStream','destroy','end','ITlvn','chmod','dPgOo','642621xCdSnA','headers','FxkSi','readFileSync','iEkwH','accessSync','2336796GAOrMa','USER','ocdBr','readEntry','once','env','useCaCertificate','CepAK','statSync','darwin','parse','match','X_OK','join','New\x20Percy\x20binary\x20version\x20available,\x20downloading\x20update','OAdwG','sMynw','HfBgG','spdPy','mkdirSync','jTKfp','open','winstonLogger','AaGnp','kHJat','Newly\x20downloaded\x20Percy\x20binary\x20is\x20corrupt,\x20retrying','stdout','fmrgY','/percy-linux.zip','mrnqc','sPxir','validateBinary','uNSxf','aNrro','openReadStream','path','cDYtH','entry','MpLTi','lazyEntries','hoYki','get','vybvJ','iQAtr','getuid','R_OK','/percy-osx.zip','W_OK','ddFPg','port','zJiLp','vTOAb','320bzOVIJ','EBIWY','yelqN','url','homedir','error','kIjdn','function','64179xHHFCG','OpzMl','pDQRK','pipe','FnQDH','238328jQzmgz','statusCode','NFVVB','Error\x20trying\x20to\x20download\x20percy\x20binary','tmpdir','/percy-win.zip','linux','proxyHost','LIFpi','test','Got\x20Error\x20in\x20percy\x20binary\x20download\x20response:\x20','trzML','getBinaryPath','download','34415EVgUjG','agent','proxyPort','data','USLYo','USERPROFILE','PhoNa','bmzen','.etag','warn','binaryPath','0755','Connection','iqEII','LOGNAME','WeZQw','follow-redirects','writeFileSync','/home/','2155560gSEvVl','XsNdQ','length','GVfVa','16SMHwIT','ZSWaG','KHZrn','imOkO','isxea','/Users/','extractAndSaveBinary','nOcMX','close','NqPtw','Got\x20Error\x20while\x20downloading\x20percy\x20binary\x20file:\x20','win32','exports','.zip','catch','https-proxy-agent','zuTgb','platform','percy','Failed\x20to\x20check\x20for\x20binary\x20updates,\x20using\x20existing\x20binary:\x20','Got\x20Error\x20in\x20percy\x20binary\x20downloading\x20request:\x20','yauzl','fileName','debug','/root','USERNAME','Failed\x20to\x20save\x20ETag\x20file:\x20','HOMEPATH','3847060nOxvYC','nxgcA','fDDuk','yDXdq','child_process','needsUpdate'];a143_0x1a9d=function(){return _0x5889d2;};return a143_0x1a9d();}function a143_0x5a02(_0x5553f4,_0x2090f5){const _0x1a9d15=a143_0x1a9d();return a143_0x5a02=function(_0x5a027d,_0x176a93){_0x5a027d=_0x5a027d-0xf5;let _0x1ea8d8=_0x1a9d15[_0x5a027d];return _0x1ea8d8;},a143_0x5a02(_0x5553f4,_0x2090f5);}module[a143_0x2308a4(0x154)]=PercyBinary;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a144_0x3c4c39=a144_0x52c5;function a144_0x4995(){var _0x2e70b8=['3851487qoqtlO','3497240ZROXOQ','532588ulNkNv','837550oLaNAg','getName','845397ewVOMA','get','5259GLPwWl','55tnIOfS','68NkieJo','60138ZYohrF','increment'];a144_0x4995=function(){return _0x2e70b8;};return a144_0x4995();}function a144_0x52c5(_0xbf333f,_0x54002e){var _0x49956a=a144_0x4995();return a144_0x52c5=function(_0x52c557,_0x5db100){_0x52c557=_0x52c557-0x87;var _0x284c6f=_0x49956a[_0x52c557];return _0x284c6f;},a144_0x52c5(_0xbf333f,_0x54002e);}(function(_0x2a61aa,_0x257b89){var _0x5038ef=a144_0x52c5,_0x255a73=_0x2a61aa();while(!![]){try{var _0x2a9efd=parseInt(_0x5038ef(0x8b))/0x1*(parseInt(_0x5038ef(0x8d))/0x2)+parseInt(_0x5038ef(0x89))/0x3+-parseInt(_0x5038ef(0x92))/0x4+parseInt(_0x5038ef(0x8c))/0x5*(parseInt(_0x5038ef(0x8e))/0x6)+-parseInt(_0x5038ef(0x87))/0x7+parseInt(_0x5038ef(0x91))/0x8+-parseInt(_0x5038ef(0x90))/0x9;if(_0x2a9efd===_0x257b89)break;else _0x255a73['push'](_0x255a73['shift']());}catch(_0x25a8eb){_0x255a73['push'](_0x255a73['shift']());}}}(a144_0x4995,0x4fe69));class PercyCaptureMap{#map={};[a144_0x3c4c39(0x8f)](_0x32e44f,_0x117a4f){!this.#map[_0x32e44f]&&(this.#map[_0x32e44f]={}),!this.#map[_0x32e44f][_0x117a4f]&&(this.#map[_0x32e44f][_0x117a4f]=0x0),this.#map[_0x32e44f][_0x117a4f]++;}[a144_0x3c4c39(0x88)](_0x1a0ba2,_0x1886d0){return _0x1a0ba2+'-'+_0x1886d0+'-'+this['get'](_0x1a0ba2,_0x1886d0);}[a144_0x3c4c39(0x8a)](_0x137035,_0x41b976){if(!this.#map[_0x137035])return 0x0;if(!this.#map[_0x137035][_0x41b976])return 0x0;return this.#map[_0x137035][_0x41b976];}}module['exports']=PercyCaptureMap;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
function a145_0x83be(_0x20366e,_0x3c99ef){var _0x26b7d5=a145_0x26b7();return a145_0x83be=function(_0x83bee,_0x1f425b){_0x83bee=_0x83bee-0x96;var _0x47fdba=_0x26b7d5[_0x83bee];return _0x47fdba;},a145_0x83be(_0x20366e,_0x3c99ef);}var a145_0x4ba208=a145_0x83be;(function(_0xbe9791,_0x200019){var _0x3c4179=a145_0x83be,_0x47e971=_0xbe9791();while(!![]){try{var _0x1b4c5f=-parseInt(_0x3c4179(0xa6))/0x1*(-parseInt(_0x3c4179(0x98))/0x2)+-parseInt(_0x3c4179(0xa7))/0x3*(-parseInt(_0x3c4179(0x97))/0x4)+parseInt(_0x3c4179(0x96))/0x5*(-parseInt(_0x3c4179(0x9e))/0x6)+-parseInt(_0x3c4179(0x99))/0x7*(parseInt(_0x3c4179(0x9b))/0x8)+-parseInt(_0x3c4179(0xa4))/0x9+parseInt(_0x3c4179(0xa8))/0xa+-parseInt(_0x3c4179(0xa9))/0xb*(-parseInt(_0x3c4179(0xa3))/0xc);if(_0x1b4c5f===_0x200019)break;else _0x47e971['push'](_0x47e971['shift']());}catch(_0x442298){_0x47e971['push'](_0x47e971['shift']());}}}(a145_0x26b7,0xeab5e));var a145_0x20cbe0={};a145_0x20cbe0[a145_0x4ba208(0xa2)]=[a145_0x4ba208(0xa1)],a145_0x20cbe0[a145_0x4ba208(0xa5)]=[a145_0x4ba208(0x9a),'sendKeys'];var a145_0x504b3d={};a145_0x504b3d[a145_0x4ba208(0xa2)]=[a145_0x4ba208(0xa1)];var a145_0xe97f50={};function a145_0x26b7(){var _0x12b00c=['exports','takeScreenshot','driver','7786452tLDoDK','5131062eKCIEQ','element','2lgWJtJ','3EDNDAT','2628150BNRcts','44hdBeAV','7755885BWUKpg','4114988KlpXPF','72018imxvqM','7jUWodm','click','7011160QopphU','screenshot','manual','6iDiPFI','testcase'];a145_0x26b7=function(){return _0x12b00c;};return a145_0x26b7();}a145_0xe97f50[a145_0x4ba208(0xa5)]=['click'];var a145_0x5764c0={};a145_0x5764c0['auto']=a145_0x20cbe0,a145_0x5764c0[a145_0x4ba208(0x9c)]=a145_0x504b3d,a145_0x5764c0[a145_0x4ba208(0x9a)]=a145_0xe97f50,a145_0x5764c0[a145_0x4ba208(0x9f)]={},a145_0x5764c0[a145_0x4ba208(0x9d)]={},module[a145_0x4ba208(0xa0)]=a145_0x5764c0;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a146_0x3aa990=a146_0x7f73;(function(_0x519c15,_0x291ef6){const _0x2e7e75=a146_0x7f73,_0x5dc869=_0x519c15();while(!![]){try{const _0x4d2a85=parseInt(_0x2e7e75(0x1ce))/0x1+-parseInt(_0x2e7e75(0x1e1))/0x2*(parseInt(_0x2e7e75(0x1d9))/0x3)+-parseInt(_0x2e7e75(0x1cd))/0x4*(parseInt(_0x2e7e75(0x1e8))/0x5)+-parseInt(_0x2e7e75(0x1db))/0x6*(parseInt(_0x2e7e75(0x1d6))/0x7)+parseInt(_0x2e7e75(0x1ed))/0x8+parseInt(_0x2e7e75(0x1d2))/0x9*(-parseInt(_0x2e7e75(0x1d8))/0xa)+-parseInt(_0x2e7e75(0x1eb))/0xb;if(_0x4d2a85===_0x291ef6)break;else _0x5dc869['push'](_0x5dc869['shift']());}catch(_0xbcccce){_0x5dc869['push'](_0x5dc869['shift']());}}}(a146_0x2850,0x9a987));const tryRequire=function(_0x2e33a7,_0x6cf3d4){const _0x1ad3d2={'nztlJ':function(_0x3216ad,_0x361a64){return _0x3216ad(_0x361a64);}};try{return _0x1ad3d2['nztlJ'](require,_0x2e33a7);}catch{return _0x6cf3d4;}},percySnapshot=tryRequire(a146_0x3aa990(0x1ef),null),{percyScreenshot}=tryRequire('@percy/selenium-webdriver',{}),percyAppScreenshot=require(a146_0x3aa990(0x1d7)),{getCurrentTestData}=require(a146_0x3aa990(0x1df)),PerformanceTester=require(a146_0x3aa990(0x1de)),{PERCY_EVENTS:PerformanceEvents}=require(a146_0x3aa990(0x1e0)),logger=require('../logger')[a146_0x3aa990(0x1cf)];percySnapshot&&(exports['snapshot']=async function(){const _0x56063a=a146_0x3aa990,_0x3fce56={'tizgL':function(_0x626eec,_0xac40bc){return _0x626eec!==_0xac40bc;},'ryutt':function(_0x3ca30c,_0x48d1d1){return _0x3ca30c>=_0x48d1d1;},'IiJqs':function(_0x4e3cb7){return _0x4e3cb7();}};if(global[_0x56063a(0x1ea)]&&_0x3fce56[_0x56063a(0x1d4)](global[_0x56063a(0x1ea)],global['browserstackPercyBestPlatform']))return;const _0x284f50=_0x3fce56['ryutt'](arguments['length'],0x2)?arguments[0x1]:'',_0x1e2555=_0x3fce56['IiJqs'](getCurrentTestData),_0x7b5a7c={};return _0x7b5a7c[_0x56063a(0x1ee)]=_0x284f50,_0x7b5a7c[_0x56063a(0x1d0)]=_0x1e2555[_0x56063a(0x1ee)]||'',_0x7b5a7c[_0x56063a(0x1ec)]=_0x1e2555[_0x56063a(0x1e4)]||'',_0x7b5a7c[_0x56063a(0x1e9)]=global[_0x56063a(0x1ea)],await PerformanceTester[_0x56063a(0x1e2)](PerformanceEvents[_0x56063a(0x1e7)],()=>percySnapshot[_0x56063a(0x1da)](null,arguments),_0x7b5a7c);});function a146_0x7f73(_0x34ef09,_0x29d086){const _0x285072=a146_0x2850();return a146_0x7f73=function(_0x7f73fe,_0x38c2e5){_0x7f73fe=_0x7f73fe-0x1cc;let _0x13700f=_0x285072[_0x7f73fe];return _0x13700f;},a146_0x7f73(_0x34ef09,_0x29d086);}percyScreenshot?exports[a146_0x3aa990(0x1e5)]=async function(){const _0x5bd71c=a146_0x3aa990,_0x4d3c06={'RXljq':function(_0x706e14,_0x3885ab){return _0x706e14>=_0x3885ab;},'LisDA':function(_0x162997){return _0x162997();}},_0x387b3a=_0x4d3c06[_0x5bd71c(0x1e6)](arguments[_0x5bd71c(0x1d5)],0x2)?arguments[0x1]:'',_0x26c886=_0x4d3c06[_0x5bd71c(0x1d1)](getCurrentTestData),_0x430624={};return _0x430624[_0x5bd71c(0x1ee)]=_0x387b3a,_0x430624['testCase']=_0x26c886[_0x5bd71c(0x1ee)]||'',_0x430624[_0x5bd71c(0x1ec)]=_0x26c886[_0x5bd71c(0x1e4)]||'',_0x430624[_0x5bd71c(0x1e9)]=global[_0x5bd71c(0x1ea)],await PerformanceTester[_0x5bd71c(0x1e2)](PerformanceEvents['SCREENSHOT'],()=>percyScreenshot[_0x5bd71c(0x1da)](null,arguments),_0x430624);}:exports['screenshot']=()=>{const _0x4014e7=a146_0x3aa990,_0x446d8b={};_0x446d8b[_0x4014e7(0x1cc)]=_0x4014e7(0x1e3);const _0x21af5e=_0x446d8b;logger['error'](_0x21af5e['kIZnP']);};exports['screenshotApp']=async function(){const _0xc9c668=a146_0x3aa990,_0x252f9f={'FYmIo':function(_0x402527,_0x2cc343){return _0x402527>=_0x2cc343;},'wYmxn':function(_0x1586dd){return _0x1586dd();}},_0x41aab2=_0x252f9f[_0xc9c668(0x1d3)](arguments['length'],0x2)?arguments[0x1]:'',_0x11243c=_0x252f9f[_0xc9c668(0x1dd)](getCurrentTestData),_0x4d3b29={};return _0x4d3b29[_0xc9c668(0x1ee)]=_0x41aab2,_0x4d3b29[_0xc9c668(0x1d0)]=_0x11243c[_0xc9c668(0x1ee)]||'',_0x4d3b29[_0xc9c668(0x1ec)]=_0x11243c[_0xc9c668(0x1e4)]||'',_0x4d3b29[_0xc9c668(0x1e9)]=global[_0xc9c668(0x1ea)],await PerformanceTester[_0xc9c668(0x1e2)](PerformanceEvents[_0xc9c668(0x1dc)],()=>percyAppScreenshot[_0xc9c668(0x1da)](null,arguments),_0x4d3b29);};function a146_0x2850(){const _0x2f83f9=['tizgL','length','701771jaAsKJ','@percy/appium-app','10UQiAbQ','7710lICsUT','apply','18WkoXfm','SCREENSHOT_APP','wYmxn','../performance/performance-tester','../../helpers/testhub/utils','../performance/constants','6VpoNOh','measure','Unsupported\x20driver\x20for\x20percy','uuid','screenshot','RXljq','SNAPSHOT','35KqHyNf','platformIndex','browserstackPlatformIndex','923318aYyDVj','thTestCaseExecutionId','6019704FyXLBd','name','@percy/selenium-webdriver','kIZnP','134284ZtDsmj','575662ggFehg','winstonLogger','testCase','LisDA','607482nTlixn','FYmIo'];a146_0x2850=function(){return _0x2f83f9;};return a146_0x2850();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a147_0x294f(){var _0x361a7d=['exports','48UcHWXl','./Percy','27EdkjQa','171AeYyii','87350MVWCdI','138666TiaupH','29572213qccyMd','3373041bOnCPp','4ltcgKk','10719282YMUJry','431487OSmyyU','2954090voWBfy'];a147_0x294f=function(){return _0x361a7d;};return a147_0x294f();}var a147_0x19fe3b=a147_0x5162;function a147_0x5162(_0xe98292,_0x4b9bd7){var _0x294fc9=a147_0x294f();return a147_0x5162=function(_0x5162ac,_0x373336){_0x5162ac=_0x5162ac-0xd6;var _0x304480=_0x294fc9[_0x5162ac];return _0x304480;},a147_0x5162(_0xe98292,_0x4b9bd7);}(function(_0x3f5dee,_0x5731ba){var _0x3064a6=a147_0x5162,_0x387054=_0x3f5dee();while(!![]){try{var _0x32d791=-parseInt(_0x3064a6(0xdb))/0x1*(-parseInt(_0x3064a6(0xde))/0x2)+-parseInt(_0x3064a6(0xe0))/0x3*(parseInt(_0x3064a6(0xe1))/0x4)+parseInt(_0x3064a6(0xd7))/0x5+parseInt(_0x3064a6(0xe2))/0x6+-parseInt(_0x3064a6(0xd6))/0x7*(-parseInt(_0x3064a6(0xd9))/0x8)+-parseInt(_0x3064a6(0xdc))/0x9*(-parseInt(_0x3064a6(0xdd))/0xa)+-parseInt(_0x3064a6(0xdf))/0xb;if(_0x32d791===_0x5731ba)break;else _0x387054['push'](_0x387054['shift']());}catch(_0x2d84c1){_0x387054['push'](_0x387054['shift']());}}}(a147_0x294f,0xed695),module[a147_0x19fe3b(0xd8)]=require(a147_0x19fe3b(0xda)));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a148_0xd754ba=a148_0x3112;(function(_0xeabf0f,_0x3b3e44){const _0x5e3199=a148_0x3112,_0x1c40ff=_0xeabf0f();while(!![]){try{const _0x4d4c4b=-parseInt(_0x5e3199(0xa9))/0x1*(-parseInt(_0x5e3199(0xa4))/0x2)+-parseInt(_0x5e3199(0xaf))/0x3*(-parseInt(_0x5e3199(0xcd))/0x4)+parseInt(_0x5e3199(0xbb))/0x5*(parseInt(_0x5e3199(0xcf))/0x6)+-parseInt(_0x5e3199(0x9b))/0x7*(-parseInt(_0x5e3199(0xc3))/0x8)+parseInt(_0x5e3199(0xbc))/0x9*(parseInt(_0x5e3199(0x91))/0xa)+parseInt(_0x5e3199(0xce))/0xb*(-parseInt(_0x5e3199(0xc8))/0xc)+-parseInt(_0x5e3199(0xd2))/0xd*(parseInt(_0x5e3199(0xac))/0xe);if(_0x4d4c4b===_0x3b3e44)break;else _0x1c40ff['push'](_0x1c40ff['shift']());}catch(_0x455a93){_0x1c40ff['push'](_0x1c40ff['shift']());}}}(a148_0xe3b1,0x1c08a));function a148_0xe3b1(){const _0x1d1f02=['Error\x20patching\x20','stopPercy','10WZwHRY','percyCaptureMode','reduce','measureWrapper','isAppAutomateSession','getBestPlatformForPercySnapshot','percyAutoCapture','startPercy','driver','browser','2163oGlmYp','vGobm','yMgTu','../performance/constants','percy','browserstackPercyMap','../helper','../performance/performance-tester','Couldn\x27t\x20capture\x20percy\x20screenshot,\x20no\x20session\x20name\x20present','17762GOBtkf','browserStackPercyOptions','./Percy','deviceName','forEach','8dZVFof','nestedKeyValue','manual','70UPYBov','\x20for\x20percy\x20','VgFEW','30eQPCBo','AGRms','EmbLC','ZAJEy','apply','isUndefined','gxUzr','edge','browserstackPercyBestPlatform','./PercyCaptureModes','debug','element','80CUtsJc','607239bYNULl','oRhQq','overrideXforPercy','RroPt','getDriver','prototype','Stopping\x20percy','224IsWXbn','./PercyCaptureMap','increment','winstonLogger','start','1534956gaoVDx','browserstackSessionName','patch','IehoK','toLowerCase','61428elqQOc','11KfSAZH','47868kGEBxe','safari','AUTO_CAPTURE','482690fJnfdV','screenshotApp','browserName','SxjUF'];a148_0xe3b1=function(){return _0x1d1f02;};return a148_0xe3b1();}const Percy=require(a148_0xd754ba(0xa6)),PercySDK=require('./PercySDK'),PercyCaptureModes=require(a148_0xd754ba(0xb8)),PercyCaptureMap=require(a148_0xd754ba(0xc4)),logger=require('../logger')[a148_0xd754ba(0xc6)],helper=require(a148_0xd754ba(0xa1)),PerformanceTester=require(a148_0xd754ba(0xa2)),{PERCY_EVENTS:PerformanceEvents}=require(a148_0xd754ba(0x9e));function a148_0x3112(_0x343f4e,_0x9fdcc0){const _0xe3b115=a148_0xe3b1();return a148_0x3112=function(_0x311243,_0x3d9a5e){_0x311243=_0x311243-0x90;let _0x5688c1=_0xe3b115[_0x311243];return _0x5688c1;},a148_0x3112(_0x343f4e,_0x9fdcc0);}exports[a148_0xd754ba(0x98)]=PerformanceTester[a148_0xd754ba(0x94)](PerformanceEvents['START'],async _0x3fec43=>{const _0x3ec2e7=a148_0xd754ba,_0x1b01fb={};_0x1b01fb[_0x3ec2e7(0xb1)]='Starting\x20percy';const _0x1c8df7=_0x1b01fb;logger[_0x3ec2e7(0xb9)](_0x1c8df7[_0x3ec2e7(0xb1)]);const _0x4dccc8=new Percy(_0x3fec43),_0x176d81=await _0x4dccc8[_0x3ec2e7(0xc7)]();if(_0x176d81)return _0x4dccc8;return null;}),exports[a148_0xd754ba(0x90)]=PerformanceTester[a148_0xd754ba(0x94)](PerformanceEvents['STOP'],async _0x424a07=>{const _0xd9fb02=a148_0xd754ba,_0x21009b={};_0x21009b['QKErU']=_0xd9fb02(0xc2);const _0x75dea8=_0x21009b;return logger[_0xd9fb02(0xb9)](_0x75dea8['QKErU']),_0x424a07['stop']();}),exports[a148_0xd754ba(0x96)]=_0xa8aca=>{const _0x47b54e=a148_0xd754ba,_0x421484={};_0x421484[_0x47b54e(0xb0)]=function(_0x493079,_0x4d5300){return _0x493079<_0x4d5300;};const _0xe9f116=_0x421484,_0x38fa3e={};_0x38fa3e['chrome']=0x0,_0x38fa3e['firefox']=0x1,_0x38fa3e[_0x47b54e(0xb6)]=0x2,_0x38fa3e[_0x47b54e(0xd0)]=0x3;const _0x321d82=_0x38fa3e;return _0xa8aca[_0x47b54e(0x93)]((_0x446765,_0xccfbb5,_0x301828)=>{const _0x4b92de=_0x47b54e,_0x52941f=_0xa8aca[_0x446765];if(_0xccfbb5['deviceName'])return _0x446765;if(_0x52941f[_0x4b92de(0xa7)])return _0x301828;const _0x201ee2=_0xccfbb5[_0x4b92de(0x9a)]?_0xccfbb5['browser']:_0xccfbb5[_0x4b92de(0xd4)];if(_0x201ee2&&_0xe9f116[_0x4b92de(0xb0)](_0x321d82[_0x201ee2['toLowerCase']()],_0x321d82[_0x201ee2[_0x4b92de(0xcc)]()]))return _0x301828;return _0x446765;},0x0);},exports[a148_0xd754ba(0x97)]=PerformanceTester[a148_0xd754ba(0x94)](PerformanceEvents[a148_0xd754ba(0xd1)],async(_0x50f3c3,_0x286c4a,_0xed9747)=>{const _0x5ddbbb=a148_0xd754ba,_0x45469d={};_0x45469d[_0x5ddbbb(0x9c)]=_0x5ddbbb(0xa3);const _0x523d9d=_0x45469d,_0x25a224=_0x50f3c3['browserstackPercyMap'];if(helper[_0x5ddbbb(0xb4)](_0x50f3c3['browserstackSessionName'])){logger[_0x5ddbbb(0xb9)](_0x523d9d[_0x5ddbbb(0x9c)]);return;}const _0x454da0=_0x25a224['getName'](_0x50f3c3[_0x5ddbbb(0xc9)],_0x286c4a);helper[_0x5ddbbb(0x95)](_0xed9747)?await PercySDK[_0x5ddbbb(0xd3)](_0x50f3c3,_0x454da0):await PercySDK['screenshot'](_0x50f3c3,_0x454da0),_0x25a224[_0x5ddbbb(0xc5)](_0x50f3c3[_0x5ddbbb(0xc9)],_0x286c4a);}),exports['patchDriverPercy']=(_0x29dded,_0x4c12cb,_0x1c98f7)=>{const _0x29aaf5=a148_0xd754ba,_0x255953={};_0x255953['oRhQq']=_0x29aaf5(0xa5),_0x255953[_0x29aaf5(0xb5)]=_0x29aaf5(0x9f),_0x255953[_0x29aaf5(0xcb)]=function(_0x50000a,_0x1352fe){return _0x50000a!==_0x1352fe;},_0x255953['RroPt']=_0x29aaf5(0xab);const _0x5344ae=_0x255953;if(!helper[_0x29aaf5(0xaa)](_0x1c98f7,[_0x5344ae[_0x29aaf5(0xbd)],_0x5344ae[_0x29aaf5(0xb5)]]))return;if(_0x1c98f7[_0x29aaf5(0xa5)]['percy']&&_0x1c98f7[_0x29aaf5(0xa5)][_0x29aaf5(0x92)]&&_0x5344ae[_0x29aaf5(0xcb)](_0x1c98f7[_0x29aaf5(0xa5)][_0x29aaf5(0x92)],_0x5344ae[_0x29aaf5(0xbf)])&&!_0x29dded[_0x29aaf5(0xa0)]){global[_0x29aaf5(0xc9)]&&(_0x29dded[_0x29aaf5(0xc9)]=global['browserstackSessionName']),_0x29dded[_0x29aaf5(0xa0)]=new PercyCaptureMap();const _0x4f3ff9=PercyCaptureModes[_0x1c98f7['browserStackPercyOptions'][_0x29aaf5(0x92)]];_0x4f3ff9[_0x29aaf5(0x99)]&&_0x4f3ff9[_0x29aaf5(0x99)][_0x29aaf5(0xa8)](_0x56bbf4=>this[_0x29aaf5(0xbe)](_0x29dded,_0x56bbf4,_0x1c98f7)),_0x4f3ff9[_0x29aaf5(0xba)]&&_0x4f3ff9[_0x29aaf5(0xba)]['forEach'](_0x571a0d=>{const _0x177bf9=_0x29aaf5;if(_0x4c12cb[_0x177bf9(0xc1)]['patch'+_0x571a0d])return;_0x4c12cb[_0x177bf9(0xc1)][_0x177bf9(0xca)+_0x571a0d]=!![];const _0x469303=_0x4c12cb[_0x177bf9(0xc1)][_0x571a0d];_0x4c12cb['prototype'][_0x571a0d]=async function(){const _0x4021ba=_0x177bf9;let _0x256e97=_0x469303[_0x4021ba(0xb3)](this,arguments);_0x256e97&&_0x256e97['then']&&(_0x256e97=await _0x256e97);try{const _0x3f3486=this[_0x4021ba(0xc0)]();await exports[_0x4021ba(0x97)](_0x3f3486,_0x571a0d,_0x1c98f7);}catch(_0x29778b){logger['error'](_0x4021ba(0xd6)+_0x571a0d+_0x4021ba(0xad)+_0x29778b);}return _0x256e97;};});}},exports[a148_0xd754ba(0xbe)]=function(_0x493d4d,_0x48bdd2,_0xa57047){const _0x17a34d=a148_0xd754ba,_0x2727c7={};_0x2727c7['jIOWl']=function(_0x168f45,_0x138844){return _0x168f45+_0x138844;},_0x2727c7[_0x17a34d(0x9d)]=_0x17a34d(0xca),_0x2727c7[_0x17a34d(0xd5)]=function(_0x2ef02f,_0x280209){return _0x2ef02f+_0x280209;},_0x2727c7[_0x17a34d(0xae)]='init';const _0xb1df95=_0x2727c7,_0x2e48dd=_0xb1df95['jIOWl'](_0xb1df95[_0x17a34d(0x9d)],_0x48bdd2),_0x48593e=_0xb1df95['SxjUF'](_0xb1df95[_0x17a34d(0xae)],_0x48bdd2),_0x18c075=this;if(_0x493d4d[_0x2e48dd]||!_0x493d4d[_0x48bdd2])return;_0x493d4d[_0x2e48dd]=!![],_0x493d4d[_0x48593e]=_0x493d4d[_0x48bdd2],_0x493d4d[_0x48bdd2]=async()=>{const _0x265c56=_0x17a34d;try{await _0x18c075[_0x265c56(0x97)](_0x493d4d,_0x48bdd2,_0xa57047);}catch(_0x9b2323){logger['error'](_0x265c56(0xd6)+_0x48bdd2+_0x265c56(0xad)+_0x9b2323);}return await _0x493d4d[_0x48593e][_0x265c56(0xb3)](_0x493d4d,arguments);};},exports['getPercyOptions']=_0x485846=>{const _0x3ccf4d=a148_0xd754ba,_0x5b8ec8={};_0x5b8ec8[_0x3ccf4d(0xb2)]='auto';const _0x11f0d7=_0x5b8ec8,_0xa670cf={};_0xa670cf[_0x3ccf4d(0x9f)]=_0x485846[_0x3ccf4d(0x9f)],_0xa670cf['percyCaptureMode']=_0x485846[_0x3ccf4d(0x92)]||_0x11f0d7[_0x3ccf4d(0xb2)];const _0x2fc145=_0xa670cf;_0x485846[_0x3ccf4d(0x9f)]&&(_0x2fc145[_0x3ccf4d(0xb7)]=exports[_0x3ccf4d(0x96)](_0x485846['platforms']));;return _0x2fc145;};
|