browserstack-node-sdk 1.65.5 → 1.65.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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
|
-
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();
|
|
1
|
+
const a138_0x397f9d=a138_0x6de9;(function(_0x4ed077,_0x28af9e){const _0x2956ff=a138_0x6de9,_0x5198ea=_0x4ed077();while(!![]){try{const _0xeb8227=-parseInt(_0x2956ff(0x192))/0x1+parseInt(_0x2956ff(0x173))/0x2+-parseInt(_0x2956ff(0x157))/0x3*(-parseInt(_0x2956ff(0x199))/0x4)+parseInt(_0x2956ff(0x17d))/0x5+-parseInt(_0x2956ff(0x150))/0x6*(parseInt(_0x2956ff(0x184))/0x7)+-parseInt(_0x2956ff(0x18c))/0x8+parseInt(_0x2956ff(0x166))/0x9*(parseInt(_0x2956ff(0x163))/0xa);if(_0xeb8227===_0x28af9e)break;else _0x5198ea['push'](_0x5198ea['shift']());}catch(_0x2f265a){_0x5198ea['push'](_0x5198ea['shift']());}}}(a138_0x446e,0xa52ce));const winston=require(a138_0x397f9d(0x171)),path=require(a138_0x397f9d(0x167)),fs=require('fs'),{LOG_FILE_NAME,DEBUG_LOG_FILE_NAME,DEBUG_CLI_LOG_FILE_NAME}=require(a138_0x397f9d(0x17e)),tempLogDir=a138_0x397f9d(0x155);let redactRegex=null,lastConfigHash='';const logFormat=winston[a138_0x397f9d(0x176)](_0x2e0206=>{const _0x4a7520=a138_0x397f9d,_0x4136d0={};_0x4136d0[_0x4a7520(0x174)]=function(_0x59741a,_0x5b3b6d){return _0x59741a!==_0x5b3b6d;},_0x4136d0[_0x4a7520(0x14b)]='string',_0x4136d0['FOOTH']=function(_0x2ffdb0,_0xed0f2f){return _0x2ffdb0+_0xed0f2f;},_0x4136d0[_0x4a7520(0x164)]=function(_0x3b36cf,_0x3f766a){return _0x3b36cf!==_0x3f766a;},_0x4136d0['YkqpV']=function(_0x514e87,_0x514b60){return _0x514e87>_0x514b60;},_0x4136d0[_0x4a7520(0x152)]='[REDACTED]';const _0x37795b=_0x4136d0;_0x37795b[_0x4a7520(0x174)](typeof _0x2e0206[_0x4a7520(0x18b)],_0x37795b[_0x4a7520(0x14b)])&&(_0x2e0206['message']=JSON[_0x4a7520(0x189)](_0x2e0206['message']));const _0x4c6b8a=global[_0x4a7520(0x149)]&&global['config'][_0x4a7520(0x17f)]||'',_0x1392b7=global[_0x4a7520(0x149)]&&global['config'][_0x4a7520(0x15a)]||'',_0x34e193=_0x37795b[_0x4a7520(0x159)](_0x37795b['FOOTH'](_0x4c6b8a,'|'),_0x1392b7);if(_0x37795b['BpFJO'](_0x34e193,lastConfigHash)){lastConfigHash=_0x34e193;const _0x28298b=[_0x4c6b8a,_0x1392b7][_0x4a7520(0x165)](Boolean);if(_0x37795b[_0x4a7520(0x19a)](_0x28298b[_0x4a7520(0x193)],0x0)){const _0x3e6425=_0x28298b[_0x4a7520(0x17b)](_0xc7d90d=>_0xc7d90d[_0x4a7520(0x156)](/[.*+?^${}()|[\]\\]/g,_0x4a7520(0x178)))['join']('|');redactRegex=new RegExp(_0x3e6425,'g');}else redactRegex=null;}return redactRegex&&(_0x2e0206[_0x4a7520(0x18b)]=_0x2e0206['message'][_0x4a7520(0x156)](redactRegex,_0x37795b[_0x4a7520(0x152)])),_0x2e0206;}),SENSITIVE_HEADER_REGEX=/authorization|token|cookie|secret|^x-api-key$|accesskey|password/i,maskHeaders=_0x390194=>{const _0x200553=a138_0x397f9d,_0x5b2d99={};_0x5b2d99['cWdPO']=function(_0x2aa29f,_0x4de894){return _0x2aa29f!==_0x4de894;},_0x5b2d99['ahgZw']='object',_0x5b2d99[_0x200553(0x15e)]=_0x200553(0x17c),_0x5b2d99[_0x200553(0x14a)]=_0x200553(0x179);const _0x1e6295=_0x5b2d99;try{if(!_0x390194||_0x1e6295['cWdPO'](typeof _0x390194,_0x1e6295[_0x200553(0x18e)]))return _0x390194;const _0x505a2e={};for(const _0x41aef7 of Object[_0x200553(0x14f)](_0x390194)){_0x505a2e[_0x41aef7]=SENSITIVE_HEADER_REGEX[_0x200553(0x161)](_0x41aef7)?_0x1e6295[_0x200553(0x15e)]:_0x390194[_0x41aef7];}return _0x505a2e;}catch{return _0x1e6295[_0x200553(0x14a)];}},fetchLogDir=()=>{const _0xc3a50c=a138_0x397f9d;if(process[_0xc3a50c(0x19f)][_0xc3a50c(0x14c)])return process['env'][_0xc3a50c(0x14c)];else!fs['existsSync'](tempLogDir)&&fs[_0xc3a50c(0x19d)](tempLogDir);return tempLogDir;},logDir=fetchLogDir(),getInitialLogLevel=()=>{const _0x4cb741=a138_0x397f9d,_0x912d66={};_0x912d66['qRvlP']=_0x4cb741(0x162);const _0x25a1f9=_0x912d66,_0x2d3f18=process[_0x4cb741(0x19f)][_0x4cb741(0x1a0)],_0x1d4962=Object[_0x4cb741(0x14f)](winston['config']['npm']['levels']);if(_0x2d3f18&&_0x1d4962[_0x4cb741(0x18a)](_0x2d3f18[_0x4cb741(0x182)]()))return _0x2d3f18[_0x4cb741(0x182)]();return _0x25a1f9[_0x4cb741(0x158)];},initialLogLevel=getInitialLogLevel(),a138_0x1281f7={};a138_0x1281f7[a138_0x397f9d(0x15b)]=a138_0x397f9d(0x198),a138_0x1281f7['level']=initialLogLevel;const transports={'loggerConsole':new winston[(a138_0x397f9d(0x196))][(a138_0x397f9d(0x181))](a138_0x1281f7),'loggerFile':new winston[(a138_0x397f9d(0x196))][(a138_0x397f9d(0x168))]({'filename':path[a138_0x397f9d(0x19e)](logDir,a138_0x397f9d(0x17a)),'level':initialLogLevel}),'debugLoggerFile':new winston[(a138_0x397f9d(0x196))][(a138_0x397f9d(0x168))]({'filename':path['join'](logDir,a138_0x397f9d(0x16a)),'level':a138_0x397f9d(0x190)}),'debugCliLoggerFile':new winston['transports'][(a138_0x397f9d(0x168))]({'filename':path[a138_0x397f9d(0x19e)](logDir,DEBUG_CLI_LOG_FILE_NAME),'level':a138_0x397f9d(0x190)}),'buildLinkTransport':new winston[(a138_0x397f9d(0x196))][(a138_0x397f9d(0x168))]({'filename':path['join'](logDir,'/usage.log'),'level':a138_0x397f9d(0x190)})},automationTransports={};process['env'][a138_0x397f9d(0x18f)]===a138_0x397f9d(0x147)&&(automationTransports['automationLoggerFile']=new winston[(a138_0x397f9d(0x196))][(a138_0x397f9d(0x168))]({'filename':path['join'](logDir,a138_0x397f9d(0x177)),'level':'silly'}));transports[a138_0x397f9d(0x187)]['on'](a138_0x397f9d(0x154),_0x494299=>{const _0x5b61c1=a138_0x397f9d,_0x21e9b7={};_0x21e9b7[_0x5b61c1(0x148)]=function(_0x38b4eb,_0x4c9932){return _0x38b4eb===_0x4c9932;},_0x21e9b7[_0x5b61c1(0x180)]=_0x5b61c1(0x15d),_0x21e9b7[_0x5b61c1(0x185)]=_0x5b61c1(0x153);const _0x20af90=_0x21e9b7;if(_0x20af90[_0x5b61c1(0x148)](_0x494299[_0x5b61c1(0x175)],_0x20af90[_0x5b61c1(0x180)])){console[_0x5b61c1(0x155)](_0x20af90[_0x5b61c1(0x185)],_0x494299['message']);return;}throw _0x494299;});const a138_0x5141a6={};function a138_0x446e(){const _0x3ee665=['[REDACTED]','6238165biAfoz','../bin/utils/constants','userName','OtvMp','Console','toLowerCase','printf','782509HPBFqn','zAoCV','maskHeaders','loggerConsole','debugLoggerFile','stringify','includes','message','9336024BZMWCV','loggerFile','ahgZw','BROWSERSTACK_AUTOMATION_LOGS','silly','remove','159674SrLAov','length','add','timestamp','transports','http','console.info','74924IwMJTm','YkqpV','initialize','YYYY-MM-DD\x20HH:mm:ss','mkdirSync','join','env','BROWSERSTACK_LOG_LEVEL','getLogDir','\x20-\x20','true','OHDCV','config','CQTiN','cBYto','BROWSERSTACK_INTERNAL_LOG_DIR','PCEes','createLogger','keys','48oJScOA','buildLinkTransport','wwXVd','EPIPE\x20error\x20occurred\x20in\x20loggerConsole:','error','log','replace','9ahPuoA','qRvlP','FOOTH','accessKey','name','combine','EPIPE','fjLSr','winstonLogger','debug','test','info','64590euPjzC','BpFJO','filter','405rixEDV','path','File','automationLogger','/usage-debug.log','buildLogger','colorize','level','debugCliLoggerFile','warn','logDir','winston','fileLogger','2606100AMdayd','JvqWR','code','format','automation.log','\x5c$&','[REDACTED\x20HEADERS]','/usage.log','map'];a138_0x446e=function(){return _0x3ee665;};return a138_0x446e();}a138_0x5141a6[a138_0x397f9d(0x176)]=a138_0x397f9d(0x19c);const a138_0x31024c={};a138_0x31024c[a138_0x397f9d(0x16d)]=!![];function a138_0x6de9(_0x47d0cc,_0x317aa5){const _0x446ee0=a138_0x446e();return a138_0x6de9=function(_0x6de94,_0x38ca9d){_0x6de94=_0x6de94-0x147;let _0x5e51b2=_0x446ee0[_0x6de94];return _0x5e51b2;},a138_0x6de9(_0x47d0cc,_0x317aa5);}const winstonLoggerParams={'format':winston['format']['combine'](winston[a138_0x397f9d(0x176)][a138_0x397f9d(0x195)](a138_0x5141a6),winston[a138_0x397f9d(0x176)][a138_0x397f9d(0x16c)](a138_0x31024c),winston[a138_0x397f9d(0x176)][a138_0x397f9d(0x183)](_0x387e3e=>_0x387e3e[a138_0x397f9d(0x195)]+a138_0x397f9d(0x1a2)+_0x387e3e[a138_0x397f9d(0x16d)]+':\x20'+_0x387e3e[a138_0x397f9d(0x18b)])),'transports':[transports[a138_0x397f9d(0x187)]]},a138_0x1d53be={};a138_0x1d53be[a138_0x397f9d(0x176)]='YYYY-MM-DD\x20HH:mm:ss';const a138_0x3ec7c8={};a138_0x3ec7c8[a138_0x397f9d(0x16d)]=!![];const winstonFileLoggerParams={'format':winston[a138_0x397f9d(0x176)][a138_0x397f9d(0x15c)](winston[a138_0x397f9d(0x176)][a138_0x397f9d(0x195)](a138_0x1d53be),winston[a138_0x397f9d(0x176)]['colorize'](a138_0x3ec7c8),winston['format'][a138_0x397f9d(0x183)](_0x5405af=>_0x5405af[a138_0x397f9d(0x16d)]+':\x20'+_0x5405af[a138_0x397f9d(0x18b)])),'transports':[]},a138_0x5007a1={};a138_0x5007a1[a138_0x397f9d(0x176)]='YYYY-MM-DD\x20HH:mm:ss';const a138_0x6f4893={};a138_0x6f4893[a138_0x397f9d(0x16d)]=!![];const a138_0x2c3c29={};a138_0x2c3c29[a138_0x397f9d(0x16d)]=a138_0x397f9d(0x190);const BuildLoggerParams={'format':winston[a138_0x397f9d(0x176)][a138_0x397f9d(0x15c)](winston['format'][a138_0x397f9d(0x195)](a138_0x5007a1),winston[a138_0x397f9d(0x176)]['colorize'](a138_0x6f4893),winston['format'][a138_0x397f9d(0x183)](_0x584a4f=>_0x584a4f[a138_0x397f9d(0x195)]+a138_0x397f9d(0x1a2)+_0x584a4f[a138_0x397f9d(0x16d)]+':\x20'+_0x584a4f[a138_0x397f9d(0x18b)])),'transports':[transports[a138_0x397f9d(0x151)],new winston['transports'][(a138_0x397f9d(0x181))](a138_0x2c3c29)]},a138_0x1d4491={};a138_0x1d4491[a138_0x397f9d(0x197)]=()=>{},a138_0x1d4491[a138_0x397f9d(0x162)]=()=>{},a138_0x1d4491[a138_0x397f9d(0x16f)]=()=>{},a138_0x1d4491['error']=()=>{},a138_0x1d4491[a138_0x397f9d(0x160)]=()=>{},a138_0x1d4491[a138_0x397f9d(0x190)]=()=>{},exports[a138_0x397f9d(0x169)]=process['env'][a138_0x397f9d(0x18f)]===a138_0x397f9d(0x147)?winston['createLogger']({'format':winston[a138_0x397f9d(0x176)][a138_0x397f9d(0x15c)](winston[a138_0x397f9d(0x176)]['uncolorize'](),winston[a138_0x397f9d(0x176)]['timestamp'](),logFormat(),winston['format']['printf'](_0x491b1f=>_0x491b1f[a138_0x397f9d(0x16d)]+':\x20'+_0x491b1f['message'])),'transports':[automationTransports['automationLoggerFile']]}):a138_0x1d4491;const initialize=()=>{const _0x21a29a=a138_0x397f9d,_0x561e7e={};_0x561e7e[_0x21a29a(0x14d)]=_0x21a29a(0x190);const _0x5c7837=_0x561e7e,_0x519734=transports[_0x21a29a(0x187)][_0x21a29a(0x16d)]||initialLogLevel;transports[_0x21a29a(0x18d)]&&(exports[_0x21a29a(0x15f)][_0x21a29a(0x191)](transports['loggerFile']),exports['fileLogger'][_0x21a29a(0x191)](transports[_0x21a29a(0x18d)])),transports['debugLoggerFile']&&(exports[_0x21a29a(0x15f)][_0x21a29a(0x191)](transports[_0x21a29a(0x188)]),exports[_0x21a29a(0x172)][_0x21a29a(0x191)](transports[_0x21a29a(0x188)])),transports['loggerFile']=new winston[(_0x21a29a(0x196))]['File']({'filename':path['join'](exports[_0x21a29a(0x170)],LOG_FILE_NAME),'level':_0x519734}),transports[_0x21a29a(0x188)]=new winston['transports'][(_0x21a29a(0x168))]({'filename':path[_0x21a29a(0x19e)](exports['logDir'],DEBUG_LOG_FILE_NAME),'level':_0x5c7837[_0x21a29a(0x14d)]}),transports[_0x21a29a(0x16e)]=new winston[(_0x21a29a(0x196))]['File']({'filename':path[_0x21a29a(0x19e)](exports[_0x21a29a(0x170)],DEBUG_CLI_LOG_FILE_NAME),'level':_0x5c7837[_0x21a29a(0x14d)]}),exports[_0x21a29a(0x15f)][_0x21a29a(0x194)](transports[_0x21a29a(0x18d)]),exports['winstonLogger'][_0x21a29a(0x194)](transports[_0x21a29a(0x188)]),exports[_0x21a29a(0x172)][_0x21a29a(0x194)](transports['loggerFile']),exports[_0x21a29a(0x172)]['add'](transports[_0x21a29a(0x188)]);};exports[a138_0x397f9d(0x15f)]=new winston[(a138_0x397f9d(0x14e))](winstonLoggerParams),exports['fileLogger']=new winston[(a138_0x397f9d(0x14e))](winstonFileLoggerParams),exports[a138_0x397f9d(0x16b)]=new winston[(a138_0x397f9d(0x14e))](BuildLoggerParams),exports[a138_0x397f9d(0x170)]=logDir,exports[a138_0x397f9d(0x1a1)]=()=>{const _0x296835=a138_0x397f9d;return exports[_0x296835(0x170)];},exports[a138_0x397f9d(0x196)]=transports,exports[a138_0x397f9d(0x19b)]=initialize,exports[a138_0x397f9d(0x186)]=maskHeaders;logDir&&initialize();
|
package/src/helpers/metadata.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a139_0x1efeb7=a139_0x32d9;(function(_0x5bbca6,_0xf677ea){const _0x2241bc=a139_0x32d9,_0x1967ab=_0x5bbca6();while(!![]){try{const _0x4745f3=-parseInt(_0x2241bc(0x1f4))/0x1*(-parseInt(_0x2241bc(0x1f5))/0x2)+parseInt(_0x2241bc(0x1fb))/0x3+-parseInt(_0x2241bc(0x204))/0x4+parseInt(_0x2241bc(0x1e8))/0x5*(parseInt(_0x2241bc(0x202))/0x6)+-parseInt(_0x2241bc(0x1ff))/0x7*(parseInt(_0x2241bc(0x1fa))/0x8)+-parseInt(_0x2241bc(0x1f1))/0x9*(-parseInt(_0x2241bc(0x1f8))/0xa)+-parseInt(_0x2241bc(0x200))/0xb*(parseInt(_0x2241bc(0x1e9))/0xc);if(_0x4745f3===_0xf677ea)break;else _0x1967ab['push'](_0x1967ab['shift']());}catch(_0x3c3890){_0x1967ab['push'](_0x1967ab['shift']());}}}(a139_0x11f2,0x41890));function a139_0x11f2(){const _0x20497c=['identifier','1232432clXrxX','Rfemj','testMeta-','HvsEr','length','383465qyivil','80436PoXYLb','foFKf','getGlobal','./helper','getCentralUser','lcnc','testRunUUID','bJWIS','5769ZdZbxW','setGlobal','testMeta','2889BuHgSm','352iwlJmu','./globals','winstonLogger','4790ZRukxu','string','396136qhyRVK','875328vPPVKF','warn','set','jxtRr','7RJYfxd','1419oUNJwM','xdwsM','30xjWfmF'];a139_0x11f2=function(){return _0x20497c;};return a139_0x11f2();}function a139_0x32d9(_0x39a492,_0x47f753){const _0x11f261=a139_0x11f2();return a139_0x32d9=function(_0x32d90a,_0x387a80){_0x32d90a=_0x32d90a-0x1e5;let _0x229d12=_0x11f261[_0x32d90a];return _0x229d12;},a139_0x32d9(_0x39a492,_0x47f753);}const globals=require(a139_0x1efeb7(0x1f6)),helper=require(a139_0x1efeb7(0x1ec)),logger=require('./logger')[a139_0x1efeb7(0x1f7)];module['exports']=class TestMetadata{static[a139_0x1efeb7(0x1fd)](_0x107674={}){const _0x1cbadb=a139_0x1efeb7,_0x5ceceb={};_0x5ceceb[_0x1cbadb(0x1f0)]=_0x1cbadb(0x1ef),_0x5ceceb[_0x1cbadb(0x205)]=function(_0x36c630,_0x13e6f2){return _0x36c630===_0x13e6f2;},_0x5ceceb[_0x1cbadb(0x1fe)]=_0x1cbadb(0x1f9),_0x5ceceb['xdwsM']=function(_0x3afb94,_0x399861){return _0x3afb94<=_0x399861;},_0x5ceceb[_0x1cbadb(0x1e6)]=_0x1cbadb(0x1f3),_0x5ceceb['PhdYb']='The\x20metadata\x20object\x20is\x20not\x20valid.';const _0x1ff7b4=_0x5ceceb,_0x3602f0=globals[_0x1cbadb(0x1eb)](_0x1ff7b4[_0x1cbadb(0x1f0)]),_0x22fe57=_0x107674[_0x1cbadb(0x203)];helper[_0x1cbadb(0x1ed)]()[_0x1cbadb(0x1ee)]&&(_0x1ff7b4[_0x1cbadb(0x205)](typeof _0x22fe57,_0x1ff7b4['jxtRr'])&&_0x1ff7b4[_0x1cbadb(0x201)](_0x22fe57[_0x1cbadb(0x1e7)],0x28)?_0x3602f0?globals[_0x1cbadb(0x1f2)](_0x1cbadb(0x1e5)+_0x3602f0,_0x107674):globals['setGlobal'](_0x1ff7b4[_0x1cbadb(0x1e6)],_0x107674):logger[_0x1cbadb(0x1fc)](_0x1ff7b4['PhdYb']));}static['get'](_0x107ed4){const _0x545c7c=a139_0x1efeb7,_0x23ea00={};_0x23ea00[_0x545c7c(0x1ea)]=_0x545c7c(0x1f3);const _0x445163=_0x23ea00;if(helper[_0x545c7c(0x1ed)]()[_0x545c7c(0x1ee)])return globals[_0x545c7c(0x1eb)](_0x545c7c(0x1e5)+_0x107ed4)||globals['getGlobal'](_0x445163[_0x545c7c(0x1ea)])||{};return{};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a140_0xa0a94a=a140_0x469c;function a140_0x469c(_0x4ca221,_0x64920c){const _0x5a5fde=a140_0x5a5f();return a140_0x469c=function(_0x469c77,_0x64b42b){_0x469c77=_0x469c77-0x134;let _0x1fa699=_0x5a5fde[_0x469c77];return _0x1fa699;},a140_0x469c(_0x4ca221,_0x64920c);}function a140_0x5a5f(){const _0x5502e=['patchExecute','script','commandName',',\x20testRunId=','1742130tUfntO','RLCUA','MgzhM','get','url','PRE','find','23755fFZsxI','zYTBi','bstack:options','getInstance','./performance/performance-tester','format','getNudgeLocalNotSetError','oNGKp','234KRcaBr','getAutomationFramework','util','QJJaT','toISOString','443224RSvYXN','getAccessibilityModule','silly','Aazxq','capability','./performance/constants','command','function','1257gsnfqk','../bin/v2/browserstackCLI','../bin/v2/state/hookState','VhUPv','parameters','overrideExecute','POST_EXECUTE','XZtrN','isAppAccessibility','onBeforeExecute','request','rAzai','LsTau','local','toccT','AUTOMATION_LOG_COMMANDS','ijqgT','testFramework','name_','NUDGE_LOCAL_ERRORS','message','Error\x20in\x20local\x20nudge\x20for\x20overrideExecute:\x20','executeScript','1084BBdeEB','parameters_','4glKmIZ','browserstack.local','LmyXz','getCurrentAccessibilityStatus','testRunId','428650zwoIVR','measureWrapper','../bin/utils/constants','body','4487329fNCQPk','debug','[App-A11y]\x20patchHelper:\x20error\x20in\x20a11y\x20scan\x20hook:\x20','FRAMEWORKS','trackEvent','./logger','string','1555344fPYxsf','includes','NODE_GENERIC','toString','initExecute','[App-A11y]\x20patchHelper:\x20no\x20automationFramework\x20for\x20node-generic\x20—\x20calling\x20onBeforeExecute\x20directly\x20for\x20command=','rOsoT','MexHj','Caught\x20error\x20in\x20execute,\x20check\x20if\x20geturl\x20and\x20try\x20to\x20set\x20local\x20nudge','adLvX','EXECUTE','nestedKeyValue','response','args','driver','./accessibility-automation/constants','BftsR','uuheR'];a140_0x5a5f=function(){return _0x5502e;};return a140_0x5a5f();}(function(_0x208441,_0x58f80b){const _0x138903=a140_0x469c,_0x18d089=_0x208441();while(!![]){try{const _0x486a16=-parseInt(_0x138903(0x16f))/0x1+parseInt(_0x138903(0x18e))/0x2*(parseInt(_0x138903(0x177))/0x3)+-parseInt(_0x138903(0x135))/0x4*(-parseInt(_0x138903(0x162))/0x5)+parseInt(_0x138903(0x15b))/0x6+-parseInt(_0x138903(0x13e))/0x7+-parseInt(_0x138903(0x145))/0x8+parseInt(_0x138903(0x16a))/0x9*(parseInt(_0x138903(0x13a))/0xa);if(_0x486a16===_0x58f80b)break;else _0x18d089['push'](_0x18d089['shift']());}catch(_0x17e984){_0x18d089['push'](_0x18d089['shift']());}}}(a140_0x5a5f,0x57675));const PerformanceTester=require(a140_0xa0a94a(0x166)),{winstonLogger:logger,automationLogger}=require(a140_0xa0a94a(0x143)),helper=require('./helper'),constants=require(a140_0xa0a94a(0x13c)),{DRIVER_EVENT:PerformanceDriverEvents}=require(a140_0xa0a94a(0x174)),{BSTACK_SCAN_IN_PROGRESS}=require(a140_0xa0a94a(0x154)),util=require(a140_0xa0a94a(0x16c));exports[a140_0xa0a94a(0x17c)]=(_0x239a78,_0x418266)=>{const _0x2a244b=a140_0xa0a94a,_0x3f355b={'RLCUA':_0x2a244b(0x14d),'rOsoT':function(_0x1ceb46,_0x503107){return _0x1ceb46===_0x503107;},'WlRIu':_0x2a244b(0x15e),'adLvX':_0x2a244b(0x134),'WUtjU':_0x2a244b(0x15f),'toccT':_0x2a244b(0x18c),'MgzhM':'executeAsyncScript','sMleB':function(_0x1beb58,_0x314fdd){return _0x1beb58===_0x314fdd;},'tMHNZ':_0x2a244b(0x18d),'ijqgT':_0x2a244b(0x144),'QJJaT':function(_0xae7eb,_0x36e1d3){return _0xae7eb(_0x36e1d3);},'KVhqJ':'./accessibility-automation/scripts','Aazxq':function(_0x526239,_0xab888b){return _0x526239(_0xab888b);},'BftsR':'../bin/v2/state/automationFrameworkState','MexHj':function(_0x363805,_0x1675d0){return _0x363805(_0x1675d0);},'LmyXz':_0x2a244b(0x179),'XZtrN':function(_0x551807,_0x18f246){return _0x551807===_0x18f246;},'uuheR':_0x2a244b(0x176),'zYTBi':_0x2a244b(0x178),'LsTau':_0x2a244b(0x173),'VhUPv':_0x2a244b(0x136),'oNGKp':_0x2a244b(0x164),'rAzai':_0x2a244b(0x184)},_0xe7259=_0x239a78[_0x2a244b(0x157)]||(helper['nestedKeyValue'](_0x418266,[_0x3f355b[_0x2a244b(0x183)],_0x3f355b[_0x2a244b(0x17a)]])||helper[_0x2a244b(0x150)](_0x418266,[_0x3f355b[_0x2a244b(0x183)],_0x3f355b[_0x2a244b(0x169)],_0x3f355b[_0x2a244b(0x182)]]));if(_0xe7259)return;_0x239a78['patchExecute']=!![],_0x239a78['initExecute']=_0x239a78['execute'],_0x239a78['execute']=async _0x52e96b=>{const _0x5bcd28=_0x2a244b;try{const _0x9e1448=await _0x239a78[_0x5bcd28(0x149)](_0x52e96b);try{if(_0x3f355b['rOsoT'](_0x52e96b[_0x5bcd28(0x189)],_0x3f355b[_0x5bcd28(0x15d)])||_0x3f355b['sMleB'](_0x52e96b[_0x5bcd28(0x189)],_0x3f355b['tMHNZ'])){const _0x4f3aa9=_0x52e96b['parameters_']&&_0x52e96b['parameters_'][_0x5bcd28(0x158)],_0x5106e0=_0x52e96b[_0x5bcd28(0x134)]&&_0x52e96b[_0x5bcd28(0x134)][_0x5bcd28(0x152)],_0x23a98e=_0x5106e0&&util[_0x5bcd28(0x167)]('%j',_0x5106e0);if(_0x4f3aa9&&_0x3f355b[_0x5bcd28(0x14b)](typeof _0x4f3aa9,_0x3f355b[_0x5bcd28(0x187)])){const _0x3040d2=constants[_0x5bcd28(0x186)][_0x5bcd28(0x161)](_0x17e2b6=>_0x4f3aa9[_0x5bcd28(0x146)](_0x17e2b6)||_0x23a98e&&_0x23a98e['includes'](_0x17e2b6));if(_0x3040d2){const _0x397e82={};_0x397e82[_0x5bcd28(0x175)]=_0x3040d2,_0x397e82[_0x5bcd28(0x17b)]=_0x5106e0;const _0x2858d6={};_0x2858d6[_0x5bcd28(0x13d)]=_0x9e1448;const _0x18ba3d={};_0x18ba3d[_0x5bcd28(0x181)]=_0x397e82,_0x18ba3d[_0x5bcd28(0x151)]=_0x2858d6,automationLogger[_0x5bcd28(0x171)]('['+new Date()[_0x5bcd28(0x16e)]()+'][\x20SDK-AUTOMATION\x20]\x20'+util[_0x5bcd28(0x167)]('%j',_0x18ba3d));}}}}catch(_0xd92f44){logger[_0x5bcd28(0x171)]('Error\x20while\x20logging\x20accessibility\x20automation\x20logs\x20in\x20driver.execute\x20:\x20'+_0xd92f44[_0x5bcd28(0x18b)]);}try{if(!_0x239a78[BSTACK_SCAN_IN_PROGRESS]){const _0x5e183e=_0x3f355b[_0x5bcd28(0x16d)](require,_0x3f355b['KVhqJ']),_0x4039ea=_0x3f355b['Aazxq'](require,_0x3f355b[_0x5bcd28(0x155)]),_0x56b64f=_0x3f355b[_0x5bcd28(0x14c)](require,_0x3f355b[_0x5bcd28(0x137)]);if(_0x3f355b[_0x5bcd28(0x17e)](typeof _0x5e183e['shouldWrapCommand'],_0x3f355b[_0x5bcd28(0x156)])&&_0x5e183e['shouldWrapCommand'](_0x52e96b['name_'])){const _0x13fb17=_0x3f355b[_0x5bcd28(0x172)](require,_0x3f355b[_0x5bcd28(0x163)]),_0x24ed70=_0x13fb17[_0x5bcd28(0x165)](),_0x5d2955=_0x24ed70&&_0x24ed70[_0x5bcd28(0x170)]();if(_0x5d2955&&_0x5d2955[_0x5bcd28(0x17f)]&&_0x5d2955[_0x5bcd28(0x138)]()){let _0xdad083='';try{const _0x21a4da=_0x24ed70['getTestFramework']&&_0x24ed70['getTestFramework']();_0xdad083=_0x21a4da&&_0x21a4da['getCurrentTestUUID']&&_0x21a4da['getCurrentTestUUID']()||'';}catch(_0x179dab){}logger['debug']('[App-A11y]\x20patchHelper:\x20firing\x20EXECUTE\x20PRE\x20for\x20command='+_0x52e96b['name_']+_0x5bcd28(0x15a)+_0xdad083);const _0x4fb841=_0x24ed70[_0x5bcd28(0x16b)]();if(!_0x4fb841){logger[_0x5bcd28(0x13f)](_0x5bcd28(0x14a)+_0x52e96b[_0x5bcd28(0x189)]);const _0x24260f={};_0x24260f[_0x5bcd28(0x188)]=constants['FRAMEWORKS'][_0x5bcd28(0x147)],_0x24260f[_0x5bcd28(0x159)]=_0x52e96b[_0x5bcd28(0x189)],_0x24260f[_0x5bcd28(0x153)]=_0x239a78,_0x24260f[_0x5bcd28(0x139)]=_0xdad083,await _0x5d2955[_0x5bcd28(0x180)](_0x24260f);}else{const _0x320ff0={};_0x320ff0[_0x5bcd28(0x159)]=_0x52e96b['name_'],_0x320ff0[_0x5bcd28(0x153)]=_0x239a78,_0x320ff0[_0x5bcd28(0x188)]=constants[_0x5bcd28(0x141)]['NODE_GENERIC'],_0x320ff0[_0x5bcd28(0x139)]=_0xdad083,await _0x4fb841[_0x5bcd28(0x142)](_0x4039ea[_0x5bcd28(0x14f)],_0x56b64f[_0x5bcd28(0x160)],_0x320ff0);}}}}}catch(_0x3df170){logger[_0x5bcd28(0x13f)](_0x5bcd28(0x140)+_0x3df170[_0x5bcd28(0x18b)]);}return _0x9e1448;}catch(_0xc17a0b){await PerformanceTester[_0x5bcd28(0x13b)](PerformanceDriverEvents[_0x5bcd28(0x17d)],async()=>{const _0xb5eb60=_0x5bcd28;logger[_0xb5eb60(0x13f)](_0x3f355b[_0xb5eb60(0x15c)]);try{_0x3f355b[_0xb5eb60(0x14b)](_0x52e96b[_0xb5eb60(0x189)],_0x3f355b['WlRIu'])&&helper[_0xb5eb60(0x150)](_0x52e96b,[_0x3f355b[_0xb5eb60(0x14e)],_0x3f355b['WUtjU']])&&!!constants[_0xb5eb60(0x18a)][_0xb5eb60(0x161)](_0x2ec8d0=>{const _0x2c9489=_0xb5eb60;return _0xc17a0b[_0x2c9489(0x148)]()[_0x2c9489(0x146)](_0x2ec8d0);})&&helper[_0xb5eb60(0x168)](_0x52e96b[_0xb5eb60(0x134)][_0xb5eb60(0x15f)],!![]);}catch(_0x3a00b8){logger[_0xb5eb60(0x13f)](_0x3f355b[_0xb5eb60(0x185)],_0x3a00b8);}},{'success':![],'failure':_0xc17a0b})();throw _0xc17a0b;}};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a141_0x1ff8(){const _0x5bf206=['6840896YOidNN','912228wOhjKK','pid','uHTJg','5780862tMYNEW','emit','kQHxS','catch','env','./performance/performance-tester','quitCount_','YVZAa','9ZrWzXQ','overrideQuit','quit','OxMyh','true','BuAfC','takeScreenshot','initQuit','JRPCm','XqofZ','1656595RsxkmP','bs:addLog:','toISOString','TAKE_SCREENSHOT','1266oyqpPh','then','350801dLOenW','overrideTakeScreenshot','bzLEH','O11y_EVENTS','patchQuit','1807322ihfAzX','patchScreenshot','pDfbn','end','BLSRP','./performance/constants','initScreenshot','30751UpDGxg','370iWdbAd','1yYptAm'];a141_0x1ff8=function(){return _0x5bf206;};return a141_0x1ff8();}const a141_0x53dd2d=a141_0x4332;(function(_0x2813b0,_0xb2b5a3){const _0x4ee49f=a141_0x4332,_0x31db86=_0x2813b0();while(!![]){try{const _0x34d10d=-parseInt(_0x4ee49f(0x154))/0x1*(parseInt(_0x4ee49f(0x14b))/0x2)+parseInt(_0x4ee49f(0x161))/0x3*(-parseInt(_0x4ee49f(0x156))/0x4)+parseInt(_0x4ee49f(0x16b))/0x5+parseInt(_0x4ee49f(0x16f))/0x6*(-parseInt(_0x4ee49f(0x152))/0x7)+parseInt(_0x4ee49f(0x155))/0x8+parseInt(_0x4ee49f(0x159))/0x9+parseInt(_0x4ee49f(0x153))/0xa*(parseInt(_0x4ee49f(0x146))/0xb);if(_0x34d10d===_0xb2b5a3)break;else _0x31db86['push'](_0x31db86['shift']());}catch(_0x34a976){_0x31db86['push'](_0x31db86['shift']());}}}(a141_0x1ff8,0x78989));function a141_0x4332(_0x4941af,_0x593720){const _0x1ff899=a141_0x1ff8();return a141_0x4332=function(_0x433201,_0x42c004){_0x433201=_0x433201-0x145;let _0x479389=_0x1ff899[_0x433201];return _0x479389;},a141_0x4332(_0x4941af,_0x593720);}const PerformanceTester=require(a141_0x53dd2d(0x15e)),O11yEvents=require(a141_0x53dd2d(0x150))[a141_0x53dd2d(0x149)];exports[a141_0x53dd2d(0x147)]=_0x5fe410=>{const _0xa64f6d=a141_0x53dd2d,_0x487fc5={'YVZAa':function(_0x32bd05,_0x25a113){return _0x32bd05(_0x25a113);},'BLSRP':'TEST_SCREENSHOT','pDfbn':function(_0x575c78,_0x4b7708){return _0x575c78(_0x4b7708);},'JRPCm':function(_0xa07827,_0x293412){return _0xa07827!==_0x293412;},'OxMyh':_0xa64f6d(0x165)};if(_0x487fc5[_0xa64f6d(0x169)](process[_0xa64f6d(0x15d)]['BS_TESTOPS_ALLOW_SCREENSHOTS'],_0x487fc5[_0xa64f6d(0x164)]))return;if(_0x5fe410[_0xa64f6d(0x14c)])return;_0x5fe410[_0xa64f6d(0x14c)]=!![],_0x5fe410[_0xa64f6d(0x151)]=_0x5fe410[_0xa64f6d(0x167)],_0x5fe410[_0xa64f6d(0x167)]=()=>{const _0x206a9c=_0xa64f6d,_0x5ddcbe={'uHTJg':_0x487fc5[_0x206a9c(0x14f)],'kQHxS':function(_0x2eea01,_0xfddd8){const _0x175fb5=_0x206a9c;return _0x487fc5[_0x175fb5(0x14d)](_0x2eea01,_0xfddd8);}};return new Promise(function(_0x3eabe5,_0x52ecd6){const _0x5d8cf8=_0x206a9c,_0x40502c={'ajHDv':function(_0x196f65,_0x14aea0){const _0x22d635=a141_0x4332;return _0x487fc5[_0x22d635(0x160)](_0x196f65,_0x14aea0);}};_0x5fe410['initScreenshot']()[_0x5d8cf8(0x145)](_0x1f708f=>{const _0x2cce07=_0x5d8cf8;PerformanceTester['start'](O11yEvents['TAKE_SCREENSHOT']),process[_0x2cce07(0x15a)](_0x2cce07(0x16c)+process[_0x2cce07(0x157)],{'timestamp':new Date()[_0x2cce07(0x16d)](),'message':_0x1f708f,'kind':_0x5ddcbe[_0x2cce07(0x158)]}),_0x5ddcbe[_0x2cce07(0x15b)](_0x3eabe5,_0x1f708f),PerformanceTester[_0x2cce07(0x14e)](O11yEvents[_0x2cce07(0x16e)]);})[_0x5d8cf8(0x15c)](_0x33fa8d=>{const _0x3cf716=_0x5d8cf8;PerformanceTester[_0x3cf716(0x14e)](O11yEvents[_0x3cf716(0x16e)]),_0x40502c['ajHDv'](_0x52ecd6,_0x33fa8d);});});};},exports[a141_0x53dd2d(0x162)]=(_0x47923e,_0x3e4fac=null)=>{const _0x332b0c=a141_0x53dd2d,_0x1aa1cf={'BuAfC':function(_0x3fe70b){return _0x3fe70b();},'bzLEH':function(_0x367591,_0x745ba){return _0x367591>_0x745ba;},'XqofZ':function(_0x4962eb,_0x506a4b){return _0x4962eb>_0x506a4b;}};if(_0x47923e[_0x332b0c(0x14a)])return;_0x47923e[_0x332b0c(0x14a)]=!![],_0x47923e[_0x332b0c(0x168)]=_0x47923e['quit'],_0x47923e[_0x332b0c(0x163)]=()=>{const _0x1abde4=_0x332b0c,_0x40482b={'wHIOd':function(_0x47b1d5){const _0x52052d=a141_0x4332;return _0x1aa1cf[_0x52052d(0x166)](_0x47b1d5);}};if(_0x3e4fac){_0x3e4fac[_0x1abde4(0x15f)]+=0x1;if(_0x1aa1cf[_0x1abde4(0x148)](_0x3e4fac[_0x1abde4(0x15f)],0x1))return _0x47923e[_0x1abde4(0x168)]();}else{_0x47923e[_0x1abde4(0x15f)]+=0x1;if(_0x1aa1cf[_0x1abde4(0x16a)](_0x47923e[_0x1abde4(0x15f)],0x1))return _0x47923e[_0x1abde4(0x168)]();}return new Promise(function(_0x1f3109){_0x40482b['wHIOd'](_0x1f3109);});};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a142_0x2fd73c=a142_0x3140;(function(_0xa54aa5,_0x1385e7){const _0x486319=a142_0x3140,_0x127758=_0xa54aa5();while(!![]){try{const _0x13cca7=parseInt(_0x486319(0x14e))/0x1*(parseInt(_0x486319(0x12e))/0x2)+parseInt(_0x486319(0x135))/0x3*(parseInt(_0x486319(0x120))/0x4)+-parseInt(_0x486319(0x11d))/0x5+parseInt(_0x486319(0x12c))/0x6*(-parseInt(_0x486319(0x13d))/0x7)+-parseInt(_0x486319(0x116))/0x8*(-parseInt(_0x486319(0x154))/0x9)+-parseInt(_0x486319(0x142))/0xa+parseInt(_0x486319(0x139))/0xb*(parseInt(_0x486319(0x11b))/0xc);if(_0x13cca7===_0x1385e7)break;else _0x127758['push'](_0x127758['shift']());}catch(_0x2eb8e3){_0x127758['push'](_0x127758['shift']());}}}(a142_0x3d5d,0xef787));const fs=require('fs'),path=require(a142_0x2fd73c(0x127)),os=require('os'),{spawn}=require(a142_0x2fd73c(0x148)),helper=require('../helper'),logger=require(a142_0x2fd73c(0x12d))[a142_0x2fd73c(0x143)],{getLogDir}=require('../logger'),testHubConstants=require(a142_0x2fd73c(0x162)),PerformanceTester=require(a142_0x2fd73c(0x11e)),{PERCY_EVENTS:PerformanceEvents}=require(a142_0x2fd73c(0x123)),PercyBinary=require('./PercyBinary');class Percy{#logfile=path['join'](getLogDir(),a142_0x2fd73c(0x134));#address=process[a142_0x2fd73c(0x141)]['PERCY_SERVER_ADDRESS']||'http://localhost:5338';#binaryPath=null;#config=null;#proc=null;#logStream=null;#isApp=![];[a142_0x2fd73c(0x15c)]=![];constructor(_0x555f3e){const _0x43c79f=a142_0x2fd73c;this.#config=_0x555f3e,!!_0x555f3e[_0x43c79f(0x160)]&&(this.#isApp=!![]);}async #getBinaryPath(){const _0x1134d2=a142_0x2fd73c;if(!this.#binaryPath){const _0xb32cd4=new PercyBinary();PerformanceTester[_0x1134d2(0x121)](PerformanceEvents[_0x1134d2(0x15f)]),this.#binaryPath=await _0xb32cd4['getBinaryPath'](this.#config),PerformanceTester['end'](PerformanceEvents[_0x1134d2(0x15f)]);}return this.#binaryPath;}async #sleep(_0x315c4b){return new Promise(_0x4ca39f=>setTimeout(_0x4ca39f,_0x315c4b));}async['healthcheck'](){const _0x3f7eda=a142_0x2fd73c,_0x3d3152={};_0x3d3152[_0x3f7eda(0x15a)]=_0x3f7eda(0x117),_0x3d3152[_0x3f7eda(0x13b)]=_0x3f7eda(0x138);const _0x186986=_0x3d3152;try{const _0xa4c57b=await helper[_0x3f7eda(0x128)](_0x186986['OUsSU'],_0x186986[_0x3f7eda(0x13b)],null,null,this.#address);if(_0xa4c57b)return!![];}catch(_0x42db70){return![];}}async[a142_0x2fd73c(0x121)](){const _0x3b7228=a142_0x2fd73c,_0x299ff={'SeVHO':'app:exec','xmHQZ':_0x3b7228(0x140),'GUqKx':function(_0x277b77,_0x1a5997,_0x32068f,_0x214bef){return _0x277b77(_0x1a5997,_0x32068f,_0x214bef);},'vnwgi':_0x3b7228(0x12a),'VwrHf':_0x3b7228(0x13f)},_0x1e73c4=await this.#getBinaryPath(),_0x2cf865={};_0x2cf865['flags']='a',this.#logStream=fs[_0x3b7228(0x151)](this.#logfile,_0x2cf865);const _0x3f3b5b=await this[_0x3b7228(0x133)](),_0x3622d0=await this[_0x3b7228(0x13e)]();if(!_0x3f3b5b)return![];const _0xf0a5ac=[(this.#isApp?_0x299ff[_0x3b7228(0x15e)]:_0x299ff[_0x3b7228(0x130)])+_0x3b7228(0x136)];_0x3622d0&&_0xf0a5ac[_0x3b7228(0x15b)]('-c',_0x3622d0);this.#proc=_0x299ff[_0x3b7228(0x13c)](spawn,_0x1e73c4,_0xf0a5ac,{'env':Object[_0x3b7228(0x145)](process[_0x3b7228(0x141)],{'PERCY_TOKEN':_0x3f3b5b,'TH_BUILD_UUID':process[_0x3b7228(0x141)][testHubConstants[_0x3b7228(0x126)][_0x3b7228(0x137)]]})}),this.#proc[_0x3b7228(0x14f)][_0x3b7228(0x12b)](this.#logStream),this.#proc[_0x3b7228(0x155)][_0x3b7228(0x12b)](this.#logStream),this[_0x3b7228(0x15c)]=!![];var _0x31fc45=this;this.#proc['on'](_0x299ff[_0x3b7228(0x14b)],function(_0x390712){const _0x2e68f7=_0x3b7228;_0x31fc45[_0x2e68f7(0x15c)]=![];});do{const _0xedfac9=await this[_0x3b7228(0x144)]();if(_0xedfac9)return logger[_0x3b7228(0x125)](_0x299ff[_0x3b7228(0x115)]),!![];await this.#sleep(0x3e8);}while(this[_0x3b7228(0x15c)]);return![];}async[a142_0x2fd73c(0x158)](){const _0x3459c5=a142_0x2fd73c,_0x3771b3={'fhfLU':function(_0x27053f,_0x36003f){return _0x27053f(_0x36003f);},'SFBJu':function(_0x4a97f0,_0x19b73e,_0x44d6e5){return _0x4a97f0(_0x19b73e,_0x44d6e5);},'HEGWx':_0x3459c5(0x14d),'JKgvx':_0x3459c5(0x12a)},_0x1f09cf=await this.#getBinaryPath();return new Promise((_0xa8a75b,_0xbf31dc)=>{const _0x2712da=_0x3459c5,_0x379fa5=_0x3771b3[_0x2712da(0x153)](spawn,_0x1f09cf,[_0x3771b3[_0x2712da(0x119)]]);_0x379fa5['on'](_0x3771b3['JKgvx'],_0x4b8e92=>{const _0x2815a6=_0x2712da;this[_0x2815a6(0x15c)]=![],this.#logStream&&(this.#logStream[_0x2815a6(0x149)](),this.#logStream=null),_0x3771b3[_0x2815a6(0x146)](_0xa8a75b,_0x4b8e92);});});}[a142_0x2fd73c(0x13a)](){const _0x26483c=a142_0x2fd73c;return this[_0x26483c(0x15c)];}async['fetchPercyToken'](){const _0x2cb48b=a142_0x2fd73c,_0x25658d={};_0x25658d[_0x2cb48b(0x152)]='app',_0x25658d[_0x2cb48b(0x124)]=_0x2cb48b(0x159),_0x25658d['doNmV']=_0x2cb48b(0x117),_0x25658d[_0x2cb48b(0x132)]=_0x2cb48b(0x11c);const _0x2aa4c7=_0x25658d,_0x6183ae=this.#config['projectName'];try{const _0x465a1f=this.#isApp?_0x2aa4c7['BPVYe']:_0x2aa4c7[_0x2cb48b(0x124)],_0x4a51f3=await helper['nodeRequest'](_0x2aa4c7[_0x2cb48b(0x14c)],_0x2cb48b(0x156)+_0x6183ae+'&type='+_0x465a1f,{},this.#config),_0xd3c094=_0x4a51f3[_0x2cb48b(0x157)];return logger[_0x2cb48b(0x125)](_0x2aa4c7[_0x2cb48b(0x132)]),_0xd3c094[_0x2cb48b(0x15d)];}catch(_0x358195){return logger[_0x2cb48b(0x129)]('Percy\x20unable\x20to\x20fetch\x20project\x20token:\x20'+_0x358195),null;}}async[a142_0x2fd73c(0x13e)](){const _0x31e898=a142_0x2fd73c,_0x51c35c={'shSVI':function(_0x1be1ea,_0x5c4cbc){return _0x1be1ea(_0x5c4cbc);},'BBRzX':function(_0x3da442,_0x16fa7e){return _0x3da442+_0x16fa7e;},'reyKG':_0x31e898(0x12f),'JuOsm':_0x31e898(0x122)};if(!this.#config[_0x31e898(0x11f)])return null;const _0x551983=path[_0x31e898(0x147)](os['tmpdir'](),_0x51c35c[_0x31e898(0x118)]),_0x3e4c06=this.#config[_0x31e898(0x11f)];return!_0x3e4c06[_0x31e898(0x11a)]&&(_0x3e4c06['version']='2'),new Promise((_0x13fa71,_0x2180a3)=>{const _0x1f2303=_0x31e898;fs[_0x1f2303(0x161)](_0x551983,JSON[_0x1f2303(0x14a)](_0x3e4c06),_0x151c8d=>{const _0x8ee44e=_0x1f2303;_0x151c8d&&(logger[_0x8ee44e(0x129)]('Error\x20creating\x20percy\x20config:\x20'+_0x151c8d),_0x51c35c['shSVI'](_0x13fa71,null)),logger[_0x8ee44e(0x125)](_0x51c35c[_0x8ee44e(0x163)](_0x51c35c['reyKG'],_0x551983)),_0x51c35c[_0x8ee44e(0x150)](_0x13fa71,_0x551983);});});}}function a142_0x3140(_0x49856f,_0x471a9b){const _0x3d5d62=a142_0x3d5d();return a142_0x3140=function(_0x3140fd,_0x24d024){_0x3140fd=_0x3140fd-0x115;let _0x2d473a=_0x3d5d62[_0x3140fd];return _0x2d473a;},a142_0x3140(_0x49856f,_0x471a9b);}function a142_0x3d5d(){const _0x57ea4f=['data','stop','automate','OUsSU','push','isProcessRunning','token','SeVHO','DOWNLOAD','app','writeFile','../../helpers/testhub/constants','BBRzX','VwrHf','152POzxyT','GET','JuOsm','HEGWx','version','21107148MMDygH','Percy\x20fetch\x20token\x20success','7190520Mgvzpr','../../helpers/performance/performance-tester','percyOptions','476SyAUho','start','percy.json','../../helpers/performance/constants','fSyst','debug','ENV_VAR','path','nodeRequest','error','close','pipe','11736tBogrg','../logger','2YhNAUx','Percy\x20config\x20created\x20at\x20','xmHQZ','exports','FbXsm','fetchPercyToken','percy.log','15918TZOCIZ',':start','BROWSERSTACK_TESTHUB_UUID','percy/healthcheck','11UAnYDZ','isRunning','rObtM','GUqKx','5761hGqXJn','createPercyConfig','Percy\x20healthcheck\x20successful','exec','env','879500sQJvMo','winstonLogger','healthcheck','assign','fhfLU','join','child_process','end','stringify','vnwgi','doNmV','exec:stop','917483HPQGlz','stdout','shSVI','createWriteStream','BPVYe','SFBJu','383157EDaYXY','stderr','api/app_percy/get_project_token?name='];a142_0x3d5d=function(){return _0x57ea4f;};return a142_0x3d5d();}module[a142_0x2fd73c(0x131)]=Percy;
|
|
@@ -1 +1 @@
|
|
|
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
|
+
const a143_0x2a9613=a143_0x3de6;function a143_0x3de6(_0x4d7a39,_0x4bce58){const _0x2b4ea=a143_0x2b4e();return a143_0x3de6=function(_0x3de6ae,_0x39c060){_0x3de6ae=_0x3de6ae-0x195;let _0x3f7a2e=_0x2b4ea[_0x3de6ae];return _0x3f7a2e;},a143_0x3de6(_0x4d7a39,_0x4bce58);}function a143_0x2b4e(){const _0x3b89fa=['https-proxy-agent','cIvtk','download','12DyCXzU','Saved\x20new\x20ETag\x20for\x20percy\x20binary','New\x20Percy\x20binary\x20version\x20available,\x20downloading\x20update','.zip','123778IxVMfx','createWriteStream','port','Got\x20Error\x20while\x20downloading\x20percy\x20binary\x20file:\x20','needsUpdate','/percy-osx.zip','win32','Failed\x20to\x20read\x20ETag\x20file:\x20','WzXrY','useCaCertificate','qjWEb','TWnSF','MTCFm','tTOlb','DsSJc','dmrjf','71974NuaYQw','Error\x20trying\x20to\x20download\x20percy\x20binary','error','395384QBXWvL','gwjwU','/Users/','cwd','pGAfa','AUHAY','EgYfe','bkUIH','entry','wfpku','ABDpN','PbZVc','tbkrG','21uwsKIr','utf8','ckbgD','VKmny','88twdnPM','ncMCw','bUyhC','exports','JPBUO','uxQyF','UyuLp','join','yauzl','JLmtA','url','homedir','ZwMdU','openReadStream','AVqZG','linux','LNAME','ewvNg','iYmgj','W_OK','tvNpq','accessSync','LOGNAME','Newly\x20downloaded\x20Percy\x20binary\x20is\x20corrupt,\x20retrying','3166560eFXxDt','get','.etag','match','fileName','bskZD','ponnN','platform','proxyHost','SAGhw','close','winstonLogger','X_OK','etag','--version','UMjsM','Jmivn','stdout','nROzF','readFileSync','dyIna','end','binaryPath','ShkRo','If-None-Match','NjKZW','chmod','752890ZfTdZw','MigMm','HfloC','eEaUd','/home/','Failed\x20to\x20check\x20for\x20binary\x20updates,\x20using\x20existing\x20binary:\x20','warn','path','HOMEDRIVE','617535JNfPlb','Percy\x20download\x20failed\x20to\x20read\x20cert\x20file:\x20','lazyEntries','tRExF','test','getuid','mkdirSync','then','sIycz','statusCode','caTWL','pipe','open','extractAndSaveBinary','../logger','.browserstack','mxPSe','Got\x20Error\x20in\x20percy\x20binary\x20download\x20response:\x20','Got\x20Error\x20in\x20percy\x20binary\x20downloading\x20request:\x20','writeFileSync','validateBinary','destroy','0755','undefined','pbNsw','env','mpxSM','NMVFD','YSYAx','2tSWjQH','hpZEc','PpfeF','GGJca','statSync','1119435jHxlTY','headers','PnxXl','Vmaia','enlXp','Percy\x20binary\x20is\x20up\x20to\x20date\x20(ETag\x20unchanged)','mvHkE','OdhcI','debug','darwin','readEntry','guQys','getBinaryPath'];a143_0x2b4e=function(){return _0x3b89fa;};return a143_0x2b4e();}(function(_0x42eb3a,_0x1b4fa1){const _0x2052bf=a143_0x3de6,_0x57cebc=_0x42eb3a();while(!![]){try{const _0x56b50c=parseInt(_0x2052bf(0x1f7))/0x1*(-parseInt(_0x2052bf(0x210))/0x2)+parseInt(_0x2052bf(0x19a))/0x3*(parseInt(_0x2052bf(0x223))/0x4)+parseInt(_0x2052bf(0x1fc))/0x5*(-parseInt(_0x2052bf(0x20c))/0x6)+-parseInt(_0x2052bf(0x220))/0x7+-parseInt(_0x2052bf(0x1b6))/0x8+parseInt(_0x2052bf(0x1da))/0x9+parseInt(_0x2052bf(0x1d1))/0xa*(parseInt(_0x2052bf(0x19e))/0xb);if(_0x56b50c===_0x1b4fa1)break;else _0x57cebc['push'](_0x57cebc['shift']());}catch(_0x5e0c62){_0x57cebc['push'](_0x57cebc['shift']());}}}(a143_0x2b4e,0x5e0ab));const {https}=require('follow-redirects'),url=require(a143_0x2a9613(0x1a8)),yauzl=require(a143_0x2a9613(0x1a6)),fs=require('fs'),path=require(a143_0x2a9613(0x1d8)),os=require('os'),{spawn}=require('child_process'),HttpsProxyAgent=require(a143_0x2a9613(0x209)),logger=require(a143_0x2a9613(0x1e8))[a143_0x2a9613(0x1c1)];class PercyBinary{#hostOS=process[a143_0x2a9613(0x1bd)];#httpPath=null;#binaryName='percy';#orderedPaths=[path[a143_0x2a9613(0x1a5)](this.#homedir(),a143_0x2a9613(0x1e9)),process[a143_0x2a9613(0x226)](),os['tmpdir']()];constructor(){const _0x12e6b7=a143_0x2a9613,_0x3b247e={};_0x3b247e[_0x12e6b7(0x199)]='https://github.com/percy/cli/releases/latest/download',_0x3b247e[_0x12e6b7(0x229)]=function(_0x1a876f,_0x48e942){return _0x1a876f+_0x48e942;},_0x3b247e[_0x12e6b7(0x21e)]=_0x12e6b7(0x215),_0x3b247e[_0x12e6b7(0x1ea)]='/percy-win.zip',_0x3b247e[_0x12e6b7(0x1bf)]='percy.exe',_0x3b247e[_0x12e6b7(0x1af)]=function(_0x372117,_0x3bc66a){return _0x372117+_0x3bc66a;},_0x3b247e['YSYAx']='/percy-linux.zip';const _0x2fe0cc=_0x3b247e,_0x3637f6=_0x2fe0cc[_0x12e6b7(0x199)];if(this.#hostOS[_0x12e6b7(0x1b9)](/darwin|mac os/i))this.#httpPath=_0x2fe0cc[_0x12e6b7(0x229)](_0x3637f6,_0x2fe0cc[_0x12e6b7(0x21e)]);else this.#hostOS[_0x12e6b7(0x1b9)](/mswin|msys|mingw|cygwin|bccwin|wince|emc|win32/i)?(this.#httpPath=_0x2fe0cc[_0x12e6b7(0x229)](_0x3637f6,_0x2fe0cc[_0x12e6b7(0x1ea)]),this.#binaryName=_0x2fe0cc[_0x12e6b7(0x1bf)]):this.#httpPath=_0x2fe0cc[_0x12e6b7(0x1af)](_0x3637f6,_0x2fe0cc[_0x12e6b7(0x1f6)]);}#getAvailableDirs(){const _0x25f93f=a143_0x2a9613,_0x589d81={};_0x589d81[_0x25f93f(0x198)]=function(_0x224ad7,_0x38c87d){return _0x224ad7<_0x38c87d;},_0x589d81[_0x25f93f(0x1b2)]=_0x25f93f(0x221);const _0x39c0ed=_0x589d81;for(var _0x4d07a7=0x0;_0x39c0ed['PbZVc'](_0x4d07a7,this.#orderedPaths['length']);_0x4d07a7++){var _0x40c7e0=this.#orderedPaths[_0x4d07a7];if(this.#makePath(_0x40c7e0))return _0x40c7e0;}throw new Error(_0x39c0ed[_0x25f93f(0x1b2)]);}#makePath(_0x571af9){const _0x77f295=a143_0x2a9613;try{return _0x571af9&&!this.#checkPath(_0x571af9)&&fs[_0x77f295(0x1e0)](_0x571af9),!![];}catch{return![];}}#checkPath(_0x175c70,_0x3116bc){const _0x274a5a=a143_0x2a9613,_0xfaa901={};_0xfaa901[_0x274a5a(0x1f9)]=function(_0x168140,_0x567086){return _0x168140|_0x567086;},_0xfaa901[_0x274a5a(0x1aa)]=function(_0x51b567,_0x5d302e){return _0x51b567!==_0x5d302e;},_0xfaa901[_0x274a5a(0x21d)]=_0x274a5a(0x1f1);const _0xeca144=_0xfaa901;_0x3116bc=_0x3116bc||_0xeca144[_0x274a5a(0x1f9)](fs['R_OK'],fs[_0x274a5a(0x1b1)]);try{return fs[_0x274a5a(0x1b3)](_0x175c70,_0x3116bc),!![];}catch(_0x1acde9){if(_0xeca144[_0x274a5a(0x1aa)](typeof fs[_0x274a5a(0x1b3)],_0xeca144['tTOlb']))return![];try{return fs[_0x274a5a(0x1fb)](_0x175c70),!![];}catch(_0x1f754e){return![];}}}#getETagPath(_0x278f20){const _0x1a6727=a143_0x2a9613;return path[_0x1a6727(0x1a5)](_0x278f20,this.#binaryName+_0x1a6727(0x1b8));}#loadETag(_0x509aa3){const _0xae914c=a143_0x2a9613,_0x55af05={};_0x55af05[_0xae914c(0x207)]=_0xae914c(0x19b);const _0x201833=_0x55af05,_0x367dac=this.#getETagPath(_0x509aa3);if(this.#checkPath(_0x367dac))try{return fs[_0xae914c(0x1c9)](_0x367dac,_0x201833['guQys'])['trim']();}catch(_0x1483cb){logger[_0xae914c(0x1d7)](_0xae914c(0x217)+_0x1483cb);}return null;}#saveETag(_0x360f6f,_0x2e0ca2){const _0x392fee=a143_0x2a9613,_0x4b216c={};_0x4b216c['EvYXv']=_0x392fee(0x20d);const _0x149037=_0x4b216c;if(!_0x2e0ca2)return;try{const _0x324e12=this.#getETagPath(_0x360f6f);fs[_0x392fee(0x1ed)](_0x324e12,_0x2e0ca2),logger['debug'](_0x149037['EvYXv']);}catch(_0x49d937){logger[_0x392fee(0x1d7)]('Failed\x20to\x20save\x20ETag\x20file:\x20'+_0x49d937);}}async #handleBinaryDownload(_0x2fc523,_0x24e932,_0x184a97){const _0x16c978=a143_0x2a9613,_0x4c218f={};_0x4c218f[_0x16c978(0x1a0)]=_0x16c978(0x1b5);const _0x42b779=_0x4c218f,_0x3d5c00=await this[_0x16c978(0x1ee)](_0x2fc523['binaryPath']);if(!_0x3d5c00){logger[_0x16c978(0x222)](_0x42b779['bUyhC']);const _0x4d9061=await this[_0x16c978(0x20b)](_0x24e932,_0x184a97);return _0x4d9061[_0x16c978(0x1cc)];}return _0x2fc523[_0x16c978(0x1cc)];}async[a143_0x2a9613(0x208)](_0x19136f){const _0x54e077=a143_0x2a9613,_0x2722f2={};_0x2722f2['YdNYb']=_0x54e077(0x201),_0x2722f2[_0x54e077(0x218)]=_0x54e077(0x20e);const _0x460f23=_0x2722f2,_0x4e4958=this.#getAvailableDirs(),_0x28821b=path[_0x54e077(0x1a5)](_0x4e4958,this.#binaryName);if(this.#checkPath(_0x28821b,fs[_0x54e077(0x1c2)])){const _0x3a57a5=this.#loadETag(_0x4e4958);if(_0x3a57a5)try{const _0x3b3f52=await this[_0x54e077(0x20b)](_0x19136f,_0x4e4958,_0x3a57a5);if(!_0x3b3f52[_0x54e077(0x214)])return logger[_0x54e077(0x204)](_0x460f23['YdNYb']),_0x28821b;return logger[_0x54e077(0x204)](_0x460f23['WzXrY']),await this.#handleBinaryDownload(_0x3b3f52,_0x19136f,_0x4e4958);}catch(_0x233df3){return logger['warn'](_0x54e077(0x1d6)+_0x233df3),_0x28821b;}}const _0x328233=await this[_0x54e077(0x20b)](_0x19136f,_0x4e4958);return await this.#handleBinaryDownload(_0x328233,_0x19136f,_0x4e4958);}['download'](_0x38bef2,_0x556210,_0x5931d7=null){const _0x115c8e=a143_0x2a9613,_0x4a8493={'cIvtk':function(_0x541b17,_0x3c6baf){return _0x541b17(_0x3c6baf);},'UMjsM':function(_0x376c8e,_0x220052){return _0x376c8e(_0x220052);},'CpLVr':function(_0x42d849,_0x31b651){return _0x42d849===_0x31b651;},'sIycz':_0x115c8e(0x222),'PcmbX':_0x115c8e(0x1c0),'wfpku':function(_0x330906,_0x511941){return _0x330906+_0x511941;},'ieopw':_0x115c8e(0x20f)};_0x556210&&!this.#checkPath(_0x556210)&&fs['mkdirSync'](_0x556210);const _0x454592=this.#binaryName,_0x487809=path[_0x115c8e(0x1a5)](_0x556210,_0x4a8493[_0x115c8e(0x196)](_0x454592,_0x4a8493['ieopw'])),_0x159d0c=fs[_0x115c8e(0x211)](_0x487809),_0x30b0d5=url['parse'](this.#httpPath);if(_0x38bef2['proxyHost']&&_0x38bef2['proxyPort']){const _0x1fb340={};_0x1fb340['host']=_0x38bef2[_0x115c8e(0x1be)],_0x1fb340[_0x115c8e(0x212)]=_0x38bef2['proxyPort'],_0x30b0d5['agent']=new HttpsProxyAgent(_0x1fb340);}if(_0x38bef2[_0x115c8e(0x219)])try{_0x30b0d5['ca']=fs['readFileSync'](_0x38bef2[_0x115c8e(0x219)]);}catch(_0x1d16e1){logger[_0x115c8e(0x222)](_0x115c8e(0x1db)+_0x1d16e1);}if(_0x5931d7){const _0x327dcc={};_0x327dcc[_0x115c8e(0x1ce)]=_0x5931d7,_0x327dcc['Connection']=_0x4a8493['PcmbX'],_0x30b0d5[_0x115c8e(0x1fd)]=_0x327dcc;}else{const _0x233eee={};_0x233eee['Connection']=_0x4a8493['PcmbX'],_0x30b0d5[_0x115c8e(0x1fd)]=_0x233eee;}return new Promise((_0x2e321a,_0x2404b2)=>{const _0x2c7935=_0x115c8e,_0x40be35={'VKmny':function(_0x5db25b,_0x1f7f2d){return _0x4a8493['cIvtk'](_0x5db25b,_0x1f7f2d);},'nROzF':function(_0x5e1824,_0x129da2){const _0x1a9760=a143_0x3de6;return _0x4a8493[_0x1a9760(0x1c5)](_0x5e1824,_0x129da2);},'NMVFD':function(_0x15780f,_0x29d428){return _0x4a8493['CpLVr'](_0x15780f,_0x29d428);},'JPBUO':_0x4a8493[_0x2c7935(0x1e2)],'hpZEc':_0x4a8493['PcmbX']};https[_0x2c7935(0x1b7)](_0x30b0d5,_0x29756b=>{const _0x5ee27c=_0x2c7935;if(_0x5931d7&&_0x40be35[_0x5ee27c(0x1f5)](_0x29756b[_0x5ee27c(0x1e3)],0x130)){_0x159d0c[_0x5ee27c(0x1ef)]();const _0x3146ea={};_0x3146ea[_0x5ee27c(0x214)]=![],_0x40be35[_0x5ee27c(0x1c8)](_0x2e321a,_0x3146ea);return;}const _0x5c5fbf=_0x29756b['headers'][_0x5ee27c(0x1c3)];_0x5c5fbf&&this.#saveETag(_0x556210,_0x5c5fbf),_0x29756b[_0x5ee27c(0x1e5)](_0x159d0c),_0x29756b['on'](_0x40be35[_0x5ee27c(0x1a2)],function(_0x21bd29){const _0x4092bf=_0x5ee27c;logger['error'](_0x4092bf(0x1eb)+_0x21bd29),_0x40be35[_0x4092bf(0x19d)](_0x2404b2,_0x21bd29);}),_0x159d0c['on'](_0x40be35['JPBUO'],function(_0x162088){const _0x147894=_0x5ee27c;logger[_0x147894(0x222)](_0x147894(0x213)+_0x162088),_0x40be35['nROzF'](_0x2404b2,_0x162088);}),_0x159d0c['on'](_0x40be35[_0x5ee27c(0x1f8)],()=>{const _0x3704f8=_0x5ee27c;this[_0x3704f8(0x1e7)](_0x487809,_0x556210)[_0x3704f8(0x1e1)](_0x2ce994=>_0x2e321a({'needsUpdate':!![],'binaryPath':_0x2ce994}))['catch'](_0x2404b2);});})['on'](_0x4a8493[_0x2c7935(0x1e2)],function(_0x1d7248){const _0x48907e=_0x2c7935;logger[_0x48907e(0x222)](_0x48907e(0x1ec)+_0x1d7248),_0x4a8493[_0x48907e(0x20a)](_0x2404b2,_0x1d7248);});});}[a143_0x2a9613(0x1e7)](_0x577d4b,_0xf052c){const _0x10c0a1=a143_0x2a9613,_0x35ba92={'bskZD':function(_0x2dae30,_0x2fee36){return _0x2dae30(_0x2fee36);},'pbNsw':_0x10c0a1(0x1cb),'ShkRo':function(_0x418e22,_0x4651f9){return _0x418e22===_0x4651f9;},'NvOTl':_0x10c0a1(0x1f0),'AVqZG':_0x10c0a1(0x195),'TWnSF':_0x10c0a1(0x222)},_0x2997d0=this.#binaryName,_0x3d95a0=path[_0x10c0a1(0x1a5)](_0xf052c,_0x2997d0);return new Promise((_0x6cb898,_0x114d2a)=>{const _0x1861f4=_0x10c0a1,_0x2de00c={'mpxSM':function(_0xc47cc8,_0x442557){const _0xe2d0ff=a143_0x3de6;return _0x35ba92[_0xe2d0ff(0x1bb)](_0xc47cc8,_0x442557);},'ponnN':_0x35ba92[_0x1861f4(0x1f2)],'ZWOMW':function(_0xd193b3,_0xb453d7){const _0x57bf2f=_0x1861f4;return _0x35ba92[_0x57bf2f(0x1cd)](_0xd193b3,_0xb453d7);},'qVluu':function(_0x8a2b0e,_0x3ca254){const _0x22a5e0=_0x1861f4;return _0x35ba92[_0x22a5e0(0x1bb)](_0x8a2b0e,_0x3ca254);},'pGAfa':_0x35ba92['NvOTl'],'NjKZW':function(_0x1cac25,_0x4b0b9a){const _0x278f71=_0x1861f4;return _0x35ba92[_0x278f71(0x1bb)](_0x1cac25,_0x4b0b9a);},'GKjDk':_0x35ba92[_0x1861f4(0x1ac)],'GGJca':_0x35ba92[_0x1861f4(0x21b)]},_0x251d35={};_0x251d35[_0x1861f4(0x1dc)]=!![],yauzl[_0x1861f4(0x1e6)](_0x577d4b,_0x251d35,function(_0x37202a,_0x195eb7){const _0x2586b6=_0x1861f4,_0x6197ee={'uxQyF':function(_0x2209f3,_0x3f2917){const _0x31fd11=a143_0x3de6;return _0x2de00c[_0x31fd11(0x1f4)](_0x2209f3,_0x3f2917);},'QPQda':_0x2de00c[_0x2586b6(0x1bc)],'JLmtA':function(_0x1e022d,_0x253649){return _0x2de00c['ZWOMW'](_0x1e022d,_0x253649);},'dyIna':function(_0x1ece58,_0x1c40c5){const _0x110d4b=_0x2586b6;return _0x2de00c[_0x110d4b(0x1f4)](_0x1ece58,_0x1c40c5);},'gwjwU':function(_0x1f02b7,_0x175ba3){return _0x2de00c['qVluu'](_0x1f02b7,_0x175ba3);},'eEaUd':_0x2de00c[_0x2586b6(0x227)]};_0x37202a&&_0x2de00c[_0x2586b6(0x1cf)](_0x114d2a,_0x37202a),_0x195eb7['readEntry'](),_0x195eb7['on'](_0x2de00c['GKjDk'],_0x3baee5=>{const _0x122c01=_0x2586b6,_0x57d26a={'evdlh':function(_0x43d35b,_0x44699b){const _0x48bb7d=a143_0x3de6;return _0x6197ee[_0x48bb7d(0x1a3)](_0x43d35b,_0x44699b);},'cszbH':_0x6197ee['QPQda']};if(/\/$/[_0x122c01(0x1de)](_0x3baee5[_0x122c01(0x1ba)]))_0x195eb7['readEntry']();else{const _0x4aedae=fs[_0x122c01(0x211)](path[_0x122c01(0x1a5)](_0xf052c,_0x3baee5['fileName']));_0x195eb7[_0x122c01(0x1ab)](_0x3baee5,function(_0x2133ba,_0x16da06){const _0x41455e=_0x122c01;_0x2133ba&&_0x57d26a['evdlh'](_0x114d2a,_0x37202a),_0x16da06['on'](_0x57d26a['cszbH'],function(){const _0x22948a=a143_0x3de6;_0x4aedae[_0x22948a(0x1c0)](),_0x195eb7[_0x22948a(0x206)]();}),_0x16da06[_0x41455e(0x1e5)](_0x4aedae);}),_0x6197ee[_0x122c01(0x1a7)](_0x3baee5[_0x122c01(0x1ba)],_0x2997d0)&&_0x195eb7[_0x122c01(0x1c0)]();}}),_0x195eb7['on'](_0x2de00c[_0x2586b6(0x1fa)],_0x4ac7b4=>{const _0x37cbf5=_0x2586b6;_0x6197ee[_0x37cbf5(0x1ca)](_0x114d2a,_0x4ac7b4);}),_0x195eb7['once'](_0x2de00c[_0x2586b6(0x1bc)],()=>{const _0x16f494=_0x2586b6,_0x36aabb={'dmrjf':function(_0x3d5a6a,_0xa5d9a6){const _0x1eec2c=a143_0x3de6;return _0x6197ee[_0x1eec2c(0x224)](_0x3d5a6a,_0xa5d9a6);}};fs[_0x16f494(0x1d0)](_0x3d95a0,_0x6197ee[_0x16f494(0x1d4)],function(_0x104efa){const _0x4856d9=_0x16f494;_0x104efa&&_0x36aabb['dmrjf'](_0x114d2a,_0x104efa),_0x36aabb[_0x4856d9(0x21f)](_0x6cb898,_0x3d95a0);}),_0x195eb7['close']();});});});}async['validateBinary'](_0xf5e0f4){const _0x46a21f=a143_0x2a9613,_0x1b35c2={'MigMm':function(_0x260c8d,_0x393ab9){return _0x260c8d(_0x393ab9);},'AUHAY':function(_0x138308,_0xac9bd8,_0x5eba55,_0x1ae307){return _0x138308(_0xac9bd8,_0x5eba55,_0x1ae307);},'OdhcI':_0x46a21f(0x1c4),'enlXp':'data','IKKBs':_0x46a21f(0x1c0)},_0x36f258=/^.*@percy\/cli \d.\d+.\d+/;return new Promise((_0x48754d,_0x3cbff3)=>{const _0x5ddd64=_0x46a21f,_0x4af991={'Jmivn':function(_0x839f79,_0x5d0e83){return _0x1b35c2['MigMm'](_0x839f79,_0x5d0e83);}},_0x1ebac9={};_0x1ebac9[_0x5ddd64(0x1f3)]=process[_0x5ddd64(0x1f3)];const _0x5065d1=_0x1b35c2[_0x5ddd64(0x228)](spawn,_0xf5e0f4,[_0x1b35c2[_0x5ddd64(0x203)]],_0x1ebac9);_0x5065d1[_0x5ddd64(0x1c7)]['on'](_0x1b35c2[_0x5ddd64(0x200)],_0x3ef3e4=>{const _0x20b8da=_0x5ddd64;_0x36f258[_0x20b8da(0x1de)](_0x3ef3e4)&&_0x1b35c2[_0x20b8da(0x1d2)](_0x48754d,!![]);}),_0x5065d1['on'](_0x1b35c2['IKKBs'],()=>{const _0x33d15e=_0x5ddd64;_0x4af991[_0x33d15e(0x1c6)](_0x48754d,![]);});});}#homedir(){const _0x5ed4b1=a143_0x2a9613,_0x5931eb={};_0x5931eb['ckbgD']=function(_0x14201b,_0x1e6998){return _0x14201b===_0x1e6998;},_0x5931eb[_0x5ed4b1(0x21c)]='function',_0x5931eb[_0x5ed4b1(0x21a)]=_0x5ed4b1(0x216),_0x5931eb[_0x5ed4b1(0x1b0)]=function(_0x4f7522,_0x5d1cad){return _0x4f7522+_0x5d1cad;},_0x5931eb[_0x5ed4b1(0x1ff)]=_0x5ed4b1(0x205),_0x5931eb[_0x5ed4b1(0x1a4)]=function(_0x304dfc,_0x1388c1){return _0x304dfc+_0x1388c1;},_0x5931eb[_0x5ed4b1(0x202)]=_0x5ed4b1(0x225),_0x5931eb['ABDpN']=function(_0x5a6677,_0x30b40e){return _0x5a6677===_0x30b40e;},_0x5931eb[_0x5ed4b1(0x22a)]=_0x5ed4b1(0x1ad),_0x5931eb[_0x5ed4b1(0x1dd)]=function(_0x5a2e74,_0xf3062f){return _0x5a2e74===_0xf3062f;},_0x5931eb[_0x5ed4b1(0x1d3)]='/root',_0x5931eb[_0x5ed4b1(0x19f)]=function(_0x53583a,_0x4d4901){return _0x53583a+_0x4d4901;},_0x5931eb[_0x5ed4b1(0x1fe)]=_0x5ed4b1(0x1d5),_0x5931eb[_0x5ed4b1(0x1e4)]=function(_0x2dced0,_0x131a47){return _0x2dced0||_0x131a47;};const _0x3ccfe0=_0x5931eb;if(_0x3ccfe0[_0x5ed4b1(0x19c)](typeof os[_0x5ed4b1(0x1a9)],_0x3ccfe0[_0x5ed4b1(0x21c)]))return os[_0x5ed4b1(0x1a9)]();const _0x28b02d=process[_0x5ed4b1(0x1f3)],_0x8719b7=_0x28b02d['HOME'],_0x242928=_0x28b02d[_0x5ed4b1(0x1b4)]||_0x28b02d['USER']||_0x28b02d[_0x5ed4b1(0x1ae)]||_0x28b02d['USERNAME'];if(_0x3ccfe0[_0x5ed4b1(0x19c)](process[_0x5ed4b1(0x1bd)],_0x3ccfe0[_0x5ed4b1(0x21a)]))return _0x28b02d['USERPROFILE']||_0x3ccfe0[_0x5ed4b1(0x1b0)](_0x28b02d[_0x5ed4b1(0x1d9)],_0x28b02d['HOMEPATH'])||_0x8719b7||null;if(_0x3ccfe0[_0x5ed4b1(0x19c)](process[_0x5ed4b1(0x1bd)],_0x3ccfe0[_0x5ed4b1(0x1ff)]))return _0x8719b7||(_0x242928?_0x3ccfe0[_0x5ed4b1(0x1a4)](_0x3ccfe0[_0x5ed4b1(0x202)],_0x242928):null);if(_0x3ccfe0[_0x5ed4b1(0x197)](process[_0x5ed4b1(0x1bd)],_0x3ccfe0[_0x5ed4b1(0x22a)]))return _0x8719b7||(_0x3ccfe0[_0x5ed4b1(0x1dd)](process[_0x5ed4b1(0x1df)](),0x0)?_0x3ccfe0['HfloC']:_0x242928?_0x3ccfe0['ncMCw'](_0x3ccfe0[_0x5ed4b1(0x1fe)],_0x242928):null);return _0x3ccfe0[_0x5ed4b1(0x1e4)](_0x8719b7,null);}}module[a143_0x2a9613(0x1a1)]=PercyBinary;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a144_0x139b58=a144_0x7b93;function a144_0x7b93(_0x291e8f,_0x4729a7){var _0x3ff9b6=a144_0x3ff9();return a144_0x7b93=function(_0x7b9377,_0x410766){_0x7b9377=_0x7b9377-0xfc;var _0x320f03=_0x3ff9b6[_0x7b9377];return _0x320f03;},a144_0x7b93(_0x291e8f,_0x4729a7);}function a144_0x3ff9(){var _0x47b168=['6458697PujlnG','get','1397854tJFEIQ','increment','185kOBmYs','1807431tsCYrn','exports','40494jMOHhv','1260096phFQyA','1545334CwoWat','getName','1PCjGpC','81928MBvPTb'];a144_0x3ff9=function(){return _0x47b168;};return a144_0x3ff9();}(function(_0x4ef159,_0x5e1ce2){var _0x15536e=a144_0x7b93,_0x13ed91=_0x4ef159();while(!![]){try{var _0xd922c6=-parseInt(_0x15536e(0xfe))/0x1*(-parseInt(_0x15536e(0x102))/0x2)+parseInt(_0x15536e(0x105))/0x3+-parseInt(_0x15536e(0xff))/0x4+-parseInt(_0x15536e(0x104))/0x5*(parseInt(_0x15536e(0x107))/0x6)+parseInt(_0x15536e(0xfc))/0x7+-parseInt(_0x15536e(0x108))/0x8+-parseInt(_0x15536e(0x100))/0x9;if(_0xd922c6===_0x5e1ce2)break;else _0x13ed91['push'](_0x13ed91['shift']());}catch(_0x54c3b8){_0x13ed91['push'](_0x13ed91['shift']());}}}(a144_0x3ff9,0x5bffa));class PercyCaptureMap{#map={};[a144_0x139b58(0x103)](_0x5956a0,_0x4c91cb){!this.#map[_0x5956a0]&&(this.#map[_0x5956a0]={}),!this.#map[_0x5956a0][_0x4c91cb]&&(this.#map[_0x5956a0][_0x4c91cb]=0x0),this.#map[_0x5956a0][_0x4c91cb]++;}[a144_0x139b58(0xfd)](_0x1442af,_0xe811a){var _0x135d03=a144_0x139b58;return _0x1442af+'-'+_0xe811a+'-'+this[_0x135d03(0x101)](_0x1442af,_0xe811a);}['get'](_0x5df584,_0x1ab98f){if(!this.#map[_0x5df584])return 0x0;if(!this.#map[_0x5df584][_0x1ab98f])return 0x0;return this.#map[_0x5df584][_0x1ab98f];}}module[a144_0x139b58(0x106)]=PercyCaptureMap;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var a145_0x139d9b=a145_0x13a0;(function(_0x332ea8,_0x113bbe){var _0x5602d6=a145_0x13a0,_0x2a35e9=_0x332ea8();while(!![]){try{var _0x5edd6f=-parseInt(_0x5602d6(0x82))/0x1*(-parseInt(_0x5602d6(0x7f))/0x2)+parseInt(_0x5602d6(0x8e))/0x3*(parseInt(_0x5602d6(0x8d))/0x4)+-parseInt(_0x5602d6(0x87))/0x5*(-parseInt(_0x5602d6(0x83))/0x6)+parseInt(_0x5602d6(0x89))/0x7+-parseInt(_0x5602d6(0x91))/0x8*(-parseInt(_0x5602d6(0x8b))/0x9)+parseInt(_0x5602d6(0x81))/0xa+-parseInt(_0x5602d6(0x85))/0xb*(parseInt(_0x5602d6(0x8c))/0xc);if(_0x5edd6f===_0x113bbe)break;else _0x2a35e9['push'](_0x2a35e9['shift']());}catch(_0x3c1cf4){_0x2a35e9['push'](_0x2a35e9['shift']());}}}(a145_0x2877,0x5434e));var a145_0x208993={};a145_0x208993['driver']=[a145_0x139d9b(0x90)],a145_0x208993['element']=[a145_0x139d9b(0x80),a145_0x139d9b(0x88)];var a145_0x461fb0={};a145_0x461fb0[a145_0x139d9b(0x8f)]=[a145_0x139d9b(0x90)];function a145_0x13a0(_0x2c64e1,_0x1f5e08){var _0x2877e8=a145_0x2877();return a145_0x13a0=function(_0x13a094,_0x346eb5){_0x13a094=_0x13a094-0x7f;var _0x136bd3=_0x2877e8[_0x13a094];return _0x136bd3;},a145_0x13a0(_0x2c64e1,_0x1f5e08);}function a145_0x2877(){var _0x3da9a2=['2824TINtKT','screenshot','8380emvWab','click','127940uLipiI','124YQuXSU','36QAPuMW','element','638pOiYNH','auto','3070Hjbtsa','sendKeys','1095696lSYWtS','testcase','1026zOUlTZ','171228SYlQMB','496TRZUAi','10638TTpIpS','driver','takeScreenshot'];a145_0x2877=function(){return _0x3da9a2;};return a145_0x2877();}var a145_0x161a0b={};a145_0x161a0b[a145_0x139d9b(0x84)]=['click'];var a145_0x512f88={};a145_0x512f88[a145_0x139d9b(0x86)]=a145_0x208993,a145_0x512f88[a145_0x139d9b(0x92)]=a145_0x461fb0,a145_0x512f88[a145_0x139d9b(0x80)]=a145_0x161a0b,a145_0x512f88[a145_0x139d9b(0x8a)]={},a145_0x512f88['manual']={},module['exports']=a145_0x512f88;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a146_0x2efc4d=a146_0x3713;function a146_0x3713(_0x12bd37,_0x2e2a61){const _0x53a485=a146_0x53a4();return a146_0x3713=function(_0x3713a9,_0x1758e8){_0x3713a9=_0x3713a9-0xf5;let _0x45d747=_0x53a485[_0x3713a9];return _0x45d747;},a146_0x3713(_0x12bd37,_0x2e2a61);}(function(_0x1b96ed,_0x2f7fba){const _0x76402a=a146_0x3713,_0xbd5799=_0x1b96ed();while(!![]){try{const _0x4457a1=parseInt(_0x76402a(0x115))/0x1*(-parseInt(_0x76402a(0xfa))/0x2)+parseInt(_0x76402a(0x10c))/0x3*(-parseInt(_0x76402a(0x108))/0x4)+parseInt(_0x76402a(0x112))/0x5+parseInt(_0x76402a(0x10a))/0x6+parseInt(_0x76402a(0x10d))/0x7+-parseInt(_0x76402a(0x100))/0x8+parseInt(_0x76402a(0x10b))/0x9;if(_0x4457a1===_0x2f7fba)break;else _0xbd5799['push'](_0xbd5799['shift']());}catch(_0x4daa50){_0xbd5799['push'](_0xbd5799['shift']());}}}(a146_0x53a4,0x5ac38));const tryRequire=function(_0xf6ec9d,_0x5a97a4){const _0x159ed7={'AsYOQ':function(_0x50ff25,_0x23093f){return _0x50ff25(_0x23093f);}};try{return _0x159ed7['AsYOQ'](require,_0xf6ec9d);}catch{return _0x5a97a4;}},percySnapshot=tryRequire(a146_0x2efc4d(0xfb),null),{percyScreenshot}=tryRequire(a146_0x2efc4d(0xfb),{}),percyAppScreenshot=require(a146_0x2efc4d(0x10e)),{getCurrentTestData}=require(a146_0x2efc4d(0x101)),PerformanceTester=require(a146_0x2efc4d(0x119)),{PERCY_EVENTS:PerformanceEvents}=require(a146_0x2efc4d(0x109)),logger=require(a146_0x2efc4d(0xfe))[a146_0x2efc4d(0xf8)];percySnapshot&&(exports[a146_0x2efc4d(0xf7)]=async function(){const _0x15bfe6=a146_0x2efc4d,_0x3fa8a6={'kLvlT':function(_0x51e360,_0x2ea02a){return _0x51e360!==_0x2ea02a;},'iaUVm':function(_0x31619f,_0x1148db){return _0x31619f>=_0x1148db;},'bBcBa':function(_0x57056b){return _0x57056b();}};if(global[_0x15bfe6(0xf6)]&&_0x3fa8a6[_0x15bfe6(0x106)](global[_0x15bfe6(0xf6)],global['browserstackPercyBestPlatform']))return;const _0x3a22d2=_0x3fa8a6[_0x15bfe6(0x111)](arguments[_0x15bfe6(0x114)],0x2)?arguments[0x1]:'',_0x50581e=_0x3fa8a6['bBcBa'](getCurrentTestData),_0x4b60db={};return _0x4b60db['name']=_0x3a22d2,_0x4b60db[_0x15bfe6(0xfd)]=_0x50581e['name']||'',_0x4b60db['thTestCaseExecutionId']=_0x50581e['uuid']||'',_0x4b60db[_0x15bfe6(0xf9)]=global[_0x15bfe6(0xf6)],await PerformanceTester['measure'](PerformanceEvents[_0x15bfe6(0xf5)],()=>percySnapshot[_0x15bfe6(0x104)](null,arguments),_0x4b60db);});function a146_0x53a4(){const _0x2727a2=['1190700TpTRfx','840258fajSjR','117825dHRjwH','3686200GxoeHv','@percy/appium-app','name','drIlA','iaUVm','2175145ZbjCBK','screenshotApp','length','1104HxGiUV','thTestCaseExecutionId','SCREENSHOT_APP','RNcxN','../performance/performance-tester','SNAPSHOT','browserstackPlatformIndex','snapshot','winstonLogger','platformIndex','94KAWrPx','@percy/selenium-webdriver','uuid','testCase','../logger','measure','3810480JVSyZs','../../helpers/testhub/utils','FovVw','hIlxD','apply','SCREENSHOT','kLvlT','error','36Khdlvs','../performance/constants'];a146_0x53a4=function(){return _0x2727a2;};return a146_0x53a4();}percyScreenshot?exports['screenshot']=async function(){const _0xc1bf33=a146_0x2efc4d,_0x20161a={'hIlxD':function(_0x4fff9a,_0x5c8459){return _0x4fff9a>=_0x5c8459;},'RNcxN':function(_0x588b7b){return _0x588b7b();}},_0x222491=_0x20161a[_0xc1bf33(0x103)](arguments[_0xc1bf33(0x114)],0x2)?arguments[0x1]:'',_0xe954fa=_0x20161a[_0xc1bf33(0x118)](getCurrentTestData),_0x1e1b34={};return _0x1e1b34[_0xc1bf33(0x10f)]=_0x222491,_0x1e1b34[_0xc1bf33(0xfd)]=_0xe954fa['name']||'',_0x1e1b34[_0xc1bf33(0x116)]=_0xe954fa[_0xc1bf33(0xfc)]||'',_0x1e1b34[_0xc1bf33(0xf9)]=global[_0xc1bf33(0xf6)],await PerformanceTester[_0xc1bf33(0xff)](PerformanceEvents[_0xc1bf33(0x105)],()=>percyScreenshot['apply'](null,arguments),_0x1e1b34);}:exports['screenshot']=()=>{const _0x5ad6e7=a146_0x2efc4d,_0x81a6a7={};_0x81a6a7['drIlA']='Unsupported\x20driver\x20for\x20percy';const _0x353d7e=_0x81a6a7;logger[_0x5ad6e7(0x107)](_0x353d7e[_0x5ad6e7(0x110)]);};exports[a146_0x2efc4d(0x113)]=async function(){const _0x33dbc3=a146_0x2efc4d,_0x159084={'lmfbB':function(_0x593e9e,_0x26ca08){return _0x593e9e>=_0x26ca08;},'FovVw':function(_0x163236){return _0x163236();}},_0x3c3cd1=_0x159084['lmfbB'](arguments['length'],0x2)?arguments[0x1]:'',_0x267cbe=_0x159084[_0x33dbc3(0x102)](getCurrentTestData),_0xecad39={};return _0xecad39[_0x33dbc3(0x10f)]=_0x3c3cd1,_0xecad39[_0x33dbc3(0xfd)]=_0x267cbe[_0x33dbc3(0x10f)]||'',_0xecad39[_0x33dbc3(0x116)]=_0x267cbe[_0x33dbc3(0xfc)]||'',_0xecad39['platformIndex']=global[_0x33dbc3(0xf6)],await PerformanceTester[_0x33dbc3(0xff)](PerformanceEvents[_0x33dbc3(0x117)],()=>percyAppScreenshot[_0x33dbc3(0x104)](null,arguments),_0xecad39);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a147_0x330e(_0x413eec,_0x4138fd){var _0x334ffe=a147_0x334f();return a147_0x330e=function(_0x330e14,_0x5d7aca){_0x330e14=_0x330e14-0x105;var _0x556926=_0x334ffe[_0x330e14];return _0x556926;},a147_0x330e(_0x413eec,_0x4138fd);}var a147_0x2114f8=a147_0x330e;(function(_0x5b1c1d,_0x571d91){var _0x4713de=a147_0x330e,_0x2858e6=_0x5b1c1d();while(!![]){try{var _0xa148ae=parseInt(_0x4713de(0x106))/0x1+parseInt(_0x4713de(0x108))/0x2*(parseInt(_0x4713de(0x10a))/0x3)+parseInt(_0x4713de(0x10b))/0x4*(parseInt(_0x4713de(0x109))/0x5)+-parseInt(_0x4713de(0x111))/0x6*(parseInt(_0x4713de(0x105))/0x7)+-parseInt(_0x4713de(0x110))/0x8+-parseInt(_0x4713de(0x10e))/0x9+-parseInt(_0x4713de(0x10c))/0xa*(-parseInt(_0x4713de(0x107))/0xb);if(_0xa148ae===_0x571d91)break;else _0x2858e6['push'](_0x2858e6['shift']());}catch(_0x1c66bb){_0x2858e6['push'](_0x2858e6['shift']());}}}(a147_0x334f,0x2646f),module[a147_0x2114f8(0x10f)]=require(a147_0x2114f8(0x10d)));function a147_0x334f(){var _0x4b8040=['7876sycruc','5uELUwo','12ExhuhA','306692pHdxyn','3271330HgOkMT','./Percy','692397eelrXc','exports','1296232SqDufK','4698kSRFxY','1246hiTXET','115561MZpNuP','11gGtfjh'];a147_0x334f=function(){return _0x4b8040;};return a147_0x334f();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a148_0x16aa(){const _0x366d17=['getName','aVUpk','555gUgdMd','nestedKeyValue','lcoPC','Couldn\x27t\x20capture\x20percy\x20screenshot,\x20no\x20session\x20name\x20present','measureWrapper','1658166jIYTDy','47145UjvREJ','startPercy','manual','Starting\x20percy','ROHDj','AUTO_CAPTURE','zXyVS','3KofSby','winstonLogger','firefox','percyCaptureMode','567782EtIhep','percyAutoCapture','isUndefined','../performance/performance-tester','error','145241QDThJU','chrome','STOP','driver','prototype','forEach','TnDYO','./PercyCaptureModes','getPercyOptions','platforms','LKzZD','reduce','Error\x20patching\x20','apply','browserstackSessionName','percy','JQyhe','browserstackPercyMap','../logger','START','screenshot','stopPercy','browserName','overrideXforPercy','edge','browserStackPercyOptions','MQVoH','getBestPlatformForPercySnapshot','2776DfSNRp','3249hvvklW','./PercyCaptureMap','8124VwQrMN','12047070kkavnL','isAppAutomateSession','HmTHL','deviceName','init','PDNAi','patch','Stopping\x20percy','debug','increment','reCDN','browserstackPercyBestPlatform','RIvtR','then','browser','screenshotApp'];a148_0x16aa=function(){return _0x366d17;};return a148_0x16aa();}const a148_0x34cb9b=a148_0x5e20;(function(_0x303e3f,_0x43f0ce){const _0x5cac3f=a148_0x5e20,_0x16421c=_0x303e3f();while(!![]){try{const _0x1411cf=-parseInt(_0x5cac3f(0x1e2))/0x1+-parseInt(_0x5cac3f(0x1dd))/0x2*(parseInt(_0x5cac3f(0x1d9))/0x3)+parseInt(_0x5cac3f(0x201))/0x4*(-parseInt(_0x5cac3f(0x1cc))/0x5)+-parseInt(_0x5cac3f(0x1d1))/0x6+parseInt(_0x5cac3f(0x1d2))/0x7+-parseInt(_0x5cac3f(0x1fe))/0x8*(parseInt(_0x5cac3f(0x1ff))/0x9)+parseInt(_0x5cac3f(0x202))/0xa;if(_0x1411cf===_0x43f0ce)break;else _0x16421c['push'](_0x16421c['shift']());}catch(_0x2efd71){_0x16421c['push'](_0x16421c['shift']());}}}(a148_0x16aa,0x25e69));const Percy=require('./Percy'),PercySDK=require('./PercySDK'),PercyCaptureModes=require(a148_0x34cb9b(0x1e9)),PercyCaptureMap=require(a148_0x34cb9b(0x200)),logger=require(a148_0x34cb9b(0x1f4))[a148_0x34cb9b(0x1da)],helper=require('../helper'),PerformanceTester=require(a148_0x34cb9b(0x1e0)),{PERCY_EVENTS:PerformanceEvents}=require('../performance/constants');function a148_0x5e20(_0x62c088,_0x1e10e1){const _0x16aac3=a148_0x16aa();return a148_0x5e20=function(_0x5e2028,_0x373d34){_0x5e2028=_0x5e2028-0x1bd;let _0x424365=_0x16aac3[_0x5e2028];return _0x424365;},a148_0x5e20(_0x62c088,_0x1e10e1);}exports[a148_0x34cb9b(0x1d3)]=PerformanceTester[a148_0x34cb9b(0x1d0)](PerformanceEvents[a148_0x34cb9b(0x1f5)],async _0x427236=>{const _0xb8048=a148_0x34cb9b,_0x39cc92={};_0x39cc92[_0xb8048(0x1fc)]=_0xb8048(0x1d5);const _0x2fb6a0=_0x39cc92;logger[_0xb8048(0x1c2)](_0x2fb6a0[_0xb8048(0x1fc)]);const _0x2908b4=new Percy(_0x427236),_0x322577=await _0x2908b4['start']();if(_0x322577)return _0x2908b4;return null;}),exports[a148_0x34cb9b(0x1f7)]=PerformanceTester['measureWrapper'](PerformanceEvents[a148_0x34cb9b(0x1e4)],async _0x44bf50=>{const _0x2ff181=a148_0x34cb9b,_0x1e9ff4={};_0x1e9ff4[_0x2ff181(0x1c4)]=_0x2ff181(0x1c1);const _0x4f7a93=_0x1e9ff4;return logger[_0x2ff181(0x1c2)](_0x4f7a93['reCDN']),_0x44bf50['stop']();}),exports[a148_0x34cb9b(0x1fd)]=_0x187a74=>{const _0x233285=a148_0x34cb9b,_0x3aea6c={};_0x3aea6c[_0x233285(0x1d6)]=function(_0x315327,_0x5e6aa2){return _0x315327<_0x5e6aa2;};const _0x3ca7d3=_0x3aea6c,_0x4ed34c={};_0x4ed34c[_0x233285(0x1e3)]=0x0,_0x4ed34c[_0x233285(0x1db)]=0x1,_0x4ed34c[_0x233285(0x1fa)]=0x2,_0x4ed34c['safari']=0x3;const _0x1a4837=_0x4ed34c;return _0x187a74[_0x233285(0x1ed)]((_0x26ec5b,_0x3d6b67,_0x55fa3d)=>{const _0x203180=_0x233285,_0x4d552b=_0x187a74[_0x26ec5b];if(_0x3d6b67['deviceName'])return _0x26ec5b;if(_0x4d552b[_0x203180(0x1bd)])return _0x55fa3d;const _0x14f7a0=_0x3d6b67['browser']?_0x3d6b67[_0x203180(0x1c8)]:_0x3d6b67[_0x203180(0x1f8)];if(_0x14f7a0&&_0x3ca7d3['ROHDj'](_0x1a4837[_0x14f7a0['toLowerCase']()],_0x1a4837[_0x14f7a0['toLowerCase']()]))return _0x55fa3d;return _0x26ec5b;},0x0);},exports[a148_0x34cb9b(0x1de)]=PerformanceTester[a148_0x34cb9b(0x1d0)](PerformanceEvents[a148_0x34cb9b(0x1d7)],async(_0x3efb6f,_0x54c2af,_0x951dc2)=>{const _0x3979f6=a148_0x34cb9b,_0x2508d5={};_0x2508d5[_0x3979f6(0x1ec)]=_0x3979f6(0x1cf);const _0x2e0ef4=_0x2508d5,_0x2fb123=_0x3efb6f[_0x3979f6(0x1f3)];if(helper[_0x3979f6(0x1df)](_0x3efb6f[_0x3979f6(0x1f0)])){logger[_0x3979f6(0x1c2)](_0x2e0ef4[_0x3979f6(0x1ec)]);return;}const _0x3d0304=_0x2fb123[_0x3979f6(0x1ca)](_0x3efb6f[_0x3979f6(0x1f0)],_0x54c2af);helper[_0x3979f6(0x203)](_0x951dc2)?await PercySDK[_0x3979f6(0x1c9)](_0x3efb6f,_0x3d0304):await PercySDK[_0x3979f6(0x1f6)](_0x3efb6f,_0x3d0304),_0x2fb123[_0x3979f6(0x1c3)](_0x3efb6f['browserstackSessionName'],_0x54c2af);}),exports['patchDriverPercy']=(_0xe2d1a0,_0x223868,_0x22ce12)=>{const _0x1af8cd=a148_0x34cb9b,_0xa4feb5={};_0xa4feb5[_0x1af8cd(0x1bf)]='browserStackPercyOptions',_0xa4feb5[_0x1af8cd(0x1c6)]=_0x1af8cd(0x1f1),_0xa4feb5[_0x1af8cd(0x204)]=function(_0x745660,_0x2b7802){return _0x745660!==_0x2b7802;},_0xa4feb5[_0x1af8cd(0x1d8)]=_0x1af8cd(0x1d4);const _0xf81fb=_0xa4feb5;if(!helper[_0x1af8cd(0x1cd)](_0x22ce12,[_0xf81fb['PDNAi'],_0xf81fb[_0x1af8cd(0x1c6)]]))return;if(_0x22ce12[_0x1af8cd(0x1fb)]['percy']&&_0x22ce12[_0x1af8cd(0x1fb)]['percyCaptureMode']&&_0xf81fb['HmTHL'](_0x22ce12[_0x1af8cd(0x1fb)][_0x1af8cd(0x1dc)],_0xf81fb['zXyVS'])&&!_0xe2d1a0[_0x1af8cd(0x1f3)]){global[_0x1af8cd(0x1f0)]&&(_0xe2d1a0[_0x1af8cd(0x1f0)]=global['browserstackSessionName']),_0xe2d1a0[_0x1af8cd(0x1f3)]=new PercyCaptureMap();const _0x246d6b=PercyCaptureModes[_0x22ce12['browserStackPercyOptions']['percyCaptureMode']];_0x246d6b[_0x1af8cd(0x1e5)]&&_0x246d6b[_0x1af8cd(0x1e5)][_0x1af8cd(0x1e7)](_0x1e9a7c=>this['overrideXforPercy'](_0xe2d1a0,_0x1e9a7c,_0x22ce12)),_0x246d6b['element']&&_0x246d6b['element']['forEach'](_0x371168=>{const _0x32a551=_0x1af8cd;if(_0x223868[_0x32a551(0x1e6)][_0x32a551(0x1c0)+_0x371168])return;_0x223868['prototype'][_0x32a551(0x1c0)+_0x371168]=!![];const _0x28ddf4=_0x223868['prototype'][_0x371168];_0x223868[_0x32a551(0x1e6)][_0x371168]=async function(){const _0x226f9f=_0x32a551;let _0x2d8623=_0x28ddf4[_0x226f9f(0x1ef)](this,arguments);_0x2d8623&&_0x2d8623[_0x226f9f(0x1c7)]&&(_0x2d8623=await _0x2d8623);try{const _0x48ae9c=this['getDriver']();await exports[_0x226f9f(0x1de)](_0x48ae9c,_0x371168,_0x22ce12);}catch(_0x284c4e){logger[_0x226f9f(0x1e1)](_0x226f9f(0x1ee)+_0x371168+'\x20for\x20percy\x20'+_0x284c4e);}return _0x2d8623;};});}},exports[a148_0x34cb9b(0x1f9)]=function(_0x273a53,_0x1e24e8,_0x3d772e){const _0x7564c9=a148_0x34cb9b,_0x25862f={};_0x25862f[_0x7564c9(0x1f2)]=function(_0x142f09,_0x48b773){return _0x142f09+_0x48b773;},_0x25862f['aVUpk']='patch',_0x25862f['lcoPC']=_0x7564c9(0x1be);const _0x5db92c=_0x25862f,_0x37350b=_0x5db92c[_0x7564c9(0x1f2)](_0x5db92c[_0x7564c9(0x1cb)],_0x1e24e8),_0x149db3=_0x5db92c['JQyhe'](_0x5db92c[_0x7564c9(0x1ce)],_0x1e24e8),_0x4c099c=this;if(_0x273a53[_0x37350b]||!_0x273a53[_0x1e24e8])return;_0x273a53[_0x37350b]=!![],_0x273a53[_0x149db3]=_0x273a53[_0x1e24e8],_0x273a53[_0x1e24e8]=async()=>{const _0x2299eb=_0x7564c9;try{await _0x4c099c[_0x2299eb(0x1de)](_0x273a53,_0x1e24e8,_0x3d772e);}catch(_0x42c499){logger[_0x2299eb(0x1e1)](_0x2299eb(0x1ee)+_0x1e24e8+'\x20for\x20percy\x20'+_0x42c499);}return await _0x273a53[_0x149db3]['apply'](_0x273a53,arguments);};},exports[a148_0x34cb9b(0x1ea)]=_0xd2757c=>{const _0x2c7faa=a148_0x34cb9b,_0x508fe7={};_0x508fe7[_0x2c7faa(0x1e8)]='auto';const _0x10b953=_0x508fe7,_0x5ddc93={};_0x5ddc93[_0x2c7faa(0x1f1)]=_0xd2757c[_0x2c7faa(0x1f1)],_0x5ddc93[_0x2c7faa(0x1dc)]=_0xd2757c[_0x2c7faa(0x1dc)]||_0x10b953[_0x2c7faa(0x1e8)];const _0x12eb62=_0x5ddc93;_0xd2757c['percy']&&(_0x12eb62[_0x2c7faa(0x1c5)]=exports[_0x2c7faa(0x1fd)](_0xd2757c[_0x2c7faa(0x1eb)]));;return _0x12eb62;};
|