UNPKG

correios-webservice

Version:
26 lines 614 B
import { Http } from "./http"; const defaultConfig = { apiVersion: "v1", baseUrl: "https://api.correios.com.br", }; class Endpoint { http; config; constructor(auth, config = {}) { const mergeConfig = { ...defaultConfig, ...config, }; this.config = mergeConfig; this.http = new Http(auth, { baseURL: this.config.baseUrl, prefix: this.getPrefix(), apiVersion: this.config.apiVersion, }); } getPrefix() { return ""; } } export { Endpoint }; //# sourceMappingURL=endpoint.js.map