INNER CODE UNIT · JavaScript

protocol

furey/mongodb-lens · mongodb-lens.js:271

        const protocol = authPart.substring(0, authIndex + 3)
        const credentials = authPart.substring(authIndex + 3)
        if (credentials.includes(':')) {
          const [username, ...passwordParts] = credentials.split(':')
          return `${protocol}${username}:********@${restPart}`
        }
      }
    }
    return uri
  } catch (error) {
    log(`Error obfuscating URI: ${error.message}`, true)
    return uri
  }
}

const changeConnection = async (uri, validate = true) => {
  isChangingConnection = true
  try {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…