browserstack-node-sdk 1.65.1 → 1.65.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jasmine/bstack-reporter/customReporter.js +1 -1
- package/src/bin/jasmine/command.js +1 -1
- package/src/bin/jasmine/test.setup.js +1 -1
- package/src/bin/jasmine/testRunMap.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customSequencer.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test.setup.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/load/index.js +1 -1
- package/src/bin/load/loadErrors.js +1 -1
- package/src/bin/load/loadUtils.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/newman/command.js +1 -1
- package/src/bin/newman/helper.js +1 -1
- package/src/bin/newman/reporter/index.js +1 -1
- package/src/bin/newman/scriptRunner.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/node-generic/client.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/reporterArgs.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/puppeteer/patches.js +1 -1
- package/src/bin/puppeteer/sessionDetails.js +1 -1
- package/src/bin/puppeteer/test.setup.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/testcafe/a11y-runner.js +1 -1
- package/src/bin/testcafe/command.js +1 -1
- package/src/bin/testcafe/reporter/index.js +1 -1
- package/src/bin/testcafe/reporter/tcUtils.js +1 -1
- package/src/bin/testcafe/session-registry.js +1 -1
- package/src/bin/testcafe/stdout-interceptor.js +1 -1
- package/src/bin/testcafe/testcafe-action-patcher.js +1 -1
- package/src/bin/testcafe/w3c-driver.js +1 -1
- package/src/bin/utils/apiUtilityMethods.js +1 -1
- package/src/bin/utils/clientTroubleshootingService.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/utils/playwright-patcher.js +1 -1
- package/src/bin/utils/puppeteer-patcher.js +1 -1
- package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
- package/src/bin/utils/sharedUtils.js +1 -1
- package/src/bin/v2/TestInfo.js +1 -1
- package/src/bin/v2/browserstackCLI.js +1 -1
- package/src/bin/v2/cliUtils.js +1 -1
- package/src/bin/v2/customTagManager.js +1 -1
- package/src/bin/v2/eventDispatcher.js +1 -1
- package/src/bin/v2/framework/automationFramework.js +1 -1
- package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
- package/src/bin/v2/framework/jestTestFramework.js +1 -1
- package/src/bin/v2/framework/newmanTestFramework.js +1 -1
- package/src/bin/v2/framework/nodeGenericTestFramework.js +1 -1
- package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
- package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
- package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
- package/src/bin/v2/framework/testFramework.js +1 -1
- package/src/bin/v2/framework/testcafeAutomationFramework.js +1 -1
- package/src/bin/v2/framework/testcafeTestFramework.js +1 -1
- package/src/bin/v2/grpcClient.js +1 -1
- package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/trackedContext.js +1 -1
- package/src/bin/v2/instances/trackedInstance.js +1 -1
- package/src/bin/v2/modules/accessibilityModule.js +1 -1
- package/src/bin/v2/modules/baseModule.js +1 -1
- package/src/bin/v2/modules/loadTestModule.js +1 -1
- package/src/bin/v2/modules/observabilityModule.js +1 -1
- package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
- package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
- package/src/bin/v2/modules/testcafeDriverModule.js +1 -1
- package/src/bin/v2/modules/testhubModule.js +1 -1
- package/src/bin/v2/sdkErrorHandler.js +1 -1
- package/src/bin/v2/state/automationFrameworkState.js +1 -1
- package/src/bin/v2/state/hookState.js +1 -1
- package/src/bin/v2/state/testFrameworkState.js +1 -1
- package/src/bin/v2/uploadAttachmentsManager.js +1 -1
- package/src/bin/v2/utils/cucumber-utils.js +1 -1
- package/src/bin/v2/utils/jest-utils.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/caCertHelper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/central-scanner/constants.js +1 -1
- package/src/helpers/central-scanner/helpers.js +1 -1
- package/src/helpers/classLogger.js +1 -1
- package/src/helpers/driverInitErrorReporter.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/metadata.js +1 -1
- package/src/helpers/patchHelper.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance/constants.js +1 -1
- package/src/helpers/performance/performance-tester.js +1 -1
- package/src/helpers/playwright-helper.js +1 -1
- package/src/helpers/processHelper.js +1 -1
- package/src/helpers/puppeteer-helper.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/stackFrameUtils.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/test-orchestration/constants.js +1 -1
- package/src/helpers/test-orchestration/failfastManager.js +1 -1
- package/src/helpers/test-orchestration/fileHelper.js +1 -1
- package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
- package/src/helpers/test-orchestration/requestUtils.js +1 -1
- package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
- package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
package/src/helpers/logger.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a138_0x24d37e=a138_0xe047;(function(_0x13fe9b,_0x2144dd){const _0x10925d=a138_0xe047,_0x3f424b=_0x13fe9b();while(!![]){try{const _0x3c0861=-parseInt(_0x10925d(0xe0))/0x1*(parseInt(_0x10925d(0xa0))/0x2)+-parseInt(_0x10925d(0xba))/0x3+parseInt(_0x10925d(0xd2))/0x4+-parseInt(_0x10925d(0x95))/0x5*(-parseInt(_0x10925d(0xcb))/0x6)+parseInt(_0x10925d(0xb0))/0x7+parseInt(_0x10925d(0x92))/0x8*(parseInt(_0x10925d(0xa1))/0x9)+-parseInt(_0x10925d(0xcc))/0xa*(parseInt(_0x10925d(0xb6))/0xb);if(_0x3c0861===_0x2144dd)break;else _0x3f424b['push'](_0x3f424b['shift']());}catch(_0x42318b){_0x3f424b['push'](_0x3f424b['shift']());}}}(a138_0x2f92,0x5ce03));const winston=require('winston'),path=require('path'),fs=require('fs'),{LOG_FILE_NAME,DEBUG_LOG_FILE_NAME,DEBUG_CLI_LOG_FILE_NAME}=require(a138_0x24d37e(0xa5)),tempLogDir=a138_0x24d37e(0xa2);function a138_0x2f92(){const _0x12032b=['includes','winstonLogger','BROWSERSTACK_LOG_LEVEL','EPIPE','TCWBn','automation.log','mkdirSync','logDir','znHUB','32771ERLgKc','object','Ogzow','DmBUH','oHykK','PRwhd','debugLoggerFile','silly','remove','ccJQA','72WePVGH','[REDACTED]','buildLogger','5ZVxPZZ','/usage-debug.log','map','http','existsSync','goyLn','[REDACTED\x20HEADERS]','true','lqdWH','code','timestamp','22UnJqDh','138843muLqvI','log','File','initialize','../bin/utils/constants','env','createLogger','length','\x20-\x20','uncolorize','YYYY-MM-DD\x20HH:mm:ss','transports','combine','automationLogger','debugCliLoggerFile','848120sSujlK','loggerFile','fileLogger','RXshK','BROWSERSTACK_INTERNAL_LOG_DIR','printf','11RRNkUq','gCLMt','levels','rmUev','1450056zYOktP','automationLoggerFile','console.info','colorize','level','message','format','loggerConsole','toLowerCase','maskHeaders','stringify','config','replace','EzeDS','name','join','keys','4169964YTrxmo','2284000SxcbTF','\x5c$&','add','debug','string','Console','1990620jeepIU','info','getLogDir','BROWSERSTACK_AUTOMATION_LOGS','uRaED'];a138_0x2f92=function(){return _0x12032b;};return a138_0x2f92();}let redactRegex=null,lastConfigHash='';const logFormat=winston['format'](_0x1687de=>{const _0x40449f=a138_0x24d37e,_0x407334={};_0x407334[_0x40449f(0x9d)]=function(_0x1ddd6d,_0x5aeb89){return _0x1ddd6d!==_0x5aeb89;},_0x407334[_0x40449f(0xc7)]=_0x40449f(0xd0),_0x407334[_0x40449f(0xe5)]=function(_0x133818,_0x227a58){return _0x133818+_0x227a58;},_0x407334[_0x40449f(0x9a)]=function(_0x5ab30f,_0x45503a){return _0x5ab30f+_0x45503a;},_0x407334[_0x40449f(0xdb)]=function(_0x105fb1,_0x113c51){return _0x105fb1>_0x113c51;},_0x407334[_0x40449f(0xe9)]='[REDACTED]';const _0x29bf5f=_0x407334;_0x29bf5f[_0x40449f(0x9d)](typeof _0x1687de['message'],_0x29bf5f[_0x40449f(0xc7)])&&(_0x1687de[_0x40449f(0xbf)]=JSON[_0x40449f(0xc4)](_0x1687de[_0x40449f(0xbf)]));const _0x3ee8a5=global[_0x40449f(0xc5)]&&global[_0x40449f(0xc5)]['userName']||'',_0x2bcc54=global[_0x40449f(0xc5)]&&global[_0x40449f(0xc5)]['accessKey']||'',_0x35a1e6=_0x29bf5f[_0x40449f(0xe5)](_0x29bf5f[_0x40449f(0x9a)](_0x3ee8a5,'|'),_0x2bcc54);if(_0x29bf5f[_0x40449f(0x9d)](_0x35a1e6,lastConfigHash)){lastConfigHash=_0x35a1e6;const _0xd955e4=[_0x3ee8a5,_0x2bcc54]['filter'](Boolean);if(_0x29bf5f['TCWBn'](_0xd955e4[_0x40449f(0xa8)],0x0)){const _0x15e6bb=_0xd955e4[_0x40449f(0x97)](_0x4b2336=>_0x4b2336[_0x40449f(0xc6)](/[.*+?^${}()|[\]\\]/g,_0x40449f(0xcd)))['join']('|');redactRegex=new RegExp(_0x15e6bb,'g');}else redactRegex=null;}return redactRegex&&(_0x1687de[_0x40449f(0xbf)]=_0x1687de[_0x40449f(0xbf)][_0x40449f(0xc6)](redactRegex,_0x29bf5f[_0x40449f(0xe9)])),_0x1687de;}),SENSITIVE_HEADER_REGEX=/authorization|token|cookie|secret|^x-api-key$|accesskey|password/i,maskHeaders=_0x2c9853=>{const _0x534fa5=a138_0x24d37e,_0x597e15={};_0x597e15[_0x534fa5(0xb3)]=function(_0x60051,_0x529238){return _0x60051!==_0x529238;},_0x597e15[_0x534fa5(0xe2)]=_0x534fa5(0xe1),_0x597e15[_0x534fa5(0xdf)]=_0x534fa5(0x93),_0x597e15['BArOr']=_0x534fa5(0x9b);const _0x2d53e9=_0x597e15;try{if(!_0x2c9853||_0x2d53e9[_0x534fa5(0xb3)](typeof _0x2c9853,_0x2d53e9[_0x534fa5(0xe2)]))return _0x2c9853;const _0x5e4e05={};for(const _0x2edf13 of Object[_0x534fa5(0xca)](_0x2c9853)){_0x5e4e05[_0x2edf13]=SENSITIVE_HEADER_REGEX['test'](_0x2edf13)?_0x2d53e9[_0x534fa5(0xdf)]:_0x2c9853[_0x2edf13];}return _0x5e4e05;}catch{return _0x2d53e9['BArOr'];}},fetchLogDir=()=>{const _0x33845d=a138_0x24d37e;if(process[_0x33845d(0xa6)][_0x33845d(0xb4)])return process[_0x33845d(0xa6)]['BROWSERSTACK_INTERNAL_LOG_DIR'];else!fs[_0x33845d(0x99)](tempLogDir)&&fs[_0x33845d(0xdd)](tempLogDir);return tempLogDir;},logDir=fetchLogDir(),getInitialLogLevel=()=>{const _0x42883a=a138_0x24d37e,_0x4c122d={};_0x4c122d['oHykK']=_0x42883a(0xd3);const _0x45594f=_0x4c122d,_0x570565=process[_0x42883a(0xa6)][_0x42883a(0xd9)],_0x260ebe=Object[_0x42883a(0xca)](winston[_0x42883a(0xc5)]['npm'][_0x42883a(0xb8)]);if(_0x570565&&_0x260ebe[_0x42883a(0xd7)](_0x570565[_0x42883a(0xc2)]()))return _0x570565[_0x42883a(0xc2)]();return _0x45594f[_0x42883a(0xe4)];},initialLogLevel=getInitialLogLevel(),a138_0x1cd1d7={};a138_0x1cd1d7[a138_0x24d37e(0xc8)]=a138_0x24d37e(0xbc),a138_0x1cd1d7[a138_0x24d37e(0xbe)]=initialLogLevel;const transports={'loggerConsole':new winston[(a138_0x24d37e(0xac))][(a138_0x24d37e(0xd1))](a138_0x1cd1d7),'loggerFile':new winston[(a138_0x24d37e(0xac))][(a138_0x24d37e(0xa3))]({'filename':path[a138_0x24d37e(0xc9)](logDir,'/usage.log'),'level':initialLogLevel}),'debugLoggerFile':new winston['transports'][(a138_0x24d37e(0xa3))]({'filename':path[a138_0x24d37e(0xc9)](logDir,a138_0x24d37e(0x96)),'level':a138_0x24d37e(0xe7)}),'debugCliLoggerFile':new winston[(a138_0x24d37e(0xac))][(a138_0x24d37e(0xa3))]({'filename':path[a138_0x24d37e(0xc9)](logDir,DEBUG_CLI_LOG_FILE_NAME),'level':a138_0x24d37e(0xe7)}),'buildLinkTransport':new winston[(a138_0x24d37e(0xac))][(a138_0x24d37e(0xa3))]({'filename':path[a138_0x24d37e(0xc9)](logDir,'/usage.log'),'level':a138_0x24d37e(0xe7)})},automationTransports={};process[a138_0x24d37e(0xa6)][a138_0x24d37e(0xd5)]==='true'&&(automationTransports[a138_0x24d37e(0xbb)]=new winston[(a138_0x24d37e(0xac))][(a138_0x24d37e(0xa3))]({'filename':path[a138_0x24d37e(0xc9)](logDir,a138_0x24d37e(0xdc)),'level':a138_0x24d37e(0xe7)}));transports[a138_0x24d37e(0xc1)]['on']('error',_0x2de976=>{const _0x4b3e83=a138_0x24d37e,_0x5ecef6={};_0x5ecef6[_0x4b3e83(0xb7)]=function(_0x58c965,_0x5511ae){return _0x58c965===_0x5511ae;},_0x5ecef6[_0x4b3e83(0xd6)]=_0x4b3e83(0xda),_0x5ecef6['rmUev']='EPIPE\x20error\x20occurred\x20in\x20loggerConsole:';const _0x2a8671=_0x5ecef6;if(_0x2a8671[_0x4b3e83(0xb7)](_0x2de976[_0x4b3e83(0x9e)],_0x2a8671[_0x4b3e83(0xd6)])){console[_0x4b3e83(0xa2)](_0x2a8671[_0x4b3e83(0xb9)],_0x2de976[_0x4b3e83(0xbf)]);return;}throw _0x2de976;});function a138_0xe047(_0x5d306b,_0x2adaa3){const _0x2f9254=a138_0x2f92();return a138_0xe047=function(_0xe04725,_0xc0ae7){_0xe04725=_0xe04725-0x92;let _0xff2314=_0x2f9254[_0xe04725];return _0xff2314;},a138_0xe047(_0x5d306b,_0x2adaa3);}const a138_0x13c444={};a138_0x13c444[a138_0x24d37e(0xc0)]=a138_0x24d37e(0xab);const a138_0x66e2f8={};a138_0x66e2f8['level']=!![];const winstonLoggerParams={'format':winston['format'][a138_0x24d37e(0xad)](winston[a138_0x24d37e(0xc0)][a138_0x24d37e(0x9f)](a138_0x13c444),winston['format'][a138_0x24d37e(0xbd)](a138_0x66e2f8),winston[a138_0x24d37e(0xc0)]['printf'](_0x31ff0f=>_0x31ff0f[a138_0x24d37e(0x9f)]+a138_0x24d37e(0xa9)+_0x31ff0f[a138_0x24d37e(0xbe)]+':\x20'+_0x31ff0f[a138_0x24d37e(0xbf)])),'transports':[transports[a138_0x24d37e(0xc1)]]},a138_0x346209={};a138_0x346209[a138_0x24d37e(0xc0)]=a138_0x24d37e(0xab);const a138_0x2fcebc={};a138_0x2fcebc[a138_0x24d37e(0xbe)]=!![];const winstonFileLoggerParams={'format':winston[a138_0x24d37e(0xc0)][a138_0x24d37e(0xad)](winston['format'][a138_0x24d37e(0x9f)](a138_0x346209),winston[a138_0x24d37e(0xc0)][a138_0x24d37e(0xbd)](a138_0x2fcebc),winston['format'][a138_0x24d37e(0xb5)](_0x1d6206=>_0x1d6206['level']+':\x20'+_0x1d6206[a138_0x24d37e(0xbf)])),'transports':[]},a138_0x21cab4={};a138_0x21cab4[a138_0x24d37e(0xc0)]=a138_0x24d37e(0xab);const a138_0xb881dc={};a138_0xb881dc[a138_0x24d37e(0xbe)]=!![];const a138_0xbcfed1={};a138_0xbcfed1[a138_0x24d37e(0xbe)]=a138_0x24d37e(0xe7);const BuildLoggerParams={'format':winston[a138_0x24d37e(0xc0)]['combine'](winston[a138_0x24d37e(0xc0)][a138_0x24d37e(0x9f)](a138_0x21cab4),winston[a138_0x24d37e(0xc0)][a138_0x24d37e(0xbd)](a138_0xb881dc),winston['format'][a138_0x24d37e(0xb5)](_0x485ea2=>_0x485ea2['timestamp']+a138_0x24d37e(0xa9)+_0x485ea2['level']+':\x20'+_0x485ea2['message'])),'transports':[transports['buildLinkTransport'],new winston[(a138_0x24d37e(0xac))][(a138_0x24d37e(0xd1))](a138_0xbcfed1)]},a138_0x3716c6={};a138_0x3716c6[a138_0x24d37e(0x98)]=()=>{},a138_0x3716c6['info']=()=>{},a138_0x3716c6['warn']=()=>{},a138_0x3716c6['error']=()=>{},a138_0x3716c6[a138_0x24d37e(0xcf)]=()=>{},a138_0x3716c6['silly']=()=>{},exports[a138_0x24d37e(0xae)]=process[a138_0x24d37e(0xa6)][a138_0x24d37e(0xd5)]===a138_0x24d37e(0x9c)?winston[a138_0x24d37e(0xa7)]({'format':winston[a138_0x24d37e(0xc0)][a138_0x24d37e(0xad)](winston[a138_0x24d37e(0xc0)][a138_0x24d37e(0xaa)](),winston[a138_0x24d37e(0xc0)][a138_0x24d37e(0x9f)](),logFormat(),winston['format']['printf'](_0x37256b=>_0x37256b[a138_0x24d37e(0xbe)]+':\x20'+_0x37256b[a138_0x24d37e(0xbf)])),'transports':[automationTransports[a138_0x24d37e(0xbb)]]}):a138_0x3716c6;const initialize=()=>{const _0x24ab20=a138_0x24d37e,_0x34f422={};_0x34f422[_0x24ab20(0xe3)]=_0x24ab20(0xe7);const _0xda8bea=_0x34f422,_0x4f79a3=transports[_0x24ab20(0xc1)][_0x24ab20(0xbe)]||initialLogLevel;transports['loggerFile']&&(exports[_0x24ab20(0xd8)][_0x24ab20(0xe8)](transports[_0x24ab20(0xb1)]),exports['fileLogger'][_0x24ab20(0xe8)](transports[_0x24ab20(0xb1)])),transports['debugLoggerFile']&&(exports[_0x24ab20(0xd8)]['remove'](transports[_0x24ab20(0xe6)]),exports['fileLogger'][_0x24ab20(0xe8)](transports[_0x24ab20(0xe6)])),transports['loggerFile']=new winston[(_0x24ab20(0xac))][(_0x24ab20(0xa3))]({'filename':path[_0x24ab20(0xc9)](exports[_0x24ab20(0xde)],LOG_FILE_NAME),'level':_0x4f79a3}),transports[_0x24ab20(0xe6)]=new winston[(_0x24ab20(0xac))][(_0x24ab20(0xa3))]({'filename':path['join'](exports[_0x24ab20(0xde)],DEBUG_LOG_FILE_NAME),'level':_0xda8bea[_0x24ab20(0xe3)]}),transports[_0x24ab20(0xaf)]=new winston[(_0x24ab20(0xac))][(_0x24ab20(0xa3))]({'filename':path['join'](exports['logDir'],DEBUG_CLI_LOG_FILE_NAME),'level':_0xda8bea[_0x24ab20(0xe3)]}),exports[_0x24ab20(0xd8)][_0x24ab20(0xce)](transports['loggerFile']),exports['winstonLogger'][_0x24ab20(0xce)](transports[_0x24ab20(0xe6)]),exports[_0x24ab20(0xb2)][_0x24ab20(0xce)](transports[_0x24ab20(0xb1)]),exports[_0x24ab20(0xb2)]['add'](transports[_0x24ab20(0xe6)]);};exports[a138_0x24d37e(0xd8)]=new winston[(a138_0x24d37e(0xa7))](winstonLoggerParams),exports[a138_0x24d37e(0xb2)]=new winston[(a138_0x24d37e(0xa7))](winstonFileLoggerParams),exports[a138_0x24d37e(0x94)]=new winston[(a138_0x24d37e(0xa7))](BuildLoggerParams),exports[a138_0x24d37e(0xde)]=logDir,exports[a138_0x24d37e(0xd4)]=()=>{const _0x453554=a138_0x24d37e;return exports[_0x453554(0xde)];},exports[a138_0x24d37e(0xac)]=transports,exports[a138_0x24d37e(0xa4)]=initialize,exports[a138_0x24d37e(0xc3)]=maskHeaders;logDir&&initialize();
|
|
1
|
+
const a138_0x2e0af7=a138_0x2239;(function(_0x438504,_0x1550fb){const _0x7363b6=a138_0x2239,_0x32ce57=_0x438504();while(!![]){try{const _0x92ae56=parseInt(_0x7363b6(0x182))/0x1*(parseInt(_0x7363b6(0x176))/0x2)+parseInt(_0x7363b6(0x159))/0x3+parseInt(_0x7363b6(0x152))/0x4*(parseInt(_0x7363b6(0x146))/0x5)+-parseInt(_0x7363b6(0x167))/0x6+parseInt(_0x7363b6(0x145))/0x7+-parseInt(_0x7363b6(0x15b))/0x8*(parseInt(_0x7363b6(0x169))/0x9)+-parseInt(_0x7363b6(0x16c))/0xa;if(_0x92ae56===_0x1550fb)break;else _0x32ce57['push'](_0x32ce57['shift']());}catch(_0x330ac2){_0x32ce57['push'](_0x32ce57['shift']());}}}(a138_0x3f10,0x2a80a));const winston=require(a138_0x2e0af7(0x18c)),path=require('path'),fs=require('fs'),{LOG_FILE_NAME,DEBUG_LOG_FILE_NAME,DEBUG_CLI_LOG_FILE_NAME}=require(a138_0x2e0af7(0x178)),tempLogDir=a138_0x2e0af7(0x156);let redactRegex=null,lastConfigHash='';const logFormat=winston[a138_0x2e0af7(0x16e)](_0x2efda9=>{const _0x3c9548=a138_0x2e0af7,_0xe464ab={};_0xe464ab[_0x3c9548(0x16a)]=function(_0x5e0bf2,_0x518e9e){return _0x5e0bf2!==_0x518e9e;},_0xe464ab[_0x3c9548(0x166)]=_0x3c9548(0x17a),_0xe464ab['cujTt']=function(_0x4be9c0,_0x2ad736){return _0x4be9c0+_0x2ad736;},_0xe464ab[_0x3c9548(0x188)]=function(_0x4e6f09,_0x3b8bcc){return _0x4e6f09+_0x3b8bcc;},_0xe464ab[_0x3c9548(0x16f)]=function(_0x2e57cf,_0x535f30){return _0x2e57cf>_0x535f30;},_0xe464ab['EfdCb']=_0x3c9548(0x15e);const _0x31ce0d=_0xe464ab;_0x31ce0d['CSJfM'](typeof _0x2efda9[_0x3c9548(0x15c)],_0x31ce0d[_0x3c9548(0x166)])&&(_0x2efda9[_0x3c9548(0x15c)]=JSON[_0x3c9548(0x174)](_0x2efda9[_0x3c9548(0x15c)]));const _0x46bdae=global[_0x3c9548(0x163)]&&global[_0x3c9548(0x163)][_0x3c9548(0x14a)]||'',_0x224479=global['config']&&global['config'][_0x3c9548(0x160)]||'',_0x95e8c7=_0x31ce0d['cujTt'](_0x31ce0d['hhtdt'](_0x46bdae,'|'),_0x224479);if(_0x31ce0d[_0x3c9548(0x16a)](_0x95e8c7,lastConfigHash)){lastConfigHash=_0x95e8c7;const _0x3f0fd9=[_0x46bdae,_0x224479][_0x3c9548(0x14d)](Boolean);if(_0x31ce0d['HSdJS'](_0x3f0fd9[_0x3c9548(0x177)],0x0)){const _0x386cc1=_0x3f0fd9[_0x3c9548(0x171)](_0x137a30=>_0x137a30[_0x3c9548(0x180)](/[.*+?^${}()|[\]\\]/g,_0x3c9548(0x184)))[_0x3c9548(0x17f)]('|');redactRegex=new RegExp(_0x386cc1,'g');}else redactRegex=null;}return redactRegex&&(_0x2efda9[_0x3c9548(0x15c)]=_0x2efda9[_0x3c9548(0x15c)][_0x3c9548(0x180)](redactRegex,_0x31ce0d[_0x3c9548(0x161)])),_0x2efda9;}),SENSITIVE_HEADER_REGEX=/authorization|token|cookie|secret|^x-api-key$|accesskey|password/i,maskHeaders=_0x1fcfed=>{const _0x31e169=a138_0x2e0af7,_0x43c70a={};_0x43c70a[_0x31e169(0x18f)]=function(_0x16080a,_0x2bdf91){return _0x16080a!==_0x2bdf91;},_0x43c70a['auXQN']=_0x31e169(0x168),_0x43c70a[_0x31e169(0x144)]='[REDACTED]',_0x43c70a['xpGvc']='[REDACTED\x20HEADERS]';const _0x458faf=_0x43c70a;try{if(!_0x1fcfed||_0x458faf[_0x31e169(0x18f)](typeof _0x1fcfed,_0x458faf[_0x31e169(0x18b)]))return _0x1fcfed;const _0xb737={};for(const _0x191714 of Object[_0x31e169(0x183)](_0x1fcfed)){_0xb737[_0x191714]=SENSITIVE_HEADER_REGEX['test'](_0x191714)?_0x458faf[_0x31e169(0x144)]:_0x1fcfed[_0x191714];}return _0xb737;}catch{return _0x458faf[_0x31e169(0x165)];}},fetchLogDir=()=>{const _0x55eab7=a138_0x2e0af7;if(process[_0x55eab7(0x14f)][_0x55eab7(0x143)])return process['env']['BROWSERSTACK_INTERNAL_LOG_DIR'];else!fs[_0x55eab7(0x181)](tempLogDir)&&fs[_0x55eab7(0x173)](tempLogDir);return tempLogDir;},logDir=fetchLogDir(),getInitialLogLevel=()=>{const _0x287c7b=a138_0x2e0af7,_0x572881={};_0x572881[_0x287c7b(0x170)]='info';const _0x2c945e=_0x572881,_0x5db979=process[_0x287c7b(0x14f)]['BROWSERSTACK_LOG_LEVEL'],_0xd87aeb=Object[_0x287c7b(0x183)](winston['config']['npm']['levels']);if(_0x5db979&&_0xd87aeb[_0x287c7b(0x14e)](_0x5db979['toLowerCase']()))return _0x5db979[_0x287c7b(0x175)]();return _0x2c945e[_0x287c7b(0x170)];},initialLogLevel=getInitialLogLevel(),a138_0xaeb1ab={};a138_0xaeb1ab[a138_0x2e0af7(0x141)]='console.info',a138_0xaeb1ab[a138_0x2e0af7(0x147)]=initialLogLevel;const transports={'loggerConsole':new winston[(a138_0x2e0af7(0x17e))][(a138_0x2e0af7(0x191))](a138_0xaeb1ab),'loggerFile':new winston[(a138_0x2e0af7(0x17e))][(a138_0x2e0af7(0x17d))]({'filename':path[a138_0x2e0af7(0x17f)](logDir,'/usage.log'),'level':initialLogLevel}),'debugLoggerFile':new winston[(a138_0x2e0af7(0x17e))][(a138_0x2e0af7(0x17d))]({'filename':path['join'](logDir,a138_0x2e0af7(0x14c)),'level':a138_0x2e0af7(0x157)}),'debugCliLoggerFile':new winston['transports'][(a138_0x2e0af7(0x17d))]({'filename':path[a138_0x2e0af7(0x17f)](logDir,DEBUG_CLI_LOG_FILE_NAME),'level':a138_0x2e0af7(0x157)}),'buildLinkTransport':new winston[(a138_0x2e0af7(0x17e))]['File']({'filename':path[a138_0x2e0af7(0x17f)](logDir,a138_0x2e0af7(0x185)),'level':a138_0x2e0af7(0x157)})},automationTransports={};process[a138_0x2e0af7(0x14f)]['BROWSERSTACK_AUTOMATION_LOGS']==='true'&&(automationTransports[a138_0x2e0af7(0x149)]=new winston[(a138_0x2e0af7(0x17e))]['File']({'filename':path[a138_0x2e0af7(0x17f)](logDir,a138_0x2e0af7(0x189)),'level':'silly'}));transports[a138_0x2e0af7(0x172)]['on']('error',_0x3c489c=>{const _0x599037=a138_0x2e0af7,_0x18599c={};_0x18599c[_0x599037(0x13e)]=function(_0x3b660c,_0x5f2bdd){return _0x3b660c===_0x5f2bdd;},_0x18599c[_0x599037(0x13f)]='EPIPE',_0x18599c['qLKld']=_0x599037(0x179);const _0x1d7484=_0x18599c;if(_0x1d7484[_0x599037(0x13e)](_0x3c489c[_0x599037(0x158)],_0x1d7484[_0x599037(0x13f)])){console['log'](_0x1d7484['qLKld'],_0x3c489c['message']);return;}throw _0x3c489c;});const a138_0x5ece5c={};a138_0x5ece5c[a138_0x2e0af7(0x16e)]=a138_0x2e0af7(0x186);const a138_0x1008c3={};a138_0x1008c3['level']=!![];const winstonLoggerParams={'format':winston[a138_0x2e0af7(0x16e)][a138_0x2e0af7(0x14b)](winston[a138_0x2e0af7(0x16e)][a138_0x2e0af7(0x153)](a138_0x5ece5c),winston[a138_0x2e0af7(0x16e)][a138_0x2e0af7(0x164)](a138_0x1008c3),winston[a138_0x2e0af7(0x16e)]['printf'](_0x37e4ca=>_0x37e4ca['timestamp']+a138_0x2e0af7(0x18d)+_0x37e4ca['level']+':\x20'+_0x37e4ca[a138_0x2e0af7(0x15c)])),'transports':[transports[a138_0x2e0af7(0x172)]]},a138_0x2de670={};a138_0x2de670[a138_0x2e0af7(0x16e)]='YYYY-MM-DD\x20HH:mm:ss';const a138_0x4737ce={};a138_0x4737ce[a138_0x2e0af7(0x147)]=!![];const winstonFileLoggerParams={'format':winston[a138_0x2e0af7(0x16e)][a138_0x2e0af7(0x14b)](winston[a138_0x2e0af7(0x16e)][a138_0x2e0af7(0x153)](a138_0x2de670),winston[a138_0x2e0af7(0x16e)][a138_0x2e0af7(0x164)](a138_0x4737ce),winston[a138_0x2e0af7(0x16e)]['printf'](_0x598c80=>_0x598c80[a138_0x2e0af7(0x147)]+':\x20'+_0x598c80[a138_0x2e0af7(0x15c)])),'transports':[]},a138_0x147ef7={};a138_0x147ef7[a138_0x2e0af7(0x16e)]='YYYY-MM-DD\x20HH:mm:ss';const a138_0x2d6ab4={};function a138_0x3f10(){const _0x42fd57=['timestamp','loggerFile','winstonLogger','log','silly','code','747687KroZOy','add','248xhFEUi','message','http','[REDACTED]','true','accessKey','EfdCb','error','config','colorize','xpGvc','tqyzx','498684wipXFb','object','4383gZbzYa','CSJfM','fileLogger','6149890eauugN','byqSP','format','HSdJS','tSGJb','map','loggerConsole','mkdirSync','stringify','toLowerCase','10778PfvhEJ','length','../bin/utils/constants','EPIPE\x20error\x20occurred\x20in\x20loggerConsole:','string','debugCliLoggerFile','printf','File','transports','join','replace','existsSync','62YucrQX','keys','\x5c$&','/usage.log','YYYY-MM-DD\x20HH:mm:ss','debugLoggerFile','hhtdt','automation.log','remove','auXQN','winston','\x20-\x20','buildLogger','ivhcJ','automationLogger','Console','DOiEv','CHgdy','uncolorize','name','getLogDir','BROWSERSTACK_INTERNAL_LOG_DIR','swNIz','1339163jFFBUt','5bxwhsW','level','logDir','automationLoggerFile','userName','combine','/usage-debug.log','filter','includes','env','createLogger','warn','450536QqSUrL'];a138_0x3f10=function(){return _0x42fd57;};return a138_0x3f10();}a138_0x2d6ab4[a138_0x2e0af7(0x147)]=!![];const a138_0x5c8d1e={};a138_0x5c8d1e['level']='silly';const BuildLoggerParams={'format':winston[a138_0x2e0af7(0x16e)][a138_0x2e0af7(0x14b)](winston[a138_0x2e0af7(0x16e)][a138_0x2e0af7(0x153)](a138_0x147ef7),winston[a138_0x2e0af7(0x16e)][a138_0x2e0af7(0x164)](a138_0x2d6ab4),winston[a138_0x2e0af7(0x16e)][a138_0x2e0af7(0x17c)](_0x1c9023=>_0x1c9023[a138_0x2e0af7(0x153)]+a138_0x2e0af7(0x18d)+_0x1c9023[a138_0x2e0af7(0x147)]+':\x20'+_0x1c9023[a138_0x2e0af7(0x15c)])),'transports':[transports['buildLinkTransport'],new winston[(a138_0x2e0af7(0x17e))][(a138_0x2e0af7(0x191))](a138_0x5c8d1e)]},a138_0x146bd1={};function a138_0x2239(_0x5b480e,_0x3e27a3){const _0x3f10b5=a138_0x3f10();return a138_0x2239=function(_0x22395f,_0x5e426f){_0x22395f=_0x22395f-0x13e;let _0x2a7d8c=_0x3f10b5[_0x22395f];return _0x2a7d8c;},a138_0x2239(_0x5b480e,_0x3e27a3);}a138_0x146bd1[a138_0x2e0af7(0x15d)]=()=>{},a138_0x146bd1['info']=()=>{},a138_0x146bd1[a138_0x2e0af7(0x151)]=()=>{},a138_0x146bd1[a138_0x2e0af7(0x162)]=()=>{},a138_0x146bd1['debug']=()=>{},a138_0x146bd1[a138_0x2e0af7(0x157)]=()=>{},exports[a138_0x2e0af7(0x190)]=process[a138_0x2e0af7(0x14f)]['BROWSERSTACK_AUTOMATION_LOGS']===a138_0x2e0af7(0x15f)?winston[a138_0x2e0af7(0x150)]({'format':winston[a138_0x2e0af7(0x16e)][a138_0x2e0af7(0x14b)](winston[a138_0x2e0af7(0x16e)][a138_0x2e0af7(0x140)](),winston[a138_0x2e0af7(0x16e)][a138_0x2e0af7(0x153)](),logFormat(),winston[a138_0x2e0af7(0x16e)][a138_0x2e0af7(0x17c)](_0x18467f=>_0x18467f[a138_0x2e0af7(0x147)]+':\x20'+_0x18467f[a138_0x2e0af7(0x15c)])),'transports':[automationTransports[a138_0x2e0af7(0x149)]]}):a138_0x146bd1;const initialize=()=>{const _0x2ed9e6=a138_0x2e0af7,_0x3fc81={};_0x3fc81[_0x2ed9e6(0x16d)]=_0x2ed9e6(0x157);const _0x3fca55=_0x3fc81,_0x1d6ccf=transports[_0x2ed9e6(0x172)][_0x2ed9e6(0x147)]||initialLogLevel;transports[_0x2ed9e6(0x154)]&&(exports[_0x2ed9e6(0x155)]['remove'](transports[_0x2ed9e6(0x154)]),exports[_0x2ed9e6(0x16b)]['remove'](transports['loggerFile'])),transports[_0x2ed9e6(0x187)]&&(exports[_0x2ed9e6(0x155)][_0x2ed9e6(0x18a)](transports[_0x2ed9e6(0x187)]),exports[_0x2ed9e6(0x16b)][_0x2ed9e6(0x18a)](transports[_0x2ed9e6(0x187)])),transports[_0x2ed9e6(0x154)]=new winston[(_0x2ed9e6(0x17e))][(_0x2ed9e6(0x17d))]({'filename':path[_0x2ed9e6(0x17f)](exports[_0x2ed9e6(0x148)],LOG_FILE_NAME),'level':_0x1d6ccf}),transports['debugLoggerFile']=new winston[(_0x2ed9e6(0x17e))][(_0x2ed9e6(0x17d))]({'filename':path[_0x2ed9e6(0x17f)](exports['logDir'],DEBUG_LOG_FILE_NAME),'level':_0x3fca55[_0x2ed9e6(0x16d)]}),transports[_0x2ed9e6(0x17b)]=new winston['transports'][(_0x2ed9e6(0x17d))]({'filename':path[_0x2ed9e6(0x17f)](exports[_0x2ed9e6(0x148)],DEBUG_CLI_LOG_FILE_NAME),'level':_0x3fca55[_0x2ed9e6(0x16d)]}),exports[_0x2ed9e6(0x155)][_0x2ed9e6(0x15a)](transports[_0x2ed9e6(0x154)]),exports[_0x2ed9e6(0x155)][_0x2ed9e6(0x15a)](transports[_0x2ed9e6(0x187)]),exports['fileLogger'][_0x2ed9e6(0x15a)](transports[_0x2ed9e6(0x154)]),exports[_0x2ed9e6(0x16b)][_0x2ed9e6(0x15a)](transports['debugLoggerFile']);};exports[a138_0x2e0af7(0x155)]=new winston[(a138_0x2e0af7(0x150))](winstonLoggerParams),exports['fileLogger']=new winston[(a138_0x2e0af7(0x150))](winstonFileLoggerParams),exports[a138_0x2e0af7(0x18e)]=new winston[(a138_0x2e0af7(0x150))](BuildLoggerParams),exports['logDir']=logDir,exports[a138_0x2e0af7(0x142)]=()=>{const _0xb935c5=a138_0x2e0af7;return exports[_0xb935c5(0x148)];},exports[a138_0x2e0af7(0x17e)]=transports,exports['initialize']=initialize,exports['maskHeaders']=maskHeaders;logDir&&initialize();
|
package/src/helpers/metadata.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a139_0x42bf75=a139_0x4c3e;function a139_0x4c3e(_0x1938e3,_0xe8a596){const _0x5ca94e=a139_0x5ca9();return a139_0x4c3e=function(_0x4c3eef,_0x26e19b){_0x4c3eef=_0x4c3eef-0x1c6;let _0x1f96a9=_0x5ca94e[_0x4c3eef];return _0x1f96a9;},a139_0x4c3e(_0x1938e3,_0xe8a596);}(function(_0x2145d9,_0x21a9a3){const _0xfc0ffb=a139_0x4c3e,_0x59ada9=_0x2145d9();while(!![]){try{const _0x56fba6=-parseInt(_0xfc0ffb(0x1cd))/0x1*(-parseInt(_0xfc0ffb(0x1e3))/0x2)+parseInt(_0xfc0ffb(0x1df))/0x3+parseInt(_0xfc0ffb(0x1dc))/0x4+-parseInt(_0xfc0ffb(0x1da))/0x5+-parseInt(_0xfc0ffb(0x1e6))/0x6+parseInt(_0xfc0ffb(0x1ca))/0x7+parseInt(_0xfc0ffb(0x1d4))/0x8;if(_0x56fba6===_0x21a9a3)break;else _0x59ada9['push'](_0x59ada9['shift']());}catch(_0x1f8501){_0x59ada9['push'](_0x59ada9['shift']());}}}(a139_0x5ca9,0x66eb0));const globals=require(a139_0x42bf75(0x1d2)),helper=require(a139_0x42bf75(0x1c8)),logger=require(a139_0x42bf75(0x1c6))[a139_0x42bf75(0x1cb)];module[a139_0x42bf75(0x1cc)]=class TestMetadata{static['set'](_0x5e90e9={}){const _0x24ecd1=a139_0x42bf75,_0x357693={};_0x357693[_0x24ecd1(0x1d9)]=_0x24ecd1(0x1d7),_0x357693[_0x24ecd1(0x1e2)]=function(_0x5ee886,_0x34fd1b){return _0x5ee886===_0x34fd1b;},_0x357693[_0x24ecd1(0x1d3)]=_0x24ecd1(0x1c7),_0x357693['UQONz']=function(_0x25ba5c,_0x3900c8){return _0x25ba5c<=_0x3900c8;},_0x357693['GgyQS']='testMeta',_0x357693[_0x24ecd1(0x1c9)]=_0x24ecd1(0x1d8);const _0x4dcf07=_0x357693,_0x18165e=globals['getGlobal'](_0x4dcf07[_0x24ecd1(0x1d9)]),_0xfd6cac=_0x5e90e9[_0x24ecd1(0x1e4)];helper['getCentralUser']()[_0x24ecd1(0x1ce)]&&(_0x4dcf07[_0x24ecd1(0x1e2)](typeof _0xfd6cac,_0x4dcf07[_0x24ecd1(0x1d3)])&&_0x4dcf07[_0x24ecd1(0x1dd)](_0xfd6cac[_0x24ecd1(0x1cf)],0x28)?_0x18165e?globals[_0x24ecd1(0x1e0)](_0x24ecd1(0x1e1)+_0x18165e,_0x5e90e9):globals[_0x24ecd1(0x1e0)](_0x4dcf07[_0x24ecd1(0x1e5)],_0x5e90e9):logger[_0x24ecd1(0x1d5)](_0x4dcf07[_0x24ecd1(0x1c9)]));}static[a139_0x42bf75(0x1de)](_0x26cbb1){const _0x2a010=a139_0x42bf75,_0x11bd6d={};_0x11bd6d[_0x2a010(0x1d6)]=_0x2a010(0x1d1);const _0x2cfcf6=_0x11bd6d;if(helper[_0x2a010(0x1d0)]()[_0x2a010(0x1ce)])return globals[_0x2a010(0x1db)](_0x2a010(0x1e1)+_0x26cbb1)||globals[_0x2a010(0x1db)](_0x2cfcf6[_0x2a010(0x1d6)])||{};return{};}};function a139_0x5ca9(){const _0x6700a9=['exports','320hdcRVW','lcnc','length','getCentralUser','testMeta','./globals','WMpHX','8088936nhYxex','warn','lWumF','testRunUUID','The\x20metadata\x20object\x20is\x20not\x20valid.','qYQoI','4025870bGqGOs','getGlobal','1743392gQALiY','UQONz','get','356061SvFcxG','setGlobal','testMeta-','xRMVB','2202xKIOng','identifier','GgyQS','4376724dWkWxQ','./logger','string','./helper','Wyaza','267456tZRiVN','winstonLogger'];a139_0x5ca9=function(){return _0x6700a9;};return a139_0x5ca9();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a140_0x1259cd=a140_0x39a3;function a140_0x39a3(_0x5f5caa,_0x47d091){const _0x4b077a=a140_0x4b07();return a140_0x39a3=function(_0x39a3d7,_0x1a160a){_0x39a3d7=_0x39a3d7-0xce;let _0x11afad=_0x4b077a[_0x39a3d7];return _0x11afad;},a140_0x39a3(_0x5f5caa,_0x47d091);}(function(_0x83332f,_0x951582){const _0x47ff62=a140_0x39a3,_0x591e7a=_0x83332f();while(!![]){try{const _0x57e74a=parseInt(_0x47ff62(0x100))/0x1*(-parseInt(_0x47ff62(0xf9))/0x2)+-parseInt(_0x47ff62(0xed))/0x3+-parseInt(_0x47ff62(0xff))/0x4*(parseInt(_0x47ff62(0x127))/0x5)+-parseInt(_0x47ff62(0xd9))/0x6*(parseInt(_0x47ff62(0xd0))/0x7)+parseInt(_0x47ff62(0xd7))/0x8+-parseInt(_0x47ff62(0xce))/0x9*(-parseInt(_0x47ff62(0xf6))/0xa)+parseInt(_0x47ff62(0xee))/0xb;if(_0x57e74a===_0x951582)break;else _0x591e7a['push'](_0x591e7a['shift']());}catch(_0x530959){_0x591e7a['push'](_0x591e7a['shift']());}}}(a140_0x4b07,0xce101));function a140_0x4b07(){const _0x4156eb=['thgHG','trackEvent','initExecute','iJXKh','nestedKeyValue','measureWrapper','commandName','[App-A11y]\x20patchHelper:\x20error\x20in\x20a11y\x20scan\x20hook:\x20','args','QCyRl','POST_EXECUTE','AUTOMATION_LOG_COMMANDS','getNudgeLocalNotSetError','./performance/constants','Error\x20in\x20local\x20nudge\x20for\x20overrideExecute:\x20','./performance/performance-tester','testFramework','debug','kDumS','execute','144795NfMrjP','NUDGE_LOCAL_ERRORS','484218mlckSM','message','7AjCfyb','response','../bin/v2/state/automationFrameworkState','BnEPC','YMhCj','aiDFg','getAccessibilityModule','10892240ueuTrQ','toISOString','7091976KqpCsA','WKUxV','patchExecute','shouldWrapCommand','find','[App-A11y]\x20patchHelper:\x20firing\x20EXECUTE\x20PRE\x20for\x20command=','util','./accessibility-automation/scripts','UdIVY','getCurrentAccessibilityStatus','getInstance','AvGSw','includes','parameters_','jVFsh','overrideExecute','capability','lksKy','EIpph','][\x20SDK-AUTOMATION\x20]\x20','465360TpHAmv','16056601GadoSX','rijwi','isAppAccessibility','function','RCWYC','./accessibility-automation/constants','FRAMEWORKS','NODE_GENERIC','90SWTuQQ','ScAzE','Caught\x20error\x20in\x20execute,\x20check\x20if\x20geturl\x20and\x20try\x20to\x20set\x20local\x20nudge','6962eQruvW','local','parameters','onBeforeExecute','RqoUZ','getTestFramework','100nHFIgZ','115vDbRnz','script','executeScript','toString','testRunId','get','../bin/v2/browserstackCLI','ktGdN','url','getCurrentTestUUID','body',',\x20testRunId=','format','./helper','CPUWo','driver','./logger','name_','request'];a140_0x4b07=function(){return _0x4156eb;};return a140_0x4b07();}const PerformanceTester=require(a140_0x1259cd(0x122)),{winstonLogger:logger,automationLogger}=require(a140_0x1259cd(0x110)),helper=require(a140_0x1259cd(0x10d)),constants=require('../bin/utils/constants'),{DRIVER_EVENT:PerformanceDriverEvents}=require(a140_0x1259cd(0x120)),{BSTACK_SCAN_IN_PROGRESS}=require(a140_0x1259cd(0xf3)),util=require(a140_0x1259cd(0xdf));exports[a140_0x1259cd(0xe8)]=(_0x249f88,_0x192278)=>{const _0x695cea=a140_0x1259cd,_0x2294e4={'lksKy':_0x695cea(0xf8),'jVFsh':function(_0x13ac4b,_0x2200ce){return _0x13ac4b===_0x2200ce;},'ZniGA':_0x695cea(0x105),'EIpph':_0x695cea(0xe6),'OZKmd':_0x695cea(0x108),'QCyRl':_0x695cea(0x121),'SAKib':'executeAsyncScript','Pcbgx':_0x695cea(0x102),'MspuZ':function(_0x1f3a26,_0x261795){return _0x1f3a26===_0x261795;},'BnEPC':'string','rijwi':function(_0x3f81c7,_0x2d2c1a){return _0x3f81c7(_0x2d2c1a);},'YMhCj':_0x695cea(0xe0),'WKUxV':function(_0x262a7c,_0x5715e9){return _0x262a7c(_0x5715e9);},'xIIMc':_0x695cea(0xd2),'ktGdN':'../bin/v2/state/hookState','gJHbb':_0x695cea(0xf1),'UdIVY':_0x695cea(0x106),'AvGSw':_0x695cea(0xe9),'thgHG':'browserstack.local','aiDFg':'bstack:options','CPUWo':_0x695cea(0xfa)},_0x4b8464=_0x249f88[_0x695cea(0xdb)]||(helper[_0x695cea(0x117)](_0x192278,[_0x2294e4[_0x695cea(0xe4)],_0x2294e4[_0x695cea(0x113)]])||helper[_0x695cea(0x117)](_0x192278,[_0x2294e4[_0x695cea(0xe4)],_0x2294e4[_0x695cea(0xd5)],_0x2294e4[_0x695cea(0x10e)]]));if(_0x4b8464)return;_0x249f88['patchExecute']=!![],_0x249f88[_0x695cea(0x115)]=_0x249f88[_0x695cea(0x126)],_0x249f88[_0x695cea(0x126)]=async _0x5218cf=>{const _0x11d648=_0x695cea,_0x4c0845={'iJXKh':_0x2294e4[_0x11d648(0xea)],'RqoUZ':function(_0x2ed8f9,_0x26ecc1){const _0x117944=_0x11d648;return _0x2294e4[_0x117944(0xe7)](_0x2ed8f9,_0x26ecc1);},'ScAzE':_0x2294e4['ZniGA'],'kDumS':_0x2294e4[_0x11d648(0xeb)],'RCWYC':_0x2294e4['OZKmd'],'tUBxQ':_0x2294e4[_0x11d648(0x11c)]};try{const _0x3ec725=await _0x249f88['initExecute'](_0x5218cf);try{if(_0x2294e4['jVFsh'](_0x5218cf[_0x11d648(0x111)],_0x2294e4['SAKib'])||_0x2294e4[_0x11d648(0xe7)](_0x5218cf[_0x11d648(0x111)],_0x2294e4['Pcbgx'])){const _0x4129d1=_0x5218cf[_0x11d648(0xe6)]&&_0x5218cf['parameters_'][_0x11d648(0x101)],_0x26c2c5=_0x5218cf[_0x11d648(0xe6)]&&_0x5218cf[_0x11d648(0xe6)][_0x11d648(0x11b)],_0x1ec42d=_0x26c2c5&&util[_0x11d648(0x10c)]('%j',_0x26c2c5);if(_0x4129d1&&_0x2294e4['MspuZ'](typeof _0x4129d1,_0x2294e4[_0x11d648(0xd3)])){const _0x9c7c13=constants[_0x11d648(0x11e)][_0x11d648(0xdd)](_0x318c92=>_0x4129d1['includes'](_0x318c92)||_0x1ec42d&&_0x1ec42d[_0x11d648(0xe5)](_0x318c92));if(_0x9c7c13){const _0x363049={};_0x363049['command']=_0x9c7c13,_0x363049[_0x11d648(0xfb)]=_0x26c2c5;const _0x23d3d9={};_0x23d3d9[_0x11d648(0x10a)]=_0x3ec725;const _0x107c75={};_0x107c75[_0x11d648(0x112)]=_0x363049,_0x107c75[_0x11d648(0xd1)]=_0x23d3d9,automationLogger['silly']('['+new Date()[_0x11d648(0xd8)]()+_0x11d648(0xec)+util[_0x11d648(0x10c)]('%j',_0x107c75));}}}}catch(_0x25e3bc){logger['silly']('Error\x20while\x20logging\x20accessibility\x20automation\x20logs\x20in\x20driver.execute\x20:\x20'+_0x25e3bc[_0x11d648(0xcf)]);}try{if(!_0x249f88[BSTACK_SCAN_IN_PROGRESS]){const _0x2d6f54=_0x2294e4['rijwi'](require,_0x2294e4[_0x11d648(0xd4)]),_0x2c228e=_0x2294e4[_0x11d648(0xda)](require,_0x2294e4['xIIMc']),_0x5307e2=_0x2294e4['rijwi'](require,_0x2294e4[_0x11d648(0x107)]);if(_0x2294e4['jVFsh'](typeof _0x2d6f54[_0x11d648(0xdc)],_0x2294e4['gJHbb'])&&_0x2d6f54['shouldWrapCommand'](_0x5218cf[_0x11d648(0x111)])){const _0xf73fd7=_0x2294e4[_0x11d648(0xef)](require,_0x2294e4[_0x11d648(0xe1)]),_0x267c0f=_0xf73fd7[_0x11d648(0xe3)](),_0x14abf5=_0x267c0f&&_0x267c0f[_0x11d648(0xd6)]();if(_0x14abf5&&_0x14abf5[_0x11d648(0xf0)]&&_0x14abf5[_0x11d648(0xe2)]()){let _0x37e3d1='';try{const _0x5b9bc0=_0x267c0f[_0x11d648(0xfe)]&&_0x267c0f[_0x11d648(0xfe)]();_0x37e3d1=_0x5b9bc0&&_0x5b9bc0[_0x11d648(0x109)]&&_0x5b9bc0[_0x11d648(0x109)]()||'';}catch(_0x499904){}logger['debug'](_0x11d648(0xde)+_0x5218cf[_0x11d648(0x111)]+_0x11d648(0x10b)+_0x37e3d1);const _0x3de799=_0x267c0f['getAutomationFramework']();if(!_0x3de799){logger['debug']('[App-A11y]\x20patchHelper:\x20no\x20automationFramework\x20for\x20node-generic\x20—\x20calling\x20onBeforeExecute\x20directly\x20for\x20command='+_0x5218cf[_0x11d648(0x111)]);const _0x35c86a={};_0x35c86a[_0x11d648(0x123)]=constants[_0x11d648(0xf4)][_0x11d648(0xf5)],_0x35c86a[_0x11d648(0x119)]=_0x5218cf[_0x11d648(0x111)],_0x35c86a['driver']=_0x249f88,_0x35c86a[_0x11d648(0x104)]=_0x37e3d1,await _0x14abf5[_0x11d648(0xfc)](_0x35c86a);}else{const _0x409ba6={};_0x409ba6[_0x11d648(0x119)]=_0x5218cf['name_'],_0x409ba6[_0x11d648(0x10f)]=_0x249f88,_0x409ba6[_0x11d648(0x123)]=constants[_0x11d648(0xf4)][_0x11d648(0xf5)],_0x409ba6[_0x11d648(0x104)]=_0x37e3d1,await _0x3de799[_0x11d648(0x114)](_0x2c228e['EXECUTE'],_0x5307e2['PRE'],_0x409ba6);}}}}}catch(_0x2660d6){logger[_0x11d648(0x124)](_0x11d648(0x11a)+_0x2660d6['message']);}return _0x3ec725;}catch(_0x13dc32){await PerformanceTester[_0x11d648(0x118)](PerformanceDriverEvents[_0x11d648(0x11d)],async()=>{const _0x4133e5=_0x11d648;logger[_0x4133e5(0x124)](_0x4c0845[_0x4133e5(0x116)]);try{_0x4c0845[_0x4133e5(0xfd)](_0x5218cf[_0x4133e5(0x111)],_0x4c0845[_0x4133e5(0xf7)])&&helper[_0x4133e5(0x117)](_0x5218cf,[_0x4c0845[_0x4133e5(0x125)],_0x4c0845[_0x4133e5(0xf2)]])&&!!constants[_0x4133e5(0x128)][_0x4133e5(0xdd)](_0x5ecdef=>{const _0x5057a9=_0x4133e5;return _0x13dc32[_0x5057a9(0x103)]()[_0x5057a9(0xe5)](_0x5ecdef);})&&helper[_0x4133e5(0x11f)](_0x5218cf[_0x4133e5(0xe6)][_0x4133e5(0x108)],!![]);}catch(_0xf410be){logger[_0x4133e5(0x124)](_0x4c0845['tUBxQ'],_0xf410be);}},{'success':![],'failure':_0x13dc32})();throw _0x13dc32;}};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a141_0xa199(_0x1a057f,_0x44cfdc){const _0x35cc96=a141_0x35cc();return a141_0xa199=function(_0xa1991,_0x551ddf){_0xa1991=_0xa1991-0x11c;let _0x58543c=_0x35cc96[_0xa1991];return _0x58543c;},a141_0xa199(_0x1a057f,_0x44cfdc);}const a141_0xb4521d=a141_0xa199;(function(_0x18e3bf,_0x197b70){const _0x256690=a141_0xa199,_0x237a0c=_0x18e3bf();while(!![]){try{const _0x1f3e83=-parseInt(_0x256690(0x13d))/0x1+parseInt(_0x256690(0x120))/0x2*(parseInt(_0x256690(0x142))/0x3)+-parseInt(_0x256690(0x13c))/0x4+-parseInt(_0x256690(0x144))/0x5+parseInt(_0x256690(0x13e))/0x6+-parseInt(_0x256690(0x12c))/0x7*(parseInt(_0x256690(0x128))/0x8)+parseInt(_0x256690(0x12d))/0x9*(parseInt(_0x256690(0x121))/0xa);if(_0x1f3e83===_0x197b70)break;else _0x237a0c['push'](_0x237a0c['shift']());}catch(_0xb8acf){_0x237a0c['push'](_0x237a0c['shift']());}}}(a141_0x35cc,0xea263));function a141_0x35cc(){const _0x54f376=['88GdbSgq','initQuit','TAKE_SCREENSHOT','NNyut','1079659mgnmhw','9OuJZkH','XyVqq','quitCount_','emit','patchScreenshot','start','overrideQuit','quit','nAEtY','pid','VOApS','then','lSKiT','true','eTLxG','3932960eRUyFI','1522787NCXiQf','1154028wTXYCg','takeScreenshot','JPfut','TEST_SCREENSHOT','69ZkyBbi','patchQuit','6248050bQrNQT','env','EPjfr','meOtc','./performance/constants','131764yYxmPI','47036950SPdSCO','end','bs:addLog:','twJUO','NloLy','initScreenshot','DyKKB'];a141_0x35cc=function(){return _0x54f376;};return a141_0x35cc();}const PerformanceTester=require('./performance/performance-tester'),O11yEvents=require(a141_0xb4521d(0x11f))['O11y_EVENTS'];exports['overrideTakeScreenshot']=_0x32a4b2=>{const _0x25422d=a141_0xb4521d,_0xc67b34={'lSKiT':_0x25422d(0x141),'eTLxG':function(_0x1f805b,_0x5d2fdc){return _0x1f805b(_0x5d2fdc);},'lExjn':function(_0x226374,_0x25d93b){return _0x226374(_0x25d93b);},'nAEtY':function(_0x3ccd90,_0x137f1b){return _0x3ccd90!==_0x137f1b;},'VOApS':_0x25422d(0x13a)};if(_0xc67b34[_0x25422d(0x135)](process[_0x25422d(0x11c)]['BS_TESTOPS_ALLOW_SCREENSHOTS'],_0xc67b34[_0x25422d(0x137)]))return;if(_0x32a4b2['patchScreenshot'])return;_0x32a4b2[_0x25422d(0x131)]=!![],_0x32a4b2['initScreenshot']=_0x32a4b2[_0x25422d(0x13f)],_0x32a4b2[_0x25422d(0x13f)]=()=>{const _0x3003be=_0x25422d,_0x56e920={'NloLy':_0xc67b34[_0x3003be(0x139)],'FaPAR':function(_0x4bb1c4,_0x313acf){const _0x1cce24=_0x3003be;return _0xc67b34[_0x1cce24(0x13b)](_0x4bb1c4,_0x313acf);},'JPfut':function(_0x4ce4c5,_0x2cc57a){return _0xc67b34['lExjn'](_0x4ce4c5,_0x2cc57a);}};return new Promise(function(_0x101597,_0x40b88a){const _0xa80893=_0x3003be,_0x57aeac={'EPjfr':_0x56e920[_0xa80893(0x125)],'twJUO':function(_0x433a06,_0x17d6fc){return _0x56e920['FaPAR'](_0x433a06,_0x17d6fc);},'NNyut':function(_0x8ac5ff,_0x38f76d){const _0x2a3a38=_0xa80893;return _0x56e920[_0x2a3a38(0x140)](_0x8ac5ff,_0x38f76d);}};_0x32a4b2[_0xa80893(0x126)]()[_0xa80893(0x138)](_0x88234b=>{const _0x30341a=_0xa80893;PerformanceTester[_0x30341a(0x132)](O11yEvents['TAKE_SCREENSHOT']),process[_0x30341a(0x130)](_0x30341a(0x123)+process[_0x30341a(0x136)],{'timestamp':new Date()['toISOString'](),'message':_0x88234b,'kind':_0x57aeac[_0x30341a(0x11d)]}),_0x57aeac[_0x30341a(0x124)](_0x101597,_0x88234b),PerformanceTester[_0x30341a(0x122)](O11yEvents[_0x30341a(0x12a)]);})['catch'](_0x5a6ac3=>{const _0xdab8f9=_0xa80893;PerformanceTester[_0xdab8f9(0x122)](O11yEvents[_0xdab8f9(0x12a)]),_0x57aeac[_0xdab8f9(0x12b)](_0x40b88a,_0x5a6ac3);});});};},exports[a141_0xb4521d(0x133)]=(_0x779444,_0x470119=null)=>{const _0x5d1b2b=a141_0xb4521d,_0x3df79b={'meOtc':function(_0x342275){return _0x342275();},'DyKKB':function(_0x2c91bd,_0x1ac09c){return _0x2c91bd>_0x1ac09c;},'XyVqq':function(_0x4acae5,_0x3c0b07){return _0x4acae5>_0x3c0b07;}};if(_0x779444[_0x5d1b2b(0x143)])return;_0x779444[_0x5d1b2b(0x143)]=!![],_0x779444[_0x5d1b2b(0x129)]=_0x779444[_0x5d1b2b(0x134)],_0x779444[_0x5d1b2b(0x134)]=()=>{const _0x393a85=_0x5d1b2b;if(_0x470119){_0x470119[_0x393a85(0x12f)]+=0x1;if(_0x3df79b[_0x393a85(0x127)](_0x470119[_0x393a85(0x12f)],0x1))return _0x779444[_0x393a85(0x129)]();}else{_0x779444[_0x393a85(0x12f)]+=0x1;if(_0x3df79b[_0x393a85(0x12e)](_0x779444[_0x393a85(0x12f)],0x1))return _0x779444[_0x393a85(0x129)]();}return new Promise(function(_0x439989){const _0x2fb35a=_0x393a85;_0x3df79b[_0x2fb35a(0x11e)](_0x439989);});};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a142_0x517fce=a142_0x1efb;function a142_0x1efb(_0x88dc2d,_0x2b86ad){const _0x4e6ecc=a142_0x4e6e();return a142_0x1efb=function(_0x1efb46,_0x1b1f1f){_0x1efb46=_0x1efb46-0xed;let _0x59eae4=_0x4e6ecc[_0x1efb46];return _0x59eae4;},a142_0x1efb(_0x88dc2d,_0x2b86ad);}function a142_0x4e6e(){const _0x5538b0=['app:exec','EAHsU','end','app','Percy\x20config\x20created\x20at\x20','projectName','writeFile','healthcheck','../../helpers/performance/constants','1202217tBOjmK','Percy\x20healthcheck\x20successful','PznBR','tmpdir','2884851zpQxqZ','percy.json','VJfAx','start','percy/healthcheck','RlIHF','stringify','join','stop','createWriteStream','aiDlY','1184mhZuYl','OraAs','DOWNLOAD','Percy\x20fetch\x20token\x20success','fetchPercyToken','GET','isProcessRunning','HHhsc','stdout','3353RQjtcu','data','MDEUs','pipe','../logger','89075zJQWjf','4bbdibt','PERCY_SERVER_ADDRESS','assign','zMKWp','http://localhost:5338','env','HwXrH','close','exec:stop','rXGRw','nodeRequest','automate','debug','exec','createPercyConfig','push','stderr','../helper','BROWSERSTACK_TESTHUB_UUID','version','error',':start','token','xhiXK','child_process','113254gsIyYP','percyOptions','Percy\x20unable\x20to\x20fetch\x20project\x20token:\x20','1647084YmOtPA','1536070GVgtel','XeZwS','./PercyBinary','vKgwt','BjwEF'];a142_0x4e6e=function(){return _0x5538b0;};return a142_0x4e6e();}(function(_0x1fa86d,_0x3a8d5f){const _0xef288e=a142_0x1efb,_0x3cb6fe=_0x1fa86d();while(!![]){try{const _0x3a4f08=-parseInt(_0xef288e(0xfa))/0x1+parseInt(_0xef288e(0x114))/0x2+parseInt(_0xef288e(0x126))/0x3*(parseInt(_0xef288e(0xfb))/0x4)+parseInt(_0xef288e(0x118))/0x5+-parseInt(_0xef288e(0x117))/0x6+parseInt(_0xef288e(0xf5))/0x7*(-parseInt(_0xef288e(0x135))/0x8)+parseInt(_0xef288e(0x12a))/0x9;if(_0x3a4f08===_0x3a8d5f)break;else _0x3cb6fe['push'](_0x3cb6fe['shift']());}catch(_0x34875a){_0x3cb6fe['push'](_0x3cb6fe['shift']());}}}(a142_0x4e6e,0x9ed8e));const fs=require('fs'),path=require('path'),os=require('os'),{spawn}=require(a142_0x517fce(0x113)),helper=require(a142_0x517fce(0x10c)),logger=require(a142_0x517fce(0xf9))['winstonLogger'],{getLogDir}=require('../logger'),testHubConstants=require('../../helpers/testhub/constants'),PerformanceTester=require('../../helpers/performance/performance-tester'),{PERCY_EVENTS:PerformanceEvents}=require(a142_0x517fce(0x125)),PercyBinary=require(a142_0x517fce(0x11a));class Percy{#logfile=path[a142_0x517fce(0x131)](getLogDir(),'percy.log');#address=process[a142_0x517fce(0x100)][a142_0x517fce(0xfc)]||a142_0x517fce(0xff);#binaryPath=null;#config=null;#proc=null;#logStream=null;#isApp=![];[a142_0x517fce(0xf2)]=![];constructor(_0x2eae25){const _0x54e305=a142_0x517fce;this.#config=_0x2eae25,!!_0x2eae25[_0x54e305(0x120)]&&(this.#isApp=!![]);}async #getBinaryPath(){const _0x4d41c4=a142_0x517fce;if(!this.#binaryPath){const _0x4c1b1b=new PercyBinary();PerformanceTester['start'](PerformanceEvents[_0x4d41c4(0xee)]),this.#binaryPath=await _0x4c1b1b['getBinaryPath'](this.#config),PerformanceTester[_0x4d41c4(0x11f)](PerformanceEvents[_0x4d41c4(0xee)]);}return this.#binaryPath;}async #sleep(_0x46edff){return new Promise(_0xccb701=>setTimeout(_0xccb701,_0x46edff));}async[a142_0x517fce(0x124)](){const _0x3a19c4=a142_0x517fce,_0x500bcc={};_0x500bcc['RveWq']=_0x3a19c4(0xf1),_0x500bcc['MLoRP']=_0x3a19c4(0x12e);const _0x38a504=_0x500bcc;try{const _0x1d9b58=await helper['nodeRequest'](_0x38a504['RveWq'],_0x38a504['MLoRP'],null,null,this.#address);if(_0x1d9b58)return!![];}catch(_0x4f42fe){return![];}}async[a142_0x517fce(0x12d)](){const _0x5a0f5e=a142_0x517fce,_0x17d98d={'BjwEF':_0x5a0f5e(0x11d),'aSHjV':_0x5a0f5e(0x108),'OraAs':function(_0xe77a79,_0x515891,_0x10b16a,_0x328dd8){return _0xe77a79(_0x515891,_0x10b16a,_0x328dd8);},'rXGRw':'close','HwXrH':_0x5a0f5e(0x127)},_0x12b4ba=await this.#getBinaryPath(),_0x1be132={};_0x1be132['flags']='a',this.#logStream=fs[_0x5a0f5e(0x133)](this.#logfile,_0x1be132);const _0x52934a=await this[_0x5a0f5e(0xf0)](),_0x3e2cdd=await this['createPercyConfig']();if(!_0x52934a)return![];const _0xac7d71=[(this.#isApp?_0x17d98d[_0x5a0f5e(0x11c)]:_0x17d98d['aSHjV'])+_0x5a0f5e(0x110)];_0x3e2cdd&&_0xac7d71[_0x5a0f5e(0x10a)]('-c',_0x3e2cdd);this.#proc=_0x17d98d[_0x5a0f5e(0xed)](spawn,_0x12b4ba,_0xac7d71,{'env':Object[_0x5a0f5e(0xfd)](process['env'],{'PERCY_TOKEN':_0x52934a,'TH_BUILD_UUID':process[_0x5a0f5e(0x100)][testHubConstants['ENV_VAR'][_0x5a0f5e(0x10d)]]})}),this.#proc[_0x5a0f5e(0xf4)][_0x5a0f5e(0xf8)](this.#logStream),this.#proc[_0x5a0f5e(0x10b)][_0x5a0f5e(0xf8)](this.#logStream),this[_0x5a0f5e(0xf2)]=!![];var _0x36dd0e=this;this.#proc['on'](_0x17d98d[_0x5a0f5e(0x104)],function(_0x4c691f){const _0x4c9bfb=_0x5a0f5e;_0x36dd0e[_0x4c9bfb(0xf2)]=![];});do{const _0x234710=await this[_0x5a0f5e(0x124)]();if(_0x234710)return logger[_0x5a0f5e(0x107)](_0x17d98d[_0x5a0f5e(0x101)]),!![];await this.#sleep(0x3e8);}while(this[_0x5a0f5e(0xf2)]);return![];}async[a142_0x517fce(0x132)](){const _0x3b6773=a142_0x517fce,_0x19709f={'zndRF':function(_0x506dc7,_0x27b114){return _0x506dc7(_0x27b114);},'VJfAx':function(_0x1b282e,_0x2b515c,_0x3641d5){return _0x1b282e(_0x2b515c,_0x3641d5);},'RlIHF':_0x3b6773(0x103),'HHhsc':_0x3b6773(0x102)},_0xbd5f34=await this.#getBinaryPath();return new Promise((_0x1836c7,_0x34595c)=>{const _0x325a8c=_0x3b6773,_0x3b6f68=_0x19709f[_0x325a8c(0x12c)](spawn,_0xbd5f34,[_0x19709f[_0x325a8c(0x12f)]]);_0x3b6f68['on'](_0x19709f[_0x325a8c(0xf3)],_0x5681e0=>{const _0x425e51=_0x325a8c;this[_0x425e51(0xf2)]=![],this.#logStream&&(this.#logStream[_0x425e51(0x11f)](),this.#logStream=null),_0x19709f['zndRF'](_0x1836c7,_0x5681e0);});});}['isRunning'](){const _0x3d0ebb=a142_0x517fce;return this[_0x3d0ebb(0xf2)];}async[a142_0x517fce(0xf0)](){const _0x339697=a142_0x517fce,_0x1d5731={};_0x1d5731[_0x339697(0xf7)]=_0x339697(0x120),_0x1d5731[_0x339697(0x128)]=_0x339697(0x106),_0x1d5731[_0x339697(0x134)]=_0x339697(0xf1),_0x1d5731[_0x339697(0x11e)]=_0x339697(0xef);const _0x943317=_0x1d5731,_0x58264d=this.#config[_0x339697(0x122)];try{const _0x7a957=this.#isApp?_0x943317[_0x339697(0xf7)]:_0x943317[_0x339697(0x128)],_0xafec1d=await helper[_0x339697(0x105)](_0x943317[_0x339697(0x134)],'api/app_percy/get_project_token?name='+_0x58264d+'&type='+_0x7a957,{},this.#config),_0x53d9dc=_0xafec1d[_0x339697(0xf6)];return logger[_0x339697(0x107)](_0x943317[_0x339697(0x11e)]),_0x53d9dc[_0x339697(0x111)];}catch(_0x384988){return logger['error'](_0x339697(0x116)+_0x384988),null;}}async[a142_0x517fce(0x109)](){const _0x4326d6=a142_0x517fce,_0x49db93={'xhiXK':function(_0x14e5a6,_0x55b686){return _0x14e5a6(_0x55b686);},'vKgwt':function(_0x476e0d,_0x17c8b1){return _0x476e0d+_0x17c8b1;},'CWUSX':_0x4326d6(0x121),'zMKWp':function(_0x371ce6,_0x2ae42d){return _0x371ce6(_0x2ae42d);},'XeZwS':_0x4326d6(0x12b)};if(!this.#config[_0x4326d6(0x115)])return null;const _0x4d2392=path[_0x4326d6(0x131)](os[_0x4326d6(0x129)](),_0x49db93[_0x4326d6(0x119)]),_0x86a7f1=this.#config[_0x4326d6(0x115)];return!_0x86a7f1['version']&&(_0x86a7f1[_0x4326d6(0x10e)]='2'),new Promise((_0x40895f,_0x599f95)=>{const _0x3de3ce=_0x4326d6;fs[_0x3de3ce(0x123)](_0x4d2392,JSON[_0x3de3ce(0x130)](_0x86a7f1),_0x522598=>{const _0x1ffddd=_0x3de3ce;_0x522598&&(logger[_0x1ffddd(0x10f)]('Error\x20creating\x20percy\x20config:\x20'+_0x522598),_0x49db93[_0x1ffddd(0x112)](_0x40895f,null)),logger[_0x1ffddd(0x107)](_0x49db93[_0x1ffddd(0x11b)](_0x49db93['CWUSX'],_0x4d2392)),_0x49db93[_0x1ffddd(0xfe)](_0x40895f,_0x4d2392);});});}}module['exports']=Percy;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a143_0xb68f4b=a143_0x5413;(function(_0x2eb621,_0x289c25){const _0x248c1d=a143_0x5413,_0x3c4efd=_0x2eb621();while(!![]){try{const _0x25c6aa=-parseInt(_0x248c1d(0x1f3))/0x1+-parseInt(_0x248c1d(0x1f1))/0x2*(parseInt(_0x248c1d(0x23a))/0x3)+parseInt(_0x248c1d(0x246))/0x4*(parseInt(_0x248c1d(0x264))/0x5)+-parseInt(_0x248c1d(0x27b))/0x6*(-parseInt(_0x248c1d(0x247))/0x7)+parseInt(_0x248c1d(0x235))/0x8+-parseInt(_0x248c1d(0x25a))/0x9*(-parseInt(_0x248c1d(0x1ef))/0xa)+-parseInt(_0x248c1d(0x228))/0xb*(-parseInt(_0x248c1d(0x231))/0xc);if(_0x25c6aa===_0x289c25)break;else _0x3c4efd['push'](_0x3c4efd['shift']());}catch(_0x2353f3){_0x3c4efd['push'](_0x3c4efd['shift']());}}}(a143_0x2fc9,0xc349b));function a143_0x2fc9(){const _0x4f7c0c=['jARPr','join','close','readFileSync','getBinaryPath','wWAFc','vSRtR','env','Failed\x20to\x20save\x20ETag\x20file:\x20','24ThmJSo','7Hwvgqg','etag','entry','Got\x20Error\x20in\x20percy\x20binary\x20download\x20response:\x20','getuid','cEcid','writeFileSync','cYRhu','Newly\x20downloaded\x20Percy\x20binary\x20is\x20corrupt,\x20retrying','OKeNR','qlnID','proxyPort','zqvgK','OimLo','accessSync','dNoyQ','once','debug','match','102402jmWIma','USERNAME','mkdirSync','New\x20Percy\x20binary\x20version\x20available,\x20downloading\x20update','win32','OLplH','yauzl','--version','dVYgX','WWfIx','183565xLAfCZ','vwMLN','jzhvg','catch','gUeVg','trim','follow-redirects','.etag','tDZpK','lQDpv','qQkDy','Percy\x20binary\x20is\x20up\x20to\x20date\x20(ETag\x20unchanged)','.zip','statSync','0755','X_OK','proxyHost','Wbsvv','createWriteStream','nVbkv','OkPkB','useCaCertificate','R_OK','605838NXsjvT','error','statusCode','platform','darwin','OocRA','/percy-win.zip','USwmx','fileName','xubEp','/percy-osx.zip','HOME','EkcJr','parse','NyZvF','extractAndSaveBinary','destroy','homedir','290rCQQkC','child_process','538598zbOKZT','Failed\x20to\x20read\x20ETag\x20file:\x20','1276368pfWrHZ','Saved\x20new\x20ETag\x20for\x20percy\x20binary','RFoxa','length','eKAmf','USERPROFILE','Connection','JKJaZ','gVwkW','path','ktpIX','DNwlQ','AqfqZ','end','openReadStream','winstonLogger','warn','percy.exe','/Users/','Error\x20trying\x20to\x20download\x20percy\x20binary','binaryPath','/root','BxQiM','zatMg','AHNcH','jAlKE','Got\x20Error\x20in\x20percy\x20binary\x20downloading\x20request:\x20','ILgwD','tmpdir','stdout','GYnNn','yXPiP','UDBOD','W_OK','readEntry','hQwCt','/percy-linux.zip','USER','https-proxy-agent','njYtx','https://github.com/percy/cli/releases/latest/download','LOGNAME','AKGod','validateBinary','data','zITYF','qWLXI','yfzTi','then','pipe','HOMEDRIVE','test','jGxJT','11wDWchn','HOMEPATH','needsUpdate','aXQOK','port','lazyEntries','linux','wHHEO','download','13636068HVFlTY','nDbEf','/home/','percy','4464112RxjsWH','host','rsdTK','agent','.browserstack','3iEjsDU','Percy\x20download\x20failed\x20to\x20read\x20cert\x20file:\x20','headers'];a143_0x2fc9=function(){return _0x4f7c0c;};return a143_0x2fc9();}const {https}=require(a143_0xb68f4b(0x26a)),url=require('url'),yauzl=require(a143_0xb68f4b(0x260)),fs=require('fs'),path=require(a143_0xb68f4b(0x1fc)),os=require('os'),{spawn}=require(a143_0xb68f4b(0x1f0)),HttpsProxyAgent=require(a143_0xb68f4b(0x219)),logger=require('../logger')[a143_0xb68f4b(0x202)];function a143_0x5413(_0x2f397e,_0x4c8408){const _0x2fc900=a143_0x2fc9();return a143_0x5413=function(_0x5413ab,_0x30aa7b){_0x5413ab=_0x5413ab-0x1ec;let _0x47cc2c=_0x2fc900[_0x5413ab];return _0x47cc2c;},a143_0x5413(_0x2f397e,_0x4c8408);}class PercyBinary{#hostOS=process[a143_0xb68f4b(0x27e)];#httpPath=null;#binaryName=a143_0xb68f4b(0x234);#orderedPaths=[path['join'](this.#homedir(),a143_0xb68f4b(0x239)),process['cwd'](),os[a143_0xb68f4b(0x20f)]()];constructor(){const _0x423b30=a143_0xb68f4b,_0x15896b={};_0x15896b[_0x423b30(0x24e)]=_0x423b30(0x21b),_0x15896b['AKGod']=function(_0x5d9629,_0x216988){return _0x5d9629+_0x216988;},_0x15896b[_0x423b30(0x1fd)]=_0x423b30(0x285),_0x15896b[_0x423b30(0x26c)]=function(_0x4d53cb,_0x1808de){return _0x4d53cb+_0x1808de;},_0x15896b[_0x423b30(0x243)]=_0x423b30(0x281),_0x15896b[_0x423b30(0x216)]=_0x423b30(0x204),_0x15896b[_0x423b30(0x1fb)]=_0x423b30(0x217);const _0x330998=_0x15896b,_0x328838=_0x330998['cYRhu'];if(this.#hostOS[_0x423b30(0x259)](/darwin|mac os/i))this.#httpPath=_0x330998[_0x423b30(0x21d)](_0x328838,_0x330998[_0x423b30(0x1fd)]);else this.#hostOS['match'](/mswin|msys|mingw|cygwin|bccwin|wince|emc|win32/i)?(this.#httpPath=_0x330998[_0x423b30(0x26c)](_0x328838,_0x330998['vSRtR']),this.#binaryName=_0x330998[_0x423b30(0x216)]):this.#httpPath=_0x330998[_0x423b30(0x21d)](_0x328838,_0x330998['gVwkW']);}#getAvailableDirs(){const _0x21cc1e=a143_0xb68f4b,_0x1bc089={};_0x1bc089[_0x21cc1e(0x222)]=function(_0x8b3577,_0x781d05){return _0x8b3577<_0x781d05;},_0x1bc089[_0x21cc1e(0x253)]=_0x21cc1e(0x206);const _0x1ab56e=_0x1bc089;for(var _0x3fead9=0x0;_0x1ab56e['yfzTi'](_0x3fead9,this.#orderedPaths[_0x21cc1e(0x1f6)]);_0x3fead9++){var _0x1b883d=this.#orderedPaths[_0x3fead9];if(this.#makePath(_0x1b883d))return _0x1b883d;}throw new Error(_0x1ab56e[_0x21cc1e(0x253)]);}#makePath(_0x14a017){const _0x2626a9=a143_0xb68f4b;try{return _0x14a017&&!this.#checkPath(_0x14a017)&&fs[_0x2626a9(0x25c)](_0x14a017),!![];}catch{return![];}}#checkPath(_0x58c7fa,_0x7f9b03){const _0x407d51=a143_0xb68f4b,_0x57cda5={};_0x57cda5[_0x407d51(0x20e)]=function(_0x1041c4,_0x308195){return _0x1041c4|_0x308195;},_0x57cda5[_0x407d51(0x21a)]=function(_0x47cdd7,_0x348adb){return _0x47cdd7!==_0x348adb;},_0x57cda5[_0x407d51(0x1f7)]='undefined';const _0x136dba=_0x57cda5;_0x7f9b03=_0x7f9b03||_0x136dba[_0x407d51(0x20e)](fs[_0x407d51(0x27a)],fs[_0x407d51(0x214)]);try{return fs['accessSync'](_0x58c7fa,_0x7f9b03),!![];}catch(_0x161c1f){if(_0x136dba['njYtx'](typeof fs[_0x407d51(0x255)],_0x136dba['eKAmf']))return![];try{return fs[_0x407d51(0x271)](_0x58c7fa),!![];}catch(_0x177273){return![];}}}#getETagPath(_0x28075d){const _0x4fee02=a143_0xb68f4b;return path[_0x4fee02(0x23e)](_0x28075d,this.#binaryName+_0x4fee02(0x26b));}#loadETag(_0x51b32a){const _0x11d3e7=a143_0xb68f4b,_0x265ea7={};_0x265ea7[_0x11d3e7(0x1fe)]='utf8';const _0xa16370=_0x265ea7,_0x419c24=this.#getETagPath(_0x51b32a);if(this.#checkPath(_0x419c24))try{return fs[_0x11d3e7(0x240)](_0x419c24,_0xa16370[_0x11d3e7(0x1fe)])[_0x11d3e7(0x269)]();}catch(_0x578ca6){logger['warn'](_0x11d3e7(0x1f2)+_0x578ca6);}return null;}#saveETag(_0x298426,_0x37e412){const _0x37eee8=a143_0xb68f4b,_0x1f0bf7={};_0x1f0bf7[_0x37eee8(0x20c)]=_0x37eee8(0x1f4);const _0x39b746=_0x1f0bf7;if(!_0x37e412)return;try{const _0x1bec3c=this.#getETagPath(_0x298426);fs[_0x37eee8(0x24d)](_0x1bec3c,_0x37e412),logger[_0x37eee8(0x258)](_0x39b746[_0x37eee8(0x20c)]);}catch(_0x12f063){logger[_0x37eee8(0x203)](_0x37eee8(0x245)+_0x12f063);}}async #handleBinaryDownload(_0x505757,_0x5484f5,_0x3bc91c){const _0x5753d1=a143_0xb68f4b,_0x54e1fa={};_0x54e1fa[_0x5753d1(0x280)]=_0x5753d1(0x24f);const _0x5bf069=_0x54e1fa,_0x5b3874=await this[_0x5753d1(0x21e)](_0x505757[_0x5753d1(0x207)]);if(!_0x5b3874){logger['error'](_0x5bf069[_0x5753d1(0x280)]);const _0x21aa44=await this[_0x5753d1(0x230)](_0x5484f5,_0x3bc91c);return _0x21aa44[_0x5753d1(0x207)];}return _0x505757[_0x5753d1(0x207)];}async[a143_0xb68f4b(0x241)](_0x5f4ff2){const _0x406ced=a143_0xb68f4b,_0x3a92b0={};_0x3a92b0['kdSOS']=_0x406ced(0x26f),_0x3a92b0[_0x406ced(0x1fa)]=_0x406ced(0x25d);const _0x18cef3=_0x3a92b0,_0x1c91fc=this.#getAvailableDirs(),_0x32c584=path[_0x406ced(0x23e)](_0x1c91fc,this.#binaryName);if(this.#checkPath(_0x32c584,fs[_0x406ced(0x273)])){const _0x4e111e=this.#loadETag(_0x1c91fc);if(_0x4e111e)try{const _0x378792=await this[_0x406ced(0x230)](_0x5f4ff2,_0x1c91fc,_0x4e111e);if(!_0x378792[_0x406ced(0x22a)])return logger[_0x406ced(0x258)](_0x18cef3['kdSOS']),_0x32c584;return logger['debug'](_0x18cef3[_0x406ced(0x1fa)]),await this.#handleBinaryDownload(_0x378792,_0x5f4ff2,_0x1c91fc);}catch(_0x3dbd2e){return logger[_0x406ced(0x203)]('Failed\x20to\x20check\x20for\x20binary\x20updates,\x20using\x20existing\x20binary:\x20'+_0x3dbd2e),_0x32c584;}}const _0x245430=await this[_0x406ced(0x230)](_0x5f4ff2,_0x1c91fc);return await this.#handleBinaryDownload(_0x245430,_0x5f4ff2,_0x1c91fc);}[a143_0xb68f4b(0x230)](_0x2d1394,_0x453c6a,_0x347a63=null){const _0x3a829e=a143_0xb68f4b,_0x5eeb98={'fJdJY':function(_0x28143a,_0x1affb2){return _0x28143a===_0x1affb2;},'UDBOD':function(_0xa068de,_0x186f19){return _0xa068de(_0x186f19);},'RFoxa':'error','AqfqZ':_0x3a829e(0x23f),'jGxJT':function(_0x57a0c5,_0x5cd46e){return _0x57a0c5(_0x5cd46e);},'OKeNR':function(_0x4ab97f,_0x808b88){return _0x4ab97f+_0x808b88;},'UVyQf':_0x3a829e(0x270)};_0x453c6a&&!this.#checkPath(_0x453c6a)&&fs['mkdirSync'](_0x453c6a);const _0x14db62=this.#binaryName,_0x3b7937=path[_0x3a829e(0x23e)](_0x453c6a,_0x5eeb98[_0x3a829e(0x250)](_0x14db62,_0x5eeb98['UVyQf'])),_0x44a8fc=fs['createWriteStream'](_0x3b7937),_0x20b7c5=url[_0x3a829e(0x288)](this.#httpPath);if(_0x2d1394[_0x3a829e(0x274)]&&_0x2d1394[_0x3a829e(0x252)]){const _0x3b74c4={};_0x3b74c4[_0x3a829e(0x236)]=_0x2d1394['proxyHost'],_0x3b74c4[_0x3a829e(0x22c)]=_0x2d1394[_0x3a829e(0x252)],_0x20b7c5[_0x3a829e(0x238)]=new HttpsProxyAgent(_0x3b74c4);}if(_0x2d1394[_0x3a829e(0x279)])try{_0x20b7c5['ca']=fs[_0x3a829e(0x240)](_0x2d1394[_0x3a829e(0x279)]);}catch(_0x3346e2){logger[_0x3a829e(0x27c)](_0x3a829e(0x23b)+_0x3346e2);}if(_0x347a63){const _0x19a6eb={};_0x19a6eb['If-None-Match']=_0x347a63,_0x19a6eb['Connection']=_0x5eeb98[_0x3a829e(0x1ff)],_0x20b7c5[_0x3a829e(0x23c)]=_0x19a6eb;}else{const _0x27fe28={};_0x27fe28[_0x3a829e(0x1f9)]=_0x5eeb98[_0x3a829e(0x1ff)],_0x20b7c5['headers']=_0x27fe28;}return new Promise((_0x24487f,_0x222a10)=>{const _0x622ec=_0x3a829e,_0x16c234={'qWLXI':function(_0x3d54b9,_0x1f0d48){const _0x28624d=a143_0x5413;return _0x5eeb98[_0x28624d(0x227)](_0x3d54b9,_0x1f0d48);},'OimLo':function(_0x3a18fd,_0x4fd5d5){const _0x239a8a=a143_0x5413;return _0x5eeb98[_0x239a8a(0x213)](_0x3a18fd,_0x4fd5d5);}};https['get'](_0x20b7c5,_0x45deaa=>{const _0x452fdc=a143_0x5413;if(_0x347a63&&_0x5eeb98['fJdJY'](_0x45deaa[_0x452fdc(0x27d)],0x130)){_0x44a8fc[_0x452fdc(0x1ed)]();const _0x484e23={};_0x484e23[_0x452fdc(0x22a)]=![],_0x5eeb98[_0x452fdc(0x213)](_0x24487f,_0x484e23);return;}const _0x3d826a=_0x45deaa[_0x452fdc(0x23c)][_0x452fdc(0x248)];_0x3d826a&&this.#saveETag(_0x453c6a,_0x3d826a),_0x45deaa[_0x452fdc(0x224)](_0x44a8fc),_0x45deaa['on'](_0x5eeb98[_0x452fdc(0x1f5)],function(_0x1247f0){const _0x4016d9=_0x452fdc;logger['error'](_0x4016d9(0x24a)+_0x1247f0),_0x16c234[_0x4016d9(0x221)](_0x222a10,_0x1247f0);}),_0x44a8fc['on'](_0x5eeb98['RFoxa'],function(_0x55d727){const _0x2688d6=_0x452fdc;logger[_0x2688d6(0x27c)]('Got\x20Error\x20while\x20downloading\x20percy\x20binary\x20file:\x20'+_0x55d727),_0x16c234[_0x2688d6(0x221)](_0x222a10,_0x55d727);}),_0x44a8fc['on'](_0x5eeb98['AqfqZ'],()=>{const _0x245d2c=_0x452fdc;this[_0x245d2c(0x1ec)](_0x3b7937,_0x453c6a)[_0x245d2c(0x223)](_0x276c5e=>_0x24487f({'needsUpdate':!![],'binaryPath':_0x276c5e}))[_0x245d2c(0x267)](_0x222a10);});})['on'](_0x5eeb98[_0x622ec(0x1f5)],function(_0x21b59f){const _0x4d7656=_0x622ec;logger[_0x4d7656(0x27c)](_0x4d7656(0x20d)+_0x21b59f),_0x16c234[_0x4d7656(0x254)](_0x222a10,_0x21b59f);});});}[a143_0xb68f4b(0x1ec)](_0x500193,_0x16aaea){const _0x3cf53b=a143_0xb68f4b,_0x25ea7b={'BxQiM':function(_0x1edfbd,_0x4c98e8){return _0x1edfbd(_0x4c98e8);},'AGTDP':_0x3cf53b(0x200),'WWfIx':function(_0x50bc47,_0x1e28f9){return _0x50bc47===_0x1e28f9;},'YsHEX':_0x3cf53b(0x272),'Wbsvv':_0x3cf53b(0x249),'ryxal':_0x3cf53b(0x27c)},_0x42aafe=this.#binaryName,_0x257c18=path[_0x3cf53b(0x23e)](_0x16aaea,_0x42aafe);return new Promise((_0x5acfe4,_0x196fe3)=>{const _0x143640=_0x3cf53b,_0x36b37d={'aXQOK':function(_0x37cbdf,_0x52257c){const _0x1642f9=a143_0x5413;return _0x25ea7b[_0x1642f9(0x209)](_0x37cbdf,_0x52257c);},'lQDpv':_0x25ea7b['AGTDP'],'nDbEf':function(_0x227ec9,_0x315791){const _0x49e54d=a143_0x5413;return _0x25ea7b[_0x49e54d(0x263)](_0x227ec9,_0x315791);},'AHNcH':function(_0x2d2a90,_0x2074f4){const _0x18ef36=a143_0x5413;return _0x25ea7b[_0x18ef36(0x209)](_0x2d2a90,_0x2074f4);},'RpBYc':_0x25ea7b['YsHEX'],'OFWae':_0x25ea7b[_0x143640(0x275)],'yXPiP':_0x25ea7b['ryxal']},_0x59d5ae={};_0x59d5ae[_0x143640(0x22d)]=!![],yauzl['open'](_0x500193,_0x59d5ae,function(_0x4db235,_0x317c54){const _0x91e420=_0x143640,_0x679743={'cEcid':function(_0x53d560,_0x2c5236){const _0x19688e=a143_0x5413;return _0x36b37d[_0x19688e(0x22b)](_0x53d560,_0x2c5236);},'nVbkv':function(_0x8d4c08,_0x20a6ce){const _0xb09034=a143_0x5413;return _0x36b37d[_0xb09034(0x20b)](_0x8d4c08,_0x20a6ce);},'EkcJr':_0x36b37d['RpBYc']};_0x4db235&&_0x36b37d['AHNcH'](_0x196fe3,_0x4db235),_0x317c54['readEntry'](),_0x317c54['on'](_0x36b37d['OFWae'],_0x35088d=>{const _0x5636cb=a143_0x5413,_0x1f29e1={'SpbrR':function(_0x35b0e0,_0x30185b){return _0x36b37d['aXQOK'](_0x35b0e0,_0x30185b);},'jzhvg':_0x36b37d[_0x5636cb(0x26d)]};if(/\/$/[_0x5636cb(0x226)](_0x35088d[_0x5636cb(0x283)]))_0x317c54[_0x5636cb(0x215)]();else{const _0x666dc6=fs[_0x5636cb(0x276)](path[_0x5636cb(0x23e)](_0x16aaea,_0x35088d[_0x5636cb(0x283)]));_0x317c54[_0x5636cb(0x201)](_0x35088d,function(_0x2f3dd9,_0x42e28d){const _0x1a22ed=_0x5636cb;_0x2f3dd9&&_0x1f29e1['SpbrR'](_0x196fe3,_0x4db235),_0x42e28d['on'](_0x1f29e1[_0x1a22ed(0x266)],function(){const _0x5d617c=_0x1a22ed;_0x666dc6[_0x5d617c(0x23f)](),_0x317c54[_0x5d617c(0x215)]();}),_0x42e28d['pipe'](_0x666dc6);}),_0x36b37d[_0x5636cb(0x232)](_0x35088d[_0x5636cb(0x283)],_0x42aafe)&&_0x317c54[_0x5636cb(0x23f)]();}}),_0x317c54['on'](_0x36b37d[_0x91e420(0x212)],_0x1cee4e=>{_0x36b37d['AHNcH'](_0x196fe3,_0x1cee4e);}),_0x317c54[_0x91e420(0x257)](_0x36b37d['lQDpv'],()=>{const _0x522a48=_0x91e420,_0x37502c={'fvzxZ':function(_0x40240a,_0x4224ab){const _0x200311=a143_0x5413;return _0x679743[_0x200311(0x24c)](_0x40240a,_0x4224ab);},'wHHEO':function(_0x267659,_0x10f4a0){const _0x84e4ec=a143_0x5413;return _0x679743[_0x84e4ec(0x277)](_0x267659,_0x10f4a0);}};fs['chmod'](_0x257c18,_0x679743[_0x522a48(0x287)],function(_0x23780a){const _0x9fc8e9=_0x522a48;_0x23780a&&_0x37502c['fvzxZ'](_0x196fe3,_0x23780a),_0x37502c[_0x9fc8e9(0x22f)](_0x5acfe4,_0x257c18);}),_0x317c54[_0x522a48(0x23f)]();});});});}async['validateBinary'](_0x4ff106){const _0x456397=a143_0xb68f4b,_0x152f34={'gUeVg':function(_0x2b50e2,_0x4c6b26){return _0x2b50e2(_0x4c6b26);},'USwmx':function(_0x42bda5,_0x1f0e46){return _0x42bda5(_0x1f0e46);},'OLplH':function(_0x2ffe12,_0xfff3f1,_0x3b27ab,_0x5d7f3f){return _0x2ffe12(_0xfff3f1,_0x3b27ab,_0x5d7f3f);},'FhaGO':_0x456397(0x261),'xubEp':_0x456397(0x21f),'GYnNn':'close'},_0x184ead=/^.*@percy\/cli \d.\d+.\d+/;return new Promise((_0x274138,_0x47a3b3)=>{const _0x46dc67=_0x456397,_0x5c8526={};_0x5c8526[_0x46dc67(0x244)]=process[_0x46dc67(0x244)];const _0x5e6b87=_0x152f34[_0x46dc67(0x25f)](spawn,_0x4ff106,[_0x152f34['FhaGO']],_0x5c8526);_0x5e6b87[_0x46dc67(0x210)]['on'](_0x152f34[_0x46dc67(0x284)],_0x5625c6=>{const _0x578eef=_0x46dc67;_0x184ead['test'](_0x5625c6)&&_0x152f34[_0x578eef(0x268)](_0x274138,!![]);}),_0x5e6b87['on'](_0x152f34[_0x46dc67(0x211)],()=>{const _0x7e2fa3=_0x46dc67;_0x152f34[_0x7e2fa3(0x282)](_0x274138,![]);});});}#homedir(){const _0x2d1246=a143_0xb68f4b,_0x134152={};_0x134152['zatMg']=function(_0x270138,_0x20dc18){return _0x270138===_0x20dc18;},_0x134152[_0x2d1246(0x237)]='function',_0x134152['wWAFc']=function(_0x15576d,_0x169c09){return _0x15576d===_0x169c09;},_0x134152[_0x2d1246(0x278)]=_0x2d1246(0x25e),_0x134152[_0x2d1246(0x289)]=function(_0x2792e9,_0x82db64){return _0x2792e9+_0x82db64;},_0x134152[_0x2d1246(0x23d)]=_0x2d1246(0x27f),_0x134152[_0x2d1246(0x251)]=function(_0x1f4cd4,_0x566534){return _0x1f4cd4+_0x566534;},_0x134152['dVYgX']=_0x2d1246(0x205),_0x134152[_0x2d1246(0x265)]=_0x2d1246(0x22e),_0x134152[_0x2d1246(0x220)]=_0x2d1246(0x208),_0x134152[_0x2d1246(0x256)]=function(_0x4392d8,_0x2f3248){return _0x4392d8+_0x2f3248;},_0x134152['wubLj']=_0x2d1246(0x233),_0x134152['qQkDy']=function(_0x2d7e19,_0x23763d){return _0x2d7e19||_0x23763d;};const _0x4374a0=_0x134152;if(_0x4374a0[_0x2d1246(0x20a)](typeof os[_0x2d1246(0x1ee)],_0x4374a0['rsdTK']))return os['homedir']();const _0x407be1=process[_0x2d1246(0x244)],_0x120699=_0x407be1[_0x2d1246(0x286)],_0x360867=_0x407be1[_0x2d1246(0x21c)]||_0x407be1[_0x2d1246(0x218)]||_0x407be1['LNAME']||_0x407be1[_0x2d1246(0x25b)];if(_0x4374a0['wWAFc'](process[_0x2d1246(0x27e)],_0x4374a0[_0x2d1246(0x278)]))return _0x407be1[_0x2d1246(0x1f8)]||_0x4374a0[_0x2d1246(0x289)](_0x407be1[_0x2d1246(0x225)],_0x407be1[_0x2d1246(0x229)])||_0x120699||null;if(_0x4374a0[_0x2d1246(0x242)](process[_0x2d1246(0x27e)],_0x4374a0[_0x2d1246(0x23d)]))return _0x120699||(_0x360867?_0x4374a0[_0x2d1246(0x251)](_0x4374a0[_0x2d1246(0x262)],_0x360867):null);if(_0x4374a0[_0x2d1246(0x20a)](process[_0x2d1246(0x27e)],_0x4374a0[_0x2d1246(0x265)]))return _0x120699||(_0x4374a0[_0x2d1246(0x20a)](process[_0x2d1246(0x24b)](),0x0)?_0x4374a0['zITYF']:_0x360867?_0x4374a0[_0x2d1246(0x256)](_0x4374a0['wubLj'],_0x360867):null);return _0x4374a0[_0x2d1246(0x26e)](_0x120699,null);}}module['exports']=PercyBinary;
|
|
1
|
+
const a143_0x3b6a81=a143_0x4b40;(function(_0x31f832,_0x561b51){const _0x2668d3=a143_0x4b40,_0x3e69ad=_0x31f832();while(!![]){try{const _0x5861c5=-parseInt(_0x2668d3(0xa9))/0x1+-parseInt(_0x2668d3(0xa8))/0x2*(parseInt(_0x2668d3(0xfd))/0x3)+-parseInt(_0x2668d3(0x126))/0x4+-parseInt(_0x2668d3(0xa0))/0x5+-parseInt(_0x2668d3(0x127))/0x6*(-parseInt(_0x2668d3(0xd8))/0x7)+-parseInt(_0x2668d3(0x94))/0x8+parseInt(_0x2668d3(0xb0))/0x9;if(_0x5861c5===_0x561b51)break;else _0x3e69ad['push'](_0x3e69ad['shift']());}catch(_0x5edab1){_0x3e69ad['push'](_0x3e69ad['shift']());}}}(a143_0x2073,0x81626));const {https}=require(a143_0x3b6a81(0xfb)),url=require(a143_0x3b6a81(0xd9)),yauzl=require('yauzl'),fs=require('fs'),path=require(a143_0x3b6a81(0xc8)),os=require('os'),{spawn}=require(a143_0x3b6a81(0x93)),HttpsProxyAgent=require(a143_0x3b6a81(0xcb)),logger=require(a143_0x3b6a81(0xe2))[a143_0x3b6a81(0x121)];class PercyBinary{#hostOS=process[a143_0x3b6a81(0xe1)];#httpPath=null;#binaryName='percy';#orderedPaths=[path[a143_0x3b6a81(0xe8)](this.#homedir(),a143_0x3b6a81(0x129)),process[a143_0x3b6a81(0x107)](),os[a143_0x3b6a81(0x11d)]()];constructor(){const _0x48301f=a143_0x3b6a81,_0x37f185={};_0x37f185['FkQcj']=_0x48301f(0xce),_0x37f185['vpMgq']=function(_0x54b550,_0x28729e){return _0x54b550+_0x28729e;},_0x37f185[_0x48301f(0xf7)]=_0x48301f(0x9a),_0x37f185[_0x48301f(0x90)]=function(_0x2f6fb7,_0x36e4bf){return _0x2f6fb7+_0x36e4bf;},_0x37f185['LskPW']=_0x48301f(0xf8),_0x37f185[_0x48301f(0x10b)]=_0x48301f(0x120),_0x37f185['PeXEA']=_0x48301f(0xb9);const _0xad8295=_0x37f185,_0x184320=_0xad8295[_0x48301f(0xf4)];if(this.#hostOS[_0x48301f(0xb8)](/darwin|mac os/i))this.#httpPath=_0xad8295[_0x48301f(0xa2)](_0x184320,_0xad8295['wNEbc']);else this.#hostOS[_0x48301f(0xb8)](/mswin|msys|mingw|cygwin|bccwin|wince|emc|win32/i)?(this.#httpPath=_0xad8295['XzKed'](_0x184320,_0xad8295[_0x48301f(0x118)]),this.#binaryName=_0xad8295['zSRRC']):this.#httpPath=_0xad8295[_0x48301f(0x90)](_0x184320,_0xad8295[_0x48301f(0xae)]);}#getAvailableDirs(){const _0x241c12=a143_0x3b6a81,_0x1ffc2a={};_0x1ffc2a['gjlyG']=function(_0x27707e,_0x3bfe6a){return _0x27707e<_0x3bfe6a;},_0x1ffc2a[_0x241c12(0x97)]=_0x241c12(0x8f);const _0x3a5307=_0x1ffc2a;for(var _0x4c325d=0x0;_0x3a5307['gjlyG'](_0x4c325d,this.#orderedPaths[_0x241c12(0xa4)]);_0x4c325d++){var _0x2ab294=this.#orderedPaths[_0x4c325d];if(this.#makePath(_0x2ab294))return _0x2ab294;}throw new Error(_0x3a5307['aJOcH']);}#makePath(_0x5cdd21){const _0x18f23a=a143_0x3b6a81;try{return _0x5cdd21&&!this.#checkPath(_0x5cdd21)&&fs[_0x18f23a(0x10c)](_0x5cdd21),!![];}catch{return![];}}#checkPath(_0x588814,_0x4ea47e){const _0x21f81c=a143_0x3b6a81,_0x58ef48={};_0x58ef48['rBOuL']=function(_0x383403,_0x55c67e){return _0x383403|_0x55c67e;},_0x58ef48['lNMmz']=function(_0x2f5747,_0x1943cb){return _0x2f5747!==_0x1943cb;},_0x58ef48[_0x21f81c(0xef)]='undefined';const _0x49b6a0=_0x58ef48;_0x4ea47e=_0x4ea47e||_0x49b6a0[_0x21f81c(0x124)](fs[_0x21f81c(0x113)],fs[_0x21f81c(0xdf)]);try{return fs[_0x21f81c(0xbb)](_0x588814,_0x4ea47e),!![];}catch(_0x442479){if(_0x49b6a0[_0x21f81c(0xc1)](typeof fs[_0x21f81c(0xbb)],_0x49b6a0[_0x21f81c(0xef)]))return![];try{return fs['statSync'](_0x588814),!![];}catch(_0x205537){return![];}}}#getETagPath(_0x1dbd66){const _0x5dafb2=a143_0x3b6a81;return path[_0x5dafb2(0xe8)](_0x1dbd66,this.#binaryName+_0x5dafb2(0xc2));}#loadETag(_0x439438){const _0x15b62a=a143_0x3b6a81,_0x46c898={};_0x46c898[_0x15b62a(0xb7)]=_0x15b62a(0xf9);const _0x2f79de=_0x46c898,_0x47b148=this.#getETagPath(_0x439438);if(this.#checkPath(_0x47b148))try{return fs[_0x15b62a(0x9e)](_0x47b148,_0x2f79de[_0x15b62a(0xb7)])[_0x15b62a(0x10e)]();}catch(_0xd2e1ba){logger['warn'](_0x15b62a(0x116)+_0xd2e1ba);}return null;}#saveETag(_0x5e3363,_0x3f999e){const _0xd5ca06=a143_0x3b6a81,_0x2fd6cf={};_0x2fd6cf[_0xd5ca06(0x103)]='Saved\x20new\x20ETag\x20for\x20percy\x20binary';const _0x15093f=_0x2fd6cf;if(!_0x3f999e)return;try{const _0xa17167=this.#getETagPath(_0x5e3363);fs[_0xd5ca06(0x12c)](_0xa17167,_0x3f999e),logger['debug'](_0x15093f[_0xd5ca06(0x103)]);}catch(_0x4d4ded){logger[_0xd5ca06(0xf3)](_0xd5ca06(0xd4)+_0x4d4ded);}}async #handleBinaryDownload(_0x5ee947,_0x5acc19,_0x5d95be){const _0x6c8b57=a143_0x3b6a81,_0x3156df={};_0x3156df[_0x6c8b57(0x9d)]=_0x6c8b57(0xe9);const _0x1787cd=_0x3156df,_0x996c2d=await this[_0x6c8b57(0xbc)](_0x5ee947[_0x6c8b57(0x125)]);if(!_0x996c2d){logger['error'](_0x1787cd[_0x6c8b57(0x9d)]);const _0x46e975=await this[_0x6c8b57(0xd0)](_0x5acc19,_0x5d95be);return _0x46e975[_0x6c8b57(0x125)];}return _0x5ee947[_0x6c8b57(0x125)];}async['getBinaryPath'](_0x30c9e4){const _0xa6d110=a143_0x3b6a81,_0x3e6fb2={};_0x3e6fb2[_0xa6d110(0x9b)]=_0xa6d110(0x10f),_0x3e6fb2[_0xa6d110(0x12a)]=_0xa6d110(0xf0);const _0x525130=_0x3e6fb2,_0x543283=this.#getAvailableDirs(),_0x2a2c1b=path[_0xa6d110(0xe8)](_0x543283,this.#binaryName);if(this.#checkPath(_0x2a2c1b,fs[_0xa6d110(0xe3)])){const _0x508dfe=this.#loadETag(_0x543283);if(_0x508dfe)try{const _0x3ccdb1=await this['download'](_0x30c9e4,_0x543283,_0x508dfe);if(!_0x3ccdb1[_0xa6d110(0xcc)])return logger[_0xa6d110(0xd5)](_0x525130[_0xa6d110(0x9b)]),_0x2a2c1b;return logger['debug'](_0x525130[_0xa6d110(0x12a)]),await this.#handleBinaryDownload(_0x3ccdb1,_0x30c9e4,_0x543283);}catch(_0x629430){return logger[_0xa6d110(0xf3)](_0xa6d110(0xa6)+_0x629430),_0x2a2c1b;}}const _0x827dad=await this[_0xa6d110(0xd0)](_0x30c9e4,_0x543283);return await this.#handleBinaryDownload(_0x827dad,_0x30c9e4,_0x543283);}['download'](_0x19b305,_0x2c8cdb,_0x1b4909=null){const _0x497282=a143_0x3b6a81,_0xfaeb69={'SmqQb':function(_0x467298,_0x33e59a){return _0x467298(_0x33e59a);},'WAFzl':function(_0x112a50,_0x139bc8){return _0x112a50===_0x139bc8;},'iTWLI':_0x497282(0xb1),'thAGK':_0x497282(0x104),'zamwO':function(_0x54fa1d,_0x30eda8){return _0x54fa1d+_0x30eda8;},'JzmPW':_0x497282(0x91)};_0x2c8cdb&&!this.#checkPath(_0x2c8cdb)&&fs[_0x497282(0x10c)](_0x2c8cdb);const _0x2474bd=this.#binaryName,_0x111c4b=path['join'](_0x2c8cdb,_0xfaeb69['zamwO'](_0x2474bd,_0xfaeb69[_0x497282(0xff)])),_0x3f4d30=fs[_0x497282(0xab)](_0x111c4b),_0x554656=url['parse'](this.#httpPath);if(_0x19b305[_0x497282(0xcd)]&&_0x19b305[_0x497282(0xe5)]){const _0x51b000={};_0x51b000[_0x497282(0x102)]=_0x19b305['proxyHost'],_0x51b000[_0x497282(0xb4)]=_0x19b305[_0x497282(0xe5)],_0x554656[_0x497282(0xe7)]=new HttpsProxyAgent(_0x51b000);}if(_0x19b305[_0x497282(0x98)])try{_0x554656['ca']=fs[_0x497282(0x9e)](_0x19b305[_0x497282(0x98)]);}catch(_0x199d3b){logger['error'](_0x497282(0xc6)+_0x199d3b);}if(_0x1b4909){const _0x232927={};_0x232927[_0x497282(0xf5)]=_0x1b4909,_0x232927[_0x497282(0x11e)]=_0xfaeb69[_0x497282(0xc5)],_0x554656[_0x497282(0xc9)]=_0x232927;}else{const _0x3ae099={};_0x3ae099[_0x497282(0x11e)]=_0xfaeb69[_0x497282(0xc5)],_0x554656[_0x497282(0xc9)]=_0x3ae099;}return new Promise((_0x4a4f91,_0x432d6c)=>{const _0x185e8c=_0x497282,_0x4ede67={'fvIXQ':function(_0x2b51cd,_0x14835f){const _0x3abfc9=a143_0x4b40;return _0xfaeb69[_0x3abfc9(0x9c)](_0x2b51cd,_0x14835f);},'uGmck':function(_0x2cb3f2,_0x33b459){return _0xfaeb69['WAFzl'](_0x2cb3f2,_0x33b459);},'htblB':_0xfaeb69['iTWLI'],'XyDnG':_0xfaeb69[_0x185e8c(0xc5)]};https[_0x185e8c(0xb2)](_0x554656,_0x1e7f79=>{const _0x4948f8=_0x185e8c;if(_0x1b4909&&_0x4ede67[_0x4948f8(0xba)](_0x1e7f79['statusCode'],0x130)){_0x3f4d30['destroy']();const _0x9ca59e={};_0x9ca59e[_0x4948f8(0xcc)]=![],_0x4ede67['fvIXQ'](_0x4a4f91,_0x9ca59e);return;}const _0x3c96a4=_0x1e7f79[_0x4948f8(0xc9)][_0x4948f8(0xbf)];_0x3c96a4&&this.#saveETag(_0x2c8cdb,_0x3c96a4),_0x1e7f79[_0x4948f8(0x92)](_0x3f4d30),_0x1e7f79['on'](_0x4ede67[_0x4948f8(0xa7)],function(_0x58736a){const _0x4b2629=_0x4948f8;logger[_0x4b2629(0xb1)]('Got\x20Error\x20in\x20percy\x20binary\x20download\x20response:\x20'+_0x58736a),_0x4ede67['fvIXQ'](_0x432d6c,_0x58736a);}),_0x3f4d30['on'](_0x4ede67[_0x4948f8(0xa7)],function(_0x2cea4f){const _0x18be74=_0x4948f8;logger[_0x18be74(0xb1)](_0x18be74(0xbd)+_0x2cea4f),_0x4ede67[_0x18be74(0xed)](_0x432d6c,_0x2cea4f);}),_0x3f4d30['on'](_0x4ede67[_0x4948f8(0xd3)],()=>{const _0x32d937=_0x4948f8;this[_0x32d937(0xe4)](_0x111c4b,_0x2c8cdb)[_0x32d937(0xde)](_0x5590dd=>_0x4a4f91({'needsUpdate':!![],'binaryPath':_0x5590dd}))[_0x32d937(0xfa)](_0x432d6c);});})['on'](_0xfaeb69[_0x185e8c(0xfc)],function(_0x30b809){const _0x3e1cc2=_0x185e8c;logger[_0x3e1cc2(0xb1)](_0x3e1cc2(0xe6)+_0x30b809),_0xfaeb69[_0x3e1cc2(0x9c)](_0x432d6c,_0x30b809);});});}[a143_0x3b6a81(0xe4)](_0x279972,_0x410d8d){const _0x4188b1=a143_0x3b6a81,_0x52940f={'LJYoY':function(_0x4cbf69,_0xc72f2c){return _0x4cbf69(_0xc72f2c);},'nhXnC':_0x4188b1(0x115),'dhlqo':_0x4188b1(0xe0),'yjCPq':function(_0x2c29e5,_0x2270e0){return _0x2c29e5===_0x2270e0;},'YuhDc':function(_0xa6439c,_0x1c6970){return _0xa6439c(_0x1c6970);},'xcvBJ':_0x4188b1(0xbe),'yJhqC':'error'},_0x295de7=this.#binaryName,_0x3f6d38=path[_0x4188b1(0xe8)](_0x410d8d,_0x295de7);return new Promise((_0x176c6d,_0x221831)=>{const _0x4f630a=_0x4188b1,_0x32575a={'AlrKJ':function(_0x63becd,_0x201882){const _0xea30=a143_0x4b40;return _0x52940f[_0xea30(0x10d)](_0x63becd,_0x201882);},'pvFbn':_0x52940f['nhXnC'],'agIht':function(_0x5476ea,_0x28b54e){const _0x5da72d=a143_0x4b40;return _0x52940f[_0x5da72d(0x10d)](_0x5476ea,_0x28b54e);},'ZpIZw':_0x52940f['dhlqo'],'uHgGs':function(_0x2c60cf,_0x42c4c7){const _0x160832=a143_0x4b40;return _0x52940f[_0x160832(0xcf)](_0x2c60cf,_0x42c4c7);},'KUKwI':function(_0x5989be,_0x456ed3){const _0x4ca0ec=a143_0x4b40;return _0x52940f[_0x4ca0ec(0x101)](_0x5989be,_0x456ed3);},'YwydR':function(_0x3feae1,_0x2dcbae){return _0x52940f['LJYoY'](_0x3feae1,_0x2dcbae);},'ngkxQ':_0x52940f[_0x4f630a(0xb5)],'aeErp':_0x52940f[_0x4f630a(0xa1)]},_0x986264={};_0x986264[_0x4f630a(0xa5)]=!![],yauzl[_0x4f630a(0x11a)](_0x279972,_0x986264,function(_0x157930,_0x163874){const _0x3f3628=_0x4f630a,_0x361202={'gHonX':function(_0x397c6e,_0x2e765e){return _0x32575a['agIht'](_0x397c6e,_0x2e765e);},'cshRE':_0x32575a[_0x3f3628(0xeb)],'QROFL':function(_0x55489f,_0x25f629){return _0x32575a['uHgGs'](_0x55489f,_0x25f629);},'SHCBR':function(_0x3c1a36,_0x569d4e){const _0x5dd0bf=_0x3f3628;return _0x32575a[_0x5dd0bf(0x10a)](_0x3c1a36,_0x569d4e);}};_0x157930&&_0x32575a[_0x3f3628(0x122)](_0x221831,_0x157930),_0x163874[_0x3f3628(0xda)](),_0x163874['on'](_0x32575a[_0x3f3628(0x95)],_0x14a6ad=>{const _0x455194=_0x3f3628;if(/\/$/['test'](_0x14a6ad[_0x455194(0xc3)]))_0x163874[_0x455194(0xda)]();else{const _0x322c9c=fs[_0x455194(0xab)](path['join'](_0x410d8d,_0x14a6ad['fileName']));_0x163874[_0x455194(0x119)](_0x14a6ad,function(_0x54f6a3,_0x46ab8b){const _0x437d7=_0x455194;_0x54f6a3&&_0x361202[_0x437d7(0x111)](_0x221831,_0x157930),_0x46ab8b['on'](_0x361202[_0x437d7(0x117)],function(){const _0x7f4477=_0x437d7;_0x322c9c[_0x7f4477(0x104)](),_0x163874[_0x7f4477(0xda)]();}),_0x46ab8b[_0x437d7(0x92)](_0x322c9c);}),_0x361202['QROFL'](_0x14a6ad[_0x455194(0xc3)],_0x295de7)&&_0x163874['close']();}}),_0x163874['on'](_0x32575a[_0x3f3628(0xc7)],_0x2455ac=>{const _0x5d5475=_0x3f3628;_0x361202[_0x5d5475(0xdd)](_0x221831,_0x2455ac);}),_0x163874[_0x3f3628(0xee)](_0x32575a[_0x3f3628(0xeb)],()=>{const _0x1f06a9=_0x3f3628,_0x31b565={'EElms':function(_0x255a2c,_0x50f418){const _0x2e8922=a143_0x4b40;return _0x32575a[_0x2e8922(0xdc)](_0x255a2c,_0x50f418);},'hyPYL':function(_0x3c45c3,_0x275bc8){const _0x3b6220=a143_0x4b40;return _0x32575a[_0x3b6220(0xdc)](_0x3c45c3,_0x275bc8);}};fs[_0x1f06a9(0xdb)](_0x3f6d38,_0x32575a[_0x1f06a9(0x12b)],function(_0x1ce87d){const _0xc057b4=_0x1f06a9;_0x1ce87d&&_0x31b565[_0xc057b4(0x11c)](_0x221831,_0x1ce87d),_0x31b565[_0xc057b4(0x100)](_0x176c6d,_0x3f6d38);}),_0x163874['close']();});});});}async[a143_0x3b6a81(0xbc)](_0x2e165c){const _0x51228f=a143_0x3b6a81,_0x528ff7={'iceVl':function(_0x50248d,_0x3cdf96){return _0x50248d(_0x3cdf96);},'UskGS':function(_0x2e038c,_0x91109c,_0x194aa6,_0x9e45e0){return _0x2e038c(_0x91109c,_0x194aa6,_0x9e45e0);},'tlsoM':'--version','uYvLo':'data','trxiJ':_0x51228f(0x104)},_0x124fd9=/^.*@percy\/cli \d.\d+.\d+/;return new Promise((_0x3c831d,_0xff8f44)=>{const _0x2ef66a=_0x51228f,_0x46a07f={'SlfgQ':function(_0x224bbe,_0x1ad9e){return _0x528ff7['iceVl'](_0x224bbe,_0x1ad9e);}},_0x499f14={};_0x499f14[_0x2ef66a(0xf1)]=process[_0x2ef66a(0xf1)];const _0x2b1875=_0x528ff7['UskGS'](spawn,_0x2e165c,[_0x528ff7[_0x2ef66a(0xf2)]],_0x499f14);_0x2b1875[_0x2ef66a(0xfe)]['on'](_0x528ff7[_0x2ef66a(0xaa)],_0x1d1da9=>{const _0x2a3a24=_0x2ef66a;_0x124fd9[_0x2a3a24(0x109)](_0x1d1da9)&&_0x528ff7['iceVl'](_0x3c831d,!![]);}),_0x2b1875['on'](_0x528ff7['trxiJ'],()=>{const _0x53a110=_0x2ef66a;_0x46a07f[_0x53a110(0x112)](_0x3c831d,![]);});});}#homedir(){const _0x8c2a20=a143_0x3b6a81,_0x41c6ca={};_0x41c6ca[_0x8c2a20(0xc4)]=function(_0x2ea4d6,_0x49ad7b){return _0x2ea4d6===_0x49ad7b;},_0x41c6ca[_0x8c2a20(0xec)]=_0x8c2a20(0x106),_0x41c6ca['jlCor']=_0x8c2a20(0x123),_0x41c6ca[_0x8c2a20(0x114)]=function(_0x175887,_0x386d4a){return _0x175887+_0x386d4a;},_0x41c6ca['KKwPc']=function(_0x296d67,_0xc9b8c7){return _0x296d67===_0xc9b8c7;},_0x41c6ca[_0x8c2a20(0x110)]=_0x8c2a20(0x96),_0x41c6ca[_0x8c2a20(0xb6)]='/Users/',_0x41c6ca['jpeGN']=function(_0x353fbf,_0x54d5c1){return _0x353fbf===_0x54d5c1;},_0x41c6ca[_0x8c2a20(0xc0)]=_0x8c2a20(0xad),_0x41c6ca[_0x8c2a20(0x11f)]=function(_0x15f239,_0x384db7){return _0x15f239===_0x384db7;},_0x41c6ca['hkHAz']=_0x8c2a20(0xca),_0x41c6ca[_0x8c2a20(0xa3)]=_0x8c2a20(0xaf),_0x41c6ca[_0x8c2a20(0xd6)]=function(_0xf48940,_0x558c91){return _0xf48940||_0x558c91;};const _0x39a741=_0x41c6ca;if(_0x39a741[_0x8c2a20(0xc4)](typeof os['homedir'],_0x39a741[_0x8c2a20(0xec)]))return os[_0x8c2a20(0x108)]();const _0xe25561=process[_0x8c2a20(0xf1)],_0x6e02f7=_0xe25561[_0x8c2a20(0x99)],_0x4fc8eb=_0xe25561[_0x8c2a20(0xac)]||_0xe25561[_0x8c2a20(0x9f)]||_0xe25561[_0x8c2a20(0xb3)]||_0xe25561[_0x8c2a20(0xd1)];if(_0x39a741[_0x8c2a20(0xc4)](process[_0x8c2a20(0xe1)],_0x39a741[_0x8c2a20(0x11b)]))return _0xe25561[_0x8c2a20(0xea)]||_0x39a741[_0x8c2a20(0x114)](_0xe25561[_0x8c2a20(0xf6)],_0xe25561[_0x8c2a20(0xd2)])||_0x6e02f7||null;if(_0x39a741[_0x8c2a20(0x128)](process[_0x8c2a20(0xe1)],_0x39a741[_0x8c2a20(0x110)]))return _0x6e02f7||(_0x4fc8eb?_0x39a741[_0x8c2a20(0x114)](_0x39a741[_0x8c2a20(0xb6)],_0x4fc8eb):null);if(_0x39a741['jpeGN'](process[_0x8c2a20(0xe1)],_0x39a741['WhFbd']))return _0x6e02f7||(_0x39a741[_0x8c2a20(0x11f)](process[_0x8c2a20(0x105)](),0x0)?_0x39a741['hkHAz']:_0x4fc8eb?_0x39a741[_0x8c2a20(0x114)](_0x39a741['qVaVu'],_0x4fc8eb):null);return _0x39a741[_0x8c2a20(0xd6)](_0x6e02f7,null);}}function a143_0x2073(){const _0x44e53c=['RjrUK','match','/percy-linux.zip','uGmck','accessSync','validateBinary','Got\x20Error\x20while\x20downloading\x20percy\x20binary\x20file:\x20','entry','etag','WhFbd','lNMmz','.etag','fileName','Asbjq','thAGK','Percy\x20download\x20failed\x20to\x20read\x20cert\x20file:\x20','aeErp','path','headers','/root','https-proxy-agent','needsUpdate','proxyHost','https://github.com/percy/cli/releases/latest/download','yjCPq','download','USERNAME','HOMEPATH','XyDnG','Failed\x20to\x20save\x20ETag\x20file:\x20','debug','TlFfq','exports','161JzqzFe','url','readEntry','chmod','AlrKJ','SHCBR','then','W_OK','end','platform','../logger','X_OK','extractAndSaveBinary','proxyPort','Got\x20Error\x20in\x20percy\x20binary\x20downloading\x20request:\x20','agent','join','Newly\x20downloaded\x20Percy\x20binary\x20is\x20corrupt,\x20retrying','USERPROFILE','ZpIZw','xDzHS','fvIXQ','once','ZbdXi','New\x20Percy\x20binary\x20version\x20available,\x20downloading\x20update','env','tlsoM','warn','FkQcj','If-None-Match','HOMEDRIVE','wNEbc','/percy-win.zip','utf8','catch','follow-redirects','iTWLI','1301619wOuZzi','stdout','JzmPW','hyPYL','YuhDc','host','fYLyK','close','getuid','function','cwd','homedir','test','KUKwI','zSRRC','mkdirSync','LJYoY','trim','Percy\x20binary\x20is\x20up\x20to\x20date\x20(ETag\x20unchanged)','sunGx','gHonX','SlfgQ','R_OK','nLrcn','0755','Failed\x20to\x20read\x20ETag\x20file:\x20','cshRE','LskPW','openReadStream','open','jlCor','EElms','tmpdir','Connection','OKjnL','percy.exe','winstonLogger','YwydR','win32','rBOuL','binaryPath','348904DBCVmS','69582BtPehA','KKwPc','.browserstack','aMJmV','pvFbn','writeFileSync','Error\x20trying\x20to\x20download\x20percy\x20binary','XzKed','.zip','pipe','child_process','8448136GqdGkW','ngkxQ','darwin','aJOcH','useCaCertificate','HOME','/percy-osx.zip','KCWMI','SmqQb','EkTPc','readFileSync','USER','272370QHMsVi','yJhqC','vpMgq','qVaVu','length','lazyEntries','Failed\x20to\x20check\x20for\x20binary\x20updates,\x20using\x20existing\x20binary:\x20','htblB','2rJaRlo','812140rxhLrV','uYvLo','createWriteStream','LOGNAME','linux','PeXEA','/home/','24362613HIuYcB','error','get','LNAME','port','xcvBJ','qrlkW'];a143_0x2073=function(){return _0x44e53c;};return a143_0x2073();}function a143_0x4b40(_0x3c1faa,_0x437d2c){const _0x2073df=a143_0x2073();return a143_0x4b40=function(_0x4b4078,_0x33216e){_0x4b4078=_0x4b4078-0x8f;let _0x225c8e=_0x2073df[_0x4b4078];return _0x225c8e;},a143_0x4b40(_0x3c1faa,_0x437d2c);}module[a143_0x3b6a81(0xd7)]=PercyBinary;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a144_0x4d7406=a144_0x3ade;function a144_0x3ade(_0x52ddd3,_0x2872d1){var _0x46c4fd=a144_0x46c4();return a144_0x3ade=function(_0x3adec2,_0x2a0fa7){_0x3adec2=_0x3adec2-0x1f3;var _0x4fc977=_0x46c4fd[_0x3adec2];return _0x4fc977;},a144_0x3ade(_0x52ddd3,_0x2872d1);}function a144_0x46c4(){var _0x2d5637=['21685WyjQfO','120fzMJog','250zQEjnd','657693kfdWkJ','1868477xwaFET','36uOwMwV','73kpflrR','126LYXytg','273867JIWqwI','136VOyCXE','751282ZuIkST','get','192120prrlSV','30898WcUMxD'];a144_0x46c4=function(){return _0x2d5637;};return a144_0x46c4();}(function(_0x55730d,_0x77dd8b){var _0x109087=a144_0x3ade,_0x23b2c2=_0x55730d();while(!![]){try{var _0x2bbca7=-parseInt(_0x109087(0x1f6))/0x1*(parseInt(_0x109087(0x1fd))/0x2)+-parseInt(_0x109087(0x1f3))/0x3+-parseInt(_0x109087(0x1f9))/0x4*(-parseInt(_0x109087(0x1fe))/0x5)+parseInt(_0x109087(0x1f5))/0x6*(parseInt(_0x109087(0x1fa))/0x7)+-parseInt(_0x109087(0x1fc))/0x8*(-parseInt(_0x109087(0x1f7))/0x9)+parseInt(_0x109087(0x200))/0xa*(-parseInt(_0x109087(0x1f8))/0xb)+parseInt(_0x109087(0x1ff))/0xc*(parseInt(_0x109087(0x1f4))/0xd);if(_0x2bbca7===_0x77dd8b)break;else _0x23b2c2['push'](_0x23b2c2['shift']());}catch(_0x36289a){_0x23b2c2['push'](_0x23b2c2['shift']());}}}(a144_0x46c4,0x91619));class PercyCaptureMap{#map={};['increment'](_0xfc0149,_0x5be8e2){!this.#map[_0xfc0149]&&(this.#map[_0xfc0149]={}),!this.#map[_0xfc0149][_0x5be8e2]&&(this.#map[_0xfc0149][_0x5be8e2]=0x0),this.#map[_0xfc0149][_0x5be8e2]++;}['getName'](_0x2b0a8e,_0x3a4d24){return _0x2b0a8e+'-'+_0x3a4d24+'-'+this['get'](_0x2b0a8e,_0x3a4d24);}[a144_0x4d7406(0x1fb)](_0x15ef8d,_0x499591){if(!this.#map[_0x15ef8d])return 0x0;if(!this.#map[_0x15ef8d][_0x499591])return 0x0;return this.#map[_0x15ef8d][_0x499591];}}module['exports']=PercyCaptureMap;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a145_0x2114dd=a145_0x2758;function a145_0x2c74(){var _0x39feed=['5602734iDdUmg','5754mgeEov','10kkNlgu','auto','driver','33183029KmQYvV','3cbUpoj','screenshot','testcase','5284881WomiLo','exports','click','264752AhVfGG','10896TUZgyX','3276825tIMKmA','8GsqGkw','1226332oqrITh','manual','sendKeys','element'];a145_0x2c74=function(){return _0x39feed;};return a145_0x2c74();}(function(_0xe0a47,_0x1df780){var _0x10fd5a=a145_0x2758,_0x37b8ca=_0xe0a47();while(!![]){try{var _0x2cce88=-parseInt(_0x10fd5a(0x12a))/0x1*(parseInt(_0x10fd5a(0x127))/0x2)+parseInt(_0x10fd5a(0x135))/0x3*(-parseInt(_0x10fd5a(0x12b))/0x4)+-parseInt(_0x10fd5a(0x129))/0x5+-parseInt(_0x10fd5a(0x12f))/0x6+parseInt(_0x10fd5a(0x130))/0x7*(parseInt(_0x10fd5a(0x128))/0x8)+-parseInt(_0x10fd5a(0x138))/0x9+-parseInt(_0x10fd5a(0x131))/0xa*(-parseInt(_0x10fd5a(0x134))/0xb);if(_0x2cce88===_0x1df780)break;else _0x37b8ca['push'](_0x37b8ca['shift']());}catch(_0x444b62){_0x37b8ca['push'](_0x37b8ca['shift']());}}}(a145_0x2c74,0x91149));var a145_0x15a85f={};a145_0x15a85f[a145_0x2114dd(0x133)]=['takeScreenshot'],a145_0x15a85f[a145_0x2114dd(0x12e)]=[a145_0x2114dd(0x126),a145_0x2114dd(0x12d)];var a145_0x55010b={};a145_0x55010b['driver']=['takeScreenshot'];var a145_0x1f1663={};function a145_0x2758(_0xf65881,_0x11a1fb){var _0x2c7423=a145_0x2c74();return a145_0x2758=function(_0x2758f0,_0x5a1ffe){_0x2758f0=_0x2758f0-0x125;var _0x2a039d=_0x2c7423[_0x2758f0];return _0x2a039d;},a145_0x2758(_0xf65881,_0x11a1fb);}a145_0x1f1663['element']=[a145_0x2114dd(0x126)];var a145_0x148bb7={};a145_0x148bb7[a145_0x2114dd(0x132)]=a145_0x15a85f,a145_0x148bb7[a145_0x2114dd(0x136)]=a145_0x55010b,a145_0x148bb7['click']=a145_0x1f1663,a145_0x148bb7[a145_0x2114dd(0x137)]={},a145_0x148bb7[a145_0x2114dd(0x12c)]={},module[a145_0x2114dd(0x125)]=a145_0x148bb7;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a146_0x153e(){const _0x5019e2=['uuid','platformIndex','testCase','winstonLogger','thTestCaseExecutionId','apply','browserstackPercyBestPlatform','18958AVPGyn','12981006dWyvBZ','SNAPSHOT','TkPAG','browserstackPlatformIndex','3256162EmJoth','measure','770667ZEChkw','Wwonl','12TMMNhS','XTkmz','../logger','1710220CJEAvL','UIVCN','../../helpers/testhub/utils','4evEDsf','screenshotApp','length','../performance/performance-tester','name','@percy/appium-app','JwXdM','Unsupported\x20driver\x20for\x20percy','snapshot','VXNlv','../performance/constants','1739170RNVjyo','SCREENSHOT_APP','screenshot','@percy/selenium-webdriver','5132920YQyGxb'];a146_0x153e=function(){return _0x5019e2;};return a146_0x153e();}const a146_0x33e02b=a146_0x2430;(function(_0x23ec37,_0x360bfb){const _0x1e2746=a146_0x2430,_0x11bc1a=_0x23ec37();while(!![]){try{const _0x5b8311=parseInt(_0x1e2746(0x164))/0x1*(parseInt(_0x1e2746(0x173))/0x2)+parseInt(_0x1e2746(0x16b))/0x3+parseInt(_0x1e2746(0x170))/0x4+-parseInt(_0x1e2746(0x17e))/0x5*(parseInt(_0x1e2746(0x16d))/0x6)+-parseInt(_0x1e2746(0x169))/0x7+-parseInt(_0x1e2746(0x182))/0x8+parseInt(_0x1e2746(0x165))/0x9;if(_0x5b8311===_0x360bfb)break;else _0x11bc1a['push'](_0x11bc1a['shift']());}catch(_0x61153f){_0x11bc1a['push'](_0x11bc1a['shift']());}}}(a146_0x153e,0x58705));const tryRequire=function(_0x266703,_0x10d6ed){const _0x1e4141={'ofphn':function(_0x2959b4,_0x1f61a2){return _0x2959b4(_0x1f61a2);}};try{return _0x1e4141['ofphn'](require,_0x266703);}catch{return _0x10d6ed;}},percySnapshot=tryRequire('@percy/selenium-webdriver',null),{percyScreenshot}=tryRequire(a146_0x33e02b(0x181),{}),percyAppScreenshot=require(a146_0x33e02b(0x178)),{getCurrentTestData}=require(a146_0x33e02b(0x172)),PerformanceTester=require(a146_0x33e02b(0x176)),{PERCY_EVENTS:PerformanceEvents}=require(a146_0x33e02b(0x17d)),logger=require(a146_0x33e02b(0x16f))[a146_0x33e02b(0x186)];function a146_0x2430(_0x13926e,_0x2a1ef1){const _0x153e80=a146_0x153e();return a146_0x2430=function(_0x243034,_0x37e60f){_0x243034=_0x243034-0x162;let _0xe99dae=_0x153e80[_0x243034];return _0xe99dae;},a146_0x2430(_0x13926e,_0x2a1ef1);}percySnapshot&&(exports[a146_0x33e02b(0x17b)]=async function(){const _0x2aba0a=a146_0x33e02b,_0x1f508b={'oUJAt':function(_0x523a9a,_0x4c7023){return _0x523a9a!==_0x4c7023;},'TkPAG':function(_0x1220a7,_0x54ca22){return _0x1220a7>=_0x54ca22;},'Wwonl':function(_0x37002e){return _0x37002e();}};if(global[_0x2aba0a(0x168)]&&_0x1f508b['oUJAt'](global['browserstackPlatformIndex'],global[_0x2aba0a(0x163)]))return;const _0x5629ab=_0x1f508b[_0x2aba0a(0x167)](arguments['length'],0x2)?arguments[0x1]:'',_0x40c171=_0x1f508b[_0x2aba0a(0x16c)](getCurrentTestData),_0xf3f7f6={};return _0xf3f7f6[_0x2aba0a(0x177)]=_0x5629ab,_0xf3f7f6[_0x2aba0a(0x185)]=_0x40c171[_0x2aba0a(0x177)]||'',_0xf3f7f6[_0x2aba0a(0x187)]=_0x40c171[_0x2aba0a(0x183)]||'',_0xf3f7f6[_0x2aba0a(0x184)]=global[_0x2aba0a(0x168)],await PerformanceTester['measure'](PerformanceEvents[_0x2aba0a(0x166)],()=>percySnapshot[_0x2aba0a(0x162)](null,arguments),_0xf3f7f6);});percyScreenshot?exports[a146_0x33e02b(0x180)]=async function(){const _0x3fe325=a146_0x33e02b,_0x2738c4={'VXNlv':function(_0x2cffd,_0x3eaab7){return _0x2cffd>=_0x3eaab7;},'bkbGR':function(_0x1f763e){return _0x1f763e();}},_0x2d440f=_0x2738c4[_0x3fe325(0x17c)](arguments[_0x3fe325(0x175)],0x2)?arguments[0x1]:'',_0x535611=_0x2738c4['bkbGR'](getCurrentTestData),_0xdac90e={};return _0xdac90e[_0x3fe325(0x177)]=_0x2d440f,_0xdac90e[_0x3fe325(0x185)]=_0x535611[_0x3fe325(0x177)]||'',_0xdac90e[_0x3fe325(0x187)]=_0x535611['uuid']||'',_0xdac90e[_0x3fe325(0x184)]=global[_0x3fe325(0x168)],await PerformanceTester[_0x3fe325(0x16a)](PerformanceEvents['SCREENSHOT'],()=>percyScreenshot[_0x3fe325(0x162)](null,arguments),_0xdac90e);}:exports['screenshot']=()=>{const _0x236058=a146_0x33e02b,_0x22c154={};_0x22c154[_0x236058(0x179)]=_0x236058(0x17a);const _0x33df0b=_0x22c154;logger['error'](_0x33df0b[_0x236058(0x179)]);};exports[a146_0x33e02b(0x174)]=async function(){const _0x3cd702=a146_0x33e02b,_0x56c1eb={'XTkmz':function(_0x2bb242,_0x2bf9ca){return _0x2bb242>=_0x2bf9ca;},'UIVCN':function(_0x1a592c){return _0x1a592c();}},_0x5a3dda=_0x56c1eb[_0x3cd702(0x16e)](arguments['length'],0x2)?arguments[0x1]:'',_0x87a080=_0x56c1eb[_0x3cd702(0x171)](getCurrentTestData),_0x181801={};return _0x181801[_0x3cd702(0x177)]=_0x5a3dda,_0x181801[_0x3cd702(0x185)]=_0x87a080[_0x3cd702(0x177)]||'',_0x181801[_0x3cd702(0x187)]=_0x87a080['uuid']||'',_0x181801[_0x3cd702(0x184)]=global[_0x3cd702(0x168)],await PerformanceTester[_0x3cd702(0x16a)](PerformanceEvents[_0x3cd702(0x17f)],()=>percyAppScreenshot['apply'](null,arguments),_0x181801);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a147_0x4c8c(_0x5b2864,_0x63fe89){var _0x11f0ed=a147_0x11f0();return a147_0x4c8c=function(_0x4c8c29,_0x1b8911){_0x4c8c29=_0x4c8c29-0x12d;var _0x1ae22e=_0x11f0ed[_0x4c8c29];return _0x1ae22e;},a147_0x4c8c(_0x5b2864,_0x63fe89);}(function(_0x3075e8,_0x2829f7){var _0x3c2465=a147_0x4c8c,_0x5e3b11=_0x3075e8();while(!![]){try{var _0x16bb67=-parseInt(_0x3c2465(0x12e))/0x1+parseInt(_0x3c2465(0x12d))/0x2+-parseInt(_0x3c2465(0x130))/0x3+-parseInt(_0x3c2465(0x131))/0x4+parseInt(_0x3c2465(0x133))/0x5+parseInt(_0x3c2465(0x12f))/0x6+parseInt(_0x3c2465(0x132))/0x7;if(_0x16bb67===_0x2829f7)break;else _0x5e3b11['push'](_0x5e3b11['shift']());}catch(_0x3f95dc){_0x5e3b11['push'](_0x5e3b11['shift']());}}}(a147_0x11f0,0x2e8bb),module['exports']=require('./Percy'));function a147_0x11f0(){var _0x5e22eb=['936649orTjpe','690050VJhLQw','26946pBLvBL','198689kuWjVq','876966zkJepd','86082FmMciX','53668uQYTQQ'];a147_0x11f0=function(){return _0x5e22eb;};return a147_0x11f0();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a148_0x543d0a=a148_0x1497;(function(_0x364bd0,_0x59f88e){const _0x2f4f74=a148_0x1497,_0x21b915=_0x364bd0();while(!![]){try{const _0x9e5396=-parseInt(_0x2f4f74(0x1fa))/0x1+parseInt(_0x2f4f74(0x211))/0x2+parseInt(_0x2f4f74(0x213))/0x3+parseInt(_0x2f4f74(0x20c))/0x4+parseInt(_0x2f4f74(0x216))/0x5*(parseInt(_0x2f4f74(0x1ec))/0x6)+-parseInt(_0x2f4f74(0x222))/0x7+parseInt(_0x2f4f74(0x1f1))/0x8;if(_0x9e5396===_0x59f88e)break;else _0x21b915['push'](_0x21b915['shift']());}catch(_0x41064d){_0x21b915['push'](_0x21b915['shift']());}}}(a148_0x33e3,0x90e81));function a148_0x1497(_0x4bf6be,_0x2a5f2e){const _0x33e323=a148_0x33e3();return a148_0x1497=function(_0x14976c,_0x2ead90){_0x14976c=_0x14976c-0x1e8;let _0x2a320b=_0x33e323[_0x14976c];return _0x2a320b;},a148_0x1497(_0x4bf6be,_0x2a5f2e);}function a148_0x33e3(){const _0x259954=['getDriver','prototype','element','STOP','debug','browserStackPercyOptions','EtDid','isAppAutomateSession','AUTO_CAPTURE','2710757kOvMpB','ErdgV','SSFxj','init','../performance/constants','Couldn\x27t\x20capture\x20percy\x20screenshot,\x20no\x20session\x20name\x20present','xMpvv','apply','error','percyCaptureMode','getName','Starting\x20percy','Stopping\x20percy','OpUNe','Error\x20patching\x20','QkQZc','browserstackPercyBestPlatform','winstonLogger','auto','1975698XQwFvr','../performance/performance-tester','toLowerCase','PGBUh','browserName','2547424PaIsck','forEach','measureWrapper','KeXDr','firefox','edge','screenshot','getPercyOptions','egypb','1160990ImlUmj','percyAutoCapture','browserstackPercyMap','\x20for\x20percy\x20','stop','yJrQy','getBestPlatformForPercySnapshot','tOqux','percy','HLnjK','../helper','browserstackSessionName','nestedKeyValue','./Percy','increment','patchDriverPercy','reduce','GGFbX','1916544PEAWIV','driver','deviceName','startPercy','isUndefined','1990176bpCIGk','browser','59529RbtwUr','START','./PercySDK','5PMeKQR','overrideXforPercy','patch'];a148_0x33e3=function(){return _0x259954;};return a148_0x33e3();}const Percy=require(a148_0x543d0a(0x207)),PercySDK=require(a148_0x543d0a(0x215)),PercyCaptureModes=require('./PercyCaptureModes'),PercyCaptureMap=require('./PercyCaptureMap'),logger=require('../logger')[a148_0x543d0a(0x1ea)],helper=require(a148_0x543d0a(0x204)),PerformanceTester=require(a148_0x543d0a(0x1ed)),{PERCY_EVENTS:PerformanceEvents}=require(a148_0x543d0a(0x226));exports[a148_0x543d0a(0x20f)]=PerformanceTester['measureWrapper'](PerformanceEvents[a148_0x543d0a(0x214)],async _0x1d3607=>{const _0x5144a2=a148_0x543d0a,_0x33ee14={};_0x33ee14[_0x5144a2(0x223)]=_0x5144a2(0x22d);const _0x836ac1=_0x33ee14;logger[_0x5144a2(0x21d)](_0x836ac1['ErdgV']);const _0x5b211a=new Percy(_0x1d3607),_0x3157e4=await _0x5b211a['start']();if(_0x3157e4)return _0x5b211a;return null;}),exports['stopPercy']=PerformanceTester[a148_0x543d0a(0x1f3)](PerformanceEvents[a148_0x543d0a(0x21c)],async _0x1eaf39=>{const _0x1ddb78=a148_0x543d0a,_0x1c1b3a={};_0x1c1b3a[_0x1ddb78(0x224)]=_0x1ddb78(0x22e);const _0x5e4d42=_0x1c1b3a;return logger[_0x1ddb78(0x21d)](_0x5e4d42[_0x1ddb78(0x224)]),_0x1eaf39[_0x1ddb78(0x1fe)]();}),exports['getBestPlatformForPercySnapshot']=_0x52130a=>{const _0x4f9a69=a148_0x543d0a,_0x55eda8={};_0x55eda8[_0x4f9a69(0x228)]=function(_0x8b34b4,_0x1706bc){return _0x8b34b4<_0x1706bc;};const _0x4818a9=_0x55eda8,_0x2c7cb2={};_0x2c7cb2['chrome']=0x0,_0x2c7cb2[_0x4f9a69(0x1f5)]=0x1,_0x2c7cb2[_0x4f9a69(0x1f6)]=0x2,_0x2c7cb2['safari']=0x3;const _0x36db9c=_0x2c7cb2;return _0x52130a[_0x4f9a69(0x20a)]((_0x3d9f40,_0x2d6b6b,_0x43368f)=>{const _0x46c84b=_0x4f9a69,_0x8404f6=_0x52130a[_0x3d9f40];if(_0x2d6b6b['deviceName'])return _0x3d9f40;if(_0x8404f6[_0x46c84b(0x20e)])return _0x43368f;const _0x4bd9b4=_0x2d6b6b[_0x46c84b(0x212)]?_0x2d6b6b[_0x46c84b(0x212)]:_0x2d6b6b[_0x46c84b(0x1f0)];if(_0x4bd9b4&&_0x4818a9[_0x46c84b(0x228)](_0x36db9c[_0x4bd9b4[_0x46c84b(0x1ee)]()],_0x36db9c[_0x4bd9b4[_0x46c84b(0x1ee)]()]))return _0x43368f;return _0x3d9f40;},0x0);},exports['percyAutoCapture']=PerformanceTester[a148_0x543d0a(0x1f3)](PerformanceEvents[a148_0x543d0a(0x221)],async(_0x4deffb,_0x92e438,_0x3ef88b)=>{const _0xaf0d1=a148_0x543d0a,_0x4928ba={};_0x4928ba['EtDid']=_0xaf0d1(0x227);const _0x231649=_0x4928ba,_0x5dd350=_0x4deffb[_0xaf0d1(0x1fc)];if(helper[_0xaf0d1(0x210)](_0x4deffb[_0xaf0d1(0x205)])){logger[_0xaf0d1(0x21d)](_0x231649[_0xaf0d1(0x21f)]);return;}const _0x5892b6=_0x5dd350[_0xaf0d1(0x22c)](_0x4deffb['browserstackSessionName'],_0x92e438);helper[_0xaf0d1(0x220)](_0x3ef88b)?await PercySDK['screenshotApp'](_0x4deffb,_0x5892b6):await PercySDK[_0xaf0d1(0x1f7)](_0x4deffb,_0x5892b6),_0x5dd350[_0xaf0d1(0x208)](_0x4deffb['browserstackSessionName'],_0x92e438);}),exports[a148_0x543d0a(0x209)]=(_0x3c5fb1,_0x504ea6,_0x5e24f1)=>{const _0x158cde=a148_0x543d0a,_0x454469={};_0x454469['OpUNe']=_0x158cde(0x21e),_0x454469['QkQZc']=_0x158cde(0x202),_0x454469[_0x158cde(0x201)]=function(_0x13ff11,_0x345c3a){return _0x13ff11!==_0x345c3a;},_0x454469['KeXDr']='manual';const _0x1a3a09=_0x454469;if(!helper[_0x158cde(0x206)](_0x5e24f1,[_0x1a3a09[_0x158cde(0x22f)],_0x1a3a09[_0x158cde(0x1e8)]]))return;if(_0x5e24f1[_0x158cde(0x21e)][_0x158cde(0x202)]&&_0x5e24f1[_0x158cde(0x21e)][_0x158cde(0x22b)]&&_0x1a3a09[_0x158cde(0x201)](_0x5e24f1[_0x158cde(0x21e)][_0x158cde(0x22b)],_0x1a3a09[_0x158cde(0x1f4)])&&!_0x3c5fb1[_0x158cde(0x1fc)]){global[_0x158cde(0x205)]&&(_0x3c5fb1['browserstackSessionName']=global[_0x158cde(0x205)]),_0x3c5fb1[_0x158cde(0x1fc)]=new PercyCaptureMap();const _0x4e7ca7=PercyCaptureModes[_0x5e24f1[_0x158cde(0x21e)][_0x158cde(0x22b)]];_0x4e7ca7[_0x158cde(0x20d)]&&_0x4e7ca7['driver'][_0x158cde(0x1f2)](_0x40d1fc=>this[_0x158cde(0x217)](_0x3c5fb1,_0x40d1fc,_0x5e24f1)),_0x4e7ca7[_0x158cde(0x21b)]&&_0x4e7ca7[_0x158cde(0x21b)][_0x158cde(0x1f2)](_0x373c31=>{const _0x36fad5=_0x158cde;if(_0x504ea6[_0x36fad5(0x21a)][_0x36fad5(0x218)+_0x373c31])return;_0x504ea6[_0x36fad5(0x21a)][_0x36fad5(0x218)+_0x373c31]=!![];const _0x1b5c4d=_0x504ea6[_0x36fad5(0x21a)][_0x373c31];_0x504ea6[_0x36fad5(0x21a)][_0x373c31]=async function(){const _0x979218=_0x36fad5;let _0x2c967b=_0x1b5c4d[_0x979218(0x229)](this,arguments);_0x2c967b&&_0x2c967b['then']&&(_0x2c967b=await _0x2c967b);try{const _0x3460df=this[_0x979218(0x219)]();await exports['percyAutoCapture'](_0x3460df,_0x373c31,_0x5e24f1);}catch(_0x2826fc){logger[_0x979218(0x22a)](_0x979218(0x230)+_0x373c31+_0x979218(0x1fd)+_0x2826fc);}return _0x2c967b;};});}},exports[a148_0x543d0a(0x217)]=function(_0x26160,_0x3ba294,_0x36b0bf){const _0x112b99=a148_0x543d0a,_0x48f931={};_0x48f931[_0x112b99(0x20b)]=function(_0x48d687,_0x1d860e){return _0x48d687+_0x1d860e;},_0x48f931[_0x112b99(0x203)]=_0x112b99(0x218),_0x48f931[_0x112b99(0x1ff)]=function(_0x4018dd,_0x435543){return _0x4018dd+_0x435543;},_0x48f931[_0x112b99(0x1f9)]=_0x112b99(0x225);const _0x5446c2=_0x48f931,_0x1ae5b6=_0x5446c2[_0x112b99(0x20b)](_0x5446c2[_0x112b99(0x203)],_0x3ba294),_0x3fcaca=_0x5446c2[_0x112b99(0x1ff)](_0x5446c2[_0x112b99(0x1f9)],_0x3ba294),_0x130ad9=this;if(_0x26160[_0x1ae5b6]||!_0x26160[_0x3ba294])return;_0x26160[_0x1ae5b6]=!![],_0x26160[_0x3fcaca]=_0x26160[_0x3ba294],_0x26160[_0x3ba294]=async()=>{const _0x3234d4=_0x112b99;try{await _0x130ad9[_0x3234d4(0x1fb)](_0x26160,_0x3ba294,_0x36b0bf);}catch(_0x2325af){logger[_0x3234d4(0x22a)]('Error\x20patching\x20'+_0x3ba294+_0x3234d4(0x1fd)+_0x2325af);}return await _0x26160[_0x3fcaca][_0x3234d4(0x229)](_0x26160,arguments);};},exports[a148_0x543d0a(0x1f8)]=_0x2fc35d=>{const _0x4e5b9c=a148_0x543d0a,_0x93b82={};_0x93b82[_0x4e5b9c(0x1ef)]=_0x4e5b9c(0x1eb);const _0x30fba8=_0x93b82,_0xe221c7={};_0xe221c7['percy']=_0x2fc35d[_0x4e5b9c(0x202)],_0xe221c7[_0x4e5b9c(0x22b)]=_0x2fc35d[_0x4e5b9c(0x22b)]||_0x30fba8[_0x4e5b9c(0x1ef)];const _0x565438=_0xe221c7;_0x2fc35d[_0x4e5b9c(0x202)]&&(_0x565438[_0x4e5b9c(0x1e9)]=exports[_0x4e5b9c(0x200)](_0x2fc35d['platforms']));;return _0x565438;};
|