How to use the abap-adt-api.ADTClient function in abap-adt-api

To help you get started, we’ve selected a few abap-adt-api examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github sbcgua / sap-nw-abap-vagrant / abapdeploy.js / abapdeploy.js View on Github external
function create() {
    const ip = process.env.AD_IP || 'localhost';
    const user = process.env.AD_USER || 'developer';
    const pass = process.env.AD_PASS || 'Down1oad';

    return new ADTClient(
        `http://${ip}:8000`,
        user,
        pass,
    );
}
github marcellourbani / vscode_abap_remote_fs / client / src / config.ts View on Github external
export function createClient(conf: RemoteConfig) {
  const sslconf = conf.url.match(/https:/i)
    ? createSSLConfig(conf.allowSelfSigned, conf.customCA)
    : {}
  sslconf.debugCallback = httpLogger(conf)
  const client = new ADTClient(
    conf.url,
    conf.username,
    conf.password,
    conf.client,
    conf.language,
    sslconf
  )
  return loggedProxy(client, conf)
}
github marcellourbani / vscode_abap_remote_fs / server / src / clientManager.ts View on Github external
export async function clientFromKey(key: string) {
  let client = clients.get(key)
  if (!client) {
    const conf = await readConfiguration(key)
    if (conf) {
      const sslconf = conf.url.match(/https:/i)
        ? createSSLConfig(conf.allowSelfSigned, conf.customCA)
        : {}
      sslconf.debugCallback = debugCallBack(conf)
      client = new ADTClient(
        conf.url,
        conf.username,
        conf.password,
        conf.client,
        conf.language,
        sslconf
      )
      const traceUrl = clientTraceUrl(conf)
      if (traceUrl) client = loggedProxy(client, conf)
      clients.set(key, client)
    }
  }
  return client
}