browserstack-node-sdk 1.65.3 → 1.65.4
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_0x1c86f5=a138_0x2a1b;(function(_0x4f970b,_0x5776c2){const _0x439712=a138_0x2a1b,_0x1922e5=_0x4f970b();while(!![]){try{const _0x23339a=-parseInt(_0x439712(0x234))/0x1+-parseInt(_0x439712(0x230))/0x2*(parseInt(_0x439712(0x20a))/0x3)+parseInt(_0x439712(0x1e9))/0x4+parseInt(_0x439712(0x1ea))/0x5+parseInt(_0x439712(0x1e3))/0x6*(parseInt(_0x439712(0x211))/0x7)+parseInt(_0x439712(0x228))/0x8*(-parseInt(_0x439712(0x218))/0x9)+-parseInt(_0x439712(0x220))/0xa;if(_0x23339a===_0x5776c2)break;else _0x1922e5['push'](_0x1922e5['shift']());}catch(_0x25925a){_0x1922e5['push'](_0x1922e5['shift']());}}}(a138_0x1486,0x5a36c));const winston=require(a138_0x1c86f5(0x1f0)),path=require(a138_0x1c86f5(0x1e2)),fs=require('fs'),{LOG_FILE_NAME,DEBUG_LOG_FILE_NAME,DEBUG_CLI_LOG_FILE_NAME}=require('../bin/utils/constants'),tempLogDir=a138_0x1c86f5(0x206);let redactRegex=null,lastConfigHash='';const logFormat=winston[a138_0x1c86f5(0x233)](_0x5a584d=>{const _0x170354=a138_0x1c86f5,_0xcf9411={};_0xcf9411[_0x170354(0x203)]=function(_0x5ad418,_0x133a6b){return _0x5ad418!==_0x133a6b;},_0xcf9411[_0x170354(0x236)]=_0x170354(0x20b),_0xcf9411[_0x170354(0x217)]=function(_0x4b40db,_0x127861){return _0x4b40db+_0x127861;},_0xcf9411[_0x170354(0x1e7)]=function(_0x3b393e,_0x4d33f3){return _0x3b393e+_0x4d33f3;},_0xcf9411[_0x170354(0x204)]=function(_0xebc75,_0x1689d0){return _0xebc75>_0x1689d0;},_0xcf9411[_0x170354(0x21b)]='[REDACTED]';const _0x378248=_0xcf9411;_0x378248[_0x170354(0x203)](typeof _0x5a584d[_0x170354(0x22b)],_0x378248[_0x170354(0x236)])&&(_0x5a584d[_0x170354(0x22b)]=JSON['stringify'](_0x5a584d[_0x170354(0x22b)]));const _0x1d6280=global[_0x170354(0x21f)]&&global[_0x170354(0x21f)]['userName']||'',_0x28e084=global[_0x170354(0x21f)]&&global[_0x170354(0x21f)][_0x170354(0x224)]||'',_0xe1f9e5=_0x378248[_0x170354(0x217)](_0x378248['psTtL'](_0x1d6280,'|'),_0x28e084);if(_0x378248[_0x170354(0x203)](_0xe1f9e5,lastConfigHash)){lastConfigHash=_0xe1f9e5;const _0x4cb458=[_0x1d6280,_0x28e084][_0x170354(0x21a)](Boolean);if(_0x378248[_0x170354(0x204)](_0x4cb458['length'],0x0)){const _0xc81d07=_0x4cb458[_0x170354(0x222)](_0x487b55=>_0x487b55[_0x170354(0x221)](/[.*+?^${}()|[\]\\]/g,_0x170354(0x1f4)))[_0x170354(0x1f7)]('|');redactRegex=new RegExp(_0xc81d07,'g');}else redactRegex=null;}return redactRegex&&(_0x5a584d[_0x170354(0x22b)]=_0x5a584d[_0x170354(0x22b)]['replace'](redactRegex,_0x378248[_0x170354(0x21b)])),_0x5a584d;}),SENSITIVE_HEADER_REGEX=/authorization|token|cookie|secret|^x-api-key$|accesskey|password/i,maskHeaders=_0x5f25b2=>{const _0x4ecd51=a138_0x1c86f5,_0x75e3d5={};_0x75e3d5[_0x4ecd51(0x213)]=function(_0x2a2a47,_0x35e239){return _0x2a2a47!==_0x35e239;},_0x75e3d5['Qzfku']=_0x4ecd51(0x214),_0x75e3d5[_0x4ecd51(0x1fe)]='[REDACTED]',_0x75e3d5[_0x4ecd51(0x20e)]=_0x4ecd51(0x1e6);const _0x38c735=_0x75e3d5;try{if(!_0x5f25b2||_0x38c735[_0x4ecd51(0x213)](typeof _0x5f25b2,_0x38c735[_0x4ecd51(0x200)]))return _0x5f25b2;const _0x24e0e2={};for(const _0x1163f9 of Object[_0x4ecd51(0x1e5)](_0x5f25b2)){_0x24e0e2[_0x1163f9]=SENSITIVE_HEADER_REGEX[_0x4ecd51(0x1ec)](_0x1163f9)?_0x38c735['HdlJJ']:_0x5f25b2[_0x1163f9];}return _0x24e0e2;}catch{return _0x38c735[_0x4ecd51(0x20e)];}},fetchLogDir=()=>{const _0xe2507d=a138_0x1c86f5;if(process[_0xe2507d(0x208)]['BROWSERSTACK_INTERNAL_LOG_DIR'])return process[_0xe2507d(0x208)][_0xe2507d(0x207)];else!fs['existsSync'](tempLogDir)&&fs[_0xe2507d(0x1f5)](tempLogDir);return tempLogDir;},logDir=fetchLogDir(),getInitialLogLevel=()=>{const _0x29e427=a138_0x1c86f5,_0x4e7487={};_0x4e7487['CADZc']='info';const _0x57e737=_0x4e7487,_0x2d1279=process['env'][_0x29e427(0x1ff)],_0x59ea73=Object[_0x29e427(0x1e5)](winston[_0x29e427(0x21f)][_0x29e427(0x216)][_0x29e427(0x21d)]);if(_0x2d1279&&_0x59ea73[_0x29e427(0x1fb)](_0x2d1279[_0x29e427(0x235)]()))return _0x2d1279['toLowerCase']();return _0x57e737['CADZc'];},initialLogLevel=getInitialLogLevel(),a138_0x4a9e99={};a138_0x4a9e99[a138_0x1c86f5(0x232)]=a138_0x1c86f5(0x225),a138_0x4a9e99[a138_0x1c86f5(0x22e)]=initialLogLevel;const transports={'loggerConsole':new winston['transports'][(a138_0x1c86f5(0x201))](a138_0x4a9e99),'loggerFile':new winston[(a138_0x1c86f5(0x20d))]['File']({'filename':path[a138_0x1c86f5(0x1f7)](logDir,a138_0x1c86f5(0x1de)),'level':initialLogLevel}),'debugLoggerFile':new winston[(a138_0x1c86f5(0x20d))][(a138_0x1c86f5(0x22c))]({'filename':path[a138_0x1c86f5(0x1f7)](logDir,a138_0x1c86f5(0x1fa)),'level':a138_0x1c86f5(0x21e)}),'debugCliLoggerFile':new winston[(a138_0x1c86f5(0x20d))][(a138_0x1c86f5(0x22c))]({'filename':path[a138_0x1c86f5(0x1f7)](logDir,DEBUG_CLI_LOG_FILE_NAME),'level':a138_0x1c86f5(0x21e)}),'buildLinkTransport':new winston[(a138_0x1c86f5(0x20d))][(a138_0x1c86f5(0x22c))]({'filename':path[a138_0x1c86f5(0x1f7)](logDir,'/usage.log'),'level':a138_0x1c86f5(0x21e)})},automationTransports={};function a138_0x2a1b(_0x51971c,_0x27fc98){const _0x148640=a138_0x1486();return a138_0x2a1b=function(_0x2a1bf9,_0x2ecd44){_0x2a1bf9=_0x2a1bf9-0x1dd;let _0x45c504=_0x148640[_0x2a1bf9];return _0x45c504;},a138_0x2a1b(_0x51971c,_0x27fc98);}process[a138_0x1c86f5(0x208)][a138_0x1c86f5(0x1e4)]===a138_0x1c86f5(0x1e0)&&(automationTransports[a138_0x1c86f5(0x1f6)]=new winston[(a138_0x1c86f5(0x20d))][(a138_0x1c86f5(0x22c))]({'filename':path[a138_0x1c86f5(0x1f7)](logDir,'automation.log'),'level':'silly'}));transports[a138_0x1c86f5(0x226)]['on'](a138_0x1c86f5(0x1ef),_0x1d8ec2=>{const _0x1abd6f=a138_0x1c86f5,_0x3ecf5c={};_0x3ecf5c[_0x1abd6f(0x219)]=function(_0x33a66f,_0x2ef45b){return _0x33a66f===_0x2ef45b;},_0x3ecf5c[_0x1abd6f(0x229)]=_0x1abd6f(0x210),_0x3ecf5c[_0x1abd6f(0x212)]=_0x1abd6f(0x1f8);const _0x549bbd=_0x3ecf5c;if(_0x549bbd[_0x1abd6f(0x219)](_0x1d8ec2[_0x1abd6f(0x21c)],_0x549bbd[_0x1abd6f(0x229)])){console['log'](_0x549bbd[_0x1abd6f(0x212)],_0x1d8ec2[_0x1abd6f(0x22b)]);return;}throw _0x1d8ec2;});const a138_0x1eb877={};a138_0x1eb877[a138_0x1c86f5(0x233)]=a138_0x1c86f5(0x1e8);const a138_0x13dbef={};a138_0x13dbef[a138_0x1c86f5(0x22e)]=!![];const winstonLoggerParams={'format':winston[a138_0x1c86f5(0x233)]['combine'](winston[a138_0x1c86f5(0x233)][a138_0x1c86f5(0x1fd)](a138_0x1eb877),winston[a138_0x1c86f5(0x233)][a138_0x1c86f5(0x1fc)](a138_0x13dbef),winston[a138_0x1c86f5(0x233)]['printf'](_0x129cdc=>_0x129cdc[a138_0x1c86f5(0x1fd)]+a138_0x1c86f5(0x223)+_0x129cdc[a138_0x1c86f5(0x22e)]+':\x20'+_0x129cdc[a138_0x1c86f5(0x22b)])),'transports':[transports[a138_0x1c86f5(0x226)]]},a138_0x1a89c4={};a138_0x1a89c4[a138_0x1c86f5(0x233)]=a138_0x1c86f5(0x1e8);const a138_0x59dc07={};a138_0x59dc07['level']=!![];const winstonFileLoggerParams={'format':winston[a138_0x1c86f5(0x233)]['combine'](winston[a138_0x1c86f5(0x233)][a138_0x1c86f5(0x1fd)](a138_0x1a89c4),winston[a138_0x1c86f5(0x233)]['colorize'](a138_0x59dc07),winston[a138_0x1c86f5(0x233)][a138_0x1c86f5(0x1f1)](_0x1cbb26=>_0x1cbb26['level']+':\x20'+_0x1cbb26[a138_0x1c86f5(0x22b)])),'transports':[]},a138_0x3634bd={};a138_0x3634bd[a138_0x1c86f5(0x233)]=a138_0x1c86f5(0x1e8);const a138_0xbe62f4={};function a138_0x1486(){const _0x4728b3=['buildLinkTransport','2067064NXCGmA','eroWr','initialize','message','File','maskHeaders','level','uncolorize','1394fGculD','automationLogger','name','format','520836wCaXDK','toLowerCase','AHwgN','debug','/usage.log','debugCliLoggerFile','true','combine','path','6qXjIuT','BROWSERSTACK_AUTOMATION_LOGS','keys','[REDACTED\x20HEADERS]','psTtL','YYYY-MM-DD\x20HH:mm:ss','2083072spPJfn','1493025AlSPWj','remove','test','createLogger','warn','error','winston','printf','RoLmw','logDir','\x5c$&','mkdirSync','automationLoggerFile','join','EPIPE\x20error\x20occurred\x20in\x20loggerConsole:','add','/usage-debug.log','includes','colorize','timestamp','HdlJJ','BROWSERSTACK_LOG_LEVEL','Qzfku','Console','fileLogger','vVcng','CyhPZ','winstonLogger','log','BROWSERSTACK_INTERNAL_LOG_DIR','env','loggerFile','81JlGxZS','string','info','transports','LcoJp','http','EPIPE','2582783fHDaEf','hkMIJ','EZvpB','object','debugLoggerFile','npm','oJWFl','9DqnAQN','BdxfX','filter','bpZJX','code','levels','silly','config','207880KsLyLh','replace','map','\x20-\x20','accessKey','console.info','loggerConsole'];a138_0x1486=function(){return _0x4728b3;};return a138_0x1486();}a138_0xbe62f4[a138_0x1c86f5(0x22e)]=!![];const a138_0x27745c={};a138_0x27745c[a138_0x1c86f5(0x22e)]='silly';const BuildLoggerParams={'format':winston['format'][a138_0x1c86f5(0x1e1)](winston['format'][a138_0x1c86f5(0x1fd)](a138_0x3634bd),winston['format'][a138_0x1c86f5(0x1fc)](a138_0xbe62f4),winston[a138_0x1c86f5(0x233)]['printf'](_0x18cd15=>_0x18cd15[a138_0x1c86f5(0x1fd)]+'\x20-\x20'+_0x18cd15[a138_0x1c86f5(0x22e)]+':\x20'+_0x18cd15[a138_0x1c86f5(0x22b)])),'transports':[transports[a138_0x1c86f5(0x227)],new winston[(a138_0x1c86f5(0x20d))][(a138_0x1c86f5(0x201))](a138_0x27745c)]},a138_0x446a60={};a138_0x446a60[a138_0x1c86f5(0x20f)]=()=>{},a138_0x446a60[a138_0x1c86f5(0x20c)]=()=>{},a138_0x446a60[a138_0x1c86f5(0x1ee)]=()=>{},a138_0x446a60[a138_0x1c86f5(0x1ef)]=()=>{},a138_0x446a60[a138_0x1c86f5(0x1dd)]=()=>{},a138_0x446a60[a138_0x1c86f5(0x21e)]=()=>{},exports[a138_0x1c86f5(0x231)]=process[a138_0x1c86f5(0x208)]['BROWSERSTACK_AUTOMATION_LOGS']===a138_0x1c86f5(0x1e0)?winston[a138_0x1c86f5(0x1ed)]({'format':winston['format'][a138_0x1c86f5(0x1e1)](winston[a138_0x1c86f5(0x233)][a138_0x1c86f5(0x22f)](),winston[a138_0x1c86f5(0x233)][a138_0x1c86f5(0x1fd)](),logFormat(),winston[a138_0x1c86f5(0x233)]['printf'](_0x397e72=>_0x397e72['level']+':\x20'+_0x397e72[a138_0x1c86f5(0x22b)])),'transports':[automationTransports[a138_0x1c86f5(0x1f6)]]}):a138_0x446a60;const initialize=()=>{const _0x4df89e=a138_0x1c86f5,_0x40816a={};_0x40816a[_0x4df89e(0x1f2)]='silly';const _0x3e9b4a=_0x40816a,_0x3a0932=transports[_0x4df89e(0x226)][_0x4df89e(0x22e)]||initialLogLevel;transports[_0x4df89e(0x209)]&&(exports[_0x4df89e(0x205)][_0x4df89e(0x1eb)](transports[_0x4df89e(0x209)]),exports[_0x4df89e(0x202)][_0x4df89e(0x1eb)](transports[_0x4df89e(0x209)])),transports[_0x4df89e(0x215)]&&(exports[_0x4df89e(0x205)]['remove'](transports[_0x4df89e(0x215)]),exports[_0x4df89e(0x202)][_0x4df89e(0x1eb)](transports[_0x4df89e(0x215)])),transports['loggerFile']=new winston[(_0x4df89e(0x20d))][(_0x4df89e(0x22c))]({'filename':path[_0x4df89e(0x1f7)](exports['logDir'],LOG_FILE_NAME),'level':_0x3a0932}),transports[_0x4df89e(0x215)]=new winston[(_0x4df89e(0x20d))][(_0x4df89e(0x22c))]({'filename':path[_0x4df89e(0x1f7)](exports[_0x4df89e(0x1f3)],DEBUG_LOG_FILE_NAME),'level':_0x3e9b4a[_0x4df89e(0x1f2)]}),transports[_0x4df89e(0x1df)]=new winston[(_0x4df89e(0x20d))][(_0x4df89e(0x22c))]({'filename':path['join'](exports[_0x4df89e(0x1f3)],DEBUG_CLI_LOG_FILE_NAME),'level':_0x3e9b4a[_0x4df89e(0x1f2)]}),exports[_0x4df89e(0x205)][_0x4df89e(0x1f9)](transports[_0x4df89e(0x209)]),exports[_0x4df89e(0x205)]['add'](transports[_0x4df89e(0x215)]),exports['fileLogger'][_0x4df89e(0x1f9)](transports[_0x4df89e(0x209)]),exports['fileLogger'][_0x4df89e(0x1f9)](transports[_0x4df89e(0x215)]);};exports[a138_0x1c86f5(0x205)]=new winston[(a138_0x1c86f5(0x1ed))](winstonLoggerParams),exports[a138_0x1c86f5(0x202)]=new winston['createLogger'](winstonFileLoggerParams),exports['buildLogger']=new winston['createLogger'](BuildLoggerParams),exports[a138_0x1c86f5(0x1f3)]=logDir,exports['getLogDir']=()=>{const _0x4646d4=a138_0x1c86f5;return exports[_0x4646d4(0x1f3)];},exports[a138_0x1c86f5(0x20d)]=transports,exports[a138_0x1c86f5(0x22a)]=initialize,exports[a138_0x1c86f5(0x22d)]=maskHeaders;logDir&&initialize();
|
|
1
|
+
function a138_0x12fd(_0x40bdb9,_0x10c2c4){const _0x1d4586=a138_0x1d45();return a138_0x12fd=function(_0x12fd6b,_0x556d3d){_0x12fd6b=_0x12fd6b-0x98;let _0x9c3e5=_0x1d4586[_0x12fd6b];return _0x9c3e5;},a138_0x12fd(_0x40bdb9,_0x10c2c4);}const a138_0x5b9a8f=a138_0x12fd;(function(_0x4b5d44,_0x5a8020){const _0x493336=a138_0x12fd,_0x18dc6a=_0x4b5d44();while(!![]){try{const _0x20c690=-parseInt(_0x493336(0xb2))/0x1*(-parseInt(_0x493336(0xc0))/0x2)+-parseInt(_0x493336(0xa6))/0x3+parseInt(_0x493336(0xbe))/0x4*(parseInt(_0x493336(0xdb))/0x5)+parseInt(_0x493336(0xe1))/0x6*(parseInt(_0x493336(0xc4))/0x7)+parseInt(_0x493336(0xe4))/0x8+-parseInt(_0x493336(0xb6))/0x9+parseInt(_0x493336(0xed))/0xa*(parseInt(_0x493336(0xe7))/0xb);if(_0x20c690===_0x5a8020)break;else _0x18dc6a['push'](_0x18dc6a['shift']());}catch(_0x4e9107){_0x18dc6a['push'](_0x18dc6a['shift']());}}}(a138_0x1d45,0xa4f62));const winston=require(a138_0x5b9a8f(0xd4)),path=require(a138_0x5b9a8f(0xd3)),fs=require('fs'),{LOG_FILE_NAME,DEBUG_LOG_FILE_NAME,DEBUG_CLI_LOG_FILE_NAME}=require('../bin/utils/constants'),tempLogDir=a138_0x5b9a8f(0xa4);let redactRegex=null,lastConfigHash='';const logFormat=winston['format'](_0x26328a=>{const _0x326f3e=a138_0x5b9a8f,_0x42e284={};_0x42e284[_0x326f3e(0xd9)]=function(_0x24d23d,_0x39b214){return _0x24d23d!==_0x39b214;},_0x42e284[_0x326f3e(0xbd)]='string',_0x42e284[_0x326f3e(0xbb)]=function(_0x471f6b,_0x10e893){return _0x471f6b+_0x10e893;},_0x42e284[_0x326f3e(0xd6)]=function(_0x18eb3f,_0x5f1d7f){return _0x18eb3f!==_0x5f1d7f;},_0x42e284[_0x326f3e(0xc6)]=function(_0x757a5f,_0x56a14f){return _0x757a5f>_0x56a14f;},_0x42e284[_0x326f3e(0xb0)]=_0x326f3e(0xb8);const _0x458193=_0x42e284;_0x458193['Ocuec'](typeof _0x26328a[_0x326f3e(0xba)],_0x458193[_0x326f3e(0xbd)])&&(_0x26328a[_0x326f3e(0xba)]=JSON['stringify'](_0x26328a[_0x326f3e(0xba)]));const _0x3b5dd3=global[_0x326f3e(0xa8)]&&global[_0x326f3e(0xa8)][_0x326f3e(0xa0)]||'',_0x3b85a2=global['config']&&global[_0x326f3e(0xa8)]['accessKey']||'',_0x1bcadf=_0x458193[_0x326f3e(0xbb)](_0x458193[_0x326f3e(0xbb)](_0x3b5dd3,'|'),_0x3b85a2);if(_0x458193[_0x326f3e(0xd6)](_0x1bcadf,lastConfigHash)){lastConfigHash=_0x1bcadf;const _0x38868d=[_0x3b5dd3,_0x3b85a2][_0x326f3e(0xd1)](Boolean);if(_0x458193[_0x326f3e(0xc6)](_0x38868d['length'],0x0)){const _0x39431e=_0x38868d[_0x326f3e(0xac)](_0x3198cb=>_0x3198cb[_0x326f3e(0xb1)](/[.*+?^${}()|[\]\\]/g,_0x326f3e(0xa2)))[_0x326f3e(0xd2)]('|');redactRegex=new RegExp(_0x39431e,'g');}else redactRegex=null;}return redactRegex&&(_0x26328a[_0x326f3e(0xba)]=_0x26328a['message']['replace'](redactRegex,_0x458193[_0x326f3e(0xb0)])),_0x26328a;}),SENSITIVE_HEADER_REGEX=/authorization|token|cookie|secret|^x-api-key$|accesskey|password/i,maskHeaders=_0x32680d=>{const _0x372459=a138_0x5b9a8f,_0x32c58d={};_0x32c58d['nzqRN']=function(_0x41460b,_0x125435){return _0x41460b!==_0x125435;},_0x32c58d[_0x372459(0xa7)]=_0x372459(0x9a),_0x32c58d[_0x372459(0xce)]='[REDACTED]',_0x32c58d['iUypX']=_0x372459(0xeb);const _0x148eae=_0x32c58d;try{if(!_0x32680d||_0x148eae[_0x372459(0xa5)](typeof _0x32680d,_0x148eae[_0x372459(0xa7)]))return _0x32680d;const _0x2924f3={};for(const _0x28b5dc of Object[_0x372459(0xe6)](_0x32680d)){_0x2924f3[_0x28b5dc]=SENSITIVE_HEADER_REGEX[_0x372459(0xaa)](_0x28b5dc)?_0x148eae[_0x372459(0xce)]:_0x32680d[_0x28b5dc];}return _0x2924f3;}catch{return _0x148eae['iUypX'];}},fetchLogDir=()=>{const _0x262920=a138_0x5b9a8f;if(process[_0x262920(0xda)][_0x262920(0xc1)])return process[_0x262920(0xda)]['BROWSERSTACK_INTERNAL_LOG_DIR'];else!fs[_0x262920(0xc3)](tempLogDir)&&fs[_0x262920(0xa1)](tempLogDir);return tempLogDir;},logDir=fetchLogDir(),getInitialLogLevel=()=>{const _0x400934=a138_0x5b9a8f,_0x46ae5d={};_0x46ae5d[_0x400934(0xe8)]='info';const _0x5eaf00=_0x46ae5d,_0x56cb15=process[_0x400934(0xda)][_0x400934(0xc9)],_0x3079b8=Object[_0x400934(0xe6)](winston[_0x400934(0xa8)]['npm']['levels']);if(_0x56cb15&&_0x3079b8['includes'](_0x56cb15[_0x400934(0xaf)]()))return _0x56cb15[_0x400934(0xaf)]();return _0x5eaf00['lxxAC'];},initialLogLevel=getInitialLogLevel(),a138_0x587870={};a138_0x587870[a138_0x5b9a8f(0xcc)]=a138_0x5b9a8f(0xdc),a138_0x587870[a138_0x5b9a8f(0xa3)]=initialLogLevel;const transports={'loggerConsole':new winston[(a138_0x5b9a8f(0x9d))]['Console'](a138_0x587870),'loggerFile':new winston['transports'][(a138_0x5b9a8f(0xb9))]({'filename':path['join'](logDir,a138_0x5b9a8f(0xd8)),'level':initialLogLevel}),'debugLoggerFile':new winston[(a138_0x5b9a8f(0x9d))]['File']({'filename':path['join'](logDir,a138_0x5b9a8f(0xc8)),'level':'silly'}),'debugCliLoggerFile':new winston['transports'][(a138_0x5b9a8f(0xb9))]({'filename':path['join'](logDir,DEBUG_CLI_LOG_FILE_NAME),'level':'silly'}),'buildLinkTransport':new winston[(a138_0x5b9a8f(0x9d))]['File']({'filename':path[a138_0x5b9a8f(0xd2)](logDir,a138_0x5b9a8f(0xd8)),'level':a138_0x5b9a8f(0xb4)})},automationTransports={};process['env']['BROWSERSTACK_AUTOMATION_LOGS']===a138_0x5b9a8f(0xd7)&&(automationTransports[a138_0x5b9a8f(0x9e)]=new winston[(a138_0x5b9a8f(0x9d))]['File']({'filename':path[a138_0x5b9a8f(0xd2)](logDir,a138_0x5b9a8f(0xd0)),'level':a138_0x5b9a8f(0xb4)}));transports[a138_0x5b9a8f(0x9b)]['on']('error',_0x52cdfc=>{const _0x17bd86=a138_0x5b9a8f,_0x2524a4={};_0x2524a4[_0x17bd86(0xb5)]=function(_0x478443,_0x415723){return _0x478443===_0x415723;},_0x2524a4[_0x17bd86(0xca)]=_0x17bd86(0xbc),_0x2524a4['EmBoM']='EPIPE\x20error\x20occurred\x20in\x20loggerConsole:';const _0x245bed=_0x2524a4;if(_0x245bed[_0x17bd86(0xb5)](_0x52cdfc[_0x17bd86(0xbf)],_0x245bed['AQFUP'])){console[_0x17bd86(0xa4)](_0x245bed[_0x17bd86(0x9c)],_0x52cdfc[_0x17bd86(0xba)]);return;}throw _0x52cdfc;});const a138_0xa9a382={};a138_0xa9a382[a138_0x5b9a8f(0xcb)]='YYYY-MM-DD\x20HH:mm:ss';const a138_0x16e3dc={};a138_0x16e3dc[a138_0x5b9a8f(0xa3)]=!![];const winstonLoggerParams={'format':winston[a138_0x5b9a8f(0xcb)][a138_0x5b9a8f(0xe5)](winston[a138_0x5b9a8f(0xcb)][a138_0x5b9a8f(0xc2)](a138_0xa9a382),winston[a138_0x5b9a8f(0xcb)][a138_0x5b9a8f(0xd5)](a138_0x16e3dc),winston[a138_0x5b9a8f(0xcb)][a138_0x5b9a8f(0xa9)](_0x182a34=>_0x182a34['timestamp']+a138_0x5b9a8f(0xc7)+_0x182a34[a138_0x5b9a8f(0xa3)]+':\x20'+_0x182a34[a138_0x5b9a8f(0xba)])),'transports':[transports[a138_0x5b9a8f(0x9b)]]},a138_0x4c57ac={};a138_0x4c57ac[a138_0x5b9a8f(0xcb)]=a138_0x5b9a8f(0xe0);const a138_0x1876cb={};a138_0x1876cb[a138_0x5b9a8f(0xa3)]=!![];const winstonFileLoggerParams={'format':winston['format']['combine'](winston[a138_0x5b9a8f(0xcb)][a138_0x5b9a8f(0xc2)](a138_0x4c57ac),winston[a138_0x5b9a8f(0xcb)][a138_0x5b9a8f(0xd5)](a138_0x1876cb),winston['format'][a138_0x5b9a8f(0xa9)](_0x5ddf26=>_0x5ddf26[a138_0x5b9a8f(0xa3)]+':\x20'+_0x5ddf26[a138_0x5b9a8f(0xba)])),'transports':[]},a138_0x1d74b0={};a138_0x1d74b0[a138_0x5b9a8f(0xcb)]=a138_0x5b9a8f(0xe0);const a138_0x3b4989={};a138_0x3b4989[a138_0x5b9a8f(0xa3)]=!![];const a138_0x7344f2={};a138_0x7344f2[a138_0x5b9a8f(0xa3)]=a138_0x5b9a8f(0xb4);const BuildLoggerParams={'format':winston[a138_0x5b9a8f(0xcb)][a138_0x5b9a8f(0xe5)](winston[a138_0x5b9a8f(0xcb)][a138_0x5b9a8f(0xc2)](a138_0x1d74b0),winston[a138_0x5b9a8f(0xcb)]['colorize'](a138_0x3b4989),winston[a138_0x5b9a8f(0xcb)][a138_0x5b9a8f(0xa9)](_0x3d270a=>_0x3d270a[a138_0x5b9a8f(0xc2)]+a138_0x5b9a8f(0xc7)+_0x3d270a[a138_0x5b9a8f(0xa3)]+':\x20'+_0x3d270a[a138_0x5b9a8f(0xba)])),'transports':[transports['buildLinkTransport'],new winston[(a138_0x5b9a8f(0x9d))][(a138_0x5b9a8f(0xea))](a138_0x7344f2)]},a138_0x464290={};a138_0x464290[a138_0x5b9a8f(0xe2)]=()=>{},a138_0x464290[a138_0x5b9a8f(0xae)]=()=>{},a138_0x464290['warn']=()=>{},a138_0x464290[a138_0x5b9a8f(0xb3)]=()=>{},a138_0x464290[a138_0x5b9a8f(0xe3)]=()=>{},a138_0x464290[a138_0x5b9a8f(0xb4)]=()=>{},exports['automationLogger']=process['env'][a138_0x5b9a8f(0xad)]==='true'?winston[a138_0x5b9a8f(0xab)]({'format':winston[a138_0x5b9a8f(0xcb)][a138_0x5b9a8f(0xe5)](winston[a138_0x5b9a8f(0xcb)][a138_0x5b9a8f(0xcd)](),winston['format']['timestamp'](),logFormat(),winston['format']['printf'](_0xb46b0d=>_0xb46b0d[a138_0x5b9a8f(0xa3)]+':\x20'+_0xb46b0d['message'])),'transports':[automationTransports[a138_0x5b9a8f(0x9e)]]}):a138_0x464290;const initialize=()=>{const _0x512faf=a138_0x5b9a8f,_0x54d949={};_0x54d949[_0x512faf(0xdf)]=_0x512faf(0xb4);const _0x614168=_0x54d949,_0x539ed5=transports['loggerConsole'][_0x512faf(0xa3)]||initialLogLevel;transports['loggerFile']&&(exports['winstonLogger']['remove'](transports['loggerFile']),exports['fileLogger'][_0x512faf(0x98)](transports[_0x512faf(0xc5)])),transports[_0x512faf(0xe9)]&&(exports[_0x512faf(0xcf)][_0x512faf(0x98)](transports[_0x512faf(0xe9)]),exports[_0x512faf(0xdd)]['remove'](transports[_0x512faf(0xe9)])),transports['loggerFile']=new winston[(_0x512faf(0x9d))]['File']({'filename':path[_0x512faf(0xd2)](exports['logDir'],LOG_FILE_NAME),'level':_0x539ed5}),transports[_0x512faf(0xe9)]=new winston[(_0x512faf(0x9d))][(_0x512faf(0xb9))]({'filename':path[_0x512faf(0xd2)](exports[_0x512faf(0x99)],DEBUG_LOG_FILE_NAME),'level':_0x614168[_0x512faf(0xdf)]}),transports[_0x512faf(0x9f)]=new winston[(_0x512faf(0x9d))][(_0x512faf(0xb9))]({'filename':path['join'](exports[_0x512faf(0x99)],DEBUG_CLI_LOG_FILE_NAME),'level':_0x614168[_0x512faf(0xdf)]}),exports[_0x512faf(0xcf)]['add'](transports['loggerFile']),exports[_0x512faf(0xcf)][_0x512faf(0xec)](transports[_0x512faf(0xe9)]),exports[_0x512faf(0xdd)][_0x512faf(0xec)](transports[_0x512faf(0xc5)]),exports[_0x512faf(0xdd)]['add'](transports['debugLoggerFile']);};function a138_0x1d45(){const _0x270b23=['winston','colorize','xWPRe','true','/usage.log','Ocuec','env','215705HUsZCn','console.info','fileLogger','getLogDir','dKDOe','YYYY-MM-DD\x20HH:mm:ss','1314366PhcQyH','http','debug','901184SbqBCz','combine','keys','11BFNJsC','lxxAC','debugLoggerFile','Console','[REDACTED\x20HEADERS]','add','2350670bWWZui','remove','logDir','object','loggerConsole','EmBoM','transports','automationLoggerFile','debugCliLoggerFile','userName','mkdirSync','\x5c$&','level','log','nzqRN','207204HcTWIm','XdRGy','config','printf','test','createLogger','map','BROWSERSTACK_AUTOMATION_LOGS','info','toLowerCase','rmaDJ','replace','16570PWneda','error','silly','lRvgt','5446800mZIATY','buildLogger','[REDACTED]','File','message','evSxn','EPIPE','jqRUQ','4adhTbA','code','10gulgdZ','BROWSERSTACK_INTERNAL_LOG_DIR','timestamp','existsSync','28BjXAOz','loggerFile','WcXGp','\x20-\x20','/usage-debug.log','BROWSERSTACK_LOG_LEVEL','AQFUP','format','name','uncolorize','qkvdq','winstonLogger','automation.log','filter','join','path'];a138_0x1d45=function(){return _0x270b23;};return a138_0x1d45();}exports[a138_0x5b9a8f(0xcf)]=new winston[(a138_0x5b9a8f(0xab))](winstonLoggerParams),exports[a138_0x5b9a8f(0xdd)]=new winston['createLogger'](winstonFileLoggerParams),exports[a138_0x5b9a8f(0xb7)]=new winston[(a138_0x5b9a8f(0xab))](BuildLoggerParams),exports[a138_0x5b9a8f(0x99)]=logDir,exports[a138_0x5b9a8f(0xde)]=()=>{const _0x160548=a138_0x5b9a8f;return exports[_0x160548(0x99)];},exports[a138_0x5b9a8f(0x9d)]=transports,exports['initialize']=initialize,exports['maskHeaders']=maskHeaders;logDir&&initialize();
|
package/src/helpers/metadata.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a139_0x2b5bb3=a139_0x12e1;function a139_0x12e1(_0x596b87,_0x4a6392){const _0x3c9216=a139_0x3c92();return a139_0x12e1=function(_0x12e1cb,_0xe0dcb2){_0x12e1cb=_0x12e1cb-0x67;let _0x18b4ac=_0x3c9216[_0x12e1cb];return _0x18b4ac;},a139_0x12e1(_0x596b87,_0x4a6392);}(function(_0x10290f,_0x5b72bf){const _0x89cbd2=a139_0x12e1,_0x420578=_0x10290f();while(!![]){try{const _0xac6855=parseInt(_0x89cbd2(0x7f))/0x1*(-parseInt(_0x89cbd2(0x6f))/0x2)+-parseInt(_0x89cbd2(0x85))/0x3+-parseInt(_0x89cbd2(0x82))/0x4*(parseInt(_0x89cbd2(0x73))/0x5)+parseInt(_0x89cbd2(0x67))/0x6*(-parseInt(_0x89cbd2(0x6e))/0x7)+parseInt(_0x89cbd2(0x78))/0x8*(parseInt(_0x89cbd2(0x69))/0x9)+parseInt(_0x89cbd2(0x87))/0xa*(parseInt(_0x89cbd2(0x7a))/0xb)+parseInt(_0x89cbd2(0x83))/0xc*(parseInt(_0x89cbd2(0x68))/0xd);if(_0xac6855===_0x5b72bf)break;else _0x420578['push'](_0x420578['shift']());}catch(_0x4c7ccf){_0x420578['push'](_0x420578['shift']());}}}(a139_0x3c92,0xb46b9));const globals=require('./globals'),helper=require(a139_0x2b5bb3(0x7c)),logger=require(a139_0x2b5bb3(0x6d))[a139_0x2b5bb3(0x80)];function a139_0x3c92(){const _0x2fe316=['3920829jnFNkp','set','10fLzzgQ','mzRgh','1985904iIYybI','28353TRWkly','9dNtTWC','setGlobal','testMeta','testMeta-','./logger','14cgALtr','8fSQzKy','uQTtv','getCentralUser','get','755375wxTbEm','warn','zZtqX','getGlobal','lcnc','3550544RTfJsy','QugaF','5789773GUiwDj','SchZr','./helper','The\x20metadata\x20object\x20is\x20not\x20valid.','exports','320945qwaLAA','winstonLogger','vPtrB','24XfcSZh','21612AWrNxE','testRunUUID'];a139_0x3c92=function(){return _0x2fe316;};return a139_0x3c92();}module[a139_0x2b5bb3(0x7e)]=class TestMetadata{static[a139_0x2b5bb3(0x86)](_0x33d992={}){const _0x11451c=a139_0x2b5bb3,_0x2ca801={};_0x2ca801['QugaF']=_0x11451c(0x84),_0x2ca801[_0x11451c(0x7b)]=function(_0x38b12f,_0x412cb2){return _0x38b12f===_0x412cb2;},_0x2ca801['mzRgh']='string',_0x2ca801['Pvzxr']=function(_0x20cee6,_0x589ce4){return _0x20cee6<=_0x589ce4;},_0x2ca801[_0x11451c(0x81)]=_0x11451c(0x6b),_0x2ca801[_0x11451c(0x70)]=_0x11451c(0x7d);const _0xdcc501=_0x2ca801,_0x43c3ed=globals[_0x11451c(0x76)](_0xdcc501[_0x11451c(0x79)]),_0xa18163=_0x33d992['identifier'];helper['getCentralUser']()[_0x11451c(0x77)]&&(_0xdcc501[_0x11451c(0x7b)](typeof _0xa18163,_0xdcc501[_0x11451c(0x88)])&&_0xdcc501['Pvzxr'](_0xa18163['length'],0x28)?_0x43c3ed?globals[_0x11451c(0x6a)](_0x11451c(0x6c)+_0x43c3ed,_0x33d992):globals['setGlobal'](_0xdcc501[_0x11451c(0x81)],_0x33d992):logger[_0x11451c(0x74)](_0xdcc501[_0x11451c(0x70)]));}static[a139_0x2b5bb3(0x72)](_0x47d1c9){const _0x466bcc=a139_0x2b5bb3,_0x45fd2e={};_0x45fd2e[_0x466bcc(0x75)]=_0x466bcc(0x6b);const _0x20d3a2=_0x45fd2e;if(helper[_0x466bcc(0x71)]()[_0x466bcc(0x77)])return globals[_0x466bcc(0x76)](_0x466bcc(0x6c)+_0x47d1c9)||globals['getGlobal'](_0x20d3a2[_0x466bcc(0x75)])||{};return{};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a140_0x3201e2=a140_0x3d70;function a140_0x3946(){const _0x4ed86e=['response','NODE_GENERIC','find','mgNuZ','toISOString','SOOzp','][\x20SDK-AUTOMATION\x20]\x20','dXfso','function','getTestFramework','measureWrapper','1315cHToTY','shouldWrapCommand','../bin/v2/state/automationFrameworkState','DurBr','util','capability','getNudgeLocalNotSetError','initExecute','rSCKZ','9140348uIaJYX','VlWSy','format','commandName','executeScript','kkujL','overrideExecute','testFramework','qxwDq','1831247qbwXUn','wHSIn','Error\x20in\x20local\x20nudge\x20for\x20overrideExecute:\x20',',\x20testRunId=','5287314rjbOFj','dAKKS','parameters_','iurmO','PRE','url','CQTcE','message','../bin/v2/browserstackCLI','silly','trackEvent','bstack:options','../bin/v2/state/hookState','string','[App-A11y]\x20patchHelper:\x20error\x20in\x20a11y\x20scan\x20hook:\x20','name_','14256840KzaTHt','pbFpk','body','local','ssoaw','jPkiN','nestedKeyValue','onBeforeExecute','FXLVi','debug','EXECUTE','getCurrentAccessibilityStatus','./performance/constants','request','ggEai','8545578KCiOUo','./accessibility-automation/constants','22760AyKghF','getAutomationFramework','AUTOMATION_LOG_COMMANDS','testRunId','includes','getCurrentTestUUID','getAccessibilityModule','executeAsyncScript','xoQvW','./performance/performance-tester','getInstance','2QgafYK','execute','52447653qKOGfS','driver','DKBtX','NUDGE_LOCAL_ERRORS'];a140_0x3946=function(){return _0x4ed86e;};return a140_0x3946();}function a140_0x3d70(_0x3af5e3,_0x1933b3){const _0x394626=a140_0x3946();return a140_0x3d70=function(_0x3d708d,_0x15df6b){_0x3d708d=_0x3d708d-0x84;let _0x1f9939=_0x394626[_0x3d708d];return _0x1f9939;},a140_0x3d70(_0x3af5e3,_0x1933b3);}(function(_0x1754e0,_0x38c1af){const _0x2d35a5=a140_0x3d70,_0x424f29=_0x1754e0();while(!![]){try{const _0x2931d7=parseInt(_0x2d35a5(0x95))/0x1*(parseInt(_0x2d35a5(0xc5))/0x2)+parseInt(_0x2d35a5(0x99))/0x3+-parseInt(_0x2d35a5(0xba))/0x4*(-parseInt(_0x2d35a5(0xd6))/0x5)+-parseInt(_0x2d35a5(0xb8))/0x6+parseInt(_0x2d35a5(0x8c))/0x7+parseInt(_0x2d35a5(0xa9))/0x8+-parseInt(_0x2d35a5(0xc7))/0x9;if(_0x2931d7===_0x38c1af)break;else _0x424f29['push'](_0x424f29['shift']());}catch(_0x37132e){_0x424f29['push'](_0x424f29['shift']());}}}(a140_0x3946,0xe2224));const PerformanceTester=require(a140_0x3201e2(0xc3)),{winstonLogger:logger,automationLogger}=require('./logger'),helper=require('./helper'),constants=require('../bin/utils/constants'),{DRIVER_EVENT:PerformanceDriverEvents}=require(a140_0x3201e2(0xb5)),{BSTACK_SCAN_IN_PROGRESS}=require(a140_0x3201e2(0xb9)),util=require(a140_0x3201e2(0x87));exports[a140_0x3201e2(0x92)]=(_0x475630,_0x4908b9)=>{const _0x5df9fe=a140_0x3201e2,_0x16ca57={'dXfso':'Caught\x20error\x20in\x20execute,\x20check\x20if\x20geturl\x20and\x20try\x20to\x20set\x20local\x20nudge','ggEai':function(_0x359c12,_0xb2092e){return _0x359c12===_0xb2092e;},'kkujL':'get','wHSIn':_0x5df9fe(0x9b),'pbFpk':'url','fvHvo':_0x5df9fe(0x97),'qxwDq':function(_0x1b948f,_0x2eba02){return _0x1b948f===_0x2eba02;},'KbVSN':_0x5df9fe(0xc1),'rSCKZ':function(_0x1d5813,_0x343c72){return _0x1d5813===_0x343c72;},'DKBtX':_0x5df9fe(0x90),'QdrJA':_0x5df9fe(0xa6),'SOOzp':function(_0x2975f4,_0xc70e0){return _0x2975f4(_0xc70e0);},'xoQvW':'./accessibility-automation/scripts','iurmO':function(_0x58e44a,_0x1dca02){return _0x58e44a(_0x1dca02);},'mgNuZ':_0x5df9fe(0x85),'DurBr':_0x5df9fe(0xa5),'jPkiN':_0x5df9fe(0xd3),'nkgNq':function(_0x3bd6f1,_0x1dfe37){return _0x3bd6f1(_0x1dfe37);},'VlWSy':_0x5df9fe(0xa1),'dAKKS':_0x5df9fe(0x88),'ssoaw':'browserstack.local','FXLVi':_0x5df9fe(0xa4),'CQTcE':_0x5df9fe(0xac)},_0x3ecc87=_0x475630['patchExecute']||(helper[_0x5df9fe(0xaf)](_0x4908b9,[_0x16ca57[_0x5df9fe(0x9a)],_0x16ca57[_0x5df9fe(0xad)]])||helper[_0x5df9fe(0xaf)](_0x4908b9,[_0x16ca57[_0x5df9fe(0x9a)],_0x16ca57[_0x5df9fe(0xb1)],_0x16ca57[_0x5df9fe(0x9f)]]));if(_0x3ecc87)return;_0x475630['patchExecute']=!![],_0x475630[_0x5df9fe(0x8a)]=_0x475630[_0x5df9fe(0xc6)],_0x475630[_0x5df9fe(0xc6)]=async _0x2d4d4e=>{const _0x2d3a25=_0x5df9fe;try{const _0x28176c=await _0x475630['initExecute'](_0x2d4d4e);try{if(_0x16ca57[_0x2d3a25(0x94)](_0x2d4d4e['name_'],_0x16ca57['KbVSN'])||_0x16ca57[_0x2d3a25(0x8b)](_0x2d4d4e[_0x2d3a25(0xa8)],_0x16ca57[_0x2d3a25(0xc9)])){const _0x440bd6=_0x2d4d4e['parameters_']&&_0x2d4d4e[_0x2d3a25(0x9b)]['script'],_0x20a377=_0x2d4d4e[_0x2d3a25(0x9b)]&&_0x2d4d4e[_0x2d3a25(0x9b)]['args'],_0x29eed1=_0x20a377&&util[_0x2d3a25(0x8e)]('%j',_0x20a377);if(_0x440bd6&&_0x16ca57['rSCKZ'](typeof _0x440bd6,_0x16ca57['QdrJA'])){const _0x531bb4=constants[_0x2d3a25(0xbc)][_0x2d3a25(0xcd)](_0x1dd0f0=>_0x440bd6[_0x2d3a25(0xbe)](_0x1dd0f0)||_0x29eed1&&_0x29eed1[_0x2d3a25(0xbe)](_0x1dd0f0));if(_0x531bb4){const _0x20e5cc={};_0x20e5cc['command']=_0x531bb4,_0x20e5cc['parameters']=_0x20a377;const _0x231baf={};_0x231baf[_0x2d3a25(0xab)]=_0x28176c;const _0x37a7f5={};_0x37a7f5[_0x2d3a25(0xb6)]=_0x20e5cc,_0x37a7f5[_0x2d3a25(0xcb)]=_0x231baf,automationLogger[_0x2d3a25(0xa2)]('['+new Date()[_0x2d3a25(0xcf)]()+_0x2d3a25(0xd1)+util[_0x2d3a25(0x8e)]('%j',_0x37a7f5));}}}}catch(_0x885816){logger[_0x2d3a25(0xa2)]('Error\x20while\x20logging\x20accessibility\x20automation\x20logs\x20in\x20driver.execute\x20:\x20'+_0x885816[_0x2d3a25(0xa0)]);}try{if(!_0x475630[BSTACK_SCAN_IN_PROGRESS]){const _0x4c5f25=_0x16ca57[_0x2d3a25(0xd0)](require,_0x16ca57[_0x2d3a25(0xc2)]),_0x4fb4fa=_0x16ca57[_0x2d3a25(0x9c)](require,_0x16ca57[_0x2d3a25(0xce)]),_0x374e14=_0x16ca57[_0x2d3a25(0x9c)](require,_0x16ca57[_0x2d3a25(0x86)]);if(_0x16ca57[_0x2d3a25(0xb7)](typeof _0x4c5f25[_0x2d3a25(0x84)],_0x16ca57[_0x2d3a25(0xae)])&&_0x4c5f25[_0x2d3a25(0x84)](_0x2d4d4e[_0x2d3a25(0xa8)])){const _0x811f9b=_0x16ca57['nkgNq'](require,_0x16ca57[_0x2d3a25(0x8d)]),_0x181dc7=_0x811f9b[_0x2d3a25(0xc4)](),_0x14b5f1=_0x181dc7&&_0x181dc7[_0x2d3a25(0xc0)]();if(_0x14b5f1&&_0x14b5f1['isAppAccessibility']&&_0x14b5f1[_0x2d3a25(0xb4)]()){let _0x5b5636='';try{const _0x45ac2f=_0x181dc7['getTestFramework']&&_0x181dc7[_0x2d3a25(0xd4)]();_0x5b5636=_0x45ac2f&&_0x45ac2f[_0x2d3a25(0xbf)]&&_0x45ac2f['getCurrentTestUUID']()||'';}catch(_0xa9fa4a){}logger[_0x2d3a25(0xb2)]('[App-A11y]\x20patchHelper:\x20firing\x20EXECUTE\x20PRE\x20for\x20command='+_0x2d4d4e[_0x2d3a25(0xa8)]+_0x2d3a25(0x98)+_0x5b5636);const _0x344b98=_0x181dc7[_0x2d3a25(0xbb)]();if(!_0x344b98){logger[_0x2d3a25(0xb2)]('[App-A11y]\x20patchHelper:\x20no\x20automationFramework\x20for\x20node-generic\x20—\x20calling\x20onBeforeExecute\x20directly\x20for\x20command='+_0x2d4d4e[_0x2d3a25(0xa8)]);const _0x343097={};_0x343097[_0x2d3a25(0x93)]=constants['FRAMEWORKS'][_0x2d3a25(0xcc)],_0x343097[_0x2d3a25(0x8f)]=_0x2d4d4e['name_'],_0x343097['driver']=_0x475630,_0x343097[_0x2d3a25(0xbd)]=_0x5b5636,await _0x14b5f1[_0x2d3a25(0xb0)](_0x343097);}else{const _0x4bc49d={};_0x4bc49d[_0x2d3a25(0x8f)]=_0x2d4d4e[_0x2d3a25(0xa8)],_0x4bc49d[_0x2d3a25(0xc8)]=_0x475630,_0x4bc49d['testFramework']=constants['FRAMEWORKS']['NODE_GENERIC'],_0x4bc49d[_0x2d3a25(0xbd)]=_0x5b5636,await _0x344b98[_0x2d3a25(0xa3)](_0x4fb4fa[_0x2d3a25(0xb3)],_0x374e14[_0x2d3a25(0x9d)],_0x4bc49d);}}}}}catch(_0x1c5617){logger[_0x2d3a25(0xb2)](_0x2d3a25(0xa7)+_0x1c5617[_0x2d3a25(0xa0)]);}return _0x28176c;}catch(_0x26ca35){await PerformanceTester[_0x2d3a25(0xd5)](PerformanceDriverEvents['POST_EXECUTE'],async()=>{const _0xc7040c=_0x2d3a25;logger['debug'](_0x16ca57[_0xc7040c(0xd2)]);try{_0x16ca57[_0xc7040c(0xb7)](_0x2d4d4e[_0xc7040c(0xa8)],_0x16ca57[_0xc7040c(0x91)])&&helper[_0xc7040c(0xaf)](_0x2d4d4e,[_0x16ca57[_0xc7040c(0x96)],_0x16ca57[_0xc7040c(0xaa)]])&&!!constants[_0xc7040c(0xca)][_0xc7040c(0xcd)](_0xa96951=>{const _0xb4dac4=_0xc7040c;return _0x26ca35['toString']()[_0xb4dac4(0xbe)](_0xa96951);})&&helper[_0xc7040c(0x89)](_0x2d4d4e[_0xc7040c(0x9b)][_0xc7040c(0x9e)],!![]);}catch(_0x41ad42){logger[_0xc7040c(0xb2)](_0x16ca57['fvHvo'],_0x41ad42);}},{'success':![],'failure':_0x26ca35})();throw _0x26ca35;}};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a141_0x3a0731=a141_0xe3f4;function a141_0x4b98(){const _0x323d3d=['3272479gOjoLS','8QLEwUu','148875wOFCDC','./performance/performance-tester','pafJS','O11y_EVENTS','takeScreenshot','TEST_SCREENSHOT','then','quitCount_','sRYBe','uEAOm','FUDKh','NXSSM','5BiGXxM','toISOString','end','pid','XroPD','quit','BS_TESTOPS_ALLOW_SCREENSHOTS','catch','initQuit','patchQuit','359142ICnnVr','WRkEF','overrideTakeScreenshot','RfOup','2870820KwSCmr','env','lJKmB','patchScreenshot','1267470LmmcIK','dwxiV','emit','start','990514NrUEZi','initScreenshot','TAKE_SCREENSHOT','1603912zkpLHz','VHebC','bs:addLog:'];a141_0x4b98=function(){return _0x323d3d;};return a141_0x4b98();}function a141_0xe3f4(_0x22af32,_0x412779){const _0x4b9826=a141_0x4b98();return a141_0xe3f4=function(_0xe3f474,_0x221a98){_0xe3f474=_0xe3f474-0x15a;let _0x251728=_0x4b9826[_0xe3f474];return _0x251728;},a141_0xe3f4(_0x22af32,_0x412779);}(function(_0x40be21,_0x594fd9){const _0x3a4780=a141_0xe3f4,_0x2b6626=_0x40be21();while(!![]){try{const _0x1b356f=-parseInt(_0x3a4780(0x175))/0x1+parseInt(_0x3a4780(0x16d))/0x2+parseInt(_0x3a4780(0x169))/0x3+parseInt(_0x3a4780(0x170))/0x4*(parseInt(_0x3a4780(0x181))/0x5)+-parseInt(_0x3a4780(0x161))/0x6+parseInt(_0x3a4780(0x173))/0x7*(-parseInt(_0x3a4780(0x174))/0x8)+-parseInt(_0x3a4780(0x165))/0x9;if(_0x1b356f===_0x594fd9)break;else _0x2b6626['push'](_0x2b6626['shift']());}catch(_0x1e17d4){_0x2b6626['push'](_0x2b6626['shift']());}}}(a141_0x4b98,0x4efbc));const PerformanceTester=require(a141_0x3a0731(0x176)),O11yEvents=require('./performance/constants')[a141_0x3a0731(0x178)];exports[a141_0x3a0731(0x163)]=_0x466c09=>{const _0x269dd8=a141_0x3a0731,_0x4833f8={'uEAOm':function(_0x4f716b,_0x41c416){return _0x4f716b(_0x41c416);},'VHebC':_0x269dd8(0x17a),'WRkEF':function(_0x4e6e69,_0x318720){return _0x4e6e69!==_0x318720;},'dwxiV':'true'};if(_0x4833f8[_0x269dd8(0x162)](process[_0x269dd8(0x166)][_0x269dd8(0x15d)],_0x4833f8[_0x269dd8(0x16a)]))return;if(_0x466c09['patchScreenshot'])return;_0x466c09[_0x269dd8(0x168)]=!![],_0x466c09[_0x269dd8(0x16e)]=_0x466c09[_0x269dd8(0x179)],_0x466c09[_0x269dd8(0x179)]=()=>{const _0x1326c2=_0x269dd8,_0x26ee34={'lJKmB':function(_0x20515d,_0x271de9){const _0x3337b2=a141_0xe3f4;return _0x4833f8[_0x3337b2(0x17e)](_0x20515d,_0x271de9);},'NXSSM':_0x4833f8[_0x1326c2(0x171)],'VXHdO':function(_0x40e302,_0x2151cb){return _0x4833f8['uEAOm'](_0x40e302,_0x2151cb);}};return new Promise(function(_0x32accd,_0x49899e){const _0x1c52e8=_0x1326c2,_0x442f1c={'sRYBe':_0x26ee34[_0x1c52e8(0x180)],'TFAjF':function(_0x53d187,_0x4562fd){return _0x26ee34['VXHdO'](_0x53d187,_0x4562fd);}};_0x466c09[_0x1c52e8(0x16e)]()[_0x1c52e8(0x17b)](_0x59213e=>{const _0xc4f306=_0x1c52e8;PerformanceTester[_0xc4f306(0x16c)](O11yEvents[_0xc4f306(0x16f)]),process[_0xc4f306(0x16b)](_0xc4f306(0x172)+process[_0xc4f306(0x15a)],{'timestamp':new Date()[_0xc4f306(0x182)](),'message':_0x59213e,'kind':_0x442f1c[_0xc4f306(0x17d)]}),_0x442f1c['TFAjF'](_0x32accd,_0x59213e),PerformanceTester['end'](O11yEvents[_0xc4f306(0x16f)]);})[_0x1c52e8(0x15e)](_0x297cbe=>{const _0x2837a9=_0x1c52e8;PerformanceTester[_0x2837a9(0x183)](O11yEvents[_0x2837a9(0x16f)]),_0x26ee34[_0x2837a9(0x167)](_0x49899e,_0x297cbe);});});};},exports['overrideQuit']=(_0x750de7,_0x34bd11=null)=>{const _0x55c052=a141_0x3a0731,_0x30dbc6={'FUDKh':function(_0xe99bd7){return _0xe99bd7();},'RfOup':function(_0x4745dd,_0x54dc57){return _0x4745dd>_0x54dc57;},'pafJS':function(_0x1e5d8f,_0x2c65a2){return _0x1e5d8f>_0x2c65a2;}};if(_0x750de7[_0x55c052(0x160)])return;_0x750de7[_0x55c052(0x160)]=!![],_0x750de7['initQuit']=_0x750de7[_0x55c052(0x15c)],_0x750de7[_0x55c052(0x15c)]=()=>{const _0x15d60e=_0x55c052,_0x1945e4={'XroPD':function(_0x9500f7){const _0x53cb8c=a141_0xe3f4;return _0x30dbc6[_0x53cb8c(0x17f)](_0x9500f7);}};if(_0x34bd11){_0x34bd11[_0x15d60e(0x17c)]+=0x1;if(_0x30dbc6[_0x15d60e(0x164)](_0x34bd11[_0x15d60e(0x17c)],0x1))return _0x750de7[_0x15d60e(0x15f)]();}else{_0x750de7[_0x15d60e(0x17c)]+=0x1;if(_0x30dbc6[_0x15d60e(0x177)](_0x750de7[_0x15d60e(0x17c)],0x1))return _0x750de7['initQuit']();}return new Promise(function(_0x1fae60){const _0x413f14=_0x15d60e;_0x1945e4[_0x413f14(0x15b)](_0x1fae60);});};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a142_0x100b1f=a142_0x5b2e;(function(_0x4a9f9a,_0x270056){const _0x261c08=a142_0x5b2e,_0x1ae75b=_0x4a9f9a();while(!![]){try{const _0x4dfae6=-parseInt(_0x261c08(0x140))/0x1+-parseInt(_0x261c08(0x13a))/0x2*(parseInt(_0x261c08(0x164))/0x3)+parseInt(_0x261c08(0x159))/0x4*(parseInt(_0x261c08(0x135))/0x5)+parseInt(_0x261c08(0x124))/0x6+-parseInt(_0x261c08(0x12b))/0x7*(-parseInt(_0x261c08(0x122))/0x8)+parseInt(_0x261c08(0x166))/0x9*(-parseInt(_0x261c08(0x114))/0xa)+parseInt(_0x261c08(0x167))/0xb;if(_0x4dfae6===_0x270056)break;else _0x1ae75b['push'](_0x1ae75b['shift']());}catch(_0x215b00){_0x1ae75b['push'](_0x1ae75b['shift']());}}}(a142_0xd1da,0xeabb3));const fs=require('fs'),path=require(a142_0x100b1f(0x14f)),os=require('os'),{spawn}=require('child_process'),helper=require('../helper'),logger=require(a142_0x100b1f(0x15c))[a142_0x100b1f(0x154)],{getLogDir}=require(a142_0x100b1f(0x15c)),testHubConstants=require(a142_0x100b1f(0x115)),PerformanceTester=require(a142_0x100b1f(0x130)),{PERCY_EVENTS:PerformanceEvents}=require(a142_0x100b1f(0x142)),PercyBinary=require(a142_0x100b1f(0x15b));class Percy{#logfile=path[a142_0x100b1f(0x162)](getLogDir(),a142_0x100b1f(0x149));#address=process[a142_0x100b1f(0x11c)][a142_0x100b1f(0x143)]||a142_0x100b1f(0x138);#binaryPath=null;#config=null;#proc=null;#logStream=null;#isApp=![];[a142_0x100b1f(0x137)]=![];constructor(_0x4504b6){const _0xdd4a30=a142_0x100b1f;this.#config=_0x4504b6,!!_0x4504b6[_0xdd4a30(0x157)]&&(this.#isApp=!![]);}async #getBinaryPath(){const _0x5ddbbb=a142_0x100b1f;if(!this.#binaryPath){const _0x3b97cd=new PercyBinary();PerformanceTester['start'](PerformanceEvents[_0x5ddbbb(0x165)]),this.#binaryPath=await _0x3b97cd[_0x5ddbbb(0x158)](this.#config),PerformanceTester[_0x5ddbbb(0x11f)](PerformanceEvents[_0x5ddbbb(0x165)]);}return this.#binaryPath;}async #sleep(_0x1cc4f3){return new Promise(_0x38abdc=>setTimeout(_0x38abdc,_0x1cc4f3));}async[a142_0x100b1f(0x150)](){const _0x27e2e1=a142_0x100b1f,_0x181d4d={};_0x181d4d[_0x27e2e1(0x12a)]='GET',_0x181d4d['KRmDz']='percy/healthcheck';const _0x5ccf62=_0x181d4d;try{const _0x280ccd=await helper[_0x27e2e1(0x125)](_0x5ccf62['humvP'],_0x5ccf62[_0x27e2e1(0x152)],null,null,this.#address);if(_0x280ccd)return!![];}catch(_0x4eb6c6){return![];}}async[a142_0x100b1f(0x15f)](){const _0x19a478=a142_0x100b1f,_0x5dec40={'yxfSS':_0x19a478(0x144),'KtmCS':_0x19a478(0x155),'YPWbs':function(_0x1aaf3f,_0x2194b9,_0x5e3714,_0x19c893){return _0x1aaf3f(_0x2194b9,_0x5e3714,_0x19c893);},'bFNqD':_0x19a478(0x132),'OqBnW':_0x19a478(0x146)},_0x39b84d=await this.#getBinaryPath(),_0x5f0add={};_0x5f0add[_0x19a478(0x116)]='a',this.#logStream=fs[_0x19a478(0x148)](this.#logfile,_0x5f0add);const _0x3e33fb=await this[_0x19a478(0x134)](),_0x4e7a7b=await this['createPercyConfig']();if(!_0x3e33fb)return![];const _0x464a3d=[(this.#isApp?_0x5dec40[_0x19a478(0x11e)]:_0x5dec40['KtmCS'])+_0x19a478(0x141)];_0x4e7a7b&&_0x464a3d[_0x19a478(0x14e)]('-c',_0x4e7a7b);this.#proc=_0x5dec40[_0x19a478(0x139)](spawn,_0x39b84d,_0x464a3d,{'env':Object[_0x19a478(0x153)](process[_0x19a478(0x11c)],{'PERCY_TOKEN':_0x3e33fb,'TH_BUILD_UUID':process[_0x19a478(0x11c)][testHubConstants[_0x19a478(0x11b)][_0x19a478(0x145)]]})}),this.#proc['stdout']['pipe'](this.#logStream),this.#proc['stderr'][_0x19a478(0x12d)](this.#logStream),this[_0x19a478(0x137)]=!![];var _0x1607a8=this;this.#proc['on'](_0x5dec40[_0x19a478(0x128)],function(_0x38f803){const _0x1e91c6=_0x19a478;_0x1607a8[_0x1e91c6(0x137)]=![];});do{const _0xe61608=await this['healthcheck']();if(_0xe61608)return logger[_0x19a478(0x14b)](_0x5dec40[_0x19a478(0x151)]),!![];await this.#sleep(0x3e8);}while(this[_0x19a478(0x137)]);return![];}async[a142_0x100b1f(0x13d)](){const _0x37d8ae=a142_0x100b1f,_0x4e1499={'nTvFZ':function(_0x334355,_0x3671db){return _0x334355(_0x3671db);},'XfDCu':function(_0x5a13d,_0x504660,_0x2f1220){return _0x5a13d(_0x504660,_0x2f1220);},'DKkEg':'exec:stop','paazV':_0x37d8ae(0x132)},_0x3f0ea9=await this.#getBinaryPath();return new Promise((_0x1e6b4,_0x34fed9)=>{const _0xdc16f7=_0x37d8ae,_0x21e5a1={'AnQoK':function(_0x4b6c66,_0x9ba63e){const _0x5e8e69=a142_0x5b2e;return _0x4e1499[_0x5e8e69(0x12c)](_0x4b6c66,_0x9ba63e);}},_0x5eeff5=_0x4e1499[_0xdc16f7(0x127)](spawn,_0x3f0ea9,[_0x4e1499[_0xdc16f7(0x123)]]);_0x5eeff5['on'](_0x4e1499[_0xdc16f7(0x120)],_0x33b1ed=>{const _0x6ce28f=_0xdc16f7;this[_0x6ce28f(0x137)]=![],this.#logStream&&(this.#logStream['end'](),this.#logStream=null),_0x21e5a1[_0x6ce28f(0x15e)](_0x1e6b4,_0x33b1ed);});});}['isRunning'](){const _0x3ef0bd=a142_0x100b1f;return this[_0x3ef0bd(0x137)];}async[a142_0x100b1f(0x134)](){const _0x33c8c5=a142_0x100b1f,_0x3a2203={};_0x3a2203[_0x33c8c5(0x14c)]=_0x33c8c5(0x157),_0x3a2203[_0x33c8c5(0x117)]='automate',_0x3a2203[_0x33c8c5(0x118)]=_0x33c8c5(0x13f),_0x3a2203['bOUzG']=_0x33c8c5(0x12e);const _0x246546=_0x3a2203,_0x1cae67=this.#config[_0x33c8c5(0x15d)];try{const _0x4b0fcb=this.#isApp?_0x246546[_0x33c8c5(0x14c)]:_0x246546[_0x33c8c5(0x117)],_0x43d0b3=await helper[_0x33c8c5(0x125)](_0x246546[_0x33c8c5(0x118)],_0x33c8c5(0x156)+_0x1cae67+_0x33c8c5(0x136)+_0x4b0fcb,{},this.#config),_0x1ad9dc=_0x43d0b3[_0x33c8c5(0x126)];return logger[_0x33c8c5(0x14b)](_0x246546[_0x33c8c5(0x161)]),_0x1ad9dc[_0x33c8c5(0x163)];}catch(_0x313e5e){return logger['error'](_0x33c8c5(0x11a)+_0x313e5e),null;}}async[a142_0x100b1f(0x129)](){const _0x348144=a142_0x100b1f,_0x2a5ad1={'tKsGg':function(_0x14cb37,_0x1f58bf){return _0x14cb37(_0x1f58bf);},'UmXlr':function(_0x39a0d1,_0x1f34ef){return _0x39a0d1+_0x1f34ef;},'fiQcI':_0x348144(0x14a),'caSbv':function(_0x28baa4,_0x20be75){return _0x28baa4(_0x20be75);},'MHmTz':_0x348144(0x133)};if(!this.#config['percyOptions'])return null;const _0x2a1f1b=path['join'](os[_0x348144(0x14d)](),_0x2a5ad1[_0x348144(0x13c)]),_0xd99167=this.#config[_0x348144(0x13b)];return!_0xd99167['version']&&(_0xd99167[_0x348144(0x11d)]='2'),new Promise((_0x30abc3,_0x14f552)=>{const _0x4ab4bb=_0x348144,_0x3aab7d={'YunPo':function(_0x37af8b,_0x1b370c){const _0x5a7f18=a142_0x5b2e;return _0x2a5ad1[_0x5a7f18(0x12f)](_0x37af8b,_0x1b370c);},'CAlZW':function(_0x56be82,_0x39abcc){return _0x2a5ad1['UmXlr'](_0x56be82,_0x39abcc);},'DtaEm':_0x2a5ad1[_0x4ab4bb(0x147)],'uPWep':function(_0x183ab5,_0x3a5987){return _0x2a5ad1['caSbv'](_0x183ab5,_0x3a5987);}};fs[_0x4ab4bb(0x119)](_0x2a1f1b,JSON[_0x4ab4bb(0x160)](_0xd99167),_0x24e751=>{const _0xac5bda=_0x4ab4bb;_0x24e751&&(logger[_0xac5bda(0x15a)]('Error\x20creating\x20percy\x20config:\x20'+_0x24e751),_0x3aab7d[_0xac5bda(0x131)](_0x30abc3,null)),logger[_0xac5bda(0x14b)](_0x3aab7d['CAlZW'](_0x3aab7d['DtaEm'],_0x2a1f1b)),_0x3aab7d[_0xac5bda(0x121)](_0x30abc3,_0x2a1f1b);});});}}function a142_0x5b2e(_0x1f3042,_0x17484c){const _0xd1da8c=a142_0xd1da();return a142_0x5b2e=function(_0x5b2ec0,_0x2118a2){_0x5b2ec0=_0x5b2ec0-0x114;let _0x55ca41=_0xd1da8c[_0x5b2ec0];return _0x55ca41;},a142_0x5b2e(_0x1f3042,_0x17484c);}function a142_0xd1da(){const _0x145ed8=['MHmTz','stop','exports','GET','1091203BcgXwY',':start','../../helpers/performance/constants','PERCY_SERVER_ADDRESS','app:exec','BROWSERSTACK_TESTHUB_UUID','Percy\x20healthcheck\x20successful','fiQcI','createWriteStream','percy.log','Percy\x20config\x20created\x20at\x20','debug','CQeEg','tmpdir','push','path','healthcheck','OqBnW','KRmDz','assign','winstonLogger','exec','api/app_percy/get_project_token?name=','app','getBinaryPath','52EcoNfh','error','./PercyBinary','../logger','projectName','AnQoK','start','stringify','bOUzG','join','token','229719RXNllm','DOWNLOAD','118107LEilnI','6700518DwkIvl','710qWEAkM','../../helpers/testhub/constants','flags','VFMGN','bxJTR','writeFile','Percy\x20unable\x20to\x20fetch\x20project\x20token:\x20','ENV_VAR','env','version','yxfSS','end','paazV','uPWep','776ivoCDm','DKkEg','885582CuwxtC','nodeRequest','data','XfDCu','bFNqD','createPercyConfig','humvP','42875PoVjGc','nTvFZ','pipe','Percy\x20fetch\x20token\x20success','tKsGg','../../helpers/performance/performance-tester','YunPo','close','percy.json','fetchPercyToken','687185dwMQcZ','&type=','isProcessRunning','http://localhost:5338','YPWbs','4TTYSnE','percyOptions'];a142_0xd1da=function(){return _0x145ed8;};return a142_0xd1da();}module[a142_0x100b1f(0x13e)]=Percy;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a143_0x88da(){const _0xf9c12a=['ytMYB','url','yqXLY','platform','bYnUP','31134ZQGNqk','uSCYv','vxmaD','open','X_OK','close','PyPPd','28ZBECmC','env','lazyEntries','Saved\x20new\x20ETag\x20for\x20percy\x20binary','nMnzt','length','DEhDm','jNwWX','FaXaZ','destroy','MMRdN','percy.exe','linux','FQYEu','Error\x20trying\x20to\x20download\x20percy\x20binary','tJQsa','test','khGsL','ZpkgV','extractAndSaveBinary','Got\x20Error\x20while\x20downloading\x20percy\x20binary\x20file:\x20','agent','/percy-osx.zip','2464552tNbwvt','percy','parse','vqIzA','mkdirSync','stEXO','GiSvd','jCGCH','KbSjn','USER','follow-redirects','AEQcR','fileName','cwd','iHJRs','undefined','New\x20Percy\x20binary\x20version\x20available,\x20downloading\x20update','trim','validateBinary','USERNAME','xHreB','winstonLogger','join','warn','proxyPort','error','LNAME','Newly\x20downloaded\x20Percy\x20binary\x20is\x20corrupt,\x20retrying','needsUpdate','yhdqb','spgYj','JOeGB','.browserstack','JeBzL','rgSnp','378900mzfKsQ','ZWTsy','1819202LFMwCV','Failed\x20to\x20read\x20ETag\x20file:\x20','host','PKeXc','createWriteStream','823836sEbUjh','591732cNEXql','data','zdhJs','then','ukchH','TrTvo','--version','yauzl','JBkOA','zCWam','Percy\x20download\x20failed\x20to\x20read\x20cert\x20file:\x20','/percy-win.zip','darwin','EgJLC','GFdOI','W_OK','QGQDY','debug','sySBM','homedir','xFzsz','tBmXq','nRKnX','XPvSJ','accessSync','ketzE','tmpdir','pHAmn','Got\x20Error\x20in\x20percy\x20binary\x20downloading\x20request:\x20','lLlnH','Failed\x20to\x20check\x20for\x20binary\x20updates,\x20using\x20existing\x20binary:\x20','cHIkx','TuLiA','catch','entry','HOME','headers','UzAmW','useCaCertificate','0755','PMTGQ','DJBQh','proxyHost','get','readEntry','utf8','thrOo','IwDps','getuid','https-proxy-agent','R_OK','/percy-linux.zip','nBMos','pipe','statSync','Connection','LOGNAME','/home/','HOMEDRIVE','../logger','2041480iIgYiD','https://github.com/percy/cli/releases/latest/download','binaryPath','download','etag','HsPjz','end','oFJlN','readFileSync','Failed\x20to\x20save\x20ETag\x20file:\x20'];a143_0x88da=function(){return _0xf9c12a;};return a143_0x88da();}const a143_0x16b115=a143_0x2561;(function(_0x209d5d,_0x4f52af){const _0x562a69=a143_0x2561,_0x58b289=_0x209d5d();while(!![]){try{const _0x1217e6=-parseInt(_0x562a69(0x131))/0x1+-parseInt(_0x562a69(0xf7))/0x2*(-parseInt(_0x562a69(0xf0))/0x3)+parseInt(_0x562a69(0x138))/0x4+-parseInt(_0x562a69(0xe1))/0x5+parseInt(_0x562a69(0x139))/0x6+parseInt(_0x562a69(0x133))/0x7+parseInt(_0x562a69(0x10e))/0x8;if(_0x1217e6===_0x4f52af)break;else _0x58b289['push'](_0x58b289['shift']());}catch(_0x59ee24){_0x58b289['push'](_0x58b289['shift']());}}}(a143_0x88da,0x384e8));const {https}=require(a143_0x16b115(0x118)),url=require(a143_0x16b115(0xec)),yauzl=require(a143_0x16b115(0x140)),fs=require('fs'),path=require('path'),os=require('os'),{spawn}=require('child_process'),HttpsProxyAgent=require(a143_0x16b115(0xd6)),logger=require(a143_0x16b115(0xe0))[a143_0x16b115(0x123)];function a143_0x2561(_0x144d7e,_0x54b38c){const _0x88dacb=a143_0x88da();return a143_0x2561=function(_0x256167,_0xf7e196){_0x256167=_0x256167-0xb8;let _0x348099=_0x88dacb[_0x256167];return _0x348099;},a143_0x2561(_0x144d7e,_0x54b38c);}class PercyBinary{#hostOS=process[a143_0x16b115(0xee)];#httpPath=null;#binaryName=a143_0x16b115(0x10f);#orderedPaths=[path[a143_0x16b115(0x124)](this.#homedir(),a143_0x16b115(0x12e)),process[a143_0x16b115(0x11b)](),os[a143_0x16b115(0xbf)]()];constructor(){const _0x429e04=a143_0x16b115,_0x164739={};_0x164739['JBkOA']=_0x429e04(0xe2),_0x164739[_0x429e04(0x147)]=function(_0x16112d,_0x451c5b){return _0x16112d+_0x451c5b;},_0x164739['ketzE']=_0x429e04(0x10d),_0x164739[_0x429e04(0x13b)]=function(_0x991234,_0x13cbf1){return _0x991234+_0x13cbf1;},_0x164739[_0x429e04(0x115)]=_0x429e04(0x144),_0x164739[_0x429e04(0x13d)]=_0x429e04(0x102),_0x164739[_0x429e04(0x113)]=function(_0x42c796,_0x124900){return _0x42c796+_0x124900;},_0x164739[_0x429e04(0x108)]=_0x429e04(0xd8);const _0x33a8d8=_0x164739,_0x415947=_0x33a8d8[_0x429e04(0x141)];if(this.#hostOS['match'](/darwin|mac os/i))this.#httpPath=_0x33a8d8[_0x429e04(0x147)](_0x415947,_0x33a8d8[_0x429e04(0xbe)]);else this.#hostOS['match'](/mswin|msys|mingw|cygwin|bccwin|wince|emc|win32/i)?(this.#httpPath=_0x33a8d8[_0x429e04(0x13b)](_0x415947,_0x33a8d8[_0x429e04(0x115)]),this.#binaryName=_0x33a8d8[_0x429e04(0x13d)]):this.#httpPath=_0x33a8d8[_0x429e04(0x113)](_0x415947,_0x33a8d8['khGsL']);}#getAvailableDirs(){const _0x67413b=a143_0x16b115,_0x4b1142={};_0x4b1142[_0x67413b(0xe6)]=function(_0x3b422b,_0x7403cc){return _0x3b422b<_0x7403cc;},_0x4b1142[_0x67413b(0xbb)]=_0x67413b(0x105);const _0x27b495=_0x4b1142;for(var _0x1bea25=0x0;_0x27b495[_0x67413b(0xe6)](_0x1bea25,this.#orderedPaths[_0x67413b(0xfc)]);_0x1bea25++){var _0x2693aa=this.#orderedPaths[_0x1bea25];if(this.#makePath(_0x2693aa))return _0x2693aa;}throw new Error(_0x27b495[_0x67413b(0xbb)]);}#makePath(_0x3bbe13){const _0x5a5e89=a143_0x16b115;try{return _0x3bbe13&&!this.#checkPath(_0x3bbe13)&&fs[_0x5a5e89(0x112)](_0x3bbe13),!![];}catch{return![];}}#checkPath(_0x3066fa,_0x4a4709){const _0x18694d=a143_0x16b115,_0x55749a={};_0x55749a['yhdqb']=function(_0x174b64,_0xdc84ad){return _0x174b64|_0xdc84ad;},_0x55749a['lLlnH']=function(_0x17e59d,_0x10bef9){return _0x17e59d!==_0x10bef9;},_0x55749a[_0x18694d(0xc0)]=_0x18694d(0x11d);const _0x411a4c=_0x55749a;_0x4a4709=_0x4a4709||_0x411a4c[_0x18694d(0x12b)](fs[_0x18694d(0xd7)],fs[_0x18694d(0x148)]);try{return fs['accessSync'](_0x3066fa,_0x4a4709),!![];}catch(_0x1729d9){if(_0x411a4c[_0x18694d(0xc2)](typeof fs[_0x18694d(0xbd)],_0x411a4c[_0x18694d(0xc0)]))return![];try{return fs[_0x18694d(0xdb)](_0x3066fa),!![];}catch(_0x5db12b){return![];}}}#getETagPath(_0x22bf19){return path['join'](_0x22bf19,this.#binaryName+'.etag');}#loadETag(_0xadfde8){const _0x5b3fee=a143_0x16b115,_0x2c326d={};_0x2c326d[_0x5b3fee(0x11c)]=_0x5b3fee(0xd2);const _0x138b96=_0x2c326d,_0x58dced=this.#getETagPath(_0xadfde8);if(this.#checkPath(_0x58dced))try{return fs[_0x5b3fee(0xe9)](_0x58dced,_0x138b96[_0x5b3fee(0x11c)])[_0x5b3fee(0x11f)]();}catch(_0x1966c0){logger[_0x5b3fee(0x125)](_0x5b3fee(0x134)+_0x1966c0);}return null;}#saveETag(_0x2c4993,_0x51a72d){const _0xb6b761=a143_0x16b115,_0x123394={};_0x123394[_0xb6b761(0x109)]=_0xb6b761(0xfa);const _0x4350f6=_0x123394;if(!_0x51a72d)return;try{const _0x46a43e=this.#getETagPath(_0x2c4993);fs['writeFileSync'](_0x46a43e,_0x51a72d),logger[_0xb6b761(0x14a)](_0x4350f6[_0xb6b761(0x109)]);}catch(_0xa3b06f){logger[_0xb6b761(0x125)](_0xb6b761(0xea)+_0xa3b06f);}}async #handleBinaryDownload(_0x987bc0,_0x5ac286,_0x53760b){const _0x4f9453=a143_0x16b115,_0x56301d={};_0x56301d['lWzBW']=_0x4f9453(0x129);const _0x1bd44e=_0x56301d,_0x3e360c=await this[_0x4f9453(0x120)](_0x987bc0[_0x4f9453(0xe3)]);if(!_0x3e360c){logger[_0x4f9453(0x127)](_0x1bd44e['lWzBW']);const _0x170f9b=await this[_0x4f9453(0xe4)](_0x5ac286,_0x53760b);return _0x170f9b[_0x4f9453(0xe3)];}return _0x987bc0['binaryPath'];}async['getBinaryPath'](_0x40f0db){const _0x4aa0cc=a143_0x16b115,_0x332b8={};_0x332b8['sySBM']='Percy\x20binary\x20is\x20up\x20to\x20date\x20(ETag\x20unchanged)',_0x332b8['XPvSJ']=_0x4aa0cc(0x11e);const _0x42aaf9=_0x332b8,_0x30d5a6=this.#getAvailableDirs(),_0x372524=path['join'](_0x30d5a6,this.#binaryName);if(this.#checkPath(_0x372524,fs[_0x4aa0cc(0xf4)])){const _0x1b2123=this.#loadETag(_0x30d5a6);if(_0x1b2123)try{const _0x342d34=await this[_0x4aa0cc(0xe4)](_0x40f0db,_0x30d5a6,_0x1b2123);if(!_0x342d34[_0x4aa0cc(0x12a)])return logger[_0x4aa0cc(0x14a)](_0x42aaf9[_0x4aa0cc(0x14b)]),_0x372524;return logger[_0x4aa0cc(0x14a)](_0x42aaf9[_0x4aa0cc(0xbc)]),await this.#handleBinaryDownload(_0x342d34,_0x40f0db,_0x30d5a6);}catch(_0x570bb3){return logger[_0x4aa0cc(0x125)](_0x4aa0cc(0xc3)+_0x570bb3),_0x372524;}}const _0x35a90f=await this['download'](_0x40f0db,_0x30d5a6);return await this.#handleBinaryDownload(_0x35a90f,_0x40f0db,_0x30d5a6);}['download'](_0x15d45f,_0x4723e6,_0x20244b=null){const _0xa1a98e=a143_0x16b115,_0x2f5cf9={'TuLiA':function(_0x2ef11b,_0x1d978c){return _0x2ef11b(_0x1d978c);},'zCWam':function(_0x205ce9,_0x23c75b){return _0x205ce9===_0x23c75b;},'DJBQh':'error','xFzsz':_0xa1a98e(0xf5),'cSqUd':function(_0x402d1d,_0x18cbbb){return _0x402d1d+_0x18cbbb;},'spgYj':'.zip'};_0x4723e6&&!this.#checkPath(_0x4723e6)&&fs[_0xa1a98e(0x112)](_0x4723e6);const _0x1035fd=this.#binaryName,_0x37f8c8=path[_0xa1a98e(0x124)](_0x4723e6,_0x2f5cf9['cSqUd'](_0x1035fd,_0x2f5cf9[_0xa1a98e(0x12c)])),_0xaf46d6=fs['createWriteStream'](_0x37f8c8),_0x589e57=url[_0xa1a98e(0x110)](this.#httpPath);if(_0x15d45f['proxyHost']&&_0x15d45f['proxyPort']){const _0x52244d={};_0x52244d[_0xa1a98e(0x135)]=_0x15d45f[_0xa1a98e(0xcf)],_0x52244d['port']=_0x15d45f[_0xa1a98e(0x126)],_0x589e57[_0xa1a98e(0x10c)]=new HttpsProxyAgent(_0x52244d);}if(_0x15d45f[_0xa1a98e(0xcb)])try{_0x589e57['ca']=fs[_0xa1a98e(0xe9)](_0x15d45f['useCaCertificate']);}catch(_0x32983f){logger[_0xa1a98e(0x127)](_0xa1a98e(0x143)+_0x32983f);}if(_0x20244b){const _0x530650={};_0x530650['If-None-Match']=_0x20244b,_0x530650[_0xa1a98e(0xdc)]=_0x2f5cf9[_0xa1a98e(0xb9)],_0x589e57[_0xa1a98e(0xc9)]=_0x530650;}else{const _0x4a084c={};_0x4a084c[_0xa1a98e(0xdc)]=_0x2f5cf9[_0xa1a98e(0xb9)],_0x589e57[_0xa1a98e(0xc9)]=_0x4a084c;}return new Promise((_0x325888,_0x55c9b6)=>{const _0x6a54f9=_0xa1a98e,_0x166a7d={'bYnUP':function(_0xb074f3,_0xa961c0){const _0x3cd3bd=a143_0x2561;return _0x2f5cf9[_0x3cd3bd(0xc5)](_0xb074f3,_0xa961c0);},'MMRdN':function(_0x593e10,_0x4dab58){const _0x158205=a143_0x2561;return _0x2f5cf9[_0x158205(0x142)](_0x593e10,_0x4dab58);},'thrOo':_0x2f5cf9[_0x6a54f9(0xce)],'QGQDY':_0x2f5cf9['xFzsz']};https[_0x6a54f9(0xd0)](_0x589e57,_0x3cf4d6=>{const _0x5981c8=_0x6a54f9,_0x39193a={'PMTGQ':function(_0x97d797,_0x457c6e){const _0x312056=a143_0x2561;return _0x166a7d[_0x312056(0xef)](_0x97d797,_0x457c6e);}};if(_0x20244b&&_0x166a7d[_0x5981c8(0x101)](_0x3cf4d6['statusCode'],0x130)){_0xaf46d6[_0x5981c8(0x100)]();const _0x39fcdc={};_0x39fcdc[_0x5981c8(0x12a)]=![],_0x166a7d[_0x5981c8(0xef)](_0x325888,_0x39fcdc);return;}const _0xab6efd=_0x3cf4d6[_0x5981c8(0xc9)][_0x5981c8(0xe5)];_0xab6efd&&this.#saveETag(_0x4723e6,_0xab6efd),_0x3cf4d6[_0x5981c8(0xda)](_0xaf46d6),_0x3cf4d6['on'](_0x166a7d[_0x5981c8(0xd3)],function(_0x1cf23a){const _0x4d4bd5=_0x5981c8;logger[_0x4d4bd5(0x127)]('Got\x20Error\x20in\x20percy\x20binary\x20download\x20response:\x20'+_0x1cf23a),_0x39193a[_0x4d4bd5(0xcd)](_0x55c9b6,_0x1cf23a);}),_0xaf46d6['on'](_0x166a7d[_0x5981c8(0xd3)],function(_0x31b4e4){const _0x594336=_0x5981c8;logger[_0x594336(0x127)](_0x594336(0x10b)+_0x31b4e4),_0x39193a[_0x594336(0xcd)](_0x55c9b6,_0x31b4e4);}),_0xaf46d6['on'](_0x166a7d[_0x5981c8(0x149)],()=>{const _0x1cb512=_0x5981c8;this[_0x1cb512(0x10a)](_0x37f8c8,_0x4723e6)[_0x1cb512(0x13c)](_0x55c9c0=>_0x325888({'needsUpdate':!![],'binaryPath':_0x55c9c0}))[_0x1cb512(0xc6)](_0x55c9b6);});})['on'](_0x2f5cf9[_0x6a54f9(0xce)],function(_0x414e1b){const _0x11bc80=_0x6a54f9;logger[_0x11bc80(0x127)](_0x11bc80(0xc1)+_0x414e1b),_0x2f5cf9[_0x11bc80(0xc5)](_0x55c9b6,_0x414e1b);});});}[a143_0x16b115(0x10a)](_0x5e73ed,_0xa7b27b){const _0x3a9c0d=a143_0x16b115,_0x1b1e78={'yqXLY':function(_0x2d216e,_0x2b6b7e){return _0x2d216e(_0x2b6b7e);},'JOeGB':_0x3a9c0d(0xe7),'PKeXc':function(_0x39bb35,_0x414d55){return _0x39bb35===_0x414d55;},'KbSjn':function(_0xea2f5d,_0x42d05f){return _0xea2f5d(_0x42d05f);},'JeBzL':_0x3a9c0d(0xc7),'AEQcR':_0x3a9c0d(0x127),'Cioco':function(_0x5490ca,_0x4f65f5){return _0x5490ca(_0x4f65f5);},'UzAmW':function(_0xd5317,_0x4b7ccf){return _0xd5317(_0x4b7ccf);},'xHreB':_0x3a9c0d(0xcc)},_0x23fb11=this.#binaryName,_0x2062f=path[_0x3a9c0d(0x124)](_0xa7b27b,_0x23fb11);return new Promise((_0x29c3a1,_0x90ce8c)=>{const _0x9772c=_0x3a9c0d,_0x388533={'duMxr':function(_0x153cf3,_0x58ed69){return _0x1b1e78['Cioco'](_0x153cf3,_0x58ed69);},'pOoIy':function(_0x276fd5,_0x20af0c){const _0x4950ec=a143_0x2561;return _0x1b1e78[_0x4950ec(0xca)](_0x276fd5,_0x20af0c);},'uSCYv':_0x1b1e78[_0x9772c(0x122)]},_0x2f753e={};_0x2f753e[_0x9772c(0xf9)]=!![],yauzl[_0x9772c(0xf3)](_0x5e73ed,_0x2f753e,function(_0x45c9cf,_0x19846b){const _0x319847=_0x9772c,_0x3bd95b={'ExGlf':function(_0x4aa474,_0x3fe11a){const _0xbaf086=a143_0x2561;return _0x1b1e78[_0xbaf086(0xed)](_0x4aa474,_0x3fe11a);},'IwDps':_0x1b1e78[_0x319847(0x12d)],'MyHcb':function(_0x47cb64,_0x2d9688){const _0x1fdecd=_0x319847;return _0x1b1e78[_0x1fdecd(0x136)](_0x47cb64,_0x2d9688);},'qVQOX':function(_0x452d4b,_0x54e10e){return _0x1b1e78['yqXLY'](_0x452d4b,_0x54e10e);}};_0x45c9cf&&_0x1b1e78[_0x319847(0x116)](_0x90ce8c,_0x45c9cf),_0x19846b[_0x319847(0xd1)](),_0x19846b['on'](_0x1b1e78[_0x319847(0x12f)],_0x1e3ad9=>{const _0x3ec833=_0x319847;if(/\/$/[_0x3ec833(0x107)](_0x1e3ad9[_0x3ec833(0x11a)]))_0x19846b[_0x3ec833(0xd1)]();else{const _0x5f2c7a=fs[_0x3ec833(0x137)](path[_0x3ec833(0x124)](_0xa7b27b,_0x1e3ad9[_0x3ec833(0x11a)]));_0x19846b['openReadStream'](_0x1e3ad9,function(_0x2fde9f,_0x1b77a2){const _0x2926bc=_0x3ec833;_0x2fde9f&&_0x3bd95b['ExGlf'](_0x90ce8c,_0x45c9cf),_0x1b77a2['on'](_0x3bd95b[_0x2926bc(0xd4)],function(){const _0x34fe18=_0x2926bc;_0x5f2c7a[_0x34fe18(0xf5)](),_0x19846b[_0x34fe18(0xd1)]();}),_0x1b77a2[_0x2926bc(0xda)](_0x5f2c7a);}),_0x3bd95b['MyHcb'](_0x1e3ad9[_0x3ec833(0x11a)],_0x23fb11)&&_0x19846b['close']();}}),_0x19846b['on'](_0x1b1e78[_0x319847(0x119)],_0x344701=>{_0x3bd95b['qVQOX'](_0x90ce8c,_0x344701);}),_0x19846b['once'](_0x1b1e78['JOeGB'],()=>{const _0x522c93=_0x319847,_0x65d0dc={'oFJlN':function(_0x39bc2d,_0x4db768){return _0x388533['duMxr'](_0x39bc2d,_0x4db768);},'cHIkx':function(_0x2f5ff6,_0x2a7c12){return _0x388533['pOoIy'](_0x2f5ff6,_0x2a7c12);}};fs['chmod'](_0x2062f,_0x388533[_0x522c93(0xf1)],function(_0x3ac627){const _0x499a15=_0x522c93;_0x3ac627&&_0x65d0dc[_0x499a15(0xe8)](_0x90ce8c,_0x3ac627),_0x65d0dc[_0x499a15(0xc4)](_0x29c3a1,_0x2062f);}),_0x19846b['close']();});});});}async[a143_0x16b115(0x120)](_0x3962c3){const _0xc96ec7=a143_0x16b115,_0x543f01={'nBMos':function(_0x420de7,_0x50f463){return _0x420de7(_0x50f463);},'ZWTsy':function(_0x5e6bbc,_0x4c02bb,_0x29060b,_0x43fdf1){return _0x5e6bbc(_0x4c02bb,_0x29060b,_0x43fdf1);},'vqIzA':_0xc96ec7(0x13f),'LXtnP':_0xc96ec7(0x13a),'rgSnp':_0xc96ec7(0xf5)},_0x18720d=/^.*@percy\/cli \d.\d+.\d+/;return new Promise((_0x39302a,_0x211a66)=>{const _0x5cdc79=_0xc96ec7,_0x2c9540={'FaXaZ':function(_0x5c0f81,_0x4d2975){const _0x105ee2=a143_0x2561;return _0x543f01[_0x105ee2(0xd9)](_0x5c0f81,_0x4d2975);}},_0x47ea4f={};_0x47ea4f['env']=process['env'];const _0x1eb256=_0x543f01[_0x5cdc79(0x132)](spawn,_0x3962c3,[_0x543f01[_0x5cdc79(0x111)]],_0x47ea4f);_0x1eb256['stdout']['on'](_0x543f01['LXtnP'],_0xdc0e6=>{const _0x1f95e4=_0x5cdc79;_0x18720d['test'](_0xdc0e6)&&_0x2c9540[_0x1f95e4(0xff)](_0x39302a,!![]);}),_0x1eb256['on'](_0x543f01[_0x5cdc79(0x130)],()=>{const _0x9bf793=_0x5cdc79;_0x2c9540[_0x9bf793(0xff)](_0x39302a,![]);});});}#homedir(){const _0xb1717b=a143_0x16b115,_0x230ea9={};_0x230ea9[_0xb1717b(0x106)]=function(_0x4cac6c,_0x1fcf20){return _0x4cac6c===_0x1fcf20;},_0x230ea9['nMnzt']='function',_0x230ea9[_0xb1717b(0xfe)]=function(_0x2687ce,_0x51847c){return _0x2687ce===_0x51847c;},_0x230ea9[_0xb1717b(0xf6)]='win32',_0x230ea9[_0xb1717b(0xfd)]=function(_0x72b037,_0x25ade6){return _0x72b037+_0x25ade6;},_0x230ea9[_0xb1717b(0xf2)]=_0xb1717b(0x145),_0x230ea9['tBmXq']='/Users/',_0x230ea9['EgJLC']=function(_0x5e5340,_0x3be52d){return _0x5e5340===_0x3be52d;},_0x230ea9[_0xb1717b(0x104)]=_0xb1717b(0x103),_0x230ea9[_0xb1717b(0x13e)]='/root',_0x230ea9[_0xb1717b(0x114)]=_0xb1717b(0xde),_0x230ea9[_0xb1717b(0xeb)]=function(_0x31a2d0,_0x4cc871){return _0x31a2d0||_0x4cc871;};const _0x5bd42e=_0x230ea9;if(_0x5bd42e[_0xb1717b(0x106)](typeof os[_0xb1717b(0xb8)],_0x5bd42e[_0xb1717b(0xfb)]))return os['homedir']();const _0x2b248d=process[_0xb1717b(0xf8)],_0x4731f3=_0x2b248d[_0xb1717b(0xc8)],_0x3d661d=_0x2b248d[_0xb1717b(0xdd)]||_0x2b248d[_0xb1717b(0x117)]||_0x2b248d[_0xb1717b(0x128)]||_0x2b248d[_0xb1717b(0x121)];if(_0x5bd42e[_0xb1717b(0xfe)](process[_0xb1717b(0xee)],_0x5bd42e[_0xb1717b(0xf6)]))return _0x2b248d['USERPROFILE']||_0x5bd42e[_0xb1717b(0xfd)](_0x2b248d[_0xb1717b(0xdf)],_0x2b248d['HOMEPATH'])||_0x4731f3||null;if(_0x5bd42e[_0xb1717b(0x106)](process[_0xb1717b(0xee)],_0x5bd42e['vxmaD']))return _0x4731f3||(_0x3d661d?_0x5bd42e[_0xb1717b(0xfd)](_0x5bd42e[_0xb1717b(0xba)],_0x3d661d):null);if(_0x5bd42e[_0xb1717b(0x146)](process[_0xb1717b(0xee)],_0x5bd42e[_0xb1717b(0x104)]))return _0x4731f3||(_0x5bd42e[_0xb1717b(0x106)](process[_0xb1717b(0xd5)](),0x0)?_0x5bd42e['TrTvo']:_0x3d661d?_0x5bd42e['DEhDm'](_0x5bd42e['GiSvd'],_0x3d661d):null);return _0x5bd42e[_0xb1717b(0xeb)](_0x4731f3,null);}}module['exports']=PercyBinary;
|
|
1
|
+
function a143_0x344e(){const _0xfafd28=['trim','/percy-win.zip','end','xjgRG','percy.exe','pipe','Failed\x20to\x20save\x20ETag\x20file:\x20','uMCmm','createWriteStream','ByLwN','gdMwi','LNAME','url','match','pzutu','HahFS','oSCCh','../logger','DLJkO','ZKmyZ','homedir','TEEYT','needsUpdate','yauzl','getBinaryPath','Connection','YxHAK','CDpBG','length','stdout','HOMEPATH','platform','ewZeK','lazyEntries','destroy','proxyPort','XrIZM','0755','poXTW','770PzvikA','data','statSync','ZYYqL','headers','Got\x20Error\x20in\x20percy\x20binary\x20download\x20response:\x20','Newly\x20downloaded\x20Percy\x20binary\x20is\x20corrupt,\x20retrying','45GNyAaP','entry','Failed\x20to\x20check\x20for\x20binary\x20updates,\x20using\x20existing\x20binary:\x20','qokFE','JFBTX','hfkCL','https-proxy-agent','catch','FByBe','close','test','/home/','proxyHost','--version','xFhld','NteLH','IntiP','3756UkItAa','/Users/','/root','ZuUQg','cwd','.etag','125470DQEHEO','hbKCM','/percy-linux.zip','.browserstack','CiOeM','get','hVqBI','VFYCR','Error\x20trying\x20to\x20download\x20percy\x20binary','useCaCertificate','4686126rYwjOW','XYqQV','env','function','njmsO','lBYEx','408417LYvrHp','USER','157970lGOcIW','520bekdYQ','Percy\x20binary\x20is\x20up\x20to\x20date\x20(ETag\x20unchanged)','1790PYbcSv','fileName','download','then','error','child_process','daJsL','QAwNw','getuid','.zip','cadTp','USERNAME','hSwWx','pEPfY','utf8','CiUkM','mkdirSync','bpVFr','waMMC','/percy-osx.zip','winstonLogger','path','wKUud','Got\x20Error\x20in\x20percy\x20binary\x20downloading\x20request:\x20','ndYBS','join','extractAndSaveBinary','host','kJJKf','etag','qQnnj','open','tmpdir','IHOqH','XERfd','readFileSync','396732PGiKri','PbzMh','53649RQlEfp','Failed\x20to\x20read\x20ETag\x20file:\x20','USERPROFILE','linux','iMhEH','Percy\x20download\x20failed\x20to\x20read\x20cert\x20file:\x20','kqwPh','pmJoE','darwin','X_OK','https://github.com/percy/cli/releases/latest/download','jLIpt','follow-redirects','clIpO','Xuyyp','CjeML','readEntry','binaryPath','pPUsr','parse','warn','W_OK','debug','HOMEDRIVE','LOGNAME'];a143_0x344e=function(){return _0xfafd28;};return a143_0x344e();}const a143_0x481c37=a143_0x439a;(function(_0xa99c0c,_0x41580f){const _0x1a9de1=a143_0x439a,_0x21819c=_0xa99c0c();while(!![]){try{const _0x12d46d=parseInt(_0x1a9de1(0x24a))/0x1+parseInt(_0x1a9de1(0x23a))/0x2*(-parseInt(_0x1a9de1(0x223))/0x3)+parseInt(_0x1a9de1(0x234))/0x4*(-parseInt(_0x1a9de1(0x24f))/0x5)+parseInt(_0x1a9de1(0x244))/0x6+-parseInt(_0x1a9de1(0x273))/0x7+-parseInt(_0x1a9de1(0x24d))/0x8*(parseInt(_0x1a9de1(0x275))/0x9)+-parseInt(_0x1a9de1(0x24c))/0xa*(-parseInt(_0x1a9de1(0x21c))/0xb);if(_0x12d46d===_0x41580f)break;else _0x21819c['push'](_0x21819c['shift']());}catch(_0x1bc6d4){_0x21819c['push'](_0x21819c['shift']());}}}(a143_0x344e,0x8c1cc));const {https}=require(a143_0x481c37(0x1e8)),url=require(a143_0x481c37(0x201)),yauzl=require(a143_0x481c37(0x20c)),fs=require('fs'),path=require(a143_0x481c37(0x264)),os=require('os'),{spawn}=require(a143_0x481c37(0x254)),HttpsProxyAgent=require(a143_0x481c37(0x229)),logger=require(a143_0x481c37(0x206))[a143_0x481c37(0x263)];function a143_0x439a(_0x5a956f,_0x182d1b){const _0x344e55=a143_0x344e();return a143_0x439a=function(_0x439aa6,_0x5d1a01){_0x439aa6=_0x439aa6-0x1e5;let _0x166be3=_0x344e55[_0x439aa6];return _0x166be3;},a143_0x439a(_0x5a956f,_0x182d1b);}class PercyBinary{#hostOS=process[a143_0x481c37(0x214)];#httpPath=null;#binaryName='percy';#orderedPaths=[path[a143_0x481c37(0x268)](this.#homedir(),a143_0x481c37(0x23d)),process[a143_0x481c37(0x238)](),os[a143_0x481c37(0x26f)]()];constructor(){const _0x26fa33=a143_0x481c37,_0x30dcac={};_0x30dcac[_0x26fa33(0x21b)]=_0x26fa33(0x1e6),_0x30dcac[_0x26fa33(0x20a)]=function(_0x38b85d,_0x5d9ccf){return _0x38b85d+_0x5d9ccf;},_0x30dcac[_0x26fa33(0x256)]=_0x26fa33(0x262),_0x30dcac['idedz']=function(_0x1be300,_0x432433){return _0x1be300+_0x432433;},_0x30dcac[_0x26fa33(0x208)]=_0x26fa33(0x1f6),_0x30dcac[_0x26fa33(0x25c)]=_0x26fa33(0x1f9),_0x30dcac[_0x26fa33(0x245)]=_0x26fa33(0x23c);const _0x773d42=_0x30dcac,_0x6be5d5=_0x773d42['poXTW'];if(this.#hostOS[_0x26fa33(0x202)](/darwin|mac os/i))this.#httpPath=_0x773d42['TEEYT'](_0x6be5d5,_0x773d42['QAwNw']);else this.#hostOS[_0x26fa33(0x202)](/mswin|msys|mingw|cygwin|bccwin|wince|emc|win32/i)?(this.#httpPath=_0x773d42['idedz'](_0x6be5d5,_0x773d42[_0x26fa33(0x208)]),this.#binaryName=_0x773d42['pEPfY']):this.#httpPath=_0x773d42[_0x26fa33(0x20a)](_0x6be5d5,_0x773d42[_0x26fa33(0x245)]);}#getAvailableDirs(){const _0x23c833=a143_0x481c37,_0x925473={};_0x925473[_0x23c833(0x249)]=function(_0x5a617d,_0x3cfc7b){return _0x5a617d<_0x3cfc7b;},_0x925473[_0x23c833(0x26b)]=_0x23c833(0x242);const _0x3e316f=_0x925473;for(var _0x422c14=0x0;_0x3e316f[_0x23c833(0x249)](_0x422c14,this.#orderedPaths[_0x23c833(0x211)]);_0x422c14++){var _0xfd3764=this.#orderedPaths[_0x422c14];if(this.#makePath(_0xfd3764))return _0xfd3764;}throw new Error(_0x3e316f[_0x23c833(0x26b)]);}#makePath(_0x3747c1){const _0x6a937e=a143_0x481c37;try{return _0x3747c1&&!this.#checkPath(_0x3747c1)&&fs[_0x6a937e(0x25f)](_0x3747c1),!![];}catch{return![];}}#checkPath(_0x49c72c,_0x1009e4){const _0x5bdbe5=a143_0x481c37,_0x3051b9={};_0x3051b9['hVqBI']=function(_0x4eb469,_0x519f1e){return _0x4eb469|_0x519f1e;},_0x3051b9['TxEIE']=function(_0x2e6458,_0x42cc55){return _0x2e6458!==_0x42cc55;},_0x3051b9[_0x5bdbe5(0x210)]='undefined';const _0xc24d67=_0x3051b9;_0x1009e4=_0x1009e4||_0xc24d67[_0x5bdbe5(0x240)](fs['R_OK'],fs[_0x5bdbe5(0x1f1)]);try{return fs['accessSync'](_0x49c72c,_0x1009e4),!![];}catch(_0x41bfa5){if(_0xc24d67['TxEIE'](typeof fs['accessSync'],_0xc24d67['CDpBG']))return![];try{return fs[_0x5bdbe5(0x21e)](_0x49c72c),!![];}catch(_0x42ce3f){return![];}}}#getETagPath(_0x70d29b){const _0x1d1541=a143_0x481c37;return path[_0x1d1541(0x268)](_0x70d29b,this.#binaryName+_0x1d1541(0x239));}#loadETag(_0x5c2408){const _0x2115b5=a143_0x481c37,_0x49edda={};_0x49edda['wWiIU']=_0x2115b5(0x25d);const _0x3f9efb=_0x49edda,_0x23b003=this.#getETagPath(_0x5c2408);if(this.#checkPath(_0x23b003))try{return fs[_0x2115b5(0x272)](_0x23b003,_0x3f9efb['wWiIU'])[_0x2115b5(0x1f5)]();}catch(_0x27648c){logger[_0x2115b5(0x1f0)](_0x2115b5(0x276)+_0x27648c);}return null;}#saveETag(_0x381ea1,_0xa8d411){const _0x291ce5=a143_0x481c37,_0x4974a4={};_0x4974a4['wKUud']='Saved\x20new\x20ETag\x20for\x20percy\x20binary';const _0x25f8f5=_0x4974a4;if(!_0xa8d411)return;try{const _0x33b49f=this.#getETagPath(_0x381ea1);fs['writeFileSync'](_0x33b49f,_0xa8d411),logger[_0x291ce5(0x1f2)](_0x25f8f5[_0x291ce5(0x265)]);}catch(_0x3af2d7){logger['warn'](_0x291ce5(0x1fb)+_0x3af2d7);}}async #handleBinaryDownload(_0x55ed83,_0x49ea1e,_0x28917c){const _0x212e62=a143_0x481c37,_0x5ef7e6={};_0x5ef7e6[_0x212e62(0x255)]=_0x212e62(0x222);const _0x4fca93=_0x5ef7e6,_0x44c438=await this['validateBinary'](_0x55ed83[_0x212e62(0x1ed)]);if(!_0x44c438){logger[_0x212e62(0x253)](_0x4fca93[_0x212e62(0x255)]);const _0x522850=await this[_0x212e62(0x251)](_0x49ea1e,_0x28917c);return _0x522850[_0x212e62(0x1ed)];}return _0x55ed83[_0x212e62(0x1ed)];}async[a143_0x481c37(0x20d)](_0x184853){const _0x29e5db=a143_0x481c37,_0x19eda4={};_0x19eda4[_0x29e5db(0x231)]=_0x29e5db(0x24e),_0x19eda4[_0x29e5db(0x228)]='New\x20Percy\x20binary\x20version\x20available,\x20downloading\x20update';const _0x4bb9d5=_0x19eda4,_0x34f3df=this.#getAvailableDirs(),_0x1f06a1=path[_0x29e5db(0x268)](_0x34f3df,this.#binaryName);if(this.#checkPath(_0x1f06a1,fs[_0x29e5db(0x1e5)])){const _0xa7ccaf=this.#loadETag(_0x34f3df);if(_0xa7ccaf)try{const _0x17da66=await this[_0x29e5db(0x251)](_0x184853,_0x34f3df,_0xa7ccaf);if(!_0x17da66[_0x29e5db(0x20b)])return logger['debug'](_0x4bb9d5[_0x29e5db(0x231)]),_0x1f06a1;return logger[_0x29e5db(0x1f2)](_0x4bb9d5['hfkCL']),await this.#handleBinaryDownload(_0x17da66,_0x184853,_0x34f3df);}catch(_0x343186){return logger[_0x29e5db(0x1f0)](_0x29e5db(0x225)+_0x343186),_0x1f06a1;}}const _0xc1b998=await this[_0x29e5db(0x251)](_0x184853,_0x34f3df);return await this.#handleBinaryDownload(_0xc1b998,_0x184853,_0x34f3df);}['download'](_0x18cfaa,_0x2e0593,_0x3be099=null){const _0x4f26be=a143_0x481c37,_0x104503={'pPUsr':function(_0xc4e63a,_0x3d8e47){return _0xc4e63a(_0x3d8e47);},'pzutu':function(_0x51a31e,_0xb1b570){return _0x51a31e===_0xb1b570;},'uMCmm':_0x4f26be(0x253),'njmsO':_0x4f26be(0x22c),'aOmqp':function(_0x44b7f1,_0x1c9e75){return _0x44b7f1(_0x1c9e75);},'NteLH':function(_0x4f00ca,_0x2ae795){return _0x4f00ca+_0x2ae795;},'HahFS':_0x4f26be(0x258)};_0x2e0593&&!this.#checkPath(_0x2e0593)&&fs['mkdirSync'](_0x2e0593);const _0x4d0a32=this.#binaryName,_0x7d9cd7=path['join'](_0x2e0593,_0x104503[_0x4f26be(0x232)](_0x4d0a32,_0x104503[_0x4f26be(0x204)])),_0x400fa9=fs[_0x4f26be(0x1fd)](_0x7d9cd7),_0x5db29d=url[_0x4f26be(0x1ef)](this.#httpPath);if(_0x18cfaa[_0x4f26be(0x22f)]&&_0x18cfaa[_0x4f26be(0x218)]){const _0x106d82={};_0x106d82[_0x4f26be(0x26a)]=_0x18cfaa['proxyHost'],_0x106d82['port']=_0x18cfaa[_0x4f26be(0x218)],_0x5db29d['agent']=new HttpsProxyAgent(_0x106d82);}if(_0x18cfaa[_0x4f26be(0x243)])try{_0x5db29d['ca']=fs[_0x4f26be(0x272)](_0x18cfaa['useCaCertificate']);}catch(_0x4439a6){logger['error'](_0x4f26be(0x27a)+_0x4439a6);}if(_0x3be099){const _0x3f0d32={};_0x3f0d32['If-None-Match']=_0x3be099,_0x3f0d32[_0x4f26be(0x20e)]=_0x104503[_0x4f26be(0x248)],_0x5db29d[_0x4f26be(0x220)]=_0x3f0d32;}else{const _0x2f557b={};_0x2f557b[_0x4f26be(0x20e)]=_0x104503['njmsO'],_0x5db29d[_0x4f26be(0x220)]=_0x2f557b;}return new Promise((_0x53b111,_0x3655a8)=>{const _0x21785c=_0x4f26be,_0x2fa762={'clIpO':function(_0x231d4c,_0x55247e){return _0x104503['aOmqp'](_0x231d4c,_0x55247e);}};https[_0x21785c(0x23f)](_0x5db29d,_0xb71f00=>{const _0x43c68f=_0x21785c,_0x94f4ed={'fkbiI':function(_0x2e4861,_0x1fdc74){const _0x2e54ef=a143_0x439a;return _0x104503[_0x2e54ef(0x1ee)](_0x2e4861,_0x1fdc74);}};if(_0x3be099&&_0x104503[_0x43c68f(0x203)](_0xb71f00['statusCode'],0x130)){_0x400fa9[_0x43c68f(0x217)]();const _0xa61278={};_0xa61278[_0x43c68f(0x20b)]=![],_0x104503[_0x43c68f(0x1ee)](_0x53b111,_0xa61278);return;}const _0x47f33e=_0xb71f00[_0x43c68f(0x220)][_0x43c68f(0x26c)];_0x47f33e&&this.#saveETag(_0x2e0593,_0x47f33e),_0xb71f00[_0x43c68f(0x1fa)](_0x400fa9),_0xb71f00['on'](_0x104503[_0x43c68f(0x1fc)],function(_0x42df46){const _0x1179e4=_0x43c68f;logger[_0x1179e4(0x253)](_0x1179e4(0x221)+_0x42df46),_0x94f4ed['fkbiI'](_0x3655a8,_0x42df46);}),_0x400fa9['on'](_0x104503['uMCmm'],function(_0x113877){const _0x59da56=_0x43c68f;logger[_0x59da56(0x253)]('Got\x20Error\x20while\x20downloading\x20percy\x20binary\x20file:\x20'+_0x113877),_0x2fa762[_0x59da56(0x1e9)](_0x3655a8,_0x113877);}),_0x400fa9['on'](_0x104503[_0x43c68f(0x248)],()=>{const _0xbc5b32=_0x43c68f;this[_0xbc5b32(0x269)](_0x7d9cd7,_0x2e0593)[_0xbc5b32(0x252)](_0x3b7295=>_0x53b111({'needsUpdate':!![],'binaryPath':_0x3b7295}))[_0xbc5b32(0x22a)](_0x3655a8);});})['on'](_0x104503[_0x21785c(0x1fc)],function(_0x1de9d0){const _0x204c0a=_0x21785c;logger[_0x204c0a(0x253)](_0x204c0a(0x266)+_0x1de9d0),_0x104503['pPUsr'](_0x3655a8,_0x1de9d0);});});}[a143_0x481c37(0x269)](_0x1ddc0f,_0x1984cc){const _0x2c193a=a143_0x481c37,_0x38e2fd={'qokFE':function(_0x5e1117,_0x640951){return _0x5e1117(_0x640951);},'LgcFK':_0x2c193a(0x21a),'XrIZM':_0x2c193a(0x1f7),'bpVFr':function(_0x530389,_0x4d1f41){return _0x530389===_0x4d1f41;},'FByBe':_0x2c193a(0x224),'pmJoE':_0x2c193a(0x253)},_0x44b5d1=this.#binaryName,_0x560625=path[_0x2c193a(0x268)](_0x1984cc,_0x44b5d1);return new Promise((_0x52f7ee,_0x2a3415)=>{const _0x23de98=_0x2c193a,_0x60cf50={'ZuUQg':function(_0x4f266e,_0x4b7379){const _0x4f913f=a143_0x439a;return _0x38e2fd[_0x4f913f(0x226)](_0x4f266e,_0x4b7379);},'xjgRG':_0x38e2fd['LgcFK'],'hSwWx':_0x38e2fd[_0x23de98(0x219)],'ZYYqL':function(_0x38d6a1,_0x239a8f){const _0x46d935=_0x23de98;return _0x38e2fd[_0x46d935(0x260)](_0x38d6a1,_0x239a8f);},'xYJgg':_0x38e2fd[_0x23de98(0x22b)],'fSGkw':_0x38e2fd[_0x23de98(0x27c)]},_0x58df96={};_0x58df96[_0x23de98(0x216)]=!![],yauzl[_0x23de98(0x26e)](_0x1ddc0f,_0x58df96,function(_0x41615a,_0x940c){const _0x39a701=_0x23de98,_0x5a4662={'IntiP':function(_0x7f3713,_0x44e0a4){const _0x32a521=a143_0x439a;return _0x60cf50[_0x32a521(0x237)](_0x7f3713,_0x44e0a4);},'waMMC':_0x60cf50[_0x39a701(0x25b)],'PbzMh':function(_0xc46101,_0xb9af66){const _0x495b6a=_0x39a701;return _0x60cf50[_0x495b6a(0x21f)](_0xc46101,_0xb9af66);}};_0x41615a&&_0x60cf50[_0x39a701(0x237)](_0x2a3415,_0x41615a),_0x940c[_0x39a701(0x1ec)](),_0x940c['on'](_0x60cf50['xYJgg'],_0x5dc547=>{const _0x358727=_0x39a701,_0x2167b4={'oSCCh':function(_0x930d55,_0x2884d5){const _0x36b4b2=a143_0x439a;return _0x5a4662[_0x36b4b2(0x233)](_0x930d55,_0x2884d5);},'ewZeK':_0x5a4662[_0x358727(0x261)]};if(/\/$/[_0x358727(0x22d)](_0x5dc547[_0x358727(0x250)]))_0x940c[_0x358727(0x1ec)]();else{const _0x248490=fs[_0x358727(0x1fd)](path[_0x358727(0x268)](_0x1984cc,_0x5dc547[_0x358727(0x250)]));_0x940c['openReadStream'](_0x5dc547,function(_0x1a1f2f,_0x72f58f){const _0x1a16c3=_0x358727;_0x1a1f2f&&_0x2167b4[_0x1a16c3(0x205)](_0x2a3415,_0x41615a),_0x72f58f['on'](_0x2167b4[_0x1a16c3(0x215)],function(){const _0x1b3584=_0x1a16c3;_0x248490[_0x1b3584(0x22c)](),_0x940c['readEntry']();}),_0x72f58f[_0x1a16c3(0x1fa)](_0x248490);}),_0x5a4662[_0x358727(0x274)](_0x5dc547[_0x358727(0x250)],_0x44b5d1)&&_0x940c[_0x358727(0x22c)]();}}),_0x940c['on'](_0x60cf50['fSGkw'],_0x2acd95=>{const _0xaadd2a=_0x39a701;_0x60cf50[_0xaadd2a(0x237)](_0x2a3415,_0x2acd95);}),_0x940c['once'](_0x60cf50[_0x39a701(0x25b)],()=>{const _0x47962d=_0x39a701,_0x227e4a={'lUPEV':function(_0x34bc06,_0x4c5663){return _0x60cf50['ZuUQg'](_0x34bc06,_0x4c5663);},'vqeSZ':function(_0x3c540d,_0x1089fa){const _0x5d14b4=a143_0x439a;return _0x60cf50[_0x5d14b4(0x237)](_0x3c540d,_0x1089fa);}};fs['chmod'](_0x560625,_0x60cf50[_0x47962d(0x1f8)],function(_0x42122f){_0x42122f&&_0x227e4a['lUPEV'](_0x2a3415,_0x42122f),_0x227e4a['vqeSZ'](_0x52f7ee,_0x560625);}),_0x940c[_0x47962d(0x22c)]();});});});}async['validateBinary'](_0x15631c){const _0x305b1f=a143_0x481c37,_0x52add4={'kqwPh':function(_0x46f42e,_0x467c0a){return _0x46f42e(_0x467c0a);},'IHOqH':function(_0x7134c3,_0x3d6f6e){return _0x7134c3(_0x3d6f6e);},'CiUkM':function(_0x241a76,_0x394b19,_0x44156b,_0x5c01cf){return _0x241a76(_0x394b19,_0x44156b,_0x5c01cf);},'hbKCM':_0x305b1f(0x230),'cadTp':_0x305b1f(0x21d),'JFBTX':_0x305b1f(0x22c)},_0xdd829d=/^.*@percy\/cli \d.\d+.\d+/;return new Promise((_0x57003a,_0x45b578)=>{const _0x2582d0=_0x305b1f,_0x37c2fe={};_0x37c2fe[_0x2582d0(0x246)]=process[_0x2582d0(0x246)];const _0x583304=_0x52add4[_0x2582d0(0x25e)](spawn,_0x15631c,[_0x52add4[_0x2582d0(0x23b)]],_0x37c2fe);_0x583304[_0x2582d0(0x212)]['on'](_0x52add4[_0x2582d0(0x259)],_0x364a78=>{const _0x8e1b3d=_0x2582d0;_0xdd829d[_0x8e1b3d(0x22d)](_0x364a78)&&_0x52add4[_0x8e1b3d(0x27b)](_0x57003a,!![]);}),_0x583304['on'](_0x52add4[_0x2582d0(0x227)],()=>{const _0x12d496=_0x2582d0;_0x52add4[_0x12d496(0x270)](_0x57003a,![]);});});}#homedir(){const _0x107ba2=a143_0x481c37,_0x3db1e0={};_0x3db1e0[_0x107ba2(0x271)]=function(_0x41f85b,_0x5fe90c){return _0x41f85b===_0x5fe90c;},_0x3db1e0['DLJkO']=_0x107ba2(0x247),_0x3db1e0[_0x107ba2(0x267)]=function(_0x1e0db3,_0x4af01e){return _0x1e0db3===_0x4af01e;},_0x3db1e0['iMhEH']='win32',_0x3db1e0[_0x107ba2(0x1eb)]=function(_0x527d73,_0x3611b7){return _0x527d73+_0x3611b7;},_0x3db1e0['tOCGq']=_0x107ba2(0x27d),_0x3db1e0[_0x107ba2(0x23e)]=function(_0xb49ec9,_0x909e94){return _0xb49ec9+_0x909e94;},_0x3db1e0['Xuyyp']=_0x107ba2(0x235),_0x3db1e0['qQnnj']=function(_0x1c8f3a,_0xfef1b4){return _0x1c8f3a===_0xfef1b4;},_0x3db1e0[_0x107ba2(0x1fe)]=_0x107ba2(0x278),_0x3db1e0['gdMwi']=function(_0x30d67e,_0x28d2df){return _0x30d67e===_0x28d2df;},_0x3db1e0[_0x107ba2(0x241)]=_0x107ba2(0x236),_0x3db1e0[_0x107ba2(0x1e7)]=_0x107ba2(0x22e),_0x3db1e0['YxHAK']=function(_0xcda604,_0x456018){return _0xcda604||_0x456018;};const _0x4698ce=_0x3db1e0;if(_0x4698ce[_0x107ba2(0x271)](typeof os[_0x107ba2(0x209)],_0x4698ce[_0x107ba2(0x207)]))return os['homedir']();const _0x4e70cd=process[_0x107ba2(0x246)],_0x3730e8=_0x4e70cd['HOME'],_0x2de61a=_0x4e70cd[_0x107ba2(0x1f4)]||_0x4e70cd[_0x107ba2(0x24b)]||_0x4e70cd[_0x107ba2(0x200)]||_0x4e70cd[_0x107ba2(0x25a)];if(_0x4698ce[_0x107ba2(0x267)](process['platform'],_0x4698ce[_0x107ba2(0x279)]))return _0x4e70cd[_0x107ba2(0x277)]||_0x4698ce['CjeML'](_0x4e70cd[_0x107ba2(0x1f3)],_0x4e70cd[_0x107ba2(0x213)])||_0x3730e8||null;if(_0x4698ce['XERfd'](process[_0x107ba2(0x214)],_0x4698ce['tOCGq']))return _0x3730e8||(_0x2de61a?_0x4698ce[_0x107ba2(0x23e)](_0x4698ce[_0x107ba2(0x1ea)],_0x2de61a):null);if(_0x4698ce[_0x107ba2(0x26d)](process[_0x107ba2(0x214)],_0x4698ce[_0x107ba2(0x1fe)]))return _0x3730e8||(_0x4698ce[_0x107ba2(0x1ff)](process[_0x107ba2(0x257)](),0x0)?_0x4698ce['VFYCR']:_0x2de61a?_0x4698ce[_0x107ba2(0x23e)](_0x4698ce[_0x107ba2(0x1e7)],_0x2de61a):null);return _0x4698ce[_0x107ba2(0x20f)](_0x3730e8,null);}}module['exports']=PercyBinary;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a144_0x3d0b17=a144_0xec88;function a144_0x3e31(){var _0x3061b9=['9124twzzOm','166585UWtWmq','169578TxyzMl','91413fyVhcq','11KBVOhI','increment','12dTOyog','get','91193AVKUTR','312LnSkCq','72ZwcpPB','12425628kEGmQp','180pZzzNq','13IcYaIY','430RbIoCl','19397126jxyZGx'];a144_0x3e31=function(){return _0x3061b9;};return a144_0x3e31();}(function(_0x250c23,_0x5bf93a){var _0x151876=a144_0xec88,_0x5bab8a=_0x250c23();while(!![]){try{var _0x3b0634=-parseInt(_0x151876(0x145))/0x1*(-parseInt(_0x151876(0x143))/0x2)+parseInt(_0x151876(0x146))/0x3*(-parseInt(_0x151876(0x14d))/0x4)+parseInt(_0x151876(0x14e))/0x5*(-parseInt(_0x151876(0x149))/0x6)+parseInt(_0x151876(0x150))/0x7*(parseInt(_0x151876(0x147))/0x8)+-parseInt(_0x151876(0x14f))/0x9*(-parseInt(_0x151876(0x14b))/0xa)+parseInt(_0x151876(0x151))/0xb*(-parseInt(_0x151876(0x148))/0xc)+parseInt(_0x151876(0x14a))/0xd*(parseInt(_0x151876(0x14c))/0xe);if(_0x3b0634===_0x5bf93a)break;else _0x5bab8a['push'](_0x5bab8a['shift']());}catch(_0x211ef8){_0x5bab8a['push'](_0x5bab8a['shift']());}}}(a144_0x3e31,0x8f9a9));function a144_0xec88(_0x516349,_0x2cc235){var _0x3e3177=a144_0x3e31();return a144_0xec88=function(_0xec884f,_0x1fbdb8){_0xec884f=_0xec884f-0x142;var _0x3a46d4=_0x3e3177[_0xec884f];return _0x3a46d4;},a144_0xec88(_0x516349,_0x2cc235);}class PercyCaptureMap{#map={};[a144_0x3d0b17(0x142)](_0x3b757b,_0x1752e1){!this.#map[_0x3b757b]&&(this.#map[_0x3b757b]={}),!this.#map[_0x3b757b][_0x1752e1]&&(this.#map[_0x3b757b][_0x1752e1]=0x0),this.#map[_0x3b757b][_0x1752e1]++;}['getName'](_0x3ed754,_0x3210b8){var _0x30d74f=a144_0x3d0b17;return _0x3ed754+'-'+_0x3210b8+'-'+this[_0x30d74f(0x144)](_0x3ed754,_0x3210b8);}['get'](_0x2a6783,_0x12e458){if(!this.#map[_0x2a6783])return 0x0;if(!this.#map[_0x2a6783][_0x12e458])return 0x0;return this.#map[_0x2a6783][_0x12e458];}}module['exports']=PercyCaptureMap;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a145_0x2bfe78=a145_0x1f5d;(function(_0x5bf901,_0x38f48b){var _0x5a3373=a145_0x1f5d,_0x1d8b3b=_0x5bf901();while(!![]){try{var _0x2090da=parseInt(_0x5a3373(0xfa))/0x1+-parseInt(_0x5a3373(0x103))/0x2*(parseInt(_0x5a3373(0x108))/0x3)+parseInt(_0x5a3373(0x105))/0x4*(parseInt(_0x5a3373(0x101))/0x5)+parseInt(_0x5a3373(0xf9))/0x6*(-parseInt(_0x5a3373(0xfc))/0x7)+parseInt(_0x5a3373(0xfe))/0x8*(parseInt(_0x5a3373(0x100))/0x9)+parseInt(_0x5a3373(0x102))/0xa*(parseInt(_0x5a3373(0x109))/0xb)+-parseInt(_0x5a3373(0xff))/0xc;if(_0x2090da===_0x38f48b)break;else _0x1d8b3b['push'](_0x1d8b3b['shift']());}catch(_0xabe75a){_0x1d8b3b['push'](_0x1d8b3b['shift']());}}}(a145_0x24b1,0xe7915));var a145_0x34337d={};function a145_0x1f5d(_0x1cba9f,_0x4d3f0c){var _0x24b114=a145_0x24b1();return a145_0x1f5d=function(_0x1f5d1d,_0x3bf114){_0x1f5d1d=_0x1f5d1d-0xf8;var _0x4650a7=_0x24b114[_0x1f5d1d];return _0x4650a7;},a145_0x1f5d(_0x1cba9f,_0x4d3f0c);}function a145_0x24b1(){var _0x527e28=['22702296sMyDLg','4832739auhHYD','2515UTpzet','124980iyBlZP','6BAnvjh','takeScreenshot','3144iGMref','element','screenshot','11031OLQQfm','1111CyaRQD','manual','1008282cwDHnk','1160904mHDRvF','click','21wQSenb','driver','8zJBHnm'];a145_0x24b1=function(){return _0x527e28;};return a145_0x24b1();}a145_0x34337d[a145_0x2bfe78(0xfd)]=[a145_0x2bfe78(0x104)],a145_0x34337d[a145_0x2bfe78(0x106)]=[a145_0x2bfe78(0xfb),'sendKeys'];var a145_0x3a7aeb={};a145_0x3a7aeb['driver']=[a145_0x2bfe78(0x104)];var a145_0x1a3f11={};a145_0x1a3f11['element']=[a145_0x2bfe78(0xfb)];var a145_0x4209d4={};a145_0x4209d4['auto']=a145_0x34337d,a145_0x4209d4[a145_0x2bfe78(0x107)]=a145_0x3a7aeb,a145_0x4209d4['click']=a145_0x1a3f11,a145_0x4209d4['testcase']={},a145_0x4209d4[a145_0x2bfe78(0xf8)]={},module['exports']=a145_0x4209d4;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a146_0x58d63e=a146_0x120b;(function(_0x1c2253,_0x14e728){const _0x2b816b=a146_0x120b,_0x3a0ad5=_0x1c2253();while(!![]){try{const _0x3db279=parseInt(_0x2b816b(0x179))/0x1+-parseInt(_0x2b816b(0x155))/0x2+parseInt(_0x2b816b(0x15a))/0x3*(-parseInt(_0x2b816b(0x15f))/0x4)+parseInt(_0x2b816b(0x16a))/0x5*(parseInt(_0x2b816b(0x162))/0x6)+-parseInt(_0x2b816b(0x158))/0x7*(-parseInt(_0x2b816b(0x16c))/0x8)+parseInt(_0x2b816b(0x156))/0x9+-parseInt(_0x2b816b(0x173))/0xa;if(_0x3db279===_0x14e728)break;else _0x3a0ad5['push'](_0x3a0ad5['shift']());}catch(_0x1673ad){_0x3a0ad5['push'](_0x3a0ad5['shift']());}}}(a146_0x392f,0x863f8));function a146_0x120b(_0xecaa9c,_0x4147ce){const _0x392f3e=a146_0x392f();return a146_0x120b=function(_0x120b3e,_0x4db626){_0x120b3e=_0x120b3e-0x155;let _0x18b8c1=_0x392f3e[_0x120b3e];return _0x18b8c1;},a146_0x120b(_0xecaa9c,_0x4147ce);}const tryRequire=function(_0x477582,_0x3393b3){const _0x1ef80b={'vWOPo':function(_0x1f7690,_0x1b3638){return _0x1f7690(_0x1b3638);}};try{return _0x1ef80b['vWOPo'](require,_0x477582);}catch{return _0x3393b3;}},percySnapshot=tryRequire(a146_0x58d63e(0x176),null),{percyScreenshot}=tryRequire(a146_0x58d63e(0x176),{}),percyAppScreenshot=require(a146_0x58d63e(0x177)),{getCurrentTestData}=require(a146_0x58d63e(0x15c)),PerformanceTester=require(a146_0x58d63e(0x171)),{PERCY_EVENTS:PerformanceEvents}=require(a146_0x58d63e(0x16f)),logger=require(a146_0x58d63e(0x167))[a146_0x58d63e(0x172)];percySnapshot&&(exports[a146_0x58d63e(0x15e)]=async function(){const _0x3c90c7=a146_0x58d63e,_0x1510b6={'GaEnP':function(_0x3892c8,_0x5b8b2c){return _0x3892c8!==_0x5b8b2c;},'tkxCl':function(_0x37d65e,_0x1bf97e){return _0x37d65e>=_0x1bf97e;},'LsdXG':function(_0x161c65){return _0x161c65();}};if(global[_0x3c90c7(0x165)]&&_0x1510b6[_0x3c90c7(0x174)](global[_0x3c90c7(0x165)],global[_0x3c90c7(0x17c)]))return;const _0x172c3e=_0x1510b6['tkxCl'](arguments[_0x3c90c7(0x160)],0x2)?arguments[0x1]:'',_0x56a6de=_0x1510b6['LsdXG'](getCurrentTestData),_0xb63d14={};return _0xb63d14[_0x3c90c7(0x170)]=_0x172c3e,_0xb63d14[_0x3c90c7(0x164)]=_0x56a6de[_0x3c90c7(0x170)]||'',_0xb63d14['thTestCaseExecutionId']=_0x56a6de['uuid']||'',_0xb63d14[_0x3c90c7(0x166)]=global[_0x3c90c7(0x165)],await PerformanceTester[_0x3c90c7(0x17a)](PerformanceEvents[_0x3c90c7(0x159)],()=>percySnapshot[_0x3c90c7(0x163)](null,arguments),_0xb63d14);});function a146_0x392f(){const _0x271564=['measure','hqFof','browserstackPercyBestPlatform','876598pqnNyd','2007657DQPzpH','gWLvs','553YcOdnk','SNAPSHOT','142818eibrin','SCREENSHOT_APP','../../helpers/testhub/utils','screenshot','snapshot','20dTnANQ','length','CZwlL','66RtstSY','apply','testCase','browserstackPlatformIndex','platformIndex','../logger','thTestCaseExecutionId','RiKIs','137740HUeFTB','error','58256BIMRrM','SCREENSHOT','VZOkI','../performance/constants','name','../performance/performance-tester','winstonLogger','986340lxbnGQ','GaEnP','Unsupported\x20driver\x20for\x20percy','@percy/selenium-webdriver','@percy/appium-app','uuid','223464ezspNe'];a146_0x392f=function(){return _0x271564;};return a146_0x392f();}percyScreenshot?exports[a146_0x58d63e(0x15d)]=async function(){const _0xc68090=a146_0x58d63e,_0x234a0d={'CZwlL':function(_0xf2a449,_0x54d1ca){return _0xf2a449>=_0x54d1ca;},'VZOkI':function(_0x1f5b40){return _0x1f5b40();}},_0x5cefdf=_0x234a0d[_0xc68090(0x161)](arguments[_0xc68090(0x160)],0x2)?arguments[0x1]:'',_0xeb97d2=_0x234a0d[_0xc68090(0x16e)](getCurrentTestData),_0x51cde5={};return _0x51cde5[_0xc68090(0x170)]=_0x5cefdf,_0x51cde5[_0xc68090(0x164)]=_0xeb97d2[_0xc68090(0x170)]||'',_0x51cde5['thTestCaseExecutionId']=_0xeb97d2[_0xc68090(0x178)]||'',_0x51cde5[_0xc68090(0x166)]=global[_0xc68090(0x165)],await PerformanceTester[_0xc68090(0x17a)](PerformanceEvents[_0xc68090(0x16d)],()=>percyScreenshot[_0xc68090(0x163)](null,arguments),_0x51cde5);}:exports[a146_0x58d63e(0x15d)]=()=>{const _0x325ca5=a146_0x58d63e,_0x4f47d5={};_0x4f47d5[_0x325ca5(0x157)]=_0x325ca5(0x175);const _0x3a55bb=_0x4f47d5;logger[_0x325ca5(0x16b)](_0x3a55bb[_0x325ca5(0x157)]);};exports['screenshotApp']=async function(){const _0x23e001=a146_0x58d63e,_0x5b5b82={'RiKIs':function(_0xc1fcf2,_0x455c47){return _0xc1fcf2>=_0x455c47;},'hqFof':function(_0x2e8358){return _0x2e8358();}},_0x37a44c=_0x5b5b82[_0x23e001(0x169)](arguments[_0x23e001(0x160)],0x2)?arguments[0x1]:'',_0x51be5c=_0x5b5b82[_0x23e001(0x17b)](getCurrentTestData),_0x51b4f1={};return _0x51b4f1[_0x23e001(0x170)]=_0x37a44c,_0x51b4f1[_0x23e001(0x164)]=_0x51be5c[_0x23e001(0x170)]||'',_0x51b4f1[_0x23e001(0x168)]=_0x51be5c['uuid']||'',_0x51b4f1[_0x23e001(0x166)]=global[_0x23e001(0x165)],await PerformanceTester['measure'](PerformanceEvents[_0x23e001(0x15b)],()=>percyAppScreenshot[_0x23e001(0x163)](null,arguments),_0x51b4f1);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a147_0x2758(_0x31c150,_0x353d02){var _0x396fa8=a147_0x396f();return a147_0x2758=function(_0x275859,_0x59e580){_0x275859=_0x275859-0x80;var _0x119ce5=_0x396fa8[_0x275859];return _0x119ce5;},a147_0x2758(_0x31c150,_0x353d02);}function a147_0x396f(){var _0x7e1476=['1698464yibhZH','2197428Mfvqat','2097744GBqkbh','14GRtBGQ','803768Cwxcsh','2498125mAjYnx','2183943DLGXDP','7167768kScBSB'];a147_0x396f=function(){return _0x7e1476;};return a147_0x396f();}(function(_0x149bf2,_0x1460b9){var _0x9c6ad6=a147_0x2758,_0x146f81=_0x149bf2();while(!![]){try{var _0x5c73f3=-parseInt(_0x9c6ad6(0x85))/0x1+-parseInt(_0x9c6ad6(0x81))/0x2+parseInt(_0x9c6ad6(0x87))/0x3+-parseInt(_0x9c6ad6(0x83))/0x4+parseInt(_0x9c6ad6(0x86))/0x5+-parseInt(_0x9c6ad6(0x82))/0x6+parseInt(_0x9c6ad6(0x84))/0x7*(parseInt(_0x9c6ad6(0x80))/0x8);if(_0x5c73f3===_0x1460b9)break;else _0x146f81['push'](_0x146f81['shift']());}catch(_0x494f84){_0x146f81['push'](_0x146f81['shift']());}}}(a147_0x396f,0x742e2),module['exports']=require('./Percy'));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a148_0x149d38=a148_0x15ad;function a148_0x15ad(_0x48208a,_0x4100d6){const _0x39fba0=a148_0x39fb();return a148_0x15ad=function(_0x15ad75,_0x31dcf7){_0x15ad75=_0x15ad75-0x1d4;let _0x3c211b=_0x39fba0[_0x15ad75];return _0x3c211b;},a148_0x15ad(_0x48208a,_0x4100d6);}function a148_0x39fb(){const _0x1e6a5f=['getName','measureWrapper','start','forEach','debug','236GfMchn','\x20for\x20percy\x20','./PercyCaptureMap','isUndefined','winstonLogger','apply','13239940qqQlVW','getDriver','jzEhp','browserstackPercyBestPlatform','driver','8013825KYqAXE','AAAdw','../performance/performance-tester','7WDZBUf','browser','45789vNhbwF','error','./PercyCaptureModes','percyCaptureMode','patch','STOP','startPercy','../performance/constants','then','stopPercy','tMKoD','10103736fUqtlb','oNfdC','50gDvYTo','4INqqIm','safari','isAppAutomateSession','GLSNm','../logger','chrome','START','IsKHb','9324hjtvhH','920574HbjffT','mWEiA','overrideXforPercy','hZpPH','screenshot','patchDriverPercy','browserstackPercyMap','deviceName','Couldn\x27t\x20capture\x20percy\x20screenshot,\x20no\x20session\x20name\x20present','prototype','GoYYs','Error\x20patching\x20','./Percy','browserstackSessionName','percyAutoCapture','Wmrkq','./PercySDK','getBestPlatformForPercySnapshot','platforms','percy','manual','Stopping\x20percy','toLowerCase','browserStackPercyOptions','element','13607DODBWV','screenshotApp','TgXkv','init','stop','edge','reduce','355087ooUYDg'];a148_0x39fb=function(){return _0x1e6a5f;};return a148_0x39fb();}(function(_0x5310b2,_0x407154){const _0x23c708=a148_0x15ad,_0x47d76c=_0x5310b2();while(!![]){try{const _0x36c85e=-parseInt(_0x23c708(0x1e8))/0x1*(-parseInt(_0x23c708(0x20c))/0x2)+parseInt(_0x23c708(0x1fe))/0x3*(parseInt(_0x23c708(0x1ee))/0x4)+-parseInt(_0x23c708(0x20b))/0x5*(parseInt(_0x23c708(0x215))/0x6)+parseInt(_0x23c708(0x1fc))/0x7*(parseInt(_0x23c708(0x209))/0x8)+-parseInt(_0x23c708(0x1f9))/0x9+parseInt(_0x23c708(0x1f4))/0xa+parseInt(_0x23c708(0x1e1))/0xb*(-parseInt(_0x23c708(0x214))/0xc);if(_0x36c85e===_0x407154)break;else _0x47d76c['push'](_0x47d76c['shift']());}catch(_0x7eb9bb){_0x47d76c['push'](_0x47d76c['shift']());}}}(a148_0x39fb,0xc630c));const Percy=require(a148_0x149d38(0x1d4)),PercySDK=require(a148_0x149d38(0x1d8)),PercyCaptureModes=require(a148_0x149d38(0x200)),PercyCaptureMap=require(a148_0x149d38(0x1f0)),logger=require(a148_0x149d38(0x210))[a148_0x149d38(0x1f2)],helper=require('../helper'),PerformanceTester=require(a148_0x149d38(0x1fb)),{PERCY_EVENTS:PerformanceEvents}=require(a148_0x149d38(0x205));exports[a148_0x149d38(0x204)]=PerformanceTester[a148_0x149d38(0x1ea)](PerformanceEvents[a148_0x149d38(0x212)],async _0x5b3cc1=>{const _0x4a4674=a148_0x149d38,_0x15bbed={};_0x15bbed[_0x4a4674(0x21f)]='Starting\x20percy';const _0x4089e8=_0x15bbed;logger[_0x4a4674(0x1ed)](_0x4089e8['GoYYs']);const _0x39420a=new Percy(_0x5b3cc1),_0x1c6ddc=await _0x39420a[_0x4a4674(0x1eb)]();if(_0x1c6ddc)return _0x39420a;return null;}),exports[a148_0x149d38(0x207)]=PerformanceTester['measureWrapper'](PerformanceEvents[a148_0x149d38(0x203)],async _0x2b0942=>{const _0x329e7e=a148_0x149d38,_0x439f7c={};_0x439f7c[_0x329e7e(0x208)]=_0x329e7e(0x1dd);const _0x3ae0f3=_0x439f7c;return logger['debug'](_0x3ae0f3[_0x329e7e(0x208)]),_0x2b0942[_0x329e7e(0x1e5)]();}),exports[a148_0x149d38(0x1d9)]=_0x499c03=>{const _0x520576=a148_0x149d38,_0x594e31={};_0x594e31[_0x520576(0x213)]=function(_0x59c183,_0x2cbaf4){return _0x59c183<_0x2cbaf4;};const _0x4a1210=_0x594e31,_0x1c6a8c={};_0x1c6a8c[_0x520576(0x211)]=0x0,_0x1c6a8c['firefox']=0x1,_0x1c6a8c[_0x520576(0x1e6)]=0x2,_0x1c6a8c[_0x520576(0x20d)]=0x3;const _0x204934=_0x1c6a8c;return _0x499c03[_0x520576(0x1e7)]((_0x14cb76,_0x1ebae7,_0x47b110)=>{const _0x3e3807=_0x520576,_0x393a16=_0x499c03[_0x14cb76];if(_0x1ebae7[_0x3e3807(0x21c)])return _0x14cb76;if(_0x393a16[_0x3e3807(0x21c)])return _0x47b110;const _0x205b6c=_0x1ebae7['browser']?_0x1ebae7[_0x3e3807(0x1fd)]:_0x1ebae7['browserName'];if(_0x205b6c&&_0x4a1210[_0x3e3807(0x213)](_0x204934[_0x205b6c[_0x3e3807(0x1de)]()],_0x204934[_0x205b6c[_0x3e3807(0x1de)]()]))return _0x47b110;return _0x14cb76;},0x0);},exports['percyAutoCapture']=PerformanceTester[a148_0x149d38(0x1ea)](PerformanceEvents['AUTO_CAPTURE'],async(_0xda1e2,_0x5164a8,_0x4f145d)=>{const _0x4570f5=a148_0x149d38,_0x34ea36={};_0x34ea36[_0x4570f5(0x1f6)]=_0x4570f5(0x21d);const _0x4057f0=_0x34ea36,_0x238385=_0xda1e2[_0x4570f5(0x21b)];if(helper[_0x4570f5(0x1f1)](_0xda1e2[_0x4570f5(0x1d5)])){logger['debug'](_0x4057f0[_0x4570f5(0x1f6)]);return;}const _0xf1df3d=_0x238385[_0x4570f5(0x1e9)](_0xda1e2[_0x4570f5(0x1d5)],_0x5164a8);helper[_0x4570f5(0x20e)](_0x4f145d)?await PercySDK[_0x4570f5(0x1e2)](_0xda1e2,_0xf1df3d):await PercySDK[_0x4570f5(0x219)](_0xda1e2,_0xf1df3d),_0x238385['increment'](_0xda1e2[_0x4570f5(0x1d5)],_0x5164a8);}),exports[a148_0x149d38(0x21a)]=(_0x364baa,_0x5d32a6,_0x5a498c)=>{const _0x22db46=a148_0x149d38,_0x561901={};_0x561901['AAAdw']=_0x22db46(0x1df),_0x561901['Wmrkq']=_0x22db46(0x1db),_0x561901[_0x22db46(0x20a)]=function(_0x124850,_0x4ee206){return _0x124850!==_0x4ee206;},_0x561901['CRaJX']=_0x22db46(0x1dc);const _0x86b0f8=_0x561901;if(!helper['nestedKeyValue'](_0x5a498c,[_0x86b0f8[_0x22db46(0x1fa)],_0x86b0f8[_0x22db46(0x1d7)]]))return;if(_0x5a498c[_0x22db46(0x1df)][_0x22db46(0x1db)]&&_0x5a498c[_0x22db46(0x1df)][_0x22db46(0x201)]&&_0x86b0f8[_0x22db46(0x20a)](_0x5a498c[_0x22db46(0x1df)][_0x22db46(0x201)],_0x86b0f8['CRaJX'])&&!_0x364baa['browserstackPercyMap']){global['browserstackSessionName']&&(_0x364baa[_0x22db46(0x1d5)]=global['browserstackSessionName']),_0x364baa[_0x22db46(0x21b)]=new PercyCaptureMap();const _0xeee274=PercyCaptureModes[_0x5a498c[_0x22db46(0x1df)][_0x22db46(0x201)]];_0xeee274[_0x22db46(0x1f8)]&&_0xeee274[_0x22db46(0x1f8)]['forEach'](_0x2dab68=>this[_0x22db46(0x217)](_0x364baa,_0x2dab68,_0x5a498c)),_0xeee274['element']&&_0xeee274[_0x22db46(0x1e0)][_0x22db46(0x1ec)](_0x4674e7=>{const _0xbf88b7=_0x22db46;if(_0x5d32a6[_0xbf88b7(0x21e)][_0xbf88b7(0x202)+_0x4674e7])return;_0x5d32a6['prototype'][_0xbf88b7(0x202)+_0x4674e7]=!![];const _0x3fe1d1=_0x5d32a6[_0xbf88b7(0x21e)][_0x4674e7];_0x5d32a6[_0xbf88b7(0x21e)][_0x4674e7]=async function(){const _0x22f9e8=_0xbf88b7;let _0x3559e4=_0x3fe1d1[_0x22f9e8(0x1f3)](this,arguments);_0x3559e4&&_0x3559e4[_0x22f9e8(0x206)]&&(_0x3559e4=await _0x3559e4);try{const _0x583f6c=this[_0x22f9e8(0x1f5)]();await exports['percyAutoCapture'](_0x583f6c,_0x4674e7,_0x5a498c);}catch(_0x55a059){logger[_0x22f9e8(0x1ff)](_0x22f9e8(0x220)+_0x4674e7+'\x20for\x20percy\x20'+_0x55a059);}return _0x3559e4;};});}},exports[a148_0x149d38(0x217)]=function(_0x4caf65,_0x4e06d0,_0xb85935){const _0x145e9f=a148_0x149d38,_0x5e7290={};_0x5e7290[_0x145e9f(0x218)]=function(_0x523071,_0x399a25){return _0x523071+_0x399a25;},_0x5e7290[_0x145e9f(0x216)]=_0x145e9f(0x202),_0x5e7290['TgXkv']=_0x145e9f(0x1e4);const _0x274c4e=_0x5e7290,_0x5109b7=_0x274c4e[_0x145e9f(0x218)](_0x274c4e[_0x145e9f(0x216)],_0x4e06d0),_0x10da3d=_0x274c4e['hZpPH'](_0x274c4e[_0x145e9f(0x1e3)],_0x4e06d0),_0xa6c50c=this;if(_0x4caf65[_0x5109b7]||!_0x4caf65[_0x4e06d0])return;_0x4caf65[_0x5109b7]=!![],_0x4caf65[_0x10da3d]=_0x4caf65[_0x4e06d0],_0x4caf65[_0x4e06d0]=async()=>{const _0x4b2cf4=_0x145e9f;try{await _0xa6c50c[_0x4b2cf4(0x1d6)](_0x4caf65,_0x4e06d0,_0xb85935);}catch(_0x1f4229){logger[_0x4b2cf4(0x1ff)](_0x4b2cf4(0x220)+_0x4e06d0+_0x4b2cf4(0x1ef)+_0x1f4229);}return await _0x4caf65[_0x10da3d]['apply'](_0x4caf65,arguments);};},exports['getPercyOptions']=_0x40c0ae=>{const _0x26cc1e=a148_0x149d38,_0x1d462d={};_0x1d462d[_0x26cc1e(0x20f)]='auto';const _0x56e45e=_0x1d462d,_0x531f09={};_0x531f09['percy']=_0x40c0ae[_0x26cc1e(0x1db)],_0x531f09['percyCaptureMode']=_0x40c0ae['percyCaptureMode']||_0x56e45e[_0x26cc1e(0x20f)];const _0x52e067=_0x531f09;_0x40c0ae[_0x26cc1e(0x1db)]&&(_0x52e067[_0x26cc1e(0x1f7)]=exports['getBestPlatformForPercySnapshot'](_0x40c0ae[_0x26cc1e(0x1da)]));;return _0x52e067;};
|