UNPKG

node-nlp

Version:

Library for NLU (Natural Language Understanding) done in Node.js

33 lines 1.37 kB
"use strict"; /* * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ Object.defineProperty(exports, "__esModule", { value: true }); const msRest = require("ms-rest-js"); const packageName = "botframework-connector"; const packageVersion = "4.0.0"; class ConnectorClientContext extends msRest.ServiceClient { /** * Initializes a new instance of the ConnectorClientContext class. * @param credentials Subscription credentials which uniquely identify client subscription. * @param [options] The parameter options */ constructor(credentials, options) { if (credentials === null || credentials === undefined) { throw new Error('\'credentials\' cannot be null.'); } if (!options) { // NOTE: autogen creates a {} which is invalid, it needs to be cast options = {}; } super(credentials, options); this.baseUri = options.baseUri || this.baseUri || "https://api.botframework.com"; this.requestContentType = "application/json; charset=utf-8"; this.credentials = credentials; this.addUserAgentInfo(`${packageName}/${packageVersion}`); } } exports.ConnectorClientContext = ConnectorClientContext; //# sourceMappingURL=connectorClientContext.js.map