browserstack-node-sdk 1.69.0 → 1.70.0
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/mochaTestFramework.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/seleniumAutomationFramework.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/runStateStore.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 a145_0x1f92c1=a145_0x2c51;(function(_0x57a429,_0x5bb6b0){const _0x2ebc63=a145_0x2c51,_0x1836c7=_0x57a429();while(!![]){try{const _0xcac76e=parseInt(_0x2ebc63(0x19d))/0x1+-parseInt(_0x2ebc63(0x168))/0x2+parseInt(_0x2ebc63(0x160))/0x3*(parseInt(_0x2ebc63(0x171))/0x4)+-parseInt(_0x2ebc63(0x16c))/0x5*(-parseInt(_0x2ebc63(0x163))/0x6)+parseInt(_0x2ebc63(0x185))/0x7+-parseInt(_0x2ebc63(0x17d))/0x8+-parseInt(_0x2ebc63(0x18e))/0x9*(parseInt(_0x2ebc63(0x14a))/0xa);if(_0xcac76e===_0x5bb6b0)break;else _0x1836c7['push'](_0x1836c7['shift']());}catch(_0x575d50){_0x1836c7['push'](_0x1836c7['shift']());}}}(a145_0x5d75,0xd148d));const winston=require('winston'),path=require('path'),fs=require('fs'),{LOG_FILE_NAME,DEBUG_LOG_FILE_NAME,DEBUG_CLI_LOG_FILE_NAME}=require(a145_0x1f92c1(0x176)),tempLogDir=a145_0x1f92c1(0x183);let redactRegex=null,lastConfigHash='';const logFormat=winston[a145_0x1f92c1(0x17a)](_0xd589ec=>{const _0x548135=a145_0x1f92c1,_0x429e93={};_0x429e93[_0x548135(0x15a)]=function(_0x9ce200,_0xfee3f){return _0x9ce200!==_0xfee3f;},_0x429e93[_0x548135(0x187)]=_0x548135(0x150),_0x429e93['sQYTA']=function(_0x5e0d7e,_0x4e0e50){return _0x5e0d7e+_0x4e0e50;},_0x429e93[_0x548135(0x164)]=function(_0xd0ec62,_0xb79ae1){return _0xd0ec62+_0xb79ae1;},_0x429e93[_0x548135(0x19f)]=function(_0xba208c,_0x239188){return _0xba208c>_0x239188;},_0x429e93[_0x548135(0x192)]=_0x548135(0x181);const _0x1452c2=_0x429e93;_0x1452c2[_0x548135(0x15a)](typeof _0xd589ec[_0x548135(0x162)],_0x1452c2[_0x548135(0x187)])&&(_0xd589ec[_0x548135(0x162)]=JSON['stringify'](_0xd589ec[_0x548135(0x162)]));const _0x49e636=global['config']&&global[_0x548135(0x188)]['userName']||'',_0x3164f3=global['config']&&global[_0x548135(0x188)][_0x548135(0x16f)]||'',_0x2e99c8=_0x1452c2[_0x548135(0x18d)](_0x1452c2[_0x548135(0x164)](_0x49e636,'|'),_0x3164f3);if(_0x1452c2['VYtTc'](_0x2e99c8,lastConfigHash)){lastConfigHash=_0x2e99c8;const _0x46eba6=[_0x49e636,_0x3164f3][_0x548135(0x182)](Boolean);if(_0x1452c2[_0x548135(0x19f)](_0x46eba6[_0x548135(0x18a)],0x0)){const _0x458246=_0x46eba6[_0x548135(0x172)](_0x3db7f3=>_0x3db7f3[_0x548135(0x17f)](/[.*+?^${}()|[\]\\]/g,'\x5c$&'))[_0x548135(0x17e)]('|');redactRegex=new RegExp(_0x458246,'g');}else redactRegex=null;}return redactRegex&&(_0xd589ec[_0x548135(0x162)]=_0xd589ec[_0x548135(0x162)][_0x548135(0x17f)](redactRegex,_0x1452c2[_0x548135(0x192)])),_0xd589ec;}),SENSITIVE_HEADER_REGEX=/authorization|token|cookie|secret|^x-api-key$|accesskey|password/i,maskHeaders=_0xde01a7=>{const _0x30f94a=a145_0x1f92c1,_0x18ec0e={};_0x18ec0e['caTql']=function(_0x2cbc59,_0x244f75){return _0x2cbc59!==_0x244f75;},_0x18ec0e[_0x30f94a(0x191)]=_0x30f94a(0x155),_0x18ec0e['nlXCb']=_0x30f94a(0x181),_0x18ec0e['qyYVT']='[REDACTED\x20HEADERS]';const _0x54625b=_0x18ec0e;try{if(!_0xde01a7||_0x54625b[_0x30f94a(0x15b)](typeof _0xde01a7,_0x54625b[_0x30f94a(0x191)]))return _0xde01a7;const _0x802809={};for(const _0x13f976 of Object[_0x30f94a(0x165)](_0xde01a7)){_0x802809[_0x13f976]=SENSITIVE_HEADER_REGEX[_0x30f94a(0x157)](_0x13f976)?_0x54625b[_0x30f94a(0x14f)]:_0xde01a7[_0x13f976];}return _0x802809;}catch{return _0x54625b['qyYVT'];}},fetchLogDir=()=>{const _0x1b908e=a145_0x1f92c1;if(process[_0x1b908e(0x198)][_0x1b908e(0x15d)])return process[_0x1b908e(0x198)][_0x1b908e(0x15d)];else!fs['existsSync'](tempLogDir)&&fs[_0x1b908e(0x174)](tempLogDir);return tempLogDir;},logDir=fetchLogDir(),getInitialLogLevel=()=>{const _0x10001f=a145_0x1f92c1,_0x117e89={};_0x117e89['uAflL']='info';const _0x4612f5=_0x117e89,_0x65fe75=process[_0x10001f(0x198)][_0x10001f(0x154)],_0x56e944=Object[_0x10001f(0x165)](winston[_0x10001f(0x188)][_0x10001f(0x156)][_0x10001f(0x14d)]);if(_0x65fe75&&_0x56e944['includes'](_0x65fe75[_0x10001f(0x179)]()))return _0x65fe75['toLowerCase']();return _0x4612f5['uAflL'];},initialLogLevel=getInitialLogLevel(),a145_0x14f07c={};a145_0x14f07c[a145_0x1f92c1(0x16d)]=a145_0x1f92c1(0x14e),a145_0x14f07c[a145_0x1f92c1(0x17c)]=initialLogLevel;const transports={'loggerConsole':new winston['transports'][(a145_0x1f92c1(0x158))](a145_0x14f07c),'loggerFile':new winston[(a145_0x1f92c1(0x184))][(a145_0x1f92c1(0x18b))]({'filename':path[a145_0x1f92c1(0x17e)](logDir,a145_0x1f92c1(0x190)),'level':initialLogLevel}),'debugLoggerFile':new winston[(a145_0x1f92c1(0x184))][(a145_0x1f92c1(0x18b))]({'filename':path[a145_0x1f92c1(0x17e)](logDir,'/usage-debug.log'),'level':'silly'}),'debugCliLoggerFile':new winston[(a145_0x1f92c1(0x184))]['File']({'filename':path[a145_0x1f92c1(0x17e)](logDir,DEBUG_CLI_LOG_FILE_NAME),'level':a145_0x1f92c1(0x178)}),'buildLinkTransport':new winston[(a145_0x1f92c1(0x184))]['File']({'filename':path[a145_0x1f92c1(0x17e)](logDir,a145_0x1f92c1(0x190)),'level':a145_0x1f92c1(0x178)})},automationTransports={};process[a145_0x1f92c1(0x198)]['BROWSERSTACK_AUTOMATION_LOGS']===a145_0x1f92c1(0x1a0)&&(automationTransports['automationLoggerFile']=new winston['transports'][(a145_0x1f92c1(0x18b))]({'filename':path[a145_0x1f92c1(0x17e)](logDir,a145_0x1f92c1(0x186)),'level':a145_0x1f92c1(0x178)}));transports['loggerConsole']['on'](a145_0x1f92c1(0x175),_0x31b6de=>{const _0x5dd15a=a145_0x1f92c1,_0xcff050={};_0xcff050[_0x5dd15a(0x153)]=function(_0x53d93,_0x7b61fb){return _0x53d93===_0x7b61fb;},_0xcff050[_0x5dd15a(0x19a)]=_0x5dd15a(0x196),_0xcff050['fyhcd']=_0x5dd15a(0x197);const _0x4b77f6=_0xcff050;if(_0x4b77f6[_0x5dd15a(0x153)](_0x31b6de[_0x5dd15a(0x15e)],_0x4b77f6[_0x5dd15a(0x19a)])){console[_0x5dd15a(0x183)](_0x4b77f6[_0x5dd15a(0x180)],_0x31b6de['message']);return;}throw _0x31b6de;});const a145_0xfc5a7e={};a145_0xfc5a7e[a145_0x1f92c1(0x17a)]=a145_0x1f92c1(0x19e);const a145_0x2c3453={};a145_0x2c3453[a145_0x1f92c1(0x17c)]=!![];const winstonLoggerParams={'format':winston[a145_0x1f92c1(0x17a)][a145_0x1f92c1(0x177)](winston[a145_0x1f92c1(0x17a)][a145_0x1f92c1(0x173)](a145_0xfc5a7e),winston[a145_0x1f92c1(0x17a)]['colorize'](a145_0x2c3453),winston[a145_0x1f92c1(0x17a)][a145_0x1f92c1(0x194)](_0x59730b=>_0x59730b[a145_0x1f92c1(0x173)]+a145_0x1f92c1(0x161)+_0x59730b[a145_0x1f92c1(0x17c)]+':\x20'+_0x59730b[a145_0x1f92c1(0x162)])),'transports':[transports[a145_0x1f92c1(0x166)]]},a145_0x89c1d2={};a145_0x89c1d2[a145_0x1f92c1(0x17a)]=a145_0x1f92c1(0x19e);const a145_0x5785a3={};a145_0x5785a3['level']=!![];const winstonFileLoggerParams={'format':winston[a145_0x1f92c1(0x17a)]['combine'](winston[a145_0x1f92c1(0x17a)][a145_0x1f92c1(0x173)](a145_0x89c1d2),winston[a145_0x1f92c1(0x17a)][a145_0x1f92c1(0x16b)](a145_0x5785a3),winston[a145_0x1f92c1(0x17a)]['printf'](_0x14d563=>_0x14d563[a145_0x1f92c1(0x17c)]+':\x20'+_0x14d563[a145_0x1f92c1(0x162)])),'transports':[]},a145_0x27802e={};a145_0x27802e[a145_0x1f92c1(0x17a)]='YYYY-MM-DD\x20HH:mm:ss';const a145_0x388d7a={};a145_0x388d7a[a145_0x1f92c1(0x17c)]=!![];const a145_0xdc1da7={};a145_0xdc1da7[a145_0x1f92c1(0x17c)]=a145_0x1f92c1(0x178);const BuildLoggerParams={'format':winston[a145_0x1f92c1(0x17a)][a145_0x1f92c1(0x177)](winston[a145_0x1f92c1(0x17a)]['timestamp'](a145_0x27802e),winston[a145_0x1f92c1(0x17a)]['colorize'](a145_0x388d7a),winston[a145_0x1f92c1(0x17a)][a145_0x1f92c1(0x194)](_0x1856f4=>_0x1856f4[a145_0x1f92c1(0x173)]+a145_0x1f92c1(0x161)+_0x1856f4['level']+':\x20'+_0x1856f4[a145_0x1f92c1(0x162)])),'transports':[transports[a145_0x1f92c1(0x169)],new winston[(a145_0x1f92c1(0x184))]['Console'](a145_0xdc1da7)]},a145_0x5ab8d8={};a145_0x5ab8d8[a145_0x1f92c1(0x193)]=()=>{},a145_0x5ab8d8[a145_0x1f92c1(0x18c)]=()=>{},a145_0x5ab8d8[a145_0x1f92c1(0x15c)]=()=>{},a145_0x5ab8d8['error']=()=>{},a145_0x5ab8d8[a145_0x1f92c1(0x170)]=()=>{},a145_0x5ab8d8[a145_0x1f92c1(0x178)]=()=>{},exports[a145_0x1f92c1(0x195)]=process[a145_0x1f92c1(0x198)][a145_0x1f92c1(0x16e)]===a145_0x1f92c1(0x1a0)?winston['createLogger']({'format':winston[a145_0x1f92c1(0x17a)][a145_0x1f92c1(0x177)](winston[a145_0x1f92c1(0x17a)][a145_0x1f92c1(0x16a)](),winston[a145_0x1f92c1(0x17a)][a145_0x1f92c1(0x173)](),logFormat(),winston['format'][a145_0x1f92c1(0x194)](_0x2c76ed=>_0x2c76ed[a145_0x1f92c1(0x17c)]+':\x20'+_0x2c76ed[a145_0x1f92c1(0x162)])),'transports':[automationTransports[a145_0x1f92c1(0x15f)]]}):a145_0x5ab8d8;function a145_0x2c51(_0x454399,_0xef0122){const _0x5d756d=a145_0x5d75();return a145_0x2c51=function(_0x2c51ab,_0x59207d){_0x2c51ab=_0x2c51ab-0x14a;let _0x48c067=_0x5d756d[_0x2c51ab];return _0x48c067;},a145_0x2c51(_0x454399,_0xef0122);}const initialize=()=>{const _0x5c68bf=a145_0x1f92c1,_0x5716c7={};_0x5716c7['SVOVU']=_0x5c68bf(0x178);const _0x10f7b0=_0x5716c7,_0x1d50f3=transports['loggerConsole']['level']||initialLogLevel;transports['loggerFile']&&(exports[_0x5c68bf(0x18f)][_0x5c68bf(0x19b)](transports['loggerFile']),exports['fileLogger'][_0x5c68bf(0x19b)](transports[_0x5c68bf(0x14b)])),transports[_0x5c68bf(0x167)]&&(exports[_0x5c68bf(0x18f)][_0x5c68bf(0x19b)](transports[_0x5c68bf(0x167)]),exports[_0x5c68bf(0x152)][_0x5c68bf(0x19b)](transports['debugLoggerFile'])),transports[_0x5c68bf(0x14b)]=new winston[(_0x5c68bf(0x184))][(_0x5c68bf(0x18b))]({'filename':path[_0x5c68bf(0x17e)](exports['logDir'],LOG_FILE_NAME),'level':_0x1d50f3}),transports[_0x5c68bf(0x167)]=new winston['transports']['File']({'filename':path[_0x5c68bf(0x17e)](exports[_0x5c68bf(0x159)],DEBUG_LOG_FILE_NAME),'level':_0x10f7b0[_0x5c68bf(0x17b)]}),transports[_0x5c68bf(0x14c)]=new winston['transports'][(_0x5c68bf(0x18b))]({'filename':path[_0x5c68bf(0x17e)](exports[_0x5c68bf(0x159)],DEBUG_CLI_LOG_FILE_NAME),'level':_0x10f7b0['SVOVU']}),exports[_0x5c68bf(0x18f)]['add'](transports['loggerFile']),exports[_0x5c68bf(0x18f)]['add'](transports['debugLoggerFile']),exports[_0x5c68bf(0x152)][_0x5c68bf(0x199)](transports['loggerFile']),exports[_0x5c68bf(0x152)]['add'](transports['debugLoggerFile']);};function a145_0x5d75(){const _0x4cea14=['error','../bin/utils/constants','combine','silly','toLowerCase','format','SVOVU','level','4619144qZkkxV','join','replace','fyhcd','[REDACTED]','filter','log','transports','6947367aBOfrb','automation.log','wMjmu','config','createLogger','length','File','info','sQYTA','2933523eOuvHt','winstonLogger','/usage.log','LqlPr','fdTEy','http','printf','automationLogger','EPIPE','EPIPE\x20error\x20occurred\x20in\x20loggerConsole:','env','add','lnnGY','remove','buildLogger','1105319oKYsVk','YYYY-MM-DD\x20HH:mm:ss','oyqMD','true','70LNoExy','loggerFile','debugCliLoggerFile','levels','console.info','nlXCb','string','maskHeaders','fileLogger','JCdcR','BROWSERSTACK_LOG_LEVEL','object','npm','test','Console','logDir','VYtTc','caTql','warn','BROWSERSTACK_INTERNAL_LOG_DIR','code','automationLoggerFile','1050870UjGlft','\x20-\x20','message','1856238LPANXo','VvDio','keys','loggerConsole','debugLoggerFile','20496GXWSyW','buildLinkTransport','uncolorize','colorize','15myhPSx','name','BROWSERSTACK_AUTOMATION_LOGS','accessKey','debug','8tmrzwa','map','timestamp','mkdirSync'];a145_0x5d75=function(){return _0x4cea14;};return a145_0x5d75();}exports[a145_0x1f92c1(0x18f)]=new winston['createLogger'](winstonLoggerParams),exports['fileLogger']=new winston[(a145_0x1f92c1(0x189))](winstonFileLoggerParams),exports[a145_0x1f92c1(0x19c)]=new winston[(a145_0x1f92c1(0x189))](BuildLoggerParams),exports['logDir']=logDir,exports['getLogDir']=()=>{const _0x30fda1=a145_0x1f92c1;return exports[_0x30fda1(0x159)];},exports[a145_0x1f92c1(0x184)]=transports,exports['initialize']=initialize,exports[a145_0x1f92c1(0x151)]=maskHeaders;logDir&&initialize();
|
|
1
|
+
const a145_0x102547=a145_0x402a;(function(_0x18020d,_0x5ca3e9){const _0x425115=a145_0x402a,_0x266bda=_0x18020d();while(!![]){try{const _0x12cbe5=parseInt(_0x425115(0x19b))/0x1+parseInt(_0x425115(0x146))/0x2*(-parseInt(_0x425115(0x174))/0x3)+parseInt(_0x425115(0x15a))/0x4*(-parseInt(_0x425115(0x156))/0x5)+-parseInt(_0x425115(0x19a))/0x6+-parseInt(_0x425115(0x15e))/0x7+parseInt(_0x425115(0x14b))/0x8+parseInt(_0x425115(0x148))/0x9;if(_0x12cbe5===_0x5ca3e9)break;else _0x266bda['push'](_0x266bda['shift']());}catch(_0x4f32f9){_0x266bda['push'](_0x266bda['shift']());}}}(a145_0x27fb,0x34247));const winston=require(a145_0x102547(0x14c)),path=require(a145_0x102547(0x192)),fs=require('fs'),{LOG_FILE_NAME,DEBUG_LOG_FILE_NAME,DEBUG_CLI_LOG_FILE_NAME}=require(a145_0x102547(0x165)),tempLogDir=a145_0x102547(0x175);let redactRegex=null,lastConfigHash='';const logFormat=winston[a145_0x102547(0x147)](_0x49a166=>{const _0x703545=a145_0x102547,_0x44c3be={};_0x44c3be[_0x703545(0x168)]=function(_0xe44f23,_0x21ae4c){return _0xe44f23!==_0x21ae4c;},_0x44c3be[_0x703545(0x19c)]=_0x703545(0x188),_0x44c3be[_0x703545(0x17d)]=function(_0x4f82e1,_0x52328b){return _0x4f82e1+_0x52328b;},_0x44c3be['IMypv']=function(_0x9e633b,_0xd1f3f1){return _0x9e633b!==_0xd1f3f1;},_0x44c3be['ILQKt']=function(_0x37fce0,_0xd3d8ee){return _0x37fce0>_0xd3d8ee;},_0x44c3be[_0x703545(0x195)]=_0x703545(0x184);const _0x42e0ff=_0x44c3be;_0x42e0ff['nwkif'](typeof _0x49a166[_0x703545(0x14d)],_0x42e0ff[_0x703545(0x19c)])&&(_0x49a166[_0x703545(0x14d)]=JSON[_0x703545(0x187)](_0x49a166[_0x703545(0x14d)]));const _0x2ad734=global[_0x703545(0x159)]&&global[_0x703545(0x159)]['userName']||'',_0x475df5=global[_0x703545(0x159)]&&global[_0x703545(0x159)][_0x703545(0x15d)]||'',_0x4c711a=_0x42e0ff['Ckvav'](_0x42e0ff[_0x703545(0x17d)](_0x2ad734,'|'),_0x475df5);if(_0x42e0ff[_0x703545(0x185)](_0x4c711a,lastConfigHash)){lastConfigHash=_0x4c711a;const _0x4c2525=[_0x2ad734,_0x475df5][_0x703545(0x172)](Boolean);if(_0x42e0ff[_0x703545(0x196)](_0x4c2525[_0x703545(0x157)],0x0)){const _0x3e3026=_0x4c2525['map'](_0x28265e=>_0x28265e[_0x703545(0x160)](/[.*+?^${}()|[\]\\]/g,_0x703545(0x173)))[_0x703545(0x152)]('|');redactRegex=new RegExp(_0x3e3026,'g');}else redactRegex=null;}return redactRegex&&(_0x49a166[_0x703545(0x14d)]=_0x49a166[_0x703545(0x14d)]['replace'](redactRegex,_0x42e0ff[_0x703545(0x195)])),_0x49a166;}),SENSITIVE_HEADER_REGEX=/authorization|token|cookie|secret|^x-api-key$|accesskey|password/i,maskHeaders=_0x535bd2=>{const _0x2f35c8=a145_0x102547,_0x3e1d38={};_0x3e1d38[_0x2f35c8(0x183)]=function(_0x40a62f,_0x5ea6ec){return _0x40a62f!==_0x5ea6ec;},_0x3e1d38[_0x2f35c8(0x17c)]='object',_0x3e1d38['aVNeg']=_0x2f35c8(0x184),_0x3e1d38['rcaJZ']='[REDACTED\x20HEADERS]';const _0x311b7d=_0x3e1d38;try{if(!_0x535bd2||_0x311b7d[_0x2f35c8(0x183)](typeof _0x535bd2,_0x311b7d[_0x2f35c8(0x17c)]))return _0x535bd2;const _0x4fe468={};for(const _0x385a16 of Object[_0x2f35c8(0x16a)](_0x535bd2)){_0x4fe468[_0x385a16]=SENSITIVE_HEADER_REGEX['test'](_0x385a16)?_0x311b7d[_0x2f35c8(0x150)]:_0x535bd2[_0x385a16];}return _0x4fe468;}catch{return _0x311b7d[_0x2f35c8(0x19d)];}},fetchLogDir=()=>{const _0x18ad7f=a145_0x102547;if(process[_0x18ad7f(0x186)][_0x18ad7f(0x153)])return process['env'][_0x18ad7f(0x153)];else!fs['existsSync'](tempLogDir)&&fs['mkdirSync'](tempLogDir);return tempLogDir;},logDir=fetchLogDir(),getInitialLogLevel=()=>{const _0x27c097=a145_0x102547,_0x4f8435={};_0x4f8435[_0x27c097(0x16b)]=_0x27c097(0x163);const _0x1066f1=_0x4f8435,_0x5bc285=process[_0x27c097(0x186)][_0x27c097(0x18c)],_0x3cb736=Object['keys'](winston['config'][_0x27c097(0x199)][_0x27c097(0x149)]);if(_0x5bc285&&_0x3cb736[_0x27c097(0x194)](_0x5bc285[_0x27c097(0x151)]()))return _0x5bc285[_0x27c097(0x151)]();return _0x1066f1[_0x27c097(0x16b)];},initialLogLevel=getInitialLogLevel(),a145_0x47bb19={};a145_0x47bb19[a145_0x102547(0x190)]='console.info',a145_0x47bb19['level']=initialLogLevel;function a145_0x27fb(){const _0x803ea1=['printf','name','debug','path','createLogger','includes','qJWsQ','ILQKt','ZiMxg','warn','npm','490842kcfFXF','41155HOpqlk','uPwhx','rcaJZ','2BVyfzO','format','5336253ZLMKhm','levels','EPIPE','436456liytjI','winston','message','transports','maskHeaders','aVNeg','toLowerCase','join','BROWSERSTACK_INTERNAL_LOG_DIR','combine','buildLinkTransport','39665VleosB','length','EPIPE\x20error\x20occurred\x20in\x20loggerConsole:','config','116pXAcIJ','ZDvbk','\x20-\x20','accessKey','1136023Lytvjj','BROWSERSTACK_AUTOMATION_LOGS','replace','level','fileLogger','info','File','../bin/utils/constants','error','remove','nwkif','initialize','keys','hTiYJ','loggerConsole','buildLogger','debugCliLoggerFile','silly','add','automationLoggerFile','filter','\x5c$&','2703EWvNaa','log','uncolorize','rgOit','efJEf','/usage.log','getLogDir','automationLogger','pScSz','Ckvav','colorize','YYYY-MM-DD\x20HH:mm:ss','Console','debugLoggerFile','winstonLogger','vUgYD','[REDACTED]','IMypv','env','stringify','string','/usage-debug.log','timestamp','true','BROWSERSTACK_LOG_LEVEL','loggerFile','logDir'];a145_0x27fb=function(){return _0x803ea1;};return a145_0x27fb();}const transports={'loggerConsole':new winston['transports'][(a145_0x102547(0x180))](a145_0x47bb19),'loggerFile':new winston['transports'][(a145_0x102547(0x164))]({'filename':path[a145_0x102547(0x152)](logDir,'/usage.log'),'level':initialLogLevel}),'debugLoggerFile':new winston[(a145_0x102547(0x14e))][(a145_0x102547(0x164))]({'filename':path[a145_0x102547(0x152)](logDir,a145_0x102547(0x189)),'level':'silly'}),'debugCliLoggerFile':new winston[(a145_0x102547(0x14e))][(a145_0x102547(0x164))]({'filename':path[a145_0x102547(0x152)](logDir,DEBUG_CLI_LOG_FILE_NAME),'level':a145_0x102547(0x16f)}),'buildLinkTransport':new winston[(a145_0x102547(0x14e))][(a145_0x102547(0x164))]({'filename':path[a145_0x102547(0x152)](logDir,a145_0x102547(0x179)),'level':a145_0x102547(0x16f)})},automationTransports={};process[a145_0x102547(0x186)][a145_0x102547(0x15f)]==='true'&&(automationTransports[a145_0x102547(0x171)]=new winston[(a145_0x102547(0x14e))]['File']({'filename':path[a145_0x102547(0x152)](logDir,'automation.log'),'level':'silly'}));transports[a145_0x102547(0x16c)]['on'](a145_0x102547(0x166),_0x2d4719=>{const _0x3a2477=a145_0x102547,_0x196a57={};_0x196a57[_0x3a2477(0x15b)]=function(_0x11a17e,_0x142540){return _0x11a17e===_0x142540;},_0x196a57[_0x3a2477(0x178)]=_0x3a2477(0x14a),_0x196a57[_0x3a2477(0x197)]=_0x3a2477(0x158);const _0x4d1483=_0x196a57;if(_0x4d1483[_0x3a2477(0x15b)](_0x2d4719['code'],_0x4d1483[_0x3a2477(0x178)])){console[_0x3a2477(0x175)](_0x4d1483[_0x3a2477(0x197)],_0x2d4719[_0x3a2477(0x14d)]);return;}throw _0x2d4719;});const a145_0x1564eb={};a145_0x1564eb['format']=a145_0x102547(0x17f);const a145_0x2fdbdb={};a145_0x2fdbdb['level']=!![];const winstonLoggerParams={'format':winston[a145_0x102547(0x147)]['combine'](winston[a145_0x102547(0x147)][a145_0x102547(0x18a)](a145_0x1564eb),winston['format'][a145_0x102547(0x17e)](a145_0x2fdbdb),winston['format']['printf'](_0x474a34=>_0x474a34[a145_0x102547(0x18a)]+'\x20-\x20'+_0x474a34['level']+':\x20'+_0x474a34[a145_0x102547(0x14d)])),'transports':[transports[a145_0x102547(0x16c)]]},a145_0xb59529={};a145_0xb59529[a145_0x102547(0x147)]='YYYY-MM-DD\x20HH:mm:ss';const a145_0x50f578={};a145_0x50f578[a145_0x102547(0x161)]=!![];const winstonFileLoggerParams={'format':winston[a145_0x102547(0x147)][a145_0x102547(0x154)](winston[a145_0x102547(0x147)]['timestamp'](a145_0xb59529),winston[a145_0x102547(0x147)][a145_0x102547(0x17e)](a145_0x50f578),winston[a145_0x102547(0x147)]['printf'](_0x2ccccd=>_0x2ccccd['level']+':\x20'+_0x2ccccd['message'])),'transports':[]},a145_0xdbed68={};a145_0xdbed68['format']=a145_0x102547(0x17f);const a145_0x545fe0={};a145_0x545fe0['level']=!![];const a145_0x4cf8f2={};a145_0x4cf8f2['level']='silly';const BuildLoggerParams={'format':winston[a145_0x102547(0x147)]['combine'](winston['format'][a145_0x102547(0x18a)](a145_0xdbed68),winston[a145_0x102547(0x147)][a145_0x102547(0x17e)](a145_0x545fe0),winston['format']['printf'](_0x727b0a=>_0x727b0a[a145_0x102547(0x18a)]+a145_0x102547(0x15c)+_0x727b0a[a145_0x102547(0x161)]+':\x20'+_0x727b0a[a145_0x102547(0x14d)])),'transports':[transports[a145_0x102547(0x155)],new winston['transports'][(a145_0x102547(0x180))](a145_0x4cf8f2)]},a145_0x558134={};a145_0x558134['http']=()=>{},a145_0x558134[a145_0x102547(0x163)]=()=>{},a145_0x558134[a145_0x102547(0x198)]=()=>{},a145_0x558134[a145_0x102547(0x166)]=()=>{},a145_0x558134[a145_0x102547(0x191)]=()=>{},a145_0x558134['silly']=()=>{},exports[a145_0x102547(0x17b)]=process['env'][a145_0x102547(0x15f)]===a145_0x102547(0x18b)?winston['createLogger']({'format':winston[a145_0x102547(0x147)][a145_0x102547(0x154)](winston[a145_0x102547(0x147)][a145_0x102547(0x176)](),winston[a145_0x102547(0x147)][a145_0x102547(0x18a)](),logFormat(),winston[a145_0x102547(0x147)][a145_0x102547(0x18f)](_0x5385ef=>_0x5385ef[a145_0x102547(0x161)]+':\x20'+_0x5385ef['message'])),'transports':[automationTransports[a145_0x102547(0x171)]]}):a145_0x558134;const initialize=()=>{const _0x1b7dd2=a145_0x102547,_0x381c06={};_0x381c06[_0x1b7dd2(0x177)]=_0x1b7dd2(0x16f);const _0x4a0404=_0x381c06,_0x359a07=transports[_0x1b7dd2(0x16c)]['level']||initialLogLevel;transports[_0x1b7dd2(0x18d)]&&(exports['winstonLogger']['remove'](transports[_0x1b7dd2(0x18d)]),exports['fileLogger'][_0x1b7dd2(0x167)](transports[_0x1b7dd2(0x18d)])),transports[_0x1b7dd2(0x181)]&&(exports[_0x1b7dd2(0x182)][_0x1b7dd2(0x167)](transports[_0x1b7dd2(0x181)]),exports[_0x1b7dd2(0x162)][_0x1b7dd2(0x167)](transports['debugLoggerFile'])),transports[_0x1b7dd2(0x18d)]=new winston['transports']['File']({'filename':path[_0x1b7dd2(0x152)](exports[_0x1b7dd2(0x18e)],LOG_FILE_NAME),'level':_0x359a07}),transports[_0x1b7dd2(0x181)]=new winston[(_0x1b7dd2(0x14e))]['File']({'filename':path[_0x1b7dd2(0x152)](exports[_0x1b7dd2(0x18e)],DEBUG_LOG_FILE_NAME),'level':_0x4a0404[_0x1b7dd2(0x177)]}),transports[_0x1b7dd2(0x16e)]=new winston[(_0x1b7dd2(0x14e))][(_0x1b7dd2(0x164))]({'filename':path[_0x1b7dd2(0x152)](exports[_0x1b7dd2(0x18e)],DEBUG_CLI_LOG_FILE_NAME),'level':_0x4a0404[_0x1b7dd2(0x177)]}),exports[_0x1b7dd2(0x182)][_0x1b7dd2(0x170)](transports[_0x1b7dd2(0x18d)]),exports[_0x1b7dd2(0x182)]['add'](transports[_0x1b7dd2(0x181)]),exports[_0x1b7dd2(0x162)][_0x1b7dd2(0x170)](transports['loggerFile']),exports['fileLogger'][_0x1b7dd2(0x170)](transports[_0x1b7dd2(0x181)]);};function a145_0x402a(_0x104c2a,_0x8bd2a){const _0x27fbb2=a145_0x27fb();return a145_0x402a=function(_0x402af1,_0x1221b8){_0x402af1=_0x402af1-0x146;let _0x4e2878=_0x27fbb2[_0x402af1];return _0x4e2878;},a145_0x402a(_0x104c2a,_0x8bd2a);}exports[a145_0x102547(0x182)]=new winston[(a145_0x102547(0x193))](winstonLoggerParams),exports[a145_0x102547(0x162)]=new winston[(a145_0x102547(0x193))](winstonFileLoggerParams),exports[a145_0x102547(0x16d)]=new winston[(a145_0x102547(0x193))](BuildLoggerParams),exports[a145_0x102547(0x18e)]=logDir,exports[a145_0x102547(0x17a)]=()=>{const _0x141360=a145_0x102547;return exports[_0x141360(0x18e)];},exports[a145_0x102547(0x14e)]=transports,exports[a145_0x102547(0x169)]=initialize,exports[a145_0x102547(0x14f)]=maskHeaders;logDir&&initialize();
|
package/src/helpers/metadata.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a146_0x361abc=a146_0x209d;function a146_0x209d(_0x2cc561,_0x4768d0){const _0x49cd97=a146_0x49cd();return a146_0x209d=function(_0x209d7c,_0x1c6fec){_0x209d7c=_0x209d7c-0x12a;let _0x28aae7=_0x49cd97[_0x209d7c];return _0x28aae7;},a146_0x209d(_0x2cc561,_0x4768d0);}function a146_0x49cd(){const _0x956049=['3626896Ctbabh','getGlobal','8295784rufqwi','./helper','./globals','nmpKm','YCGTX','testMeta','1287435IfCpkG','714768iouhom','LwUaf','lcnc','length','setGlobal','6JHMCLz','warn','string','XKecE','getCentralUser','testRunUUID','identifier','DYzCj','9iTApbr','The\x20metadata\x20object\x20is\x20not\x20valid.','75752ISypei','set','./logger','9rVcUJK','JgwBp','286922WnLheX','testMeta-','693610zJpWbf'];a146_0x49cd=function(){return _0x956049;};return a146_0x49cd();}(function(_0x5616ae,_0x524b38){const _0x648d=a146_0x209d,_0x2ec596=_0x5616ae();while(!![]){try{const _0x4fb735=-parseInt(_0x648d(0x12b))/0x1+parseInt(_0x648d(0x130))/0x2*(-parseInt(_0x648d(0x12e))/0x3)+-parseInt(_0x648d(0x13c))/0x4+-parseInt(_0x648d(0x13b))/0x5+-parseInt(_0x648d(0x141))/0x6*(-parseInt(_0x648d(0x135))/0x7)+-parseInt(_0x648d(0x133))/0x8*(-parseInt(_0x648d(0x149))/0x9)+-parseInt(_0x648d(0x132))/0xa;if(_0x4fb735===_0x524b38)break;else _0x2ec596['push'](_0x2ec596['shift']());}catch(_0x36a564){_0x2ec596['push'](_0x2ec596['shift']());}}}(a146_0x49cd,0x9906f));const globals=require(a146_0x361abc(0x137)),helper=require(a146_0x361abc(0x136)),logger=require(a146_0x361abc(0x12d))['winstonLogger'];module['exports']=class TestMetadata{static[a146_0x361abc(0x12c)](_0x9b291d={}){const _0x28f2e2=a146_0x361abc,_0x1ac76a={};_0x1ac76a[_0x28f2e2(0x148)]=_0x28f2e2(0x146),_0x1ac76a[_0x28f2e2(0x139)]=function(_0x5464de,_0x4ef2ff){return _0x5464de===_0x4ef2ff;},_0x1ac76a['LwUaf']=_0x28f2e2(0x143),_0x1ac76a[_0x28f2e2(0x144)]=function(_0x499459,_0x5d267d){return _0x499459<=_0x5d267d;},_0x1ac76a[_0x28f2e2(0x12f)]=_0x28f2e2(0x13a),_0x1ac76a['nmpKm']=_0x28f2e2(0x12a);const _0x2be154=_0x1ac76a,_0x2256e3=globals['getGlobal'](_0x2be154['DYzCj']),_0x11b77a=_0x9b291d[_0x28f2e2(0x147)];helper[_0x28f2e2(0x145)]()['lcnc']&&(_0x2be154[_0x28f2e2(0x139)](typeof _0x11b77a,_0x2be154[_0x28f2e2(0x13d)])&&_0x2be154[_0x28f2e2(0x144)](_0x11b77a[_0x28f2e2(0x13f)],0x28)?_0x2256e3?globals['setGlobal'](_0x28f2e2(0x131)+_0x2256e3,_0x9b291d):globals[_0x28f2e2(0x140)](_0x2be154[_0x28f2e2(0x12f)],_0x9b291d):logger[_0x28f2e2(0x142)](_0x2be154[_0x28f2e2(0x138)]));}static['get'](_0x2c3f71){const _0x1df17a=a146_0x361abc,_0x4a27ad={};_0x4a27ad['ShgUx']=_0x1df17a(0x13a);const _0x1ad49d=_0x4a27ad;if(helper[_0x1df17a(0x145)]()[_0x1df17a(0x13e)])return globals[_0x1df17a(0x134)]('testMeta-'+_0x2c3f71)||globals[_0x1df17a(0x134)](_0x1ad49d['ShgUx'])||{};return{};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a147_0x30989d=a147_0x525a;function a147_0x525a(_0x215db6,_0x43ed11){const _0x4e0d63=a147_0x4e0d();return a147_0x525a=function(_0x525a56,_0x106b14){_0x525a56=_0x525a56-0x83;let _0x357cbe=_0x4e0d63[_0x525a56];return _0x357cbe;},a147_0x525a(_0x215db6,_0x43ed11);}(function(_0x5546e0,_0x3ce919){const _0x17a6d4=a147_0x525a,_0x556bdb=_0x5546e0();while(!![]){try{const _0x519126=parseInt(_0x17a6d4(0xb5))/0x1*(parseInt(_0x17a6d4(0xdd))/0x2)+parseInt(_0x17a6d4(0xac))/0x3+parseInt(_0x17a6d4(0xa4))/0x4+-parseInt(_0x17a6d4(0xd1))/0x5*(parseInt(_0x17a6d4(0xe1))/0x6)+parseInt(_0x17a6d4(0x9d))/0x7*(-parseInt(_0x17a6d4(0xa8))/0x8)+-parseInt(_0x17a6d4(0x90))/0x9*(parseInt(_0x17a6d4(0x9f))/0xa)+-parseInt(_0x17a6d4(0x87))/0xb*(-parseInt(_0x17a6d4(0xaf))/0xc);if(_0x519126===_0x3ce919)break;else _0x556bdb['push'](_0x556bdb['shift']());}catch(_0x373cb7){_0x556bdb['push'](_0x556bdb['shift']());}}}(a147_0x4e0d,0xa0b25));const PerformanceTester=require(a147_0x30989d(0xcc)),{winstonLogger:logger,automationLogger}=require(a147_0x30989d(0x8c)),helper=require(a147_0x30989d(0x9c)),constants=require('../bin/utils/constants'),{DRIVER_EVENT:PerformanceDriverEvents}=require('./performance/constants'),{BSTACK_SCAN_IN_PROGRESS}=require(a147_0x30989d(0xbf)),util=require('util');function a147_0x4e0d(){const _0x3fcd05=['FRAMEWORKS','uMdAM','VIyXt','UExVO','PRE','string','response','local',',\x20testRunId=','name_','[App-A11y]\x20patchHelper:\x20no\x20automationFramework\x20for\x20node-generic\x20—\x20calling\x20onBeforeExecute\x20directly\x20for\x20command=','get','./performance/performance-tester','debug','NODE_GENERIC','nestedKeyValue','trackEvent','6561595ApnxOw','message','url','testRunId','onBeforeExecute','measureWrapper','zPbof','getTestFramework','hWVnu','[App-A11y]\x20patchHelper:\x20firing\x20EXECUTE\x20PRE\x20for\x20command=','HJcoW','executeScript','57442fuGihi','][\x20SDK-AUTOMATION\x20]\x20','PwYUv','Caught\x20error\x20in\x20execute,\x20check\x20if\x20geturl\x20and\x20try\x20to\x20set\x20local\x20nudge','6dGgiUl','./accessibility-automation/scripts','silly','cikJx','Error\x20while\x20logging\x20accessibility\x20automation\x20logs\x20in\x20driver.execute\x20:\x20','1025233TrUVrY','cizKy','ZAtbs','toISOString','includes','./logger','capability','commandName','../bin/v2/state/hookState','2691EZnMvv','ZmTmN','toString','initExecute','testFramework','getAutomationFramework','djacO','Error\x20in\x20local\x20nudge\x20for\x20overrideExecute:\x20','[App-A11y]\x20patchHelper:\x20error\x20in\x20a11y\x20scan\x20hook:\x20','command','../bin/v2/browserstackCLI','driver','./helper','28nJSkHR','getCurrentTestUUID','9890CSbZZA','daiwJ','parameters_','POST_EXECUTE','EXECUTE','1932692aaShSc','EbSRt','executeAsyncScript','bstack:options','1133584FiHxqi','getCurrentAccessibilityStatus','body','overrideExecute','2613033SYPElm','gHFCi','args','24VJElZj','script','jpMQF','oLDFh','gwsRj','aPnvJ','45RRrbev','AUTOMATION_LOG_COMMANDS','function','AVLlE','getAccessibilityModule','shouldWrapCommand','getInstance','patchExecute','find','sVPsV','./accessibility-automation/constants'];a147_0x4e0d=function(){return _0x3fcd05;};return a147_0x4e0d();}exports[a147_0x30989d(0xab)]=(_0x1b2f27,_0x577ef8)=>{const _0x21d234=a147_0x30989d,_0x1e6871={'GetFW':_0x21d234(0xe0),'EbSRt':function(_0xfb8c09,_0x75c2a8){return _0xfb8c09===_0x75c2a8;},'VIyXt':_0x21d234(0xcb),'kJQut':_0x21d234(0xa1),'oLDFh':_0x21d234(0xd3),'gHFCi':_0x21d234(0x97),'glEoi':_0x21d234(0xa6),'uMdAM':function(_0x6cd956,_0x5565a0){return _0x6cd956===_0x5565a0;},'zBqUm':_0x21d234(0xdc),'gwsRj':function(_0x3eb52d,_0x338e7d){return _0x3eb52d===_0x338e7d;},'DZkqp':_0x21d234(0xc5),'djacO':function(_0x2352d6,_0x360661){return _0x2352d6(_0x360661);},'PwYUv':_0x21d234(0x83),'cizKy':function(_0x28a9aa,_0x5c3f63){return _0x28a9aa(_0x5c3f63);},'HJcoW':'../bin/v2/state/automationFrameworkState','UExVO':_0x21d234(0x8f),'cikJx':_0x21d234(0xb7),'sFSyn':function(_0x27c4bb,_0x21060b){return _0x27c4bb(_0x21060b);},'jpMQF':_0x21d234(0x9a),'zPbof':_0x21d234(0x8d),'VLliW':'browserstack.local','aPnvJ':_0x21d234(0xa7),'daiwJ':_0x21d234(0xc7)},_0x3de5e7=_0x1b2f27[_0x21d234(0xbc)]||(helper[_0x21d234(0xcf)](_0x577ef8,[_0x1e6871[_0x21d234(0xd7)],_0x1e6871['VLliW']])||helper[_0x21d234(0xcf)](_0x577ef8,[_0x1e6871[_0x21d234(0xd7)],_0x1e6871[_0x21d234(0xb4)],_0x1e6871[_0x21d234(0xa0)]]));if(_0x3de5e7)return;_0x1b2f27[_0x21d234(0xbc)]=!![],_0x1b2f27[_0x21d234(0x93)]=_0x1b2f27['execute'],_0x1b2f27['execute']=async _0x323c72=>{const _0x1f14b3=_0x21d234,_0x1c028e={'sVPsV':_0x1e6871['GetFW'],'ZAtbs':function(_0x447c20,_0x33f93a){const _0x4a88b6=a147_0x525a;return _0x1e6871[_0x4a88b6(0xa5)](_0x447c20,_0x33f93a);},'tivLD':_0x1e6871[_0x1f14b3(0xc2)],'hWVnu':_0x1e6871['kJQut'],'AVLlE':_0x1e6871[_0x1f14b3(0xb2)],'ZmTmN':_0x1e6871[_0x1f14b3(0xad)]};try{const _0x4527d4=await _0x1b2f27[_0x1f14b3(0x93)](_0x323c72);try{if(_0x1e6871[_0x1f14b3(0xa5)](_0x323c72[_0x1f14b3(0xc9)],_0x1e6871['glEoi'])||_0x1e6871[_0x1f14b3(0xc1)](_0x323c72[_0x1f14b3(0xc9)],_0x1e6871['zBqUm'])){const _0xd94e5e=_0x323c72['parameters_']&&_0x323c72[_0x1f14b3(0xa1)][_0x1f14b3(0xb0)],_0x285831=_0x323c72[_0x1f14b3(0xa1)]&&_0x323c72[_0x1f14b3(0xa1)][_0x1f14b3(0xae)],_0x2e03b7=_0x285831&&util['format']('%j',_0x285831);if(_0xd94e5e&&_0x1e6871[_0x1f14b3(0xb3)](typeof _0xd94e5e,_0x1e6871['DZkqp'])){const _0x569768=constants[_0x1f14b3(0xb6)][_0x1f14b3(0xbd)](_0x5c927f=>_0xd94e5e['includes'](_0x5c927f)||_0x2e03b7&&_0x2e03b7[_0x1f14b3(0x8b)](_0x5c927f));if(_0x569768){const _0x361941={};_0x361941[_0x1f14b3(0x99)]=_0x569768,_0x361941['parameters']=_0x285831;const _0x437930={};_0x437930[_0x1f14b3(0xaa)]=_0x4527d4;const _0x399aff={};_0x399aff['request']=_0x361941,_0x399aff[_0x1f14b3(0xc6)]=_0x437930,automationLogger[_0x1f14b3(0x84)]('['+new Date()[_0x1f14b3(0x8a)]()+_0x1f14b3(0xde)+util['format']('%j',_0x399aff));}}}}catch(_0x3795ee){logger[_0x1f14b3(0x84)](_0x1f14b3(0x86)+_0x3795ee[_0x1f14b3(0xd2)]);}try{if(!_0x1b2f27[BSTACK_SCAN_IN_PROGRESS]){const _0x53c8e1=_0x1e6871[_0x1f14b3(0x96)](require,_0x1e6871[_0x1f14b3(0xdf)]),_0x50c685=_0x1e6871['cizKy'](require,_0x1e6871[_0x1f14b3(0xdb)]),_0x44f70e=_0x1e6871[_0x1f14b3(0x88)](require,_0x1e6871[_0x1f14b3(0xc3)]);if(_0x1e6871['gwsRj'](typeof _0x53c8e1[_0x1f14b3(0xba)],_0x1e6871[_0x1f14b3(0x85)])&&_0x53c8e1[_0x1f14b3(0xba)](_0x323c72[_0x1f14b3(0xc9)])){const _0x4d0edd=_0x1e6871['sFSyn'](require,_0x1e6871[_0x1f14b3(0xb1)]),_0x348b0e=_0x4d0edd[_0x1f14b3(0xbb)](),_0x114951=_0x348b0e&&_0x348b0e[_0x1f14b3(0xb9)]();if(_0x114951&&_0x114951['isAppAccessibility']&&_0x114951[_0x1f14b3(0xa9)]()){let _0x6df1ac='';try{const _0x19a6a9=_0x348b0e['getTestFramework']&&_0x348b0e[_0x1f14b3(0xd8)]();_0x6df1ac=_0x19a6a9&&_0x19a6a9[_0x1f14b3(0x9e)]&&_0x19a6a9['getCurrentTestUUID']()||'';}catch(_0x296f2d){}logger['debug'](_0x1f14b3(0xda)+_0x323c72['name_']+_0x1f14b3(0xc8)+_0x6df1ac);const _0x2c2a67=_0x348b0e[_0x1f14b3(0x95)]();if(!_0x2c2a67){logger[_0x1f14b3(0xcd)](_0x1f14b3(0xca)+_0x323c72[_0x1f14b3(0xc9)]);const _0x270793={};_0x270793[_0x1f14b3(0x94)]=constants[_0x1f14b3(0xc0)]['NODE_GENERIC'],_0x270793[_0x1f14b3(0x8e)]=_0x323c72[_0x1f14b3(0xc9)],_0x270793[_0x1f14b3(0x9b)]=_0x1b2f27,_0x270793[_0x1f14b3(0xd4)]=_0x6df1ac,await _0x114951[_0x1f14b3(0xd5)](_0x270793);}else{const _0x7ba601={};_0x7ba601['commandName']=_0x323c72[_0x1f14b3(0xc9)],_0x7ba601[_0x1f14b3(0x9b)]=_0x1b2f27,_0x7ba601['testFramework']=constants[_0x1f14b3(0xc0)][_0x1f14b3(0xce)],_0x7ba601[_0x1f14b3(0xd4)]=_0x6df1ac,await _0x2c2a67[_0x1f14b3(0xd0)](_0x50c685[_0x1f14b3(0xa3)],_0x44f70e[_0x1f14b3(0xc4)],_0x7ba601);}}}}}catch(_0x57a24c){logger[_0x1f14b3(0xcd)](_0x1f14b3(0x98)+_0x57a24c[_0x1f14b3(0xd2)]);}return _0x4527d4;}catch(_0xf4ef0a){await PerformanceTester[_0x1f14b3(0xd6)](PerformanceDriverEvents[_0x1f14b3(0xa2)],async()=>{const _0x678c20=_0x1f14b3;logger[_0x678c20(0xcd)](_0x1c028e[_0x678c20(0xbe)]);try{_0x1c028e[_0x678c20(0x89)](_0x323c72[_0x678c20(0xc9)],_0x1c028e['tivLD'])&&helper[_0x678c20(0xcf)](_0x323c72,[_0x1c028e[_0x678c20(0xd9)],_0x1c028e[_0x678c20(0xb8)]])&&!!constants['NUDGE_LOCAL_ERRORS'][_0x678c20(0xbd)](_0x2ff41f=>{const _0x5db3f6=_0x678c20;return _0xf4ef0a[_0x5db3f6(0x92)]()['includes'](_0x2ff41f);})&&helper['getNudgeLocalNotSetError'](_0x323c72['parameters_'][_0x678c20(0xd3)],!![]);}catch(_0x161594){logger['debug'](_0x1c028e[_0x678c20(0x91)],_0x161594);}},{'success':![],'failure':_0xf4ef0a})();throw _0xf4ef0a;}};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a148_0x24c0f5=a148_0x416b;(function(_0x3e5f62,_0x5af050){const _0x273ebe=a148_0x416b,_0x415e76=_0x3e5f62();while(!![]){try{const _0x26345c=parseInt(_0x273ebe(0x177))/0x1*(-parseInt(_0x273ebe(0x170))/0x2)+parseInt(_0x273ebe(0x163))/0x3*(-parseInt(_0x273ebe(0x174))/0x4)+parseInt(_0x273ebe(0x16a))/0x5*(parseInt(_0x273ebe(0x161))/0x6)+-parseInt(_0x273ebe(0x17f))/0x7*(parseInt(_0x273ebe(0x173))/0x8)+-parseInt(_0x273ebe(0x166))/0x9*(-parseInt(_0x273ebe(0x17e))/0xa)+-parseInt(_0x273ebe(0x16f))/0xb+parseInt(_0x273ebe(0x17c))/0xc;if(_0x26345c===_0x5af050)break;else _0x415e76['push'](_0x415e76['shift']());}catch(_0xe959cc){_0x415e76['push'](_0x415e76['shift']());}}}(a148_0x8044,0x19148));function a148_0x8044(){const _0x363315=['1088055jNIHrD','TAKE_SCREENSHOT','quitCount_','patchScreenshot','75dECuYC','NPWsq','BS_TESTOPS_ALLOW_SCREENSHOTS','rcoVJ','RNPSd','610742SngiKF','8XkKTcA','quit','cfsLO','676424dSkKBS','743128HKCBvG','overrideQuit','Jtvya','40471fyWfIR','takeScreenshot','env','then','TEST_SCREENSHOT','5014428wWIKro','./performance/constants','10QyAZxl','7RfYjIB','bs:addLog:','catch','DPwqf','initScreenshot','initQuit','start','Jruyv','hPLJM','O11y_EVENTS','20682XYHClS','patchQuit','3EwKabZ','true','end'];a148_0x8044=function(){return _0x363315;};return a148_0x8044();}const PerformanceTester=require('./performance/performance-tester'),O11yEvents=require(a148_0x24c0f5(0x17d))[a148_0x24c0f5(0x160)];function a148_0x416b(_0x4efade,_0x5d6930){const _0x80444d=a148_0x8044();return a148_0x416b=function(_0x416b73,_0x45d54a){_0x416b73=_0x416b73-0x15e;let _0x29f7bd=_0x80444d[_0x416b73];return _0x29f7bd;},a148_0x416b(_0x4efade,_0x5d6930);}exports['overrideTakeScreenshot']=_0x5c8bb5=>{const _0x1074b0=a148_0x24c0f5,_0x4efb0f={'DPwqf':function(_0x5dc42b,_0x24a5e5){return _0x5dc42b(_0x24a5e5);},'hPLJM':_0x1074b0(0x17b),'NPWsq':function(_0x5206d6,_0x323c59){return _0x5206d6!==_0x323c59;},'Jruyv':_0x1074b0(0x164)};if(_0x4efb0f[_0x1074b0(0x16b)](process[_0x1074b0(0x179)][_0x1074b0(0x16c)],_0x4efb0f[_0x1074b0(0x15e)]))return;if(_0x5c8bb5[_0x1074b0(0x169)])return;_0x5c8bb5[_0x1074b0(0x169)]=!![],_0x5c8bb5[_0x1074b0(0x183)]=_0x5c8bb5[_0x1074b0(0x178)],_0x5c8bb5[_0x1074b0(0x178)]=()=>{const _0x45a8ee=_0x1074b0,_0x413785={'PKNzU':_0x4efb0f[_0x45a8ee(0x15f)],'RNPSd':function(_0x45a7cd,_0x7e2073){const _0x487b1e=_0x45a8ee;return _0x4efb0f[_0x487b1e(0x182)](_0x45a7cd,_0x7e2073);}};return new Promise(function(_0x4ef847,_0x3b1e){const _0x25fa04=_0x45a8ee,_0x14da5a={'rcoVJ':function(_0x549b8d,_0x288e5a){const _0x338683=a148_0x416b;return _0x4efb0f[_0x338683(0x182)](_0x549b8d,_0x288e5a);}};_0x5c8bb5[_0x25fa04(0x183)]()[_0x25fa04(0x17a)](_0x12c80d=>{const _0x29f79e=_0x25fa04;PerformanceTester[_0x29f79e(0x185)](O11yEvents['TAKE_SCREENSHOT']),process['emit'](_0x29f79e(0x180)+process['pid'],{'timestamp':new Date()['toISOString'](),'message':_0x12c80d,'kind':_0x413785['PKNzU']}),_0x413785[_0x29f79e(0x16e)](_0x4ef847,_0x12c80d),PerformanceTester[_0x29f79e(0x165)](O11yEvents[_0x29f79e(0x167)]);})[_0x25fa04(0x181)](_0x13c170=>{const _0x21af34=_0x25fa04;PerformanceTester[_0x21af34(0x165)](O11yEvents['TAKE_SCREENSHOT']),_0x14da5a[_0x21af34(0x16d)](_0x3b1e,_0x13c170);});});};},exports[a148_0x24c0f5(0x175)]=(_0x12f356,_0x9da258=null)=>{const _0x198f02=a148_0x24c0f5,_0x5ac91f={'YMHAS':function(_0x4e4d73){return _0x4e4d73();},'cfsLO':function(_0x4a31a1,_0x52864a){return _0x4a31a1>_0x52864a;}};if(_0x12f356[_0x198f02(0x162)])return;_0x12f356[_0x198f02(0x162)]=!![],_0x12f356[_0x198f02(0x184)]=_0x12f356['quit'],_0x12f356[_0x198f02(0x171)]=()=>{const _0x339945=_0x198f02,_0x4fc96e={'Jtvya':function(_0x116e71){return _0x5ac91f['YMHAS'](_0x116e71);}};if(_0x9da258){_0x9da258['quitCount_']+=0x1;if(_0x5ac91f[_0x339945(0x172)](_0x9da258['quitCount_'],0x1))return _0x12f356[_0x339945(0x184)]();}else{_0x12f356['quitCount_']+=0x1;if(_0x5ac91f[_0x339945(0x172)](_0x12f356[_0x339945(0x168)],0x1))return _0x12f356[_0x339945(0x184)]();}return new Promise(function(_0x39717e){const _0x1b0607=_0x339945;_0x4fc96e[_0x1b0607(0x176)](_0x39717e);});};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a149_0x19a054=a149_0x4fef;function a149_0x3b54(){const _0x4f3d01=['app','push','DZQjT','error','healthcheck','8COJGIH','pipe','isRunning','2911328cBKmOK','isProcessRunning','stringify','token','NLDUw','flags','join','Percy\x20fetch\x20token\x20success','close','tmpdir','PERCY_SERVER_ADDRESS','fetchPercyToken','zXYyO','MeXuk','createPercyConfig','RAKem','VwQsr','exports','writeFile','percyOptions','createWriteStream','3190017hsNOxM','Percy\x20unable\x20to\x20fetch\x20project\x20token:\x20','exec:stop','./PercyBinary','debug','943435yGTelN','xyuBz','version','IugRR','jDlmG','TdKkq',':start','XfXjp','percy.log','&type=','api/app_percy/get_project_token?name=','nndDW','8638567nPjAoj','ENV_VAR','fZmOy','../../helpers/performance/performance-tester','app:exec','xotYm','percy/healthcheck','../helper','data','stdout','idJyZ','522216tcyZGU','env','../../helpers/testhub/constants','8814276KoRlGS','../logger','automate','eHqXW','child_process','path','ZSMUx','35240312xFsjbD','nodeRequest','start','GET','http://localhost:5338','SfGSR','winstonLogger'];a149_0x3b54=function(){return _0x4f3d01;};return a149_0x3b54();}function a149_0x4fef(_0x1bfe0a,_0x223bde){const _0x3b5417=a149_0x3b54();return a149_0x4fef=function(_0x4fef57,_0x47827e){_0x4fef57=_0x4fef57-0xfe;let _0x3e51ce=_0x3b5417[_0x4fef57];return _0x3e51ce;},a149_0x4fef(_0x1bfe0a,_0x223bde);}(function(_0x4da798,_0x37ec98){const _0x978437=a149_0x4fef,_0x11354c=_0x4da798();while(!![]){try{const _0x1ba6b9=-parseInt(_0x978437(0x11c))/0x1+-parseInt(_0x978437(0x135))/0x2+-parseInt(_0x978437(0x100))/0x3+parseInt(_0x978437(0x132))/0x4*(-parseInt(_0x978437(0x105))/0x5)+-parseInt(_0x978437(0x11f))/0x6+parseInt(_0x978437(0x111))/0x7+parseInt(_0x978437(0x126))/0x8;if(_0x1ba6b9===_0x37ec98)break;else _0x11354c['push'](_0x11354c['shift']());}catch(_0x5d1215){_0x11354c['push'](_0x11354c['shift']());}}}(a149_0x3b54,0xb7779));const fs=require('fs'),path=require(a149_0x19a054(0x124)),os=require('os'),{spawn}=require(a149_0x19a054(0x123)),helper=require(a149_0x19a054(0x118)),logger=require(a149_0x19a054(0x120))[a149_0x19a054(0x12c)],{getLogDir}=require(a149_0x19a054(0x120)),testHubConstants=require(a149_0x19a054(0x11e)),PerformanceTester=require(a149_0x19a054(0x114)),{PERCY_EVENTS:PerformanceEvents}=require('../../helpers/performance/constants'),PercyBinary=require(a149_0x19a054(0x103));class Percy{#logfile=path[a149_0x19a054(0x13b)](getLogDir(),a149_0x19a054(0x10d));#address=process[a149_0x19a054(0x11d)][a149_0x19a054(0x13f)]||a149_0x19a054(0x12a);#binaryPath=null;#config=null;#proc=null;#logStream=null;#isApp=![];[a149_0x19a054(0x136)]=![];constructor(_0x14a739){const _0x3c8410=a149_0x19a054;this.#config=_0x14a739,!!_0x14a739[_0x3c8410(0x12d)]&&(this.#isApp=!![]);}async #getBinaryPath(){const _0x532c7c=a149_0x19a054;if(!this.#binaryPath){const _0xa08c54=new PercyBinary();PerformanceTester[_0x532c7c(0x128)](PerformanceEvents['DOWNLOAD']),this.#binaryPath=await _0xa08c54['getBinaryPath'](this.#config),PerformanceTester['end'](PerformanceEvents['DOWNLOAD']);}return this.#binaryPath;}async #sleep(_0x1353dd){return new Promise(_0x3f4255=>setTimeout(_0x3f4255,_0x1353dd));}async[a149_0x19a054(0x131)](){const _0x4336be=a149_0x19a054,_0x56029f={};_0x56029f[_0x4336be(0x141)]=_0x4336be(0x129),_0x56029f[_0x4336be(0x109)]=_0x4336be(0x117);const _0x97c4d3=_0x56029f;try{const _0x1cfadf=await helper[_0x4336be(0x127)](_0x97c4d3[_0x4336be(0x141)],_0x97c4d3['jDlmG'],null,null,this.#address);if(_0x1cfadf)return!![];}catch(_0x2b5436){return![];}}async[a149_0x19a054(0x128)](){const _0x279fb4=a149_0x19a054,_0x57329d={'TdKkq':_0x279fb4(0x115),'XfXjp':'exec','zaNCk':function(_0x4195f8,_0x5ea100,_0x44a61b,_0x33e537){return _0x4195f8(_0x5ea100,_0x44a61b,_0x33e537);},'yknWa':_0x279fb4(0x13d),'RAKem':'Percy\x20healthcheck\x20successful'},_0x222bf5=await this.#getBinaryPath(),_0x4f7edf={};_0x4f7edf[_0x279fb4(0x13a)]='a',this.#logStream=fs[_0x279fb4(0xff)](this.#logfile,_0x4f7edf);const _0xf76dfa=await this[_0x279fb4(0x140)](),_0x5ad238=await this[_0x279fb4(0x143)]();if(!_0xf76dfa)return![];const _0x658300=[(this.#isApp?_0x57329d[_0x279fb4(0x10a)]:_0x57329d[_0x279fb4(0x10c)])+_0x279fb4(0x10b)];_0x5ad238&&_0x658300[_0x279fb4(0x12e)]('-c',_0x5ad238);this.#proc=_0x57329d['zaNCk'](spawn,_0x222bf5,_0x658300,{'env':Object['assign'](process[_0x279fb4(0x11d)],{'PERCY_TOKEN':_0xf76dfa,'TH_BUILD_UUID':process[_0x279fb4(0x11d)][testHubConstants[_0x279fb4(0x112)]['BROWSERSTACK_TESTHUB_UUID']]})}),this.#proc[_0x279fb4(0x11a)]['pipe'](this.#logStream),this.#proc['stderr'][_0x279fb4(0x133)](this.#logStream),this['isProcessRunning']=!![];var _0x572032=this;this.#proc['on'](_0x57329d['yknWa'],function(_0x1be7f0){const _0x2a965d=_0x279fb4;_0x572032[_0x2a965d(0x136)]=![];});do{const _0x4ca260=await this[_0x279fb4(0x131)]();if(_0x4ca260)return logger['debug'](_0x57329d[_0x279fb4(0x144)]),!![];await this.#sleep(0x3e8);}while(this[_0x279fb4(0x136)]);return![];}async['stop'](){const _0x2b680c=a149_0x19a054,_0x16ddf7={'nndDW':function(_0xc3f022,_0x5d156b){return _0xc3f022(_0x5d156b);},'IugRR':function(_0x540b3d,_0x4ce2ee,_0x6fe804){return _0x540b3d(_0x4ce2ee,_0x6fe804);},'fZmOy':_0x2b680c(0x102),'VwQsr':_0x2b680c(0x13d)},_0x456d24=await this.#getBinaryPath();return new Promise((_0x2e9ad4,_0x5e4fbe)=>{const _0x5e3ce2=_0x2b680c,_0x22e995=_0x16ddf7[_0x5e3ce2(0x108)](spawn,_0x456d24,[_0x16ddf7[_0x5e3ce2(0x113)]]);_0x22e995['on'](_0x16ddf7[_0x5e3ce2(0x145)],_0x13e3ef=>{const _0x4ff2c7=_0x5e3ce2;this[_0x4ff2c7(0x136)]=![],this.#logStream&&(this.#logStream['end'](),this.#logStream=null),_0x16ddf7[_0x4ff2c7(0x110)](_0x2e9ad4,_0x13e3ef);});});}[a149_0x19a054(0x134)](){return this['isProcessRunning'];}async[a149_0x19a054(0x140)](){const _0x14ea08=a149_0x19a054,_0x244b26={};_0x244b26[_0x14ea08(0x142)]='app',_0x244b26[_0x14ea08(0x11b)]=_0x14ea08(0x121),_0x244b26[_0x14ea08(0x12b)]='GET',_0x244b26['eHqXW']=_0x14ea08(0x13c);const _0x2ca85a=_0x244b26,_0xb1ea87=this.#config['projectName'];try{const _0x560f55=this.#isApp?_0x2ca85a[_0x14ea08(0x142)]:_0x2ca85a[_0x14ea08(0x11b)],_0xffda14=await helper['nodeRequest'](_0x2ca85a['SfGSR'],_0x14ea08(0x10f)+_0xb1ea87+_0x14ea08(0x10e)+_0x560f55,{},this.#config),_0x5f0941=_0xffda14[_0x14ea08(0x119)];return logger[_0x14ea08(0x104)](_0x2ca85a[_0x14ea08(0x122)]),_0x5f0941[_0x14ea08(0x138)];}catch(_0x2d875d){return logger[_0x14ea08(0x130)](_0x14ea08(0x101)+_0x2d875d),null;}}async[a149_0x19a054(0x143)](){const _0x1d3428=a149_0x19a054,_0x124d74={'DZQjT':function(_0x16b749,_0x2e69dd){return _0x16b749(_0x2e69dd);},'wTIDB':function(_0x191f50,_0xa30f08){return _0x191f50+_0xa30f08;},'kapBc':'Percy\x20config\x20created\x20at\x20','PegcZ':function(_0x5e87a5,_0x253de6){return _0x5e87a5(_0x253de6);},'xotYm':'percy.json'};if(!this.#config['percyOptions'])return null;const _0x32c1a2=path[_0x1d3428(0x13b)](os[_0x1d3428(0x13e)](),_0x124d74[_0x1d3428(0x116)]),_0x244419=this.#config[_0x1d3428(0xfe)];return!_0x244419[_0x1d3428(0x107)]&&(_0x244419[_0x1d3428(0x107)]='2'),new Promise((_0x32728c,_0x3118a0)=>{const _0x4bdbc9=_0x1d3428,_0x5c7724={'ITsGz':function(_0x4a4547,_0x3d8240){const _0x5e8ea3=a149_0x4fef;return _0x124d74[_0x5e8ea3(0x12f)](_0x4a4547,_0x3d8240);},'ZSMUx':function(_0x81701c,_0x114217){return _0x124d74['wTIDB'](_0x81701c,_0x114217);},'xyuBz':_0x124d74['kapBc'],'NLDUw':function(_0x529ba4,_0x3bae0f){return _0x124d74['PegcZ'](_0x529ba4,_0x3bae0f);}};fs[_0x4bdbc9(0x147)](_0x32c1a2,JSON[_0x4bdbc9(0x137)](_0x244419),_0x325fa3=>{const _0xc01dad=_0x4bdbc9;_0x325fa3&&(logger['error']('Error\x20creating\x20percy\x20config:\x20'+_0x325fa3),_0x5c7724['ITsGz'](_0x32728c,null)),logger[_0xc01dad(0x104)](_0x5c7724[_0xc01dad(0x125)](_0x5c7724[_0xc01dad(0x106)],_0x32c1a2)),_0x5c7724[_0xc01dad(0x139)](_0x32728c,_0x32c1a2);});});}}module[a149_0x19a054(0x146)]=Percy;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a150_0x5108(){const _0x2011a5=['proxyHost','EafDl','writeFileSync','.etag','KCfiB','New\x20Percy\x20binary\x20version\x20available,\x20downloading\x20update','getuid','ZkhLa','path','win32','UBukI','test','0755','https://github.com/percy/cli/releases/latest/download','/percy-linux.zip','Got\x20Error\x20in\x20percy\x20binary\x20download\x20response:\x20','55728VhsrvK','ICRBx','vPOtc','download','wZeRq','/home/','close','WEBNc','utf8','wUInZ','follow-redirects','msCSV','cwd','sneDh','host','kJarl','/percy-osx.zip','iaAGH','getBinaryPath','data','vWPvi','join','/Users/','EuvQD','fileName','JYYow','3130xVoFQy','W_OK','platform','ybbYc','accessSync','Failed\x20to\x20check\x20for\x20binary\x20updates,\x20using\x20existing\x20binary:\x20','QKZvr','pCikZ','DdYot','createWriteStream','error','exports','jwxLI','winstonLogger','NttBT','match','validateBinary','HOME','Connection','mkdirSync','R_OK','jcNXF','Saved\x20new\x20ETag\x20for\x20percy\x20binary','env','then','port','warn','child_process','AqslA','oLaUC','/root','2135568nRftrk','Percy\x20binary\x20is\x20up\x20to\x20date\x20(ETag\x20unchanged)','eTvQR','trim','open','.zip','Percy\x20download\x20failed\x20to\x20read\x20cert\x20file:\x20','MePBx','statusCode','binaryPath','zdRli','YrTUa','FNPPq','vLmwl','SuuDU','/percy-win.zip','YCkIx','zpmmi','headers','qzJgI','length','LyBEY','pgHxH','chmod','function','DRAXh','parse','readFileSync','--version','RaaPU','destroy','statSync','proxyPort','.browserstack','DCYBa','OfCaJ','bgzTk','XFpSA','4SMFYTO','stdout','../logger','elcZE','Nbclh','uPTYc','bKrYx','USERNAME','4383950ijPqpf','EHvQz','Failed\x20to\x20read\x20ETag\x20file:\x20','pipe','oDzNY','FbvpC','useCaCertificate','hakmA','openReadStream','431646ryyoKI','8132670KSBxUm','AMSGB','get','LOGNAME','CZvuz','USER','extractAndSaveBinary','needsUpdate','If-None-Match','gALmP','104vMReHU','percy','undefined','homedir','14JsqvWm','LMGir','https-proxy-agent','5800SnqoGF','LNAME','debug','once'];a150_0x5108=function(){return _0x2011a5;};return a150_0x5108();}function a150_0x279e(_0x1f461e,_0x2412db){const _0x5108d7=a150_0x5108();return a150_0x279e=function(_0x279eb7,_0x42ad16){_0x279eb7=_0x279eb7-0x6d;let _0x50439b=_0x5108d7[_0x279eb7];return _0x50439b;},a150_0x279e(_0x1f461e,_0x2412db);}const a150_0x44025a=a150_0x279e;(function(_0x4ed668,_0x2bb4a7){const _0x35be48=a150_0x279e,_0xeb95dd=_0x4ed668();while(!![]){try{const _0x281868=parseInt(_0x35be48(0x9c))/0x1*(-parseInt(_0x35be48(0x95))/0x2)+-parseInt(_0x35be48(0xe9))/0x3*(parseInt(_0x35be48(0x79))/0x4)+-parseInt(_0x35be48(0xca))/0x5+parseInt(_0x35be48(0x8a))/0x6*(parseInt(_0x35be48(0x99))/0x7)+parseInt(_0x35be48(0xb0))/0x8+parseInt(_0x35be48(0x8b))/0x9+parseInt(_0x35be48(0x81))/0xa;if(_0x281868===_0x2bb4a7)break;else _0xeb95dd['push'](_0xeb95dd['shift']());}catch(_0x405e5c){_0xeb95dd['push'](_0xeb95dd['shift']());}}}(a150_0x5108,0x74e47));const {https}=require(a150_0x44025a(0xba)),url=require('url'),yauzl=require('yauzl'),fs=require('fs'),path=require(a150_0x44025a(0xa8)),os=require('os'),{spawn}=require(a150_0x44025a(0xe5)),HttpsProxyAgent=require(a150_0x44025a(0x9b)),logger=require(a150_0x44025a(0x7b))[a150_0x44025a(0xd7)];class PercyBinary{#hostOS=process[a150_0x44025a(0xcc)];#httpPath=null;#binaryName=a150_0x44025a(0x96);#orderedPaths=[path[a150_0x44025a(0xc5)](this.#homedir(),a150_0x44025a(0x74)),process[a150_0x44025a(0xbc)](),os['tmpdir']()];constructor(){const _0x2dad1e=a150_0x44025a,_0x2d8cce={};_0x2d8cce[_0x2dad1e(0xf4)]=_0x2dad1e(0xad),_0x2d8cce[_0x2dad1e(0xc1)]=function(_0xb27c6f,_0x25d692){return _0xb27c6f+_0x25d692;},_0x2d8cce['uWaFD']=_0x2dad1e(0xc0),_0x2d8cce['vWPvi']=function(_0x38eb2d,_0x2866e6){return _0x38eb2d+_0x2866e6;},_0x2d8cce[_0x2dad1e(0xaa)]=_0x2dad1e(0xf8),_0x2d8cce[_0x2dad1e(0xa4)]='percy.exe',_0x2d8cce[_0x2dad1e(0xfa)]=function(_0x578f0b,_0x49572d){return _0x578f0b+_0x49572d;},_0x2d8cce[_0x2dad1e(0x86)]=_0x2dad1e(0xae);const _0x8a5107=_0x2d8cce,_0x5b5f51=_0x8a5107[_0x2dad1e(0xf4)];if(this.#hostOS['match'](/darwin|mac os/i))this.#httpPath=_0x8a5107['iaAGH'](_0x5b5f51,_0x8a5107['uWaFD']);else this.#hostOS[_0x2dad1e(0xd9)](/mswin|msys|mingw|cygwin|bccwin|wince|emc|win32/i)?(this.#httpPath=_0x8a5107[_0x2dad1e(0xc4)](_0x5b5f51,_0x8a5107[_0x2dad1e(0xaa)]),this.#binaryName=_0x8a5107[_0x2dad1e(0xa4)]):this.#httpPath=_0x8a5107[_0x2dad1e(0xfa)](_0x5b5f51,_0x8a5107[_0x2dad1e(0x86)]);}#getAvailableDirs(){const _0x58f813=a150_0x44025a,_0xdc0236={};_0xdc0236[_0x58f813(0xd0)]=function(_0x146f42,_0x25828d){return _0x146f42<_0x25828d;},_0xdc0236[_0x58f813(0x94)]='Error\x20trying\x20to\x20download\x20percy\x20binary';const _0x1f7628=_0xdc0236;for(var _0x1a0804=0x0;_0x1f7628[_0x58f813(0xd0)](_0x1a0804,this.#orderedPaths[_0x58f813(0xfd)]);_0x1a0804++){var _0x234060=this.#orderedPaths[_0x1a0804];if(this.#makePath(_0x234060))return _0x234060;}throw new Error(_0x1f7628[_0x58f813(0x94)]);}#makePath(_0x8b68a1){try{return _0x8b68a1&&!this.#checkPath(_0x8b68a1)&&fs['mkdirSync'](_0x8b68a1),!![];}catch{return![];}}#checkPath(_0x4e68ce,_0x4aa20e){const _0x5cecbf=a150_0x44025a,_0x3076cc={};_0x3076cc[_0x5cecbf(0x7f)]=function(_0xedbe61,_0x42446d){return _0xedbe61|_0x42446d;},_0x3076cc[_0x5cecbf(0xf3)]=function(_0x4545cb,_0x1bce0a){return _0x4545cb!==_0x1bce0a;},_0x3076cc[_0x5cecbf(0xbb)]=_0x5cecbf(0x97);const _0x784fc5=_0x3076cc;_0x4aa20e=_0x4aa20e||_0x784fc5[_0x5cecbf(0x7f)](fs[_0x5cecbf(0xde)],fs[_0x5cecbf(0xcb)]);try{return fs['accessSync'](_0x4e68ce,_0x4aa20e),!![];}catch(_0xa3ec0a){if(_0x784fc5['zdRli'](typeof fs[_0x5cecbf(0xce)],_0x784fc5[_0x5cecbf(0xbb)]))return![];try{return fs[_0x5cecbf(0x72)](_0x4e68ce),!![];}catch(_0xa7b818){return![];}}}#getETagPath(_0x215cf8){const _0x3ed7ce=a150_0x44025a;return path['join'](_0x215cf8,this.#binaryName+_0x3ed7ce(0xa3));}#loadETag(_0x2d02f2){const _0x2394d9=a150_0x44025a,_0x2f06ab={};_0x2f06ab['hakmA']=_0x2394d9(0xb8);const _0x386693=_0x2f06ab,_0x5669db=this.#getETagPath(_0x2d02f2);if(this.#checkPath(_0x5669db))try{return fs['readFileSync'](_0x5669db,_0x386693[_0x2394d9(0x88)])[_0x2394d9(0xec)]();}catch(_0x51cf01){logger[_0x2394d9(0xe4)](_0x2394d9(0x83)+_0x51cf01);}return null;}#saveETag(_0x2fdb96,_0x24f574){const _0x49f54c=a150_0x44025a,_0x50b2c2={};_0x50b2c2[_0x49f54c(0xff)]=_0x49f54c(0xe0);const _0x2a8dc3=_0x50b2c2;if(!_0x24f574)return;try{const _0x52d1f2=this.#getETagPath(_0x2fdb96);fs[_0x49f54c(0xa2)](_0x52d1f2,_0x24f574),logger[_0x49f54c(0x9e)](_0x2a8dc3['pgHxH']);}catch(_0x47a5a7){logger[_0x49f54c(0xe4)]('Failed\x20to\x20save\x20ETag\x20file:\x20'+_0x47a5a7);}}async #handleBinaryDownload(_0x59677f,_0x1d0fa2,_0x1c960c){const _0x186cd8=a150_0x44025a,_0x26463f={};_0x26463f[_0x186cd8(0x102)]='Newly\x20downloaded\x20Percy\x20binary\x20is\x20corrupt,\x20retrying';const _0x5852ab=_0x26463f,_0x8de72f=await this[_0x186cd8(0xda)](_0x59677f['binaryPath']);if(!_0x8de72f){logger['error'](_0x5852ab[_0x186cd8(0x102)]);const _0x5be0b3=await this[_0x186cd8(0xb3)](_0x1d0fa2,_0x1c960c);return _0x5be0b3[_0x186cd8(0xf2)];}return _0x59677f[_0x186cd8(0xf2)];}async[a150_0x44025a(0xc2)](_0x42394d){const _0x518953=a150_0x44025a,_0x28b785={};_0x28b785[_0x518953(0x8f)]=_0x518953(0xea),_0x28b785[_0x518953(0x70)]=_0x518953(0xa5);const _0x366e1d=_0x28b785,_0x4890a0=this.#getAvailableDirs(),_0x1c0ffa=path[_0x518953(0xc5)](_0x4890a0,this.#binaryName);if(this.#checkPath(_0x1c0ffa,fs['X_OK'])){const _0x3fe42a=this.#loadETag(_0x4890a0);if(_0x3fe42a)try{const _0xdf7148=await this['download'](_0x42394d,_0x4890a0,_0x3fe42a);if(!_0xdf7148[_0x518953(0x92)])return logger[_0x518953(0x9e)](_0x366e1d[_0x518953(0x8f)]),_0x1c0ffa;return logger['debug'](_0x366e1d[_0x518953(0x70)]),await this.#handleBinaryDownload(_0xdf7148,_0x42394d,_0x4890a0);}catch(_0x4b2c78){return logger[_0x518953(0xe4)](_0x518953(0xcf)+_0x4b2c78),_0x1c0ffa;}}const _0x5ba598=await this[_0x518953(0xb3)](_0x42394d,_0x4890a0);return await this.#handleBinaryDownload(_0x5ba598,_0x42394d,_0x4890a0);}[a150_0x44025a(0xb3)](_0x3a4696,_0x3d66b0,_0x29de34=null){const _0x46f293=a150_0x44025a,_0x405c26={'wUInZ':function(_0x121275,_0x24aaaa){return _0x121275(_0x24aaaa);},'EafDl':function(_0x3b7c99,_0x7d9c90){return _0x3b7c99===_0x7d9c90;},'SuuDU':_0x46f293(0xd4),'XFpSA':_0x46f293(0xb6),'ybbYc':function(_0x8a002c,_0x5dab8c){return _0x8a002c(_0x5dab8c);},'ZkhLa':function(_0x56b2bb,_0x59b36e){return _0x56b2bb+_0x59b36e;},'BfgcB':_0x46f293(0xee)};_0x3d66b0&&!this.#checkPath(_0x3d66b0)&&fs[_0x46f293(0xdd)](_0x3d66b0);const _0x72532c=this.#binaryName,_0x2d2da0=path['join'](_0x3d66b0,_0x405c26[_0x46f293(0xa7)](_0x72532c,_0x405c26['BfgcB'])),_0x8631a3=fs[_0x46f293(0xd3)](_0x2d2da0),_0x2360b8=url[_0x46f293(0x6d)](this.#httpPath);if(_0x3a4696[_0x46f293(0xa0)]&&_0x3a4696[_0x46f293(0x73)]){const _0x379906={};_0x379906[_0x46f293(0xbe)]=_0x3a4696[_0x46f293(0xa0)],_0x379906[_0x46f293(0xe3)]=_0x3a4696[_0x46f293(0x73)],_0x2360b8['agent']=new HttpsProxyAgent(_0x379906);}if(_0x3a4696[_0x46f293(0x87)])try{_0x2360b8['ca']=fs[_0x46f293(0x6e)](_0x3a4696[_0x46f293(0x87)]);}catch(_0x2e8e64){logger[_0x46f293(0xd4)](_0x46f293(0xef)+_0x2e8e64);}if(_0x29de34){const _0xb2c270={};_0xb2c270[_0x46f293(0x93)]=_0x29de34,_0xb2c270[_0x46f293(0xdc)]=_0x405c26[_0x46f293(0x78)],_0x2360b8[_0x46f293(0xfb)]=_0xb2c270;}else{const _0x5aab04={};_0x5aab04[_0x46f293(0xdc)]=_0x405c26[_0x46f293(0x78)],_0x2360b8[_0x46f293(0xfb)]=_0x5aab04;}return new Promise((_0x40b6a7,_0x48b685)=>{const _0x4a535b=_0x46f293;https[_0x4a535b(0x8d)](_0x2360b8,_0x116e30=>{const _0x1956ae=_0x4a535b,_0x5177da={'JYYow':function(_0x2f9f01,_0x8ee59a){return _0x405c26['wUInZ'](_0x2f9f01,_0x8ee59a);},'HTYxq':function(_0x31f930,_0x2ca2fc){const _0x40a753=a150_0x279e;return _0x405c26[_0x40a753(0xb9)](_0x31f930,_0x2ca2fc);}};if(_0x29de34&&_0x405c26[_0x1956ae(0xa1)](_0x116e30[_0x1956ae(0xf1)],0x130)){_0x8631a3[_0x1956ae(0x71)]();const _0x4bf9be={};_0x4bf9be[_0x1956ae(0x92)]=![],_0x405c26[_0x1956ae(0xb9)](_0x40b6a7,_0x4bf9be);return;}const _0x2a58de=_0x116e30[_0x1956ae(0xfb)]['etag'];_0x2a58de&&this.#saveETag(_0x3d66b0,_0x2a58de),_0x116e30['pipe'](_0x8631a3),_0x116e30['on'](_0x405c26[_0x1956ae(0xf7)],function(_0x2b25e8){const _0x4c786f=_0x1956ae;logger[_0x4c786f(0xd4)](_0x4c786f(0xaf)+_0x2b25e8),_0x5177da[_0x4c786f(0xc9)](_0x48b685,_0x2b25e8);}),_0x8631a3['on'](_0x405c26['SuuDU'],function(_0x45bf45){logger['error']('Got\x20Error\x20while\x20downloading\x20percy\x20binary\x20file:\x20'+_0x45bf45),_0x5177da['HTYxq'](_0x48b685,_0x45bf45);}),_0x8631a3['on'](_0x405c26[_0x1956ae(0x78)],()=>{const _0xf51f8a=_0x1956ae;this[_0xf51f8a(0x91)](_0x2d2da0,_0x3d66b0)[_0xf51f8a(0xe2)](_0x482864=>_0x40b6a7({'needsUpdate':!![],'binaryPath':_0x482864}))['catch'](_0x48b685);});})['on'](_0x405c26[_0x4a535b(0xf7)],function(_0x541d2e){const _0x4b9446=_0x4a535b;logger[_0x4b9446(0xd4)]('Got\x20Error\x20in\x20percy\x20binary\x20downloading\x20request:\x20'+_0x541d2e),_0x405c26[_0x4b9446(0xcd)](_0x48b685,_0x541d2e);});});}[a150_0x44025a(0x91)](_0x4ea83e,_0x4844a6){const _0x3f2d77=a150_0x44025a,_0x190683={'MePBx':function(_0x4e9abb,_0x383404){return _0x4e9abb===_0x383404;},'vPOtc':function(_0x573d81,_0x54545b){return _0x573d81(_0x54545b);},'AMSGB':_0x3f2d77(0xac),'ISblE':'end','WEBNc':'entry','TBOBs':_0x3f2d77(0xd4)},_0xe76e9=this.#binaryName,_0x1f6d30=path['join'](_0x4844a6,_0xe76e9);return new Promise((_0x2e7b2d,_0x1fc5ca)=>{const _0x58a9c3=_0x3f2d77,_0x2f7833={'YCkIx':function(_0x27ebd2,_0x5b140e){const _0x16ae1e=a150_0x279e;return _0x190683[_0x16ae1e(0xf0)](_0x27ebd2,_0x5b140e);},'ijLLI':function(_0x30fe92,_0x323bf7){const _0x17c8b8=a150_0x279e;return _0x190683[_0x17c8b8(0xb2)](_0x30fe92,_0x323bf7);},'DdYot':_0x190683[_0x58a9c3(0x8c)],'eTvQR':function(_0x5526c9,_0x1669bc){return _0x190683['vPOtc'](_0x5526c9,_0x1669bc);},'DCYBa':_0x190683['ISblE'],'wZeRq':function(_0x2ae4fa,_0x2f3188){const _0x452936=_0x58a9c3;return _0x190683[_0x452936(0xb2)](_0x2ae4fa,_0x2f3188);},'vLmwl':_0x190683[_0x58a9c3(0xb7)],'ezphM':_0x190683['TBOBs']},_0x39feb4={};_0x39feb4['lazyEntries']=!![],yauzl[_0x58a9c3(0xed)](_0x4ea83e,_0x39feb4,function(_0x1490ae,_0x312a9c){const _0x2f6228=_0x58a9c3,_0x3fa768={'HbXZk':function(_0x436254,_0x1c9166){const _0x475873=a150_0x279e;return _0x2f7833[_0x475873(0xeb)](_0x436254,_0x1c9166);},'oDzNY':_0x2f7833['DCYBa'],'OfCaJ':function(_0x524428,_0x30c382){const _0x196531=a150_0x279e;return _0x2f7833[_0x196531(0xeb)](_0x524428,_0x30c382);},'elcZE':function(_0x3ad03e,_0x270525){const _0x2cb9c9=a150_0x279e;return _0x2f7833[_0x2cb9c9(0xb4)](_0x3ad03e,_0x270525);}};_0x1490ae&&_0x2f7833['ijLLI'](_0x1fc5ca,_0x1490ae),_0x312a9c['readEntry'](),_0x312a9c['on'](_0x2f7833[_0x2f6228(0xf6)],_0x8344ac=>{const _0x2a4dda=_0x2f6228;if(/\/$/[_0x2a4dda(0xab)](_0x8344ac[_0x2a4dda(0xc8)]))_0x312a9c['readEntry']();else{const _0xbbdfb=fs[_0x2a4dda(0xd3)](path['join'](_0x4844a6,_0x8344ac[_0x2a4dda(0xc8)]));_0x312a9c[_0x2a4dda(0x89)](_0x8344ac,function(_0x147407,_0xaa1627){const _0x2cca60=_0x2a4dda;_0x147407&&_0x3fa768['HbXZk'](_0x1fc5ca,_0x1490ae),_0xaa1627['on'](_0x3fa768[_0x2cca60(0x85)],function(){const _0x5d2478=_0x2cca60;_0xbbdfb[_0x5d2478(0xb6)](),_0x312a9c['readEntry']();}),_0xaa1627[_0x2cca60(0x84)](_0xbbdfb);}),_0x2f7833[_0x2a4dda(0xf9)](_0x8344ac[_0x2a4dda(0xc8)],_0xe76e9)&&_0x312a9c[_0x2a4dda(0xb6)]();}}),_0x312a9c['on'](_0x2f7833['ezphM'],_0x453a20=>{_0x2f7833['ijLLI'](_0x1fc5ca,_0x453a20);}),_0x312a9c[_0x2f6228(0x9f)](_0x2f7833[_0x2f6228(0x75)],()=>{const _0x18ffb=_0x2f6228;fs[_0x18ffb(0x100)](_0x1f6d30,_0x2f7833[_0x18ffb(0xd2)],function(_0x2b0e31){const _0x4a9da6=_0x18ffb;_0x2b0e31&&_0x3fa768[_0x4a9da6(0x76)](_0x1fc5ca,_0x2b0e31),_0x3fa768[_0x4a9da6(0x7c)](_0x2e7b2d,_0x1f6d30);}),_0x312a9c['close']();});});});}async['validateBinary'](_0x4b54a2){const _0xc9835b=a150_0x44025a,_0x5cc7cb={'AqslA':function(_0x5603cb,_0x33a44a){return _0x5603cb(_0x33a44a);},'bgzTk':function(_0x248c66,_0x3fff71,_0x1bbc2c,_0x4fcc71){return _0x248c66(_0x3fff71,_0x1bbc2c,_0x4fcc71);},'Nbclh':_0xc9835b(0x6f),'uPTYc':_0xc9835b(0xc3),'EHvQz':'close'},_0x375f12=/^.*@percy\/cli \d.\d+.\d+/;return new Promise((_0x433064,_0x277949)=>{const _0x2577f0=_0xc9835b,_0x33d2b7={};_0x33d2b7['env']=process['env'];const _0x189318=_0x5cc7cb[_0x2577f0(0x77)](spawn,_0x4b54a2,[_0x5cc7cb[_0x2577f0(0x7d)]],_0x33d2b7);_0x189318[_0x2577f0(0x7a)]['on'](_0x5cc7cb[_0x2577f0(0x7e)],_0x3fdd81=>{_0x375f12['test'](_0x3fdd81)&&_0x5cc7cb['AqslA'](_0x433064,!![]);}),_0x189318['on'](_0x5cc7cb[_0x2577f0(0x82)],()=>{const _0x908f24=_0x2577f0;_0x5cc7cb[_0x908f24(0xe6)](_0x433064,![]);});});}#homedir(){const _0x5190d2=a150_0x44025a,_0xf9d788={};_0xf9d788[_0x5190d2(0xbf)]=function(_0x50cdb1,_0x3886c5){return _0x50cdb1===_0x3886c5;},_0xf9d788[_0x5190d2(0xdf)]=_0x5190d2(0x101),_0xf9d788[_0x5190d2(0xc7)]=function(_0x2cb96c,_0x3632be){return _0x2cb96c===_0x3632be;},_0xf9d788[_0x5190d2(0xfc)]=_0x5190d2(0xa9),_0xf9d788[_0x5190d2(0xd8)]=function(_0x1559f7,_0x362c39){return _0x1559f7+_0x362c39;},_0xf9d788[_0x5190d2(0xd1)]='darwin',_0xf9d788[_0x5190d2(0xf5)]=function(_0xbb3e09,_0x31f55f){return _0xbb3e09+_0x31f55f;},_0xf9d788['jwxLI']=_0x5190d2(0xc6),_0xf9d788[_0x5190d2(0xbd)]=function(_0x2f3809,_0x7fd7d9){return _0x2f3809===_0x7fd7d9;},_0xf9d788[_0x5190d2(0xfe)]='linux',_0xf9d788[_0x5190d2(0xb1)]=_0x5190d2(0xe8),_0xf9d788[_0x5190d2(0x9a)]=_0x5190d2(0xb5),_0xf9d788[_0x5190d2(0xe7)]=function(_0x40182f,_0x3f1432){return _0x40182f||_0x3f1432;};const _0x1f85e5=_0xf9d788;if(_0x1f85e5[_0x5190d2(0xbf)](typeof os[_0x5190d2(0x98)],_0x1f85e5[_0x5190d2(0xdf)]))return os[_0x5190d2(0x98)]();const _0x3c9859=process[_0x5190d2(0xe1)],_0x103bf9=_0x3c9859[_0x5190d2(0xdb)],_0x432ea0=_0x3c9859[_0x5190d2(0x8e)]||_0x3c9859[_0x5190d2(0x90)]||_0x3c9859[_0x5190d2(0x9d)]||_0x3c9859[_0x5190d2(0x80)];if(_0x1f85e5[_0x5190d2(0xc7)](process['platform'],_0x1f85e5['qzJgI']))return _0x3c9859['USERPROFILE']||_0x1f85e5[_0x5190d2(0xd8)](_0x3c9859['HOMEDRIVE'],_0x3c9859['HOMEPATH'])||_0x103bf9||null;if(_0x1f85e5[_0x5190d2(0xbf)](process[_0x5190d2(0xcc)],_0x1f85e5['pCikZ']))return _0x103bf9||(_0x432ea0?_0x1f85e5[_0x5190d2(0xf5)](_0x1f85e5[_0x5190d2(0xd6)],_0x432ea0):null);if(_0x1f85e5[_0x5190d2(0xbd)](process[_0x5190d2(0xcc)],_0x1f85e5['LyBEY']))return _0x103bf9||(_0x1f85e5[_0x5190d2(0xc7)](process[_0x5190d2(0xa6)](),0x0)?_0x1f85e5[_0x5190d2(0xb1)]:_0x432ea0?_0x1f85e5['FNPPq'](_0x1f85e5[_0x5190d2(0x9a)],_0x432ea0):null);return _0x1f85e5[_0x5190d2(0xe7)](_0x103bf9,null);}}module[a150_0x44025a(0xd5)]=PercyBinary;
|
|
1
|
+
function a150_0x92c5(_0x1e8e98,_0x22413a){const _0x5d55c1=a150_0x5d55();return a150_0x92c5=function(_0x92c5c5,_0x317ef5){_0x92c5c5=_0x92c5c5-0x6a;let _0x30197a=_0x5d55c1[_0x92c5c5];return _0x30197a;},a150_0x92c5(_0x1e8e98,_0x22413a);}const a150_0x467ad1=a150_0x92c5;(function(_0x2b5bbc,_0x4fee30){const _0x45259a=a150_0x92c5,_0x96c6ac=_0x2b5bbc();while(!![]){try{const _0x1255d8=parseInt(_0x45259a(0x93))/0x1+-parseInt(_0x45259a(0xeb))/0x2+parseInt(_0x45259a(0xe9))/0x3+-parseInt(_0x45259a(0x9a))/0x4+-parseInt(_0x45259a(0x95))/0x5*(-parseInt(_0x45259a(0x6e))/0x6)+-parseInt(_0x45259a(0x70))/0x7+-parseInt(_0x45259a(0xb8))/0x8;if(_0x1255d8===_0x4fee30)break;else _0x96c6ac['push'](_0x96c6ac['shift']());}catch(_0x523164){_0x96c6ac['push'](_0x96c6ac['shift']());}}}(a150_0x5d55,0xa0d49));const {https}=require(a150_0x467ad1(0xd3)),url=require(a150_0x467ad1(0xd2)),yauzl=require(a150_0x467ad1(0xf8)),fs=require('fs'),path=require('path'),os=require('os'),{spawn}=require(a150_0x467ad1(0x6d)),HttpsProxyAgent=require(a150_0x467ad1(0xb0)),logger=require(a150_0x467ad1(0xaa))[a150_0x467ad1(0xc0)];class PercyBinary{#hostOS=process[a150_0x467ad1(0x90)];#httpPath=null;#binaryName=a150_0x467ad1(0x6b);#orderedPaths=[path['join'](this.#homedir(),'.browserstack'),process[a150_0x467ad1(0xe7)](),os['tmpdir']()];constructor(){const _0x2c8e68=a150_0x467ad1,_0x4c25d7={};_0x4c25d7[_0x2c8e68(0x82)]=_0x2c8e68(0x6a),_0x4c25d7[_0x2c8e68(0xd6)]=function(_0x57bba1,_0x22476d){return _0x57bba1+_0x22476d;},_0x4c25d7[_0x2c8e68(0x7f)]=_0x2c8e68(0xb2),_0x4c25d7['lTQxD']=function(_0x4d0f3d,_0x2b4fa6){return _0x4d0f3d+_0x2b4fa6;},_0x4c25d7['yxcfA']=_0x2c8e68(0xe3),_0x4c25d7[_0x2c8e68(0x76)]=_0x2c8e68(0xa4),_0x4c25d7[_0x2c8e68(0xab)]=_0x2c8e68(0xb5);const _0x4462b6=_0x4c25d7,_0x44a1cb=_0x4462b6['TqBJk'];if(this.#hostOS['match'](/darwin|mac os/i))this.#httpPath=_0x4462b6[_0x2c8e68(0xd6)](_0x44a1cb,_0x4462b6[_0x2c8e68(0x7f)]);else this.#hostOS[_0x2c8e68(0xbe)](/mswin|msys|mingw|cygwin|bccwin|wince|emc|win32/i)?(this.#httpPath=_0x4462b6[_0x2c8e68(0xa6)](_0x44a1cb,_0x4462b6['yxcfA']),this.#binaryName=_0x4462b6['pNeEW']):this.#httpPath=_0x4462b6[_0x2c8e68(0xa6)](_0x44a1cb,_0x4462b6['kwWKj']);}#getAvailableDirs(){const _0x2fbe29=a150_0x467ad1,_0x4fdb4c={};_0x4fdb4c[_0x2fbe29(0xf3)]=function(_0x2ef9c6,_0x177f5d){return _0x2ef9c6<_0x177f5d;},_0x4fdb4c['CdjtO']=_0x2fbe29(0x8a);const _0x20dd6b=_0x4fdb4c;for(var _0x9ff91d=0x0;_0x20dd6b[_0x2fbe29(0xf3)](_0x9ff91d,this.#orderedPaths[_0x2fbe29(0xf4)]);_0x9ff91d++){var _0x5c80aa=this.#orderedPaths[_0x9ff91d];if(this.#makePath(_0x5c80aa))return _0x5c80aa;}throw new Error(_0x20dd6b[_0x2fbe29(0x80)]);}#makePath(_0x20f0ff){try{return _0x20f0ff&&!this.#checkPath(_0x20f0ff)&&fs['mkdirSync'](_0x20f0ff),!![];}catch{return![];}}#checkPath(_0x36a80d,_0x1227e0){const _0x1a325d=a150_0x467ad1,_0x4500b0={};_0x4500b0[_0x1a325d(0x7b)]=function(_0x484b9c,_0x5bd1c4){return _0x484b9c|_0x5bd1c4;},_0x4500b0[_0x1a325d(0x89)]=function(_0x4e780e,_0x900340){return _0x4e780e!==_0x900340;},_0x4500b0[_0x1a325d(0xbd)]='undefined';const _0x5550f4=_0x4500b0;_0x1227e0=_0x1227e0||_0x5550f4[_0x1a325d(0x7b)](fs[_0x1a325d(0xb6)],fs[_0x1a325d(0xf7)]);try{return fs[_0x1a325d(0xdd)](_0x36a80d,_0x1227e0),!![];}catch(_0x4b92a7){if(_0x5550f4[_0x1a325d(0x89)](typeof fs[_0x1a325d(0xdd)],_0x5550f4[_0x1a325d(0xbd)]))return![];try{return fs[_0x1a325d(0xe8)](_0x36a80d),!![];}catch(_0xb24990){return![];}}}#getETagPath(_0x532979){const _0x1dd4cc=a150_0x467ad1;return path[_0x1dd4cc(0xa7)](_0x532979,this.#binaryName+_0x1dd4cc(0x9e));}#loadETag(_0x11147a){const _0x2b60a5=a150_0x467ad1,_0x3efdea={};_0x3efdea[_0x2b60a5(0xae)]=_0x2b60a5(0xda);const _0x3f180c=_0x3efdea,_0x5c15de=this.#getETagPath(_0x11147a);if(this.#checkPath(_0x5c15de))try{return fs['readFileSync'](_0x5c15de,_0x3f180c[_0x2b60a5(0xae)])['trim']();}catch(_0x15f5bd){logger[_0x2b60a5(0xca)](_0x2b60a5(0x94)+_0x15f5bd);}return null;}#saveETag(_0x580dff,_0x4e3513){const _0x5d50fb=a150_0x467ad1,_0x468fde={};_0x468fde[_0x5d50fb(0xed)]=_0x5d50fb(0x8f);const _0x2b4ea5=_0x468fde;if(!_0x4e3513)return;try{const _0xd131c3=this.#getETagPath(_0x580dff);fs[_0x5d50fb(0xf9)](_0xd131c3,_0x4e3513),logger[_0x5d50fb(0x9f)](_0x2b4ea5[_0x5d50fb(0xed)]);}catch(_0x1a54c7){logger['warn'](_0x5d50fb(0xcf)+_0x1a54c7);}}async #handleBinaryDownload(_0x40bb05,_0x80c072,_0x28b4de){const _0x3c858e=a150_0x467ad1,_0x1a0b83={};_0x1a0b83[_0x3c858e(0xce)]=_0x3c858e(0xaf);const _0x18552c=_0x1a0b83,_0x46953b=await this[_0x3c858e(0xf5)](_0x40bb05[_0x3c858e(0xa3)]);if(!_0x46953b){logger[_0x3c858e(0xe4)](_0x18552c['rAgaq']);const _0x5c81c1=await this[_0x3c858e(0xe5)](_0x80c072,_0x28b4de);return _0x5c81c1[_0x3c858e(0xa3)];}return _0x40bb05[_0x3c858e(0xa3)];}async['getBinaryPath'](_0xdcd99){const _0x3ff500=a150_0x467ad1,_0x42c704={};_0x42c704[_0x3ff500(0x8d)]='Percy\x20binary\x20is\x20up\x20to\x20date\x20(ETag\x20unchanged)',_0x42c704[_0x3ff500(0xd1)]=_0x3ff500(0xad);const _0x13a980=_0x42c704,_0x1278e3=this.#getAvailableDirs(),_0x18e5ee=path[_0x3ff500(0xa7)](_0x1278e3,this.#binaryName);if(this.#checkPath(_0x18e5ee,fs['X_OK'])){const _0x58223c=this.#loadETag(_0x1278e3);if(_0x58223c)try{const _0x7df236=await this[_0x3ff500(0xe5)](_0xdcd99,_0x1278e3,_0x58223c);if(!_0x7df236[_0x3ff500(0xd0)])return logger[_0x3ff500(0x9f)](_0x13a980['mKHdp']),_0x18e5ee;return logger['debug'](_0x13a980[_0x3ff500(0xd1)]),await this.#handleBinaryDownload(_0x7df236,_0xdcd99,_0x1278e3);}catch(_0xba8b6d){return logger[_0x3ff500(0xca)](_0x3ff500(0xc6)+_0xba8b6d),_0x18e5ee;}}const _0x59fdc8=await this[_0x3ff500(0xe5)](_0xdcd99,_0x1278e3);return await this.#handleBinaryDownload(_0x59fdc8,_0xdcd99,_0x1278e3);}[a150_0x467ad1(0xe5)](_0x343c06,_0x22aa38,_0xbed812=null){const _0x394014=a150_0x467ad1,_0x30baf4={'NlwMO':function(_0x53c969,_0x3c0990){return _0x53c969(_0x3c0990);},'gMzPd':function(_0x422a35,_0x212716){return _0x422a35===_0x212716;},'TEfRz':_0x394014(0xe4),'fdpAb':'close','sYnDr':function(_0x15c202,_0x5d642d){return _0x15c202+_0x5d642d;},'HzOVY':_0x394014(0xd4)};_0x22aa38&&!this.#checkPath(_0x22aa38)&&fs[_0x394014(0x99)](_0x22aa38);const _0x4413be=this.#binaryName,_0x4f38bf=path['join'](_0x22aa38,_0x30baf4[_0x394014(0x71)](_0x4413be,_0x30baf4['HzOVY'])),_0x2d6e96=fs[_0x394014(0xb4)](_0x4f38bf),_0x3b27fa=url['parse'](this.#httpPath);if(_0x343c06[_0x394014(0x7d)]&&_0x343c06['proxyPort']){const _0x5be074={};_0x5be074['host']=_0x343c06[_0x394014(0x7d)],_0x5be074[_0x394014(0x85)]=_0x343c06[_0x394014(0xef)],_0x3b27fa[_0x394014(0xcc)]=new HttpsProxyAgent(_0x5be074);}if(_0x343c06[_0x394014(0xf1)])try{_0x3b27fa['ca']=fs[_0x394014(0xbf)](_0x343c06[_0x394014(0xf1)]);}catch(_0x744efb){logger[_0x394014(0xe4)](_0x394014(0xd8)+_0x744efb);}if(_0xbed812){const _0x4b62ae={};_0x4b62ae[_0x394014(0xbc)]=_0xbed812,_0x4b62ae['Connection']=_0x30baf4[_0x394014(0xa2)],_0x3b27fa[_0x394014(0x8b)]=_0x4b62ae;}else{const _0xa48a0c={};_0xa48a0c[_0x394014(0xcd)]=_0x30baf4[_0x394014(0xa2)],_0x3b27fa[_0x394014(0x8b)]=_0xa48a0c;}return new Promise((_0xdf956,_0x340dd0)=>{const _0x2e3f91=_0x394014;https[_0x2e3f91(0x75)](_0x3b27fa,_0x26ff9f=>{const _0xad3310=_0x2e3f91,_0x345c32={'MQiCa':function(_0x2f5652,_0x949f68){const _0x57a121=a150_0x92c5;return _0x30baf4[_0x57a121(0x96)](_0x2f5652,_0x949f68);}};if(_0xbed812&&_0x30baf4[_0xad3310(0xc7)](_0x26ff9f['statusCode'],0x130)){_0x2d6e96[_0xad3310(0x74)]();const _0x3c0bcf={};_0x3c0bcf['needsUpdate']=![],_0x30baf4[_0xad3310(0x96)](_0xdf956,_0x3c0bcf);return;}const _0x329156=_0x26ff9f[_0xad3310(0x8b)]['etag'];_0x329156&&this.#saveETag(_0x22aa38,_0x329156),_0x26ff9f[_0xad3310(0xcb)](_0x2d6e96),_0x26ff9f['on'](_0x30baf4[_0xad3310(0xd5)],function(_0x5e59a0){const _0x24fc05=_0xad3310;logger['error'](_0x24fc05(0xc3)+_0x5e59a0),_0x345c32[_0x24fc05(0x77)](_0x340dd0,_0x5e59a0);}),_0x2d6e96['on'](_0x30baf4[_0xad3310(0xd5)],function(_0x6e258c){const _0x2ef4e6=_0xad3310;logger['error']('Got\x20Error\x20while\x20downloading\x20percy\x20binary\x20file:\x20'+_0x6e258c),_0x345c32[_0x2ef4e6(0x77)](_0x340dd0,_0x6e258c);}),_0x2d6e96['on'](_0x30baf4[_0xad3310(0xa2)],()=>{const _0xa5e2f5=_0xad3310;this[_0xa5e2f5(0xe0)](_0x4f38bf,_0x22aa38)[_0xa5e2f5(0x97)](_0x427061=>_0xdf956({'needsUpdate':!![],'binaryPath':_0x427061}))['catch'](_0x340dd0);});})['on'](_0x30baf4[_0x2e3f91(0xd5)],function(_0x31632e){const _0x326d47=_0x2e3f91;logger[_0x326d47(0xe4)]('Got\x20Error\x20in\x20percy\x20binary\x20downloading\x20request:\x20'+_0x31632e),_0x30baf4[_0x326d47(0x96)](_0x340dd0,_0x31632e);});});}[a150_0x467ad1(0xe0)](_0xaffc3a,_0x5a138a){const _0x26dccf=a150_0x467ad1,_0x4e05fb={'MspcG':function(_0x40a9df,_0x29df0b){return _0x40a9df(_0x29df0b);},'jiyia':_0x26dccf(0x7e),'Ndxub':function(_0x17b786,_0x13a449){return _0x17b786===_0x13a449;},'nWRBd':function(_0x2136c1,_0x4035ed){return _0x2136c1(_0x4035ed);},'cviFa':'entry','XauUj':_0x26dccf(0xe4),'hyHbN':function(_0x4c634f,_0x867dcc){return _0x4c634f(_0x867dcc);},'QIpgz':function(_0x471a1a,_0x52048d){return _0x471a1a(_0x52048d);},'ARIvL':_0x26dccf(0xa5)},_0x3d441f=this.#binaryName,_0x1f6c68=path[_0x26dccf(0xa7)](_0x5a138a,_0x3d441f);return new Promise((_0xe802a7,_0x18b6c4)=>{const _0x1b1b8b=_0x26dccf,_0x17a708={'IDxUX':function(_0x3d3ed1,_0x1d3ce1){return _0x4e05fb['hyHbN'](_0x3d3ed1,_0x1d3ce1);},'zMMIi':function(_0x4c41ef,_0x515353){const _0x209020=a150_0x92c5;return _0x4e05fb[_0x209020(0xb1)](_0x4c41ef,_0x515353);},'Ksmvb':_0x4e05fb[_0x1b1b8b(0x6c)]},_0x3d0d17={};_0x3d0d17[_0x1b1b8b(0xc5)]=!![],yauzl[_0x1b1b8b(0x6f)](_0xaffc3a,_0x3d0d17,function(_0x537721,_0x27d777){const _0xebdc0c=_0x1b1b8b,_0x2531ea={'oViEt':function(_0x4e7aa3,_0x523490){return _0x4e05fb['MspcG'](_0x4e7aa3,_0x523490);},'zbgUo':_0x4e05fb[_0xebdc0c(0xb3)],'rbgfS':function(_0x25b5b9,_0x46b5c7){const _0x4ec1fd=_0xebdc0c;return _0x4e05fb[_0x4ec1fd(0xde)](_0x25b5b9,_0x46b5c7);}};_0x537721&&_0x4e05fb[_0xebdc0c(0x86)](_0x18b6c4,_0x537721),_0x27d777[_0xebdc0c(0xec)](),_0x27d777['on'](_0x4e05fb[_0xebdc0c(0x8e)],_0x124d78=>{const _0x389f5d=_0xebdc0c;if(/\/$/[_0x389f5d(0xf0)](_0x124d78[_0x389f5d(0xdf)]))_0x27d777['readEntry']();else{const _0x2586e5=fs['createWriteStream'](path[_0x389f5d(0xa7)](_0x5a138a,_0x124d78[_0x389f5d(0xdf)]));_0x27d777[_0x389f5d(0xba)](_0x124d78,function(_0x247de3,_0x1fbd1d){const _0x3d5f39=_0x389f5d;_0x247de3&&_0x2531ea[_0x3d5f39(0xa9)](_0x18b6c4,_0x537721),_0x1fbd1d['on'](_0x2531ea['zbgUo'],function(){const _0x2093e8=_0x3d5f39;_0x2586e5[_0x2093e8(0x7a)](),_0x27d777[_0x2093e8(0xec)]();}),_0x1fbd1d[_0x3d5f39(0xcb)](_0x2586e5);}),_0x2531ea[_0x389f5d(0x72)](_0x124d78[_0x389f5d(0xdf)],_0x3d441f)&&_0x27d777[_0x389f5d(0x7a)]();}}),_0x27d777['on'](_0x4e05fb[_0xebdc0c(0xb7)],_0x10dfe7=>{const _0x11fb0b=_0xebdc0c;_0x17a708[_0x11fb0b(0xa1)](_0x18b6c4,_0x10dfe7);}),_0x27d777[_0xebdc0c(0xa0)](_0x4e05fb['jiyia'],()=>{const _0x3c7eb0=_0xebdc0c,_0x37828c={'ECXRO':function(_0x25d03e,_0x157b67){return _0x17a708['IDxUX'](_0x25d03e,_0x157b67);},'SpvNY':function(_0xad964e,_0xd92896){const _0x463554=a150_0x92c5;return _0x17a708[_0x463554(0x91)](_0xad964e,_0xd92896);}};fs[_0x3c7eb0(0xe1)](_0x1f6c68,_0x17a708[_0x3c7eb0(0x78)],function(_0x43ef06){const _0x45b322=_0x3c7eb0;_0x43ef06&&_0x37828c['ECXRO'](_0x18b6c4,_0x43ef06),_0x37828c[_0x45b322(0x9d)](_0xe802a7,_0x1f6c68);}),_0x27d777[_0x3c7eb0(0x7a)]();});});});}async['validateBinary'](_0x301407){const _0x5c17bc=a150_0x467ad1,_0x11b798={'DSMuV':function(_0x48afe6,_0x25434e){return _0x48afe6(_0x25434e);},'xZpcD':function(_0x47e0dd,_0x22367d){return _0x47e0dd(_0x22367d);},'xeixC':function(_0x29532b,_0x48a8bd,_0x572a03,_0x3d70c4){return _0x29532b(_0x48a8bd,_0x572a03,_0x3d70c4);},'VwjwS':'--version','nNQhE':_0x5c17bc(0x88),'cpJns':'close'},_0x388e69=/^.*@percy\/cli \d.\d+.\d+/;return new Promise((_0x469632,_0x247597)=>{const _0xff6034=_0x5c17bc,_0x5de483={'PRmtG':function(_0x12637d,_0x3aa288){const _0x476028=a150_0x92c5;return _0x11b798[_0x476028(0xd9)](_0x12637d,_0x3aa288);}},_0x58c66e={};_0x58c66e[_0xff6034(0xea)]=process[_0xff6034(0xea)];const _0x1f6dde=_0x11b798['xeixC'](spawn,_0x301407,[_0x11b798[_0xff6034(0xac)]],_0x58c66e);_0x1f6dde[_0xff6034(0xb9)]['on'](_0x11b798[_0xff6034(0x9c)],_0x5e9208=>{_0x388e69['test'](_0x5e9208)&&_0x11b798['DSMuV'](_0x469632,!![]);}),_0x1f6dde['on'](_0x11b798[_0xff6034(0xee)],()=>{const _0x1fcdaf=_0xff6034;_0x5de483[_0x1fcdaf(0x98)](_0x469632,![]);});});}#homedir(){const _0xd3b2a9=a150_0x467ad1,_0x2fd0c3={};_0x2fd0c3[_0xd3b2a9(0xd7)]=function(_0x5535d1,_0x51a99c){return _0x5535d1===_0x51a99c;},_0x2fd0c3[_0xd3b2a9(0x92)]=_0xd3b2a9(0xe6),_0x2fd0c3[_0xd3b2a9(0x8c)]=_0xd3b2a9(0xc9),_0x2fd0c3[_0xd3b2a9(0x9b)]=function(_0x2a9fd2,_0x1c1299){return _0x2a9fd2+_0x1c1299;},_0x2fd0c3[_0xd3b2a9(0xc8)]='darwin',_0x2fd0c3[_0xd3b2a9(0x84)]=_0xd3b2a9(0x81),_0x2fd0c3[_0xd3b2a9(0xa8)]=_0xd3b2a9(0x7c),_0x2fd0c3[_0xd3b2a9(0xe2)]=function(_0x27a227,_0x29c746){return _0x27a227===_0x29c746;},_0x2fd0c3[_0xd3b2a9(0x87)]=_0xd3b2a9(0xdb),_0x2fd0c3[_0xd3b2a9(0xf2)]=_0xd3b2a9(0x83),_0x2fd0c3['QOxpx']=function(_0x126414,_0x4ae1c3){return _0x126414||_0x4ae1c3;};const _0x4d902f=_0x2fd0c3;if(_0x4d902f[_0xd3b2a9(0xd7)](typeof os[_0xd3b2a9(0x79)],_0x4d902f['ABZXr']))return os['homedir']();const _0x42a6e5=process[_0xd3b2a9(0xea)],_0x2d101d=_0x42a6e5[_0xd3b2a9(0xdc)],_0x16ba5d=_0x42a6e5['LOGNAME']||_0x42a6e5['USER']||_0x42a6e5[_0xd3b2a9(0x73)]||_0x42a6e5['USERNAME'];if(_0x4d902f[_0xd3b2a9(0xd7)](process['platform'],_0x4d902f[_0xd3b2a9(0x8c)]))return _0x42a6e5[_0xd3b2a9(0xc2)]||_0x4d902f[_0xd3b2a9(0x9b)](_0x42a6e5[_0xd3b2a9(0xc1)],_0x42a6e5[_0xd3b2a9(0xf6)])||_0x2d101d||null;if(_0x4d902f[_0xd3b2a9(0xd7)](process[_0xd3b2a9(0x90)],_0x4d902f[_0xd3b2a9(0xc8)]))return _0x2d101d||(_0x16ba5d?_0x4d902f['PStDq'](_0x4d902f[_0xd3b2a9(0x84)],_0x16ba5d):null);if(_0x4d902f[_0xd3b2a9(0xd7)](process[_0xd3b2a9(0x90)],_0x4d902f[_0xd3b2a9(0xa8)]))return _0x2d101d||(_0x4d902f['vIkSz'](process[_0xd3b2a9(0xc4)](),0x0)?_0x4d902f[_0xd3b2a9(0x87)]:_0x16ba5d?_0x4d902f[_0xd3b2a9(0x9b)](_0x4d902f['AHbuF'],_0x16ba5d):null);return _0x4d902f[_0xd3b2a9(0xbb)](_0x2d101d,null);}}module['exports']=PercyBinary;function a150_0x5d55(){const _0x56df99=['Ksmvb','homedir','close','MQYRL','linux','proxyHost','end','Gusxm','CdjtO','/Users/','TqBJk','/home/','tnFmb','port','nWRBd','oaEyZ','data','ipipJ','Error\x20trying\x20to\x20download\x20percy\x20binary','headers','GhTPU','mKHdp','cviFa','Saved\x20new\x20ETag\x20for\x20percy\x20binary','platform','zMMIi','ABZXr','1226587AapHlU','Failed\x20to\x20read\x20ETag\x20file:\x20','10ZunxiF','NlwMO','then','PRmtG','mkdirSync','3827844wClqmv','PStDq','nNQhE','SpvNY','.etag','debug','once','IDxUX','fdpAb','binaryPath','percy.exe','0755','lTQxD','join','AIEpN','oViEt','../logger','kwWKj','VwjwS','New\x20Percy\x20binary\x20version\x20available,\x20downloading\x20update','DUMxs','Newly\x20downloaded\x20Percy\x20binary\x20is\x20corrupt,\x20retrying','https-proxy-agent','QIpgz','/percy-osx.zip','jiyia','createWriteStream','/percy-linux.zip','R_OK','XauUj','4751232afAEkm','stdout','openReadStream','QOxpx','If-None-Match','ypIXY','match','readFileSync','winstonLogger','HOMEDRIVE','USERPROFILE','Got\x20Error\x20in\x20percy\x20binary\x20download\x20response:\x20','getuid','lazyEntries','Failed\x20to\x20check\x20for\x20binary\x20updates,\x20using\x20existing\x20binary:\x20','gMzPd','xoxZe','win32','warn','pipe','agent','Connection','rAgaq','Failed\x20to\x20save\x20ETag\x20file:\x20','needsUpdate','eNIaW','url','follow-redirects','.zip','TEfRz','irnuL','HLsWL','Percy\x20download\x20failed\x20to\x20read\x20cert\x20file:\x20','xZpcD','utf8','/root','HOME','accessSync','Ndxub','fileName','extractAndSaveBinary','chmod','vIkSz','/percy-win.zip','error','download','function','cwd','statSync','1689531DMluzy','env','1757910JBWfuv','readEntry','SJini','cpJns','proxyPort','test','useCaCertificate','AHbuF','PYlHA','length','validateBinary','HOMEPATH','W_OK','yauzl','writeFileSync','https://github.com/percy/cli/releases/latest/download','percy','ARIvL','child_process','3902718RqjdvR','open','14623BWAefc','sYnDr','rbgfS','LNAME','destroy','get','pNeEW','MQiCa'];a150_0x5d55=function(){return _0x56df99;};return a150_0x5d55();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
function a151_0x428f(){var _0x3cbf91=['2457200nTlGYc','7666820uqePJP','get','5655185Jjlxkk','getName','430377JIrAxB','exports','6wZMwuN','3189900XDIgdm','576892rbFiSX','4299576yKGZOW'];a151_0x428f=function(){return _0x3cbf91;};return a151_0x428f();}var a151_0x112a57=a151_0x22e7;(function(_0x4e4545,_0x3c70e8){var _0x2b52cc=a151_0x22e7,_0x21b782=_0x4e4545();while(!![]){try{var _0x242294=parseInt(_0x2b52cc(0x121))/0x1+parseInt(_0x2b52cc(0x125))/0x2+parseInt(_0x2b52cc(0x124))/0x3+parseInt(_0x2b52cc(0x127))/0x4+parseInt(_0x2b52cc(0x12a))/0x5*(-parseInt(_0x2b52cc(0x123))/0x6)+-parseInt(_0x2b52cc(0x128))/0x7+parseInt(_0x2b52cc(0x126))/0x8;if(_0x242294===_0x3c70e8)break;else _0x21b782['push'](_0x21b782['shift']());}catch(_0x435fda){_0x21b782['push'](_0x21b782['shift']());}}}(a151_0x428f,0xacbf5));class PercyCaptureMap{#map={};['increment'](_0x5b76f3,_0x34959b){!this.#map[_0x5b76f3]&&(this.#map[_0x5b76f3]={}),!this.#map[_0x5b76f3][_0x34959b]&&(this.#map[_0x5b76f3][_0x34959b]=0x0),this.#map[_0x5b76f3][_0x34959b]++;}[a151_0x112a57(0x12b)](_0x3e485e,_0x53a38e){var _0x2741dd=a151_0x112a57;return _0x3e485e+'-'+_0x53a38e+'-'+this[_0x2741dd(0x129)](_0x3e485e,_0x53a38e);}['get'](_0x2e04a9,_0x4c685f){if(!this.#map[_0x2e04a9])return 0x0;if(!this.#map[_0x2e04a9][_0x4c685f])return 0x0;return this.#map[_0x2e04a9][_0x4c685f];}}function a151_0x22e7(_0x35259f,_0x2719a7){var _0x428f6c=a151_0x428f();return a151_0x22e7=function(_0x22e779,_0x25f9e8){_0x22e779=_0x22e779-0x121;var _0x216bff=_0x428f6c[_0x22e779];return _0x216bff;},a151_0x22e7(_0x35259f,_0x2719a7);}module[a151_0x112a57(0x122)]=PercyCaptureMap;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a152_0xa86c84=a152_0x5864;(function(_0x1bf853,_0x3d4098){var _0x5dded4=a152_0x5864,_0x236d4b=_0x1bf853();while(!![]){try{var _0x25d070=-parseInt(_0x5dded4(0x140))/0x1*(parseInt(_0x5dded4(0x142))/0x2)+parseInt(_0x5dded4(0x14b))/0x3*(-parseInt(_0x5dded4(0x13d))/0x4)+-parseInt(_0x5dded4(0x13e))/0x5*(-parseInt(_0x5dded4(0x14c))/0x6)+parseInt(_0x5dded4(0x143))/0x7*(parseInt(_0x5dded4(0x147))/0x8)+-parseInt(_0x5dded4(0x141))/0x9+-parseInt(_0x5dded4(0x14d))/0xa+parseInt(_0x5dded4(0x148))/0xb*(-parseInt(_0x5dded4(0x13f))/0xc);if(_0x25d070===_0x3d4098)break;else _0x236d4b['push'](_0x236d4b['shift']());}catch(_0x2d4c93){_0x236d4b['push'](_0x236d4b['shift']());}}}(a152_0x5039,0xcefad));var a152_0x8d3322={};a152_0x8d3322['driver']=[a152_0xa86c84(0x146)],a152_0x8d3322['element']=[a152_0xa86c84(0x144),a152_0xa86c84(0x14e)];function a152_0x5864(_0x582d41,_0x516de6){var _0x5039c6=a152_0x5039();return a152_0x5864=function(_0x586414,_0xf6a628){_0x586414=_0x586414-0x13d;var _0x4b4c20=_0x5039c6[_0x586414];return _0x4b4c20;},a152_0x5864(_0x582d41,_0x516de6);}var a152_0xe97927={};a152_0xe97927[a152_0xa86c84(0x14f)]=['takeScreenshot'];function a152_0x5039(){var _0x40cd42=['driver','element','972176rUiHsW','65VGOtbW','2231928BlUugE','804949NWmRWl','78948eBSlAc','2ZbZnSn','35lAinDf','click','exports','takeScreenshot','2553712TozFrM','11IyKqoW','screenshot','manual','6RoYVIe','447738aiEdvj','2325770UOcNIK','sendKeys'];a152_0x5039=function(){return _0x40cd42;};return a152_0x5039();}var a152_0x4a2495={};a152_0x4a2495[a152_0xa86c84(0x150)]=[a152_0xa86c84(0x144)];var a152_0x4086df={};a152_0x4086df['auto']=a152_0x8d3322,a152_0x4086df[a152_0xa86c84(0x149)]=a152_0xe97927,a152_0x4086df[a152_0xa86c84(0x144)]=a152_0x4a2495,a152_0x4086df['testcase']={},a152_0x4086df[a152_0xa86c84(0x14a)]={},module[a152_0xa86c84(0x145)]=a152_0x4086df;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a153_0x2503e6=a153_0x1d1a;function a153_0x5b20(){const _0x36143b=['thTestCaseExecutionId','948004hqPXcX','btFEX','1224880whkbpp','testCase','329343pJIcJk','../../helpers/testhub/utils','Unsupported\x20driver\x20for\x20percy','1238320AHEklZ','../performance/constants','snapshot','SCREENSHOT_APP','156102qFROCX','uLbOc','14ITgdEX','browserstackPercyBestPlatform','../performance/performance-tester','error','uuid','browserstackPlatformIndex','189682QmBQBx','@percy/appium-app','tMeAl','length','apply','platformIndex','winstonLogger','screenshot','measure','KKnXs','@percy/selenium-webdriver','SCREENSHOT','517812aBwggH','name','uzEwH','TlFbS'];a153_0x5b20=function(){return _0x36143b;};return a153_0x5b20();}(function(_0x1f5b0a,_0x54d2ca){const _0x26d7fd=a153_0x1d1a,_0x42dd52=_0x1f5b0a();while(!![]){try{const _0x520ea6=parseInt(_0x26d7fd(0x1c8))/0x1+parseInt(_0x26d7fd(0x1ac))/0x2+-parseInt(_0x26d7fd(0x1c1))/0x3+parseInt(_0x26d7fd(0x1bd))/0x4+-parseInt(_0x26d7fd(0x1c4))/0x5+-parseInt(_0x26d7fd(0x1b8))/0x6*(-parseInt(_0x26d7fd(0x1ca))/0x7)+-parseInt(_0x26d7fd(0x1bf))/0x8;if(_0x520ea6===_0x54d2ca)break;else _0x42dd52['push'](_0x42dd52['shift']());}catch(_0x44f321){_0x42dd52['push'](_0x42dd52['shift']());}}}(a153_0x5b20,0x249e9));function a153_0x1d1a(_0x42e917,_0x25d16c){const _0x5b2057=a153_0x5b20();return a153_0x1d1a=function(_0x1d1a2c,_0x463739){_0x1d1a2c=_0x1d1a2c-0x1a7;let _0x1e1f08=_0x5b2057[_0x1d1a2c];return _0x1e1f08;},a153_0x1d1a(_0x42e917,_0x25d16c);}const tryRequire=function(_0xd1d34b,_0xd60404){const _0xef9e76={'KeYEu':function(_0xeeb2b8,_0x359bdf){return _0xeeb2b8(_0x359bdf);}};try{return _0xef9e76['KeYEu'](require,_0xd1d34b);}catch{return _0xd60404;}},percySnapshot=tryRequire(a153_0x2503e6(0x1b6),null),{percyScreenshot}=tryRequire(a153_0x2503e6(0x1b6),{}),percyAppScreenshot=require(a153_0x2503e6(0x1ad)),{getCurrentTestData}=require(a153_0x2503e6(0x1c2)),PerformanceTester=require(a153_0x2503e6(0x1a8)),{PERCY_EVENTS:PerformanceEvents}=require(a153_0x2503e6(0x1c5)),logger=require('../logger')[a153_0x2503e6(0x1b2)];percySnapshot&&(exports[a153_0x2503e6(0x1c6)]=async function(){const _0x16d0d5=a153_0x2503e6,_0x566f95={'KKnXs':function(_0x26b87a,_0x2d7bbb){return _0x26b87a!==_0x2d7bbb;},'xBgjv':function(_0x36cd24,_0xa95e0b){return _0x36cd24>=_0xa95e0b;},'btFEX':function(_0x44e0f0){return _0x44e0f0();}};if(global[_0x16d0d5(0x1ab)]&&_0x566f95[_0x16d0d5(0x1b5)](global[_0x16d0d5(0x1ab)],global[_0x16d0d5(0x1a7)]))return;const _0x2053e0=_0x566f95['xBgjv'](arguments[_0x16d0d5(0x1af)],0x2)?arguments[0x1]:'',_0x5c22ab=_0x566f95[_0x16d0d5(0x1be)](getCurrentTestData),_0x95885d={};return _0x95885d[_0x16d0d5(0x1b9)]=_0x2053e0,_0x95885d[_0x16d0d5(0x1c0)]=_0x5c22ab[_0x16d0d5(0x1b9)]||'',_0x95885d[_0x16d0d5(0x1bc)]=_0x5c22ab[_0x16d0d5(0x1aa)]||'',_0x95885d['platformIndex']=global[_0x16d0d5(0x1ab)],await PerformanceTester[_0x16d0d5(0x1b4)](PerformanceEvents['SNAPSHOT'],()=>percySnapshot[_0x16d0d5(0x1b0)](null,arguments),_0x95885d);});percyScreenshot?exports[a153_0x2503e6(0x1b3)]=async function(){const _0x3886b4=a153_0x2503e6,_0x1ca995={'kRHwF':function(_0x266b57,_0x596c07){return _0x266b57>=_0x596c07;},'tMeAl':function(_0x249451){return _0x249451();}},_0x324931=_0x1ca995['kRHwF'](arguments[_0x3886b4(0x1af)],0x2)?arguments[0x1]:'',_0x16dad6=_0x1ca995[_0x3886b4(0x1ae)](getCurrentTestData),_0x1708e7={};return _0x1708e7[_0x3886b4(0x1b9)]=_0x324931,_0x1708e7[_0x3886b4(0x1c0)]=_0x16dad6[_0x3886b4(0x1b9)]||'',_0x1708e7['thTestCaseExecutionId']=_0x16dad6[_0x3886b4(0x1aa)]||'',_0x1708e7['platformIndex']=global[_0x3886b4(0x1ab)],await PerformanceTester[_0x3886b4(0x1b4)](PerformanceEvents[_0x3886b4(0x1b7)],()=>percyScreenshot[_0x3886b4(0x1b0)](null,arguments),_0x1708e7);}:exports[a153_0x2503e6(0x1b3)]=()=>{const _0x32fb38=a153_0x2503e6,_0x1b9d8a={};_0x1b9d8a['uzEwH']=_0x32fb38(0x1c3);const _0x3aefcf=_0x1b9d8a;logger[_0x32fb38(0x1a9)](_0x3aefcf[_0x32fb38(0x1ba)]);};exports['screenshotApp']=async function(){const _0x1696a7=a153_0x2503e6,_0x486c24={'TlFbS':function(_0x2f1146,_0x52857e){return _0x2f1146>=_0x52857e;},'uLbOc':function(_0x1824c4){return _0x1824c4();}},_0xac9280=_0x486c24[_0x1696a7(0x1bb)](arguments['length'],0x2)?arguments[0x1]:'',_0x206409=_0x486c24[_0x1696a7(0x1c9)](getCurrentTestData),_0xa10c6b={};return _0xa10c6b[_0x1696a7(0x1b9)]=_0xac9280,_0xa10c6b[_0x1696a7(0x1c0)]=_0x206409[_0x1696a7(0x1b9)]||'',_0xa10c6b[_0x1696a7(0x1bc)]=_0x206409[_0x1696a7(0x1aa)]||'',_0xa10c6b[_0x1696a7(0x1b1)]=global[_0x1696a7(0x1ab)],await PerformanceTester[_0x1696a7(0x1b4)](PerformanceEvents[_0x1696a7(0x1c7)],()=>percyAppScreenshot['apply'](null,arguments),_0xa10c6b);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
var a154_0x54df3f=a154_0x5d83;function a154_0x45e6(){var _0x2262ea=['18hawBYw','./Percy','612918OeODyT','exports','1304876ugsUQp','1739337DcySWJ','18YCWeJg','7056888CeCrzs','1011115FPoydC','1686148dWdEFt','5520956OMoqfk'];a154_0x45e6=function(){return _0x2262ea;};return a154_0x45e6();}function a154_0x5d83(_0x5f5a2d,_0x48e4ca){var _0x45e668=a154_0x45e6();return a154_0x5d83=function(_0x5d8355,_0x5b5dc2){_0x5d8355=_0x5d8355-0xf6;var _0x5e1d63=_0x45e668[_0x5d8355];return _0x5e1d63;},a154_0x5d83(_0x5f5a2d,_0x48e4ca);}(function(_0x16cf11,_0x94acc0){var _0xfd6a9b=a154_0x5d83,_0x4d99d9=_0x16cf11();while(!![]){try{var _0x2fa27c=parseInt(_0xfd6a9b(0xf9))/0x1+-parseInt(_0xfd6a9b(0xfb))/0x2+-parseInt(_0xfd6a9b(0xfc))/0x3+-parseInt(_0xfd6a9b(0x100))/0x4+-parseInt(_0xfd6a9b(0xff))/0x5*(-parseInt(_0xfd6a9b(0xfd))/0x6)+-parseInt(_0xfd6a9b(0xf6))/0x7+-parseInt(_0xfd6a9b(0xfe))/0x8*(-parseInt(_0xfd6a9b(0xf7))/0x9);if(_0x2fa27c===_0x94acc0)break;else _0x4d99d9['push'](_0x4d99d9['shift']());}catch(_0x2dd62b){_0x4d99d9['push'](_0x4d99d9['shift']());}}}(a154_0x45e6,0x842a3),module[a154_0x54df3f(0xfa)]=require(a154_0x54df3f(0xf8)));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a155_0x52eca6=a155_0x5fdd;function a155_0x5fdd(_0x55bb26,_0x5d4a70){const _0xb09a7f=a155_0xb09a();return a155_0x5fdd=function(_0x5fdd9,_0x174efa){_0x5fdd9=_0x5fdd9-0x1ae;let _0x33ff00=_0xb09a7f[_0x5fdd9];return _0x33ff00;},a155_0x5fdd(_0x55bb26,_0x5d4a70);}function a155_0xb09a(){const _0x4162d8=['apply','Error\x20patching\x20','7JwXhzP','driver','../performance/performance-tester','percyCaptureMode','stop','5287792vvNxmW','browserstackSessionName','safari','mmzQS','browserStackPercyOptions','firefox','isUndefined','chrome','edge','633436HkjHur','getName','then','QykRX','screenshotApp','winstonLogger','./Percy','./PercyCaptureModes','getBestPlatformForPercySnapshot','iKhWX','stopPercy','debug','auto','START','getPercyOptions','Stopping\x20percy','platforms','error','nestedKeyValue','measureWrapper','deviceName','JxThu','sPeSg','pgDwT','iCDUI','vNhKf','patch','overrideXforPercy','138830mXTysV','start','browserstackPercyMap','432150jXAnbm','AUTO_CAPTURE','rohZr','666jwQydx','getDriver','846240tpduRM','../helper','5784PPkxrr','86714tKaBfG','4GIkhSB','mgmGF','browser','toLowerCase','15PICKlP','manual','startPercy','isAppAutomateSession','percyAutoCapture','671xcTYGr','patchDriverPercy','reduce','percy','gfAjl','browserName','../logger','forEach','element'];a155_0xb09a=function(){return _0x4162d8;};return a155_0xb09a();}(function(_0x333240,_0x5b239a){const _0x283949=a155_0x5fdd,_0x2113ef=_0x333240();while(!![]){try{const _0x34b5e7=parseInt(_0x283949(0x1d7))/0x1*(parseInt(_0x283949(0x1d8))/0x2)+parseInt(_0x283949(0x1d4))/0x3+parseInt(_0x283949(0x1b0))/0x4*(parseInt(_0x283949(0x1dc))/0x5)+-parseInt(_0x283949(0x1cf))/0x6+-parseInt(_0x283949(0x1ec))/0x7*(-parseInt(_0x283949(0x1f1))/0x8)+-parseInt(_0x283949(0x1d2))/0x9*(parseInt(_0x283949(0x1cc))/0xa)+-parseInt(_0x283949(0x1e1))/0xb*(-parseInt(_0x283949(0x1d6))/0xc);if(_0x34b5e7===_0x5b239a)break;else _0x2113ef['push'](_0x2113ef['shift']());}catch(_0x31f816){_0x2113ef['push'](_0x2113ef['shift']());}}}(a155_0xb09a,0x7f57a));const Percy=require(a155_0x52eca6(0x1b6)),PercySDK=require('./PercySDK'),PercyCaptureModes=require(a155_0x52eca6(0x1b7)),PercyCaptureMap=require('./PercyCaptureMap'),logger=require(a155_0x52eca6(0x1e7))[a155_0x52eca6(0x1b5)],helper=require(a155_0x52eca6(0x1d5)),PerformanceTester=require(a155_0x52eca6(0x1ee)),{PERCY_EVENTS:PerformanceEvents}=require('../performance/constants');exports[a155_0x52eca6(0x1de)]=PerformanceTester[a155_0x52eca6(0x1c3)](PerformanceEvents[a155_0x52eca6(0x1bd)],async _0x23ba5c=>{const _0x46b990=a155_0x52eca6,_0x3456e2={};_0x3456e2[_0x46b990(0x1d9)]='Starting\x20percy';const _0x340c85=_0x3456e2;logger['debug'](_0x340c85['mgmGF']);const _0xa6c4e4=new Percy(_0x23ba5c),_0x1394df=await _0xa6c4e4[_0x46b990(0x1cd)]();if(_0x1394df)return _0xa6c4e4;return null;}),exports[a155_0x52eca6(0x1ba)]=PerformanceTester['measureWrapper'](PerformanceEvents['STOP'],async _0x5603a5=>{const _0x751869=a155_0x52eca6,_0x498a7c={};_0x498a7c[_0x751869(0x1e5)]=_0x751869(0x1bf);const _0x44bede=_0x498a7c;return logger[_0x751869(0x1bb)](_0x44bede['gfAjl']),_0x5603a5[_0x751869(0x1f0)]();}),exports['getBestPlatformForPercySnapshot']=_0x1d4c71=>{const _0x1ab5a1=a155_0x52eca6,_0x11c13e={};_0x11c13e[_0x1ab5a1(0x1c9)]=function(_0xad190d,_0x14b634){return _0xad190d<_0x14b634;};const _0xaf083d=_0x11c13e,_0x152b19={};_0x152b19[_0x1ab5a1(0x1ae)]=0x0,_0x152b19[_0x1ab5a1(0x1f6)]=0x1,_0x152b19[_0x1ab5a1(0x1af)]=0x2,_0x152b19[_0x1ab5a1(0x1f3)]=0x3;const _0x2fbbb3=_0x152b19;return _0x1d4c71[_0x1ab5a1(0x1e3)]((_0x1d303f,_0x32fdb4,_0x14a862)=>{const _0x34eed2=_0x1ab5a1,_0x32db5b=_0x1d4c71[_0x1d303f];if(_0x32fdb4[_0x34eed2(0x1c4)])return _0x1d303f;if(_0x32db5b[_0x34eed2(0x1c4)])return _0x14a862;const _0x1cbaf0=_0x32fdb4[_0x34eed2(0x1da)]?_0x32fdb4[_0x34eed2(0x1da)]:_0x32fdb4[_0x34eed2(0x1e6)];if(_0x1cbaf0&&_0xaf083d[_0x34eed2(0x1c9)](_0x2fbbb3[_0x1cbaf0[_0x34eed2(0x1db)]()],_0x2fbbb3[_0x1cbaf0[_0x34eed2(0x1db)]()]))return _0x14a862;return _0x1d303f;},0x0);},exports['percyAutoCapture']=PerformanceTester['measureWrapper'](PerformanceEvents[a155_0x52eca6(0x1d0)],async(_0x3d6a4a,_0x2c9ae3,_0x4bd4ab)=>{const _0x15d0fc=a155_0x52eca6,_0x2a505b={};_0x2a505b['mmzQS']='Couldn\x27t\x20capture\x20percy\x20screenshot,\x20no\x20session\x20name\x20present';const _0x1a9a92=_0x2a505b,_0x4e7713=_0x3d6a4a['browserstackPercyMap'];if(helper[_0x15d0fc(0x1f7)](_0x3d6a4a[_0x15d0fc(0x1f2)])){logger['debug'](_0x1a9a92[_0x15d0fc(0x1f4)]);return;}const _0x20efaa=_0x4e7713[_0x15d0fc(0x1b1)](_0x3d6a4a[_0x15d0fc(0x1f2)],_0x2c9ae3);helper[_0x15d0fc(0x1df)](_0x4bd4ab)?await PercySDK[_0x15d0fc(0x1b4)](_0x3d6a4a,_0x20efaa):await PercySDK['screenshot'](_0x3d6a4a,_0x20efaa),_0x4e7713['increment'](_0x3d6a4a[_0x15d0fc(0x1f2)],_0x2c9ae3);}),exports[a155_0x52eca6(0x1e2)]=(_0x1ba5d6,_0x3d39d0,_0x1a8f68)=>{const _0x146fcd=a155_0x52eca6,_0x3f5fea={};_0x3f5fea['iCDUI']=_0x146fcd(0x1f5),_0x3f5fea[_0x146fcd(0x1c5)]=_0x146fcd(0x1e4),_0x3f5fea['sPeSg']=function(_0x58fa57,_0x50193b){return _0x58fa57!==_0x50193b;},_0x3f5fea[_0x146fcd(0x1d1)]=_0x146fcd(0x1dd);const _0x4da6c8=_0x3f5fea;if(!helper[_0x146fcd(0x1c2)](_0x1a8f68,[_0x4da6c8[_0x146fcd(0x1c8)],_0x4da6c8[_0x146fcd(0x1c5)]]))return;if(_0x1a8f68[_0x146fcd(0x1f5)][_0x146fcd(0x1e4)]&&_0x1a8f68[_0x146fcd(0x1f5)][_0x146fcd(0x1ef)]&&_0x4da6c8[_0x146fcd(0x1c6)](_0x1a8f68[_0x146fcd(0x1f5)][_0x146fcd(0x1ef)],_0x4da6c8[_0x146fcd(0x1d1)])&&!_0x1ba5d6[_0x146fcd(0x1ce)]){global[_0x146fcd(0x1f2)]&&(_0x1ba5d6[_0x146fcd(0x1f2)]=global[_0x146fcd(0x1f2)]),_0x1ba5d6[_0x146fcd(0x1ce)]=new PercyCaptureMap();const _0xa8127e=PercyCaptureModes[_0x1a8f68[_0x146fcd(0x1f5)][_0x146fcd(0x1ef)]];_0xa8127e[_0x146fcd(0x1ed)]&&_0xa8127e[_0x146fcd(0x1ed)][_0x146fcd(0x1e8)](_0x22f23a=>this[_0x146fcd(0x1cb)](_0x1ba5d6,_0x22f23a,_0x1a8f68)),_0xa8127e[_0x146fcd(0x1e9)]&&_0xa8127e[_0x146fcd(0x1e9)][_0x146fcd(0x1e8)](_0x2d15de=>{const _0x13f7bc=_0x146fcd;if(_0x3d39d0['prototype']['patch'+_0x2d15de])return;_0x3d39d0['prototype'][_0x13f7bc(0x1ca)+_0x2d15de]=!![];const _0x52ad40=_0x3d39d0['prototype'][_0x2d15de];_0x3d39d0['prototype'][_0x2d15de]=async function(){const _0x8597ef=_0x13f7bc;let _0x1ebf2e=_0x52ad40[_0x8597ef(0x1ea)](this,arguments);_0x1ebf2e&&_0x1ebf2e[_0x8597ef(0x1b2)]&&(_0x1ebf2e=await _0x1ebf2e);try{const _0x377c5f=this[_0x8597ef(0x1d3)]();await exports[_0x8597ef(0x1e0)](_0x377c5f,_0x2d15de,_0x1a8f68);}catch(_0xeaa8b7){logger[_0x8597ef(0x1c1)](_0x8597ef(0x1eb)+_0x2d15de+'\x20for\x20percy\x20'+_0xeaa8b7);}return _0x1ebf2e;};});}},exports[a155_0x52eca6(0x1cb)]=function(_0xb7976e,_0x110819,_0x25b4de){const _0x335f2a=a155_0x52eca6,_0x3e0ee3={};_0x3e0ee3[_0x335f2a(0x1c7)]=function(_0x215aca,_0x2d2b3b){return _0x215aca+_0x2d2b3b;},_0x3e0ee3['goEGj']=_0x335f2a(0x1ca),_0x3e0ee3[_0x335f2a(0x1b3)]='init';const _0x58a354=_0x3e0ee3,_0xef1738=_0x58a354[_0x335f2a(0x1c7)](_0x58a354['goEGj'],_0x110819),_0x35b489=_0x58a354['pgDwT'](_0x58a354[_0x335f2a(0x1b3)],_0x110819),_0xd4d36c=this;if(_0xb7976e[_0xef1738]||!_0xb7976e[_0x110819])return;_0xb7976e[_0xef1738]=!![],_0xb7976e[_0x35b489]=_0xb7976e[_0x110819],_0xb7976e[_0x110819]=async()=>{const _0x4a2a7d=_0x335f2a;try{await _0xd4d36c['percyAutoCapture'](_0xb7976e,_0x110819,_0x25b4de);}catch(_0x4c0727){logger[_0x4a2a7d(0x1c1)]('Error\x20patching\x20'+_0x110819+'\x20for\x20percy\x20'+_0x4c0727);}return await _0xb7976e[_0x35b489][_0x4a2a7d(0x1ea)](_0xb7976e,arguments);};},exports[a155_0x52eca6(0x1be)]=_0xf4254a=>{const _0x511ecc=a155_0x52eca6,_0x49d473={};_0x49d473[_0x511ecc(0x1b9)]=_0x511ecc(0x1bc);const _0x4e0a67=_0x49d473,_0x150593={};_0x150593[_0x511ecc(0x1e4)]=_0xf4254a[_0x511ecc(0x1e4)],_0x150593[_0x511ecc(0x1ef)]=_0xf4254a[_0x511ecc(0x1ef)]||_0x4e0a67[_0x511ecc(0x1b9)];const _0x3334ed=_0x150593;_0xf4254a[_0x511ecc(0x1e4)]&&(_0x3334ed['browserstackPercyBestPlatform']=exports[_0x511ecc(0x1b8)](_0xf4254a[_0x511ecc(0x1c0)]));;return _0x3334ed;};
|