Skip to content

Commit 6ff3edb

Browse files
committed
Release 2.0.7
1 parent 910d89e commit 6ff3edb

File tree

4 files changed

+15
-1
lines changed

4 files changed

+15
-1
lines changed

Diff for: CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# 2.0.7
2+
- Correção do tratamento interno
3+
4+
# 2.0.6
5+
- Ajuste arquivo de credenciais
6+
17
# 2.0.5
28
- Correção do tratamento de responses
39

Diff for: index.js

+4
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,9 @@ module.exports = function (options) {
1414
credentials.validateMtls = options.validateMtls;
1515
}
1616

17+
if (options.partner_token) {
18+
credentials.partner_token = options.partner_token;
19+
}
20+
1721
return new GnSdk(credentials);
1822
};

Diff for: lib/gn-endpoints.js

+4
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,10 @@ GnEndpoints.prototype.getParams = function (route) {
116116

117117
headers['x-skip-mtls-checking'] = !this.options.validateMtls;
118118

119+
if (this.options.partner_token) {
120+
headers['partner-token'] = this.options.partner_token;
121+
}
122+
119123
var req = {
120124
url: [this.options.baseUrl, route, query].join(''),
121125
headers: headers,

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "gn-api-sdk-node",
33
"description": "Module for integration with Gerencianet API",
4-
"version": "2.0.6",
4+
"version": "2.0.7",
55
"author": "Gerencianet - Consultoria Tecnica | Palloma Brito | João Vitor Oliveira | Francisco Carvalho",
66
"license": "MIT",
77
"repository": "gerencianet/gn-api-sdk-node",

0 commit comments

Comments
 (0)