addie-js 0.0.4 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/addie.js +5 -5
  2. package/package.json +1 -1
package/addie.js CHANGED
@@ -58,7 +58,7 @@ const addie = {
58
58
  const signature = await sessionless.sign(message);
59
59
 
60
60
  const res = await get(`${addie.baseURL}user/${uuid}?signature=${signature}&timestamp=${timestamp}`);
61
- const user = res.json();
61
+ const user = await res.json();
62
62
 
63
63
  return user;
64
64
  },
@@ -80,8 +80,8 @@ const addie = {
80
80
  "signature": signature
81
81
  };
82
82
 
83
- const url = `${baseURL}user/${uuid}/processor/${processor}/intent`;
84
- const res = post(url, payload); // Start here
83
+ const url = `${addie.baseURL}user/${uuid}/processor/${processor}/intent`;
84
+ const res = await post(url, payload); // Start here
85
85
  const intent = await res.json();
86
86
 
87
87
  return intent;
@@ -99,8 +99,8 @@ const addie = {
99
99
  "signature": signature
100
100
  };
101
101
 
102
- const url = `${baseURL}user/${uuid}/processor/${processor}/intent-without-splits`;
103
- const res = post(url, payload); // Start here
102
+ const url = `${addie.baseURL}user/${uuid}/processor/${processor}/intent-without-splits`;
103
+ const res = await post(url, payload); // Start here
104
104
  const intent = await res.json();
105
105
 
106
106
  return intent;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "addie-js",
3
- "version": "0.0.4",
3
+ "version": "0.0.6",
4
4
  "description": "Addie JavaScript client",
5
5
  "main": "addie.js",
6
6
  "scripts": {