Skip to content

Commit

Permalink
Release 2.0.7
Browse files Browse the repository at this point in the history
  • Loading branch information
jvoliveiraGN committed Jul 30, 2021
1 parent 910d89e commit 6ff3edb
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# 2.0.7
- Correção do tratamento interno

# 2.0.6
- Ajuste arquivo de credenciais

# 2.0.5
- Correção do tratamento de responses

Expand Down
4 changes: 4 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,9 @@ module.exports = function (options) {
credentials.validateMtls = options.validateMtls;
}

if (options.partner_token) {
credentials.partner_token = options.partner_token;
}

return new GnSdk(credentials);
};
4 changes: 4 additions & 0 deletions lib/gn-endpoints.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,10 @@ GnEndpoints.prototype.getParams = function (route) {

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

if (this.options.partner_token) {
headers['partner-token'] = this.options.partner_token;
}

var req = {
url: [this.options.baseUrl, route, query].join(''),
headers: headers,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "gn-api-sdk-node",
"description": "Module for integration with Gerencianet API",
"version": "2.0.6",
"version": "2.0.7",
"author": "Gerencianet - Consultoria Tecnica | Palloma Brito | João Vitor Oliveira | Francisco Carvalho",
"license": "MIT",
"repository": "gerencianet/gn-api-sdk-node",
Expand Down

0 comments on commit 6ff3edb

Please sign in to comment.