@agg-build/sdk 2.4.6 → 2.4.7
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.
- package/dist/index.js +3 -0
- package/dist/index.mjs +3 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2172,6 +2172,9 @@ Issued At: ${issuedAt}`;
|
|
|
2172
2172
|
*/
|
|
2173
2173
|
linkAccountConfirm(token) {
|
|
2174
2174
|
return __async(this, null, function* () {
|
|
2175
|
+
if (!this.accessToken) {
|
|
2176
|
+
yield this.refreshWithDedup();
|
|
2177
|
+
}
|
|
2175
2178
|
return this.request(
|
|
2176
2179
|
"/users/me/link-account/confirm",
|
|
2177
2180
|
this.buildAuthRequestInit({ method: "POST", body: JSON.stringify({ token }) })
|
package/dist/index.mjs
CHANGED
|
@@ -2054,6 +2054,9 @@ Issued At: ${issuedAt}`;
|
|
|
2054
2054
|
*/
|
|
2055
2055
|
linkAccountConfirm(token) {
|
|
2056
2056
|
return __async(this, null, function* () {
|
|
2057
|
+
if (!this.accessToken) {
|
|
2058
|
+
yield this.refreshWithDedup();
|
|
2059
|
+
}
|
|
2057
2060
|
return this.request(
|
|
2058
2061
|
"/users/me/link-account/confirm",
|
|
2059
2062
|
this.buildAuthRequestInit({ method: "POST", body: JSON.stringify({ token }) })
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agg-build/sdk",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.7",
|
|
4
4
|
"description": "Vanilla TypeScript client for the AGG prediction market aggregator (auth, markets, orderbooks, charts, trading, managed execution, WebSockets). Works in browsers, Node.js, and React Native.",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "MIT",
|