Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
lmscunha committed Nov 29, 2024
1 parent a4b15f9 commit 88abddc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions dist/tillo-provider.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/tillo-provider.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions src/tillo-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ function TilloProvider(this: any, options: TilloProviderOptions) {

this.shared.headers.Signature = getAuthSignature(signData)
this.shared.headers.Timestamp = timestamp
this.shared.headers.Accept = "application/json"

let json: any =
await getJSON(makeUrl(path, msg.q), makeConfig())
Expand Down Expand Up @@ -129,7 +128,6 @@ function TilloProvider(this: any, options: TilloProviderOptions) {

this.shared.headers.Signature = getAuthSignature(signData)
this.shared.headers.Timestamp = timestamp
this.shared.headers.Accept = "application/json"

let json: any =
await postJSON(makeUrl('digital/issue'), makeConfig({
Expand Down Expand Up @@ -167,6 +165,7 @@ function TilloProvider(this: any, options: TilloProviderOptions) {

this.shared.headers = {
'API-Key': res.keymap.apikey.value,
Accept: "application/json"
}

this.shared.secret = res.keymap.secret.value
Expand Down

0 comments on commit 88abddc

Please sign in to comment.