@nimbos/http
Advanced tools
Comparing version 0.1.10 to 0.1.11
@@ -1,11 +0,21 @@ | ||
import axios from 'axios'; | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.httpFactory = void 0; | ||
var _axios = _interopRequireDefault(require("axios")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
var _instances = new Map(); | ||
_instances.set('default', axios); | ||
_instances.set('default', _axios.default); | ||
function register(config) { | ||
var name = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'default'; | ||
var instance = axios.create(config); | ||
var instance = _axios.default.create(config); | ||
_instances.set(name, instance); | ||
@@ -19,5 +29,6 @@ } | ||
export var httpFactory = { | ||
var httpFactory = { | ||
register: register, | ||
create: create | ||
}; | ||
}; | ||
exports.httpFactory = httpFactory; |
{ | ||
"name": "@nimbos/http", | ||
"version": "0.1.10", | ||
"version": "0.1.11", | ||
"description": "Pacote com solução de HTTP para o projeto nimbos", | ||
@@ -17,3 +17,3 @@ "main": "lib/index.js", | ||
}, | ||
"gitHead": "672b340a94e4870ef9023ecb7d3f91354d26cf12" | ||
"gitHead": "f978c534a967a02ffbca05e436a5549e09760b3a" | ||
} |
5488
36