Skip to content

Commit 6c0a003

Browse files
committed
πŸ”– 1.1.4
1 parent 9ccfadf commit 6c0a003

File tree

5 files changed

+8
-6
lines changed

5 files changed

+8
-6
lines changed

β€ŽCHANGELOG.mdβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Changelog
22

3-
## 1.1.3 - 2019-07-07
3+
## 1.1.4 - 2019-07-07
44
- πŸ‘· fix lint & flow type
55

66
## 1.1.2 - 2019-07-07

β€Žpackage-lock.jsonβ€Ž

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žpackage.jsonβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "upbit-api-node",
3-
"version": "1.1.3",
3+
"version": "1.1.4",
44
"description": "Upbit API for Node.js",
55
"keywords": [
66
"upbit",

β€Žsrc/exchange/index.jsβ€Ž

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,13 @@ export default class Exchange {
1414
headers: { Authorization: string };
1515

1616
static getPayload = (accessKey: string, query?: string): Payload => {
17+
const nonce = uuidv4();
18+
1719
if (query) {
18-
return { access_key: accessKey, nonce: uuidv4(), query };
20+
return { access_key: accessKey, nonce, query };
1921
}
2022

21-
return { access_key: accessKey, nonce: uuidv4() };
23+
return { access_key: accessKey, nonce };
2224
};
2325

2426
constructor(accessKey: string, secretKey: string) {

β€Žsrc/type/Payload.js.flowβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// @flow
22
export type Payload = {
33
access_key: string,
4-
nonce: number
4+
nonce: number | string
55
};

0 commit comments

Comments
Β (0)