Skip to content

Commit 113cc06

Browse files
committed
1.4.2
- name needs to be public
1 parent 98e1959 commit 113cc06

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ async function main () {
2626
// login to get your uuid and Bearer token
2727
try {
2828
await bring.login();
29+
console.log(`Successfully logged in as ${bring.name}`);
2930
} catch (e) {
3031
console.error(`Error on Login: ${e.message}`);
3132
}
@@ -45,7 +46,7 @@ More important methods are `getItems(listUUID)`, `getItemsDetails(listUUID)`, `s
4546
`moveToRecentList(listUuid, itemName)` and `getAllUsersFromList(listUuid)`.
4647

4748
## Changelog
48-
### 1.4.1 (2021-08-12)
49+
### 1.4.2 (2021-08-12)
4950
* (foxriver76) restructure to typescript
5051

5152
### 1.3.1 (2021-04-29)

build/bring.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ declare class Bring {
8080
private readonly url;
8181
private uuid;
8282
private readonly headers;
83-
private name?;
83+
name?: string;
8484
private bearerToken?;
8585
private refreshToken?;
8686
private putHeaders?;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "bring-shopping",
3-
"version": "1.4.1",
3+
"version": "1.4.2",
44
"engines": {
55
"node": ">=8.0.0"
66
},

src/bring.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ class Bring {
9898
private readonly url: string;
9999
private uuid: string;
100100
private readonly headers: { "X-BRING-CLIENT-SOURCE": string; "X-BRING-COUNTRY": string; "X-BRING-CLIENT": string; "X-BRING-API-KEY": string, Authorization?: string, "X-BRING-USER-UUID"?: string };
101-
private name?: string;
101+
public name?: string;
102102
private bearerToken?: string;
103103
private refreshToken?: string;
104104
private putHeaders?: { Authorization?: string; "X-BRING-USER-UUID"?: string; "X-BRING-CLIENT-SOURCE": string; "X-BRING-COUNTRY": string; "X-BRING-CLIENT": string; "X-BRING-API-KEY": string; "Content-Type": string };

0 commit comments

Comments
 (0)