@epilot/automation-client
Advanced tools
Comparing version 2.1.0 to 2.2.0
import { Client } from './openapi'; | ||
export declare const getClient: () => Client; | ||
export declare const createClient: () => Client; |
@@ -17,7 +17,15 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.getClient = void 0; | ||
exports.createClient = exports.getClient = void 0; | ||
var lambda_powertools_correlation_ids_1 = __importDefault(require("@dazn/lambda-powertools-correlation-ids")); | ||
var openapi_client_axios_1 = __importDefault(require("openapi-client-axios")); | ||
var definition_1 = __importDefault(require("./definition")); | ||
var client; | ||
var getClient = function () { | ||
if (!client) { | ||
client = (0, exports.createClient)(); | ||
} | ||
return client; | ||
}; | ||
exports.getClient = getClient; | ||
var createClient = function () { | ||
var _a; | ||
@@ -29,3 +37,3 @@ var api = new openapi_client_axios_1.default({ definition: definition_1.default, quick: true }); | ||
}; | ||
exports.getClient = getClient; | ||
exports.createClient = createClient; | ||
//# sourceMappingURL=client.js.map |
{ | ||
"name": "@epilot/automation-client", | ||
"version": "2.1.0", | ||
"version": "2.2.0", | ||
"description": "Client library for epilot automation API", | ||
@@ -77,3 +77,4 @@ "main": "dist/index.js", | ||
"whatwg-url": "^11.0.0" | ||
} | ||
}, | ||
"gitHead": "d41cf7334964ffb68c562b531d6cf3c286367f76" | ||
} |
181712
12
4072