UNPKG

nextcloud-node-client

Version:

Nextcloud client API for node.js TypeScript applications

25 lines (24 loc) 865 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const logger_1 = __importDefault(require("./logger")); const log = new logger_1.default(); // tslint:disable-next-line: max-classes-per-file class Server { // public constructor(url: string, basicAuth: IBasicAuth, proxy?: IProxy, logRequestResponse: boolean = false) { constructor(options) { log.debug("constructor"); this.url = options.url; this.basicAuth = options.basicAuth; this.proxy = options.proxy; if (options.logRequestResponse) { this.logRequestResponse = true; } else { this.logRequestResponse = false; } } } exports.default = Server;