browserstack-node-sdk 1.65.4 → 1.65.6
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
|
-
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();
|
|
1
|
+
const a138_0xc4352d=a138_0x250f;(function(_0x5ebed6,_0x47beb5){const _0x2aeb02=a138_0x250f,_0x130ddc=_0x5ebed6();while(!![]){try{const _0x2c57e3=-parseInt(_0x2aeb02(0x1f5))/0x1+-parseInt(_0x2aeb02(0x1da))/0x2+parseInt(_0x2aeb02(0x1bf))/0x3*(parseInt(_0x2aeb02(0x1a4))/0x4)+parseInt(_0x2aeb02(0x1b2))/0x5+-parseInt(_0x2aeb02(0x1e4))/0x6+parseInt(_0x2aeb02(0x1bd))/0x7+parseInt(_0x2aeb02(0x1f0))/0x8*(parseInt(_0x2aeb02(0x1d8))/0x9);if(_0x2c57e3===_0x47beb5)break;else _0x130ddc['push'](_0x130ddc['shift']());}catch(_0x77391f){_0x130ddc['push'](_0x130ddc['shift']());}}}(a138_0x53d8,0xe08cc));const winston=require(a138_0xc4352d(0x1c2)),path=require(a138_0xc4352d(0x1a3)),fs=require('fs'),{LOG_FILE_NAME,DEBUG_LOG_FILE_NAME,DEBUG_CLI_LOG_FILE_NAME}=require(a138_0xc4352d(0x1fc)),tempLogDir='log';let redactRegex=null,lastConfigHash='';const logFormat=winston['format'](_0x27339d=>{const _0x2b5dd5=a138_0xc4352d,_0x1544e8={};_0x1544e8[_0x2b5dd5(0x1be)]=function(_0x1a3459,_0xb2726e){return _0x1a3459!==_0xb2726e;},_0x1544e8[_0x2b5dd5(0x1a5)]=_0x2b5dd5(0x1c4),_0x1544e8[_0x2b5dd5(0x1ec)]=function(_0x3ee359,_0x294ff4){return _0x3ee359+_0x294ff4;},_0x1544e8[_0x2b5dd5(0x1d1)]=function(_0x2be40a,_0x39ee27){return _0x2be40a+_0x39ee27;},_0x1544e8[_0x2b5dd5(0x1f7)]=function(_0x4abc0a,_0x5339ea){return _0x4abc0a>_0x5339ea;},_0x1544e8[_0x2b5dd5(0x1cb)]='[REDACTED]';const _0x4e5006=_0x1544e8;_0x4e5006[_0x2b5dd5(0x1be)](typeof _0x27339d[_0x2b5dd5(0x1c5)],_0x4e5006['aWERF'])&&(_0x27339d[_0x2b5dd5(0x1c5)]=JSON[_0x2b5dd5(0x1ee)](_0x27339d[_0x2b5dd5(0x1c5)]));const _0x275ba8=global[_0x2b5dd5(0x1ef)]&&global['config'][_0x2b5dd5(0x1b7)]||'',_0x26fa1c=global[_0x2b5dd5(0x1ef)]&&global[_0x2b5dd5(0x1ef)][_0x2b5dd5(0x1eb)]||'',_0x5f012d=_0x4e5006[_0x2b5dd5(0x1ec)](_0x4e5006[_0x2b5dd5(0x1d1)](_0x275ba8,'|'),_0x26fa1c);if(_0x4e5006[_0x2b5dd5(0x1be)](_0x5f012d,lastConfigHash)){lastConfigHash=_0x5f012d;const _0x3f11d5=[_0x275ba8,_0x26fa1c][_0x2b5dd5(0x1b3)](Boolean);if(_0x4e5006[_0x2b5dd5(0x1f7)](_0x3f11d5[_0x2b5dd5(0x1dc)],0x0)){const _0x174546=_0x3f11d5[_0x2b5dd5(0x1b6)](_0x27b24c=>_0x27b24c[_0x2b5dd5(0x1cc)](/[.*+?^${}()|[\]\\]/g,_0x2b5dd5(0x1fa)))[_0x2b5dd5(0x1d0)]('|');redactRegex=new RegExp(_0x174546,'g');}else redactRegex=null;}return redactRegex&&(_0x27339d['message']=_0x27339d[_0x2b5dd5(0x1c5)][_0x2b5dd5(0x1cc)](redactRegex,_0x4e5006['NLYOw'])),_0x27339d;}),SENSITIVE_HEADER_REGEX=/authorization|token|cookie|secret|^x-api-key$|accesskey|password/i,maskHeaders=_0x3c6e52=>{const _0x9beb38=a138_0xc4352d,_0xa00b35={};_0xa00b35[_0x9beb38(0x1b9)]=function(_0x2fc5e0,_0x4a0ca5){return _0x2fc5e0!==_0x4a0ca5;},_0xa00b35[_0x9beb38(0x1de)]=_0x9beb38(0x1d7),_0xa00b35[_0x9beb38(0x1cf)]=_0x9beb38(0x1f8),_0xa00b35[_0x9beb38(0x1b4)]='[REDACTED\x20HEADERS]';const _0x2de472=_0xa00b35;try{if(!_0x3c6e52||_0x2de472[_0x9beb38(0x1b9)](typeof _0x3c6e52,_0x2de472[_0x9beb38(0x1de)]))return _0x3c6e52;const _0x2b5e19={};for(const _0x213d4c of Object[_0x9beb38(0x1ed)](_0x3c6e52)){_0x2b5e19[_0x213d4c]=SENSITIVE_HEADER_REGEX[_0x9beb38(0x1f3)](_0x213d4c)?_0x2de472[_0x9beb38(0x1cf)]:_0x3c6e52[_0x213d4c];}return _0x2b5e19;}catch{return _0x2de472[_0x9beb38(0x1b4)];}},fetchLogDir=()=>{const _0x3b4d3c=a138_0xc4352d;if(process[_0x3b4d3c(0x1d9)][_0x3b4d3c(0x1fb)])return process[_0x3b4d3c(0x1d9)]['BROWSERSTACK_INTERNAL_LOG_DIR'];else!fs[_0x3b4d3c(0x1a7)](tempLogDir)&&fs[_0x3b4d3c(0x1ba)](tempLogDir);return tempLogDir;},logDir=fetchLogDir(),getInitialLogLevel=()=>{const _0xcd2323=a138_0xc4352d,_0x2f81d1={};_0x2f81d1[_0xcd2323(0x1ad)]=_0xcd2323(0x1bb);const _0x335a9c=_0x2f81d1,_0x1f896d=process['env']['BROWSERSTACK_LOG_LEVEL'],_0x2586de=Object['keys'](winston['config'][_0xcd2323(0x1e3)][_0xcd2323(0x1bc)]);if(_0x1f896d&&_0x2586de[_0xcd2323(0x1ae)](_0x1f896d[_0xcd2323(0x1c8)]()))return _0x1f896d[_0xcd2323(0x1c8)]();return _0x335a9c[_0xcd2323(0x1ad)];},initialLogLevel=getInitialLogLevel(),a138_0x25e39f={};a138_0x25e39f[a138_0xc4352d(0x1d3)]=a138_0xc4352d(0x1ac),a138_0x25e39f[a138_0xc4352d(0x1db)]=initialLogLevel;const transports={'loggerConsole':new winston[(a138_0xc4352d(0x1c6))][(a138_0xc4352d(0x1e7))](a138_0x25e39f),'loggerFile':new winston[(a138_0xc4352d(0x1c6))][(a138_0xc4352d(0x1a1))]({'filename':path['join'](logDir,a138_0xc4352d(0x1ea)),'level':initialLogLevel}),'debugLoggerFile':new winston['transports'][(a138_0xc4352d(0x1a1))]({'filename':path[a138_0xc4352d(0x1d0)](logDir,'/usage-debug.log'),'level':'silly'}),'debugCliLoggerFile':new winston['transports'][(a138_0xc4352d(0x1a1))]({'filename':path[a138_0xc4352d(0x1d0)](logDir,DEBUG_CLI_LOG_FILE_NAME),'level':'silly'}),'buildLinkTransport':new winston[(a138_0xc4352d(0x1c6))][(a138_0xc4352d(0x1a1))]({'filename':path['join'](logDir,a138_0xc4352d(0x1ea)),'level':'silly'})},automationTransports={};process[a138_0xc4352d(0x1d9)][a138_0xc4352d(0x1b8)]===a138_0xc4352d(0x1f1)&&(automationTransports[a138_0xc4352d(0x1e2)]=new winston[(a138_0xc4352d(0x1c6))]['File']({'filename':path[a138_0xc4352d(0x1d0)](logDir,'automation.log'),'level':a138_0xc4352d(0x1b1)}));transports[a138_0xc4352d(0x1b0)]['on'](a138_0xc4352d(0x19f),_0x4f6da8=>{const _0xa5d275=a138_0xc4352d,_0x53271a={};_0x53271a['gxqRj']=function(_0x5d4fad,_0xf018e6){return _0x5d4fad===_0xf018e6;},_0x53271a[_0xa5d275(0x1c7)]=_0xa5d275(0x1d2),_0x53271a['pkVHp']=_0xa5d275(0x1e6);const _0x1921ca=_0x53271a;if(_0x1921ca[_0xa5d275(0x1cd)](_0x4f6da8[_0xa5d275(0x1a8)],_0x1921ca[_0xa5d275(0x1c7)])){console['log'](_0x1921ca[_0xa5d275(0x1c1)],_0x4f6da8['message']);return;}throw _0x4f6da8;});const a138_0x42ded6={};a138_0x42ded6['format']=a138_0xc4352d(0x1a6);const a138_0x5aef4b={};a138_0x5aef4b[a138_0xc4352d(0x1db)]=!![];const winstonLoggerParams={'format':winston[a138_0xc4352d(0x1b5)][a138_0xc4352d(0x1dd)](winston[a138_0xc4352d(0x1b5)][a138_0xc4352d(0x1a9)](a138_0x42ded6),winston[a138_0xc4352d(0x1b5)][a138_0xc4352d(0x1c3)](a138_0x5aef4b),winston[a138_0xc4352d(0x1b5)][a138_0xc4352d(0x1d5)](_0x4f7d4b=>_0x4f7d4b[a138_0xc4352d(0x1a9)]+a138_0xc4352d(0x1ca)+_0x4f7d4b['level']+':\x20'+_0x4f7d4b[a138_0xc4352d(0x1c5)])),'transports':[transports[a138_0xc4352d(0x1b0)]]},a138_0x5a12f9={};a138_0x5a12f9[a138_0xc4352d(0x1b5)]=a138_0xc4352d(0x1a6);const a138_0x33b7af={};a138_0x33b7af[a138_0xc4352d(0x1db)]=!![];const winstonFileLoggerParams={'format':winston[a138_0xc4352d(0x1b5)][a138_0xc4352d(0x1dd)](winston['format'][a138_0xc4352d(0x1a9)](a138_0x5a12f9),winston[a138_0xc4352d(0x1b5)]['colorize'](a138_0x33b7af),winston[a138_0xc4352d(0x1b5)]['printf'](_0x32a406=>_0x32a406[a138_0xc4352d(0x1db)]+':\x20'+_0x32a406[a138_0xc4352d(0x1c5)])),'transports':[]},a138_0x5988dd={};a138_0x5988dd[a138_0xc4352d(0x1b5)]=a138_0xc4352d(0x1a6);const a138_0x1ff5c7={};a138_0x1ff5c7['level']=!![];const a138_0x40d591={};a138_0x40d591[a138_0xc4352d(0x1db)]=a138_0xc4352d(0x1b1);const BuildLoggerParams={'format':winston[a138_0xc4352d(0x1b5)][a138_0xc4352d(0x1dd)](winston[a138_0xc4352d(0x1b5)][a138_0xc4352d(0x1a9)](a138_0x5988dd),winston[a138_0xc4352d(0x1b5)][a138_0xc4352d(0x1c3)](a138_0x1ff5c7),winston[a138_0xc4352d(0x1b5)][a138_0xc4352d(0x1d5)](_0x45f609=>_0x45f609[a138_0xc4352d(0x1a9)]+a138_0xc4352d(0x1ca)+_0x45f609[a138_0xc4352d(0x1db)]+':\x20'+_0x45f609[a138_0xc4352d(0x1c5)])),'transports':[transports[a138_0xc4352d(0x1a0)],new winston[(a138_0xc4352d(0x1c6))][(a138_0xc4352d(0x1e7))](a138_0x40d591)]},a138_0x4884c1={};a138_0x4884c1[a138_0xc4352d(0x1aa)]=()=>{},a138_0x4884c1[a138_0xc4352d(0x1bb)]=()=>{},a138_0x4884c1[a138_0xc4352d(0x1f4)]=()=>{},a138_0x4884c1['error']=()=>{},a138_0x4884c1[a138_0xc4352d(0x1e0)]=()=>{},a138_0x4884c1[a138_0xc4352d(0x1b1)]=()=>{},exports[a138_0xc4352d(0x1e1)]=process[a138_0xc4352d(0x1d9)][a138_0xc4352d(0x1b8)]===a138_0xc4352d(0x1f1)?winston[a138_0xc4352d(0x1ce)]({'format':winston[a138_0xc4352d(0x1b5)][a138_0xc4352d(0x1dd)](winston[a138_0xc4352d(0x1b5)][a138_0xc4352d(0x1af)](),winston['format'][a138_0xc4352d(0x1a9)](),logFormat(),winston[a138_0xc4352d(0x1b5)][a138_0xc4352d(0x1d5)](_0x1ae448=>_0x1ae448[a138_0xc4352d(0x1db)]+':\x20'+_0x1ae448['message'])),'transports':[automationTransports[a138_0xc4352d(0x1e2)]]}):a138_0x4884c1;function a138_0x53d8(){const _0x213dad=['YYYY-MM-DD\x20HH:mm:ss','existsSync','code','timestamp','http','fileLogger','console.info','IDiRg','includes','uncolorize','loggerConsole','silly','5048835ovFswP','filter','HxpJQ','format','map','userName','BROWSERSTACK_AUTOMATION_LOGS','iEIQh','mkdirSync','info','levels','10925467fxIdlE','SjaZV','1188mbGLlo','loggerFile','pkVHp','winston','colorize','string','message','transports','OYpaz','toLowerCase','getLogDir','\x20-\x20','NLYOw','replace','gxqRj','createLogger','rrolv','join','ejzsg','EPIPE','name','debugCliLoggerFile','printf','debugLoggerFile','object','18LgcAfV','env','3028336DiQoCu','level','length','combine','QhHQd','maskHeaders','debug','automationLogger','automationLoggerFile','npm','7762398dsaOln','initialize','EPIPE\x20error\x20occurred\x20in\x20loggerConsole:','Console','add','buildLogger','/usage.log','accessKey','CGTuc','keys','stringify','config','1837840oekZVZ','true','PlybQ','test','warn','432931EOMLZW','remove','OYQKb','[REDACTED]','winstonLogger','\x5c$&','BROWSERSTACK_INTERNAL_LOG_DIR','../bin/utils/constants','error','buildLinkTransport','File','logDir','path','11420UebVsz','aWERF'];a138_0x53d8=function(){return _0x213dad;};return a138_0x53d8();}function a138_0x250f(_0x324a2d,_0x4b26af){const _0x53d8b5=a138_0x53d8();return a138_0x250f=function(_0x250f4e,_0x4d6ae5){_0x250f4e=_0x250f4e-0x19f;let _0x4f20af=_0x53d8b5[_0x250f4e];return _0x4f20af;},a138_0x250f(_0x324a2d,_0x4b26af);}const initialize=()=>{const _0x5869c6=a138_0xc4352d,_0x1afab9={};_0x1afab9['PlybQ']=_0x5869c6(0x1b1);const _0x2b5b39=_0x1afab9,_0x161637=transports['loggerConsole'][_0x5869c6(0x1db)]||initialLogLevel;transports['loggerFile']&&(exports[_0x5869c6(0x1f9)][_0x5869c6(0x1f6)](transports['loggerFile']),exports[_0x5869c6(0x1ab)][_0x5869c6(0x1f6)](transports[_0x5869c6(0x1c0)])),transports[_0x5869c6(0x1d6)]&&(exports[_0x5869c6(0x1f9)][_0x5869c6(0x1f6)](transports[_0x5869c6(0x1d6)]),exports[_0x5869c6(0x1ab)][_0x5869c6(0x1f6)](transports['debugLoggerFile'])),transports[_0x5869c6(0x1c0)]=new winston[(_0x5869c6(0x1c6))]['File']({'filename':path[_0x5869c6(0x1d0)](exports[_0x5869c6(0x1a2)],LOG_FILE_NAME),'level':_0x161637}),transports[_0x5869c6(0x1d6)]=new winston[(_0x5869c6(0x1c6))]['File']({'filename':path['join'](exports[_0x5869c6(0x1a2)],DEBUG_LOG_FILE_NAME),'level':_0x2b5b39[_0x5869c6(0x1f2)]}),transports[_0x5869c6(0x1d4)]=new winston[(_0x5869c6(0x1c6))]['File']({'filename':path['join'](exports[_0x5869c6(0x1a2)],DEBUG_CLI_LOG_FILE_NAME),'level':_0x2b5b39[_0x5869c6(0x1f2)]}),exports[_0x5869c6(0x1f9)][_0x5869c6(0x1e8)](transports[_0x5869c6(0x1c0)]),exports[_0x5869c6(0x1f9)][_0x5869c6(0x1e8)](transports[_0x5869c6(0x1d6)]),exports['fileLogger'][_0x5869c6(0x1e8)](transports[_0x5869c6(0x1c0)]),exports['fileLogger']['add'](transports[_0x5869c6(0x1d6)]);};exports[a138_0xc4352d(0x1f9)]=new winston[(a138_0xc4352d(0x1ce))](winstonLoggerParams),exports[a138_0xc4352d(0x1ab)]=new winston[(a138_0xc4352d(0x1ce))](winstonFileLoggerParams),exports[a138_0xc4352d(0x1e9)]=new winston[(a138_0xc4352d(0x1ce))](BuildLoggerParams),exports[a138_0xc4352d(0x1a2)]=logDir,exports[a138_0xc4352d(0x1c9)]=()=>{return exports['logDir'];},exports['transports']=transports,exports[a138_0xc4352d(0x1e5)]=initialize,exports[a138_0xc4352d(0x1df)]=maskHeaders;logDir&&initialize();
|
package/src/helpers/metadata.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a139_0x43045e=a139_0x3e5d;function a139_0x233b(){const _0xc64bd8=['./helper','testMeta-','374504EZsJbV','BxmXY','304dZFOix','333556uPwqwk','getCentralUser','112hYogBO','WwINy','setGlobal','testRunUUID','exports','testMeta','gZNxe','71343HzSeoQ','QMvno','mNOJJ','Tgmep','winstonLogger','120diCQid','string','1755250jNuQsx','length','lcnc','getGlobal','292338tHBxIo','warn','3335035ZLCQKx','30nUqqmo','get','./globals','set','10065bdgNFk','./logger','identifier','dtILR'];a139_0x233b=function(){return _0xc64bd8;};return a139_0x233b();}(function(_0x4d8abc,_0x51c006){const _0x1289b6=a139_0x3e5d,_0x5cd4ef=_0x4d8abc();while(!![]){try{const _0x5448e3=parseInt(_0x1289b6(0xc6))/0x1+parseInt(_0x1289b6(0xc8))/0x2*(-parseInt(_0x1289b6(0xe4))/0x3)+parseInt(_0x1289b6(0xc9))/0x4*(-parseInt(_0x1289b6(0xe0))/0x5)+parseInt(_0x1289b6(0xdd))/0x6*(parseInt(_0x1289b6(0xcb))/0x7)+-parseInt(_0x1289b6(0xd7))/0x8*(-parseInt(_0x1289b6(0xd2))/0x9)+-parseInt(_0x1289b6(0xd9))/0xa+parseInt(_0x1289b6(0xdf))/0xb;if(_0x5448e3===_0x51c006)break;else _0x5cd4ef['push'](_0x5cd4ef['shift']());}catch(_0x3f2fd7){_0x5cd4ef['push'](_0x5cd4ef['shift']());}}}(a139_0x233b,0x5f4c7));function a139_0x3e5d(_0x525b8b,_0x3625dc){const _0x233b18=a139_0x233b();return a139_0x3e5d=function(_0x3e5dc3,_0x25d705){_0x3e5dc3=_0x3e5dc3-0xc5;let _0x383da3=_0x233b18[_0x3e5dc3];return _0x383da3;},a139_0x3e5d(_0x525b8b,_0x3625dc);}const globals=require(a139_0x43045e(0xe2)),helper=require(a139_0x43045e(0xe8)),logger=require(a139_0x43045e(0xe5))[a139_0x43045e(0xd6)];module[a139_0x43045e(0xcf)]=class TestMetadata{static[a139_0x43045e(0xe3)](_0x2cbfd8={}){const _0x2e247e=a139_0x43045e,_0x25c970={};_0x25c970[_0x2e247e(0xd1)]=_0x2e247e(0xce),_0x25c970[_0x2e247e(0xcc)]=function(_0x5acaf9,_0x40be45){return _0x5acaf9===_0x40be45;},_0x25c970[_0x2e247e(0xd3)]=_0x2e247e(0xd8),_0x25c970[_0x2e247e(0xd4)]=function(_0x4bad3b,_0x387e45){return _0x4bad3b<=_0x387e45;},_0x25c970[_0x2e247e(0xd5)]=_0x2e247e(0xd0),_0x25c970[_0x2e247e(0xc7)]='The\x20metadata\x20object\x20is\x20not\x20valid.';const _0xdce1c3=_0x25c970,_0x37a1fd=globals[_0x2e247e(0xdc)](_0xdce1c3[_0x2e247e(0xd1)]),_0x4f7f97=_0x2cbfd8[_0x2e247e(0xe6)];helper[_0x2e247e(0xca)]()[_0x2e247e(0xdb)]&&(_0xdce1c3[_0x2e247e(0xcc)](typeof _0x4f7f97,_0xdce1c3[_0x2e247e(0xd3)])&&_0xdce1c3['mNOJJ'](_0x4f7f97[_0x2e247e(0xda)],0x28)?_0x37a1fd?globals[_0x2e247e(0xcd)](_0x2e247e(0xc5)+_0x37a1fd,_0x2cbfd8):globals[_0x2e247e(0xcd)](_0xdce1c3[_0x2e247e(0xd5)],_0x2cbfd8):logger[_0x2e247e(0xde)](_0xdce1c3[_0x2e247e(0xc7)]));}static[a139_0x43045e(0xe1)](_0x443e0f){const _0x13d739=a139_0x43045e,_0x21ed37={};_0x21ed37['dtILR']=_0x13d739(0xd0);const _0x3722d2=_0x21ed37;if(helper[_0x13d739(0xca)]()[_0x13d739(0xdb)])return globals[_0x13d739(0xdc)](_0x13d739(0xc5)+_0x443e0f)||globals[_0x13d739(0xdc)](_0x3722d2[_0x13d739(0xe7)])||{};return{};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a140_0x2e5f(_0x1737a0,_0x2b1185){const _0x31ad96=a140_0x31ad();return a140_0x2e5f=function(_0x2e5f7e,_0x303eca){_0x2e5f7e=_0x2e5f7e-0xba;let _0x1c1959=_0x31ad96[_0x2e5f7e];return _0x1c1959;},a140_0x2e5f(_0x1737a0,_0x2b1185);}function a140_0x31ad(){const _0x285f77=['Fwxmh','sjWBp','./accessibility-automation/scripts','nestedKeyValue','NLvzc','iEmgr','../bin/v2/state/hookState','script','1299443rlXcpv','executeAsyncScript','Error\x20while\x20logging\x20accessibility\x20automation\x20logs\x20in\x20driver.execute\x20:\x20','1253132ZDwPTf','lazKI','[App-A11y]\x20patchHelper:\x20no\x20automationFramework\x20for\x20node-generic\x20—\x20calling\x20onBeforeExecute\x20directly\x20for\x20command=','kaOzH','getNudgeLocalNotSetError','function','JUjvX','testFramework','./accessibility-automation/constants','bstack:options','parameters_','EKdrZ','util','NODE_GENERIC','AUTOMATION_LOG_COMMANDS','NUDGE_LOCAL_ERRORS','measureWrapper','447855NSOpxF','request','RUjhZ','../bin/v2/state/automationFrameworkState','getCurrentAccessibilityStatus','./performance/performance-tester','url','message','silly','name_','iKjQt','driver','local','getInstance','overrideExecute','toISOString','browserstack.local','FRAMEWORKS','shvFr','get','args','[App-A11y]\x20patchHelper:\x20firing\x20EXECUTE\x20PRE\x20for\x20command=',',\x20testRunId=','onBeforeExecute','1949535iVZAbI','testRunId','EBaWT','TlfPp','EXECUTE','ytYmz','string','5152160thwnDc','DHPia','getTestFramework','YZSxj','12irEaQc','][\x20SDK-AUTOMATION\x20]\x20','Caught\x20error\x20in\x20execute,\x20check\x20if\x20geturl\x20and\x20try\x20to\x20set\x20local\x20nudge','parameters','../bin/v2/browserstackCLI','commandName','[App-A11y]\x20patchHelper:\x20error\x20in\x20a11y\x20scan\x20hook:\x20','format','body','getCurrentTestUUID','WMbUD','includes','8MBmiyA','10457784vzWbjj','Zvzey','IxXgw','capability','1117833jaWEcO','../bin/utils/constants','imknv','rGVbG','debug','patchExecute','find','command'];a140_0x31ad=function(){return _0x285f77;};return a140_0x31ad();}const a140_0x54aeec=a140_0x2e5f;(function(_0x30e0a4,_0x1b67d1){const _0x464fda=a140_0x2e5f,_0x2e5285=_0x30e0a4();while(!![]){try{const _0x41c0c8=-parseInt(_0x464fda(0xf9))/0x1+parseInt(_0x464fda(0xe4))/0x2*(parseInt(_0x464fda(0xe9))/0x3)+-parseInt(_0x464fda(0xfc))/0x4+-parseInt(_0x464fda(0x10d))/0x5*(-parseInt(_0x464fda(0xd8))/0x6)+parseInt(_0x464fda(0xcd))/0x7+-parseInt(_0x464fda(0xd4))/0x8+parseInt(_0x464fda(0xe5))/0x9;if(_0x41c0c8===_0x1b67d1)break;else _0x2e5285['push'](_0x2e5285['shift']());}catch(_0x37a433){_0x2e5285['push'](_0x2e5285['shift']());}}}(a140_0x31ad,0xd0549));const PerformanceTester=require(a140_0x54aeec(0xba)),{winstonLogger:logger,automationLogger}=require('./logger'),helper=require('./helper'),constants=require(a140_0x54aeec(0xea)),{DRIVER_EVENT:PerformanceDriverEvents}=require('./performance/constants'),{BSTACK_SCAN_IN_PROGRESS}=require(a140_0x54aeec(0x104)),util=require(a140_0x54aeec(0x108));exports[a140_0x54aeec(0xc3)]=(_0x2edf57,_0x55180a)=>{const _0x172a8d=a140_0x54aeec,_0x291d28={'sjWBp':_0x172a8d(0xda),'RUjhZ':function(_0x500b12,_0x3f6352){return _0x500b12===_0x3f6352;},'TlfPp':_0x172a8d(0xc8),'YAjxq':_0x172a8d(0x106),'EKdrZ':_0x172a8d(0xbb),'lazKI':'Error\x20in\x20local\x20nudge\x20for\x20overrideExecute:\x20','GrcOK':_0x172a8d(0xfa),'Fwxmh':function(_0x607639,_0x2d48cf){return _0x607639===_0x2d48cf;},'Zvzey':'executeScript','DHPia':_0x172a8d(0xd3),'NLvzc':function(_0x24f47a,_0x5d1994){return _0x24f47a(_0x5d1994);},'kaOzH':_0x172a8d(0xf3),'imknv':function(_0x579ae8,_0x43466c){return _0x579ae8(_0x43466c);},'WMbUD':_0x172a8d(0x110),'EBaWT':function(_0x24d120,_0x20d5cb){return _0x24d120(_0x20d5cb);},'iEmgr':_0x172a8d(0xf7),'zrWGb':_0x172a8d(0x101),'qzKyz':_0x172a8d(0xdc),'ytYmz':_0x172a8d(0xe8),'rGVbG':_0x172a8d(0xc5),'shvFr':_0x172a8d(0x105),'swMkg':_0x172a8d(0xc1)},_0x46b996=_0x2edf57[_0x172a8d(0xee)]||(helper['nestedKeyValue'](_0x55180a,[_0x291d28[_0x172a8d(0xd2)],_0x291d28[_0x172a8d(0xec)]])||helper[_0x172a8d(0xf4)](_0x55180a,[_0x291d28[_0x172a8d(0xd2)],_0x291d28[_0x172a8d(0xc7)],_0x291d28['swMkg']]));if(_0x46b996)return;_0x2edf57[_0x172a8d(0xee)]=!![],_0x2edf57['initExecute']=_0x2edf57['execute'],_0x2edf57['execute']=async _0x2e83f5=>{const _0x1de51b=_0x172a8d,_0x200474={'wNsRe':_0x291d28[_0x1de51b(0xf2)],'YZSxj':function(_0x24367f,_0x397f30){const _0x3a2a0a=_0x1de51b;return _0x291d28[_0x3a2a0a(0x10f)](_0x24367f,_0x397f30);},'IxXgw':_0x291d28[_0x1de51b(0xd0)],'JUjvX':_0x291d28['YAjxq'],'iKjQt':_0x291d28[_0x1de51b(0x107)],'UnnGe':_0x291d28[_0x1de51b(0xfd)]};try{const _0x99d1ca=await _0x2edf57['initExecute'](_0x2e83f5);try{if(_0x291d28[_0x1de51b(0x10f)](_0x2e83f5['name_'],_0x291d28['GrcOK'])||_0x291d28[_0x1de51b(0xf1)](_0x2e83f5[_0x1de51b(0xbe)],_0x291d28[_0x1de51b(0xe6)])){const _0x3c4565=_0x2e83f5[_0x1de51b(0x106)]&&_0x2e83f5[_0x1de51b(0x106)][_0x1de51b(0xf8)],_0x3166f2=_0x2e83f5['parameters_']&&_0x2e83f5[_0x1de51b(0x106)][_0x1de51b(0xc9)],_0x100af1=_0x3166f2&&util[_0x1de51b(0xdf)]('%j',_0x3166f2);if(_0x3c4565&&_0x291d28[_0x1de51b(0x10f)](typeof _0x3c4565,_0x291d28[_0x1de51b(0xd5)])){const _0x308a97=constants[_0x1de51b(0x10a)][_0x1de51b(0xef)](_0x2ecc8c=>_0x3c4565[_0x1de51b(0xe3)](_0x2ecc8c)||_0x100af1&&_0x100af1[_0x1de51b(0xe3)](_0x2ecc8c));if(_0x308a97){const _0x4dac68={};_0x4dac68[_0x1de51b(0xf0)]=_0x308a97,_0x4dac68[_0x1de51b(0xdb)]=_0x3166f2;const _0x1f79b3={};_0x1f79b3[_0x1de51b(0xe0)]=_0x99d1ca;const _0x505e52={};_0x505e52[_0x1de51b(0x10e)]=_0x4dac68,_0x505e52['response']=_0x1f79b3,automationLogger[_0x1de51b(0xbd)]('['+new Date()[_0x1de51b(0xc4)]()+_0x1de51b(0xd9)+util[_0x1de51b(0xdf)]('%j',_0x505e52));}}}}catch(_0x4d2dd0){logger[_0x1de51b(0xbd)](_0x1de51b(0xfb)+_0x4d2dd0['message']);}try{if(!_0x2edf57[BSTACK_SCAN_IN_PROGRESS]){const _0x2fa038=_0x291d28[_0x1de51b(0xf5)](require,_0x291d28[_0x1de51b(0xff)]),_0x70cba2=_0x291d28[_0x1de51b(0xeb)](require,_0x291d28[_0x1de51b(0xe2)]),_0x4d0118=_0x291d28[_0x1de51b(0xcf)](require,_0x291d28[_0x1de51b(0xf6)]);if(_0x291d28[_0x1de51b(0xf1)](typeof _0x2fa038['shouldWrapCommand'],_0x291d28['zrWGb'])&&_0x2fa038['shouldWrapCommand'](_0x2e83f5[_0x1de51b(0xbe)])){const _0x5bf534=_0x291d28[_0x1de51b(0xeb)](require,_0x291d28['qzKyz']),_0x3b570a=_0x5bf534[_0x1de51b(0xc2)](),_0x27296b=_0x3b570a&&_0x3b570a['getAccessibilityModule']();if(_0x27296b&&_0x27296b['isAppAccessibility']&&_0x27296b[_0x1de51b(0x111)]()){let _0x344a23='';try{const _0x540158=_0x3b570a[_0x1de51b(0xd6)]&&_0x3b570a['getTestFramework']();_0x344a23=_0x540158&&_0x540158[_0x1de51b(0xe1)]&&_0x540158[_0x1de51b(0xe1)]()||'';}catch(_0x37e930){}logger[_0x1de51b(0xed)](_0x1de51b(0xca)+_0x2e83f5[_0x1de51b(0xbe)]+_0x1de51b(0xcb)+_0x344a23);const _0x14a5f3=_0x3b570a['getAutomationFramework']();if(!_0x14a5f3){logger['debug'](_0x1de51b(0xfe)+_0x2e83f5[_0x1de51b(0xbe)]);const _0x55050f={};_0x55050f[_0x1de51b(0x103)]=constants[_0x1de51b(0xc6)][_0x1de51b(0x109)],_0x55050f[_0x1de51b(0xdd)]=_0x2e83f5['name_'],_0x55050f[_0x1de51b(0xc0)]=_0x2edf57,_0x55050f[_0x1de51b(0xce)]=_0x344a23,await _0x27296b[_0x1de51b(0xcc)](_0x55050f);}else{const _0x19b42b={};_0x19b42b[_0x1de51b(0xdd)]=_0x2e83f5[_0x1de51b(0xbe)],_0x19b42b[_0x1de51b(0xc0)]=_0x2edf57,_0x19b42b[_0x1de51b(0x103)]=constants[_0x1de51b(0xc6)][_0x1de51b(0x109)],_0x19b42b[_0x1de51b(0xce)]=_0x344a23,await _0x14a5f3['trackEvent'](_0x70cba2[_0x1de51b(0xd1)],_0x4d0118['PRE'],_0x19b42b);}}}}}catch(_0x2bfd74){logger[_0x1de51b(0xed)](_0x1de51b(0xde)+_0x2bfd74[_0x1de51b(0xbc)]);}return _0x99d1ca;}catch(_0x2b1ef2){await PerformanceTester[_0x1de51b(0x10c)](PerformanceDriverEvents['POST_EXECUTE'],async()=>{const _0xb973c0=_0x1de51b;logger[_0xb973c0(0xed)](_0x200474['wNsRe']);try{_0x200474[_0xb973c0(0xd7)](_0x2e83f5[_0xb973c0(0xbe)],_0x200474[_0xb973c0(0xe7)])&&helper[_0xb973c0(0xf4)](_0x2e83f5,[_0x200474[_0xb973c0(0x102)],_0x200474[_0xb973c0(0xbf)]])&&!!constants[_0xb973c0(0x10b)][_0xb973c0(0xef)](_0xe0a08b=>{const _0x24ff2b=_0xb973c0;return _0x2b1ef2['toString']()[_0x24ff2b(0xe3)](_0xe0a08b);})&&helper[_0xb973c0(0x100)](_0x2e83f5[_0xb973c0(0x106)][_0xb973c0(0xbb)],!![]);}catch(_0x2aa275){logger[_0xb973c0(0xed)](_0x200474['UnnGe'],_0x2aa275);}},{'success':![],'failure':_0x2b1ef2})();throw _0x2b1ef2;}};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a141_0x1fb0(){const _0x260d41=['patchScreenshot','BGNfx','catch','quit','emit','initScreenshot','942RGxQLc','467395jWGaRZ','BS_TESTOPS_ALLOW_SCREENSHOTS','takeScreenshot','VRzLK','uZKnL','true','930558pnwidu','overrideQuit','2118072mSjAYb','./performance/constants','patchQuit','TEST_SCREENSHOT','4cYIPqn','pid','toISOString','3450168QGrXGD','26066580giSwBN','then','506953nQeybl','quitCount_','PJKuy','bs:addLog:','6136nhCbEM','initQuit','TAKE_SCREENSHOT','AhuHO','O11y_EVENTS','end','IDbnU','PjeWE','7FzcCaz','env'];a141_0x1fb0=function(){return _0x260d41;};return a141_0x1fb0();}const a141_0x445db6=a141_0x4a3d;function a141_0x4a3d(_0x4eda5c,_0x12535a){const _0x1fb0e1=a141_0x1fb0();return a141_0x4a3d=function(_0x4a3dc7,_0x1efbad){_0x4a3dc7=_0x4a3dc7-0xd9;let _0x406c63=_0x1fb0e1[_0x4a3dc7];return _0x406c63;},a141_0x4a3d(_0x4eda5c,_0x12535a);}(function(_0x34238f,_0x5a6a33){const _0x5300d0=a141_0x4a3d,_0x550a43=_0x34238f();while(!![]){try{const _0x59f66c=-parseInt(_0x5300d0(0xda))/0x1+-parseInt(_0x5300d0(0xde))/0x2*(parseInt(_0x5300d0(0xee))/0x3)+-parseInt(_0x5300d0(0xfb))/0x4*(parseInt(_0x5300d0(0xef))/0x5)+-parseInt(_0x5300d0(0xf5))/0x6*(-parseInt(_0x5300d0(0xe6))/0x7)+-parseInt(_0x5300d0(0xf7))/0x8+-parseInt(_0x5300d0(0xfe))/0x9+parseInt(_0x5300d0(0xff))/0xa;if(_0x59f66c===_0x5a6a33)break;else _0x550a43['push'](_0x550a43['shift']());}catch(_0x1516b2){_0x550a43['push'](_0x550a43['shift']());}}}(a141_0x1fb0,0x863e0));const PerformanceTester=require('./performance/performance-tester'),O11yEvents=require(a141_0x445db6(0xf8))[a141_0x445db6(0xe2)];exports['overrideTakeScreenshot']=_0x41bc58=>{const _0x1ac23b=a141_0x445db6,_0x365fba={'AhuHO':_0x1ac23b(0xfa),'BGNfx':function(_0x4c2bef,_0x3fbe9d){return _0x4c2bef(_0x3fbe9d);},'mZVzh':function(_0x442764,_0x120447){return _0x442764!==_0x120447;},'PJKuy':_0x1ac23b(0xf4)};if(_0x365fba['mZVzh'](process[_0x1ac23b(0xe7)][_0x1ac23b(0xf0)],_0x365fba[_0x1ac23b(0xdc)]))return;if(_0x41bc58[_0x1ac23b(0xe8)])return;_0x41bc58[_0x1ac23b(0xe8)]=!![],_0x41bc58[_0x1ac23b(0xed)]=_0x41bc58['takeScreenshot'],_0x41bc58[_0x1ac23b(0xf1)]=()=>{const _0x5065b8=_0x1ac23b,_0x1b6cac={'yFotn':_0x365fba[_0x5065b8(0xe1)],'uZKnL':function(_0x1c592c,_0x27fa92){const _0x140a75=_0x5065b8;return _0x365fba[_0x140a75(0xe9)](_0x1c592c,_0x27fa92);},'VRzLK':function(_0x26a3f0,_0x1c342a){const _0x52b52c=_0x5065b8;return _0x365fba[_0x52b52c(0xe9)](_0x26a3f0,_0x1c342a);}};return new Promise(function(_0x5c7ce6,_0x1e0d4a){const _0x29fa09=_0x5065b8;_0x41bc58[_0x29fa09(0xed)]()[_0x29fa09(0xd9)](_0x18ceda=>{const _0x5522cc=_0x29fa09;PerformanceTester['start'](O11yEvents[_0x5522cc(0xe0)]),process[_0x5522cc(0xec)](_0x5522cc(0xdd)+process[_0x5522cc(0xfc)],{'timestamp':new Date()[_0x5522cc(0xfd)](),'message':_0x18ceda,'kind':_0x1b6cac['yFotn']}),_0x1b6cac[_0x5522cc(0xf3)](_0x5c7ce6,_0x18ceda),PerformanceTester[_0x5522cc(0xe3)](O11yEvents[_0x5522cc(0xe0)]);})[_0x29fa09(0xea)](_0x33eac7=>{const _0x1f6e31=_0x29fa09;PerformanceTester[_0x1f6e31(0xe3)](O11yEvents[_0x1f6e31(0xe0)]),_0x1b6cac[_0x1f6e31(0xf2)](_0x1e0d4a,_0x33eac7);});});};},exports[a141_0x445db6(0xf6)]=(_0x40c153,_0x7508f4=null)=>{const _0x5d14c1=a141_0x445db6,_0x2f5bc3={'cWFZS':function(_0x40f7d5){return _0x40f7d5();},'iiRaR':function(_0x4ff893,_0x52b161){return _0x4ff893>_0x52b161;},'PjeWE':function(_0x542311,_0x2deacf){return _0x542311>_0x2deacf;}};if(_0x40c153[_0x5d14c1(0xf9)])return;_0x40c153[_0x5d14c1(0xf9)]=!![],_0x40c153[_0x5d14c1(0xdf)]=_0x40c153[_0x5d14c1(0xeb)],_0x40c153[_0x5d14c1(0xeb)]=()=>{const _0x1f901f=_0x5d14c1,_0x6335ea={'IDbnU':function(_0x56390e){return _0x2f5bc3['cWFZS'](_0x56390e);}};if(_0x7508f4){_0x7508f4[_0x1f901f(0xdb)]+=0x1;if(_0x2f5bc3['iiRaR'](_0x7508f4[_0x1f901f(0xdb)],0x1))return _0x40c153['initQuit']();}else{_0x40c153[_0x1f901f(0xdb)]+=0x1;if(_0x2f5bc3[_0x1f901f(0xe5)](_0x40c153[_0x1f901f(0xdb)],0x1))return _0x40c153['initQuit']();}return new Promise(function(_0x38d7c7){const _0x444f6b=_0x1f901f;_0x6335ea[_0x444f6b(0xe4)](_0x38d7c7);});};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a142_0x482c59=a142_0x28f4;(function(_0x2bc7d7,_0x179e91){const _0x441e86=a142_0x28f4,_0x341ebc=_0x2bc7d7();while(!![]){try{const _0x1f674d=-parseInt(_0x441e86(0xc5))/0x1+parseInt(_0x441e86(0xb3))/0x2*(-parseInt(_0x441e86(0xd5))/0x3)+parseInt(_0x441e86(0xb9))/0x4*(parseInt(_0x441e86(0x94))/0x5)+-parseInt(_0x441e86(0xc8))/0x6*(parseInt(_0x441e86(0xca))/0x7)+-parseInt(_0x441e86(0xd8))/0x8*(-parseInt(_0x441e86(0xda))/0x9)+parseInt(_0x441e86(0xb8))/0xa*(parseInt(_0x441e86(0x9f))/0xb)+parseInt(_0x441e86(0xa4))/0xc*(-parseInt(_0x441e86(0xa9))/0xd);if(_0x1f674d===_0x179e91)break;else _0x341ebc['push'](_0x341ebc['shift']());}catch(_0x29d5d9){_0x341ebc['push'](_0x341ebc['shift']());}}}(a142_0x5a2e,0x820e3));const fs=require('fs'),path=require(a142_0x482c59(0xe0)),os=require('os'),{spawn}=require(a142_0x482c59(0xc7)),helper=require(a142_0x482c59(0x9b)),logger=require('../logger')[a142_0x482c59(0xc4)],{getLogDir}=require(a142_0x482c59(0xcb)),testHubConstants=require(a142_0x482c59(0xab)),PerformanceTester=require(a142_0x482c59(0xa3)),{PERCY_EVENTS:PerformanceEvents}=require(a142_0x482c59(0xa8)),PercyBinary=require(a142_0x482c59(0xb2));function a142_0x28f4(_0x44bfc6,_0x28f508){const _0x5a2ee0=a142_0x5a2e();return a142_0x28f4=function(_0x28f4c1,_0x117427){_0x28f4c1=_0x28f4c1-0x8f;let _0x3f15e7=_0x5a2ee0[_0x28f4c1];return _0x3f15e7;},a142_0x28f4(_0x44bfc6,_0x28f508);}class Percy{#logfile=path[a142_0x482c59(0xd4)](getLogDir(),'percy.log');#address=process[a142_0x482c59(0xb6)]['PERCY_SERVER_ADDRESS']||'http://localhost:5338';#binaryPath=null;#config=null;#proc=null;#logStream=null;#isApp=![];[a142_0x482c59(0xdd)]=![];constructor(_0x1a2b61){const _0x23fcec=a142_0x482c59;this.#config=_0x1a2b61,!!_0x1a2b61[_0x23fcec(0xc2)]&&(this.#isApp=!![]);}async #getBinaryPath(){const _0x4857d2=a142_0x482c59;if(!this.#binaryPath){const _0x5ed5ca=new PercyBinary();PerformanceTester[_0x4857d2(0xa2)](PerformanceEvents['DOWNLOAD']),this.#binaryPath=await _0x5ed5ca[_0x4857d2(0x99)](this.#config),PerformanceTester[_0x4857d2(0xbd)](PerformanceEvents[_0x4857d2(0x9a)]);}return this.#binaryPath;}async #sleep(_0x1a9315){return new Promise(_0x1dc8f7=>setTimeout(_0x1dc8f7,_0x1a9315));}async['healthcheck'](){const _0x5ec40d=a142_0x482c59,_0x84a7f7={};_0x84a7f7['oMJBn']=_0x5ec40d(0xb5),_0x84a7f7[_0x5ec40d(0xd6)]=_0x5ec40d(0xdb);const _0x590d4a=_0x84a7f7;try{const _0x334461=await helper[_0x5ec40d(0xb0)](_0x590d4a[_0x5ec40d(0x9d)],_0x590d4a[_0x5ec40d(0xd6)],null,null,this.#address);if(_0x334461)return!![];}catch(_0x4f100d){return![];}}async[a142_0x482c59(0xa2)](){const _0x46e489=a142_0x482c59,_0x41348a={'VdhGY':_0x46e489(0x90),'TcEcj':_0x46e489(0xc1),'mTsIL':function(_0x4c5646,_0x29fe80,_0x3bc693,_0x3ac011){return _0x4c5646(_0x29fe80,_0x3bc693,_0x3ac011);},'FVpSM':_0x46e489(0xd9),'bmwmL':'Percy\x20healthcheck\x20successful'},_0x42b2fe=await this.#getBinaryPath(),_0x9cc63e={};_0x9cc63e['flags']='a',this.#logStream=fs[_0x46e489(0xc9)](this.#logfile,_0x9cc63e);const _0x1755e7=await this[_0x46e489(0xac)](),_0x260f94=await this[_0x46e489(0xd0)]();if(!_0x1755e7)return![];const _0x52ecb3=[(this.#isApp?_0x41348a[_0x46e489(0x98)]:_0x41348a[_0x46e489(0xc3)])+':start'];_0x260f94&&_0x52ecb3[_0x46e489(0xa7)]('-c',_0x260f94);this.#proc=_0x41348a[_0x46e489(0xd1)](spawn,_0x42b2fe,_0x52ecb3,{'env':Object[_0x46e489(0x8f)](process[_0x46e489(0xb6)],{'PERCY_TOKEN':_0x1755e7,'TH_BUILD_UUID':process[_0x46e489(0xb6)][testHubConstants['ENV_VAR'][_0x46e489(0xcd)]]})}),this.#proc[_0x46e489(0xad)][_0x46e489(0x91)](this.#logStream),this.#proc[_0x46e489(0x97)][_0x46e489(0x91)](this.#logStream),this['isProcessRunning']=!![];var _0x5c65ad=this;this.#proc['on'](_0x41348a[_0x46e489(0xce)],function(_0x328459){_0x5c65ad['isProcessRunning']=![];});do{const _0x5d7b27=await this[_0x46e489(0xae)]();if(_0x5d7b27)return logger[_0x46e489(0xd2)](_0x41348a[_0x46e489(0x9c)]),!![];await this.#sleep(0x3e8);}while(this[_0x46e489(0xdd)]);return![];}async[a142_0x482c59(0x92)](){const _0x33e0fc=a142_0x482c59,_0x11ec88={'GEswL':function(_0x52eb3f,_0x167057){return _0x52eb3f(_0x167057);},'ozfXQ':function(_0x2e3e7f,_0x423652,_0x1ea37a){return _0x2e3e7f(_0x423652,_0x1ea37a);},'aIEbm':_0x33e0fc(0xcc),'kMaSA':'close'},_0x465270=await this.#getBinaryPath();return new Promise((_0x1d9a42,_0x321d87)=>{const _0x4c5160=_0x33e0fc,_0x26b1b7={'KHqHC':function(_0x3b0cba,_0x6db3c6){const _0x541e81=a142_0x28f4;return _0x11ec88[_0x541e81(0xaa)](_0x3b0cba,_0x6db3c6);}},_0x227853=_0x11ec88['ozfXQ'](spawn,_0x465270,[_0x11ec88[_0x4c5160(0xd3)]]);_0x227853['on'](_0x11ec88[_0x4c5160(0xbc)],_0x3369a9=>{const _0x106501=_0x4c5160;this[_0x106501(0xdd)]=![],this.#logStream&&(this.#logStream['end'](),this.#logStream=null),_0x26b1b7[_0x106501(0xaf)](_0x1d9a42,_0x3369a9);});});}[a142_0x482c59(0x93)](){const _0x6b4d02=a142_0x482c59;return this[_0x6b4d02(0xdd)];}async[a142_0x482c59(0xac)](){const _0x1c7daf=a142_0x482c59,_0x3d34ba={};_0x3d34ba['EiwHc']=_0x1c7daf(0xc2),_0x3d34ba[_0x1c7daf(0xde)]=_0x1c7daf(0xa5),_0x3d34ba['yKddd']='GET',_0x3d34ba[_0x1c7daf(0x9e)]=_0x1c7daf(0xa1);const _0x3c803f=_0x3d34ba,_0x43b121=this.#config[_0x1c7daf(0xba)];try{const _0xcce18b=this.#isApp?_0x3c803f[_0x1c7daf(0xa6)]:_0x3c803f[_0x1c7daf(0xde)],_0x3cc006=await helper[_0x1c7daf(0xb0)](_0x3c803f['yKddd'],_0x1c7daf(0x95)+_0x43b121+_0x1c7daf(0xb4)+_0xcce18b,{},this.#config),_0x4e0f26=_0x3cc006[_0x1c7daf(0x96)];return logger[_0x1c7daf(0xd2)](_0x3c803f['KtauK']),_0x4e0f26[_0x1c7daf(0xbf)];}catch(_0x42d675){return logger[_0x1c7daf(0xd7)](_0x1c7daf(0xb7)+_0x42d675),null;}}async[a142_0x482c59(0xd0)](){const _0x5d76ac=a142_0x482c59,_0x3ca8c6={'thpFa':function(_0x325d00,_0x306dd9){return _0x325d00(_0x306dd9);},'KrNEX':function(_0x264339,_0x5f4e1f){return _0x264339+_0x5f4e1f;},'dWylD':_0x5d76ac(0xdf),'rAGNe':'percy.json'};if(!this.#config[_0x5d76ac(0xa0)])return null;const _0x3fb29d=path[_0x5d76ac(0xd4)](os[_0x5d76ac(0xb1)](),_0x3ca8c6[_0x5d76ac(0xbb)]),_0x47aa27=this.#config[_0x5d76ac(0xa0)];return!_0x47aa27[_0x5d76ac(0xcf)]&&(_0x47aa27['version']='2'),new Promise((_0x56e235,_0x362ad0)=>{const _0x137a4b=_0x5d76ac;fs['writeFile'](_0x3fb29d,JSON[_0x137a4b(0xc6)](_0x47aa27),_0x935440=>{const _0xb1ff7e=_0x137a4b;_0x935440&&(logger[_0xb1ff7e(0xd7)]('Error\x20creating\x20percy\x20config:\x20'+_0x935440),_0x3ca8c6[_0xb1ff7e(0xbe)](_0x56e235,null)),logger['debug'](_0x3ca8c6['KrNEX'](_0x3ca8c6[_0xb1ff7e(0xc0)],_0x3fb29d)),_0x3ca8c6['thpFa'](_0x56e235,_0x3fb29d);});});}}module[a142_0x482c59(0xdc)]=Percy;function a142_0x5a2e(){const _0xf393de=['join','90033PqolxP','YkSNy','error','3911032qVVsjs','close','18sCJwxW','percy/healthcheck','exports','isProcessRunning','XngoB','Percy\x20config\x20created\x20at\x20','path','assign','app:exec','pipe','stop','isRunning','22230vtegwo','api/app_percy/get_project_token?name=','data','stderr','VdhGY','getBinaryPath','DOWNLOAD','../helper','bmwmL','oMJBn','KtauK','11wYkUfq','percyOptions','Percy\x20fetch\x20token\x20success','start','../../helpers/performance/performance-tester','1176msGbfo','automate','EiwHc','push','../../helpers/performance/constants','55861daesDk','GEswL','../../helpers/testhub/constants','fetchPercyToken','stdout','healthcheck','KHqHC','nodeRequest','tmpdir','./PercyBinary','2fBvUgR','&type=','GET','env','Percy\x20unable\x20to\x20fetch\x20project\x20token:\x20','7772380FRJPZZ','272JdgaqY','projectName','rAGNe','kMaSA','end','thpFa','token','dWylD','exec','app','TcEcj','winstonLogger','1062603JpIalW','stringify','child_process','6oubXlJ','createWriteStream','76279TkCBvk','../logger','exec:stop','BROWSERSTACK_TESTHUB_UUID','FVpSM','version','createPercyConfig','mTsIL','debug','aIEbm'];a142_0x5a2e=function(){return _0xf393de;};return a142_0x5a2e();}
|
|
@@ -1 +1 @@
|
|
|
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
|
+
const a143_0x25300d=a143_0x1b1c;(function(_0x14d337,_0x39c2d3){const _0x43fb0a=a143_0x1b1c,_0x5d839c=_0x14d337();while(!![]){try{const _0x5216a2=parseInt(_0x43fb0a(0x208))/0x1+parseInt(_0x43fb0a(0x1ad))/0x2+parseInt(_0x43fb0a(0x1fe))/0x3*(-parseInt(_0x43fb0a(0x1c1))/0x4)+-parseInt(_0x43fb0a(0x1d4))/0x5+parseInt(_0x43fb0a(0x233))/0x6+-parseInt(_0x43fb0a(0x1bc))/0x7+-parseInt(_0x43fb0a(0x1f1))/0x8;if(_0x5216a2===_0x39c2d3)break;else _0x5d839c['push'](_0x5d839c['shift']());}catch(_0x113351){_0x5d839c['push'](_0x5d839c['shift']());}}}(a143_0x383a,0xb7b02));const {https}=require(a143_0x25300d(0x1cf)),url=require(a143_0x25300d(0x23a)),yauzl=require(a143_0x25300d(0x20c)),fs=require('fs'),path=require(a143_0x25300d(0x1f2)),os=require('os'),{spawn}=require(a143_0x25300d(0x235)),HttpsProxyAgent=require(a143_0x25300d(0x1bf)),logger=require('../logger')['winstonLogger'];function a143_0x1b1c(_0x133595,_0x27bd79){const _0x383a94=a143_0x383a();return a143_0x1b1c=function(_0x1b1c88,_0x455b8a){_0x1b1c88=_0x1b1c88-0x1a4;let _0x29109b=_0x383a94[_0x1b1c88];return _0x29109b;},a143_0x1b1c(_0x133595,_0x27bd79);}class PercyBinary{#hostOS=process[a143_0x25300d(0x1e2)];#httpPath=null;#binaryName=a143_0x25300d(0x1e0);#orderedPaths=[path['join'](this.#homedir(),a143_0x25300d(0x1af)),process[a143_0x25300d(0x228)](),os[a143_0x25300d(0x1a9)]()];constructor(){const _0x141f89=a143_0x25300d,_0x48015f={};_0x48015f[_0x141f89(0x1b8)]='https://github.com/percy/cli/releases/latest/download',_0x48015f[_0x141f89(0x1db)]=function(_0x4bc6d1,_0x2d9346){return _0x4bc6d1+_0x2d9346;},_0x48015f[_0x141f89(0x1f9)]=_0x141f89(0x207),_0x48015f[_0x141f89(0x222)]=function(_0x175495,_0x57f08f){return _0x175495+_0x57f08f;},_0x48015f[_0x141f89(0x1ce)]=_0x141f89(0x230),_0x48015f[_0x141f89(0x1e7)]=_0x141f89(0x1da),_0x48015f['FMgMc']='/percy-linux.zip';const _0x43b632=_0x48015f,_0x1d2887=_0x43b632[_0x141f89(0x1b8)];if(this.#hostOS[_0x141f89(0x221)](/darwin|mac os/i))this.#httpPath=_0x43b632['IeGxP'](_0x1d2887,_0x43b632[_0x141f89(0x1f9)]);else this.#hostOS[_0x141f89(0x221)](/mswin|msys|mingw|cygwin|bccwin|wince|emc|win32/i)?(this.#httpPath=_0x43b632[_0x141f89(0x222)](_0x1d2887,_0x43b632['uKstt']),this.#binaryName=_0x43b632[_0x141f89(0x1e7)]):this.#httpPath=_0x43b632[_0x141f89(0x222)](_0x1d2887,_0x43b632['FMgMc']);}#getAvailableDirs(){const _0x5aacbc=a143_0x25300d,_0x42c8ec={};_0x42c8ec[_0x5aacbc(0x1ba)]=function(_0x4a22f0,_0x58972a){return _0x4a22f0<_0x58972a;},_0x42c8ec[_0x5aacbc(0x203)]=_0x5aacbc(0x1d7);const _0xd90a64=_0x42c8ec;for(var _0x981476=0x0;_0xd90a64[_0x5aacbc(0x1ba)](_0x981476,this.#orderedPaths[_0x5aacbc(0x218)]);_0x981476++){var _0x34f596=this.#orderedPaths[_0x981476];if(this.#makePath(_0x34f596))return _0x34f596;}throw new Error(_0xd90a64['JAzix']);}#makePath(_0x19a679){try{return _0x19a679&&!this.#checkPath(_0x19a679)&&fs['mkdirSync'](_0x19a679),!![];}catch{return![];}}#checkPath(_0x2f14dd,_0x47b2fb){const _0x147e9b=a143_0x25300d,_0x57cc9c={};_0x57cc9c[_0x147e9b(0x1a8)]=function(_0x1842d7,_0x3063c2){return _0x1842d7|_0x3063c2;},_0x57cc9c[_0x147e9b(0x1ea)]=function(_0x21df20,_0x8252b5){return _0x21df20!==_0x8252b5;},_0x57cc9c['zSOli']=_0x147e9b(0x1b4);const _0x63d878=_0x57cc9c;_0x47b2fb=_0x47b2fb||_0x63d878['FRYgN'](fs[_0x147e9b(0x1b5)],fs['W_OK']);try{return fs[_0x147e9b(0x200)](_0x2f14dd,_0x47b2fb),!![];}catch(_0x2b9041){if(_0x63d878[_0x147e9b(0x1ea)](typeof fs[_0x147e9b(0x200)],_0x63d878['zSOli']))return![];try{return fs[_0x147e9b(0x215)](_0x2f14dd),!![];}catch(_0x2f67d5){return![];}}}#getETagPath(_0x4367bd){const _0xbc0f83=a143_0x25300d;return path[_0xbc0f83(0x1ec)](_0x4367bd,this.#binaryName+'.etag');}#loadETag(_0x5cd3e0){const _0x2de31f=a143_0x25300d,_0x257476={};_0x257476[_0x2de31f(0x22b)]=_0x2de31f(0x223);const _0x513ce4=_0x257476,_0x64b60a=this.#getETagPath(_0x5cd3e0);if(this.#checkPath(_0x64b60a))try{return fs[_0x2de31f(0x239)](_0x64b60a,_0x513ce4['figgz'])[_0x2de31f(0x1a5)]();}catch(_0x5c805d){logger[_0x2de31f(0x226)]('Failed\x20to\x20read\x20ETag\x20file:\x20'+_0x5c805d);}return null;}#saveETag(_0x7a2116,_0x40fa6f){const _0x54fca3=a143_0x25300d,_0x292ee2={};_0x292ee2[_0x54fca3(0x1f6)]=_0x54fca3(0x217);const _0x36f248=_0x292ee2;if(!_0x40fa6f)return;try{const _0x52b91f=this.#getETagPath(_0x7a2116);fs[_0x54fca3(0x1e4)](_0x52b91f,_0x40fa6f),logger['debug'](_0x36f248[_0x54fca3(0x1f6)]);}catch(_0x2cfc89){logger[_0x54fca3(0x226)](_0x54fca3(0x1b6)+_0x2cfc89);}}async #handleBinaryDownload(_0x1ef05e,_0x558ed7,_0x386c49){const _0x5eb8be=a143_0x25300d,_0x9845f9={};_0x9845f9[_0x5eb8be(0x22e)]=_0x5eb8be(0x1ee);const _0x10a06a=_0x9845f9,_0x57d90f=await this[_0x5eb8be(0x1fc)](_0x1ef05e[_0x5eb8be(0x1d8)]);if(!_0x57d90f){logger['error'](_0x10a06a[_0x5eb8be(0x22e)]);const _0x1757eb=await this['download'](_0x558ed7,_0x386c49);return _0x1757eb[_0x5eb8be(0x1d8)];}return _0x1ef05e[_0x5eb8be(0x1d8)];}async[a143_0x25300d(0x21a)](_0x4df98b){const _0x17a83f=a143_0x25300d,_0x5c77ee={};_0x5c77ee['AsYNQ']=_0x17a83f(0x1b0),_0x5c77ee[_0x17a83f(0x236)]=_0x17a83f(0x20e);const _0x4ef668=_0x5c77ee,_0x3b2cd4=this.#getAvailableDirs(),_0x43cf11=path[_0x17a83f(0x1ec)](_0x3b2cd4,this.#binaryName);if(this.#checkPath(_0x43cf11,fs['X_OK'])){const _0x4425de=this.#loadETag(_0x3b2cd4);if(_0x4425de)try{const _0x41c863=await this['download'](_0x4df98b,_0x3b2cd4,_0x4425de);if(!_0x41c863[_0x17a83f(0x1f5)])return logger[_0x17a83f(0x1ca)](_0x4ef668[_0x17a83f(0x1e1)]),_0x43cf11;return logger[_0x17a83f(0x1ca)](_0x4ef668[_0x17a83f(0x236)]),await this.#handleBinaryDownload(_0x41c863,_0x4df98b,_0x3b2cd4);}catch(_0x85d35c){return logger[_0x17a83f(0x226)]('Failed\x20to\x20check\x20for\x20binary\x20updates,\x20using\x20existing\x20binary:\x20'+_0x85d35c),_0x43cf11;}}const _0x3a8187=await this[_0x17a83f(0x20d)](_0x4df98b,_0x3b2cd4);return await this.#handleBinaryDownload(_0x3a8187,_0x4df98b,_0x3b2cd4);}[a143_0x25300d(0x20d)](_0x355fa9,_0x3b99c9,_0x14bdf5=null){const _0x1aa81e=a143_0x25300d,_0x496f12={'yiUTX':function(_0x4c8903,_0x4fdfc2){return _0x4c8903(_0x4fdfc2);},'ckeXb':function(_0x2bf8c0,_0x27ac2e){return _0x2bf8c0===_0x27ac2e;},'nQZvI':_0x1aa81e(0x1de),'SbBhP':_0x1aa81e(0x212),'Deyel':function(_0x3f0335,_0x5b5ab9){return _0x3f0335(_0x5b5ab9);},'NjmDF':function(_0x1c0c60,_0x3666bb){return _0x1c0c60+_0x3666bb;},'obIgX':'.zip'};_0x3b99c9&&!this.#checkPath(_0x3b99c9)&&fs[_0x1aa81e(0x231)](_0x3b99c9);const _0x105c20=this.#binaryName,_0x5b15bd=path['join'](_0x3b99c9,_0x496f12['NjmDF'](_0x105c20,_0x496f12[_0x1aa81e(0x1fd)])),_0xf3f48a=fs[_0x1aa81e(0x1aa)](_0x5b15bd),_0x5ddc40=url['parse'](this.#httpPath);if(_0x355fa9[_0x1aa81e(0x1c9)]&&_0x355fa9[_0x1aa81e(0x1e8)]){const _0x48ce81={};_0x48ce81[_0x1aa81e(0x234)]=_0x355fa9[_0x1aa81e(0x1c9)],_0x48ce81[_0x1aa81e(0x1a4)]=_0x355fa9[_0x1aa81e(0x1e8)],_0x5ddc40[_0x1aa81e(0x1ff)]=new HttpsProxyAgent(_0x48ce81);}if(_0x355fa9[_0x1aa81e(0x1ac)])try{_0x5ddc40['ca']=fs[_0x1aa81e(0x239)](_0x355fa9[_0x1aa81e(0x1ac)]);}catch(_0xe61f9f){logger[_0x1aa81e(0x1de)](_0x1aa81e(0x1ef)+_0xe61f9f);}if(_0x14bdf5){const _0x3c9d35={};_0x3c9d35[_0x1aa81e(0x1cb)]=_0x14bdf5,_0x3c9d35[_0x1aa81e(0x1a6)]=_0x496f12[_0x1aa81e(0x213)],_0x5ddc40[_0x1aa81e(0x211)]=_0x3c9d35;}else{const _0x3783a7={};_0x3783a7[_0x1aa81e(0x1a6)]=_0x496f12[_0x1aa81e(0x213)],_0x5ddc40[_0x1aa81e(0x211)]=_0x3783a7;}return new Promise((_0x4a64aa,_0x200bb9)=>{const _0x467160=_0x1aa81e,_0x33d9ab={'YTeuo':function(_0x28b920,_0x4c7185){const _0x50dc1a=a143_0x1b1c;return _0x496f12[_0x50dc1a(0x1c3)](_0x28b920,_0x4c7185);}};https['get'](_0x5ddc40,_0x52bb47=>{const _0x3954b7=a143_0x1b1c,_0x36513b={'VxUJK':function(_0x36f240,_0x35adea){const _0x1af67e=a143_0x1b1c;return _0x496f12[_0x1af67e(0x1fa)](_0x36f240,_0x35adea);}};if(_0x14bdf5&&_0x496f12[_0x3954b7(0x210)](_0x52bb47[_0x3954b7(0x21d)],0x130)){_0xf3f48a[_0x3954b7(0x1e6)]();const _0x4c12aa={};_0x4c12aa[_0x3954b7(0x1f5)]=![],_0x496f12['yiUTX'](_0x4a64aa,_0x4c12aa);return;}const _0x2ce09b=_0x52bb47[_0x3954b7(0x211)][_0x3954b7(0x214)];_0x2ce09b&&this.#saveETag(_0x3b99c9,_0x2ce09b),_0x52bb47[_0x3954b7(0x21b)](_0xf3f48a),_0x52bb47['on'](_0x496f12[_0x3954b7(0x1d9)],function(_0x23e8d2){const _0x41378e=_0x3954b7;logger[_0x41378e(0x1de)]('Got\x20Error\x20in\x20percy\x20binary\x20download\x20response:\x20'+_0x23e8d2),_0x33d9ab[_0x41378e(0x209)](_0x200bb9,_0x23e8d2);}),_0xf3f48a['on'](_0x496f12[_0x3954b7(0x1d9)],function(_0x12c88c){const _0x12d2b8=_0x3954b7;logger[_0x12d2b8(0x1de)]('Got\x20Error\x20while\x20downloading\x20percy\x20binary\x20file:\x20'+_0x12c88c),_0x36513b[_0x12d2b8(0x1bd)](_0x200bb9,_0x12c88c);}),_0xf3f48a['on'](_0x496f12[_0x3954b7(0x213)],()=>{const _0x326223=_0x3954b7;this[_0x326223(0x216)](_0x5b15bd,_0x3b99c9)[_0x326223(0x20f)](_0x58fe9d=>_0x4a64aa({'needsUpdate':!![],'binaryPath':_0x58fe9d}))[_0x326223(0x1d2)](_0x200bb9);});})['on'](_0x496f12[_0x467160(0x1d9)],function(_0x329237){const _0x3f1d34=_0x467160;logger[_0x3f1d34(0x1de)](_0x3f1d34(0x1b9)+_0x329237),_0x33d9ab['YTeuo'](_0x200bb9,_0x329237);});});}[a143_0x25300d(0x216)](_0x305a69,_0x19521e){const _0x1c4e95=a143_0x25300d,_0x224f6f={'aweRB':function(_0x151d97,_0x221bf1){return _0x151d97(_0x221bf1);},'uqOgk':_0x1c4e95(0x23b),'ltbEm':function(_0x291046,_0x254c6b){return _0x291046===_0x254c6b;},'mTGnV':function(_0x531436,_0x607fbb){return _0x531436(_0x607fbb);},'VDedu':function(_0x1713c0,_0xa99c07){return _0x1713c0(_0xa99c07);},'qtMEf':_0x1c4e95(0x205),'tvxvG':_0x1c4e95(0x1ae),'Smmhx':_0x1c4e95(0x1de)},_0x4d7b92=this.#binaryName,_0x641577=path[_0x1c4e95(0x1ec)](_0x19521e,_0x4d7b92);return new Promise((_0x25f880,_0x94fdba)=>{const _0x326515=_0x1c4e95,_0x3fd129={'TwVlG':function(_0x490065,_0x505d8d){return _0x224f6f['aweRB'](_0x490065,_0x505d8d);},'WShbQ':_0x224f6f['uqOgk'],'mVAxQ':function(_0x54da2c,_0x161a86){const _0x45a539=a143_0x1b1c;return _0x224f6f[_0x45a539(0x22c)](_0x54da2c,_0x161a86);},'mWJwX':function(_0x2c66aa,_0x2e8f80){return _0x224f6f['mTGnV'](_0x2c66aa,_0x2e8f80);},'ZKneT':function(_0x108a5a,_0x19ef01){const _0x4cef44=a143_0x1b1c;return _0x224f6f[_0x4cef44(0x1f7)](_0x108a5a,_0x19ef01);},'wTANy':_0x224f6f[_0x326515(0x1dc)],'KYRGL':_0x224f6f['tvxvG'],'mZpFd':_0x224f6f[_0x326515(0x1b3)]},_0x567a59={};_0x567a59[_0x326515(0x1eb)]=!![],yauzl['open'](_0x305a69,_0x567a59,function(_0x377977,_0x1b4de8){const _0x3813e1=_0x326515,_0x39a65b={'fIBfa':function(_0x217685,_0x442242){const _0x2c94c5=a143_0x1b1c;return _0x3fd129[_0x2c94c5(0x1f0)](_0x217685,_0x442242);},'hzCjw':function(_0x15f68d,_0x192435){return _0x3fd129['TwVlG'](_0x15f68d,_0x192435);},'frExt':function(_0x203c57,_0x517af7){const _0x3064f2=a143_0x1b1c;return _0x3fd129[_0x3064f2(0x22f)](_0x203c57,_0x517af7);},'YyeSR':_0x3fd129[_0x3813e1(0x225)]};_0x377977&&_0x3fd129[_0x3813e1(0x22f)](_0x94fdba,_0x377977),_0x1b4de8[_0x3813e1(0x232)](),_0x1b4de8['on'](_0x3fd129[_0x3813e1(0x224)],_0x22a41a=>{const _0x2f0670=_0x3813e1,_0x472a0f={'kbdOR':function(_0x5ec2b8,_0x1ea23c){const _0x24f97d=a143_0x1b1c;return _0x3fd129[_0x24f97d(0x1b2)](_0x5ec2b8,_0x1ea23c);},'lcGzm':_0x3fd129[_0x2f0670(0x1c7)]};if(/\/$/[_0x2f0670(0x1dd)](_0x22a41a[_0x2f0670(0x1c6)]))_0x1b4de8[_0x2f0670(0x232)]();else{const _0x55ef2b=fs[_0x2f0670(0x1aa)](path[_0x2f0670(0x1ec)](_0x19521e,_0x22a41a[_0x2f0670(0x1c6)]));_0x1b4de8[_0x2f0670(0x1c0)](_0x22a41a,function(_0x461cf1,_0xd4be03){const _0x1c1c72=_0x2f0670;_0x461cf1&&_0x472a0f[_0x1c1c72(0x1c5)](_0x94fdba,_0x377977),_0xd4be03['on'](_0x472a0f[_0x1c1c72(0x229)],function(){const _0x50a033=_0x1c1c72;_0x55ef2b[_0x50a033(0x212)](),_0x1b4de8['readEntry']();}),_0xd4be03[_0x1c1c72(0x21b)](_0x55ef2b);}),_0x3fd129[_0x2f0670(0x23c)](_0x22a41a[_0x2f0670(0x1c6)],_0x4d7b92)&&_0x1b4de8[_0x2f0670(0x212)]();}}),_0x1b4de8['on'](_0x3fd129[_0x3813e1(0x1d0)],_0x3a53b5=>{const _0x490c45=_0x3813e1;_0x39a65b[_0x490c45(0x220)](_0x94fdba,_0x3a53b5);}),_0x1b4de8[_0x3813e1(0x1f8)](_0x3fd129[_0x3813e1(0x1c7)],()=>{const _0x5e7e77=_0x3813e1;fs[_0x5e7e77(0x1d5)](_0x641577,_0x39a65b[_0x5e7e77(0x1d6)],function(_0x5a4771){const _0x1776f8=_0x5e7e77;_0x5a4771&&_0x39a65b[_0x1776f8(0x1c4)](_0x94fdba,_0x5a4771),_0x39a65b[_0x1776f8(0x1cd)](_0x25f880,_0x641577);}),_0x1b4de8[_0x5e7e77(0x212)]();});});});}async[a143_0x25300d(0x1fc)](_0x2db203){const _0x31081b=a143_0x25300d,_0x5c9fd9={'cVYAi':function(_0x583d8c,_0x2b77f1){return _0x583d8c(_0x2b77f1);},'XjwkP':function(_0x946836,_0xd35658,_0x47880e,_0x4c2ae8){return _0x946836(_0xd35658,_0x47880e,_0x4c2ae8);},'KOHqJ':_0x31081b(0x201),'HKIot':'data','mLvpJ':'close'},_0x4515cc=/^.*@percy\/cli \d.\d+.\d+/;return new Promise((_0x16d9a0,_0x504f68)=>{const _0x3f03c7=_0x31081b,_0x3e63e0={'jYBdV':function(_0x34d83a,_0x3f0e7a){const _0x5988c5=a143_0x1b1c;return _0x5c9fd9[_0x5988c5(0x1a7)](_0x34d83a,_0x3f0e7a);}},_0x90ae30={};_0x90ae30[_0x3f03c7(0x238)]=process['env'];const _0x1fd8a3=_0x5c9fd9[_0x3f03c7(0x1f3)](spawn,_0x2db203,[_0x5c9fd9[_0x3f03c7(0x1ed)]],_0x90ae30);_0x1fd8a3[_0x3f03c7(0x20b)]['on'](_0x5c9fd9['HKIot'],_0x385d10=>{_0x4515cc['test'](_0x385d10)&&_0x3e63e0['jYBdV'](_0x16d9a0,!![]);}),_0x1fd8a3['on'](_0x5c9fd9[_0x3f03c7(0x1d1)],()=>{_0x5c9fd9['cVYAi'](_0x16d9a0,![]);});});}#homedir(){const _0x6bc8e3=a143_0x25300d,_0x4da08b={};_0x4da08b[_0x6bc8e3(0x22a)]=function(_0x321306,_0x536701){return _0x321306===_0x536701;},_0x4da08b[_0x6bc8e3(0x1cc)]=_0x6bc8e3(0x1c2),_0x4da08b[_0x6bc8e3(0x21f)]=_0x6bc8e3(0x1ab),_0x4da08b['ovqLV']=function(_0x5a7b51,_0x12f092){return _0x5a7b51+_0x12f092;},_0x4da08b['XuThq']='darwin',_0x4da08b['XZDPs']=function(_0x4bbf68,_0x349289){return _0x4bbf68+_0x349289;},_0x4da08b[_0x6bc8e3(0x206)]='/Users/',_0x4da08b['NkuZb']=_0x6bc8e3(0x1be),_0x4da08b[_0x6bc8e3(0x1f4)]=function(_0x158a7d,_0x4a8a8a){return _0x158a7d===_0x4a8a8a;},_0x4da08b[_0x6bc8e3(0x22d)]=_0x6bc8e3(0x1b1),_0x4da08b[_0x6bc8e3(0x237)]=function(_0x1b6601,_0x42769f){return _0x1b6601+_0x42769f;},_0x4da08b[_0x6bc8e3(0x1df)]=_0x6bc8e3(0x227),_0x4da08b[_0x6bc8e3(0x1bb)]=function(_0xdccf26,_0x1fc734){return _0xdccf26||_0x1fc734;};const _0x158ecd=_0x4da08b;if(_0x158ecd[_0x6bc8e3(0x22a)](typeof os[_0x6bc8e3(0x202)],_0x158ecd[_0x6bc8e3(0x1cc)]))return os[_0x6bc8e3(0x202)]();const _0x274db1=process[_0x6bc8e3(0x238)],_0x4e6172=_0x274db1[_0x6bc8e3(0x1b7)],_0x5e6ba1=_0x274db1[_0x6bc8e3(0x1d3)]||_0x274db1[_0x6bc8e3(0x1e3)]||_0x274db1['LNAME']||_0x274db1[_0x6bc8e3(0x1fb)];if(_0x158ecd[_0x6bc8e3(0x22a)](process[_0x6bc8e3(0x1e2)],_0x158ecd[_0x6bc8e3(0x21f)]))return _0x274db1[_0x6bc8e3(0x204)]||_0x158ecd['ovqLV'](_0x274db1[_0x6bc8e3(0x219)],_0x274db1[_0x6bc8e3(0x1e9)])||_0x4e6172||null;if(_0x158ecd[_0x6bc8e3(0x22a)](process[_0x6bc8e3(0x1e2)],_0x158ecd[_0x6bc8e3(0x1c8)]))return _0x4e6172||(_0x5e6ba1?_0x158ecd[_0x6bc8e3(0x21c)](_0x158ecd[_0x6bc8e3(0x206)],_0x5e6ba1):null);if(_0x158ecd['ncTuN'](process[_0x6bc8e3(0x1e2)],_0x158ecd[_0x6bc8e3(0x21e)]))return _0x4e6172||(_0x158ecd[_0x6bc8e3(0x1f4)](process[_0x6bc8e3(0x20a)](),0x0)?_0x158ecd['iurCu']:_0x5e6ba1?_0x158ecd['dKAsx'](_0x158ecd[_0x6bc8e3(0x1df)],_0x5e6ba1):null);return _0x158ecd[_0x6bc8e3(0x1bb)](_0x4e6172,null);}}function a143_0x383a(){const _0x5c38e0=['fileName','WShbQ','XuThq','proxyHost','debug','If-None-Match','EEwte','frExt','uKstt','follow-redirects','mZpFd','mLvpJ','catch','LOGNAME','439330BkwIvB','chmod','YyeSR','Error\x20trying\x20to\x20download\x20percy\x20binary','binaryPath','nQZvI','percy.exe','IeGxP','qtMEf','test','error','EKbRD','percy','AsYNQ','platform','USER','writeFileSync','exports','destroy','gdqjg','proxyPort','HOMEPATH','TchZK','lazyEntries','join','KOHqJ','Newly\x20downloaded\x20Percy\x20binary\x20is\x20corrupt,\x20retrying','Percy\x20download\x20failed\x20to\x20read\x20cert\x20file:\x20','mWJwX','5950536QuyOjO','path','XjwkP','DnGaM','needsUpdate','egoNg','VDedu','once','MUKfY','yiUTX','USERNAME','validateBinary','obIgX','7581NOdwiS','agent','accessSync','--version','homedir','JAzix','USERPROFILE','0755','HvuCm','/percy-osx.zip','668152gvNRIi','YTeuo','getuid','stdout','yauzl','download','New\x20Percy\x20binary\x20version\x20available,\x20downloading\x20update','then','ckeXb','headers','close','SbBhP','etag','statSync','extractAndSaveBinary','Saved\x20new\x20ETag\x20for\x20percy\x20binary','length','HOMEDRIVE','getBinaryPath','pipe','XZDPs','statusCode','NkuZb','dCsyy','fIBfa','match','gDdFp','utf8','KYRGL','wTANy','warn','/home/','cwd','lcGzm','ncTuN','figgz','ltbEm','iurCu','iNMQJ','ZKneT','/percy-win.zip','mkdirSync','readEntry','7020786JCQJhF','host','child_process','Vtbxl','dKAsx','env','readFileSync','url','end','mVAxQ','port','trim','Connection','cVYAi','FRYgN','tmpdir','createWriteStream','win32','useCaCertificate','1581848LtgqtU','entry','.browserstack','Percy\x20binary\x20is\x20up\x20to\x20date\x20(ETag\x20unchanged)','/root','TwVlG','Smmhx','undefined','R_OK','Failed\x20to\x20save\x20ETag\x20file:\x20','HOME','nLwkl','Got\x20Error\x20in\x20percy\x20binary\x20downloading\x20request:\x20','JLzhR','UJXWH','2080022AWophw','VxUJK','linux','https-proxy-agent','openReadStream','1184ukWDAi','function','Deyel','hzCjw','kbdOR'];a143_0x383a=function(){return _0x5c38e0;};return a143_0x383a();}module[a143_0x25300d(0x1e5)]=PercyBinary;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a144_0x57c3fe=a144_0x6117;(function(_0x35f8b4,_0x54b128){var _0x16fd87=a144_0x6117,_0x17a991=_0x35f8b4();while(!![]){try{var _0x47a183=-parseInt(_0x16fd87(0x90))/0x1+-parseInt(_0x16fd87(0x93))/0x2*(-parseInt(_0x16fd87(0x95))/0x3)+parseInt(_0x16fd87(0x89))/0x4*(-parseInt(_0x16fd87(0x91))/0x5)+-parseInt(_0x16fd87(0x8c))/0x6+-parseInt(_0x16fd87(0x8e))/0x7*(-parseInt(_0x16fd87(0x8d))/0x8)+-parseInt(_0x16fd87(0x94))/0x9+parseInt(_0x16fd87(0x8f))/0xa;if(_0x47a183===_0x54b128)break;else _0x17a991['push'](_0x17a991['shift']());}catch(_0xd3df93){_0x17a991['push'](_0x17a991['shift']());}}}(a144_0x5060,0xc4584));function a144_0x6117(_0x242ed6,_0x584a4c){var _0x50608d=a144_0x5060();return a144_0x6117=function(_0x61170c,_0x336fd8){_0x61170c=_0x61170c-0x89;var _0x3e3275=_0x50608d[_0x61170c];return _0x3e3275;},a144_0x6117(_0x242ed6,_0x584a4c);}class PercyCaptureMap{#map={};[a144_0x57c3fe(0x92)](_0x2ba20c,_0x4513fb){!this.#map[_0x2ba20c]&&(this.#map[_0x2ba20c]={}),!this.#map[_0x2ba20c][_0x4513fb]&&(this.#map[_0x2ba20c][_0x4513fb]=0x0),this.#map[_0x2ba20c][_0x4513fb]++;}[a144_0x57c3fe(0x8a)](_0x509e7c,_0x289366){var _0x17caf0=a144_0x57c3fe;return _0x509e7c+'-'+_0x289366+'-'+this[_0x17caf0(0x8b)](_0x509e7c,_0x289366);}['get'](_0x1c8843,_0x2bf95b){if(!this.#map[_0x1c8843])return 0x0;if(!this.#map[_0x1c8843][_0x2bf95b])return 0x0;return this.#map[_0x1c8843][_0x2bf95b];}}function a144_0x5060(){var _0x1d819e=['3481112Vsktru','7LFzDCS','35255190TOAAEm','1386991QSDfRh','2858280HGyonj','increment','42RxRFcv','6470424NOIkTn','225399wgJiNo','8izthuM','getName','get','8909904jLorFB'];a144_0x5060=function(){return _0x1d819e;};return a144_0x5060();}module['exports']=PercyCaptureMap;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a145_0x14b5ec=a145_0x2722;(function(_0x4af5a6,_0x161c16){var _0x4a6b58=a145_0x2722,_0x7e7a45=_0x4af5a6();while(!![]){try{var _0x3f0ea6=parseInt(_0x4a6b58(0x15b))/0x1+-parseInt(_0x4a6b58(0x15e))/0x2+-parseInt(_0x4a6b58(0x15c))/0x3+parseInt(_0x4a6b58(0x15a))/0x4+parseInt(_0x4a6b58(0x161))/0x5*(-parseInt(_0x4a6b58(0x16a))/0x6)+-parseInt(_0x4a6b58(0x163))/0x7*(-parseInt(_0x4a6b58(0x164))/0x8)+-parseInt(_0x4a6b58(0x15f))/0x9*(-parseInt(_0x4a6b58(0x15d))/0xa);if(_0x3f0ea6===_0x161c16)break;else _0x7e7a45['push'](_0x7e7a45['shift']());}catch(_0x53e634){_0x7e7a45['push'](_0x7e7a45['shift']());}}}(a145_0x1873,0x26935));var a145_0x238ad8={};a145_0x238ad8['driver']=[a145_0x14b5ec(0x160)],a145_0x238ad8[a145_0x14b5ec(0x168)]=[a145_0x14b5ec(0x162),'sendKeys'];var a145_0x34b908={};function a145_0x1873(){var _0x432552=['515svbXWo','click','399HiIbrk','18120OFLHSq','screenshot','manual','testcase','element','exports','12462viFbTz','262336tkgPdO','211020soVgHt','306156QXCUCx','2275970wBGiQl','318636pEzsnW','9uNxLtg','takeScreenshot'];a145_0x1873=function(){return _0x432552;};return a145_0x1873();}a145_0x34b908['driver']=[a145_0x14b5ec(0x160)];var a145_0x1aeaa6={};a145_0x1aeaa6['element']=[a145_0x14b5ec(0x162)];var a145_0x1151fc={};function a145_0x2722(_0x11ff41,_0x425185){var _0x187382=a145_0x1873();return a145_0x2722=function(_0x27225b,_0x4472e9){_0x27225b=_0x27225b-0x15a;var _0xa45cfa=_0x187382[_0x27225b];return _0xa45cfa;},a145_0x2722(_0x11ff41,_0x425185);}a145_0x1151fc['auto']=a145_0x238ad8,a145_0x1151fc[a145_0x14b5ec(0x165)]=a145_0x34b908,a145_0x1151fc['click']=a145_0x1aeaa6,a145_0x1151fc[a145_0x14b5ec(0x167)]={},a145_0x1151fc[a145_0x14b5ec(0x166)]={},module[a145_0x14b5ec(0x169)]=a145_0x1151fc;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a146_0x50e4(_0x234071,_0x9fe2a7){const _0x5b3dae=a146_0x5b3d();return a146_0x50e4=function(_0x50e4cd,_0x41a752){_0x50e4cd=_0x50e4cd-0x1a5;let _0x18d4c0=_0x5b3dae[_0x50e4cd];return _0x18d4c0;},a146_0x50e4(_0x234071,_0x9fe2a7);}function a146_0x5b3d(){const _0xc21b58=['../performance/constants','length','Unsupported\x20driver\x20for\x20percy','488574EIQUuR','@percy/selenium-webdriver','error','platformIndex','apply','SNAPSHOT','name','KXrYQ','7969728pQhsCg','../performance/performance-tester','pwUQM','testCase','@percy/appium-app','lEEox','uuid','uWmKx','measure','195500DbqQis','../../helpers/testhub/utils','1502156SwHdwE','screenshot','373110HAGauF','RibqR','WMsCq','nZchm','thTestCaseExecutionId','SCREENSHOT_APP','browserstackPlatformIndex','1CjAtQZ','browserstackPercyBestPlatform','winstonLogger','CUHgm','screenshotApp','SCREENSHOT','1032374ZSFEfV','2583174uJRTzE','../logger'];a146_0x5b3d=function(){return _0xc21b58;};return a146_0x5b3d();}const a146_0x143651=a146_0x50e4;(function(_0x47280c,_0x133141){const _0xf6a92e=a146_0x50e4,_0x48e116=_0x47280c();while(!![]){try{const _0x1694a6=-parseInt(_0xf6a92e(0x1c8))/0x1*(parseInt(_0xf6a92e(0x1ac))/0x2)+parseInt(_0xf6a92e(0x1c1))/0x3+-parseInt(_0xf6a92e(0x1bf))/0x4+parseInt(_0xf6a92e(0x1bd))/0x5+-parseInt(_0xf6a92e(0x1a7))/0x6+parseInt(_0xf6a92e(0x1a6))/0x7+parseInt(_0xf6a92e(0x1b4))/0x8;if(_0x1694a6===_0x133141)break;else _0x48e116['push'](_0x48e116['shift']());}catch(_0x582011){_0x48e116['push'](_0x48e116['shift']());}}}(a146_0x5b3d,0x3eb2d));const tryRequire=function(_0x46696d,_0x1f9341){const _0x2483ba=a146_0x50e4,_0x195d02={'RibqR':function(_0x216398,_0x34fc9a){return _0x216398(_0x34fc9a);}};try{return _0x195d02[_0x2483ba(0x1c2)](require,_0x46696d);}catch{return _0x1f9341;}},percySnapshot=tryRequire('@percy/selenium-webdriver',null),{percyScreenshot}=tryRequire(a146_0x143651(0x1ad),{}),percyAppScreenshot=require(a146_0x143651(0x1b8)),{getCurrentTestData}=require(a146_0x143651(0x1be)),PerformanceTester=require(a146_0x143651(0x1b5)),{PERCY_EVENTS:PerformanceEvents}=require(a146_0x143651(0x1a9)),logger=require(a146_0x143651(0x1a8))[a146_0x143651(0x1ca)];percySnapshot&&(exports['snapshot']=async function(){const _0x496b69=a146_0x143651,_0x434a8b={'pwUQM':function(_0xccc228,_0x483056){return _0xccc228!==_0x483056;},'WMsCq':function(_0x4f7dea,_0x2522d2){return _0x4f7dea>=_0x2522d2;},'uWmKx':function(_0x50a0c6){return _0x50a0c6();}};if(global[_0x496b69(0x1c7)]&&_0x434a8b[_0x496b69(0x1b6)](global[_0x496b69(0x1c7)],global[_0x496b69(0x1c9)]))return;const _0x3a8c07=_0x434a8b[_0x496b69(0x1c3)](arguments[_0x496b69(0x1aa)],0x2)?arguments[0x1]:'',_0x14d3e5=_0x434a8b[_0x496b69(0x1bb)](getCurrentTestData),_0x386f29={};return _0x386f29[_0x496b69(0x1b2)]=_0x3a8c07,_0x386f29[_0x496b69(0x1b7)]=_0x14d3e5['name']||'',_0x386f29[_0x496b69(0x1c5)]=_0x14d3e5[_0x496b69(0x1ba)]||'',_0x386f29[_0x496b69(0x1af)]=global['browserstackPlatformIndex'],await PerformanceTester['measure'](PerformanceEvents[_0x496b69(0x1b1)],()=>percySnapshot[_0x496b69(0x1b0)](null,arguments),_0x386f29);});percyScreenshot?exports[a146_0x143651(0x1c0)]=async function(){const _0x5bb3ec=a146_0x143651,_0x379279={'vAHsT':function(_0xabd5c8,_0x6e3c36){return _0xabd5c8>=_0x6e3c36;},'nZchm':function(_0xe426cb){return _0xe426cb();}},_0x3bc3e7=_0x379279['vAHsT'](arguments[_0x5bb3ec(0x1aa)],0x2)?arguments[0x1]:'',_0x437e7e=_0x379279[_0x5bb3ec(0x1c4)](getCurrentTestData),_0x5952fa={};return _0x5952fa[_0x5bb3ec(0x1b2)]=_0x3bc3e7,_0x5952fa['testCase']=_0x437e7e[_0x5bb3ec(0x1b2)]||'',_0x5952fa[_0x5bb3ec(0x1c5)]=_0x437e7e[_0x5bb3ec(0x1ba)]||'',_0x5952fa[_0x5bb3ec(0x1af)]=global[_0x5bb3ec(0x1c7)],await PerformanceTester[_0x5bb3ec(0x1bc)](PerformanceEvents[_0x5bb3ec(0x1a5)],()=>percyScreenshot[_0x5bb3ec(0x1b0)](null,arguments),_0x5952fa);}:exports[a146_0x143651(0x1c0)]=()=>{const _0x59f4ab=a146_0x143651,_0x10fcfa={};_0x10fcfa[_0x59f4ab(0x1b3)]=_0x59f4ab(0x1ab);const _0x2fb42d=_0x10fcfa;logger[_0x59f4ab(0x1ae)](_0x2fb42d[_0x59f4ab(0x1b3)]);};exports[a146_0x143651(0x1cc)]=async function(){const _0x173a37=a146_0x143651,_0x4ae0c2={'CUHgm':function(_0xb4632e,_0x601a4c){return _0xb4632e>=_0x601a4c;},'lEEox':function(_0x52363f){return _0x52363f();}},_0x30e675=_0x4ae0c2[_0x173a37(0x1cb)](arguments[_0x173a37(0x1aa)],0x2)?arguments[0x1]:'',_0xc9fdf2=_0x4ae0c2[_0x173a37(0x1b9)](getCurrentTestData),_0x40d6db={};return _0x40d6db[_0x173a37(0x1b2)]=_0x30e675,_0x40d6db[_0x173a37(0x1b7)]=_0xc9fdf2[_0x173a37(0x1b2)]||'',_0x40d6db['thTestCaseExecutionId']=_0xc9fdf2[_0x173a37(0x1ba)]||'',_0x40d6db[_0x173a37(0x1af)]=global[_0x173a37(0x1c7)],await PerformanceTester[_0x173a37(0x1bc)](PerformanceEvents[_0x173a37(0x1c6)],()=>percyAppScreenshot[_0x173a37(0x1b0)](null,arguments),_0x40d6db);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a147_0x4ccc(_0x5a543c,_0x4dafee){var _0x486c39=a147_0x486c();return a147_0x4ccc=function(_0x4ccc7b,_0x2ce93c){_0x4ccc7b=_0x4ccc7b-0x1db;var _0x1f41a5=_0x486c39[_0x4ccc7b];return _0x1f41a5;},a147_0x4ccc(_0x5a543c,_0x4dafee);}var a147_0x8659df=a147_0x4ccc;function a147_0x486c(){var _0x282c40=['6374200vWhiqZ','12IUxexx','6722WqlbgR','304lMNTfs','222687lfJMsz','exports','598917fVyQna','290VzNeLD','233298FkIYyW','./Percy','1246046nuWjqV','744775JNqwjw','603fjrywh'];a147_0x486c=function(){return _0x282c40;};return a147_0x486c();}(function(_0xa18ea7,_0x2c3f6f){var _0x44da9a=a147_0x4ccc,_0x14d5c3=_0xa18ea7();while(!![]){try{var _0x2de3b7=parseInt(_0x44da9a(0x1e7))/0x1+-parseInt(_0x44da9a(0x1df))/0x2*(-parseInt(_0x44da9a(0x1dc))/0x3)+-parseInt(_0x44da9a(0x1de))/0x4*(-parseInt(_0x44da9a(0x1db))/0x5)+-parseInt(_0x44da9a(0x1e5))/0x6+parseInt(_0x44da9a(0x1dd))/0x7+parseInt(_0x44da9a(0x1e0))/0x8*(-parseInt(_0x44da9a(0x1e1))/0x9)+parseInt(_0x44da9a(0x1e4))/0xa*(-parseInt(_0x44da9a(0x1e3))/0xb);if(_0x2de3b7===_0x2c3f6f)break;else _0x14d5c3['push'](_0x14d5c3['shift']());}catch(_0x2c5315){_0x14d5c3['push'](_0x14d5c3['shift']());}}}(a147_0x486c,0xb0060),module[a147_0x8659df(0x1e2)]=require(a147_0x8659df(0x1e6)));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a148_0x5984(){const _0x45c277=['nnlUv','init','jVjzp','overrideXforPercy','patch','KCjdF','getBestPlatformForPercySnapshot','isUndefined','\x20for\x20percy\x20','stop','forEach','percy','safari','sUurl','screenshot','4109664QMVwFD','PCkNv','7aUpoSq','winstonLogger','57234bpQLlm','reduce','6vYuufr','../helper','browserstackPercyBestPlatform','4228952MAVvxQ','13163777GiHzdP','screenshotApp','element','chrome','CLQtT','stopPercy','apply','Stopping\x20percy','getDriver','getPercyOptions','driver','./Percy','auto','platforms','percyCaptureMode','ZjugG','Error\x20patching\x20','OklTA','isAppAutomateSession','then','measureWrapper','9AgxsVT','60uWrzmk','debug','browserstackPercyMap','2326620tudGMb','deviceName','percyAutoCapture','14506584oJKCFJ','PidjM','browserstackSessionName','increment','./PercySDK','browserStackPercyOptions','getName','../performance/performance-tester','10469690EPlroR','browser','./PercyCaptureMap','error','26moRmzS','AUTO_CAPTURE','UOLCK','toLowerCase','Rtunf','prototype','TsTAi','../performance/constants'];a148_0x5984=function(){return _0x45c277;};return a148_0x5984();}const a148_0xddf1be=a148_0x1a28;function a148_0x1a28(_0x196f4e,_0x19ab29){const _0x59842a=a148_0x5984();return a148_0x1a28=function(_0x1a2872,_0x3f60bd){_0x1a2872=_0x1a2872-0x1ac;let _0x110d45=_0x59842a[_0x1a2872];return _0x110d45;},a148_0x1a28(_0x196f4e,_0x19ab29);}(function(_0x39663b,_0x26c972){const _0x5333ff=a148_0x1a28,_0x4a91ed=_0x39663b();while(!![]){try{const _0x54a95e=-parseInt(_0x5333ff(0x1ac))/0x1*(-parseInt(_0x5333ff(0x1da))/0x2)+-parseInt(_0x5333ff(0x1f1))/0x3+-parseInt(_0x5333ff(0x1b1))/0x4+parseInt(_0x5333ff(0x1cb))/0x5*(-parseInt(_0x5333ff(0x1ae))/0x6)+-parseInt(_0x5333ff(0x1f3))/0x7*(parseInt(_0x5333ff(0x1ce))/0x8)+-parseInt(_0x5333ff(0x1c7))/0x9*(parseInt(_0x5333ff(0x1d6))/0xa)+parseInt(_0x5333ff(0x1b2))/0xb*(parseInt(_0x5333ff(0x1c8))/0xc);if(_0x54a95e===_0x26c972)break;else _0x4a91ed['push'](_0x4a91ed['shift']());}catch(_0x9b461b){_0x4a91ed['push'](_0x4a91ed['shift']());}}}(a148_0x5984,0xedff3));const Percy=require(a148_0xddf1be(0x1bd)),PercySDK=require(a148_0xddf1be(0x1d2)),PercyCaptureModes=require('./PercyCaptureModes'),PercyCaptureMap=require(a148_0xddf1be(0x1d8)),logger=require('../logger')[a148_0xddf1be(0x1f4)],helper=require(a148_0xddf1be(0x1af)),PerformanceTester=require(a148_0xddf1be(0x1d5)),{PERCY_EVENTS:PerformanceEvents}=require(a148_0xddf1be(0x1e1));exports['startPercy']=PerformanceTester[a148_0xddf1be(0x1c6)](PerformanceEvents['START'],async _0x17caf4=>{const _0x98084f=a148_0xddf1be,_0x162c78={};_0x162c78[_0x98084f(0x1f2)]='Starting\x20percy';const _0x2ecea8=_0x162c78;logger[_0x98084f(0x1c9)](_0x2ecea8['PCkNv']);const _0x369ae2=new Percy(_0x17caf4),_0x5d4b18=await _0x369ae2['start']();if(_0x5d4b18)return _0x369ae2;return null;}),exports[a148_0xddf1be(0x1b7)]=PerformanceTester[a148_0xddf1be(0x1c6)](PerformanceEvents['STOP'],async _0x5ac557=>{const _0x2b9902=a148_0xddf1be,_0x302f20={};_0x302f20[_0x2b9902(0x1e0)]=_0x2b9902(0x1b9);const _0x38ab01=_0x302f20;return logger['debug'](_0x38ab01[_0x2b9902(0x1e0)]),_0x5ac557[_0x2b9902(0x1eb)]();}),exports['getBestPlatformForPercySnapshot']=_0x453acf=>{const _0x3162d9=a148_0xddf1be,_0x543ff8={};_0x543ff8[_0x3162d9(0x1de)]=function(_0x12266e,_0x5e770f){return _0x12266e<_0x5e770f;};const _0x45ffd1=_0x543ff8,_0x23530e={};_0x23530e[_0x3162d9(0x1b5)]=0x0,_0x23530e['firefox']=0x1,_0x23530e['edge']=0x2,_0x23530e[_0x3162d9(0x1ee)]=0x3;const _0x268d43=_0x23530e;return _0x453acf[_0x3162d9(0x1ad)]((_0x5abfb4,_0x194e71,_0x1a48e3)=>{const _0x4a7b97=_0x3162d9,_0x2c5720=_0x453acf[_0x5abfb4];if(_0x194e71[_0x4a7b97(0x1cc)])return _0x5abfb4;if(_0x2c5720[_0x4a7b97(0x1cc)])return _0x1a48e3;const _0x355c64=_0x194e71[_0x4a7b97(0x1d7)]?_0x194e71[_0x4a7b97(0x1d7)]:_0x194e71['browserName'];if(_0x355c64&&_0x45ffd1['Rtunf'](_0x268d43[_0x355c64[_0x4a7b97(0x1dd)]()],_0x268d43[_0x355c64[_0x4a7b97(0x1dd)]()]))return _0x1a48e3;return _0x5abfb4;},0x0);},exports[a148_0xddf1be(0x1cd)]=PerformanceTester['measureWrapper'](PerformanceEvents[a148_0xddf1be(0x1db)],async(_0x104798,_0x4dc114,_0xf6ce51)=>{const _0x2cf342=a148_0xddf1be,_0x581b71={};_0x581b71['CLQtT']='Couldn\x27t\x20capture\x20percy\x20screenshot,\x20no\x20session\x20name\x20present';const _0x5dfd7b=_0x581b71,_0x3fb09f=_0x104798[_0x2cf342(0x1ca)];if(helper[_0x2cf342(0x1e9)](_0x104798[_0x2cf342(0x1d0)])){logger[_0x2cf342(0x1c9)](_0x5dfd7b[_0x2cf342(0x1b6)]);return;}const _0x467b25=_0x3fb09f[_0x2cf342(0x1d4)](_0x104798[_0x2cf342(0x1d0)],_0x4dc114);helper[_0x2cf342(0x1c4)](_0xf6ce51)?await PercySDK[_0x2cf342(0x1b3)](_0x104798,_0x467b25):await PercySDK[_0x2cf342(0x1f0)](_0x104798,_0x467b25),_0x3fb09f[_0x2cf342(0x1d1)](_0x104798['browserstackSessionName'],_0x4dc114);}),exports['patchDriverPercy']=(_0x34af04,_0x17fe79,_0x1a57ce)=>{const _0x59a12b=a148_0xddf1be,_0x756e7={};_0x756e7['OklTA']=_0x59a12b(0x1d3),_0x756e7[_0x59a12b(0x1c1)]='percy',_0x756e7[_0x59a12b(0x1dc)]=function(_0x256b20,_0x5c82e1){return _0x256b20!==_0x5c82e1;},_0x756e7[_0x59a12b(0x1e7)]='manual';const _0xaf739c=_0x756e7;if(!helper['nestedKeyValue'](_0x1a57ce,[_0xaf739c[_0x59a12b(0x1c3)],_0xaf739c[_0x59a12b(0x1c1)]]))return;if(_0x1a57ce[_0x59a12b(0x1d3)][_0x59a12b(0x1ed)]&&_0x1a57ce['browserStackPercyOptions'][_0x59a12b(0x1c0)]&&_0xaf739c[_0x59a12b(0x1dc)](_0x1a57ce['browserStackPercyOptions']['percyCaptureMode'],_0xaf739c[_0x59a12b(0x1e7)])&&!_0x34af04[_0x59a12b(0x1ca)]){global[_0x59a12b(0x1d0)]&&(_0x34af04[_0x59a12b(0x1d0)]=global['browserstackSessionName']),_0x34af04[_0x59a12b(0x1ca)]=new PercyCaptureMap();const _0x28a5f8=PercyCaptureModes[_0x1a57ce['browserStackPercyOptions'][_0x59a12b(0x1c0)]];_0x28a5f8[_0x59a12b(0x1bc)]&&_0x28a5f8[_0x59a12b(0x1bc)][_0x59a12b(0x1ec)](_0x10f847=>this[_0x59a12b(0x1e5)](_0x34af04,_0x10f847,_0x1a57ce)),_0x28a5f8[_0x59a12b(0x1b4)]&&_0x28a5f8[_0x59a12b(0x1b4)][_0x59a12b(0x1ec)](_0xc504b8=>{const _0x376d8c=_0x59a12b;if(_0x17fe79[_0x376d8c(0x1df)][_0x376d8c(0x1e6)+_0xc504b8])return;_0x17fe79[_0x376d8c(0x1df)]['patch'+_0xc504b8]=!![];const _0x18cfc9=_0x17fe79['prototype'][_0xc504b8];_0x17fe79[_0x376d8c(0x1df)][_0xc504b8]=async function(){const _0x2a738a=_0x376d8c;let _0x31bcee=_0x18cfc9[_0x2a738a(0x1b8)](this,arguments);_0x31bcee&&_0x31bcee[_0x2a738a(0x1c5)]&&(_0x31bcee=await _0x31bcee);try{const _0x2496af=this[_0x2a738a(0x1ba)]();await exports[_0x2a738a(0x1cd)](_0x2496af,_0xc504b8,_0x1a57ce);}catch(_0x5784e2){logger[_0x2a738a(0x1d9)](_0x2a738a(0x1c2)+_0xc504b8+_0x2a738a(0x1ea)+_0x5784e2);}return _0x31bcee;};});}},exports[a148_0xddf1be(0x1e5)]=function(_0x4dbbb6,_0x64fa9b,_0x2d4ff8){const _0xde71a=a148_0xddf1be,_0x184378={};_0x184378[_0xde71a(0x1e4)]=function(_0xa23909,_0x4eecbf){return _0xa23909+_0x4eecbf;},_0x184378[_0xde71a(0x1cf)]=_0xde71a(0x1e6),_0x184378['sUurl']=_0xde71a(0x1e3);const _0x29eace=_0x184378,_0x470b2f=_0x29eace[_0xde71a(0x1e4)](_0x29eace[_0xde71a(0x1cf)],_0x64fa9b),_0x22e48e=_0x29eace[_0xde71a(0x1e4)](_0x29eace[_0xde71a(0x1ef)],_0x64fa9b),_0x116fad=this;if(_0x4dbbb6[_0x470b2f]||!_0x4dbbb6[_0x64fa9b])return;_0x4dbbb6[_0x470b2f]=!![],_0x4dbbb6[_0x22e48e]=_0x4dbbb6[_0x64fa9b],_0x4dbbb6[_0x64fa9b]=async()=>{const _0x169d02=_0xde71a;try{await _0x116fad[_0x169d02(0x1cd)](_0x4dbbb6,_0x64fa9b,_0x2d4ff8);}catch(_0x52ac40){logger[_0x169d02(0x1d9)]('Error\x20patching\x20'+_0x64fa9b+_0x169d02(0x1ea)+_0x52ac40);}return await _0x4dbbb6[_0x22e48e][_0x169d02(0x1b8)](_0x4dbbb6,arguments);};},exports[a148_0xddf1be(0x1bb)]=_0x21d82e=>{const _0x31734e=a148_0xddf1be,_0x3b4d38={};_0x3b4d38[_0x31734e(0x1e2)]=_0x31734e(0x1be);const _0x2b9d39=_0x3b4d38,_0x40f871={};_0x40f871[_0x31734e(0x1ed)]=_0x21d82e['percy'],_0x40f871[_0x31734e(0x1c0)]=_0x21d82e[_0x31734e(0x1c0)]||_0x2b9d39['nnlUv'];const _0x4a7d62=_0x40f871;_0x21d82e['percy']&&(_0x4a7d62[_0x31734e(0x1b0)]=exports[_0x31734e(0x1e8)](_0x21d82e[_0x31734e(0x1bf)]));;return _0x4a7d62;};
|