logger-plugin.js 290 B

12345678910
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.getPort = getPort;
  4. /**
  5. * Get port from target
  6. * Using proxyRes.req.agent.sockets to determine the target port
  7. */
  8. function getPort(sockets) {
  9. return Object.keys(sockets || {})?.[0]?.split(':')[1];
  10. }