@b3dotfun/sdk 0.0.27 → 0.0.28
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/cjs/global-account/app.js +1 -1
- package/dist/cjs/global-account/app.native.js +1 -1
- package/dist/cjs/global-account/bsmnt.native.js +1 -1
- package/dist/esm/global-account/app.js +1 -1
- package/dist/esm/global-account/app.native.js +1 -1
- package/dist/esm/global-account/bsmnt.native.js +1 -1
- package/package.json +2 -2
- package/src/global-account/app.native.ts +1 -1
- package/src/global-account/app.ts +1 -1
- package/src/global-account/bsmnt.native.ts +1 -1
|
@@ -11,7 +11,7 @@ const js_cookie_1 = __importDefault(require("js-cookie"));
|
|
|
11
11
|
const socket_io_client_1 = __importDefault(require("socket.io-client"));
|
|
12
12
|
const constants_1 = require("../shared/constants");
|
|
13
13
|
const B3_API_URL = process.env.EXPO_PUBLIC_B3_API || process.env.NEXT_PUBLIC_B3_API || process.env.PUBLIC_B3_API || "https://api.b3.fun";
|
|
14
|
-
const socket = (0, socket_io_client_1.default)(B3_API_URL);
|
|
14
|
+
const socket = (0, socket_io_client_1.default)(B3_API_URL, { transports: ["websocket"] });
|
|
15
15
|
class MyAuthenticationClient extends authentication_client_1.AuthenticationClient {
|
|
16
16
|
getFromLocation(location) {
|
|
17
17
|
// Do custom location things here
|
|
@@ -43,7 +43,7 @@ class LocalStorage {
|
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
const localStorage = new LocalStorage();
|
|
46
|
-
const socket = (0, socket_io_client_1.default)(B3_API_URL);
|
|
46
|
+
const socket = (0, socket_io_client_1.default)(B3_API_URL, { transports: ["websocket"] });
|
|
47
47
|
class MyAuthenticationClient extends authentication_client_1.AuthenticationClient {
|
|
48
48
|
getFromLocation(location) {
|
|
49
49
|
// Do custom location things here
|
|
@@ -46,7 +46,7 @@ class LocalStorage {
|
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
const localStorage = new LocalStorage();
|
|
49
|
-
const socket = (0, socket_io_client_1.default)(BSMNT_API_URL);
|
|
49
|
+
const socket = (0, socket_io_client_1.default)(BSMNT_API_URL, { transports: ["websocket"] });
|
|
50
50
|
class MyAuthenticationClient extends authentication_client_1.AuthenticationClient {
|
|
51
51
|
getFromLocation(location) {
|
|
52
52
|
// Do custom location things here
|
|
@@ -5,7 +5,7 @@ import Cookies from "js-cookie";
|
|
|
5
5
|
import io from "socket.io-client";
|
|
6
6
|
import { B3_AUTH_COOKIE_NAME } from "../shared/constants/index.js";
|
|
7
7
|
const B3_API_URL = process.env.EXPO_PUBLIC_B3_API || process.env.NEXT_PUBLIC_B3_API || process.env.PUBLIC_B3_API || "https://api.b3.fun";
|
|
8
|
-
const socket = io(B3_API_URL);
|
|
8
|
+
const socket = io(B3_API_URL, { transports: ["websocket"] });
|
|
9
9
|
class MyAuthenticationClient extends AuthenticationClient {
|
|
10
10
|
getFromLocation(location) {
|
|
11
11
|
// Do custom location things here
|
|
@@ -37,7 +37,7 @@ class LocalStorage {
|
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
const localStorage = new LocalStorage();
|
|
40
|
-
const socket = io(B3_API_URL);
|
|
40
|
+
const socket = io(B3_API_URL, { transports: ["websocket"] });
|
|
41
41
|
class MyAuthenticationClient extends AuthenticationClient {
|
|
42
42
|
getFromLocation(location) {
|
|
43
43
|
// Do custom location things here
|
|
@@ -40,7 +40,7 @@ class LocalStorage {
|
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
const localStorage = new LocalStorage();
|
|
43
|
-
const socket = io(BSMNT_API_URL);
|
|
43
|
+
const socket = io(BSMNT_API_URL, { transports: ["websocket"] });
|
|
44
44
|
class MyAuthenticationClient extends AuthenticationClient {
|
|
45
45
|
getFromLocation(location) {
|
|
46
46
|
// Do custom location things here
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@b3dotfun/sdk",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.28",
|
|
4
4
|
"source": "src/index.ts",
|
|
5
5
|
"main": "./dist/cjs/index.js",
|
|
6
6
|
"react-native": "./dist/cjs/index.native.js",
|
|
@@ -226,7 +226,7 @@
|
|
|
226
226
|
],
|
|
227
227
|
"dependencies": {
|
|
228
228
|
"@amplitude/analytics-browser": "2.14.0",
|
|
229
|
-
"@b3dotfun/b3-api": "0.0.
|
|
229
|
+
"@b3dotfun/b3-api": "0.0.42",
|
|
230
230
|
"@b3dotfun/basement-api": "0.0.11",
|
|
231
231
|
"@chakra-ui/react": "2.10.7",
|
|
232
232
|
"@feathersjs/authentication-client": "5.0.33",
|
|
@@ -51,7 +51,7 @@ class LocalStorage {
|
|
|
51
51
|
|
|
52
52
|
const localStorage = new LocalStorage();
|
|
53
53
|
|
|
54
|
-
const socket = io(B3_API_URL);
|
|
54
|
+
const socket = io(B3_API_URL, { transports: ["websocket"] });
|
|
55
55
|
|
|
56
56
|
class MyAuthenticationClient extends AuthenticationClient {
|
|
57
57
|
getFromLocation(location: any) {
|
|
@@ -8,7 +8,7 @@ import { B3_AUTH_COOKIE_NAME } from "../shared/constants";
|
|
|
8
8
|
const B3_API_URL =
|
|
9
9
|
process.env.EXPO_PUBLIC_B3_API || process.env.NEXT_PUBLIC_B3_API || process.env.PUBLIC_B3_API || "https://api.b3.fun";
|
|
10
10
|
|
|
11
|
-
const socket = io(B3_API_URL);
|
|
11
|
+
const socket = io(B3_API_URL, { transports: ["websocket"] });
|
|
12
12
|
|
|
13
13
|
class MyAuthenticationClient extends AuthenticationClient {
|
|
14
14
|
getFromLocation(location: any) {
|
|
@@ -54,7 +54,7 @@ class LocalStorage {
|
|
|
54
54
|
|
|
55
55
|
const localStorage = new LocalStorage();
|
|
56
56
|
|
|
57
|
-
const socket = io(BSMNT_API_URL);
|
|
57
|
+
const socket = io(BSMNT_API_URL, { transports: ["websocket"] });
|
|
58
58
|
|
|
59
59
|
class MyAuthenticationClient extends AuthenticationClient {
|
|
60
60
|
getFromLocation(location: any) {
|