Skip to content

Commit

Permalink
🔖 1.1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
wonism committed Jul 7, 2019
1 parent 9ccfadf commit 6c0a003
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Changelog

## 1.1.3 - 2019-07-07
## 1.1.4 - 2019-07-07
- 👷 fix lint & flow type

## 1.1.2 - 2019-07-07
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "upbit-api-node",
"version": "1.1.3",
"version": "1.1.4",
"description": "Upbit API for Node.js",
"keywords": [
"upbit",
Expand Down
6 changes: 4 additions & 2 deletions src/exchange/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,13 @@ export default class Exchange {
headers: { Authorization: string };

static getPayload = (accessKey: string, query?: string): Payload => {
const nonce = uuidv4();

if (query) {
return { access_key: accessKey, nonce: uuidv4(), query };
return { access_key: accessKey, nonce, query };
}

return { access_key: accessKey, nonce: uuidv4() };
return { access_key: accessKey, nonce };
};

constructor(accessKey: string, secretKey: string) {
Expand Down
2 changes: 1 addition & 1 deletion src/type/Payload.js.flow
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// @flow
export type Payload = {
access_key: string,
nonce: number
nonce: number | string
};

0 comments on commit 6c0a003

Please sign in to comment.