lambdaorm-client-node
Advanced tools
Comparing version 0.4.6 to 0.4.7
@@ -14,3 +14,2 @@ /** | ||
import { AxiosInstance, AxiosRequestConfig } from 'axios'; | ||
export declare const BASE_PATH: string; | ||
/** | ||
@@ -41,6 +40,6 @@ * | ||
export declare class BaseAPI { | ||
protected basePath: string; | ||
protected axios: AxiosInstance; | ||
protected configuration: Configuration | undefined; | ||
constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance); | ||
protected basePath: string | undefined; | ||
constructor(configuration?: Configuration, axios?: AxiosInstance); | ||
} | ||
@@ -47,0 +46,0 @@ /** |
@@ -19,7 +19,6 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.RequiredError = exports.BaseAPI = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0; | ||
exports.RequiredError = exports.BaseAPI = exports.COLLECTION_FORMATS = void 0; | ||
// Some imports not used depending on template conditions | ||
// @ts-ignore | ||
const axios_1 = __importDefault(require("axios")); | ||
exports.BASE_PATH = "http://localhost:9291".replace(/\/+$/, ""); | ||
/** | ||
@@ -41,9 +40,11 @@ * | ||
class BaseAPI { | ||
constructor(configuration, basePath = exports.BASE_PATH, axios = axios_1.default) { | ||
this.basePath = basePath; | ||
constructor(configuration, axios = axios_1.default) { | ||
this.axios = axios; | ||
if (configuration) { | ||
this.configuration = configuration; | ||
this.basePath = configuration.basePath || this.basePath; | ||
this.basePath = configuration.basePath || 'http://0.0.0.0/9291'; | ||
} | ||
else { | ||
this.basePath = 'http://0.0.0.0/9291'; | ||
} | ||
} | ||
@@ -50,0 +51,0 @@ } |
{ | ||
"name": "lambdaorm-client-node", | ||
"version": "0.4.6", | ||
"version": "0.4.7", | ||
"description": "ORM", | ||
@@ -5,0 +5,0 @@ "author": "Flavio Lionel Rita <flaviolrita@gmail.com>", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
221580