browserstack-node-sdk 1.66.0 → 1.66.1
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/detox/a11ySetup.js +1 -1
- package/src/bin/detox/command.js +1 -1
- package/src/bin/detox/modifyDetoxConf.js +1 -1
- package/src/bin/detox/traEmitter.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 a142_0x254bac=a142_0x18cd;(function(_0x5c0649,_0x2c25a5){const _0x5cf447=a142_0x18cd,_0x347aa2=_0x5c0649();while(!![]){try{const _0x9ca8cc=-parseInt(_0x5cf447(0x1dd))/0x1+parseInt(_0x5cf447(0x1f2))/0x2+parseInt(_0x5cf447(0x218))/0x3*(-parseInt(_0x5cf447(0x205))/0x4)+-parseInt(_0x5cf447(0x1e2))/0x5+-parseInt(_0x5cf447(0x1f4))/0x6*(-parseInt(_0x5cf447(0x1cf))/0x7)+parseInt(_0x5cf447(0x1d9))/0x8+parseInt(_0x5cf447(0x1e6))/0x9*(-parseInt(_0x5cf447(0x1e7))/0xa);if(_0x9ca8cc===_0x2c25a5)break;else _0x347aa2['push'](_0x347aa2['shift']());}catch(_0x9eae70){_0x347aa2['push'](_0x347aa2['shift']());}}}(a142_0x55c1,0x9333d));const winston=require(a142_0x254bac(0x1e8)),path=require(a142_0x254bac(0x222)),fs=require('fs'),{LOG_FILE_NAME,DEBUG_LOG_FILE_NAME,DEBUG_CLI_LOG_FILE_NAME}=require('../bin/utils/constants'),tempLogDir=a142_0x254bac(0x214);let redactRegex=null,lastConfigHash='';const logFormat=winston['format'](_0x180308=>{const _0x2c3fba=a142_0x254bac,_0x44bfdb={};_0x44bfdb['rGRfx']=function(_0x47b04f,_0x476345){return _0x47b04f!==_0x476345;},_0x44bfdb['QfdMn']=_0x2c3fba(0x1fb),_0x44bfdb[_0x2c3fba(0x1f9)]=function(_0x3e4f77,_0xbd7de8){return _0x3e4f77+_0xbd7de8;},_0x44bfdb['DEaTG']=function(_0x3ad451,_0x18ac47){return _0x3ad451!==_0x18ac47;},_0x44bfdb['USvyv']=function(_0x168f5f,_0x46c470){return _0x168f5f>_0x46c470;},_0x44bfdb[_0x2c3fba(0x1e1)]='[REDACTED]';const _0x1beade=_0x44bfdb;_0x1beade[_0x2c3fba(0x1cb)](typeof _0x180308[_0x2c3fba(0x1d0)],_0x1beade[_0x2c3fba(0x20d)])&&(_0x180308['message']=JSON[_0x2c3fba(0x212)](_0x180308[_0x2c3fba(0x1d0)]));const _0x5ae698=global[_0x2c3fba(0x1de)]&&global[_0x2c3fba(0x1de)][_0x2c3fba(0x1e9)]||'',_0x5856ab=global[_0x2c3fba(0x1de)]&&global[_0x2c3fba(0x1de)]['accessKey']||'',_0x7ee39f=_0x1beade[_0x2c3fba(0x1f9)](_0x1beade[_0x2c3fba(0x1f9)](_0x5ae698,'|'),_0x5856ab);if(_0x1beade[_0x2c3fba(0x221)](_0x7ee39f,lastConfigHash)){lastConfigHash=_0x7ee39f;const _0x1b15ed=[_0x5ae698,_0x5856ab][_0x2c3fba(0x226)](Boolean);if(_0x1beade[_0x2c3fba(0x1e4)](_0x1b15ed[_0x2c3fba(0x1cc)],0x0)){const _0x508363=_0x1b15ed[_0x2c3fba(0x1d8)](_0x578b73=>_0x578b73[_0x2c3fba(0x20a)](/[.*+?^${}()|[\]\\]/g,_0x2c3fba(0x1fe)))['join']('|');redactRegex=new RegExp(_0x508363,'g');}else redactRegex=null;}return redactRegex&&(_0x180308['message']=_0x180308[_0x2c3fba(0x1d0)][_0x2c3fba(0x20a)](redactRegex,_0x1beade[_0x2c3fba(0x1e1)])),_0x180308;}),SENSITIVE_HEADER_REGEX=/authorization|token|cookie|secret|^x-api-key$|accesskey|password/i,maskHeaders=_0x3cb7c6=>{const _0x172165=a142_0x254bac,_0x15e938={};_0x15e938['mZgwd']=function(_0x2973d7,_0xc24cdb){return _0x2973d7!==_0xc24cdb;},_0x15e938[_0x172165(0x219)]='object',_0x15e938[_0x172165(0x1f3)]=_0x172165(0x225),_0x15e938[_0x172165(0x20e)]=_0x172165(0x1d7);const _0x15c30d=_0x15e938;try{if(!_0x3cb7c6||_0x15c30d[_0x172165(0x204)](typeof _0x3cb7c6,_0x15c30d[_0x172165(0x219)]))return _0x3cb7c6;const _0x1d343d={};for(const _0x48aba9 of Object[_0x172165(0x21f)](_0x3cb7c6)){_0x1d343d[_0x48aba9]=SENSITIVE_HEADER_REGEX[_0x172165(0x1f8)](_0x48aba9)?_0x15c30d[_0x172165(0x1f3)]:_0x3cb7c6[_0x48aba9];}return _0x1d343d;}catch{return _0x15c30d[_0x172165(0x20e)];}},fetchLogDir=()=>{const _0x468c8c=a142_0x254bac;if(process[_0x468c8c(0x1e5)][_0x468c8c(0x1fc)])return process[_0x468c8c(0x1e5)][_0x468c8c(0x1fc)];else!fs[_0x468c8c(0x1f0)](tempLogDir)&&fs[_0x468c8c(0x1d5)](tempLogDir);return tempLogDir;},logDir=fetchLogDir(),getInitialLogLevel=()=>{const _0x15d493=a142_0x254bac,_0x5dd884={};_0x5dd884[_0x15d493(0x1d4)]=_0x15d493(0x1db);const _0x4b789d=_0x5dd884,_0x4faf34=process[_0x15d493(0x1e5)][_0x15d493(0x1df)],_0x32da19=Object[_0x15d493(0x21f)](winston[_0x15d493(0x1de)][_0x15d493(0x1f7)][_0x15d493(0x216)]);if(_0x4faf34&&_0x32da19[_0x15d493(0x21a)](_0x4faf34[_0x15d493(0x1da)]()))return _0x4faf34[_0x15d493(0x1da)]();return _0x4b789d[_0x15d493(0x1d4)];},initialLogLevel=getInitialLogLevel(),a142_0x21b312={};a142_0x21b312['name']=a142_0x254bac(0x1d6),a142_0x21b312[a142_0x254bac(0x203)]=initialLogLevel;const transports={'loggerConsole':new winston[(a142_0x254bac(0x200))]['Console'](a142_0x21b312),'loggerFile':new winston[(a142_0x254bac(0x200))][(a142_0x254bac(0x210))]({'filename':path[a142_0x254bac(0x1d3)](logDir,a142_0x254bac(0x208)),'level':initialLogLevel}),'debugLoggerFile':new winston['transports'][(a142_0x254bac(0x210))]({'filename':path[a142_0x254bac(0x1d3)](logDir,'/usage-debug.log'),'level':a142_0x254bac(0x215)}),'debugCliLoggerFile':new winston[(a142_0x254bac(0x200))][(a142_0x254bac(0x210))]({'filename':path[a142_0x254bac(0x1d3)](logDir,DEBUG_CLI_LOG_FILE_NAME),'level':a142_0x254bac(0x215)}),'buildLinkTransport':new winston[(a142_0x254bac(0x200))]['File']({'filename':path[a142_0x254bac(0x1d3)](logDir,a142_0x254bac(0x208)),'level':a142_0x254bac(0x215)})},automationTransports={};process[a142_0x254bac(0x1e5)][a142_0x254bac(0x1fa)]==='true'&&(automationTransports[a142_0x254bac(0x21c)]=new winston[(a142_0x254bac(0x200))][(a142_0x254bac(0x210))]({'filename':path[a142_0x254bac(0x1d3)](logDir,'automation.log'),'level':'silly'}));transports[a142_0x254bac(0x223)]['on'](a142_0x254bac(0x1dc),_0x243444=>{const _0x1734a5=a142_0x254bac,_0x5072de={};_0x5072de['mOpht']=function(_0x4dcbb4,_0x2897de){return _0x4dcbb4===_0x2897de;},_0x5072de[_0x1734a5(0x201)]='EPIPE',_0x5072de[_0x1734a5(0x1e0)]=_0x1734a5(0x1f6);const _0x368432=_0x5072de;if(_0x368432[_0x1734a5(0x1ee)](_0x243444[_0x1734a5(0x1d2)],_0x368432[_0x1734a5(0x201)])){console[_0x1734a5(0x214)](_0x368432[_0x1734a5(0x1e0)],_0x243444[_0x1734a5(0x1d0)]);return;}throw _0x243444;});const a142_0x35d5db={};a142_0x35d5db['format']=a142_0x254bac(0x21e);const a142_0x343291={};function a142_0x55c1(){const _0x130989=['/usage.log','uahlp','replace','remove','timestamp','QfdMn','NqSpq','createLogger','File','colorize','stringify','\x20-\x20','log','silly','levels','loggerFile','13821xddlyO','tLPLs','includes','Console','automationLoggerFile','logDir','YYYY-MM-DD\x20HH:mm:ss','keys','automationLogger','DEaTG','path','loggerConsole','warn','[REDACTED]','filter','rGRfx','length','format','fileLogger','6966988RlOEeb','message','maskHeaders','code','join','RqqMT','mkdirSync','console.info','[REDACTED\x20HEADERS]','map','8023232QFoPVw','toLowerCase','info','error','140769rNTkan','config','BROWSERSTACK_LOG_LEVEL','tVGNc','LkZhf','1309585MnfjOD','winstonLogger','USvyv','env','9fhKgFz','13160720LyGCXE','winston','userName','true','http','add','debug','mOpht','debugCliLoggerFile','existsSync','debugLoggerFile','914228FGfgrn','hVONo','6fkXckU','combine','EPIPE\x20error\x20occurred\x20in\x20loggerConsole:','npm','test','UGLzU','BROWSERSTACK_AUTOMATION_LOGS','string','BROWSERSTACK_INTERNAL_LOG_DIR','getLogDir','\x5c$&','buildLogger','transports','Usugh','uncolorize','level','mZgwd','116eIpWzI','buildLinkTransport','printf'];a142_0x55c1=function(){return _0x130989;};return a142_0x55c1();}a142_0x343291[a142_0x254bac(0x203)]=!![];const winstonLoggerParams={'format':winston[a142_0x254bac(0x1cd)][a142_0x254bac(0x1f5)](winston[a142_0x254bac(0x1cd)]['timestamp'](a142_0x35d5db),winston[a142_0x254bac(0x1cd)][a142_0x254bac(0x211)](a142_0x343291),winston['format'][a142_0x254bac(0x207)](_0x421fc5=>_0x421fc5['timestamp']+a142_0x254bac(0x213)+_0x421fc5[a142_0x254bac(0x203)]+':\x20'+_0x421fc5[a142_0x254bac(0x1d0)])),'transports':[transports[a142_0x254bac(0x223)]]},a142_0x5492bf={};a142_0x5492bf[a142_0x254bac(0x1cd)]=a142_0x254bac(0x21e);const a142_0x99437d={};a142_0x99437d[a142_0x254bac(0x203)]=!![];const winstonFileLoggerParams={'format':winston[a142_0x254bac(0x1cd)][a142_0x254bac(0x1f5)](winston[a142_0x254bac(0x1cd)][a142_0x254bac(0x20c)](a142_0x5492bf),winston['format'][a142_0x254bac(0x211)](a142_0x99437d),winston[a142_0x254bac(0x1cd)][a142_0x254bac(0x207)](_0x5bbcd5=>_0x5bbcd5[a142_0x254bac(0x203)]+':\x20'+_0x5bbcd5[a142_0x254bac(0x1d0)])),'transports':[]},a142_0x10ed18={};a142_0x10ed18[a142_0x254bac(0x1cd)]='YYYY-MM-DD\x20HH:mm:ss';const a142_0x577485={};a142_0x577485[a142_0x254bac(0x203)]=!![];const a142_0x117c14={};a142_0x117c14['level']=a142_0x254bac(0x215);const BuildLoggerParams={'format':winston['format']['combine'](winston[a142_0x254bac(0x1cd)][a142_0x254bac(0x20c)](a142_0x10ed18),winston['format']['colorize'](a142_0x577485),winston[a142_0x254bac(0x1cd)][a142_0x254bac(0x207)](_0x1ca616=>_0x1ca616[a142_0x254bac(0x20c)]+a142_0x254bac(0x213)+_0x1ca616[a142_0x254bac(0x203)]+':\x20'+_0x1ca616[a142_0x254bac(0x1d0)])),'transports':[transports[a142_0x254bac(0x206)],new winston[(a142_0x254bac(0x200))][(a142_0x254bac(0x21b))](a142_0x117c14)]},a142_0x5e9172={};a142_0x5e9172[a142_0x254bac(0x1eb)]=()=>{},a142_0x5e9172['info']=()=>{},a142_0x5e9172[a142_0x254bac(0x224)]=()=>{},a142_0x5e9172[a142_0x254bac(0x1dc)]=()=>{},a142_0x5e9172[a142_0x254bac(0x1ed)]=()=>{},a142_0x5e9172[a142_0x254bac(0x215)]=()=>{},exports[a142_0x254bac(0x220)]=process[a142_0x254bac(0x1e5)][a142_0x254bac(0x1fa)]===a142_0x254bac(0x1ea)?winston[a142_0x254bac(0x20f)]({'format':winston[a142_0x254bac(0x1cd)][a142_0x254bac(0x1f5)](winston[a142_0x254bac(0x1cd)][a142_0x254bac(0x202)](),winston[a142_0x254bac(0x1cd)][a142_0x254bac(0x20c)](),logFormat(),winston[a142_0x254bac(0x1cd)][a142_0x254bac(0x207)](_0xac0343=>_0xac0343[a142_0x254bac(0x203)]+':\x20'+_0xac0343['message'])),'transports':[automationTransports[a142_0x254bac(0x21c)]]}):a142_0x5e9172;function a142_0x18cd(_0x18888f,_0x2ce8b2){const _0x55c1a3=a142_0x55c1();return a142_0x18cd=function(_0x18cdf8,_0x58e945){_0x18cdf8=_0x18cdf8-0x1cb;let _0x2a4b61=_0x55c1a3[_0x18cdf8];return _0x2a4b61;},a142_0x18cd(_0x18888f,_0x2ce8b2);}const initialize=()=>{const _0x1488ff=a142_0x254bac,_0x5cbfcd={};_0x5cbfcd[_0x1488ff(0x209)]=_0x1488ff(0x215);const _0x458e19=_0x5cbfcd,_0x3ef528=transports[_0x1488ff(0x223)][_0x1488ff(0x203)]||initialLogLevel;transports['loggerFile']&&(exports[_0x1488ff(0x1e3)][_0x1488ff(0x20b)](transports[_0x1488ff(0x217)]),exports[_0x1488ff(0x1ce)][_0x1488ff(0x20b)](transports[_0x1488ff(0x217)])),transports[_0x1488ff(0x1f1)]&&(exports[_0x1488ff(0x1e3)][_0x1488ff(0x20b)](transports[_0x1488ff(0x1f1)]),exports['fileLogger'][_0x1488ff(0x20b)](transports[_0x1488ff(0x1f1)])),transports['loggerFile']=new winston[(_0x1488ff(0x200))][(_0x1488ff(0x210))]({'filename':path[_0x1488ff(0x1d3)](exports[_0x1488ff(0x21d)],LOG_FILE_NAME),'level':_0x3ef528}),transports['debugLoggerFile']=new winston[(_0x1488ff(0x200))][(_0x1488ff(0x210))]({'filename':path[_0x1488ff(0x1d3)](exports[_0x1488ff(0x21d)],DEBUG_LOG_FILE_NAME),'level':_0x458e19[_0x1488ff(0x209)]}),transports[_0x1488ff(0x1ef)]=new winston[(_0x1488ff(0x200))][(_0x1488ff(0x210))]({'filename':path[_0x1488ff(0x1d3)](exports[_0x1488ff(0x21d)],DEBUG_CLI_LOG_FILE_NAME),'level':_0x458e19['uahlp']}),exports[_0x1488ff(0x1e3)]['add'](transports[_0x1488ff(0x217)]),exports[_0x1488ff(0x1e3)][_0x1488ff(0x1ec)](transports[_0x1488ff(0x1f1)]),exports[_0x1488ff(0x1ce)][_0x1488ff(0x1ec)](transports[_0x1488ff(0x217)]),exports[_0x1488ff(0x1ce)][_0x1488ff(0x1ec)](transports[_0x1488ff(0x1f1)]);};exports[a142_0x254bac(0x1e3)]=new winston[(a142_0x254bac(0x20f))](winstonLoggerParams),exports['fileLogger']=new winston[(a142_0x254bac(0x20f))](winstonFileLoggerParams),exports[a142_0x254bac(0x1ff)]=new winston[(a142_0x254bac(0x20f))](BuildLoggerParams),exports[a142_0x254bac(0x21d)]=logDir,exports[a142_0x254bac(0x1fd)]=()=>{const _0x57db1c=a142_0x254bac;return exports[_0x57db1c(0x21d)];},exports[a142_0x254bac(0x200)]=transports,exports['initialize']=initialize,exports[a142_0x254bac(0x1d1)]=maskHeaders;logDir&&initialize();
|
|
1
|
+
const a142_0x92568e=a142_0x5ed0;(function(_0x55766b,_0xdd2c85){const _0x11fc49=a142_0x5ed0,_0x31a887=_0x55766b();while(!![]){try{const _0x58ee35=parseInt(_0x11fc49(0xf0))/0x1+-parseInt(_0x11fc49(0xc3))/0x2*(parseInt(_0x11fc49(0xce))/0x3)+parseInt(_0x11fc49(0x10c))/0x4+-parseInt(_0x11fc49(0x107))/0x5*(-parseInt(_0x11fc49(0xd6))/0x6)+-parseInt(_0x11fc49(0xdd))/0x7*(parseInt(_0x11fc49(0x108))/0x8)+-parseInt(_0x11fc49(0xf2))/0x9*(parseInt(_0x11fc49(0xc5))/0xa)+-parseInt(_0x11fc49(0xec))/0xb*(-parseInt(_0x11fc49(0x109))/0xc);if(_0x58ee35===_0xdd2c85)break;else _0x31a887['push'](_0x31a887['shift']());}catch(_0x538044){_0x31a887['push'](_0x31a887['shift']());}}}(a142_0x1ac7,0xddfb2));const winston=require(a142_0x92568e(0xfe)),path=require(a142_0x92568e(0xc9)),fs=require('fs'),{LOG_FILE_NAME,DEBUG_LOG_FILE_NAME,DEBUG_CLI_LOG_FILE_NAME}=require(a142_0x92568e(0xf1)),tempLogDir=a142_0x92568e(0xee);let redactRegex=null,lastConfigHash='';function a142_0x1ac7(){const _0x28df4b=['info','combine','qMWyM','fileLogger','6EXCynh','dCThB','161510uonCnx','BROWSERSTACK_LOG_LEVEL','length','BROWSERSTACK_INTERNAL_LOG_DIR','path','\x20-\x20','transports','automationLoggerFile','erJts','1368645FqKgwq','printf','levels','env','\x5c$&','EPIPE\x20error\x20occurred\x20in\x20loggerConsole:','loggerConsole','silly','12tCcsOf','logDir','remove','uncolorize','debugLoggerFile','message','winstonLogger','115388XLNZwi','ITUKe','XOaoW','loggerFile','lWjBk','join','format','object','uicAm','level','filter','warn','npm','config','map','37163247zZPEqP','colorize','log','accessKey','839455CMPIzU','../bin/utils/constants','837sbtlay','EPIPE','existsSync','[REDACTED\x20HEADERS]','File','string','add','replace','stringify','/usage.log','name','THdhM','winston','test','true','tSzIo','console.info','mkdirSync','timestamp','Console','vIlpH','550295ToctFs','392GZsYQa','12UatiBy','oCezr','mtBLF','598352CFcvMF','error','BROWSERSTACK_AUTOMATION_LOGS','createLogger','toLowerCase','debug','dwTIx','includes','http','buildLinkTransport','YYYY-MM-DD\x20HH:mm:ss','debugCliLoggerFile','getLogDir'];a142_0x1ac7=function(){return _0x28df4b;};return a142_0x1ac7();}const logFormat=winston['format'](_0x4befc4=>{const _0x52bf22=a142_0x92568e,_0x3f89fa={};_0x3f89fa['tSzIo']=function(_0x23c797,_0x2d3b4a){return _0x23c797!==_0x2d3b4a;},_0x3f89fa[_0x52bf22(0xe5)]=_0x52bf22(0xf7),_0x3f89fa[_0x52bf22(0x106)]=function(_0x34d2c8,_0x4be942){return _0x34d2c8+_0x4be942;},_0x3f89fa['dZLcS']=function(_0x32fcc5,_0x221f47){return _0x32fcc5+_0x221f47;},_0x3f89fa['dCThB']=function(_0x4f464f,_0x158dde){return _0x4f464f!==_0x158dde;},_0x3f89fa[_0x52bf22(0x10a)]=function(_0x28299f,_0x4fde23){return _0x28299f>_0x4fde23;},_0x3f89fa['qMWyM']='[REDACTED]';const _0x62d511=_0x3f89fa;_0x62d511[_0x52bf22(0x101)](typeof _0x4befc4[_0x52bf22(0xdb)],_0x62d511[_0x52bf22(0xe5)])&&(_0x4befc4[_0x52bf22(0xdb)]=JSON[_0x52bf22(0xfa)](_0x4befc4[_0x52bf22(0xdb)]));const _0xd00c4e=global[_0x52bf22(0xea)]&&global[_0x52bf22(0xea)]['userName']||'',_0x2dae3c=global[_0x52bf22(0xea)]&&global[_0x52bf22(0xea)][_0x52bf22(0xef)]||'',_0x5b0c81=_0x62d511[_0x52bf22(0x106)](_0x62d511['dZLcS'](_0xd00c4e,'|'),_0x2dae3c);if(_0x62d511[_0x52bf22(0xc4)](_0x5b0c81,lastConfigHash)){lastConfigHash=_0x5b0c81;const _0x5b746d=[_0xd00c4e,_0x2dae3c][_0x52bf22(0xe7)](Boolean);if(_0x62d511['oCezr'](_0x5b746d[_0x52bf22(0xc7)],0x0)){const _0x2ad5f6=_0x5b746d[_0x52bf22(0xeb)](_0x2fd318=>_0x2fd318[_0x52bf22(0xf9)](/[.*+?^${}()|[\]\\]/g,_0x52bf22(0xd2)))[_0x52bf22(0xe2)]('|');redactRegex=new RegExp(_0x2ad5f6,'g');}else redactRegex=null;}return redactRegex&&(_0x4befc4[_0x52bf22(0xdb)]=_0x4befc4[_0x52bf22(0xdb)][_0x52bf22(0xf9)](redactRegex,_0x62d511[_0x52bf22(0xc1)])),_0x4befc4;}),SENSITIVE_HEADER_REGEX=/authorization|token|cookie|secret|^x-api-key$|accesskey|password/i,maskHeaders=_0x9408a2=>{const _0x4ffb98=a142_0x92568e,_0x34d718={};_0x34d718['sfIiz']=function(_0x1ecc9d,_0x28bf16){return _0x1ecc9d!==_0x28bf16;},_0x34d718[_0x4ffb98(0xde)]=_0x4ffb98(0xe4),_0x34d718[_0x4ffb98(0xdf)]='[REDACTED]',_0x34d718['lWjBk']=_0x4ffb98(0xf5);const _0x547e78=_0x34d718;try{if(!_0x9408a2||_0x547e78['sfIiz'](typeof _0x9408a2,_0x547e78[_0x4ffb98(0xde)]))return _0x9408a2;const _0x424407={};for(const _0x24c3a3 of Object['keys'](_0x9408a2)){_0x424407[_0x24c3a3]=SENSITIVE_HEADER_REGEX[_0x4ffb98(0xff)](_0x24c3a3)?_0x547e78[_0x4ffb98(0xdf)]:_0x9408a2[_0x24c3a3];}return _0x424407;}catch{return _0x547e78[_0x4ffb98(0xe1)];}},fetchLogDir=()=>{const _0x152c9a=a142_0x92568e;if(process[_0x152c9a(0xd1)][_0x152c9a(0xc8)])return process[_0x152c9a(0xd1)][_0x152c9a(0xc8)];else!fs[_0x152c9a(0xf4)](tempLogDir)&&fs[_0x152c9a(0x103)](tempLogDir);return tempLogDir;},logDir=fetchLogDir(),getInitialLogLevel=()=>{const _0xd1e804=a142_0x92568e,_0x82bd8f={};_0x82bd8f['mtBLF']=_0xd1e804(0xbf);const _0x5e71d1=_0x82bd8f,_0xfd6333=process[_0xd1e804(0xd1)][_0xd1e804(0xc6)],_0x10c4e5=Object['keys'](winston[_0xd1e804(0xea)][_0xd1e804(0xe9)][_0xd1e804(0xd0)]);if(_0xfd6333&&_0x10c4e5[_0xd1e804(0xb9)](_0xfd6333[_0xd1e804(0x110)]()))return _0xfd6333[_0xd1e804(0x110)]();return _0x5e71d1[_0xd1e804(0x10b)];},initialLogLevel=getInitialLogLevel(),a142_0x55f416={};a142_0x55f416[a142_0x92568e(0xfc)]=a142_0x92568e(0x102),a142_0x55f416[a142_0x92568e(0xe6)]=initialLogLevel;const transports={'loggerConsole':new winston[(a142_0x92568e(0xcb))][(a142_0x92568e(0x105))](a142_0x55f416),'loggerFile':new winston[(a142_0x92568e(0xcb))][(a142_0x92568e(0xf6))]({'filename':path[a142_0x92568e(0xe2)](logDir,a142_0x92568e(0xfb)),'level':initialLogLevel}),'debugLoggerFile':new winston['transports'][(a142_0x92568e(0xf6))]({'filename':path[a142_0x92568e(0xe2)](logDir,'/usage-debug.log'),'level':a142_0x92568e(0xd5)}),'debugCliLoggerFile':new winston[(a142_0x92568e(0xcb))][(a142_0x92568e(0xf6))]({'filename':path[a142_0x92568e(0xe2)](logDir,DEBUG_CLI_LOG_FILE_NAME),'level':a142_0x92568e(0xd5)}),'buildLinkTransport':new winston[(a142_0x92568e(0xcb))][(a142_0x92568e(0xf6))]({'filename':path[a142_0x92568e(0xe2)](logDir,'/usage.log'),'level':a142_0x92568e(0xd5)})},automationTransports={};process[a142_0x92568e(0xd1)]['BROWSERSTACK_AUTOMATION_LOGS']==='true'&&(automationTransports['automationLoggerFile']=new winston[(a142_0x92568e(0xcb))][(a142_0x92568e(0xf6))]({'filename':path[a142_0x92568e(0xe2)](logDir,'automation.log'),'level':a142_0x92568e(0xd5)}));transports[a142_0x92568e(0xd4)]['on'](a142_0x92568e(0x10d),_0x3bb8cd=>{const _0x4bca07=a142_0x92568e,_0x5b78cc={};_0x5b78cc[_0x4bca07(0xfd)]=function(_0x5405f9,_0x37ca31){return _0x5405f9===_0x37ca31;},_0x5b78cc[_0x4bca07(0xcd)]=_0x4bca07(0xf3),_0x5b78cc['yNFbJ']=_0x4bca07(0xd3);const _0x5051d7=_0x5b78cc;if(_0x5051d7['THdhM'](_0x3bb8cd['code'],_0x5051d7[_0x4bca07(0xcd)])){console[_0x4bca07(0xee)](_0x5051d7['yNFbJ'],_0x3bb8cd['message']);return;}throw _0x3bb8cd;});const a142_0x6399bf={};a142_0x6399bf[a142_0x92568e(0xe3)]=a142_0x92568e(0xbc);const a142_0x83bb74={};a142_0x83bb74[a142_0x92568e(0xe6)]=!![];const winstonLoggerParams={'format':winston[a142_0x92568e(0xe3)][a142_0x92568e(0xc0)](winston['format']['timestamp'](a142_0x6399bf),winston[a142_0x92568e(0xe3)][a142_0x92568e(0xed)](a142_0x83bb74),winston[a142_0x92568e(0xe3)][a142_0x92568e(0xcf)](_0x5dcf93=>_0x5dcf93[a142_0x92568e(0x104)]+a142_0x92568e(0xca)+_0x5dcf93[a142_0x92568e(0xe6)]+':\x20'+_0x5dcf93[a142_0x92568e(0xdb)])),'transports':[transports[a142_0x92568e(0xd4)]]},a142_0xcab033={};a142_0xcab033[a142_0x92568e(0xe3)]=a142_0x92568e(0xbc);function a142_0x5ed0(_0x525330,_0x16ff24){const _0x1ac7ca=a142_0x1ac7();return a142_0x5ed0=function(_0x5ed0db,_0x1975bd){_0x5ed0db=_0x5ed0db-0xb7;let _0x7949cd=_0x1ac7ca[_0x5ed0db];return _0x7949cd;},a142_0x5ed0(_0x525330,_0x16ff24);}const a142_0x486ee4={};a142_0x486ee4[a142_0x92568e(0xe6)]=!![];const winstonFileLoggerParams={'format':winston[a142_0x92568e(0xe3)][a142_0x92568e(0xc0)](winston[a142_0x92568e(0xe3)][a142_0x92568e(0x104)](a142_0xcab033),winston[a142_0x92568e(0xe3)][a142_0x92568e(0xed)](a142_0x486ee4),winston[a142_0x92568e(0xe3)]['printf'](_0x2b2801=>_0x2b2801[a142_0x92568e(0xe6)]+':\x20'+_0x2b2801[a142_0x92568e(0xdb)])),'transports':[]},a142_0x4c3fdc={};a142_0x4c3fdc[a142_0x92568e(0xe3)]='YYYY-MM-DD\x20HH:mm:ss';const a142_0x58b7bb={};a142_0x58b7bb[a142_0x92568e(0xe6)]=!![];const a142_0x115971={};a142_0x115971[a142_0x92568e(0xe6)]=a142_0x92568e(0xd5);const BuildLoggerParams={'format':winston[a142_0x92568e(0xe3)]['combine'](winston[a142_0x92568e(0xe3)]['timestamp'](a142_0x4c3fdc),winston[a142_0x92568e(0xe3)]['colorize'](a142_0x58b7bb),winston[a142_0x92568e(0xe3)][a142_0x92568e(0xcf)](_0x21f52a=>_0x21f52a['timestamp']+a142_0x92568e(0xca)+_0x21f52a[a142_0x92568e(0xe6)]+':\x20'+_0x21f52a[a142_0x92568e(0xdb)])),'transports':[transports[a142_0x92568e(0xbb)],new winston['transports'][(a142_0x92568e(0x105))](a142_0x115971)]},a142_0xf2d393={};a142_0xf2d393[a142_0x92568e(0xba)]=()=>{},a142_0xf2d393[a142_0x92568e(0xbf)]=()=>{},a142_0xf2d393[a142_0x92568e(0xe8)]=()=>{},a142_0xf2d393[a142_0x92568e(0x10d)]=()=>{},a142_0xf2d393[a142_0x92568e(0xb7)]=()=>{},a142_0xf2d393[a142_0x92568e(0xd5)]=()=>{},exports['automationLogger']=process[a142_0x92568e(0xd1)][a142_0x92568e(0x10e)]===a142_0x92568e(0x100)?winston[a142_0x92568e(0x10f)]({'format':winston['format'][a142_0x92568e(0xc0)](winston[a142_0x92568e(0xe3)][a142_0x92568e(0xd9)](),winston['format'][a142_0x92568e(0x104)](),logFormat(),winston['format'][a142_0x92568e(0xcf)](_0x3f96eb=>_0x3f96eb[a142_0x92568e(0xe6)]+':\x20'+_0x3f96eb[a142_0x92568e(0xdb)])),'transports':[automationTransports[a142_0x92568e(0xcc)]]}):a142_0xf2d393;const initialize=()=>{const _0x1e2301=a142_0x92568e,_0xec51ff={};_0xec51ff['dwTIx']=_0x1e2301(0xd5);const _0x1e350b=_0xec51ff,_0x2b06d6=transports[_0x1e2301(0xd4)][_0x1e2301(0xe6)]||initialLogLevel;transports[_0x1e2301(0xe0)]&&(exports['winstonLogger'][_0x1e2301(0xd8)](transports[_0x1e2301(0xe0)]),exports[_0x1e2301(0xc2)][_0x1e2301(0xd8)](transports[_0x1e2301(0xe0)])),transports['debugLoggerFile']&&(exports[_0x1e2301(0xdc)][_0x1e2301(0xd8)](transports[_0x1e2301(0xda)]),exports['fileLogger'][_0x1e2301(0xd8)](transports[_0x1e2301(0xda)])),transports['loggerFile']=new winston['transports'][(_0x1e2301(0xf6))]({'filename':path[_0x1e2301(0xe2)](exports['logDir'],LOG_FILE_NAME),'level':_0x2b06d6}),transports[_0x1e2301(0xda)]=new winston[(_0x1e2301(0xcb))][(_0x1e2301(0xf6))]({'filename':path['join'](exports[_0x1e2301(0xd7)],DEBUG_LOG_FILE_NAME),'level':_0x1e350b[_0x1e2301(0xb8)]}),transports[_0x1e2301(0xbd)]=new winston[(_0x1e2301(0xcb))][(_0x1e2301(0xf6))]({'filename':path[_0x1e2301(0xe2)](exports[_0x1e2301(0xd7)],DEBUG_CLI_LOG_FILE_NAME),'level':_0x1e350b[_0x1e2301(0xb8)]}),exports[_0x1e2301(0xdc)][_0x1e2301(0xf8)](transports[_0x1e2301(0xe0)]),exports['winstonLogger'][_0x1e2301(0xf8)](transports['debugLoggerFile']),exports['fileLogger'][_0x1e2301(0xf8)](transports['loggerFile']),exports[_0x1e2301(0xc2)][_0x1e2301(0xf8)](transports['debugLoggerFile']);};exports[a142_0x92568e(0xdc)]=new winston[(a142_0x92568e(0x10f))](winstonLoggerParams),exports[a142_0x92568e(0xc2)]=new winston['createLogger'](winstonFileLoggerParams),exports['buildLogger']=new winston[(a142_0x92568e(0x10f))](BuildLoggerParams),exports['logDir']=logDir,exports[a142_0x92568e(0xbe)]=()=>{const _0x49372a=a142_0x92568e;return exports[_0x49372a(0xd7)];},exports[a142_0x92568e(0xcb)]=transports,exports['initialize']=initialize,exports['maskHeaders']=maskHeaders;logDir&&initialize();
|
package/src/helpers/metadata.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a143_0x1670(_0x57b372,_0x3b7584){const _0x31927d=a143_0x3192();return a143_0x1670=function(_0x1670f4,_0x598fe4){_0x1670f4=_0x1670f4-0x102;let _0x1101e3=_0x31927d[_0x1670f4];return _0x1101e3;},a143_0x1670(_0x57b372,_0x3b7584);}function a143_0x3192(){const _0x2739c5=['2214156aOepNA','testRunUUID','getGlobal','winstonLogger','7590919ktlnbT','./globals','cZMzm','4vwIzaR','8dFTOvy','testMeta-','lcnc','1107441hMOZSz','VHEhI','20wAfdZi','KMYwi','testMeta','mCDPG','The\x20metadata\x20object\x20is\x20not\x20valid.','SXGFf','10qybGgt','get','getCentralUser','819822Ufgodc','BVZyE','926577tVNMWH','520603zFNuxl','20124368MquGRo','string','QqzoT','setGlobal','warn'];a143_0x3192=function(){return _0x2739c5;};return a143_0x3192();}const a143_0x41311a=a143_0x1670;(function(_0x2e362c,_0x22147d){const _0x25e81c=a143_0x1670,_0x32e49c=_0x2e362c();while(!![]){try{const _0x5e4ee4=parseInt(_0x25e81c(0x10a))/0x1+-parseInt(_0x25e81c(0x110))/0x2+-parseInt(_0x25e81c(0x109))/0x3*(-parseInt(_0x25e81c(0x117))/0x4)+-parseInt(_0x25e81c(0x11d))/0x5*(-parseInt(_0x25e81c(0x107))/0x6)+parseInt(_0x25e81c(0x114))/0x7*(-parseInt(_0x25e81c(0x118))/0x8)+-parseInt(_0x25e81c(0x11b))/0x9+-parseInt(_0x25e81c(0x104))/0xa*(-parseInt(_0x25e81c(0x10b))/0xb);if(_0x5e4ee4===_0x22147d)break;else _0x32e49c['push'](_0x32e49c['shift']());}catch(_0x32b748){_0x32e49c['push'](_0x32e49c['shift']());}}}(a143_0x3192,0xd984a));const globals=require(a143_0x41311a(0x115)),helper=require('./helper'),logger=require('./logger')[a143_0x41311a(0x113)];module['exports']=class TestMetadata{static['set'](_0x5b0f95={}){const _0x2ce8f2=a143_0x41311a,_0x5256c3={};_0x5256c3[_0x2ce8f2(0x116)]=_0x2ce8f2(0x111),_0x5256c3[_0x2ce8f2(0x108)]=function(_0x1de507,_0x3c6579){return _0x1de507===_0x3c6579;},_0x5256c3[_0x2ce8f2(0x11e)]=_0x2ce8f2(0x10c),_0x5256c3[_0x2ce8f2(0x10d)]=function(_0x2785b4,_0x580556){return _0x2785b4<=_0x580556;},_0x5256c3[_0x2ce8f2(0x120)]='testMeta',_0x5256c3[_0x2ce8f2(0x103)]=_0x2ce8f2(0x102);const _0x220582=_0x5256c3,_0x405bab=globals['getGlobal'](_0x220582[_0x2ce8f2(0x116)]),_0x29a78b=_0x5b0f95['identifier'];helper[_0x2ce8f2(0x106)]()[_0x2ce8f2(0x11a)]&&(_0x220582[_0x2ce8f2(0x108)](typeof _0x29a78b,_0x220582['KMYwi'])&&_0x220582[_0x2ce8f2(0x10d)](_0x29a78b['length'],0x28)?_0x405bab?globals['setGlobal'](_0x2ce8f2(0x119)+_0x405bab,_0x5b0f95):globals[_0x2ce8f2(0x10e)](_0x220582[_0x2ce8f2(0x120)],_0x5b0f95):logger[_0x2ce8f2(0x10f)](_0x220582[_0x2ce8f2(0x103)]));}static[a143_0x41311a(0x105)](_0x2a98e0){const _0x1dc695=a143_0x41311a,_0x23e56f={};_0x23e56f['VHEhI']=_0x1dc695(0x11f);const _0x584f41=_0x23e56f;if(helper['getCentralUser']()[_0x1dc695(0x11a)])return globals[_0x1dc695(0x112)](_0x1dc695(0x119)+_0x2a98e0)||globals[_0x1dc695(0x112)](_0x584f41[_0x1dc695(0x11c)])||{};return{};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a144_0x1be217=a144_0x4761;(function(_0xa894ba,_0x198d0f){const _0x3d5c44=a144_0x4761,_0x12b347=_0xa894ba();while(!![]){try{const _0x377dfb=-parseInt(_0x3d5c44(0xe0))/0x1+-parseInt(_0x3d5c44(0x106))/0x2+parseInt(_0x3d5c44(0x104))/0x3*(parseInt(_0x3d5c44(0xeb))/0x4)+-parseInt(_0x3d5c44(0xf7))/0x5+parseInt(_0x3d5c44(0xd8))/0x6+-parseInt(_0x3d5c44(0x11a))/0x7+parseInt(_0x3d5c44(0xfb))/0x8*(parseInt(_0x3d5c44(0xdd))/0x9);if(_0x377dfb===_0x198d0f)break;else _0x12b347['push'](_0x12b347['shift']());}catch(_0x358f0d){_0x12b347['push'](_0x12b347['shift']());}}}(a144_0x3923,0xc8748));function a144_0x4761(_0x393864,_0x52d688){const _0x392302=a144_0x3923();return a144_0x4761=function(_0x4761b5,_0x1c371f){_0x4761b5=_0x4761b5-0xca;let _0x37d76d=_0x392302[_0x4761b5];return _0x37d76d;},a144_0x4761(_0x393864,_0x52d688);}const PerformanceTester=require(a144_0x1be217(0xd5)),{winstonLogger:logger,automationLogger}=require(a144_0x1be217(0xde)),helper=require('./helper'),constants=require(a144_0x1be217(0xd4)),{DRIVER_EVENT:PerformanceDriverEvents}=require(a144_0x1be217(0xca)),{BSTACK_SCAN_IN_PROGRESS}=require(a144_0x1be217(0xf8)),util=require(a144_0x1be217(0xd9));exports[a144_0x1be217(0xed)]=(_0x35f583,_0x5c8504)=>{const _0x2b354f=a144_0x1be217,_0x2efa1d={'rCTJQ':'Caught\x20error\x20in\x20execute,\x20check\x20if\x20geturl\x20and\x20try\x20to\x20set\x20local\x20nudge','ptSgR':function(_0x50e693,_0x529b77){return _0x50e693===_0x529b77;},'IFHOM':'get','PcgyB':_0x2b354f(0x117),'vCCmL':_0x2b354f(0xe5),'PFsfi':_0x2b354f(0xe2),'MUZck':function(_0x1e6670,_0x5b05cd){return _0x1e6670===_0x5b05cd;},'AZTPA':'executeAsyncScript','HTNhH':'executeScript','JiHeg':_0x2b354f(0xf4),'eUqaB':function(_0x4ffd49,_0x9d7349){return _0x4ffd49(_0x9d7349);},'XYDWw':'./accessibility-automation/scripts','JwlHD':function(_0x15a827,_0x4ef64a){return _0x15a827(_0x4ef64a);},'jiqGd':_0x2b354f(0xf3),'QEUxu':function(_0x1e6d3d,_0x403d22){return _0x1e6d3d(_0x403d22);},'zwunW':_0x2b354f(0xdf),'pIurt':function(_0x34eed1,_0x3786fc){return _0x34eed1===_0x3786fc;},'QqecY':_0x2b354f(0xe6),'XPipd':function(_0x4d39ec,_0x2c200a){return _0x4d39ec(_0x2c200a);},'dLImb':_0x2b354f(0xf1),'Vugqx':_0x2b354f(0xce),'CKStZ':'browserstack.local','kBHPT':_0x2b354f(0x111),'yyJil':_0x2b354f(0xff)},_0x315417=_0x35f583[_0x2b354f(0x118)]||(helper['nestedKeyValue'](_0x5c8504,[_0x2efa1d[_0x2b354f(0x102)],_0x2efa1d[_0x2b354f(0xe7)]])||helper[_0x2b354f(0x114)](_0x5c8504,[_0x2efa1d[_0x2b354f(0x102)],_0x2efa1d[_0x2b354f(0xe8)],_0x2efa1d['yyJil']]));if(_0x315417)return;_0x35f583['patchExecute']=!![],_0x35f583[_0x2b354f(0xe3)]=_0x35f583['execute'],_0x35f583[_0x2b354f(0x109)]=async _0x407a27=>{const _0x3a9e4a=_0x2b354f;try{const _0x252ad4=await _0x35f583[_0x3a9e4a(0xe3)](_0x407a27);try{if(_0x2efa1d['MUZck'](_0x407a27[_0x3a9e4a(0x10d)],_0x2efa1d[_0x3a9e4a(0xea)])||_0x2efa1d[_0x3a9e4a(0xf5)](_0x407a27['name_'],_0x2efa1d[_0x3a9e4a(0xf9)])){const _0xd7ae7c=_0x407a27['parameters_']&&_0x407a27['parameters_'][_0x3a9e4a(0x105)],_0x2ceb05=_0x407a27['parameters_']&&_0x407a27[_0x3a9e4a(0x117)]['args'],_0xb19c69=_0x2ceb05&&util['format']('%j',_0x2ceb05);if(_0xd7ae7c&&_0x2efa1d[_0x3a9e4a(0xf5)](typeof _0xd7ae7c,_0x2efa1d['JiHeg'])){const _0x48d3cb=constants['AUTOMATION_LOG_COMMANDS'][_0x3a9e4a(0x10e)](_0x3163b0=>_0xd7ae7c[_0x3a9e4a(0x100)](_0x3163b0)||_0xb19c69&&_0xb19c69[_0x3a9e4a(0x100)](_0x3163b0));if(_0x48d3cb){const _0x4ed2e0={};_0x4ed2e0[_0x3a9e4a(0xcc)]=_0x48d3cb,_0x4ed2e0['parameters']=_0x2ceb05;const _0x41f1e7={};_0x41f1e7[_0x3a9e4a(0xdb)]=_0x252ad4;const _0x2ce55e={};_0x2ce55e[_0x3a9e4a(0x112)]=_0x4ed2e0,_0x2ce55e[_0x3a9e4a(0x103)]=_0x41f1e7,automationLogger[_0x3a9e4a(0xcd)]('['+new Date()[_0x3a9e4a(0x108)]()+'][\x20SDK-AUTOMATION\x20]\x20'+util['format']('%j',_0x2ce55e));}}}}catch(_0x10d3de){logger[_0x3a9e4a(0xcd)](_0x3a9e4a(0x10a)+_0x10d3de[_0x3a9e4a(0x107)]);}try{if(!_0x35f583[BSTACK_SCAN_IN_PROGRESS]){const _0x8d2017=_0x2efa1d[_0x3a9e4a(0xe1)](require,_0x2efa1d['XYDWw']),_0x588a15=_0x2efa1d[_0x3a9e4a(0xf0)](require,_0x2efa1d[_0x3a9e4a(0x110)]),_0x404b45=_0x2efa1d['QEUxu'](require,_0x2efa1d[_0x3a9e4a(0xda)]);if(_0x2efa1d['pIurt'](typeof _0x8d2017[_0x3a9e4a(0xe9)],_0x2efa1d[_0x3a9e4a(0xfa)])&&_0x8d2017[_0x3a9e4a(0xe9)](_0x407a27[_0x3a9e4a(0x10d)])){const _0x511373=_0x2efa1d[_0x3a9e4a(0xfc)](require,_0x2efa1d['dLImb']),_0xba0518=_0x511373[_0x3a9e4a(0xfd)](),_0x279b83=_0xba0518&&_0xba0518[_0x3a9e4a(0xfe)]();if(_0x279b83&&_0x279b83[_0x3a9e4a(0xd0)]&&_0x279b83[_0x3a9e4a(0xdc)]()){let _0x1d664e='';try{const _0x5a2531=_0xba0518[_0x3a9e4a(0xcb)]&&_0xba0518['getTestFramework']();_0x1d664e=_0x5a2531&&_0x5a2531['getCurrentTestUUID']&&_0x5a2531['getCurrentTestUUID']()||'';}catch(_0x5932ef){}logger[_0x3a9e4a(0x101)]('[App-A11y]\x20patchHelper:\x20firing\x20EXECUTE\x20PRE\x20for\x20command='+_0x407a27[_0x3a9e4a(0x10d)]+',\x20testRunId='+_0x1d664e);const _0x1e5408=_0xba0518[_0x3a9e4a(0x10f)]();if(!_0x1e5408){logger[_0x3a9e4a(0x101)]('[App-A11y]\x20patchHelper:\x20no\x20automationFramework\x20for\x20node-generic\x20—\x20calling\x20onBeforeExecute\x20directly\x20for\x20command='+_0x407a27[_0x3a9e4a(0x10d)]);const _0x581922={};_0x581922[_0x3a9e4a(0xd7)]=constants['FRAMEWORKS'][_0x3a9e4a(0xf6)],_0x581922[_0x3a9e4a(0x115)]=_0x407a27['name_'],_0x581922[_0x3a9e4a(0xf2)]=_0x35f583,_0x581922[_0x3a9e4a(0xcf)]=_0x1d664e,await _0x279b83[_0x3a9e4a(0xd3)](_0x581922);}else{const _0x3848fd={};_0x3848fd[_0x3a9e4a(0x115)]=_0x407a27['name_'],_0x3848fd[_0x3a9e4a(0xf2)]=_0x35f583,_0x3848fd[_0x3a9e4a(0xd7)]=constants[_0x3a9e4a(0x116)][_0x3a9e4a(0xf6)],_0x3848fd[_0x3a9e4a(0xcf)]=_0x1d664e,await _0x1e5408['trackEvent'](_0x588a15['EXECUTE'],_0x404b45[_0x3a9e4a(0x119)],_0x3848fd);}}}}}catch(_0x342a8c){logger[_0x3a9e4a(0x101)](_0x3a9e4a(0xd6)+_0x342a8c[_0x3a9e4a(0x107)]);}return _0x252ad4;}catch(_0x3cffb4){await PerformanceTester[_0x3a9e4a(0xee)](PerformanceDriverEvents[_0x3a9e4a(0x113)],async()=>{const _0xbbd30e=_0x3a9e4a;logger['debug'](_0x2efa1d[_0xbbd30e(0x10b)]);try{_0x2efa1d['ptSgR'](_0x407a27[_0xbbd30e(0x10d)],_0x2efa1d['IFHOM'])&&helper[_0xbbd30e(0x114)](_0x407a27,[_0x2efa1d[_0xbbd30e(0xec)],_0x2efa1d[_0xbbd30e(0x10c)]])&&!!constants[_0xbbd30e(0xd1)][_0xbbd30e(0x10e)](_0xa66a49=>{const _0x2cc482=_0xbbd30e;return _0x3cffb4[_0x2cc482(0xef)]()[_0x2cc482(0x100)](_0xa66a49);})&&helper[_0xbbd30e(0xd2)](_0x407a27[_0xbbd30e(0x117)]['url'],!![]);}catch(_0x5c7b7a){logger['debug'](_0x2efa1d[_0xbbd30e(0xe4)],_0x5c7b7a);}},{'success':![],'failure':_0x3cffb4})();throw _0x3cffb4;}};};function a144_0x3923(){const _0x15c073=['getAutomationFramework','jiqGd','bstack:options','request','POST_EXECUTE','nestedKeyValue','commandName','FRAMEWORKS','parameters_','patchExecute','PRE','6828283ATwGoO','./performance/constants','getTestFramework','command','silly','capability','testRunId','isAppAccessibility','NUDGE_LOCAL_ERRORS','getNudgeLocalNotSetError','onBeforeExecute','../bin/utils/constants','./performance/performance-tester','[App-A11y]\x20patchHelper:\x20error\x20in\x20a11y\x20scan\x20hook:\x20','testFramework','3056802duOabQ','util','zwunW','body','getCurrentAccessibilityStatus','9745137HWMnvP','./logger','../bin/v2/state/hookState','1414390Woubcp','eUqaB','Error\x20in\x20local\x20nudge\x20for\x20overrideExecute:\x20','initExecute','PFsfi','url','function','CKStZ','kBHPT','shouldWrapCommand','AZTPA','4744JGUTtD','PcgyB','overrideExecute','measureWrapper','toString','JwlHD','../bin/v2/browserstackCLI','driver','../bin/v2/state/automationFrameworkState','string','MUZck','NODE_GENERIC','820465pizjBq','./accessibility-automation/constants','HTNhH','QqecY','24mmhHyw','XPipd','getInstance','getAccessibilityModule','local','includes','debug','Vugqx','response','1779IomhqO','script','2172256sLnOxQ','message','toISOString','execute','Error\x20while\x20logging\x20accessibility\x20automation\x20logs\x20in\x20driver.execute\x20:\x20','rCTJQ','vCCmL','name_','find'];a144_0x3923=function(){return _0x15c073;};return a144_0x3923();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a145_0x1d1e(_0x19cdab,_0x40c018){const _0x21150d=a145_0x2115();return a145_0x1d1e=function(_0x1d1efa,_0x1519c1){_0x1d1efa=_0x1d1efa-0x1c1;let _0x253f73=_0x21150d[_0x1d1efa];return _0x253f73;},a145_0x1d1e(_0x19cdab,_0x40c018);}const a145_0x1f2d70=a145_0x1d1e;(function(_0xd91836,_0xbd82f6){const _0x2ea527=a145_0x1d1e,_0x3d54ff=_0xd91836();while(!![]){try{const _0x18ac34=parseInt(_0x2ea527(0x1dc))/0x1*(-parseInt(_0x2ea527(0x1d7))/0x2)+parseInt(_0x2ea527(0x1e5))/0x3+-parseInt(_0x2ea527(0x1da))/0x4+-parseInt(_0x2ea527(0x1ca))/0x5+parseInt(_0x2ea527(0x1cf))/0x6*(parseInt(_0x2ea527(0x1d4))/0x7)+-parseInt(_0x2ea527(0x1cc))/0x8*(-parseInt(_0x2ea527(0x1d0))/0x9)+parseInt(_0x2ea527(0x1d5))/0xa*(-parseInt(_0x2ea527(0x1ce))/0xb);if(_0x18ac34===_0xbd82f6)break;else _0x3d54ff['push'](_0x3d54ff['shift']());}catch(_0x2ee509){_0x3d54ff['push'](_0x3d54ff['shift']());}}}(a145_0x2115,0xae135));const PerformanceTester=require(a145_0x1f2d70(0x1d2)),O11yEvents=require(a145_0x1f2d70(0x1df))['O11y_EVENTS'];function a145_0x2115(){const _0x5443e7=['catch','CpRIG','2067112hpEGna','initQuit','1pRynXG','GRJva','toISOString','./performance/constants','BS_TESTOPS_ALLOW_SCREENSHOTS','emit','quitCount_','takeScreenshot','then','2849199aWTjNM','end','overrideQuit','TAKE_SCREENSHOT','uhGAq','true','patchScreenshot','XFOSq','start','quit','2842065mpDaMP','bs:addLog:','6440008svZpmw','initScreenshot','11lTjTVB','18054vTYZjF','9nRHIEC','overrideTakeScreenshot','./performance/performance-tester','iLZhF','2198iglfhf','299930OBQCmY','env','1742726HUNvvi'];a145_0x2115=function(){return _0x5443e7;};return a145_0x2115();}exports[a145_0x1f2d70(0x1d1)]=_0x6bdd3a=>{const _0x4777b3=a145_0x1f2d70,_0x49cf55={'DZwCj':'TEST_SCREENSHOT','uhGAq':function(_0x3007d8,_0x422835){return _0x3007d8(_0x422835);},'uqQOB':function(_0x35e501,_0x4840e2){return _0x35e501(_0x4840e2);},'iLZhF':function(_0x3e4944,_0x3764f4){return _0x3e4944!==_0x3764f4;},'XFOSq':_0x4777b3(0x1c5)};if(_0x49cf55[_0x4777b3(0x1d3)](process[_0x4777b3(0x1d6)][_0x4777b3(0x1e0)],_0x49cf55[_0x4777b3(0x1c7)]))return;if(_0x6bdd3a[_0x4777b3(0x1c6)])return;_0x6bdd3a[_0x4777b3(0x1c6)]=!![],_0x6bdd3a[_0x4777b3(0x1cd)]=_0x6bdd3a['takeScreenshot'],_0x6bdd3a[_0x4777b3(0x1e3)]=()=>{const _0x1b2763={'mPJHK':function(_0x4ddda0,_0x3df2b4){return _0x49cf55['uqQOB'](_0x4ddda0,_0x3df2b4);}};return new Promise(function(_0x3fa475,_0x3c1ec2){const _0x1f0495=a145_0x1d1e,_0x1fe488={'xIaYJ':_0x49cf55['DZwCj'],'CpRIG':function(_0x20d685,_0x7ca024){const _0x275a47=a145_0x1d1e;return _0x49cf55[_0x275a47(0x1c4)](_0x20d685,_0x7ca024);}};_0x6bdd3a[_0x1f0495(0x1cd)]()[_0x1f0495(0x1e4)](_0x569f08=>{const _0x4e2997=_0x1f0495;PerformanceTester[_0x4e2997(0x1c8)](O11yEvents[_0x4e2997(0x1c3)]),process[_0x4e2997(0x1e1)](_0x4e2997(0x1cb)+process['pid'],{'timestamp':new Date()[_0x4e2997(0x1de)](),'message':_0x569f08,'kind':_0x1fe488['xIaYJ']}),_0x1fe488[_0x4e2997(0x1d9)](_0x3fa475,_0x569f08),PerformanceTester['end'](O11yEvents['TAKE_SCREENSHOT']);})[_0x1f0495(0x1d8)](_0x890ccc=>{const _0x1e19ac=_0x1f0495;PerformanceTester[_0x1e19ac(0x1c1)](O11yEvents[_0x1e19ac(0x1c3)]),_0x1b2763['mPJHK'](_0x3c1ec2,_0x890ccc);});});};},exports[a145_0x1f2d70(0x1c2)]=(_0x4226e7,_0x4abdb1=null)=>{const _0x405855=a145_0x1f2d70,_0x304167={'PzchY':function(_0x499fdf){return _0x499fdf();},'GRJva':function(_0x932f15,_0x171efd){return _0x932f15>_0x171efd;}};if(_0x4226e7['patchQuit'])return;_0x4226e7['patchQuit']=!![],_0x4226e7[_0x405855(0x1db)]=_0x4226e7[_0x405855(0x1c9)],_0x4226e7[_0x405855(0x1c9)]=()=>{const _0x39deb6=_0x405855;if(_0x4abdb1){_0x4abdb1['quitCount_']+=0x1;if(_0x304167[_0x39deb6(0x1dd)](_0x4abdb1[_0x39deb6(0x1e2)],0x1))return _0x4226e7[_0x39deb6(0x1db)]();}else{_0x4226e7[_0x39deb6(0x1e2)]+=0x1;if(_0x304167[_0x39deb6(0x1dd)](_0x4226e7['quitCount_'],0x1))return _0x4226e7[_0x39deb6(0x1db)]();}return new Promise(function(_0x47a5f2){_0x304167['PzchY'](_0x47a5f2);});};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a146_0x2d06(_0x429d58,_0x2c5f76){const _0x584133=a146_0x5841();return a146_0x2d06=function(_0x2d0601,_0x4c7573){_0x2d0601=_0x2d0601-0xd9;let _0x45f77f=_0x584133[_0x2d0601];return _0x45f77f;},a146_0x2d06(_0x429d58,_0x2c5f76);}const a146_0x574a80=a146_0x2d06;(function(_0x492836,_0x48e532){const _0x1dd1c3=a146_0x2d06,_0x494b35=_0x492836();while(!![]){try{const _0x23be4b=parseInt(_0x1dd1c3(0xe7))/0x1+-parseInt(_0x1dd1c3(0x110))/0x2+-parseInt(_0x1dd1c3(0xea))/0x3*(parseInt(_0x1dd1c3(0xff))/0x4)+parseInt(_0x1dd1c3(0xdd))/0x5+-parseInt(_0x1dd1c3(0xe3))/0x6*(-parseInt(_0x1dd1c3(0xe9))/0x7)+parseInt(_0x1dd1c3(0xf0))/0x8+parseInt(_0x1dd1c3(0xed))/0x9;if(_0x23be4b===_0x48e532)break;else _0x494b35['push'](_0x494b35['shift']());}catch(_0xb2b1c1){_0x494b35['push'](_0x494b35['shift']());}}}(a146_0x5841,0xc9e34));function a146_0x5841(){const _0x70fd24=['gzsiT','../../helpers/performance/constants','uhqGE','automate','GET','tvaLc','percyOptions','exports','KWDeZ','winstonLogger','percy/healthcheck','gFbLy','../helper','3274546lcxjtW','stdout','YDHao','DOWNLOAD','close','error','stderr','PRtzH','healthcheck','../../helpers/testhub/constants','assign','Error\x20creating\x20percy\x20config:\x20','isProcessRunning','Percy\x20unable\x20to\x20fetch\x20project\x20token:\x20','app:exec','lLFgi','version','../../helpers/performance/performance-tester','env','AIQwn','EwTtZ','dmzSR','fetchPercyToken','debug','Percy\x20fetch\x20token\x20success','rqFqJ','app','1399280NWHIsZ','nodeRequest','ENV_VAR','exec:stop','pNgfl','pipe','12jxnbjj','projectName','start','tmpdir','770523qTzuKi','data','3605wElBiD','147930JBCIMI','percy.log','writeFile','11316357UYAoJH','flags','BROWSERSTACK_TESTHUB_UUID','5582664pcsMBG','tQptw','ldgeh','sdflf','yYLCX','push','../logger','PERCY_SERVER_ADDRESS','end','Percy\x20config\x20created\x20at\x20','api/app_percy/get_project_token?name=','join','http://localhost:5338','stringify','&type=','44FBecLx','fxwMD','isRunning','createPercyConfig'];a146_0x5841=function(){return _0x70fd24;};return a146_0x5841();}const fs=require('fs'),path=require('path'),os=require('os'),{spawn}=require('child_process'),helper=require(a146_0x574a80(0x10f)),logger=require(a146_0x574a80(0xf6))[a146_0x574a80(0x10c)],{getLogDir}=require(a146_0x574a80(0xf6)),testHubConstants=require(a146_0x574a80(0x119)),PerformanceTester=require(a146_0x574a80(0x121)),{PERCY_EVENTS:PerformanceEvents}=require(a146_0x574a80(0x104)),PercyBinary=require('./PercyBinary');class Percy{#logfile=path['join'](getLogDir(),a146_0x574a80(0xeb));#address=process['env'][a146_0x574a80(0xf7)]||a146_0x574a80(0xfc);#binaryPath=null;#config=null;#proc=null;#logStream=null;#isApp=![];['isProcessRunning']=![];constructor(_0x3c5758){const _0x52b414=a146_0x574a80;this.#config=_0x3c5758,!!_0x3c5758[_0x52b414(0xdc)]&&(this.#isApp=!![]);}async #getBinaryPath(){const _0x4ff100=a146_0x574a80;if(!this.#binaryPath){const _0x47b6b7=new PercyBinary();PerformanceTester['start'](PerformanceEvents[_0x4ff100(0x113)]),this.#binaryPath=await _0x47b6b7['getBinaryPath'](this.#config),PerformanceTester[_0x4ff100(0xf8)](PerformanceEvents[_0x4ff100(0x113)]);}return this.#binaryPath;}async #sleep(_0x329671){return new Promise(_0x41513a=>setTimeout(_0x41513a,_0x329671));}async['healthcheck'](){const _0x3cf61f=a146_0x574a80,_0x587c3d={};_0x587c3d['lLFgi']='GET',_0x587c3d[_0x3cf61f(0x105)]=_0x3cf61f(0x10d);const _0x482533=_0x587c3d;try{const _0x522e93=await helper[_0x3cf61f(0xde)](_0x482533[_0x3cf61f(0x11f)],_0x482533['uhqGE'],null,null,this.#address);if(_0x522e93)return!![];}catch(_0x3a5d2b){return![];}}async[a146_0x574a80(0xe5)](){const _0x45c852=a146_0x574a80,_0x3a328d={'TEFgK':_0x45c852(0x11e),'tvaLc':'exec','AIQwn':function(_0xa73c10,_0x587ac5,_0x2e24ef,_0x254e54){return _0xa73c10(_0x587ac5,_0x2e24ef,_0x254e54);},'dmzSR':_0x45c852(0x114),'sdflf':'Percy\x20healthcheck\x20successful'},_0x48aa4e=await this.#getBinaryPath(),_0xd62fc7={};_0xd62fc7[_0x45c852(0xee)]='a',this.#logStream=fs['createWriteStream'](this.#logfile,_0xd62fc7);const _0x53ba34=await this[_0x45c852(0x126)](),_0xd9de17=await this['createPercyConfig']();if(!_0x53ba34)return![];const _0x326b96=[(this.#isApp?_0x3a328d['TEFgK']:_0x3a328d[_0x45c852(0x108)])+':start'];_0xd9de17&&_0x326b96[_0x45c852(0xf5)]('-c',_0xd9de17);this.#proc=_0x3a328d[_0x45c852(0x123)](spawn,_0x48aa4e,_0x326b96,{'env':Object[_0x45c852(0x11a)](process[_0x45c852(0x122)],{'PERCY_TOKEN':_0x53ba34,'TH_BUILD_UUID':process[_0x45c852(0x122)][testHubConstants[_0x45c852(0xdf)][_0x45c852(0xef)]]})}),this.#proc[_0x45c852(0x111)][_0x45c852(0xe2)](this.#logStream),this.#proc[_0x45c852(0x116)][_0x45c852(0xe2)](this.#logStream),this[_0x45c852(0x11c)]=!![];var _0x381129=this;this.#proc['on'](_0x3a328d[_0x45c852(0x125)],function(_0x5d1871){const _0x3c472d=_0x45c852;_0x381129[_0x3c472d(0x11c)]=![];});do{const _0x45e7cc=await this[_0x45c852(0x118)]();if(_0x45e7cc)return logger[_0x45c852(0xd9)](_0x3a328d[_0x45c852(0xf3)]),!![];await this.#sleep(0x3e8);}while(this[_0x45c852(0x11c)]);return![];}async['stop'](){const _0x19eef0=a146_0x574a80,_0xb43b62={'YDHao':function(_0x285966,_0x16a21d){return _0x285966(_0x16a21d);},'yYLCX':function(_0x3a0272,_0x54b19a,_0x5a780c){return _0x3a0272(_0x54b19a,_0x5a780c);},'pNgfl':_0x19eef0(0xe0),'PRtzH':_0x19eef0(0x114)},_0x5945c5=await this.#getBinaryPath();return new Promise((_0x3b1ea3,_0x3aa5e1)=>{const _0x46ab3d=_0x19eef0,_0x38ecc9=_0xb43b62[_0x46ab3d(0xf4)](spawn,_0x5945c5,[_0xb43b62[_0x46ab3d(0xe1)]]);_0x38ecc9['on'](_0xb43b62[_0x46ab3d(0x117)],_0x426d7c=>{const _0x2abeaf=_0x46ab3d;this[_0x2abeaf(0x11c)]=![],this.#logStream&&(this.#logStream[_0x2abeaf(0xf8)](),this.#logStream=null),_0xb43b62[_0x2abeaf(0x112)](_0x3b1ea3,_0x426d7c);});});}[a146_0x574a80(0x101)](){const _0x5cccea=a146_0x574a80;return this[_0x5cccea(0x11c)];}async['fetchPercyToken'](){const _0x37bdc5=a146_0x574a80,_0x4fe1ee={};_0x4fe1ee[_0x37bdc5(0x124)]=_0x37bdc5(0xdc),_0x4fe1ee[_0x37bdc5(0xf2)]=_0x37bdc5(0x106),_0x4fe1ee[_0x37bdc5(0x10e)]=_0x37bdc5(0x107),_0x4fe1ee[_0x37bdc5(0x103)]=_0x37bdc5(0xda);const _0x21a990=_0x4fe1ee,_0x3e40b4=this.#config[_0x37bdc5(0xe4)];try{const _0x2fb278=this.#isApp?_0x21a990[_0x37bdc5(0x124)]:_0x21a990[_0x37bdc5(0xf2)],_0x50458b=await helper['nodeRequest'](_0x21a990[_0x37bdc5(0x10e)],_0x37bdc5(0xfa)+_0x3e40b4+_0x37bdc5(0xfe)+_0x2fb278,{},this.#config),_0x29429a=_0x50458b[_0x37bdc5(0xe8)];return logger[_0x37bdc5(0xd9)](_0x21a990['gzsiT']),_0x29429a['token'];}catch(_0x4ffbfa){return logger[_0x37bdc5(0x115)](_0x37bdc5(0x11d)+_0x4ffbfa),null;}}async[a146_0x574a80(0x102)](){const _0x53d836=a146_0x574a80,_0x3ee740={'hCzoD':function(_0x4a7cb5,_0x55c2d8){return _0x4a7cb5(_0x55c2d8);},'KWDeZ':function(_0x65fb76,_0x1c87b3){return _0x65fb76+_0x1c87b3;},'zCqxb':_0x53d836(0xf9),'fxwMD':'percy.json'};if(!this.#config[_0x53d836(0x109)])return null;const _0x1ad97a=path[_0x53d836(0xfb)](os[_0x53d836(0xe6)](),_0x3ee740[_0x53d836(0x100)]),_0x5f0b75=this.#config[_0x53d836(0x109)];return!_0x5f0b75[_0x53d836(0x120)]&&(_0x5f0b75[_0x53d836(0x120)]='2'),new Promise((_0x2adda4,_0x2db1e3)=>{const _0x14cb7b=_0x53d836,_0x17a1be={'tQptw':function(_0x5e9d53,_0x52dd67){return _0x3ee740['hCzoD'](_0x5e9d53,_0x52dd67);},'fKKtl':function(_0x19ed11,_0x4624a4){const _0x44ce97=a146_0x2d06;return _0x3ee740[_0x44ce97(0x10b)](_0x19ed11,_0x4624a4);},'rqFqJ':_0x3ee740['zCqxb']};fs[_0x14cb7b(0xec)](_0x1ad97a,JSON[_0x14cb7b(0xfd)](_0x5f0b75),_0x55a353=>{const _0x3d4999=_0x14cb7b;_0x55a353&&(logger[_0x3d4999(0x115)](_0x3d4999(0x11b)+_0x55a353),_0x17a1be[_0x3d4999(0xf1)](_0x2adda4,null)),logger[_0x3d4999(0xd9)](_0x17a1be['fKKtl'](_0x17a1be[_0x3d4999(0xdb)],_0x1ad97a)),_0x17a1be[_0x3d4999(0xf1)](_0x2adda4,_0x1ad97a);});});}}module[a146_0x574a80(0x10a)]=Percy;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a147_0x44b1cc=a147_0x4568;(function(_0x8b27bc,_0x1c6b68){const _0x456f10=a147_0x4568,_0x404105=_0x8b27bc();while(!![]){try{const _0x4069bb=parseInt(_0x456f10(0x147))/0x1+parseInt(_0x456f10(0x165))/0x2*(-parseInt(_0x456f10(0x182))/0x3)+-parseInt(_0x456f10(0x157))/0x4+parseInt(_0x456f10(0x156))/0x5+-parseInt(_0x456f10(0x1a2))/0x6+-parseInt(_0x456f10(0x1ad))/0x7*(parseInt(_0x456f10(0x166))/0x8)+-parseInt(_0x456f10(0x1c7))/0x9*(-parseInt(_0x456f10(0x176))/0xa);if(_0x4069bb===_0x1c6b68)break;else _0x404105['push'](_0x404105['shift']());}catch(_0x5e9ee6){_0x404105['push'](_0x404105['shift']());}}}(a147_0x46db,0x9b323));function a147_0x4568(_0x344fb1,_0x1fc62a){const _0x46db2c=a147_0x46db();return a147_0x4568=function(_0x45687d,_0xb9ce61){_0x45687d=_0x45687d-0x13d;let _0x1f22ad=_0x46db2c[_0x45687d];return _0x1f22ad;},a147_0x4568(_0x344fb1,_0x1fc62a);}const {https}=require('follow-redirects'),url=require('url'),yauzl=require(a147_0x44b1cc(0x1a6)),fs=require('fs'),path=require(a147_0x44b1cc(0x1b8)),os=require('os'),{spawn}=require('child_process'),HttpsProxyAgent=require('https-proxy-agent'),logger=require(a147_0x44b1cc(0x185))[a147_0x44b1cc(0x1b7)];function a147_0x46db(){const _0x1eb5a2=['port','getuid','error','HOMEPATH','aiXTB','statusCode','yUNck','ZMkcM','.browserstack','wvQkc','PSSvA','download','13815171SuDCju','yPeMg','undefined','needsUpdate','Saved\x20new\x20ETag\x20for\x20percy\x20binary','warn','AlLgH','DceSP','VtwhF','extractAndSaveBinary','proxyPort','HhjEa','CHcte','265809ZhJpsf','USERNAME','lazyEntries','OmLqR','pipe','USER','agent','exports','NMEMX','once','Failed\x20to\x20read\x20ETag\x20file:\x20','TtrPK','OCyGQ','vFunV','debug','794035NPoRYm','1214132VXslgU','X_OK','XwCBn','--version','AVLeI','useCaCertificate','Error\x20trying\x20to\x20download\x20percy\x20binary','VrYkz','jKGsH','vFZmt','New\x20Percy\x20binary\x20version\x20available,\x20downloading\x20update','Newly\x20downloaded\x20Percy\x20binary\x20is\x20corrupt,\x20retrying','gXIRQ','MmNoP','2ZqsCMl','9781720QiaojV','host','JPdsE','headers','JLPeI','VVmGW','Got\x20Error\x20in\x20percy\x20binary\x20download\x20response:\x20','env','/percy-osx.zip','aSUhO','/home/','accessSync','Connection','jcFLo','function','end','20nkPXte','RvhHa','trim','LKIEt','open','mkdirSync','.etag','/root','proxyHost','darwin','XnNvf','ldZcn','428919aSIoqm','dnYwx','statSync','../logger','qRfQa','kPlHZ','YQzaq','test','Failed\x20to\x20save\x20ETag\x20file:\x20','match','createWriteStream','percy.exe','entry','LNAME','jvNmK','tQlrl','HOMEDRIVE','homedir','vUGWH','Percy\x20binary\x20is\x20up\x20to\x20date\x20(ETag\x20unchanged)','vZaXu','xDarN','chmod','then','FATBZ','Enqpl','readEntry','cwd','qrFNd','readFileSync','stdout','binaryPath','7138500oITawd','IWjwM','join','close','yauzl','/Users/','data','HOME','get','utf8','LOGNAME','7cixKfG','fileName','MoUPj','R_OK','WauKI','catch','BGCtM','OwQNG','YurAo','JJxtd','winstonLogger','path','platform','mkyIo'];a147_0x46db=function(){return _0x1eb5a2;};return a147_0x46db();}class PercyBinary{#hostOS=process['platform'];#httpPath=null;#binaryName='percy';#orderedPaths=[path['join'](this.#homedir(),a147_0x44b1cc(0x1c3)),process[a147_0x44b1cc(0x19d)](),os['tmpdir']()];constructor(){const _0x23e448=a147_0x44b1cc,_0x534375={};_0x534375[_0x23e448(0x141)]='https://github.com/percy/cli/releases/latest/download',_0x534375['yPeMg']=function(_0x39b869,_0x57f4dd){return _0x39b869+_0x57f4dd;},_0x534375[_0x23e448(0x196)]=_0x23e448(0x16e),_0x534375[_0x23e448(0x153)]='/percy-win.zip',_0x534375[_0x23e448(0x145)]=_0x23e448(0x18d),_0x534375[_0x23e448(0x146)]='/percy-linux.zip';const _0x50adcc=_0x534375,_0x47e858=_0x50adcc['DceSP'];if(this.#hostOS['match'](/darwin|mac os/i))this.#httpPath=_0x50adcc[_0x23e448(0x1c8)](_0x47e858,_0x50adcc['vZaXu']);else this.#hostOS[_0x23e448(0x18b)](/mswin|msys|mingw|cygwin|bccwin|wince|emc|win32/i)?(this.#httpPath=_0x50adcc[_0x23e448(0x1c8)](_0x47e858,_0x50adcc[_0x23e448(0x153)]),this.#binaryName=_0x50adcc[_0x23e448(0x145)]):this.#httpPath=_0x50adcc['yPeMg'](_0x47e858,_0x50adcc['CHcte']);}#getAvailableDirs(){const _0x27a1fe=a147_0x44b1cc,_0x230156={};_0x230156[_0x27a1fe(0x1c5)]=function(_0x1505cc,_0x15d23f){return _0x1505cc<_0x15d23f;},_0x230156['NMEMX']=_0x27a1fe(0x15d);const _0x1b509b=_0x230156;for(var _0x1ea8f1=0x0;_0x1b509b['PSSvA'](_0x1ea8f1,this.#orderedPaths['length']);_0x1ea8f1++){var _0x13f85c=this.#orderedPaths[_0x1ea8f1];if(this.#makePath(_0x13f85c))return _0x13f85c;}throw new Error(_0x1b509b[_0x27a1fe(0x14f)]);}#makePath(_0x4a65a6){const _0x1aa6bc=a147_0x44b1cc;try{return _0x4a65a6&&!this.#checkPath(_0x4a65a6)&&fs[_0x1aa6bc(0x17b)](_0x4a65a6),!![];}catch{return![];}}#checkPath(_0x14d762,_0x5a4886){const _0x1295ca=a147_0x44b1cc,_0x7e4c66={};_0x7e4c66[_0x1295ca(0x16b)]=function(_0x1337c8,_0x2e2d4b){return _0x1337c8|_0x2e2d4b;},_0x7e4c66[_0x1295ca(0x181)]=function(_0x156c35,_0x2b06dc){return _0x156c35!==_0x2b06dc;},_0x7e4c66[_0x1295ca(0x154)]=_0x1295ca(0x1c9);const _0x2e1e32=_0x7e4c66;_0x5a4886=_0x5a4886||_0x2e1e32[_0x1295ca(0x16b)](fs[_0x1295ca(0x1b0)],fs['W_OK']);try{return fs[_0x1295ca(0x171)](_0x14d762,_0x5a4886),!![];}catch(_0x1d032b){if(_0x2e1e32['ldZcn'](typeof fs[_0x1295ca(0x171)],_0x2e1e32[_0x1295ca(0x154)]))return![];try{return fs[_0x1295ca(0x184)](_0x14d762),!![];}catch(_0x1c67c9){return![];}}}#getETagPath(_0xfaedcb){const _0x3db780=a147_0x44b1cc;return path[_0x3db780(0x1a4)](_0xfaedcb,this.#binaryName+_0x3db780(0x17c));}#loadETag(_0x4141fa){const _0x4a2de3=a147_0x44b1cc,_0x22760d={};_0x22760d[_0x4a2de3(0x14a)]=_0x4a2de3(0x1ab);const _0x4190c9=_0x22760d,_0x1ee9c3=this.#getETagPath(_0x4141fa);if(this.#checkPath(_0x1ee9c3))try{return fs[_0x4a2de3(0x19f)](_0x1ee9c3,_0x4190c9[_0x4a2de3(0x14a)])[_0x4a2de3(0x178)]();}catch(_0x535f0e){logger[_0x4a2de3(0x13f)](_0x4a2de3(0x151)+_0x535f0e);}return null;}#saveETag(_0x652f3d,_0x2908f3){const _0x59406f=a147_0x44b1cc,_0x1b3f68={};_0x1b3f68[_0x59406f(0x1c4)]=_0x59406f(0x13e);const _0x567d09=_0x1b3f68;if(!_0x2908f3)return;try{const _0x8cc48=this.#getETagPath(_0x652f3d);fs['writeFileSync'](_0x8cc48,_0x2908f3),logger[_0x59406f(0x155)](_0x567d09[_0x59406f(0x1c4)]);}catch(_0x5a8349){logger[_0x59406f(0x13f)](_0x59406f(0x18a)+_0x5a8349);}}async #handleBinaryDownload(_0x3f239b,_0x1bbe36,_0x5dadce){const _0x43bb4b=a147_0x44b1cc,_0x466fad={};_0x466fad[_0x43bb4b(0x179)]=_0x43bb4b(0x162);const _0x390956=_0x466fad,_0x1aa79c=await this['validateBinary'](_0x3f239b[_0x43bb4b(0x1a1)]);if(!_0x1aa79c){logger[_0x43bb4b(0x1bd)](_0x390956['LKIEt']);const _0x36c051=await this[_0x43bb4b(0x1c6)](_0x1bbe36,_0x5dadce);return _0x36c051[_0x43bb4b(0x1a1)];}return _0x3f239b[_0x43bb4b(0x1a1)];}async['getBinaryPath'](_0x28dbe6){const _0x9c579d=a147_0x44b1cc,_0x3e367c={};_0x3e367c['tQlrl']=_0x9c579d(0x195),_0x3e367c[_0x9c579d(0x19b)]=_0x9c579d(0x161);const _0x10b737=_0x3e367c,_0x4dd077=this.#getAvailableDirs(),_0x29891f=path['join'](_0x4dd077,this.#binaryName);if(this.#checkPath(_0x29891f,fs[_0x9c579d(0x158)])){const _0x6f21e=this.#loadETag(_0x4dd077);if(_0x6f21e)try{const _0x477034=await this[_0x9c579d(0x1c6)](_0x28dbe6,_0x4dd077,_0x6f21e);if(!_0x477034[_0x9c579d(0x13d)])return logger['debug'](_0x10b737[_0x9c579d(0x191)]),_0x29891f;return logger['debug'](_0x10b737[_0x9c579d(0x19b)]),await this.#handleBinaryDownload(_0x477034,_0x28dbe6,_0x4dd077);}catch(_0x4ab873){return logger[_0x9c579d(0x13f)]('Failed\x20to\x20check\x20for\x20binary\x20updates,\x20using\x20existing\x20binary:\x20'+_0x4ab873),_0x29891f;}}const _0x2bd4aa=await this[_0x9c579d(0x1c6)](_0x28dbe6,_0x4dd077);return await this.#handleBinaryDownload(_0x2bd4aa,_0x28dbe6,_0x4dd077);}['download'](_0x5537b6,_0x3aeb2d,_0x5c2647=null){const _0xc7de6=a147_0x44b1cc,_0x35eb84={'KdOdo':function(_0x2f6720,_0x4ad236){return _0x2f6720===_0x4ad236;},'YurAo':function(_0x1f2132,_0x28e3cd){return _0x1f2132(_0x28e3cd);},'IWjwM':_0xc7de6(0x1bd),'vFZmt':_0xc7de6(0x1a5),'XnNvf':function(_0x29d6e5,_0x3f1d89){return _0x29d6e5+_0x3f1d89;},'vUGWH':'.zip'};_0x3aeb2d&&!this.#checkPath(_0x3aeb2d)&&fs[_0xc7de6(0x17b)](_0x3aeb2d);const _0x55871e=this.#binaryName,_0x44a310=path[_0xc7de6(0x1a4)](_0x3aeb2d,_0x35eb84[_0xc7de6(0x180)](_0x55871e,_0x35eb84[_0xc7de6(0x194)])),_0x2a5aec=fs[_0xc7de6(0x18c)](_0x44a310),_0x3c0810=url['parse'](this.#httpPath);if(_0x5537b6[_0xc7de6(0x17e)]&&_0x5537b6['proxyPort']){const _0x5e453b={};_0x5e453b[_0xc7de6(0x167)]=_0x5537b6[_0xc7de6(0x17e)],_0x5e453b[_0xc7de6(0x1bb)]=_0x5537b6[_0xc7de6(0x144)],_0x3c0810[_0xc7de6(0x14d)]=new HttpsProxyAgent(_0x5e453b);}if(_0x5537b6[_0xc7de6(0x15c)])try{_0x3c0810['ca']=fs[_0xc7de6(0x19f)](_0x5537b6[_0xc7de6(0x15c)]);}catch(_0x3444f9){logger[_0xc7de6(0x1bd)]('Percy\x20download\x20failed\x20to\x20read\x20cert\x20file:\x20'+_0x3444f9);}if(_0x5c2647){const _0x1d5ddf={};_0x1d5ddf['If-None-Match']=_0x5c2647,_0x1d5ddf['Connection']=_0x35eb84[_0xc7de6(0x160)],_0x3c0810[_0xc7de6(0x169)]=_0x1d5ddf;}else{const _0x3f5d45={};_0x3f5d45[_0xc7de6(0x172)]=_0x35eb84['vFZmt'],_0x3c0810['headers']=_0x3f5d45;}return new Promise((_0x108736,_0x5a45db)=>{const _0x1e7e35=_0xc7de6,_0x4dfa91={'NpiYf':function(_0x2809ea,_0x537117){return _0x35eb84['YurAo'](_0x2809ea,_0x537117);}};https[_0x1e7e35(0x1aa)](_0x3c0810,_0x52a36b=>{const _0x1a45c0=_0x1e7e35;if(_0x5c2647&&_0x35eb84['KdOdo'](_0x52a36b[_0x1a45c0(0x1c0)],0x130)){_0x2a5aec['destroy']();const _0x186ca5={};_0x186ca5[_0x1a45c0(0x13d)]=![],_0x35eb84[_0x1a45c0(0x1b5)](_0x108736,_0x186ca5);return;}const _0x5bb972=_0x52a36b['headers']['etag'];_0x5bb972&&this.#saveETag(_0x3aeb2d,_0x5bb972),_0x52a36b[_0x1a45c0(0x14b)](_0x2a5aec),_0x52a36b['on'](_0x35eb84[_0x1a45c0(0x1a3)],function(_0x5c2a5d){const _0x3a7f4d=_0x1a45c0;logger[_0x3a7f4d(0x1bd)](_0x3a7f4d(0x16c)+_0x5c2a5d),_0x4dfa91['NpiYf'](_0x5a45db,_0x5c2a5d);}),_0x2a5aec['on'](_0x35eb84[_0x1a45c0(0x1a3)],function(_0x559885){const _0x60c545=_0x1a45c0;logger[_0x60c545(0x1bd)]('Got\x20Error\x20while\x20downloading\x20percy\x20binary\x20file:\x20'+_0x559885),_0x4dfa91['NpiYf'](_0x5a45db,_0x559885);}),_0x2a5aec['on'](_0x35eb84[_0x1a45c0(0x160)],()=>{const _0x4be6d9=_0x1a45c0;this[_0x4be6d9(0x143)](_0x44a310,_0x3aeb2d)[_0x4be6d9(0x199)](_0x414094=>_0x108736({'needsUpdate':!![],'binaryPath':_0x414094}))[_0x4be6d9(0x1b2)](_0x5a45db);});})['on'](_0x35eb84[_0x1e7e35(0x1a3)],function(_0x20ea63){const _0x4f9592=_0x1e7e35;logger[_0x4f9592(0x1bd)]('Got\x20Error\x20in\x20percy\x20binary\x20downloading\x20request:\x20'+_0x20ea63),_0x4dfa91['NpiYf'](_0x5a45db,_0x20ea63);});});}[a147_0x44b1cc(0x143)](_0x2677d0,_0x1e8bad){const _0x4cb877=a147_0x44b1cc,_0x2cea78={'AlLgH':function(_0x263857,_0x3ca229){return _0x263857===_0x3ca229;},'jcFLo':function(_0x3744e7,_0x33f00e){return _0x3744e7(_0x33f00e);},'FATBZ':function(_0x3805d6,_0x587686){return _0x3805d6(_0x587686);},'xDarN':'0755','YQzaq':_0x4cb877(0x175),'ZMkcM':_0x4cb877(0x18e),'TtrPK':_0x4cb877(0x1bd)},_0x1d453b=this.#binaryName,_0x2c68b5=path[_0x4cb877(0x1a4)](_0x1e8bad,_0x1d453b);return new Promise((_0x3b4d79,_0xa146ea)=>{const _0x184656=_0x4cb877,_0x4f3000={'JLPeI':function(_0x254887,_0x5e755c){const _0x51dd8e=a147_0x4568;return _0x2cea78[_0x51dd8e(0x140)](_0x254887,_0x5e755c);},'qRfQa':function(_0x5aed00,_0x437314){const _0x2722e5=a147_0x4568;return _0x2cea78[_0x2722e5(0x173)](_0x5aed00,_0x437314);},'aiXTB':function(_0x311a69,_0x3f16c4){const _0x1ed402=a147_0x4568;return _0x2cea78[_0x1ed402(0x19a)](_0x311a69,_0x3f16c4);},'dnYwx':_0x2cea78[_0x184656(0x197)],'JJxtd':_0x2cea78[_0x184656(0x188)],'yUNck':_0x2cea78[_0x184656(0x1c2)],'jvNmK':_0x2cea78[_0x184656(0x152)]},_0x26e0aa={};_0x26e0aa[_0x184656(0x149)]=!![],yauzl[_0x184656(0x17a)](_0x2677d0,_0x26e0aa,function(_0x3d9a65,_0x13633a){const _0x2100df=_0x184656,_0x400d09={'BGCtM':function(_0x2f441b,_0x3fcf5a){return _0x4f3000['qRfQa'](_0x2f441b,_0x3fcf5a);},'JPdsE':_0x4f3000[_0x2100df(0x1b6)],'wkNAF':function(_0xd0b14f,_0x37ddb6){const _0x2ca501=_0x2100df;return _0x4f3000[_0x2ca501(0x186)](_0xd0b14f,_0x37ddb6);}};_0x3d9a65&&_0x4f3000[_0x2100df(0x1bf)](_0xa146ea,_0x3d9a65),_0x13633a[_0x2100df(0x19c)](),_0x13633a['on'](_0x4f3000[_0x2100df(0x1c1)],_0x4186ee=>{const _0xa14755=_0x2100df;if(/\/$/[_0xa14755(0x189)](_0x4186ee[_0xa14755(0x1ae)]))_0x13633a[_0xa14755(0x19c)]();else{const _0x50cef5=fs[_0xa14755(0x18c)](path['join'](_0x1e8bad,_0x4186ee[_0xa14755(0x1ae)]));_0x13633a['openReadStream'](_0x4186ee,function(_0x28fc9c,_0x2414d8){const _0x23f254=_0xa14755;_0x28fc9c&&_0x400d09[_0x23f254(0x1b3)](_0xa146ea,_0x3d9a65),_0x2414d8['on'](_0x400d09[_0x23f254(0x168)],function(){const _0x193899=_0x23f254;_0x50cef5[_0x193899(0x1a5)](),_0x13633a[_0x193899(0x19c)]();}),_0x2414d8['pipe'](_0x50cef5);}),_0x4f3000[_0xa14755(0x16a)](_0x4186ee['fileName'],_0x1d453b)&&_0x13633a[_0xa14755(0x1a5)]();}}),_0x13633a['on'](_0x4f3000[_0x2100df(0x190)],_0x3d8bce=>{_0x400d09['wkNAF'](_0xa146ea,_0x3d8bce);}),_0x13633a[_0x2100df(0x150)](_0x4f3000[_0x2100df(0x1b6)],()=>{const _0x7693dc=_0x2100df,_0x456be7={'aSUhO':function(_0x1a6de5,_0xdefe84){const _0x2945ca=a147_0x4568;return _0x4f3000[_0x2945ca(0x186)](_0x1a6de5,_0xdefe84);},'AyxqS':function(_0x5dea46,_0x2bfca0){const _0x26f8b6=a147_0x4568;return _0x4f3000[_0x26f8b6(0x1bf)](_0x5dea46,_0x2bfca0);}};fs[_0x7693dc(0x198)](_0x2c68b5,_0x4f3000[_0x7693dc(0x183)],function(_0x26a8cb){const _0x94f9a7=_0x7693dc;_0x26a8cb&&_0x456be7[_0x94f9a7(0x16f)](_0xa146ea,_0x26a8cb),_0x456be7['AyxqS'](_0x3b4d79,_0x2c68b5);}),_0x13633a['close']();});});});}async['validateBinary'](_0x4a141c){const _0xbf383b=a147_0x44b1cc,_0x21add5={'oAHSL':function(_0x3fd322,_0x4d3501){return _0x3fd322(_0x4d3501);},'GGxGB':function(_0xf47304,_0x301813,_0x32fe62,_0x2b0427){return _0xf47304(_0x301813,_0x32fe62,_0x2b0427);},'WauKI':_0xbf383b(0x15a),'mkyIo':_0xbf383b(0x1a8),'BJwbG':'close'},_0x16c4cc=/^.*@percy\/cli \d.\d+.\d+/;return new Promise((_0x55f3fb,_0x1c5b50)=>{const _0x531963=_0xbf383b,_0x2b8388={'dCLCu':function(_0x4a226c,_0x392fae){return _0x21add5['oAHSL'](_0x4a226c,_0x392fae);}},_0x4cdeee={};_0x4cdeee[_0x531963(0x16d)]=process['env'];const _0x35c978=_0x21add5['GGxGB'](spawn,_0x4a141c,[_0x21add5[_0x531963(0x1b1)]],_0x4cdeee);_0x35c978[_0x531963(0x1a0)]['on'](_0x21add5[_0x531963(0x1ba)],_0x56fe1f=>{const _0x1b357e=_0x531963;_0x16c4cc[_0x1b357e(0x189)](_0x56fe1f)&&_0x2b8388['dCLCu'](_0x55f3fb,!![]);}),_0x35c978['on'](_0x21add5['BJwbG'],()=>{_0x21add5['oAHSL'](_0x55f3fb,![]);});});}#homedir(){const _0x48f957=a147_0x44b1cc,_0x325141={};_0x325141[_0x48f957(0x187)]=function(_0x45d032,_0x5622a9){return _0x45d032===_0x5622a9;},_0x325141[_0x48f957(0x164)]=_0x48f957(0x174),_0x325141['FQUOB']='win32',_0x325141[_0x48f957(0x15f)]=function(_0x126c1f,_0x5b2e9b){return _0x126c1f+_0x5b2e9b;},_0x325141[_0x48f957(0x15b)]=function(_0x1a50a2,_0x59b5fa){return _0x1a50a2===_0x59b5fa;},_0x325141['oqQnN']=_0x48f957(0x17f),_0x325141[_0x48f957(0x177)]=function(_0x370b25,_0x4a3417){return _0x370b25+_0x4a3417;},_0x325141[_0x48f957(0x15e)]=_0x48f957(0x1a7),_0x325141[_0x48f957(0x19e)]=function(_0x4a2cfe,_0x32c770){return _0x4a2cfe===_0x32c770;},_0x325141[_0x48f957(0x142)]='linux',_0x325141[_0x48f957(0x1af)]=_0x48f957(0x17d),_0x325141[_0x48f957(0x163)]=function(_0x365bdc,_0xa0fe07){return _0x365bdc+_0xa0fe07;},_0x325141[_0x48f957(0x1b4)]=_0x48f957(0x170),_0x325141[_0x48f957(0x159)]=function(_0x2f2a74,_0x115a68){return _0x2f2a74||_0x115a68;};const _0x8da88e=_0x325141;if(_0x8da88e[_0x48f957(0x187)](typeof os['homedir'],_0x8da88e[_0x48f957(0x164)]))return os[_0x48f957(0x193)]();const _0x394e52=process[_0x48f957(0x16d)],_0x47ac99=_0x394e52[_0x48f957(0x1a9)],_0x2b0f6b=_0x394e52[_0x48f957(0x1ac)]||_0x394e52[_0x48f957(0x14c)]||_0x394e52[_0x48f957(0x18f)]||_0x394e52[_0x48f957(0x148)];if(_0x8da88e['kPlHZ'](process[_0x48f957(0x1b9)],_0x8da88e['FQUOB']))return _0x394e52['USERPROFILE']||_0x8da88e[_0x48f957(0x15f)](_0x394e52[_0x48f957(0x192)],_0x394e52[_0x48f957(0x1be)])||_0x47ac99||null;if(_0x8da88e['AVLeI'](process['platform'],_0x8da88e['oqQnN']))return _0x47ac99||(_0x2b0f6b?_0x8da88e['RvhHa'](_0x8da88e[_0x48f957(0x15e)],_0x2b0f6b):null);if(_0x8da88e[_0x48f957(0x19e)](process['platform'],_0x8da88e[_0x48f957(0x142)]))return _0x47ac99||(_0x8da88e[_0x48f957(0x19e)](process[_0x48f957(0x1bc)](),0x0)?_0x8da88e[_0x48f957(0x1af)]:_0x2b0f6b?_0x8da88e[_0x48f957(0x163)](_0x8da88e['OwQNG'],_0x2b0f6b):null);return _0x8da88e[_0x48f957(0x159)](_0x47ac99,null);}}module[a147_0x44b1cc(0x14e)]=PercyBinary;
|
|
1
|
+
const a147_0x547549=a147_0xa44a;function a147_0x5fab(){const _0x1b4b14=['USERPROFILE','close','Newly\x20downloaded\x20Percy\x20binary\x20is\x20corrupt,\x20retrying','path','hzhRL','fileName','.browserstack','vLrPw','CZBXa','jYCzV','Got\x20Error\x20in\x20percy\x20binary\x20download\x20response:\x20','LsLsA','0755','/percy-osx.zip','readFileSync','HOME','WHUmN','useCaCertificate','564920eIXCSQ','wjVJt','.etag','proxyHost','join','url','debug','CCjrN','/percy-linux.zip','9ToEnoa','Saved\x20new\x20ETag\x20for\x20percy\x20binary','download','2967099xbtgax','needsUpdate','error','homedir','catch','getBinaryPath','EujLR','utf8','readEntry','test','EHtMI','/root','lazyEntries','stdout','BPMFJ','child_process','USER','LNAME','open','MGeMK','USERNAME','length','vdsUh','entry','Got\x20Error\x20while\x20downloading\x20percy\x20binary\x20file:\x20','host','3596536NGWaCM','KrEaD','oQefO','jetct','vwcTo','zGZwR','darwin','RqYsZ','destroy','hhroi','https-proxy-agent','Jznjh','Connection','ieySp','lNvza','tDFSt','createWriteStream','validateBinary','once','pafJn','qYJgG','then','linux','Ndhoa','etag','warn','yVJNd','XSsVc','exports','IaICW','R_OK','NlyUD','laZQo','--version','FThMU','ggHfS','port','MSVdf','end','2009564CUtmtF','VwgHW','uUbtY','Error\x20trying\x20to\x20download\x20percy\x20binary','4704pFvYvW','writeFileSync','rsueT','platform','cwd','Percy\x20download\x20failed\x20to\x20read\x20cert\x20file:\x20','yauzl','LOGNAME','agent','NvXaF','Failed\x20to\x20save\x20ETag\x20file:\x20','3816230AojmkR','PmYRr','openReadStream','statSync','tmpdir','RwcHk','follow-redirects','nutYQ','function','extractAndSaveBinary','ZriHZ','tDNoY','NNKhi','If-None-Match','binaryPath','TfLfP','EokKR','match','wgnoN','accessSync','HOMEPATH','Failed\x20to\x20check\x20for\x20binary\x20updates,\x20using\x20existing\x20binary:\x20','wiiDD','pipe','headers','/Users/','1745WXKZVi','752660GuXrwc','svaMO','undefined','mkdirSync','win32','21rTEihD','JYkfn','Percy\x20binary\x20is\x20up\x20to\x20date\x20(ETag\x20unchanged)','KcLVX','kwDpV','Failed\x20to\x20read\x20ETag\x20file:\x20','statusCode','iDprZ','RIBqD','env'];a147_0x5fab=function(){return _0x1b4b14;};return a147_0x5fab();}function a147_0xa44a(_0x4e417f,_0x560acf){const _0x5fab5a=a147_0x5fab();return a147_0xa44a=function(_0xa44ab0,_0x395845){_0xa44ab0=_0xa44ab0-0x109;let _0x51316d=_0x5fab5a[_0xa44ab0];return _0x51316d;},a147_0xa44a(_0x4e417f,_0x560acf);}(function(_0x228d0d,_0xe386a2){const _0x2a7989=a147_0xa44a,_0x32acf5=_0x228d0d();while(!![]){try{const _0x35d9db=-parseInt(_0x2a7989(0x115))/0x1+-parseInt(_0x2a7989(0x162))/0x2+parseInt(_0x2a7989(0x121))/0x3+-parseInt(_0x2a7989(0x18c))/0x4+-parseInt(_0x2a7989(0x18b))/0x5*(parseInt(_0x2a7989(0x166))/0x6)+-parseInt(_0x2a7989(0x191))/0x7*(-parseInt(_0x2a7989(0x13b))/0x8)+parseInt(_0x2a7989(0x11e))/0x9*(parseInt(_0x2a7989(0x171))/0xa);if(_0x35d9db===_0xe386a2)break;else _0x32acf5['push'](_0x32acf5['shift']());}catch(_0x562065){_0x32acf5['push'](_0x32acf5['shift']());}}}(a147_0x5fab,0xa7f02));const {https}=require(a147_0x547549(0x177)),url=require(a147_0x547549(0x11a)),yauzl=require(a147_0x547549(0x16c)),fs=require('fs'),path=require(a147_0x547549(0x19e)),os=require('os'),{spawn}=require(a147_0x547549(0x130)),HttpsProxyAgent=require(a147_0x547549(0x145)),logger=require('../logger')['winstonLogger'];class PercyBinary{#hostOS=process[a147_0x547549(0x169)];#httpPath=null;#binaryName='percy';#orderedPaths=[path[a147_0x547549(0x119)](this.#homedir(),a147_0x547549(0x109)),process[a147_0x547549(0x16a)](),os[a147_0x547549(0x175)]()];constructor(){const _0x4c33ad=a147_0x547549,_0x21cdab={};_0x21cdab[_0x4c33ad(0x134)]='https://github.com/percy/cli/releases/latest/download',_0x21cdab[_0x4c33ad(0x13d)]=function(_0x2bb027,_0x321f15){return _0x2bb027+_0x321f15;},_0x21cdab[_0x4c33ad(0x15d)]=_0x4c33ad(0x110),_0x21cdab[_0x4c33ad(0x155)]=function(_0x3ce75a,_0x538f96){return _0x3ce75a+_0x538f96;},_0x21cdab[_0x4c33ad(0x13f)]='/percy-win.zip',_0x21cdab[_0x4c33ad(0x10e)]='percy.exe',_0x21cdab[_0x4c33ad(0x152)]=_0x4c33ad(0x11d);const _0x281745=_0x21cdab,_0x44edf2=_0x281745[_0x4c33ad(0x134)];if(this.#hostOS[_0x4c33ad(0x182)](/darwin|mac os/i))this.#httpPath=_0x281745[_0x4c33ad(0x13d)](_0x44edf2,_0x281745[_0x4c33ad(0x15d)]);else this.#hostOS[_0x4c33ad(0x182)](/mswin|msys|mingw|cygwin|bccwin|wince|emc|win32/i)?(this.#httpPath=_0x281745['yVJNd'](_0x44edf2,_0x281745[_0x4c33ad(0x13f)]),this.#binaryName=_0x281745[_0x4c33ad(0x10e)]):this.#httpPath=_0x281745['oQefO'](_0x44edf2,_0x281745[_0x4c33ad(0x152)]);}#getAvailableDirs(){const _0x187c6e=a147_0x547549,_0x290084={};_0x290084[_0x187c6e(0x148)]=function(_0x2352d1,_0x1aabd2){return _0x2352d1<_0x1aabd2;},_0x290084[_0x187c6e(0x14a)]=_0x187c6e(0x165);const _0x4d450e=_0x290084;for(var _0x523f90=0x0;_0x4d450e[_0x187c6e(0x148)](_0x523f90,this.#orderedPaths[_0x187c6e(0x136)]);_0x523f90++){var _0x539821=this.#orderedPaths[_0x523f90];if(this.#makePath(_0x539821))return _0x539821;}throw new Error(_0x4d450e['tDFSt']);}#makePath(_0x83684b){try{return _0x83684b&&!this.#checkPath(_0x83684b)&&fs['mkdirSync'](_0x83684b),!![];}catch{return![];}}#checkPath(_0x1d6909,_0x1d76a9){const _0x19dddb=a147_0x547549,_0x4cb776={};_0x4cb776['EHtMI']=function(_0x30de78,_0xa28ed0){return _0x30de78|_0xa28ed0;},_0x4cb776['EUVHc']=function(_0x34692b,_0x1cf0f7){return _0x34692b!==_0x1cf0f7;},_0x4cb776[_0x19dddb(0x164)]=_0x19dddb(0x18e);const _0x414312=_0x4cb776;_0x1d76a9=_0x1d76a9||_0x414312[_0x19dddb(0x12b)](fs[_0x19dddb(0x159)],fs['W_OK']);try{return fs[_0x19dddb(0x184)](_0x1d6909,_0x1d76a9),!![];}catch(_0x27de10){if(_0x414312['EUVHc'](typeof fs[_0x19dddb(0x184)],_0x414312[_0x19dddb(0x164)]))return![];try{return fs[_0x19dddb(0x174)](_0x1d6909),!![];}catch(_0x12603c){return![];}}}#getETagPath(_0x44b6bb){const _0x157674=a147_0x547549;return path[_0x157674(0x119)](_0x44b6bb,this.#binaryName+_0x157674(0x117));}#loadETag(_0x5b0808){const _0x57c0ca=a147_0x547549,_0x5306a3={};_0x5306a3[_0x57c0ca(0x180)]=_0x57c0ca(0x128);const _0x528d60=_0x5306a3,_0x210d74=this.#getETagPath(_0x5b0808);if(this.#checkPath(_0x210d74))try{return fs[_0x57c0ca(0x111)](_0x210d74,_0x528d60['TfLfP'])['trim']();}catch(_0x59acf1){logger[_0x57c0ca(0x154)](_0x57c0ca(0x196)+_0x59acf1);}return null;}#saveETag(_0x36e1e6,_0x550653){const _0x1546f8=a147_0x547549,_0x4e383a={};_0x4e383a[_0x1546f8(0x142)]=_0x1546f8(0x11f);const _0xca7643=_0x4e383a;if(!_0x550653)return;try{const _0x829572=this.#getETagPath(_0x36e1e6);fs[_0x1546f8(0x167)](_0x829572,_0x550653),logger[_0x1546f8(0x11b)](_0xca7643[_0x1546f8(0x142)]);}catch(_0x2ed261){logger[_0x1546f8(0x154)](_0x1546f8(0x170)+_0x2ed261);}}async #handleBinaryDownload(_0x2523c2,_0x58e676,_0x508320){const _0x3a19f7=a147_0x547549,_0x5d7eed={};_0x5d7eed['iDprZ']=_0x3a19f7(0x19d);const _0xc2e53a=_0x5d7eed,_0x21d676=await this['validateBinary'](_0x2523c2[_0x3a19f7(0x17f)]);if(!_0x21d676){logger[_0x3a19f7(0x123)](_0xc2e53a[_0x3a19f7(0x198)]);const _0x24d1a8=await this[_0x3a19f7(0x120)](_0x58e676,_0x508320);return _0x24d1a8[_0x3a19f7(0x17f)];}return _0x2523c2[_0x3a19f7(0x17f)];}async[a147_0x547549(0x126)](_0x180f57){const _0x376a1a=a147_0x547549,_0x51f1b8={};_0x51f1b8[_0x376a1a(0x195)]=_0x376a1a(0x193),_0x51f1b8[_0x376a1a(0x137)]='New\x20Percy\x20binary\x20version\x20available,\x20downloading\x20update';const _0x3fd956=_0x51f1b8,_0xda067b=this.#getAvailableDirs(),_0x4a398c=path[_0x376a1a(0x119)](_0xda067b,this.#binaryName);if(this.#checkPath(_0x4a398c,fs['X_OK'])){const _0x3301a4=this.#loadETag(_0xda067b);if(_0x3301a4)try{const _0x149cfd=await this[_0x376a1a(0x120)](_0x180f57,_0xda067b,_0x3301a4);if(!_0x149cfd[_0x376a1a(0x122)])return logger[_0x376a1a(0x11b)](_0x3fd956[_0x376a1a(0x195)]),_0x4a398c;return logger[_0x376a1a(0x11b)](_0x3fd956[_0x376a1a(0x137)]),await this.#handleBinaryDownload(_0x149cfd,_0x180f57,_0xda067b);}catch(_0x2886a7){return logger[_0x376a1a(0x154)](_0x376a1a(0x186)+_0x2886a7),_0x4a398c;}}const _0x425145=await this['download'](_0x180f57,_0xda067b);return await this.#handleBinaryDownload(_0x425145,_0x180f57,_0xda067b);}['download'](_0x2b6100,_0x12d151,_0xff7029=null){const _0x545ab0=a147_0x547549,_0x1609d1={'WHUmN':function(_0x205ce5,_0x824c68){return _0x205ce5(_0x824c68);},'BPMFJ':function(_0x3cc8e9,_0x401652){return _0x3cc8e9(_0x401652);},'EokKR':function(_0x4cfa02,_0x44ba04){return _0x4cfa02===_0x44ba04;},'NlyUD':'error','NNKhi':_0x545ab0(0x19c),'svaMO':function(_0x45be22,_0x494ce1){return _0x45be22+_0x494ce1;},'RwcHk':'.zip'};_0x12d151&&!this.#checkPath(_0x12d151)&&fs[_0x545ab0(0x18f)](_0x12d151);const _0x2800a9=this.#binaryName,_0x3f95b3=path[_0x545ab0(0x119)](_0x12d151,_0x1609d1[_0x545ab0(0x18d)](_0x2800a9,_0x1609d1[_0x545ab0(0x176)])),_0xf18ceb=fs[_0x545ab0(0x14b)](_0x3f95b3),_0x28b6ff=url['parse'](this.#httpPath);if(_0x2b6100[_0x545ab0(0x118)]&&_0x2b6100['proxyPort']){const _0x31b110={};_0x31b110[_0x545ab0(0x13a)]=_0x2b6100[_0x545ab0(0x118)],_0x31b110[_0x545ab0(0x15f)]=_0x2b6100['proxyPort'],_0x28b6ff[_0x545ab0(0x16e)]=new HttpsProxyAgent(_0x31b110);}if(_0x2b6100[_0x545ab0(0x114)])try{_0x28b6ff['ca']=fs[_0x545ab0(0x111)](_0x2b6100[_0x545ab0(0x114)]);}catch(_0x4214e7){logger[_0x545ab0(0x123)](_0x545ab0(0x16b)+_0x4214e7);}if(_0xff7029){const _0x3d95c5={};_0x3d95c5[_0x545ab0(0x17e)]=_0xff7029,_0x3d95c5[_0x545ab0(0x147)]=_0x1609d1[_0x545ab0(0x17d)],_0x28b6ff[_0x545ab0(0x189)]=_0x3d95c5;}else{const _0x4b2cde={};_0x4b2cde[_0x545ab0(0x147)]=_0x1609d1['NNKhi'],_0x28b6ff['headers']=_0x4b2cde;}return new Promise((_0x1e57e4,_0x3e8ae8)=>{const _0x403245=_0x545ab0,_0x48a46c={'wiiDD':function(_0x38df30,_0x4d3e46){const _0x5813c5=a147_0xa44a;return _0x1609d1[_0x5813c5(0x113)](_0x38df30,_0x4d3e46);},'PmYRr':function(_0x3cd56f,_0x4c0b9b){const _0x3e4261=a147_0xa44a;return _0x1609d1[_0x3e4261(0x12f)](_0x3cd56f,_0x4c0b9b);},'VwgHW':function(_0x5a421d,_0x456907){const _0x2a8706=a147_0xa44a;return _0x1609d1[_0x2a8706(0x181)](_0x5a421d,_0x456907);},'rsueT':function(_0x5f4025,_0x54f1c7){const _0x3b72a3=a147_0xa44a;return _0x1609d1[_0x3b72a3(0x12f)](_0x5f4025,_0x54f1c7);},'wjVJt':_0x1609d1['NlyUD'],'EujLR':_0x1609d1[_0x403245(0x17d)]};https['get'](_0x28b6ff,_0x362835=>{const _0x17a69d=_0x403245,_0x1a21fd={'pafJn':function(_0x579be6,_0x3bfacd){const _0x3f7abc=a147_0xa44a;return _0x48a46c[_0x3f7abc(0x172)](_0x579be6,_0x3bfacd);}};if(_0xff7029&&_0x48a46c[_0x17a69d(0x163)](_0x362835[_0x17a69d(0x197)],0x130)){_0xf18ceb[_0x17a69d(0x143)]();const _0x55ff04={};_0x55ff04[_0x17a69d(0x122)]=![],_0x48a46c[_0x17a69d(0x168)](_0x1e57e4,_0x55ff04);return;}const _0x14eb92=_0x362835[_0x17a69d(0x189)][_0x17a69d(0x153)];_0x14eb92&&this.#saveETag(_0x12d151,_0x14eb92),_0x362835[_0x17a69d(0x188)](_0xf18ceb),_0x362835['on'](_0x48a46c[_0x17a69d(0x116)],function(_0x308429){const _0x2f1a51=_0x17a69d;logger['error'](_0x2f1a51(0x10d)+_0x308429),_0x1a21fd[_0x2f1a51(0x14e)](_0x3e8ae8,_0x308429);}),_0xf18ceb['on'](_0x48a46c[_0x17a69d(0x116)],function(_0x2db019){const _0x579eb4=_0x17a69d;logger[_0x579eb4(0x123)](_0x579eb4(0x139)+_0x2db019),_0x48a46c[_0x579eb4(0x187)](_0x3e8ae8,_0x2db019);}),_0xf18ceb['on'](_0x48a46c[_0x17a69d(0x127)],()=>{const _0x2435fd=_0x17a69d;this[_0x2435fd(0x17a)](_0x3f95b3,_0x12d151)[_0x2435fd(0x150)](_0x398a2f=>_0x1e57e4({'needsUpdate':!![],'binaryPath':_0x398a2f}))[_0x2435fd(0x125)](_0x3e8ae8);});})['on'](_0x1609d1[_0x403245(0x15a)],function(_0x46c3e0){const _0x1e4ae7=_0x403245;logger[_0x1e4ae7(0x123)]('Got\x20Error\x20in\x20percy\x20binary\x20downloading\x20request:\x20'+_0x46c3e0),_0x1609d1[_0x1e4ae7(0x113)](_0x3e8ae8,_0x46c3e0);});});}[a147_0x547549(0x17a)](_0x592b34,_0x2161bd){const _0x5a61fe=a147_0x547549,_0x2b2b0b={'ggHfS':function(_0x33a85b,_0x1f5b9c){return _0x33a85b(_0x1f5b9c);},'MSVdf':_0x5a61fe(0x138),'KcLVX':_0x5a61fe(0x123),'jetct':_0x5a61fe(0x161),'MzJTO':function(_0x1d3b62,_0x22078b){return _0x1d3b62(_0x22078b);},'DJAcU':function(_0x5231a0,_0x314da7){return _0x5231a0===_0x314da7;},'NvXaF':_0x5a61fe(0x10f)},_0x4a6610=this.#binaryName,_0x3b5de5=path[_0x5a61fe(0x119)](_0x2161bd,_0x4a6610);return new Promise((_0x3ad594,_0x35f62a)=>{const _0x520bf5=_0x5a61fe,_0x56a287={'hhroi':function(_0x5c671e,_0x401ef1){return _0x2b2b0b['MzJTO'](_0x5c671e,_0x401ef1);},'ZriHZ':_0x2b2b0b[_0x520bf5(0x13e)],'JYkfn':function(_0x2f29bb,_0x33fcdd){return _0x2b2b0b['DJAcU'](_0x2f29bb,_0x33fcdd);},'KrEaD':_0x2b2b0b[_0x520bf5(0x16f)]},_0x275722={};_0x275722[_0x520bf5(0x12d)]=!![],yauzl[_0x520bf5(0x133)](_0x592b34,_0x275722,function(_0x227692,_0x15dae3){const _0x2abc6f=_0x520bf5,_0x388584={'zGZwR':function(_0x115cc4,_0x320bd6){const _0xe90861=a147_0xa44a;return _0x2b2b0b[_0xe90861(0x15e)](_0x115cc4,_0x320bd6);}};_0x227692&&_0x2b2b0b[_0x2abc6f(0x15e)](_0x35f62a,_0x227692),_0x15dae3[_0x2abc6f(0x129)](),_0x15dae3['on'](_0x2b2b0b[_0x2abc6f(0x160)],_0x58f9fe=>{const _0x16d951=_0x2abc6f,_0x21d286={'EwZmE':function(_0x57f58e,_0x39768c){const _0x1977ef=a147_0xa44a;return _0x56a287[_0x1977ef(0x144)](_0x57f58e,_0x39768c);},'CZBXa':_0x56a287[_0x16d951(0x17b)]};if(/\/$/[_0x16d951(0x12a)](_0x58f9fe[_0x16d951(0x1a0)]))_0x15dae3[_0x16d951(0x129)]();else{const _0x49df08=fs[_0x16d951(0x14b)](path[_0x16d951(0x119)](_0x2161bd,_0x58f9fe[_0x16d951(0x1a0)]));_0x15dae3[_0x16d951(0x173)](_0x58f9fe,function(_0x127cc4,_0x7d3cc0){const _0xe42a14=_0x16d951;_0x127cc4&&_0x21d286['EwZmE'](_0x35f62a,_0x227692),_0x7d3cc0['on'](_0x21d286[_0xe42a14(0x10b)],function(){const _0xfef3ed=_0xe42a14;_0x49df08[_0xfef3ed(0x19c)](),_0x15dae3['readEntry']();}),_0x7d3cc0[_0xe42a14(0x188)](_0x49df08);}),_0x56a287[_0x16d951(0x192)](_0x58f9fe[_0x16d951(0x1a0)],_0x4a6610)&&_0x15dae3[_0x16d951(0x19c)]();}}),_0x15dae3['on'](_0x2b2b0b[_0x2abc6f(0x194)],_0x3fcee0=>{const _0xf5962=_0x2abc6f;_0x388584[_0xf5962(0x140)](_0x35f62a,_0x3fcee0);}),_0x15dae3[_0x2abc6f(0x14d)](_0x2b2b0b['jetct'],()=>{const _0x4d4dc1=_0x2abc6f,_0x1f5d0d={'Jznjh':function(_0x593af0,_0x4abf51){return _0x56a287['hhroi'](_0x593af0,_0x4abf51);}};fs['chmod'](_0x3b5de5,_0x56a287[_0x4d4dc1(0x13c)],function(_0x52062f){const _0x162d70=_0x4d4dc1;_0x52062f&&_0x1f5d0d['Jznjh'](_0x35f62a,_0x52062f),_0x1f5d0d[_0x162d70(0x146)](_0x3ad594,_0x3b5de5);}),_0x15dae3[_0x4d4dc1(0x19c)]();});});});}async[a147_0x547549(0x14c)](_0x45caa5){const _0x20dbed=a147_0x547549,_0x542856={'tDNoY':function(_0xb07c4a,_0x1f8218){return _0xb07c4a(_0x1f8218);},'HPoqU':function(_0x1456f7,_0x28304b,_0xa85cc2,_0x477c98){return _0x1456f7(_0x28304b,_0xa85cc2,_0x477c98);},'lNvza':_0x20dbed(0x15c),'fzPEl':'data','FJSin':_0x20dbed(0x19c)},_0x255bad=/^.*@percy\/cli \d.\d+.\d+/;return new Promise((_0x12ef38,_0xf73a9a)=>{const _0x5c6b74=_0x20dbed,_0x3d624a={'nutYQ':function(_0x556595,_0x24db97){const _0x4e3a72=a147_0xa44a;return _0x542856[_0x4e3a72(0x17c)](_0x556595,_0x24db97);}},_0xf3fa07={};_0xf3fa07[_0x5c6b74(0x19a)]=process[_0x5c6b74(0x19a)];const _0x2f46cf=_0x542856['HPoqU'](spawn,_0x45caa5,[_0x542856[_0x5c6b74(0x149)]],_0xf3fa07);_0x2f46cf[_0x5c6b74(0x12e)]['on'](_0x542856['fzPEl'],_0x36b4ea=>{const _0x5b0691=_0x5c6b74;_0x255bad[_0x5b0691(0x12a)](_0x36b4ea)&&_0x3d624a[_0x5b0691(0x178)](_0x12ef38,!![]);}),_0x2f46cf['on'](_0x542856['FJSin'],()=>{const _0x7830e9=_0x5c6b74;_0x542856[_0x7830e9(0x17c)](_0x12ef38,![]);});});}#homedir(){const _0x4411ed=a147_0x547549,_0x3d6a34={};_0x3d6a34['laZQo']=function(_0x168005,_0xc125b3){return _0x168005===_0xc125b3;},_0x3d6a34[_0x4411ed(0x10a)]=_0x4411ed(0x179),_0x3d6a34['hzhRL']=function(_0x27fb52,_0x496b68){return _0x27fb52===_0x496b68;},_0x3d6a34[_0x4411ed(0x14f)]=_0x4411ed(0x190),_0x3d6a34[_0x4411ed(0x156)]=function(_0x39fc63,_0x36f502){return _0x39fc63+_0x36f502;},_0x3d6a34[_0x4411ed(0x158)]=_0x4411ed(0x141),_0x3d6a34['jYCzV']=_0x4411ed(0x18a),_0x3d6a34['SCcwW']=_0x4411ed(0x151),_0x3d6a34['OVUpY']=_0x4411ed(0x12c),_0x3d6a34['RIBqD']=function(_0x2eeffa,_0x4657f2){return _0x2eeffa+_0x4657f2;},_0x3d6a34[_0x4411ed(0x11c)]='/home/',_0x3d6a34[_0x4411ed(0x183)]=function(_0x2f99ec,_0x1efdbb){return _0x2f99ec||_0x1efdbb;};const _0x27007a=_0x3d6a34;if(_0x27007a[_0x4411ed(0x15b)](typeof os[_0x4411ed(0x124)],_0x27007a[_0x4411ed(0x10a)]))return os[_0x4411ed(0x124)]();const _0x1b479b=process['env'],_0x6864af=_0x1b479b[_0x4411ed(0x112)],_0x25be6a=_0x1b479b[_0x4411ed(0x16d)]||_0x1b479b[_0x4411ed(0x131)]||_0x1b479b[_0x4411ed(0x132)]||_0x1b479b[_0x4411ed(0x135)];if(_0x27007a[_0x4411ed(0x19f)](process[_0x4411ed(0x169)],_0x27007a[_0x4411ed(0x14f)]))return _0x1b479b[_0x4411ed(0x19b)]||_0x27007a[_0x4411ed(0x156)](_0x1b479b['HOMEDRIVE'],_0x1b479b[_0x4411ed(0x185)])||_0x6864af||null;if(_0x27007a[_0x4411ed(0x15b)](process[_0x4411ed(0x169)],_0x27007a[_0x4411ed(0x158)]))return _0x6864af||(_0x25be6a?_0x27007a['XSsVc'](_0x27007a[_0x4411ed(0x10c)],_0x25be6a):null);if(_0x27007a[_0x4411ed(0x15b)](process[_0x4411ed(0x169)],_0x27007a['SCcwW']))return _0x6864af||(_0x27007a[_0x4411ed(0x19f)](process['getuid'](),0x0)?_0x27007a['OVUpY']:_0x25be6a?_0x27007a[_0x4411ed(0x199)](_0x27007a[_0x4411ed(0x11c)],_0x25be6a):null);return _0x27007a[_0x4411ed(0x183)](_0x6864af,null);}}module[a147_0x547549(0x157)]=PercyBinary;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a148_0x3993c5=a148_0x3b3d;function a148_0x3b3d(_0x4576af,_0xe066ac){var _0x41062a=a148_0x4106();return a148_0x3b3d=function(_0x3b3dcc,_0x26e4b1){_0x3b3dcc=_0x3b3dcc-0x6f;var _0x475a3f=_0x41062a[_0x3b3dcc];return _0x475a3f;},a148_0x3b3d(_0x4576af,_0xe066ac);}function a148_0x4106(){var _0x2bf6ee=['324lziQTa','10120536NFgQIT','24eXDiaZ','44260pLvPNy','getName','24952ajkqCo','3295XbxzpR','1212seXcbT','341610lHGQio','increment','1991563TNWJiZ','exports','135455CRCVoJ','get'];a148_0x4106=function(){return _0x2bf6ee;};return a148_0x4106();}(function(_0x28b244,_0x479bf6){var _0x27d1ab=a148_0x3b3d,_0xfa0a18=_0x28b244();while(!![]){try{var _0x157e24=parseInt(_0x27d1ab(0x73))/0x1+parseInt(_0x27d1ab(0x78))/0x2+-parseInt(_0x27d1ab(0x75))/0x3*(-parseInt(_0x27d1ab(0x7a))/0x4)+-parseInt(_0x27d1ab(0x7b))/0x5*(-parseInt(_0x27d1ab(0x7c))/0x6)+-parseInt(_0x27d1ab(0x71))/0x7*(-parseInt(_0x27d1ab(0x77))/0x8)+-parseInt(_0x27d1ab(0x76))/0x9+-parseInt(_0x27d1ab(0x6f))/0xa;if(_0x157e24===_0x479bf6)break;else _0xfa0a18['push'](_0xfa0a18['shift']());}catch(_0x33d91c){_0xfa0a18['push'](_0xfa0a18['shift']());}}}(a148_0x4106,0xa0f45));class PercyCaptureMap{#map={};[a148_0x3993c5(0x70)](_0x14829e,_0xd9e916){!this.#map[_0x14829e]&&(this.#map[_0x14829e]={}),!this.#map[_0x14829e][_0xd9e916]&&(this.#map[_0x14829e][_0xd9e916]=0x0),this.#map[_0x14829e][_0xd9e916]++;}[a148_0x3993c5(0x79)](_0x3b90c3,_0x1bec73){return _0x3b90c3+'-'+_0x1bec73+'-'+this['get'](_0x3b90c3,_0x1bec73);}[a148_0x3993c5(0x74)](_0x4cee0e,_0x3a916f){if(!this.#map[_0x4cee0e])return 0x0;if(!this.#map[_0x4cee0e][_0x3a916f])return 0x0;return this.#map[_0x4cee0e][_0x3a916f];}}module[a148_0x3993c5(0x72)]=PercyCaptureMap;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a149_0x3df9c4=a149_0x594d;(function(_0x30d351,_0x344f2a){var _0x1a8a24=a149_0x594d,_0x53ff8e=_0x30d351();while(!![]){try{var _0x48a011=-parseInt(_0x1a8a24(0x14c))/0x1*(parseInt(_0x1a8a24(0x152))/0x2)+parseInt(_0x1a8a24(0x149))/0x3+parseInt(_0x1a8a24(0x14e))/0x4*(parseInt(_0x1a8a24(0x151))/0x5)+parseInt(_0x1a8a24(0x154))/0x6*(parseInt(_0x1a8a24(0x14b))/0x7)+parseInt(_0x1a8a24(0x153))/0x8*(-parseInt(_0x1a8a24(0x146))/0x9)+parseInt(_0x1a8a24(0x156))/0xa*(parseInt(_0x1a8a24(0x14f))/0xb)+-parseInt(_0x1a8a24(0x147))/0xc;if(_0x48a011===_0x344f2a)break;else _0x53ff8e['push'](_0x53ff8e['shift']());}catch(_0x44ddc0){_0x53ff8e['push'](_0x53ff8e['shift']());}}}(a149_0x3404,0x93b4e));var a149_0x40edde={};function a149_0x594d(_0x2cf549,_0x629afc){var _0x34045a=a149_0x3404();return a149_0x594d=function(_0x594de4,_0x1d4800){_0x594de4=_0x594de4-0x146;var _0xed173d=_0x34045a[_0x594de4];return _0xed173d;},a149_0x594d(_0x2cf549,_0x629afc);}a149_0x40edde['driver']=['takeScreenshot'],a149_0x40edde[a149_0x3df9c4(0x157)]=[a149_0x3df9c4(0x150),'sendKeys'];var a149_0x1a1c83={};a149_0x1a1c83[a149_0x3df9c4(0x158)]=[a149_0x3df9c4(0x14a)];var a149_0x16dbd3={};a149_0x16dbd3[a149_0x3df9c4(0x157)]=[a149_0x3df9c4(0x150)];function a149_0x3404(){var _0x57313d=['element','driver','162yqEJVx','10616988AgYlMF','exports','1496928MBEuYh','takeScreenshot','1267XKPnck','10FxOwmk','testcase','548uJMRss','11MvZOvo','click','29375pjaFKp','146114OArZDO','106608ERvMfg','18306sCsKRd','auto','6041110Bchean'];a149_0x3404=function(){return _0x57313d;};return a149_0x3404();}var a149_0x2e2d60={};a149_0x2e2d60[a149_0x3df9c4(0x155)]=a149_0x40edde,a149_0x2e2d60['screenshot']=a149_0x1a1c83,a149_0x2e2d60['click']=a149_0x16dbd3,a149_0x2e2d60[a149_0x3df9c4(0x14d)]={},a149_0x2e2d60['manual']={},module[a149_0x3df9c4(0x148)]=a149_0x2e2d60;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a150_0x50ef(){const _0x406eca=['2110146ICYlMY','tbKNm','ZTtKX','screenshot','uuid','9cimRgE','4611439yNqIUw','40gjplJM','@percy/appium-app','../performance/performance-tester','platformIndex','509460SkkCLn','measure','error','525800rgqvlk','359690twMIsi','zaXQC','name','nIrXp','browserstackPlatformIndex','apply','length','@percy/selenium-webdriver','browserstackPercyBestPlatform','13916ziYVHM','zatnD','../performance/constants','testCase','thTestCaseExecutionId','SNAPSHOT','SCREENSHOT_APP','72yvtDjZ','XWaPQ','6559504LOMzbH'];a150_0x50ef=function(){return _0x406eca;};return a150_0x50ef();}const a150_0x5ce6cf=a150_0x30b9;function a150_0x30b9(_0x2f56a5,_0x1a00a){const _0x50ef72=a150_0x50ef();return a150_0x30b9=function(_0x30b947,_0x3652f9){_0x30b947=_0x30b947-0x175;let _0x2ad3ef=_0x50ef72[_0x30b947];return _0x2ad3ef;},a150_0x30b9(_0x2f56a5,_0x1a00a);}(function(_0x3df29,_0x542524){const _0x133451=a150_0x30b9,_0x4001e0=_0x3df29();while(!![]){try{const _0x597e69=parseInt(_0x133451(0x187))/0x1*(-parseInt(_0x133451(0x178))/0x2)+-parseInt(_0x133451(0x182))/0x3+-parseInt(_0x133451(0x189))/0x4*(-parseInt(_0x133451(0x191))/0x5)+-parseInt(_0x133451(0x18d))/0x6+-parseInt(_0x133451(0x188))/0x7+parseInt(_0x133451(0x181))/0x8+parseInt(_0x133451(0x17f))/0x9*(parseInt(_0x133451(0x190))/0xa);if(_0x597e69===_0x542524)break;else _0x4001e0['push'](_0x4001e0['shift']());}catch(_0x9ff259){_0x4001e0['push'](_0x4001e0['shift']());}}}(a150_0x50ef,0x6dedb));const tryRequire=function(_0x51a05d,_0x5c3d93){const _0x168788={'VmGXQ':function(_0x40155a,_0x1bd7a3){return _0x40155a(_0x1bd7a3);}};try{return _0x168788['VmGXQ'](require,_0x51a05d);}catch{return _0x5c3d93;}},percySnapshot=tryRequire(a150_0x5ce6cf(0x176),null),{percyScreenshot}=tryRequire(a150_0x5ce6cf(0x176),{}),percyAppScreenshot=require(a150_0x5ce6cf(0x18a)),{getCurrentTestData}=require('../../helpers/testhub/utils'),PerformanceTester=require(a150_0x5ce6cf(0x18b)),{PERCY_EVENTS:PerformanceEvents}=require(a150_0x5ce6cf(0x17a)),logger=require('../logger')['winstonLogger'];percySnapshot&&(exports['snapshot']=async function(){const _0x2ecff1=a150_0x5ce6cf,_0x1bd573={'zatnD':function(_0x134c6f,_0x12227e){return _0x134c6f!==_0x12227e;},'NMFRF':function(_0x254b4d,_0x53d4bc){return _0x254b4d>=_0x53d4bc;},'ZTtKX':function(_0x43d2ec){return _0x43d2ec();}};if(global[_0x2ecff1(0x195)]&&_0x1bd573[_0x2ecff1(0x179)](global['browserstackPlatformIndex'],global[_0x2ecff1(0x177)]))return;const _0x51f212=_0x1bd573['NMFRF'](arguments[_0x2ecff1(0x175)],0x2)?arguments[0x1]:'',_0xb9de7b=_0x1bd573[_0x2ecff1(0x184)](getCurrentTestData),_0x410d90={};return _0x410d90[_0x2ecff1(0x193)]=_0x51f212,_0x410d90[_0x2ecff1(0x17b)]=_0xb9de7b[_0x2ecff1(0x193)]||'',_0x410d90[_0x2ecff1(0x17c)]=_0xb9de7b[_0x2ecff1(0x186)]||'',_0x410d90[_0x2ecff1(0x18c)]=global[_0x2ecff1(0x195)],await PerformanceTester[_0x2ecff1(0x18e)](PerformanceEvents[_0x2ecff1(0x17d)],()=>percySnapshot[_0x2ecff1(0x196)](null,arguments),_0x410d90);});percyScreenshot?exports['screenshot']=async function(){const _0x30b868=a150_0x5ce6cf,_0x2d0324={'tbKNm':function(_0x153e56,_0x902bfd){return _0x153e56>=_0x902bfd;},'hOhSU':function(_0x2784bf){return _0x2784bf();}},_0x1d0e7a=_0x2d0324[_0x30b868(0x183)](arguments[_0x30b868(0x175)],0x2)?arguments[0x1]:'',_0x1740c3=_0x2d0324['hOhSU'](getCurrentTestData),_0x509e7f={};return _0x509e7f['name']=_0x1d0e7a,_0x509e7f[_0x30b868(0x17b)]=_0x1740c3[_0x30b868(0x193)]||'',_0x509e7f[_0x30b868(0x17c)]=_0x1740c3[_0x30b868(0x186)]||'',_0x509e7f[_0x30b868(0x18c)]=global[_0x30b868(0x195)],await PerformanceTester[_0x30b868(0x18e)](PerformanceEvents['SCREENSHOT'],()=>percyScreenshot[_0x30b868(0x196)](null,arguments),_0x509e7f);}:exports[a150_0x5ce6cf(0x185)]=()=>{const _0x21244c=a150_0x5ce6cf,_0x4bac38={};_0x4bac38[_0x21244c(0x192)]='Unsupported\x20driver\x20for\x20percy';const _0xb46c3=_0x4bac38;logger[_0x21244c(0x18f)](_0xb46c3['zaXQC']);};exports['screenshotApp']=async function(){const _0x495c06=a150_0x5ce6cf,_0x470393={'XWaPQ':function(_0x5e1529,_0x38612d){return _0x5e1529>=_0x38612d;},'nIrXp':function(_0x478a25){return _0x478a25();}},_0x7abaa4=_0x470393[_0x495c06(0x180)](arguments[_0x495c06(0x175)],0x2)?arguments[0x1]:'',_0x2f28c1=_0x470393[_0x495c06(0x194)](getCurrentTestData),_0x5a1083={};return _0x5a1083[_0x495c06(0x193)]=_0x7abaa4,_0x5a1083[_0x495c06(0x17b)]=_0x2f28c1[_0x495c06(0x193)]||'',_0x5a1083['thTestCaseExecutionId']=_0x2f28c1['uuid']||'',_0x5a1083['platformIndex']=global['browserstackPlatformIndex'],await PerformanceTester[_0x495c06(0x18e)](PerformanceEvents[_0x495c06(0x17e)],()=>percyAppScreenshot[_0x495c06(0x196)](null,arguments),_0x5a1083);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
var a151_0x3680c2=a151_0x5c5a;function a151_0x5c5a(_0x5a187f,_0x273f35){var _0x167de5=a151_0x167d();return a151_0x5c5a=function(_0x5c5a43,_0x6bef94){_0x5c5a43=_0x5c5a43-0xb8;var _0x7a562f=_0x167de5[_0x5c5a43];return _0x7a562f;},a151_0x5c5a(_0x5a187f,_0x273f35);}function a151_0x167d(){var _0x3e9149=['141552LPIxVb','2615020CQKkrw','5484590swCFxb','283asMHGI','exports','16976157CkuGSF','9974440jNGeFA','12rQLbIm','60011JyoweA','./Percy','974AzEaOT','102yUXjhQ','57mfAoTG','18slCFaP'];a151_0x167d=function(){return _0x3e9149;};return a151_0x167d();}(function(_0x2a093a,_0x25c0b1){var _0x4b4402=a151_0x5c5a,_0x501a6e=_0x2a093a();while(!![]){try{var _0x48e98a=parseInt(_0x4b4402(0xbb))/0x1*(parseInt(_0x4b4402(0xc2))/0x2)+-parseInt(_0x4b4402(0xc4))/0x3*(-parseInt(_0x4b4402(0xb8))/0x4)+parseInt(_0x4b4402(0xb9))/0x5+-parseInt(_0x4b4402(0xc3))/0x6*(-parseInt(_0x4b4402(0xc0))/0x7)+-parseInt(_0x4b4402(0xbe))/0x8+parseInt(_0x4b4402(0xc5))/0x9*(-parseInt(_0x4b4402(0xba))/0xa)+-parseInt(_0x4b4402(0xbd))/0xb*(-parseInt(_0x4b4402(0xbf))/0xc);if(_0x48e98a===_0x25c0b1)break;else _0x501a6e['push'](_0x501a6e['shift']());}catch(_0x4b37e0){_0x501a6e['push'](_0x501a6e['shift']());}}}(a151_0x167d,0xa5a66),module[a151_0x3680c2(0xbc)]=require(a151_0x3680c2(0xc1)));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a152_0x5b491a=a152_0x3e9e;function a152_0x3156(){const _0x813d84=['toLowerCase','chrome','RTzPP','prototype','Starting\x20percy','292130oIkkvy','Jdaeh','patch','deviceName','error','../helper','getBestPlatformForPercySnapshot','startPercy','2049642gnGIIF','then','browserStackPercyOptions','percy','6589158XCTdot','2992930pVsmGH','safari','849741XlvaHX','AUTO_CAPTURE','92INiAxg','winstonLogger','percyAutoCapture','increment','driver','2410712NpQBfU','manual','stopPercy','STOP','isAppAutomateSession','screenshotApp','element','UmGWi','WHEik','ArQdN','../performance/performance-tester','1157692wsQLhe','browserstackSessionName','apply','browserstackPercyMap','percyCaptureMode','IMVDx','getPercyOptions','firefox','getName','getDriver','screenshot','rLiyO','START','edge','xJJuq','measureWrapper','./PercyCaptureModes','pLYqm','isUndefined','NRmDE','FLNdS','yVmKn','stop','patchDriverPercy','Stopping\x20percy','init','start','../performance/constants','qpxDt','debug','reduce','browser'];a152_0x3156=function(){return _0x813d84;};return a152_0x3156();}(function(_0x2b8cde,_0x5b2917){const _0x337e69=a152_0x3e9e,_0x1db0bb=_0x2b8cde();while(!![]){try{const _0x2634ff=parseInt(_0x337e69(0x1df))/0x1+-parseInt(_0x337e69(0x1cb))/0x2+parseInt(_0x337e69(0x1cd))/0x3+parseInt(_0x337e69(0x1cf))/0x4*(parseInt(_0x337e69(0x1be))/0x5)+-parseInt(_0x337e69(0x1ca))/0x6+parseInt(_0x337e69(0x1c6))/0x7+parseInt(_0x337e69(0x1d4))/0x8;if(_0x2634ff===_0x5b2917)break;else _0x1db0bb['push'](_0x1db0bb['shift']());}catch(_0x3f7905){_0x1db0bb['push'](_0x1db0bb['shift']());}}}(a152_0x3156,0xbf760));function a152_0x3e9e(_0x322259,_0x3447e7){const _0x315605=a152_0x3156();return a152_0x3e9e=function(_0x3e9e75,_0x1a26b5){_0x3e9e75=_0x3e9e75-0x1ad;let _0x369606=_0x315605[_0x3e9e75];return _0x369606;},a152_0x3e9e(_0x322259,_0x3447e7);}const Percy=require('./Percy'),PercySDK=require('./PercySDK'),PercyCaptureModes=require(a152_0x5b491a(0x1ef)),PercyCaptureMap=require('./PercyCaptureMap'),logger=require('../logger')[a152_0x5b491a(0x1d0)],helper=require(a152_0x5b491a(0x1c3)),PerformanceTester=require(a152_0x5b491a(0x1de)),{PERCY_EVENTS:PerformanceEvents}=require(a152_0x5b491a(0x1b4));exports[a152_0x5b491a(0x1c5)]=PerformanceTester['measureWrapper'](PerformanceEvents[a152_0x5b491a(0x1eb)],async _0x23bc53=>{const _0x3f8b2=a152_0x5b491a,_0x969004={};_0x969004[_0x3f8b2(0x1f2)]=_0x3f8b2(0x1bd);const _0x82dba2=_0x969004;logger['debug'](_0x82dba2[_0x3f8b2(0x1f2)]);const _0x203ce6=new Percy(_0x23bc53),_0x9a25f0=await _0x203ce6[_0x3f8b2(0x1b3)]();if(_0x9a25f0)return _0x203ce6;return null;}),exports[a152_0x5b491a(0x1d6)]=PerformanceTester[a152_0x5b491a(0x1ee)](PerformanceEvents[a152_0x5b491a(0x1d7)],async _0x33f4c5=>{const _0x4a30f3=a152_0x5b491a,_0x34fd99={};_0x34fd99[_0x4a30f3(0x1b5)]=_0x4a30f3(0x1b1);const _0x44f6c6=_0x34fd99;return logger[_0x4a30f3(0x1b6)](_0x44f6c6[_0x4a30f3(0x1b5)]),_0x33f4c5[_0x4a30f3(0x1af)]();}),exports[a152_0x5b491a(0x1c4)]=_0x1a8df3=>{const _0x20498f=a152_0x5b491a,_0x3b351e={};_0x3b351e[_0x20498f(0x1bf)]=function(_0x3fe9f6,_0x37609d){return _0x3fe9f6<_0x37609d;};const _0x4a3506=_0x3b351e,_0x239414={};_0x239414[_0x20498f(0x1ba)]=0x0,_0x239414[_0x20498f(0x1e6)]=0x1,_0x239414[_0x20498f(0x1ec)]=0x2,_0x239414[_0x20498f(0x1cc)]=0x3;const _0x29d025=_0x239414;return _0x1a8df3[_0x20498f(0x1b7)]((_0x3666dd,_0x117b28,_0x29cc37)=>{const _0x3386fc=_0x20498f,_0x1a8ce7=_0x1a8df3[_0x3666dd];if(_0x117b28[_0x3386fc(0x1c1)])return _0x3666dd;if(_0x1a8ce7[_0x3386fc(0x1c1)])return _0x29cc37;const _0x56475b=_0x117b28[_0x3386fc(0x1b8)]?_0x117b28[_0x3386fc(0x1b8)]:_0x117b28['browserName'];if(_0x56475b&&_0x4a3506[_0x3386fc(0x1bf)](_0x29d025[_0x56475b[_0x3386fc(0x1b9)]()],_0x29d025[_0x56475b[_0x3386fc(0x1b9)]()]))return _0x29cc37;return _0x3666dd;},0x0);},exports[a152_0x5b491a(0x1d1)]=PerformanceTester[a152_0x5b491a(0x1ee)](PerformanceEvents[a152_0x5b491a(0x1ce)],async(_0x18007c,_0x1c9781,_0x133962)=>{const _0x32f4b2=a152_0x5b491a,_0x1cbfe9={};_0x1cbfe9[_0x32f4b2(0x1db)]='Couldn\x27t\x20capture\x20percy\x20screenshot,\x20no\x20session\x20name\x20present';const _0x492f19=_0x1cbfe9,_0x5373ab=_0x18007c[_0x32f4b2(0x1e2)];if(helper[_0x32f4b2(0x1f1)](_0x18007c[_0x32f4b2(0x1e0)])){logger[_0x32f4b2(0x1b6)](_0x492f19[_0x32f4b2(0x1db)]);return;}const _0x2409a9=_0x5373ab[_0x32f4b2(0x1e7)](_0x18007c['browserstackSessionName'],_0x1c9781);helper[_0x32f4b2(0x1d8)](_0x133962)?await PercySDK[_0x32f4b2(0x1d9)](_0x18007c,_0x2409a9):await PercySDK[_0x32f4b2(0x1e9)](_0x18007c,_0x2409a9),_0x5373ab[_0x32f4b2(0x1d2)](_0x18007c[_0x32f4b2(0x1e0)],_0x1c9781);}),exports[a152_0x5b491a(0x1b0)]=(_0x5c4eeb,_0x2685b3,_0x353a1c)=>{const _0x1c3556=a152_0x5b491a,_0x1356c4={};_0x1356c4[_0x1c3556(0x1f0)]=_0x1c3556(0x1c8),_0x1356c4[_0x1c3556(0x1dd)]=_0x1c3556(0x1c9),_0x1356c4[_0x1c3556(0x1ad)]=function(_0x322884,_0xdba806){return _0x322884!==_0xdba806;},_0x1356c4['WHEik']=_0x1c3556(0x1d5);const _0x3bae0f=_0x1356c4;if(!helper['nestedKeyValue'](_0x353a1c,[_0x3bae0f['pLYqm'],_0x3bae0f[_0x1c3556(0x1dd)]]))return;if(_0x353a1c[_0x1c3556(0x1c8)][_0x1c3556(0x1c9)]&&_0x353a1c[_0x1c3556(0x1c8)]['percyCaptureMode']&&_0x3bae0f['FLNdS'](_0x353a1c[_0x1c3556(0x1c8)]['percyCaptureMode'],_0x3bae0f[_0x1c3556(0x1dc)])&&!_0x5c4eeb['browserstackPercyMap']){global[_0x1c3556(0x1e0)]&&(_0x5c4eeb[_0x1c3556(0x1e0)]=global[_0x1c3556(0x1e0)]),_0x5c4eeb[_0x1c3556(0x1e2)]=new PercyCaptureMap();const _0x1c601c=PercyCaptureModes[_0x353a1c[_0x1c3556(0x1c8)]['percyCaptureMode']];_0x1c601c[_0x1c3556(0x1d3)]&&_0x1c601c[_0x1c3556(0x1d3)]['forEach'](_0x2b0c33=>this['overrideXforPercy'](_0x5c4eeb,_0x2b0c33,_0x353a1c)),_0x1c601c[_0x1c3556(0x1da)]&&_0x1c601c['element']['forEach'](_0x582bde=>{const _0x14cfda=_0x1c3556;if(_0x2685b3['prototype']['patch'+_0x582bde])return;_0x2685b3[_0x14cfda(0x1bc)][_0x14cfda(0x1c0)+_0x582bde]=!![];const _0x549adc=_0x2685b3[_0x14cfda(0x1bc)][_0x582bde];_0x2685b3['prototype'][_0x582bde]=async function(){const _0x2872f7=_0x14cfda;let _0x351db0=_0x549adc[_0x2872f7(0x1e1)](this,arguments);_0x351db0&&_0x351db0[_0x2872f7(0x1c7)]&&(_0x351db0=await _0x351db0);try{const _0x36d18b=this[_0x2872f7(0x1e8)]();await exports['percyAutoCapture'](_0x36d18b,_0x582bde,_0x353a1c);}catch(_0x1d830d){logger[_0x2872f7(0x1c2)]('Error\x20patching\x20'+_0x582bde+'\x20for\x20percy\x20'+_0x1d830d);}return _0x351db0;};});}},exports['overrideXforPercy']=function(_0x213a91,_0x3a2c7c,_0x1a8a07){const _0x4e3b8f=a152_0x5b491a,_0x3ed49a={};_0x3ed49a['rLiyO']=function(_0x48e960,_0x2e1599){return _0x48e960+_0x2e1599;},_0x3ed49a['yVmKn']='patch',_0x3ed49a['xJJuq']=function(_0x1c6dea,_0x41267b){return _0x1c6dea+_0x41267b;},_0x3ed49a[_0x4e3b8f(0x1bb)]=_0x4e3b8f(0x1b2);const _0x37d5ce=_0x3ed49a,_0x59f5b3=_0x37d5ce[_0x4e3b8f(0x1ea)](_0x37d5ce[_0x4e3b8f(0x1ae)],_0x3a2c7c),_0x2ae026=_0x37d5ce[_0x4e3b8f(0x1ed)](_0x37d5ce[_0x4e3b8f(0x1bb)],_0x3a2c7c),_0x2f43c3=this;if(_0x213a91[_0x59f5b3]||!_0x213a91[_0x3a2c7c])return;_0x213a91[_0x59f5b3]=!![],_0x213a91[_0x2ae026]=_0x213a91[_0x3a2c7c],_0x213a91[_0x3a2c7c]=async()=>{const _0x5934ba=_0x4e3b8f;try{await _0x2f43c3[_0x5934ba(0x1d1)](_0x213a91,_0x3a2c7c,_0x1a8a07);}catch(_0x204743){logger['error']('Error\x20patching\x20'+_0x3a2c7c+'\x20for\x20percy\x20'+_0x204743);}return await _0x213a91[_0x2ae026][_0x5934ba(0x1e1)](_0x213a91,arguments);};},exports[a152_0x5b491a(0x1e5)]=_0x5c9c60=>{const _0x274762=a152_0x5b491a,_0x517bd7={};_0x517bd7[_0x274762(0x1e4)]='auto';const _0x173940=_0x517bd7,_0x5f1b35={};_0x5f1b35[_0x274762(0x1c9)]=_0x5c9c60[_0x274762(0x1c9)],_0x5f1b35[_0x274762(0x1e3)]=_0x5c9c60[_0x274762(0x1e3)]||_0x173940[_0x274762(0x1e4)];const _0xd188c9=_0x5f1b35;_0x5c9c60[_0x274762(0x1c9)]&&(_0xd188c9['browserstackPercyBestPlatform']=exports[_0x274762(0x1c4)](_0x5c9c60['platforms']));;return _0xd188c9;};
|