gn-api-sdk-node
Advanced tools
Comparing version 2.0.3 to 2.0.4
@@ -0,1 +1,5 @@ | ||
# 2.0.4 | ||
- Correção na função req | ||
# 2.0.3 | ||
@@ -2,0 +6,0 @@ |
@@ -68,3 +68,3 @@ 'use strict'; | ||
GnEndpoints.prototype.req = function (callback) { | ||
GnEndpoints.prototype.req = async function (callback) { | ||
let req = this.getParams.call(this, this.endpoint.route); | ||
@@ -74,5 +74,7 @@ req['method'] = this.endpoint.method; | ||
.then((res) => { | ||
callback(res); | ||
console.log(res.data) | ||
}) | ||
.catch((error) => { | ||
callback(error); | ||
console.log(error.response.data); | ||
@@ -79,0 +81,0 @@ }); |
{ | ||
"name": "gn-api-sdk-node", | ||
"description": "Module for integration with Gerencianet API", | ||
"version": "2.0.3", | ||
"version": "2.0.4", | ||
"author": "Gerencianet - Consultoria Tecnica | João Vitor Oliveira | Francisco Carvalho", | ||
@@ -6,0 +6,0 @@ "license": "MIT", |
63588
2094