UNPKG

nextcloud-node-client

Version:

Nextcloud client API for node.js applications

25 lines (24 loc) 864 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const debug_1 = __importDefault(require("debug")); const debug = debug_1.default("NCServer"); // tslint:disable-next-line: max-classes-per-file class Server { // public constructor(url: string, basicAuth: IBasicAuth, proxy?: IProxy, logRequestResponse: boolean = false) { constructor(options) { 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;