browserstack-node-sdk 1.68.1 → 1.69.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/generated/sdk-messages_pb.d.ts +172 -0
- package/generated/sdk-messages_pb.js +1334 -0
- package/generated/sdk_grpc_pb.d.ts +10 -0
- package/generated/sdk_grpc_pb.js +69 -0
- package/package.json +5 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/detox/a11ySetup.js +1 -1
- package/src/bin/detox/command.js +1 -1
- package/src/bin/detox/modifyDetoxConf.js +1 -1
- package/src/bin/detox/traEmitter.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jasmine/bstack-reporter/customReporter.js +1 -1
- package/src/bin/jasmine/command.js +1 -1
- package/src/bin/jasmine/test.setup.js +1 -1
- package/src/bin/jasmine/testRunMap.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customSequencer.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test.setup.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/load/index.js +1 -1
- package/src/bin/load/loadErrors.js +1 -1
- package/src/bin/load/loadUtils.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/newman/command.js +1 -1
- package/src/bin/newman/helper.js +1 -1
- package/src/bin/newman/reporter/index.js +1 -1
- package/src/bin/newman/scriptRunner.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/node-generic/client.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/reporterArgs.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/puppeteer/patches.js +1 -1
- package/src/bin/puppeteer/sessionDetails.js +1 -1
- package/src/bin/puppeteer/test.setup.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/testcafe/a11y-runner.js +1 -1
- package/src/bin/testcafe/command.js +1 -1
- package/src/bin/testcafe/reporter/index.js +1 -1
- package/src/bin/testcafe/reporter/tcUtils.js +1 -1
- package/src/bin/testcafe/session-registry.js +1 -1
- package/src/bin/testcafe/stdout-interceptor.js +1 -1
- package/src/bin/testcafe/testcafe-action-patcher.js +1 -1
- package/src/bin/testcafe/w3c-driver.js +1 -1
- package/src/bin/utils/apiUtilityMethods.js +1 -1
- package/src/bin/utils/clientTroubleshootingService.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/utils/playwright-patcher.js +1 -1
- package/src/bin/utils/puppeteer-patcher.js +1 -1
- package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
- package/src/bin/utils/sharedUtils.js +1 -1
- package/src/bin/v2/TestInfo.js +1 -1
- package/src/bin/v2/browserstackCLI.js +1 -1
- package/src/bin/v2/cliUtils.js +1 -1
- package/src/bin/v2/customTagManager.js +1 -1
- package/src/bin/v2/eventDispatcher.js +1 -1
- package/src/bin/v2/framework/automationFramework.js +1 -1
- package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
- package/src/bin/v2/framework/jestTestFramework.js +1 -1
- package/src/bin/v2/framework/mochaTestFramework.js +1 -0
- package/src/bin/v2/framework/newmanTestFramework.js +1 -1
- package/src/bin/v2/framework/nodeGenericTestFramework.js +1 -1
- package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
- package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
- package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
- package/src/bin/v2/framework/seleniumAutomationFramework.js +1 -0
- package/src/bin/v2/framework/testFramework.js +1 -1
- package/src/bin/v2/framework/testcafeAutomationFramework.js +1 -1
- package/src/bin/v2/framework/testcafeTestFramework.js +1 -1
- package/src/bin/v2/grpcClient.js +1 -1
- package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/trackedContext.js +1 -1
- package/src/bin/v2/instances/trackedInstance.js +1 -1
- package/src/bin/v2/modules/accessibilityModule.js +1 -1
- package/src/bin/v2/modules/baseModule.js +1 -1
- package/src/bin/v2/modules/loadTestModule.js +1 -1
- package/src/bin/v2/modules/observabilityModule.js +1 -1
- package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
- package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
- package/src/bin/v2/modules/testcafeDriverModule.js +1 -1
- package/src/bin/v2/modules/testhubModule.js +1 -1
- package/src/bin/v2/runStateStore.js +1 -0
- package/src/bin/v2/sdkErrorHandler.js +1 -1
- package/src/bin/v2/state/automationFrameworkState.js +1 -1
- package/src/bin/v2/state/hookState.js +1 -1
- package/src/bin/v2/state/testFrameworkState.js +1 -1
- package/src/bin/v2/uploadAttachmentsManager.js +1 -1
- package/src/bin/v2/utils/cucumber-utils.js +1 -1
- package/src/bin/v2/utils/jest-utils.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/caCertHelper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/central-scanner/constants.js +1 -1
- package/src/helpers/central-scanner/helpers.js +1 -1
- package/src/helpers/classLogger.js +1 -1
- package/src/helpers/driverInitErrorReporter.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/metadata.js +1 -1
- package/src/helpers/patchHelper.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance/constants.js +1 -1
- package/src/helpers/performance/performance-tester.js +1 -1
- package/src/helpers/playwright-helper.js +1 -1
- package/src/helpers/processHelper.js +1 -1
- package/src/helpers/puppeteer-helper.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/stackFrameUtils.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/test-orchestration/constants.js +1 -1
- package/src/helpers/test-orchestration/failfastManager.js +1 -1
- package/src/helpers/test-orchestration/fileHelper.js +1 -1
- package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
- package/src/helpers/test-orchestration/requestUtils.js +1 -1
- package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
- package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
package/src/helpers/logger.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a142_0x3f14da=a142_0x2f8e;(function(_0x2e30ed,_0xa466f2){const _0x5bfbb8=a142_0x2f8e,_0x5aeee0=_0x2e30ed();while(!![]){try{const _0x302dbb=parseInt(_0x5bfbb8(0x120))/0x1+parseInt(_0x5bfbb8(0x10a))/0x2+parseInt(_0x5bfbb8(0x125))/0x3*(parseInt(_0x5bfbb8(0x10d))/0x4)+parseInt(_0x5bfbb8(0x138))/0x5*(parseInt(_0x5bfbb8(0x112))/0x6)+-parseInt(_0x5bfbb8(0x123))/0x7+-parseInt(_0x5bfbb8(0xf2))/0x8+-parseInt(_0x5bfbb8(0xf1))/0x9*(parseInt(_0x5bfbb8(0x113))/0xa);if(_0x302dbb===_0xa466f2)break;else _0x5aeee0['push'](_0x5aeee0['shift']());}catch(_0x1e46ac){_0x5aeee0['push'](_0x5aeee0['shift']());}}}(a142_0x5cc2,0x42c3d));const winston=require(a142_0x3f14da(0x133)),path=require('path'),fs=require('fs'),{LOG_FILE_NAME,DEBUG_LOG_FILE_NAME,DEBUG_CLI_LOG_FILE_NAME}=require(a142_0x3f14da(0x12b)),tempLogDir=a142_0x3f14da(0x11c);let redactRegex=null,lastConfigHash='';const logFormat=winston[a142_0x3f14da(0x103)](_0x1c297b=>{const _0x4759d1=a142_0x3f14da,_0x745ae8={};_0x745ae8[_0x4759d1(0xe8)]=function(_0x17e94,_0x2ff2d1){return _0x17e94!==_0x2ff2d1;},_0x745ae8['FhclK']=_0x4759d1(0x13a),_0x745ae8[_0x4759d1(0x10b)]=function(_0x5a8713,_0x2e7d4d){return _0x5a8713+_0x2e7d4d;},_0x745ae8[_0x4759d1(0x121)]=function(_0x194921,_0x5278dc){return _0x194921>_0x5278dc;},_0x745ae8[_0x4759d1(0x136)]=_0x4759d1(0xe7);const _0xc35a0a=_0x745ae8;_0xc35a0a[_0x4759d1(0xe8)](typeof _0x1c297b['message'],_0xc35a0a[_0x4759d1(0xf7)])&&(_0x1c297b[_0x4759d1(0x102)]=JSON['stringify'](_0x1c297b[_0x4759d1(0x102)]));const _0x4e2d8f=global[_0x4759d1(0xf9)]&&global[_0x4759d1(0xf9)][_0x4759d1(0xed)]||'',_0x170c95=global['config']&&global[_0x4759d1(0xf9)][_0x4759d1(0xe5)]||'',_0x2748b4=_0xc35a0a[_0x4759d1(0x10b)](_0xc35a0a[_0x4759d1(0x10b)](_0x4e2d8f,'|'),_0x170c95);if(_0xc35a0a[_0x4759d1(0xe8)](_0x2748b4,lastConfigHash)){lastConfigHash=_0x2748b4;const _0x5b1528=[_0x4e2d8f,_0x170c95]['filter'](Boolean);if(_0xc35a0a[_0x4759d1(0x121)](_0x5b1528[_0x4759d1(0x116)],0x0)){const _0x3eb207=_0x5b1528[_0x4759d1(0x104)](_0x45a707=>_0x45a707[_0x4759d1(0xff)](/[.*+?^${}()|[\]\\]/g,_0x4759d1(0x124)))[_0x4759d1(0x110)]('|');redactRegex=new RegExp(_0x3eb207,'g');}else redactRegex=null;}return redactRegex&&(_0x1c297b[_0x4759d1(0x102)]=_0x1c297b[_0x4759d1(0x102)][_0x4759d1(0xff)](redactRegex,_0xc35a0a[_0x4759d1(0x136)])),_0x1c297b;}),SENSITIVE_HEADER_REGEX=/authorization|token|cookie|secret|^x-api-key$|accesskey|password/i,maskHeaders=_0x1b0fbc=>{const _0x40a8d2=a142_0x3f14da,_0x560f98={};_0x560f98['hPsSa']=function(_0x1e5289,_0x38f5a4){return _0x1e5289!==_0x38f5a4;},_0x560f98[_0x40a8d2(0x106)]='object',_0x560f98[_0x40a8d2(0x10e)]=_0x40a8d2(0xe7),_0x560f98[_0x40a8d2(0x130)]=_0x40a8d2(0xea);const _0x499704=_0x560f98;try{if(!_0x1b0fbc||_0x499704[_0x40a8d2(0x11e)](typeof _0x1b0fbc,_0x499704['ttAgZ']))return _0x1b0fbc;const _0x3dc2cf={};for(const _0x314208 of Object[_0x40a8d2(0x122)](_0x1b0fbc)){_0x3dc2cf[_0x314208]=SENSITIVE_HEADER_REGEX['test'](_0x314208)?_0x499704[_0x40a8d2(0x10e)]:_0x1b0fbc[_0x314208];}return _0x3dc2cf;}catch{return _0x499704[_0x40a8d2(0x130)];}},fetchLogDir=()=>{const _0xe25a9a=a142_0x3f14da;if(process['env'][_0xe25a9a(0x107)])return process[_0xe25a9a(0x12c)][_0xe25a9a(0x107)];else!fs['existsSync'](tempLogDir)&&fs[_0xe25a9a(0xf5)](tempLogDir);return tempLogDir;},logDir=fetchLogDir(),getInitialLogLevel=()=>{const _0x34b2d0=a142_0x3f14da,_0x2096b9={};_0x2096b9['STeon']=_0x34b2d0(0xfe);const _0xf3b55e=_0x2096b9,_0x2a1caa=process[_0x34b2d0(0x12c)]['BROWSERSTACK_LOG_LEVEL'],_0x4e3e0a=Object['keys'](winston[_0x34b2d0(0xf9)]['npm']['levels']);if(_0x2a1caa&&_0x4e3e0a[_0x34b2d0(0x11a)](_0x2a1caa[_0x34b2d0(0xe6)]()))return _0x2a1caa[_0x34b2d0(0xe6)]();return _0xf3b55e[_0x34b2d0(0xf4)];},initialLogLevel=getInitialLogLevel(),a142_0x1c7978={};a142_0x1c7978[a142_0x3f14da(0x127)]=a142_0x3f14da(0xec),a142_0x1c7978[a142_0x3f14da(0x11b)]=initialLogLevel;const transports={'loggerConsole':new winston[(a142_0x3f14da(0x105))][(a142_0x3f14da(0x119))](a142_0x1c7978),'loggerFile':new winston[(a142_0x3f14da(0x105))][(a142_0x3f14da(0x129))]({'filename':path['join'](logDir,a142_0x3f14da(0x11f)),'level':initialLogLevel}),'debugLoggerFile':new winston[(a142_0x3f14da(0x105))][(a142_0x3f14da(0x129))]({'filename':path[a142_0x3f14da(0x110)](logDir,'/usage-debug.log'),'level':a142_0x3f14da(0x115)}),'debugCliLoggerFile':new winston['transports'][(a142_0x3f14da(0x129))]({'filename':path[a142_0x3f14da(0x110)](logDir,DEBUG_CLI_LOG_FILE_NAME),'level':a142_0x3f14da(0x115)}),'buildLinkTransport':new winston['transports'][(a142_0x3f14da(0x129))]({'filename':path[a142_0x3f14da(0x110)](logDir,a142_0x3f14da(0x11f)),'level':a142_0x3f14da(0x115)})},automationTransports={};process['env'][a142_0x3f14da(0x10c)]===a142_0x3f14da(0x109)&&(automationTransports[a142_0x3f14da(0x135)]=new winston[(a142_0x3f14da(0x105))]['File']({'filename':path['join'](logDir,a142_0x3f14da(0x12d)),'level':a142_0x3f14da(0x115)}));transports['loggerConsole']['on']('error',_0x1a4cd3=>{const _0x2003e3=a142_0x3f14da,_0x8486a3={};_0x8486a3[_0x2003e3(0x126)]=function(_0x2233cd,_0x2377c6){return _0x2233cd===_0x2377c6;},_0x8486a3[_0x2003e3(0x101)]=_0x2003e3(0xf6),_0x8486a3[_0x2003e3(0xee)]=_0x2003e3(0x111);const _0x30d7d2=_0x8486a3;if(_0x30d7d2[_0x2003e3(0x126)](_0x1a4cd3['code'],_0x30d7d2[_0x2003e3(0x101)])){console[_0x2003e3(0x11c)](_0x30d7d2[_0x2003e3(0xee)],_0x1a4cd3[_0x2003e3(0x102)]);return;}throw _0x1a4cd3;});const a142_0x2e72cf={};a142_0x2e72cf[a142_0x3f14da(0x103)]=a142_0x3f14da(0xfd);function a142_0x5cc2(){const _0x29f3cb=['YLrsh','keys','2112229mMZZlW','\x5c$&','753IHSlRN','GPhqV','name','add','File','buildLinkTransport','../bin/utils/constants','env','automation.log','createLogger','debugCliLoggerFile','HlTrN','ITwJz','winstonLogger','winston','logDir','automationLoggerFile','RtZnU','getLogDir','43935VnvZOZ','combine','string','accessKey','toLowerCase','[REDACTED]','yNqTC','http','[REDACTED\x20HEADERS]','warn','console.info','userName','rpOTm','loggerFile','uncolorize','660087oMEZSE','2057384zdqNrT','\x20-\x20','STeon','mkdirSync','EPIPE','FhclK','fileLogger','config','buildLogger','timestamp','automationLogger','YYYY-MM-DD\x20HH:mm:ss','info','replace','printf','ONVRz','message','format','map','transports','ttAgZ','BROWSERSTACK_INTERNAL_LOG_DIR','remove','true','196388gKDbsp','KSDvi','BROWSERSTACK_AUTOMATION_LOGS','4060nciEuM','WzqnG','debug','join','EPIPE\x20error\x20occurred\x20in\x20loggerConsole:','342tvwRik','40DWnGpp','error','silly','length','loggerConsole','debugLoggerFile','Console','includes','level','log','colorize','hPsSa','/usage.log','271943heCNCM'];a142_0x5cc2=function(){return _0x29f3cb;};return a142_0x5cc2();}const a142_0x382d39={};a142_0x382d39['level']=!![];const winstonLoggerParams={'format':winston[a142_0x3f14da(0x103)]['combine'](winston[a142_0x3f14da(0x103)][a142_0x3f14da(0xfb)](a142_0x2e72cf),winston[a142_0x3f14da(0x103)][a142_0x3f14da(0x11d)](a142_0x382d39),winston[a142_0x3f14da(0x103)][a142_0x3f14da(0x100)](_0x3d4324=>_0x3d4324[a142_0x3f14da(0xfb)]+a142_0x3f14da(0xf3)+_0x3d4324[a142_0x3f14da(0x11b)]+':\x20'+_0x3d4324[a142_0x3f14da(0x102)])),'transports':[transports[a142_0x3f14da(0x117)]]},a142_0x66437={};a142_0x66437['format']=a142_0x3f14da(0xfd);const a142_0x18eb19={};a142_0x18eb19[a142_0x3f14da(0x11b)]=!![];const winstonFileLoggerParams={'format':winston['format'][a142_0x3f14da(0x139)](winston['format'][a142_0x3f14da(0xfb)](a142_0x66437),winston[a142_0x3f14da(0x103)][a142_0x3f14da(0x11d)](a142_0x18eb19),winston[a142_0x3f14da(0x103)][a142_0x3f14da(0x100)](_0x11e1af=>_0x11e1af[a142_0x3f14da(0x11b)]+':\x20'+_0x11e1af['message'])),'transports':[]},a142_0x1c8e90={};a142_0x1c8e90[a142_0x3f14da(0x103)]=a142_0x3f14da(0xfd);const a142_0x445e29={};function a142_0x2f8e(_0x27b6df,_0x6a1f18){const _0x5cc217=a142_0x5cc2();return a142_0x2f8e=function(_0x2f8e6c,_0x543c52){_0x2f8e6c=_0x2f8e6c-0xe5;let _0x38a69e=_0x5cc217[_0x2f8e6c];return _0x38a69e;},a142_0x2f8e(_0x27b6df,_0x6a1f18);}a142_0x445e29[a142_0x3f14da(0x11b)]=!![];const a142_0x24f5b3={};a142_0x24f5b3[a142_0x3f14da(0x11b)]=a142_0x3f14da(0x115);const BuildLoggerParams={'format':winston[a142_0x3f14da(0x103)][a142_0x3f14da(0x139)](winston[a142_0x3f14da(0x103)][a142_0x3f14da(0xfb)](a142_0x1c8e90),winston['format']['colorize'](a142_0x445e29),winston[a142_0x3f14da(0x103)][a142_0x3f14da(0x100)](_0x27be6b=>_0x27be6b['timestamp']+a142_0x3f14da(0xf3)+_0x27be6b[a142_0x3f14da(0x11b)]+':\x20'+_0x27be6b['message'])),'transports':[transports[a142_0x3f14da(0x12a)],new winston[(a142_0x3f14da(0x105))]['Console'](a142_0x24f5b3)]},a142_0x50ae26={};a142_0x50ae26[a142_0x3f14da(0xe9)]=()=>{},a142_0x50ae26[a142_0x3f14da(0xfe)]=()=>{},a142_0x50ae26[a142_0x3f14da(0xeb)]=()=>{},a142_0x50ae26[a142_0x3f14da(0x114)]=()=>{},a142_0x50ae26[a142_0x3f14da(0x10f)]=()=>{},a142_0x50ae26[a142_0x3f14da(0x115)]=()=>{},exports[a142_0x3f14da(0xfc)]=process['env'][a142_0x3f14da(0x10c)]===a142_0x3f14da(0x109)?winston['createLogger']({'format':winston[a142_0x3f14da(0x103)]['combine'](winston['format'][a142_0x3f14da(0xf0)](),winston[a142_0x3f14da(0x103)][a142_0x3f14da(0xfb)](),logFormat(),winston[a142_0x3f14da(0x103)][a142_0x3f14da(0x100)](_0x5ea0d2=>_0x5ea0d2[a142_0x3f14da(0x11b)]+':\x20'+_0x5ea0d2[a142_0x3f14da(0x102)])),'transports':[automationTransports[a142_0x3f14da(0x135)]]}):a142_0x50ae26;const initialize=()=>{const _0x59dcb6=a142_0x3f14da,_0x2d19a7={};_0x2d19a7[_0x59dcb6(0x131)]=_0x59dcb6(0x115);const _0x3e0ef6=_0x2d19a7,_0x396bca=transports[_0x59dcb6(0x117)][_0x59dcb6(0x11b)]||initialLogLevel;transports['loggerFile']&&(exports[_0x59dcb6(0x132)][_0x59dcb6(0x108)](transports[_0x59dcb6(0xef)]),exports[_0x59dcb6(0xf8)][_0x59dcb6(0x108)](transports[_0x59dcb6(0xef)])),transports[_0x59dcb6(0x118)]&&(exports[_0x59dcb6(0x132)]['remove'](transports['debugLoggerFile']),exports['fileLogger'][_0x59dcb6(0x108)](transports[_0x59dcb6(0x118)])),transports[_0x59dcb6(0xef)]=new winston[(_0x59dcb6(0x105))][(_0x59dcb6(0x129))]({'filename':path[_0x59dcb6(0x110)](exports[_0x59dcb6(0x134)],LOG_FILE_NAME),'level':_0x396bca}),transports['debugLoggerFile']=new winston[(_0x59dcb6(0x105))][(_0x59dcb6(0x129))]({'filename':path[_0x59dcb6(0x110)](exports['logDir'],DEBUG_LOG_FILE_NAME),'level':_0x3e0ef6['ITwJz']}),transports[_0x59dcb6(0x12f)]=new winston[(_0x59dcb6(0x105))]['File']({'filename':path[_0x59dcb6(0x110)](exports[_0x59dcb6(0x134)],DEBUG_CLI_LOG_FILE_NAME),'level':_0x3e0ef6[_0x59dcb6(0x131)]}),exports['winstonLogger'][_0x59dcb6(0x128)](transports[_0x59dcb6(0xef)]),exports[_0x59dcb6(0x132)][_0x59dcb6(0x128)](transports[_0x59dcb6(0x118)]),exports['fileLogger'][_0x59dcb6(0x128)](transports[_0x59dcb6(0xef)]),exports[_0x59dcb6(0xf8)]['add'](transports['debugLoggerFile']);};exports[a142_0x3f14da(0x132)]=new winston[(a142_0x3f14da(0x12e))](winstonLoggerParams),exports[a142_0x3f14da(0xf8)]=new winston['createLogger'](winstonFileLoggerParams),exports[a142_0x3f14da(0xfa)]=new winston[(a142_0x3f14da(0x12e))](BuildLoggerParams),exports[a142_0x3f14da(0x134)]=logDir,exports[a142_0x3f14da(0x137)]=()=>{return exports['logDir'];},exports[a142_0x3f14da(0x105)]=transports,exports['initialize']=initialize,exports['maskHeaders']=maskHeaders;logDir&&initialize();
|
|
1
|
+
const a145_0x1f92c1=a145_0x2c51;(function(_0x57a429,_0x5bb6b0){const _0x2ebc63=a145_0x2c51,_0x1836c7=_0x57a429();while(!![]){try{const _0xcac76e=parseInt(_0x2ebc63(0x19d))/0x1+-parseInt(_0x2ebc63(0x168))/0x2+parseInt(_0x2ebc63(0x160))/0x3*(parseInt(_0x2ebc63(0x171))/0x4)+-parseInt(_0x2ebc63(0x16c))/0x5*(-parseInt(_0x2ebc63(0x163))/0x6)+parseInt(_0x2ebc63(0x185))/0x7+-parseInt(_0x2ebc63(0x17d))/0x8+-parseInt(_0x2ebc63(0x18e))/0x9*(parseInt(_0x2ebc63(0x14a))/0xa);if(_0xcac76e===_0x5bb6b0)break;else _0x1836c7['push'](_0x1836c7['shift']());}catch(_0x575d50){_0x1836c7['push'](_0x1836c7['shift']());}}}(a145_0x5d75,0xd148d));const winston=require('winston'),path=require('path'),fs=require('fs'),{LOG_FILE_NAME,DEBUG_LOG_FILE_NAME,DEBUG_CLI_LOG_FILE_NAME}=require(a145_0x1f92c1(0x176)),tempLogDir=a145_0x1f92c1(0x183);let redactRegex=null,lastConfigHash='';const logFormat=winston[a145_0x1f92c1(0x17a)](_0xd589ec=>{const _0x548135=a145_0x1f92c1,_0x429e93={};_0x429e93[_0x548135(0x15a)]=function(_0x9ce200,_0xfee3f){return _0x9ce200!==_0xfee3f;},_0x429e93[_0x548135(0x187)]=_0x548135(0x150),_0x429e93['sQYTA']=function(_0x5e0d7e,_0x4e0e50){return _0x5e0d7e+_0x4e0e50;},_0x429e93[_0x548135(0x164)]=function(_0xd0ec62,_0xb79ae1){return _0xd0ec62+_0xb79ae1;},_0x429e93[_0x548135(0x19f)]=function(_0xba208c,_0x239188){return _0xba208c>_0x239188;},_0x429e93[_0x548135(0x192)]=_0x548135(0x181);const _0x1452c2=_0x429e93;_0x1452c2[_0x548135(0x15a)](typeof _0xd589ec[_0x548135(0x162)],_0x1452c2[_0x548135(0x187)])&&(_0xd589ec[_0x548135(0x162)]=JSON['stringify'](_0xd589ec[_0x548135(0x162)]));const _0x49e636=global['config']&&global[_0x548135(0x188)]['userName']||'',_0x3164f3=global['config']&&global[_0x548135(0x188)][_0x548135(0x16f)]||'',_0x2e99c8=_0x1452c2[_0x548135(0x18d)](_0x1452c2[_0x548135(0x164)](_0x49e636,'|'),_0x3164f3);if(_0x1452c2['VYtTc'](_0x2e99c8,lastConfigHash)){lastConfigHash=_0x2e99c8;const _0x46eba6=[_0x49e636,_0x3164f3][_0x548135(0x182)](Boolean);if(_0x1452c2[_0x548135(0x19f)](_0x46eba6[_0x548135(0x18a)],0x0)){const _0x458246=_0x46eba6[_0x548135(0x172)](_0x3db7f3=>_0x3db7f3[_0x548135(0x17f)](/[.*+?^${}()|[\]\\]/g,'\x5c$&'))[_0x548135(0x17e)]('|');redactRegex=new RegExp(_0x458246,'g');}else redactRegex=null;}return redactRegex&&(_0xd589ec[_0x548135(0x162)]=_0xd589ec[_0x548135(0x162)][_0x548135(0x17f)](redactRegex,_0x1452c2[_0x548135(0x192)])),_0xd589ec;}),SENSITIVE_HEADER_REGEX=/authorization|token|cookie|secret|^x-api-key$|accesskey|password/i,maskHeaders=_0xde01a7=>{const _0x30f94a=a145_0x1f92c1,_0x18ec0e={};_0x18ec0e['caTql']=function(_0x2cbc59,_0x244f75){return _0x2cbc59!==_0x244f75;},_0x18ec0e[_0x30f94a(0x191)]=_0x30f94a(0x155),_0x18ec0e['nlXCb']=_0x30f94a(0x181),_0x18ec0e['qyYVT']='[REDACTED\x20HEADERS]';const _0x54625b=_0x18ec0e;try{if(!_0xde01a7||_0x54625b[_0x30f94a(0x15b)](typeof _0xde01a7,_0x54625b[_0x30f94a(0x191)]))return _0xde01a7;const _0x802809={};for(const _0x13f976 of Object[_0x30f94a(0x165)](_0xde01a7)){_0x802809[_0x13f976]=SENSITIVE_HEADER_REGEX[_0x30f94a(0x157)](_0x13f976)?_0x54625b[_0x30f94a(0x14f)]:_0xde01a7[_0x13f976];}return _0x802809;}catch{return _0x54625b['qyYVT'];}},fetchLogDir=()=>{const _0x1b908e=a145_0x1f92c1;if(process[_0x1b908e(0x198)][_0x1b908e(0x15d)])return process[_0x1b908e(0x198)][_0x1b908e(0x15d)];else!fs['existsSync'](tempLogDir)&&fs[_0x1b908e(0x174)](tempLogDir);return tempLogDir;},logDir=fetchLogDir(),getInitialLogLevel=()=>{const _0x10001f=a145_0x1f92c1,_0x117e89={};_0x117e89['uAflL']='info';const _0x4612f5=_0x117e89,_0x65fe75=process[_0x10001f(0x198)][_0x10001f(0x154)],_0x56e944=Object[_0x10001f(0x165)](winston[_0x10001f(0x188)][_0x10001f(0x156)][_0x10001f(0x14d)]);if(_0x65fe75&&_0x56e944['includes'](_0x65fe75[_0x10001f(0x179)]()))return _0x65fe75['toLowerCase']();return _0x4612f5['uAflL'];},initialLogLevel=getInitialLogLevel(),a145_0x14f07c={};a145_0x14f07c[a145_0x1f92c1(0x16d)]=a145_0x1f92c1(0x14e),a145_0x14f07c[a145_0x1f92c1(0x17c)]=initialLogLevel;const transports={'loggerConsole':new winston['transports'][(a145_0x1f92c1(0x158))](a145_0x14f07c),'loggerFile':new winston[(a145_0x1f92c1(0x184))][(a145_0x1f92c1(0x18b))]({'filename':path[a145_0x1f92c1(0x17e)](logDir,a145_0x1f92c1(0x190)),'level':initialLogLevel}),'debugLoggerFile':new winston[(a145_0x1f92c1(0x184))][(a145_0x1f92c1(0x18b))]({'filename':path[a145_0x1f92c1(0x17e)](logDir,'/usage-debug.log'),'level':'silly'}),'debugCliLoggerFile':new winston[(a145_0x1f92c1(0x184))]['File']({'filename':path[a145_0x1f92c1(0x17e)](logDir,DEBUG_CLI_LOG_FILE_NAME),'level':a145_0x1f92c1(0x178)}),'buildLinkTransport':new winston[(a145_0x1f92c1(0x184))]['File']({'filename':path[a145_0x1f92c1(0x17e)](logDir,a145_0x1f92c1(0x190)),'level':a145_0x1f92c1(0x178)})},automationTransports={};process[a145_0x1f92c1(0x198)]['BROWSERSTACK_AUTOMATION_LOGS']===a145_0x1f92c1(0x1a0)&&(automationTransports['automationLoggerFile']=new winston['transports'][(a145_0x1f92c1(0x18b))]({'filename':path[a145_0x1f92c1(0x17e)](logDir,a145_0x1f92c1(0x186)),'level':a145_0x1f92c1(0x178)}));transports['loggerConsole']['on'](a145_0x1f92c1(0x175),_0x31b6de=>{const _0x5dd15a=a145_0x1f92c1,_0xcff050={};_0xcff050[_0x5dd15a(0x153)]=function(_0x53d93,_0x7b61fb){return _0x53d93===_0x7b61fb;},_0xcff050[_0x5dd15a(0x19a)]=_0x5dd15a(0x196),_0xcff050['fyhcd']=_0x5dd15a(0x197);const _0x4b77f6=_0xcff050;if(_0x4b77f6[_0x5dd15a(0x153)](_0x31b6de[_0x5dd15a(0x15e)],_0x4b77f6[_0x5dd15a(0x19a)])){console[_0x5dd15a(0x183)](_0x4b77f6[_0x5dd15a(0x180)],_0x31b6de['message']);return;}throw _0x31b6de;});const a145_0xfc5a7e={};a145_0xfc5a7e[a145_0x1f92c1(0x17a)]=a145_0x1f92c1(0x19e);const a145_0x2c3453={};a145_0x2c3453[a145_0x1f92c1(0x17c)]=!![];const winstonLoggerParams={'format':winston[a145_0x1f92c1(0x17a)][a145_0x1f92c1(0x177)](winston[a145_0x1f92c1(0x17a)][a145_0x1f92c1(0x173)](a145_0xfc5a7e),winston[a145_0x1f92c1(0x17a)]['colorize'](a145_0x2c3453),winston[a145_0x1f92c1(0x17a)][a145_0x1f92c1(0x194)](_0x59730b=>_0x59730b[a145_0x1f92c1(0x173)]+a145_0x1f92c1(0x161)+_0x59730b[a145_0x1f92c1(0x17c)]+':\x20'+_0x59730b[a145_0x1f92c1(0x162)])),'transports':[transports[a145_0x1f92c1(0x166)]]},a145_0x89c1d2={};a145_0x89c1d2[a145_0x1f92c1(0x17a)]=a145_0x1f92c1(0x19e);const a145_0x5785a3={};a145_0x5785a3['level']=!![];const winstonFileLoggerParams={'format':winston[a145_0x1f92c1(0x17a)]['combine'](winston[a145_0x1f92c1(0x17a)][a145_0x1f92c1(0x173)](a145_0x89c1d2),winston[a145_0x1f92c1(0x17a)][a145_0x1f92c1(0x16b)](a145_0x5785a3),winston[a145_0x1f92c1(0x17a)]['printf'](_0x14d563=>_0x14d563[a145_0x1f92c1(0x17c)]+':\x20'+_0x14d563[a145_0x1f92c1(0x162)])),'transports':[]},a145_0x27802e={};a145_0x27802e[a145_0x1f92c1(0x17a)]='YYYY-MM-DD\x20HH:mm:ss';const a145_0x388d7a={};a145_0x388d7a[a145_0x1f92c1(0x17c)]=!![];const a145_0xdc1da7={};a145_0xdc1da7[a145_0x1f92c1(0x17c)]=a145_0x1f92c1(0x178);const BuildLoggerParams={'format':winston[a145_0x1f92c1(0x17a)][a145_0x1f92c1(0x177)](winston[a145_0x1f92c1(0x17a)]['timestamp'](a145_0x27802e),winston[a145_0x1f92c1(0x17a)]['colorize'](a145_0x388d7a),winston[a145_0x1f92c1(0x17a)][a145_0x1f92c1(0x194)](_0x1856f4=>_0x1856f4[a145_0x1f92c1(0x173)]+a145_0x1f92c1(0x161)+_0x1856f4['level']+':\x20'+_0x1856f4[a145_0x1f92c1(0x162)])),'transports':[transports[a145_0x1f92c1(0x169)],new winston[(a145_0x1f92c1(0x184))]['Console'](a145_0xdc1da7)]},a145_0x5ab8d8={};a145_0x5ab8d8[a145_0x1f92c1(0x193)]=()=>{},a145_0x5ab8d8[a145_0x1f92c1(0x18c)]=()=>{},a145_0x5ab8d8[a145_0x1f92c1(0x15c)]=()=>{},a145_0x5ab8d8['error']=()=>{},a145_0x5ab8d8[a145_0x1f92c1(0x170)]=()=>{},a145_0x5ab8d8[a145_0x1f92c1(0x178)]=()=>{},exports[a145_0x1f92c1(0x195)]=process[a145_0x1f92c1(0x198)][a145_0x1f92c1(0x16e)]===a145_0x1f92c1(0x1a0)?winston['createLogger']({'format':winston[a145_0x1f92c1(0x17a)][a145_0x1f92c1(0x177)](winston[a145_0x1f92c1(0x17a)][a145_0x1f92c1(0x16a)](),winston[a145_0x1f92c1(0x17a)][a145_0x1f92c1(0x173)](),logFormat(),winston['format'][a145_0x1f92c1(0x194)](_0x2c76ed=>_0x2c76ed[a145_0x1f92c1(0x17c)]+':\x20'+_0x2c76ed[a145_0x1f92c1(0x162)])),'transports':[automationTransports[a145_0x1f92c1(0x15f)]]}):a145_0x5ab8d8;function a145_0x2c51(_0x454399,_0xef0122){const _0x5d756d=a145_0x5d75();return a145_0x2c51=function(_0x2c51ab,_0x59207d){_0x2c51ab=_0x2c51ab-0x14a;let _0x48c067=_0x5d756d[_0x2c51ab];return _0x48c067;},a145_0x2c51(_0x454399,_0xef0122);}const initialize=()=>{const _0x5c68bf=a145_0x1f92c1,_0x5716c7={};_0x5716c7['SVOVU']=_0x5c68bf(0x178);const _0x10f7b0=_0x5716c7,_0x1d50f3=transports['loggerConsole']['level']||initialLogLevel;transports['loggerFile']&&(exports[_0x5c68bf(0x18f)][_0x5c68bf(0x19b)](transports['loggerFile']),exports['fileLogger'][_0x5c68bf(0x19b)](transports[_0x5c68bf(0x14b)])),transports[_0x5c68bf(0x167)]&&(exports[_0x5c68bf(0x18f)][_0x5c68bf(0x19b)](transports[_0x5c68bf(0x167)]),exports[_0x5c68bf(0x152)][_0x5c68bf(0x19b)](transports['debugLoggerFile'])),transports[_0x5c68bf(0x14b)]=new winston[(_0x5c68bf(0x184))][(_0x5c68bf(0x18b))]({'filename':path[_0x5c68bf(0x17e)](exports['logDir'],LOG_FILE_NAME),'level':_0x1d50f3}),transports[_0x5c68bf(0x167)]=new winston['transports']['File']({'filename':path[_0x5c68bf(0x17e)](exports[_0x5c68bf(0x159)],DEBUG_LOG_FILE_NAME),'level':_0x10f7b0[_0x5c68bf(0x17b)]}),transports[_0x5c68bf(0x14c)]=new winston['transports'][(_0x5c68bf(0x18b))]({'filename':path[_0x5c68bf(0x17e)](exports[_0x5c68bf(0x159)],DEBUG_CLI_LOG_FILE_NAME),'level':_0x10f7b0['SVOVU']}),exports[_0x5c68bf(0x18f)]['add'](transports['loggerFile']),exports[_0x5c68bf(0x18f)]['add'](transports['debugLoggerFile']),exports[_0x5c68bf(0x152)][_0x5c68bf(0x199)](transports['loggerFile']),exports[_0x5c68bf(0x152)]['add'](transports['debugLoggerFile']);};function a145_0x5d75(){const _0x4cea14=['error','../bin/utils/constants','combine','silly','toLowerCase','format','SVOVU','level','4619144qZkkxV','join','replace','fyhcd','[REDACTED]','filter','log','transports','6947367aBOfrb','automation.log','wMjmu','config','createLogger','length','File','info','sQYTA','2933523eOuvHt','winstonLogger','/usage.log','LqlPr','fdTEy','http','printf','automationLogger','EPIPE','EPIPE\x20error\x20occurred\x20in\x20loggerConsole:','env','add','lnnGY','remove','buildLogger','1105319oKYsVk','YYYY-MM-DD\x20HH:mm:ss','oyqMD','true','70LNoExy','loggerFile','debugCliLoggerFile','levels','console.info','nlXCb','string','maskHeaders','fileLogger','JCdcR','BROWSERSTACK_LOG_LEVEL','object','npm','test','Console','logDir','VYtTc','caTql','warn','BROWSERSTACK_INTERNAL_LOG_DIR','code','automationLoggerFile','1050870UjGlft','\x20-\x20','message','1856238LPANXo','VvDio','keys','loggerConsole','debugLoggerFile','20496GXWSyW','buildLinkTransport','uncolorize','colorize','15myhPSx','name','BROWSERSTACK_AUTOMATION_LOGS','accessKey','debug','8tmrzwa','map','timestamp','mkdirSync'];a145_0x5d75=function(){return _0x4cea14;};return a145_0x5d75();}exports[a145_0x1f92c1(0x18f)]=new winston['createLogger'](winstonLoggerParams),exports['fileLogger']=new winston[(a145_0x1f92c1(0x189))](winstonFileLoggerParams),exports[a145_0x1f92c1(0x19c)]=new winston[(a145_0x1f92c1(0x189))](BuildLoggerParams),exports['logDir']=logDir,exports['getLogDir']=()=>{const _0x30fda1=a145_0x1f92c1;return exports[_0x30fda1(0x159)];},exports[a145_0x1f92c1(0x184)]=transports,exports['initialize']=initialize,exports[a145_0x1f92c1(0x151)]=maskHeaders;logDir&&initialize();
|
package/src/helpers/metadata.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a146_0x55c3(){const _0x149962=['testMeta-','lcnc','./helper','gIDvs','getCentralUser','KejGG','1930GDBXGR','dclpO','winstonLogger','2177166XTCspD','LKbQP','6sbvlrS','testMeta','144136urDVyF','441993NxADkE','set','CtWYY','./logger','./globals','14NjqPWC','exports','The\x20metadata\x20object\x20is\x20not\x20valid.','identifier','length','182680gYhTzK','string','623520KRmnua','gFCHN','124399PjgfRA','207EsvqkX','getGlobal','oLMUz','1727175gZdkNU','setGlobal','warn'];a146_0x55c3=function(){return _0x149962;};return a146_0x55c3();}const a146_0x27a26a=a146_0x3cd8;(function(_0xb66a54,_0x5160cb){const _0x3b3484=a146_0x3cd8,_0x1c2ee1=_0xb66a54();while(!![]){try{const _0x140d49=-parseInt(_0x3b3484(0x7d))/0x1+-parseInt(_0x3b3484(0x91))/0x2*(parseInt(_0x3b3484(0x94))/0x3)+-parseInt(_0x3b3484(0x7b))/0x4+-parseInt(_0x3b3484(0x83))/0x5+-parseInt(_0x3b3484(0x8f))/0x6*(parseInt(_0x3b3484(0x76))/0x7)+-parseInt(_0x3b3484(0x93))/0x8*(-parseInt(_0x3b3484(0x80))/0x9)+parseInt(_0x3b3484(0x8c))/0xa*(parseInt(_0x3b3484(0x7f))/0xb);if(_0x140d49===_0x5160cb)break;else _0x1c2ee1['push'](_0x1c2ee1['shift']());}catch(_0x8e117a){_0x1c2ee1['push'](_0x1c2ee1['shift']());}}}(a146_0x55c3,0x653e0));const globals=require(a146_0x27a26a(0x98)),helper=require(a146_0x27a26a(0x88)),logger=require(a146_0x27a26a(0x97))[a146_0x27a26a(0x8e)];function a146_0x3cd8(_0xf396b,_0x54af94){const _0x55c363=a146_0x55c3();return a146_0x3cd8=function(_0x3cd882,_0x98dee1){_0x3cd882=_0x3cd882-0x76;let _0x3ff3c2=_0x55c363[_0x3cd882];return _0x3ff3c2;},a146_0x3cd8(_0xf396b,_0x54af94);}module[a146_0x27a26a(0x77)]=class TestMetadata{static[a146_0x27a26a(0x95)](_0x27640e={}){const _0x202185=a146_0x27a26a,_0x2fece8={};_0x2fece8['CtWYY']='testRunUUID',_0x2fece8[_0x202185(0x89)]=function(_0x7bd0b6,_0x3ed8d2){return _0x7bd0b6===_0x3ed8d2;},_0x2fece8[_0x202185(0x8d)]=_0x202185(0x7c),_0x2fece8[_0x202185(0x8b)]=function(_0x369509,_0x319071){return _0x369509<=_0x319071;},_0x2fece8[_0x202185(0x82)]='testMeta',_0x2fece8[_0x202185(0x90)]=_0x202185(0x78);const _0xf459ec=_0x2fece8,_0x16dc79=globals[_0x202185(0x81)](_0xf459ec[_0x202185(0x96)]),_0x32ebba=_0x27640e[_0x202185(0x79)];helper['getCentralUser']()[_0x202185(0x87)]&&(_0xf459ec['gIDvs'](typeof _0x32ebba,_0xf459ec[_0x202185(0x8d)])&&_0xf459ec[_0x202185(0x8b)](_0x32ebba[_0x202185(0x7a)],0x28)?_0x16dc79?globals[_0x202185(0x84)](_0x202185(0x86)+_0x16dc79,_0x27640e):globals[_0x202185(0x84)](_0xf459ec[_0x202185(0x82)],_0x27640e):logger[_0x202185(0x85)](_0xf459ec[_0x202185(0x90)]));}static['get'](_0xff400d){const _0x2b6bfa=a146_0x27a26a,_0xe201d5={};_0xe201d5[_0x2b6bfa(0x7e)]=_0x2b6bfa(0x92);const _0x374fae=_0xe201d5;if(helper[_0x2b6bfa(0x8a)]()[_0x2b6bfa(0x87)])return globals[_0x2b6bfa(0x81)]('testMeta-'+_0xff400d)||globals[_0x2b6bfa(0x81)](_0x374fae[_0x2b6bfa(0x7e)])||{};return{};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a147_0x43e229=a147_0xac6d;(function(_0x4b1673,_0x582c60){const _0x328831=a147_0xac6d,_0x20f449=_0x4b1673();while(!![]){try{const _0x37dc7f=parseInt(_0x328831(0x195))/0x1+parseInt(_0x328831(0x16f))/0x2+-parseInt(_0x328831(0x1b4))/0x3*(-parseInt(_0x328831(0x1a5))/0x4)+-parseInt(_0x328831(0x1ad))/0x5+parseInt(_0x328831(0x1a9))/0x6+parseInt(_0x328831(0x197))/0x7*(parseInt(_0x328831(0x184))/0x8)+parseInt(_0x328831(0x191))/0x9*(parseInt(_0x328831(0x18a))/0xa);if(_0x37dc7f===_0x582c60)break;else _0x20f449['push'](_0x20f449['shift']());}catch(_0x56c474){_0x20f449['push'](_0x20f449['shift']());}}}(a147_0x2a12,0x63173));function a147_0xac6d(_0x336373,_0xda457){const _0x2a128f=a147_0x2a12();return a147_0xac6d=function(_0xac6d07,_0x10524a){_0xac6d07=_0xac6d07-0x168;let _0x4bc309=_0x2a128f[_0xac6d07];return _0x4bc309;},a147_0xac6d(_0x336373,_0xda457);}const PerformanceTester=require(a147_0x43e229(0x1a8)),{winstonLogger:logger,automationLogger}=require(a147_0x43e229(0x18c)),helper=require(a147_0x43e229(0x1a6)),constants=require(a147_0x43e229(0x18e)),{DRIVER_EVENT:PerformanceDriverEvents}=require(a147_0x43e229(0x1b8)),{BSTACK_SCAN_IN_PROGRESS}=require('./accessibility-automation/constants'),util=require(a147_0x43e229(0x1af));function a147_0x2a12(){const _0xde0e70=['3BroCwB','onBeforeExecute','parameters_','body','./performance/constants','driver','LpBFH','IHafa','initExecute','BgDnU','getCurrentAccessibilityStatus','UWPSu','../bin/v2/browserstackCLI','message','TvHlB','82276KzfsQO','executeAsyncScript','format','patchExecute','local','PRE','KRPsi','find','string','toISOString','PoBUJ','parameters','[App-A11y]\x20patchHelper:\x20firing\x20EXECUTE\x20PRE\x20for\x20command=','Eyplc','../bin/v2/state/hookState','nestedKeyValue','tbgME','name_','HwRti','getCurrentTestUUID','testRunId','8cifiDJ','commandName','][\x20SDK-AUTOMATION\x20]\x20','VLHTp','TfNKA','silly','1123990fFlQrt','TjhTl','./logger','toString','../bin/utils/constants','GRFNK','getInstance','27liEsEo','args','Caught\x20error\x20in\x20execute,\x20check\x20if\x20geturl\x20and\x20try\x20to\x20set\x20local\x20nudge','testFramework','373167CaThVm','NUDGE_LOCAL_ERRORS','85246YwjeTQ','get','Error\x20while\x20logging\x20accessibility\x20automation\x20logs\x20in\x20driver.execute\x20:\x20','XXgSx','OSUwQ','url','dRhxu','includes','bstack:options','EXECUTE','[App-A11y]\x20patchHelper:\x20error\x20in\x20a11y\x20scan\x20hook:\x20','command','FRAMEWORKS','shouldWrapCommand','949812EXzHmt','./helper','../bin/v2/state/automationFrameworkState','./performance/performance-tester','1107108SVAJko','overrideExecute','execute','script','3898880sgqXIw','isAppAccessibility','util','getTestFramework','IwRDn','debug','NODE_GENERIC'];a147_0x2a12=function(){return _0xde0e70;};return a147_0x2a12();}exports[a147_0x43e229(0x1aa)]=(_0x190f03,_0x173dcc)=>{const _0x21ffb9=a147_0x43e229,_0x1ca462={'TfNKA':_0x21ffb9(0x193),'VLHTp':function(_0x4561e5,_0x189724){return _0x4561e5===_0x189724;},'BgDnU':_0x21ffb9(0x198),'UdeCE':_0x21ffb9(0x1b6),'HwRti':_0x21ffb9(0x19c),'tbgME':'Error\x20in\x20local\x20nudge\x20for\x20overrideExecute:\x20','XXgSx':_0x21ffb9(0x170),'pgalU':'executeScript','IHafa':_0x21ffb9(0x177),'TuWga':function(_0x2cf39c,_0x498f29){return _0x2cf39c(_0x498f29);},'GRFNK':'./accessibility-automation/scripts','HsZuq':function(_0xee9c3b,_0x200a84){return _0xee9c3b(_0x200a84);},'LpBFH':_0x21ffb9(0x1a7),'PoBUJ':_0x21ffb9(0x17d),'OSUwQ':function(_0x5607b,_0x38135a){return _0x5607b===_0x38135a;},'dRhxu':'function','KRPsi':function(_0x3eed44,_0x46a10a){return _0x3eed44(_0x46a10a);},'TvHlB':_0x21ffb9(0x16c),'TjhTl':'capability','Eyplc':'browserstack.local','UWPSu':_0x21ffb9(0x19f),'IwRDn':_0x21ffb9(0x173)},_0x19e31a=_0x190f03[_0x21ffb9(0x172)]||(helper[_0x21ffb9(0x17e)](_0x173dcc,[_0x1ca462[_0x21ffb9(0x18b)],_0x1ca462[_0x21ffb9(0x17c)]])||helper[_0x21ffb9(0x17e)](_0x173dcc,[_0x1ca462['TjhTl'],_0x1ca462[_0x21ffb9(0x16b)],_0x1ca462[_0x21ffb9(0x1b1)]]));if(_0x19e31a)return;_0x190f03[_0x21ffb9(0x172)]=!![],_0x190f03[_0x21ffb9(0x168)]=_0x190f03['execute'],_0x190f03[_0x21ffb9(0x1ab)]=async _0x5429c0=>{const _0x3cbb16=_0x21ffb9;try{const _0x50f288=await _0x190f03['initExecute'](_0x5429c0);try{if(_0x1ca462[_0x3cbb16(0x187)](_0x5429c0[_0x3cbb16(0x180)],_0x1ca462[_0x3cbb16(0x19a)])||_0x1ca462['VLHTp'](_0x5429c0[_0x3cbb16(0x180)],_0x1ca462['pgalU'])){const _0x326329=_0x5429c0[_0x3cbb16(0x1b6)]&&_0x5429c0[_0x3cbb16(0x1b6)][_0x3cbb16(0x1ac)],_0x586378=_0x5429c0[_0x3cbb16(0x1b6)]&&_0x5429c0[_0x3cbb16(0x1b6)][_0x3cbb16(0x192)],_0x2f7a55=_0x586378&&util[_0x3cbb16(0x171)]('%j',_0x586378);if(_0x326329&&_0x1ca462[_0x3cbb16(0x187)](typeof _0x326329,_0x1ca462[_0x3cbb16(0x1bb)])){const _0x324121=constants['AUTOMATION_LOG_COMMANDS']['find'](_0xd4e561=>_0x326329[_0x3cbb16(0x19e)](_0xd4e561)||_0x2f7a55&&_0x2f7a55[_0x3cbb16(0x19e)](_0xd4e561));if(_0x324121){const _0x1b8edd={};_0x1b8edd[_0x3cbb16(0x1a2)]=_0x324121,_0x1b8edd[_0x3cbb16(0x17a)]=_0x586378;const _0x194f07={};_0x194f07[_0x3cbb16(0x1b7)]=_0x50f288;const _0x3def7b={};_0x3def7b['request']=_0x1b8edd,_0x3def7b['response']=_0x194f07,automationLogger[_0x3cbb16(0x189)]('['+new Date()[_0x3cbb16(0x178)]()+_0x3cbb16(0x186)+util[_0x3cbb16(0x171)]('%j',_0x3def7b));}}}}catch(_0x481554){logger[_0x3cbb16(0x189)](_0x3cbb16(0x199)+_0x481554[_0x3cbb16(0x16d)]);}try{if(!_0x190f03[BSTACK_SCAN_IN_PROGRESS]){const _0x1d4157=_0x1ca462['TuWga'](require,_0x1ca462[_0x3cbb16(0x18f)]),_0x29b5b8=_0x1ca462['HsZuq'](require,_0x1ca462[_0x3cbb16(0x1ba)]),_0x5c4387=_0x1ca462['TuWga'](require,_0x1ca462[_0x3cbb16(0x179)]);if(_0x1ca462[_0x3cbb16(0x19b)](typeof _0x1d4157[_0x3cbb16(0x1a4)],_0x1ca462[_0x3cbb16(0x19d)])&&_0x1d4157[_0x3cbb16(0x1a4)](_0x5429c0['name_'])){const _0x3d2b31=_0x1ca462[_0x3cbb16(0x175)](require,_0x1ca462[_0x3cbb16(0x16e)]),_0xdd706=_0x3d2b31[_0x3cbb16(0x190)](),_0x3e6498=_0xdd706&&_0xdd706['getAccessibilityModule']();if(_0x3e6498&&_0x3e6498[_0x3cbb16(0x1ae)]&&_0x3e6498[_0x3cbb16(0x16a)]()){let _0xfe5d94='';try{const _0x2765be=_0xdd706['getTestFramework']&&_0xdd706[_0x3cbb16(0x1b0)]();_0xfe5d94=_0x2765be&&_0x2765be['getCurrentTestUUID']&&_0x2765be[_0x3cbb16(0x182)]()||'';}catch(_0xce2cbc){}logger[_0x3cbb16(0x1b2)](_0x3cbb16(0x17b)+_0x5429c0[_0x3cbb16(0x180)]+',\x20testRunId='+_0xfe5d94);const _0x4deba4=_0xdd706['getAutomationFramework']();if(!_0x4deba4){logger[_0x3cbb16(0x1b2)]('[App-A11y]\x20patchHelper:\x20no\x20automationFramework\x20for\x20node-generic\x20—\x20calling\x20onBeforeExecute\x20directly\x20for\x20command='+_0x5429c0[_0x3cbb16(0x180)]);const _0x2de657={};_0x2de657['testFramework']=constants['FRAMEWORKS'][_0x3cbb16(0x1b3)],_0x2de657[_0x3cbb16(0x185)]=_0x5429c0[_0x3cbb16(0x180)],_0x2de657['driver']=_0x190f03,_0x2de657[_0x3cbb16(0x183)]=_0xfe5d94,await _0x3e6498[_0x3cbb16(0x1b5)](_0x2de657);}else{const _0x10b276={};_0x10b276[_0x3cbb16(0x185)]=_0x5429c0[_0x3cbb16(0x180)],_0x10b276[_0x3cbb16(0x1b9)]=_0x190f03,_0x10b276[_0x3cbb16(0x194)]=constants[_0x3cbb16(0x1a3)][_0x3cbb16(0x1b3)],_0x10b276['testRunId']=_0xfe5d94,await _0x4deba4['trackEvent'](_0x29b5b8[_0x3cbb16(0x1a0)],_0x5c4387[_0x3cbb16(0x174)],_0x10b276);}}}}}catch(_0x37d3ed){logger[_0x3cbb16(0x1b2)](_0x3cbb16(0x1a1)+_0x37d3ed[_0x3cbb16(0x16d)]);}return _0x50f288;}catch(_0x3f1630){await PerformanceTester['measureWrapper'](PerformanceDriverEvents['POST_EXECUTE'],async()=>{const _0x51c021=_0x3cbb16;logger[_0x51c021(0x1b2)](_0x1ca462[_0x51c021(0x188)]);try{_0x1ca462[_0x51c021(0x187)](_0x5429c0['name_'],_0x1ca462[_0x51c021(0x169)])&&helper[_0x51c021(0x17e)](_0x5429c0,[_0x1ca462['UdeCE'],_0x1ca462[_0x51c021(0x181)]])&&!!constants[_0x51c021(0x196)][_0x51c021(0x176)](_0x350655=>{const _0x2228a3=_0x51c021;return _0x3f1630[_0x2228a3(0x18d)]()[_0x2228a3(0x19e)](_0x350655);})&&helper['getNudgeLocalNotSetError'](_0x5429c0[_0x51c021(0x1b6)][_0x51c021(0x19c)],!![]);}catch(_0x27574c){logger[_0x51c021(0x1b2)](_0x1ca462[_0x51c021(0x17f)],_0x27574c);}},{'success':![],'failure':_0x3f1630})();throw _0x3f1630;}};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a148_0x9c2610=a148_0x42eb;function a148_0x24a5(){const _0x495de0=['start','O11y_EVENTS','initScreenshot','3277372EpeMGL','opAlV','quit','ngkkd','uthVC','end','TEST_SCREENSHOT','patchQuit','522033ozEZtG','true','patchScreenshot','vwnVy','4129184cdJGTW','then','toISOString','hZwtC','vEVOH','initQuit','emit','./performance/performance-tester','env','overrideTakeScreenshot','BS_TESTOPS_ALLOW_SCREENSHOTS','5969550haVjSL','quitCount_','takeScreenshot','1304304ZqxvKx','762945VQyvKa','iCFqr','4005250OFFgAR','vORcS','56Vuuuck'];a148_0x24a5=function(){return _0x495de0;};return a148_0x24a5();}function a148_0x42eb(_0x229733,_0x4d8222){const _0x24a54d=a148_0x24a5();return a148_0x42eb=function(_0x42ebcf,_0x2b7e13){_0x42ebcf=_0x42ebcf-0x169;let _0x2557be=_0x24a54d[_0x42ebcf];return _0x2557be;},a148_0x42eb(_0x229733,_0x4d8222);}(function(_0x4ea7da,_0x460b55){const _0x5b48cb=a148_0x42eb,_0x39380d=_0x4ea7da();while(!![]){try{const _0x1ca4e6=-parseInt(_0x5b48cb(0x172))/0x1+-parseInt(_0x5b48cb(0x184))/0x2+parseInt(_0x5b48cb(0x185))/0x3+-parseInt(_0x5b48cb(0x16a))/0x4+-parseInt(_0x5b48cb(0x187))/0x5+-parseInt(_0x5b48cb(0x181))/0x6+parseInt(_0x5b48cb(0x189))/0x7*(parseInt(_0x5b48cb(0x176))/0x8);if(_0x1ca4e6===_0x460b55)break;else _0x39380d['push'](_0x39380d['shift']());}catch(_0x40bd46){_0x39380d['push'](_0x39380d['shift']());}}}(a148_0x24a5,0x9104c));const PerformanceTester=require(a148_0x9c2610(0x17d)),O11yEvents=require('./performance/constants')[a148_0x9c2610(0x18b)];exports[a148_0x9c2610(0x17f)]=_0x1e13f0=>{const _0xfdbd5b=a148_0x9c2610,_0x1a4cec={'vwnVy':_0xfdbd5b(0x170),'opAlV':function(_0x3b69da,_0x50af4f){return _0x3b69da(_0x50af4f);},'vORcS':function(_0x2de01d,_0x26f71c){return _0x2de01d!==_0x26f71c;},'iCFqr':_0xfdbd5b(0x173)};if(_0x1a4cec[_0xfdbd5b(0x188)](process[_0xfdbd5b(0x17e)][_0xfdbd5b(0x180)],_0x1a4cec[_0xfdbd5b(0x186)]))return;if(_0x1e13f0[_0xfdbd5b(0x174)])return;_0x1e13f0['patchScreenshot']=!![],_0x1e13f0[_0xfdbd5b(0x169)]=_0x1e13f0[_0xfdbd5b(0x183)],_0x1e13f0[_0xfdbd5b(0x183)]=()=>{const _0x4bbc3b=_0xfdbd5b,_0x92f46c={'ngkkd':_0x1a4cec[_0x4bbc3b(0x175)],'uthVC':function(_0x5a2cef,_0x4644da){const _0x386bce=_0x4bbc3b;return _0x1a4cec[_0x386bce(0x16b)](_0x5a2cef,_0x4644da);}};return new Promise(function(_0x2a0a86,_0x24f651){const _0x3501d3=_0x4bbc3b;_0x1e13f0[_0x3501d3(0x169)]()[_0x3501d3(0x177)](_0xefd240=>{const _0x5c851e=_0x3501d3;PerformanceTester[_0x5c851e(0x18a)](O11yEvents['TAKE_SCREENSHOT']),process[_0x5c851e(0x17c)]('bs:addLog:'+process['pid'],{'timestamp':new Date()[_0x5c851e(0x178)](),'message':_0xefd240,'kind':_0x92f46c[_0x5c851e(0x16d)]}),_0x92f46c[_0x5c851e(0x16e)](_0x2a0a86,_0xefd240),PerformanceTester[_0x5c851e(0x16f)](O11yEvents['TAKE_SCREENSHOT']);})['catch'](_0x5d4c88=>{const _0x1b2abb=_0x3501d3;PerformanceTester[_0x1b2abb(0x16f)](O11yEvents['TAKE_SCREENSHOT']),_0x92f46c['uthVC'](_0x24f651,_0x5d4c88);});});};},exports['overrideQuit']=(_0x506873,_0x59cbc2=null)=>{const _0xe2baf4=a148_0x9c2610,_0x56a214={'hZwtC':function(_0x259c29){return _0x259c29();},'vEVOH':function(_0x336ddb,_0x4d445c){return _0x336ddb>_0x4d445c;}};if(_0x506873[_0xe2baf4(0x171)])return;_0x506873[_0xe2baf4(0x171)]=!![],_0x506873[_0xe2baf4(0x17b)]=_0x506873[_0xe2baf4(0x16c)],_0x506873['quit']=()=>{const _0x51145f=_0xe2baf4;if(_0x59cbc2){_0x59cbc2['quitCount_']+=0x1;if(_0x56a214[_0x51145f(0x17a)](_0x59cbc2['quitCount_'],0x1))return _0x506873[_0x51145f(0x17b)]();}else{_0x506873[_0x51145f(0x182)]+=0x1;if(_0x56a214[_0x51145f(0x17a)](_0x506873['quitCount_'],0x1))return _0x506873['initQuit']();}return new Promise(function(_0x290719){const _0x1e0b4a=_0x51145f;_0x56a214[_0x1e0b4a(0x179)](_0x290719);});};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a149_0x2a1f(){const _0x118553=['isProcessRunning','4304172AwujxX','1505286fUSbTi','DOWNLOAD','Axlrw','../../helpers/performance/constants','sOUvP','./PercyBinary','join','createPercyConfig','GET','winstonLogger','rIfSV','token','push','Uspru','PERCY_SERVER_ADDRESS','exec:stop','xdjYJ','percy.json','percy/healthcheck','47280hSqaWv','version','env','flags','app:exec','1074sTIsZH','2852346HVEDWo','Percy\x20config\x20created\x20at\x20','assign','Percy\x20unable\x20to\x20fetch\x20project\x20token:\x20','exec','Percy\x20healthcheck\x20successful','projectName','izfIY','jjqjE','stringify','SqlnR','fetchPercyToken','VULEy','app','Error\x20creating\x20percy\x20config:\x20','child_process','5320qMCRBX','percyOptions','pipe','getBinaryPath','17547830uVxICt','&type=','sXvBQ','stdout','start','http://localhost:5338','debug','tmpdir','334738xaSsmu','error','DwWeb',':start','isRunning','lbqGv','nodeRequest','end','RlBfE','10DekeOa','close','healthcheck','4802ktNsxL','stderr','BROWSERSTACK_TESTHUB_UUID','eLguB','automate','JQYuU','RCaxQ'];a149_0x2a1f=function(){return _0x118553;};return a149_0x2a1f();}function a149_0x25dd(_0x31cfe1,_0x2173c7){const _0x2a1f1a=a149_0x2a1f();return a149_0x25dd=function(_0x25dd49,_0x7aa4a2){_0x25dd49=_0x25dd49-0x127;let _0x24e580=_0x2a1f1a[_0x25dd49];return _0x24e580;},a149_0x25dd(_0x31cfe1,_0x2173c7);}const a149_0x221a11=a149_0x25dd;(function(_0xe7b03e,_0xef67a2){const _0x55f180=a149_0x25dd,_0x326286=_0xe7b03e();while(!![]){try{const _0x11b4c8=-parseInt(_0x55f180(0x169))/0x1*(-parseInt(_0x55f180(0x128))/0x2)+parseInt(_0x55f180(0x14d))/0x3+-parseInt(_0x55f180(0x133))/0x4+parseInt(_0x55f180(0x147))/0x5*(parseInt(_0x55f180(0x14c))/0x6)+parseInt(_0x55f180(0x12b))/0x7*(-parseInt(_0x55f180(0x15d))/0x8)+-parseInt(_0x55f180(0x134))/0x9+-parseInt(_0x55f180(0x161))/0xa;if(_0x11b4c8===_0xef67a2)break;else _0x326286['push'](_0x326286['shift']());}catch(_0x3976dc){_0x326286['push'](_0x326286['shift']());}}}(a149_0x2a1f,0xd2a6a));const fs=require('fs'),path=require('path'),os=require('os'),{spawn}=require(a149_0x221a11(0x15c)),helper=require('../helper'),logger=require('../logger')[a149_0x221a11(0x13d)],{getLogDir}=require('../logger'),testHubConstants=require('../../helpers/testhub/constants'),PerformanceTester=require('../../helpers/performance/performance-tester'),{PERCY_EVENTS:PerformanceEvents}=require(a149_0x221a11(0x137)),PercyBinary=require(a149_0x221a11(0x139));class Percy{#logfile=path[a149_0x221a11(0x13a)](getLogDir(),'percy.log');#address=process[a149_0x221a11(0x149)][a149_0x221a11(0x142)]||a149_0x221a11(0x166);#binaryPath=null;#config=null;#proc=null;#logStream=null;#isApp=![];[a149_0x221a11(0x132)]=![];constructor(_0x16f5f8){const _0x2b979b=a149_0x221a11;this.#config=_0x16f5f8,!!_0x16f5f8[_0x2b979b(0x15a)]&&(this.#isApp=!![]);}async #getBinaryPath(){const _0x4b61f4=a149_0x221a11;if(!this.#binaryPath){const _0x20e86c=new PercyBinary();PerformanceTester[_0x4b61f4(0x165)](PerformanceEvents['DOWNLOAD']),this.#binaryPath=await _0x20e86c[_0x4b61f4(0x160)](this.#config),PerformanceTester['end'](PerformanceEvents[_0x4b61f4(0x135)]);}return this.#binaryPath;}async #sleep(_0x4f4716){return new Promise(_0x3a4c07=>setTimeout(_0x3a4c07,_0x4f4716));}async[a149_0x221a11(0x12a)](){const _0xcdbb6d=a149_0x221a11,_0xab66ea={};_0xab66ea['Uspru']='GET',_0xab66ea[_0xcdbb6d(0x16b)]=_0xcdbb6d(0x146);const _0x93d9e7=_0xab66ea;try{const _0x102963=await helper['nodeRequest'](_0x93d9e7[_0xcdbb6d(0x141)],_0x93d9e7[_0xcdbb6d(0x16b)],null,null,this.#address);if(_0x102963)return!![];}catch(_0x136f08){return![];}}async[a149_0x221a11(0x165)](){const _0x4a05bd=a149_0x221a11,_0x4489e3={'AVoSi':_0x4a05bd(0x14b),'sOUvP':_0x4a05bd(0x151),'eLguB':function(_0x4d0350,_0x49a0fb,_0x41410e,_0x450fbd){return _0x4d0350(_0x49a0fb,_0x41410e,_0x450fbd);},'GSjip':_0x4a05bd(0x129),'DULKi':_0x4a05bd(0x152)},_0x1db21b=await this.#getBinaryPath(),_0x2a8da2={};_0x2a8da2[_0x4a05bd(0x14a)]='a',this.#logStream=fs['createWriteStream'](this.#logfile,_0x2a8da2);const _0x100256=await this[_0x4a05bd(0x158)](),_0x28a250=await this[_0x4a05bd(0x13b)]();if(!_0x100256)return![];const _0x3da4d7=[(this.#isApp?_0x4489e3['AVoSi']:_0x4489e3[_0x4a05bd(0x138)])+_0x4a05bd(0x16c)];_0x28a250&&_0x3da4d7[_0x4a05bd(0x140)]('-c',_0x28a250);this.#proc=_0x4489e3[_0x4a05bd(0x12e)](spawn,_0x1db21b,_0x3da4d7,{'env':Object[_0x4a05bd(0x14f)](process[_0x4a05bd(0x149)],{'PERCY_TOKEN':_0x100256,'TH_BUILD_UUID':process['env'][testHubConstants['ENV_VAR'][_0x4a05bd(0x12d)]]})}),this.#proc[_0x4a05bd(0x164)][_0x4a05bd(0x15f)](this.#logStream),this.#proc[_0x4a05bd(0x12c)]['pipe'](this.#logStream),this[_0x4a05bd(0x132)]=!![];var _0x178fde=this;this.#proc['on'](_0x4489e3['GSjip'],function(_0x56f857){const _0x5f32bc=_0x4a05bd;_0x178fde[_0x5f32bc(0x132)]=![];});do{const _0x58c95d=await this[_0x4a05bd(0x12a)]();if(_0x58c95d)return logger[_0x4a05bd(0x167)](_0x4489e3['DULKi']),!![];await this.#sleep(0x3e8);}while(this[_0x4a05bd(0x132)]);return![];}async['stop'](){const _0x128e87=a149_0x221a11,_0x556d78={'SqlnR':function(_0x533731,_0x306c4e){return _0x533731(_0x306c4e);},'sXvBQ':function(_0x3978c0,_0x42369f,_0x13419b){return _0x3978c0(_0x42369f,_0x13419b);},'qSJzJ':_0x128e87(0x143),'rIfSV':_0x128e87(0x129)},_0x5d2f3a=await this.#getBinaryPath();return new Promise((_0x127b54,_0x57b5d2)=>{const _0x564942=_0x128e87,_0x199d1e=_0x556d78[_0x564942(0x163)](spawn,_0x5d2f3a,[_0x556d78['qSJzJ']]);_0x199d1e['on'](_0x556d78[_0x564942(0x13e)],_0x58bcca=>{const _0x49b6aa=_0x564942;this[_0x49b6aa(0x132)]=![],this.#logStream&&(this.#logStream[_0x49b6aa(0x170)](),this.#logStream=null),_0x556d78[_0x49b6aa(0x157)](_0x127b54,_0x58bcca);});});}[a149_0x221a11(0x16d)](){const _0x342399=a149_0x221a11;return this[_0x342399(0x132)];}async['fetchPercyToken'](){const _0x573e29=a149_0x221a11,_0x4db9be={};_0x4db9be[_0x573e29(0x16e)]=_0x573e29(0x15a),_0x4db9be['RlBfE']=_0x573e29(0x12f),_0x4db9be['Axlrw']=_0x573e29(0x13c),_0x4db9be[_0x573e29(0x144)]='Percy\x20fetch\x20token\x20success';const _0x2fcbd7=_0x4db9be,_0xea1f49=this.#config[_0x573e29(0x153)];try{const _0x5f47fc=this.#isApp?_0x2fcbd7[_0x573e29(0x16e)]:_0x2fcbd7[_0x573e29(0x127)],_0x5eef71=await helper[_0x573e29(0x16f)](_0x2fcbd7[_0x573e29(0x136)],'api/app_percy/get_project_token?name='+_0xea1f49+_0x573e29(0x162)+_0x5f47fc,{},this.#config),_0x5e7eb3=_0x5eef71['data'];return logger[_0x573e29(0x167)](_0x2fcbd7[_0x573e29(0x144)]),_0x5e7eb3[_0x573e29(0x13f)];}catch(_0x36b7a4){return logger[_0x573e29(0x16a)](_0x573e29(0x150)+_0x36b7a4),null;}}async[a149_0x221a11(0x13b)](){const _0x2d70c1=a149_0x221a11,_0x1ebbcf={'GEgtB':function(_0x24858d,_0x852373){return _0x24858d(_0x852373);},'PIFNi':function(_0x2efd0f,_0x36c63a){return _0x2efd0f+_0x36c63a;},'jjqjE':_0x2d70c1(0x14e),'RCaxQ':_0x2d70c1(0x145)};if(!this.#config[_0x2d70c1(0x15e)])return null;const _0x4aef96=path[_0x2d70c1(0x13a)](os[_0x2d70c1(0x168)](),_0x1ebbcf[_0x2d70c1(0x131)]),_0x2bc2c6=this.#config[_0x2d70c1(0x15e)];return!_0x2bc2c6[_0x2d70c1(0x148)]&&(_0x2bc2c6[_0x2d70c1(0x148)]='2'),new Promise((_0x163359,_0x1c0f77)=>{const _0x570800=_0x2d70c1,_0x37d7da={'JQYuU':function(_0x4d3d08,_0xd51cba){return _0x1ebbcf['GEgtB'](_0x4d3d08,_0xd51cba);},'VULEy':function(_0x2e8065,_0x395d10){return _0x1ebbcf['PIFNi'](_0x2e8065,_0x395d10);},'izfIY':_0x1ebbcf[_0x570800(0x155)]};fs['writeFile'](_0x4aef96,JSON[_0x570800(0x156)](_0x2bc2c6),_0xe50dd1=>{const _0x12b961=_0x570800;_0xe50dd1&&(logger[_0x12b961(0x16a)](_0x12b961(0x15b)+_0xe50dd1),_0x37d7da[_0x12b961(0x130)](_0x163359,null)),logger[_0x12b961(0x167)](_0x37d7da[_0x12b961(0x159)](_0x37d7da[_0x12b961(0x154)],_0x4aef96)),_0x37d7da['JQYuU'](_0x163359,_0x4aef96);});});}}module['exports']=Percy;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a147_0x35d5fb=a147_0x2e75;(function(_0x291f47,_0x473ef0){const _0x448a89=a147_0x2e75,_0x396e94=_0x291f47();while(!![]){try{const _0x44897f=-parseInt(_0x448a89(0x209))/0x1*(parseInt(_0x448a89(0x24d))/0x2)+parseInt(_0x448a89(0x1f0))/0x3+parseInt(_0x448a89(0x1f5))/0x4+parseInt(_0x448a89(0x246))/0x5+-parseInt(_0x448a89(0x263))/0x6*(parseInt(_0x448a89(0x218))/0x7)+-parseInt(_0x448a89(0x200))/0x8+-parseInt(_0x448a89(0x228))/0x9*(parseInt(_0x448a89(0x23b))/0xa);if(_0x44897f===_0x473ef0)break;else _0x396e94['push'](_0x396e94['shift']());}catch(_0x4aacf0){_0x396e94['push'](_0x396e94['shift']());}}}(a147_0x2129,0xd9835));const {https}=require(a147_0x35d5fb(0x24c)),url=require(a147_0x35d5fb(0x237)),yauzl=require(a147_0x35d5fb(0x244)),fs=require('fs'),path=require(a147_0x35d5fb(0x279)),os=require('os'),{spawn}=require(a147_0x35d5fb(0x239)),HttpsProxyAgent=require(a147_0x35d5fb(0x222)),logger=require(a147_0x35d5fb(0x1fc))[a147_0x35d5fb(0x213)];function a147_0x2129(){const _0x5270a7=['Percy\x20download\x20failed\x20to\x20read\x20cert\x20file:\x20','homedir','zdlrD','readFileSync','X_OK','binaryPath','fileName','host','statSync','23010GVHQcX','/percy-osx.zip','0755','destroy','New\x20Percy\x20binary\x20version\x20available,\x20downloading\x20update','accessSync','port','pipe','stdout','XqlNx','headers','zujfS','STwNO','then','mkdirSync','If-None-Match','/Users/','platform','WkSgK','env','zNLyG','keCZN','path','chmod','nEQbK','darwin','HOMEDRIVE','PFGKW','xQtOe','YXtiq','uJnhi','JgokD','PLqlc','ffTkC','error','xfsMZ','thkfq','OoMNh','HwLko','YslLP','qELmF','cwd','4636569TWkWnC','getuid','openReadStream','HOME','LtBhJ','6649308WhCyGx','match','Got\x20Error\x20in\x20percy\x20binary\x20downloading\x20request:\x20','USER','wAHRg','download','wHvVh','../logger','extractAndSaveBinary','useCaCertificate','undefined','4642928uydweY','Error\x20trying\x20to\x20download\x20percy\x20binary','HqeOg','readEntry','qcQZG','open','khaun','https://github.com/percy/cli/releases/latest/download','agent','6143DFMhiv','R_OK','linux','Got\x20Error\x20in\x20percy\x20binary\x20download\x20response:\x20','zjhGB','join','LNAME','zjTIl','WWBZL','nHYLm','winstonLogger','needsUpdate','kneDr','length','/root','2282eGMwns','ajAvb','uqaZS','Got\x20Error\x20while\x20downloading\x20percy\x20binary\x20file:\x20','percy.exe','get','ENzjC','TNNog','.browserstack','lxSoE','https-proxy-agent','.zip','gDWcp','end','dTwYx','tmpdir','36YKTjWG','fJadt','warn','nuLaP','test','Connection','statusCode','/percy-linux.zip','percy','win32','validateBinary','once','getBinaryPath','tQJBl','catch','url','close','child_process','QFVZc','2978300cIhfha','entry','W_OK','pIWlE','utf8','gzPpU','etag','debug','YdarQ','yauzl','Failed\x20to\x20read\x20ETag\x20file:\x20','6995690pSLUCT','EGKqe','proxyPort','function','USERNAME','gefwz','follow-redirects','226NsLoMo','EizNJ','.etag','BBOgs','exports','gUbYv','--version','lwedh','duuAm','createWriteStream','dYvyy','DxMwV','trim'];a147_0x2129=function(){return _0x5270a7;};return a147_0x2129();}function a147_0x2e75(_0x411cfe,_0x1c5cc6){const _0x21292d=a147_0x2129();return a147_0x2e75=function(_0x2e7515,_0x2ed938){_0x2e7515=_0x2e7515-0x1de;let _0x52587d=_0x21292d[_0x2e7515];return _0x52587d;},a147_0x2e75(_0x411cfe,_0x1c5cc6);}class PercyBinary{#hostOS=process[a147_0x35d5fb(0x274)];#httpPath=null;#binaryName=a147_0x35d5fb(0x230);#orderedPaths=[path[a147_0x35d5fb(0x20e)](this.#homedir(),a147_0x35d5fb(0x220)),process[a147_0x35d5fb(0x1ef)](),os[a147_0x35d5fb(0x227)]()];constructor(){const _0xc52962=a147_0x35d5fb,_0x3f27ec={};_0x3f27ec[_0xc52962(0x277)]=_0xc52962(0x207),_0x3f27ec['ajAvb']=function(_0x1aa5b0,_0xbc7e3f){return _0x1aa5b0+_0xbc7e3f;},_0x3f27ec[_0xc52962(0x258)]=_0xc52962(0x264),_0x3f27ec[_0xc52962(0x257)]=function(_0xd32c37,_0x4aeaca){return _0xd32c37+_0x4aeaca;},_0x3f27ec[_0xc52962(0x26f)]='/percy-win.zip',_0x3f27ec['gefwz']=_0xc52962(0x21c),_0x3f27ec[_0xc52962(0x215)]=function(_0x521506,_0x3af257){return _0x521506+_0x3af257;},_0x3f27ec['ffTkC']=_0xc52962(0x22f);const _0x69c746=_0x3f27ec,_0x1755b4=_0x69c746[_0xc52962(0x277)];if(this.#hostOS[_0xc52962(0x1f6)](/darwin|mac os/i))this.#httpPath=_0x69c746[_0xc52962(0x219)](_0x1755b4,_0x69c746['DxMwV']);else this.#hostOS['match'](/mswin|msys|mingw|cygwin|bccwin|wince|emc|win32/i)?(this.#httpPath=_0x69c746[_0xc52962(0x257)](_0x1755b4,_0x69c746['STwNO']),this.#binaryName=_0x69c746[_0xc52962(0x24b)]):this.#httpPath=_0x69c746['kneDr'](_0x1755b4,_0x69c746[_0xc52962(0x1e7)]);}#getAvailableDirs(){const _0x43e183=a147_0x35d5fb,_0x41013a={};_0x41013a[_0x43e183(0x229)]=function(_0x379e3e,_0x46cefd){return _0x379e3e<_0x46cefd;},_0x41013a['gzPpU']=_0x43e183(0x201);const _0x2c639c=_0x41013a;for(var _0x206de1=0x0;_0x2c639c['fJadt'](_0x206de1,this.#orderedPaths[_0x43e183(0x216)]);_0x206de1++){var _0x96bb01=this.#orderedPaths[_0x206de1];if(this.#makePath(_0x96bb01))return _0x96bb01;}throw new Error(_0x2c639c[_0x43e183(0x240)]);}#makePath(_0x4d23e0){const _0x3088bc=a147_0x35d5fb;try{return _0x4d23e0&&!this.#checkPath(_0x4d23e0)&&fs[_0x3088bc(0x271)](_0x4d23e0),!![];}catch{return![];}}#checkPath(_0x3f10ca,_0x3359a8){const _0x57ea64=a147_0x35d5fb,_0x234190={};_0x234190[_0x57ea64(0x26e)]=function(_0x1085a5,_0x2098aa){return _0x1085a5|_0x2098aa;},_0x234190['qELmF']=function(_0x3e34e2,_0x1004e5){return _0x3e34e2!==_0x1004e5;},_0x234190[_0x57ea64(0x1f4)]=_0x57ea64(0x1ff);const _0x36eac3=_0x234190;_0x3359a8=_0x3359a8||_0x36eac3[_0x57ea64(0x26e)](fs[_0x57ea64(0x20a)],fs[_0x57ea64(0x23d)]);try{return fs[_0x57ea64(0x268)](_0x3f10ca,_0x3359a8),!![];}catch(_0x496fbc){if(_0x36eac3[_0x57ea64(0x1ee)](typeof fs[_0x57ea64(0x268)],_0x36eac3[_0x57ea64(0x1f4)]))return![];try{return fs[_0x57ea64(0x262)](_0x3f10ca),!![];}catch(_0x4199ac){return![];}}}#getETagPath(_0x177d49){const _0x542921=a147_0x35d5fb;return path[_0x542921(0x20e)](_0x177d49,this.#binaryName+_0x542921(0x24f));}#loadETag(_0x22ed28){const _0x6550f=a147_0x35d5fb,_0xf65129={};_0xf65129[_0x6550f(0x206)]=_0x6550f(0x23f);const _0x477f8f=_0xf65129,_0x1194aa=this.#getETagPath(_0x22ed28);if(this.#checkPath(_0x1194aa))try{return fs[_0x6550f(0x25d)](_0x1194aa,_0x477f8f[_0x6550f(0x206)])[_0x6550f(0x259)]();}catch(_0x31dd3f){logger[_0x6550f(0x22a)](_0x6550f(0x245)+_0x31dd3f);}return null;}#saveETag(_0x28ea57,_0x5dc912){const _0x310f68=a147_0x35d5fb,_0x59fdce={};_0x59fdce['kJIYw']='Saved\x20new\x20ETag\x20for\x20percy\x20binary';const _0x4677ba=_0x59fdce;if(!_0x5dc912)return;try{const _0x2a94bf=this.#getETagPath(_0x28ea57);fs['writeFileSync'](_0x2a94bf,_0x5dc912),logger[_0x310f68(0x242)](_0x4677ba['kJIYw']);}catch(_0x3a328a){logger['warn']('Failed\x20to\x20save\x20ETag\x20file:\x20'+_0x3a328a);}}async #handleBinaryDownload(_0x5c1527,_0x27990a,_0x2e3c12){const _0xcd4055=a147_0x35d5fb,_0x215b65={};_0x215b65[_0xcd4055(0x275)]='Newly\x20downloaded\x20Percy\x20binary\x20is\x20corrupt,\x20retrying';const _0x314b34=_0x215b65,_0x4a9fd5=await this[_0xcd4055(0x232)](_0x5c1527['binaryPath']);if(!_0x4a9fd5){logger[_0xcd4055(0x1e8)](_0x314b34[_0xcd4055(0x275)]);const _0xbbc0f1=await this[_0xcd4055(0x1fa)](_0x27990a,_0x2e3c12);return _0xbbc0f1[_0xcd4055(0x25f)];}return _0x5c1527[_0xcd4055(0x25f)];}async[a147_0x35d5fb(0x234)](_0x3440b3){const _0x3d7868=a147_0x35d5fb,_0x2319c3={};_0x2319c3[_0x3d7868(0x26c)]='Percy\x20binary\x20is\x20up\x20to\x20date\x20(ETag\x20unchanged)',_0x2319c3[_0x3d7868(0x1e2)]=_0x3d7868(0x267);const _0x9f0326=_0x2319c3,_0x38cc68=this.#getAvailableDirs(),_0x220315=path['join'](_0x38cc68,this.#binaryName);if(this.#checkPath(_0x220315,fs[_0x3d7868(0x25e)])){const _0x14e0ff=this.#loadETag(_0x38cc68);if(_0x14e0ff)try{const _0x1bdc5a=await this['download'](_0x3440b3,_0x38cc68,_0x14e0ff);if(!_0x1bdc5a['needsUpdate'])return logger[_0x3d7868(0x242)](_0x9f0326['XqlNx']),_0x220315;return logger['debug'](_0x9f0326['xQtOe']),await this.#handleBinaryDownload(_0x1bdc5a,_0x3440b3,_0x38cc68);}catch(_0x55d1c3){return logger[_0x3d7868(0x22a)]('Failed\x20to\x20check\x20for\x20binary\x20updates,\x20using\x20existing\x20binary:\x20'+_0x55d1c3),_0x220315;}}const _0x1630c7=await this[_0x3d7868(0x1fa)](_0x3440b3,_0x38cc68);return await this.#handleBinaryDownload(_0x1630c7,_0x3440b3,_0x38cc68);}[a147_0x35d5fb(0x1fa)](_0x41abbd,_0xc5689c,_0x58f439=null){const _0x1db788=a147_0x35d5fb,_0xa2b4c5={'HwLko':function(_0x3f6120,_0x347d53){return _0x3f6120(_0x347d53);},'nHYLm':function(_0x5c513f,_0xf412a9){return _0x5c513f===_0xf412a9;},'ZeTfu':'error','OoMNh':_0x1db788(0x238),'gUbYv':function(_0x41f7d8,_0x5768de){return _0x41f7d8+_0x5768de;},'TNNog':_0x1db788(0x223)};_0xc5689c&&!this.#checkPath(_0xc5689c)&&fs['mkdirSync'](_0xc5689c);const _0x55263a=this.#binaryName,_0x4f9c49=path[_0x1db788(0x20e)](_0xc5689c,_0xa2b4c5[_0x1db788(0x252)](_0x55263a,_0xa2b4c5[_0x1db788(0x21f)])),_0xccd084=fs[_0x1db788(0x256)](_0x4f9c49),_0x279741=url['parse'](this.#httpPath);if(_0x41abbd['proxyHost']&&_0x41abbd[_0x1db788(0x248)]){const _0x2829df={};_0x2829df[_0x1db788(0x261)]=_0x41abbd['proxyHost'],_0x2829df[_0x1db788(0x269)]=_0x41abbd[_0x1db788(0x248)],_0x279741[_0x1db788(0x208)]=new HttpsProxyAgent(_0x2829df);}if(_0x41abbd[_0x1db788(0x1fe)])try{_0x279741['ca']=fs[_0x1db788(0x25d)](_0x41abbd[_0x1db788(0x1fe)]);}catch(_0x11da27){logger[_0x1db788(0x1e8)](_0x1db788(0x25a)+_0x11da27);}if(_0x58f439){const _0x3fcb62={};_0x3fcb62[_0x1db788(0x272)]=_0x58f439,_0x3fcb62[_0x1db788(0x22d)]=_0xa2b4c5[_0x1db788(0x1eb)],_0x279741[_0x1db788(0x26d)]=_0x3fcb62;}else{const _0x2a0463={};_0x2a0463['Connection']=_0xa2b4c5[_0x1db788(0x1eb)],_0x279741[_0x1db788(0x26d)]=_0x2a0463;}return new Promise((_0x39da09,_0x35e32e)=>{const _0x231af0=_0x1db788,_0x1e79ae={'uJnhi':function(_0x802963,_0x2dfb70){return _0xa2b4c5['HwLko'](_0x802963,_0x2dfb70);},'lxSoE':function(_0x2d74f4,_0x4e12bb){const _0x37f17a=a147_0x2e75;return _0xa2b4c5[_0x37f17a(0x212)](_0x2d74f4,_0x4e12bb);},'PFGKW':function(_0x53abd2,_0x656034){const _0x1c0513=a147_0x2e75;return _0xa2b4c5[_0x1c0513(0x1ec)](_0x53abd2,_0x656034);},'tQJBl':_0xa2b4c5['ZeTfu'],'xfsMZ':_0xa2b4c5[_0x231af0(0x1eb)]};https[_0x231af0(0x21d)](_0x279741,_0x42a915=>{const _0x14aa33=_0x231af0,_0x1a3572={'xxfgP':function(_0x34a8b0,_0x625926){const _0x30814d=a147_0x2e75;return _0x1e79ae[_0x30814d(0x1e4)](_0x34a8b0,_0x625926);}};if(_0x58f439&&_0x1e79ae[_0x14aa33(0x221)](_0x42a915[_0x14aa33(0x22e)],0x130)){_0xccd084[_0x14aa33(0x266)]();const _0x405508={};_0x405508[_0x14aa33(0x214)]=![],_0x1e79ae[_0x14aa33(0x1e1)](_0x39da09,_0x405508);return;}const _0x2cf341=_0x42a915[_0x14aa33(0x26d)][_0x14aa33(0x241)];_0x2cf341&&this.#saveETag(_0xc5689c,_0x2cf341),_0x42a915[_0x14aa33(0x26a)](_0xccd084),_0x42a915['on'](_0x1e79ae[_0x14aa33(0x235)],function(_0x4457b0){const _0x566b2d=_0x14aa33;logger['error'](_0x566b2d(0x20c)+_0x4457b0),_0x1e79ae['uJnhi'](_0x35e32e,_0x4457b0);}),_0xccd084['on'](_0x1e79ae[_0x14aa33(0x235)],function(_0x2d0f7a){const _0x168d72=_0x14aa33;logger[_0x168d72(0x1e8)](_0x168d72(0x21b)+_0x2d0f7a),_0x1a3572['xxfgP'](_0x35e32e,_0x2d0f7a);}),_0xccd084['on'](_0x1e79ae[_0x14aa33(0x1e9)],()=>{const _0x590631=_0x14aa33;this[_0x590631(0x1fd)](_0x4f9c49,_0xc5689c)[_0x590631(0x270)](_0x31a649=>_0x39da09({'needsUpdate':!![],'binaryPath':_0x31a649}))[_0x590631(0x236)](_0x35e32e);});})['on'](_0xa2b4c5['ZeTfu'],function(_0x2201d6){const _0x3aa031=_0x231af0;logger['error'](_0x3aa031(0x1f7)+_0x2201d6),_0x1e79ae[_0x3aa031(0x1e1)](_0x35e32e,_0x2201d6);});});}[a147_0x35d5fb(0x1fd)](_0x19145d,_0x2f670d){const _0x1835ac=a147_0x35d5fb,_0x5ceba9={'keCZN':function(_0x5075ef,_0x52553b){return _0x5075ef(_0x52553b);},'zdlrD':_0x1835ac(0x225),'qcQZG':function(_0x4c5257,_0x27e064){return _0x4c5257===_0x27e064;},'RRtER':_0x1835ac(0x265),'KCgSw':function(_0x11b4cd,_0x35f054){return _0x11b4cd(_0x35f054);},'PeowS':_0x1835ac(0x23c),'JgokD':_0x1835ac(0x1e8)},_0x46db11=this.#binaryName,_0x2fa56d=path['join'](_0x2f670d,_0x46db11);return new Promise((_0x26db52,_0x27da5a)=>{const _0x233b8d=_0x1835ac,_0x3dca19={'pIWlE':function(_0x561dae,_0x214b93){return _0x5ceba9['KCgSw'](_0x561dae,_0x214b93);}},_0x2083ba={};_0x2083ba['lazyEntries']=!![],yauzl[_0x233b8d(0x205)](_0x19145d,_0x2083ba,function(_0x421c8f,_0x469061){const _0xa1ae75=_0x233b8d,_0x2f2663={'WWBZL':function(_0x471ea0,_0x30e7b6){const _0x3c3dd8=a147_0x2e75;return _0x5ceba9[_0x3c3dd8(0x278)](_0x471ea0,_0x30e7b6);},'HqeOg':_0x5ceba9[_0xa1ae75(0x25c)],'wHvVh':function(_0x2b5328,_0x151551){const _0x216759=_0xa1ae75;return _0x5ceba9[_0x216759(0x204)](_0x2b5328,_0x151551);},'nuLaP':function(_0x2011ab,_0x43b087){const _0x579cee=_0xa1ae75;return _0x5ceba9[_0x579cee(0x278)](_0x2011ab,_0x43b087);},'duuAm':_0x5ceba9['RRtER']};_0x421c8f&&_0x5ceba9['KCgSw'](_0x27da5a,_0x421c8f),_0x469061[_0xa1ae75(0x203)](),_0x469061['on'](_0x5ceba9['PeowS'],_0x214e17=>{const _0x2320ae=_0xa1ae75,_0x17543a={'lwedh':function(_0x2a391b,_0x2ac12b){const _0x54e5a5=a147_0x2e75;return _0x2f2663[_0x54e5a5(0x211)](_0x2a391b,_0x2ac12b);},'uqaZS':_0x2f2663[_0x2320ae(0x202)]};if(/\/$/['test'](_0x214e17['fileName']))_0x469061['readEntry']();else{const _0x19d190=fs[_0x2320ae(0x256)](path[_0x2320ae(0x20e)](_0x2f670d,_0x214e17['fileName']));_0x469061[_0x2320ae(0x1f2)](_0x214e17,function(_0x2b45a1,_0x345e2b){const _0x1f2924=_0x2320ae;_0x2b45a1&&_0x17543a[_0x1f2924(0x254)](_0x27da5a,_0x421c8f),_0x345e2b['on'](_0x17543a[_0x1f2924(0x21a)],function(){const _0x2fdf0e=_0x1f2924;_0x19d190['close'](),_0x469061[_0x2fdf0e(0x203)]();}),_0x345e2b[_0x1f2924(0x26a)](_0x19d190);}),_0x2f2663[_0x2320ae(0x1fb)](_0x214e17[_0x2320ae(0x260)],_0x46db11)&&_0x469061[_0x2320ae(0x238)]();}}),_0x469061['on'](_0x5ceba9[_0xa1ae75(0x1e5)],_0x2ceec4=>{const _0x1c57e8=_0xa1ae75;_0x3dca19[_0x1c57e8(0x23e)](_0x27da5a,_0x2ceec4);}),_0x469061[_0xa1ae75(0x233)](_0x5ceba9[_0xa1ae75(0x25c)],()=>{const _0xbf70e0=_0xa1ae75;fs[_0xbf70e0(0x27a)](_0x2fa56d,_0x2f2663[_0xbf70e0(0x255)],function(_0x4436b2){const _0x1bb535=_0xbf70e0;_0x4436b2&&_0x2f2663[_0x1bb535(0x211)](_0x27da5a,_0x4436b2),_0x2f2663[_0x1bb535(0x22b)](_0x26db52,_0x2fa56d);}),_0x469061[_0xbf70e0(0x238)]();});});});}async[a147_0x35d5fb(0x232)](_0x4aea97){const _0x556e98=a147_0x35d5fb,_0x7e6f64={'BBOgs':function(_0x4dd175,_0x31dbe8){return _0x4dd175(_0x31dbe8);},'PLqlc':function(_0x388f9c,_0x26b555,_0x1b3f7f,_0x4e7ea7){return _0x388f9c(_0x26b555,_0x1b3f7f,_0x4e7ea7);},'nEQbK':_0x556e98(0x253),'EizNJ':'data','QFVZc':'close'},_0x41e6d6=/^.*@percy\/cli \d.\d+.\d+/;return new Promise((_0xa81590,_0x4c2db9)=>{const _0x2edae1=_0x556e98,_0x3f73be={'YslLP':function(_0x1762ee,_0x2f8a51){const _0x54c495=a147_0x2e75;return _0x7e6f64[_0x54c495(0x250)](_0x1762ee,_0x2f8a51);}},_0x330a89={};_0x330a89['env']=process['env'];const _0x30bc49=_0x7e6f64[_0x2edae1(0x1e6)](spawn,_0x4aea97,[_0x7e6f64[_0x2edae1(0x1de)]],_0x330a89);_0x30bc49[_0x2edae1(0x26b)]['on'](_0x7e6f64[_0x2edae1(0x24e)],_0x3d3c26=>{const _0x296ade=_0x2edae1;_0x41e6d6[_0x296ade(0x22c)](_0x3d3c26)&&_0x7e6f64[_0x296ade(0x250)](_0xa81590,!![]);}),_0x30bc49['on'](_0x7e6f64[_0x2edae1(0x23a)],()=>{const _0x233c7a=_0x2edae1;_0x3f73be[_0x233c7a(0x1ed)](_0xa81590,![]);});});}#homedir(){const _0x299eb4=a147_0x35d5fb,_0x58cac8={};_0x58cac8[_0x299eb4(0x1e3)]=function(_0x21fd4c,_0x4a84d2){return _0x21fd4c===_0x4a84d2;},_0x58cac8[_0x299eb4(0x210)]=_0x299eb4(0x249),_0x58cac8['wAHRg']=_0x299eb4(0x231),_0x58cac8[_0x299eb4(0x226)]=function(_0x1c0bfd,_0x1b24ac){return _0x1c0bfd+_0x1b24ac;},_0x58cac8[_0x299eb4(0x21e)]=_0x299eb4(0x1df),_0x58cac8['GVAdY']=_0x299eb4(0x273),_0x58cac8['dFDKM']=function(_0x4c7e78,_0x305b1e){return _0x4c7e78===_0x305b1e;},_0x58cac8[_0x299eb4(0x243)]=_0x299eb4(0x20b),_0x58cac8[_0x299eb4(0x1ea)]=function(_0x6b5236,_0x30f71d){return _0x6b5236===_0x30f71d;},_0x58cac8[_0x299eb4(0x247)]=_0x299eb4(0x217),_0x58cac8[_0x299eb4(0x224)]='/home/',_0x58cac8[_0x299eb4(0x20d)]=function(_0x4cd25b,_0x3c3bf5){return _0x4cd25b||_0x3c3bf5;};const _0x359b53=_0x58cac8;if(_0x359b53[_0x299eb4(0x1e3)](typeof os[_0x299eb4(0x25b)],_0x359b53[_0x299eb4(0x210)]))return os[_0x299eb4(0x25b)]();const _0x5f1c6b=process[_0x299eb4(0x276)],_0x28455f=_0x5f1c6b[_0x299eb4(0x1f3)],_0x19fff6=_0x5f1c6b['LOGNAME']||_0x5f1c6b[_0x299eb4(0x1f8)]||_0x5f1c6b[_0x299eb4(0x20f)]||_0x5f1c6b[_0x299eb4(0x24a)];if(_0x359b53[_0x299eb4(0x1e3)](process[_0x299eb4(0x274)],_0x359b53[_0x299eb4(0x1f9)]))return _0x5f1c6b['USERPROFILE']||_0x359b53['dTwYx'](_0x5f1c6b[_0x299eb4(0x1e0)],_0x5f1c6b['HOMEPATH'])||_0x28455f||null;if(_0x359b53[_0x299eb4(0x1e3)](process['platform'],_0x359b53[_0x299eb4(0x21e)]))return _0x28455f||(_0x19fff6?_0x359b53['dTwYx'](_0x359b53['GVAdY'],_0x19fff6):null);if(_0x359b53['dFDKM'](process[_0x299eb4(0x274)],_0x359b53[_0x299eb4(0x243)]))return _0x28455f||(_0x359b53[_0x299eb4(0x1ea)](process[_0x299eb4(0x1f1)](),0x0)?_0x359b53[_0x299eb4(0x247)]:_0x19fff6?_0x359b53[_0x299eb4(0x226)](_0x359b53['gDWcp'],_0x19fff6):null);return _0x359b53['zjhGB'](_0x28455f,null);}}module[a147_0x35d5fb(0x251)]=PercyBinary;
|
|
1
|
+
function a150_0x5108(){const _0x2011a5=['proxyHost','EafDl','writeFileSync','.etag','KCfiB','New\x20Percy\x20binary\x20version\x20available,\x20downloading\x20update','getuid','ZkhLa','path','win32','UBukI','test','0755','https://github.com/percy/cli/releases/latest/download','/percy-linux.zip','Got\x20Error\x20in\x20percy\x20binary\x20download\x20response:\x20','55728VhsrvK','ICRBx','vPOtc','download','wZeRq','/home/','close','WEBNc','utf8','wUInZ','follow-redirects','msCSV','cwd','sneDh','host','kJarl','/percy-osx.zip','iaAGH','getBinaryPath','data','vWPvi','join','/Users/','EuvQD','fileName','JYYow','3130xVoFQy','W_OK','platform','ybbYc','accessSync','Failed\x20to\x20check\x20for\x20binary\x20updates,\x20using\x20existing\x20binary:\x20','QKZvr','pCikZ','DdYot','createWriteStream','error','exports','jwxLI','winstonLogger','NttBT','match','validateBinary','HOME','Connection','mkdirSync','R_OK','jcNXF','Saved\x20new\x20ETag\x20for\x20percy\x20binary','env','then','port','warn','child_process','AqslA','oLaUC','/root','2135568nRftrk','Percy\x20binary\x20is\x20up\x20to\x20date\x20(ETag\x20unchanged)','eTvQR','trim','open','.zip','Percy\x20download\x20failed\x20to\x20read\x20cert\x20file:\x20','MePBx','statusCode','binaryPath','zdRli','YrTUa','FNPPq','vLmwl','SuuDU','/percy-win.zip','YCkIx','zpmmi','headers','qzJgI','length','LyBEY','pgHxH','chmod','function','DRAXh','parse','readFileSync','--version','RaaPU','destroy','statSync','proxyPort','.browserstack','DCYBa','OfCaJ','bgzTk','XFpSA','4SMFYTO','stdout','../logger','elcZE','Nbclh','uPTYc','bKrYx','USERNAME','4383950ijPqpf','EHvQz','Failed\x20to\x20read\x20ETag\x20file:\x20','pipe','oDzNY','FbvpC','useCaCertificate','hakmA','openReadStream','431646ryyoKI','8132670KSBxUm','AMSGB','get','LOGNAME','CZvuz','USER','extractAndSaveBinary','needsUpdate','If-None-Match','gALmP','104vMReHU','percy','undefined','homedir','14JsqvWm','LMGir','https-proxy-agent','5800SnqoGF','LNAME','debug','once'];a150_0x5108=function(){return _0x2011a5;};return a150_0x5108();}function a150_0x279e(_0x1f461e,_0x2412db){const _0x5108d7=a150_0x5108();return a150_0x279e=function(_0x279eb7,_0x42ad16){_0x279eb7=_0x279eb7-0x6d;let _0x50439b=_0x5108d7[_0x279eb7];return _0x50439b;},a150_0x279e(_0x1f461e,_0x2412db);}const a150_0x44025a=a150_0x279e;(function(_0x4ed668,_0x2bb4a7){const _0x35be48=a150_0x279e,_0xeb95dd=_0x4ed668();while(!![]){try{const _0x281868=parseInt(_0x35be48(0x9c))/0x1*(-parseInt(_0x35be48(0x95))/0x2)+-parseInt(_0x35be48(0xe9))/0x3*(parseInt(_0x35be48(0x79))/0x4)+-parseInt(_0x35be48(0xca))/0x5+parseInt(_0x35be48(0x8a))/0x6*(parseInt(_0x35be48(0x99))/0x7)+parseInt(_0x35be48(0xb0))/0x8+parseInt(_0x35be48(0x8b))/0x9+parseInt(_0x35be48(0x81))/0xa;if(_0x281868===_0x2bb4a7)break;else _0xeb95dd['push'](_0xeb95dd['shift']());}catch(_0x405e5c){_0xeb95dd['push'](_0xeb95dd['shift']());}}}(a150_0x5108,0x74e47));const {https}=require(a150_0x44025a(0xba)),url=require('url'),yauzl=require('yauzl'),fs=require('fs'),path=require(a150_0x44025a(0xa8)),os=require('os'),{spawn}=require(a150_0x44025a(0xe5)),HttpsProxyAgent=require(a150_0x44025a(0x9b)),logger=require(a150_0x44025a(0x7b))[a150_0x44025a(0xd7)];class PercyBinary{#hostOS=process[a150_0x44025a(0xcc)];#httpPath=null;#binaryName=a150_0x44025a(0x96);#orderedPaths=[path[a150_0x44025a(0xc5)](this.#homedir(),a150_0x44025a(0x74)),process[a150_0x44025a(0xbc)](),os['tmpdir']()];constructor(){const _0x2dad1e=a150_0x44025a,_0x2d8cce={};_0x2d8cce[_0x2dad1e(0xf4)]=_0x2dad1e(0xad),_0x2d8cce[_0x2dad1e(0xc1)]=function(_0xb27c6f,_0x25d692){return _0xb27c6f+_0x25d692;},_0x2d8cce['uWaFD']=_0x2dad1e(0xc0),_0x2d8cce['vWPvi']=function(_0x38eb2d,_0x2866e6){return _0x38eb2d+_0x2866e6;},_0x2d8cce[_0x2dad1e(0xaa)]=_0x2dad1e(0xf8),_0x2d8cce[_0x2dad1e(0xa4)]='percy.exe',_0x2d8cce[_0x2dad1e(0xfa)]=function(_0x578f0b,_0x49572d){return _0x578f0b+_0x49572d;},_0x2d8cce[_0x2dad1e(0x86)]=_0x2dad1e(0xae);const _0x8a5107=_0x2d8cce,_0x5b5f51=_0x8a5107[_0x2dad1e(0xf4)];if(this.#hostOS['match'](/darwin|mac os/i))this.#httpPath=_0x8a5107['iaAGH'](_0x5b5f51,_0x8a5107['uWaFD']);else this.#hostOS[_0x2dad1e(0xd9)](/mswin|msys|mingw|cygwin|bccwin|wince|emc|win32/i)?(this.#httpPath=_0x8a5107[_0x2dad1e(0xc4)](_0x5b5f51,_0x8a5107[_0x2dad1e(0xaa)]),this.#binaryName=_0x8a5107[_0x2dad1e(0xa4)]):this.#httpPath=_0x8a5107[_0x2dad1e(0xfa)](_0x5b5f51,_0x8a5107[_0x2dad1e(0x86)]);}#getAvailableDirs(){const _0x58f813=a150_0x44025a,_0xdc0236={};_0xdc0236[_0x58f813(0xd0)]=function(_0x146f42,_0x25828d){return _0x146f42<_0x25828d;},_0xdc0236[_0x58f813(0x94)]='Error\x20trying\x20to\x20download\x20percy\x20binary';const _0x1f7628=_0xdc0236;for(var _0x1a0804=0x0;_0x1f7628[_0x58f813(0xd0)](_0x1a0804,this.#orderedPaths[_0x58f813(0xfd)]);_0x1a0804++){var _0x234060=this.#orderedPaths[_0x1a0804];if(this.#makePath(_0x234060))return _0x234060;}throw new Error(_0x1f7628[_0x58f813(0x94)]);}#makePath(_0x8b68a1){try{return _0x8b68a1&&!this.#checkPath(_0x8b68a1)&&fs['mkdirSync'](_0x8b68a1),!![];}catch{return![];}}#checkPath(_0x4e68ce,_0x4aa20e){const _0x5cecbf=a150_0x44025a,_0x3076cc={};_0x3076cc[_0x5cecbf(0x7f)]=function(_0xedbe61,_0x42446d){return _0xedbe61|_0x42446d;},_0x3076cc[_0x5cecbf(0xf3)]=function(_0x4545cb,_0x1bce0a){return _0x4545cb!==_0x1bce0a;},_0x3076cc[_0x5cecbf(0xbb)]=_0x5cecbf(0x97);const _0x784fc5=_0x3076cc;_0x4aa20e=_0x4aa20e||_0x784fc5[_0x5cecbf(0x7f)](fs[_0x5cecbf(0xde)],fs[_0x5cecbf(0xcb)]);try{return fs['accessSync'](_0x4e68ce,_0x4aa20e),!![];}catch(_0xa3ec0a){if(_0x784fc5['zdRli'](typeof fs[_0x5cecbf(0xce)],_0x784fc5[_0x5cecbf(0xbb)]))return![];try{return fs[_0x5cecbf(0x72)](_0x4e68ce),!![];}catch(_0xa7b818){return![];}}}#getETagPath(_0x215cf8){const _0x3ed7ce=a150_0x44025a;return path['join'](_0x215cf8,this.#binaryName+_0x3ed7ce(0xa3));}#loadETag(_0x2d02f2){const _0x2394d9=a150_0x44025a,_0x2f06ab={};_0x2f06ab['hakmA']=_0x2394d9(0xb8);const _0x386693=_0x2f06ab,_0x5669db=this.#getETagPath(_0x2d02f2);if(this.#checkPath(_0x5669db))try{return fs['readFileSync'](_0x5669db,_0x386693[_0x2394d9(0x88)])[_0x2394d9(0xec)]();}catch(_0x51cf01){logger[_0x2394d9(0xe4)](_0x2394d9(0x83)+_0x51cf01);}return null;}#saveETag(_0x2fdb96,_0x24f574){const _0x49f54c=a150_0x44025a,_0x50b2c2={};_0x50b2c2[_0x49f54c(0xff)]=_0x49f54c(0xe0);const _0x2a8dc3=_0x50b2c2;if(!_0x24f574)return;try{const _0x52d1f2=this.#getETagPath(_0x2fdb96);fs[_0x49f54c(0xa2)](_0x52d1f2,_0x24f574),logger[_0x49f54c(0x9e)](_0x2a8dc3['pgHxH']);}catch(_0x47a5a7){logger[_0x49f54c(0xe4)]('Failed\x20to\x20save\x20ETag\x20file:\x20'+_0x47a5a7);}}async #handleBinaryDownload(_0x59677f,_0x1d0fa2,_0x1c960c){const _0x186cd8=a150_0x44025a,_0x26463f={};_0x26463f[_0x186cd8(0x102)]='Newly\x20downloaded\x20Percy\x20binary\x20is\x20corrupt,\x20retrying';const _0x5852ab=_0x26463f,_0x8de72f=await this[_0x186cd8(0xda)](_0x59677f['binaryPath']);if(!_0x8de72f){logger['error'](_0x5852ab[_0x186cd8(0x102)]);const _0x5be0b3=await this[_0x186cd8(0xb3)](_0x1d0fa2,_0x1c960c);return _0x5be0b3[_0x186cd8(0xf2)];}return _0x59677f[_0x186cd8(0xf2)];}async[a150_0x44025a(0xc2)](_0x42394d){const _0x518953=a150_0x44025a,_0x28b785={};_0x28b785[_0x518953(0x8f)]=_0x518953(0xea),_0x28b785[_0x518953(0x70)]=_0x518953(0xa5);const _0x366e1d=_0x28b785,_0x4890a0=this.#getAvailableDirs(),_0x1c0ffa=path[_0x518953(0xc5)](_0x4890a0,this.#binaryName);if(this.#checkPath(_0x1c0ffa,fs['X_OK'])){const _0x3fe42a=this.#loadETag(_0x4890a0);if(_0x3fe42a)try{const _0xdf7148=await this['download'](_0x42394d,_0x4890a0,_0x3fe42a);if(!_0xdf7148[_0x518953(0x92)])return logger[_0x518953(0x9e)](_0x366e1d[_0x518953(0x8f)]),_0x1c0ffa;return logger['debug'](_0x366e1d[_0x518953(0x70)]),await this.#handleBinaryDownload(_0xdf7148,_0x42394d,_0x4890a0);}catch(_0x4b2c78){return logger[_0x518953(0xe4)](_0x518953(0xcf)+_0x4b2c78),_0x1c0ffa;}}const _0x5ba598=await this[_0x518953(0xb3)](_0x42394d,_0x4890a0);return await this.#handleBinaryDownload(_0x5ba598,_0x42394d,_0x4890a0);}[a150_0x44025a(0xb3)](_0x3a4696,_0x3d66b0,_0x29de34=null){const _0x46f293=a150_0x44025a,_0x405c26={'wUInZ':function(_0x121275,_0x24aaaa){return _0x121275(_0x24aaaa);},'EafDl':function(_0x3b7c99,_0x7d9c90){return _0x3b7c99===_0x7d9c90;},'SuuDU':_0x46f293(0xd4),'XFpSA':_0x46f293(0xb6),'ybbYc':function(_0x8a002c,_0x5dab8c){return _0x8a002c(_0x5dab8c);},'ZkhLa':function(_0x56b2bb,_0x59b36e){return _0x56b2bb+_0x59b36e;},'BfgcB':_0x46f293(0xee)};_0x3d66b0&&!this.#checkPath(_0x3d66b0)&&fs[_0x46f293(0xdd)](_0x3d66b0);const _0x72532c=this.#binaryName,_0x2d2da0=path['join'](_0x3d66b0,_0x405c26[_0x46f293(0xa7)](_0x72532c,_0x405c26['BfgcB'])),_0x8631a3=fs[_0x46f293(0xd3)](_0x2d2da0),_0x2360b8=url[_0x46f293(0x6d)](this.#httpPath);if(_0x3a4696[_0x46f293(0xa0)]&&_0x3a4696[_0x46f293(0x73)]){const _0x379906={};_0x379906[_0x46f293(0xbe)]=_0x3a4696[_0x46f293(0xa0)],_0x379906[_0x46f293(0xe3)]=_0x3a4696[_0x46f293(0x73)],_0x2360b8['agent']=new HttpsProxyAgent(_0x379906);}if(_0x3a4696[_0x46f293(0x87)])try{_0x2360b8['ca']=fs[_0x46f293(0x6e)](_0x3a4696[_0x46f293(0x87)]);}catch(_0x2e8e64){logger[_0x46f293(0xd4)](_0x46f293(0xef)+_0x2e8e64);}if(_0x29de34){const _0xb2c270={};_0xb2c270[_0x46f293(0x93)]=_0x29de34,_0xb2c270[_0x46f293(0xdc)]=_0x405c26[_0x46f293(0x78)],_0x2360b8[_0x46f293(0xfb)]=_0xb2c270;}else{const _0x5aab04={};_0x5aab04[_0x46f293(0xdc)]=_0x405c26[_0x46f293(0x78)],_0x2360b8[_0x46f293(0xfb)]=_0x5aab04;}return new Promise((_0x40b6a7,_0x48b685)=>{const _0x4a535b=_0x46f293;https[_0x4a535b(0x8d)](_0x2360b8,_0x116e30=>{const _0x1956ae=_0x4a535b,_0x5177da={'JYYow':function(_0x2f9f01,_0x8ee59a){return _0x405c26['wUInZ'](_0x2f9f01,_0x8ee59a);},'HTYxq':function(_0x31f930,_0x2ca2fc){const _0x40a753=a150_0x279e;return _0x405c26[_0x40a753(0xb9)](_0x31f930,_0x2ca2fc);}};if(_0x29de34&&_0x405c26[_0x1956ae(0xa1)](_0x116e30[_0x1956ae(0xf1)],0x130)){_0x8631a3[_0x1956ae(0x71)]();const _0x4bf9be={};_0x4bf9be[_0x1956ae(0x92)]=![],_0x405c26[_0x1956ae(0xb9)](_0x40b6a7,_0x4bf9be);return;}const _0x2a58de=_0x116e30[_0x1956ae(0xfb)]['etag'];_0x2a58de&&this.#saveETag(_0x3d66b0,_0x2a58de),_0x116e30['pipe'](_0x8631a3),_0x116e30['on'](_0x405c26[_0x1956ae(0xf7)],function(_0x2b25e8){const _0x4c786f=_0x1956ae;logger[_0x4c786f(0xd4)](_0x4c786f(0xaf)+_0x2b25e8),_0x5177da[_0x4c786f(0xc9)](_0x48b685,_0x2b25e8);}),_0x8631a3['on'](_0x405c26['SuuDU'],function(_0x45bf45){logger['error']('Got\x20Error\x20while\x20downloading\x20percy\x20binary\x20file:\x20'+_0x45bf45),_0x5177da['HTYxq'](_0x48b685,_0x45bf45);}),_0x8631a3['on'](_0x405c26[_0x1956ae(0x78)],()=>{const _0xf51f8a=_0x1956ae;this[_0xf51f8a(0x91)](_0x2d2da0,_0x3d66b0)[_0xf51f8a(0xe2)](_0x482864=>_0x40b6a7({'needsUpdate':!![],'binaryPath':_0x482864}))['catch'](_0x48b685);});})['on'](_0x405c26[_0x4a535b(0xf7)],function(_0x541d2e){const _0x4b9446=_0x4a535b;logger[_0x4b9446(0xd4)]('Got\x20Error\x20in\x20percy\x20binary\x20downloading\x20request:\x20'+_0x541d2e),_0x405c26[_0x4b9446(0xcd)](_0x48b685,_0x541d2e);});});}[a150_0x44025a(0x91)](_0x4ea83e,_0x4844a6){const _0x3f2d77=a150_0x44025a,_0x190683={'MePBx':function(_0x4e9abb,_0x383404){return _0x4e9abb===_0x383404;},'vPOtc':function(_0x573d81,_0x54545b){return _0x573d81(_0x54545b);},'AMSGB':_0x3f2d77(0xac),'ISblE':'end','WEBNc':'entry','TBOBs':_0x3f2d77(0xd4)},_0xe76e9=this.#binaryName,_0x1f6d30=path['join'](_0x4844a6,_0xe76e9);return new Promise((_0x2e7b2d,_0x1fc5ca)=>{const _0x58a9c3=_0x3f2d77,_0x2f7833={'YCkIx':function(_0x27ebd2,_0x5b140e){const _0x16ae1e=a150_0x279e;return _0x190683[_0x16ae1e(0xf0)](_0x27ebd2,_0x5b140e);},'ijLLI':function(_0x30fe92,_0x323bf7){const _0x17c8b8=a150_0x279e;return _0x190683[_0x17c8b8(0xb2)](_0x30fe92,_0x323bf7);},'DdYot':_0x190683[_0x58a9c3(0x8c)],'eTvQR':function(_0x5526c9,_0x1669bc){return _0x190683['vPOtc'](_0x5526c9,_0x1669bc);},'DCYBa':_0x190683['ISblE'],'wZeRq':function(_0x2ae4fa,_0x2f3188){const _0x452936=_0x58a9c3;return _0x190683[_0x452936(0xb2)](_0x2ae4fa,_0x2f3188);},'vLmwl':_0x190683[_0x58a9c3(0xb7)],'ezphM':_0x190683['TBOBs']},_0x39feb4={};_0x39feb4['lazyEntries']=!![],yauzl[_0x58a9c3(0xed)](_0x4ea83e,_0x39feb4,function(_0x1490ae,_0x312a9c){const _0x2f6228=_0x58a9c3,_0x3fa768={'HbXZk':function(_0x436254,_0x1c9166){const _0x475873=a150_0x279e;return _0x2f7833[_0x475873(0xeb)](_0x436254,_0x1c9166);},'oDzNY':_0x2f7833['DCYBa'],'OfCaJ':function(_0x524428,_0x30c382){const _0x196531=a150_0x279e;return _0x2f7833[_0x196531(0xeb)](_0x524428,_0x30c382);},'elcZE':function(_0x3ad03e,_0x270525){const _0x2cb9c9=a150_0x279e;return _0x2f7833[_0x2cb9c9(0xb4)](_0x3ad03e,_0x270525);}};_0x1490ae&&_0x2f7833['ijLLI'](_0x1fc5ca,_0x1490ae),_0x312a9c['readEntry'](),_0x312a9c['on'](_0x2f7833[_0x2f6228(0xf6)],_0x8344ac=>{const _0x2a4dda=_0x2f6228;if(/\/$/[_0x2a4dda(0xab)](_0x8344ac[_0x2a4dda(0xc8)]))_0x312a9c['readEntry']();else{const _0xbbdfb=fs[_0x2a4dda(0xd3)](path['join'](_0x4844a6,_0x8344ac[_0x2a4dda(0xc8)]));_0x312a9c[_0x2a4dda(0x89)](_0x8344ac,function(_0x147407,_0xaa1627){const _0x2cca60=_0x2a4dda;_0x147407&&_0x3fa768['HbXZk'](_0x1fc5ca,_0x1490ae),_0xaa1627['on'](_0x3fa768[_0x2cca60(0x85)],function(){const _0x5d2478=_0x2cca60;_0xbbdfb[_0x5d2478(0xb6)](),_0x312a9c['readEntry']();}),_0xaa1627[_0x2cca60(0x84)](_0xbbdfb);}),_0x2f7833[_0x2a4dda(0xf9)](_0x8344ac[_0x2a4dda(0xc8)],_0xe76e9)&&_0x312a9c[_0x2a4dda(0xb6)]();}}),_0x312a9c['on'](_0x2f7833['ezphM'],_0x453a20=>{_0x2f7833['ijLLI'](_0x1fc5ca,_0x453a20);}),_0x312a9c[_0x2f6228(0x9f)](_0x2f7833[_0x2f6228(0x75)],()=>{const _0x18ffb=_0x2f6228;fs[_0x18ffb(0x100)](_0x1f6d30,_0x2f7833[_0x18ffb(0xd2)],function(_0x2b0e31){const _0x4a9da6=_0x18ffb;_0x2b0e31&&_0x3fa768[_0x4a9da6(0x76)](_0x1fc5ca,_0x2b0e31),_0x3fa768[_0x4a9da6(0x7c)](_0x2e7b2d,_0x1f6d30);}),_0x312a9c['close']();});});});}async['validateBinary'](_0x4b54a2){const _0xc9835b=a150_0x44025a,_0x5cc7cb={'AqslA':function(_0x5603cb,_0x33a44a){return _0x5603cb(_0x33a44a);},'bgzTk':function(_0x248c66,_0x3fff71,_0x1bbc2c,_0x4fcc71){return _0x248c66(_0x3fff71,_0x1bbc2c,_0x4fcc71);},'Nbclh':_0xc9835b(0x6f),'uPTYc':_0xc9835b(0xc3),'EHvQz':'close'},_0x375f12=/^.*@percy\/cli \d.\d+.\d+/;return new Promise((_0x433064,_0x277949)=>{const _0x2577f0=_0xc9835b,_0x33d2b7={};_0x33d2b7['env']=process['env'];const _0x189318=_0x5cc7cb[_0x2577f0(0x77)](spawn,_0x4b54a2,[_0x5cc7cb[_0x2577f0(0x7d)]],_0x33d2b7);_0x189318[_0x2577f0(0x7a)]['on'](_0x5cc7cb[_0x2577f0(0x7e)],_0x3fdd81=>{_0x375f12['test'](_0x3fdd81)&&_0x5cc7cb['AqslA'](_0x433064,!![]);}),_0x189318['on'](_0x5cc7cb[_0x2577f0(0x82)],()=>{const _0x908f24=_0x2577f0;_0x5cc7cb[_0x908f24(0xe6)](_0x433064,![]);});});}#homedir(){const _0x5190d2=a150_0x44025a,_0xf9d788={};_0xf9d788[_0x5190d2(0xbf)]=function(_0x50cdb1,_0x3886c5){return _0x50cdb1===_0x3886c5;},_0xf9d788[_0x5190d2(0xdf)]=_0x5190d2(0x101),_0xf9d788[_0x5190d2(0xc7)]=function(_0x2cb96c,_0x3632be){return _0x2cb96c===_0x3632be;},_0xf9d788[_0x5190d2(0xfc)]=_0x5190d2(0xa9),_0xf9d788[_0x5190d2(0xd8)]=function(_0x1559f7,_0x362c39){return _0x1559f7+_0x362c39;},_0xf9d788[_0x5190d2(0xd1)]='darwin',_0xf9d788[_0x5190d2(0xf5)]=function(_0xbb3e09,_0x31f55f){return _0xbb3e09+_0x31f55f;},_0xf9d788['jwxLI']=_0x5190d2(0xc6),_0xf9d788[_0x5190d2(0xbd)]=function(_0x2f3809,_0x7fd7d9){return _0x2f3809===_0x7fd7d9;},_0xf9d788[_0x5190d2(0xfe)]='linux',_0xf9d788[_0x5190d2(0xb1)]=_0x5190d2(0xe8),_0xf9d788[_0x5190d2(0x9a)]=_0x5190d2(0xb5),_0xf9d788[_0x5190d2(0xe7)]=function(_0x40182f,_0x3f1432){return _0x40182f||_0x3f1432;};const _0x1f85e5=_0xf9d788;if(_0x1f85e5[_0x5190d2(0xbf)](typeof os[_0x5190d2(0x98)],_0x1f85e5[_0x5190d2(0xdf)]))return os[_0x5190d2(0x98)]();const _0x3c9859=process[_0x5190d2(0xe1)],_0x103bf9=_0x3c9859[_0x5190d2(0xdb)],_0x432ea0=_0x3c9859[_0x5190d2(0x8e)]||_0x3c9859[_0x5190d2(0x90)]||_0x3c9859[_0x5190d2(0x9d)]||_0x3c9859[_0x5190d2(0x80)];if(_0x1f85e5[_0x5190d2(0xc7)](process['platform'],_0x1f85e5['qzJgI']))return _0x3c9859['USERPROFILE']||_0x1f85e5[_0x5190d2(0xd8)](_0x3c9859['HOMEDRIVE'],_0x3c9859['HOMEPATH'])||_0x103bf9||null;if(_0x1f85e5[_0x5190d2(0xbf)](process[_0x5190d2(0xcc)],_0x1f85e5['pCikZ']))return _0x103bf9||(_0x432ea0?_0x1f85e5[_0x5190d2(0xf5)](_0x1f85e5[_0x5190d2(0xd6)],_0x432ea0):null);if(_0x1f85e5[_0x5190d2(0xbd)](process[_0x5190d2(0xcc)],_0x1f85e5['LyBEY']))return _0x103bf9||(_0x1f85e5[_0x5190d2(0xc7)](process[_0x5190d2(0xa6)](),0x0)?_0x1f85e5[_0x5190d2(0xb1)]:_0x432ea0?_0x1f85e5['FNPPq'](_0x1f85e5[_0x5190d2(0x9a)],_0x432ea0):null);return _0x1f85e5[_0x5190d2(0xe7)](_0x103bf9,null);}}module[a150_0x44025a(0xd5)]=PercyBinary;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a151_0x25c0a5=a151_0x554b;(function(_0xd3119,_0x1fc74f){var _0x506040=a151_0x554b,_0x4cbe2e=_0xd3119();while(!![]){try{var _0x25b438=parseInt(_0x506040(0xf6))/0x1*(-parseInt(_0x506040(0xfa))/0x2)+-parseInt(_0x506040(0xf5))/0x3*(-parseInt(_0x506040(0xfd))/0x4)+parseInt(_0x506040(0xf9))/0x5+-parseInt(_0x506040(0xf8))/0x6*(-parseInt(_0x506040(0xff))/0x7)+-parseInt(_0x506040(0xf7))/0x8*(parseInt(_0x506040(0xfe))/0x9)+parseInt(_0x506040(0xfb))/0xa+-parseInt(_0x506040(0xf4))/0xb*(parseInt(_0x506040(0x101))/0xc);if(_0x25b438===_0x1fc74f)break;else _0x4cbe2e['push'](_0x4cbe2e['shift']());}catch(_0x3337e4){_0x4cbe2e['push'](_0x4cbe2e['shift']());}}}(a151_0x1bea,0x61594));function a151_0x1bea(){var _0x1286fb=['41148ysssgg','670985zQTnEt','5570EPeMID','5939780lBxufz','exports','4ypJZfb','13734GyixHA','553svyWgn','get','600GTIRnl','increment','24585WdvLsQ','1877997pEVTVN','212aOQPQg','4168IpIILd'];a151_0x1bea=function(){return _0x1286fb;};return a151_0x1bea();}function a151_0x554b(_0x1ffc33,_0xf0a419){var _0x1beaed=a151_0x1bea();return a151_0x554b=function(_0x554bbc,_0x43341b){_0x554bbc=_0x554bbc-0xf3;var _0x593bee=_0x1beaed[_0x554bbc];return _0x593bee;},a151_0x554b(_0x1ffc33,_0xf0a419);}class PercyCaptureMap{#map={};[a151_0x25c0a5(0xf3)](_0xc956b2,_0x33ab63){!this.#map[_0xc956b2]&&(this.#map[_0xc956b2]={}),!this.#map[_0xc956b2][_0x33ab63]&&(this.#map[_0xc956b2][_0x33ab63]=0x0),this.#map[_0xc956b2][_0x33ab63]++;}['getName'](_0x3fe90e,_0x4f5444){var _0x28bb82=a151_0x25c0a5;return _0x3fe90e+'-'+_0x4f5444+'-'+this[_0x28bb82(0x100)](_0x3fe90e,_0x4f5444);}[a151_0x25c0a5(0x100)](_0x238df7,_0x168396){if(!this.#map[_0x238df7])return 0x0;if(!this.#map[_0x238df7][_0x168396])return 0x0;return this.#map[_0x238df7][_0x168396];}}module[a151_0x25c0a5(0xfc)]=PercyCaptureMap;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a152_0x5bc2a9=a152_0x5441;(function(_0x15339e,_0x4197d6){var _0x3ed287=a152_0x5441,_0x5239d1=_0x15339e();while(!![]){try{var _0x59f502=parseInt(_0x3ed287(0x140))/0x1+parseInt(_0x3ed287(0x143))/0x2+-parseInt(_0x3ed287(0x13e))/0x3+-parseInt(_0x3ed287(0x142))/0x4*(parseInt(_0x3ed287(0x148))/0x5)+-parseInt(_0x3ed287(0x146))/0x6*(-parseInt(_0x3ed287(0x149))/0x7)+parseInt(_0x3ed287(0x14f))/0x8*(-parseInt(_0x3ed287(0x13d))/0x9)+parseInt(_0x3ed287(0x14a))/0xa*(parseInt(_0x3ed287(0x145))/0xb);if(_0x59f502===_0x4197d6)break;else _0x5239d1['push'](_0x5239d1['shift']());}catch(_0x5af543){_0x5239d1['push'](_0x5239d1['shift']());}}}(a152_0x4d4c,0xe1483));var a152_0x1ff8e3={};a152_0x1ff8e3[a152_0x5bc2a9(0x13f)]=[a152_0x5bc2a9(0x141)],a152_0x1ff8e3[a152_0x5bc2a9(0x14d)]=['click','sendKeys'];function a152_0x5441(_0x3f16a3,_0x35dc29){var _0x4d4cd6=a152_0x4d4c();return a152_0x5441=function(_0x544135,_0xe655be){_0x544135=_0x544135-0x13d;var _0xa76d54=_0x4d4cd6[_0x544135];return _0xa76d54;},a152_0x5441(_0x3f16a3,_0x35dc29);}var a152_0x4f0a16={};a152_0x4f0a16['driver']=[a152_0x5bc2a9(0x141)];function a152_0x4d4c(){var _0x1f16d1=['takeScreenshot','794744dmdBps','1000828lwdcGO','testcase','3817QNcZDD','7548sZpnvb','exports','10NEaMSM','4319LvNpJL','16990qUmAFP','auto','click','element','screenshot','6806976CGdyIq','18hLPWAU','1301928EvKmpU','driver','1589694pToyHm'];a152_0x4d4c=function(){return _0x1f16d1;};return a152_0x4d4c();}var a152_0x255723={};a152_0x255723[a152_0x5bc2a9(0x14d)]=[a152_0x5bc2a9(0x14c)];var a152_0x86a648={};a152_0x86a648[a152_0x5bc2a9(0x14b)]=a152_0x1ff8e3,a152_0x86a648[a152_0x5bc2a9(0x14e)]=a152_0x4f0a16,a152_0x86a648[a152_0x5bc2a9(0x14c)]=a152_0x255723,a152_0x86a648[a152_0x5bc2a9(0x144)]={},a152_0x86a648['manual']={},module[a152_0x5bc2a9(0x147)]=a152_0x86a648;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a153_0x395d31=a153_0x2b4e;function a153_0x4337(){const _0x56baf3=['platformIndex','name','browserstackPlatformIndex','@percy/appium-app','screenshotApp','snapshot','uuid','length','../performance/constants','../logger','browserstackPercyBestPlatform','error','415260WdOFIG','YntLI','SCREENSHOT_APP','thTestCaseExecutionId','SNAPSHOT','@percy/selenium-webdriver','529998lXuskN','gntOJ','1503360GvQgQq','42111zEWutw','63990dHYxJN','apply','measure','testCase','10QjWZMd','GZzhm','347564JvBPal','winstonLogger','Unsupported\x20driver\x20for\x20percy','screenshot','fRxwa','6kTpldy','191068dmcTJh','1790jiiNdU','RkxNx'];a153_0x4337=function(){return _0x56baf3;};return a153_0x4337();}(function(_0x58b8b1,_0x1dbfee){const _0x5d8a17=a153_0x2b4e,_0x53860b=_0x58b8b1();while(!![]){try{const _0x82ae82=-parseInt(_0x5d8a17(0x1bc))/0x1+-parseInt(_0x5d8a17(0x1cc))/0x2+-parseInt(_0x5d8a17(0x1c6))/0x3+-parseInt(_0x5d8a17(0x1d2))/0x4*(-parseInt(_0x5d8a17(0x1ca))/0x5)+parseInt(_0x5d8a17(0x1d1))/0x6*(parseInt(_0x5d8a17(0x1c2))/0x7)+-parseInt(_0x5d8a17(0x1c4))/0x8+-parseInt(_0x5d8a17(0x1c5))/0x9*(-parseInt(_0x5d8a17(0x1d3))/0xa);if(_0x82ae82===_0x1dbfee)break;else _0x53860b['push'](_0x53860b['shift']());}catch(_0xf1a9f2){_0x53860b['push'](_0x53860b['shift']());}}}(a153_0x4337,0x33641));function a153_0x2b4e(_0x3530ba,_0x582e93){const _0x4337e5=a153_0x4337();return a153_0x2b4e=function(_0x2b4ed5,_0x2b5517){_0x2b4ed5=_0x2b4ed5-0x1b0;let _0x1727a7=_0x4337e5[_0x2b4ed5];return _0x1727a7;},a153_0x2b4e(_0x3530ba,_0x582e93);}const tryRequire=function(_0x20af78,_0x22a872){const _0x196717=a153_0x2b4e,_0x1a4a7b={'gntOJ':function(_0x41f1d8,_0x1b556b){return _0x41f1d8(_0x1b556b);}};try{return _0x1a4a7b[_0x196717(0x1c3)](require,_0x20af78);}catch{return _0x22a872;}},percySnapshot=tryRequire('@percy/selenium-webdriver',null),{percyScreenshot}=tryRequire(a153_0x395d31(0x1c1),{}),percyAppScreenshot=require(a153_0x395d31(0x1b3)),{getCurrentTestData}=require('../../helpers/testhub/utils'),PerformanceTester=require('../performance/performance-tester'),{PERCY_EVENTS:PerformanceEvents}=require(a153_0x395d31(0x1b8)),logger=require(a153_0x395d31(0x1b9))[a153_0x395d31(0x1cd)];percySnapshot&&(exports[a153_0x395d31(0x1b5)]=async function(){const _0x261850=a153_0x395d31,_0x197325={'GZzhm':function(_0x567fb9,_0x175461){return _0x567fb9!==_0x175461;},'lNdYI':function(_0x5691d9,_0x13f621){return _0x5691d9>=_0x13f621;},'YntLI':function(_0x16b05e){return _0x16b05e();}};if(global[_0x261850(0x1b2)]&&_0x197325[_0x261850(0x1cb)](global['browserstackPlatformIndex'],global[_0x261850(0x1ba)]))return;const _0x3326ce=_0x197325['lNdYI'](arguments['length'],0x2)?arguments[0x1]:'',_0x219b73=_0x197325[_0x261850(0x1bd)](getCurrentTestData),_0x431d11={};return _0x431d11[_0x261850(0x1b1)]=_0x3326ce,_0x431d11[_0x261850(0x1c9)]=_0x219b73[_0x261850(0x1b1)]||'',_0x431d11[_0x261850(0x1bf)]=_0x219b73[_0x261850(0x1b6)]||'',_0x431d11['platformIndex']=global['browserstackPlatformIndex'],await PerformanceTester[_0x261850(0x1c8)](PerformanceEvents[_0x261850(0x1c0)],()=>percySnapshot['apply'](null,arguments),_0x431d11);});percyScreenshot?exports['screenshot']=async function(){const _0x54457c=a153_0x395d31,_0x26c320={'vavNN':function(_0x4fac56,_0x215b05){return _0x4fac56>=_0x215b05;},'KyTgc':function(_0x306611){return _0x306611();}},_0x27c08c=_0x26c320['vavNN'](arguments[_0x54457c(0x1b7)],0x2)?arguments[0x1]:'',_0x31bbb9=_0x26c320['KyTgc'](getCurrentTestData),_0x3abac2={};return _0x3abac2[_0x54457c(0x1b1)]=_0x27c08c,_0x3abac2[_0x54457c(0x1c9)]=_0x31bbb9[_0x54457c(0x1b1)]||'',_0x3abac2[_0x54457c(0x1bf)]=_0x31bbb9[_0x54457c(0x1b6)]||'',_0x3abac2['platformIndex']=global['browserstackPlatformIndex'],await PerformanceTester[_0x54457c(0x1c8)](PerformanceEvents['SCREENSHOT'],()=>percyScreenshot[_0x54457c(0x1c7)](null,arguments),_0x3abac2);}:exports[a153_0x395d31(0x1cf)]=()=>{const _0x3b0b0a=a153_0x395d31,_0x3f0a83={};_0x3f0a83[_0x3b0b0a(0x1d4)]=_0x3b0b0a(0x1ce);const _0x24726b=_0x3f0a83;logger[_0x3b0b0a(0x1bb)](_0x24726b[_0x3b0b0a(0x1d4)]);};exports[a153_0x395d31(0x1b4)]=async function(){const _0x261759=a153_0x395d31,_0x45035a={'fRxwa':function(_0x5d3b9a,_0x1c107d){return _0x5d3b9a>=_0x1c107d;},'cDWlY':function(_0x39f557){return _0x39f557();}},_0x2d44ee=_0x45035a[_0x261759(0x1d0)](arguments[_0x261759(0x1b7)],0x2)?arguments[0x1]:'',_0x441a04=_0x45035a['cDWlY'](getCurrentTestData),_0x4d8279={};return _0x4d8279[_0x261759(0x1b1)]=_0x2d44ee,_0x4d8279[_0x261759(0x1c9)]=_0x441a04['name']||'',_0x4d8279[_0x261759(0x1bf)]=_0x441a04['uuid']||'',_0x4d8279[_0x261759(0x1b0)]=global[_0x261759(0x1b2)],await PerformanceTester[_0x261759(0x1c8)](PerformanceEvents[_0x261759(0x1be)],()=>percyAppScreenshot['apply'](null,arguments),_0x4d8279);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a154_0x2a47(_0x17a08b,_0x52d8f6){var _0x32e3d3=a154_0x32e3();return a154_0x2a47=function(_0x2a4744,_0x29b4d0){_0x2a4744=_0x2a4744-0x10e;var _0x1d3586=_0x32e3d3[_0x2a4744];return _0x1d3586;},a154_0x2a47(_0x17a08b,_0x52d8f6);}var a154_0x1457ca=a154_0x2a47;(function(_0x18db34,_0x1df9f8){var _0x37b080=a154_0x2a47,_0x4c484d=_0x18db34();while(!![]){try{var _0x1d0270=parseInt(_0x37b080(0x113))/0x1+parseInt(_0x37b080(0x116))/0x2*(-parseInt(_0x37b080(0x112))/0x3)+-parseInt(_0x37b080(0x10f))/0x4*(-parseInt(_0x37b080(0x110))/0x5)+-parseInt(_0x37b080(0x115))/0x6+-parseInt(_0x37b080(0x114))/0x7*(parseInt(_0x37b080(0x10e))/0x8)+-parseInt(_0x37b080(0x111))/0x9+parseInt(_0x37b080(0x118))/0xa;if(_0x1d0270===_0x1df9f8)break;else _0x4c484d['push'](_0x4c484d['shift']());}catch(_0x721d07){_0x4c484d['push'](_0x4c484d['shift']());}}}(a154_0x32e3,0xe242c),module['exports']=require(a154_0x1457ca(0x117)));function a154_0x32e3(){var _0x3d01cc=['./Percy','16446480MuOXmM','8pcuTIg','68QaZLmF','60995jLUQOg','2957850KDhUuc','3jbMoaO','1452150PXRZXH','458024UTuJTm','10136652GDySGT','587786Cmffsf'];a154_0x32e3=function(){return _0x3d01cc;};return a154_0x32e3();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a155_0x2d4c(){const _0x459241=['browserName','883018QLCUMY','screenshot','isUndefined','17456YcuVtj','forEach','percyAutoCapture','start','apply','element','251625ucZGTZ','10062UwqPUl','browserStackPercyOptions','winstonLogger','driver','zToDS','reduce','Couldn\x27t\x20capture\x20percy\x20screenshot,\x20no\x20session\x20name\x20present','1001hXaejT','toLowerCase','patchDriverPercy','stop','START','Lgqre','getBestPlatformForPercySnapshot','./Percy','patch','startPercy','measureWrapper','dagpm','qTAUv','browserstackSessionName','Stopping\x20percy','browserstackPercyBestPlatform','oMurg','wULHp','prototype','percyCaptureMode','auto','debug','safari','platforms','Dzyte','getPercyOptions','8070246fQkXSO','then','getDriver','edge','vhWeB','deviceName','TYPIi','isAppAutomateSession','\x20for\x20percy\x20','browser','percy','AUTO_CAPTURE','../helper','1530570RDgjKF','Error\x20patching\x20','1825zddbPN','CcqZj','error','./PercySDK','browserstackPercyMap','./PercyCaptureMap','../performance/constants','../performance/performance-tester','KZQLc','10XWHlmo','overrideXforPercy','1879410nAfEec','FmFGl','manual','4HCqnmc'];a155_0x2d4c=function(){return _0x459241;};return a155_0x2d4c();}const a155_0x127c1d=a155_0xd9fd;(function(_0x51e2a6,_0x4407db){const _0x12be31=a155_0xd9fd,_0x2be1dc=_0x51e2a6();while(!![]){try{const _0xdd7814=parseInt(_0x12be31(0x82))/0x1+parseInt(_0x12be31(0xba))/0x2+-parseInt(_0x12be31(0xc7))/0x3*(-parseInt(_0x12be31(0x80))/0x4)+parseInt(_0x12be31(0xbc))/0x5*(-parseInt(_0x12be31(0x8c))/0x6)+parseInt(_0x12be31(0x93))/0x7*(-parseInt(_0x12be31(0x85))/0x8)+-parseInt(_0x12be31(0xad))/0x9+-parseInt(_0x12be31(0xc5))/0xa*(-parseInt(_0x12be31(0x8b))/0xb);if(_0xdd7814===_0x4407db)break;else _0x2be1dc['push'](_0x2be1dc['shift']());}catch(_0x5b7e14){_0x2be1dc['push'](_0x2be1dc['shift']());}}}(a155_0x2d4c,0x74697));function a155_0xd9fd(_0x424dca,_0x25db9f){const _0x2d4cd3=a155_0x2d4c();return a155_0xd9fd=function(_0xd9fd3f,_0x4a5b54){_0xd9fd3f=_0xd9fd3f-0x80;let _0x259cfb=_0x2d4cd3[_0xd9fd3f];return _0x259cfb;},a155_0xd9fd(_0x424dca,_0x25db9f);}const Percy=require(a155_0x127c1d(0x9a)),PercySDK=require(a155_0x127c1d(0xbf)),PercyCaptureModes=require('./PercyCaptureModes'),PercyCaptureMap=require(a155_0x127c1d(0xc1)),logger=require('../logger')[a155_0x127c1d(0x8e)],helper=require(a155_0x127c1d(0xb9)),PerformanceTester=require(a155_0x127c1d(0xc3)),{PERCY_EVENTS:PerformanceEvents}=require(a155_0x127c1d(0xc2));exports[a155_0x127c1d(0x9c)]=PerformanceTester['measureWrapper'](PerformanceEvents[a155_0x127c1d(0x97)],async _0x1d2762=>{const _0x41ab44=a155_0x127c1d,_0x11d761={};_0x11d761[_0x41ab44(0xbd)]='Starting\x20percy';const _0x549498=_0x11d761;logger[_0x41ab44(0xa8)](_0x549498['CcqZj']);const _0x1a3196=new Percy(_0x1d2762),_0x376c01=await _0x1a3196[_0x41ab44(0x88)]();if(_0x376c01)return _0x1a3196;return null;}),exports['stopPercy']=PerformanceTester[a155_0x127c1d(0x9d)](PerformanceEvents['STOP'],async _0x1d15cb=>{const _0x116240=a155_0x127c1d,_0x5f5277={};_0x5f5277['zToDS']=_0x116240(0xa1);const _0x53bc3a=_0x5f5277;return logger['debug'](_0x53bc3a[_0x116240(0x90)]),_0x1d15cb[_0x116240(0x96)]();}),exports[a155_0x127c1d(0x99)]=_0x448510=>{const _0x3b5bf8=a155_0x127c1d,_0xd8c780={};_0xd8c780[_0x3b5bf8(0xab)]=function(_0x1682fd,_0x59432c){return _0x1682fd<_0x59432c;};const _0x4e2637=_0xd8c780,_0x24ce08={};_0x24ce08['chrome']=0x0,_0x24ce08['firefox']=0x1,_0x24ce08[_0x3b5bf8(0xb0)]=0x2,_0x24ce08[_0x3b5bf8(0xa9)]=0x3;const _0x5878f7=_0x24ce08;return _0x448510[_0x3b5bf8(0x91)]((_0x3895e4,_0x14f9a6,_0x2c77bc)=>{const _0xaa7589=_0x3b5bf8,_0x384286=_0x448510[_0x3895e4];if(_0x14f9a6[_0xaa7589(0xb2)])return _0x3895e4;if(_0x384286['deviceName'])return _0x2c77bc;const _0x1c2af3=_0x14f9a6[_0xaa7589(0xb6)]?_0x14f9a6[_0xaa7589(0xb6)]:_0x14f9a6[_0xaa7589(0x81)];if(_0x1c2af3&&_0x4e2637[_0xaa7589(0xab)](_0x5878f7[_0x1c2af3[_0xaa7589(0x94)]()],_0x5878f7[_0x1c2af3[_0xaa7589(0x94)]()]))return _0x2c77bc;return _0x3895e4;},0x0);},exports[a155_0x127c1d(0x87)]=PerformanceTester[a155_0x127c1d(0x9d)](PerformanceEvents[a155_0x127c1d(0xb8)],async(_0x3b9a7a,_0x4df5c1,_0x292639)=>{const _0x5642bd=a155_0x127c1d,_0x5d3ced={};_0x5d3ced[_0x5642bd(0xc4)]=_0x5642bd(0x92);const _0x4d8be6=_0x5d3ced,_0x1fbdd5=_0x3b9a7a[_0x5642bd(0xc0)];if(helper[_0x5642bd(0x84)](_0x3b9a7a[_0x5642bd(0xa0)])){logger['debug'](_0x4d8be6[_0x5642bd(0xc4)]);return;}const _0xefcba0=_0x1fbdd5['getName'](_0x3b9a7a[_0x5642bd(0xa0)],_0x4df5c1);helper[_0x5642bd(0xb4)](_0x292639)?await PercySDK['screenshotApp'](_0x3b9a7a,_0xefcba0):await PercySDK[_0x5642bd(0x83)](_0x3b9a7a,_0xefcba0),_0x1fbdd5['increment'](_0x3b9a7a[_0x5642bd(0xa0)],_0x4df5c1);}),exports[a155_0x127c1d(0x95)]=(_0x260f4b,_0x18c8f7,_0x4b790a)=>{const _0x1a4c48=a155_0x127c1d,_0x3db819={};_0x3db819[_0x1a4c48(0xb3)]=_0x1a4c48(0x8d),_0x3db819['vhWeB']=_0x1a4c48(0xb7),_0x3db819[_0x1a4c48(0xa3)]=function(_0x43d389,_0x8ea66e){return _0x43d389!==_0x8ea66e;},_0x3db819[_0x1a4c48(0xa4)]=_0x1a4c48(0xc9);const _0x11a503=_0x3db819;if(!helper['nestedKeyValue'](_0x4b790a,[_0x11a503['TYPIi'],_0x11a503[_0x1a4c48(0xb1)]]))return;if(_0x4b790a['browserStackPercyOptions']['percy']&&_0x4b790a[_0x1a4c48(0x8d)][_0x1a4c48(0xa6)]&&_0x11a503['oMurg'](_0x4b790a['browserStackPercyOptions']['percyCaptureMode'],_0x11a503[_0x1a4c48(0xa4)])&&!_0x260f4b['browserstackPercyMap']){global[_0x1a4c48(0xa0)]&&(_0x260f4b[_0x1a4c48(0xa0)]=global['browserstackSessionName']),_0x260f4b['browserstackPercyMap']=new PercyCaptureMap();const _0x4bfcd5=PercyCaptureModes[_0x4b790a[_0x1a4c48(0x8d)][_0x1a4c48(0xa6)]];_0x4bfcd5['driver']&&_0x4bfcd5[_0x1a4c48(0x8f)][_0x1a4c48(0x86)](_0x23d6e9=>this[_0x1a4c48(0xc6)](_0x260f4b,_0x23d6e9,_0x4b790a)),_0x4bfcd5[_0x1a4c48(0x8a)]&&_0x4bfcd5[_0x1a4c48(0x8a)][_0x1a4c48(0x86)](_0xa0af22=>{const _0x5195da=_0x1a4c48;if(_0x18c8f7['prototype']['patch'+_0xa0af22])return;_0x18c8f7['prototype'][_0x5195da(0x9b)+_0xa0af22]=!![];const _0x22c35b=_0x18c8f7[_0x5195da(0xa5)][_0xa0af22];_0x18c8f7['prototype'][_0xa0af22]=async function(){const _0x56d0e6=_0x5195da;let _0x302a3f=_0x22c35b[_0x56d0e6(0x89)](this,arguments);_0x302a3f&&_0x302a3f[_0x56d0e6(0xae)]&&(_0x302a3f=await _0x302a3f);try{const _0x58a233=this[_0x56d0e6(0xaf)]();await exports[_0x56d0e6(0x87)](_0x58a233,_0xa0af22,_0x4b790a);}catch(_0x3b175c){logger[_0x56d0e6(0xbe)]('Error\x20patching\x20'+_0xa0af22+_0x56d0e6(0xb5)+_0x3b175c);}return _0x302a3f;};});}},exports[a155_0x127c1d(0xc6)]=function(_0x311e85,_0xba01b8,_0x36ab79){const _0x383ff9=a155_0x127c1d,_0xc29720={};_0xc29720[_0x383ff9(0x98)]=function(_0x35a19e,_0x114bb1){return _0x35a19e+_0x114bb1;},_0xc29720[_0x383ff9(0x9e)]=_0x383ff9(0x9b),_0xc29720[_0x383ff9(0x9f)]='init';const _0x1ae183=_0xc29720,_0x22e498=_0x1ae183[_0x383ff9(0x98)](_0x1ae183[_0x383ff9(0x9e)],_0xba01b8),_0x4eef81=_0x1ae183['Lgqre'](_0x1ae183['qTAUv'],_0xba01b8),_0x1c0e77=this;if(_0x311e85[_0x22e498]||!_0x311e85[_0xba01b8])return;_0x311e85[_0x22e498]=!![],_0x311e85[_0x4eef81]=_0x311e85[_0xba01b8],_0x311e85[_0xba01b8]=async()=>{const _0x206b31=_0x383ff9;try{await _0x1c0e77['percyAutoCapture'](_0x311e85,_0xba01b8,_0x36ab79);}catch(_0x4398e4){logger['error'](_0x206b31(0xbb)+_0xba01b8+_0x206b31(0xb5)+_0x4398e4);}return await _0x311e85[_0x4eef81][_0x206b31(0x89)](_0x311e85,arguments);};},exports[a155_0x127c1d(0xac)]=_0x25a94e=>{const _0x562116=a155_0x127c1d,_0x149d1f={};_0x149d1f['FmFGl']=_0x562116(0xa7);const _0x24c234=_0x149d1f,_0x52e787={};_0x52e787['percy']=_0x25a94e[_0x562116(0xb7)],_0x52e787[_0x562116(0xa6)]=_0x25a94e[_0x562116(0xa6)]||_0x24c234[_0x562116(0xc8)];const _0x20f0c9=_0x52e787;_0x25a94e[_0x562116(0xb7)]&&(_0x20f0c9[_0x562116(0xa2)]=exports[_0x562116(0x99)](_0x25a94e[_0x562116(0xaa)]));;return _0x20f0c9;};
|